You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1340 lines
2.2 MiB
1340 lines
2.2 MiB
(self.webpackChunk=self.webpackChunk||[]).push([[2020],{87169:function(Ye,jn,Ft){"use strict";Ft.d(jn,{Z:function(){return Le}});var ht=Ft(72308),Ht=Ft(59301),fe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},Re=fe,Se=Ft(7657),Me=function(ve,he){return Ht.createElement(Se.Z,(0,ht.Z)({},ve,{ref:he,icon:Re}))},Jt=Ht.forwardRef(Me),Le=Jt},32050:function(Ye,jn,Ft){"use strict";Ft.d(jn,{Z:function(){return Le}});var ht=Ft(72308),Ht=Ft(59301),fe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 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:"upload",theme:"outlined"},Re=fe,Se=Ft(7657),Me=function(ve,he){return Ht.createElement(Se.Z,(0,ht.Z)({},ve,{ref:he,icon:Re}))},Jt=Ht.forwardRef(Me),Le=Jt},37036:function(){"use strict"},88010:function(Ye,jn){"use strict";jn.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},84287:function(Ye,jn,Ft){"use strict";var ht=Ft(59301),Ht=Object.defineProperty,fe=Object.getOwnPropertySymbols,Re=Object.prototype.hasOwnProperty,Se=Object.prototype.propertyIsEnumerable,Me=(ce,ve,he)=>ve in ce?Ht(ce,ve,{enumerable:!0,configurable:!0,writable:!0,value:he}):ce[ve]=he,Jt=(ce,ve)=>{for(var he in ve||(ve={}))Re.call(ve,he)&&Me(ce,he,ve[he]);if(fe)for(var he of fe(ve))Se.call(ve,he)&&Me(ce,he,ve[he]);return ce};const Le=ce=>React.createElement("svg",Jt({className:"jiangxu_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:32,height:32},ce),React.createElement("path",{d:"M365.714 73.143H1024v73.143H365.714zm0 292.571H1024v73.143H365.714zm0 292.572H1024v73.143H365.714zm0 292.571H1024V1024H365.714v-73.143z",fill:"#98BDF7"}),React.createElement("path",{d:"m248.686 803.182-65.829 75.922V658.286h-73.143v220.818l-65.828-75.995L0 851.383 146.286 1024 292.57 851.53z",fill:"#145DFF"}),React.createElement("path",{d:"M146.286 0 0 158.72l43.886 55.223 65.828-75.922v227.693h73.143V138.021l65.829 75.922 43.885-55.223z",fill:"#98BDF7"}));jn.Z="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMzIiIGhlaWdodD0iMzIiPjxwYXRoIGQ9Ik0zNjUuNzE0IDczLjE0M0gxMDI0djczLjE0M0gzNjUuNzE0em0wIDI5Mi41NzFIMTAyNHY3My4xNDNIMzY1LjcxNHptMCAyOTIuNTcySDEwMjR2NzMuMTQzSDM2NS43MTR6bTAgMjkyLjU3MUgxMDI0VjEwMjRIMzY1LjcxNHYtNzMuMTQzeiIgZmlsbD0iIzk4QkRGNyIvPjxwYXRoIGQ9Im0yNDguNjg2IDgwMy4xODItNjUuODI5IDc1LjkyMlY2NTguMjg2aC03My4xNDN2MjIwLjgxOGwtNjUuODI4LTc1Ljk5NUwwIDg1MS4zODMgMTQ2LjI4NiAxMDI0IDI5Mi41NyA4NTEuNTN6IiBmaWxsPSIjMTQ1REZGIi8+PHBhdGggZD0iTTE0Ni4yODYgMCAwIDE1OC43Mmw0My44ODYgNTUuMjIzIDY1LjgyOC03NS45MjJ2MjI3LjY5M2g3My4xNDNWMTM4LjAyMWw2NS44MjkgNzUuOTIyIDQzLjg4NS01NS4yMjN6IiBmaWxsPSIjOThCREY3Ii8+PC9zdmc+"},86087:function(Ye,jn,Ft){"use strict";var ht=Ft(59301),Ht=Object.defineProperty,fe=Object.getOwnPropertySymbols,Re=Object.prototype.hasOwnProperty,Se=Object.prototype.propertyIsEnumerable,Me=(ce,ve,he)=>ve in ce?Ht(ce,ve,{enumerable:!0,configurable:!0,writable:!0,value:he}):ce[ve]=he,Jt=(ce,ve)=>{for(var he in ve||(ve={}))Re.call(ve,he)&&Me(ce,he,ve[he]);if(fe)for(var he of fe(ve))Se.call(ve,he)&&Me(ce,he,ve[he]);return ce};const Le=ce=>React.createElement("svg",Jt({className:"shengxu_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:32,height:32},ce),React.createElement("path",{d:"M365.714 73.143H1024v73.143H365.714zm0 292.571H1024v73.143H365.714zm0 292.572H1024v73.143H365.714zm0 292.571H1024V1024H365.714v-73.143zM248.686 803.182l-65.829 75.922V658.286h-73.143v220.818l-65.828-75.995L0 851.383 146.286 1024 292.57 851.53z",fill:"#98BDF7"}),React.createElement("path",{d:"M146.286 0 0 158.72l43.886 55.223 65.828-75.922v227.693h73.143V138.021l65.829 75.922 43.885-55.223z",fill:"#145DFF"}));jn.Z="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMzIiIGhlaWdodD0iMzIiPjxwYXRoIGQ9Ik0zNjUuNzE0IDczLjE0M0gxMDI0djczLjE0M0gzNjUuNzE0em0wIDI5Mi41NzFIMTAyNHY3My4xNDNIMzY1LjcxNHptMCAyOTIuNTcySDEwMjR2NzMuMTQzSDM2NS43MTR6bTAgMjkyLjU3MUgxMDI0VjEwMjRIMzY1LjcxNHYtNzMuMTQzek0yNDguNjg2IDgwMy4xODJsLTY1LjgyOSA3NS45MjJWNjU4LjI4NmgtNzMuMTQzdjIyMC44MThsLTY1LjgyOC03NS45OTVMMCA4NTEuMzgzIDE0Ni4yODYgMTAyNCAyOTIuNTcgODUxLjUzeiIgZmlsbD0iIzk4QkRGNyIvPjxwYXRoIGQ9Ik0xNDYuMjg2IDAgMCAxNTguNzJsNDMuODg2IDU1LjIyMyA2NS44MjgtNzUuOTIydjIyNy42OTNoNzMuMTQzVjEzOC4wMjFsNjUuODI5IDc1LjkyMiA0My44ODUtNTUuMjIzeiIgZmlsbD0iIzE0NURGRiIvPjwvc3ZnPg=="},74413:function(){"use strict";function Ye(kt,et,nt,dt){nt===void 0&&(nt=0),dt===void 0&&(dt=1/0),this._name=kt,this._defaultValue=et,this._minimum=nt,this._maximum=dt}Object.defineProperty(Ye.prototype,"name",{get:function(){return this._name},set:function(kt){if(typeof kt!="string"||kt==="")throw new Error("Shape name must be a valid string.");this._name=kt}}),Object.defineProperty(Ye.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(kt){if(typeof kt!="number"||isNaN(kt))throw new Error("The default value must be a real number, not: "+kt);this._defaultValue=kt}}),Object.defineProperty(Ye.prototype,"minimum",{get:function(){return this._minimum},set:function(kt){if(typeof kt!="number"||isNaN(kt))throw new Error("Minimum must be a real number, not: "+kt);this._minimum=kt}}),Object.defineProperty(Ye.prototype,"maximum",{get:function(){return this._maximum},set:function(kt){if(typeof kt!="number"||isNaN(kt))throw new Error("Maximum must be a real number, not: "+kt);this._maximum=kt}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(kt,et){var nt=go.Shape._FigureParameters[kt];return nt?nt[et]:null},go.Shape.setFigureParameter=function(kt,et,nt){if(!(nt instanceof Ye))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+nt);if(nt.defaultValue<nt.minimum||nt.defaultValue>nt.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+nt.defaultValue);var dt=go.Shape._FigureParameters[kt];dt||(dt=[],go.Shape._FigureParameters[kt]=dt),dt[et]=nt};var jn=[];function Ft(kt,et){var nt=jn.pop();return nt===void 0?new go.Point(kt,et):(nt.x=kt,nt.y=et,nt)}function ht(){var kt=jn.pop();return kt===void 0?new go.Point:kt}function Ht(kt){jn.push(kt)}function fe(kt,et,nt,dt,lt,pt,yt,At,Dt){Dt||(Dt=new go.Point);var Ut=kt-nt,Qt=lt-yt,$t=NaN,ne=NaN;if(Ut===0)if(Qt===0)kt===nt&&($t=kt,ne=et);else{var _t=(pt-At)/Qt,Pe=pt-_t*lt;$t=kt,ne=_t*$t+Pe}else if(Qt===0){var ue=(et-dt)/Ut,pe=et-ue*kt;$t=lt,ne=ue*$t+pe}else{var ue=(et-dt)/Ut,_t=(pt-At)/Qt,pe=et-ue*kt,Pe=pt-_t*lt;$t=(Pe-pe)/(ue-_t),ne=ue*$t+pe}return Dt.x=$t,Dt.y=ne,Dt}function Re(kt,et,nt,dt,lt,pt,yt,At,Dt,Ut,Qt,$t,ne,_t){var Pe=1-Dt,ue=Dt,pe=kt*Pe+nt*ue,oe=et*Pe+dt*ue,Ae=nt*Pe+lt*ue,Ie=dt*Pe+pt*ue,an=lt*Pe+yt*ue,Gn=pt*Pe+At*ue,bn=pe*Pe+Ae*ue,de=oe*Pe+Ie*ue,Wt=Ae*Pe+an*ue,xe=Ie*Pe+Gn*ue,nn=bn*Pe+Wt*ue,dn=de*Pe+xe*ue;Ut.x=pe,Ut.y=oe,Qt.x=bn,Qt.y=de,$t.x=nn,$t.y=dn,ne.x=Wt,ne.y=xe,_t.x=an,_t.y=Gn}var Se=new go.Spot(.156,.156),Me=new go.Spot(.844,.844),Jt=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new Ye("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(kt,et,nt){var dt=kt?kt.parameter1:NaN;(isNaN(dt)||dt<0)&&(dt=5),dt=Math.min(dt,et/3),dt=Math.min(dt,nt/3);var lt=dt*Jt,pt=new go.Geometry().add(new go.PathFigure(dt,0,!0).add(new go.PathSegment(go.PathSegment.Line,et-dt,0)).add(new go.PathSegment(go.PathSegment.Bezier,et,dt,et-lt,0,et,lt)).add(new go.PathSegment(go.PathSegment.Line,et,nt-dt)).add(new go.PathSegment(go.PathSegment.Bezier,et-dt,nt,et,nt-lt,et-lt,nt)).add(new go.PathSegment(go.PathSegment.Line,dt,nt)).add(new go.PathSegment(go.PathSegment.Bezier,0,nt-dt,lt,nt,0,nt-lt)).add(new go.PathSegment(go.PathSegment.Line,0,dt)).add(new go.PathSegment(go.PathSegment.Bezier,dt,0,0,lt,lt,0).close()));return lt>1&&(pt.spot1=new go.Spot(0,0,lt,lt),pt.spot2=new go.Spot(1,1,-lt,-lt)),pt}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(kt,et,nt){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(kt,et,nt){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,.5*et,nt).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(kt,et,nt){return new go.Geometry().add(new go.PathFigure(et,nt).add(new go.PathSegment(go.PathSegment.Line,0,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,et,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(kt,et,nt){return new go.Geometry().add(new go.PathFigure(et,nt).add(new go.PathSegment(go.PathSegment.Line,0,nt)).add(new go.PathSegment(go.PathSegment.Line,.5*et,0).close())).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",function(kt,et,nt){return new go.Geometry().add(new go.PathFigure(.5*et,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)).add(new go.PathSegment(go.PathSegment.Line,et,.5*nt).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(kt,et,nt){var dt=new go.Geometry(go.Geometry.Line);return dt.startX=0,dt.startY=nt/2,dt.endX=et,dt.endY=nt/2,dt}),go.Shape.defineFigureGenerator("LineV",function(kt,et,nt){var dt=new go.Geometry(go.Geometry.Line);return dt.startX=et/2,dt.startY=0,dt.endX=et/2,dt.endY=nt,dt}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(kt,et,nt){return new go.Geometry().add(new go.PathFigure(0,nt/2,!1).add(new go.PathSegment(go.PathSegment.Line,et,nt/2)).add(new go.PathSegment(go.PathSegment.Move,et/2,0)).add(new go.PathSegment(go.PathSegment.Line,et/2,nt)))}),go.Shape.defineFigureGenerator("XLine",function(kt,et,nt){return new go.Geometry().add(new go.PathFigure(0,nt,!1).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,et,nt)))}),go.Shape.defineFigureGenerator("LineRight",function(kt,et,nt){return new go.Geometry().add(new go.PathFigure(.25*et,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*et,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,.25*et,nt)))}),go.Shape.defineFigureGenerator("LineDown",function(kt,et,nt){return new go.Geometry().add(new go.PathFigure(0,.25*nt,!1).add(new go.PathSegment(go.PathSegment.Line,.5*et,.75*nt)).add(new go.PathSegment(go.PathSegment.Line,et,.25*nt)))}),go.Shape.defineFigureGenerator("LineLeft",function(kt,et,nt){return new go.Geometry().add(new go.PathFigure(.75*et,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*et,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,.75*et,nt)))}),go.Shape.defineFigureGenerator("LineUp",function(kt,et,nt){return new go.Geometry().add(new go.PathFigure(0,.75*nt,!1).add(new go.PathSegment(go.PathSegment.Line,.5*et,.25*nt)).add(new go.PathSegment(go.PathSegment.Line,et,.75*nt)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(kt,et,nt){var dt=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(dt*et,(1-dt)*nt,!1).add(new go.PathSegment(go.PathSegment.Line,(1-dt)*et,dt*nt)).add(new go.PathSegment(go.PathSegment.Move,dt*et,dt*nt)).add(new go.PathSegment(go.PathSegment.Line,(1-dt)*et,(1-dt)*nt)).add(new go.PathSegment(go.PathSegment.Move,0,nt/2)).add(new go.PathSegment(go.PathSegment.Line,et,nt/2)).add(new go.PathSegment(go.PathSegment.Move,et/2,0)).add(new go.PathSegment(go.PathSegment.Line,et/2,nt)))}),go.Shape.defineFigureGenerator("CircleLine",function(kt,et,nt){var dt=et/2,lt=new go.Geometry().add(new go.PathFigure(et,et/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,dt,dt,dt,dt).close()));return lt.spot1=Se,lt.spot2=Me,lt.defaultStretch=go.GraphObject.Uniform,lt}),go.Shape.defineFigureGenerator("Line1",function(kt,et,nt){var dt=new go.Geometry(go.Geometry.Line);return dt.startX=0,dt.startY=0,dt.endX=et,dt.endY=nt,dt}),go.Shape.defineFigureGenerator("Line2",function(kt,et,nt){var dt=new go.Geometry(go.Geometry.Line);return dt.startX=et,dt.startY=0,dt.endX=0,dt.endY=nt,dt}),go.Shape.defineFigureGenerator("Curve1",function(kt,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,et,nt,Jt*et,0,et,(1-Jt)*nt)))}),go.Shape.defineFigureGenerator("Curve2",function(kt,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,et,nt,0,Jt*nt,(1-Jt)*et,nt)))}),go.Shape.defineFigureGenerator("Curve3",function(kt,et,nt){return new go.Geometry().add(new go.PathFigure(et,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,nt,et,Jt*nt,Jt*et,nt)))}),go.Shape.defineFigureGenerator("Curve4",function(kt,et,nt){return new go.Geometry().add(new go.PathFigure(et,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,nt,(1-Jt)*et,0,0,(1-Jt)*nt)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(kt,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,et,nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(kt,et,nt){return new go.Geometry().add(new go.PathFigure(et,0,!0).add(new go.PathSegment(go.PathSegment.Line,et,nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(kt,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,0,nt).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(kt,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et,nt).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new Ye("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(kt,et,nt){var dt=kt?kt.parameter1:NaN;isNaN(dt)?dt=.1:dt<-1?dt=-1:dt>1&&(dt=1);var lt=Math.abs(dt)*et;if(dt===0){var pt=new go.Geometry(go.Geometry.Rectangle);return pt.startX=0,pt.startY=0,pt.endX=et,pt.endY=nt,pt}else{var pt=new go.Geometry;return dt>0?pt.add(new go.PathFigure(lt,0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et-lt,nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt).close())):pt.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et-lt,0)).add(new go.PathSegment(go.PathSegment.Line,et,nt)).add(new go.PathSegment(go.PathSegment.Line,lt,nt).close())),lt<et/2&&pt.setSpots(lt/et,0,(et-lt)/et,1),pt}}),go.Shape.defineFigureGenerator("Parallelogram","Parallelogram1"),go.Shape.setFigureParameter("Parallelogram2",0,new Ye("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(kt,et,nt){var dt=kt?kt.parameter1:NaN;isNaN(dt)?dt=10:dt<-et?dt=-et:dt>et&&(dt=et);var lt=Math.abs(dt);if(dt===0){var pt=new go.Geometry(go.Geometry.Rectangle);return pt.startX=0,pt.startY=0,pt.endX=et,pt.endY=nt,pt}else{var pt=new go.Geometry;return dt>0?pt.add(new go.PathFigure(lt,0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et-lt,nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt).close())):pt.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et-lt,0)).add(new go.PathSegment(go.PathSegment.Line,et,nt)).add(new go.PathSegment(go.PathSegment.Line,lt,nt).close())),lt<et/2&&pt.setSpots(lt/et,0,(et-lt)/et,1),pt}}),go.Shape.setFigureParameter("Trapezoid1",0,new Ye("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(kt,et,nt){var dt=kt?kt.parameter1:NaN;isNaN(dt)?dt=.2:dt<.5?dt=-.5:dt>.5&&(dt=.5);var lt=Math.abs(dt)*et;if(dt===0){var pt=new go.Geometry(go.Geometry.Rectangle);return pt.startX=0,pt.startY=0,pt.endX=et,pt.endY=nt,pt}else{var pt=new go.Geometry;return dt>0?pt.add(new go.PathFigure(lt,0).add(new go.PathSegment(go.PathSegment.Line,et-lt,0)).add(new go.PathSegment(go.PathSegment.Line,et,nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt).close())):pt.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et-lt,nt)).add(new go.PathSegment(go.PathSegment.Line,lt,nt).close())),lt<et/2&&pt.setSpots(lt/et,0,(et-lt)/et,1),pt}}),go.Shape.defineFigureGenerator("Trapezoid","Trapezoid1"),go.Shape.setFigureParameter("Trapezoid2",0,new Ye("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(kt,et,nt){var dt=kt?kt.parameter1:NaN;isNaN(dt)?dt=20:dt<-et?dt=-et/2:dt>et&&(dt=et/2);var lt=Math.abs(dt);if(dt===0){var pt=new go.Geometry(go.Geometry.Rectangle);return pt.startX=0,pt.startY=0,pt.endX=et,pt.endY=nt,pt}else{var pt=new go.Geometry;return dt>0?pt.add(new go.PathFigure(lt,0).add(new go.PathSegment(go.PathSegment.Line,et-lt,0)).add(new go.PathSegment(go.PathSegment.Line,et,nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt).close())):pt.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et-lt,nt)).add(new go.PathSegment(go.PathSegment.Line,lt,nt).close())),lt<et/2&&pt.setSpots(lt/et,0,(et-lt)/et,1),pt}}),go.Shape.setFigureParameter("ManualOperation",0,new Ye("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(kt,et,nt){var dt=kt?kt.parameter1:NaN;isNaN(dt)?dt=10:dt<-et?dt=-et/2:dt>et&&(dt=et/2);var lt=Math.abs(dt);if(dt===0){var pt=new go.Geometry(go.Geometry.Rectangle);return pt.startX=0,pt.startY=0,pt.endX=et,pt.endY=nt,pt}else{var pt=new go.Geometry;return dt>0?pt.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et-lt,nt)).add(new go.PathSegment(go.PathSegment.Line,lt,nt).close())):pt.add(new go.PathFigure(lt,0).add(new go.PathSegment(go.PathSegment.Line,et-lt,0)).add(new go.PathSegment(go.PathSegment.Line,et,nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt).close())),lt<et/2&&pt.setSpots(lt/et,0,(et-lt)/et,1),pt}});var Le=[];function ce(){var kt=Le.pop();return kt===void 0?[]:kt}function ve(kt){kt.length=0,Le.push(kt)}function he(kt){for(var et=ce(),nt=.5,dt=.5,lt=Math.PI*1.5,pt=0,yt=0;yt<kt;yt++)pt=2*Math.PI/kt*yt+lt,et[yt]=new go.Point(dt+nt*Math.cos(pt),dt+nt*Math.sin(pt));return et.push(et[0]),et}function Oe(kt){var et=je(kt),nt=ce();nt[0]=et[0];for(var dt=1,lt=1;dt<et.length;dt+=2,lt+=3)nt[lt]=et[dt],nt[lt+1]=et[dt],nt[lt+2]=et[dt+1];return ve(et),nt}function je(kt){for(var et=he(kt),nt=ce(),dt=Math.floor(et.length/2),lt=et.length-1,pt=kt%2===0?2:1,yt=0;yt<lt;yt++){var At=et[yt],Dt=et[yt+1],Ut=et[(dt+yt-1)%lt],Qt=et[(dt+yt+pt)%lt];nt[yt*2]=At,nt[yt*2+1]=fe(At.x,At.y,Ut.x,Ut.y,Dt.x,Dt.y,Qt.x,Qt.y,new go.Point)}return nt[nt.length]=nt[0],ve(et),nt}go.Shape.defineFigureGenerator("Pentagon",function(kt,et,nt){var dt=he(5),lt=new go.Geometry,pt=new go.PathFigure(dt[0].x*et,dt[0].y*nt,!0);lt.add(pt);for(var yt=1;yt<5;yt++)pt.add(new go.PathSegment(go.PathSegment.Line,dt[yt].x*et,dt[yt].y*nt));return pt.add(new go.PathSegment(go.PathSegment.Line,dt[0].x*et,dt[0].y*nt).close()),ve(dt),lt.spot1=new go.Spot(.2,.22),lt.spot2=new go.Spot(.8,.9),lt}),go.Shape.defineFigureGenerator("Hexagon",function(kt,et,nt){var dt=he(6),lt=new go.Geometry,pt=new go.PathFigure(dt[0].x*et,dt[0].y*nt,!0);lt.add(pt);for(var yt=1;yt<6;yt++)pt.add(new go.PathSegment(go.PathSegment.Line,dt[yt].x*et,dt[yt].y*nt));return pt.add(new go.PathSegment(go.PathSegment.Line,dt[0].x*et,dt[0].y*nt).close()),ve(dt),lt.spot1=new go.Spot(.07,.25),lt.spot2=new go.Spot(.93,.75),lt}),go.Shape.defineFigureGenerator("Heptagon",function(kt,et,nt){var dt=he(7),lt=new go.Geometry,pt=new go.PathFigure(dt[0].x*et,dt[0].y*nt,!0);lt.add(pt);for(var yt=1;yt<7;yt++)pt.add(new go.PathSegment(go.PathSegment.Line,dt[yt].x*et,dt[yt].y*nt));return pt.add(new go.PathSegment(go.PathSegment.Line,dt[0].x*et,dt[0].y*nt).close()),ve(dt),lt.spot1=new go.Spot(.2,.15),lt.spot2=new go.Spot(.8,.85),lt}),go.Shape.defineFigureGenerator("Octagon",function(kt,et,nt){var dt=he(8),lt=new go.Geometry,pt=new go.PathFigure(dt[0].x*et,dt[0].y*nt,!0);lt.add(pt);for(var yt=1;yt<8;yt++)pt.add(new go.PathSegment(go.PathSegment.Line,dt[yt].x*et,dt[yt].y*nt));return pt.add(new go.PathSegment(go.PathSegment.Line,dt[0].x*et,dt[0].y*nt).close()),ve(dt),lt.spot1=new go.Spot(.15,.15),lt.spot2=new go.Spot(.85,.85),lt}),go.Shape.defineFigureGenerator("Nonagon",function(kt,et,nt){var dt=he(9),lt=new go.Geometry,pt=new go.PathFigure(dt[0].x*et,dt[0].y*nt,!0);lt.add(pt);for(var yt=1;yt<9;yt++)pt.add(new go.PathSegment(go.PathSegment.Line,dt[yt].x*et,dt[yt].y*nt));return pt.add(new go.PathSegment(go.PathSegment.Line,dt[0].x*et,dt[0].y*nt).close()),ve(dt),lt.spot1=new go.Spot(.17,.13),lt.spot2=new go.Spot(.82,.82),lt}),go.Shape.defineFigureGenerator("Decagon",function(kt,et,nt){var dt=he(10),lt=new go.Geometry,pt=new go.PathFigure(dt[0].x*et,dt[0].y*nt,!0);lt.add(pt);for(var yt=1;yt<10;yt++)pt.add(new go.PathSegment(go.PathSegment.Line,dt[yt].x*et,dt[yt].y*nt));return pt.add(new go.PathSegment(go.PathSegment.Line,dt[0].x*et,dt[0].y*nt).close()),ve(dt),lt.spot1=new go.Spot(.16,.16),lt.spot2=new go.Spot(.84,.84),lt}),go.Shape.defineFigureGenerator("Dodecagon",function(kt,et,nt){var dt=he(12),lt=new go.Geometry,pt=new go.PathFigure(dt[0].x*et,dt[0].y*nt,!0);lt.add(pt);for(var yt=1;yt<12;yt++)pt.add(new go.PathSegment(go.PathSegment.Line,dt[yt].x*et,dt[yt].y*nt));return pt.add(new go.PathSegment(go.PathSegment.Line,dt[0].x*et,dt[0].y*nt).close()),ve(dt),lt.spot1=new go.Spot(.16,.16),lt.spot2=new go.Spot(.84,.84),lt}),go.Shape.defineFigureGenerator("FivePointedStar",function(kt,et,nt){var dt=je(5),lt=new go.Geometry,pt=new go.PathFigure(dt[0].x*et,dt[0].y*nt,!0);lt.add(pt);for(var yt=1;yt<10;yt++)pt.add(new go.PathSegment(go.PathSegment.Line,dt[yt].x*et,dt[yt].y*nt));return pt.add(new go.PathSegment(go.PathSegment.Line,dt[0].x*et,dt[0].y*nt).close()),ve(dt),lt.spot1=new go.Spot(.266,.333),lt.spot2=new go.Spot(.733,.733),lt}),go.Shape.defineFigureGenerator("SixPointedStar",function(kt,et,nt){var dt=je(6),lt=new go.Geometry,pt=new go.PathFigure(dt[0].x*et,dt[0].y*nt,!0);lt.add(pt);for(var yt=1;yt<12;yt++)pt.add(new go.PathSegment(go.PathSegment.Line,dt[yt].x*et,dt[yt].y*nt));return pt.add(new go.PathSegment(go.PathSegment.Line,dt[0].x*et,dt[0].y*nt).close()),ve(dt),lt.spot1=new go.Spot(.17,.25),lt.spot2=new go.Spot(.83,.75),lt}),go.Shape.defineFigureGenerator("SevenPointedStar",function(kt,et,nt){var dt=je(7),lt=new go.Geometry,pt=new go.PathFigure(dt[0].x*et,dt[0].y*nt,!0);lt.add(pt);for(var yt=1;yt<14;yt++)pt.add(new go.PathSegment(go.PathSegment.Line,dt[yt].x*et,dt[yt].y*nt));return pt.add(new go.PathSegment(go.PathSegment.Line,dt[0].x*et,dt[0].y*nt).close()),ve(dt),lt.spot1=new go.Spot(.222,.277),lt.spot2=new go.Spot(.777,.666),lt}),go.Shape.defineFigureGenerator("EightPointedStar",function(kt,et,nt){var dt=je(8),lt=new go.Geometry,pt=new go.PathFigure(dt[0].x*et,dt[0].y*nt,!0);lt.add(pt);for(var yt=1;yt<16;yt++)pt.add(new go.PathSegment(go.PathSegment.Line,dt[yt].x*et,dt[yt].y*nt));return pt.add(new go.PathSegment(go.PathSegment.Line,dt[0].x*et,dt[0].y*nt).close()),ve(dt),lt.spot1=new go.Spot(.25,.25),lt.spot2=new go.Spot(.75,.75),lt}),go.Shape.defineFigureGenerator("NinePointedStar",function(kt,et,nt){var dt=je(9),lt=new go.Geometry,pt=new go.PathFigure(dt[0].x*et,dt[0].y*nt,!0);lt.add(pt);for(var yt=1;yt<18;yt++)pt.add(new go.PathSegment(go.PathSegment.Line,dt[yt].x*et,dt[yt].y*nt));return pt.add(new go.PathSegment(go.PathSegment.Line,dt[0].x*et,dt[0].y*nt).close()),ve(dt),lt.spot1=new go.Spot(.222,.277),lt.spot2=new go.Spot(.777,.666),lt}),go.Shape.defineFigureGenerator("TenPointedStar",function(kt,et,nt){var dt=je(10),lt=new go.Geometry,pt=new go.PathFigure(dt[0].x*et,dt[0].y*nt,!0);lt.add(pt);for(var yt=1;yt<20;yt++)pt.add(new go.PathSegment(go.PathSegment.Line,dt[yt].x*et,dt[yt].y*nt));return pt.add(new go.PathSegment(go.PathSegment.Line,dt[0].x*et,dt[0].y*nt).close()),ve(dt),lt.spot1=new go.Spot(.281,.261),lt.spot2=new go.Spot(.723,.748),lt}),go.Shape.defineFigureGenerator("FivePointedBurst",function(kt,et,nt){var dt=Oe(5),lt=new go.Geometry,pt=new go.PathFigure(dt[0].x*et,dt[0].y*nt,!0);lt.add(pt);for(var yt=1;yt<dt.length;yt+=3)pt.add(new go.PathSegment(go.PathSegment.Bezier,dt[yt+2].x*et,dt[yt+2].y*nt,dt[yt].x*et,dt[yt].y*nt,dt[yt+1].x*et,dt[yt+1].y*nt));return pt.segments.last().close(),ve(dt),lt.spot1=new go.Spot(.222,.277),lt.spot2=new go.Spot(.777,.777),lt}),go.Shape.defineFigureGenerator("SixPointedBurst",function(kt,et,nt){var dt=Oe(6),lt=new go.Geometry,pt=new go.PathFigure(dt[0].x*et,dt[0].y*nt,!0);lt.add(pt);for(var yt=1;yt<dt.length;yt+=3)pt.add(new go.PathSegment(go.PathSegment.Bezier,dt[yt+2].x*et,dt[yt+2].y*nt,dt[yt].x*et,dt[yt].y*nt,dt[yt+1].x*et,dt[yt+1].y*nt));return pt.segments.last().close(),ve(dt),lt.spot1=new go.Spot(.17,.222),lt.spot2=new go.Spot(.833,.777),lt}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(kt,et,nt){var dt=Oe(7),lt=new go.Geometry,pt=new go.PathFigure(dt[0].x*et,dt[0].y*nt,!0);lt.add(pt);for(var yt=1;yt<dt.length;yt+=3)pt.add(new go.PathSegment(go.PathSegment.Bezier,dt[yt+2].x*et,dt[yt+2].y*nt,dt[yt].x*et,dt[yt].y*nt,dt[yt+1].x*et,dt[yt+1].y*nt));return pt.segments.last().close(),ve(dt),lt.spot1=new go.Spot(.222,.222),lt.spot2=new go.Spot(.777,.777),lt}),go.Shape.defineFigureGenerator("EightPointedBurst",function(kt,et,nt){var dt=Oe(8),lt=new go.Geometry,pt=new go.PathFigure(dt[0].x*et,dt[0].y*nt,!0);lt.add(pt);for(var yt=1;yt<dt.length;yt+=3)pt.add(new go.PathSegment(go.PathSegment.Bezier,dt[yt+2].x*et,dt[yt+2].y*nt,dt[yt].x*et,dt[yt].y*nt,dt[yt+1].x*et,dt[yt+1].y*nt));return pt.segments.last().close(),ve(dt),lt.spot1=new go.Spot(.222,.222),lt.spot2=new go.Spot(.777,.777),lt}),go.Shape.defineFigureGenerator("NinePointedBurst",function(kt,et,nt){var dt=Oe(9),lt=new go.Geometry,pt=new go.PathFigure(dt[0].x*et,dt[0].y*nt,!0);lt.add(pt);for(var yt=1;yt<dt.length;yt+=3)pt.add(new go.PathSegment(go.PathSegment.Bezier,dt[yt+2].x*et,dt[yt+2].y*nt,dt[yt].x*et,dt[yt].y*nt,dt[yt+1].x*et,dt[yt+1].y*nt));return pt.segments.last().close(),ve(dt),lt.spot1=new go.Spot(.222,.222),lt.spot2=new go.Spot(.777,.777),lt}),go.Shape.defineFigureGenerator("TenPointedBurst",function(kt,et,nt){var dt=Oe(10),lt=new go.Geometry,pt=new go.PathFigure(dt[0].x*et,dt[0].y*nt,!0);lt.add(pt);for(var yt=1;yt<dt.length;yt+=3)pt.add(new go.PathSegment(go.PathSegment.Bezier,dt[yt+2].x*et,dt[yt+2].y*nt,dt[yt].x*et,dt[yt].y*nt,dt[yt+1].x*et,dt[yt+1].y*nt));return pt.segments.last().close(),ve(dt),lt.spot1=new go.Spot(.222,.222),lt.spot2=new go.Spot(.777,.777),lt}),go.Shape.setFigureParameter("FramedRectangle",0,new Ye("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new Ye("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(kt,et,nt){var dt=kt?kt.parameter1:NaN,lt=kt?kt.parameter2:NaN;isNaN(dt)&&(dt=8),isNaN(lt)&&(lt=8);var pt=new go.Geometry,yt=new go.PathFigure(0,0,!0);return pt.add(yt),yt.add(new go.PathSegment(go.PathSegment.Line,et,0)),yt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),yt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close()),dt<et/2&<<nt/2&&(yt.add(new go.PathSegment(go.PathSegment.Move,dt,lt)),yt.add(new go.PathSegment(go.PathSegment.Line,dt,nt-lt)),yt.add(new go.PathSegment(go.PathSegment.Line,et-dt,nt-lt)),yt.add(new go.PathSegment(go.PathSegment.Line,et-dt,lt).close())),pt.setSpots(0,0,1,1,dt,lt,-dt,-lt),pt}),go.Shape.setFigureParameter("Ring",0,new Ye("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(kt,et,nt){var dt=kt?kt.parameter1:NaN;(isNaN(dt)||dt<0)&&(dt=8);var lt=et/2,pt=new go.Geometry,yt=new go.PathFigure(et,et/2,!0);pt.add(yt),yt.add(new go.PathSegment(go.PathSegment.Arc,0,360,lt,lt,lt,lt).close());var At=Math.max(lt-dt,0);return At>0&&(yt.add(new go.PathSegment(go.PathSegment.Move,et/2+At,et/2)),yt.add(new go.PathSegment(go.PathSegment.Arc,0,-360,lt,lt,At,At).close())),pt.spot1=Se,pt.spot2=Me,pt.defaultStretch=go.GraphObject.Uniform,pt}),go.Shape.defineFigureGenerator("Cloud",function(kt,et,nt){return new go.Geometry().add(new go.PathFigure(.08034461*et,.1944299*nt,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*et,.05349299*nt,-.09239631*et,.07836421*nt,.1406031*et,-.0542823*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*et,.074219*nt,.2450511*et,-.00697547*nt,.3776197*et,-.01112067*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*et,.07004196*nt,.4539471*et,0,.6066018*et,-.02526587*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*et,.08370865*nt,.6914277*et,-.01904177*nt,.8921095*et,-.01220843*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*et,.3194596*nt,1.036446*et,.04105738*nt,1.020377*et,.3022052*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*et,.562044*nt,1.04448*et,.360238*nt,.992256*et,.5219009*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*et,.8217117*nt,1.032337*et,.5771781*nt,1.018411*et,.8120651*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*et,.9156953*nt,1.028411*et,.9571472*nt,.8556702*et,1.052487*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*et,.9310455*nt,.7431877*et,1.009325*nt,.5624123*et,1.021761*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*et,.9344623*nt,.4820677*et,1.031761*nt,.3030112*et,1.002796*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*et,.870098*nt,.2329994*et,1.01518*nt,.03213784*et,1.01518*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*et,.6545475*nt,-.02812061*et,.9032597*nt,-.01205169*et,.6835638*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*et,.4265613*nt,-.01812061*et,.6089503*nt,-.00606892*et,.4555777*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*et,.1944299*nt,-.01606892*et,.3892545*nt,-.01205169*et,.1944299*nt))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(kt,et,nt){var dt=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(dt*et,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-dt)*et,0)).add(new go.PathSegment(go.PathSegment.Line,et,dt*nt)).add(new go.PathSegment(go.PathSegment.Line,et,(1-dt)*nt)).add(new go.PathSegment(go.PathSegment.Line,(1-dt)*et,nt)).add(new go.PathSegment(go.PathSegment.Line,dt*et,nt)).add(new go.PathSegment(go.PathSegment.Line,0,(1-dt)*nt)).add(new go.PathSegment(go.PathSegment.Line,0,dt*nt).close())).setSpots(dt/2,dt/2,1-dt/2,1-dt/2)}),go.Shape.setFigureParameter("Pie",0,new Ye("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new Ye("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(kt,et,nt){var dt=kt?kt.parameter1:NaN,lt=kt?kt.parameter2:NaN;isNaN(dt)&&(dt=0),isNaN(lt)&&(lt=315);var pt=dt%360;pt<0&&(pt+=360);var yt=lt%360,At=Math.min(et,nt)/2;return new go.Geometry().add(new go.PathFigure(At,At).add(new go.PathSegment(go.PathSegment.Arc,pt,yt,At,At,At,At).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(kt,et,nt){var dt=Jt/Math.SQRT2*.5,lt=Math.SQRT2/2,pt=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(et,nt,!0).add(new go.PathSegment(go.PathSegment.Bezier,lt*et,pt*nt,et,(1-dt)*nt,(lt+dt)*et,(pt+dt)*nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt).close()))}),go.Shape.setFigureParameter("ThickCross",0,new Ye("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(kt,et,nt){var dt=kt?kt.parameter1:NaN;(isNaN(dt)||dt<0)&&(dt=30);var lt=Math.min(dt,et)/2,pt=et/2,yt=nt/2;return new go.Geometry().add(new go.PathFigure(pt-lt,0,!0).add(new go.PathSegment(go.PathSegment.Line,pt+lt,0)).add(new go.PathSegment(go.PathSegment.Line,pt+lt,yt-lt)).add(new go.PathSegment(go.PathSegment.Line,et,yt-lt)).add(new go.PathSegment(go.PathSegment.Line,et,yt+lt)).add(new go.PathSegment(go.PathSegment.Line,pt+lt,yt+lt)).add(new go.PathSegment(go.PathSegment.Line,pt+lt,nt)).add(new go.PathSegment(go.PathSegment.Line,pt-lt,nt)).add(new go.PathSegment(go.PathSegment.Line,pt-lt,yt+lt)).add(new go.PathSegment(go.PathSegment.Line,0,yt+lt)).add(new go.PathSegment(go.PathSegment.Line,0,yt-lt)).add(new go.PathSegment(go.PathSegment.Line,pt-lt,yt-lt).close()))}),go.Shape.setFigureParameter("ThinCross",0,new Ye("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(kt,et,nt){var dt=kt?kt.parameter1:NaN;(isNaN(dt)||dt<0)&&(dt=10);var lt=Math.min(dt,et)/2,pt=et/2,yt=nt/2;return new go.Geometry().add(new go.PathFigure(pt-lt,0,!0).add(new go.PathSegment(go.PathSegment.Line,pt+lt,0)).add(new go.PathSegment(go.PathSegment.Line,pt+lt,yt-lt)).add(new go.PathSegment(go.PathSegment.Line,et,yt-lt)).add(new go.PathSegment(go.PathSegment.Line,et,yt+lt)).add(new go.PathSegment(go.PathSegment.Line,pt+lt,yt+lt)).add(new go.PathSegment(go.PathSegment.Line,pt+lt,nt)).add(new go.PathSegment(go.PathSegment.Line,pt-lt,nt)).add(new go.PathSegment(go.PathSegment.Line,pt-lt,yt+lt)).add(new go.PathSegment(go.PathSegment.Line,0,yt+lt)).add(new go.PathSegment(go.PathSegment.Line,0,yt-lt)).add(new go.PathSegment(go.PathSegment.Line,pt-lt,yt-lt).close()))}),go.Shape.setFigureParameter("ThickX",0,new Ye("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(kt,et,nt){var dt=kt?kt.parameter1:NaN;if((isNaN(dt)||dt<0)&&(dt=30),et===0||nt===0){var lt=new go.Geometry(go.Geometry.Rectangle);return lt.startX=0,lt.startY=0,lt.endX=et,lt.endY=nt,lt}else{var pt=et/2,yt=nt/2,At=Math.atan2(nt,et),Dt=dt-Math.min(Math.cos(At)*dt/2,pt),Ut=dt-Math.min(Math.sin(At)*dt/2,yt),lt=new go.Geometry,Qt=new go.PathFigure(Dt,0,!0);return lt.add(Qt),Qt.add(new go.PathSegment(go.PathSegment.Line,pt,.2*nt)),Qt.add(new go.PathSegment(go.PathSegment.Line,et-Dt,0)),Qt.add(new go.PathSegment(go.PathSegment.Line,et,Ut)),Qt.add(new go.PathSegment(go.PathSegment.Line,.8*et,yt)),Qt.add(new go.PathSegment(go.PathSegment.Line,et,nt-Ut)),Qt.add(new go.PathSegment(go.PathSegment.Line,et-Dt,nt)),Qt.add(new go.PathSegment(go.PathSegment.Line,pt,.8*nt)),Qt.add(new go.PathSegment(go.PathSegment.Line,Dt,nt)),Qt.add(new go.PathSegment(go.PathSegment.Line,0,nt-Ut)),Qt.add(new go.PathSegment(go.PathSegment.Line,.2*et,yt)),Qt.add(new go.PathSegment(go.PathSegment.Line,0,Ut).close()),lt}}),go.Shape.setFigureParameter("ThinX",0,new Ye("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(kt,et,nt){var dt=kt?kt.parameter1:NaN;(isNaN(dt)||dt<0)&&(dt=10);var lt=new go.Geometry,pt=new go.PathFigure(.1*et,0,!0);return lt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.4*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.9*et,0)),pt.add(new go.PathSegment(go.PathSegment.Line,et,.1*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.5*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,et,.9*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.9*et,nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.6*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.1*et,nt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,.9*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.4*et,.5*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,.1*nt).close()),lt}),go.Shape.setFigureParameter("SquareIBeam",0,new Ye("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(kt,et,nt){var dt=kt?kt.parameter1:NaN;isNaN(dt)&&(dt=.2);var lt=new go.Geometry,pt=new go.PathFigure(0,0,!0);return lt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,et,0)),pt.add(new go.PathSegment(go.PathSegment.Line,et,dt*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,(.5+dt/2)*et,dt*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,(.5+dt/2)*et,(1-dt)*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,et,(1-dt)*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,(1-dt)*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,(.5-dt/2)*et,(1-dt)*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,(.5-dt/2)*et,dt*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,dt*nt).close()),lt}),go.Shape.setFigureParameter("RoundedIBeam",0,new Ye("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(kt,et,nt){var dt=kt?kt.parameter1:NaN;isNaN(dt)&&(dt=.5);var lt=new go.Geometry,pt=new go.PathFigure(0,0,!0);return lt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,et,0)),pt.add(new go.PathSegment(go.PathSegment.Bezier,et,nt,Math.abs(1-dt)*et,.25*nt,Math.abs(1-dt)*et,.75*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,0,0,dt*et,.75*nt,dt*et,.25*nt).close()),lt}),go.Shape.defineFigureGenerator("HalfEllipse",function(kt,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,et,.5*nt,Jt*et,0,et,(.5-Jt/2)*nt)).add(new go.PathSegment(go.PathSegment.Bezier,0,nt,et,(.5+Jt/2)*nt,Jt*et,nt).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(kt,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,nt,et,0,et,nt)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*et,.75*nt,.5*et,.25*nt).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(kt,et,nt){return new go.Geometry().add(new go.PathFigure(.5*et,nt,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*nt,.1*et,.8*nt,0,.5*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.3*nt,0,0,.45*et,0)).add(new go.PathSegment(go.PathSegment.Bezier,et,.3*nt,.55*et,0,et,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*et,nt,et,.5*nt,.9*et,.8*nt).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(kt,et,nt){return new go.Geometry().add(new go.PathFigure(.5*et,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*et,.01*nt)).add(new go.PathSegment(go.PathSegment.Bezier,et,.5*nt,.6*et,.2*nt,et,.25*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.55*et,.7*nt,et,.8*nt,.6*et,.8*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.75*et,nt,.5*et,.75*nt,.55*et,.95*nt)).add(new go.PathSegment(go.PathSegment.Line,.25*et,nt)).add(new go.PathSegment(go.PathSegment.Bezier,.45*et,.7*nt,.45*et,.95*nt,.5*et,.75*nt)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*nt,.4*et,.8*nt,0,.8*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.49*et,.01*nt,0,.25*nt,.4*et,.2*nt).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(kt,et,nt){var dt=new go.Geometry,lt=new go.PathFigure(.4*et,.6*nt,!0);dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Bezier,.15*et,nt,.5*et,.75*nt,.45*et,.95*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.85*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.6*et,.6*nt,.55*et,.95*nt,.5*et,.75*nt));var pt=.2,yt=.3,At=0,Dt=pt*Jt;return lt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+yt)*et,(.5+pt+At)*nt,(.5-pt+yt)*et,(.5+Dt+At)*nt,(.5-Dt+yt)*et,(.5+pt+At)*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+pt+yt)*et,(.5+At)*nt,(.5+Dt+yt)*et,(.5+pt+At)*nt,(.5+pt+yt)*et,(.5+Dt+At)*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+yt)*et,(.5-pt+At)*nt,(1-.5+pt+yt)*et,(.5-Dt+At)*nt,(.5+Dt+yt)*et,(.5-pt+At)*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.65*et,.36771243*nt,(.5-Dt+yt)*et,(.5-pt+At)*nt,(.5-pt+yt+.05)*et,(.5-Dt+At-.02)*nt)),pt=.2,yt=0,At=-.3,Dt=pt*Jt,lt.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+pt+yt)*et,(.5+At)*nt,(.5+Dt+yt)*et,(.5+pt+At)*nt,(.5+pt+yt)*et,(.5+Dt+At)*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+yt)*et,(.5-pt+At)*nt,(1-.5+pt+yt)*et,(.5-Dt+At)*nt,(.5+Dt+yt)*et,(.5-pt+At)*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-pt+yt)*et,(.5+At)*nt,(.5-Dt+yt)*et,(.5-pt+At)*nt,(.5-pt+yt)*et,(.5-Dt+At)*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-Dt+yt)*et,(.5+pt+At)*nt,(.5-pt+yt)*et,(.5+Dt+At)*nt,(.5-Dt+yt)*et,(.5+pt+At)*nt)),pt=.2,yt=-.3,At=0,Dt=pt*Jt,lt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+yt)*et,(.5-pt+At)*nt,(1-.5+pt+yt-.05)*et,(.5-Dt+At-.02)*nt,(.5+Dt+yt)*et,(.5-pt+At)*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-pt+yt)*et,(.5+At)*nt,(.5-Dt+yt)*et,(.5-pt+At)*nt,(.5-pt+yt)*et,(.5-Dt+At)*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+yt)*et,(.5+pt+At)*nt,(.5-pt+yt)*et,(.5+Dt+At)*nt,(.5-Dt+yt)*et,(.5+pt+At)*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.4*et,.6*nt,(.5+Dt+yt)*et,(.5+pt+At)*nt,(.5+pt+yt)*et,(.5+Dt+At)*nt).close()),dt.setSpots(.06,.33,.93,.68),dt}),go.Shape.defineFigureGenerator("YinYang",function(kt,et,nt){var dt=new go.Geometry,lt=new go.PathFigure(et*.5,0,!0);dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Arc,270,180,et*.5,et*.5,et*.5,et*.5)),lt.add(new go.PathSegment(go.PathSegment.Arc,90,-180,et*.5,et*.75,et*.25,et*.25)),lt.add(new go.PathSegment(go.PathSegment.Arc,90,180,et*.5,et*.25,et*.25,et*.25));var pt=.1,yt=.5,At=.25;return lt.add(new go.PathSegment(go.PathSegment.Move,(yt+pt)*et,At*nt)),lt.add(new go.PathSegment(go.PathSegment.Arc,0,-360,et*yt,nt*At,pt*et,pt*et).close()),lt=new go.PathFigure(et*.5,0,!1),dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Arc,270,-180,et*.5,et*.5,et*.5,et*.5)),At=.75,lt=new go.PathFigure((yt+pt)*et,At*nt,!0),dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Arc,0,360,et*yt,nt*At,pt*et,pt*et).close()),dt.defaultStretch=go.GraphObject.Uniform,dt}),go.Shape.defineFigureGenerator("Peace",function(kt,et,nt){var dt=.8535533905932737,lt=.5*et,pt=.5*nt;return new go.Geometry().add(new go.PathFigure(lt,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,lt,pt,lt,pt)).add(new go.PathSegment(go.PathSegment.Line,lt,nt)).add(new go.PathSegment(go.PathSegment.Move,lt,pt)).add(new go.PathSegment(go.PathSegment.Line,(1-dt)*et,dt*nt)).add(new go.PathSegment(go.PathSegment.Move,lt,pt)).add(new go.PathSegment(go.PathSegment.Line,dt*et,dt*nt)))}),go.Shape.defineFigureGenerator("NotAllowed",function(kt,et,nt){var dt=new go.Geometry,lt=Jt*.5,pt=.5,yt=.5,At=.5,Dt=new go.PathFigure(yt*et,(At-pt)*nt);dt.add(Dt),Dt.add(new go.PathSegment(go.PathSegment.Bezier,(yt-pt)*et,At*nt,(yt-lt)*et,(At-pt)*nt,(yt-pt)*et,(At-lt)*nt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,yt*et,(At+pt)*nt,(yt-pt)*et,(At+lt)*nt,(yt-lt)*et,(At+pt)*nt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,(yt+pt)*et,At*nt,(yt+lt)*et,(At+pt)*nt,(yt+pt)*et,(At+lt)*nt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,yt*et,(At-pt)*nt,(yt+pt)*et,(At-lt)*nt,(yt+lt)*et,(At-pt)*nt)),pt=.4,lt=Jt*.4;var Ut=ht(),Qt=ht(),$t=ht(),ne=ht();Re(yt,At-pt,yt+lt,At-pt,yt+pt,At-lt,yt+pt,At,.42,Ut,Qt,$t,ne,ne);var _t=ht(),Pe=ht(),ue=ht();Re(yt,At-pt,yt+lt,At-pt,yt+pt,At-lt,yt+pt,At,.58,ne,ne,ue,_t,Pe);var pe=ht(),oe=ht(),Ae=ht();Re(yt,At+pt,yt-lt,At+pt,yt-pt,At+lt,yt-pt,At,.42,pe,oe,Ae,ne,ne);var Ie=ht(),an=ht(),Gn=ht();return Re(yt,At+pt,yt-lt,At+pt,yt-pt,At+lt,yt-pt,At,.58,ne,ne,Gn,Ie,an),Dt.add(new go.PathSegment(go.PathSegment.Move,Gn.x*et,Gn.y*nt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,(yt-pt)*et,At*nt,Ie.x*et,Ie.y*nt,an.x*et,an.y*nt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,yt*et,(At-pt)*nt,(yt-pt)*et,(At-lt)*nt,(yt-lt)*et,(At-pt)*nt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,$t.x*et,$t.y*nt,Ut.x*et,Ut.y*nt,Qt.x*et,Qt.y*nt)),Dt.add(new go.PathSegment(go.PathSegment.Line,Gn.x*et,Gn.y*nt).close()),Dt.add(new go.PathSegment(go.PathSegment.Move,Ae.x*et,Ae.y*nt)),Dt.add(new go.PathSegment(go.PathSegment.Line,ue.x*et,ue.y*nt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,(yt+pt)*et,At*nt,_t.x*et,_t.y*nt,Pe.x*et,Pe.y*nt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,yt*et,(At+pt)*nt,(yt+pt)*et,(At+lt)*nt,(yt+lt)*et,(At+pt)*nt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,Ae.x*et,Ae.y*nt,pe.x*et,pe.y*nt,oe.x*et,oe.y*nt).close()),Ht(Ut),Ht(Qt),Ht($t),Ht(ne),Ht(_t),Ht(Pe),Ht(ue),Ht(pe),Ht(oe),Ht(Ae),Ht(Ie),Ht(an),Ht(Gn),dt.defaultStretch=go.GraphObject.Uniform,dt}),go.Shape.defineFigureGenerator("Fragile",function(kt,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*et,0)).add(new go.PathSegment(go.PathSegment.Line,.2*et,.15*nt)).add(new go.PathSegment(go.PathSegment.Line,.3*et,.25*nt)).add(new go.PathSegment(go.PathSegment.Line,.29*et,.33*nt)).add(new go.PathSegment(go.PathSegment.Line,.35*et,.25*nt)).add(new go.PathSegment(go.PathSegment.Line,.3*et,.15*nt)).add(new go.PathSegment(go.PathSegment.Line,.4*et,0)).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*et,.5*nt,et,.25*nt,.75*et,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,.55*et,.9*nt)).add(new go.PathSegment(go.PathSegment.Line,.7*et,.9*nt)).add(new go.PathSegment(go.PathSegment.Line,.7*et,nt)).add(new go.PathSegment(go.PathSegment.Line,.3*et,nt)).add(new go.PathSegment(go.PathSegment.Line,.3*et,.9*nt)).add(new go.PathSegment(go.PathSegment.Line,.45*et,.9*nt)).add(new go.PathSegment(go.PathSegment.Line,.45*et,.5*nt)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*et,.5*nt,0,.25*nt).close()))}),go.Shape.setFigureParameter("HourGlass",0,new Ye("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(kt,et,nt){var dt=kt?kt.parameter1:NaN;(isNaN(dt)||dt<0)&&(dt=30),dt>et&&(dt=et);var lt=(et-dt)/2,pt=lt+dt;return new go.Geometry().add(new go.PathFigure(pt,.5*nt).add(new go.PathSegment(go.PathSegment.Line,et,nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt)).add(new go.PathSegment(go.PathSegment.Line,lt,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,et,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(kt,et,nt){return new go.Geometry().add(new go.PathFigure(0,.55*nt).add(new go.PathSegment(go.PathSegment.Line,.6*et,0)).add(new go.PathSegment(go.PathSegment.Line,.3*et,.45*nt)).add(new go.PathSegment(go.PathSegment.Line,et,.45*nt)).add(new go.PathSegment(go.PathSegment.Line,.4*et,nt)).add(new go.PathSegment(go.PathSegment.Line,.7*et,.55*nt).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(kt,et,nt){var dt=new go.Geometry,lt=Jt*.4,pt=.4,yt=.5,At=.5,Dt=ht(),Ut=ht(),Qt=ht(),$t=ht(),ne=new go.PathFigure((yt-pt)*et,At*nt,!1);dt.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,yt*et,(At-pt)*nt,(yt-pt)*et,(At-lt)*nt,(yt-lt)*et,(At-pt)*nt)),Re(yt,At-pt,yt+lt,At-pt,yt+pt,At-lt,yt+pt,At,.44,Qt,$t,Ut,Dt,Dt),ne.add(new go.PathSegment(go.PathSegment.Bezier,Ut.x*et,Ut.y*nt,Qt.x*et,Qt.y*nt,$t.x*et,$t.y*nt));var _t=Ft(Ut.x,Ut.y);Re(yt,At-pt,yt+lt,At-pt,yt+pt,At-lt,yt+pt,At,.56,Dt,Dt,Ut,Qt,$t);var Pe=Ft(Ut.x,Ut.y);ne.add(new go.PathSegment(go.PathSegment.Line,(_t.x*.1+.95*.9)*et,_t.y*.1*nt)),ne.add(new go.PathSegment(go.PathSegment.Line,.85*et,_t.y*.1*nt)),ne.add(new go.PathSegment(go.PathSegment.Line,.85*et,0)),ne.add(new go.PathSegment(go.PathSegment.Line,et,0)),ne.add(new go.PathSegment(go.PathSegment.Line,et,.15*nt)),ne.add(new go.PathSegment(go.PathSegment.Line,(Pe.x*.1+.9)*et,.15*nt)),ne.add(new go.PathSegment(go.PathSegment.Line,(Pe.x*.1+.9)*et,(Pe.y*.1+.05*.9)*nt)),ne.add(new go.PathSegment(go.PathSegment.Line,Pe.x*et,Pe.y*nt)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(yt+pt)*et,At*nt,Qt.x*et,Qt.y*nt,$t.x*et,$t.y*nt)),ne.add(new go.PathSegment(go.PathSegment.Bezier,yt*et,(At+pt)*nt,(yt+pt)*et,(At+lt)*nt,(yt+lt)*et,(At+pt)*nt)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(yt-pt)*et,At*nt,(yt-lt)*et,(At+pt)*nt,(yt-pt)*et,(At+lt)*nt)),pt=.35,lt=Jt*.35;var ue=new go.PathFigure(yt*et,(At-pt)*nt,!1);dt.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,(yt-pt)*et,At*nt,(yt-lt)*et,(At-pt)*nt,(yt-pt)*et,(At-lt)*nt)),ue.add(new go.PathSegment(go.PathSegment.Bezier,yt*et,(At+pt)*nt,(yt-pt)*et,(At+lt)*nt,(yt-lt)*et,(At+pt)*nt)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(yt+pt)*et,At*nt,(yt+lt)*et,(At+pt)*nt,(yt+pt)*et,(At+lt)*nt)),ue.add(new go.PathSegment(go.PathSegment.Bezier,yt*et,(At-pt)*nt,(yt+pt)*et,(At-lt)*nt,(yt+lt)*et,(At-pt)*nt));var pe=new go.PathFigure((yt-pt)*et,At*nt,!1);return dt.add(pe),Ht(Dt),Ht(Ut),Ht(Qt),Ht($t),Ht(_t),Ht(Pe),dt.spot1=new go.Spot(.202,.257),dt.spot2=new go.Spot(.792,.739),dt.defaultStretch=go.GraphObject.Uniform,dt}),go.Shape.defineFigureGenerator("GenderFemale",function(kt,et,nt){var dt=new go.Geometry,lt=.375,pt=0,yt=-.125,At=lt*Jt,Dt=new go.PathFigure((.525+pt)*et,(.5+lt+yt)*nt,!1);dt.add(Dt),Dt.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+lt+pt)*et,(.5+yt)*nt,(.5+At+pt)*et,(.5+lt+yt)*nt,(.5+lt+pt)*et,(.5+At+yt)*nt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+pt)*et,(.5-lt+yt)*nt,(1-.5+lt+pt)*et,(.5-At+yt)*nt,(.5+At+pt)*et,(.5-lt+yt)*nt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-lt+pt)*et,(.5+yt)*nt,(.5-At+pt)*et,(.5-lt+yt)*nt,(.5-lt+pt)*et,(.5-At+yt)*nt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,(.475+pt)*et,(.5+lt+yt)*nt,(.5-lt+pt)*et,(.5+At+yt)*nt,(.5-At+pt)*et,(.5+lt+yt)*nt)),Dt.add(new go.PathSegment(go.PathSegment.Line,.475*et,.85*nt)),Dt.add(new go.PathSegment(go.PathSegment.Line,.425*et,.85*nt)),Dt.add(new go.PathSegment(go.PathSegment.Line,.425*et,.9*nt)),Dt.add(new go.PathSegment(go.PathSegment.Line,.475*et,.9*nt)),Dt.add(new go.PathSegment(go.PathSegment.Line,.475*et,nt)),Dt.add(new go.PathSegment(go.PathSegment.Line,.525*et,nt)),Dt.add(new go.PathSegment(go.PathSegment.Line,.525*et,.9*nt)),Dt.add(new go.PathSegment(go.PathSegment.Line,.575*et,.9*nt)),Dt.add(new go.PathSegment(go.PathSegment.Line,.575*et,.85*nt)),Dt.add(new go.PathSegment(go.PathSegment.Line,.525*et,.85*nt).close()),lt=.325,pt=0,yt=-.125,At=lt*Jt;var Dt=new go.PathFigure((1-.5+lt+pt)*et,(.5+yt)*nt,!1);dt.add(Dt),Dt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+pt)*et,(.5+lt+yt)*nt,(.5+lt+pt)*et,(.5+At+yt)*nt,(.5+At+pt)*et,(.5+lt+yt)*nt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-lt+pt)*et,(.5+yt)*nt,(.5-At+pt)*et,(.5+lt+yt)*nt,(.5-lt+pt)*et,(.5+At+yt)*nt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+pt)*et,(.5-lt+yt)*nt,(.5-lt+pt)*et,(.5-At+yt)*nt,(.5-At+pt)*et,(.5-lt+yt)*nt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+lt+pt)*et,(.5+yt)*nt,(.5+At+pt)*et,(.5-lt+yt)*nt,(1-.5+lt+pt)*et,(.5-At+yt)*nt));var Dt=new go.PathFigure((.525+pt)*et,(.5+lt+yt)*nt,!1);return dt.add(Dt),dt.spot1=new go.Spot(.232,.136),dt.spot2=new go.Spot(.682,.611),dt.defaultStretch=go.GraphObject.Uniform,dt}),go.Shape.defineFigureGenerator("LogicImplies",function(kt,et,nt){var dt=kt?kt.parameter1:NaN;return isNaN(dt)&&(dt=.2),new go.Geometry().add(new go.PathFigure((1-dt)*et,0,!1).add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,(1-dt)*et,nt)).add(new go.PathSegment(go.PathSegment.Move,0,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,et,.5*nt))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(kt,et,nt){var dt=kt?kt.parameter1:NaN;return isNaN(dt)&&(dt=.2),new go.Geometry().add(new go.PathFigure((1-dt)*et,0,!1).add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,(1-dt)*et,nt)).add(new go.PathSegment(go.PathSegment.Move,0,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)).add(new go.PathSegment(go.PathSegment.Move,dt*et,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,dt*et,nt))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(kt,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et,nt)))}),go.Shape.defineFigureGenerator("LogicAnd",function(kt,et,nt){return new go.Geometry().add(new go.PathFigure(0,nt,!1).add(new go.PathSegment(go.PathSegment.Line,.5*et,0)).add(new go.PathSegment(go.PathSegment.Line,et,nt))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(kt,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)).add(new go.PathSegment(go.PathSegment.Line,et,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(kt,et,nt){var dt=new go.Geometry().add(new go.PathFigure(.5*et,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)).add(new go.PathSegment(go.PathSegment.Move,0,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*et,.5*nt,.5*et,.5*nt)));return dt.defaultStretch=go.GraphObject.Uniform,dt}),go.Shape.defineFigureGenerator("LogicTruth",function(kt,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Move,.5*et,0)).add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(kt,et,nt){return new go.Geometry().add(new go.PathFigure(0,nt,!1).add(new go.PathSegment(go.PathSegment.Line,et,nt)).add(new go.PathSegment(go.PathSegment.Move,.5*et,nt)).add(new go.PathSegment(go.PathSegment.Line,.5*et,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(kt,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,0,.5*nt)).add(new go.PathSegment(go.PathSegment.Move,et,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,et,nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt)))}),go.Shape.defineFigureGenerator("LogicForAll",function(kt,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Move,.25*et,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,.75*et,.5*nt))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(kt,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)).add(new go.PathSegment(go.PathSegment.Move,0,nt)).add(new go.PathSegment(go.PathSegment.Line,et,nt))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(kt,et,nt){var dt=.5;return new go.Geometry().add(new go.PathFigure(0,nt,!1).add(new go.PathSegment(go.PathSegment.Line,0,dt*nt)).add(new go.PathSegment(go.PathSegment.Arc,180,180,dt*et,dt*nt,dt*et,dt*nt)).add(new go.PathSegment(go.PathSegment.Line,et,nt))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(kt,et,nt){var dt=.5;return new go.Geometry().add(new go.PathFigure(et,0,!1).add(new go.PathSegment(go.PathSegment.Line,et,dt*nt)).add(new go.PathSegment(go.PathSegment.Arc,0,180,dt*et,dt*nt,dt*et,dt*nt)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new Ye("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new Ye("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(kt,et,nt){var dt=kt?kt.parameter1:NaN;isNaN(dt)&&(dt=.3);var lt=kt?kt.parameter2:NaN;isNaN(lt)&&(lt=.3);var pt=(1-dt)*et,yt=(.5-lt/2)*nt,At=(.5+lt/2)*nt,Dt=new go.Geometry,Ut=new go.PathFigure(0,yt,!0);Dt.add(Ut),Ut.add(new go.PathSegment(go.PathSegment.Line,pt,yt)),Ut.add(new go.PathSegment(go.PathSegment.Line,pt,0)),Ut.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),Ut.add(new go.PathSegment(go.PathSegment.Line,pt,nt)),Ut.add(new go.PathSegment(go.PathSegment.Line,pt,At)),Ut.add(new go.PathSegment(go.PathSegment.Line,0,At).close()),Dt.spot1=new go.Spot(0,yt/nt);var Qt=fe(0,At/nt,1,At/nt,pt/et,1,1,.5,ht());return Dt.spot2=new go.Spot(Qt.x,Qt.y),Ht(Qt),Dt}),go.Shape.setFigureParameter("Arrow2",0,new Ye("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new Ye("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(kt,et,nt){var dt=kt?kt.parameter1:NaN;isNaN(dt)&&(dt=30),dt>et&&(dt=et);var lt=kt?kt.parameter2:NaN;isNaN(lt)&&(lt=30),lt=Math.min(lt,nt/2);var pt=et-dt,yt=(nt-lt)/2,At=yt+lt,Dt=new go.Geometry,Ut=new go.PathFigure(0,yt,!0);Dt.add(Ut),Ut.add(new go.PathSegment(go.PathSegment.Line,pt,yt)),Ut.add(new go.PathSegment(go.PathSegment.Line,pt,0)),Ut.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),Ut.add(new go.PathSegment(go.PathSegment.Line,pt,nt)),Ut.add(new go.PathSegment(go.PathSegment.Line,pt,At)),Ut.add(new go.PathSegment(go.PathSegment.Line,0,At).close()),Dt.spot1=new go.Spot(0,yt/nt);var Qt=fe(0,At/nt,1,At/nt,pt/et,1,1,.5,ht());return Dt.spot2=new go.Spot(Qt.x,Qt.y),Ht(Qt),Dt}),go.Shape.defineFigureGenerator("Chevron",function(kt,et,nt){var dt=new go.Geometry,lt=new go.PathFigure(0,0,!0);return dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*nt).close()),dt}),go.Shape.defineFigureGenerator("DoubleArrow",function(kt,et,nt){var dt=new go.Geometry,lt=new go.PathFigure(0,0,!0);return dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.3*et,.214*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.3*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,1*et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.3*et,1*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.3*et,.786*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,1*nt).close()),dt}),go.Shape.setFigureParameter("DoubleEndArrow",0,new Ye("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(kt,et,nt){var dt=kt?kt.parameter1:NaN;isNaN(dt)&&(dt=.3);var lt=(.5-dt/2)*nt,pt=(.5+dt/2)*nt,yt=new go.Geometry,At=new go.PathFigure(et,.5*nt,!0);yt.add(At),At.add(new go.PathSegment(go.PathSegment.Line,.7*et,nt)),At.add(new go.PathSegment(go.PathSegment.Line,.7*et,pt)),At.add(new go.PathSegment(go.PathSegment.Line,.3*et,pt)),At.add(new go.PathSegment(go.PathSegment.Line,.3*et,nt)),At.add(new go.PathSegment(go.PathSegment.Line,0,.5*nt)),At.add(new go.PathSegment(go.PathSegment.Line,.3*et,0)),At.add(new go.PathSegment(go.PathSegment.Line,.3*et,lt)),At.add(new go.PathSegment(go.PathSegment.Line,.7*et,lt)),At.add(new go.PathSegment(go.PathSegment.Line,.7*et,0).close());var Dt=fe(0,.5,.3,0,0,lt/nt,.1,lt/nt,ht());return yt.spot1=new go.Spot(Dt.x,Dt.y),Dt=fe(.7,1,1,.5,0,pt/nt,1,pt/nt,Dt),yt.spot2=new go.Spot(Dt.x,Dt.y),Ht(Dt),yt}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new Ye("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new Ye("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(kt,et,nt){var dt=kt?kt.parameter1:NaN;isNaN(dt)&&(dt=40);var lt=kt?kt.parameter2:NaN;isNaN(lt)&&(lt=100);var pt=(nt-dt)/2,yt=pt+dt,At=(nt-lt)/2,Dt=At+lt;(dt>nt||lt>nt)&&(lt>dt?(dt=dt*nt/lt,pt=(nt-dt)/2,yt=pt+dt,At=0,Dt=nt):(pt=0,yt=nt,At=0,Dt=nt));var Ut=new go.Geometry,Qt=new go.PathFigure(et,.5*nt,!0);Ut.add(Qt),Qt.add(new go.PathSegment(go.PathSegment.Line,.7*et,Dt)),Qt.add(new go.PathSegment(go.PathSegment.Line,.7*et,yt)),Qt.add(new go.PathSegment(go.PathSegment.Line,.3*et,yt)),Qt.add(new go.PathSegment(go.PathSegment.Line,.3*et,Dt)),Qt.add(new go.PathSegment(go.PathSegment.Line,0,.5*nt)),Qt.add(new go.PathSegment(go.PathSegment.Line,.3*et,At)),Qt.add(new go.PathSegment(go.PathSegment.Line,.3*et,pt)),Qt.add(new go.PathSegment(go.PathSegment.Line,.7*et,pt)),Qt.add(new go.PathSegment(go.PathSegment.Line,.7*et,At).close());var $t=fe(0,.5,.3,At/nt,0,pt/nt,1,pt/nt,ht());return Ut.spot1=new go.Spot($t.x,$t.y),$t=fe(.7,Dt/nt,1,.5,0,yt/nt,1,yt/nt,$t),Ut.spot2=new go.Spot($t.x,$t.y),Ht($t),Ut}),go.Shape.setFigureParameter("IBeamArrow",0,new Ye("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(kt,et,nt){var dt=kt?kt.parameter1:NaN;isNaN(dt)&&(dt=.3);var lt=(.5-dt/2)*nt,pt=(.5+dt/2)*nt,yt=new go.Geometry,At=new go.PathFigure(et,.5*nt,!0);yt.add(At),At.add(new go.PathSegment(go.PathSegment.Line,.7*et,nt)),At.add(new go.PathSegment(go.PathSegment.Line,.7*et,pt)),At.add(new go.PathSegment(go.PathSegment.Line,.2*et,pt)),At.add(new go.PathSegment(go.PathSegment.Line,.2*et,nt)),At.add(new go.PathSegment(go.PathSegment.Line,0,nt)),At.add(new go.PathSegment(go.PathSegment.Line,0,0)),At.add(new go.PathSegment(go.PathSegment.Line,.2*et,0)),At.add(new go.PathSegment(go.PathSegment.Line,.2*et,lt)),At.add(new go.PathSegment(go.PathSegment.Line,.7*et,lt)),At.add(new go.PathSegment(go.PathSegment.Line,.7*et,0).close()),yt.spot1=new go.Spot(0,lt/nt);var Dt=fe(.7,1,1,.5,0,pt/nt,1,pt/nt,ht());return yt.spot2=new go.Spot(Dt.x,Dt.y),Ht(Dt),yt}),go.Shape.setFigureParameter("IBeamArrow2",0,new Ye("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new Ye("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(kt,et,nt){var dt=kt?kt.parameter1:NaN;isNaN(dt)&&(dt=40);var lt=kt?kt.parameter2:NaN;isNaN(lt)&&(lt=100);var pt=(nt-dt)/2,yt=pt+dt,At=(nt-lt)/2,Dt=At+lt;(dt>nt||lt>nt)&&(lt>dt?(dt=dt*nt/lt,pt=(nt-dt)/2,yt=pt+dt,At=0,Dt=nt):(pt=0,yt=nt,At=0,Dt=nt));var Ut=new go.Geometry,Qt=new go.PathFigure(et,.5*nt,!0);Ut.add(Qt),Qt.add(new go.PathSegment(go.PathSegment.Line,.7*et,Dt)),Qt.add(new go.PathSegment(go.PathSegment.Line,.7*et,yt)),Qt.add(new go.PathSegment(go.PathSegment.Line,.2*et,yt)),Qt.add(new go.PathSegment(go.PathSegment.Line,.2*et,Dt)),Qt.add(new go.PathSegment(go.PathSegment.Line,0,Dt)),Qt.add(new go.PathSegment(go.PathSegment.Line,0,At)),Qt.add(new go.PathSegment(go.PathSegment.Line,.2*et,At)),Qt.add(new go.PathSegment(go.PathSegment.Line,.2*et,pt)),Qt.add(new go.PathSegment(go.PathSegment.Line,.7*et,pt)),Qt.add(new go.PathSegment(go.PathSegment.Line,.7*et,At).close()),Ut.spot1=new go.Spot(0,pt/nt);var $t=fe(.7,Dt/nt,1,.5,0,yt/nt,1,yt/nt,ht());return Ut.spot2=new go.Spot($t.x,$t.y),Ht($t),Ut}),go.Shape.setFigureParameter("Pointer",0,new Ye("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(kt,et,nt){var dt=kt?kt.parameter1:NaN;isNaN(dt)&&(dt=.1);var lt=new go.Geometry,pt=new go.PathFigure(et,.5*nt,!0);lt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),pt.add(new go.PathSegment(go.PathSegment.Line,dt*et,.5*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),lt.spot1=new go.Spot(dt,.35);var yt=fe(.2,.65,1,.65,0,1,1,.5,ht());return lt.spot2=new go.Spot(yt.x,yt.y),Ht(yt),lt}),go.Shape.setFigureParameter("RoundedPointer",0,new Ye("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(kt,et,nt){var dt=kt?kt.parameter1:NaN;isNaN(dt)&&(dt=.3);var lt=new go.Geometry,pt=new go.PathFigure(et,.5*nt,!0);lt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,0,0,dt*et,.75*nt,dt*et,.25*nt).close()),lt.spot1=new go.Spot(dt,.35);var yt=fe(0,.65,1,.65,0,1,1,.5,ht());return lt.spot2=new go.Spot(yt.x,yt.y),Ht(yt),lt}),go.Shape.setFigureParameter("SplitEndArrow",0,new Ye("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(kt,et,nt){var dt=kt?kt.parameter1:NaN;isNaN(dt)&&(dt=.4);var lt=(.5-dt/2)*nt,pt=(.5+dt/2)*nt,yt=new go.Geometry,At=new go.PathFigure(et,.5*nt,!0);yt.add(At),At.add(new go.PathSegment(go.PathSegment.Line,.7*et,nt)),At.add(new go.PathSegment(go.PathSegment.Line,.7*et,pt)),At.add(new go.PathSegment(go.PathSegment.Line,0,pt)),At.add(new go.PathSegment(go.PathSegment.Line,.2*et,.5*nt)),At.add(new go.PathSegment(go.PathSegment.Line,0,lt)),At.add(new go.PathSegment(go.PathSegment.Line,.7*et,lt)),At.add(new go.PathSegment(go.PathSegment.Line,.7*et,0).close()),yt.spot1=new go.Spot(.2,.3);var Dt=fe(.7,1,1,.5,0,pt/nt,1,pt/nt,ht());return yt.spot2=new go.Spot(Dt.x,Dt.y),Ht(Dt),yt}),go.Shape.setFigureParameter("SplitEndArrow2",0,new Ye("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(kt,et,nt){var dt=kt?kt.parameter1:NaN;isNaN(dt)&&(dt=50);var lt=(nt-dt)/2,pt=lt+dt;dt>nt&&(lt=0,pt=nt);var yt=new go.Geometry,At=new go.PathFigure(et,.5*nt,!0);yt.add(At),At.add(new go.PathSegment(go.PathSegment.Line,.7*et,nt)),At.add(new go.PathSegment(go.PathSegment.Line,.7*et,pt)),At.add(new go.PathSegment(go.PathSegment.Line,0,pt)),At.add(new go.PathSegment(go.PathSegment.Line,.2*et,.5*nt)),At.add(new go.PathSegment(go.PathSegment.Line,0,lt)),At.add(new go.PathSegment(go.PathSegment.Line,.7*et,lt)),At.add(new go.PathSegment(go.PathSegment.Line,.7*et,0).close()),yt.spot1=new go.Spot(.2,lt/nt);var Dt=fe(.7,1,1,.5,0,pt/nt,1,pt/nt,ht());return yt.spot2=new go.Spot(Dt.x,Dt.y),Ht(Dt),yt}),go.Shape.setFigureParameter("SquareArrow",0,new Ye("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(kt,et,nt){var dt=kt?kt.parameter1:NaN;isNaN(dt)&&(dt=.7);var lt=new go.Geometry,pt=new go.PathFigure(et,.5*nt,!0);return lt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,dt*et,nt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,0)),pt.add(new go.PathSegment(go.PathSegment.Line,dt*et,0).close()),lt.spot1=go.Spot.TopLeft,lt.spot2=new go.Spot(dt,1),lt}),go.Shape.defineFigureGenerator("Cone1",function(kt,et,nt){var dt=new go.Geometry,lt=Jt*.5,pt=Jt*.1,yt=new go.PathFigure(0,.9*nt,!0);return dt.add(yt),yt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),yt.add(new go.PathSegment(go.PathSegment.Line,et,.9*nt)),yt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,nt,et,(.9+pt)*nt,(.5+lt)*et,nt)),yt.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*nt,(.5-lt)*et,nt,0,(.9+pt)*nt).close()),dt.spot1=new go.Spot(.25,.5),dt.spot2=new go.Spot(.75,.97),dt}),go.Shape.defineFigureGenerator("Cone2",function(kt,et,nt){var dt=new go.Geometry,lt=new go.PathFigure(0,.9*nt,!0);dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Bezier,et,.9*nt,(1-.85/.9)*et,nt,.85/.9*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.9*nt).close());var pt=new go.PathFigure(0,.9*nt,!1);return dt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Bezier,et,.9*nt,(1-.85/.9)*et,.8*nt,.85/.9*et,.8*nt)),dt.spot1=new go.Spot(.25,.5),dt.spot2=new go.Spot(.75,.82),dt}),go.Shape.defineFigureGenerator("Cube1",function(kt,et,nt){var dt=new go.Geometry,lt=new go.PathFigure(.5*et,nt,!0);dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et,.85*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.15*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.15*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.85*nt).close());var pt=new go.PathFigure(.5*et,nt,!1);return dt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.3*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,.15*nt)),pt.add(new go.PathSegment(go.PathSegment.Move,.5*et,.3*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,et,.15*nt)),dt.spot1=new go.Spot(0,.3),dt.spot2=new go.Spot(.5,.85),dt}),go.Shape.defineFigureGenerator("Cube2",function(kt,et,nt){var dt=new go.Geometry,lt=new go.PathFigure(0,.3*nt,!0);dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.7*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.7*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.3*et,0).close());var pt=new go.PathFigure(0,.3*nt,!1);return dt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.7*et,.3*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,et,0)),pt.add(new go.PathSegment(go.PathSegment.Move,.7*et,.3*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.7*et,nt)),dt.spot1=new go.Spot(0,.3),dt.spot2=new go.Spot(.7,1),dt}),go.Shape.defineFigureGenerator("Cylinder1",function(kt,et,nt){var dt=kt?kt.parameter1:NaN;isNaN(dt)&&(dt=5),dt=Math.min(dt,nt/3);var lt=new go.Geometry,pt=Jt*.5,yt=new go.PathFigure(0,dt,!0);lt.add(yt),yt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,0,Jt*dt,(.5-pt)*et,0)),yt.add(new go.PathSegment(go.PathSegment.Bezier,1*et,dt,(.5+pt)*et,0,1*et,Jt*dt)),yt.add(new go.PathSegment(go.PathSegment.Line,et,nt-dt)),yt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,1*nt,1*et,nt-Jt*dt,(.5+pt)*et,1*nt)),yt.add(new go.PathSegment(go.PathSegment.Bezier,0,nt-dt,(.5-pt)*et,1*nt,0,nt-Jt*dt)),yt.add(new go.PathSegment(go.PathSegment.Line,0,dt));var At=new go.PathFigure(et,dt,!1);return lt.add(At),At.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,2*dt,1*et,2*dt-Jt*dt,(.5+pt)*et,2*dt)),At.add(new go.PathSegment(go.PathSegment.Bezier,0,dt,(.5-pt)*et,2*dt,0,2*dt-Jt*dt)),lt.spot1=new go.Spot(0,0,0,2*dt),lt.spot2=new go.Spot(1,1),lt}),go.Shape.defineFigureGenerator("Cylinder2",function(kt,et,nt){var dt=kt?kt.parameter1:NaN;isNaN(dt)&&(dt=5),dt=Math.min(dt,nt/3);var lt=new go.Geometry,pt=Jt*.5,yt=new go.PathFigure(0,nt-dt,!0);lt.add(yt),yt.add(new go.PathSegment(go.PathSegment.Line,0,dt)),yt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,0,Jt*dt,(.5-pt)*et,0)),yt.add(new go.PathSegment(go.PathSegment.Bezier,et,dt,(.5+pt)*et,0,et,Jt*dt)),yt.add(new go.PathSegment(go.PathSegment.Line,et,nt-dt)),yt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,nt,et,nt-Jt*dt,(.5+pt)*et,nt)),yt.add(new go.PathSegment(go.PathSegment.Bezier,0,nt-dt,(.5-pt)*et,nt,0,nt-Jt*dt));var At=new go.PathFigure(0,nt-dt,!1);return lt.add(At),At.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,nt-2*dt,0,nt-dt-Jt*dt,(.5-pt)*et,nt-2*dt)),At.add(new go.PathSegment(go.PathSegment.Bezier,et,nt-dt,(.5+pt)*et,nt-2*dt,et,nt-dt-Jt*dt)),lt.spot1=new go.Spot(0,0),lt.spot2=new go.Spot(1,1,0,-2*dt),lt}),go.Shape.defineFigureGenerator("Cylinder3",function(kt,et,nt){var dt=kt?kt.parameter1:NaN;isNaN(dt)&&(dt=5),dt=Math.min(dt,et/3);var lt=new go.Geometry,pt=Jt*.5,yt=new go.PathFigure(dt,0,!0);lt.add(yt),yt.add(new go.PathSegment(go.PathSegment.Line,et-dt,0)),yt.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*nt,et-Jt*dt,0,et,(.5-pt)*nt)),yt.add(new go.PathSegment(go.PathSegment.Bezier,et-dt,nt,et,(.5+pt)*nt,et-Jt*dt,nt)),yt.add(new go.PathSegment(go.PathSegment.Line,dt,nt)),yt.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*nt,Jt*dt,nt,0,(.5+pt)*nt)),yt.add(new go.PathSegment(go.PathSegment.Bezier,dt,0,0,(.5-pt)*nt,Jt*dt,0));var At=new go.PathFigure(dt,0,!1);return lt.add(At),At.add(new go.PathSegment(go.PathSegment.Bezier,2*dt,.5*nt,dt+Jt*dt,0,2*dt,(.5-pt)*nt)),At.add(new go.PathSegment(go.PathSegment.Bezier,dt,nt,2*dt,(.5+pt)*nt,dt+Jt*dt,nt)),lt.spot1=new go.Spot(0,0,2*dt,0),lt.spot2=new go.Spot(1,1),lt}),go.Shape.defineFigureGenerator("Cylinder4",function(kt,et,nt){var dt=kt?kt.parameter1:NaN;isNaN(dt)&&(dt=5),dt=Math.min(dt,et/3);var lt=new go.Geometry,pt=Jt*.5,yt=new go.PathFigure(et-dt,0,!0);lt.add(yt),yt.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*nt,et-Jt*dt,0,et,(.5-pt)*nt)),yt.add(new go.PathSegment(go.PathSegment.Bezier,et-dt,nt,et,(.5+pt)*nt,et-Jt*dt,nt)),yt.add(new go.PathSegment(go.PathSegment.Line,dt,nt)),yt.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*nt,Jt*dt,nt,0,(.5+pt)*nt)),yt.add(new go.PathSegment(go.PathSegment.Bezier,dt,0,0,(.5-pt)*nt,Jt*dt,0)),yt.add(new go.PathSegment(go.PathSegment.Line,et-dt,0));var At=new go.PathFigure(et-dt,0,!1);return lt.add(At),At.add(new go.PathSegment(go.PathSegment.Bezier,et-2*dt,.5*nt,et-dt-Jt*dt,0,et-2*dt,(.5-pt)*nt)),At.add(new go.PathSegment(go.PathSegment.Bezier,et-dt,nt,et-2*dt,(.5+pt)*nt,et-dt-Jt*dt,nt)),lt.spot1=new go.Spot(0,0),lt.spot2=new go.Spot(1,1,-2*dt,0),lt}),go.Shape.defineFigureGenerator("Prism1",function(kt,et,nt){var dt=new go.Geometry,lt=new go.PathFigure(.25*et,.25*nt,!0);dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close());var pt=new go.PathFigure(.25*et,.25*nt,!1);return dt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),dt.spot1=new go.Spot(.408,.172),dt.spot2=new go.Spot(.833,.662),dt}),go.Shape.defineFigureGenerator("Prism2",function(kt,et,nt){var dt=new go.Geometry,lt=new go.PathFigure(0,.25*nt,!0);dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.25*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.75*et,.75*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close());var pt=new go.PathFigure(0,nt,!1);return dt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.25*et,.5*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,et,.25*nt)),pt.add(new go.PathSegment(go.PathSegment.Move,0,.25*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.25*et,.5*nt)),dt.spot1=new go.Spot(.25,.5),dt.spot2=new go.Spot(.75,.75),dt}),go.Shape.defineFigureGenerator("Pyramid1",function(kt,et,nt){var dt=new go.Geometry,lt=new go.PathFigure(.5*et,0,!0);dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et,.75*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.75*nt).close());var pt=new go.PathFigure(.5*et,0,!1);return dt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),dt.spot1=new go.Spot(.25,.367),dt.spot2=new go.Spot(.75,.875),dt}),go.Shape.defineFigureGenerator("Pyramid2",function(kt,et,nt){var dt=new go.Geometry,lt=new go.PathFigure(.5*et,0,!0);dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et,.85*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.85*nt).close());var pt=new go.PathFigure(.5*et,0,!1);return dt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.7*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,.85*nt)),pt.add(new go.PathSegment(go.PathSegment.Move,.5*et,.7*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,et,.85*nt)),dt.spot1=new go.Spot(.25,.367),dt.spot2=new go.Spot(.75,.875),dt}),go.Shape.defineFigureGenerator("Actor",function(kt,et,nt){var dt=new go.Geometry,lt=.2,pt=.1,yt=Jt*lt,At=Jt*pt,Dt=.5,Ut=.1,Qt=new go.PathFigure(Dt*et,(Ut+pt)*nt,!0);dt.add(Qt),Qt.add(new go.PathSegment(go.PathSegment.Bezier,(Dt-lt)*et,Ut*nt,(Dt-yt)*et,(Ut+pt)*nt,(Dt-lt)*et,(Ut+At)*nt)),Qt.add(new go.PathSegment(go.PathSegment.Bezier,Dt*et,(Ut-pt)*nt,(Dt-lt)*et,(Ut-At)*nt,(Dt-yt)*et,(Ut-pt)*nt)),Qt.add(new go.PathSegment(go.PathSegment.Bezier,(Dt+lt)*et,Ut*nt,(Dt+yt)*et,(Ut-pt)*nt,(Dt+lt)*et,(Ut-At)*nt)),Qt.add(new go.PathSegment(go.PathSegment.Bezier,Dt*et,(Ut+pt)*nt,(Dt+lt)*et,(Ut+At)*nt,(Dt+yt)*et,(Ut+pt)*nt));var $t=.05,ne=Jt*$t;Dt=.05,Ut=.25;var _t=new go.PathFigure(.5*et,.2*nt,!0);return dt.add(_t),_t.add(new go.PathSegment(go.PathSegment.Line,.95*et,.2*nt)),Dt=.95,Ut=.25,_t.add(new go.PathSegment(go.PathSegment.Bezier,(Dt+$t)*et,Ut*nt,(Dt+ne)*et,(Ut-$t)*nt,(Dt+$t)*et,(Ut-ne)*nt)),_t.add(new go.PathSegment(go.PathSegment.Line,et,.6*nt)),_t.add(new go.PathSegment(go.PathSegment.Line,.85*et,.6*nt)),_t.add(new go.PathSegment(go.PathSegment.Line,.85*et,.35*nt)),$t=.025,ne=Jt*$t,Dt=.825,Ut=.35,_t.add(new go.PathSegment(go.PathSegment.Bezier,Dt*et,(Ut-$t)*nt,(Dt+$t)*et,(Ut-ne)*nt,(Dt+ne)*et,(Ut-$t)*nt)),_t.add(new go.PathSegment(go.PathSegment.Bezier,(Dt-$t)*et,Ut*nt,(Dt-ne)*et,(Ut-$t)*nt,(Dt-$t)*et,(Ut-ne)*nt)),_t.add(new go.PathSegment(go.PathSegment.Line,.8*et,nt)),_t.add(new go.PathSegment(go.PathSegment.Line,.55*et,nt)),_t.add(new go.PathSegment(go.PathSegment.Line,.55*et,.7*nt)),$t=.05,ne=Jt*$t,Dt=.5,Ut=.7,_t.add(new go.PathSegment(go.PathSegment.Bezier,Dt*et,(Ut-$t)*nt,(Dt+$t)*et,(Ut-ne)*nt,(Dt+ne)*et,(Ut-$t)*nt)),_t.add(new go.PathSegment(go.PathSegment.Bezier,(Dt-$t)*et,Ut*nt,(Dt-ne)*et,(Ut-$t)*nt,(Dt-$t)*et,(Ut-ne)*nt)),_t.add(new go.PathSegment(go.PathSegment.Line,.45*et,nt)),_t.add(new go.PathSegment(go.PathSegment.Line,.2*et,nt)),_t.add(new go.PathSegment(go.PathSegment.Line,.2*et,.35*nt)),$t=.025,ne=Jt*$t,Dt=.175,Ut=.35,_t.add(new go.PathSegment(go.PathSegment.Bezier,Dt*et,(Ut-$t)*nt,(Dt+$t)*et,(Ut-ne)*nt,(Dt+ne)*et,(Ut-$t)*nt)),_t.add(new go.PathSegment(go.PathSegment.Bezier,(Dt-$t)*et,Ut*nt,(Dt-ne)*et,(Ut-$t)*nt,(Dt-$t)*et,(Ut-ne)*nt)),_t.add(new go.PathSegment(go.PathSegment.Line,.15*et,.6*nt)),_t.add(new go.PathSegment(go.PathSegment.Line,0,.6*nt)),_t.add(new go.PathSegment(go.PathSegment.Line,0,.25*nt)),$t=.05,ne=Jt*$t,Dt=.05,Ut=.25,_t.add(new go.PathSegment(go.PathSegment.Bezier,Dt*et,(Ut-$t)*nt,(Dt-$t)*et,(Ut-ne)*nt,(Dt-ne)*et,(Ut-$t)*nt)),_t.add(new go.PathSegment(go.PathSegment.Line,.5*et,.2*nt)),dt.spot1=new go.Spot(.2,.2),dt.spot2=new go.Spot(.8,.65),dt}),go.Shape.setFigureParameter("Card",0,new Ye("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(kt,et,nt){var dt=kt?kt.parameter1:NaN;isNaN(dt)&&(dt=.2);var lt=new go.Geometry,pt=new go.PathFigure(et,0,!0);return lt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,dt*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,dt*et,0).close()),lt.spot1=new go.Spot(0,dt),lt.spot2=go.Spot.BottomRight,lt}),go.Shape.defineFigureGenerator("Collate",function(kt,et,nt){var dt=new go.Geometry,lt=new go.PathFigure(.5*et,.5*nt,!0);dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*nt));var pt=new go.PathFigure(.5*et,.5*nt,!0);return dt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*nt)),dt.spot1=new go.Spot(.25,0),dt.spot2=new go.Spot(.75,.25),dt}),go.Shape.defineFigureGenerator("CreateRequest",function(kt,et,nt){var dt=new go.Geometry,lt=kt?kt.parameter1:NaN;isNaN(lt)&&(lt=.1);var pt=new go.PathFigure(0,0,!0);dt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,et,0)),pt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close());var yt=new go.PathFigure(0,lt*nt,!1);return dt.add(yt),yt.add(new go.PathSegment(go.PathSegment.Line,et,lt*nt)),yt.add(new go.PathSegment(go.PathSegment.Move,0,(1-lt)*nt)),yt.add(new go.PathSegment(go.PathSegment.Line,et,(1-lt)*nt)),dt}),go.Shape.defineFigureGenerator("Database",function(kt,et,nt){var dt=new go.Geometry,lt=Jt*.5,pt=Jt*.1,yt=new go.PathFigure(et,.1*nt,!0);dt.add(yt),yt.add(new go.PathSegment(go.PathSegment.Line,et,.9*nt)),yt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,nt,et,(.9+pt)*nt,(.5+lt)*et,nt)),yt.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*nt,(.5-lt)*et,nt,0,(.9+pt)*nt)),yt.add(new go.PathSegment(go.PathSegment.Line,0,.1*nt)),yt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,0,(.1-pt)*nt,(.5-lt)*et,0)),yt.add(new go.PathSegment(go.PathSegment.Bezier,et,.1*nt,(.5+lt)*et,0,et,(.1-pt)*nt));var At=new go.PathFigure(et,.1*nt,!1);return dt.add(At),At.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.2*nt,et,(.1+pt)*nt,(.5+lt)*et,.2*nt)),At.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*nt,(.5-lt)*et,.2*nt,0,(.1+pt)*nt)),At.add(new go.PathSegment(go.PathSegment.Move,et,.2*nt)),At.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.3*nt,et,(.2+pt)*nt,(.5+lt)*et,.3*nt)),At.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*nt,(.5-lt)*et,.3*nt,0,(.2+pt)*nt)),At.add(new go.PathSegment(go.PathSegment.Move,et,.3*nt)),At.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.4*nt,et,(.3+pt)*nt,(.5+lt)*et,.4*nt)),At.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*nt,(.5-lt)*et,.4*nt,0,(.3+pt)*nt)),dt.spot1=new go.Spot(0,.4),dt.spot2=new go.Spot(1,.9),dt}),go.Shape.defineFigureGenerator("DataStorage",function(kt,et,nt){var dt=new go.Geometry,lt=new go.PathFigure(0,0,!0);return dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.75*et,nt,et,0,et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*et,.9*nt,.25*et,.1*nt).close()),dt.spot1=new go.Spot(.226,0),dt.spot2=new go.Spot(.81,1),dt}),go.Shape.defineFigureGenerator("DiskStorage",function(kt,et,nt){var dt=new go.Geometry,lt=Jt*.5,pt=Jt*.1,yt=new go.PathFigure(et,.1*nt,!0);dt.add(yt),yt.add(new go.PathSegment(go.PathSegment.Line,et,.9*nt)),yt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,nt,et,(.9+pt)*nt,(.5+lt)*et,nt)),yt.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*nt,(.5-lt)*et,nt,0,(.9+pt)*nt)),yt.add(new go.PathSegment(go.PathSegment.Line,0,.1*nt)),yt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,0,(.1-pt)*nt,(.5-lt)*et,0)),yt.add(new go.PathSegment(go.PathSegment.Bezier,et,.1*nt,(.5+lt)*et,0,et,(.1-pt)*nt));var At=new go.PathFigure(et,.1*nt,!1);return dt.add(At),At.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.2*nt,et,(.1+pt)*nt,(.5+lt)*et,.2*nt)),At.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*nt,(.5-lt)*et,.2*nt,0,(.1+pt)*nt)),At.add(new go.PathSegment(go.PathSegment.Move,et,.2*nt)),At.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.3*nt,et,(.2+pt)*nt,(.5+lt)*et,.3*nt)),At.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*nt,(.5-lt)*et,.3*nt,0,(.2+pt)*nt)),dt.spot1=new go.Spot(0,.3),dt.spot2=new go.Spot(1,.9),dt}),go.Shape.defineFigureGenerator("Display",function(kt,et,nt){var dt=new go.Geometry,lt=new go.PathFigure(.25*et,0,!0);return dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.75*et,nt,et,0,et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.25*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.5*nt).close()),dt.spot1=new go.Spot(.25,0),dt.spot2=new go.Spot(.75,1),dt}),go.Shape.defineFigureGenerator("DividedEvent",function(kt,et,nt){var dt=new go.Geometry,lt=kt?kt.parameter1:NaN;isNaN(lt)?lt=.2:lt<.15&&(lt=.15);var pt=Jt*.2,yt=new go.PathFigure(0,.2*nt,!0);dt.add(yt),yt.add(new go.PathSegment(go.PathSegment.Bezier,.2*et,0,0,(.2-pt)*nt,(.2-pt)*et,0)),yt.add(new go.PathSegment(go.PathSegment.Line,.8*et,0)),yt.add(new go.PathSegment(go.PathSegment.Bezier,et,.2*nt,(.8+pt)*et,0,et,(.2-pt)*nt)),yt.add(new go.PathSegment(go.PathSegment.Line,et,.8*nt)),yt.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,nt,et,(.8+pt)*nt,(.8+pt)*et,nt)),yt.add(new go.PathSegment(go.PathSegment.Line,.2*et,nt)),yt.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*nt,(.2-pt)*et,nt,0,(.8+pt)*nt)),yt.add(new go.PathSegment(go.PathSegment.Line,0,.2*nt));var At=new go.PathFigure(0,lt*nt,!1);return dt.add(At),At.add(new go.PathSegment(go.PathSegment.Line,et,lt*nt)),dt}),go.Shape.defineFigureGenerator("DividedProcess",function(kt,et,nt){var dt=new go.Geometry,lt=kt?kt.parameter1:NaN;(isNaN(lt)||lt<.1)&&(lt=.1);var pt=new go.PathFigure(0,0,!0);dt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,et,0)),pt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close());var yt=new go.PathFigure(0,lt*nt,!1);return dt.add(yt),yt.add(new go.PathSegment(go.PathSegment.Line,et,lt*nt)),dt}),go.Shape.defineFigureGenerator("Document",function(kt,et,nt){var dt=new go.Geometry;nt=nt/.8;var lt=new go.PathFigure(0,.7*nt,!0);return dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.7*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*nt,.5*et,.4*nt,.5*et,nt).close()),dt.spot1=go.Spot.TopLeft,dt.spot2=new go.Spot(1,.6),dt}),go.Shape.defineFigureGenerator("ExternalOrganization",function(kt,et,nt){var dt=new go.Geometry,lt=kt?kt.parameter1:NaN;(isNaN(lt)||lt<.2)&&(lt=.2);var pt=new go.PathFigure(0,0,!0);dt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,et,0)),pt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close());var yt=new go.PathFigure(lt*et,0,!1);return dt.add(yt),yt.add(new go.PathSegment(go.PathSegment.Line,0,lt*nt)),yt.add(new go.PathSegment(go.PathSegment.Move,et,lt*nt)),yt.add(new go.PathSegment(go.PathSegment.Line,(1-lt)*et,0)),yt.add(new go.PathSegment(go.PathSegment.Move,0,(1-lt)*nt)),yt.add(new go.PathSegment(go.PathSegment.Line,lt*et,nt)),yt.add(new go.PathSegment(go.PathSegment.Move,(1-lt)*et,nt)),yt.add(new go.PathSegment(go.PathSegment.Line,et,(1-lt)*nt)),dt}),go.Shape.defineFigureGenerator("ExternalProcess",function(kt,et,nt){var dt=new go.Geometry,lt=new go.PathFigure(.5*et,0,!0);dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.5*nt).close());var pt=new go.PathFigure(.1*et,.4*nt,!1);return dt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.1*et,.6*nt)),pt.add(new go.PathSegment(go.PathSegment.Move,.9*et,.6*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.4*nt)),pt.add(new go.PathSegment(go.PathSegment.Move,.6*et,.1*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.4*et,.1*nt)),pt.add(new go.PathSegment(go.PathSegment.Move,.4*et,.9*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.9*nt)),dt.spot1=new go.Spot(.25,.25),dt.spot2=new go.Spot(.75,.75),dt}),go.Shape.defineFigureGenerator("File",function(kt,et,nt){var dt=new go.Geometry,lt=new go.PathFigure(0,0,!0);dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.25*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close());var pt=new go.PathFigure(.75*et,0,!1);return dt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.75*et,.25*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,et,.25*nt)),dt.spot1=new go.Spot(0,.25),dt.spot2=go.Spot.BottomRight,dt}),go.Shape.defineFigureGenerator("Interrupt",function(kt,et,nt){var dt=new go.Geometry,lt=new go.PathFigure(et,.5*nt,!0);dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt));var pt=new go.PathFigure(et,.5*nt,!1);dt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,et,nt));var yt=new go.PathFigure(et,.5*nt,!1);return dt.add(yt),yt.add(new go.PathSegment(go.PathSegment.Line,et,0)),dt.spot1=new go.Spot(0,.25),dt.spot2=new go.Spot(.5,.75),dt}),go.Shape.defineFigureGenerator("InternalStorage",function(kt,et,nt){var dt=new go.Geometry,lt=kt?kt.parameter1:NaN,pt=kt?kt.parameter2:NaN;isNaN(lt)&&(lt=.1),isNaN(pt)&&(pt=.1);var yt=new go.PathFigure(0,0,!0);dt.add(yt),yt.add(new go.PathSegment(go.PathSegment.Line,et,0)),yt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),yt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close());var At=new go.PathFigure(lt*et,0,!1);return dt.add(At),At.add(new go.PathSegment(go.PathSegment.Line,lt*et,nt)),At.add(new go.PathSegment(go.PathSegment.Move,0,pt*nt)),At.add(new go.PathSegment(go.PathSegment.Line,et,pt*nt)),dt}),go.Shape.defineFigureGenerator("Junction",function(kt,et,nt){var dt=new go.Geometry,lt=1/Math.SQRT2,pt=(1-1/Math.SQRT2)/2,yt=Jt*.5,At=.5,Dt=new go.PathFigure(et,At*nt,!0);dt.add(Dt),Dt.add(new go.PathSegment(go.PathSegment.Bezier,At*et,nt,et,(At+yt)*nt,(At+yt)*et,nt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,0,At*nt,(At-yt)*et,nt,0,(At+yt)*nt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,At*et,0,0,(At-yt)*nt,(At-yt)*et,0)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,et,At*nt,(At+yt)*et,0,et,(At-yt)*nt));var Ut=new go.PathFigure((pt+lt)*et,(pt+lt)*nt,!1);return dt.add(Ut),Ut.add(new go.PathSegment(go.PathSegment.Line,pt*et,pt*nt)),Ut.add(new go.PathSegment(go.PathSegment.Move,pt*et,(pt+lt)*nt)),Ut.add(new go.PathSegment(go.PathSegment.Line,(pt+lt)*et,pt*nt)),dt}),go.Shape.defineFigureGenerator("LinedDocument",function(kt,et,nt){var dt=new go.Geometry;nt=nt/.8;var lt=new go.PathFigure(0,.7*nt,!0);dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.7*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*nt,.5*et,.4*nt,.5*et,nt).close());var pt=new go.PathFigure(.1*et,0,!1);return dt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.1*et,.75*nt)),dt.spot1=new go.Spot(.1,0),dt.spot2=new go.Spot(1,.6),dt}),go.Shape.defineFigureGenerator("LoopLimit",function(kt,et,nt){var dt=new go.Geometry,lt=new go.PathFigure(0,nt,!0);return dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,.25*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.25*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.25*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt).close()),dt.spot1=new go.Spot(0,.25),dt.spot2=go.Spot.BottomRight,dt}),go.Shape.defineFigureGenerator("MagneticTape",function(kt,et,nt){var dt=new go.Geometry,lt=Jt*.5,pt=.5,yt=new go.PathFigure(.5*et,nt,!0);return dt.add(yt),yt.add(new go.PathSegment(go.PathSegment.Bezier,0,pt*nt,(pt-lt)*et,nt,0,(pt+lt)*nt)),yt.add(new go.PathSegment(go.PathSegment.Bezier,pt*et,0,0,(pt-lt)*nt,(pt-lt)*et,0)),yt.add(new go.PathSegment(go.PathSegment.Bezier,et,pt*nt,(pt+lt)*et,0,et,(pt-lt)*nt)),yt.add(new go.PathSegment(go.PathSegment.Bezier,(pt+.1)*et,.9*nt,et,(pt+lt)*nt,(pt+lt)*et,.9*nt)),yt.add(new go.PathSegment(go.PathSegment.Line,et,.9*nt)),yt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),yt.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),dt.spot1=new go.Spot(.15,.15),dt.spot2=new go.Spot(.85,.8),dt}),go.Shape.defineFigureGenerator("ManualInput",function(kt,et,nt){var dt=new go.Geometry,lt=new go.PathFigure(et,0,!0);return dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.25*nt).close()),dt.spot1=new go.Spot(0,.25),dt.spot2=go.Spot.BottomRight,dt}),go.Shape.defineFigureGenerator("MessageFromUser",function(kt,et,nt){var dt=new go.Geometry,lt=kt?kt.parameter1:NaN;isNaN(lt)&&(lt=.7);var pt=new go.PathFigure(0,0,!0);return dt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,et,0)),pt.add(new go.PathSegment(go.PathSegment.Line,lt*et,.5*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close()),dt.spot1=go.Spot.TopLeft,dt}),go.Shape.defineFigureGenerator("MicroformProcessing",function(kt,et,nt){var dt=new go.Geometry,lt=kt?kt.parameter1:NaN;isNaN(lt)&&(lt=.25);var pt=new go.PathFigure(0,0,!0);return dt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.5*et,lt*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,et,0)),pt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.5*et,(1-lt)*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close()),dt}),go.Shape.defineFigureGenerator("MicroformRecording",function(kt,et,nt){var dt=new go.Geometry,lt=new go.PathFigure(0,0,!0);return dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.75*et,.25*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.15*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.85*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.75*et,.75*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close()),dt.spot1=new go.Spot(0,.25),dt.spot2=new go.Spot(1,.75),dt}),go.Shape.defineFigureGenerator("MultiDocument",function(kt,et,nt){var dt=new go.Geometry;nt=nt/.8;var lt=new go.PathFigure(et,0,!0);dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.9*et,.44*nt,.96*et,.47*nt,.93*et,.45*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.6*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.54*nt,.86*et,.57*nt,.83*et,.55*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.7*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*nt,.4*et,.4*nt,.4*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.2*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.1*et,.2*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.1*et,.1*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.1*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.2*et,0).close());var pt=new go.PathFigure(.1*et,.2*nt,!1);return dt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.2*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.54*nt)),pt.add(new go.PathSegment(go.PathSegment.Move,.2*et,.1*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.1*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.44*nt)),dt.spot1=new go.Spot(0,.25),dt.spot2=new go.Spot(.8,.77),dt}),go.Shape.defineFigureGenerator("MultiProcess",function(kt,et,nt){var dt=new go.Geometry,lt=new go.PathFigure(.1*et,.1*nt,!0);dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.1*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.2*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.8*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.8*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.9*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.9*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.2*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.1*et,.2*nt).close());var pt=new go.PathFigure(.2*et,.1*nt,!1);return dt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.1*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.8*nt)),pt.add(new go.PathSegment(go.PathSegment.Move,.1*et,.2*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.2*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.9*nt)),dt.spot1=new go.Spot(0,.2),dt.spot2=new go.Spot(.8,1),dt}),go.Shape.defineFigureGenerator("OfflineStorage",function(kt,et,nt){var dt=new go.Geometry,lt=kt?kt.parameter1:NaN;isNaN(lt)&&(lt=.1);var pt=1-lt,yt=new go.PathFigure(0,0,!0);dt.add(yt),yt.add(new go.PathSegment(go.PathSegment.Line,et,0)),yt.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt).close());var At=new go.PathFigure(.5*lt*et,lt*nt,!1);return dt.add(At),At.add(new go.PathSegment(go.PathSegment.Line,(1-.5*lt)*et,lt*nt)),dt}),go.Shape.defineFigureGenerator("OffPageConnector",function(kt,et,nt){var dt=new go.Geometry,lt=new go.PathFigure(0,0,!0);return dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.75*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close()),dt.spot1=go.Spot.TopLeft,dt.spot2=new go.Spot(.75,1),dt}),go.Shape.defineFigureGenerator("Or",function(kt,et,nt){var dt=new go.Geometry,lt=Jt*.5,pt=.5,yt=new go.PathFigure(et,pt*nt,!0);dt.add(yt),yt.add(new go.PathSegment(go.PathSegment.Bezier,pt*et,nt,et,(pt+lt)*nt,(pt+lt)*et,nt)),yt.add(new go.PathSegment(go.PathSegment.Bezier,0,pt*nt,(pt-lt)*et,nt,0,(pt+lt)*nt)),yt.add(new go.PathSegment(go.PathSegment.Bezier,pt*et,0,0,(pt-lt)*nt,(pt-lt)*et,0)),yt.add(new go.PathSegment(go.PathSegment.Bezier,et,pt*nt,(pt+lt)*et,0,et,(pt-lt)*nt));var At=new go.PathFigure(et,.5*nt,!1);return dt.add(At),At.add(new go.PathSegment(go.PathSegment.Line,0,.5*nt)),At.add(new go.PathSegment(go.PathSegment.Move,.5*et,nt)),At.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),dt}),go.Shape.defineFigureGenerator("PaperTape",function(kt,et,nt){var dt=new go.Geometry;nt=nt/.8;var lt=new go.PathFigure(0,.7*nt,!0);return dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,.3*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,et,.3*nt,.5*et,.6*nt,.5*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.7*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*nt,.5*et,.4*nt,.5*et,nt).close()),dt.spot1=new go.Spot(0,.49),dt.spot2=new go.Spot(1,.75),dt}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(kt,et,nt){var dt=new go.Geometry,lt=kt?kt.parameter1:NaN,pt=kt?kt.parameter2:NaN;isNaN(lt)&&(lt=.1),isNaN(pt)&&(pt=.3);var yt=new go.PathFigure(0,0,!0);return dt.add(yt),yt.add(new go.PathSegment(go.PathSegment.Line,et,0)),yt.add(new go.PathSegment(go.PathSegment.Line,(1-pt)*et,.5*nt)),yt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),yt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close()),dt}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(kt,et,nt){var dt=new go.Geometry,lt=kt?kt.parameter1:NaN,pt=kt?kt.parameter2:NaN;isNaN(lt)&&(lt=.1),isNaN(pt)&&(pt=.3);var yt=new go.PathFigure(0,0,!0);return dt.add(yt),yt.add(new go.PathSegment(go.PathSegment.Line,(1-pt)*et,0)),yt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),yt.add(new go.PathSegment(go.PathSegment.Line,(1-pt)*et,nt)),yt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close()),dt}),go.Shape.defineFigureGenerator("Procedure",function(kt,et,nt){var dt=new go.Geometry,lt=kt?kt.parameter1:NaN;isNaN(lt)&&(lt=.1);var pt=new go.PathFigure(0,0,!0);dt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,et,0)),pt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close());var yt=new go.PathFigure((1-lt)*et,0,!1);return dt.add(yt),yt.add(new go.PathSegment(go.PathSegment.Line,(1-lt)*et,nt)),yt.add(new go.PathSegment(go.PathSegment.Move,lt*et,0)),yt.add(new go.PathSegment(go.PathSegment.Line,lt*et,nt)),dt}),go.Shape.defineFigureGenerator("Process",function(kt,et,nt){var dt=new go.Geometry,lt=kt?kt.parameter1:NaN;isNaN(lt)&&(lt=.1);var pt=new go.PathFigure(0,0,!0);dt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,et,0)),pt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close());var yt=new go.PathFigure(lt*et,0,!1);return dt.add(yt),yt.add(new go.PathSegment(go.PathSegment.Line,lt*et,nt)),dt.spot2=go.Spot.BottomRight,dt}),go.Shape.defineFigureGenerator("Sort",function(kt,et,nt){var dt=new go.Geometry,lt=new go.PathFigure(.5*et,0,!0);dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.5*nt).close());var pt=new go.PathFigure(0,.5*nt,!1);return dt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),dt.spot1=new go.Spot(.25,.25),dt.spot2=new go.Spot(.75,.5),dt}),go.Shape.defineFigureGenerator("Start",function(kt,et,nt){var dt=new go.Geometry,lt=kt?kt.parameter1:NaN;isNaN(lt)&&(lt=.25);var pt=new go.PathFigure(lt*et,0,!0);dt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*et,.5*nt,.25*et,.5*nt)),pt.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*et,.5*nt,.25*et,.5*nt));var yt=new go.PathFigure(lt*et,0,!1);return dt.add(yt),yt.add(new go.PathSegment(go.PathSegment.Line,lt*et,nt)),yt.add(new go.PathSegment(go.PathSegment.Move,(1-lt)*et,0)),yt.add(new go.PathSegment(go.PathSegment.Line,(1-lt)*et,nt)),dt.spot1=new go.Spot(lt,0),dt.spot2=new go.Spot(1-lt,1),dt}),go.Shape.defineFigureGenerator("Terminator",function(kt,et,nt){var dt=new go.Geometry,lt=new go.PathFigure(.25*et,0,!0);return dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*et,.5*nt,.25*et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*et,.5*nt,.25*et,.5*nt)),dt.spot1=new go.Spot(.23,0),dt.spot2=new go.Spot(.77,1),dt}),go.Shape.defineFigureGenerator("TransmittalTape",function(kt,et,nt){var dt=new go.Geometry,lt=kt?kt.parameter1:NaN;isNaN(lt)&&(lt=.1);var pt=new go.PathFigure(0,0,!0);return dt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,et,0)),pt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.75*et,(1-lt)*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,(1-lt)*nt).close()),dt.spot1=go.Spot.TopLeft,dt}),go.Shape.defineFigureGenerator("AndGate",function(kt,et,nt){var dt=new go.Geometry,lt=Jt*.5,pt=new go.PathFigure(0,0,!0);return dt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),pt.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*nt,(.5+lt)*et,0,et,(.5-lt)*nt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,nt,et,(.5+lt)*nt,(.5+lt)*et,nt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close()),dt.spot1=go.Spot.TopLeft,dt.spot2=new go.Spot(.55,1),dt}),go.Shape.defineFigureGenerator("Buffer",function(kt,et,nt){var dt=new go.Geometry,lt=new go.PathFigure(0,0,!0);return dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close()),dt.spot1=new go.Spot(0,.25),dt.spot2=new go.Spot(.5,.75),dt}),go.Shape.defineFigureGenerator("Clock",function(kt,et,nt){var dt=new go.Geometry,lt=Jt*.5,pt=.5,yt=new go.PathFigure(et,pt*nt,!0);dt.add(yt),yt.add(new go.PathSegment(go.PathSegment.Bezier,pt*et,nt,et,(pt+lt)*nt,(pt+lt)*et,nt)),yt.add(new go.PathSegment(go.PathSegment.Bezier,0,pt*nt,(pt-lt)*et,nt,0,(pt+lt)*nt)),yt.add(new go.PathSegment(go.PathSegment.Bezier,pt*et,0,0,(pt-lt)*nt,(pt-lt)*et,0)),yt.add(new go.PathSegment(go.PathSegment.Bezier,et,pt*nt,(pt+lt)*et,0,et,(pt-lt)*nt));var At=new go.PathFigure(et,pt*nt,!1);dt.add(At),At.add(new go.PathSegment(go.PathSegment.Line,et,pt*nt));var Dt=new go.PathFigure(.8*et,.75*nt,!1);return dt.add(Dt),Dt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.25*nt)),Dt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.25*nt)),Dt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.75*nt)),Dt.add(new go.PathSegment(go.PathSegment.Line,.4*et,.75*nt)),Dt.add(new go.PathSegment(go.PathSegment.Line,.4*et,.25*nt)),Dt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.25*nt)),Dt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.75*nt)),dt}),go.Shape.defineFigureGenerator("Ground",function(kt,et,nt){var dt=new go.Geometry,lt=new go.PathFigure(.5*et,0,!1);return dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.4*nt)),lt.add(new go.PathSegment(go.PathSegment.Move,.2*et,.6*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.6*nt)),lt.add(new go.PathSegment(go.PathSegment.Move,.3*et,.8*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.7*et,.8*nt)),lt.add(new go.PathSegment(go.PathSegment.Move,.4*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.6*et,nt)),dt}),go.Shape.defineFigureGenerator("Inverter",function(kt,et,nt){var dt=new go.Geometry,lt=Jt*.1,pt=.1,yt=.9,At=.5,Dt=new go.PathFigure(.8*et,.5*nt,!0);dt.add(Dt),Dt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),Dt.add(new go.PathSegment(go.PathSegment.Line,0,0)),Dt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.5*nt));var Ut=new go.PathFigure((yt+pt)*et,At*nt,!0);return dt.add(Ut),Ut.add(new go.PathSegment(go.PathSegment.Bezier,yt*et,(At+pt)*nt,(yt+pt)*et,(At+lt)*nt,(yt+lt)*et,(At+pt)*nt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,(yt-pt)*et,At*nt,(yt-lt)*et,(At+pt)*nt,(yt-pt)*et,(At+lt)*nt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,yt*et,(At-pt)*nt,(yt-pt)*et,(At-lt)*nt,(yt-lt)*et,(At-pt)*nt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,(yt+pt)*et,At*nt,(yt+lt)*et,(At-pt)*nt,(yt+pt)*et,(At-lt)*nt)),dt.spot1=new go.Spot(0,.25),dt.spot2=new go.Spot(.4,.75),dt}),go.Shape.defineFigureGenerator("NandGate",function(kt,et,nt){var dt=new go.Geometry,lt=Jt*.5,pt=Jt*.4,yt=Jt*.1,At=.1,Dt=.9,Ut=.5,Qt=new go.PathFigure(.8*et,.5*nt,!0);dt.add(Qt),Qt.add(new go.PathSegment(go.PathSegment.Bezier,.4*et,nt,.8*et,(.5+pt)*nt,(.4+lt)*et,nt)),Qt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),Qt.add(new go.PathSegment(go.PathSegment.Line,0,0)),Qt.add(new go.PathSegment(go.PathSegment.Line,.4*et,0)),Qt.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.5*nt,(.4+lt)*et,0,.8*et,(.5-pt)*nt));var $t=new go.PathFigure((Dt+At)*et,Ut*nt,!0);return dt.add($t),$t.add(new go.PathSegment(go.PathSegment.Bezier,Dt*et,(Ut+At)*nt,(Dt+At)*et,(Ut+yt)*nt,(Dt+yt)*et,(Ut+At)*nt)),$t.add(new go.PathSegment(go.PathSegment.Bezier,(Dt-At)*et,Ut*nt,(Dt-yt)*et,(Ut+At)*nt,(Dt-At)*et,(Ut+yt)*nt)),$t.add(new go.PathSegment(go.PathSegment.Bezier,Dt*et,(Ut-At)*nt,(Dt-At)*et,(Ut-yt)*nt,(Dt-yt)*et,(Ut-At)*nt)),$t.add(new go.PathSegment(go.PathSegment.Bezier,(Dt+At)*et,Ut*nt,(Dt+yt)*et,(Ut-At)*nt,(Dt+At)*et,(Ut-yt)*nt)),dt.spot1=new go.Spot(0,.05),dt.spot2=new go.Spot(.55,.95),dt}),go.Shape.defineFigureGenerator("NorGate",function(kt,et,nt){var dt=new go.Geometry,lt=.5,pt=Jt*lt,yt=0,At=.5,Dt=new go.PathFigure(.8*et,.5*nt,!0);dt.add(Dt),Dt.add(new go.PathSegment(go.PathSegment.Bezier,0,nt,.7*et,(At+pt)*nt,(yt+pt)*et,(At+lt)*nt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*et,.75*nt,.25*et,.25*nt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.5*nt,(yt+pt)*et,(At-lt)*nt,.7*et,(At-pt)*nt)),lt=.1,pt=Jt*.1,yt=.9,At=.5;var Ut=new go.PathFigure((yt-lt)*et,At*nt,!0);return dt.add(Ut),Ut.add(new go.PathSegment(go.PathSegment.Bezier,yt*et,(At-lt)*nt,(yt-lt)*et,(At-pt)*nt,(yt-pt)*et,(At-lt)*nt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,(yt+lt)*et,At*nt,(yt+pt)*et,(At-lt)*nt,(yt+lt)*et,(At-pt)*nt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,yt*et,(At+lt)*nt,(yt+lt)*et,(At+pt)*nt,(yt+pt)*et,(At+lt)*nt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,(yt-lt)*et,At*nt,(yt-pt)*et,(At+lt)*nt,(yt-lt)*et,(At+pt)*nt)),dt.spot1=new go.Spot(.2,.25),dt.spot2=new go.Spot(.6,.75),dt}),go.Shape.defineFigureGenerator("OrGate",function(kt,et,nt){var dt=new go.Geometry,lt=.5,pt=Jt*lt,yt=0,At=.5,Dt=new go.PathFigure(0,0,!0);return dt.add(Dt),Dt.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*nt,(yt+pt+pt)*et,(At-lt)*nt,.8*et,(At-pt)*nt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,0,nt,.8*et,(At+pt)*nt,(yt+pt+pt)*et,(At+lt)*nt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*et,.75*nt,.25*et,.25*nt).close()),dt.spot1=new go.Spot(.2,.25),dt.spot2=new go.Spot(.75,.75),dt}),go.Shape.defineFigureGenerator("XnorGate",function(kt,et,nt){var dt=new go.Geometry,lt=.5,pt=Jt*lt,yt=.2,At=.5,Dt=new go.PathFigure(.1*et,0,!1);dt.add(Dt),Dt.add(new go.PathSegment(go.PathSegment.Bezier,.1*et,nt,.35*et,.25*nt,.35*et,.75*nt));var Ut=new go.PathFigure(.8*et,.5*nt,!0);dt.add(Ut),Ut.add(new go.PathSegment(go.PathSegment.Bezier,.2*et,nt,.7*et,(At+pt)*nt,(yt+pt)*et,(At+lt)*nt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,.2*et,0,.45*et,.75*nt,.45*et,.25*nt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.5*nt,(yt+pt)*et,(At-lt)*nt,.7*et,(At-pt)*nt)),lt=.1,pt=Jt*.1,yt=.9,At=.5;var Qt=new go.PathFigure((yt-lt)*et,At*nt,!0);return dt.add(Qt),Qt.add(new go.PathSegment(go.PathSegment.Bezier,yt*et,(At-lt)*nt,(yt-lt)*et,(At-pt)*nt,(yt-pt)*et,(At-lt)*nt)),Qt.add(new go.PathSegment(go.PathSegment.Bezier,(yt+lt)*et,At*nt,(yt+pt)*et,(At-lt)*nt,(yt+lt)*et,(At-pt)*nt)),Qt.add(new go.PathSegment(go.PathSegment.Bezier,yt*et,(At+lt)*nt,(yt+lt)*et,(At+pt)*nt,(yt+pt)*et,(At+lt)*nt)),Qt.add(new go.PathSegment(go.PathSegment.Bezier,(yt-lt)*et,At*nt,(yt-pt)*et,(At+lt)*nt,(yt-lt)*et,(At+pt)*nt)),dt.spot1=new go.Spot(.4,.25),dt.spot2=new go.Spot(.65,.75),dt}),go.Shape.defineFigureGenerator("XorGate",function(kt,et,nt){var dt=new go.Geometry,lt=.5,pt=Jt*lt,yt=.2,At=.5,Dt=new go.PathFigure(.1*et,0,!1);dt.add(Dt),Dt.add(new go.PathSegment(go.PathSegment.Bezier,.1*et,nt,.35*et,.25*nt,.35*et,.75*nt));var Ut=new go.PathFigure(.2*et,0,!0);return dt.add(Ut),Ut.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*nt,(yt+pt)*et,(At-lt)*nt,.9*et,(At-pt)*nt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,.2*et,nt,.9*et,(At+pt)*nt,(yt+pt)*et,(At+lt)*nt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,.2*et,0,.45*et,.75*nt,.45*et,.25*nt).close()),dt.spot1=new go.Spot(.4,.25),dt.spot2=new go.Spot(.8,.75),dt}),go.Shape.defineFigureGenerator("Capacitor",function(kt,et,nt){var dt=new go.Geometry,lt=new go.PathFigure(0,0,!1);return dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),lt.add(new go.PathSegment(go.PathSegment.Move,et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),dt}),go.Shape.defineFigureGenerator("Resistor",function(kt,et,nt){var dt=new go.Geometry,lt=new go.PathFigure(0,.5*nt,!1);return dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.1*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.2*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.3*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.4*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.6*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.7*et,.5*nt)),dt}),go.Shape.defineFigureGenerator("Inductor",function(kt,et,nt){var dt=new go.Geometry,lt=Jt*.1,pt=.1,yt=.1,At=.5,Dt=new go.PathFigure((yt-lt*.5)*et,nt,!1);return dt.add(Dt),Dt.add(new go.PathSegment(go.PathSegment.Bezier,(yt+pt)*et,0,(yt-lt)*et,nt,(yt-pt)*et,0)),yt=.3,Dt.add(new go.PathSegment(go.PathSegment.Bezier,yt*et,nt,(yt+pt)*et,0,(yt+lt)*et,nt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,(yt+pt)*et,0,(yt-lt)*et,nt,(yt-pt)*et,0)),yt=.5,Dt.add(new go.PathSegment(go.PathSegment.Bezier,yt*et,nt,(yt+pt)*et,0,(yt+lt)*et,nt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,(yt+pt)*et,0,(yt-lt)*et,nt,(yt-pt)*et,0)),yt=.7,Dt.add(new go.PathSegment(go.PathSegment.Bezier,yt*et,nt,(yt+pt)*et,0,(yt+lt)*et,nt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,(yt+pt)*et,0,(yt-lt)*et,nt,(yt-pt)*et,0)),yt=.9,Dt.add(new go.PathSegment(go.PathSegment.Bezier,(yt+lt*.5)*et,nt,(yt+pt)*et,0,(yt+lt)*et,nt)),dt}),go.Shape.defineFigureGenerator("ACvoltageSource",function(kt,et,nt){var dt=new go.Geometry,lt=Jt*.5,pt=.5,yt=.5,At=.5,Dt=new go.PathFigure((yt-pt)*et,At*nt,!1);return dt.add(Dt),Dt.add(new go.PathSegment(go.PathSegment.Bezier,yt*et,(At-pt)*nt,(yt-pt)*et,(At-lt)*nt,(yt-lt)*et,(At-pt)*nt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,(yt+pt)*et,At*nt,(yt+lt)*et,(At-pt)*nt,(yt+pt)*et,(At-lt)*nt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,yt*et,(At+pt)*nt,(yt+pt)*et,(At+lt)*nt,(yt+lt)*et,(At+pt)*nt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,(yt-pt)*et,At*nt,(yt-lt)*et,(At+pt)*nt,(yt-pt)*et,(At+lt)*nt)),Dt.add(new go.PathSegment(go.PathSegment.Move,(yt-pt+.1)*et,At*nt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,(yt+pt-.1)*et,At*nt,yt*et,(At-pt)*nt,yt*et,(At+pt)*nt)),dt}),go.Shape.defineFigureGenerator("DCvoltageSource",function(kt,et,nt){var dt=new go.Geometry,lt=new go.PathFigure(0,.75*nt,!1);return dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,.25*nt)),lt.add(new go.PathSegment(go.PathSegment.Move,et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),dt}),go.Shape.defineFigureGenerator("Diode",function(kt,et,nt){var dt=new go.Geometry,lt=new go.PathFigure(et,0,!1);return dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),dt.spot1=new go.Spot(0,.25),dt.spot2=new go.Spot(.5,.75),dt}),go.Shape.defineFigureGenerator("Wifi",function(kt,et,nt){var dt=new go.Geometry,lt=et,pt=nt;et=et*.38,nt=nt*.6;var yt=Jt*.8,At=.8,Dt=0,Ut=.5,Qt=(lt-et)/2,$t=(pt-nt)/2,ne=new go.PathFigure(Dt*et+Qt,(Ut+At)*nt+$t,!0);dt.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,(Dt-At)*et+Qt,Ut*nt+$t,(Dt-yt)*et+Qt,(Ut+At)*nt+$t,(Dt-At)*et+Qt,(Ut+yt)*nt+$t)),ne.add(new go.PathSegment(go.PathSegment.Bezier,Dt*et+Qt,(Ut-At)*nt+$t,(Dt-At)*et+Qt,(Ut-yt)*nt+$t,(Dt-yt)*et+Qt,(Ut-At)*nt+$t)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(Dt-At+yt*.5)*et+Qt,Ut*nt+$t,Dt*et+Qt,(Ut-At)*nt+$t,(Dt-At+yt*.5)*et+Qt,(Ut-yt)*nt+$t)),ne.add(new go.PathSegment(go.PathSegment.Bezier,Dt*et+Qt,(Ut+At)*nt+$t,(Dt-At+yt*.5)*et+Qt,(Ut+yt)*nt+$t,Dt*et+Qt,(Ut+At)*nt+$t).close()),yt=Jt*.4,At=.4,Dt=.2,Ut=.5;var _t=new go.PathFigure(Dt*et+Qt,(Ut+At)*nt+$t,!0);dt.add(_t),_t.add(new go.PathSegment(go.PathSegment.Bezier,(Dt-At)*et+Qt,Ut*nt+$t,(Dt-yt)*et+Qt,(Ut+At)*nt+$t,(Dt-At)*et+Qt,(Ut+yt)*nt+$t)),_t.add(new go.PathSegment(go.PathSegment.Bezier,Dt*et+Qt,(Ut-At)*nt+$t,(Dt-At)*et+Qt,(Ut-yt)*nt+$t,(Dt-yt)*et+Qt,(Ut-At)*nt+$t)),_t.add(new go.PathSegment(go.PathSegment.Bezier,(Dt-At+yt*.5)*et+Qt,Ut*nt+$t,Dt*et+Qt,(Ut-At)*nt+$t,(Dt-At+yt*.5)*et+Qt,(Ut-yt)*nt+$t)),_t.add(new go.PathSegment(go.PathSegment.Bezier,Dt*et+Qt,(Ut+At)*nt+$t,(Dt-At+yt*.5)*et+Qt,(Ut+yt)*nt+$t,Dt*et+Qt,(Ut+At)*nt+$t).close()),yt=Jt*.2,At=.2,Dt=.5,Ut=.5;var Pe=new go.PathFigure((Dt-At)*et+Qt,Ut*nt+$t,!0);dt.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,Dt*et+Qt,(Ut-At)*nt+$t,(Dt-At)*et+Qt,(Ut-yt)*nt+$t,(Dt-yt)*et+Qt,(Ut-At)*nt+$t)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(Dt+At)*et+Qt,Ut*nt+$t,(Dt+yt)*et+Qt,(Ut-At)*nt+$t,(Dt+At)*et+Qt,(Ut-yt)*nt+$t)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,Dt*et+Qt,(Ut+At)*nt+$t,(Dt+At)*et+Qt,(Ut+yt)*nt+$t,(Dt+yt)*et+Qt,(Ut+At)*nt+$t)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(Dt-At)*et+Qt,Ut*nt+$t,(Dt-yt)*et+Qt,(Ut+At)*nt+$t,(Dt-At)*et+Qt,(Ut+yt)*nt+$t)),yt=Jt*.4,At=.4,Dt=.8,Ut=.5;var ue=new go.PathFigure(Dt*et+Qt,(Ut-At)*nt+$t,!0);dt.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,(Dt+At)*et+Qt,Ut*nt+$t,(Dt+yt)*et+Qt,(Ut-At)*nt+$t,(Dt+At)*et+Qt,(Ut-yt)*nt+$t)),ue.add(new go.PathSegment(go.PathSegment.Bezier,Dt*et+Qt,(Ut+At)*nt+$t,(Dt+At)*et+Qt,(Ut+yt)*nt+$t,(Dt+yt)*et+Qt,(Ut+At)*nt+$t)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(Dt+At-yt*.5)*et+Qt,Ut*nt+$t,Dt*et+Qt,(Ut+At)*nt+$t,(Dt+At-yt*.5)*et+Qt,(Ut+yt)*nt+$t)),ue.add(new go.PathSegment(go.PathSegment.Bezier,Dt*et+Qt,(Ut-At)*nt+$t,(Dt+At-yt*.5)*et+Qt,(Ut-yt)*nt+$t,Dt*et+Qt,(Ut-At)*nt+$t).close()),yt=Jt*.8,At=.8,Dt=1,Ut=.5;var pe=new go.PathFigure(Dt*et+Qt,(Ut-At)*nt+$t,!0);return dt.add(pe),pe.add(new go.PathSegment(go.PathSegment.Bezier,(Dt+At)*et+Qt,Ut*nt+$t,(Dt+yt)*et+Qt,(Ut-At)*nt+$t,(Dt+At)*et+Qt,(Ut-yt)*nt+$t)),pe.add(new go.PathSegment(go.PathSegment.Bezier,Dt*et+Qt,(Ut+At)*nt+$t,(Dt+At)*et+Qt,(Ut+yt)*nt+$t,(Dt+yt)*et+Qt,(Ut+At)*nt+$t)),pe.add(new go.PathSegment(go.PathSegment.Bezier,(Dt+At-yt*.5)*et+Qt,Ut*nt+$t,Dt*et+Qt,(Ut+At)*nt+$t,(Dt+At-yt*.5)*et+Qt,(Ut+yt)*nt+$t)),pe.add(new go.PathSegment(go.PathSegment.Bezier,Dt*et+Qt,(Ut-At)*nt+$t,(Dt+At-yt*.5)*et+Qt,(Ut-yt)*nt+$t,Dt*et+Qt,(Ut-At)*nt+$t).close()),dt}),go.Shape.defineFigureGenerator("Email",function(kt,et,nt){var dt=new go.Geometry,lt=new go.PathFigure(0,0,!0);dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var pt=new go.PathFigure(0,0,!1);return dt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.6*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,et,0)),pt.add(new go.PathSegment(go.PathSegment.Move,0,nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.45*et,.54*nt)),pt.add(new go.PathSegment(go.PathSegment.Move,et,nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.55*et,.54*nt)),dt}),go.Shape.defineFigureGenerator("Ethernet",function(kt,et,nt){var dt=new go.Geometry,lt=new go.PathFigure(.35*et,0,!0);dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.65*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.65*et,.4*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.35*et,.4*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.35*et,0).close());var pt=new go.PathFigure(.1*et,nt,!0,!0);dt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.4*et,nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.4*et,.6*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.1*et,.6*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.1*et,nt).close());var yt=new go.PathFigure(.6*et,nt,!0,!0);dt.add(yt),yt.add(new go.PathSegment(go.PathSegment.Line,.9*et,nt)),yt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.6*nt)),yt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.6*nt)),yt.add(new go.PathSegment(go.PathSegment.Line,.6*et,nt).close());var At=new go.PathFigure(0,.5*nt,!1);return dt.add(At),At.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),At.add(new go.PathSegment(go.PathSegment.Move,.5*et,.5*nt)),At.add(new go.PathSegment(go.PathSegment.Line,.5*et,.4*nt)),At.add(new go.PathSegment(go.PathSegment.Move,.75*et,.5*nt)),At.add(new go.PathSegment(go.PathSegment.Line,.75*et,.6*nt)),At.add(new go.PathSegment(go.PathSegment.Move,.25*et,.5*nt)),At.add(new go.PathSegment(go.PathSegment.Line,.25*et,.6*nt)),dt}),go.Shape.defineFigureGenerator("Power",function(kt,et,nt){var dt=new go.Geometry,lt=Jt*.4,pt=.4,yt=.5,At=.5,Dt=ht(),Ut=ht(),Qt=ht(),$t=ht();Re(yt,At-pt,yt+lt,At-pt,yt+pt,At-lt,yt+pt,At,.5,Dt,Dt,Ut,Qt,$t);var ne=Ft(Ut.x,Ut.y),_t=new go.PathFigure(Ut.x*et,Ut.y*nt,!0);dt.add(_t),_t.add(new go.PathSegment(go.PathSegment.Bezier,(yt+pt)*et,At*nt,Qt.x*et,Qt.y*nt,$t.x*et,$t.y*nt)),_t.add(new go.PathSegment(go.PathSegment.Bezier,yt*et,(At+pt)*nt,(yt+pt)*et,(At+lt)*nt,(yt+lt)*et,(At+pt)*nt)),_t.add(new go.PathSegment(go.PathSegment.Bezier,(yt-pt)*et,At*nt,(yt-lt)*et,(At+pt)*nt,(yt-pt)*et,(At+lt)*nt)),Re(yt-pt,At,yt-pt,At-lt,yt-lt,At-pt,yt,At-pt,.5,Qt,$t,Ut,Dt,Dt),_t.add(new go.PathSegment(go.PathSegment.Bezier,Ut.x*et,Ut.y*nt,Qt.x*et,Qt.y*nt,$t.x*et,$t.y*nt)),lt=Jt*.3,pt=.3,Re(yt-pt,At,yt-pt,At-lt,yt-lt,At-pt,yt,At-pt,.5,Qt,$t,Ut,Dt,Dt),_t.add(new go.PathSegment(go.PathSegment.Line,Ut.x*et,Ut.y*nt)),_t.add(new go.PathSegment(go.PathSegment.Bezier,(yt-pt)*et,At*nt,$t.x*et,$t.y*nt,Qt.x*et,Qt.y*nt)),_t.add(new go.PathSegment(go.PathSegment.Bezier,yt*et,(At+pt)*nt,(yt-pt)*et,(At+lt)*nt,(yt-lt)*et,(At+pt)*nt)),_t.add(new go.PathSegment(go.PathSegment.Bezier,(yt+pt)*et,At*nt,(yt+lt)*et,(At+pt)*nt,(yt+pt)*et,(At+lt)*nt)),Re(yt,At-pt,yt+lt,At-pt,yt+pt,At-lt,yt+pt,At,.5,Dt,Dt,Ut,Qt,$t),_t.add(new go.PathSegment(go.PathSegment.Bezier,Ut.x*et,Ut.y*nt,$t.x*et,$t.y*nt,Qt.x*et,Qt.y*nt).close());var _t=new go.PathFigure(.45*et,0,!0);return dt.add(_t),_t.add(new go.PathSegment(go.PathSegment.Line,.45*et,.5*nt)),_t.add(new go.PathSegment(go.PathSegment.Line,.55*et,.5*nt)),_t.add(new go.PathSegment(go.PathSegment.Line,.55*et,0).close()),Ht(Dt),Ht(Ut),Ht(Qt),Ht($t),Ht(ne),dt.spot1=new go.Spot(.25,.45),dt.spot2=new go.Spot(.75,.8),dt}),go.Shape.defineFigureGenerator("Fallout",function(kt,et,nt){var dt=new go.Geometry,lt=new go.PathFigure(0,nt/2,!0);dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Arc,180,360,et/2,nt/2,et/2,nt/2));function pt(yt,At,Dt){yt.add(new go.PathSegment(go.PathSegment.Move,(.3+At)*et,(.8+Dt)*nt)),yt.add(new go.PathSegment(go.PathSegment.Line,(.5+At)*et,(.5+Dt)*nt)),yt.add(new go.PathSegment(go.PathSegment.Line,(.1+At)*et,(.5+Dt)*nt)),yt.add(new go.PathSegment(go.PathSegment.Line,(.3+At)*et,(.8+Dt)*nt).close())}return pt(lt,0,0),pt(lt,.4,0),pt(lt,.2,-.3),dt}),go.Shape.defineFigureGenerator("IrritationHazard",function(kt,et,nt){var dt=new go.Geometry,lt=new go.PathFigure(.2*et,0,!0);return dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.3*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.2*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.7*et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.8*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.7*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.2*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.8*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.3*et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.2*nt).close()),dt.spot1=new go.Spot(.3,.3),dt.spot2=new go.Spot(.7,.7),dt}),go.Shape.defineFigureGenerator("ElectricalHazard",function(kt,et,nt){var dt=new go.Geometry,lt=new go.PathFigure(.37*et,0,!0);return dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.11*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.77*et,.04*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.33*et,.49*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.37*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.63*et,.86*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.77*et,.91*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.34*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.34*et,.78*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.44*et,.8*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.65*et,.56*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.68*nt).close()),dt}),go.Shape.defineFigureGenerator("FireHazard",function(kt,et,nt){var dt=new go.Geometry,lt=new go.PathFigure(.1*et,nt,!0);return dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Bezier,.29*et,0,-.25*et,.63*nt,.45*et,.44*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.51*et,.42*nt,.48*et,.17*nt,.54*et,.35*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.59*et,.18*nt,.59*et,.29*nt,.58*et,.28*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.75*et,.6*nt,.8*et,.34*nt,.88*et,.43*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.88*et,.31*nt,.87*et,.48*nt,.88*et,.43*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.9*et,nt,1.17*et,.76*nt,.82*et,.8*nt).close()),dt.spot1=new go.Spot(.07,.445),dt.spot2=new go.Spot(.884,.958),dt}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(kt,et,nt){var dt=new go.Geometry,lt=.5,pt=0,yt=0,At=lt*Jt,Dt=.4*Math.SQRT2/2+.5,Ut=.5-.5*Math.SQRT2/2,Qt=1,$t=.5,ne=.5,_t=0,Pe=new go.PathFigure(Dt*et,(1-Ut)*nt,!1);return dt.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,Qt*et,$t*nt,Qt*et,.7*nt,Qt*et,$t*nt)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(ne+pt)*et,(_t+pt)*nt,(.5+lt+pt)*et,(.5-At+pt)*nt,(.5+At+pt)*et,(.5-lt+pt)*nt)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(.5-lt+pt)*et,(.5+yt)*nt,(.5-At+pt)*et,(.5-lt+yt)*nt,(.5-lt+pt)*et,(.5-At+yt)*nt)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(.35+pt)*et,.9*nt,(.5-lt+pt)*et,(.5+At+yt)*nt,(.5-At+pt)*et,.9*nt)),Pe.add(new go.PathSegment(go.PathSegment.Move,(.25+pt)*et,.8*nt)),Pe.add(new go.PathSegment(go.PathSegment.Line,(.35+pt)*et,.9*nt)),Pe.add(new go.PathSegment(go.PathSegment.Line,(.2+pt)*et,.95*nt)),dt}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(kt,et,nt){var dt=new go.Geometry,lt=new go.PathFigure(0,0,!1);return dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),lt.add(new go.PathSegment(go.PathSegment.Move,.5*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Move,et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),dt}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(kt,et,nt){var dt=new go.Geometry,lt=new go.PathFigure(0,0,!1);return dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et,0)),lt.add(new go.PathSegment(go.PathSegment.Move,0,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Move,0,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),dt}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(kt,et,nt){var dt=new go.Geometry,lt=new go.PathFigure(0,0,!1);dt.add(lt);var pt=new go.PathFigure(et,nt,!1);dt.add(pt);var yt=new go.PathFigure(0,.5*nt,!1);return dt.add(yt),yt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.5*nt,.2*et,.35*nt,.3*et,.35*nt)),yt.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*nt,.7*et,.65*nt,.8*et,.65*nt)),dt}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(kt,et,nt){var dt=new go.Geometry,lt=new go.PathFigure(0,.5*nt,!0);return dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt).close()),dt}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(kt,et,nt){var dt=new go.Geometry,lt=new go.PathFigure(0,.2*nt,!0);dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et,.2*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.8*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.8*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.8*nt).close());var lt=new go.PathFigure(0,.2*nt,!1);return dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.2*nt)),dt}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(kt,et,nt){var dt=new go.Geometry,lt=new go.PathFigure(.7*et,nt,!0);dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.3*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.3*et,0,.6*et,.5*nt,0,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.7*et,0)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.7*et,nt,.4*et,.5*nt,et,.5*nt).close());var pt=new go.PathFigure(.45*et,.73*nt,!1);return dt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.7*et,.73*nt)),pt.add(new go.PathSegment(go.PathSegment.Move,.38*et,.5*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.63*et,.5*nt)),pt.add(new go.PathSegment(go.PathSegment.Move,.31*et,.27*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.56*et,.27*nt)),dt}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(kt,et,nt){var dt=new go.Geometry,lt=new go.PathFigure(0,0,!1);dt.add(lt);var pt=new go.PathFigure(.335*et,(1-.555)*nt,!0);dt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.335*et,(1-.405)*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*et,(1-.405)*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*et,(1-.555)*nt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,et,.68*nt,(1-.12)*et,.46*nt,(1-.02)*et,.54*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,.68*nt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,.335*et,(1-.555)*nt,.02*et,.54*nt,.12*et,.46*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.365*et,(1-.595)*nt));var yt=.5-.285,At=.5,Dt=yt,Ut=Math.PI/4,Qt=4*(1-Math.cos(Ut))/(3*Math.sin(Ut)),$t=Qt*.5,ne=yt,_t=yt,Pe=Qt*ne,ue=Qt*_t;pt.add(new go.PathSegment(go.PathSegment.Bezier,(At-ne)*et,Dt*nt,(At-(Pe+ne)/2)*et,(Dt+(_t+ue)/2)*nt,(At-ne)*et,(Dt+ue)*nt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,At*et,(Dt-_t)*nt,(At-ne)*et,(Dt-ue)*nt,(At-Pe)*et,(Dt-_t)*nt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,(At+ne)*et,Dt*nt,(At+Pe)*et,(Dt-_t)*nt,(At+ne)*et,(Dt-ue)*nt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*et,(1-.595)*nt,(At+ne)*et,(Dt+ue)*nt,(At+(Pe+ne)/2)*et,(Dt+(_t+ue)/2)*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*et,(1-.595)*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*et,(1-.555)*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*et,(1-.405)*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.335*et,(1-.405)*nt));var pe=new go.PathFigure(.2*et,nt,!1);dt.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.2*et,.8*nt));var oe=new go.PathFigure(.8*et,nt,!1);return dt.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,.8*et,.8*nt)),dt}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(kt,et,nt){var dt=new go.Geometry,lt=new go.PathFigure(.1*et,0,!0);dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.9*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.9*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.1*et,nt).close());var pt=new go.PathFigure(.2*et,.2*nt,!1);return dt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.2*nt)),pt.add(new go.PathSegment(go.PathSegment.Move,.2*et,.4*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.4*nt)),pt.add(new go.PathSegment(go.PathSegment.Move,.2*et,.6*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.6*nt)),pt.add(new go.PathSegment(go.PathSegment.Move,.2*et,.8*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.8*nt)),dt}),go.Shape.defineFigureGenerator("BpmnEventError",function(kt,et,nt){var dt=new go.Geometry,lt=new go.PathFigure(0,nt,!0);return dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.33*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.66*et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.66*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.33*et,.5*nt).close()),dt}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(kt,et,nt){var dt=new go.Geometry,lt=new go.PathFigure(0,0,!1);dt.add(lt);var pt=new go.PathFigure(et,nt,!1);dt.add(pt);var yt=new go.PathFigure(.1*et,nt,!0);return dt.add(yt),yt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),yt.add(new go.PathSegment(go.PathSegment.Line,.9*et,nt)),yt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*nt).close()),dt}),go.Shape.defineFigureGenerator("Caution",function(kt,et,nt){var dt=new go.Geometry,lt=new go.PathFigure(.05*et,nt,!0);dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Bezier,.1*et,.8*nt,0,nt,0,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.45*et,.1*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.55*et,.1*nt,.5*et,0,.5*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.95*et,.9*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.9*et,nt,et,nt,et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.05*et,nt));var pt=.05;return lt.add(new go.PathSegment(go.PathSegment.Move,(.5-pt)*et,.875*nt)),lt.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*et,.875*nt,pt*et,pt*nt)),lt.add(new go.PathSegment(go.PathSegment.Move,.5*et,.75*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.325*nt,.575*et,.725*nt,.625*et,.375*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.75*nt,.375*et,.375*nt,.425*et,.725*nt)),dt}),go.Shape.defineFigureGenerator("Recycle",function(kt,et,nt){var dt=new go.Geometry,lt=new go.PathFigure(.45*et,.95*nt,!1);dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.95*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.185*et,.85*nt,.17*et,.95*nt,.15*et,.9*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.235*et,.75*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.3*et,.625*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.35*et,.65*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.275*et,.45*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.05*et,.45*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.1*et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.05*et,.575*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.1875*et,.95*nt,0,.675*nt,0,.7*nt)),lt.add(new go.PathSegment(go.PathSegment.Move,.45*et,.95*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.45*et,.775*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.22*et,.775*nt));var pt=new go.PathFigure(.475*et,.2*nt,!1);dt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.4*et,.4*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.225*et,.3*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.275*et,.175*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.325*et,.05*nt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,.4*et,.05*nt,.35*et,0,.375*et,0)),pt.add(new go.PathSegment(go.PathSegment.Line,.575*et,.375*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.525*et,.4*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.75*et,.475*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.85*et,.315*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.32*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.65*et,.05*nt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,.575*et,0,.65*et,.05*nt,.625*et,0)),pt.add(new go.PathSegment(go.PathSegment.Line,.38*et,.0105*nt));var yt=new go.PathFigure(.675*et,.575*nt,!1);return dt.add(yt),yt.add(new go.PathSegment(go.PathSegment.Line,.875*et,.525*nt)),yt.add(new go.PathSegment(go.PathSegment.Line,et,.775*nt)),yt.add(new go.PathSegment(go.PathSegment.Bezier,.85*et,.95*nt,et,.8*nt,et,.85*nt)),yt.add(new go.PathSegment(go.PathSegment.Line,.65*et,.95*nt)),yt.add(new go.PathSegment(go.PathSegment.Line,.65*et,nt)),yt.add(new go.PathSegment(go.PathSegment.Line,.55*et,.85*nt)),yt.add(new go.PathSegment(go.PathSegment.Line,.65*et,.725*nt)),yt.add(new go.PathSegment(go.PathSegment.Line,.65*et,.775*nt)),yt.add(new go.PathSegment(go.PathSegment.Line,.7*et,.775*nt)),yt.add(new go.PathSegment(go.PathSegment.Line,et,.775*nt)),yt.add(new go.PathSegment(go.PathSegment.Move,.675*et,.575*nt)),yt.add(new go.PathSegment(go.PathSegment.Line,.775*et,.775*nt)),dt}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(kt,et,nt){var dt=new go.Geometry,lt=.5,pt=Jt*.5,yt=new go.PathFigure(et,lt*nt,!0);dt.add(yt),yt.add(new go.PathSegment(go.PathSegment.Bezier,lt*et,nt,et,(lt+pt)*nt,(lt+pt)*et,nt)),yt.add(new go.PathSegment(go.PathSegment.Bezier,0,lt*nt,(lt-pt)*et,nt,0,(lt+pt)*nt)),yt.add(new go.PathSegment(go.PathSegment.Bezier,lt*et,0,0,(lt-pt)*nt,(lt-pt)*et,0)),yt.add(new go.PathSegment(go.PathSegment.Bezier,et,lt*nt,(lt+pt)*et,0,et,(lt-pt)*nt));var At=new go.PathFigure(lt*et,0,!1);return dt.add(At),At.add(new go.PathSegment(go.PathSegment.Line,lt*et,.15*nt)),At.add(new go.PathSegment(go.PathSegment.Move,lt*et,nt)),At.add(new go.PathSegment(go.PathSegment.Line,lt*et,.85*nt)),At.add(new go.PathSegment(go.PathSegment.Move,0,lt*nt)),At.add(new go.PathSegment(go.PathSegment.Line,.15*et,lt*nt)),At.add(new go.PathSegment(go.PathSegment.Move,et,lt*nt)),At.add(new go.PathSegment(go.PathSegment.Line,.85*et,lt*nt)),At.add(new go.PathSegment(go.PathSegment.Move,lt*et,lt*nt)),At.add(new go.PathSegment(go.PathSegment.Line,.58*et,.1*nt)),At.add(new go.PathSegment(go.PathSegment.Move,lt*et,lt*nt)),At.add(new go.PathSegment(go.PathSegment.Line,.78*et,.54*nt)),dt}),go.Shape.defineFigureGenerator("Package",function(kt,et,nt){var dt=new go.Geometry,lt=new go.PathFigure(0,.15*nt,!0);dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et,.15*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close());var pt=new go.PathFigure(0,.15*nt,!0);return dt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,0,0)),pt.add(new go.PathSegment(go.PathSegment.Line,.6*et,0)),pt.add(new go.PathSegment(go.PathSegment.Line,.65*et,.15*nt).close()),dt.spot1=new go.Spot(0,.1),dt.spot2=new go.Spot(1,1),dt}),go.Shape.defineFigureGenerator("Class",function(kt,et,nt){var dt=new go.Geometry,lt=new go.PathFigure(0,0,!0);dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var pt=new go.PathFigure(0,.2*nt,!1);dt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,et,.2*nt).close());var yt=new go.PathFigure(0,.5*nt,!1);return dt.add(yt),yt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt).close()),dt}),go.Shape.defineFigureGenerator("Component",function(kt,et,nt){var dt=new go.Geometry,lt=new go.PathFigure(et,nt,!0);dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.15*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.15*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt).close());var pt=new go.PathFigure(0,.2*nt,!0);dt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.45*et,.2*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.45*et,.4*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,.4*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,.2*nt).close());var yt=new go.PathFigure(0,.6*nt,!0);return dt.add(yt),yt.add(new go.PathSegment(go.PathSegment.Line,.45*et,.6*nt)),yt.add(new go.PathSegment(go.PathSegment.Line,.45*et,.8*nt)),yt.add(new go.PathSegment(go.PathSegment.Line,0,.8*nt)),yt.add(new go.PathSegment(go.PathSegment.Line,0,.6*nt).close()),dt}),go.Shape.defineFigureGenerator("Boat Shipment",function(kt,et,nt){var dt=new go.Geometry,lt=new go.PathFigure(.15*et,.6*nt,!0);dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.15*et,.6*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.6*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.15*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.85*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.6*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.85*et,.6*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.15*et,.6*nt));var pt=new go.PathFigure(.15*et,.6*nt,!1);return dt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.85*et,.6*nt)),dt}),go.Shape.defineFigureGenerator("Customer/Supplier",function(kt,et,nt){var dt=new go.Geometry,lt=new go.PathFigure(et,nt,!0);return dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.66*et,.33*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.66*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.33*et,.33*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.33*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.33*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt).close()),dt}),go.Shape.defineFigureGenerator("Workcell",function(kt,et,nt){var dt=new go.Geometry,lt=new go.PathFigure(0,nt,!0);return dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.65*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.65*et,.4*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.35*et,.4*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.35*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close()),dt}),go.Shape.defineFigureGenerator("Supermarket",function(kt,et,nt){var dt=new go.Geometry,lt=new go.PathFigure(0,0,!1);return dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.33*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.33*nt)),lt.add(new go.PathSegment(go.PathSegment.Move,et,.33*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.66*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.66*nt)),lt.add(new go.PathSegment(go.PathSegment.Move,et,.66*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),dt}),go.Shape.defineFigureGenerator("TruckShipment",function(kt,et,nt){var dt=new go.Geometry,lt=new go.PathFigure(0,0,!0);dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.6*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.8*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.8*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var pt=new go.PathFigure(et,.8*nt,!0);dt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,et,.4*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.4*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.8*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,et,.8*nt).close());var yt=.1,At=Jt*.1,Dt=.2,Ut=.9,Qt=new go.PathFigure((Dt-yt)*et,Ut*nt,!0);dt.add(Qt),Qt.add(new go.PathSegment(go.PathSegment.Bezier,Dt*et,(Ut-yt)*nt,(Dt-yt)*et,(Ut-At)*nt,(Dt-At)*et,(Ut-yt)*nt)),Qt.add(new go.PathSegment(go.PathSegment.Bezier,(Dt+yt)*et,Ut*nt,(Dt+At)*et,(Ut-yt)*nt,(Dt+yt)*et,(Ut-At)*nt)),Qt.add(new go.PathSegment(go.PathSegment.Bezier,Dt*et,(Ut+yt)*nt,(Dt+yt)*et,(Ut+At)*nt,(Dt+At)*et,(Ut+yt)*nt)),Qt.add(new go.PathSegment(go.PathSegment.Bezier,(Dt-yt)*et,Ut*nt,(Dt-At)*et,(Ut+yt)*nt,(Dt-yt)*et,(Ut+At)*nt).close()),yt=.1,At=Jt*.1,Dt=.8,Ut=.9;var $t=new go.PathFigure((Dt-yt)*et,Ut*nt,!0);return dt.add($t),$t.add(new go.PathSegment(go.PathSegment.Bezier,Dt*et,(Ut-yt)*nt,(Dt-yt)*et,(Ut-At)*nt,(Dt-At)*et,(Ut-yt)*nt)),$t.add(new go.PathSegment(go.PathSegment.Bezier,(Dt+yt)*et,Ut*nt,(Dt+At)*et,(Ut-yt)*nt,(Dt+yt)*et,(Ut-At)*nt)),$t.add(new go.PathSegment(go.PathSegment.Bezier,Dt*et,(Ut+yt)*nt,(Dt+yt)*et,(Ut+At)*nt,(Dt+At)*et,(Ut+yt)*nt)),$t.add(new go.PathSegment(go.PathSegment.Bezier,(Dt-yt)*et,Ut*nt,(Dt-At)*et,(Ut+yt)*nt,(Dt-yt)*et,(Ut+At)*nt).close()),dt}),go.Shape.defineFigureGenerator("KanbanPost",function(kt,et,nt){var dt=new go.Geometry,lt=new go.PathFigure(.2*et,0,!1);return dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*et,0)),lt.add(new go.PathSegment(go.PathSegment.Move,.5*et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.2*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Move,.5*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*et,nt)),dt}),go.Shape.defineFigureGenerator("Forklift",function(kt,et,nt){var dt=new go.Geometry,lt=new go.PathFigure(0,0,!0);dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.4*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,0,0));var pt=new go.PathFigure(0,.5*nt,!0);dt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,0,.8*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.8*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,.5*nt));var yt=new go.PathFigure(.5*et,.8*nt,!0);dt.add(yt),yt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.1*nt)),yt.add(new go.PathSegment(go.PathSegment.Line,.55*et,.1*nt)),yt.add(new go.PathSegment(go.PathSegment.Line,.55*et,.8*nt)),yt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.8*nt));var At=new go.PathFigure(.5*et,.7*nt,!1);dt.add(At),At.add(new go.PathSegment(go.PathSegment.Line,et,.7*nt));var Dt=.1,Ut=Jt*.1,Qt=.1,$t=.9,ne=new go.PathFigure((Qt-Dt)*et,$t*nt,!0);dt.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,Qt*et,($t-Dt)*nt,(Qt-Dt)*et,($t-Ut)*nt,(Qt-Ut)*et,($t-Dt)*nt)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(Qt+Dt)*et,$t*nt,(Qt+Ut)*et,($t-Dt)*nt,(Qt+Dt)*et,($t-Ut)*nt)),ne.add(new go.PathSegment(go.PathSegment.Bezier,Qt*et,($t+Dt)*nt,(Qt+Dt)*et,($t+Ut)*nt,(Qt+Ut)*et,($t+Dt)*nt)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(Qt-Dt)*et,$t*nt,(Qt-Ut)*et,($t+Dt)*nt,(Qt-Dt)*et,($t+Ut)*nt)),Dt=.1,Ut=Jt*.1,Qt=.4,$t=.9;var _t=new go.PathFigure((Qt-Dt)*et,$t*nt,!0);return dt.add(_t),_t.add(new go.PathSegment(go.PathSegment.Bezier,Qt*et,($t-Dt)*nt,(Qt-Dt)*et,($t-Ut)*nt,(Qt-Ut)*et,($t-Dt)*nt)),_t.add(new go.PathSegment(go.PathSegment.Bezier,(Qt+Dt)*et,$t*nt,(Qt+Ut)*et,($t-Dt)*nt,(Qt+Dt)*et,($t-Ut)*nt)),_t.add(new go.PathSegment(go.PathSegment.Bezier,Qt*et,($t+Dt)*nt,(Qt+Dt)*et,($t+Ut)*nt,(Qt+Ut)*et,($t+Dt)*nt)),_t.add(new go.PathSegment(go.PathSegment.Bezier,(Qt-Dt)*et,$t*nt,(Qt-Ut)*et,($t+Dt)*nt,(Qt-Dt)*et,($t+Ut)*nt)),dt}),go.Shape.defineFigureGenerator("RailShipment",function(kt,et,nt){var dt=new go.Geometry,lt=new go.PathFigure(.1*et,.4*nt,!0);dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.45*et,.4*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.45*et,.9*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.1*et,.9*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.1*et,.4*nt).close());var pt=new go.PathFigure(.45*et,.7*nt,!1);dt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.55*et,.7*nt));var yt=new go.PathFigure(.55*et,.4*nt,!0);dt.add(yt),yt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.4*nt)),yt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.9*nt)),yt.add(new go.PathSegment(go.PathSegment.Line,.55*et,.9*nt)),yt.add(new go.PathSegment(go.PathSegment.Line,.55*et,.4*nt).close());var Qt=.05,$t=Jt*.05,ne=.175,_t=.95,At=new go.PathFigure((ne-Qt)*et,_t*nt,!0);dt.add(At),At.add(new go.PathSegment(go.PathSegment.Bezier,ne*et,(_t-Qt)*nt,(ne-Qt)*et,(_t-$t)*nt,(ne-$t)*et,(_t-Qt)*nt)),At.add(new go.PathSegment(go.PathSegment.Bezier,(ne+Qt)*et,_t*nt,(ne+$t)*et,(_t-Qt)*nt,(ne+Qt)*et,(_t-$t)*nt)),At.add(new go.PathSegment(go.PathSegment.Bezier,ne*et,(_t+Qt)*nt,(ne+Qt)*et,(_t+$t)*nt,(ne+$t)*et,(_t+Qt)*nt)),At.add(new go.PathSegment(go.PathSegment.Bezier,(ne-Qt)*et,_t*nt,(ne-$t)*et,(_t+Qt)*nt,(ne-Qt)*et,(_t+$t)*nt));var Qt=.05,$t=Jt*.05,ne=.375,_t=.95,Dt=new go.PathFigure((ne-Qt)*et,_t*nt,!0);dt.add(Dt),Dt.add(new go.PathSegment(go.PathSegment.Bezier,ne*et,(_t-Qt)*nt,(ne-Qt)*et,(_t-$t)*nt,(ne-$t)*et,(_t-Qt)*nt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,(ne+Qt)*et,_t*nt,(ne+$t)*et,(_t-Qt)*nt,(ne+Qt)*et,(_t-$t)*nt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,ne*et,(_t+Qt)*nt,(ne+Qt)*et,(_t+$t)*nt,(ne+$t)*et,(_t+Qt)*nt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,(ne-Qt)*et,_t*nt,(ne-$t)*et,(_t+Qt)*nt,(ne-Qt)*et,(_t+$t)*nt));var Qt=.05,$t=Jt*.05,ne=.625,_t=.95,Ut=new go.PathFigure((ne-Qt)*et,_t*nt,!0);dt.add(Ut),Ut.add(new go.PathSegment(go.PathSegment.Bezier,ne*et,(_t-Qt)*nt,(ne-Qt)*et,(_t-$t)*nt,(ne-$t)*et,(_t-Qt)*nt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,(ne+Qt)*et,_t*nt,(ne+$t)*et,(_t-Qt)*nt,(ne+Qt)*et,(_t-$t)*nt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,ne*et,(_t+Qt)*nt,(ne+Qt)*et,(_t+$t)*nt,(ne+$t)*et,(_t+Qt)*nt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,(ne-Qt)*et,_t*nt,(ne-$t)*et,(_t+Qt)*nt,(ne-Qt)*et,(_t+$t)*nt));var Qt=.05,$t=Jt*.05,ne=.825,_t=.95,Pe=new go.PathFigure((ne-Qt)*et,_t*nt,!0);dt.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,ne*et,(_t-Qt)*nt,(ne-Qt)*et,(_t-$t)*nt,(ne-$t)*et,(_t-Qt)*nt)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(ne+Qt)*et,_t*nt,(ne+$t)*et,(_t-Qt)*nt,(ne+Qt)*et,(_t-$t)*nt)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,ne*et,(_t+Qt)*nt,(ne+Qt)*et,(_t+$t)*nt,(ne+$t)*et,(_t+Qt)*nt)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(ne-Qt)*et,_t*nt,(ne-$t)*et,(_t+Qt)*nt,(ne-Qt)*et,(_t+$t)*nt).close());var ue=new go.PathFigure(0,nt,!1);return dt.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,et,nt).close()),dt}),go.Shape.defineFigureGenerator("Warehouse",function(kt,et,nt){var dt=new go.Geometry,lt=new go.PathFigure(0,0,!0);dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var pt=new go.PathFigure(0,.2*nt,!1);dt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,et,.2*nt).close());var yt=new go.PathFigure(.15*et,nt,!0);dt.add(yt),yt.add(new go.PathSegment(go.PathSegment.Line,.15*et,.5*nt)),yt.add(new go.PathSegment(go.PathSegment.Line,.4*et,.5*nt)),yt.add(new go.PathSegment(go.PathSegment.Line,.4*et,nt)),yt.add(new go.PathSegment(go.PathSegment.Line,.15*et,nt).close());var At=.05,Dt=Jt*.05,Ut=.35,Qt=.775,$t=new go.PathFigure((Ut-At)*et,Qt*nt,!0);return dt.add($t),$t.add(new go.PathSegment(go.PathSegment.Bezier,Ut*et,(Qt-At)*nt,(Ut-At)*et,(Qt-Dt)*nt,(Ut-Dt)*et,(Qt-At)*nt)),$t.add(new go.PathSegment(go.PathSegment.Bezier,(Ut+At)*et,Qt*nt,(Ut+Dt)*et,(Qt-At)*nt,(Ut+At)*et,(Qt-Dt)*nt)),$t.add(new go.PathSegment(go.PathSegment.Bezier,Ut*et,(Qt+At)*nt,(Ut+At)*et,(Qt+Dt)*nt,(Ut+Dt)*et,(Qt+At)*nt)),$t.add(new go.PathSegment(go.PathSegment.Bezier,(Ut-At)*et,Qt*nt,(Ut-Dt)*et,(Qt+At)*nt,(Ut-At)*et,(Qt+Dt)*nt).close()),dt}),go.Shape.defineFigureGenerator("ControlCenter",function(kt,et,nt){var dt=new go.Geometry,lt=new go.PathFigure(0,nt,!0);return dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,.8*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.1*et,.8*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.1*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.9*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.8*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.8*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),lt.add(new go.PathSegment(go.PathSegment.Move,.1*et,.8*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.8*nt).close()),dt}),go.Shape.defineFigureGenerator("Bluetooth",function(kt,et,nt){var dt=new go.Geometry,lt=new go.PathFigure(0,.75*nt,!1);return dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,.75*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.25*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.75*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.25*nt)),dt}),go.Shape.defineFigureGenerator("Bookmark",function(kt,et,nt){var dt=new go.Geometry,lt=new go.PathFigure(0,0,!0);return dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.6*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,0,0)),lt.add(new go.PathSegment(go.PathSegment.Move,.2*et,.2*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.2*nt)),lt.add(new go.PathSegment(go.PathSegment.Move,.2*et,.4*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.4*nt)),dt}),go.Shape.defineFigureGenerator("Bookmark",function(kt,et,nt){var dt=new go.Geometry,lt=new go.PathFigure(0,0,!0);return dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.6*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,0,0)),lt.add(new go.PathSegment(go.PathSegment.Move,.2*et,.2*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.2*nt)),lt.add(new go.PathSegment(go.PathSegment.Move,.2*et,.4*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.4*nt)),dt}),go.Shape.defineFigureGenerator("Globe",function(kt,et,nt){var dt=new go.Geometry,lt=new go.PathFigure(.5*et,0,!1);return dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Move,0,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Move,.5*et,0)),lt.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*nt,.75*et,0,et,.25*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,nt,et,.75*nt,.75*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*nt,.25*et,nt,0,.75*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,0,.25*nt,.25*et,0)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,nt,.15*et,.25*nt,.15*et,.75*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,.85*et,.75*nt,.85*et,.25*nt)),lt.add(new go.PathSegment(go.PathSegment.Move,.1675*et,.15*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.8325*et,.15*nt,.35*et,.3*nt,.65*et,.3*nt)),lt.add(new go.PathSegment(go.PathSegment.Move,.1675*et,.85*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.8325*et,.85*nt,.35*et,.7*nt,.65*et,.7*nt)),dt}),go.Shape.defineFigureGenerator("Wave",function(kt,et,nt){var dt=new go.Geometry,lt=new go.PathFigure(0,.25*nt,!1);return dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Bezier,.3*et,.25*nt,.1*et,0,.2*et,0)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.7*et,.25*nt,.425*et,.5*nt,.575*et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,et,.25*nt,.8*et,0,.9*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.75*nt)),lt.add(new go.PathSegment(go.PathSegment.Move,0,.25*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.75*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.3*et,.75*nt,.1*et,.5*nt,.2*et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.7*et,.75*nt,.425*et,nt,.575*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,et,.75*nt,.8*et,.5*nt,.9*et,.5*nt)),dt}),go.Shape.defineFigureGenerator("Operator",function(kt,et,nt){var dt=new go.Geometry,lt=.3,pt=Jt*.3,yt=.5,At=.7,Dt=new go.PathFigure((yt-lt)*et,At*nt,!0);dt.add(Dt),Dt.add(new go.PathSegment(go.PathSegment.Bezier,yt*et,(At-lt)*nt,(yt-lt)*et,(At-pt)*nt,(yt-pt)*et,(At-lt)*nt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,(yt+lt)*et,At*nt,(yt+pt)*et,(At-lt)*nt,(yt+lt)*et,(At-pt)*nt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,yt*et,(At+lt)*nt,(yt+lt)*et,(At+pt)*nt,(yt+pt)*et,(At+lt)*nt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,(yt-lt)*et,At*nt,(yt-pt)*et,(At+lt)*nt,(yt-lt)*et,(At+pt)*nt));var Ut=new go.PathFigure(0,.7*nt,!1);return dt.add(Ut),Ut.add(new go.PathSegment(go.PathSegment.Bezier,et,.7*nt,0,0,et,0)),dt}),go.Shape.defineFigureGenerator("TripleFanBlades",function(kt,et,nt){var dt=new go.Geometry,lt=new go.PathFigure(.5*et,0,!0);return dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.65*nt,.65*et,.3*nt,.65*et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,.35*et,.5*nt,.35*et,.3*nt)),lt.add(new go.PathSegment(go.PathSegment.Move,.5*et,.65*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,0,nt,.3*et,.6*nt,.1*et,.8*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.65*nt,.2*et,nt,.35*et,.95*nt)),lt.add(new go.PathSegment(go.PathSegment.Move,.5*et,.65*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,et,nt,.7*et,.6*nt,.9*et,.8*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.65*nt,.8*et,nt,.65*et,.95*nt)),dt}),go.Shape.defineFigureGenerator("CentrifugalPump",function(kt,et,nt){var dt=new go.Geometry,lt=new go.PathFigure(et,0,!0);return dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.4*et,0)),lt.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*nt,0,.075*nt,0,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.4*et,nt,0,nt,.4*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.4*nt,.8*et,nt,.85*et,.6*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.4*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,0)),dt}),go.Shape.defineFigureGenerator("Battery",function(kt,et,nt){var dt=new go.Geometry,lt=new go.PathFigure(0,nt,!0);dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,.1*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.1*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),lt.add(new go.PathSegment(go.PathSegment.Move,.4*et,.1*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.4*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.6*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.1*nt));var pt=new go.PathFigure(0,.6*nt,!1);return dt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Move,0,.4*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,et,.4*nt)),dt}),go.Shape.defineFigureGenerator("Delete",function(kt,et,nt){var dt=new go.Geometry,lt=.5,pt=Jt*.5,yt=.5,At=.5,Dt=new go.PathFigure((yt-lt)*et,At*nt,!0);dt.add(Dt),Dt.add(new go.PathSegment(go.PathSegment.Bezier,yt*et,(At-lt)*nt,(yt-lt)*et,(At-pt)*nt,(yt-pt)*et,(At-lt)*nt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,(yt+lt)*et,At*nt,(yt+pt)*et,(At-lt)*nt,(yt+lt)*et,(At-pt)*nt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,yt*et,(At+lt)*nt,(yt+lt)*et,(At+pt)*nt,(yt+pt)*et,(At+lt)*nt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,(yt-lt)*et,At*nt,(yt-pt)*et,(At+lt)*nt,(yt-lt)*et,(At+pt)*nt));var Ut=new go.PathFigure(.15*et,.5*nt,!1);return dt.add(Ut),Ut.add(new go.PathSegment(go.PathSegment.Line,.85*et,.5*nt)),dt}),go.Shape.defineFigureGenerator("Flag",function(kt,et,nt){var dt=new go.Geometry,lt=new go.PathFigure(0,.1*nt,!0);return dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),lt.add(new go.PathSegment(go.PathSegment.Move,0,.1*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.1*nt,.15*et,0,.35*et,0)),lt.add(new go.PathSegment(go.PathSegment.Bezier,et,.1*nt,.65*et,.2*nt,.85*et,.2*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.5*nt,.85*et,.6*nt,.65*et,.6*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*nt,.35*et,.4*nt,.15*et,.4*nt).close()),dt}),go.Shape.defineFigureGenerator("Help",function(kt,et,nt){var dt=new go.Geometry,lt=.5,pt=Jt*.5,yt=.5,At=.5,Dt=new go.PathFigure((yt-lt)*et,At*nt,!1);dt.add(Dt),Dt.add(new go.PathSegment(go.PathSegment.Bezier,yt*et,(At-lt)*nt,(yt-lt)*et,(At-pt)*nt,(yt-pt)*et,(At-lt)*nt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,(yt+lt)*et,At*nt,(yt+pt)*et,(At-lt)*nt,(yt+lt)*et,(At-pt)*nt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,yt*et,(At+lt)*nt,(yt+lt)*et,(At+pt)*nt,(yt+pt)*et,(At+lt)*nt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,(yt-lt)*et,At*nt,(yt-pt)*et,(At+lt)*nt,(yt-lt)*et,(At+pt)*nt).close()),lt=.05,pt=Jt*.05,yt=.5,At=.8;var Ut=new go.PathFigure((yt-lt)*et,At*nt,!1);return dt.add(Ut),Ut.add(new go.PathSegment(go.PathSegment.Bezier,yt*et,(At-lt)*nt,(yt-lt)*et,(At-pt)*nt,(yt-pt)*et,(At-lt)*nt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,(yt+lt)*et,At*nt,(yt+pt)*et,(At-lt)*nt,(yt+lt)*et,(At-pt)*nt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,yt*et,(At+lt)*nt,(yt+lt)*et,(At+pt)*nt,(yt+pt)*et,(At+lt)*nt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,(yt-lt)*et,At*nt,(yt-pt)*et,(At+lt)*nt,(yt-lt)*et,(At+pt)*nt).close()),Ut.add(new go.PathSegment(go.PathSegment.Move,.5*et,.7*nt)),Ut.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*nt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.2*nt,.75*et,.475*nt,.75*et,.225*nt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,.3*et,.35*nt,.4*et,.2*nt,.3*et,.25*nt)),dt}),go.Shape.defineFigureGenerator("Location",function(kt,et,nt){return new go.Geometry().add(new go.PathFigure(.5*et,nt,!0).add(new go.PathSegment(go.PathSegment.Line,.75*et,.5*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,.975*et,.025*nt,.5*et,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*et,.5*nt,.5*et,0,.025*et,.025*nt).close()).add(new go.PathSegment(go.PathSegment.Move,.5*et,.2*nt)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*et,.3*nt,.1*et,.1*nt).close()))}),go.Shape.defineFigureGenerator("Lock",function(kt,et,nt){var dt=new go.Geometry,lt=new go.PathFigure(0,.5*nt,!0);dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.5*nt));var pt=new go.PathFigure(.2*et,.5*nt,!1);return dt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Move,.2*et,.5*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.3*nt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.3*nt,.25*et,0,.75*et,0)),pt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.5*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.3*nt)),dt}),go.Shape.defineFigureGenerator("Unlocked",function(kt,et,nt){var dt=new go.Geometry,lt=new go.PathFigure(0,.5*nt,!0);dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.5*nt));var pt=new go.PathFigure(.2*et,.5*nt,!1);return dt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Move,.2*et,.5*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.3*nt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.3*nt,.25*et,0,.75*et,0)),pt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.35*nt)),dt}),go.Shape.defineFigureGenerator("Gear",function(kt,et,nt){return new go.Geometry().add(new go.PathFigure(.9375*et,.56246875*nt,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*et,.4375*nt)).add(new go.PathSegment(go.PathSegment.Line,.80621875*et,.4375*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.763*et,.3316875*nt,.79840625*et,.39915625*nt,.7834375*et,.3635*nt)).add(new go.PathSegment(go.PathSegment.Line,.8566875*et,.23796875*nt)).add(new go.PathSegment(go.PathSegment.Line,.76825*et,.14959375*nt)).add(new go.PathSegment(go.PathSegment.Line,.67596875*et,.24184375*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*et,.19378125*nt,.64228125*et,.2188125*nt,.603875*et,.2021875*nt)).add(new go.PathSegment(go.PathSegment.Line,.5625*et,.0625*nt)).add(new go.PathSegment(go.PathSegment.Line,.4375*et,.0625*nt)).add(new go.PathSegment(go.PathSegment.Line,.4375*et,.19378125*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*et,.239375*nt,.39759375*et,.20190625*nt,.36053125*et,.2176875*nt)).add(new go.PathSegment(go.PathSegment.Line,.2379375*et,.14959375*nt)).add(new go.PathSegment(go.PathSegment.Line,.14953125*et,.2379375*nt)).add(new go.PathSegment(go.PathSegment.Line,.23934375*et,.3278125*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*et,.4375*nt,.21765625*et,.36059375*nt,.201875*et,.397625*nt)).add(new go.PathSegment(go.PathSegment.Line,.0625*et,.4375*nt)).add(new go.PathSegment(go.PathSegment.Line,.0625*et,.5625*nt)).add(new go.PathSegment(go.PathSegment.Line,.1938125*et,.5625*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*et,.67596875*nt,.20221875*et,.603875*nt,.21884375*et,.64228125*nt)).add(new go.PathSegment(go.PathSegment.Line,.1495625*et,.76825*nt)).add(new go.PathSegment(go.PathSegment.Line,.238*et,.8566875*nt)).add(new go.PathSegment(go.PathSegment.Line,.3316875*et,.76296875*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*et,.80621875*nt,.36353125*et,.78340625*nt,.3991875*et,.79840625*nt)).add(new go.PathSegment(go.PathSegment.Line,.43753125*et,.9375*nt)).add(new go.PathSegment(go.PathSegment.Line,.5625*et,.9375*nt)).add(new go.PathSegment(go.PathSegment.Line,.5625*et,.80621875*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*et,.760625*nt,.602375*et,.79809375*nt,.63946875*et,.78234375*nt)).add(new go.PathSegment(go.PathSegment.Line,.76828125*et,.8566875*nt)).add(new go.PathSegment(go.PathSegment.Line,.85671875*et,.76825*nt)).add(new go.PathSegment(go.PathSegment.Line,.76065625*et,.67221875*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*et,.56246875*nt,.78234375*et,.63940625*nt,.798125*et,.602375*nt)).add(new go.PathSegment(go.PathSegment.Line,.9375*et,.56246875*nt).close()).add(new go.PathSegment(go.PathSegment.Move,.5*et,.6*nt)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*et,.5*nt,.1*et,.1*nt).close()))}),go.Shape.defineFigureGenerator("Hand",function(kt,et,nt){var dt=new go.Geometry,lt=new go.PathFigure(0,.5*nt,!0);return dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Bezier,.1*et,.3*nt,0,.375*nt,.05*et,.325*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.45*et,.075*nt,.3*et,.225*nt,.4*et,.175*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.525*et,.075*nt,.46*et,.05*nt,.525*et,.05*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.3*et,.4*nt,.525*et,.275*nt,.475*et,.325*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.4*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.9*et,.55*nt,et,.4*nt,et,.55*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.425*et,.55*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.55*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.6*et,.7*nt,.675*et,.55*nt,.675*et,.7*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.4*et,.7*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.575*et,.7*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.575*et,.85*nt,.65*et,.7*nt,.65*et,.85*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.4*et,.85*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.525*et,.85*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.535*et,nt,.61*et,.85*nt,.61*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*nt,.435*et,nt,0,nt).close()),dt}),go.Shape.defineFigureGenerator("Map",function(kt,et,nt){var dt=new go.Geometry,lt=new go.PathFigure(0,.2*nt,!0);return dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.25*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.2*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,et,.2*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.75*et,.8*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.25*et,.8*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close()),lt.add(new go.PathSegment(go.PathSegment.Move,.25*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.25*et,.8*nt)),lt.add(new go.PathSegment(go.PathSegment.Move,.5*et,.2*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),lt.add(new go.PathSegment(go.PathSegment.Move,.75*et,0)),lt.add(new go.PathSegment(go.PathSegment.Line,.75*et,.8*nt)),dt}),go.Shape.defineFigureGenerator("Eject",function(kt,et,nt){var dt=new go.Geometry,lt=new go.PathFigure(0,nt,!0);dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt*.7)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt*.7).close());var pt=new go.PathFigure(0,nt*.6,!0);return dt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,et,.6*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0).close()),dt}),go.Shape.defineFigureGenerator("Pencil",function(kt,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*et,.1*nt)).add(new go.PathSegment(go.PathSegment.Line,et,.9*nt)).add(new go.PathSegment(go.PathSegment.Line,.9*et,nt)).add(new go.PathSegment(go.PathSegment.Line,.1*et,.2*nt).close()))}),go.Shape.defineFigureGenerator("Building",function(kt,et,nt){var dt=new go.Geometry,lt=new go.PathFigure(et*1,nt*1,!1);dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt*.85)),lt.add(new go.PathSegment(go.PathSegment.Line,.046*et,nt*.85)),lt.add(new go.PathSegment(go.PathSegment.Line,.046*et,nt*.45)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt*.45)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt*.3)),lt.add(new go.PathSegment(go.PathSegment.Line,.046*et,nt*.3)),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt*0)),lt.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*et,nt*.3)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt*.3)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt*.45)),lt.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*et,nt*.45)),lt.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*et,nt*.85)),lt.add(new go.PathSegment(go.PathSegment.Line,et,nt*.85).close());var pt=new go.PathFigure(.126*et,.85*nt,!1);dt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.126*et,.45*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.322*et,.45*nt)),pt.add(new go.PathSegment(go.PathSegment.Line,.322*et,.85*nt).close());var yt=new go.PathFigure(.402*et,.85*nt,!1);dt.add(yt),yt.add(new go.PathSegment(go.PathSegment.Line,.402*et,.45*nt)),yt.add(new go.PathSegment(go.PathSegment.Line,.598*et,.45*nt)),yt.add(new go.PathSegment(go.PathSegment.Line,.598*et,.85*nt).close());var At=new go.PathFigure(.678*et,.85*nt,!1);dt.add(At),At.add(new go.PathSegment(go.PathSegment.Line,.678*et,.45*nt)),At.add(new go.PathSegment(go.PathSegment.Line,.874*et,.45*nt)),At.add(new go.PathSegment(go.PathSegment.Line,.874*et,.85*nt).close());var Dt=new go.PathFigure(.5*et,.1*nt,!1);return dt.add(Dt),Dt.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*et,.3*nt)),Dt.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*et,.3*nt).close()),dt}),go.Shape.defineFigureGenerator("Staircase",function(kt,et,nt){var dt=new go.Geometry,lt=new go.PathFigure(0,nt*1,!0);return dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et*.2,nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.2,nt*.8)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.4,nt*.8)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.4,nt*.6)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.6,nt*.6)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.6,nt*.4)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.8,nt*.4)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.8,nt*.2)),lt.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*.2)),lt.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*.15)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.75,nt*.15)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.75,nt*.35)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.55,nt*.35)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.55,nt*.55)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.35,nt*.55)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.35,nt*.75)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.15,nt*.75)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.15,nt*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt*.95).close()),dt}),go.Shape.defineFigureGenerator("5Bars",function(kt,et,nt){var dt=new go.Geometry,lt=new go.PathFigure(0,nt*1,!0);dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et*.184,nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.184,nt*(1-.184)).close());var pt=new go.PathFigure(et*.204,nt,!0);dt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,et*.204,nt*(1-.184))),pt.add(new go.PathSegment(go.PathSegment.Line,et*.388,nt*(1-.184*2))),pt.add(new go.PathSegment(go.PathSegment.Line,et*.388,nt*1).close());var yt=new go.PathFigure(et*.408,nt,!0);dt.add(yt),yt.add(new go.PathSegment(go.PathSegment.Line,et*.408,nt*(1-.184*2))),yt.add(new go.PathSegment(go.PathSegment.Line,et*.592,nt*(1-.184*3))),yt.add(new go.PathSegment(go.PathSegment.Line,et*.592,nt*1).close());var At=new go.PathFigure(et*.612,nt,!0);dt.add(At),At.add(new go.PathSegment(go.PathSegment.Line,et*.612,nt*(1-.184*3))),At.add(new go.PathSegment(go.PathSegment.Line,et*.796,nt*(1-.184*4))),At.add(new go.PathSegment(go.PathSegment.Line,et*.796,nt*1).close());var Dt=new go.PathFigure(et*.816,nt,!0);return dt.add(Dt),Dt.add(new go.PathSegment(go.PathSegment.Line,et*.816,nt*(1-.184*4))),Dt.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*(1-.184*5))),Dt.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*1).close()),dt}),go.Shape.defineFigureGenerator("PC",function(kt,et,nt){var dt=new go.Geometry,lt=new go.PathFigure(0,0,!0);dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.3,nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.3,0).close());var pt=new go.PathFigure(et*.055,.07*nt,!0);dt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,et*.245,nt*.07)),pt.add(new go.PathSegment(go.PathSegment.Line,et*.245,nt*.1)),pt.add(new go.PathSegment(go.PathSegment.Line,et*.055,nt*.1).close());var yt=new go.PathFigure(et*.055,.13*nt,!0);dt.add(yt),yt.add(new go.PathSegment(go.PathSegment.Line,et*.245,nt*.13)),yt.add(new go.PathSegment(go.PathSegment.Line,et*.245,nt*.16)),yt.add(new go.PathSegment(go.PathSegment.Line,et*.055,nt*.16).close());var At=new go.PathFigure(et*.055,.18*nt,!0);dt.add(At),At.add(new go.PathSegment(go.PathSegment.Line,et*.245,nt*.18)),At.add(new go.PathSegment(go.PathSegment.Line,et*.245,nt*.21)),At.add(new go.PathSegment(go.PathSegment.Line,et*.055,nt*.21).close());var Dt=new go.PathFigure(et*1,0,!0);return dt.add(Dt),Dt.add(new go.PathSegment(go.PathSegment.Line,et*.4,0)),Dt.add(new go.PathSegment(go.PathSegment.Line,et*.4,nt*.65)),Dt.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*.65).close()),dt}),go.Shape.defineFigureGenerator("Plane",function(kt,et,nt){var dt=new go.Geometry,lt=new go.PathFigure(.55*et,nt,!0);return dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.6*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.4*et,.7*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.1*et,.475*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.35*et,.525*nt,0,.4*nt,.225*et,.45*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.4*et,.475*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.15*et,.35*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.325*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.325*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.85*et,.1*nt)),lt.add(new go.PathSegment(go.PathSegment.Bezier,.9*et,.2*nt,.975*et,0,et,.08*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.7*et,.45*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.95*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,.55*et,nt).close()),dt}),go.Shape.defineFigureGenerator("Key",function(kt,et,nt){var dt=new go.Geometry,lt=new go.PathFigure(et*1,nt*.5,!0);return dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et*.9,.4*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.5,.4*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.5,.35*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.45,.35*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.3,.2*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.15,.2*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.35*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,0,.65*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.15,.8*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.3,.8*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.45,.65*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.5,.65*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.5,.6*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.6,.6*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.65,.55*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.7,.6*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.75,.55*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.8,.6*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.85,.575*nt)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.9,.6*nt).close()),lt.add(new go.PathSegment(go.PathSegment.Move,.17*et,.425*nt)),lt.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*et,.5*nt,.075*et,.075*nt).close()),dt}),go.Shape.defineFigureGenerator("FilmTape",function(kt,et,nt){var dt=new go.Geometry,lt=new go.PathFigure(0,0,!1);dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Arc,270,180,et*0,et*.3,et*.055)),lt.add(new go.PathSegment(go.PathSegment.Line,0,nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.08,nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.08,nt*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*1),nt*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*1),nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*2),nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*2),nt*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*3),nt*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*3),nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*4),nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*4),nt*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*5),nt*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*5),nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*6),nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*6),nt*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*7),nt*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*7),nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*8),nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*8),nt*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*9),nt*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*9),nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*10),nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*10),nt*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*11),nt*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*11),nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*12),nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*12),nt*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*13),nt*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*13),nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*14),nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*14),nt*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*15),nt*.95)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*15),nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*1));var pt=new go.PathFigure(0,0,!1);dt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*0)),pt.add(new go.PathSegment(go.PathSegment.Arc,270,-180,et*1,et*.3,et*.055)),pt.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*1));var yt=new go.PathFigure(et*.11,nt*.1,!1);dt.add(yt),yt.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*1+.028*0),nt*.1)),yt.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*1+.028*0),nt*.8)),yt.add(new go.PathSegment(go.PathSegment.Line,et*.11,nt*.8).close());var At=new go.PathFigure(et*(.11+.24133333*1+.028*1),nt*.1,!1);dt.add(At),At.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*2+.028*1),nt*.1)),At.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*2+.028*1),nt*.8)),At.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*1+.028*1),nt*.8).close());var Dt=new go.PathFigure(et*(.11+.24133333*2+.028*2),nt*.1,!1);return dt.add(Dt),Dt.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*3+.028*2),nt*.1)),Dt.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*3+.028*2),nt*.8)),Dt.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*2+.028*2),nt*.8).close()),dt}),go.Shape.defineFigureGenerator("FloppyDisk",function(kt,et,nt){var dt=new go.Geometry,lt=8,pt=lt*Jt,yt=new go.PathFigure(lt,0,!1);dt.add(yt),yt.add(new go.PathSegment(go.PathSegment.Line,et*.86,0)),yt.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*.14)),yt.add(new go.PathSegment(go.PathSegment.Line,et,nt-lt)),yt.add(new go.PathSegment(go.PathSegment.Bezier,et-lt,nt,et,nt-pt,et-pt,nt)),yt.add(new go.PathSegment(go.PathSegment.Line,lt,nt)),yt.add(new go.PathSegment(go.PathSegment.Bezier,0,nt-lt,pt,nt,0,nt-pt)),yt.add(new go.PathSegment(go.PathSegment.Line,0,lt)),yt.add(new go.PathSegment(go.PathSegment.Bezier,lt,0,0,pt,pt,0).close());var At=new go.PathFigure(et*.83,0,!1);dt.add(At),At.add(new go.PathSegment(go.PathSegment.Line,et*.83,nt*.3)),At.add(new go.PathSegment(go.PathSegment.Line,et*.17,nt*.3)),At.add(new go.PathSegment(go.PathSegment.Line,et*.17,nt*0).close());var Dt=new go.PathFigure(et*.83,nt*1,!1);dt.add(Dt),Dt.add(new go.PathSegment(go.PathSegment.Line,et*.83,nt*.5)),Dt.add(new go.PathSegment(go.PathSegment.Line,et*.17,nt*.5)),Dt.add(new go.PathSegment(go.PathSegment.Line,et*.17,nt*1).close());var Ut=new go.PathFigure(et*.78,nt*.05,!1);return dt.add(Ut),Ut.add(new go.PathSegment(go.PathSegment.Line,et*.66,nt*.05)),Ut.add(new go.PathSegment(go.PathSegment.Line,et*.66,nt*.25)),Ut.add(new go.PathSegment(go.PathSegment.Line,et*.78,nt*.25).close()),dt}),go.Shape.defineFigureGenerator("SpeechBubble",function(kt,et,nt){var dt=kt?kt.parameter1:NaN;(isNaN(dt)||dt<0)&&(dt=15),dt=Math.min(dt,et/3),dt=Math.min(dt,nt/3);var lt=dt*Jt,pt=nt*.8,yt=new go.Geometry,At=new go.PathFigure(dt,0,!0);return yt.add(At),At.add(new go.PathSegment(go.PathSegment.Line,et-dt,0)),At.add(new go.PathSegment(go.PathSegment.Bezier,et,dt,et-lt,0,et,lt)),At.add(new go.PathSegment(go.PathSegment.Line,et,pt-dt)),At.add(new go.PathSegment(go.PathSegment.Bezier,et-dt,pt,et,pt-lt,et-lt,pt)),At.add(new go.PathSegment(go.PathSegment.Line,et*.7,pt)),At.add(new go.PathSegment(go.PathSegment.Line,et*.7,nt)),At.add(new go.PathSegment(go.PathSegment.Line,et*.55,pt)),At.add(new go.PathSegment(go.PathSegment.Line,dt,pt)),At.add(new go.PathSegment(go.PathSegment.Bezier,0,pt-dt,lt,pt,0,pt-lt)),At.add(new go.PathSegment(go.PathSegment.Line,0,dt)),At.add(new go.PathSegment(go.PathSegment.Bezier,dt,0,0,lt,lt,0).close()),lt>1?(yt.spot1=new go.Spot(0,0,lt,lt),yt.spot2=new go.Spot(1,.8,-lt,-lt)):(yt.spot1=go.Spot.TopLeft,yt.spot2=new go.Spot(1,.8)),yt}),go.Shape.defineFigureGenerator("Repeat",function(kt,et,nt){var dt=new go.Geometry,lt=new go.PathFigure(et*0,nt*.45,!0);dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et*.25,nt*0)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.5,nt*.45)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.3,nt*.45)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.3,nt*.9)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.6,nt*.9)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.65,nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.2,nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.2,nt*.45).close());var pt=new go.PathFigure(et*1,nt*.55,!0);return dt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,et*.75,nt*1)),pt.add(new go.PathSegment(go.PathSegment.Line,et*.5,nt*.55)),pt.add(new go.PathSegment(go.PathSegment.Line,et*.7,nt*.55)),pt.add(new go.PathSegment(go.PathSegment.Line,et*.7,nt*.1)),pt.add(new go.PathSegment(go.PathSegment.Line,et*.4,nt*.1)),pt.add(new go.PathSegment(go.PathSegment.Line,et*.35,nt*0)),pt.add(new go.PathSegment(go.PathSegment.Line,et*.8,nt*0)),pt.add(new go.PathSegment(go.PathSegment.Line,et*.8,nt*.55).close()),dt}),go.Shape.defineFigureGenerator("Windows",function(kt,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et,nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt).close()).add(new go.PathSegment(go.PathSegment.Move,.4*et,.4*nt)).add(new go.PathSegment(go.PathSegment.Line,.4*et,.8*nt)).add(new go.PathSegment(go.PathSegment.Line,.9*et,.8*nt)).add(new go.PathSegment(go.PathSegment.Line,.9*et,.4*nt).close()).add(new go.PathSegment(go.PathSegment.Move,.2*et,.1*nt)).add(new go.PathSegment(go.PathSegment.Line,.2*et,.6*nt)).add(new go.PathSegment(go.PathSegment.Line,.7*et,.6*nt)).add(new go.PathSegment(go.PathSegment.Line,.7*et,.1*nt).close()).add(new go.PathSegment(go.PathSegment.Move,.1*et,.6*nt)).add(new go.PathSegment(go.PathSegment.Line,.1*et,.9*nt)).add(new go.PathSegment(go.PathSegment.Line,.5*et,.9*nt)).add(new go.PathSegment(go.PathSegment.Line,.5*et,.6*nt).close()))}),go.Shape.defineFigureGenerator("Terminal",function(kt,et,nt){var dt=new go.Geometry,lt=new go.PathFigure(et*0,nt*.1,!1);dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*.1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*.9)),lt.add(new go.PathSegment(go.PathSegment.Line,et*0,nt*.9).close());var pt=new go.PathFigure(et*.1,nt*.2,!0);dt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,et*.1,nt*.25)),pt.add(new go.PathSegment(go.PathSegment.Line,et*.22,nt*.285)),pt.add(new go.PathSegment(go.PathSegment.Line,et*.1,nt*.32)),pt.add(new go.PathSegment(go.PathSegment.Line,et*.1,nt*.37)),pt.add(new go.PathSegment(go.PathSegment.Line,et*.275,nt*.32)),pt.add(new go.PathSegment(go.PathSegment.Line,et*.275,nt*.25).close());var yt=new go.PathFigure(et*.28,nt*.37,!0);return dt.add(yt),yt.add(new go.PathSegment(go.PathSegment.Line,et*.45,nt*.37)),yt.add(new go.PathSegment(go.PathSegment.Line,et*.45,nt*.41)),yt.add(new go.PathSegment(go.PathSegment.Line,et*.28,nt*.41).close()),dt}),go.Shape.defineFigureGenerator("Beaker",function(kt,et,nt){var dt=new go.Geometry,lt=15,pt=lt*Jt,yt=new go.PathFigure(et*.62,nt*.475,!0);return dt.add(yt),yt.add(new go.PathSegment(go.PathSegment.Line,et,nt-lt)),yt.add(new go.PathSegment(go.PathSegment.Bezier,et-lt,nt,et,nt-pt,et-pt,nt)),yt.add(new go.PathSegment(go.PathSegment.Line,lt,nt)),yt.add(new go.PathSegment(go.PathSegment.Bezier,0,nt-lt,pt,nt,0,nt-pt)),yt.add(new go.PathSegment(go.PathSegment.Line,et*.38,nt*.475)),yt.add(new go.PathSegment(go.PathSegment.Line,et*.38,nt*.03)),yt.add(new go.PathSegment(go.PathSegment.Line,et*.36,nt*0)),yt.add(new go.PathSegment(go.PathSegment.Line,et*.64,nt*0)),yt.add(new go.PathSegment(go.PathSegment.Line,et*.62,nt*.03).close()),pt>1?(dt.spot1=new go.Spot(0,0,pt,pt),dt.spot2=new go.Spot(1,1,-pt,-pt)):(dt.spot1=go.Spot.TopLeft,dt.spot2=go.Spot.BottomRight),dt}),go.Shape.defineFigureGenerator("Download",function(kt,et,nt){var dt=new go.Geometry,lt=new go.PathFigure(et*0,nt*1,!0);dt.add(lt);var pt=.1/.3;lt.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*(1-pt))),lt.add(new go.PathSegment(go.PathSegment.Line,et*.8,nt*0)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.66,nt*0)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.66,nt*.055)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.755,nt*.055)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.93,nt*(1-pt))),lt.add(new go.PathSegment(go.PathSegment.Line,et*.64,nt*(1-pt))),lt.add(new go.PathSegment(go.PathSegment.Line,et*.61,nt*.75)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.5,nt*.75)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.39,nt*.75)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.36,nt*(1-pt))),lt.add(new go.PathSegment(go.PathSegment.Line,et*.07,nt*(1-pt))),lt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.755),nt*.055)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.66),nt*.055)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.66),nt*0)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.8),nt*0)),lt.add(new go.PathSegment(go.PathSegment.Line,et*0,nt*(1-pt)).close());var yt=new go.PathFigure(et*.4,nt*0,!0);return dt.add(yt),yt.add(new go.PathSegment(go.PathSegment.Line,et*.4,nt*.44)),yt.add(new go.PathSegment(go.PathSegment.Line,et*.26,nt*.44)),yt.add(new go.PathSegment(go.PathSegment.Line,et*.5,nt*.66)),yt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.26),nt*.44)),yt.add(new go.PathSegment(go.PathSegment.Line,et*.6,nt*.44)),yt.add(new go.PathSegment(go.PathSegment.Line,et*.6,nt*0).close()),dt}),go.Shape.defineFigureGenerator("Bin",function(kt,et,nt){var dt=new go.Geometry,lt=new go.PathFigure(et*0,nt*1,!0);dt.add(lt);var pt=.1/.3;return lt.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*(1-pt))),lt.add(new go.PathSegment(go.PathSegment.Line,et*.8,nt*0)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.66,nt*0)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.66,nt*.055)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.755,nt*.055)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.93,nt*(1-pt))),lt.add(new go.PathSegment(go.PathSegment.Line,et*.64,nt*(1-pt))),lt.add(new go.PathSegment(go.PathSegment.Line,et*.61,nt*.75)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.5,nt*.75)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.39,nt*.75)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.36,nt*(1-pt))),lt.add(new go.PathSegment(go.PathSegment.Line,et*.07,nt*(1-pt))),lt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.755),nt*.055)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.66),nt*.055)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.66),nt*0)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.8),nt*0)),lt.add(new go.PathSegment(go.PathSegment.Line,et*0,nt*(1-pt)).close()),dt}),go.Shape.defineFigureGenerator("Upload",function(kt,et,nt){var dt=new go.Geometry,lt=new go.PathFigure(et*0,nt*1,!0);dt.add(lt);var pt=.1/.3;lt.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*(1-pt))),lt.add(new go.PathSegment(go.PathSegment.Line,et*.8,nt*0)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.66,nt*0)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.66,nt*.055)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.755,nt*.055)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.93,nt*(1-pt))),lt.add(new go.PathSegment(go.PathSegment.Line,et*.64,nt*(1-pt))),lt.add(new go.PathSegment(go.PathSegment.Line,et*.61,nt*.75)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.5,nt*.75)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.39,nt*.75)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.36,nt*(1-pt))),lt.add(new go.PathSegment(go.PathSegment.Line,et*.07,nt*(1-pt))),lt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.755),nt*.055)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.66),nt*.055)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.66),nt*0)),lt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.8),nt*0)),lt.add(new go.PathSegment(go.PathSegment.Line,et*0,nt*(1-pt)).close());var yt=new go.PathFigure(et*.5,nt*0,!0);return dt.add(yt),yt.add(new go.PathSegment(go.PathSegment.Line,et*.26,nt*.25)),yt.add(new go.PathSegment(go.PathSegment.Line,et*.4,nt*.25)),yt.add(new go.PathSegment(go.PathSegment.Line,et*.4,nt*.63)),yt.add(new go.PathSegment(go.PathSegment.Line,et*.6,nt*.63)),yt.add(new go.PathSegment(go.PathSegment.Line,et*.6,nt*.25)),yt.add(new go.PathSegment(go.PathSegment.Line,et*.74,nt*.25).close()),dt}),go.Shape.defineFigureGenerator("EmptyDrink",function(kt,et,nt){var dt=new go.Geometry,lt=new go.PathFigure(et*.15,nt*0,!1);return dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et*.85,nt*0)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.7,nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.3,nt*1).close()),dt}),go.Shape.defineFigureGenerator("Drink",function(kt,et,nt){var dt=new go.Geometry,lt=new go.PathFigure(et*.15,nt*0,!1);dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et*.85,nt*0)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.7,nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.3,nt*1).close());var pt=new go.PathFigure(et*.235,nt*.28,!0);return dt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,et*.765,nt*.28)),pt.add(new go.PathSegment(go.PathSegment.Line,et*.655,nt*.97)),pt.add(new go.PathSegment(go.PathSegment.Line,et*.345,nt*.97).close()),dt}),go.Shape.defineFigureGenerator("4Arrows",function(kt,et,nt){var dt=new go.Geometry,lt=new go.PathFigure(et*.5,nt*0,!0);return dt.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,et*.65,nt*.25)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.55,nt*.25)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.55,nt*.45)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.75,nt*.45)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.75,nt*.35)),lt.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*.5)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.75,nt*.65)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.75,nt*.55)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.55,nt*.55)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.55,nt*.75)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.65,nt*.75)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.5,nt*1)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.35,nt*.75)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.45,nt*.75)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.45,nt*.55)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.25,nt*.55)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.25,nt*.65)),lt.add(new go.PathSegment(go.PathSegment.Line,et*0,nt*.5)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.25,nt*.35)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.25,nt*.45)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.45,nt*.45)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.45,nt*.25)),lt.add(new go.PathSegment(go.PathSegment.Line,et*.35,nt*.25).close()),dt}),go.Shape.defineFigureGenerator("Connector","Ellipse"),go.Shape.defineFigureGenerator("Alternative","TriangleUp"),go.Shape.defineFigureGenerator("Merge","TriangleUp"),go.Shape.defineFigureGenerator("Decision","Diamond"),go.Shape.defineFigureGenerator("DataTransmissions","Hexagon"),go.Shape.defineFigureGenerator("Gate","Crescent"),go.Shape.defineFigureGenerator("Delay","HalfEllipse"),go.Shape.defineFigureGenerator("Input","Parallelogram1"),go.Shape.defineFigureGenerator("ManualLoop","ManualOperation"),go.Shape.defineFigureGenerator("ISOProcess","Chevron"),go.Shape.defineFigureGenerator("MessageToUser","SquareArrow"),go.Shape.defineFigureGenerator("MagneticData","Cylinder1"),go.Shape.defineFigureGenerator("DirectData","Cylinder4"),go.Shape.defineFigureGenerator("StoredData","DataStorage"),go.Shape.defineFigureGenerator("SequentialData","MagneticTape"),go.Shape.defineFigureGenerator("Subroutine","Procedure")},80727:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var Ye={},jn="5.0",Ft={},ht=null,Ht=!1,fe=!1,Re=null,Se=!1,Me=null,Jt=null,Le=0;Le<arguments.length;Le++){var ce=arguments[Le];if(ce!==null)switch(typeof ce){case"number":jn=ce.toFixed(1);break;case"string":ce.match(new RegExp("^[0-9]\\.[0-9]+$"))?jn=ce:Re=ce;break;case"object":typeof ce.is3D!="undefined"?ht=ce:Ft=ce;break;case"boolean":Ht=ce,fe=!0;break}}ht===null&&(ht={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},Ft.material_id!==void 0&&!fe&&(Ht=!0)),Re!==null&&Ft.id===void 0&&(Ft.id=Re);var ve="",he="",Oe=!1,je=null,kt=null,et=null,nt=!1,dt=null,lt=null,pt=null,yt=null,At=null;Ft.height!==void 0&&(Ft.height=Math.round(Ft.height)),Ft.width!==void 0&&(Ft.width=Math.round(Ft.width));var Dt=function(ge){return parseFloat(ge)>4?parseFloat(ge):5};Ye.setHTML5Codebase=function(ge,we){Jt=ge,xe(ge,we)},Ye.setJavaCodebase=Ye.setJavaCodebaseVersion=Ye.isCompiledInstalled=Ye.setPreCompiledScriptPath=Ye.setPreCompiledResourcePath=function(){},Ye.setHTML5CodebaseVersion=function(ge,we){var Je=parseFloat(ge);if(Je!==NaN&&Je<5){console.log("The GeoGebra HTML5 codebase version "+Je+" is deprecated. Using version latest instead.");return}Me=ge,Wt(ge,we)},Ye.getHTML5CodebaseVersion=function(){return kt},Ye.getParameters=function(){return Ft},Ye.setFontsCSSURL=function(ge){yt=ge},Ye.setGiacJSURL=function(ge){},Ye.setJNLPFile=function(ge){ve=ge},Ye.setJNLPBaseDir=function(ge){},Ye.inject=function(){function ge(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var we="auto",Je=Ft.id,Bn,vn=!1,zn=0;zn<arguments.length;zn++){var ae=arguments[zn];typeof ae=="string"?(ae=ae.toLowerCase(),ae.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?we=ae:Je=arguments[zn]):typeof ae=="boolean"?vn=ae:ae instanceof HTMLElement&&(Bn=ae)}mn();function mn(){if(!Se){setTimeout(mn,200);return}we=bn(we);var ti=Bn||document.getElementById(Je);if(!ti){console.log("possibly bug on ajax loading? ");return}if(Ye.removeExistingApplet(ti,!1),Ft.width===void 0&&ti.clientWidth&&(Ft.width=ti.clientWidth),Ft.height===void 0&&ti.clientHeight&&(Ft.height=ti.clientHeight),!(Ft.width&&Ft.height)&&we==="html5"&&(delete Ft.width,delete Ft.height),je=we,we==="screenshot")oe(ti,Ft);else{var Wn=!1;Ft.hasOwnProperty("playButton")&&Ft.playButton||Ft.hasOwnProperty("clickToLoad")&&Ft.clickToLoad?Wn=!0:Ft.hasOwnProperty("playButtonAutoDecide")&&Ft.playButtonAutoDecide&&(Wn=(!Ut()||ge())&&Qt()),Wn?(je="screenshot",Ie(ti,Ft,vn,we)):pe(ti,Ft,vn)}}};function Ut(){try{return window.self!==window.top}catch(ge){return!0}}function Qt(){return Ft.hasOwnProperty("screenshotGenerator")&&Ft.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}Ye.getViews=function(){return ht},Ye.isJavaInstalled=function(){return!1};var $t=function(ge){var we=function(zn){var ae=JSON.parse(zn),mn=function(ii){return ii.type=="G"||ii.type=="E"},ti=ae.elements?ae.elements.filter(mn)[0]:ae;if(!ti||!ti.url){Je();return}Ft.fileName=ti.url,ne(ti.settings||{}),ht.is3D=!0;var Wn="https://www.geogebra.org/images/";Ye.setPreviewImage(dt||ti.previewUrl,Wn+"GeoGebra_loading.png",Wn+"applet_play.png"),ge()},Je=function(){Ft.onError&&Ft.onError(),nn("Error: Fetching material (id "+Ft.material_id+") failed.",Ft)},Bn=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",vn="/materials/"+Ft.material_id+"?scope=basic";_t("https://"+Bn+"/api/proxy.php?path="+encodeURIComponent(vn),we,Je)};function ne(ge){var we=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(Je){ge[Je]=!!ge[Je]}),we.forEach(function(Je){Ft[Je]===void 0&&ge[Je]!==void 0&&(Ft[Je]=ge[Je])}),Ft.showToolBarHelp===void 0&&(Ft.showToolBarHelp=Ft.showToolBar)}function _t(ge,we,Je){var Bn=new XMLHttpRequest;Bn.open("GET",ge),Bn.onload=function(){we(Bn.responseText)},Bn.onerror=Je,Bn.send()}Ye.isHTML5Installed=function(){return!0},Ye.getLoadedAppletType=function(){return je},Ye.setPreviewImage=function(ge,we,Je){dt=ge,lt=we,pt=Je},Ye.removeExistingApplet=function(ge,we){var Je;typeof ge=="string"&&(ge=document.getElementById(ge)),je=null;var Bn=null;for(Je=0;Je<ge.childNodes.length;Je++){var vn=ge.childNodes[Je],zn=vn.className;zn==="applet_screenshot"?we?(vn.style.display="block",je="screenshot"):vn.style.display="none":zn!=="applet_scaler prerender"&&(ge.removeChild(vn),Bn=zn&&zn.indexOf("appletParameters")!=-1?vn.id:null,Je--)}var ae=Ft.id!==void 0?Ft.id:Bn,mn=window[ae];mn&&typeof mn.getBase64=="function"&&(mn.remove(),window[ae]=null)},Ye.refreshHitPoints=function(){if(Dt(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var ge=Ye.getAppletObject();return ge&&typeof ge.recalculateEnvironments=="function"?(ge.recalculateEnvironments(),!0):!1},Ye.startAnimation=function(){var ge=Ye.getAppletObject();return ge&&typeof ge.startAnimation=="function"?(ge.startAnimation(),!0):!1},Ye.stopAnimation=function(){var ge=Ye.getAppletObject();return ge&&typeof ge.stopAnimation=="function"?(ge.stopAnimation(),!0):!1},Ye.getAppletObject=function(){var ge=Ft.id!==void 0?Ft.id:"ggbApplet";return window[ge]},Ye.resize=function(){};var Pe=function(ge,we,Je){var Bn=document.createElement("param");Bn.setAttribute("name",we),Bn.setAttribute("value",Je),ge.appendChild(Bn)},ue=function(ge){return ge&&ge!=="false"},pe=function(ge,we,Je){Dt(kt)<=4.2&&(Je=!0);var Bn=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==kt||ggbHTML5LoadedCodebaseIsWebSimple&&!nt)&&(Bn=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var vn=document.createElement("div");vn.classList.add("appletParameters","notranslate");var zn=we.width,ae=we.height;if(we.disableAutoScale=we.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():we.disableAutoScale,we.width!==void 0)if(Dt(kt)<=4.4)ue(we.showToolBar)&&(we.height-=7),ue(we.showAlgebraInput)&&(we.height-=37),we.width<605&&ue(we.showToolBar)&&(we.width=605,zn=605);else{var mn=100;(ue(we.showToolBar)||ue(we.showMenuBar))&&(we.hasOwnProperty("customToolBar")&&(we.customToolbar=we.customToolBar),mn=ue(we.showMenuBar)?245:155),zn<mn&&(we.width=mn,zn=mn)}vn.style.border="none",vn.style.display="inline-block";for(var ti in we)we.hasOwnProperty(ti)&&ti!=="appletOnLoad"&&vn.setAttribute("data-param-"+ti,we[ti]);yt&&vn.setAttribute("data-param-fontscssurl",yt),Ye.resize=function(){GGBAppletUtils.responsiveResize(ge,we)},window.addEventListener("resize",function(St){Ye.resize()});var Wn=typeof we.appletOnLoad=="function"?we.appletOnLoad:function(){};if(!Je&&we.width!==void 0){we.hasOwnProperty("showSplash")||vn.setAttribute("data-param-showSplash","false");var ii=ge.querySelector(".applet_scaler.prerender"),mi=ii!==null;if(mi)var yn=ii.querySelector(".ggb_preview");else{var yn=Gn(zn,ae,we.borderColor,!1);ii=document.createElement("div"),ii.className="applet_scaler",ii.style.position="relative",ii.style.display="block",ii.style.width=zn+"px",ii.style.height=ae+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(ii,"66%"),Dt(kt)>=5?(we.appletOnLoad=function(St){var Bt=ge.querySelector(".ggb_preview");Bt&&Bt.parentNode.removeChild(Bt),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(ii),window.GGBT_wsf_view&&$(window).trigger("resize"),Wn(St)},mi||ii.appendChild(yn)):vn.appendChild(yn),ii.appendChild(vn),mi||ge.appendChild(ii),setTimeout(function(){Ye.resize()},1)}else{var Ge=document.createElement("div");Ge.className="applet_scaler",Ge.style.position="relative",Ge.style.display="block",Ge.appendChild(vn),ge.appendChild(Ge),we.appletOnLoad=function(St){Ye.resize(),Wn(St)}}function Ne(St,Bt){Bt&&typeof Bt.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(St,Bt.appletOnLoad):renderGGBElement(St),nn("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Bt)}function Zn(St,Bt){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:St,params:Bt}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Gt){Ne(Gt.article,Gt.params)}),html5AppletsToProcess=null)},Dt(kt)<5&&(St.className+=" geogebraweb")):Ne(St,Bt)}if(Bn){scriptLoadStarted=!0;for(var sn=0;sn<vn.childNodes.length;sn++){var We=vn.childNodes[sn].tagName;We==="TABLE"&&(vn.removeChild(vn.childNodes[sn]),sn--)}if(ggbHTML5LoadedScript!==null){var en=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');en!=null&&en.parentNode.removeChild(en)}var Nt=document.createElement("script"),Ct=function(){Zn(vn,we)};Nt.src=he+et,ggbHTML5LoadedCodebaseIsWebSimple=nt,ggbHTML5LoadedCodebaseVersion=kt,ggbHTML5LoadedScript=Nt.src,nn("GeoGebra HTML5 codebase loaded: '"+he+"'.",we),!Jt&&(!Me||Me=="5.0")?(nt?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),Ct()):he.requirejs?__webpack_require__.e(4184).then(function(){var St=[__webpack_require__(74620)];Ct.apply(null,St)}.bind(this)).catch(__webpack_require__.oe):(Nt.onload=Ct,ge.appendChild(Nt))}else Zn(vn,we);we.height=ae,we.width=zn},oe=function(ge,we,Je){var Bn=Gn(we.width,we.height,we.borderColor,Je),vn=document.createElement("div");vn.style.position="relative",vn.style.display="block",vn.style.width=we.width+"px",vn.style.height=we.height+"px",vn.className="applet_screenshot applet_scaler"+(Je?" applet_screenshot_play":""),vn.appendChild(Bn);var zn=GGBAppletUtils.getScale(we,ge,Je);Je?(ge.appendChild(an()),window.GGBT_wsf_view||(ge.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(vn,"66%"),ge.appendChild(vn),zn!==1&&!isNaN(zn)&&(GGBAppletUtils.scaleElement(vn,zn),vn.style.width=we.width+"px",vn.style.height=we.height+"px",vn.parentNode.style.width=we.width*zn+"px",vn.parentNode.style.height=we.height*zn+"px"),Ye.resize=function(){Ae(ge,Bn,vn,Je)},window.addEventListener("resize",function(ae){Ye.resize()}),Ye.resize()};function Ae(ge,we,Je,Bn){if(ge.contains(we)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(ge.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(ge)}var vn=GGBAppletUtils.getScale(Ft,ge,Bn);Je.parentNode!==null&&(!isNaN(vn)&&vn!==1?(GGBAppletUtils.scaleElement(Je,vn),Je.parentNode.style.width=Ft.width*vn+"px",Je.parentNode.style.height=Ft.height*vn+"px"):(GGBAppletUtils.scaleElement(Je,1),Je.parentNode.style.width=Ft.width+"px",Je.parentNode.style.height=Ft.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(ge),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}Ye.onExitFullscreen=function(ge,we){we.appendChild(ge)};var Ie=function(ge,we,Je,Bn){oe(ge,we,!0);for(var vn=function(){var mn=[];for(ae=0;ae<ge.childNodes.length;ae++)mn.push(ge.childNodes[ae]);if(window.GGBT_wsf_view){var ti=window.GGBT_wsf_view.renderFullScreen(ge,we.id),Wn=document.getElementById("fullscreencontainer"),ii=jQuery(ge).find(".fullscreencontent");ii.length>0?(ti.remove(),ii.attr("id","fullscreencontent").show(),jQuery(Wn).append(ii),window.dispatchEvent(new Event("resize"))):pe(ti,we,!1),window.GGBT_wsf_view.launchFullScreen(Wn)}else je=Bn,pe(ge,we,!1);if(!window.GGBT_wsf_view)for(ae=0;ae<mn.length;ae++)ge.removeChild(mn[ae])},zn=ge.getElementsByClassName("ggb_preview_play"),ae=0;ae<zn.length;ae++)zn[ae].addEventListener("click",vn,!1),zn[ae].addEventListener("ontouchstart",vn,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(ge),Qt()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},an=function(){var ge=document.createElement("div");if(ge.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var we='.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");}',Je=document.createElement("style");Je.styleSheet?Je.styleSheet.cssText=we:Je.appendChild(document.createTextNode(we)),document.getElementsByTagName("head")[0].appendChild(Je)}return ge},Gn=function(ge,we,Je,Bn){var vn=document.createElement("div");vn.className="ggb_preview",vn.style.position="absolute",vn.style.zIndex="90",vn.style.width=ge-2+"px",vn.style.height=we-2+"px",vn.style.top="0px",vn.style.left="0px",vn.style.overflow="hidden",vn.style.backgroundColor="white";var zn="lightgrey";Je!==void 0&&(Je==="none"?zn="transparent":zn=Je),vn.style.border="1px solid "+zn;var ae=document.createElement("img");if(ae.style.position="relative",ae.style.zIndex="1000",ae.style.top="-1px",ae.style.left="-1px",dt!==null&&ae.setAttribute("src",dt),ae.style.opacity=.7,lt!==null){var mn,ti,Wn;if(!Bn){mn=document.createElement("img"),mn.style.position="absolute",mn.style.zIndex="1001",mn.style.opacity=1,ae.style.opacity=.3,ti=360,ti>ge/4*3&&(ti=ge/4*3),Wn=ti/5.8,mn.setAttribute("src",lt),mn.setAttribute("width",ti),mn.setAttribute("height",Wn);var ii=(ge-ti)/2,mi=(we-Wn)/2;mn.style.left=ii+"px",mn.style.top=mi+"px",vn.appendChild(mn)}}return vn.appendChild(ae),vn},bn=function(ge){return ge=ge.toLowerCase(),ge==="html5"||ge==="screenshot"?ge:"html5"},de=["web","webSimple","web3d","tablet","tablet3d","phone"],Wt=function(ge,we){if(kt=ge,we){xe(kt,!0);return}var Je=!Ht;if(Je){var Bn=Dt(kt);!isNaN(Bn)&&Bn<4.4&&(Je=!1)}var vn,zn;window.location.protocol.substr(0,4)==="http"?vn=window.location.protocol:vn="http:";var ae=kt.indexOf("//");ae>0?zn=kt:ae===0?zn=vn+kt:zn="https://www.geogebra.org/apps/5.2.814.0/";for(var mn in de)if(kt.slice(de[mn].length*-1)===de[mn]||kt.slice((de[mn].length+1)*-1)===de[mn]+"/"){xe(zn,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Je&&!ht.is3D&&!ht.AV&&!ht.SV&&!ht.CV&&!ht.EV2&&!ht.CP&&!ht.PC&&!ht.DA&&!ht.FI&&!ht.PV&&!ue(Ft.showToolBar)&&!ue(Ft.showMenuBar)&&!ue(Ft.showAlgebraInput)&&!ue(Ft.enableRightClick)&&(!Ft.appName||Ft.appName=="classic")?zn+="webSimple/":zn+="web3d/",xe(zn,!1)},xe=function(ge,we){if(ge.requirejs){he=ge;return}ge.slice(-1)!=="/"&&(ge+="/"),he=ge,we===null&&(we=ge.indexOf("http")===-1),Oe=we,et="web.nocache.js",nt=!1;var Je=he.split("/");Je.length>1&&(!we&&Je[Je.length-2]==="webSimple"?(et="webSimple.nocache.js",nt=!0):de.indexOf(Je[Je.length-2])>=0&&(et=Je[Je.length-2]+".nocache.js")),Je=ge.split("/"),kt=Je[Je.length-3],kt.substr(0,4)==="test"?kt=kt.substr(4,1)+"."+kt.substr(5,1):(kt.substr(0,3)==="war"||kt.substr(0,4)==="beta")&&(kt="5.0");var Bn=parseFloat(kt);Bn!==NaN&&Bn<5&&ge.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Bn+" is deprecated. Using version latest instead."),Wt("5.0",we))},nn=function(ge,we){window.console&&window.console.log&&(!we||typeof we.showLogging=="undefined"||we.showLogging&&we.showLogging!=="false")&&console.log(ge)};Ft.material_id!==void 0?$t(dn):dn();function dn(){var ge=jn;Me!==null?ge=Me:parseFloat(ge)<5&&(ge="5.0"),Wt(ge,!1),Jt!==null&&xe(Jt,Oe),Se=!0}return Ye},GGBAppletUtils=function(){"use strict";function Ye(){return window.GGBT_wsf_edit!==void 0}function jn(Se,Me){Me!=1?(Se.style.transformOrigin="0% 0% 0px",Se.style.webkitTransformOrigin="0% 0% 0px",Se.style.transform="scale("+Me+","+Me+")",Se.style.webkitTransform="scale("+Me+","+Me+")",Se.style.maxWidth="initial",Se.querySelector(".ggb_preview")!==null&&(Se.querySelector(".ggb_preview").style.maxWidth="initial"),Se.querySelectorAll(".ggb_preview img")[0]!==void 0&&(Se.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),Se.querySelectorAll(".ggb_preview img")[1]!==void 0&&(Se.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(Se.style.transform="none",Se.style.webkitTransform="none")}function Ft(Se,Me,Jt,Le,ce,ve){var he=null;if(ve!=null&&ve!="")for(var Oe=Se.parentNode;Oe!=null;)if((" "+Oe.className+" ").indexOf(" "+ve+" ")>-1){he=Oe;break}else Oe=Oe.parentNode;var je=0,kt=0,et=0,nt=0,dt=0,lt=0,pt=0;if(he)je=he.offsetWidth,kt=Math.max(Le?he.offsetWidth:0,he.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(je=Math.min(window.innerWidth,document.documentElement.clientWidth),kt=Math.min(window.innerHeight,document.documentElement.clientHeight),et=je):(je=window.innerWidth,kt=window.innerHeight,et=window.innerWidth),Se){var yt=Se.getBoundingClientRect();yt.left>0&&yt.left<=je&&(ce===void 0||!ce)&&(document.dir==="rtl"?(dt=je-yt.width-yt.left,lt=et<=480?10:30):(lt=yt.left,dt=et<=480?10:30),nt=lt+dt)}if(Se&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var At=Se.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(nt=40,pt=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(nt=0,pt=40)}}return Se&&((Jt===void 0||!Jt)&&Me>0&&Me+nt<je?je=Me:je-=nt,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Jt===void 0||!Jt)&&(kt-=pt)),{width:je,height:kt}}function ht(Se,Me,Jt,Le,ce){if(Se.isScreenshoGenerator)return 1;var ve=Le!==void 0&&Le,he=Se.noScaleMargin!=null&&Se.noScaleMargin,Oe=function(At){return At&&At!=="false"},je=Oe(Se.autoHeight),kt=Ft(Me,Se.width,Jt,je,ve&&window.GGBT_wsf_view||he,ce),et=parseInt(kt.width),nt=Se.width,dt=Se.height;if(nt===void 0){var lt=Me.querySelector(".appletParameters");lt&&(nt=lt.offsetWidth,dt=lt.offsetHeight)}var pt=et/nt,yt=ve?1:kt.height/dt;return Jt!==void 0&&!Jt&&(pt=Math.min(1,pt),yt=Math.min(1,yt)),Math.min(pt,yt)}function Ht(Se,Me,Jt){var Le=1,ce,ve=!1;if(Se.hasOwnProperty("allowUpscale")&&(ve=Se.allowUpscale),Se.hasOwnProperty("scale")&&(Le=parseFloat(Se.scale),(isNaN(Le)||Le===null||Le===0)&&(Le=1),Le>1&&(ve=!0)),Me&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(ve=!0),!(Se.hasOwnProperty("disableAutoScale")&&Se.disableAutoScale))ce=ht(Se,Me,ve,Jt,Se.scaleContainerClass);else return Le;return ve&&(!Se.hasOwnProperty("scale")||Le===1)?ce:Math.min(Le,ce)}function fe(Se){var Me=Math.min(window.innerWidth,document.documentElement.clientWidth),Jt=Math.min(window.innerHeight,document.documentElement.clientHeight),Le=Se.getBoundingClientRect(),ce=(Me-Le.width)/2,ve=(Jt-Le.height)/2;ve<0&&(ve=0),Se.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(ce<40?Se.style.left="40px":Se.style.left=ce+"px",Se.style.top=ve+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(ve<40?Se.style.top="40px":Se.style.top=ve+"px",Se.style.left=ce+"px")}function Re(Se,Me){var Jt=Se.querySelector(".appletParameters");if(Jt){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Me.id!==Jt.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(Se)}if(Jt.parentElement&&/fullscreen/.test(Jt.parentElement.className))return;var Le=Ht(Me,Se);Ye()&&Jt.setAttribute("data-param-scale",Le);for(var ce=null,ve=0;ve<Se.childNodes.length;ve++)if(Se.childNodes[ve].className!==void 0&&Se.childNodes[ve].className.match(/^applet_scaler/)){ce=Se.childNodes[ve];break}if(ce!==null&&ce.querySelector(".noscale")!==null)return;var he=Me.id!==void 0?Me.id:"ggbApplet",Oe=window[he];(Oe==null||!Oe.recalculateEnvironments)&&ce!==null&&!ce.className.match(/fullscreen/)&&(ce.parentNode.style.transform="",!isNaN(Le)&&Le!==1?(ce.parentNode.style.width=Me.width*Le+"px",ce.parentNode.style.height=Me.height*Le+"px",jn(ce,Le)):(jn(ce,1),ce.parentNode.style.width=Me.width+"px",ce.parentNode.style.height=Me.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&fe(Se),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(Jt).parents(".content-added-content"))}}return{responsiveResize:Re,isFlexibleWorksheetEditor:Ye,positionCenter:fe,getScale:Ht,scaleElement:jn}}();__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 Ye=n.location.search;return Ye.indexOf(J)!=-1||Ye.indexOf(K)!=-1}function q(Ye,jn){}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(Ye){var jn=s[L].bindings;s[L].bindings=function(){for(var Ft=jn?jn():{},ht=Ye[webModule.__softPermutationId],Ht=O;Ht<ht.length;Ht++){var fe=ht[Ht];Ft[fe[O]]=fe[P]}return Ft}};var t;function u(){return v(),t}function v(){if(!t){var Ye=o.createElement(Q);if(Ye.id=L,Ye.style.cssText=R+S,Ye.tabIndex=-1,o.body.appendChild(Ye),t=Ye.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var jn=document.compatMode==U?V:W;t.write(jn+X),t.close()}}}function w(Ye){function jn(ht){function Ht(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var fe=Ht();if(fe){ht();return}function Re(){if(!fe){if(!Ht())return;fe=!0,ht(),o.removeEventListener&&o.removeEventListener(Z,Re,!1),Se&&clearInterval(Se)}}o.addEventListener&&o.addEventListener(Z,Re,!1);var Se=setInterval(function(){Re()},$)}function Ft(ht){var Ht=u(),fe=Ht.body,Re=Ht.createElement(_);Re.language=ab,Re.crossOrigin=W,Re.src=ht,webModule.__errFn&&(Re.onerror=function(){webModule.__errFn(L,new Error(bb+ht))}),fe.appendChild(Re)}jn(function(){Ft(Ye)})}webModule.__startLoadingFragment=function(Ye){return C(Ye)},webModule.__installRunAsyncCode=function(Ye){var jn=u(),Ft=jn.body,ht=jn.createElement(_);ht.language=ab,ht.text=Ye,Ft.appendChild(ht),Ft.removeChild(ht)};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(Ye){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(Ye){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(Ye){var jn=c[Ye];return jn==null?null:jn},r=d,webModule.__errFn=e}function B(){function Ye(Se){var Me=Se.lastIndexOf(rb);Me==-1&&(Me=Se.length);var Jt=Se.indexOf(sb);Jt==-1&&(Jt=Se.length);var Le=Se.lastIndexOf(tb,Math.min(Jt,Me));return Le>=O?Se.substring(O,Le+P):W}function jn(Se){if(!Se.match(/^\w+:\/\//)){var Me=o.createElement(ub);Me.src=Se+vb,Se=Ye(Me.src)}return Se}function Ft(){var Se=__gwt_getMetaProperty(wb);return Se!=null?Se:W}function ht(){for(var Se=o.getElementsByTagName(_),Me=O;Me<Se.length;++Me)if(Se[Me].src.indexOf(xb)!=-1)return Ye(Se[Me].src);return W}function Ht(){var Se=o.getElementsByTagName(yb);return Se.length>O?Se[Se.length-P].href:W}function fe(){var Se=o.location;return Se.href==Se.protocol+zb+Se.host+Se.pathname+Se.search+Se.hash}var Re=Ft();return Re==W&&(Re=ht()),Re==W&&(Re=Ht()),Re==W&&fe()&&(Re=Ye(o.location.href)),Re=jn(Re),Re}function C(Ye){return Ye.match(/^\//)||Ye.match(/^[a-zA-Z]+:\/\//)?Ye:webModule.__moduleBase+Ye}function D(){var Ye=[],jn=O,Ft=[],ht=[];function Ht(Se){var Me=ht[Se](),Jt=Ft[Se];if(Me in Jt)return Me;var Le=[];for(var ce in Jt)Le[Jt[ce]]=ce;throw r&&r(Se,Le,Me),null}if(__gwt_isKnownPropertyValue=function(Se,Me){return Me in Ft[Se]},webModule.__getPropMap=function(){var Se={};for(var Me in Ft)Ft.hasOwnProperty(Me)&&(Se[Me]=Ht(Me));return Se},webModule.__computePropValue=Ht,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var fe;try{fe=Cb;var Re=fe.indexOf(Db);Re!=-1&&(jn=parseInt(fe.substring(Re+P),$),fe=fe.substring(O,Re))}catch(Se){}return webModule.__softPermutationId=jn,C(fe+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase="/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},typeof window.web3d!="function"&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),typeof window.webSimple!="function"&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet})()},77903:function(Ye,jn,Ft){"use strict";Ft.d(jn,{Ax:function(){return Re},Ds:function(){return Se},KI:function(){return Jt},SI:function(){return fe},f1:function(){return Ht}});var ht=Ft(3294);function Ht(Le){let ce=!0;if(Le.length>0){for(let ve=0;ve<Le.length;ve++)if(Le[ve].compile_success==0||!Le[ve].compile_success){ce=!1;break}}else ce=!1;return ce}function fe(Le,ce=""){let ve=[];for(let he=0;he<Le.length;he++){let Oe=Le[he],je=ce?`${ce}/${Oe.name}`:`${Oe.name}`;ve.push({title:Oe.name,type:Oe.type,isLeaf:Oe.type!=="tree",key:je})}return ve}function Re(Le,ce,ve){for(let he=0;he<Le.length;he++){let Oe=Le[he];if(Oe.key===ce){Oe.children=ve;break}Oe.children&&Re(Oe.children,ce,ve)}return Le}function Se(Le,ce,ve){let he;return function(){let Oe=this,je=arguments,kt=function(){he=null,ve||Le.apply(Oe,je)},et=ve&&!he;clearTimeout(he),he=setTimeout(kt,ce),et&&Le.apply(Oe,je)}}const Me=!0,Jt=ht.Z.API_SERVER},24544:function(Ye,jn,Ft){"use strict";var ht=Ft(86204),Ht=Ft.n(ht),fe=Object.defineProperty,Re=(Le,ce,ve)=>ce in Le?fe(Le,ce,{enumerable:!0,configurable:!0,writable:!0,value:ve}):Le[ce]=ve,Se=(Le,ce,ve)=>Re(Le,typeof ce!="symbol"?ce+"":ce,ve),Me=(Le,ce,ve)=>new Promise((he,Oe)=>{var je=nt=>{try{et(ve.next(nt))}catch(dt){Oe(dt)}},kt=nt=>{try{et(ve.throw(nt))}catch(dt){Oe(dt)}},et=nt=>nt.done?he(nt.value):Promise.resolve(nt.value).then(je,kt);et((ve=ve.apply(Le,ce)).next())});class Jt extends ht.EventEmitter{constructor(ce,ve){super(),Se(this,"url"),Se(this,"body"),Se(this,"fullContent",""),Se(this,"controller",null),this.url=ce,this.body=ve}startStream(){return Me(this,null,function*(){this.controller=new AbortController;const{signal:ce}=this.controller;try{const ve=yield fetch(this.url,{method:"POST",headers:{"Content-Type":"application/json; charset=utf-8"},credentials:"include",body:JSON.stringify(this.body),signal:ce});if(!ve.ok)throw new Error(`\u8BF7\u6C42\u5931\u8D25: ${ve.status}`);const he=ve.headers.get("content-type");if(!he)throw new Error("\u54CD\u5E94\u5934\u7F3A\u5C11 content-type");if(he.includes("application/json")){const kt=yield ve.json();this.emit("error",kt);return}if(!he.includes("text/event-stream"))throw new Error("\u54CD\u5E94\u6570\u636E\u683C\u5F0F\u9519\u8BEF");const Oe=ve.body.getReader(),je=new TextDecoder("utf-8");for(;;){const{done:kt,value:et}=yield Oe.read();if(kt)break;const dt=je.decode(et,{stream:!0}).split(`
|
|
`);for(const lt of dt)if(lt.startsWith("data:")){const pt=lt.slice(5).trim();if(pt==="[DONE]")break;try{const yt=JSON.parse(pt);yt.data&&this.handleData(yt.data)}catch(yt){console.error("\u89E3\u6790 JSON \u5931\u8D25:",yt)}}}this.emit("done",this.fullContent)}catch(ve){ve.name==="AbortError"?this.emit("cancelled",this.fullContent):this.emit("error",ve.message)}})}handleData(ce){ce.content&&(this.fullContent+=ce.content,this.emit("data",{chunk:ce,full:this.fullContent}))}cancelRequest(){var ce;(ce=this.controller)==null||ce.abort()}}jn.Z=Jt},6584:function(Ye,jn,Ft){"use strict";Ft.d(jn,{Z:function(){return bn}});var ht=Ft(59301),Ht=Ft(72719),fe=Ft(77596),Re=Ft(93772),Se=Ft(14179),Me=Ft(56102),Jt={answer:"answer___UngkO",imgWrap:"imgWrap___ORTRf",codeCopy:"codeCopy___re8vm",runCode:"runCode___MYs9m"},Le=Ft(8591),ce=Ft(11611),ve=Ft(81327),he=Ft(3113),Oe=Ft(35328),je=Ft(30084),kt=Ft(10787),et=Ft(50304),nt=Ft(43428),dt=Ft(95237),lt=Ft(43604),pt={smartWrp:"smartWrp___NjRcB"},yt=Ft(23954),At=Ft(59301);const Dt=`<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>\u5FEB\u901F\u6392\u5E8F\u6F14\u793A</title>
|
|
<style>
|
|
body {
|
|
font-family: Arial, sans-serif;
|
|
text-align: center;
|
|
margin: 20px;
|
|
}
|
|
.array-container {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: flex-end;
|
|
height: 300px;
|
|
margin-top: 20px;
|
|
}
|
|
.bar {
|
|
width: 30px;
|
|
margin: 0 2px;
|
|
background-color: #4caf50;
|
|
color: white;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
border-radius: 5px;
|
|
transition: all 0.3s ease;
|
|
}
|
|
.bar.sorted {
|
|
background-color: #ff9800;
|
|
}
|
|
.bar.pivot {
|
|
background-color: #f44336;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<h1>\u5FEB\u901F\u6392\u5E8F\u7B97\u6CD5\u6F14\u793A</h1>
|
|
<button id="start-sort">\u5F00\u59CB\u6392\u5E8F</button>
|
|
<div class="array-container" id="array-container"></div>
|
|
|
|
<script>
|
|
const array = [34, 7, 23, 32, 5, 62]; // \u56FA\u5B9A\u6570\u7EC4
|
|
let bars = [];
|
|
|
|
// \u521D\u59CB\u5316\u6570\u7EC4\u663E\u793A
|
|
function initArrayDisplay() {
|
|
const container = document.getElementById('array-container');
|
|
container.innerHTML = '';
|
|
bars = array.map(value => {
|
|
const bar = document.createElement('div');
|
|
bar.className = 'bar';
|
|
bar.style.height = \`\${value * 5}px\`;
|
|
bar.textContent = value;
|
|
container.appendChild(bar);
|
|
return bar;
|
|
});
|
|
}
|
|
|
|
// \u9AD8\u4EAE\u67D0\u4E2A\u8303\u56F4\u5185\u7684\u67F1\u5B50
|
|
function highlightBars(indices, className) {
|
|
indices.forEach(index => bars[index].classList.add(className));
|
|
}
|
|
|
|
// \u79FB\u9664\u9AD8\u4EAE
|
|
function removeHighlightBars(indices, className) {
|
|
indices.forEach(index => bars[index].classList.remove(className));
|
|
}
|
|
|
|
// \u5FEB\u901F\u6392\u5E8F\u4E3B\u51FD\u6570
|
|
async function quickSort(arr, left = 0, right = arr.length - 1) {
|
|
if (left >= right) return;
|
|
|
|
const pivotIndex = await partition(arr, left, right);
|
|
await quickSort(arr, left, pivotIndex - 1);
|
|
await quickSort(arr, pivotIndex + 1, right);
|
|
}
|
|
|
|
// \u5206\u533A\u51FD\u6570
|
|
async function partition(arr, left, right) {
|
|
const pivot = arr[right];
|
|
let i = left - 1;
|
|
|
|
highlightBars([right], 'pivot'); // \u9AD8\u4EAE\u57FA\u51C6\u503C
|
|
|
|
for (let j = left; j < right; j++) {
|
|
highlightBars([j], 'sorted'); // \u9AD8\u4EAE\u5F53\u524D\u6BD4\u8F83\u5143\u7D20
|
|
await sleep(500);
|
|
|
|
if (arr[j] <= pivot) {
|
|
i++;
|
|
[arr[i], arr[j]] = [arr[j], arr[i]];
|
|
|
|
// \u66F4\u65B0\u67F1\u5B50\u9AD8\u5EA6
|
|
bars[i].style.height = \`\${arr[i] * 5}px\`;
|
|
bars[i].textContent = arr[i];
|
|
bars[j].style.height = \`\${arr[j] * 5}px\`;
|
|
bars[j].textContent = arr[j];
|
|
|
|
await sleep(500);
|
|
}
|
|
|
|
removeHighlightBars([j], 'sorted'); // \u79FB\u9664\u9AD8\u4EAE
|
|
}
|
|
|
|
// \u5C06\u57FA\u51C6\u503C\u653E\u5230\u6B63\u786E\u4F4D\u7F6E
|
|
[arr[i + 1], arr[right]] = [arr[right], arr[i + 1]];
|
|
bars[i + 1].style.height = \`\${arr[i + 1] * 5}px\`;
|
|
bars[i + 1].textContent = arr[i + 1];
|
|
bars[right].style.height = \`\${arr[right] * 5}px\`;
|
|
bars[right].textContent = arr[right];
|
|
|
|
removeHighlightBars([right], 'pivot'); // \u79FB\u9664\u57FA\u51C6\u503C\u9AD8\u4EAE
|
|
highlightBars([i + 1], 'sorted'); // \u9AD8\u4EAE\u6700\u7EC8\u4F4D\u7F6E
|
|
await sleep(500);
|
|
removeHighlightBars([i + 1], 'sorted');
|
|
|
|
return i + 1;
|
|
}
|
|
|
|
// \u5EF6\u8FDF\u51FD\u6570
|
|
function sleep(ms) {
|
|
return new Promise(resolve => setTimeout(resolve, ms));
|
|
}
|
|
|
|
// \u5F00\u59CB\u6392\u5E8F\u6309\u94AE\u70B9\u51FB\u4E8B\u4EF6
|
|
document.getElementById('start-sort').addEventListener('click', () => {
|
|
quickSort(array);
|
|
});
|
|
|
|
// \u521D\u59CB\u5316\u9875\u9762
|
|
initArrayDisplay();
|
|
<\/script>
|
|
</body>
|
|
</html>`;function Ut({open:de=!0,onChange:Wt,defaultValue:xe,placement:nn,width:dn,height:ge,extra:we}){const Je=(0,ht.useRef)(null),Bn=(0,ht.useRef)(null),[vn,zn]=(0,ht.useState)(xe||""),[ae,mn]=(0,ht.useState)(xe||""),[ti,Wn]=(0,ht.useState)(!!de),ii={selectOnLineNumbers:!0};(0,ht.useEffect)(()=>{de&&(zn(xe),mn(xe),Wn(!0))},[de,xe]),(0,ht.useEffect)(()=>{vn!==""&&(clearTimeout(Bn.current),Bn.current=setTimeout(()=>{const yn=document.createElement("iframe");if(yn.style.width="100%",yn.style.height="100%",yn.style.border="0",Je.current){Je.current.innerHTML="",Je.current.appendChild(yn);const Ge=yn.contentDocument||yn.contentWindow.document;Ge.open(),Ge.write(vn),Ge.close()}},500))},[de,vn]);const mi=yn=>{zn(yn),Wt==null||Wt(yn,ae)};return At.createElement(nt.Z,{title:"\u667A\u80FD\u5DE5\u5382",placement:nn||"bottom",open:ti,height:ge||"90vh",rootClassName:pt.smartWrp,destroyOnClose:!0,onClose:()=>Wn(!1),extra:we},At.createElement(dt.Z,null,At.createElement(lt.Z,{flex:"1",style:{background:"#f6f7fb",borderRight:"#e8eaf1 1px solid"}},At.createElement("div",{className:"h100",ref:Je})),At.createElement(lt.Z,{flex:"1"},At.createElement(yt.ZP,{height:"90vh",value:xe,language:"html",theme:"vs",showMiniMap:!1,options:ii,onChange:mi}))))}var Qt=Ut,$t=Object.defineProperty,ne=Object.defineProperties,_t=Object.getOwnPropertyDescriptors,Pe=Object.getOwnPropertySymbols,ue=Object.prototype.hasOwnProperty,pe=Object.prototype.propertyIsEnumerable,oe=(de,Wt,xe)=>Wt in de?$t(de,Wt,{enumerable:!0,configurable:!0,writable:!0,value:xe}):de[Wt]=xe,Ae=(de,Wt)=>{for(var xe in Wt||(Wt={}))ue.call(Wt,xe)&&oe(de,xe,Wt[xe]);if(Pe)for(var xe of Pe(Wt))pe.call(Wt,xe)&&oe(de,xe,Wt[xe]);return de},Ie=(de,Wt)=>ne(de,_t(Wt)),an=(de,Wt)=>{var xe={};for(var nn in de)ue.call(de,nn)&&Wt.indexOf(nn)<0&&(xe[nn]=de[nn]);if(de!=null&&Pe)for(var nn of Pe(de))Wt.indexOf(nn)<0&&pe.call(de,nn)&&(xe[nn]=de[nn]);return xe},bn=({onFinish:de,value:Wt,streamingStatus:xe,cancelIndex:nn,loadImage:dn})=>{const[ge,we]=(0,ht.useState)(""),[Je,Bn]=(0,ht.useState)({defaultValue:"",open:0,language:"",placement:"right",height:"100vh"}),[vn,zn]=(0,ht.useState)(0),[ae,mn]=(0,ht.useState)(!1),ti=mi=>mi.replace(/`(\$\$.*?\$\$)`/g,"$1").replace(/\$\$([\s\S]*?)\$\$/g,(yn,Ge)=>`<mathx data-text="${Ge.trim()}">$$${Ge.trim()}$$</mathx>`).replace(/\\\(([\s\S]*?)\\\)/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/\\\[([\s\S]*?)\\\]/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/_{2,}/g,"`$&`"),Wn=()=>{mn(!0),de==null||de()};(0,ht.useEffect)(()=>{const mi=dn?`\u8FD9\u662F\u6839\u636E\u60A8\u7684\u63CF\u8FF0\u751F\u6210\u7684\u56FE\u7247\uFF1A
|
|
|
|
${Wt}`:Wt,yn=ti(mi);if(!ae)if(dn||!xe||nn>0){we(yn),zn(yn.length),(!xe||nn>0)&&!dn&&Wn();return}else if(vn<yn.length){const Ge=yn.length-vn,Ne=setInterval(()=>{we(yn.slice(0,vn+2)),zn(Zn=>Zn+2)},Ge>10?Math.max(500/(Ge/2),20):50);return()=>clearInterval(Ne)}else xe||Wn()},[Wt,xe,nn,dn,vn]);const ii=(0,ht.useMemo)(()=>ht.createElement("section",{className:`${Jt.answer} fadeIn animated edu_md`},ht.createElement(Ht.UG,{remarkPlugins:[je.Z,kt.Z],rehypePlugins:[Oe.Z,Re.Z],components:{code(mi){var yn=mi,{node:Ge,inline:Ne,className:Zn,children:sn}=yn,We=an(yn,["node","inline","className","children"]);const en=/language-(\w+)/.exec(Zn||""),Nt=String(sn).trim();return Ne||!en?ht.createElement("code",Ae({className:Zn},We),sn):ht.createElement("code",{className:Jt.codeCopy,"data-text":`\`\`\`${en?en[1]:""}
|
|
${sn}
|
|
\`\`\``},ht.createElement(Me.CopyToClipboard,{text:Nt,onCopy:()=>Le.ZP.success({content:"\u590D\u5236\u6210\u529F",key:"copy"})},ht.createElement("button",null,"\u590D\u5236")),en[1]==="html"&&ht.createElement("button",{className:Jt.runCode,onClick:()=>{Bn(Ae({},Ie(Ae({},Je),{open:Je.open++,defaultValue:Nt,language:en[1]})))}},"\u8FD0\u884CHTML"),ht.createElement(fe.Z,Ae({style:Se.Z,language:en[1],PreTag:"div",showLineNumbers:!0,lineNumberStyle:{minWidth:"40px"}},We),Nt))},img({node:mi}){var yn;const Ge=(yn=mi.properties)==null?void 0:yn.src;return ht.createElement(ce.Z,{src:Ge,width:320,"data-text":Ge,onLoad:()=>dn&&setTimeout(()=>Wn(),500)})}}},ae?ge:`${ge}__`)),[ge]);return ht.createElement(ht.Fragment,null,ht.createElement(Qt,{defaultValue:Je.defaultValue,open:Je.open,language:Je.language,height:Je.height,onChange:(mi,yn)=>{we(ge.replaceAll(yn,mi))},extra:ht.createElement(ve.Z,null,ht.createElement(he.ZP,{type:"primary"},"\u4FDD\u5B58\u81F3\u8BFE\u9898"))}),ii)}},35339:function(Ye,jn,Ft){"use strict";Ft.d(jn,{Z:function(){return $t}});var ht=Ft(59301),Ht=Ft(8591),fe=Ft(43428),Re=Ft(95237),Se=Ft(43418),Me=Ft(92832),Jt=Ft(54580),Le=Ft(6848),ce=Ft(43604),ve=Ft(5871),he={wrap:"wrap___Yz6fc",left:"left___F0axg",tip:"tip___nCmqI",bottomBtn:"bottomBtn___x70Gq",disabled:"disabled___CWzre"},Oe=Ft(85057),je=Ft(3294),kt=Ft(14791),et=Ft(99064),nt=Ft(2554),dt=Ft(955),lt=Ft(86106),pt=Ft(36136),yt=Ft(88985),At=Ft(25355),Dt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAYAAAA6/NlyAAAAAXNSR0IArs4c6QAAHr1JREFUaEPNmweYnVW1/n/7a6fMmcm0ZEoSUkkCSQgJCVWKoAI2FAH1iqBYwXvFLogF8S9XvRYElUeqIJegFOmEKgiICUkgJBBCkpnMZHoyc6ad9pW9r3t/58wEsJfn+Z8z5zn9fN+711rvetdaewT/rsvi073GBEsd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20fwzIOkkvW8fcUcLGesFAbhz+y0/OYFV13w7/8XgH1X76avXbJ0167iN/r6/Hf6JdyUrMMVHuvaNpPN7SFfHKMQSWa1VnH+h9/I3FlNuOkUtfU1bHsiYvczKbbn2ri340nePH8l20ZGsL0QT3ceSz4zptUyNDrK4oXzeGGTHxxbt/jujuoXv/nd+/9rYqPZX7Lmn3rvH7Lwa3/og0d+eklP78j5c2vmntZUO7V27e5nGM2NsGtoF65dxQmHz+NDZxxBKpEkNSVFmE3w8iMOj2x5kZ78ANWJBNPqpyESJQIZUvJDk8Km1qUpFovDc2e13Mp4+vIv/uasf/i/Wf4R0vqri/mh2RfXLlow66St+fXvbu/qOW4o3z/1iMXzxOnvOIpUlYNjW2QaUvSvTbFlS462PQMUo2EaG2pIpjzT+y4UlQpDuUchH3ec6DdeUqy5+M7P/v/1j1p/aiXuv/zyxDOP7ViyYP7Ug9r6upadcPSqhYlkYm405jXteNqt8reG9LYO5NJVqt8VXlsU2Nsi6WySofvCfml38xm3nvFv+Ve8/wNgli4fKbeMnwAAAABJRU5ErkJggg==",Ut=(ne,_t,Pe)=>new Promise((ue,pe)=>{var oe=an=>{try{Ie(Pe.next(an))}catch(Gn){pe(Gn)}},Ae=an=>{try{Ie(Pe.throw(an))}catch(Gn){pe(Gn)}},Ie=an=>an.done?ue(an.value):Promise.resolve(an.value).then(oe,Ae);Ie((Pe=Pe.apply(ne,_t)).next())}),$t=(0,ht.forwardRef)(({onUpdateNum:ne,onSave:_t},Pe)=>{var ue;const pe=`\u8BF7\u8F93\u5165\u51FA\u9898\u8981\u6C42\uFF0C\u60A8\u4E5F\u53EF\u4EE5\u5148\u4E0A\u4F20\u6750\u6599\u4E4B\u540E\u518D\u6839\u636E\u6750\u6599\u51FA\u9898
|
|
\u4F8B:\u8BF7\u751F\u6210\u5173\u4E8E\u300APython\u7A0B\u5E8F\u8BBE\u8BA1\u300B\u7684\u8BD5\u9898\u3002\u8003\u5BDF\u77E5\u8BC6\u70B9:\u53D8\u91CF\u5B9A\u4E49\u3001\u6570\u636E\u7C7B\u578B\u3001\u8FD0\u7B97\u7B26\u548C\u63A7\u5236\u7ED3\u6784\u3002\u96BE\u5EA6\u4E3A\u201C\u56F0\u96BE\u201D\u7684\u8BD5\u9898\u536020%`,[oe,Ae]=(0,ht.useState)(!1),[Ie,an]=(0,ht.useState)([]),[Gn,bn]=(0,ht.useState)(null),[de,Wt]=(0,ht.useState)([]),[xe,nn]=(0,ht.useState)(0),[dn,ge]=(0,ht.useState)(0),[we,Je]=(0,ht.useState)(!1),[Bn,vn]=(0,ht.useState)(pe),[zn,ae]=(0,ht.useState)(0),[mn,ti]=(0,ht.useState)(0),[Wn,ii]=(0,ht.useState)(0),[mi,yn]=(0,ht.useState)(0),[Ge,Ne]=(0,ht.useState)(0),[Zn,sn]=(0,ht.useState)(0),[We,en]=(0,ht.useState)(0),[Nt,Ct]=(0,ht.useState)(0),[St,Bt]=(0,ht.useState)(At.Q),{contentRef:Gt,value:Lt,status:ie,open:Ke,close:ln}=St,hn=(0,pt.Z)({contentRef:Gt,status:ie}),{openProgress:Jn,closeProgress:di,CreateProgressModal:fi,progressOpen:pi}=(0,lt.Z)();(0,ht.useEffect)(()=>{Gn&&Ao(),Gn===!1&&(ln(),ne==null||ne(),an([]),vn(pe),ae(0),ti(0),ii(0),yn(0),Ne(0),sn(0),en(0),Ct(0))},[Gn]);const Bi=()=>{bn(!0)};(0,ht.useImperativeHandle)(Pe,()=>({onClick:Bi}));const qi=xi=>{Je(!0),nn(xi),ge(0)},Qi=xi=>Ut(void 0,null,function*(){const ho=xi.name.split(".").slice(-1)[0].toLowerCase();return["docx","doc","pdf","png","jpg"].indexOf(ho)==-1?(Ht.ZP.warning("\u4E0A\u4F20\u7684\u6587\u4EF6\u683C\u5F0F\u6709\u8BEF\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u65B0\u4E0A\u4F20"),Promise.reject()):xi.size/1024/1024>10?(Ht.ZP.warning("\u4E0A\u4F20\u7684\u6587\u4EF6\u5927\u5C0F\u9650\u523610MB\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u65B0\u4E0A\u4F20"),Promise.reject()):!0}),Ao=()=>Ut(void 0,null,function*(){const xi=yield(0,et.ZP)("/api/intelligent_imports/check_number.json",{method:"get"});xi.status===0&&(nn(xi.total_number),ge(xi.remaining_number))}),Mo=xi=>(xi=xi||"",xi=String(xi),xi=xi.replace(/\s+/g,""),xi),Ti=()=>Ut(void 0,null,function*(){var xi,ho;if(Mo(Bn)){if(Bn.length>1e3){Ht.ZP.warning("\u51FA\u9898\u8981\u6C42\u5B57\u6570\u9650\u5236\u4E3A1000\u5B57");return}}else{Ht.ZP.warning("\u8BF7\u5148\u8F93\u5165\u51FA\u9898\u8981\u6C42");return}if(!Mo(Bn)&&!(Ie!=null&&Ie.length)){Ht.ZP.warning("\u8BF7\u4E0A\u4F20\u6750\u6599\u6587\u6863\u6216\u5728\u6587\u672C\u6846\u4E2D\u586B\u5199\u6750\u6599\u5185\u5BB9");return}const pn=[{name:"\u5355\u9009\u9898",num:zn||0},{name:"\u591A\u9009\u9898",num:mn||0},{name:"\u5224\u65AD\u9898",num:Wn||0},{name:"\u586B\u7A7A\u9898",num:mi||0},{name:"\u7B80\u7B54\u9898",num:Ge||0},{name:"\u7EC4\u5408\u9898",num:Nt||0},{name:"\u7F16\u7A0B\u9898",num:Zn||0},{name:"\u7A0B\u5E8F\u586B\u7A7A\u9898",num:We||0}],wt=pn.reduce((Ce,xn)=>Ce+xn.num,0);if(wt===0){Ht.ZP.warning("\u8BF7\u8BBE\u7F6E\u51FA\u9898\u6570\u91CF");return}if(wt>50){Ht.ZP.warning("\u51FA\u9898\u6570\u91CF\u8FBE\u5230\u9650\u5236");return}Je(!1);const ui={scene_type:6,request_identifier:Math.random(),file_id:(ho=(xi=Ie[0])==null?void 0:xi.response)==null?void 0:ho.id,content:Bn,count_arr:pn.map(Ce=>Ce.num).join(",")};yield Ke(ui),Ao()}),Ui=()=>Ut(void 0,null,function*(){const xi=hn();if(_t){bn(!1),_t(xi);return}Jn(),Ae(!0),Wt([]);const ho=new FormData;ho.append("html",xi);const pn=yield(0,et.ZP)("/api/intelligent_imports/import.json",{method:"post",body:ho},!0);if((pn==null?void 0:pn.status)===0)if(pn!=null&&pn.data){di(100),Wt(pn==null?void 0:pn.data);return}else Ht.ZP.warning("\u672A\u8BC6\u522B\u5230\u8BD5\u9898");Ae(!1),di()}),so=()=>Ut(void 0,null,function*(){const xi=hn();(0,dt.RG)(xi)}),mo=["uploading","error"].includes((ue=Ie==null?void 0:Ie[0])==null?void 0:ue.status);return ht.createElement(ht.Fragment,null,ht.createElement(yt.Z,{visible:we,totalCount:xe,usedCount:dn,onCancel:()=>Je(!1),onOk:Ti}),ht.createElement(fe.Z,{title:"\u667A\u80FD\u51FA\u9898",extra:ht.createElement("div",{className:he.extraHeader},ht.createElement(Re.Z,{align:"middle"},!ie&&!!Lt&&ht.createElement(ht.Fragment,null,ht.createElement(Oe.op,{onClick:Ui,className:"mr15",shape:"default"},"\u4FDD\u5B58\u8BD5\u9898"),ht.createElement(Oe.op,{onClick:so,shape:"default",type:"text"},ht.createElement("i",{className:"iconfont icon-fuzhi8 mr5 font14"}),"\u590D\u5236")),ht.createElement("i",{onClick:()=>{const xi=ho=>{Se.default.confirm({centered:!0,icon:null,width:500,zIndex:1101,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:ho,onOk:()=>{bn(!1)}})};if(ie){xi("\u6B63\u5728\u751F\u6210\u8BD5\u9898\u4E2D\uFF0C\u786E\u5B9A\u8981\u9000\u51FA\u5417\uFF1F");return}else Lt?xi("\u8BD5\u9898\u672A\u4FDD\u5B58\uFF0C\u786E\u5B9A\u8981\u9000\u51FA\u5417\uFF1F"):bn(!1)},className:"iconfont icon-guanbi11 current ml15"}))),placement:"bottom",height:"100%",headerStyle:{height:54,borderBottomColor:"#DCDCDC"},bodyStyle:{padding:0},closable:!1,className:"body-overflow-hidden",destroyOnClose:!0,open:Gn},ht.createElement("div",{className:he.wrap},ht.createElement("div",{className:he.left},ht.createElement("div",{className:he.tip},ht.createElement("img",{src:Dt}),ht.createElement("span",null,"\u60A8\u597D\uFF01\u6211\u662F\u60A8\u7684\u667A\u80FD\u51FA\u9898\u52A9\u624B\uFF0C\u6211\u5DF2\u5B66\u4E60\u4E86\u5E73\u53F0\u4EE5\u53CA\u4E92\u8054\u7F51\u4E0A\u6D77\u91CF\u7684\u8BD5\u9898\u77E5\u8BC6\u5E93\u3002\u53EF\u4EE5\u6839\u636E\u60A8\u7684\u8981\u6C42\u548C\u4E0A\u4F20\u7684\u6750\u6599\u7075\u6D3B\u751F\u6210\u5404\u7C7B\u8BD5\u9898\u3002\u6B22\u8FCE\u968F\u65F6\u4E0E\u6211\u4E92\u52A8\uFF0C\u8BA9\u6211\u4EEC\u4E00\u8D77\u6253\u9020\u66F4\u9AD8\u6548\u3001\u66F4\u4F18\u8D28\u7684\u8BD5\u9898\uFF01")),ht.createElement("div",{className:"mb10 mt20 c-black"},ht.createElement("b",null,"\u51FA\u9898\u8981\u6C42")),ht.createElement(Me.default.TextArea,{style:{height:160},className:"mb20",value:Bn,placeholder:"\u8BF7\u5148\u63D0\u4F9B\u60A8\u51FA\u9898\u4F9D\u636E\u7684\u6750\u6599\uFF0C\u53EF\u4EE5\u76F4\u63A5\u590D\u5236\u6750\u6599\u5185\u5BB9\u7C98\u8D34\u5728\u6B64\u533A\u57DF\uFF0C\u4E5F\u53EF\u70B9\u51FB\u4E0B\u65B9\u4E0A\u4F20\u6750\u6599\u6309\u94AE\u4E0A\u4F20\u672C\u5730\u6750\u6599\u6587\u6863",onChange:xi=>{vn(xi.target.value)}}),ht.createElement(Jt.default,{accept:".doc,.docx,.pdf,.png,.jpg",action:`${je.Z.API_SERVER}/api/attachments.json`,maxCount:1,fileList:Ie,withCredentials:!0,data:{upload_type:1},beforeUpload:Qi,onChange:({file:xi})=>{var ho,pn;xi.status!=="removed"&&(xi.status==="done"&&((ho=xi==null?void 0:xi.response)==null?void 0:ho.status)!==0&&(xi.status="error",xi.response=(pn=xi==null?void 0:xi.response)==null?void 0:pn.message),an([xi]))},onRemove:()=>an([])},ht.createElement(Le.Z,{title:"\u5355\u6B21\u4EC5\u652F\u6301\u4E0A\u4F201\u4E2A\u6587\u6863\u62161\u5F20\u56FE\u7247\uFF0C\u6587\u6863\u652F\u6301PDF/Word\u683C\u5F0F\uFF0C\u56FE\u7247\u652F\u63011\u5F20\u4E0D\u8D85\u8FC710M\u7684PNG/JPG\u56FE\u7247"},ht.createElement(Oe.op,{style:{borderRadius:2}},ht.createElement("i",{className:"icon-shangchuan3 mr5"}),"\u4E0A\u4F20\u6750\u6599"))),ht.createElement("div",{className:"c-black mt20"},ht.createElement("div",{className:"mb10 c-black"},ht.createElement("b",null,"\u51FA\u9898\u8981\u6C42"),ht.createElement("span",{className:"c-grey-999"},"\uFF08\u4E3A\u4FDD\u8BC1\u51FA\u9898\u4F53\u9A8C\uFF0C\u5355\u6B21\u51FA\u9898\u603B\u6570\u91CF\u4E0D\u80FD\u8D85\u8FC7",ht.createElement("span",{style:{padding:"0 6px",color:"#FB901F"}},"50"),"\u9053\uFF09")),ht.createElement(Re.Z,{style:{gap:16}},ht.createElement(ce.Z,null,ht.createElement("label",null,"\u5355\u9009\u9898"),ht.createElement(ve.Z,{min:0,max:10,value:zn,onChange:ae,style:{marginLeft:"8px"}})),ht.createElement(ce.Z,null,ht.createElement("label",null,"\u591A\u9009\u9898"),ht.createElement(ve.Z,{min:0,max:10,value:mn,onChange:ti,style:{marginLeft:"8px"}})),ht.createElement(ce.Z,null,ht.createElement("label",null,"\u5224\u65AD\u9898"),ht.createElement(ve.Z,{min:0,max:10,value:Wn,onChange:ii,style:{marginLeft:"8px"}})),ht.createElement(ce.Z,null,ht.createElement("label",null,"\u586B\u7A7A\u9898"),ht.createElement(ve.Z,{min:0,max:10,value:mi,onChange:yn,style:{marginLeft:"8px"}})),ht.createElement(ce.Z,null,ht.createElement("label",null,"\u7B80\u7B54\u9898"),ht.createElement(ve.Z,{min:0,max:10,value:Ge,onChange:Ne,style:{marginLeft:"8px"}})),ht.createElement(ce.Z,null,ht.createElement("label",null,"\u7EC4\u5408\u9898"),ht.createElement(ve.Z,{min:0,max:10,value:Nt,onChange:Ct,style:{marginLeft:"8px"}})),ht.createElement(ce.Z,null,ht.createElement("label",null,"\u7F16\u7A0B\u9898"),ht.createElement(ve.Z,{min:0,max:10,value:Zn,onChange:sn,style:{marginLeft:"8px"}})),ht.createElement(ce.Z,null,ht.createElement("label",null,"\u7A0B\u5E8F\u586B\u7A7A\u9898"),ht.createElement(ve.Z,{min:0,max:10,value:We,onChange:en,style:{marginLeft:"8px"}})))),ie?ht.createElement("div",{onClick:ln,className:he.bottomBtn},ht.createElement("i",{className:"iconfont icon-tingzhihuida"}),"\u505C\u6B62\u51FA\u9898"):mo?ht.createElement("div",{className:`${he.bottomBtn} ${he.disabled}`},ht.createElement("i",{className:"iconfont icon-kaishichuti font14"}),"\u5F00\u59CB\u51FA\u9898"):ht.createElement("div",{onClick:()=>{if(xe!==-1){Je(!0);return}Ti()},className:he.bottomBtn},ht.createElement("i",{className:"iconfont icon-kaishichuti font14"}),"\u5F00\u59CB\u51FA\u9898")),ht.createElement(At.Z,{onStatusChange:Bt,loadingText:"\u8BD5\u9898\u751F\u6210\u4E2D",fetchUrl:"/api/stream/intelligent_imports/stream.json",showEditableToolbar:!pi,noRestrictModal:qi,stringTransformer:nt.o,onError:xi=>{Object.prototype.toString.call(xi)==="[object Object]"&&xi.status===-9&&qi(xi.data)}}))),ht.createElement(fe.Z,{placement:"bottom",height:"100%",closable:!1,className:"body-overflow-hidden",destroyOnClose:!0,open:oe},ht.createElement(Re.Z,{align:"middle",style:{margin:"8px auto 24px auto",width:1200,fontWeight:600},className:"c-black font18"},ht.createElement("img",{src:Ft(36413),alt:"\u667A\u80FD\u51FA\u9898"}),ht.createElement("span",{className:"ml10"},"\u667A\u80FD\u51FA\u9898")),ht.createElement(kt.Z,{stickyTop:-24,hideWordFeatures:!0,dataSource:de,isRefreshItemBank:!0,okText:"\u5BFC\u5165\u9898\u5E93",mode:1,onCancel:()=>Ae(!1),onSuccess:()=>{Ae(!1),bn(!1)}}),ht.createElement("div",{style:{height:70}})),fi("\u5904\u7406\u4E2D"))})},27478:function(Ye,jn,Ft){"use strict";var ht=Ft(59301);const Ht=({scrollBoxRef:fe,bottomInspectRef:Re,contentRef:Se,status:Me,rootMargin:Jt="70px",bottomOffset:Le=110})=>{const[ce,ve]=(0,ht.useState)(!0),he=(0,ht.useRef)(!1);return(0,ht.useEffect)(()=>{if(!fe.current||!Re.current)return;const Oe=new IntersectionObserver(([je])=>{var kt,et,nt,dt;if(!document.contains(je.target)){console.log("\u76EE\u6807\u5143\u7D20\u5DF2\u4ECE DOM \u79FB\u9664");return}if(((kt=je.rootBounds)==null?void 0:kt.width)===0&&((et=je.rootBounds)==null?void 0:et.height)===0){console.log("root\uFF08\u6EDA\u52A8\u5BB9\u5668\uFF09\u65E0\u6548\uFF0C\u53EF\u80FD\u5DF2\u88AB\u79FB\u9664");return}if(((nt=je.boundingClientRect)==null?void 0:nt.width)===0&&((dt=je.boundingClientRect)==null?void 0:dt.height)===0){console.log("\u76EE\u6807\u5143\u7D20\u5BBD\u9AD8\u4E3A 0\uFF0C\u53EF\u80FD\u5DF2\u88AB\u79FB\u9664\u6216 display: none");return}ve(je.isIntersecting)},{root:fe.current,rootMargin:Jt,threshold:0});return Oe.observe(Re.current),()=>{Oe.disconnect()}},[fe.current,Re.current,Jt]),(0,ht.useEffect)(()=>{if(!Me)return;const Oe=fe.current,je=Se.current;he.current=!1;let kt=Oe.scrollTop;const et=()=>{const{scrollTop:dt,scrollHeight:lt,clientHeight:pt}=Oe;dt>kt?dt+pt>=lt-Le&&(Oe.scrollTop=Oe.scrollHeight,he.current=!1):dt<kt&&(he.current=!0),kt=dt};Oe.addEventListener("scroll",et);const nt=new ResizeObserver(()=>{he.current||(Oe.scrollTop=Oe.scrollHeight)});return nt.observe(je),()=>{setTimeout(()=>{nt.unobserve(je)},250),Oe.removeEventListener("scroll",et)}},[Me]),ce};jn.Z=Ht},36136:function(Ye,jn,Ft){"use strict";var ht=Ft(59301);const Ht=({contentRef:fe,status:Re})=>((0,ht.useEffect)(()=>{!Re&&(fe!=null&&fe.current)&&fe.current.querySelectorAll("code[data-text], mathx[data-text]").forEach(Jt=>{Jt.tagName.toLowerCase()==="code"?Jt.parentElement&&(Jt.parentElement.contentEditable="false"):Jt.tagName.toLowerCase()==="mathx"&&(Jt.contentEditable="false")})},[Re]),(Me=!1)=>{const Jt=he=>{const Oe={"&":"&","<":"<",">":">",""":'"',"'":"'"," ":" ","©":"\xA9","®":"\xAE","€":"\u20AC"};return he.replace(/&[^;]+;/g,je=>Oe[je]||je)};if(!fe.current)return"";const Le=fe.current.cloneNode(!0);Le.querySelectorAll("code[data-text], mathx[data-text]").forEach(he=>{let Oe=he.getAttribute("data-text");he.tagName.toLowerCase()==="code"?Oe=Oe.replace(/```.*\n|\n```/g,""):he.tagName.toLowerCase()==="mathx"&&(Oe=`$$${Oe}$$`);const je=document.createTextNode(Oe);he.parentNode.replaceChild(je,he)}),Me&&Le.querySelectorAll('[data-select="disabled"]').forEach(Oe=>{var je;const kt=Oe.textContent||"",et=document.createTextNode(kt+`
|
|
`);(je=Oe.parentNode)==null||je.replaceChild(et,Oe)});let ve=Le.innerHTML;return Me||(ve=ve.replace(/<[^>]*data-select="disabled"[^>]*>.*?<\/[^>]*>/g,"")),ve=ve.replace(/<p>/g,""),ve=ve.replace(/<\/p>/g,`
|
|
`),ve=ve.replace(/<br>/g,`
|
|
`),ve=ve.replace(/\r\n/g,`
|
|
`),ve=ve.replace(/<[^>]*>/g,""),ve=Jt(ve),ve});jn.Z=Ht},86106:function(Ye,jn,Ft){"use strict";Ft.d(jn,{Z:function(){return Oe}});var ht=Ft(59301),Ht=Ft(43418),fe=Ft(95237),Re=Ft(93948),Se="data:image/png;base64,iV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2ijD8vc4vzX/h1QJwpuM3d4+0VCdrL4bAOsfBVaGPCy1L1pHxgkB+bFmjPWGroF8qEPEb+PzPsvND33m7EM5NRT+83CenqBJZzSmM68xttRUorEJSFa8xQOI+yUScYcAoFkM8sWkIL+3lo2YY+HFyUsp7EM69d/+XROG1BGGic508Kav7Ev5FCctp8+rx0Aox8cPNf2VAxAf9Z49k5yNw3g7bualQDK7wfemy7puFk2TplgYL89psNDZEoLCyKVoVY3gvLqpKCcBcrD+Uw2PPDCEzxpQ99TjXTX4Y/H7XXy14+fUG4NWe/6wAIj7oT/8gu8CXzo1SOjcXPf9yL5Au83IpvsjeLY22AqWpkeFtoatbuTBjArBMo8wF2LhpBK8cyGrrTDgjYeB/+pXt+/4aT14bdZ56taR6fY8/64CI3+5//mZuoXTstwewbvK94DI/IKdE1pctMavJxrzZDurrLGV5DY4E2H+4gF2dY8jmQ139KsVj+Xzx9v1fWtD1+pLy33b2sxqI+K3d+U250Pdz7wiRuMn3/UuDQLpFz1ftgIIw1LXN7G7gk3tYbWT1e2H4yR33tH1NG7Nn9/ZrA0ScjB/8x9zCQijfIWHd5BWDS4t+6KpWC4FAoejl/NB+oFD0/9uWP5914uwmf3l0v5ZAxIn7nr/MdWSRv84vhA1eaO3PZ/Kbnv7cnN5fFwDMOP8vz4/Uk8nae+oAAAAASUVORK5CYII=",Le={dotLoading:"dotLoading___s6Sh4",showHide:"showHide___Dfprh",progress:"progress___QUpqo"},ce=Ft(59301);const ve=["\u6587\u4EF6\u89E3\u6790\u8BFB\u53D6\u4E2D","\u5185\u5BB9\u7406\u89E3\u5206\u6790\u4E2D","\u7ED3\u6784\u5316\u63D0\u53D6\u4E2D"];var Oe=()=>{const[je,kt]=(0,ht.useState)(0),[et,nt]=(0,ht.useState)(!1),[dt,lt]=(0,ht.useState)(!0),pt=(0,ht.useRef)(null);(0,ht.useEffect)(()=>{if(dt)return;const $t=()=>{kt(ne=>ne>=99?(clearInterval(pt.current),99):ne+1)};return pt.current=setInterval($t,5e4/99),()=>clearInterval(pt.current)},[dt]);const yt=()=>{kt(0),nt(!0),lt(!1)},At=($t=0)=>{lt(!0),kt($t),nt(!1)},Dt=$t=>{const ne=$t/1048576;let _t;return ne<=.3?_t=3:ne<=.5?_t=5:ne<=1?_t=10:ne<=2?_t=20:ne<=3?_t=30:ne<=10?_t=ne*10:_t=100,` \u9884\u8BA1\u5904\u7406\u65F6\u957F\u4E3A${_t}\u5206\u949F\uFF0C\u8BF7\u52FF\u5173\u95ED\u7A97\u53E3`},Ut=()=>ce.createElement("span",{className:Le.dotLoading},ce.createElement("span",null,"."),ce.createElement("span",null,"."),ce.createElement("span",null,"."));return{progress:je,progressOpen:et,openProgress:yt,closeProgress:At,toggleLock:()=>lt($t=>!$t),CreateProgressModal:($t=ve,ne)=>(typeof $t=="string"&&($t=[$t,$t,$t]),ce.createElement(Ht.default,{centered:!0,closable:!1,destroyOnClose:!0,zIndex:1200,open:et,title:null,footer:null,width:500,afterClose:()=>kt(0)},ce.createElement(fe.Z,{align:"middle",className:"mt40 mb20",style:{flexDirection:"column"}},je<=30&&ce.createElement(ce.Fragment,null,ce.createElement("img",{src:Se,alt:"Step 1"}),ce.createElement("div",{className:"mt20 c-light-primary"},$t[0],Ut())),je>30&&je<60&&ce.createElement(ce.Fragment,null,ce.createElement("img",{src:Me,alt:"Step 2"}),ce.createElement("div",{className:"mt20 c-light-primary"},$t[1],Ut())),je>=60&&ce.createElement(ce.Fragment,null,ce.createElement("img",{src:Jt,alt:"Step 3"}),ce.createElement("div",{className:"mt20 c-light-primary"},$t[2],Ut())),ce.createElement(Re.Z,{className:Le.progress,status:"active",style:{width:"auto"},size:[300,8],percent:je}),!!ne&&ce.createElement("div",{className:"c-grey-999"},Dt(ne)))))}}},89498:function(Ye,jn,Ft){"use strict";Ft.d(jn,{Z:function(){return xe}});var ht=Ft(59301),Ht=Ft(38854),fe=Ft(8591),Re=Ft(6848),Se=Ft(92832),Me=Ft(3113),Jt=Ft(6584),Le={wrap:"wrap___AasCO",chatContainer:"chatContainer___n6e3E",btnContainer:"btnContainer___yKyVB",btn:"btn___Y_09T",inputContainer:"inputContainer____bM3M",sendBtn:"sendBtn___UHHLj",sendBtnDisabled:"sendBtnDisabled___AoSRc",cancelBtn:"cancelBtn___yql4C",loadingWrp:"loadingWrp___gYLGT","dot-fade":"dot-fade___LruoO"},ve=({position:nn,children:dn})=>{const{left:ge=0,top:we=0}=nn||{},[Je,Bn]=(0,ht.useState)(ge),[vn,zn]=(0,ht.useState)(we),ae=(0,ht.useRef)(null),mn=()=>{if(ae.current){const ti=ae.current.offsetWidth,Wn=ae.current.offsetHeight,ii=window.innerWidth,mi=window.innerHeight;let yn=ge,Ge=we;ge+ti>ii&&(yn=ii-ti),yn<0&&(yn=0),we+Wn>mi&&(Ge=mi-Wn),Ge<0&&(Ge=0),Bn(yn),zn(Ge)}};return(0,ht.useEffect)(()=>{if(!ae.current||!nn)return;const ti=new ResizeObserver(()=>{mn()});return ti.observe(ae.current),()=>{ti.disconnect()}},[ge,we,nn]),(0,ht.useEffect)(()=>{nn&&mn()},[ge,we,nn]),nn?ht.createElement("div",{ref:ae,style:{position:"fixed",left:`${Je}px`,top:`${vn}px`,zIndex:1050}},dn):null},he=Ft(3294),Oe=Ft(56102),je=Ft(24544),kt=Object.defineProperty,et=Object.defineProperties,nt=Object.getOwnPropertyDescriptors,dt=Object.getOwnPropertySymbols,lt=Object.prototype.hasOwnProperty,pt=Object.prototype.propertyIsEnumerable,yt=(nn,dn,ge)=>dn in nn?kt(nn,dn,{enumerable:!0,configurable:!0,writable:!0,value:ge}):nn[dn]=ge,At=(nn,dn)=>{for(var ge in dn||(dn={}))lt.call(dn,ge)&&yt(nn,ge,dn[ge]);if(dt)for(var ge of dt(dn))pt.call(dn,ge)&&yt(nn,ge,dn[ge]);return nn},Dt=(nn,dn)=>et(nn,nt(dn)),Ut=(nn,dn,ge)=>new Promise((we,Je)=>{var Bn=ae=>{try{zn(ge.next(ae))}catch(mn){Je(mn)}},vn=ae=>{try{zn(ge.throw(ae))}catch(mn){Je(mn)}},zn=ae=>ae.done?we(ae.value):Promise.resolve(ae.value).then(Bn,vn);zn((ge=ge.apply(nn,dn)).next())}),$t=({visible:nn,position:dn,selectText:ge,applyRefinedText:we,fetchUrl:Je,noRestrictModal:Bn})=>{var vn;const[zn,ae]=(0,ht.useState)(!1),[mn,ti]=(0,ht.useState)([]),[Wn,ii]=(0,ht.useState)(""),[mi,yn]=(0,ht.useState)(1),[Ge,Ne]=(0,ht.useState)(""),[Zn,sn]=(0,ht.useState)(!1),We=(0,ht.useRef)(null),[en,Nt]=(0,ht.useState)(!1),[Ct,St]=(0,ht.useState)(0),Bt=(0,ht.useRef)(!1),Gt=((vn=mn==null?void 0:mn[(mn==null?void 0:mn.length)-1])==null?void 0:vn.loading)===!0;(0,ht.useEffect)(()=>{if(nn){yn(1);return}Nt(!1),ae(!1),Lt(),St(0),ti([]),yn(0)},[nn]);const Lt=()=>{var Ti,Ui;ii(""),Ne(""),(Ui=(Ti=We.current)==null?void 0:Ti.cancelRequest)==null||Ui.call(Ti)},ie=(...Ti)=>Ut(void 0,[...Ti],function*(Ui="",so=mn){const mo=Date.now(),xi=[...so,{text:Ui,key:mo,sender:"user",show:!0},{loading:!0,key:mo,sender:"AI",show:!0}];yn(2),ti(xi);const ho=ln(so),pn={no_record_times:!0,prompt:Ui,history:ho};We.current=new je.Z(he.Z.API_SERVER+Je,pn),yield new Promise(wt=>{We.current.on("data",Li=>{const{chunk:{msg:ui},full:Ce}=Li,xn=ui==="error";Nt(!0),Ne(pi(Ce)),ti(wn=>wn.map((Kn,Ue)=>Ue===wn.length-1?Dt(At({},Kn),{text:Ce,loading:!1,error:xn}):Kn))}),We.current.on("done",()=>wt()),We.current.on("error",Li=>{const ui="\u62B1\u6B49\uFF0C\u6211\u521A\u521A\u9047\u5230\u4E86\u4E00\u70B9\u95EE\u9898\uFF0C\u6CA1\u80FD\u5B8C\u6210\u60A8\u7684\u8BF7\u6C42\u3002\u8BF7\u60A8\u7A0D\u540E\u518D\u8BD5\u4E00\u6B21\uFF0C\u6216\u8005\u8054\u7CFB\u6280\u672F\u652F\u6301\u5E2E\u5FD9\u89E3\u51B3!";Object.prototype.toString.call(Li)==="[object Object]"&&Li.status===-9&&(yn(1),Bn(Li.data)),ti(Ce=>Ce.map((xn,wn)=>wn===Ce.length-1?Dt(At({},xn),{text:ui,loading:!1,error:!0}):xn)),wt()}),We.current.on("cancelled",()=>wt()),We.current.startStream()}),ae(!1)}),Ke=Ti=>{ii(Ti.target.value)},ln=Ti=>Ti.reduce((so,mo)=>{if(mo.sender==="user"){const xi=Ti.find(ho=>ho.key===mo.key&&ho.sender==="AI");xi&&(xi!=null&&xi.text)&&!(xi!=null&&xi.error)&&so.push({question:mo.text,answer:xi.text})}return so},[]),hn=()=>{if(Mo)return;const Ti=Bi("\u6539\u5199");Lt(),ae(!0),ie(Ti)},Jn=Ti=>{if(Ti.key==="Enter"&&!Ti.shiftKey){if(Ti.preventDefault(),Bt.current||Ao)return;hn()}},di=()=>{var Ti,Ui;St(so=>so+1),(Ui=(Ti=We.current)==null?void 0:Ti.cancelRequest)==null||Ui.call(Ti),ae(!1),Nt(!1)},fi=[{key:"1",label:ht.createElement("span",null," ",ht.createElement("i",{className:"iconfont icon-runse font14 mr10"}),"\u6DA6\u8272 ")},{key:"2",label:ht.createElement("span",null,ht.createElement("i",{className:"iconfont icon-kuoxie font14 mr10"}),"\u6269\u5199")},{key:"3",label:ht.createElement("span",null," ",ht.createElement("i",{className:"iconfont icon-suoxie font14 mr10"}),"\u7F29\u5199")}],pi=(Ti="")=>{const Ui=["\u7B54\u6848\uFF1A","\u96BE\u5EA6\uFF1A","\u89E3\u6790\uFF1A","\u77E5\u8BC6\u70B9\uFF1A","\u65F6\u95F4\u9650\u5236\uFF08\u79D2\uFF09","\u7F16\u7A0B\u8BED\u8A00\uFF1A","\u5B66\u5458\u521D\u59CB\u4EE3\u7801\uFF1A","\u7A0B\u5E8F\u4EE3\u7801\uFF1A","\u6D4B\u8BD5\u7528\u4F8B\u8F93\u5165\uFF1A","\u6D4B\u8BD5\u7528\u4F8B\u8F93\u51FA\uFF1A"];return Array.from({length:20}).forEach((so,mo)=>{Ui.push(`\u7B54\u6848${mo+1}\uFF1A`,`\u6D4B\u8BD5\u7528\u4F8B(${mo+1})\u8F93\u5165\uFF1A`,`\u6D4B\u8BD5\u7528\u4F8B(${mo+1})\u8F93\u51FA\uFF1A`)}),Ui.forEach(so=>{const mo=new RegExp(so,"g");Ti=Ti.replace(mo,`**${so}** `)}),Ti},Bi=Ti=>Ti==="\u6539\u5199"?`${Wn}\uFF0C\u6839\u636E\u4E0A\u8FF0\u8981\u6C42\u6539\u5199\u8FD9\u53E5\u8BDD\uFF0C${ge}\uFF0C\u6839\u636E\u539F\u683C\u5F0F\u8FD4\u56DE\u7ED9\u6211\uFF0C\u4E0D\u8981\u53BB\u6389\u63D0\u793A\u8BED`:`${ge}\uFF0C${Ti}\u4E0A\u9762\u8FD9\u53E5\u8BDD\uFF0C\u6839\u636E\u539F\u683C\u5F0F\u8FD4\u56DE\u7ED9\u6211\uFF0C\u4E0D\u8981\u53BB\u6389\u63D0\u793A\u8BED`,qi=Ti=>{let Ui="";Ti.key==="1"&&(Ui=Bi("\u6DA6\u8272")),Ti.key==="2"&&(Ui=Bi("\u6269\u5199")),Ti.key==="3"&&(Ui=Bi("\u7F29\u5199")),Lt(),ae(!0),ie(Ui)},Qi=()=>{const Ti=mn.splice(mn.length-2),{text:Ui}=(Ti==null?void 0:Ti[0])||{};Lt(),ae(!0),ie(Ui,mn)},Ao=zn||en,Mo=(Wn==null?void 0:Wn.trim())==="";return nn?ht.createElement(Ht.Z,{open:Mo&&!Ao&&(Zn||!Ge),overlayStyle:{minWidth:200},menu:{items:fi,onClick:qi}},ht.createElement(ve,{position:dn},ht.createElement("div",{className:Le.wrap},mi===2&&ht.createElement(ht.Fragment,null,ht.createElement("div",{className:Le.chatContainer},Gt&&ht.createElement("div",{className:Le.loadingWrp},ht.createElement("span",null,"\u6B63\u5728\u751F\u6210\u4E2D"),ht.createElement("div",{className:"ai-loading"})),Ge&&ht.createElement(Jt.Z,{cancelIndex:Ct,streamingStatus:zn,loadImage:!1,onFinish:()=>Ut(void 0,null,function*(){St(0),setTimeout(()=>Nt(!1),0)}),value:Ge})),ht.createElement("div",{className:Le.btnContainer},ht.createElement("div",{onClick:()=>we(!0,Ge),className:Le.btn,style:{padding:"0 16px",width:"initial"}},ht.createElement("i",{className:"iconfont icon-tihuan mr10 font14"}),"\u66FF\u6362"),ht.createElement("div",{onClick:()=>we(!1,Ge),className:Le.btn,style:{padding:"0 16px",width:"initial"}},ht.createElement("i",{className:"iconfont icon-charu mr10 font14"}),"\u63D2\u5165"),ht.createElement(Oe.CopyToClipboard,{text:Ge,onCopy:()=>fe.ZP.success({content:"\u590D\u5236\u6210\u529F",key:"copy"})},ht.createElement(Re.Z,{title:"\u590D\u5236"},ht.createElement("div",{className:Le.btn,style:{marginLeft:"auto"}},ht.createElement("i",{className:"iconfont icon-fuzhi8 font14"})))),ht.createElement(Re.Z,{title:"\u91CD\u65B0\u751F\u6210"},ht.createElement("div",{onClick:Qi,className:Le.btn},ht.createElement("i",{className:"iciconfontonfot icon-gengxin-genghuan-tihuan font17"}))),ht.createElement(Re.Z,{title:"\u5220\u9664"},ht.createElement("div",{onClick:()=>{yn(1),Lt(),ti([])},className:Le.btn},ht.createElement("i",{className:"iconfont icon-shanchu14 font14"}))))),ht.createElement("div",{className:Le.inputContainer},ht.createElement(Se.default.TextArea,{placeholder:"\u5728\u8FD9\u91CC\u8F93\u5165\u4F60\u7684\u6587\u672C\u4F18\u5316\u5EFA\u8BAE",value:Wn,bordered:!1,onFocus:()=>sn(!0),onBlur:()=>setTimeout(()=>sn(!1),300),onChange:Ke,onPressEnter:Jn,onCompositionStart:()=>Bt.current=!0,onCompositionEnd:()=>Bt.current=!1}),en?ht.createElement("div",{className:`iconfont icon-tingzhihuida ${Le.cancelBtn}`,onClick:di}):ht.createElement(Me.ZP,{className:Mo?Le.sendBtnDisabled:Le.sendBtn,icon:ht.createElement("i",{className:"iconfont icon-fasong2 c-white"}),disabled:Ao,onClick:hn}))))):ht.createElement(ht.Fragment,null)},ne={"hover-line-container":"hover-line-container___kkYQN","hover-line-content":"hover-line-content___ZkD9e","line-button-container":"line-button-container___A79j9",button:"button___X_Iu7"},_t=Object.defineProperty,Pe=Object.getOwnPropertySymbols,ue=Object.prototype.hasOwnProperty,pe=Object.prototype.propertyIsEnumerable,oe=(nn,dn,ge)=>dn in nn?_t(nn,dn,{enumerable:!0,configurable:!0,writable:!0,value:ge}):nn[dn]=ge,Ae=(nn,dn)=>{for(var ge in dn||(dn={}))ue.call(dn,ge)&&oe(nn,ge,dn[ge]);if(Pe)for(var ge of Pe(dn))pe.call(dn,ge)&&oe(nn,ge,dn[ge]);return nn};const Ie=nn=>React.createElement("svg",Ae({width:14,height:14,xmlns:"http://www.w3.org/2000/svg"},nn),React.createElement("title",null,"AI\u6539\u5199"),React.createElement("defs",null,React.createElement("linearGradient",{x1:"26.797%",y1:"22.073%",x2:"82.181%",y2:"80.474%",id:"rewrite_svg__a"},React.createElement("stop",{stopColor:"#5C64FF",offset:"0%"}),React.createElement("stop",{stopColor:"#6988F8",offset:"100%"}))),React.createElement("path",{d:"m10.406 4.741.007.015h-.007v-.022.007Zm-.04-.04.855-1.495 1.497-.855-1.496-.855L10.366 0l-.854 1.497-1.497.855 1.496.854.855 1.495ZM3.1 8.442l1.71 3.1 1.603-3.1 3.1-1.71L6.52 5.023l-1.71-3.1-1.71 3.1L0 6.733l3.099 1.709H3.1Zm6.84 3.1 1.069 1.924 1.068-1.924L14 10.473l-1.924-1.069-1.069-1.923L9.94 9.405l-1.924 1.068 1.924 1.07v-.001Z",fill:"url(#rewrite_svg__a)",fillRule:"nonzero"}));var an="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IHgxPSIyNi43OTclIiB5MT0iMjIuMDczJSIgeDI9IjgyLjE4MSUiIHkyPSI4MC40NzQlIiBpZD0iYSI+PHN0b3Agc3RvcC1jb2xvcj0iIzVDNjRGRiIgb2Zmc2V0PSIwJSIvPjxzdG9wIHN0b3AtY29sb3I9IiM2OTg4RjgiIG9mZnNldD0iMTAwJSIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjxwYXRoIGQ9Im0xMC40MDYgNC43NDEuMDA3LjAxNWgtLjAwN3YtLjAyMi4wMDdabS0uMDQtLjA0Ljg1NS0xLjQ5NSAxLjQ5Ny0uODU1LTEuNDk2LS44NTVMMTAuMzY2IDBsLS44NTQgMS40OTctMS40OTcuODU1IDEuNDk2Ljg1NC44NTUgMS40OTVaTTMuMSA4LjQ0MmwxLjcxIDMuMSAxLjYwMy0zLjEgMy4xLTEuNzFMNi41MiA1LjAyM2wtMS43MS0zLjEtMS43MSAzLjFMMCA2LjczM2wzLjA5OSAxLjcwOUgzLjFabTYuODQgMy4xIDEuMDY5IDEuOTI0IDEuMDY4LTEuOTI0TDE0IDEwLjQ3M2wtMS45MjQtMS4wNjktMS4wNjktMS45MjNMOS45NCA5LjQwNWwtMS45MjQgMS4wNjggMS45MjQgMS4wN3YtLjAwMVoiIGZpbGw9InVybCgjYSkiIGZpbGwtcnVsZT0ibm9uemVybyIvPjwvc3ZnPg==",bn=(0,ht.forwardRef)(({initialContent:nn,onButtonClick:dn},ge)=>{const[we,Je]=(0,ht.useState)(null),[Bn,vn]=(0,ht.useState)(null),[zn,ae]=(0,ht.useState)(""),[mn,ti]=(0,ht.useState)(null),Wn=ge,ii=We=>{const en=document.elementFromPoint(10,We),Nt=document.createRange();let Ct=null;const St=document.createTreeWalker(Wn.current,NodeFilter.SHOW_TEXT,{acceptNode:hn=>{const Jn=document.createRange();Jn.selectNodeContents(hn);const di=Jn.getBoundingClientRect();return di.top<=We&&di.bottom>=We?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}});let Bt="",Gt,Lt,ie=null,Ke=null,ln=null;for(;Gt=St.nextNode();){Gt.parentNode.getAttribute("data-select")==="disabled"&&(Lt=!0),Bt+=Gt.textContent,Ke||(Ke=Gt),ln=Gt;const hn=document.createRange();hn.selectNodeContents(Gt);const Jn=hn.getBoundingClientRect();ie===null&&(ie=Jn.top)}if(Ke&&ln&&!Lt){const hn=document.createRange();hn.setStart(Ke,0),hn.setEnd(ln,ln.textContent.length),ti(hn)}else ti(null);return vn(ie-1),Lt?"":Bt.trim()};function mi(We){for(;We.parentElement&&We.parentElement.tagName.toLowerCase()!=="section";){var en=window.getComputedStyle(We.parentElement);if(en.pointerEvents==="none")return!0;We=We.parentElement}return!1}const yn=We=>{var en,Nt;if(mi(We.target)){vn(-1e6);return}if(((Nt=(en=document.getSelection())==null?void 0:en.toString)==null?void 0:Nt.call(en))!==""){vn(-1e6);return}const Ct=ii(We.clientY);if((Ct==null?void 0:Ct.trim())===""){vn(-1e6);return}const St=Wn.current.getBoundingClientRect();Je(St.left-30),ae(Ct)},Ge=()=>{},Ne=We=>{dn&&zn&&dn(zn,We.clientX,We.clientY,mn)},Zn=()=>{if(mn){const We=window.getSelection();We.removeAllRanges(),We.addRange(mn)}},sn=()=>{window.getSelection().removeAllRanges()};return(0,ht.useEffect)(()=>{const We=Wn.current;return We.addEventListener("mousemove",yn),We.addEventListener("mouseleave",Ge),()=>{We.removeEventListener("mousemove",yn),We.removeEventListener("mouseleave",Ge),sn()}},[nn]),ht.createElement("div",{className:ne["hover-line-container2"]},Bn!==null&&ht.createElement("div",{className:ne["line-button-container"],style:{top:Bn,left:we},onMouseEnter:()=>{Zn()},onMouseLeave:()=>{sn(),vn(null),ae(""),ti(null)}},ht.createElement("div",{className:ne.button,onClick:Ne},ht.createElement("img",{src:an}),ht.createElement("span",null,"AI\u6539\u5199"))))}),de={toolbar:"toolbar___qYQBF","chat-dialog":"chat-dialog___AUJYU",button:"button___VhNes"},xe=({nodeRef:nn,noRestrictModal:dn})=>{const[ge,we]=(0,ht.useState)(null),[Je,Bn]=(0,ht.useState)(null),[vn,zn]=(0,ht.useState)(!1),[ae,mn]=(0,ht.useState)(null),[ti,Wn]=(0,ht.useState)(!1),[ii,mi]=(0,ht.useState)(!1),yn=nn,Ge=(0,ht.useRef)(null),Ne=(0,ht.useRef)(null),[Zn,sn]=(0,ht.useState)("");(0,ht.useEffect)(()=>{ge!=null&&ge.toString()&&sn(ge==null?void 0:ge.toString())},[ge==null?void 0:ge.toString()]);const We=()=>{const St=window.getSelection(),Bt=yn.current.scrollTop,Gt=yn.current.getBoundingClientRect();if(St.rangeCount>0&&St.toString().length>0){const Lt=St.getRangeAt(0);we(Lt.cloneRange());const ie=Lt.getBoundingClientRect(),Ke=40;let ln=ie.top+Bt-5+Ke;ln<Bt&&(ln=ie.bottom-Gt.top+Bt+5);const hn=yn.current.scrollHeight-Ke;ln=Math.min(Math.max(ln,Bt),hn),Bn({top:ln+6,left:ie.left})}else we(null),Bn(null),zn(!1);en(St)},en=St=>{if(!St||St.rangeCount===0){Wn(!1);return}const Gt=St.getRangeAt(0).getBoundingClientRect(),Lt=window.getComputedStyle(yn.current),ie=parseInt(Lt.lineHeight),Ke=parseInt(Lt.paddingTop),ln=yn.current.scrollTop,hn=yn.current.getBoundingClientRect(),Jn=Gt.top-hn.top+ln,di=Math.floor((Jn-Ke)/ie),fi=Ke+di*ie-ln;mn(fi),Wn(!0)},Nt=St=>{yn.current&&!yn.current.contains(St.target)&&mi(!1)};(0,ht.useEffect)(()=>{const St=yn.current;return St.addEventListener("scroll",We),St.addEventListener("input",We),St.addEventListener("click",We),St.addEventListener("mouseup",We),St.addEventListener("keyup",We),St.addEventListener("click",We),document.addEventListener("mousedown",Nt),()=>{St.removeEventListener("scroll",We),St.removeEventListener("input",We),St.removeEventListener("click",We),St.removeEventListener("mouseup",We),St.removeEventListener("keyup",We),St.removeEventListener("click",We),document.removeEventListener("mousedown",Nt)}},[]);const Ct=(St=!0,Bt)=>{if(!ge)return;const Gt=Ne.current.querySelector("section.edu_md").innerHTML.replace(/<p[^>]*>([\s\S]*?)<\/p>/g,"$1"),Lt=ge.cloneRange(),ie=window.getSelection();if(ie.removeAllRanges(),ie.addRange(Lt),St){Lt.deleteContents();const Ke=document.createElement("div");Ke.innerHTML=Gt;const ln=Array.from(Ke.childNodes);for(;ln.length>0;)Lt.insertNode(ln.pop())}else{Lt.collapse(!1);const Ke=document.createElement("div");Ke.innerHTML=" "+Gt;const ln=Array.from(Ke.childNodes);for(;ln.length>0;)Lt.insertNode(ln.pop())}ie.removeAllRanges(),we(null),zn(!1),Bn(null)};return ht.createElement("section",{ref:Ne},Je&&ht.createElement("div",{ref:Ge,className:de.toolbar,style:{top:Je==null?void 0:Je.top,left:Je==null?void 0:Je.left}},ht.createElement("div",{className:de.button,onClick:()=>zn(!0)},ht.createElement("img",{src:an}),ht.createElement("span",null,"AI\u6539\u5199"))),ht.createElement($t,{key:JSON.stringify(Je),noRestrictModal:dn,visible:vn,position:Je,selectText:Zn,applyRefinedText:Ct,fetchUrl:"/api/stream/intelligent_imports/stream.json"}),yn.current&&ht.createElement(bn,{ref:yn,onButtonClick:(St,Bt,Gt,Lt)=>{we(Lt),zn(!0),sn(St),Bn({left:Bt,top:Gt+20})}}))}},88985:function(Ye,jn,Ft){"use strict";Ft.d(jn,{Z:function(){return Se}});var ht=Ft(59301),Ht=Ft(43418),fe={num:"num___VQiqB"},Se=({visible:Me,usedCount:Jt,totalCount:Le,onOk:ce,onCancel:ve})=>{const he=()=>Jt>0?ht.createElement("div",null,"\u672C\u6B21\u5C06\u6D88\u80171\u6B21\u5927\u6A21\u578B\u4F7F\u7528\u673A\u4F1A\uFF08\u6BCF\u65E5",Le,"\u6B21\u673A\u4F1A\uFF0C\u4ECA\u65E5\u5269\u4F59",ht.createElement("span",{className:fe.num},Jt),"\u6B21\uFF09\uFF0C\u786E\u5B9A\u64CD\u4F5C\u5417\uFF1F"):ht.createElement("div",{className:"mb20"},"\u4ECA\u65E5\u5927\u6A21\u578B\u4F7F\u7528\u673A\u4F1A\u5DF2\u7528\u5B8C\uFF08\u6BCF\u65E5",Le,"\u6B21\u673A\u4F1A\uFF0C\u4ECA\u65E5\u5269\u4F59",ht.createElement("span",{className:fe.num},Jt),"\u6B21\uFF09\u3002");return ht.createElement(Ht.default,{centered:!0,open:Me,title:"\u63D0\u793A",width:620,zIndex:1100,onCancel:ve,onOk:ce,footer:Jt>0?void 0:null},he())}},25355:function(Ye,jn,Ft){"use strict";Ft.d(jn,{Z:function(){return nt},Q:function(){return kt}});var ht=Ft(59301),Ht={container:"container___DAVRd",katex:"katex___oS9Qs",liWrap:"liWrap___pAkIe",backBottom:"backBottom___kT237",imgBox:"imgBox___O8q6M"},fe=Ft(24544),Re=Ft(3294),Se=Ft(6584),Me=Ft(89498),Jt=Ft(27478),Le=Ft(53630),ce="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHAAAAB4CAYAAAAqs3YmAAAAAXNSR0IArs4c6QAADGlJREFUeF7tnVlQHMcZx7/umT0AcSjGBonDOmxdgV2Ww0iWIsmxrfIhJ1VJ2W+uilgEjqtclTwmLxQvyYur8uCKYmFQXMmbXUlV4lw+YsmHkBECdhdkSZZlyUJgScEWh7h2d7pTvcUuw2hhp3dm2dmleWPn66+/+f+me7p7vplGkOQfpRTVt56vgJCyARAtpAg5knS1JosRhBQMdMpJbddPd+68jhCiyQiBkil0sO2qc2J4yoMQLU6mvCizVAFCyLdFlUX9p9o3z/Fqww2Qtbxa7+BuAY9X6pXtGcSBEzVneFsiN8C6lqFKqihuc8MX3pgCTrAFurt2fc2jBj/AI/5GiuGBaCVIgtv2vOnAmd89OstT8Vq33fPL7pzgdJ6LKotaAoLx/k73Jzza8ANs8h1SD1gcBdMfCHg8ki/aMojzk3lPRH9hAxtfp+tfPN64AdZ6/c+pK+jvcr/DU6GwXaqAUT0FwDRfUQJgmgEY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xCilKDgYpHxAtpAgt+0EENmDJr3T1zY4ESkNh8KwGxDUDkEFir9FNj47vWO7NWp4uVG3L5nm51HHh9Ikdo4sXjL98NSCuKYBRcZ9ouVI4Rie34TAqMfSlCkKDsoS+eLrM9XW8JbLG5tRDXJMAoyCffuWy49bMZAWiUikgqZACiaVkLNcaI/NJCrfA7vjm8IZt3yVa20w1xDUNUA3p+effkm4U7Cqcg2A+AruNymDH80RSHPKcTVLmbITM27E0k8zD2FRCFACTvfFxllsOopQr9fYeq7rJ6S5mzg2wrsl3SD0SEx891y99PIgU0MRAl+tj/V6WWvIDPOJvVH9WQ2w7wCe9FiLTr6/D3cPnZdGaH2DLUCVVFHeyFWZKuVQmBrP36MPzZBtCNFiG7w8Yef2bG+BCptVudapcpkDhiTOVAHniSGTLDTA6IZ4YnvJkM8SsBsggRl5pbj1fASFlQ6IlpkRXkRWPZwrA/wPlJnpuyspBOgAAAABJRU5ErkJggg==",ve=Ft(92310),he=Ft.n(ve),Oe=Ft(8591),je=(dt,lt,pt)=>new Promise((yt,At)=>{var Dt=$t=>{try{Qt(pt.next($t))}catch(ne){At(ne)}},Ut=$t=>{try{Qt(pt.throw($t))}catch(ne){At(ne)}},Qt=$t=>$t.done?yt($t.value):Promise.resolve($t.value).then(Dt,Ut);Qt((pt=pt.apply(dt,lt)).next())});const kt={contentRef:{current:null},value:null,status:!1,open:()=>je(void 0,null,function*(){}),close:()=>{}};var nt=({className:dt,style:lt,onChange:pt,onSuccess:yt,onCancel:At,onError:Dt,fetchUrl:Ut,noRestrictModal:Qt=()=>{},showEditableToolbar:$t,bottomOffset:ne=110,loadingText:_t,showEmptyData:Pe=!0,onStatusChange:ue,stringTransformer:pe,bottomContainerNode:oe})=>{const[Ae,Ie]=(0,ht.useState)(!1),[an,Gn]=(0,ht.useState)(""),[bn,de]=(0,ht.useState)(0),[Wt,xe]=(0,ht.useState)(!1),nn=(0,ht.useRef)(null),dn=(0,ht.useRef)(null),ge=(0,ht.useRef)(null),we=(0,ht.useRef)(null),Je=(0,Jt.Z)({scrollBoxRef:we,bottomInspectRef:ge,contentRef:dn,status:Wt,bottomOffset:ne}),Bn=Ae||Wt;(0,ht.useEffect)(()=>{pt==null||pt(an)},[an]),(0,ht.useEffect)(()=>{ue==null||ue({contentRef:dn,status:Bn,value:an,open:vn,close:zn})},[Bn,an]);const vn=mn=>je(void 0,null,function*(){Ie(!0),Gn(""),de(0);const ti=Ut;mn!=null&&mn.fetchUrl&&delete mn.fetchUrl,nn.current=new fe.Z(`${Re.Z.API_SERVER}${ti}`,mn),yield new Promise((Wn,ii)=>{nn.current.on("data",mi=>{let{chunk:{content:yn,type:Ge}}=mi;xe(!0),Ge==="text"&&Gn(Ne=>pe?pe(Ne+yn):Ne+yn)}),nn.current.on("done",()=>{Wn()}),nn.current.on("error",mi=>{Object.prototype.toString.call(mi)==="[object Object]"&&mi.status===-1&&Oe.ZP.warning((mi==null?void 0:mi.message)||""),Wn(),Dt==null||Dt(mi)}),nn.current.on("cancelled",()=>{Wn(),At==null||At()}),nn.current.startStream()}),Ie(!1)}),zn=()=>{var mn,ti;de(1),(ti=(mn=nn.current)==null?void 0:mn.cancelRequest)==null||ti.call(mn),Ie(!1),xe(!1)},ae=(0,ht.useMemo)(()=>dn.current?ht.createElement(Me.Z,{noRestrictModal:Qt,nodeRef:dn}):ht.createElement(ht.Fragment,null),[dn.current]);return ht.createElement(ht.Fragment,null,ht.createElement("div",{className:he()(Ht.container,dt),style:lt,ref:we},ht.createElement("div",{ref:dn,className:Ht.liWrap,contentEditable:!Bn},an&&ht.createElement(Se.Z,{cancelIndex:bn,streamingStatus:Ae,loadImage:!1,onFinish:()=>je(void 0,null,function*(){de(0),setTimeout(()=>xe(!1),0),yt==null||yt(an)}),value:an})),!an&&!Bn&&ht.createElement("div",{className:Ht.imgBox},ht.createElement("img",{width:56,src:ce}),ht.createElement("span",null,"\u9884\u89C8\u533A")),Pe&&Bn&&ht.createElement(Le.Z,{text:_t}),!Je&&ht.createElement("div",{className:Ht.backBottom,onClick:()=>{we.current.scrollTop=we.current.scrollHeight}},ht.createElement("i",{className:"iconfont icon-huidaodibu"})),ht.createElement("div",{ref:ge}),oe),!Bn&&$t&&ae)}},53630:function(Ye,jn,Ft){"use strict";Ft.d(jn,{Z:function(){return Re}});var ht=Ft(59301),Ht={loading:"loading___SifAS",dot:"dot___J5R0d","dot-fade":"dot-fade___BPUGC"},Re=({text:Se})=>ht.createElement("div",null,ht.createElement("div",{className:Ht.loading},ht.createElement("div",{className:Ht.dot}),ht.createElement("div",{className:Ht.dot}),ht.createElement("div",{className:Ht.dot})),!!Se&&ht.createElement("div",{className:"mt5"},Se))},82020:function(Ye,jn,Ft){"use strict";Ft.d(jn,{Z:function(){return sn}});var ht=Ft(59301),Ht=Ft(19909),fe=Ft(78241),Re=Ft(71418),Se=Ft(43418),Me=Ft(95237),Jt=Ft(19842),Le=Ft(8591),ce=Ft(4676),ve="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAYAAAA6/NlyAAAAAXNSR0IArs4c6QAAHr1JREFUaEPNmweYnVW1/n/7a6fMmcm0ZEoSUkkCSQgJCVWKoAI2FAH1iqBYwXvFLogF8S9XvRYElUeqIJegFOmEKgiICUkgJBBCkpnMZHoyc6ad9pW9r3t/58wEsJfn+Z8z5zn9fN+711rvetdaewT/rsvi073GBEsdrIN8214WOfbCyLHnSks0SSGqFCCFlSOS/VLKNhXJbULKTVYgXwhKwWZevNX/d5ya+Ff+6OzZx9WGycRbhZs+JbKdYyPbmqZsR5Qsi7xrIS2LSAgQFuh7fdHIVQRSmZsVhsqSciARyifswL/LsuX9w8/fOfyvOs9/CeB5845bEuJ9WljidOm6tZHtEjkOkWPjuw4l2yZMJAk1UKsMVh9ZCVAqBhxJiEJzE2GEE0Z4ocSOwmEnCm9VxfDy7M77tvyzwP8pwAfMPG6JtOyLI0e8M7SEi2UTuB7SdlGOi+85+K5NyfEIXBdcrwy4YmENVsVgZQhBBKEPUYQVBNhBSDK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/mh2RfXLlow66St+fXvbu/qOW4o3z/1iMXzxOnvOIpUlYNjW2QaUvSvTbFlS462PQMUo2EaG2pIpjzT+y4UlQpDuUchH3ec6DdeUqy5+M7P/v/1j1p/aiXuv/zyxDOP7ViyYP7Ug9r6upadcPSqhYlkYm405jXteNqt8reG9LYO5NJVqt8VXlsU2Nsi6WySofvCfml38xm3nvFv+Ve8/wNgli4fKbeMnwAAAABJRU5ErkJggg==",he={tip:"tip___ZvI4g",knowledgeWrapper:"knowledgeWrapper___tqgxQ",fixedLoading:"fixedLoading___DE4M4",leftNode:"leftNode____UNzE",option:"option___S6OHY",serial:"serial___ILcJR",row:"row___QcAhe",label:"label___dyqjd",content:"content___vvadj"},Oe=Ft(79285),je=Ft(68664),kt=Ft(99064),et=Ft(12290),nt=Ft(88985),dt=Ft(43428),lt=Ft(3113),pt={wrap:"wrap___qW2Wq",left:"left___sYjNM",leftNode:"leftNode___H0fCA",option:"option___Z2rnx",serial:"serial___W1Tba",row:"row___WVcfA",label:"label___QWQYG",content:"content___beuZg",bottomActionContainer:"bottomActionContainer___wLk7s",bottomBtn:"bottomBtn___kZsz6"},yt=Ft(85057),At=Ft(14791),Dt=Ft(955),Ut=Ft(86106),Qt=Ft(36136),$t=Ft(25355),ne=Ft(85149),_t=Ft(59879),Pe=Ft(24334),ue=Ft(2554),pe=(We,en,Nt)=>new Promise((Ct,St)=>{var Bt=ie=>{try{Lt(Nt.next(ie))}catch(Ke){St(Ke)}},Gt=ie=>{try{Lt(Nt.throw(ie))}catch(Ke){St(Ke)}},Lt=ie=>ie.done?Ct(ie.value):Promise.resolve(ie.value).then(Bt,Gt);Lt((Nt=Nt.apply(We,en)).next())}),Ae=({questionId:We,visible:en,onChange:Nt,questionData:Ct,noRestrictModal:St,noReselect:Bt,noSaveSuccess:Gt,onSave:Lt,onClose:ie})=>{const[Ke,ln]=(0,ht.useState)(!1),[hn,Jn]=(0,ht.useState)([]),[di,fi]=(0,ht.useState)($t.Q),{contentRef:pi,value:Bi,status:qi,open:Qi,close:Ao}=di,Mo=(0,Qt.Z)({contentRef:pi,status:qi}),{openProgress:Ti,closeProgress:Ui,CreateProgressModal:so,progressOpen:mo}=(0,Ut.Z)();(0,ht.useEffect)(()=>{en===!0&&(pi!=null&&pi.current)&&xi(),en===!1&&Ao()},[en,!!(pi!=null&&pi.current)]);const xi=()=>pe(void 0,null,function*(){const xn={scene_type:5,request_identifier:Math.random(),item_bank_id:We,count:1};yield Qi(xn)}),ho=[{id:"0",type:"\u5355\u9009\u9898",value:"SINGLE"},{id:"1",type:"\u591A\u9009\u9898",value:"MULTIPLE"},{id:"2",type:"\u5224\u65AD\u9898",value:"JUDGMENT"},{id:"3",type:"\u586B\u7A7A\u9898",value:"COMPLETION"},{id:"4",type:"\u7B80\u7B54\u9898",value:"SUBJECTIVE"},{id:"6",type:"\u7F16\u7A0B\u9898",value:"PROGRAM"},{id:"7",type:"\u7EC4\u5408\u9898",value:"COMBINATION"},{id:"8",type:"\u7A0B\u5E8F\u586B\u7A7A\u9898",value:"BPROGRAM"}],pn=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],wt=()=>pe(void 0,null,function*(){Ti(),ln(!0),Jn([]);const Ce=Mo(),xn=new FormData;xn.append("html",Ce);const wn=yield(0,kt.ZP)("/api/intelligent_imports/import.json",{method:"post",body:xn},!0);if((wn==null?void 0:wn.status)===0)if(wn!=null&&wn.data){Ui(100),Jn(wn==null?void 0:wn.data);return}else Le.ZP.warning("\u672A\u8BC6\u522B\u5230\u8BD5\u9898");ln(!1),Ui()}),Li=()=>pe(void 0,null,function*(){const Ce=Mo();(0,Dt.RG)(Ce)}),ui=(Ce,xn="")=>{var wn,Kn,Ue;const qe=["\u7B80\u5355","\u9002\u4E2D","\u56F0\u96BE"],le=["SINGLE","MULTIPLE","JUDGMENT","COMPLETION","SUBJECTIVE"],{name:re,choices:qt=[],item_type:Ze,tag_disciplines:An=[],difficulty:Ln,analysis:Be,answer_texts:un,standard_answer:Qn,standard_answers:Nn,description:ai,time_limit:zt,language:Fe,hack_sets:Dn,code:On,sub_item_banks:Te}=Ce||Ct,Ve=(wn=ho.find(Rn=>Rn.value===Ze))==null?void 0:wn.type,Vn=`1.${xn}\u3010${Ve}\u3011${re}`;let li="";const oi=(Kn=An==null?void 0:An.map(Rn=>Rn.name))==null?void 0:Kn.join("\u3001");return Ze==="SUBJECTIVE"?li=(un==null?void 0:un[0])||"":Ze==="JUDGMENT"?qt==null||qt.forEach((Rn,qn)=>{Rn.is_answer&&(li=qn?"\u9519\u8BEF":"\u6B63\u786E")}):qt==null||qt.forEach((Rn,qn)=>{Rn.is_answer&&(li=li+pn[qn])}),ht.createElement("div",{className:pt.leftNode,style:Ce?{padding:0}:{}},ht.createElement(ne.Z,{className:"mb10",value:Vn}),qt==null?void 0:qt.map((Rn,qn)=>ht.createElement("div",{key:qn,className:pt.option},ht.createElement("div",{className:pt.serial},pn[qn],"."),ht.createElement(ne.Z,{style:{flex:1},value:Rn==null?void 0:Rn.choice_text}))),ai&&ht.createElement("div",{className:pt.row},ht.createElement("div",{className:pt.label},"\u8BD5\u9898\u63CF\u8FF0"),ht.createElement(ne.Z,{style:{flex:1},value:ai||""})),Ze==="COMPLETION"?(Ue=Qn||Nn)==null?void 0:Ue.map((Rn,qn)=>{var si,Xi;return ht.createElement("div",{className:pt.row,style:{alignItems:"center"},key:qn},ht.createElement("div",{className:pt.label},"\u7B54\u6848",qn+1),ht.createElement("div",{className:pt.content},(Rn==null?void 0:Rn.model)===1?(si=Rn==null?void 0:Rn.answer_text)==null?void 0:si.join("\u3001"):ht.createElement(_t.Z,{value:(Xi=Rn==null?void 0:Rn.answer_text)==null?void 0:Xi.join("\u3001"),readOnly:!0})))}):le.includes(Ze)&&ht.createElement("div",{className:pt.row},ht.createElement("div",{className:pt.label},"\u7B54\u6848"),ht.createElement("div",{className:pt.content},li)),!Ce&&ht.createElement("div",{className:pt.row},ht.createElement("div",{className:pt.label},"\u96BE\u5EA6"),ht.createElement("div",{className:pt.content},qe[Ln-1]||"")),Ze!=="COMBINATION"&&ht.createElement("div",{className:pt.row},ht.createElement("div",{className:pt.label},"\u89E3\u6790"),ht.createElement(ne.Z,{style:{flex:1},value:Be||""})),!Ce&&ht.createElement("div",{className:pt.row},ht.createElement("div",{className:pt.label},"\u77E5\u8BC6\u70B9"),ht.createElement("div",{className:pt.content},oi)),zt&&ht.createElement("div",{className:pt.row},ht.createElement("div",{className:pt.label},"\u65F6\u95F4\u9650\u5236\uFF08\u79D2\uFF09"),ht.createElement("div",{className:pt.content},zt)),Fe&&ht.createElement("div",{className:pt.row},ht.createElement("div",{className:pt.label},"\u7F16\u7A0B\u8BED\u8A00"),ht.createElement("div",{className:pt.content},Fe)),On&&ht.createElement("div",{className:pt.row},ht.createElement("div",{className:pt.label},Ze==="PROGRAM"?"\u5B66\u5458\u521D\u59CB\u4EE3\u7801":"\u7A0B\u5E8F\u4EE3\u7801"),ht.createElement("div",{className:pt.content,style:{whiteSpace:"pre-wrap"}},Pe.Base64.decode(On))),Dn==null?void 0:Dn.map((Rn,qn)=>{const si=Ze==="PROGRAM"?`(${qn+1})`:"";return ht.createElement(ht.Fragment,{key:qn},ht.createElement("div",{className:pt.row},ht.createElement("div",{className:pt.label},"\u6D4B\u8BD5\u7528\u4F8B",si,"\u8F93\u5165"),ht.createElement("div",{className:pt.content},(Rn==null?void 0:Rn.input)||"")),ht.createElement("div",{className:pt.row},ht.createElement("div",{className:pt.label},"\u6D4B\u8BD5\u7528\u4F8B",si,"\u8F93\u51FA"),ht.createElement("div",{className:pt.content},(Rn==null?void 0:Rn.output)||"")))}),Ze==="BPROGRAM"&&(Qn==null?void 0:Qn.map((Rn,qn)=>ht.createElement("div",{className:pt.row,key:qn},ht.createElement("div",{className:pt.label},"\u7B54\u6848",qn+1),ht.createElement("div",{className:pt.content,style:{whiteSpace:"pre-wrap"}},(Rn==null?void 0:Rn.answer_text)||"")))),Te==null?void 0:Te.map((Rn,qn)=>ht.createElement(ht.Fragment,{key:Rn.id},ui(Rn,qn+1))))};return ht.createElement(ht.Fragment,null,ht.createElement(dt.Z,{title:"\u4EE5\u9898\u6362\u9898",extra:ht.createElement("div",{className:pt.extraHeader},ht.createElement(Me.Z,{align:"middle"},!qi&&!!Bi&&ht.createElement(ht.Fragment,null,ht.createElement(yt.op,{onClick:wt,className:"mr15",shape:"default"},"\u4FDD\u5B58\u8BD5\u9898"),ht.createElement(yt.op,{onClick:Li,shape:"default",type:"text"},ht.createElement("i",{className:"iconfont icon-fuzhi8 mr5 font14"}),"\u590D\u5236")),ht.createElement("i",{onClick:()=>{const Ce=xn=>{Se.default.confirm({centered:!0,icon:null,width:500,zIndex:1101,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:xn,onOk:()=>{Nt(!1)}})};if(qi){Ce("\u6B63\u5728\u751F\u6210\u8BD5\u9898\u4E2D\uFF0C\u786E\u5B9A\u8981\u9000\u51FA\u5417\uFF1F");return}else Bi?Ce("\u8BD5\u9898\u672A\u4FDD\u5B58\uFF0C\u786E\u5B9A\u8981\u9000\u51FA\u5417\uFF1F"):Nt(!1)},className:"iconfont icon-guanbi11 current ml15"}))),placement:"bottom",height:"100%",headerStyle:{height:54,borderBottomColor:"#DCDCDC"},bodyStyle:{padding:0},closable:!1,className:"body-overflow-hidden",destroyOnClose:!0,open:en},ht.createElement("div",{className:pt.wrap},ht.createElement("div",{className:pt.left},ht.createElement(Me.Z,{justify:"space-between"},ht.createElement("b",{className:"font16 c-grey-333"},"\u539F\u9898"),!qi&&ht.createElement(lt.ZP,{onClick:()=>{Nt(!1),Bt()},type:"primary"},"\u91CD\u65B0\u9009\u62E9\u8BD5\u9898")),ui()),ht.createElement($t.Z,{stringTransformer:ue.o,onStatusChange:fi,bottomOffset:160,style:{paddingBottom:86},bottomContainerNode:ht.createElement("div",{className:pt.bottomActionContainer},qi?ht.createElement("div",{onClick:Ao,className:pt.bottomBtn},ht.createElement("i",{className:"iconfont icon-tingzhihuida"}),"\u505C\u6B62\u751F\u6210"):ht.createElement("div",{onClick:xi,className:pt.bottomBtn},ht.createElement("i",{className:"iconfont icon-zhongxinshengcheng1"}),"\u91CD\u65B0\u751F\u6210")),loadingText:"\u8BD5\u9898\u751F\u6210\u4E2D",fetchUrl:"/api/stream/intelligent_imports/stream.json",showEditableToolbar:!mo,noRestrictModal:St,onError:Ce=>{Object.prototype.toString.call(Ce)==="[object Object]"&&Ce.status===-9&&St(Ce.data)}}))),ht.createElement(dt.Z,{placement:"bottom",height:"100%",closable:!1,className:"body-overflow-hidden",destroyOnClose:!0,open:Ke},ht.createElement(Me.Z,{align:"middle",style:{margin:"8px auto 24px auto",width:1200,fontWeight:600},className:"c-black font18"},ht.createElement("img",{src:Ft(11215),alt:"\u4EE5\u9898\u6362\u9898"}),ht.createElement("span",{className:"ml10"},"\u4EE5\u9898\u6362\u9898")),ht.createElement(At.Z,{stickyTop:-24,hideWordFeatures:!0,dataSource:hn,isRefreshItemBank:!0,okText:"\u4FDD\u5B58\u8BD5\u9898\u81F3\u8BFE\u4EF6",mode:1,onCancel:()=>ln(!1),onSuccess:()=>{ln(!1),Nt(!1),Gt()},onSave:Ce=>pe(void 0,null,function*(){yield Lt(Ce,()=>{ln(!1),Nt(!1),Gt(),ie()})})}),ht.createElement("div",{style:{height:70}})),so("\u5904\u7406\u4E2D"))},Ie=Ft(59301),an=Object.defineProperty,Gn=Object.getOwnPropertySymbols,bn=Object.prototype.hasOwnProperty,de=Object.prototype.propertyIsEnumerable,Wt=(We,en,Nt)=>en in We?an(We,en,{enumerable:!0,configurable:!0,writable:!0,value:Nt}):We[en]=Nt,xe=(We,en)=>{for(var Nt in en||(en={}))bn.call(en,Nt)&&Wt(We,Nt,en[Nt]);if(Gn)for(var Nt of Gn(en))de.call(en,Nt)&&Wt(We,Nt,en[Nt]);return We},nn=(We,en,Nt)=>new Promise((Ct,St)=>{var Bt=ie=>{try{Lt(Nt.next(ie))}catch(Ke){St(Ke)}},Gt=ie=>{try{Lt(Nt.throw(ie))}catch(Ke){St(Ke)}},Lt=ie=>ie.done?Ct(ie.value):Promise.resolve(ie.value).then(Bt,Gt);Lt((Nt=Nt.apply(We,en)).next())}),ge=(0,ht.forwardRef)(({onUpdateNum:We,onSave:en,onClose:Nt},Ct)=>{var St;const[Bt]=fe.default.useForm(),[Gt,Lt]=(0,ht.useState)({}),[ie,Ke]=(0,ht.useState)({}),[ln,hn]=(0,ht.useState)(null),[Jn,di]=(0,ht.useState)(!1),[fi,pi]=(0,ht.useState)(!1),[Bi,qi]=(0,ht.useState)([]),[Qi,Ao]=(0,ht.useState)(!1),[Mo,Ti]=(0,ht.useState)(!1),[Ui,so]=(0,ht.useState)(""),[mo,xi]=(0,ht.useState)([]),[ho,pn]=(0,ht.useState)([]),[wt,Li]=(0,ht.useState)(null),ui=fe.default.useWatch("knowledge",Bt);(0,ht.useEffect)(()=>{ln===!1&&We&&We()},[ln]);const Ce=()=>nn(void 0,null,function*(){const qt=yield(0,kt.ZP)("/api/disciplines.json",{method:"get",params:{source:"new_question"}});pn(qt.disciplines||[])}),xn=qt=>nn(void 0,null,function*(){const Ze=yield(0,kt.ZP)("/api/tag_disciplines.json",{method:"get",params:{sub_discipline_id:qt}});xi(Ze.tag_disciplines)}),wn=qt=>nn(void 0,null,function*(){var Ze,An,Ln,Be;const un=document.createElement("div");un.className=he.fixedLoading,document.body.appendChild(un),ce.render(Ie.createElement(Re.Z,{spinning:!0}),un);let Qn={};const Nn=[],[ai,zt]=yield Promise.all([(0,kt.ZP)("/api/intelligent_imports/check_number.json",{method:"get"}),(0,kt.ZP)(`/api/item_banks/${qt}/edit_single.json`,{method:"get"})]);if((ai==null?void 0:ai.status)===0&&(Qn.usedCount=ai==null?void 0:ai.remaining_number,Qn.totalCount=ai==null?void 0:ai.total_number),zt.id){if(zt!=null&&zt.analysis||Nn.push(3),(zt==null?void 0:zt.item_type)==="SUBJECTIVE"&&!((Ze=zt==null?void 0:zt.answer_texts)!=null&&Ze.length)&&Nn.push(2),!((An=zt==null?void 0:zt.tag_disciplines)!=null&&An.length)){Nn.push(1);const Fe=[(Ln=zt==null?void 0:zt.discipline)==null?void 0:Ln.id,(Be=zt==null?void 0:zt.sub_discipline)==null?void 0:Be.id].filter(Dn=>!!Dn);Bt.setFieldValue("course",Fe)}Qn=xe(xe({},Qn),zt),qi(Nn)}Ke(zt),Lt(Qn),Qn.totalCount===-1?Nn.length?di(!0):Ao(!0):Ti(!0),document.body.removeChild(un)}),Kn=qt=>nn(void 0,null,function*(){Li(qt),wn(qt),Ce()}),Ue=()=>{hn(!0)};(0,ht.useImperativeHandle)(Ct,()=>({onClick:Ue}));const qe=qt=>{xi([...mo,xe({},qt)])},le=(qt,Ze)=>{if(qt!=null&&qt.course){const[An,Ln]=qt.course;xn(Ln),so(new Date),Bt.setFieldsValue({knowledge:[]})}},re=()=>nn(void 0,null,function*(){const{analysis:qt="",answer_texts:Ze="",course:An=[],knowledge:Ln=[]}=Bt.getFieldsValue()||{},Be={item_bank_id:wt,analysis:qt,answer_texts:Ze?[Ze]:"",sub_discipline_id:(An==null?void 0:An[1])||"",tag_discipline_ids:Ln==null?void 0:Ln.map(Qn=>Qn.value)};pi(!0);const un=yield(0,kt.ZP)("/api/intelligent_imports/exchange_save_info.json",{method:"post",body:Be});un.id&&(Ke(un),di(!1),Ao(!0)),pi(!1)});return Ie.createElement(ht.Fragment,null,Ie.createElement(Se.default,{centered:!0,open:Jn,title:"\u6E29\u99A8\u63D0\u793A",width:810,okText:"\u7EE7\u7EED\u6362\u9898",zIndex:1002,confirmLoading:fi,onCancel:()=>di(!1),onOk:()=>Bt.submit(),afterClose:()=>{Bt.resetFields()}},Ie.createElement("div",{className:he.tip},"\u6211\u53D1\u73B0\u60A8\u9009\u4E2D\u7684\u8FD9\u9053\u9898\u76EE\u4E0D\u5B8C\u5584\u3002\u4E3A\u4E86\u80FD\u66F4\u7CBE\u51C6\u7684\u751F\u6210\u65B0\u7684\u8BD5\u9898\uFF0C\u5EFA\u8BAE\u60A8\u63D0\u4F9B\u66F4\u591A\u7684\u5173\u4E8E\u5F53\u524D\u9898\u76EE\u7684\u4FE1\u606F~"),Ie.createElement("img",{src:ve,style:{marginTop:-100}}),Ie.createElement(fe.default,{form:Bt,onValuesChange:le,layout:"vertical",colon:!1,onFinish:re},Bi.includes(1)&&Ie.createElement(Me.Z,{align:"middle",className:"mb20"},Ie.createElement(fe.default.Item,{label:"\u77E5\u8BC6\u70B9",name:"course",className:"mr10 mb0"},Ie.createElement(Jt.Z,{size:"large",fieldNames:{label:"name",value:"id",children:"sub_disciplines"},style:{width:240},placeholder:"\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B",options:ho})),Ie.createElement(fe.default.Item,{name:"knowledge",className:"mb0 mt30"},Ie.createElement(je.N,{key:Ui,height:300,zIndex:1003,selectvalues:ui,subId:(St=Bt.getFieldsValue().course)==null?void 0:St[1],knowledgeOptions:mo,onAddKnowledgeFinish:qe,className:he.knowledgeWrapper}))),Bi.includes(2)&&Ie.createElement(fe.default.Item,{className:"mt20 mb10",name:"answer_texts",label:"\u53C2\u8003\u7B54\u6848",valuePropName:"defaultValue"},Ie.createElement(et.Z,{placeholder:"\u8BF7\u8F93\u5165\u53C2\u8003\u7B54\u6848",height:120})),Bi.includes(3)&&Ie.createElement(fe.default.Item,{className:"mb0",name:"analysis",label:"\u9898\u76EE\u89E3\u6790",valuePropName:"defaultValue"},Ie.createElement(et.Z,{placeholder:"\u8BF7\u8F93\u5165\u9898\u76EE\u89E3\u6790",height:120})))),ln&&Ie.createElement(Oe.Z,{isIntelligentAssistant:!0,ispptModal:!0,setScoreShow:hn,isshixuns:!1,ScoreShow:!!ln,isloadings:!1,onOk:qt=>{if(!qt.length){Le.ZP.warning("\u8BF7\u9009\u62E9\u8BD5\u9898");return}Kn(qt[0])}}),Ie.createElement(nt.Z,{visible:Mo,usedCount:Gt==null?void 0:Gt.usedCount,totalCount:Gt==null?void 0:Gt.totalCount,onCancel:()=>Ti(!1),onOk:()=>{Ti(!1),Bi.length?di(!0):Ao(!0)}}),Ie.createElement(Ae,{noReselect:()=>{hn(!0)},onSave:en,onClose:Nt,noRestrictModal:qt=>{Lt({usedCount:0,totalCount:qt}),Ti(!0)},questionId:wt,visible:Qi,questionData:ie,onChange:qt=>{Ao(qt)},noSaveSuccess:()=>hn(!1)}))}),we=Ft(92832),Je=Ft(54580),Bn=Ft(6848),vn=Ft(5112),zn={wrap:"wrap___ZbEYZ",left:"left___wH6vq",tip:"tip___EiRrS",bottomBtn:"bottomBtn___Og638",disabled:"disabled___rzckb"},ae=Ft(89070),mn=Ft(3294),ti="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAYAAAA6/NlyAAAAAXNSR0IArs4c6QAAHr1JREFUaEPNmweYnVW1/n/7a6fMmcm0ZEoSUkkCSQgJCVWKoAI2FAH1iqBYwXvFLogF8S9XvRYElUeqIJegFOmEKgiICUkgJBBCkpnMZHoyc6ad9pW9r3t/58wEsJfn+Z8z5zn9fN+711rvetdaewT/rsvi073GBEsdrIN8214WOfbCyLHnSks0SSGqFCCFlSOS/VLKNhXJbULKTVYgXwhKwWZevNX/d5ya+Ff+6OzZx9WGycRbhZs+JbKdYyPbmqZsR5Qsi7xrIS2LSAgQFuh7fdHIVQRSmZsVhsqSciARyifswL/LsuX9w8/fOfyvOs9/CeB5845bEuJ9WljidOm6tZHtEjkOkWPjuw4l2yZMJAk1UKsMVh9ZCVAqBhxJiEJzE2GEE0Z4ocSOwmEnCm9VxfDy7M77tvyzwP8pwAfMPG6JtOyLI0e8M7SEi2UTuB7SdlGOi+85+K5NyfEIXBdcrwy4YmENVsVgZQhBBKEPUYQVBNhBSDKMEGGAG8nAlvJuEfoX9+986B8G/g8Bnlt3yBQvk/m6tKxPKWElIhvjrhpk6HjmPkh4+K5L0XUpWTaJVIJpDfU01VVTP6Uaz3OMsXL5En3ZEfZkcwwNZZFBYMCLIDSgnSAkEfiI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9r6upadcPSqhYlkYm405jXteNqt8reG9LYO5NJVqt8VXlsU2Nsi6WySofvCfml38xm3nvFv+Ve8/wNgli4fKbeMnwAAAABJRU5ErkJggg==",Wn=(We,en,Nt)=>new Promise((Ct,St)=>{var Bt=ie=>{try{Lt(Nt.next(ie))}catch(Ke){St(Ke)}},Gt=ie=>{try{Lt(Nt.throw(ie))}catch(Ke){St(Ke)}},Lt=ie=>ie.done?Ct(ie.value):Promise.resolve(ie.value).then(Bt,Gt);Lt((Nt=Nt.apply(We,en)).next())}),mi=(0,ht.forwardRef)(({onUpdateNum:We,onSave:en,onClose:Nt,aiImg:Ct},St)=>{var Bt;const Gt=`\u8BF7\u8F93\u5165\u51FA\u9898\u8981\u6C42\uFF0C\u60A8\u4E5F\u53EF\u4EE5\u5148\u4E0A\u4F20\u6750\u6599\u4E4B\u540E\u518D\u6839\u636E\u6750\u6599\u51FA\u9898
|
|
\u4F8B:\u8BF7\u751F\u6210\u5173\u4E8E\u300APython\u7A0B\u5E8F\u8BBE\u8BA1\u300B\u7684\u8BD5\u9898\u3002\u8003\u5BDF\u77E5\u8BC6\u70B9:\u53D8\u91CF\u5B9A\u4E49\u3001\u6570\u636E\u7C7B\u578B\u3001\u8FD0\u7B97\u7B26\u548C\u63A7\u5236\u7ED3\u6784\u3002\u96BE\u5EA6\u4E3A\u201C\u56F0\u96BE\u201D\u7684\u8BD5\u9898\u536020%`,Lt=(0,ae.useParams)(),[ie,Ke]=(0,ht.useState)(!1),[ln,hn]=(0,ht.useState)([]),[Jn,di]=(0,ht.useState)(!0),[fi,pi]=(0,ht.useState)(null),[Bi,qi]=(0,ht.useState)([]),[Qi,Ao]=(0,ht.useState)(0),[Mo,Ti]=(0,ht.useState)(0),[Ui,so]=(0,ht.useState)(!1),[mo,xi]=(0,ht.useState)(""),[ho,pn]=(0,ht.useState)(0),[wt,Li]=(0,ht.useState)(0),[ui,Ce]=(0,ht.useState)(0),[xn,wn]=(0,ht.useState)(0),[Kn,Ue]=(0,ht.useState)(0),[qe,le]=(0,ht.useState)(0),[re,qt]=(0,ht.useState)(0),[Ze,An]=(0,ht.useState)(0),[Ln,Be]=(0,ht.useState)(null),[un,Qn]=(0,ht.useState)($t.Q),{contentRef:Nn,value:ai,status:zt,open:Fe,close:Dn}=un,On=(0,Qt.Z)({contentRef:Nn,status:zt}),{openProgress:Te,closeProgress:Ve,CreateProgressModal:Vn,progressOpen:li}=(0,Ut.Z)();(0,ht.useEffect)(()=>{fi&&(Xi(),si()),fi===!1&&(Dn(),We==null||We(),hn([]),xi(Gt),pn(0),Li(0),Ce(0),wn(0),Ue(0),le(0),qt(0),An(0),Be(null))},[fi]);const oi=()=>{pi(!0)};(0,ht.useImperativeHandle)(St,()=>({onClick:oi}));const Rn=Ci=>{so(!0),Ao(Ci),Ti(0)},qn=Ci=>Wn(void 0,null,function*(){const De=Ci.name.split(".").slice(-1)[0].toLowerCase();return["docx","doc","pdf","png","jpg"].indexOf(De)==-1?(Le.ZP.warning("\u4E0A\u4F20\u7684\u6587\u4EF6\u683C\u5F0F\u6709\u8BEF\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u65B0\u4E0A\u4F20"),Promise.reject()):Ci.size/1024/1024>10?(Le.ZP.warning("\u4E0A\u4F20\u7684\u6587\u4EF6\u5927\u5C0F\u9650\u523610MB\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u65B0\u4E0A\u4F20"),Promise.reject()):!0}),si=()=>Wn(void 0,null,function*(){const Ci=yield(0,kt.ZP)("/api/intelligent_imports/check_number.json",{method:"get"});Ci.status===0&&(Ao(Ci.total_number),Ti(Ci.remaining_number))}),Xi=()=>Wn(void 0,null,function*(){var Ci;console.log(Lt,"params"),di(!0);const De=yield(0,kt.ZP)(`/api/courses/${Lt==null?void 0:Lt.coursesId}/smart_plans/${Lt==null?void 0:Lt.id}/question_requirements.json`,{method:"post",body:{url:Ct.url}});De.status===0&&xi((Ci=De==null?void 0:De.data)==null?void 0:Ci.question_requirements),di(!1)}),Ii=Ci=>(Ci=Ci||"",Ci=String(Ci),Ci=Ci.replace(/\s+/g,""),Ci),ji=()=>Wn(void 0,null,function*(){var Ci,De;if(Ii(mo)){if(mo.length>1e3){Le.ZP.warning("\u51FA\u9898\u8981\u6C42\u5B57\u6570\u9650\u5236\u4E3A1000\u5B57");return}}else{Le.ZP.warning("\u8BF7\u5148\u8F93\u5165\u51FA\u9898\u8981\u6C42");return}if(!Ii(mo)&&!(ln!=null&&ln.length)){Le.ZP.warning("\u8BF7\u4E0A\u4F20\u6750\u6599\u6587\u6863\u6216\u5728\u6587\u672C\u6846\u4E2D\u586B\u5199\u6750\u6599\u5185\u5BB9");return}if(Ln===null){Le.ZP.warning("\u8BF7\u9009\u62E9\u9898\u76EE\u7C7B\u578B");return}const En=[{name:"\u5355\u9009\u9898",num:Ln===0?1:0},{name:"\u591A\u9009\u9898",num:Ln===1?1:0},{name:"\u5224\u65AD\u9898",num:Ln===2?1:0},{name:"\u586B\u7A7A\u9898",num:xn||0},{name:"\u7B80\u7B54\u9898",num:Kn||0},{name:"\u7EC4\u5408\u9898",num:Ze||0},{name:"\u7F16\u7A0B\u9898",num:Ln===6?1:0},{name:"\u7A0B\u5E8F\u586B\u7A7A\u9898",num:re||0}];so(!1);const Pi={scene_type:6,request_identifier:Math.random(),file_id:(De=(Ci=ln[0])==null?void 0:Ci.response)==null?void 0:De.id,content:mo,count_arr:En.map(_n=>_n.num).join(",")};yield Fe(Pi),si()}),Qe=()=>Wn(void 0,null,function*(){const Ci=On();Te(),Ke(!0),qi([]);const De=new FormData;De.append("html",Ci);const En=yield(0,kt.ZP)("/api/intelligent_imports/import.json",{method:"post",body:De},!0);if((En==null?void 0:En.status)===0)if(En!=null&&En.data){Ve(100),qi(En==null?void 0:En.data);return}else Le.ZP.warning("\u672A\u8BC6\u522B\u5230\u8BD5\u9898");Ke(!1),Ve()}),ao=()=>Wn(void 0,null,function*(){const Ci=On();(0,Dt.RG)(Ci)}),Oi=["uploading","error"].includes((Bt=ln==null?void 0:ln[0])==null?void 0:Bt.status);return ht.createElement(ht.Fragment,null,ht.createElement(nt.Z,{visible:Ui,totalCount:Qi,usedCount:Mo,onCancel:()=>so(!1),onOk:ji}),ht.createElement(dt.Z,{title:"\u667A\u80FD\u51FA\u9898",extra:ht.createElement("div",{className:zn.extraHeader},ht.createElement(Me.Z,{align:"middle"},!zt&&!!ai&&ht.createElement(ht.Fragment,null,ht.createElement(yt.op,{onClick:Qe,className:"mr15",shape:"default"},"\u4FDD\u5B58\u8BD5\u9898"),ht.createElement(yt.op,{onClick:ao,shape:"default",type:"text"},ht.createElement("i",{className:"iconfont icon-fuzhi8 mr5 font14"}),"\u590D\u5236")),ht.createElement("i",{onClick:()=>{const Ci=De=>{Se.default.confirm({centered:!0,icon:null,width:500,zIndex:1101,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:De,onOk:()=>{pi(!1)}})};if(zt){Ci("\u6B63\u5728\u751F\u6210\u8BD5\u9898\u4E2D\uFF0C\u786E\u5B9A\u8981\u9000\u51FA\u5417\uFF1F");return}else ai?Ci("\u8BD5\u9898\u672A\u4FDD\u5B58\uFF0C\u786E\u5B9A\u8981\u9000\u51FA\u5417\uFF1F"):pi(!1)},className:"iconfont icon-guanbi11 current ml15"}))),placement:"bottom",height:"100%",headerStyle:{height:54,borderBottomColor:"#DCDCDC"},bodyStyle:{padding:0},closable:!1,className:"body-overflow-hidden",destroyOnClose:!0,open:fi},ht.createElement("div",{className:zn.wrap},ht.createElement("div",{className:zn.left},ht.createElement(Re.Z,{spinning:Jn},ht.createElement("div",{className:zn.tip},ht.createElement("img",{src:ti}),ht.createElement("span",null,"\u60A8\u597D\uFF01\u6211\u662F\u60A8\u7684\u667A\u80FD\u51FA\u9898\u52A9\u624B\uFF0C\u6211\u5DF2\u5B66\u4E60\u4E86\u5E73\u53F0\u4EE5\u53CA\u4E92\u8054\u7F51\u4E0A\u6D77\u91CF\u7684\u8BD5\u9898\u77E5\u8BC6\u5E93\u3002\u53EF\u4EE5\u6839\u636E\u60A8\u7684\u8981\u6C42\u548C\u4E0A\u4F20\u7684\u6750\u6599\u7075\u6D3B\u751F\u6210\u5404\u7C7B\u8BD5\u9898\u3002\u6B22\u8FCE\u968F\u65F6\u4E0E\u6211\u4E92\u52A8\uFF0C\u8BA9\u6211\u4EEC\u4E00\u8D77\u6253\u9020\u66F4\u9AD8\u6548\u3001\u66F4\u4F18\u8D28\u7684\u8BD5\u9898\uFF01")),ht.createElement("div",{className:"mb10 mt20 c-black"},ht.createElement("b",null,"\u51FA\u9898\u8981\u6C42")),ht.createElement(we.default.TextArea,{style:{height:160},className:"mb20",value:mo,placeholder:"\u8BF7\u5148\u63D0\u4F9B\u60A8\u51FA\u9898\u4F9D\u636E\u7684\u6750\u6599\uFF0C\u53EF\u4EE5\u76F4\u63A5\u590D\u5236\u6750\u6599\u5185\u5BB9\u7C98\u8D34\u5728\u6B64\u533A\u57DF\uFF0C\u4E5F\u53EF\u70B9\u51FB\u4E0B\u65B9\u4E0A\u4F20\u6750\u6599\u6309\u94AE\u4E0A\u4F20\u672C\u5730\u6750\u6599\u6587\u6863",onChange:Ci=>{xi(Ci.target.value)}}),ht.createElement(Je.default,{accept:".doc,.docx,.pdf,.png,.jpg",action:`${mn.Z.API_SERVER}/api/attachments.json`,maxCount:1,fileList:ln,withCredentials:!0,data:{upload_type:1},beforeUpload:qn,onChange:({file:Ci})=>{var De,En;Ci.status!=="removed"&&(Ci.status==="done"&&((De=Ci==null?void 0:Ci.response)==null?void 0:De.status)!==0&&(Ci.status="error",Ci.response=(En=Ci==null?void 0:Ci.response)==null?void 0:En.message),hn([Ci]))},onRemove:()=>hn([])},ht.createElement(Bn.Z,{title:"\u5355\u6B21\u4EC5\u652F\u6301\u4E0A\u4F201\u4E2A\u6587\u6863\u62161\u5F20\u56FE\u7247\uFF0C\u6587\u6863\u652F\u6301PDF/Word\u683C\u5F0F\uFF0C\u56FE\u7247\u652F\u63011\u5F20\u4E0D\u8D85\u8FC710M\u7684PNG/JPG\u56FE\u7247"},ht.createElement(yt.op,{style:{borderRadius:2}},ht.createElement("i",{className:"icon-shangchuan3 mr5"}),"\u4E0A\u4F20\u6750\u6599"))),ht.createElement("div",{className:"c-black mt20"},ht.createElement("div",{className:"mb10 c-black"},ht.createElement("b",null,"\u51FA\u9898\u8981\u6C42"),ht.createElement("span",{className:"c-grey-999"},"\uFF08\u4E3A\u786E\u4FDD\u51FA\u9898\u4F53\u9A8C\uFF0C\u8BF7\u9009\u62E9",ht.createElement("span",{style:{padding:"0 6px",color:"#FB901F"}},"1"),"\u79CD\u9898\u578B\u5E76\u5236\u4F5C",ht.createElement("span",{style:{padding:"0 6px",color:"#FB901F"}},"1"),"\u9053\u9898\u76EE")),ht.createElement(vn.ZP.Group,{value:Ln,onChange:Ci=>Be(Ci.target.value)},ht.createElement(vn.ZP,{value:0},"\u5355\u9009\u9898"),ht.createElement(vn.ZP,{value:1},"\u591A\u9009\u9898"),ht.createElement(vn.ZP,{value:2},"\u5224\u65AD\u9898"),ht.createElement(vn.ZP,{value:6},"\u7F16\u7A0B\u9898"))),zt?ht.createElement("div",{onClick:Dn,className:zn.bottomBtn},ht.createElement("i",{className:"iconfont icon-tingzhihuida"}),"\u505C\u6B62\u51FA\u9898"):Oi?ht.createElement("div",{className:`${zn.bottomBtn} ${zn.disabled}`},ht.createElement("i",{className:"iconfont icon-kaishichuti font14"}),"\u5F00\u59CB\u51FA\u9898"):ht.createElement("div",{onClick:()=>{if(Qi!==-1){so(!0);return}ji()},className:zn.bottomBtn},ht.createElement("i",{className:"iconfont icon-kaishichuti font14"}),"\u5F00\u59CB\u51FA\u9898"))),ht.createElement($t.Z,{onStatusChange:Qn,loadingText:"\u8BD5\u9898\u751F\u6210\u4E2D",fetchUrl:"/api/stream/intelligent_imports/stream.json",showEditableToolbar:!li,noRestrictModal:Rn,stringTransformer:ue.o,onError:Ci=>{Object.prototype.toString.call(Ci)==="[object Object]"&&Ci.status===-9&&Rn(Ci.data)}}))),ht.createElement(dt.Z,{placement:"bottom",height:"100%",closable:!1,className:"body-overflow-hidden",destroyOnClose:!0,open:ie},ht.createElement(Me.Z,{align:"middle",style:{margin:"8px auto 24px auto",width:1200,fontWeight:600},className:"c-black font18"},ht.createElement("img",{src:Ft(36413),alt:"\u667A\u80FD\u51FA\u9898"}),ht.createElement("span",{className:"ml10"},"\u667A\u80FD\u51FA\u9898")),ht.createElement(At.Z,{stickyTop:-24,hideWordFeatures:!0,dataSource:Bi,isRefreshItemBank:!0,okText:"\u4FDD\u5B58\u8BD5\u9898\u81F3\u8BFE\u4EF6",mode:1,onCancel:()=>Ke(!1),onSuccess:()=>{Ke(!1),pi(!1)},onSave:Ci=>Wn(void 0,null,function*(){yield en(Ci,()=>{Ke(!1),pi(!1),Nt()})})}),ht.createElement("div",{style:{height:70}})),Vn("\u5904\u7406\u4E2D"))}),yn={bigTips:"bigTips___qmSXR",item:"item___leah6",show:"show___h3Vmn",mask:"mask___dIXT6"},Ge=Ft(92310),Ne=Ft.n(Ge),sn=({name:We,aiImg:en,item_bank_ids:Nt,onSave:Ct,isStudent:St=!0})=>{const Bt=(0,ae.useParams)(),Gt=[{img:Ft(30006),name:"\u667A\u80FD\u51FA\u9898",des:"\u57FA\u4E8E\u672C\u9875\u8BFE\u4EF6\u5185\u5BB9\u53CA\u4E0A\u4F20\u6587\u4EF6\uFF0C\u81EA\u52A8\u751F\u6210\u5355\u9009\u3001\u591A\u9009\u3001\u5224\u65AD\u53CA\u7F16\u7A0B\u9898\uFF0C\u7CBE\u51C6\u5339\u914D\u8BFE\u4EF6\u77E5\u8BC6\u70B9\uFF0C\u63D0\u5347\u8BD5\u9898\u4E0E\u8BFE\u4EF6\u7684\u9002\u914D\u5EA6",show:!0,ref:ht.createRef(),element:mi},{img:Ft(23177),name:"\u4EE5\u9898\u6362\u9898",des:"\u6839\u636E\u73B0\u6709\u8BD5\u9898\u7684\u9898\u578B\u3001\u65B9\u5411\u3001\u77E5\u8BC6\u70B9\u3001\u96BE\u6613\u5EA6\uFF0C\u5FEB\u901F\u751F\u6210\u65B0\u7684\u8BD5\u9898\uFF0C\u589E\u52A0\u8BD5\u9898\u7684\u4E30\u5BCC\u5EA6",show:!0,ref:ht.createRef(),element:ge}],Lt=ie=>{const{isDisabledNum:Ke,checkNumModal:ln,checkNum:hn,onClose:Jn}=ie;return St?ht.createElement(ht.Fragment,null):ht.createElement("div",{className:yn.bigTips},Gt.map((di,fi)=>ht.createElement("div",{key:fi,onClick:()=>{var pi,Bi;if(di.show){if(Ke){ln();return}(Bi=(pi=di.ref)==null?void 0:pi.current)==null||Bi.onClick()}},className:Ne()(yn.item,(di==null?void 0:di.show)&&yn.show)},ht.createElement(Me.Z,{align:"middle"},ht.createElement("img",{className:"mr10",src:di.img,width:24}),ht.createElement("span",{style:{color:"#232B40",fontSize:16,fontWeight:600}},di.name)),ht.createElement("div",{className:"mt10",style:{color:"#434D6C",paddingLeft:34}},di.des),!(di!=null&&di.show)&&ht.createElement("div",{className:yn.mask},"\u656C\u8BF7\u671F\u5F85\uFF5E"),!!(di!=null&&di.show)&&ht.createElement("div",{onClick:pi=>pi.stopPropagation()}," ",ht.createElement(di.element,{ref:di.ref,onSave:Ct,aiImg:en,onUpdateNum:hn,onClose:Jn})))))};return ht.createElement(Ht.Z,{showSwitchingModel:!0,headNode:ht.createElement(ht.Fragment,null,ht.createElement("div",{className:"c-grey-333 font22"},ht.createElement("span",{className:"mr5"},"\u{1F44B}"),"\u55E8\uFF0C\u6211\u662F\u667A\u80FD\u52A9\u6559\u5C0F\u6B4C\uFF0C\u60A8\u7684\u6559\u5B66\u597D\u5E2E\u624B\u3002"),ht.createElement("div",{className:"font16 mt20",style:{color:"#434D6C"}},St?ht.createElement("span",null,"\u6211\u53EF\u4EE5\u5E2E\u4F60\u5FEB\u901F\u62C6\u89E3\u9898\u76EE\u96BE\u70B9\u3001\u7406\u6E05\u89E3\u9898\u601D\u8DEF\uFF0C\u8BA9\u590D\u6742\u95EE\u9898\u53D8\u7B80\u5355\uFF1B\u5F53\u4F60\u5199\u4EE3\u7801\u9047\u5230bug\u65F6\uFF0C\u6211\u8FD8\u80FD\u5E2E\u4F60\u8BCA\u65AD\u4EE3\u7801\u9519\u8BEF\u3001\u63D0\u4F9B\u4F18\u5316\u65B9\u6848\u3002\u968F\u65F6\u627E\u6211\uFF0C\u8BA9\u4F60\u7684\u5B66\u4E60\u6548\u7387\u7FFB\u500D\uFF01"):ht.createElement("span",{style:{paddingLeft:33}},"\u60A8\u597D\uFF01\u6211\u662F\u300A",We,"\u300B\u7684\u667A\u6167\u52A9\u6559\uFF0C\u81F4\u529B\u4E8E\u6253\u9020\u9AD8\u6548\u4E92\u52A8\u7684\u667A\u80FD\u8BFE\u5802\u3002\u6211\u80FD\u4E3A\u6559\u5E08\u63D0\u4F9B\u5B9E\u65F6\u8BFE\u4EF6\u4F18\u5316\u3001\u667A\u80FD\u8BD5\u9898\u751F\u6210\uFF1B\u4E3A\u5B66\u751F\u63D0\u4F9B\u4E2A\u6027\u5316\u5B66\u4E60\u8F85\u5BFC\u548C\u96BE\u70B9\u7CBE\u51C6\u89E3\u6790\u3002\u8BA9\u6559\u4E0E\u5B66\u66F4\u8F7B\u677E\uFF0C\u8BA9\u6BCF\u4E00\u5802\u8BFE\u90FD\u66F4\u9AD8\u6548\uFF01"))),headFunctionNode:Lt,placeholder:St?"\u8BD5\u8BD5 \u89E3\u6790\u672C\u9875\u8BFE\u4EF6\u5185\u5BB9\u5E76\u4F18\u5316\uFF0C\u6CE8\u610FShift+Enter\u6362\u884C\u54E6~":"\u8BD5\u8BD5 \u63D0\u53D6\u672C\u9875\u8BFE\u4EF6\u5185\u5BB9\u5E76\u4F18\u5316\uFF0C\u6CE8\u610FShift+Enter\u6362\u884C\u54E6~",fetchData:{questionable_type:"SmartPlan",ppt_url:en==null?void 0:en.url,questionable_id:Bt==null?void 0:Bt.id,item_bank_ids:Nt,type:10,is_chat:!0},title:"\u667A\u80FD\u52A9\u6559",fetchUrl:"/api/stream/course_qna_records/chat_messages.json"})}},19909:function(Ye,jn,Ft){"use strict";Ft.d(jn,{Z:function(){return ie}});var ht=Ft(59301),Ht=Ft(8591),fe=Ft(54580),Re=Ft(43418),Se=Ft(6848),Me=Ft(92832),Jt=Ft(3113),Le=Ft(71418),ce=Ft(64165),ve=Ft(14478),he=Ft(43428),Oe=Ft(38854),je=Ft(92310),kt=Ft.n(je),et=Ft(6584),nt={reasoning:"reasoning___S0mKl",btn:"btn____CIJG",content:"content___CIAh9"},dt=Ft(59301),lt=(Ke,ln,hn)=>new Promise((Jn,di)=>{var fi=qi=>{try{Bi(hn.next(qi))}catch(Qi){di(Qi)}},pi=qi=>{try{Bi(hn.throw(qi))}catch(Qi){di(Qi)}},Bi=qi=>qi.done?Jn(qi.value):Promise.resolve(qi.value).then(fi,pi);Bi((hn=hn.apply(Ke,ln)).next())}),yt=({value:Ke="",streamingStatus:ln,onFinish:hn,cancelIndex:Jn,time:di,loading:fi,loadAll:pi})=>{const[Bi,qi]=(0,ht.useState)(""),[Qi,Ao]=(0,ht.useState)(!0),Mo=(0,ht.useRef)(Ke),Ti=(0,ht.useRef)(ln),Ui=(0,ht.useRef)(0),so=(0,ht.useRef)(null),[mo,xi]=(0,ht.useState)(!1),ho=70;(0,ht.useEffect)(()=>{Ti.current=ln},[ln]),(0,ht.useEffect)(()=>{Mo.current=Ke},[Ke]),(0,ht.useEffect)(()=>{if(!ln){qi(Mo.current);return}return xi(!0),so.current=setInterval(pn,ho),()=>{clearInterval(so.current)}},[]),(0,ht.useEffect)(()=>{mo&&(qi(Mo.current),clearInterval(so.current),xi(!1),hn())},[Jn]);const pn=()=>lt(void 0,null,function*(){const wt=Mo.current[Ui.current];wt!==void 0?(qi(Li=>Li+wt),Ui.current++,clearInterval(so.current),so.current=setInterval(pn,280/(Mo.current.length-Ui.current))):Ti.current===!1&&(qi(Mo.current),clearInterval(so.current),xi(!1),hn())});return dt.createElement("div",{className:`${nt.reasoning} fadeIn animated`},dt.createElement("div",{className:nt.btn,onClick:()=>Ao(!Qi)},dt.createElement("i",{className:"iconfont icon-shendusikao"}),di?dt.createElement("span",null,"\u5DF2\u6DF1\u5EA6\u601D\u8003\uFF08\u7528\u65F6 ",di," \u79D2\uFF09"):dt.createElement("span",null,"\u601D\u8003\u4E2D..."),Qi?dt.createElement("b",{className:"iconfont icon-shouqi6"}):dt.createElement("b",{className:"iconfont icon-zhankai6"})),fi&&dt.createElement(Le.Z,{spinning:!0,className:"mt20"}),Qi&&!fi&&dt.createElement("div",{className:nt.content},Bi,mo?dt.createElement("span",{className:"aiBlink"},"__"):""))},At={select:"select___Kt_GE",box:"box___S5_ly",text:"text___dtZDv",itemWrap:"itemWrap___xmw7x",item:"item___io6Bx",active:"active___nHRTI"},Dt=Ft(81327),Ut=Object.defineProperty,Qt=Object.getOwnPropertySymbols,$t=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,_t=(Ke,ln,hn)=>ln in Ke?Ut(Ke,ln,{enumerable:!0,configurable:!0,writable:!0,value:hn}):Ke[ln]=hn,Pe=(Ke,ln)=>{for(var hn in ln||(ln={}))$t.call(ln,hn)&&_t(Ke,hn,ln[hn]);if(Qt)for(var hn of Qt(ln))ne.call(ln,hn)&&_t(Ke,hn,ln[hn]);return Ke};const ue=Ke=>React.createElement("svg",Pe({className:"logo1_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:200,height:200},Ke),React.createElement("path",{d:"M1019.407 620.8 891.834 397.781 946.49 293.12a29.099 29.099 0 0 0 6.4-36.395l-70.187-126.592a30.08 30.08 0 0 0-24.576-13.653H597.519L539.194 14.507a27.35 27.35 0 0 0-20.907-14.55H380.644a29.141 29.141 0 0 0-24.618 14.55v5.546L225.806 243.03H100.923a29.184 29.184 0 0 0-25.515 13.654L3.428 384.085a32.768 32.768 0 0 0 0 29.184L132.836 638.08 74.511 740.053a32.768 32.768 0 0 0 0 29.056l66.517 116.566a29.907 29.907 0 0 0 25.515 14.506H427.15l62.848 109.227A30.08 30.08 0 0 0 512.783 1024H660.41a29.141 29.141 0 0 0 24.576-14.55l128.469-224.853h114.773a31.915 31.915 0 0 0 24.662-15.445l66.474-117.419a28.16 28.16 0 0 0 0-30.976l.043.043zm-161.28 14.592L791.61 512.469 518.287 993.963l-74.752-122.88h-273.28l65.621-119.211h139.392L101.86 272.213h143.062L380.687 30.08l68.352 119.253-70.187 122.88H925.54l-69.205 121.942 137.6 241.194H858.17z",fill:"#605BEC"}),React.createElement("path",{d:"m499.983 699.307 174.379-274.731H324.708z",fill:"#605BEC"}));var pe="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+PHBhdGggZD0iTTEwMTkuNDA3IDYyMC44IDg5MS44MzQgMzk3Ljc4MSA5NDYuNDkgMjkzLjEyYTI5LjA5OSAyOS4wOTkgMCAwIDAgNi40LTM2LjM5NWwtNzAuMTg3LTEyNi41OTJhMzAuMDggMzAuMDggMCAwIDAtMjQuNTc2LTEzLjY1M0g1OTcuNTE5TDUzOS4xOTQgMTQuNTA3YTI3LjM1IDI3LjM1IDAgMCAwLTIwLjkwNy0xNC41NUgzODAuNjQ0YTI5LjE0MSAyOS4xNDEgMCAwIDAtMjQuNjE4IDE0LjU1djUuNTQ2TDIyNS44MDYgMjQzLjAzSDEwMC45MjNhMjkuMTg0IDI5LjE4NCAwIDAgMC0yNS41MTUgMTMuNjU0TDMuNDI4IDM4NC4wODVhMzIuNzY4IDMyLjc2OCAwIDAgMCAwIDI5LjE4NEwxMzIuODM2IDYzOC4wOCA3NC41MTEgNzQwLjA1M2EzMi43NjggMzIuNzY4IDAgMCAwIDAgMjkuMDU2bDY2LjUxNyAxMTYuNTY2YTI5LjkwNyAyOS45MDcgMCAwIDAgMjUuNTE1IDE0LjUwNkg0MjcuMTVsNjIuODQ4IDEwOS4yMjdBMzAuMDggMzAuMDggMCAwIDAgNTEyLjc4MyAxMDI0SDY2MC40MWEyOS4xNDEgMjkuMTQxIDAgMCAwIDI0LjU3Ni0xNC41NWwxMjguNDY5LTIyNC44NTNoMTE0Ljc3M2EzMS45MTUgMzEuOTE1IDAgMCAwIDI0LjY2Mi0xNS40NDVsNjYuNDc0LTExNy40MTlhMjguMTYgMjguMTYgMCAwIDAgMC0zMC45NzZsLjA0My4wNDN6bS0xNjEuMjggMTQuNTkyTDc5MS42MSA1MTIuNDY5IDUxOC4yODcgOTkzLjk2M2wtNzQuNzUyLTEyMi44OGgtMjczLjI4bDY1LjYyMS0xMTkuMjExaDEzOS4zOTJMMTAxLjg2IDI3Mi4yMTNoMTQzLjA2MkwzODAuNjg3IDMwLjA4bDY4LjM1MiAxMTkuMjUzLTcwLjE4NyAxMjIuODhIOTI1LjU0bC02OS4yMDUgMTIxLjk0MiAxMzcuNiAyNDEuMTk0SDg1OC4xN3oiIGZpbGw9IiM2MDVCRUMiLz48cGF0aCBkPSJtNDk5Ljk4MyA2OTkuMzA3IDE3NC4zNzktMjc0LjczMUgzMjQuNzA4eiIgZmlsbD0iIzYwNUJFQyIvPjwvc3ZnPg==",oe=Object.defineProperty,Ae=Object.getOwnPropertySymbols,Ie=Object.prototype.hasOwnProperty,an=Object.prototype.propertyIsEnumerable,Gn=(Ke,ln,hn)=>ln in Ke?oe(Ke,ln,{enumerable:!0,configurable:!0,writable:!0,value:hn}):Ke[ln]=hn,bn=(Ke,ln)=>{for(var hn in ln||(ln={}))Ie.call(ln,hn)&&Gn(Ke,hn,ln[hn]);if(Ae)for(var hn of Ae(ln))an.call(ln,hn)&&Gn(Ke,hn,ln[hn]);return Ke};const de=Ke=>React.createElement("svg",bn({className:"logo2_svg__icon",viewBox:"0 0 1417 1024",xmlns:"http://www.w3.org/2000/svg",width:276.758,height:200},Ke),React.createElement("path",{d:"M1364.44 118.705c-14.178-6.695-20.322 6.065-28.593 12.525-2.914 2.048-5.277 4.726-7.64 7.246-20.717 21.268-44.899 35.21-76.643 33.556a152.576 152.576 0 0 0-120.674 45.371c-7.404-41.826-32.06-66.875-69.553-82.865-19.693-8.35-39.543-16.7-53.248-34.737-9.61-12.919-12.288-27.333-17.015-41.512-3.15-8.507-6.144-17.25-16.384-18.668-11.185-1.733-15.517 7.247-19.928 14.73a189.125 189.125 0 0 0-23.552 98.461c1.575 76.88 35.446 138.083 102.636 181.642 7.562 4.963 9.531 9.925 7.09 17.25-4.49 14.967-9.926 29.54-14.81 44.584-2.992 9.61-7.561 11.658-18.274 7.483a309.484 309.484 0 0 1-96.886-63.015c-47.813-44.426-91.057-93.342-144.935-131.702a635.825 635.825 0 0 0-38.36-25.207c-54.982-51.2 7.167-93.262 21.582-98.225 14.966-5.199 5.277-23.158-43.402-22.922-48.68.237-93.184 15.833-149.977 36.628-8.428 3.15-17.092 5.514-25.993 7.326a557.844 557.844 0 0 0-160.768-5.436c-105.157 11.264-189.204 58.92-250.96 140.367-74.2 97.832-91.687 208.975-70.261 325.002 22.449 122.25 87.434 223.468 187.47 302.631 103.582 82 222.917 122.172 359.188 114.452 82.708-4.568 174.79-15.202 278.686-99.485 26.151 12.445 53.642 17.486 99.249 21.267 35.131 3.072 69.002-1.733 95.153-6.931 40.96-8.35 38.203-44.741 23.316-51.437-120.202-53.72-93.814-31.822-117.839-49.624 61.125-69.317 153.206-141.312 189.204-374.706 2.835-18.51.472-30.168 0-45.213-.237-9.137 1.969-12.603 12.918-13.706a240.089 240.089 0 0 0 86.173-25.442c77.982-40.803 109.332-107.914 116.736-188.259 1.103-12.288-.236-24.97-13.705-31.429zM685.45 842.043C569.108 754.215 512.55 725.307 489.157 726.49c-21.82 1.26-17.96 25.206-13.155 40.802 5.042 15.439 11.58 26.073 20.717 39.621 6.301 8.9 10.791 22.213-6.302 32.295-37.494 22.213-102.794-7.561-105.787-8.98-76.012-42.929-139.421-99.564-184.241-176.994a523.894 523.894 0 0 1-72.468-239.93c-1.024-20.56 5.278-27.885 26.703-31.587a272.148 272.148 0 0 1 85.307-2.127c118.942 16.699 220.16 67.741 305.073 148.48 48.443 46.001 85.071 100.982 122.88 154.703 40.173 57.029 83.338 111.458 138.32 155.963 19.376 15.675 34.894 27.569 49.781 36.234-44.74 4.805-119.414 5.829-170.456-32.926zm55.926-344.615c0-5.357 2.757-10.398 7.326-13.47a17.723 17.723 0 0 1 22.134 2.048c3.072 2.915 4.805 7.09 4.805 11.422a16.778 16.778 0 0 1-17.25 16.541 17.33 17.33 0 0 1-12.131-4.883 15.911 15.911 0 0 1-4.884-11.658zm173.529 85.464a104.37 104.37 0 0 1-33.005 8.586 71.444 71.444 0 0 1-44.504-13.548c-15.282-12.288-26.23-19.141-30.72-40.645a89.167 89.167 0 0 1 .787-31.429c3.939-17.487-.393-28.75-13.312-38.912-10.476-8.35-23.71-10.634-38.36-10.634a32.06 32.06 0 0 1-14.179-4.175c-6.144-2.914-11.106-10.24-6.301-19.14a60.18 60.18 0 0 1 10.712-11.265c19.85-10.79 42.693-7.246 63.882.788 19.693 7.798 34.501 21.898 55.926 41.905 21.74 24.183 25.68 30.8 38.125 48.916 9.846 14.179 18.747 28.75 24.89 45.45 3.703 10.397-1.102 18.905-13.941 24.103z",fill:"#4D6BFE"}));var Wt="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDE0MTcgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMjc2Ljc1OCIgaGVpZ2h0PSIyMDAiPjxwYXRoIGQ9Ik0xMzY0LjQ0IDExOC43MDVjLTE0LjE3OC02LjY5NS0yMC4zMjIgNi4wNjUtMjguNTkzIDEyLjUyNS0yLjkxNCAyLjA0OC01LjI3NyA0LjcyNi03LjY0IDcuMjQ2LTIwLjcxNyAyMS4yNjgtNDQuODk5IDM1LjIxLTc2LjY0MyAz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YtMTAuNjM0YTMyLjA2IDMyLjA2IDAgMCAxLTE0LjE3OS00LjE3NWMtNi4xNDQtMi45MTQtMTEuMTA2LTEwLjI0LTYuMzAxLTE5LjE0YTYwLjE4IDYwLjE4IDAgMCAxIDEwLjcxMi0xMS4yNjVjMTkuODUtMTAuNzkgNDIuNjkzLTcuMjQ2IDYzLjg4Mi43ODggMTkuNjkzIDcuNzk4IDM0LjUwMSAyMS44OTggNTUuOTI2IDQxLjkwNSAyMS43NCAyNC4xODMgMjUuNjggMzAuOCAzOC4xMjUgNDguOTE2IDkuODQ2IDE0LjE3OSAxOC43NDcgMjguNzUgMjQuODkgNDUuNDUgMy43MDMgMTAuMzk3LTEuMTAyIDE4LjkwNS0xMy45NDEgMjQuMTAzeiIgZmlsbD0iIzRENkJGRSIvPjwvc3ZnPg==",xe=Ft(59301),dn=({value:Ke,onChange:ln})=>{const[hn,Jn]=(0,ht.useState)(!1),di=[{name:"\u901A\u4E49\u5343\u95EE",key:"qwen-max",img:pe},{name:"DeepSeek R1-671B",key:"deepseek-r1",img:Wt}],fi=di.find(pi=>pi.key===Ke);return xe.createElement("div",{className:At.select},xe.createElement(Dt.Z,{size:10},xe.createElement("span",{className:"c-grey-333 font16"},"\u6A21\u578B"),xe.createElement("div",{className:At.box,onMouseLeave:()=>Jn(!1)},xe.createElement("div",{className:At.text,onClick:()=>Jn(!0)},xe.createElement("img",{src:fi.img,width:20}),xe.createElement("span",null,fi.name),xe.createElement("b",{className:"iconfont icon-zhankai6"})),hn&&xe.createElement("div",{className:At.itemWrap},xe.createElement("aside",null,di.map(pi=>xe.createElement("div",{key:pi.key,className:`${At.item} ${pi.key===Ke?At.active:""}`,onClick:Bi=>{Bi.stopPropagation(),ln(pi.key),Jn(!1)}},xe.createElement("img",{src:pi.img,width:20}),xe.createElement("span",null,pi.name))))))))},ge={loadingPic:"loadingPic___y2kKZ",loading:"loading___UEUk1",dot:"dot___TYXFV","dot-fade":"dot-fade___KWn1a",wrap:"wrap___nU3cS",chatContainer:"chatContainer___PNe3Q",footerContainer:"footerContainer___hQATV",btnWrp:"btnWrp___mS8l6",btn:"btn___3za5U",btnActive:"btnActive____jzfb",inputContainer:"inputContainer___iCQ3u",uploadBtn:"uploadBtn___OHHJF",sendBtn:"sendBtn___ktaQl",sendBtnDisabled:"sendBtnDisabled___DVncF",cancelBtn:"cancelBtn___bzMDI",lineFour:"lineFour___Lhbz5",fullIcon:"fullIcon___YWXTV",footerContainerSelected:"footerContainerSelected___pGBh3",full:"full___dZLXo",li:"li___PjMV3",avatarIcon:"avatarIcon___ztGQ3",img:"img___wZqEA",content:"content___OlYYG",borderBox:"borderBox___tjHwt",text:"text___yWTCV",fileWrap:"fileWrap___IX778",file:"file___fxAKb",fileName:"fileName___RA8nu",source:"source___nkLC0",action:"action___I2zGy",disabledInput:"disabledInput___Buork",backBottom:"backBottom___SMuL2",head:"head___v8Eom",headBtn:"headBtn___IS7xR",menuWarp:"menuWarp___G6yj0",menu:"menu___M8VWP",menuText:"menuText___gRpb5",menuDel:"menuDel___eH_wg",active:"active___KWwPV"},we=Ft(99064),Je=Ft(955),Bn={draggableImage:"draggableImage___vcTso",img:"img___xAyno",close:"close___WUtfj"},zn=({src:Ke,onClick:ln,topPercentage:hn=.62,draggableExtraNode:Jn})=>{const di=(0,ht.useRef)(null),fi=(0,ht.useRef)(!1),pi=(0,ht.useRef)(!1),[Bi,qi]=(0,ht.useState)(window.innerHeight*hn),[Qi,Ao]=(0,ht.useState)(!1),Mo=10;return(0,ht.useEffect)(()=>{if(di.current){let Ti=function(ho){var pn;fi.current=!0,xi=ho.pageY,mo=ho.pageY-(((pn=di.current)==null?void 0:pn.getBoundingClientRect().top)||0),(0,Je.kk)("none"),document.onselectstart=function(){return!1}},Ui=function(){fi.current&&!pi.current&&ln&&ln(),fi.current=!1,pi.current=!1,(0,Je.kk)("auto"),document.onselectstart=null},so=function(ho){var pn;if(fi.current){const Li=ho.pageY-mo,ui=window.innerHeight-(((pn=di.current)==null?void 0:pn.offsetHeight)||0)-50,Ce=50;if(!pi.current&&Math.abs(xi-ho.pageY)>Mo&&(pi.current=!0),pi.current){let xn=Math.max(Ce,Math.min(Li,ui));qi(xn)}}},mo=0,xi=0;return di.current.addEventListener("mousedown",Ti),document.addEventListener("mousemove",so),document.addEventListener("mouseup",Ui),()=>{var ho,pn;(pn=(ho=di==null?void 0:di.current)==null?void 0:ho.removeEventListener)==null||pn.call(ho,"mousedown",Ti),document.removeEventListener("mousemove",so),document.removeEventListener("mouseup",Ui)}}},[ln]),(0,ht.useEffect)(()=>{const Ti=()=>{qi(window.innerHeight*hn)};return window.addEventListener("resize",Ti),()=>{window.removeEventListener("resize",Ti)}},[hn]),ht.createElement("div",{className:Bn.draggableImage,style:{top:`${Bi}px`,display:Qi?"none":"block",cursor:fi.current?"grabbing":"grab"},ref:di},Jn,ht.createElement("img",{className:Bn.img,src:Ke,width:60,draggable:"false"}),ht.createElement("i",{className:`iconfont icon-tupianguanbi ${Bn.close}`,onMouseUp:Ti=>{Ti.stopPropagation(),Ao(!0)}}))},ae="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAAAXNSR0IArs4c6QAAIABJREFUeF6VnQmAnGV9/z/vMffeV3azuRMCSUgCSQggiCBFEE9UvFpqW6utFopa71bx6GHRWq31xKtSFS0eqICV+wwSIJKQkDvZJJvsObOzO/d7PH9/z/O+s5sY2/4XhpmdnXln3u/7/f1+39/xPFj8H39Wr742GRaOXaYs65WWnVhtuc58y7Lmh4oWZYFv2fpIgdxZFtg2oZMgdByU7eA7Npbt6L958rttUXMsQtsCyyawLEI5gC0HMMcCpf8193ILIVT6ZoUhlgqxw5BEoLAD87ulAuxQkZC/h4ogDHBCX79eXivHsfShQizkOJQsFR63FMdVGO6yHfWz1s4FD+za9V+N/ws01v/2otVLzuv36tZHwfpDlN1m2w6W62LLiVpyLhahpQixNRiBxkPAE+BcQtvRj+Veyd8dG99x8CyLIOESuC4qlPcJ6BH48l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hFWT3bZM7y1azt3ki/gjJC0RysYIa059LeGaeqJJ94Ii6H9Kv8NNcovk+uKXvqF8un/N/+CcBu5N24Yb8H9pfF6XOW1M+bUtNYP6yoIGRccPphjBrZT7dBcosjtC2PsnRBnNUNDdiik5I+BeREQnpsMZm2VQt7vcR+PRoJPC1mtc2/mZv///ojj90punz2WfN/nntvQHFezmRXpPcdP3bIqIL8whGWF6xc+04oL7kqQ2Pfpu5omAZThNY6GWuV4waWOp6xcGg0UDPtuWn/lj/j+X+Lbso4jJUfOwAAAABJRU5ErkJggg==",Wn=Ft(3294),ii=Ft(56102),mi=Ft(24544),yn=Ft(58617),Ge=Ft(32050),Ne=Object.defineProperty,Zn=Object.defineProperties,sn=Object.getOwnPropertyDescriptors,We=Object.getOwnPropertySymbols,en=Object.prototype.hasOwnProperty,Nt=Object.prototype.propertyIsEnumerable,Ct=(Ke,ln,hn)=>ln in Ke?Ne(Ke,ln,{enumerable:!0,configurable:!0,writable:!0,value:hn}):Ke[ln]=hn,St=(Ke,ln)=>{for(var hn in ln||(ln={}))en.call(ln,hn)&&Ct(Ke,hn,ln[hn]);if(We)for(var hn of We(ln))Nt.call(ln,hn)&&Ct(Ke,hn,ln[hn]);return Ke},Bt=(Ke,ln)=>Zn(Ke,sn(ln)),Gt=(Ke,ln,hn)=>new Promise((Jn,di)=>{var fi=qi=>{try{Bi(hn.next(qi))}catch(Qi){di(Qi)}},pi=qi=>{try{Bi(hn.throw(qi))}catch(Qi){di(Qi)}},Bi=qi=>qi.done?Jn(qi.value):Promise.resolve(qi.value).then(fi,pi);Bi((hn=hn.apply(Ke,ln)).next())}),ie=({title:Ke="\u5934\u6B4CAI",placeholder:ln,hideUpload:hn,hideInputBox:Jn,aiIcon:di=ae,userIcon:fi=mn,dragIcon:pi=ti,children:Bi,fetchUrl:qi,fetchData:Qi={},extraAnswerAction:Ao,showDefaultTips:Mo=!0,onOpen:Ti,onClose:Ui,loadingOption:so,showPreference:mo=!1,initMessage:xi,customRequest:ho,visible:pn,width:wt=1200,isCheckRestrictNumber:Li=!1,headNode:ui,headFunctionNode:Ce,showRedraw:xn,showEdit:wn,promptPropName:Kn="prompt",topPercentage:Ue,showSwitchingModel:qe=!1,showImageGenerator:le=!1,showLookHistory:re=!1,fetchListObject:qt,customPreference:Ze,customDataNode:An,showAddSession:Ln,historyId:Be,draggableExtraNode:un,drawerExtraNode:Qn,menuExtraFunctionNode:Nn,showSceneAwareness:ai=!1})=>{var zt,Fe;const[Dn,On]=(0,ht.useState)(!1),[Te,Ve]=(0,ht.useState)("qwen-max"),[Vn,li]=(0,ht.useState)([]),[oi,Rn]=(0,ht.useState)([]),[qn,si]=(0,ht.useState)(!1),[Xi,Ii]=(0,ht.useState)(!1),[ji,Qe]=(0,ht.useState)(!1),[ao,Oi]=(0,ht.useState)([]),[Ci,De]=(0,ht.useState)(""),[En,ci]=(0,ht.useState)(0),[Pi,_n]=(0,ht.useState)(void 0),[wi,_i]=(0,ht.useState)(!1),[Zi,oo]=(0,ht.useState)(null),[$i,$e]=(0,ht.useState)(""),Gi=(0,ht.useRef)(),_e=(0,ht.useRef)(null),xo=(0,ht.useRef)(null),[Co,to]=(0,ht.useState)(!1),[Bo,co]=(0,ht.useState)(!1),[Hi,wo]=(0,ht.useState)(!1),[Lo,fo]=(0,ht.useState)(!1),[ri,It]=(0,ht.useState)(0),qo=(0,ht.useRef)(null),_o=(0,ht.useRef)(!1),Sr=(0,ht.useRef)(null),[Fr,Xo]=(0,ht.useState)(void 0),[kr,Zt]=(0,ht.useState)(!0),[kn,Mn]=(0,ht.useState)(wt-28),[Un,gn]=(0,ht.useState)(!1),[Tn,Pn]=(0,ht.useState)(!0),[Ee,fn]=(0,ht.useState)([]),gi=(0,ht.useRef)([]),Wi=(0,ht.useRef)(null),ki=(0,ht.useRef)(null),vi=(0,ht.useRef)(!1),Ji=kn-22,Ki=Ci==null?void 0:Ci.split(`
|
|
`).length,{onAdd:Jo,onGetList:nr,onListClick:$r,onListDelete:be,onListDealData:Ir}=qt||{},Ea=50,js=10,cl={maxCount:Ea,showUploadList:!1,withCredentials:!0,openFileDialogOnClick:!1,fileList:Vn,multiple:!0,accept:".doc,.docx,.md,.txt,.pdf,.xlsx,.xls",beforeUpload:Sn=>Gt(void 0,null,function*(){var eo,Po,To,Yo;const No=(Yo=(To=(Po=(eo=Sn==null?void 0:Sn.name)==null?void 0:eo.split("."))==null?void 0:Po.slice(-1))==null?void 0:To[0])==null?void 0:Yo.toLowerCase(),vr=["doc","docx","md","pdf","txt","xlsx","xls"].includes(No);return Sn.size==0?(Ht.ZP.warning("\u6587\u4EF6\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A"),fe.default.LIST_IGNORE):vr?Sn.size/1024/1024>100?(Ht.ZP.warning("\u4E0A\u4F20\u7684\u6587\u4EF6\u5927\u5C0F\u9650\u5236100MB\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u65B0\u4E0A\u4F20"),fe.default.LIST_IGNORE):!0:(Ht.ZP.warning("\u76EE\u524D\u652F\u6301txt\u3001md\u3001doc\u3001docx\u3001pdf\u3001xlsx\u3001xls\u6587\u4EF6"),fe.default.LIST_IGNORE)}),onChange:({fileList:Sn})=>{li(Sn)},action:`${(zt=Wn.Z)==null?void 0:zt.API_SERVER}/api/intelligent_imports/upload_file.json`},pr={maxCount:js,showUploadList:!1,withCredentials:!0,openFileDialogOnClick:!1,fileList:oi,multiple:!0,accept:".jpg,.png,",beforeUpload:Sn=>{var eo,Po,To,Yo;const No=(Yo=(To=(Po=(eo=Sn==null?void 0:Sn.name)==null?void 0:eo.split("."))==null?void 0:Po.slice(-1))==null?void 0:To[0])==null?void 0:Yo.toLowerCase(),vr=["jpg","png"].includes(No);return Sn.size==0?(Ht.ZP.warning("\u6587\u4EF6\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A"),fe.default.LIST_IGNORE):vr?Sn.size/1024/1024>10?(Ht.ZP.warning("\u4E0A\u4F20\u7684\u56FE\u7247\u5927\u5C0F\u9650\u523610MB\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u65B0\u4E0A\u4F20"),fe.default.LIST_IGNORE):!0:(Ht.ZP.warning("\u76EE\u524D\u652F\u6301jpg\u3001png"),fe.default.LIST_IGNORE)},onChange:({fileList:Sn})=>{Rn(Sn)},action:`${(Fe=Wn.Z)==null?void 0:Fe.API_SERVER}/api/ai/generals/update_file.json`};(0,ht.useEffect)(()=>{if(!ao.length||!Gi.current)return;const Sn=ao[ao.length-1];Sn!=null&&Sn.loading&&(Gi.current.scrollTop=Gi.current.scrollHeight)},[ao.length]),(0,ht.useEffect)(()=>{if(!Gi.current||!qo.current)return;const Sn=new IntersectionObserver(([eo])=>{Zt(eo.isIntersecting)},{root:Gi.current,rootMargin:"70px",threshold:0});return Sn.observe(qo.current),()=>{qo.current&&Sn.unobserve(qo.current)}},[Gi.current,qo.current]),(0,ht.useEffect)(()=>{if(!Co)return;const Sn=Gi.current,eo=Sr.current;_o.current=!1;let Po=Sn.scrollTop;const To=()=>{const{scrollTop:No,scrollHeight:xr,clientHeight:vr}=Sn;No>Po?No+vr>=xr-50&&(Sn.scrollTop=Sn.scrollHeight,_o.current=!1):No<Po&&(_o.current=!0),Po=No};Sn.addEventListener("scroll",To);const Yo=new ResizeObserver(()=>{_o.current||(Sn.scrollTop=Sn.scrollHeight)});return Yo.observe(eo),()=>{var No;Yo.unobserve(eo),(No=Sn==null?void 0:Sn.removeEventListener)==null||No.call(Sn,"scroll",To)}},[Co]),(0,ht.useEffect)(()=>{!Co&&gi.current.length&&(Oi([...ao,...gi.current]),gi.current=[])},[Co]),(0,ht.useEffect)(()=>{if(!Gi.current)return;const Sn=new ResizeObserver(()=>{Mn(Gi.current.offsetWidth)});return Sn.observe(Gi.current),()=>{Gi.current&&Sn.unobserve(Gi.current)}},[Gi.current]),(0,ht.useEffect)(()=>{typeof pn=="boolean"&&On(pn)},[pn]),(0,ht.useEffect)(()=>{var Sn;if(_e.current&&Zi!==null){_e.current.focus();const eo=(Sn=_e.current.resizableTextArea)==null?void 0:Sn.textArea;eo&&(eo.selectionStart=eo.selectionEnd=eo.value.length)}},[Zi]),(0,ht.useEffect)(()=>{Ki<5&&_i(!1)},[Ki]),(0,ht.useEffect)(()=>{Dn&&xi&&(Oi(fa(xi)),si(!0),yi(xi,{history:[]})),Dn&&(ar(),Be?Ul(Be):Ln&&!Fr&&Xr()),Dn||jo()},[Dn]);const fa=(Sn="",eo=[],Po=[])=>{const To=Date.now();return[{text:Sn,key:To,sender:"user",fileList:eo,imageList:Po,show:!0},{loading:!0,key:To,sender:"AI",show:!0,model:Te,imageGenerator:Hi,thinkingEnabled:Bo}]},jo=()=>{$e(""),oo(null),li([]),Rn([]),De("")},uo=()=>{if(Ti){Ti({chatData:ao,setChatData:Oi,setLoading:si,getData:yi,renderChatItems:fa,handleAdd:Xr,identifier:Fr});return}On(!0)},Fo=()=>{if(Pn(!0),Ui){Ui();return}On(!1)},mr=()=>{_i(!wi)},ar=()=>Gt(void 0,null,function*(){if(!Li)return;const Sn=yield(0,we.ZP)("/api/intelligent_imports/check_number.json",{method:"get"});(Sn==null?void 0:Sn.status)===0&&(Sn==null?void 0:Sn.total_number)!==-1&&(ci((Sn==null?void 0:Sn.total_number)-(Sn==null?void 0:Sn.remaining_number)),_n(Sn==null?void 0:Sn.total_number))}),Qr=()=>{Re.default.info({title:"\u63D0\u793A",icon:null,okText:"\u6211\u77E5\u9053\u4E86",width:510,centered:!0,content:ht.createElement("div",null,ht.createElement("div",{style:{color:"#FA6400"}},"\u60A8\u5DF2\u8FBE\u5230\u667A\u80FD\u52A9\u6559\u7684\u4F7F\u7528\u6B21\u6570"),ht.createElement("div",{className:"c-grey-333 mt5"},"\u667A\u80FD\u52A9\u6559\u6BCF\u5929\u9650\u5236\u4F7F\u7528",Pi,"\u6B21\uFF0C\u8BF7\u660E\u5929\u518D\u8BD5\u3002"))})},$o=Sn=>Sn.reduce((Po,To)=>{if(To.sender==="user"){const Yo=Sn.find(No=>No.key===To.key&&No.sender==="AI");Yo&&(Yo!=null&&Yo.text)&&!(Yo!=null&&Yo.error)&&Po.push({question:To.text,answer:Yo.text})}return Po},[]),yi=(...Sn)=>Gt(void 0,[...Sn],function*(eo="",Po={},To=ao){if(ho&&(yield ho({mes:eo,setChatData:Oi,fileList:Vn,body:Po,checkNum:ar,setLoading:si,bodyChatData:To,setTyping:to,setImageGenerator:wo,renderChatItems:fa})),!ho){const Yo=Vn==null?void 0:Vn.map(Jr=>{var Xs;return(Xs=Jr==null?void 0:Jr.response)==null?void 0:Xs.file_id}),No=oi==null?void 0:oi.map(Jr=>{var Xs;return(Xs=Jr==null?void 0:Jr.response)==null?void 0:Xs.data}),xr=Po.history||$o(To),vr=St(St({identifier:Fr,response_mode:"streaming",model:Te,scene_awareness:Lo,thinking_enabled:Bo,image_generator:Hi,file_ids:Yo,image_list:No,history:xr,[Kn]:eo},Qi),Po),xs=Object.fromEntries(Object.entries(vr).filter(([Jr,Xs])=>Xs!==void 0));xo.current=new mi.Z(Wn.Z.API_SERVER+qi,xs),yield new Promise((Jr,Xs)=>{let Or=null,sd=null;xo.current.on("data",yh=>{to(!0);const{chunk:{content:Bl,type:fl,created:as,msg:Gs}}=yh,ts=Gs==="error";fl==="thinking"&&(Or=Or||as,Oi(qr=>[...qr].map((pl,hu)=>hu===qr.length-1?Bt(St({},pl),{reasoning:(pl.reasoning||"")+Bl,loading:!1,hideAnswer:!0,error:ts}):pl))),fl==="text"&&(sd=sd||as,Oi(qr=>[...qr].map((pl,hu)=>hu===qr.length-1?Bt(St({},pl),{text:(pl.text||"")+Bl,loading:!1,startTime:Or,endTime:sd,error:ts}):pl)))}),xo.current.on("done",()=>{Jr()}),xo.current.on("error",()=>{const yh="\u62B1\u6B49\uFF0C\u6211\u521A\u521A\u9047\u5230\u4E86\u4E00\u70B9\u95EE\u9898\uFF0C\u6CA1\u80FD\u5B8C\u6210\u60A8\u7684\u8BF7\u6C42\u3002\u8BF7\u60A8\u7A0D\u540E\u518D\u8BD5\u4E00\u6B21\uFF0C\u6216\u8005\u8054\u7CFB\u6280\u672F\u652F\u6301\u5E2E\u5FD9\u89E3\u51B3!";Oi(Bl=>[...Bl].map((fl,as)=>as===Bl.length-1?Bt(St({},fl),{text:yh,loading:!1,error:!0}):fl)),Jr()}),xo.current.on("cancelled",()=>{Jr()}),xo.current.startStream()})}ar(),si(!1)}),Ss=Sn=>{De(Sn.target.value)},Aa=(Sn,eo)=>{if(jo(),si(!0),Sn==="edit"){gi.current=ao.slice(eo+2);const Po=ao.splice(eo),{fileList:To,imageList:Yo}=(Po==null?void 0:Po[0])||{},No=To.map(xs=>{var Jr;return(Jr=xs.response)==null?void 0:Jr.file_id}),xr=Yo.map(xs=>{var Jr;return(Jr=xs.response)==null?void 0:Jr.data}),vr={history:$o(ao),file_ids:No,image_list:xr,edit:!0};Oi([...ao,...fa($i,To,Yo)]),yi($i,vr,ao)}if(Sn==="redraw"){gi.current=ao.slice(eo+1);const Po=ao.splice(eo-1),{text:To,fileList:Yo,imageList:No}=(Po==null?void 0:Po[0])||{},xr=Yo.map(Jr=>{var Xs;return(Xs=Jr.response)==null?void 0:Xs.file_id}),vr=No.map(Jr=>{var Xs;return(Xs=Jr.response)==null?void 0:Xs.data}),xs={history:$o(ao),file_ids:xr,image_list:vr,edit:!0};Oi([...ao,...fa(To,Yo,No)]),yi(To,xs,ao)}},Rs=()=>{if(Ci.trim()!==""){jo(),si(!0);const Sn=Vn.filter(Po=>Po.status==="done"),eo=oi.filter(Po=>Po.status==="done");Oi([...ao,...fa(Ci,Sn,eo)]),yi(Ci)}},Ll=Sn=>{if(Sn.shiftKey){if(Sn.key==="Enter")return}else if(Sn.key==="Enter"){if(Sn.preventDefault(),Fl||vi.current)return;Rs()}},_a=(Sn,eo)=>{let Po=!1;wn===!0?Po=!0:wn==="last"&&(Po=ao.reduce((xr,vr,xs)=>vr.sender==="user"?xs:xr,-1)===eo);const To=eo===Zi,Yo=[...(Sn==null?void 0:Sn.fileList)||[],...(Sn==null?void 0:Sn.imageList)||[]];return ht.createElement("div",{className:ge.li,style:{width:Ji}},ht.createElement("div",{className:ge.avatarIcon},ht.createElement("img",{className:ge.img,src:fi})),ht.createElement("div",{className:ge.content},!!(Yo!=null&&Yo.length)&&ht.createElement("div",{className:ge.fileWrap},Yo==null?void 0:Yo.map((No,xr)=>{var vr,xs;return ht.createElement("div",{key:xr,className:ge.file},ht.createElement("img",{src:Ft(90034)(`./${((xs=(vr=No==null?void 0:No.name)==null?void 0:vr.split("."))==null?void 0:xs.pop())||"txt"}.png`),width:20,className:"mr10"}),ht.createElement("aside",null,ht.createElement(Se.Z,{title:No==null?void 0:No.name},ht.createElement("div",{className:ge.fileName},No==null?void 0:No.name)),ht.createElement("div",{className:"c-grey-999 font12"},(0,Je.RD)(No==null?void 0:No.size))))})),ht.createElement("div",{className:ge.borderBox},To?ht.createElement(Me.default.TextArea,{value:$i,ref:_e,autoSize:!0,placeholder:"\u8BF7\u8F93\u5165",bordered:!1,onChange:No=>$e(No.target.value)}):ht.createElement("div",{className:ge.text},Sn==null?void 0:Sn.text)),To?ht.createElement("div",{className:ge.action},ht.createElement(Jt.ZP,{onClick:()=>{$e(""),oo(null)},size:"small"},"\u53D6\u6D88"),ht.createElement(Jt.ZP,{disabled:!$i.trim(),onClick:()=>Aa("edit",eo),type:"primary",size:"small"},"\u786E\u8BA4")):ht.createElement("div",{className:ge.action},ht.createElement(ii.CopyToClipboard,{text:(Sn==null?void 0:Sn.text)||"",onCopy:()=>Ht.ZP.success("\u590D\u5236\u6210\u529F")},ht.createElement(Se.Z,{title:"\u590D\u5236"},ht.createElement("i",{className:"iconfont icon-fuzhi8 font13"}))),Po&&!qn&&ht.createElement(Se.Z,{title:"\u7F16\u8F91"},ht.createElement("i",{onClick:()=>{oo(eo),$e((Sn==null?void 0:Sn.text)||"")},className:"iconfont icon-bianji10 font14"})))))},ni=(Sn,eo)=>{let Po=!1;xn===!0?Po=!0:xn==="last"&&(Po=ao.reduce((No,xr,vr)=>xr.sender==="AI"?vr:No,-1)===eo);let To="";return Sn!=null&&Sn.source?To=Sn==null?void 0:Sn.source:(Sn==null?void 0:Sn.model)==="deepseek-r1"?To="\u7531deepseek\u751F\u6210":(Sn==null?void 0:Sn.model)==="qwen-max"&&(To="\u7531\u901A\u4E49\u5343\u95EE\u751F\u6210"),ht.createElement("div",{className:ge.li,style:{width:Ji}},ht.createElement("div",{className:ge.avatarIcon},ht.createElement("img",{className:ge.img,src:di})),ht.createElement("div",{className:ge.content},ht.createElement("div",{className:ge.borderBox},Sn.loading&&ht.createElement(ht.Fragment,null,Sn!=null&&Sn.imageGenerator?ht.createElement("div",{className:ge.loadingPic},"\u6B63\u5728\u751F\u6210\u4E2D",ht.createElement("div",{className:"ai-loading"})):!(Sn!=null&&Sn.thinkingEnabled)&&ht.createElement("div",null,ht.createElement("div",{className:ge.loading},ht.createElement("div",{className:ge.dot}),ht.createElement("div",{className:ge.dot}),ht.createElement("div",{className:ge.dot})),ht.createElement("div",{style:{marginTop:10,color:"#9096A3"}},(so==null?void 0:so.text)||"\u8BF7\u8010\u5FC3\u7B49\u5F85\uFF0C\u76EE\u524D\u9AD8\u5CF0\u671F\u4F53\u9A8C\u4EBA\u6570\u8FC7\u591A\uFF0C\u6211\u4EEC\u5DF2\u8BB0\u5F55\u4E0B\u60A8\u7684\u9700\u6C42\uFF0C\u7A0D\u540E\u5C06\u81EA\u52A8\u4E3A\u60A8\u751F\u6210\u7B54\u6848\u3002"))),(Sn==null?void 0:Sn.thinkingEnabled)&&ht.createElement(yt,{time:Sn==null?void 0:Sn.time,cancelIndex:ri,loading:Sn.loading,streamingStatus:!(Sn!=null&&Sn.text),onFinish:()=>{It(0),Oi(Yo=>[...Yo].map((No,xr)=>xr===Yo.length-1?Bt(St({},No),{hideAnswer:!1,time:No.startTime?No.endTime-No.startTime:null}):No))},value:Sn==null?void 0:Sn.reasoning}),!!(Sn!=null&&Sn.text)&&!Sn.hideAnswer&&ht.createElement(et.Z,{cancelIndex:ri,streamingStatus:qn,loadImage:!!(Sn!=null&&Sn.imageGenerator),onFinish:()=>Gt(void 0,null,function*(){It(0),setTimeout(()=>to(!1),0)}),value:Sn==null?void 0:Sn.text})),!!(Sn!=null&&Sn.text)&&To&&ht.createElement("div",{className:ge.source},To),ht.createElement("div",{className:ge.action},Ao==null?void 0:Ao(Sn,eo,{onMenuClick:Ul}),ht.createElement(ii.CopyToClipboard,{text:String((Sn==null?void 0:Sn.text)||""),onCopy:()=>Ht.ZP.success({content:"\u590D\u5236\u6210\u529F",key:"copy"})},ht.createElement(Se.Z,{title:"\u590D\u5236"},ht.createElement("i",{className:"iconfot icon-fuzhi8 font13"}))),mo&&!qn&&ht.createElement(ht.Fragment,null,ht.createElement(Se.Z,{title:"\u559C\u6B22"},ht.createElement("i",{style:Sn!=null&&Sn.like?{color:"#FA8D30"}:{},onClick:()=>lr("like",!(Sn!=null&&Sn.like),eo),className:"iconfot icon-yijiejue font15"})),ht.createElement(Se.Z,{title:"\u4E0D\u559C\u6B22"},ht.createElement("i",{style:Sn!=null&&Sn.dislike?{color:"#e86d7c"}:{},onClick:()=>lr("dislike",!(Sn!=null&&Sn.dislike),eo),className:"iconfot icon-weijiejuezhengchang font15"}))),Po&&!qn&&ht.createElement(Se.Z,{title:"\u91CD\u65B0\u751F\u6210"},ht.createElement("i",{onClick:()=>Aa("redraw",eo),className:"iconfot icon-gengxin-genghuan-tihuan"})))))},lr=(Sn,eo,Po)=>Gt(void 0,null,function*(){if(Ze){const To=ao.slice(0,Po+1),No=$o(To).length;yield Ze({type:Sn,value:eo,index:Po,identifier:Fr,objectIndex:No})}Oi(To=>(To[Po][Sn]=eo,eo&&(To[Po][Sn==="like"?"dislike":"like"]=!1),[...To]))}),ir=()=>{var Sn,eo;It(1),(eo=(Sn=xo.current)==null?void 0:Sn.cancelRequest)==null||eo.call(Sn),si(!1),to(!1)},Xr=()=>Gt(void 0,null,function*(){var Sn,eo,Po;(eo=(Sn=xo.current)==null?void 0:Sn.cancelRequest)==null||eo.call(Sn),jo(),Oi([]),si(!0);const To=yield Jo();(To==null?void 0:To.status)===0&&Xo((Po=To==null?void 0:To.data)==null?void 0:Po.identifier),si(!1),to(!1)}),uu=()=>Gt(void 0,null,function*(){var Sn;Qe(!0);const eo=yield nr();(eo==null?void 0:eo.status)===0&&fn(((Sn=eo==null?void 0:eo.data)==null?void 0:Sn.list)||[]),Qe(!1)}),Ul=(...Sn)=>Gt(void 0,[...Sn],function*(eo=Fr){var Po,To,Yo,No;(To=(Po=xo.current)==null?void 0:Po.cancelRequest)==null||To.call(Po),jo(),Ii(!0);const xr=yield $r(eo);if(xr.status===0){const vr=Ir(((Yo=xr==null?void 0:xr.data)==null?void 0:Yo.messages)||[]);Oi(vr),Ii(!1),Xo((No=xr==null?void 0:xr.data)==null?void 0:No.identifier);return}Oi([]),Ii(!1)}),po=(Sn,eo)=>Gt(void 0,null,function*(){(yield be(Sn)).status===0&&(Ht.ZP.success("\u5220\u9664\u6210\u529F"),eo===Fr&&Xr(),uu())}),vh=()=>ht.createElement("div",{className:ge.menuWarp},ht.createElement("h4",null,"\u5386\u53F2\u5BF9\u8BDD"),ht.createElement(Le.Z,{spinning:ji},!Ee.length&&ht.createElement(ce.Z,{style:{width:250,paddingBottom:30},image:ce.Z.PRESENTED_IMAGE_SIMPLE}),!!Ee.length&&ht.createElement("div",{className:ge.menu},Ee.map(function(Sn,eo){return ht.createElement("aside",{className:kt()(Fr===Sn.identifier&&ge.active),key:Sn.id,onClick:()=>Ul(Sn.id)},ht.createElement("div",{className:ge.menuText},ht.createElement(Se.Z,{title:Sn==null?void 0:Sn.question},ht.createElement("span",null,Sn==null?void 0:Sn.question)),Nn&&Nn(Sn)),ht.createElement("div",{className:ge.menuDel,onClick:Po=>Po.stopPropagation()},ht.createElement(ve.Z,{title:"\u63D0\u793A",description:"\u4F60\u786E\u5B9A\u8981\u5220\u9664\u672C\u6761\u5BF9\u8BDD\u5417\uFF1F",onConfirm:()=>po(Sn.id,Sn.identifier),okText:"\u786E\u8BA4",zIndex:1100,cancelText:"\u53D6\u6D88"},ht.createElement("i",{className:"iconfont icon-shanchu14 delete-hover font14"}))))})))),gl=Sn=>{if(Sn==="file"){if(oi.length){Re.default.confirm({centered:!0,icon:null,okText:"\u786E\u8BA4\u8986\u76D6",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u5DF2\u5B58\u5728\u56FE\u7247\uFF0C\u4E0A\u4F20\u6587\u4EF6\u540E\u56FE\u7247\u5C06\u4F1A\u88AB\u8986\u76D6?",onOk:()=>{Rn([]),Wi.current.upload.uploader.fileInput.click()}});return}Wi.current.upload.uploader.fileInput.click()}if(Sn==="image"){if(Vn.length){Re.default.confirm({centered:!0,icon:null,okText:"\u786E\u8BA4\u8986\u76D6",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u5DF2\u5B58\u5728\u6587\u4EF6\uFF0C\u4E0A\u4F20\u56FE\u7247\u540E\u6587\u4EF6\u5C06\u4F1A\u88AB\u8986\u76D6?",onOk:()=>{li([]),ki.current.upload.uploader.fileInput.click()}});return}ki.current.upload.uploader.fileInput.click()}},ia=[{key:"file",disabled:Vn.length>=Ea,label:ht.createElement(Se.Z,{placement:"right",title:ht.createElement("div",null,ht.createElement("b",null,"\u4E0A\u4F20\u9644\u4EF6\uFF08\u4EC5\u8BC6\u522B\u6587\u5B57\uFF09"),ht.createElement("div",null,"\u6700\u591A 50 \u4E2A\uFF0C\u6BCF\u4E2A 100 MB\uFF0C\u652F\u6301\u5404\u7C7B\u578B\u6587\u6863"))},ht.createElement("span",null,ht.createElement("i",{className:"iconfont icon-fujian3 font14 mr5"}),"\u4E0A\u4F20\u6587\u6863"))},Te!=="deepseek-r1"&&{key:"image",disabled:oi.length>=js,label:ht.createElement(Se.Z,{placement:"right",title:"\u652F\u6301\u4E0D\u8D85\u8FC710M\u7684PNG/JPG\u56FE\u7247\uFF0C\u6700\u591A10\u4E2A"},ht.createElement("span",null,ht.createElement("i",{className:"iconfont icon-tupianshangchuan font14 mr5"}),"\u4E0A\u4F20\u56FE\u7247"))}].filter(Boolean),zs=[...Vn,...oi],Fl=zs.some(Sn=>Sn.status==="uploading")||qn||Co,kl=En>=Pi,Qs=hn||Vn.length>=Ea||oi.length>=js,za=Hi||Bo||Lo||!!zs.length;return ht.createElement("div",null,Bi?ht.createElement("div",{onClick:uo},Bi):ht.createElement(zn,{draggableExtraNode:un,src:pi,onClick:uo,topPercentage:Ue}),ht.createElement(he.Z,{open:Dn,width:Un?"100%":wt,afterOpenChange:Sn=>{Sn&&Pn(!1)},push:!1,contentWrapperStyle:Tn?{}:{transition:"none"},extra:ht.createElement("div",{className:ge.head},Qn,qe&&ht.createElement(dn,{value:Te,onChange:Sn=>{co(!1),wo(!1),Ve(Sn),Rn([]),li([])}}),re&&ht.createElement(ht.Fragment,null,ht.createElement(Oe.Z,{dropdownRender:vh,onOpenChange:Sn=>{Sn&&uu()},placement:"bottomLeft",arrow:!0},ht.createElement("div",{className:ge.headBtn},ht.createElement("i",{className:"icon-lishiduihua1 font14 mr10"}),"\u5386\u53F2\u5BF9\u8BDD"))),Ln&&ht.createElement(ht.Fragment,null,ht.createElement("div",{className:ge.headBtn,onClick:Xr},ht.createElement("i",{className:"icon-xinjianduihua font14 mr10"}),"\u65B0\u5EFA\u5BF9\u8BDD")),ht.createElement(Se.Z,{title:Un?"\u9000\u51FA\u5168\u5C4F":"\u5168\u5C4F"},ht.createElement("div",{className:ge.headBtn,style:{padding:"0 12px"},onClick:()=>gn(!Un)},Un&&ht.createElement("i",{className:"iconfont icon-tuichuquanping3"}),!Un&&ht.createElement("i",{className:"iconfont icon-quanping4"})))),title:ht.createElement("span",{className:"c-grey-333 font16"},Ke),onClose:Fo,bodyStyle:{paddingRight:4}},ht.createElement("div",{className:kt()(ge.wrap,Dn&&"body-overflow-hidden")},ht.createElement("div",{ref:Gi,className:ge.chatContainer},Mo&&ht.createElement("div",{className:`${ge.li} mb20`,style:{width:Ji}},ht.createElement("div",{className:ge.avatarIcon},ht.createElement("img",{className:ge.img,src:di})),ht.createElement("div",{className:ge.content},ht.createElement("div",{className:ge.borderBox},ui,Ce==null?void 0:Ce({isDisabledNum:kl,checkNumModal:Qr,checkNum:ar,onClose:Fo,setChatData:Oi,setLoading:si,getData:yi,clearStatus:jo,typing:Co,setImageGenerator:wo,renderChatItems:fa,setSceneAwareness:fo,setIdentifier:Xo})))),ht.createElement("div",{ref:Sr},ht.createElement(Le.Z,{spinning:Xi,className:"mt20"},ao==null?void 0:ao.map((Sn,eo)=>ht.createElement(ht.Fragment,{key:Sn.key+eo},Sn.show&&ht.createElement(ht.Fragment,null,Sn.sender==="user"&&_a(Sn,eo),Sn.sender==="AI"&&ni(Sn,eo),An&&!["AI","user"].includes(Sn.sender)&&An(Sn,eo,{width:Ji})))))),!kr&&ht.createElement("div",{className:ge.backBottom,onClick:()=>{Gi.current.scrollTop=Gi.current.scrollHeight}},ht.createElement("i",{className:"iconfont icon-huidaodibu"})),ht.createElement("div",{ref:qo})),!Jn&&ht.createElement("div",{className:kt()(ge.footerContainer,wi&&ge.full,za&&ge.footerContainerSelected)},ht.createElement("div",{className:ge.btnWrp},ai&&ht.createElement(Se.Z,{title:"\u667A\u80FD\u611F\u77E5\u5F53\u524D\u60C5\u5883\uFF0C\u63D0\u4F9B\u9488\u5BF9\u6027\u89E3\u7B54"},ht.createElement("div",{onClick:()=>fo(!Lo),className:kt()(ge.btn,Lo&&ge.btnActive)},ht.createElement("i",{className:"iconfont icon-changjingganzhi mr10 font12"}),"\u573A\u666F\u611F\u77E5")),Te==="deepseek-r1"&&ht.createElement(Se.Z,{title:"\u8C03\u7528\u65B0\u6A21\u578B DeepSeek-R1\uFF0C\u89E3\u51B3\u63A8\u7406\u95EE\u9898"},ht.createElement("div",{onClick:()=>co(!Bo),className:kt()(ge.btn,Bo&&ge.btnActive)},ht.createElement("i",{className:"iconfont icon-shendusikao mr10 font12"}),"\u6DF1\u5EA6\u601D\u8003\uFF08R1\uFF09")),le&&Te==="qwen-max"&&ht.createElement("div",{onClick:()=>wo(!Hi),className:kt()(ge.btn,Hi&&ge.btnActive)},ht.createElement("i",{className:"iconfont icon-shangchuantupian2 mr10 font12"}),"\u56FE\u50CF\u751F\u6210"),zs.map(Sn=>ht.createElement("div",{key:Sn.uid},(Sn==null?void 0:Sn.status)==="uploading"&&ht.createElement(Le.Z,{indicator:ht.createElement(yn.Z,{spin:!0}),className:"mr10",size:"small",spinning:!0}),ht.createElement("span",{title:Sn==null?void 0:Sn.name,className:"mr10"},(0,Je.Pq)(Sn.name,20)),ht.createElement("i",{onClick:()=>{li(eo=>eo.filter(Po=>Po.uid!==Sn.uid)),Rn(eo=>eo.filter(Po=>Po.uid!==Sn.uid))},className:"iconfont current icon-shanchu15 delete-hover c-red-ee4 font12"})))),ht.createElement(Se.Z,{title:kl&&ht.createElement("div",null,ht.createElement("div",null,"\u60A8\u5DF2\u8FBE\u5230\u667A\u80FD\u52A9\u6559\u7684\u4F7F\u7528\u6B21\u6570"),ht.createElement("div",null,"\u667A\u80FD\u52A9\u6559\u6BCF\u5929\u9650\u5236\u4F7F",Pi,"\u6B21\uFF0C\u8BF7\u660E\u5929\u518D\u8BD5\u3002"))},ht.createElement("div",{className:kt()(ge.inputContainer,Ki>4&&ge.lineFour,kl&&ge.disabledInput)},ht.createElement(fe.default,St({ref:Wi},cl)),ht.createElement(fe.default,St({ref:ki},pr)),ht.createElement(Oe.Z,{className:`${Qs&&"hide"}`,menu:{items:ia,onClick:Sn=>gl(Sn.key)},placement:"top"},ht.createElement(Jt.ZP,{className:ge.uploadBtn,icon:ht.createElement(Ge.Z,{style:{fontSize:18,color:"#FFF"}})})),ht.createElement(Me.default.TextArea,{rows:Ki>4?4:Ki,placeholder:ln||"\u5728\u8FD9\u91CC\u8F93\u5165\u4F60\u95EE\u9898\u5427,Shift+Enter\u6362\u884C\uFF5E",value:Ci,bordered:!1,style:Qs?{paddingLeft:0,marginLeft:0}:{},onChange:Ss,onPressEnter:Ll,onCompositionStart:()=>{vi.current=!0},onCompositionEnd:()=>{vi.current=!1}}),Co?ht.createElement(Se.Z,{title:"\u505C\u6B62\u751F\u6210"},ht.createElement("div",{className:`iconfont icon-tingzhihuida ${ge.cancelBtn}`,onClick:ir})):ht.createElement(Jt.ZP,{className:(Ci==null?void 0:Ci.trim())===""?ge.sendBtnDisabled:ge.sendBtn,icon:ht.createElement("i",{className:"iconfont icon-fasong2 c-white"}),disabled:Fl,onClick:Rs}),Ki>4&&ht.createElement("span",{className:ge.fullIcon,onClick:mr},wi&&ht.createElement("span",{className:"iconfont icon-shousuo"}),!wi&&ht.createElement("span",{className:"iconfont icon-zhankai"}))))))))}},2554:function(Ye,jn,Ft){"use strict";Ft.d(jn,{o:function(){return ht}});const ht=Ht=>(Ht=Ht.replace(new RegExp("(?<!\\*)\\*\\*\\*\\*([^*\\s\\n]+)\\*\\*\\*\\*(?!\\*)","g"),'<h2 data-select="disabled" data-type="title" contenteditable="false" class="c-black">$1</h2>'),Ht=Ht.replace(new RegExp("(?<!\\*)\\*\\*\\*([^*\\s\\n]+)\\*\\*\\*(?!\\*)","g"),`
|
|
|
|
<h3 data-select="disabled" contenteditable="false" class="c-black font18">$1</h3>
|
|
|
|
`),Ht)},57647:function(Ye,jn,Ft){"use strict";Ft.d(jn,{Z:function(){return lt}});var ht=Ft(59301),Ht=Ft(17574),fe={folderWrapper:"folderWrapper___G__0a",folderIcon:"folderIcon___oTG6c"},Re=Ft(73631),Se=Ft(5623),Me=Ft(16149),Jt=Object.defineProperty,Le=Object.defineProperties,ce=Object.getOwnPropertyDescriptors,ve=Object.getOwnPropertySymbols,he=Object.prototype.hasOwnProperty,Oe=Object.prototype.propertyIsEnumerable,je=(pt,yt,At)=>yt in pt?Jt(pt,yt,{enumerable:!0,configurable:!0,writable:!0,value:At}):pt[yt]=At,kt=(pt,yt)=>{for(var At in yt||(yt={}))he.call(yt,At)&&je(pt,At,yt[At]);if(ve)for(var At of ve(yt))Oe.call(yt,At)&&je(pt,At,yt[At]);return pt},et=(pt,yt)=>Le(pt,ce(yt)),nt=(pt,yt,At)=>new Promise((Dt,Ut)=>{var Qt=_t=>{try{ne(At.next(_t))}catch(Pe){Ut(Pe)}},$t=_t=>{try{ne(At.throw(_t))}catch(Pe){Ut(Pe)}},ne=_t=>_t.done?Dt(_t.value):Promise.resolve(_t.value).then(Qt,$t);ne((At=At.apply(pt,yt)).next())}),lt=({value:pt,onChange:yt,scrollId:At})=>{const[Dt,Ut]=(0,ht.useState)([]);(0,ht.useEffect)(()=>{Qt()},[]);const Qt=()=>nt(void 0,null,function*(){const pe=yield(0,Me.NZ)({});if(pe!=null&&pe.data){const oe=[{title:"\u6839\u76EE\u5F55",value:0,key:0,icon:ht.createElement("img",{src:Re,className:fe.folderIcon}),isLeaf:!1,children:$t(pe.data||[])}];Ut(oe)}}),$t=pe=>pe.map(oe=>({title:oe.name,key:oe.group_id,icon:ht.createElement("img",{src:Re,className:fe.folderIcon}),isLeaf:oe.children.length===0,children:$t(oe.children)})),ne=(pe,oe,Ae)=>pe.map(Ie=>Ie.key===oe?kt(kt({},Ie),Ae):Ie.children?et(kt({},Ie),{children:ne(Ie.children,oe,Ae)}):Ie),_t=(pe,oe,Ae)=>pe.map(Ie=>{if(Ie.key===oe)return et(kt({},Ie),{icon:Ae?ht.createElement("img",{src:Se,className:fe.folderIcon}):ht.createElement("img",{src:Re,className:fe.folderIcon})});if(Ie.children)return et(kt({},Ie),{children:_t(Ie.children,oe,Ae)})}),Pe=(pe,oe)=>{Ut(Ae=>_t(Ae,oe.node.key,oe.expanded))},ue=pt?{selectedKeys:pt,defaultExpandedKeys:pt}:{};return Dt.length>0&&ht.createElement("div",{id:At||""},ht.createElement(Ht.default,kt({showLine:{showLeafIcon:!1},showIcon:!0,treeData:Dt,className:fe.folderWrapper,onSelect:yt,onExpand:Pe},ue)))}},32570:function(Ye,jn,Ft){"use strict";Ft.d(jn,{Z:function(){return Me}});var ht=Ft(60324),Ht={text:"text___FxbAX",wrap:"wrap___UlBQ1",contact:"contact____pUDq",img:"img___BapAv"},fe=Ft(32637),Re=Ft(59301),Me=({type:Jt,style:Le})=>{const ce=Re.createElement("div",{className:Ht.wrap,onClick:ve=>{ve.preventDefault(),ve.stopPropagation()}},Re.createElement("p",null,Jt==="shixun"||Jt==="paths"?"\u5F53\u524D\u5B9E\u8DF5\u9879\u76EE\u662F\u9AD8\u6D88\u8017\u7C7B\u578B\u7684\u5B9E\u9A8C\u3002":"\u5F53\u524D\u8BD5\u5377\u5305\u542B\u9AD8\u6D88\u8017\u7C7B\u578B\u7684\u5B9E\u9A8C\u3002",Re.createElement("br",null),"\u6839\u636E\u5E73\u53F0\u4F7F\u7528\u89C4\u5219\uFF0C\u9700\u8981\u6388\u6743\u624D\u80FD\u4F7F\u7528\u3002",Jt==="paths"?"\u53D1\u9001\u5230\u8BFE\u5802":"\u53D1\u5E03","\u4F7F\u7528\u4E4B\u524D\uFF0C\u8BF7\u5148\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u83B7\u53D6\u6388\u6743\u7801\u3002"),Re.createElement("div",{className:Ht.contact},Re.createElement("div",{className:Ht.img},Re.createElement("img",{src:fe,width:"124px",height:"124px"})),Re.createElement("div",{className:"tc font14 mt10",style:{color:"#777A93"}},"\u626B\u4E00\u626B\uFF0C\u83B7\u53D6\u6388\u6743\u7801")));return Re.createElement(ht.Z,{content:ce},Re.createElement("span",{className:Ht.text,style:Le},"\u9AD8\u6D88\u8017"))}},16406:function(Ye,jn,Ft){"use strict";Ft.d(jn,{Z:function(){return en}});var ht=Ft(59301),Ht={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},fe=Ft(92310),Re=Ft.n(fe),Se=Ft(71418);var Me=function(Nt,Ct){return(Me=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(St,Bt){St.__proto__=Bt}||function(St,Bt){for(var Gt in Bt)Object.prototype.hasOwnProperty.call(Bt,Gt)&&(St[Gt]=Bt[Gt])})(Nt,Ct)};function Jt(Nt,Ct){function St(){this.constructor=Nt}Me(Nt,Ct),Nt.prototype=Ct===null?Object.create(Ct):(St.prototype=Ct.prototype,new St)}function Le(Nt,Ct,St,Bt){return new(St||(St=Promise))(function(Gt,Lt){function ie(hn){try{ln(Bt.next(hn))}catch(Jn){Lt(Jn)}}function Ke(hn){try{ln(Bt.throw(hn))}catch(Jn){Lt(Jn)}}function ln(hn){var Jn;hn.done?Gt(hn.value):(Jn=hn.value,Jn instanceof St?Jn:new St(function(di){di(Jn)})).then(ie,Ke)}ln((Bt=Bt.apply(Nt,Ct||[])).next())})}function ce(Nt,Ct){var St,Bt,Gt,Lt,ie={label:0,sent:function(){if(1&Gt[0])throw Gt[1];return Gt[1]},trys:[],ops:[]};return Lt={next:Ke(0),throw:Ke(1),return:Ke(2)},typeof Symbol=="function"&&(Lt[Symbol.iterator]=function(){return this}),Lt;function Ke(ln){return function(hn){return function(Jn){if(St)throw new TypeError("Generator is already executing.");for(;ie;)try{if(St=1,Bt&&(Gt=2&Jn[0]?Bt.return:Jn[0]?Bt.throw||((Gt=Bt.return)&&Gt.call(Bt),0):Bt.next)&&!(Gt=Gt.call(Bt,Jn[1])).done)return Gt;switch(Bt=0,Gt&&(Jn=[2&Jn[0],Gt.value]),Jn[0]){case 0:case 1:Gt=Jn;break;case 4:return ie.label++,{value:Jn[1],done:!1};case 5:ie.label++,Bt=Jn[1],Jn=[0];continue;case 7:Jn=ie.ops.pop(),ie.trys.pop();continue;default:if(Gt=ie.trys,!((Gt=Gt.length>0&&Gt[Gt.length-1])||Jn[0]!==6&&Jn[0]!==2)){ie=0;continue}if(Jn[0]===3&&(!Gt||Jn[1]>Gt[0]&&Jn[1]<Gt[3])){ie.label=Jn[1];break}if(Jn[0]===6&&ie.label<Gt[1]){ie.label=Gt[1],Gt=Jn;break}if(Gt&&ie.label<Gt[2]){ie.label=Gt[2],ie.ops.push(Jn);break}Gt[2]&&ie.ops.pop(),ie.trys.pop();continue}Jn=Ct.call(Nt,ie)}catch(di){Jn=[6,di],Bt=0}finally{St=Gt=0}if(5&Jn[0])throw Jn[1];return{value:Jn[0]?Jn[1]:void 0,done:!0}}([ln,hn])}}}function ve(){for(var Nt=0,Ct=0,St=arguments.length;Ct<St;Ct++)Nt+=arguments[Ct].length;var Bt=Array(Nt),Gt=0;for(Ct=0;Ct<St;Ct++)for(var Lt=arguments[Ct],ie=0,Ke=Lt.length;ie<Ke;ie++,Gt++)Bt[Gt]=Lt[ie];return Bt}var he=function(){function Nt(){}return Nt.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},Nt.setAttributes=function(Ct,St){for(var Bt=0,Gt=St;Bt<Gt.length;Bt++){var Lt=Gt[Bt],ie=Lt[0],Ke=Lt[1];Ct.setAttribute(ie,Ke)}},Nt.createRect=function(Ct,St,Bt){var Gt=document.createElementNS("http://www.w3.org/2000/svg","rect");return Gt.setAttribute("width",Ct.toString()),Gt.setAttribute("height",St.toString()),Bt&&Nt.setAttributes(Gt,Bt),Gt},Nt.createLine=function(Ct,St,Bt,Gt,Lt){var ie=document.createElementNS("http://www.w3.org/2000/svg","line");return ie.setAttribute("x1",Ct.toString()),ie.setAttribute("y1",St.toString()),ie.setAttribute("x2",Bt.toString()),ie.setAttribute("y2",Gt.toString()),Lt&&Nt.setAttributes(ie,Lt),ie},Nt.createPolygon=function(Ct,St){var Bt=document.createElementNS("http://www.w3.org/2000/svg","polygon");return Bt.setAttribute("points",Ct),St&&Nt.setAttributes(Bt,St),Bt},Nt.createCircle=function(Ct,St){var Bt=document.createElementNS("http://www.w3.org/2000/svg","circle");return Bt.setAttribute("cx",(Ct/2).toString()),Bt.setAttribute("cy",(Ct/2).toString()),Bt.setAttribute("r",Ct.toString()),St&&Nt.setAttributes(Bt,St),Bt},Nt.createEllipse=function(Ct,St,Bt){var Gt=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return Gt.setAttribute("cx",(Ct/2).toString()),Gt.setAttribute("cy",(St/2).toString()),Gt.setAttribute("rx",(Ct/2).toString()),Gt.setAttribute("ry",(St/2).toString()),Bt&&Nt.setAttributes(Gt,Bt),Gt},Nt.createGroup=function(Ct){var St=document.createElementNS("http://www.w3.org/2000/svg","g");return Ct&&Nt.setAttributes(St,Ct),St},Nt.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},Nt.createMarker=function(Ct,St,Bt,Gt,Lt,ie,Ke){var ln=document.createElementNS("http://www.w3.org/2000/svg","marker");return Nt.setAttributes(ln,[["id",Ct],["orient",St],["markerWidth",Bt.toString()],["markerHeight",Gt.toString()],["refX",Lt.toString()],["refY",ie.toString()]]),ln.appendChild(Ke),ln},Nt.createText=function(Ct){var St=document.createElementNS("http://www.w3.org/2000/svg","text");return St.setAttribute("x","0"),St.setAttribute("y","0"),Ct&&Nt.setAttributes(St,Ct),St},Nt.createTSpan=function(Ct,St){var Bt=document.createElementNS("http://www.w3.org/2000/svg","tspan");return Bt.textContent=Ct,St&&Nt.setAttributes(Bt,St),Bt},Nt.createImage=function(Ct){var St=document.createElementNS("http://www.w3.org/2000/svg","image");return Ct&&Nt.setAttributes(St,Ct),St},Nt.createPoint=function(Ct,St){var Bt=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return Bt.x=Ct,Bt.y=St,Bt},Nt.createPath=function(Ct,St){var Bt=document.createElementNS("http://www.w3.org/2000/svg","path");return Bt.setAttribute("d",Ct),St&&Nt.setAttributes(Bt,St),Bt},Nt}(),Oe=function(){function Nt(){}return Nt.addKey=function(Ct){Nt.key=Ct},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}(),je=function(){function Nt(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return Nt.prototype.rasterize=function(Ct,St,Bt){var Gt=this;return new Promise(function(Lt){var ie=Bt!==void 0?Bt:document.createElement("canvas");Ct===null&&(Gt.markersOnly=!0,Gt.naturalSize=!1);var Ke=document.createElementNS("http://www.w3.org/2000/svg","svg");Ke.setAttribute("xmlns","http://www.w3.org/2000/svg"),Ke.setAttribute("width",St.width.baseVal.valueAsString),Ke.setAttribute("height",St.height.baseVal.valueAsString),Ke.setAttribute("viewBox","0 0 "+St.viewBox.baseVal.width.toString()+" "+St.viewBox.baseVal.height.toString()),Ke.innerHTML=St.innerHTML,Gt.naturalSize===!0?(Ke.width.baseVal.value=Ct.naturalWidth,Ke.height.baseVal.value=Ct.naturalHeight):Gt.width!==void 0&&Gt.height!==void 0&&(Ke.width.baseVal.value=Gt.width,Ke.height.baseVal.value=Gt.height),ie.width=Ke.width.baseVal.value,ie.height=Ke.height.baseVal.value;var ln=Ke.outerHTML,hn=ie.getContext("2d");Gt.markersOnly!==!0&&hn.drawImage(Ct,0,0,ie.width,ie.height);var Jn=window.URL,di=new Image(ie.width,ie.height);di.setAttribute("crossOrigin","anonymous");var fi=new Blob([ln],{type:"image/svg+xml"}),pi=Jn.createObjectURL(fi);di.onload=function(){hn.drawImage(di,0,0),Jn.revokeObjectURL(pi);var Bi=ie.toDataURL(Gt.imageType,Gt.imageQuality);Lt(Bi)},di.src=pi})},Nt}(),kt=function(){},et=function(){function Nt(Ct){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+Ct+"_"}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(Ct){return this.styleSheet===void 0&&this.addStyleSheet(),Ct.name=""+this.classNamePrefix+Ct.localName,this.classes.push(Ct),this.styleSheet.sheet.insertRule("."+Ct.name+" {"+Ct.style+"}",this.styleSheet.sheet.cssRules.length),Ct},Nt.prototype.addRule=function(Ct){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(Ct),this.styleSheet.sheet.insertRule(Ct.selector+" {"+Ct.style+"}",this.styleSheet.sheet.cssRules.length)},Nt.prototype.addStyleSheet=function(){var Ct;this.styleSheet=document.createElement("style"),((Ct=this.styleSheetRoot)!==null&&Ct!==void 0?Ct:document.head).appendChild(this.styleSheet),this.addRule(new nt("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new nt("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
|
|
from {
|
|
opacity: 0;
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
}
|
|
`)),this.addRule(new nt("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
|
|
from {
|
|
opacity: 1;
|
|
}
|
|
to {
|
|
opacity: 0;
|
|
}
|
|
`)),this.addClass(new dt("fade_in",`
|
|
animation-duration: 0.3s;
|
|
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
|
|
`)),this.addClass(new dt("fade_out",`
|
|
animation-duration: 0.3s;
|
|
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
|
|
`))},Nt.prototype.removeStyleSheet=function(){var Ct;this.styleSheet&&(((Ct=this.styleSheetRoot)!==null&&Ct!==void 0?Ct:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},Nt}(),nt=function(Nt,Ct){this.selector=Nt,this.style=Ct},dt=function(Nt,Ct){this.localName=Nt,this.style=Ct},lt=function(){function Nt(Ct,St,Bt,Gt,Lt){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=Ct,this.displayMode=St,this.markerItems=Bt,this.uiStyleSettings=Gt,this.styles=Lt,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(Ct){var St=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=Ct,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var Bt=document.createElement("div");Bt.className=this.toolbarBlockStyleClass.name,Bt.style.whiteSpace="nowrap",this.uiContainer.appendChild(Bt),this.addActionButton(Bt,'<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(Bt,'<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(Bt,'<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(Bt,'<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(Bt,'<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(Bt,'<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(Bt,'<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(Bt,'<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(Lt){var ie=document.createElement("div");ie.className=""+St.toolbarButtonStyleClass.name,ie.setAttribute("data-type-name",Lt.typeName),ie.innerHTML=Lt.icon,ie.addEventListener("click",function(){St.markerToolbarButtonClicked(ie,Lt)}),St.buttons.push(ie),St.markerButtons.push(ie)}),this.overflowButton=document.createElement("div"),this.overflowButton.className=this.toolbarButtonStyleClass.name+" "+(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name),this.overflowButton.innerHTML='<svg viewBox="0 0 24 24"><path d="M12 16a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2z"/></svg>',this.overflowButton.addEventListener("click",this.overflowButtonClicked),this.markerButtonBlock.appendChild(this.overflowButton));var Gt=document.createElement("div");Gt.className=this.toolbarBlockStyleClass.name,Gt.style.whiteSpace="nowrap",Gt.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(Gt),this.addActionButton(Gt,'<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(Gt,'<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(Ct){this.buttonClickListeners.push(Ct)},Nt.prototype.removeButtonClickListener=function(Ct){this.buttonClickListeners.indexOf(Ct)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(Ct),1)},Nt.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},Nt.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var Ct=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var St=0;St<this.markerButtons.length;St++)St<Ct||St===Ct&&this.markerButtons.length-1===Ct?this.markerButtonBlock.appendChild(this.markerButtons[St]):(St===Ct&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[St]))}},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 Ct=this;this.buttons.forEach(function(St){St.className=St.className.replace(Ct.uiStyleSettings.toolbarButtonStyleColorsClassName?Ct.uiStyleSettings.toolbarButtonStyleColorsClassName:Ct.toolbarButtonStyleColorsClass.name,"").trim(),St.className=St.className.replace(Ct.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?Ct.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:Ct.toolbarActiveButtonStyleColorsClass.name,"").trim(),St.className+=" "+(Ct.uiStyleSettings.toolbarButtonStyleColorsClassName?Ct.uiStyleSettings.toolbarButtonStyleColorsClassName:Ct.toolbarButtonStyleColorsClass.name)})},Nt.prototype.addActionButton=function(Ct,St,Bt){var Gt=this,Lt=document.createElement("div");switch(Lt.className=""+this.toolbarButtonStyleClass.name,Lt.innerHTML=St,Lt.setAttribute("data-action",Bt),Lt.addEventListener("click",function(){Gt.actionToolbarButtonClicked(Lt,Bt)}),Bt){case"select":Lt.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":Lt.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":Lt.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":Lt.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":Lt.style.fill=this.uiStyleSettings.closeButtonColor}Ct.appendChild(Lt),this.buttons.push(Lt)},Nt.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new dt("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 dt("toolbar_colors",`
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
|
|
`)),this.toolbarBlockStyleClass=this.styles.addClass(new dt("toolbar-block",`
|
|
display: inline-block;
|
|
box-sizing: content-box;
|
|
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new dt("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 dt("toolbar-overflow-block_colors",`
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
`));var Ct=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new dt("toolbar_button",`
|
|
display: inline-block;
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*Ct)+`px;
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*Ct)+`px;
|
|
padding: `+Ct+`px;
|
|
box-sizing: content-box;
|
|
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new dt("toolbar_button_colors",`
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new dt("toolbar_active_button",`
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
`)),this.styles.addRule(new nt("."+this.toolbarButtonStyleClass.name+" svg",`
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
`)),this.styles.addRule(new nt("."+this.toolbarButtonStyleColorsClass.name+":hover",`
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
`))},Nt.prototype.markerToolbarButtonClicked=function(Ct,St){this.setActiveButton(Ct),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(Bt){return Bt("marker",St)}),this.markerButtonOverflowBlock.style.display="none"},Nt.prototype.actionToolbarButtonClicked=function(Ct,St){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(Bt){return Bt("action",St)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},Nt.prototype.setActiveButton=function(Ct){this.resetButtonStyles(),Ct.className=Ct.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),Ct.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},Nt.prototype.setActiveMarkerButton=function(Ct){var St=this.markerButtons.find(function(Bt){return Bt.getAttribute("data-type-name")===Ct});St&&this.setActiveButton(St)},Nt.prototype.setCurrentMarker=function(Ct){var St=this;this.currentMarker=Ct,this.buttons.filter(function(Bt){return/delete|notes/.test(Bt.getAttribute("data-action"))}).forEach(function(Bt){St.currentMarker===void 0?(Bt.style.fillOpacity="0.4",Bt.style.pointerEvents="none"):(Bt.style.fillOpacity="1",Bt.style.pointerEvents="all")})},Nt}(),pt=function(){function Nt(Ct,St,Bt,Gt){this.panels=[],this.panelButtons=[],this.markerjsContainer=Ct,this.displayMode=St,this.uiStyleSettings=Bt,this.styles=Gt,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return Nt.prototype.addStyles=function(){var Ct;this.toolboxStyleClass=this.styles.addClass(new dt("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 dt("toolbox_colors",`
|
|
color: `+this.uiStyleSettings.toolboxColor+`;
|
|
`));var St=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new dt("toolbox-button-row",`
|
|
display: flex;
|
|
cursor: default;
|
|
box-sizing: content-box;
|
|
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new dt("toolbox-button-row_colors",`
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new dt("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 dt("toolbox-panel-row_colors",`
|
|
background-color: `+((Ct=this.uiStyleSettings.toolboxBackgroundColor)!==null&&Ct!==void 0?Ct:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
|
|
`)),this.toolboxButtonStyleClass=this.styles.addClass(new dt("toolbox_button",`
|
|
display: inline-block;
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*St)+`px;
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*St)+`px;
|
|
padding: `+St+`px;
|
|
box-sizing: content-box;
|
|
`)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new dt("toolbox-button_colors",`
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new dt("toolbox-active-button_colors",`
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
`)),this.styles.addRule(new nt("."+this.toolboxButtonStyleColorsClass.name+":hover",`
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
`)),this.styles.addRule(new nt("."+this.toolboxButtonStyleClass.name+" svg",`
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
`))},Nt.prototype.show=function(Ct){var St;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=Ct,this.uiContainer.className=this.toolboxStyleClass.name+" "+((St=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&St!==void 0?St:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},Nt.prototype.setPanelButtons=function(Ct){var St,Bt,Gt=this;this.panels=Ct,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((St=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&St!==void 0?St:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((Bt=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&Bt!==void 0?Bt:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(Lt){var ie;Lt.uiStyleSettings=Gt.uiStyleSettings;var Ke=document.createElement("div");Ke.className=Gt.toolboxButtonStyleClass.name+" "+((ie=Gt.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&ie!==void 0?ie:Gt.toolboxButtonStyleColorsClass.name),Ke.innerHTML=Lt.icon,Ke.title=Lt.title,Ke.addEventListener("click",function(){Gt.panelButtonClick(Lt)}),Gt.panelButtons.push(Ke),Gt.buttonRow.appendChild(Ke)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},Nt.prototype.panelButtonClick=function(Ct){var St=this,Bt=-1;if(Ct!==this.activePanel){Bt=this.panels.indexOf(Ct),this.panelRow.innerHTML="";var Gt=Ct.getUi();Gt.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(Gt),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=Ct}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){St.displayMode==="inline"?St.panelRow.style.display="none":St.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(Lt,ie){var Ke,ln;Lt.className=St.toolboxButtonStyleClass.name+" "+(ie===Bt?""+((Ke=St.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&Ke!==void 0?Ke:St.toolboxActiveButtonStyleColorsClass.name):""+((ln=St.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&ln!==void 0?ln:St.toolboxButtonStyleColorsClass.name))})},Nt}(),yt=function(Nt,Ct){this.title=Nt,this.icon=Ct},At=function(Nt){function Ct(St,Bt,Gt,Lt){var ie=Nt.call(this,St,Lt||'<svg viewBox="0 0 24 24"><path d="M17.5 12a1.5 1.5 0 01-1.5-1.5A1.5 1.5 0 0117.5 9a1.5 1.5 0 011.5 1.5 1.5 1.5 0 01-1.5 1.5m-3-4A1.5 1.5 0 0113 6.5 1.5 1.5 0 0114.5 5 1.5 1.5 0 0116 6.5 1.5 1.5 0 0114.5 8m-5 0A1.5 1.5 0 018 6.5 1.5 1.5 0 019.5 5 1.5 1.5 0 0111 6.5 1.5 1.5 0 019.5 8m-3 4A1.5 1.5 0 015 10.5 1.5 1.5 0 016.5 9 1.5 1.5 0 018 10.5 1.5 1.5 0 016.5 12M12 3a9 9 0 00-9 9 9 9 0 009 9 1.5 1.5 0 001.5-1.5c0-.39-.15-.74-.39-1-.23-.27-.38-.62-.38-1a1.5 1.5 0 011.5-1.5H16a5 5 0 005-5c0-4.42-4.03-8-9-8z"/></svg>')||this;return ie.colors=[],ie.addTransparent=!1,ie.colorBoxes=[],ie.colors=Bt,ie.currentColor=Gt,ie.setCurrentColor=ie.setCurrentColor.bind(ie),ie.getColorBox=ie.getColorBox.bind(ie),ie}return Jt(Ct,Nt),Ct.prototype.getUi=function(){var St=this,Bt=document.createElement("div");return Bt.style.overflow="hidden",Bt.style.whiteSpace="nowrap",this.colors.forEach(function(Gt){var Lt=St.getColorBox(Gt);Bt.appendChild(Lt),St.colorBoxes.push(Lt)}),Bt},Ct.prototype.getColorBox=function(St){var Bt=this,Gt=this.uiStyleSettings.toolbarHeight/4,Lt=this.uiStyleSettings.toolbarHeight-Gt,ie=document.createElement("div");ie.style.display="inline-block",ie.style.boxSizing="content-box",ie.style.width=Lt-2+"px",ie.style.height=Lt-2+"px",ie.style.padding="1px",ie.style.marginRight="2px",ie.style.marginBottom="2px",ie.style.borderWidth="2px",ie.style.borderStyle="solid",ie.style.borderRadius=(Lt+2)/2+"px",ie.style.borderColor=St===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",ie.addEventListener("click",function(){Bt.setCurrentColor(St,ie)});var Ke=document.createElement("div");return Ke.style.display="inline-block",Ke.style.width=Lt-2+"px",Ke.style.height=Lt-2+"px",Ke.style.backgroundColor=St,Ke.style.borderRadius=Lt/2+"px",St==="transparent"&&(Ke.style.fill=this.uiStyleSettings.toolboxAccentColor,Ke.innerHTML=`<svg viewBox="0 0 24 24">
|
|
<path d="M2,5.27L3.28,4L20,20.72L18.73,22L15.65,18.92C14.5,19.3 13.28,19.5 12,19.5C7,19.5 2.73,16.39 1,12C1.69,10.24 2.79,8.69 4.19,7.46L2,5.27M12,9A3,3 0 0,1 15,12C15,12.35 14.94,12.69 14.83,13L11,9.17C11.31,9.06 11.65,9 12,9M12,4.5C17,4.5 21.27,7.61 23,12C22.18,14.08 20.79,15.88 19,17.19L17.58,15.76C18.94,14.82 20.06,13.54 20.82,12C19.17,8.64 15.76,6.5 12,6.5C10.91,6.5 9.84,6.68 8.84,7L7.3,5.47C8.74,4.85 10.33,4.5 12,4.5M3.18,12C4.83,15.36 8.24,17.5 12,17.5C12.69,17.5 13.37,17.43 14,17.29L11.72,15C10.29,14.85 9.15,13.71 9,12.28L5.6,8.87C4.61,9.72 3.78,10.78 3.18,12Z" />
|
|
</svg>`),ie.appendChild(Ke),ie},Ct.prototype.setCurrentColor=function(St,Bt){var Gt=this;this.currentColor=St,this.colorBoxes.forEach(function(Lt){Lt.style.borderColor=Lt===Bt?Gt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(St)},Ct}(yt),Dt=function(){function Nt(Ct,St,Bt){this._state="new",this._isSelected=!1,this._container=Ct,this._overlayContainer=St,this.globalSettings=Bt,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(Ct){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(Ct,St){},Nt.prototype.dblClick=function(Ct,St){},Nt.prototype.manipulate=function(Ct){},Nt.prototype.pointerUp=function(Ct){this.stateChanged()},Nt.prototype.dispose=function(){},Nt.prototype.addMarkerVisualToContainer=function(Ct){this.container.childNodes.length>0?this.container.insertBefore(Ct,this.container.childNodes[0]):this.container.appendChild(Ct)},Nt.prototype.getState=function(){return{typeName:Nt.typeName,state:this.state,notes:this.notes}},Nt.prototype.restoreState=function(Ct){this._state=Ct.state,this.notes=Ct.notes},Nt.prototype.scale=function(Ct,St){},Nt.prototype.colorChanged=function(Ct){this.onColorChanged&&this.onColorChanged(Ct),this.stateChanged()},Nt.prototype.fillColorChanged=function(Ct){this.onFillColorChanged&&this.onFillColorChanged(Ct),this.stateChanged()},Nt.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var Ct=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),Ct.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(Ct)&&this.onStateChanged(this)}},Nt.typeName="MarkerBase",Nt}(),Ut=function(){function Nt(){this.findGripByVisual=this.findGripByVisual.bind(this)}return Nt.prototype.findGripByVisual=function(Ct){return this.topLeft.ownsTarget(Ct)?this.topLeft:this.topCenter.ownsTarget(Ct)?this.topCenter:this.topRight.ownsTarget(Ct)?this.topRight:this.centerLeft.ownsTarget(Ct)?this.centerLeft:this.centerRight.ownsTarget(Ct)?this.centerRight:this.bottomLeft.ownsTarget(Ct)?this.bottomLeft:this.bottomCenter.ownsTarget(Ct)?this.bottomCenter:this.bottomRight.ownsTarget(Ct)?this.bottomRight:void 0},Nt}(),Qt=function(){function Nt(){this.GRIP_SIZE=10,this.visual=he.createGroup(),this.visual.appendChild(he.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(he.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return Nt.prototype.ownsTarget=function(Ct){return Ct===this.visual||Ct===this.visual.childNodes[0]||Ct===this.visual.childNodes[1]},Nt}(),$t=function(){function Nt(){}return Nt.toITransformMatrix=function(Ct){return{a:Ct.a,b:Ct.b,c:Ct.c,d:Ct.d,e:Ct.e,f:Ct.f}},Nt.toSVGMatrix=function(Ct,St){return Ct.a=St.a,Ct.b=St.b,Ct.c=St.c,Ct.d=St.d,Ct.e=St.e,Ct.f=St.f,Ct},Nt}(),ne=function(Nt){function Ct(St,Bt,Gt){var Lt=Nt.call(this,St,Bt,Gt)||this;return Lt.left=0,Lt.top=0,Lt.width=0,Lt.height=0,Lt.defaultSize={x:50,y:20},Lt.offsetX=0,Lt.offsetY=0,Lt.rotationAngle=0,Lt.CB_DISTANCE=10,Lt._suppressMarkerCreateEvent=!1,Lt.container.transform.baseVal.appendItem(he.createTransform()),Lt.setupControlBox(),Lt}return Jt(Ct,Nt),Object.defineProperty(Ct.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(Ct.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(Ct.prototype,"visual",{get:function(){return this._visual},set:function(St){this._visual=St;var Bt=he.createTransform();this._visual.transform.baseVal.appendItem(Bt)},enumerable:!1,configurable:!0}),Ct.prototype.ownsTarget=function(St){return!!Nt.prototype.ownsTarget.call(this,St)||!!(this.controlGrips.findGripByVisual(St)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(St))},Ct.prototype.pointerDown=function(St,Bt){Nt.prototype.pointerDown.call(this,St,Bt),this.state==="new"&&(this.left=St.x,this.top=St.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var Gt=this.unrotatePoint(St);if(this.manipulationStartX=Gt.x,this.manipulationStartY=Gt.y,this.offsetX=Gt.x-this.left,this.offsetY=Gt.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(Bt),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(Bt)){this.activeGrip=this.rotatorGrip;var Lt=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=Lt.x-this.width/2,this.top=Lt.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var ie=this.container.transform.baseVal.getItem(0);ie.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(ie,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},Ct.prototype.pointerUp=function(St){var Bt=this.state;Nt.prototype.pointerUp.call(this,St),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(St),this._state="select",Bt==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},Ct.prototype.moveVisual=function(St){this.visual.style.transform="translate("+St.x+"px, "+St.y+"px)"},Ct.prototype.manipulate=function(St){var Bt=this.unrotatePoint(St);this.state==="creating"?this.resize(St):this.state==="move"?(this.left=this.manipulationStartLeft+(Bt.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(Bt.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(Bt):this.state==="rotate"&&this.rotate(St)},Ct.prototype.resize=function(St){var Bt=this.manipulationStartLeft,Gt=this.manipulationStartWidth,Lt=this.manipulationStartTop,ie=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:Bt=this.manipulationStartLeft+St.x-this.manipulationStartX,Gt=this.manipulationStartWidth+this.manipulationStartLeft-Bt;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:Gt=this.manipulationStartWidth+St.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:Lt=this.manipulationStartTop+St.y-this.manipulationStartY,ie=this.manipulationStartHeight+this.manipulationStartTop-Lt;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:ie=this.manipulationStartHeight+St.y-this.manipulationStartY}Gt>=0?(this.left=Bt,this.width=Gt):(this.left=Bt+Gt,this.width=-Gt),ie>=0?(this.top=Lt,this.height=ie):(this.top=Lt+ie,this.height=-ie),this.setSize()},Ct.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},Ct.prototype.rotate=function(St){if(Math.abs(St.x-this.centerX)>.1){var Bt=Math.sign(St.x-this.centerX);this.rotationAngle=180*Math.atan((St.y-this.centerY)/(St.x-this.centerX))/Math.PI+90*Bt,this.applyRotation()}},Ct.prototype.applyRotation=function(){var St=this.container.transform.baseVal.getItem(0);St.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(St,0)},Ct.prototype.rotatePoint=function(St){if(this.rotationAngle===0)return St;var Bt=this.container.getCTM(),Gt=he.createPoint(St.x,St.y);return{x:(Gt=Gt.matrixTransform(Bt)).x,y:Gt.y}},Ct.prototype.unrotatePoint=function(St){if(this.rotationAngle===0)return St;var Bt=this.container.getCTM();Bt=Bt.inverse();var Gt=he.createPoint(St.x,St.y);return{x:(Gt=Gt.matrixTransform(Bt)).x,y:Gt.y}},Ct.prototype.select=function(){Nt.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},Ct.prototype.deselect=function(){Nt.prototype.deselect.call(this),this.controlBox.style.display="none"},Ct.prototype.setupControlBox=function(){this.controlBox=he.createGroup();var St=he.createTransform();St.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(St),this.container.appendChild(this.controlBox),this.controlRect=he.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=he.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 Ut,this.addControlGrips(),this.controlBox.style.display="none"},Ct.prototype.adjustControlBox=function(){var St=this.controlBox.transform.baseVal.getItem(0);St.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(St,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()},Ct.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()},Ct.prototype.createGrip=function(){var St=new Qt;return St.visual.transform.baseVal.appendItem(he.createTransform()),this.controlBox.appendChild(St.visual),St},Ct.prototype.positionGrips=function(){var St=this.controlGrips.topLeft.GRIP_SIZE,Bt=-St/2,Gt=Bt,Lt=(this.width+this.CB_DISTANCE)/2-St/2,ie=(this.height+this.CB_DISTANCE)/2-St/2,Ke=this.height+this.CB_DISTANCE-St/2,ln=this.width+this.CB_DISTANCE-St/2;this.positionGrip(this.controlGrips.topLeft.visual,Bt,Gt),this.positionGrip(this.controlGrips.topCenter.visual,Lt,Gt),this.positionGrip(this.controlGrips.topRight.visual,ln,Gt),this.positionGrip(this.controlGrips.centerLeft.visual,Bt,ie),this.positionGrip(this.controlGrips.centerRight.visual,ln,ie),this.positionGrip(this.controlGrips.bottomLeft.visual,Bt,Ke),this.positionGrip(this.controlGrips.bottomCenter.visual,Lt,Ke),this.positionGrip(this.controlGrips.bottomRight.visual,ln,Ke),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,Lt,Gt-3*this.CB_DISTANCE)},Ct.prototype.positionGrip=function(St,Bt,Gt){var Lt=St.transform.baseVal.getItem(0);Lt.setTranslate(Bt,Gt),St.transform.baseVal.replaceItem(Lt,0)},Ct.prototype.hideControlBox=function(){this.controlBox.style.display="none"},Ct.prototype.showControlBox=function(){this.controlBox.style.display=""},Ct.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:$t.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:$t.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},Nt.prototype.getState.call(this))},Ct.prototype.restoreState=function(St){Nt.prototype.restoreState.call(this,St);var Bt=St;this.left=Bt.left,this.top=Bt.top,this.width=Bt.width,this.height=Bt.height,this.rotationAngle=Bt.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix($t.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,Bt.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix($t.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,Bt.containerTransformMatrix))},Ct.prototype.scale=function(St,Bt){Nt.prototype.scale.call(this,St,Bt);var Gt=this.rotatePoint({x:this.left,y:this.top}),Lt=this.unrotatePoint({x:Gt.x*St,y:Gt.y*Bt});this.left=Lt.x,this.top=Lt.y,this.width=this.width*St,this.height=this.height*Bt,this.adjustControlBox()},Ct}(Dt),_t=function(Nt){function Ct(St,Bt,Gt){var Lt=Nt.call(this,St,Bt,Gt)||this;return Lt.fillColor="transparent",Lt.strokeColor="transparent",Lt.strokeWidth=0,Lt.strokeDasharray="",Lt.opacity=1,Lt.setStrokeColor=Lt.setStrokeColor.bind(Lt),Lt.setFillColor=Lt.setFillColor.bind(Lt),Lt.setStrokeWidth=Lt.setStrokeWidth.bind(Lt),Lt.setStrokeDasharray=Lt.setStrokeDasharray.bind(Lt),Lt.createVisual=Lt.createVisual.bind(Lt),Lt}return Jt(Ct,Nt),Ct.prototype.ownsTarget=function(St){return!(!Nt.prototype.ownsTarget.call(this,St)&&St!==this.visual)},Ct.prototype.createVisual=function(){this.visual=he.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)},Ct.prototype.pointerDown=function(St,Bt){Nt.prototype.pointerDown.call(this,St,Bt),this.state==="new"&&(this.createVisual(),this.moveVisual(St),this._state="creating")},Ct.prototype.manipulate=function(St){Nt.prototype.manipulate.call(this,St)},Ct.prototype.resize=function(St){Nt.prototype.resize.call(this,St),this.setSize()},Ct.prototype.setSize=function(){Nt.prototype.setSize.call(this),he.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},Ct.prototype.pointerUp=function(St){Nt.prototype.pointerUp.call(this,St),this.setSize()},Ct.prototype.setStrokeColor=function(St){this.strokeColor=St,this.visual&&he.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(St),this.stateChanged()},Ct.prototype.setFillColor=function(St){this.fillColor=St,this.visual&&he.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},Ct.prototype.setStrokeWidth=function(St){this.strokeWidth=St,this.visual&&he.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Ct.prototype.setStrokeDasharray=function(St){this.strokeDasharray=St,this.visual&&he.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Ct.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))},Ct.prototype.restoreState=function(St){var Bt=St;this.fillColor=Bt.fillColor,this.strokeColor=Bt.strokeColor,this.strokeWidth=Bt.strokeWidth,this.strokeDasharray=Bt.strokeDasharray,this.opacity=Bt.opacity,this.createVisual(),Nt.prototype.restoreState.call(this,St),this.setSize()},Ct.prototype.scale=function(St,Bt){Nt.prototype.scale.call(this,St,Bt),this.setSize()},Ct.title="Rectangle marker",Ct}(ne),Pe=function(Nt){function Ct(St,Bt,Gt,Lt){var ie=Nt.call(this,St,Lt||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return ie.widths=[],ie.widthBoxes=[],ie.widths=Bt,ie.currentWidth=Gt,ie.setCurrentWidth=ie.setCurrentWidth.bind(ie),ie}return Jt(Ct,Nt),Ct.prototype.getUi=function(){var St=this,Bt=document.createElement("div");return Bt.style.display="flex",Bt.style.overflow="hidden",Bt.style.flexGrow="2",this.widths.forEach(function(Gt){var Lt=document.createElement("div");Lt.style.display="flex",Lt.style.flexGrow="2",Lt.style.alignItems="center",Lt.style.justifyContent="space-between",Lt.style.padding="5px",Lt.style.borderWidth="2px",Lt.style.borderStyle="solid",Lt.style.borderColor=Gt===St.currentWidth?St.uiStyleSettings.toolboxAccentColor:"transparent",Lt.addEventListener("click",function(){St.setCurrentWidth(Gt,Lt)}),Bt.appendChild(Lt);var ie=document.createElement("div");ie.innerText=Gt.toString(),ie.style.marginRight="5px",Lt.appendChild(ie);var Ke=document.createElement("div");Ke.style.minHeight="20px",Ke.style.flexGrow="2",Ke.style.display="flex",Ke.style.alignItems="center";var ln=document.createElement("hr");ln.style.minWidth="20px",ln.style.border="0px",ln.style.borderTop=Gt+"px solid "+St.uiStyleSettings.toolboxColor,ln.style.flexGrow="2",Ke.appendChild(ln),Lt.appendChild(Ke),St.widthBoxes.push(Lt)}),Bt},Ct.prototype.setCurrentWidth=function(St,Bt){var Gt=this;this.currentWidth=St,this.widthBoxes.forEach(function(Lt){Lt.style.borderColor=Lt===Bt?Gt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},Ct}(yt),ue=function(Nt){function Ct(St,Bt,Gt,Lt){var ie=Nt.call(this,St,Lt||'<svg viewBox="0 0 24 24"><path d="M3 16h5v-2H3v2m6.5 0h5v-2h-5v2m6.5 0h5v-2h-5v2M3 20h2v-2H3v2m4 0h2v-2H7v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2M3 12h8v-2H3v2m10 0h8v-2h-8v2M3 4v4h18V4H3z"/></svg>')||this;return ie.styles=[],ie.styleBoxes=[],ie.styles=Bt,ie.currentStyle=Gt,ie.setCurrentStyle=ie.setCurrentStyle.bind(ie),ie}return Jt(Ct,Nt),Ct.prototype.getUi=function(){var St=this,Bt=document.createElement("div");return Bt.style.display="flex",Bt.style.overflow="hidden",Bt.style.flexGrow="2",this.styles.forEach(function(Gt){var Lt=document.createElement("div");Lt.style.display="flex",Lt.style.alignItems="center",Lt.style.justifyContent="space-between",Lt.style.padding="5px",Lt.style.borderWidth="2px",Lt.style.borderStyle="solid",Lt.style.overflow="hidden",Lt.style.maxWidth=100/St.styles.length-5+"%",Lt.style.borderColor=Gt===St.currentStyle?St.uiStyleSettings.toolboxAccentColor:"transparent",Lt.addEventListener("click",function(){St.setCurrentStyle(Gt,Lt)}),Bt.appendChild(Lt);var ie=document.createElement("div");ie.style.minHeight="20px",ie.style.flexGrow="2",ie.style.overflow="hidden";var Ke=`<svg width="100" height="20">
|
|
<line x1="0" y1="10" x2="100" y2="10" stroke="`+St.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(Gt!==""?'stroke-dasharray="'+Gt+'"':"")+` />
|
|
</svg>`;ie.innerHTML=Ke,Lt.appendChild(ie),St.styleBoxes.push(Lt)}),Bt},Ct.prototype.setCurrentStyle=function(St,Bt){var Gt=this;this.currentStyle=St,this.styleBoxes.forEach(function(Lt){Lt.style.borderColor=Lt===Bt?Gt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},Ct}(yt),pe=function(Nt){function Ct(St,Bt,Gt){var Lt=Nt.call(this,St,Bt,Gt)||this;return Lt.strokeColor=Gt.defaultColor,Lt.strokeWidth=Gt.defaultStrokeWidth,Lt.strokeDasharray=Gt.defaultStrokeDasharray,Lt.strokePanel=new At("Line color",Gt.defaultColorSet,Gt.defaultColor),Lt.strokePanel.onColorChanged=Lt.setStrokeColor,Lt.strokeWidthPanel=new Pe("Line width",Gt.defaultStrokeWidths,Gt.defaultStrokeWidth),Lt.strokeWidthPanel.onWidthChanged=Lt.setStrokeWidth,Lt.strokeStylePanel=new ue("Line style",Gt.defaultStrokeDasharrays,Gt.defaultStrokeDasharray),Lt.strokeStylePanel.onStyleChanged=Lt.setStrokeDasharray,Lt}return Jt(Ct,Nt),Object.defineProperty(Ct.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Ct.prototype.getState=function(){var St=Nt.prototype.getState.call(this);return St.typeName=Ct.typeName,St},Ct.typeName="FrameMarker",Ct.title="Frame marker",Ct.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',Ct}(_t),oe=function(){this.defaultColorSet=["#EF4444","#10B981","#2563EB","#FFFF00","#7C3AED","#F472B6","#000000","#FFFFFF"],this.defaultColor=this.defaultColorSet[0],this.defaultFillColor=this.defaultColorSet[0],this.defaultStrokeColor=this.defaultColorSet[7],this.defaultHighlightColor=this.defaultColorSet[3],this.defaultStrokeWidth=3,this.defaultStrokeDasharray="",this.defaultHighlightOpacity=.5,this.defaultFontFamily="Helvetica, Arial, sans-serif",this.defaultStrokeWidths=[1,2,3,5,10],this.defaultStrokeDasharrays=["","3","12 3","9 6 3 6"],this.defaultOpacitySteps=[.1,.25,.5,.75,1],this.displayMode="inline",this.defaultFontFamilies=['Times, "Times New Roman", serif',"Helvetica, Arial, sans-serif",'Courier, "Courier New", monospace',"cursive","fantasy"],this.popupMargin=30,this.newFreehandMarkerOnPointerUp=!1,this.defaultColorsFollowCurrentColors=!1,this.freehandPixelRatio=1,this.disableRotation=!1,this.defaultCaptionFontSize="1rem",this.defaultCaptionText="Text"},Ae=function(Nt){function Ct(St,Bt,Gt){var Lt=Nt.call(this,St,Bt,Gt)||this;return Lt.x1=0,Lt.y1=0,Lt.x2=0,Lt.y2=0,Lt.defaultLength=50,Lt.manipulationStartX=0,Lt.manipulationStartY=0,Lt.manipulationStartX1=0,Lt.manipulationStartY1=0,Lt.manipulationStartX2=0,Lt.manipulationStartY2=0,Lt.setupControlBox(),Lt}return Jt(Ct,Nt),Ct.prototype.ownsTarget=function(St){return!!Nt.prototype.ownsTarget.call(this,St)||!(!this.grip1.ownsTarget(St)&&!this.grip2.ownsTarget(St))},Ct.prototype.pointerDown=function(St,Bt){Nt.prototype.pointerDown.call(this,St,Bt),this.manipulationStartX=St.x,this.manipulationStartY=St.y,this.state==="new"&&(this.x1=St.x,this.y1=St.y,this.x2=St.x,this.y2=St.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(Bt)?this.activeGrip=this.grip1:this.grip2.ownsTarget(Bt)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},Ct.prototype.pointerUp=function(St){var Bt=this.state;Nt.prototype.pointerUp.call(this,St),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(St),this._state="select",Bt==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},Ct.prototype.adjustVisual=function(){},Ct.prototype.manipulate=function(St){this.state==="creating"?this.resize(St):this.state==="move"?(this.x1=this.manipulationStartX1+St.x-this.manipulationStartX,this.y1=this.manipulationStartY1+St.y-this.manipulationStartY,this.x2=this.manipulationStartX2+St.x-this.manipulationStartX,this.y2=this.manipulationStartY2+St.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(St)},Ct.prototype.resize=function(St){switch(this.activeGrip){case this.grip1:this.x1=St.x,this.y1=St.y;break;case this.grip2:case void 0:this.x2=St.x,this.y2=St.y}this.adjustVisual(),this.adjustControlBox()},Ct.prototype.select=function(){Nt.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},Ct.prototype.deselect=function(){Nt.prototype.deselect.call(this),this.controlBox.style.display="none"},Ct.prototype.setupControlBox=function(){this.controlBox=he.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},Ct.prototype.adjustControlBox=function(){this.positionGrips()},Ct.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},Ct.prototype.createGrip=function(){var St=new Qt;return St.visual.transform.baseVal.appendItem(he.createTransform()),this.controlBox.appendChild(St.visual),St},Ct.prototype.positionGrips=function(){var St=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-St/2,this.y1-St/2),this.positionGrip(this.grip2.visual,this.x2-St/2,this.y2-St/2)},Ct.prototype.positionGrip=function(St,Bt,Gt){var Lt=St.transform.baseVal.getItem(0);Lt.setTranslate(Bt,Gt),St.transform.baseVal.replaceItem(Lt,0)},Ct.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},Nt.prototype.getState.call(this))},Ct.prototype.restoreState=function(St){Nt.prototype.restoreState.call(this,St);var Bt=St;this.x1=Bt.x1,this.y1=Bt.y1,this.x2=Bt.x2,this.y2=Bt.y2},Ct.prototype.scale=function(St,Bt){Nt.prototype.scale.call(this,St,Bt),this.x1=this.x1*St,this.y1=this.y1*Bt,this.x2=this.x2*St,this.y2=this.y2*Bt,this.adjustVisual(),this.adjustControlBox()},Ct}(Dt),Ie=function(Nt){function Ct(St,Bt,Gt){var Lt=Nt.call(this,St,Bt,Gt)||this;return Lt.strokeColor="transparent",Lt.strokeWidth=0,Lt.strokeDasharray="",Lt.setStrokeColor=Lt.setStrokeColor.bind(Lt),Lt.setStrokeWidth=Lt.setStrokeWidth.bind(Lt),Lt.setStrokeDasharray=Lt.setStrokeDasharray.bind(Lt),Lt.strokeColor=Gt.defaultColor,Lt.strokeWidth=Gt.defaultStrokeWidth,Lt.strokeDasharray=Gt.defaultStrokeDasharray,Lt.strokePanel=new At("Line color",Gt.defaultColorSet,Gt.defaultColor),Lt.strokePanel.onColorChanged=Lt.setStrokeColor,Lt.strokeWidthPanel=new Pe("Line width",Gt.defaultStrokeWidths,Gt.defaultStrokeWidth),Lt.strokeWidthPanel.onWidthChanged=Lt.setStrokeWidth,Lt.strokeStylePanel=new ue("Line style",Gt.defaultStrokeDasharrays,Gt.defaultStrokeDasharray),Lt.strokeStylePanel.onStyleChanged=Lt.setStrokeDasharray,Lt}return Jt(Ct,Nt),Ct.prototype.ownsTarget=function(St){return!(!Nt.prototype.ownsTarget.call(this,St)&&St!==this.visual&&St!==this.selectorLine&&St!==this.visibleLine)},Ct.prototype.createVisual=function(){this.visual=he.createGroup(),this.selectorLine=he.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=he.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)},Ct.prototype.pointerDown=function(St,Bt){Nt.prototype.pointerDown.call(this,St,Bt),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},Ct.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()),he.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),he.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),he.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},Ct.prototype.setStrokeColor=function(St){this.strokeColor=St,this.adjustVisual(),this.colorChanged(St)},Ct.prototype.setStrokeWidth=function(St){this.strokeWidth=St,this.adjustVisual()},Ct.prototype.setStrokeDasharray=function(St){this.strokeDasharray=St,this.adjustVisual(),this.stateChanged()},Object.defineProperty(Ct.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Ct.prototype.getState=function(){var St=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},Nt.prototype.getState.call(this));return St.typeName=Ct.typeName,St},Ct.prototype.restoreState=function(St){Nt.prototype.restoreState.call(this,St);var Bt=St;this.strokeColor=Bt.strokeColor,this.strokeWidth=Bt.strokeWidth,this.strokeDasharray=Bt.strokeDasharray,this.createVisual(),this.adjustVisual()},Ct.typeName="LineMarker",Ct.title="Line marker",Ct.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',Ct}(Ae),an=function(Nt){function Ct(St,Bt,Gt,Lt){var ie=Nt.call(this,St,Lt||'<svg viewBox="0 0 24 24"><path d="M17 8h3v12h1v1h-4v-1h1v-3h-4l-1.5 3H14v1h-4v-1h1l6-12m1 1l-3.5 7H18V9M5 3h5c1.11 0 2 .89 2 2v11H9v-5H6v5H3V5c0-1.11.89-2 2-2m1 2v4h3V5H6z"/></svg>')||this;return ie.fonts=[],ie.fontBoxes=[],ie.fonts=Bt,ie.currentFont=Gt,ie.setCurrentFont=ie.setCurrentFont.bind(ie),ie}return Jt(Ct,Nt),Ct.prototype.getUi=function(){var St=this,Bt=document.createElement("div");return Bt.style.overflow="hidden",Bt.style.flexGrow="2",this.fonts.forEach(function(Gt){var Lt=document.createElement("div");Lt.style.display="inline-block",Lt.style.alignItems="center",Lt.style.justifyContent="space-between",Lt.style.padding="5px",Lt.style.borderWidth="2px",Lt.style.borderStyle="solid",Lt.style.overflow="hidden",Lt.style.maxWidth=100/St.fonts.length-5+"%",Lt.style.borderColor=Gt===St.currentFont?St.uiStyleSettings.toolboxAccentColor:"transparent",Lt.addEventListener("click",function(){St.setCurrentFont(Gt,Lt)}),Bt.appendChild(Lt);var ie=document.createElement("div");ie.style.display="flex",ie.style.minHeight="20px",ie.style.flexGrow="2",ie.style.fontFamily=Gt,ie.style.overflow="hidden";var Ke=document.createElement("div");Ke.style.whiteSpace="nowrap",Ke.style.overflow="hidden",Ke.style.textOverflow="ellipsis",Ke.innerHTML="The quick brown fox jumps over the lazy dog",ie.appendChild(Ke),Lt.appendChild(ie),St.fontBoxes.push(Lt)}),Bt},Ct.prototype.setCurrentFont=function(St,Bt){var Gt=this;this.currentFont=St,this.fontBoxes.forEach(function(Lt){Lt.style.borderColor=Lt===Bt?Gt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},Ct}(yt),Gn=function(Nt){function Ct(St,Bt,Gt){var Lt=Nt.call(this,St,Bt,Gt)||this;return Lt.color="transparent",Lt.padding=5,Lt.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",Lt.text=Lt.DEFAULT_TEXT,Lt.isMoved=!1,Lt.color=Gt.defaultColor,Lt.fontFamily=Gt.defaultFontFamily,Lt.defaultSize={x:100,y:30},Lt.setColor=Lt.setColor.bind(Lt),Lt.setFont=Lt.setFont.bind(Lt),Lt.renderText=Lt.renderText.bind(Lt),Lt.sizeText=Lt.sizeText.bind(Lt),Lt.textEditDivClicked=Lt.textEditDivClicked.bind(Lt),Lt.showTextEditor=Lt.showTextEditor.bind(Lt),Lt.setSize=Lt.setSize.bind(Lt),Lt.positionTextEditor=Lt.positionTextEditor.bind(Lt),Lt.colorPanel=new At("Color",Gt.defaultColorSet,Gt.defaultColor),Lt.colorPanel.onColorChanged=Lt.setColor,Lt.fontFamilyPanel=new an("Font",Gt.defaultFontFamilies,Gt.defaultFontFamily),Lt.fontFamilyPanel.onFontChanged=Lt.setFont,Lt}return Jt(Ct,Nt),Ct.prototype.ownsTarget=function(St){if(Nt.prototype.ownsTarget.call(this,St)||St===this.visual||St===this.textElement||St===this.bgRectangle)return!0;var Bt=!1;return this.textElement.childNodes.forEach(function(Gt){Gt===St&&(Bt=!0)}),Bt},Ct.prototype.createVisual=function(){this.visual=he.createGroup(),this.bgRectangle=he.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=he.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(he.createTransform()),this.textElement.transform.baseVal.appendItem(he.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},Ct.prototype.pointerDown=function(St,Bt){Nt.prototype.pointerDown.call(this,St,Bt),this.isMoved=!1,this.pointerDownPoint=St,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(St),this._state="creating")},Ct.prototype.renderText=function(){var St=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(Bt){St.textElement.appendChild(he.createTSpan(Bt.trim()===""?" ":Bt.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},Ct.prototype.getTextScale=function(){var St=this.textElement.getBBox(),Bt=1;if(St.width>0&&St.height>0){var Gt=(1*this.width-this.width*this.padding*2/100)/St.width,Lt=(1*this.height-this.height*this.padding*2/100)/St.height;Bt=Math.min(Gt,Lt)}return Bt},Ct.prototype.getTextPosition=function(St){var Bt=this.textElement.getBBox(),Gt=0,Lt=0;return Bt.width>0&&Bt.height>0&&(Gt=(this.width-Bt.width*St)/2,Lt=this.height/2-Bt.height*St/2),{x:Gt,y:Lt}},Ct.prototype.sizeText=function(){var St=this.textElement.getBBox(),Bt=this.getTextScale(),Gt=this.getTextPosition(Bt);Gt.y-=St.y*Bt,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+Gt.x+"px, "+Gt.y+"px) scale("+Bt+", "+Bt+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(Gt.x,Gt.y),this.textElement.transform.baseVal.getItem(1).setScale(Bt,Bt))},Ct.prototype.manipulate=function(St){Nt.prototype.manipulate.call(this,St),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(St.x-this.pointerDownPoint.x)>5||Math.abs(St.y-this.pointerDownPoint.y)>5)},Ct.prototype.resize=function(St){Nt.prototype.resize.call(this,St),this.isMoved=!0,this.setSize(),this.sizeText()},Ct.prototype.setSize=function(){Nt.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(he.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),he.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},Ct.prototype.pointerUp=function(St){var Bt=this.state;Bt==="creating"&&(this._suppressMarkerCreateEvent=!0),Nt.prototype.pointerUp.call(this,St),this.setSize(),(Bt==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},Ct.prototype.showTextEditor=function(){var St=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(Bt){Bt.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var Bt=Number.parseFloat(St.textEditor.style.fontSize);St.textEditor.clientWidth>=Number.parseInt(St.textEditor.style.maxWidth)&&Bt>.9;)Bt-=.1,St.textEditor.style.fontSize=Math.max(Bt,.9)+"em"}),this.textEditor.addEventListener("keyup",function(Bt){Bt.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(Bt){if(Bt.clipboardData){var Gt=Bt.clipboardData.getData("text"),Lt=window.getSelection();if(!Lt.rangeCount)return!1;Lt.deleteFromDocument(),Lt.getRangeAt(0).insertNode(document.createTextNode(Gt)),Bt.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){St.textEditDivClicked(St.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},Ct.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var St=this.getTextScale(),Bt=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),Gt=this.textElement.getBBox(),Lt={x:Gt.width*St,y:Gt.height*St};Bt.x-=Lt.x/2,Bt.y-=Lt.y/2,this.textEditor.style.top=Bt.y+"px",this.textEditor.style.left=Bt.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-Bt.x+"px",this.textEditor.style.fontSize=Math.max(16*St,12)+"px",this.textElement.style.display="none"}},Ct.prototype.textEditDivClicked=function(St){this.text=St.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},Ct.prototype.select=function(){Nt.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},Ct.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),Nt.prototype.deselect.call(this)},Ct.prototype.dblClick=function(St,Bt){Nt.prototype.dblClick.call(this,St,Bt),this.showTextEditor()},Ct.prototype.setColor=function(St){this.textElement&&he.setAttributes(this.textElement,[["fill",St]]),this.color=St,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(St)},Ct.prototype.setFont=function(St){this.textElement&&he.setAttributes(this.textElement,[["font-family",St]]),this.fontFamily=St,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},Ct.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},Ct.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(Ct.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),Ct.prototype.getState=function(){var St=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},Nt.prototype.getState.call(this));return St.typeName=Ct.typeName,St},Ct.prototype.restoreState=function(St){var Bt=St;this.color=Bt.color,this.fontFamily=Bt.fontFamily,this.padding=Bt.padding,this.text=Bt.text,this.createVisual(),Nt.prototype.restoreState.call(this,St),this.setSize()},Ct.prototype.scale=function(St,Bt){Nt.prototype.scale.call(this,St,Bt),this.setSize(),this.sizeText(),this.positionTextEditor()},Ct.typeName="TextMarker",Ct.title="Text marker",Ct.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>',Ct}(ne),bn=function(Nt){function Ct(St,Bt,Gt){var Lt=Nt.call(this,St,Bt,Gt)||this;return Lt.color="transparent",Lt.lineWidth=3,Lt.drawing=!1,Lt.pixelRatio=1,Lt.color=Gt.defaultColor,Lt.lineWidth=Gt.defaultStrokeWidth,Lt.pixelRatio=Gt.freehandPixelRatio,Lt.setColor=Lt.setColor.bind(Lt),Lt.addCanvas=Lt.addCanvas.bind(Lt),Lt.finishCreation=Lt.finishCreation.bind(Lt),Lt.setLineWidth=Lt.setLineWidth.bind(Lt),Lt.colorPanel=new At("Color",Gt.defaultColorSet,Gt.defaultColor),Lt.colorPanel.onColorChanged=Lt.setColor,Lt.lineWidthPanel=new Pe("Line width",Gt.defaultStrokeWidths,Gt.defaultStrokeWidth),Lt.lineWidthPanel.onWidthChanged=Lt.setLineWidth,Lt}return Jt(Ct,Nt),Ct.prototype.ownsTarget=function(St){return!(!Nt.prototype.ownsTarget.call(this,St)&&St!==this.visual&&St!==this.drawingImage)},Ct.prototype.createVisual=function(){this.visual=he.createGroup(),this.drawingImage=he.createImage(),this.visual.appendChild(this.drawingImage);var St=he.createTransform();this.visual.transform.baseVal.appendItem(St),this.addMarkerVisualToContainer(this.visual)},Ct.prototype.pointerDown=function(St,Bt){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(St.x,St.y),this.drawing=!0):Nt.prototype.pointerDown.call(this,St,Bt)},Ct.prototype.manipulate=function(St){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(St.x,St.y),this.canvasContext.stroke()):Nt.prototype.manipulate.call(this,St)},Ct.prototype.resize=function(St){Nt.prototype.resize.call(this,St),he.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),he.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},Ct.prototype.pointerUp=function(St){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):Nt.prototype.pointerUp.call(this,St)},Ct.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)},Ct.prototype.select=function(){this.state==="creating"&&this.finishCreation(),Nt.prototype.select.call(this)},Ct.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),Nt.prototype.deselect.call(this)},Ct.prototype.finishCreation=function(){for(var St=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),Bt=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],Gt=Bt[0],Lt=Bt[1],ie=Bt[2],Ke=Bt[3],ln=!1,hn=0;hn<this.canvasElement.height;hn++)for(var Jn=0;Jn<this.canvasElement.width;Jn++)St.data[hn*this.canvasElement.width*4+4*Jn+3]>0&&(ln=!0,hn<Lt&&(Lt=hn),Jn<Gt&&(Gt=Jn),hn>Ke&&(Ke=hn),Jn>ie&&(ie=Jn));if(ln){this.left=Gt/this.pixelRatio,this.top=Lt/this.pixelRatio,this.width=(ie-Gt)/this.pixelRatio,this.height=(Ke-Lt)/this.pixelRatio;var di=document.createElement("canvas");di.width=ie-Gt,di.height=Ke-Lt,di.getContext("2d").putImageData(this.canvasContext.getImageData(Gt,Lt,ie-Gt,Ke-Lt),0,0),this.drawingImgUrl=di.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},Ct.prototype.setDrawingImage=function(){he.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),he.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},Ct.prototype.setColor=function(St){this.color=St,this.colorChanged(St)},Ct.prototype.setLineWidth=function(St){this.lineWidth=St},Object.defineProperty(Ct.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),Ct.prototype.getState=function(){var St=Object.assign({drawingImgUrl:this.drawingImgUrl},Nt.prototype.getState.call(this));return St.typeName=Ct.typeName,St},Ct.prototype.restoreState=function(St){this.createVisual(),Nt.prototype.restoreState.call(this,St),this.drawingImgUrl=St.drawingImgUrl,this.setDrawingImage()},Ct.prototype.scale=function(St,Bt){Nt.prototype.scale.call(this,St,Bt),this.setDrawingImage()},Ct.typeName="FreehandMarker",Ct.title="Freehand marker",Ct.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>',Ct}(ne),de=function(Nt){function Ct(St,Bt,Gt){var Lt=Nt.call(this,St,Gt||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return Lt.typeBoxes=[],Lt.currentType=Bt,Lt.setCurrentType=Lt.setCurrentType.bind(Lt),Lt}return Jt(Ct,Nt),Ct.prototype.getUi=function(){var St=this,Bt=document.createElement("div");Bt.style.display="flex",Bt.style.overflow="hidden",Bt.style.flexGrow="2";for(var Gt=function(Ke){var ln="both";switch(Ke){case 0:ln="both";break;case 1:ln="start";break;case 2:ln="end";break;case 3:ln="none"}var hn=document.createElement("div");if(hn.style.display="flex",hn.style.flexGrow="2",hn.style.alignItems="center",hn.style.justifyContent="space-between",hn.style.padding="5px",hn.style.borderWidth="2px",hn.style.borderStyle="solid",hn.style.borderColor=ln===Lt.currentType?Lt.uiStyleSettings.toolboxAccentColor:"transparent",hn.addEventListener("click",function(){St.setCurrentType(ln,hn)}),Bt.appendChild(hn),ln==="both"||ln==="start"){var Jn=document.createElement("div");Jn.style.display="flex",Jn.style.alignItems="center",Jn.style.minHeight="20px",Jn.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="`+(Lt.uiStyleSettings!==void 0?Lt.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
</svg>`,Jn.style.marginLeft="5px",hn.appendChild(Jn)}var di=document.createElement("div");di.style.display="flex",di.style.alignItems="center",di.style.minHeight="20px",di.style.flexGrow="2";var fi=document.createElement("hr");if(fi.style.minWidth="20px",fi.style.border="0px",fi.style.borderTop="3px solid "+(Lt.uiStyleSettings!==void 0?Lt.uiStyleSettings.toolboxColor:"#eeeeee"),fi.style.flexGrow="2",di.appendChild(fi),hn.appendChild(di),ln==="both"||ln==="end"){var pi=document.createElement("div");pi.style.display="flex",pi.style.alignItems="center",pi.style.minHeight="20px",pi.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="`+(Lt.uiStyleSettings!==void 0?Lt.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
</svg>`,pi.style.marginRight="5px",hn.appendChild(pi)}Lt.typeBoxes.push(hn)},Lt=this,ie=0;ie<4;ie++)Gt(ie);return Bt},Ct.prototype.setCurrentType=function(St,Bt){var Gt=this;this.currentType=St,this.typeBoxes.forEach(function(Lt){Lt.style.borderColor=Lt===Bt?Gt.uiStyleSettings!==void 0?Gt.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},Ct}(yt),Wt=function(Nt){function Ct(St,Bt,Gt){var Lt=Nt.call(this,St,Bt,Gt)||this;return Lt.arrowType="end",Lt.arrowBaseHeight=10,Lt.arrowBaseWidth=10,Lt.getArrowPoints=Lt.getArrowPoints.bind(Lt),Lt.setArrowType=Lt.setArrowType.bind(Lt),Lt.arrowTypePanel=new de("Arrow type","end"),Lt.arrowTypePanel.onArrowTypeChanged=Lt.setArrowType,Lt}return Jt(Ct,Nt),Ct.prototype.ownsTarget=function(St){return!(!Nt.prototype.ownsTarget.call(this,St)&&St!==this.arrow1&&St!==this.arrow2)},Ct.prototype.getArrowPoints=function(St,Bt){var Gt=this.arrowBaseWidth+2*this.strokeWidth,Lt=this.arrowBaseHeight+2*this.strokeWidth;return St-Gt/2+","+(Bt+Lt/2)+" "+St+","+(Bt-Lt/2)+" "+(St+Gt/2)+","+(Bt+Lt/2)},Ct.prototype.createTips=function(){this.arrow1=he.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(he.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=he.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(he.createTransform()),this.visual.appendChild(this.arrow2)},Ct.prototype.pointerDown=function(St,Bt){Nt.prototype.pointerDown.call(this,St,Bt),this.state==="creating"&&this.createTips()},Ct.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",he.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),he.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var St=0;Math.abs(this.x1-this.x2)>.1&&(St=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var Bt=this.arrow1.transform.baseVal.getItem(0);Bt.setRotate(St,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(Bt,0);var Gt=this.arrow2.transform.baseVal.getItem(0);Gt.setRotate(St+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(Gt,0)}},Ct.prototype.setArrowType=function(St){this.arrowType=St,this.adjustVisual(),this.stateChanged()},Object.defineProperty(Ct.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),Ct.prototype.getState=function(){var St=Object.assign({arrowType:this.arrowType},Nt.prototype.getState.call(this));return St.typeName=Ct.typeName,St},Ct.prototype.restoreState=function(St){Nt.prototype.restoreState.call(this,St);var Bt=St;this.arrowType=Bt.arrowType,this.createTips(),this.adjustVisual()},Ct.typeName="ArrowMarker",Ct.title="Arrow marker",Ct.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',Ct}(Ie),xe=function(Nt){function Ct(St,Bt,Gt){var Lt=Nt.call(this,St,Bt,Gt)||this;return Lt.fillColor=Gt.defaultFillColor,Lt.strokeWidth=0,Lt.fillPanel=new At("Color",Gt.defaultColorSet,Gt.defaultFillColor),Lt.fillPanel.onColorChanged=Lt.setFillColor,Lt}return Jt(Ct,Nt),Object.defineProperty(Ct.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),Ct.prototype.getState=function(){var St=Nt.prototype.getState.call(this);return St.typeName=Ct.typeName,St},Ct.typeName="CoverMarker",Ct.title="Cover marker",Ct.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',Ct}(_t),nn=function(Nt){function Ct(St,Bt,Gt,Lt){var ie=Nt.call(this,St,Lt||'<svg viewBox="0 0 24 24"><path d="M17.66 8L12 2.35 6.34 8A8.02 8.02 0 004 13.64c0 2 .78 4.11 2.34 5.67a7.99 7.99 0 0011.32 0c1.56-1.56 2.34-3.67 2.34-5.67S19.22 9.56 17.66 8M6 14c0-2 .62-3.27 1.76-4.4L12 5.27l4.24 4.38C17.38 10.77 18 12 18 14H6z"/></svg>')||this;return ie.opacities=[],ie.opacityBoxes=[],ie.opacities=Bt,ie.currentOpacity=Gt,ie.setCurrentOpacity=ie.setCurrentOpacity.bind(ie),ie}return Jt(Ct,Nt),Ct.prototype.getUi=function(){var St=this,Bt=document.createElement("div");return Bt.style.display="flex",Bt.style.overflow="hidden",Bt.style.flexGrow="2",Bt.style.justifyContent="space-between",this.opacities.forEach(function(Gt){var Lt=document.createElement("div");Lt.style.display="flex",Lt.style.alignItems="center",Lt.style.justifyContent="center",Lt.style.padding="5px",Lt.style.borderWidth="2px",Lt.style.borderStyle="solid",Lt.style.borderColor=Gt===St.currentOpacity?St.uiStyleSettings.toolboxAccentColor:"transparent",Lt.addEventListener("click",function(){St.setCurrentOpacity(Gt,Lt)}),Bt.appendChild(Lt);var ie=document.createElement("div");ie.innerText=100*Gt+"%",Lt.appendChild(ie),St.opacityBoxes.push(Lt)}),Bt},Ct.prototype.setCurrentOpacity=function(St,Bt){var Gt=this;this.currentOpacity=St,this.opacityBoxes.forEach(function(Lt){Lt.style.borderColor=Lt===Bt?Gt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},Ct}(yt),dn=function(Nt){function Ct(St,Bt,Gt){var Lt=Nt.call(this,St,Bt,Gt)||this;return Lt.setOpacity=Lt.setOpacity.bind(Lt),Lt.fillColor=Gt.defaultHighlightColor,Lt.strokeWidth=0,Lt.opacity=Gt.defaultHighlightOpacity,Lt.fillPanel=new At("Color",Gt.defaultColorSet,Lt.fillColor),Lt.fillPanel.onColorChanged=Lt.setFillColor,Lt.opacityPanel=new nn("Opacity",Gt.defaultOpacitySteps,Lt.opacity),Lt.opacityPanel.onOpacityChanged=Lt.setOpacity,Lt}return Jt(Ct,Nt),Ct.prototype.setOpacity=function(St){this.opacity=St,this.visual&&he.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(Ct.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),Ct.prototype.getState=function(){var St=Nt.prototype.getState.call(this);return St.typeName=Ct.typeName,St},Ct.typeName="HighlightMarker",Ct.title="Highlight marker",Ct.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>',Ct}(xe),ge='<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>',we='<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>',Je=function(Nt){function Ct(St,Bt,Gt){var Lt=Nt.call(this,St,Bt,Gt)||this;return Lt.bgColor="transparent",Lt.tipPosition={x:0,y:0},Lt.tipBase1Position={x:0,y:0},Lt.tipBase2Position={x:0,y:0},Lt.tipMoving=!1,Lt.color=Gt.defaultStrokeColor,Lt.bgColor=Gt.defaultFillColor,Lt.fontFamily=Gt.defaultFontFamily,Lt.defaultSize={x:100,y:30},Lt.setBgColor=Lt.setBgColor.bind(Lt),Lt.getTipPoints=Lt.getTipPoints.bind(Lt),Lt.positionTip=Lt.positionTip.bind(Lt),Lt.setTipPoints=Lt.setTipPoints.bind(Lt),Lt.colorPanel=new At("Text color",Gt.defaultColorSet,Lt.color,ge),Lt.colorPanel.onColorChanged=Lt.setColor,Lt.bgColorPanel=new At("Fill color",Gt.defaultColorSet,Lt.bgColor,we),Lt.bgColorPanel.onColorChanged=Lt.setBgColor,Lt.fontFamilyPanel=new an("Font",Gt.defaultFontFamilies,Gt.defaultFontFamily),Lt.fontFamilyPanel.onFontChanged=Lt.setFont,Lt.tipGrip=new Qt,Lt.tipGrip.visual.transform.baseVal.appendItem(he.createTransform()),Lt.controlBox.appendChild(Lt.tipGrip.visual),Lt}return Jt(Ct,Nt),Ct.prototype.ownsTarget=function(St){return Nt.prototype.ownsTarget.call(this,St)||this.tipGrip.ownsTarget(St)||this.tip===St},Ct.prototype.createTip=function(){he.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=he.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},Ct.prototype.pointerDown=function(St,Bt){this.state==="new"&&Nt.prototype.pointerDown.call(this,St,Bt),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(Bt)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):Nt.prototype.pointerDown.call(this,St,Bt)},Ct.prototype.pointerUp=function(St){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,Nt.prototype.pointerUp.call(this,St);else{var Bt=this.state==="creating";Nt.prototype.pointerUp.call(this,St),this.setTipPoints(Bt),this.positionTip()}},Ct.prototype.manipulate=function(St){if(this.tipMoving){var Bt=this.unrotatePoint(St);this.tipPosition={x:Bt.x-this.manipulationStartLeft,y:Bt.y-this.manipulationStartTop},this.positionTip()}else Nt.prototype.manipulate.call(this,St)},Ct.prototype.setBgColor=function(St){this.bgRectangle&&this.tip&&(he.setAttributes(this.bgRectangle,[["fill",St]]),he.setAttributes(this.tip,[["fill",St]])),this.bgColor=St,this.fillColorChanged(St)},Ct.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},Ct.prototype.setTipPoints=function(St){St===void 0&&(St=!1);var Bt=Math.min(this.height/2,15),Gt=this.height/5;St&&(this.tipPosition={x:Bt+Gt/2,y:this.height+20});var Lt=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?Lt<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(Gt=this.width/5,Bt=Math.min(this.width/2,15),this.tipBase1Position={x:Bt,y:0},this.tipBase2Position={x:Bt+Gt,y:0}):(this.tipBase1Position={x:0,y:Bt},this.tipBase2Position={x:0,y:Bt+Gt}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?Lt<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(Gt=this.width/5,Bt=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-Bt-Gt,y:0},this.tipBase2Position={x:this.width-Bt,y:0}):(this.tipBase1Position={x:this.width,y:Bt},this.tipBase2Position={x:this.width,y:Bt+Gt}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?Lt<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(Gt=this.width/5,Bt=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-Bt-Gt,y:this.height},this.tipBase2Position={x:this.width-Bt,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-Bt-Gt},this.tipBase2Position={x:this.width,y:this.height-Bt}):Lt<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(Gt=this.width/5,Bt=Math.min(this.width/2,15),this.tipBase1Position={x:Bt,y:this.height},this.tipBase2Position={x:Bt+Gt,y:this.height}):(this.tipBase1Position={x:0,y:this.height-Bt},this.tipBase2Position={x:0,y:this.height-Bt-Gt})},Ct.prototype.resize=function(St){Nt.prototype.resize.call(this,St),this.positionTip()},Ct.prototype.positionTip=function(){he.setAttributes(this.tip,[["points",this.getTipPoints()]]);var St=this.tipGrip.visual.transform.baseVal.getItem(0);St.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(St,0)},Object.defineProperty(Ct.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),Ct.prototype.select=function(){this.positionTip(),Nt.prototype.select.call(this)},Ct.prototype.getState=function(){var St=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},Nt.prototype.getState.call(this));return St.typeName=Ct.typeName,St},Ct.prototype.restoreState=function(St){var Bt=St;this.bgColor=Bt.bgColor,this.tipPosition=Bt.tipPosition,Nt.prototype.restoreState.call(this,St),this.createTip(),this.setTipPoints()},Ct.prototype.scale=function(St,Bt){Nt.prototype.scale.call(this,St,Bt),this.tipPosition={x:this.tipPosition.x*St,y:this.tipPosition.y*Bt},this.positionTip()},Ct.typeName="CalloutMarker",Ct.title="Callout marker",Ct.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>',Ct}(Gn),Bn=function(Nt){function Ct(St,Bt,Gt){var Lt=Nt.call(this,St,Bt,Gt)||this;return Lt.fillColor="transparent",Lt.strokeColor="transparent",Lt.strokeWidth=0,Lt.strokeDasharray="",Lt.opacity=1,Lt.strokeColor=Gt.defaultColor,Lt.strokeWidth=Gt.defaultStrokeWidth,Lt.strokeDasharray=Gt.defaultStrokeDasharray,Lt.fillColor=Gt.defaultFillColor,Lt.setStrokeColor=Lt.setStrokeColor.bind(Lt),Lt.setFillColor=Lt.setFillColor.bind(Lt),Lt.setStrokeWidth=Lt.setStrokeWidth.bind(Lt),Lt.setStrokeDasharray=Lt.setStrokeDasharray.bind(Lt),Lt.setOpacity=Lt.setOpacity.bind(Lt),Lt.createVisual=Lt.createVisual.bind(Lt),Lt.strokePanel=new At("Line color",ve(Gt.defaultColorSet,["transparent"]),Gt.defaultColor),Lt.strokePanel.onColorChanged=Lt.setStrokeColor,Lt.fillPanel=new At("Fill color",ve(Gt.defaultColorSet,["transparent"]),Lt.fillColor,we),Lt.fillPanel.onColorChanged=Lt.setFillColor,Lt.strokeWidthPanel=new Pe("Line width",Gt.defaultStrokeWidths,Gt.defaultStrokeWidth),Lt.strokeWidthPanel.onWidthChanged=Lt.setStrokeWidth,Lt.strokeStylePanel=new ue("Line style",Gt.defaultStrokeDasharrays,Gt.defaultStrokeDasharray),Lt.strokeStylePanel.onStyleChanged=Lt.setStrokeDasharray,Lt.opacityPanel=new nn("Opacity",Gt.defaultOpacitySteps,Lt.opacity),Lt.opacityPanel.onOpacityChanged=Lt.setOpacity,Lt}return Jt(Ct,Nt),Ct.prototype.ownsTarget=function(St){return!(!Nt.prototype.ownsTarget.call(this,St)&&St!==this.visual)},Ct.prototype.createVisual=function(){this.visual=he.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)},Ct.prototype.pointerDown=function(St,Bt){Nt.prototype.pointerDown.call(this,St,Bt),this.state==="new"&&(this.createVisual(),this.moveVisual(St),this._state="creating")},Ct.prototype.manipulate=function(St){Nt.prototype.manipulate.call(this,St)},Ct.prototype.resize=function(St){Nt.prototype.resize.call(this,St),this.setSize()},Ct.prototype.setSize=function(){Nt.prototype.setSize.call(this),he.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},Ct.prototype.pointerUp=function(St){Nt.prototype.pointerUp.call(this,St),this.setSize()},Ct.prototype.setStrokeColor=function(St){this.strokeColor=St,this.visual&&he.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(St),this.stateChanged()},Ct.prototype.setFillColor=function(St){this.fillColor=St,this.visual&&he.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(St),this.stateChanged()},Ct.prototype.setStrokeWidth=function(St){this.strokeWidth=St,this.visual&&he.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Ct.prototype.setStrokeDasharray=function(St){this.strokeDasharray=St,this.visual&&he.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Ct.prototype.setOpacity=function(St){this.opacity=St,this.visual&&he.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(Ct.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),Ct.prototype.getState=function(){var St=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},Nt.prototype.getState.call(this));return St.typeName=Ct.typeName,St},Ct.prototype.restoreState=function(St){var Bt=St;this.fillColor=Bt.fillColor,this.strokeColor=Bt.strokeColor,this.strokeWidth=Bt.strokeWidth,this.strokeDasharray=Bt.strokeDasharray,this.opacity=Bt.opacity,this.createVisual(),Nt.prototype.restoreState.call(this,St),this.setSize()},Ct.prototype.scale=function(St,Bt){Nt.prototype.scale.call(this,St,Bt),this.setSize()},Ct.typeName="EllipseMarker",Ct.title="Ellipse marker",Ct.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>',Ct}(ne),vn=function(Nt){function Ct(St,Bt,Gt){return Nt.call(this,St,Bt,Gt)||this}return Jt(Ct,Nt),Object.defineProperty(Ct.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),Ct.prototype.ownsTarget=function(St){return!(!Nt.prototype.ownsTarget.call(this,St)&&St!==this.tip1&&St!==this.tip2)},Ct.prototype.createTips=function(){this.tip1=he.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(he.createTransform()),this.visual.appendChild(this.tip1),this.tip2=he.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(he.createTransform()),this.visual.appendChild(this.tip2)},Ct.prototype.pointerDown=function(St,Bt){Nt.prototype.pointerDown.call(this,St,Bt),this.state==="creating"&&this.createTips()},Ct.prototype.adjustVisual=function(){if(Nt.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(he.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()]]),he.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 St=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),Bt=this.tip1.transform.baseVal.getItem(0);Bt.setRotate(St,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(Bt,0);var Gt=this.tip2.transform.baseVal.getItem(0);Gt.setRotate(St+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(Gt,0)}},Object.defineProperty(Ct.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Ct.prototype.getState=function(){var St=Nt.prototype.getState.call(this);return St.typeName=Ct.typeName,St},Ct.prototype.restoreState=function(St){Nt.prototype.restoreState.call(this,St),this.createTips(),this.adjustVisual()},Ct.typeName="MeasurementMarker",Ct.title="Measurement marker",Ct.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>',Ct}(Ie),zn=function(Nt){function Ct(St,Bt,Gt){var Lt=Nt.call(this,St,Bt,Gt)||this;return Lt.strokePanel.colors=Gt.defaultColorSet,Lt.fillColor="transparent",Lt}return Jt(Ct,Nt),Object.defineProperty(Ct.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Ct.prototype.getState=function(){var St=Nt.prototype.getState.call(this);return St.typeName=Ct.typeName,St},Ct.typeName="EllipseFrameMarker",Ct.title="Ellipse frame marker",Ct.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>',Ct}(Bn),ae=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(Ct){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(Ct)||(this.undoStack.push(Ct),JSON.stringify(this.lastRedoStep)!==JSON.stringify(Ct)&&this.redoStack.splice(0,this.redoStack.length))},Nt.prototype.replaceLastUndoStep=function(Ct){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=Ct)},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 Ct=this.undoStack.pop();return Ct!==void 0&&this.redoStack.push(Ct),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}(),mn=function(Nt){function Ct(St,Bt,Gt){var Lt=Nt.call(this,St,Bt,Gt)||this;return Lt.strokeColor="transparent",Lt.strokeWidth=0,Lt.strokeDasharray="",Lt.curveX=0,Lt.curveY=0,Lt.manipulationStartCurveX=0,Lt.manipulationStartCurveY=0,Lt.setStrokeColor=Lt.setStrokeColor.bind(Lt),Lt.setStrokeWidth=Lt.setStrokeWidth.bind(Lt),Lt.setStrokeDasharray=Lt.setStrokeDasharray.bind(Lt),Lt.positionGrips=Lt.positionGrips.bind(Lt),Lt.addControlGrips=Lt.addControlGrips.bind(Lt),Lt.adjustVisual=Lt.adjustVisual.bind(Lt),Lt.setupControlBox=Lt.setupControlBox.bind(Lt),Lt.resize=Lt.resize.bind(Lt),Lt.strokeColor=Gt.defaultColor,Lt.strokeWidth=Gt.defaultStrokeWidth,Lt.strokeDasharray=Gt.defaultStrokeDasharray,Lt.strokePanel=new At("Line color",Gt.defaultColorSet,Gt.defaultColor),Lt.strokePanel.onColorChanged=Lt.setStrokeColor,Lt.strokeWidthPanel=new Pe("Line width",Gt.defaultStrokeWidths,Gt.defaultStrokeWidth),Lt.strokeWidthPanel.onWidthChanged=Lt.setStrokeWidth,Lt.strokeStylePanel=new ue("Line style",Gt.defaultStrokeDasharrays,Gt.defaultStrokeDasharray),Lt.strokeStylePanel.onStyleChanged=Lt.setStrokeDasharray,Lt}return Jt(Ct,Nt),Ct.prototype.ownsTarget=function(St){return!(!Nt.prototype.ownsTarget.call(this,St)&&St!==this.visual&&St!==this.selectorCurve&&St!==this.visibleCurve&&!this.curveGrip.ownsTarget(St))},Ct.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},Ct.prototype.createVisual=function(){this.visual=he.createGroup(),this.selectorCurve=he.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=he.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)},Ct.prototype.pointerDown=function(St,Bt){Nt.prototype.pointerDown.call(this,St,Bt),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=St.x,this.curveY=St.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(Bt)&&(this.activeGrip=this.curveGrip,this._state="resize")},Ct.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),he.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),he.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),he.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},Ct.prototype.setupControlBox=function(){Nt.prototype.setupControlBox.call(this),this.curveControlLine1=he.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=he.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)},Ct.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,Nt.prototype.addControlGrips.call(this)},Ct.prototype.positionGrips=function(){Nt.prototype.positionGrips.call(this);var St=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-St/2,this.curveY-St/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()))},Ct.prototype.manipulate=function(St){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+St.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+St.y-this.manipulationStartY),Nt.prototype.manipulate.call(this,St)},Ct.prototype.resize=function(St){this.activeGrip===this.curveGrip&&(this.curveX=St.x,this.curveY=St.y),Nt.prototype.resize.call(this,St),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},Ct.prototype.setStrokeColor=function(St){this.strokeColor=St,this.adjustVisual(),this.colorChanged(St)},Ct.prototype.setStrokeWidth=function(St){this.strokeWidth=St,this.adjustVisual()},Ct.prototype.setStrokeDasharray=function(St){this.strokeDasharray=St,this.adjustVisual()},Ct.prototype.scale=function(St,Bt){this.curveX=this.curveX*St,this.curveY=this.curveY*Bt,Nt.prototype.scale.call(this,St,Bt)},Object.defineProperty(Ct.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Ct.prototype.getState=function(){var St=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},Nt.prototype.getState.call(this));return St.typeName=Ct.typeName,St},Ct.prototype.restoreState=function(St){Nt.prototype.restoreState.call(this,St);var Bt=St;this.strokeColor=Bt.strokeColor,this.strokeWidth=Bt.strokeWidth,this.strokeDasharray=Bt.strokeDasharray,this.curveX=Bt.curveX,this.curveY=Bt.curveY,this.createVisual(),this.adjustVisual()},Ct.typeName="CurveMarker",Ct.title="Curve marker",Ct.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>',Ct}(Ae),ti=function(Nt){function Ct(St,Bt,Gt){var Lt=Nt.call(this,St,Bt,Gt)||this;return Lt.fillColor="transparent",Lt.strokeColor="transparent",Lt.strokeWidth=0,Lt.strokeDasharray="",Lt.textColor="transparent",Lt.fontSize="1rem",Lt.isMoved=!1,Lt.captionText="Caption",Lt.PADDING=5,Lt.captionBoxWidth=0,Lt.captionBoxHeight=0,Lt.strokeColor=Gt.defaultColor,Lt.strokeWidth=Gt.defaultStrokeWidth,Lt.strokeDasharray=Gt.defaultStrokeDasharray,Lt.fillColor=Gt.defaultFillColor,Lt.textColor=Gt.defaultStrokeColor,Lt.fontFamily=Gt.defaultFontFamily,Lt.fontSize=Gt.defaultCaptionFontSize,Lt.captionText=Gt.defaultCaptionText,Lt.setStrokeColor=Lt.setStrokeColor.bind(Lt),Lt.setFillColor=Lt.setFillColor.bind(Lt),Lt.setStrokeWidth=Lt.setStrokeWidth.bind(Lt),Lt.setStrokeDasharray=Lt.setStrokeDasharray.bind(Lt),Lt.createVisual=Lt.createVisual.bind(Lt),Lt.sizeCaption=Lt.sizeCaption.bind(Lt),Lt.setCaptionText=Lt.setCaptionText.bind(Lt),Lt.showTextEditor=Lt.showTextEditor.bind(Lt),Lt.positionTextEditor=Lt.positionTextEditor.bind(Lt),Lt.finishTextEditing=Lt.finishTextEditing.bind(Lt),Lt.setFont=Lt.setFont.bind(Lt),Lt.setTextColor=Lt.setTextColor.bind(Lt),Lt.strokePanel=new At("Line color",ve(Gt.defaultColorSet,["transparent"]),Lt.strokeColor),Lt.strokePanel.onColorChanged=Lt.setStrokeColor,Lt.fillPanel=new At("Fill color",ve(Gt.defaultColorSet,["transparent"]),Lt.fillColor,we),Lt.fillPanel.onColorChanged=Lt.setFillColor,Lt.strokeWidthPanel=new Pe("Line width",Gt.defaultStrokeWidths,Gt.defaultStrokeWidth),Lt.strokeWidthPanel.onWidthChanged=Lt.setStrokeWidth,Lt.strokeStylePanel=new ue("Line style",Gt.defaultStrokeDasharrays,Gt.defaultStrokeDasharray),Lt.strokeStylePanel.onStyleChanged=Lt.setStrokeDasharray,Lt.fontFamilyPanel=new an("Font",Gt.defaultFontFamilies,Gt.defaultFontFamily),Lt.fontFamilyPanel.onFontChanged=Lt.setFont,Lt.textColorPanel=new At("Text color",Gt.defaultColorSet,Lt.textColor,ge),Lt.textColorPanel.onColorChanged=Lt.setTextColor,Lt}return Jt(Ct,Nt),Ct.prototype.ownsTarget=function(St){return!(!Nt.prototype.ownsTarget.call(this,St)&&St!==this.visual&&St!==this.frame&&St!==this.captionBg&&St!==this.captionElement)},Ct.prototype.createVisual=function(){this.visual=he.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=he.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=he.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=he.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()},Ct.prototype.setCaptionText=function(St){this.captionText=St,this.captionElement.textContent=this.captionText,this.sizeCaption()},Ct.prototype.pointerDown=function(St,Bt){Nt.prototype.pointerDown.call(this,St,Bt),this.isMoved=!1,this.pointerDownPoint=St,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(St),this._state="creating")},Ct.prototype.manipulate=function(St){Nt.prototype.manipulate.call(this,St),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(St.x-this.pointerDownPoint.x)>5||Math.abs(St.y-this.pointerDownPoint.y)>5)},Ct.prototype.resize=function(St){Nt.prototype.resize.call(this,St),this.setSize()},Ct.prototype.sizeCaption=function(){var St=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=St.width+2*this.PADDING,this.captionBoxHeight=St.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),he.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')"]]),he.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')"]])},Ct.prototype.showTextEditor=function(){var St=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(Bt){Bt.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(Bt){Bt.key==="Enter"&&St.finishTextEditing(St.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(Bt){Bt.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){St.finishTextEditing(St.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){St.finishTextEditing(St.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},Ct.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"))},Ct.prototype.finishTextEditing=function(St){this.setCaptionText(St.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},Ct.prototype.setFont=function(St){this.captionElement&&he.setAttributes(this.captionElement,[["font-family",St]]),this.fontFamily=St,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},Ct.prototype.setTextColor=function(St){this.captionElement&&he.setAttributes(this.captionElement,[["fill",St]]),this.textColor=St,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},Ct.prototype.setSize=function(){Nt.prototype.setSize.call(this),he.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},Ct.prototype.pointerUp=function(St){Nt.prototype.pointerUp.call(this,St),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},Ct.prototype.dblClick=function(St,Bt){Nt.prototype.dblClick.call(this,St,Bt),this.showTextEditor()},Ct.prototype.setStrokeColor=function(St){this.strokeColor=St,this.frame&&he.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(St),this.stateChanged()},Ct.prototype.setFillColor=function(St){this.fillColor=St,this.captionBg&&he.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(St),this.stateChanged()},Ct.prototype.setStrokeWidth=function(St){this.strokeWidth=St,this.frame&&he.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Ct.prototype.setStrokeDasharray=function(St){this.strokeDasharray=St,this.frame&&he.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(Ct.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),Ct.prototype.getState=function(){var St=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 St.typeName=this.typeName,St},Ct.prototype.restoreState=function(St){var Bt=St;this.fillColor=Bt.fillColor,this.strokeColor=Bt.strokeColor,this.strokeWidth=Bt.strokeWidth,this.strokeDasharray=Bt.strokeDasharray,this.textColor=Bt.textColor,this.fontFamily=Bt.fontFamily,this.captionText=Bt.captionText,this.fontSize=Bt.fontSize,this.createVisual(),Nt.prototype.restoreState.call(this,St),this.setSize()},Ct.prototype.scale=function(St,Bt){Nt.prototype.scale.call(this,St,Bt),this.setSize()},Ct.typeName="CaptionFrameMarker",Ct.title="Caption frame marker",Ct.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>',Ct}(ne),Wn=function(){function Nt(Ct,St){St===void 0&&(St=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=Ct,this.cancelable=St}return Object.defineProperty(Nt.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),Nt.prototype.preventDefault=function(){this._defaultPrevented=!0},Nt}(),ii=function(Nt){function Ct(St,Bt,Gt){var Lt=Nt.call(this,St,!1)||this;return Lt.dataUrl=Bt,Lt.state=Gt,Lt}return Jt(Ct,Nt),Ct}(Wn),mi=function(Nt){function Ct(St,Bt,Gt){Gt===void 0&&(Gt=!1);var Lt=Nt.call(this,St,Gt)||this;return Lt.marker=Bt,Lt}return Jt(Ct,Nt),Ct}(Wn),yn=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(Ct,St){this[Ct].push(St)},Nt.prototype.removeEventListener=function(Ct,St){var Bt=this[Ct].indexOf(St);Bt>-1&&this[Ct].splice(Bt,1)},Nt}(),Ge=function(){function Nt(Ct){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new oe,this._isOpen=!1,this.undoRedoManager=new ae,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 yn,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=Nt.instanceCounter++,this.styles=new et(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=Ct,this.targetRoot=document.body,this.width=Ct.clientWidth,this.height=Ct.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[pe,bn,Wt,Gn,zn,Bn,dn,Je,vn,xe,Ie,mn,ti]},enumerable:!1,configurable:!0}),Object.defineProperty(Nt.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[pe,bn,Wt,Gn,Bn,dn,Je]},enumerable:!1,configurable:!0}),Object.defineProperty(Nt.prototype,"BASIC_MARKER_TYPES",{get:function(){return[pe,bn,Wt,Gn,dn]},enumerable:!1,configurable:!0}),Object.defineProperty(Nt.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(Ct){var St=this;this._availableMarkerTypes.splice(0),Ct.forEach(function(Bt){if(typeof Bt=="string"){var Gt=St.ALL_MARKER_TYPES.find(function(Lt){return Lt.typeName===Bt});Gt!==void 0&&St._availableMarkerTypes.push(Gt)}else St._availableMarkerTypes.push(Bt)})},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(Ct){this._zoomLevel=Ct,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(),Oe.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},Nt.prototype.show=function(){var Ct=this;this.styles.styleSheetRoot===void 0&&kt.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=kt.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(St){return St(new Wn(Ct))})},Nt.prototype.render=function(){return Le(this,void 0,void 0,function(){var Ct;return ce(this,function(St){switch(St.label){case 0:return this.setCurrentMarker(),(Ct=new je).naturalSize=this.renderAtNaturalSize,Ct.imageType=this.renderImageType,Ct.imageQuality=this.renderImageQuality,Ct.markersOnly=this.renderMarkersOnly,Ct.width=this.renderWidth,Ct.height=this.renderHeight,[4,Ct.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return St.sent(),[4,Ct.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,St.sent()]}})})},Nt.prototype.close=function(Ct){var St=this;if(Ct===void 0&&(Ct=!1),this.isOpen){var Bt=!1;Ct||this.eventListeners.beforeclose.forEach(function(Gt){var Lt=new Wn(St,!0);Gt(Lt),Lt.defaultPrevented&&(Bt=!0)}),Bt||(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(Gt){return Gt(new Wn(St))}),this.detachEvents(),this._isOpen=!1)}},Nt.prototype.addMarkersToToolbar=function(){for(var Ct,St=[],Bt=0;Bt<arguments.length;Bt++)St[Bt]=arguments[Bt];(Ct=this._availableMarkerTypes).push.apply(Ct,St)},Nt.prototype.addRenderEventListener=function(Ct){this.addEventListener("render",function(St){Ct(St.dataUrl,St.state)})},Nt.prototype.removeRenderEventListener=function(Ct){},Nt.prototype.addCloseEventListener=function(Ct){this.addEventListener("close",function(){Ct()})},Nt.prototype.removeCloseEventListener=function(Ct){},Nt.prototype.setupResizeObserver=function(){var Ct=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){Ct.resize(Ct.target.clientWidth,Ct.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return Ct.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},Nt.prototype.onPopupTargetResize=function(){var Ct=1*this.target.clientWidth/this.target.clientHeight,St=this.editorCanvas.clientWidth/Ct>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*Ct:this.editorCanvas.clientWidth,Bt=St<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/Ct;this.resize(St,Bt)},Nt.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},Nt.prototype.resize=function(Ct,St){this._isResizing=!0;var Bt=Ct/this.imageWidth,Gt=St/this.imageHeight;this.imageWidth=Math.round(Ct),this.imageHeight=Math.round(St),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(Bt,Gt),this._isResizing=!1},Nt.prototype.scaleMarkers=function(Ct,St){var Bt,Gt=this;this._currentMarker&&this._currentMarker instanceof Gn?this._currentMarker.scale(Ct,St):(Bt=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(Lt){Lt!==Gt._currentMarker&&Lt.scale(Ct,St)}),Bt!==void 0&&this.setCurrentMarker(Bt)},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 Ct=this.editingTarget.getBoundingClientRect(),St=this.editorCanvas.getBoundingClientRect();this.left=Ct.left-St.left,this.top=Ct.top-St.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 Ct,St=[],Bt=0;Bt<arguments.length;Bt++)St[Bt]=arguments[Bt];this.defs=he.createDefs(),this.addDefsToImage(),(Ct=this.defs).append.apply(Ct,St)},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 Ct=document.createElement("a");Ct.href="https://markerjs.com/",Ct.target="_blank",Ct.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>',Ct.title="Powered by marker.js",Ct.style.display="grid",Ct.style.alignItems="center",Ct.style.justifyItems="center",Ct.style.padding="3px",Ct.style.width="20px",Ct.style.height="20px",this.logoUI.appendChild(Ct),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 Ct=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=Ct+"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 lt(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 pt(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(Ct){this.markerImage.removeChild(Ct.container),this.markers.indexOf(Ct)>-1&&this.markers.splice(this.markers.indexOf(Ct),1),Ct.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(Ct,St){if(Ct==="marker"&&St!==void 0)this.createNewMarker(St);else if(Ct==="action")switch(St){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 Ct=this;if(this._currentMarker!==void 0){var St=!1;if(this.eventListeners.markerbeforedelete.forEach(function(Gt){var Lt=new mi(Ct,Ct._currentMarker,!0);Gt(Lt),Lt.defaultPrevented&&(St=!0)}),!St){var Bt=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(Gt){return Gt(new mi(Ct,Bt))})}}},Nt.prototype.clear=function(){var Ct=this,St=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(ie){var Ke=new mi(Ct,void 0,!0);ie(Ke),Ke.defaultPrevented&&(St=!0)}),!St)){this.setCurrentMarker();for(var Bt=function(ie){var Ke=Gt.markers[ie];Gt.setCurrentMarker(Gt.markers[ie]),Gt._currentMarker.dispose(),Gt.markerImage.removeChild(Gt._currentMarker.container),Gt.markers.splice(Gt.markers.indexOf(Gt._currentMarker),1),Gt.eventListeners.markerdelete.forEach(function(ln){return ln(new mi(Ct,Ke))})},Gt=this,Lt=this.markers.length-1;Lt>=0;Lt--)Bt(Lt);this.addUndoStep()}},Object.defineProperty(Nt.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),Nt.prototype.showNotesEditor=function(){var Ct;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=(Ct=this._currentMarker.notes)!==null&&Ct!==void 0?Ct:"",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 Ct=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var St=this.getState(),Bt=this.undoRedoManager.getLastUndoStep();if(!Bt||Bt.width===St.width&&Bt.height===St.height){var Gt=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(St),Gt<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(Lt){return Lt(new Wn(Ct))})}else this.undoRedoManager.replaceLastUndoStep(St),this.eventListeners.statechange.forEach(function(Lt){return Lt(new Wn(Ct))})}},Nt.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},Nt.prototype.undoStep=function(){var Ct=this,St=this.undoRedoManager.undo();St!==void 0&&(this.restoreState(St),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(Bt){return Bt(new Wn(Ct))}))},Nt.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},Nt.prototype.redoStep=function(){var Ct=this,St=this.undoRedoManager.redo();St!==void 0&&(this.restoreState(St),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(Bt){return Bt(new Wn(Ct))}))},Nt.prototype.stepZoom=function(){var Ct=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=Ct<this.zoomSteps.length-1?this.zoomSteps[Ct+1]:this.zoomSteps[0]},Nt.prototype.panTo=function(Ct){this.contentDiv.scrollBy({left:this.prevPanPoint.x-Ct.x,top:this.prevPanPoint.y-Ct.y}),this.prevPanPoint=Ct},Nt.prototype.startRenderAndClose=function(){return Le(this,void 0,void 0,function(){var Ct,St,Bt=this;return ce(this,function(Gt){switch(Gt.label){case 0:return[4,this.render()];case 1:return Ct=Gt.sent(),St=this.getState(),this.eventListeners.render.forEach(function(Lt){return Lt(new ii(Bt,Ct,St))}),this.close(!0),[2]}})})},Nt.prototype.getState=function(Ct){Ct===!0&&this.setCurrentMarker();var St={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(Bt){return St.markers.push(Bt.getState())}),St},Nt.prototype.restoreState=function(Ct){var St=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);Ct.markers.forEach(function(Bt){var Gt=St._availableMarkerTypes.find(function(ie){return ie.typeName===Bt.typeName});if(Gt!==void 0){var Lt=St.addNewMarker(Gt);Lt.restoreState(Bt),St.markers.push(Lt)}}),Ct.width&&Ct.height&&(Ct.width!==this.imageWidth||Ct.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/Ct.width,this.imageHeight/Ct.height),this.eventListeners.restorestate.forEach(function(Bt){return Bt(new Wn(St))})},Nt.prototype.addNewMarker=function(Ct){var St=he.createGroup();return this.markerImage.appendChild(St),new Ct(St,this.overlayContainer,this.settings)},Nt.prototype.createNewMarker=function(Ct){var St,Bt=this;(St=typeof Ct=="string"?this._availableMarkerTypes.find(function(Gt){return Gt.typeName===Ct}):Ct)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(St),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(St.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(Gt){return Gt(new mi(Bt,Bt._currentMarker))}))},Nt.prototype.markerCreated=function(Ct){var St=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(Ct),this.setCurrentMarker(Ct),Ct instanceof bn&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(bn):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(Bt){return Bt(new mi(St,St._currentMarker))})},Nt.prototype.colorChanged=function(Ct){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=Ct,this.settings.defaultStrokeColor=Ct)},Nt.prototype.fillColorChanged=function(Ct){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=Ct)},Nt.prototype.markerStateChanged=function(Ct){var St=this;this.eventListeners.markerchange.forEach(function(Bt){return Bt(new mi(St,Ct))})},Nt.prototype.setCurrentMarker=function(Ct){var St=this;this._currentMarker!==Ct&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(Bt){return Bt(new mi(St,St._currentMarker))})),this._currentMarker=Ct,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(Bt){return Bt(new mi(St,St._currentMarker))}))},Nt.prototype.onPointerDown=function(Ct){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||Ct.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var St=this.markers.find(function(Bt){return Bt.ownsTarget(Ct.target)});St!==void 0?(this.setCurrentMarker(St),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(Ct.clientX,Ct.clientY),Ct.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:Ct.clientX,y:Ct.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(Ct.clientX,Ct.clientY))},Nt.prototype.onDblClick=function(Ct){if(this._isFocused||this.focus(),this.mode==="select"){var St=this.markers.find(function(Bt){return Bt.ownsTarget(Ct.target)});St!==void 0&&St!==this._currentMarker&&this.setCurrentMarker(St),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(Ct.clientX,Ct.clientY),Ct.target):this.setCurrentMarker()}},Nt.prototype.onPointerMove=function(Ct){this.touchPoints!==1&&Ct.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||Ct.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(Ct.clientX,Ct.clientY)):this.zoomLevel>1&&this.panTo({x:Ct.clientX,y:Ct.clientY}))},Nt.prototype.onPointerUp=function(Ct){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(Ct.clientX,Ct.clientY)),this.isDragging=!1,this.addUndoStep()},Nt.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},Nt.prototype.onKeyUp=function(Ct){this._currentMarker===void 0||this.notesArea!==void 0||Ct.key!=="Delete"&&Ct.key!=="Backspace"||this.deleteSelectedMarker()},Nt.prototype.clientToLocalCoordinates=function(Ct,St){var Bt=this.markerImage.getBoundingClientRect();return{x:(Ct-Bt.left)/this.zoomLevel,y:(St-Bt.top)/this.zoomLevel}},Nt.prototype.onWindowResize=function(){this.positionUI()},Nt.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var Ct=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=Ct+"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(Ct){Oe.addKey(Ct)},Nt.prototype.addEventListener=function(Ct,St){this.eventListeners.addEventListener(Ct,St)},Nt.prototype.removeEventListener=function(Ct,St){this.eventListeners.removeEventListener(Ct,St)},Nt.prototype.renderState=function(Ct){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(Ct),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(Nt.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),Nt.prototype.focus=function(){var Ct=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(St){return St(new Wn(Ct))}))},Nt.prototype.blur=function(){var Ct=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(St){return St(new Wn(Ct))}))},Nt.instanceCounter=0,Nt}(),Ne=Ft(99064),Zn=Ft(955),sn=(Nt,Ct,St)=>new Promise((Bt,Gt)=>{var Lt=ln=>{try{Ke(St.next(ln))}catch(hn){Gt(hn)}},ie=ln=>{try{Ke(St.throw(ln))}catch(hn){Gt(hn)}},Ke=ln=>ln.done?Bt(ln.value):Promise.resolve(ln.value).then(Lt,ie);Ke((St=St.apply(Nt,Ct)).next())}),en=({data:Nt,className:Ct,fullWidth:St,style:Bt={},onClose:Gt,onOk:Lt,showFullTools:ie,noAssociationId:Ke})=>{const ln=(0,ht.useRef)(null),hn=(0,ht.useRef)(null),Jn=(0,ht.useRef)(null),di=(0,ht.useRef)(null),[fi,pi]=(0,ht.useState)(!1),[Bi,qi]=(0,ht.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,ht.useEffect)(()=>(Jn.current||(Jn.current=document.createElement("style"),document.head.appendChild(Jn.current)),Nt!=null&&Nt.visible?(document.body.setAttribute("data-custom","y-hidden"),Jn.current.innerHTML=" html { overflow-y: hidden; }",Nt!=null&&Nt.src&&Qi()):(document.body.removeAttribute("data-custom"),Jn.current&&(document.head.removeChild(Jn.current),Jn.current=null)),()=>{document.body.removeAttribute("data-custom"),Jn.current&&(document.head.removeChild(Jn.current),Jn.current=null)}),[Nt==null?void 0:Nt.visible]);const Qi=()=>sn(void 0,null,function*(){pi(!0),qi("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Ui=yield(0,Zn.ZJ)(Nt==null?void 0:Nt.src);ln.current.src="",ln.current.src=Ui,ln.current.onload=function(){Ti()},pi(!1),qi("")}),Ao=Ui=>sn(void 0,null,function*(){pi(!0),qi("\u6B63\u5728\u4FDD\u5B58\u4E2D");const so=yield(0,Ne.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Nt.title,file:Ui.dataUrl}});so!=null&&so.id&&!Ke?(yield(0,Ne.ZP)(`/api/attachments/${Nt.id}/add_subitem.json`,{method:"post",body:{subitem_id:so==null?void 0:so.id,settings:JSON.stringify(Ui.state)}})).status===0&&Lt():so!=null&&so.id&&Lt(so),pi(!1),qi("")}),Mo=()=>{const Ui=document.querySelector('a[href="https://markerjs.com/"]');Ui&&Ui.parentNode&&(Ui.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(mo=>{const xi=document.querySelector(mo.name);xi&&xi.setAttribute("title",mo.title)})},Ti=()=>{hn.current=new Ge(ln.current),hn.current.targetRoot=di.current,hn.current.addEventListener("render",Ao),hn.current.addEventListener("beforeclose",Gt),ie&&(hn.current.availableMarkerTypes=hn.current.ALL_MARKER_TYPES,hn.current.uiStyleSettings.redoButtonVisible=!0,hn.current.uiStyleSettings.notesButtonVisible=!0,hn.current.uiStyleSettings.zoomButtonVisible=!0,hn.current.uiStyleSettings.zoomOutButtonVisible=!0,hn.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=hn.current.uiStyleSettings,hn.current.show(),Nt!=null&&Nt.snapshotData&&hn.current.restoreState(Nt.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Mo()},300)};return ht.createElement(ht.Fragment,null,(Nt==null?void 0:Nt.visible)&&ht.createElement(Se.Z,{spinning:fi,tip:Bi,style:{position:"absolute",width:"100vw"}},ht.createElement("div",{ref:di,className:Re()(Ht.imageDimensions,Ct,St?Ht.fullWidth:""),style:Bt},ht.createElement("img",{className:Ht.img,ref:ln}))))}},14791:function(Ye,jn,Ft){"use strict";Ft.d(jn,{Z:function(){return mi},$:function(){return ii}});var ht=Ft(59301),Ht={flex_box_center:"flex_box_center___ILe3s",flex_space_between:"flex_space_between___c0XhE",flex_box_vertical_center:"flex_box_vertical_center___Iusj1",flex_box_center_end:"flex_box_center_end___DIVMO",flex_box_column:"flex_box_column___x06LA",intelligentBox:"intelligentBox___M5xO7",red:"red___oyEWt",imgBox:"imgBox___DdoNI",underpin:"underpin___fwUex",row:"row___W9MrK",leftLayout:"leftLayout___MMjoZ",rightLayout:"rightLayout___EsxRX",head:"head___Q7Od8",centerBox:"centerBox___j58Ut",title:"title___rMcNx",tip:"tip___gLHFS",leftBox:"leftBox___DJ6lp",question:"question___THjM9",rightBox:"rightBox___CuMdf",error:"error___PHzCG",actionHead:"actionHead___vTHMx",edit:"edit___EaRLy",option:"option___z4UTy",active:"active___o8wNJ",fill:"fill___g760n",text:"text___L_lug",liWrap:"liWrap___LDwxe",li:"li___k4Mcf",buttonFixed:"buttonFixed___QxKdm",buttonWrap:"buttonWrap___OEep5",button:"button___b2y4h",menu:"menu___aQ4xO",tabs:"tabs___QmlP4",dotLoading:"dotLoading___zUYOu",showHide:"showHide___fHrAG"},fe=Ft(92310),Re=Ft.n(fe),Se=Ft(78241),Me=Ft(8591),Jt=Ft(43418),Le=Ft(5871),ce=Ft(95237),ve=Ft(24905),he=Ft(38854),Oe=Ft(54580),je=Ft(3113),kt=Ft(93948),et=Ft(19842),nt=Ft(92832),dt=Ft(85057),lt=Ft(3294),pt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAAUCAYAAADC1B7dAAAAAXNSR0IArs4c6QAABk1JREFUWEd1lwlsVkUQx3/7ClGMSMSrHCKXHCpQhYhCNB5AYqRQGq1AiKgEEAiokAJFFIoipcVE5EYFyn23IGCJgoTDQimWSJSzCIKIcglUEIGu2bdv3+77vo+XfPl2Z2Zn5z8zuzsjSPDJ0tZV2ftfGog0BG0Q1AbuRABCgJDBvxorWqDE5xkZh+4porNGjRXNyKvlMuCbf2OXDPRIWYHnnQJKqaSQOimFos3s67HmG1NCupzxWDcgD2Qjf0P1qT/fqGAcGh4Yb4x1ZZSsCySy3oAV4LnOCByi9Pl7CQ00HPvIDb0cz8sUqSUFLqgQkJRjPCavzEFUZoaecz2oNjYAjXGJgEQi5Bio1kYiZYDEOEt5z4+ecZ4D2I2kGePl0eWlkUJkVxp/+yvkpOa5IDOtxxIAiE2nuEg5RhjZ2EiFhgYpF6ZfTNq662KzI+TpgOGJPJFaMjwEJCc06YZgtY5AENLMA7HpCcVTYfd0TR/yi+Vvy4F9CyG5BaQviV9nKBeOwNrXoNdOSKqqqSe2wJZ3dfS9JP0LM+MmyJt63iEfaj6m11w5DUWdo+c1yUtX6SfkrNZVOXNpP1I2Cg+qApV1KN6wc+WQ31nTh+63/K05sHc+JLeEjK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EK2+y9OApFE/QhstgCXf3t9d3IDACSy7UGcBCJJqgist+KW3JV2NZdJJarI1o04CURSVBXYgA6swvoq2UwqsYdsTwKxAHUENq5E2xIOk/lX9+PbmDnQFYihxxjTFdhs60p3M/3oZEH3d5EEGha4f7voFUcvzuaWroCnOh0SqEqsZTz2CmyW47YsD3hDH5YfnvilMqWGQCklJG5lbJUgjd0nMGhH3GJJTATBwwLuib7+tUxq7IffenD2xupwlcFxUfO43xCN6y4BcCuFTCrx2U8XOHN9dabmCbr6/NDq4RjO2fdLo1MfOy2Gw+mrb+Z6OC9qpUDA4fzn8ICbfb4wXm4XI4EKQE0MrS+GO8zOvXxwauew/iTQhBWNnhEhN9KLM19boyRQA6apSMS2t84fe7yRTCYPHhKTQFM2NPsCsNKfddTGYjgJ1ARpNCahOiJF9sXiTIkEGjWh3xy4lINS5EigPkPzSQlVEmheg/4MSKA+O9PJ/a/QIfoKNS1Cqz/9E6OFLRQhuo0IhQa9SdCNvB63UKRoKS0UGtQnQYvZ6sxCk/D1OIke6IbG1z8T8f1Al7ZUhE+g0paK+vRpU5O+ROObmvSnTsk6gVBsKyQV+gSCEEgbe/X5o5NYgW6/u5m+Q1vr0SJ0C+gKpJdbdIkHnNMRSK+XBSwBU05VIL3giaHdhayKQHrFugsCsCX9CKRDDrCUu5jvJJCOGeki/CBK00E/QVA0WIOO2jIIP4jW8/OSP8u/m/aksJr16LC7IMj2sEbzuEkBnmdFo+u9PG7yNxidqHC3DAxxAAAAAElFTkSuQmCC",Ut=Ft(99064),Qt=Ft(57647),$t=Ft(5623),ne=Ft(50304),_t=Ft(59879),Pe=Ft(28451),ue=Ft(15342),pe=Ft.n(ue),oe=(yn,Ge,Ne)=>new Promise((Zn,sn)=>{var We=Ct=>{try{Nt(Ne.next(Ct))}catch(St){sn(St)}},en=Ct=>{try{Nt(Ne.throw(Ct))}catch(St){sn(St)}},Nt=Ct=>Ct.done?Zn(Ct.value):Promise.resolve(Ct.value).then(We,en);Nt((Ne=Ne.apply(yn,Ge)).next())}),Ie=ht.memo(({tagName:yn="div",value:Ge="",className:Ne,style:Zn={},onBlur:sn,id:We})=>{const en=(0,ht.useRef)(null);(0,ht.useEffect)(()=>{if(!en.current)return;oe(void 0,null,function*(){const St=en.current;St.innerHTML="";const Bt=Ge==null?void 0:Ge.split(/(`?\$\$[\s\S]*?\$\$`?)/g);for(const Gt of Bt)if(Gt.startsWith("$$")&&Gt.endsWith("$$")||Gt.startsWith("`$$")&&Gt.endsWith("$$`")){const Lt=Gt.startsWith("`$$")?Gt.slice(3,-3):Gt.slice(2,-2),ie=document.createElement("span");ie.setAttribute("contentEditable","false"),ie.setAttribute("title",Gt),ie.className="edu_latex",St.appendChild(ie),pe().render(Lt,ie,{throwOnError:!1})}else{const Lt=Gt==null?void 0:Gt.replace(/<[^>]*>/g,ie=>ie.startsWith("<img")?ie:ie.replace(/</g,"<"));St.insertAdjacentHTML("beforeend",Lt)}})},[We]);const Nt=()=>{var Ct,St;if(sn&&en.current){const Gt=en.current.cloneNode(!0),Lt=Gt.querySelectorAll("span.edu_latex");for(let ie of Lt){const Ke=ie.getAttribute("title"),ln=document.createTextNode(Ke||""),hn=ie;(St=(Ct=hn.parentNode)==null?void 0:Ct.replaceChild)==null||St.call(Ct,ln,hn)}sn(Gt.innerHTML)}};return ht.createElement(ht.Fragment,null,ht.createElement(yn,{ref:en,contentEditable:!0,className:Ne,style:Zn,onBlur:Nt}))}),an=Ft(24065),Gn=Ft(34604),bn=Ft(35339),de=Object.defineProperty,Wt=Object.defineProperties,xe=Object.getOwnPropertyDescriptors,nn=Object.getOwnPropertySymbols,dn=Object.prototype.hasOwnProperty,ge=Object.prototype.propertyIsEnumerable,we=(yn,Ge,Ne)=>Ge in yn?de(yn,Ge,{enumerable:!0,configurable:!0,writable:!0,value:Ne}):yn[Ge]=Ne,Je=(yn,Ge)=>{for(var Ne in Ge||(Ge={}))dn.call(Ge,Ne)&&we(yn,Ne,Ge[Ne]);if(nn)for(var Ne of nn(Ge))ge.call(Ge,Ne)&&we(yn,Ne,Ge[Ne]);return yn},Bn=(yn,Ge)=>Wt(yn,xe(Ge)),vn=(yn,Ge,Ne)=>new Promise((Zn,sn)=>{var We=Ct=>{try{Nt(Ne.next(Ct))}catch(St){sn(St)}},en=Ct=>{try{Nt(Ne.throw(Ct))}catch(St){sn(St)}},Nt=Ct=>Ct.done?Zn(Ct.value):Promise.resolve(Ct.value).then(We,en);Nt((Ne=Ne.apply(yn,Ge)).next())});const zn=yn=>{yn.preventDefault();let Ne=(yn.clipboardData||window.clipboardData).getData("Text");document.execCommand("insertText",!1,Ne)},ae=yn=>{yn.key==="Enter"&&yn.preventDefault()},mn=({children:yn,style:Ge})=>ht.createElement("div",{className:Ht.leftBox,style:Ge,onPaste:zn},yn),ti=({children:yn,style:Ge,className:Ne})=>ht.createElement("div",{className:Re()(Ht.rightBox,Ne),style:Ge,onPaste:zn},yn),Wn=({className:yn,style:Ge={},width:Ne=1200,onCancel:Zn=()=>{},onSuccess:sn=()=>{},gather:We={},mode:en=1,stickyTop:Nt=0,subDisciplineId:Ct=[],hideWordFeatures:St,dataSource:Bt=[],customLeftHeadNode:Gt,customRightHeadNode:Lt,customLeftContent:ie,hideRecognition:Ke=!1,onExchange:ln,isSingleSelection:hn=!1,underpinBackgroundStyle:Jn={},headExtraNode:di,isRefreshItemBank:fi=!1,okText:pi="\u786E\u5B9A\u5BFC\u5165",onSave:Bi})=>{var qi;const[Qi,Ao]=(0,ht.useState)(1),[Mo,Ti]=(0,ht.useState)(0),[Ui,so]=(0,ht.useState)(""),[mo,xi]=(0,ht.useState)(!1),[ho,pn]=(0,ht.useState)([]),[wt,Li]=(0,ht.useState)([]),[ui,Ce]=(0,ht.useState)(!1),[xn,wn]=(0,ht.useState)(!1),[Kn,Ue]=(0,ht.useState)(!1),[qe,le]=(0,ht.useState)(!1),[re,qt]=(0,ht.useState)([]),[Ze,An]=(0,ht.useState)(1),[Ln,Be]=(0,ht.useState)(!1),[un,Qn]=(0,ht.useState)(!0),[Nn,ai]=(0,ht.useState)(0),[zt,Fe]=(0,ht.useState)(!1),[Dn]=Se.default.useForm(),[On]=Se.default.useForm(),Te=(0,ht.useRef)(null),Ve=(0,ht.useRef)(null),Vn=(0,ht.useRef)(),li=(0,ht.useRef)(null),oi=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],Rn=["C","C++","Java","Python","JavaScript","Ruby"];(0,ht.useEffect)(()=>{Bt!=null&&Bt.length&&_o(Bt)},[Bt]),(0,ht.useEffect)(()=>{Qi===2&&Te.current.focus()},[Qi]),(0,ht.useEffect)(()=>{Kn&&si()},[Kn]);const qn=()=>{if(Qi===1){Me.ZP.warning("\u8BF7\u5148\u4E0A\u4F20\u8BD5\u9898\uFF01");return}Jt.default.confirm({centered:!0,icon:null,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u6E05\u7A7A\u64CD\u4F5C\u5C06\u5220\u9664\u8BD5\u9898\u7F16\u8F91\u533A\u57DF\u7684\u5168\u90E8\u5185\u5BB9\uFF0C\u786E\u5B9A\u4E00\u952E\u6E05\u7A7A\u5417\uFF1F",onOk:()=>vn(void 0,null,function*(){Ao(1)})})},si=()=>vn(void 0,null,function*(){const Zt=yield(0,Ut.ZP)("/api/disciplines.json",{method:"get",params:{source:en===1?"new_question":"subject"}});qt(Zt.disciplines||[])}),Xi=Zt=>{const kn=[],Mn=(Un,gn)=>{Un.length>=2&&kn.push(Un.join(""));for(let Tn=gn;Tn<Zt.length;Tn++)Un.push(Zt[Tn]),Mn(Un,Tn+1),Un.pop()};return Mn([],0),kn},Ii=Zt=>(Zt=Zt||"",Zt=String(Zt),Zt=Zt.replace(/\s+/g,""),Zt),ji=Zt=>(Zt=Zt||"",Zt=String(Zt),Zt=Zt.replace(/<div>/g,""),Zt=Zt.replace(/<br>/g,`
|
|
`),Zt=Zt.replace(/<\/div>/g,`
|
|
`),Zt=ao(Zt),Zt),Qe=Zt=>Zt.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"),ao=Zt=>Zt.replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&").replace(/"/g,'"').replace(/'/g,"'"),Oi=Zt=>{var kn;const Mn=Zt.clipboardData;if(Mn){const Un=Mn.types.toString(),gn=Mn.items;if(Un==="Files"||Mn.types.indexOf("Files")>-1){Zt.preventDefault();try{let Tn=gn[1];((kn=gn[0])==null?void 0:kn.kind)==="file"&&(Tn=gn[0]);const Pn=Tn.getAsFile();(0,Pe.I)(Pn,Ee=>{var fn;if(Ee.id){if(((fn=Pn==null?void 0:Pn.type)==null?void 0:fn.indexOf("image"))>-1){const gi=`<img src='${lt.Z.API_SERVER}${Ee.url}'>`;document.execCommand("insertText",!1,gi)}}else(Ee==null?void 0:Ee.status)===401&&(document.location.href="/user/login")})}catch(Tn){Me.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};function Ci(Zt,kn){return vn(this,null,function*(){if(typeof Zt=="string")return yield kn(Zt);if(typeof Zt!="object"||Zt===null)return Zt;if(Array.isArray(Zt))return yield Promise.all(Zt.map(gn=>vn(this,null,function*(){return yield Ci(gn,kn)})));const Mn={};for(const Un in Zt)if(Object.prototype.hasOwnProperty.call(Zt,Un)){const gn=Zt[Un];typeof gn=="string"?Mn[Un]=yield kn(gn):typeof gn=="object"?Mn[Un]=yield Ci(gn,kn):Mn[Un]=gn}return Mn})}const De=()=>vn(void 0,null,function*(){var Zt;xi(!0),so("\u5904\u7406\u4E2D"),yield new Promise(Un=>setTimeout(Un,1e3));let kn=(Zt=Ve.current)==null?void 0:Zt.querySelectorAll('[data-text="edit"]'),Mn="";try{kn.forEach(function(Un){var gn,Tn,Pn,Ee;const fn=Un.cloneNode(!0),gi=fn.querySelectorAll("span.edu_latex");for(let ki of gi){const vi=ki.getAttribute("title"),Ji=document.createTextNode(vi),Ki=ki;(Tn=(gn=Ki.parentNode)==null?void 0:gn.replaceChild)==null||Tn.call(gn,Ji,Ki)}const Wi=fn.querySelectorAll("span[style]");for(let ki of Wi)if(ki.style.fontFamily){const vi=ki.innerHTML,Ji=document.createTextNode(vi),Ki=ki;(Ee=(Pn=Ki.parentNode)==null?void 0:Pn.replaceChild)==null||Ee.call(Pn,Ji,Ki)}fn==null||fn.childNodes.forEach(function(ki){ki.nodeType===Node.ELEMENT_NODE&&ki.localName!=="h5"&&ki.localName!=="h4"?Mn+=`<p>${ki.innerHTML}</p>`:ki.nodeType===Node.TEXT_NODE&&(Mn+=`<p>${ki.textContent}</p>`)})}),Sr("/api/intelligent_imports/import.json",{html:ao(Mn)})}catch(Un){console.error("\u5904\u7406\u8282\u70B9\u9519\u8BEF:",Un)}}),En=Zt=>{let kn=Zt.filter(Mn=>!!(Mn!=null&&Mn.type));return kn=kn.map(Mn=>{var Un;const gn=(Un=fo.find(Pn=>Pn.id===(Mn==null?void 0:Mn.type)))==null?void 0:Un.deal,Tn=Bn(Je({},Mn),{id:String(Math.random()).slice(-6),knowledgePoint:Ii(Mn==null?void 0:Mn.knowledgePoint)});return gn?gn(Tn):Tn}),kn},ci=()=>{if(Qi===1){Me.ZP.warning("\u672A\u8BC6\u522B\u5230\u8BD5\u9898!");return}Jt.default.confirm({centered:!0,icon:null,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u91CD\u65B0\u8BC6\u522B\u4F1A\u8986\u76D6\u53F3\u4FA7\u5DF2\u8BC6\u522B\u7ED3\u679C\uFF0C\u5305\u62EC\u4EBA\u5DE5\u4FEE\u6539\u7684\u5185\u5BB9\uFF0C\u786E\u5B9A\u91CD\u65B0\u8BC6\u522B\u5417?",onOk:De})},Pi=()=>ht.createElement("div",{className:Ht.row},ht.createElement("div",{className:Ht.leftLayout},ht.createElement(mn,{style:{height:675}},Qi===1&&ht.createElement("div",{style:{height:"100%",display:"flex",flexDirection:"column",alignItems:"center"},onClick:()=>Ao(2)},ht.createElement("div",{style:{color:"#9096A3",fontSize:12}},"1.\u672C\u529F\u80FD\u652F\u6301\u5BFC\u5165\u7684\u9898\u578B\uFF1A\u5355\u9009\u9898\u3001\u591A\u9009\u9898\u3001\u586B\u7A7A\u9898\u3001\u5224\u65AD\u9898\u3001\u7B80\u7B54\u9898\u3001 \u7EC4\u5408\u9898\u3001\u7F16\u7A0B\u9898\u3001\u7A0B\u5E8F\u586B\u7A7A\u9898\u3002",ht.createElement("br",null),"2.\u82E5\u8981\u5BFC\u5165\u7EC4\u5408\u9898\uFF0C\u8BF7\u5728\u9898\u76EE\u524D\u540E\u4F7F\u7528\u4E00\u5BF9\u201C","{{\u201D\u3001\u201C}}","\u201D\u5C06\u5185\u5BB9\u6807\u51FA\uFF1B\u5927\u9898\u9898\u5E72\u548C\u5C0F\u9898\u9898\u5E72\u4E4B\u95F4\u4E0D\u9700\u8981\u7A7A\u884C\uFF1B\u5927\u9898\u548C\u5C0F\u9898\u9898\u5E72\u90FD\u9700\u6807\u6CE8\u9898\u53F7\uFF1B\u5C0F\u9898\u7B54\u6848\u53EF\u8DDF\u5728\u5C0F\u9898\u9898\u5E72\u540E\uFF0C\u5E76\u7528\u7A7A\u683C\u4E0E\u9898\u5E72\u5185\u5BB9\u9694\u5F00\u3002\u8303\u4F8B\u53EF\u53C2\u8003\u63A8\u8350\u683C\u5F0F\u3002",ht.createElement("br",null),"3.\u5BFC\u5165\u652F\u6301\u6587\u672C\u3001\u56FE\u7247\u3001\u516C\u5F0F\u3002\u9898\u76EE\u7ED3\u6784\u652F\u6301\u8BC6\u522B\u7B54\u6848\u3001\u89E3\u6790\u3001\u96BE\u5EA6\u3001\u77E5\u8BC6\u70B9\u3002",ht.createElement("br",null),"4.\u82E5\u8BC6\u522B\u6709\u8BEF\uFF0C\u53EF\u5728\u5DE6\u4FA7\u4FEE\u6539\u9898\u76EE\u5185\u5BB9\u540E\u91CD\u65B0\u8BC6\u522B\uFF0C\u6216\u4E0B\u8F7D\u63A8\u8350\u683C\u5F0F\uFF0C\u6309\u683C\u5F0F\u4FEE\u6539\u540E\u91CD\u65B0\u5BFC\u5165\u8BC6\u522B\u3002",ht.createElement("br",null)),ht.createElement("div",{className:Ht.imgBox,style:{marginTop:75}},ht.createElement("img",{width:56,src:yt}),ht.createElement("span",null,"\u7F16\u8F91\u533A"))),Qi===2&&ht.createElement("div",{"data-text":"edit",onBlur:()=>{Te.current.innerHTML||Ao(1)},ref:Te,contentEditable:!0,style:{color:"#9096A3",height:"100%",overflow:"auto"}}))),ht.createElement("div",{className:Ht.rightLayout,style:{display:"flex",alignItems:"start",justifyContent:"center"}},ht.createElement("div",{className:Ht.imgBox,style:{marginTop:240}},ht.createElement("img",{width:56,src:At}),ht.createElement("span",null,"\u9884\u89C8\u533A")))),_n=(Zt,kn,Mn,Un)=>{var gn;console.log(Zt,kn,Mn,Un,"onDataChange\u4FEE\u6539\u6570\u503C");const Tn=JSON.parse(JSON.stringify(wt));Un===void 0?Tn[kn][Zt]=Mn:Tn[kn].questions[Un][Zt]=Mn;const Pn=Je({},Tn[kn]),Ee=(gn=fo.find(fn=>fn.id===(Pn==null?void 0:Pn.type)))==null?void 0:gn.deal;Tn[kn]=Ee(Pn),Li(Tn)},wi=(Zt,kn,Mn)=>{var Un;const gn=Mn!==void 0,Tn=(Un=fo.find(fn=>fn.id===(Zt==null?void 0:Zt.type)))==null?void 0:Un.type,Pn=`${kn+1}.${Mn===void 0?"":Mn+1+"."}`,Ee=`${(Zt==null?void 0:Zt.type)==="7"?"{{":""}${Pn}\u3010${Tn}\u3011${(Zt==null?void 0:Zt.question)||""}`;return ht.createElement(ht.Fragment,null,gn&&ht.createElement("h4",{contentEditable:!0}),ht.createElement(Ie,{id:Zt==null?void 0:Zt.id,tagName:"div",value:Ee}))},_i=(Zt,kn)=>vn(void 0,null,function*(){var Mn;const Un=yield ln(Zt,kn),gn=(Mn=Un==null?void 0:Un.data)==null?void 0:Mn.content;if(gn!=null&&gn.length){const Tn=En(gn)[0];ho.splice(kn,1,Tn),wt.splice(kn,1,Tn),pn([...ho]),Li([...wt])}}),Zi=(Zt,kn,Mn)=>{var Un;const gn=Mn!==void 0,Tn=(Un=fo.find(Ee=>Ee.id===(Zt==null?void 0:Zt.type)))==null?void 0:Un.type,Pn=`${kn+1}.${Mn===void 0?"":Mn+1+"."}`;return gn?ht.createElement("div",{style:{padding:"10px 18px"}},`${Pn}\u3010${Tn}\u3011`,ht.createElement(Ie,{id:Zt==null?void 0:Zt.id,tagName:"span",className:Ht.edit,onBlur:Ee=>_n("question",kn,Ee,Mn),value:(Zt==null?void 0:Zt.question)||""})):ht.createElement(ht.Fragment,null,ht.createElement("div",{className:Ht.actionHead},ht.createElement("div",{className:"c-light-primary"},`${Pn}\u3010${Tn}\u3011`),en!==1&&ht.createElement(Le.Z,{disabled:(Zt==null?void 0:Zt.type)==="7",min:0,max:100,style:{width:100,marginLeft:10},addonAfter:"\u5206",precision:1,size:"middle",onChange:Ee=>_n("score",kn,Ee,Mn),value:Zt==null?void 0:Zt.score}),ht.createElement(ce.Z,{align:"middle",style:{marginLeft:"auto"}},!!ln&&ht.createElement("span",{className:"current c-light-primary mr30",onClick:()=>_i(Zt,kn)},ht.createElement("i",{className:"iconfont icon-huanyihuan mr5"}),"\u6362\u4E00\u6362"),ht.createElement(ve.default,{onChange:Ee=>_n("checked",kn,Ee.target.checked,Mn),checked:!!(Zt!=null&&Zt.checked)},"\u4E0D\u5BFC\u5165\u6B64\u9898"))),ht.createElement(Ie,{id:Zt==null?void 0:Zt.id,tagName:"div",style:{padding:"10px 18px"},className:Ht.edit,onBlur:Ee=>_n("question",kn,Ee,Mn),value:Zt==null?void 0:Zt.question}))},oo=(Zt,kn,Mn)=>ht.createElement(ht.Fragment,null,["0","1","2","4"].includes(Zt==null?void 0:Zt.type)&&ht.createElement(Ie,{id:Zt==null?void 0:Zt.id,value:`\u7B54\u6848\uFF1A${kn||""}`,tagName:"p"}),!Mn&&ht.createElement(Ie,{id:Zt==null?void 0:Zt.id,value:`\u96BE\u5EA6\uFF1A${(Zt==null?void 0:Zt.difficulty)||""}`,tagName:"p"}),(Zt==null?void 0:Zt.type)!=="7"&&ht.createElement(Ie,{id:Zt==null?void 0:Zt.id,value:`\u89E3\u6790\uFF1A${(Zt==null?void 0:Zt.analyze)||""}`,tagName:"p"}),!Mn&&ht.createElement(Ie,{id:Zt==null?void 0:Zt.id,value:`\u77E5\u8BC6\u70B9\uFF1A${(Zt==null?void 0:Zt.knowledgePoint)||""}`,tagName:"p"})),$i=(Zt,kn,Mn,Un)=>{const gn=Un!==void 0,Tn=["\u7B80\u5355","\u9002\u4E2D","\u56F0\u96BE"],Pn=gn&&!Zt.last&&!Zt.errorMsg?{marginBottom:10}:{},Ee=Tn.map(fn=>({key:fn,label:fn,onClick:()=>_n("difficulty",Mn,fn,Un)}));return ht.createElement("div",{className:Ht.liWrap,style:Pn},["4"].includes(Zt==null?void 0:Zt.type)&&ht.createElement("div",{className:Ht.li},ht.createElement("aside",null,"\u7B54\xA0\xA0\xA0\xA0\u6848\uFF1A"),ht.createElement(Ie,{id:Zt==null?void 0:Zt.id,tagName:"div",className:`${Ht.edit} c-black`,onBlur:fn=>_n("answer",Mn,[fn],Un),value:kn})),!gn&&ht.createElement("div",{className:Ht.li},ht.createElement("aside",null,"\u96BE\xA0\xA0\xA0\xA0\u5EA6\uFF1A"),ht.createElement("div",{className:"c-black"},ht.createElement(he.Z,{menu:{items:Ee}},ht.createElement("span",{className:"c-light-primary"},Zt==null?void 0:Zt.difficulty,ht.createElement("i",{className:"iconfont icon-a-bianzu11 font14 ml4"}))))),(Zt==null?void 0:Zt.type)!=="7"&&ht.createElement("div",{className:Ht.li},ht.createElement("aside",null,"\u89E3\xA0\xA0\xA0\xA0\u6790\uFF1A"),ht.createElement(Ie,{id:Zt==null?void 0:Zt.id,tagName:"div",className:`${Ht.edit} c-grey-333`,onBlur:fn=>_n("analyze",Mn,fn,Un),value:Zt==null?void 0:Zt.analyze})),!gn&&ht.createElement("div",{onKeyDown:ae,className:Ht.li},ht.createElement("aside",null,"\u77E5\u8BC6\u70B9\uFF1A"),ht.createElement(Ie,{id:Zt==null?void 0:Zt.id,tagName:"div",value:(Zt==null?void 0:Zt.knowledgePoint)||"",className:`${Ht.edit} c-grey-333`,onBlur:fn=>_n("knowledgePoint",Mn,Ii(ji(fn)),Un)})))},$e=Zt=>ht.createElement(ht.Fragment,null,typeof(Zt==null?void 0:Zt.errorMsg)=="string"&&!!(Zt!=null&&Zt.errorMsg)&&ht.createElement("h5",{contentEditable:!1},ht.createElement("i",{className:"iconfont icon-shanchuhuanjing"}),ht.createElement("div",null,Zt==null?void 0:Zt.errorMsg))),Gi=Zt=>ht.createElement(ht.Fragment,null,typeof(Zt==null?void 0:Zt.errorMsg)=="string"&&!!(Zt!=null&&Zt.errorMsg)&&ht.createElement("h5",null,ht.createElement("i",{className:"iconfont icon-shanchuhuanjing"}),ht.createElement("div",null,Zt==null?void 0:Zt.errorMsg))),_e=(Zt,kn,Mn,Un)=>{let gn="flex";return(hn&&Nn!==Un||ui&&!(Mn!=null&&Mn.errorMsg))&&(gn="none"),ht.createElement("div",{className:Ht.row,style:{display:gn}},ht.createElement("div",{className:Ht.leftLayout},ie||ht.createElement(mn,null,ht.createElement("div",{"data-text":"edit",contentEditable:!0,className:Ht.question},Zt))),ht.createElement("div",{className:Ht.rightLayout},ht.createElement(ti,{className:Mn!=null&&Mn.errorMsg?Ht.error:""},kn)))},fo=[{id:"0",type:"\u5355\u9009\u9898",element:(Zt,kn,Mn)=>{var Un,gn;const Tn=Mn!==void 0;let Pn=(Un=Zt==null?void 0:Zt.answer)==null?void 0:Un[0];const Ee=ht.createElement(ht.Fragment,null,wi(Zt,kn,Mn),(gn=Zt==null?void 0:Zt.options)==null?void 0:gn.map((ki,vi)=>ht.createElement(Ie,{id:Zt==null?void 0:Zt.id,key:vi,value:`${oi[vi]}.${ki}`,tagName:"p"})),oo(Zt,Pn,Tn),$e(Zt));let fn=Tn?Zt:wt[kn];const gi=fn==null?void 0:fn.options,Wi=ht.createElement(ht.Fragment,null,Zi(fn,kn,Mn),gi==null?void 0:gi.map((ki,vi)=>{var Ji;return ht.createElement("div",{key:vi,className:Ht.option},ht.createElement("aside",{className:((Ji=fn==null?void 0:fn.answer)==null?void 0:Ji[0])===oi[vi]?Ht.active:"",onClick:()=>_n("answer",kn,[oi[vi]],Mn)},oi[vi]),ht.createElement(Ie,{id:fn==null?void 0:fn.id,tagName:"div",className:`${Ht.text}`,onBlur:Ki=>{gi[vi]=Ki,_n("options",kn,gi,Mn)},value:ki}))}),$i(fn,"",kn,Mn),Gi(fn));return Tn?[Ee,Wi]:_e(Ee,Wi,fn,kn)},deal:Zt=>{var kn,Mn,Un;Zt.score=Zt.score===void 0?2:Zt.score;let gn=Ii((kn=Zt==null?void 0:Zt.answer)==null?void 0:kn[0]).toUpperCase();Zt.answer=gn?[gn]:[];let Tn=[];if(!(Zt!=null&&Zt.options))Tn.push("\u672A\u8BC6\u522B\u5230\u9009\u9879\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C A.\u9009\u9879\u4E00 B.\u9009\u9879\u4E8C C.\u9009\u9879\u4E09 \u201D");else{Zt.options=(Mn=Zt.options)==null?void 0:Mn.slice(0,8);const Pn=Zt.options.map(fn=>fn==null?void 0:fn.trim().replace(/^\s+|\s+$/g,""));new Set(Pn).size!==Pn.length&&Tn.push("\u9009\u9879\u5185\u5BB9\u91CD\u590D")}return gn||Tn.push("\u672A\u8BC6\u522B\u5230\u7B54\u6848\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C \u7B54\u6848\uFF1AA \u201D"),gn&&(oi.slice(0,((Un=Zt==null?void 0:Zt.options)==null?void 0:Un.length)||8).includes(gn)||Tn.push("\u6B63\u786E\u7B54\u6848\u8BBE\u7F6E\u6709\u8BEF\uFF0C\u8BF7\u91CD\u65B0\u8BBE\u7F6E\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C \u7B54\u6848\uFF1AA \u201D")),Ii(Zt==null?void 0:Zt.question)||Tn.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),Zt.errorMsg=Tn.join(`
|
|
`),Zt}},{id:"1",type:"\u591A\u9009\u9898",element:(Zt,kn,Mn)=>{var Un,gn;const Tn=Mn!==void 0;let Pn=(Un=Zt==null?void 0:Zt.answer)==null?void 0:Un[0];const Ee=ht.createElement(ht.Fragment,null,wi(Zt,kn,Mn),(gn=Zt==null?void 0:Zt.options)==null?void 0:gn.map((ki,vi)=>ht.createElement(Ie,{id:Zt==null?void 0:Zt.id,key:vi,value:`${oi[vi]}.${ki}`,tagName:"p"})),oo(Zt,Pn,Tn),$e(Zt));let fn=Tn?Zt:wt[kn];const gi=fn==null?void 0:fn.options,Wi=ht.createElement(ht.Fragment,null,Zi(fn,kn,Mn),gi==null?void 0:gi.map((ki,vi)=>{var Ji,Ki;return ht.createElement("div",{key:vi,className:Ht.option},ht.createElement("aside",{className:(Ki=(Ji=fn==null?void 0:fn.answer)==null?void 0:Ji[0])!=null&&Ki.includes(oi[vi])?Ht.active:"",onClick:()=>{var Jo;let nr=((Jo=fn==null?void 0:fn.answer)==null?void 0:Jo[0])||"";const $r=oi[vi];nr.includes($r)?nr=nr.replace(new RegExp($r,"g"),""):nr+=$r,nr=nr.split("").sort().join(""),_n("answer",kn,[nr],Mn)}},oi[vi]),ht.createElement(Ie,{id:fn==null?void 0:fn.id,tagName:"div",className:`${Ht.text}`,onBlur:Jo=>{gi[vi]=Jo,_n("options",kn,gi,Mn)},value:ki}))}),$i(fn,"",kn,Mn),Gi(fn));return Tn?[Ee,Wi]:_e(Ee,Wi,fn,kn)},deal:Zt=>{var kn,Mn,Un;Zt.score=Zt.score===void 0?2:Zt.score;let gn=Ii((kn=Zt==null?void 0:Zt.answer)==null?void 0:kn[0]).toUpperCase().split("").sort().join("");Zt.answer=gn?[gn]:[];let Tn=[];if(!(Zt!=null&&Zt.options))Tn.push("\u672A\u8BC6\u522B\u5230\u9009\u9879\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C A.\u9009\u9879\u4E00 B.\u9009\u9879\u4E8C C.\u9009\u9879\u4E09 \u201D");else{Zt.options=(Mn=Zt.options)==null?void 0:Mn.slice(0,8);const Pn=Zt.options.map(fn=>fn==null?void 0:fn.trim().replace(/^\s+|\s+$/g,""));new Set(Pn).size!==Pn.length&&Tn.push("\u9009\u9879\u5185\u5BB9\u91CD\u590D")}if(gn||Tn.push("\u672A\u8BC6\u522B\u5230\u7B54\u6848\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C \u7B54\u6848\uFF1AAB \u201D"),gn){const Pn=oi.slice(0,((Un=Zt==null?void 0:Zt.options)==null?void 0:Un.length)||8);Xi(Pn).includes(gn)||Tn.push("\u6B63\u786E\u7B54\u6848\u8BBE\u7F6E\u6709\u8BEF\uFF0C\u8BF7\u91CD\u65B0\u8BBE\u7F6E\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C \u7B54\u6848\uFF1AAB \u201D")}return Ii(Zt==null?void 0:Zt.question)||Tn.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),Zt.errorMsg=Tn.join(`
|
|
`),Zt}},{id:"2",type:"\u5224\u65AD\u9898",element:(Zt,kn,Mn)=>{var Un,gn;const Tn=Mn!==void 0;let Pn=(Un=Zt==null?void 0:Zt.answer)==null?void 0:Un[0];const Ee=ht.createElement(ht.Fragment,null,wi(Zt,kn,Mn),oo(Zt,Pn,Tn),$e(Zt));let fn=Tn?Zt:wt[kn];const gi=["\u6B63\u786E","\u9519\u8BEF"];let Wi=((gn=fn==null?void 0:fn.answer)==null?void 0:gn[0])||"";["\u6B63\u786E","\u5BF9","T","True","t","true"].includes(Wi)?Wi="\u6B63\u786E":["\u9519\u8BEF","\u9519","T","true","t","false"].includes(Wi)&&(Wi="\u9519\u8BEF");const ki=ht.createElement(ht.Fragment,null,Zi(fn,kn,Mn),gi==null?void 0:gi.map((vi,Ji)=>ht.createElement("div",{key:Ji,className:Ht.option},ht.createElement("aside",{style:{borderRadius:2},className:Wi===vi?Ht.active:"",onClick:()=>_n("answer",kn,[vi],Mn)},vi==="\u6B63\u786E"?"T":"F"),ht.createElement("div",{style:{pointerEvents:"none"},className:`${Ht.text}`},vi))),$i(fn,"",kn,Mn),Gi(fn));return Tn?[Ee,ki]:_e(Ee,ki,fn,kn)},deal:Zt=>{var kn;Zt.score=Zt.score===void 0?2:Zt.score;let Mn=Ii((kn=Zt==null?void 0:Zt.answer)==null?void 0:kn[0]);Zt.answer=Mn?[Mn]:[];let Un=[];return Mn||Un.push("\u672A\u8BC6\u522B\u5230\u7B54\u6848\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C \u7B54\u6848\uFF1A\u9519\u8BEF\u201D"),Mn&&!["\u6B63\u786E","\u5BF9","T","True","t","true","\u9519\u8BEF","\u9519","T","true","t","false"].includes(Mn)&&Un.push("\u6B63\u786E\u7B54\u6848\u8BBE\u7F6E\u6709\u8BEF\uFF0C\u8BF7\u91CD\u65B0\u8BBE\u7F6E\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C \u7B54\u6848\uFF1A\u9519\u8BEF\u201D"),Ii(Zt==null?void 0:Zt.question)||Un.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),Zt.errorMsg=Un.join(`
|
|
`),Zt}},{id:"3",type:"\u586B\u7A7A\u9898",element:(Zt,kn,Mn)=>{var Un,gn;const Tn=Mn!==void 0,Pn=ht.createElement(ht.Fragment,null,wi(Zt,kn,Mn),(Un=Zt==null?void 0:Zt.answer)==null?void 0:Un.map((gi,Wi)=>ht.createElement(Ie,{id:Zt==null?void 0:Zt.id,key:Wi,tagName:"p",value:`\u7B54\u6848${Wi+1}\uFF1A${gi.text||""}`})),oo(Zt,"",Tn),$e(Zt));let Ee=Tn?Zt:wt[kn];const fn=ht.createElement(ht.Fragment,null,Zi(Ee,kn,Mn),(gn=Ee==null?void 0:Ee.answer)==null?void 0:gn.map((gi,Wi)=>ht.createElement("div",{key:Wi,className:Ht.option},ht.createElement("aside",{className:Ht.fill},"\u586B\u7A7A\u9879",Wi+1),gi.model===1&&ht.createElement(Ie,{id:Ee==null?void 0:Ee.id,tagName:"div",onBlur:ki=>{Ee.answer[Wi].latex=ji(ki),_n("answer",kn,Ee.answer,Mn)},className:`${Ht.text}`,value:gi.latex}),gi.model===2&&ht.createElement(_t.Z,{value:gi.latex,onChange:ki=>{Ee.answer[Wi].latex=ki,_n("answer",kn,Ee.answer,Mn)}}))),$i(Ee,"",kn,Mn),Gi(Ee));return Tn?[Pn,fn]:_e(Pn,fn,Ee,kn)},deal:Zt=>{var kn,Mn,Un,gn;Zt.score=Zt.score===void 0?2:Zt.score,Zt.question=(kn=Zt.question)==null?void 0:kn.replaceAll("\u2581","_");const Tn=(Mn=Zt.answer)==null?void 0:Mn.map(Ee=>{if(Object.prototype.toString.call(Ee)==="[object Object]")return Ee;Ee=Ee==null?void 0:Ee.trim();const fn={model:1,text:Ee,latex:Ee};return Ee.startsWith("$$")&&Ee.endsWith("$$")||Ee.startsWith("`$$")&&Ee.endsWith("$$`")?(fn.model=2,fn.latex=Ee.slice(2,-2)):fn.latex=ji(Ee),fn});Zt.answer=Tn;let Pn=[];return Tn||Pn.push("\u672A\u8BC6\u522B\u5230\u7B54\u6848\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u7B54\u68481\uFF1A\u4E2D\u56FD\uFF1B\u7B54\u68482\uFF1A\u4E16\u754C"),Ii(Zt==null?void 0:Zt.question)?Zt!=null&&Zt.question.includes("_")?(Un=Zt==null?void 0:Zt.answer)!=null&&Un.length&&((Zt==null?void 0:Zt.question.match(/_+/g))||[]).length!==((gn=Zt==null?void 0:Zt.answer)==null?void 0:gn.length)&&Pn.push("\u586B\u7A7A\u9879\u4E0E\u7B54\u6848\u4E2A\u6570\u4E0D\u5339\u914D\uFF0C\u8BF7\u8FDB\u884C\u8C03\u6574"):Pn.push("\u586B\u7A7A\u9879\u672A\u8BBE\u7F6E\uFF0C\u8BF7\u4F7F\u7528\u82F1\u6587\u4E0B\u5212\u7EBF\u201C___\u201D\u8868\u793A\u586B\u7A7A\u9879"):Pn.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),Zt.errorMsg=Pn.join(`
|
|
`),Zt}},{id:"4",type:"\u7B80\u7B54\u9898",element:(Zt,kn,Mn)=>{var Un,gn;const Tn=Mn!==void 0;let Pn=(Un=Zt==null?void 0:Zt.answer)==null?void 0:Un[0];const Ee=ht.createElement(ht.Fragment,null,wi(Zt,kn,Mn),oo(Zt,Pn,Tn),$e(Zt));let fn=Tn?Zt:wt[kn];const gi=ht.createElement(ht.Fragment,null,Zi(fn,kn,Mn),$i(fn,(gn=fn==null?void 0:fn.answer)==null?void 0:gn[0],kn,Mn),Gi(fn));return Tn?[Ee,gi]:_e(Ee,gi,fn,kn)},deal:Zt=>{Zt.score=Zt.score===void 0?5:Zt.score;let kn=[];return Ii(Zt==null?void 0:Zt.question)||kn.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),Zt.errorMsg=kn.join(`
|
|
`),Zt}},{id:"6",type:"\u7F16\u7A0B\u9898",element:(Zt,kn)=>{var Mn,Un;const gn=wt[kn],Tn=Rn.slice(0,4).map(Pn=>({key:Pn,label:Pn,onClick:()=>_n("platform",kn,Pn)}));return ht.createElement("div",{className:Ht.row,style:{display:ui?gn!=null&&gn.errorMsg?"flex":"none":"flex"}},ht.createElement("div",{className:Ht.leftLayout},ht.createElement(mn,null,ht.createElement("div",{"data-text":"edit",contentEditable:!0,className:Ht.question},wi(Zt,kn),ht.createElement(Ie,{id:Zt==null?void 0:Zt.id,value:`\u8BD5\u9898\u63CF\u8FF0\uFF1A${(Zt==null?void 0:Zt.description)||""}`,tagName:"p"}),oo(Zt),ht.createElement(Ie,{id:Zt==null?void 0:Zt.id,value:`\u65F6\u95F4\u9650\u5236\uFF08\u79D2\uFF09\uFF1A${Zt==null?void 0:Zt.timeLimit}`,tagName:"p"}),ht.createElement(Ie,{id:Zt==null?void 0:Zt.id,value:`\u7F16\u7A0B\u8BED\u8A00\uFF1A${(Zt==null?void 0:Zt.platform)||""}`,tagName:"p"}),ht.createElement("p",{contentEditable:!0},"\u5B66\u5458\u521D\u59CB\u4EE3\u7801\uFF1A"),ht.createElement("h4",null),ht.createElement(Ie,{id:Zt==null?void 0:Zt.id,value:(Zt==null?void 0:Zt.code)||"",tagName:"div"}),(Mn=Zt==null?void 0:Zt.inputs)==null?void 0:Mn.map((Pn,Ee)=>{var fn;return ht.createElement(ht.Fragment,{key:Ee},ht.createElement("h4",null),ht.createElement(Ie,{id:Zt==null?void 0:Zt.id,value:`\u6D4B\u8BD5\u7528\u4F8B(${Ee+1})\u8F93\u5165\uFF1A${Pn||""}`,tagName:"div"}),ht.createElement(Ie,{id:Zt==null?void 0:Zt.id,value:`\u6D4B\u8BD5\u7528\u4F8B(${Ee+1})\u8F93\u51FA\uFF1A${((fn=Zt==null?void 0:Zt.outputs)==null?void 0:fn[Ee])||""}`,tagName:"div"}))}),$e(Zt)))),ht.createElement("div",{className:Ht.rightLayout},ht.createElement(ti,{className:gn!=null&&gn.errorMsg?Ht.error:""},Zi(gn,kn),ht.createElement("div",{className:Ht.liWrap,style:{background:"transparent",marginBottom:0,padding:0}},ht.createElement("div",{className:Ht.li},ht.createElement("aside",null,"\u8BD5\u9898\u63CF\u8FF0\uFF1A"),ht.createElement(Ie,{className:Ht.edit,id:gn==null?void 0:gn.id,value:gn==null?void 0:gn.description,tagName:"div",onBlur:Pn=>_n("description",kn,Pn)}))),$i(gn,"",kn),ht.createElement("div",{className:Ht.liWrap},ht.createElement("div",{className:Ht.li},ht.createElement("aside",null,"\u65F6\u95F4\u9650\u5236\uFF08\u79D2\uFF09\uFF1A"),ht.createElement(Ie,{className:Ht.edit,id:gn==null?void 0:gn.id,value:gn==null?void 0:gn.timeLimit,tagName:"div",onBlur:Pn=>_n("timeLimit",kn,ji(Pn))})),ht.createElement("div",{className:Ht.li},ht.createElement("aside",null,"\u7F16\u7A0B\u8BED\u8A00\uFF1A"),ht.createElement("div",{className:"c-black"},ht.createElement(he.Z,{menu:{items:Tn}},ht.createElement("span",{className:"c-light-primary"},gn==null?void 0:gn.platform,ht.createElement("i",{className:"iconfont icon-a-bianzu11 font14 ml4"}))))),ht.createElement("div",{className:Ht.li,style:{flexDirection:"column",alignItems:"start"}},ht.createElement("aside",{className:"mb10"},"\u5B66\u5458\u521D\u59CB\u4EE3\u7801\uFF1A"),ht.createElement(Ie,{className:Ht.edit,id:gn==null?void 0:gn.id,value:(gn==null?void 0:gn.code)||"",onBlur:Pn=>_n("code",kn,ji(Pn)),tagName:"div"}))),(Un=gn==null?void 0:gn.inputs)==null?void 0:Un.map((Pn,Ee)=>{var fn;return ht.createElement("div",{className:Ht.liWrap,key:Ee},ht.createElement("div",{className:Ht.li},ht.createElement("aside",null,"\u6D4B\u8BD5\u7528\u4F8B(",Ee+1,")\u8F93\u5165\uFF1A"),ht.createElement(Ie,{id:gn==null?void 0:gn.id,value:Pn||"",className:Ht.edit,onBlur:gi=>{const Wi=[...(gn==null?void 0:gn.inputs)||[]];Wi[Ee]=ji(gi),_n("inputs",kn,Wi)},tagName:"div"})),ht.createElement("div",{className:Ht.li},ht.createElement("aside",null,"\u6D4B\u8BD5\u7528\u4F8B(",Ee+1,")\u8F93\u51FA\uFF1A"),ht.createElement(Ie,{id:gn==null?void 0:gn.id,value:((fn=gn==null?void 0:gn.outputs)==null?void 0:fn[Ee])||"",className:Ht.edit,onBlur:gi=>{const Wi=[...(gn==null?void 0:gn.outputs)||[]];Wi[Ee]=ji(gi),_n("outputs",kn,Wi)},tagName:"div"})))}),Gi(gn))))},deal:Zt=>{var kn,Mn,Un;Zt.score=Zt.score===void 0?10:Zt.score,Zt.code=(kn=Zt.code)==null?void 0:kn.trim();let gn=[];Ii(Zt==null?void 0:Zt.question)?((Mn=Zt==null?void 0:Zt.question)==null?void 0:Mn.length)>60&&gn.push("\u7F16\u7A0B\u9898\u540D\u79F0\u9650\u523660\u4E2A\u5B57\u7B26"):gn.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),Ii(Zt==null?void 0:Zt.description)||gn.push("\u672A\u8BC6\u522B\u5230\u8BD5\u9898\u63CF\u8FF0");const Tn=Ii(String((Zt==null?void 0:Zt.timeLimit)||""));if(Zt.timeLimit=Tn,(!Tn||Tn&&!["3","4","5","6","7","8","9","10"].includes(Tn))&&gn.push("\u65F6\u95F4\u9650\u5236\u4E3A\u5FC5\u586B\u9879\uFF0C\u53EA\u652F\u63013-10\u7684\u6574\u6570"),Zt.platform=Ii(Zt==null?void 0:Zt.platform),Zt!=null&&Zt.platform){const Pn=["c","c++","java","python"],Ee=(Un=Zt==null?void 0:Zt.platform)==null?void 0:Un.toLowerCase(),fn=Pn.findIndex(gi=>gi===Ee);fn>-1?Zt.platform=Rn[fn]:gn.push("\u7F16\u7A0B\u8BED\u8A00\u4E3A\u5FC5\u586B\u9879\uFF0C\u76EE\u524D\u53EA\u652F\u6301C\u3001C++\u3001Python\u3001Java\u8BED\u8A00")}else gn.push("\u7F16\u7A0B\u8BED\u8A00\u4E3A\u5FC5\u586B\u9879\uFF0C\u76EE\u524D\u53EA\u652F\u6301C\u3001C++\u3001Python\u3001Java\u8BED\u8A00");if(!(Zt!=null&&Zt.inputs)||!(Zt!=null&&Zt.outputs))Zt.inputs=[],Zt.outputs=[],gn.push("\u672A\u8BC6\u522B\u5230\u6D4B\u8BD5\u7528\u4F8B\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u6D4B\u8BD5\u7528\u4F8B(1)\u8F93\u5165\uFF1A1\uFF1B\u6D4B\u8BD5\u7528\u4F8B(1)\u8F93\u51FA\uFF1A2");else{const Pn=Math.min(Zt.inputs.length,Zt.outputs.length);Zt.inputs=Zt.inputs.slice(0,Pn),Zt.outputs=Zt.outputs.slice(0,Pn),Zt.outputs.some(Ee=>!Ii(Ee))&&gn.push("\u6D4B\u8BD5\u7528\u4F8B\u8F93\u51FA\u4E3A\u5FC5\u586B\u9879")}return Zt.errorMsg=gn.join(`
|
|
`),Zt}},{id:"7",type:"\u7EC4\u5408\u9898",element:(Zt,kn)=>{var Mn,Un;const gn=wt[kn];return ht.createElement("div",{className:Ht.row,style:{display:ui?gn!=null&&gn.errorMsg?"flex":"none":"flex"}},ht.createElement("div",{className:Ht.leftLayout},ht.createElement(mn,null,ht.createElement("div",{"data-text":"edit",contentEditable:!0,className:Ht.question},wi(Zt,kn),oo(Zt),(Mn=Zt==null?void 0:Zt.questions)==null?void 0:Mn.map((Tn,Pn)=>{var Ee;const fn=(Ee=fo.find(gi=>gi.id===(Tn==null?void 0:Tn.type)))==null?void 0:Ee.element;return ht.createElement(ht.Fragment,{key:`left-${Zt.id}-${Pn}`},fn(Tn,kn,Pn)[0])}),$e(Zt),ht.createElement("p",{contentEditable:!0},"}}")))),ht.createElement("div",{className:Ht.rightLayout},ht.createElement(ti,{className:gn!=null&&gn.errorMsg?Ht.error:""},Zi(gn,kn),$i(gn,"",kn),(Un=gn==null?void 0:gn.questions)==null?void 0:Un.map((Tn,Pn)=>{var Ee;const fn=(Ee=fo.find(gi=>gi.id===(Tn==null?void 0:Tn.type)))==null?void 0:Ee.element;return ht.createElement(ht.Fragment,{key:`right-${gn.id}-${Pn}`},fn(Tn,kn,Pn)[1])}),Gi(gn))))},deal:Zt=>{var kn,Mn,Un,gn,Tn;const Pn=En,Ee=[...fo],fn=Ee.findIndex(vi=>vi.id==="0"),gi=Ee.findIndex(vi=>vi.id==="1");if(fn!==-1){const vi=Ee[fn].deal;Ee[fn].deal=Ji=>{const Ki=vi(Ji);return Ki.errorMsg&&(Ki.errorMsg=Ki.errorMsg.split(`
|
|
`).filter(Jo=>Jo!=="\u9009\u9879\u5185\u5BB9\u91CD\u590D").join(`
|
|
`)),Ki}}if(gi!==-1){const vi=Ee[gi].deal;Ee[gi].deal=Ji=>{const Ki=vi(Ji);return Ki.errorMsg&&(Ki.errorMsg=Ki.errorMsg.split(`
|
|
`).filter(Jo=>Jo!=="\u9009\u9879\u5185\u5BB9\u91CD\u590D").join(`
|
|
`)),Ki}}Zt.questions=(kn=Zt.questions)!=null&&kn.length?En(Zt.questions.slice(0,20)):[],Zt.questions=(Mn=Zt.questions)==null?void 0:Mn.map((vi,Ji)=>{var Ki;if(vi.type==="0"||vi.type==="1"){const Jo=(Ki=vi.options)==null?void 0:Ki.map(nr=>nr==null?void 0:nr.trim().replace(/^\s+|\s+$/g,""));Jo&&new Set(Jo).size!==Jo.length&&(vi.errorMsg=(vi.errorMsg?vi.errorMsg+`
|
|
`:"")+"\u9009\u9879\u5185\u5BB9\u91CD\u590D")}return Bn(Je({},vi),{last:Ji===Zt.questions.length-1})});const Wi=(Un=Zt.questions)==null?void 0:Un.reduce((vi,Ji)=>{const Ki=parseFloat(Ji.score);return isNaN(Ki)?vi:vi+Ki},0);Zt.score=Wi;let ki=[];return(gn=Zt.questions)!=null&&gn.length?Zt.errorMsg=((Tn=Zt.questions)==null?void 0:Tn.findIndex(vi=>!!vi.errorMsg))>-1:ki.push("\u8BF7\u6DFB\u52A0\u5C0F\u9898"),Ii(Zt==null?void 0:Zt.question)||ki.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),ki.length&&(Zt.errorMsg=ki.join(`
|
|
`)),Zt}},{id:"8",type:"\u7A0B\u5E8F\u586B\u7A7A\u9898",element:(Zt,kn)=>{var Mn,Un;const gn=wt[kn],Tn=Rn.map(Pn=>({key:Pn,label:Pn,onClick:()=>_n("platform",kn,Pn)}));return ht.createElement("div",{className:Ht.row,style:{display:ui?gn!=null&&gn.errorMsg?"flex":"none":"flex"}},ht.createElement("div",{className:Ht.leftLayout},ht.createElement(mn,null,ht.createElement("div",{"data-text":"edit",contentEditable:!0,className:Ht.question},wi(Zt,kn),oo(Zt),ht.createElement(Ie,{id:Zt==null?void 0:Zt.id,value:`\u65F6\u95F4\u9650\u5236\uFF08\u79D2\uFF09\uFF1A${Zt==null?void 0:Zt.timeLimit}`,tagName:"p"}),ht.createElement(Ie,{id:Zt==null?void 0:Zt.id,value:`\u7F16\u7A0B\u8BED\u8A00\uFF1A${(Zt==null?void 0:Zt.platform)||""}`,tagName:"p"}),ht.createElement("p",{contentEditable:!0},"\u7A0B\u5E8F\u4EE3\u7801\uFF1A"),ht.createElement("h4",null),ht.createElement(Ie,{id:Zt==null?void 0:Zt.id,value:(Zt==null?void 0:Zt.code)||"",tagName:"div"}),ht.createElement("h4",null),ht.createElement(Ie,{id:Zt==null?void 0:Zt.id,value:`\u6D4B\u8BD5\u7528\u4F8B\u8F93\u5165\uFF1A${(Zt==null?void 0:Zt.input)||""}`,tagName:"p"}),ht.createElement(Ie,{id:Zt==null?void 0:Zt.id,value:`\u6D4B\u8BD5\u7528\u4F8B\u8F93\u51FA\uFF1A${(Zt==null?void 0:Zt.output)||""}`,tagName:"p"}),(Mn=Zt==null?void 0:Zt.answer)==null?void 0:Mn.map((Pn,Ee)=>ht.createElement(Ie,{key:Ee,id:Zt==null?void 0:Zt.id,value:`\u7B54\u6848${Ee+1}\uFF1A${Pn||""}`,tagName:"p"})),$e(Zt)))),ht.createElement("div",{className:Ht.rightLayout},ht.createElement(ti,{className:gn!=null&&gn.errorMsg?Ht.error:""},Zi(gn,kn),$i(gn,"",kn),ht.createElement("div",{className:Ht.liWrap},ht.createElement("div",{className:Ht.li,onKeyDown:ae},ht.createElement("aside",null,"\u65F6\u95F4\u9650\u5236\uFF08\u79D2\uFF09\uFF1A"),ht.createElement(Ie,{className:Ht.edit,id:gn==null?void 0:gn.id,value:gn==null?void 0:gn.timeLimit,tagName:"div",onBlur:Pn=>_n("timeLimit",kn,ji(Pn))})),ht.createElement("div",{className:Ht.li},ht.createElement("aside",null,"\u7F16\u7A0B\u8BED\u8A00\uFF1A"),ht.createElement("div",{className:"c-black"},ht.createElement(he.Z,{menu:{items:Tn}},ht.createElement("span",{className:"c-light-primary"},gn==null?void 0:gn.platform,ht.createElement("i",{className:"iconfont icon-a-bianzu11 font14 ml4"}))))),ht.createElement("div",{className:Ht.li,style:{flexDirection:"column",alignItems:"start"}},ht.createElement("aside",{className:"mb10"},"\u7A0B\u5E8F\u4EE3\u7801\uFF1A"),ht.createElement(Ie,{className:Ht.edit,id:gn==null?void 0:gn.id,value:(gn==null?void 0:gn.code)||"",onBlur:Pn=>_n("code",kn,ji(Pn)),tagName:"div"})),ht.createElement("div",{className:Ht.li},ht.createElement("aside",null,"\u6D4B\u8BD5\u7528\u4F8B\u8F93\u5165\uFF1A"),ht.createElement(Ie,{className:Ht.edit,id:gn==null?void 0:gn.id,value:(gn==null?void 0:gn.input)||"",onBlur:Pn=>_n("input",kn,ji(Pn)),tagName:"div"})),ht.createElement("div",{className:Ht.li},ht.createElement("aside",null,"\u6D4B\u8BD5\u7528\u4F8B\u8F93\u51FA\uFF1A"),ht.createElement(Ie,{className:Ht.edit,id:gn==null?void 0:gn.id,value:(gn==null?void 0:gn.output)||"",onBlur:Pn=>_n("output",kn,ji(Pn)),tagName:"div"}))),ht.createElement("div",{className:Ht.liWrap},(Un=gn==null?void 0:gn.answer)==null?void 0:Un.map((Pn,Ee)=>ht.createElement("div",{className:Ht.li,key:Ee},ht.createElement("aside",null,"\u7B54\u6848",Ee+1,"\uFF1A"),ht.createElement(Ie,{id:gn==null?void 0:gn.id,value:Pn||"",className:Ht.edit,onBlur:fn=>{const gi=[...(gn==null?void 0:gn.answer)||[]];gi[Ee]=ji(fn),_n("output",kn,gi)},tagName:"div"})))),Gi(gn))))},deal:Zt=>{var kn,Mn,Un,gn,Tn,Pn,Ee,fn;Zt.score=Zt.score===void 0?10:Zt.score,Zt.code=(Un=(Mn=(kn=Zt.code)==null?void 0:kn.trim())==null?void 0:Mn.replace(/@_@/g,"@\u2581@"))==null?void 0:Un.replace(/@__@/g,"@\u2581\u2581@");let gi=[];if(Ii(Zt==null?void 0:Zt.question)||gi.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),Ii(Zt==null?void 0:Zt.code)?/@▁@|@▁▁@/.test(Zt==null?void 0:Zt.code)?(gn=Zt==null?void 0:Zt.answer)!=null&&gn.length&&((Tn=Zt==null?void 0:Zt.code.match(/@▁@|@▁▁@/g))==null?void 0:Tn.length)!==((Pn=Zt==null?void 0:Zt.answer)==null?void 0:Pn.length)&&gi.push("\u586B\u7A7A\u9879\u4E0E\u7B54\u6848\u4E2A\u6570\u4E0D\u5339\u914D\uFF0C\u8BF7\u8FDB\u884C\u8C03\u6574"):gi.push("\u7A0B\u5E8F\u4EE3\u7801\u8BBE\u7F6E\u6709\u8BEF\uFF0C\u8BF7\u91CD\u65B0\u8BBE\u7F6E\u3002\u7A0B\u5E8F\u4EE3\u7801\u4E2D\u7684\u586B\u7A7A\u9879\u9700\u8981\u4F7F\u7528 @\u2581@ \u7B26\u53F7\u6807\u8BC6\u51FA\u6765"):gi.push("\u672A\u8BC6\u522B\u5230\u7A0B\u5E8F\u4EE3\u7801"),Zt!=null&&Zt.answer?(Ee=Zt.answer)!=null&&Ee.some(ki=>!Ii(ki))&&gi.push("\u7B54\u6848\u4E3A\u5FC5\u586B\u9879"):gi.push("\u672A\u8BC6\u522B\u5230\u7B54\u6848\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u7B54\u68481\uFF1AHello\uFF1B\u7B54\u68482\uFF1AWorld"),Zt.platform=Ii(Zt==null?void 0:Zt.platform),Zt!=null&&Zt.platform){const ki=["c","c++","java","python","javascript","ruby"],vi=(fn=Zt==null?void 0:Zt.platform)==null?void 0:fn.toLowerCase(),Ji=ki.findIndex(Ki=>Ki===vi);Ji>-1?Zt.platform=Rn[Ji]:gi.push("\u7F16\u7A0B\u8BED\u8A00\u4E3A\u5FC5\u586B\u9879\uFF0C\u76EE\u524D\u53EA\u652F\u6301C\u3001C++\u3001Python\u3001Java\u3001JavaScript\u3001Ruby\u8BED\u8A00")}else gi.push("\u7F16\u7A0B\u8BED\u8A00\u4E3A\u5FC5\u586B\u9879\uFF0C\u76EE\u524D\u53EA\u652F\u6301C\u3001C++\u3001Python\u3001Java\u3001JavaScript\u3001Ruby\u8BED\u8A00");Ii(Zt==null?void 0:Zt.output)||gi.push("\u6D4B\u8BD5\u7528\u4F8B\u8F93\u51FA\u4E3A\u5FC5\u586B\u9879");const Wi=Ii(String((Zt==null?void 0:Zt.timeLimit)||""));return Zt.timeLimit=Wi,(!Wi||Wi&&!["3","4","5","6","7","8","9","10"].includes(Wi))&&gi.push("\u65F6\u95F4\u9650\u5236\u4E3A\u5FC5\u586B\u9879\uFF0C\u53EA\u652F\u63013-10\u7684\u6574\u6570"),Zt.errorMsg=gi.join(`
|
|
`),Zt}}],ri=()=>ht.createElement(ht.Fragment,null,ho.filter(Zt=>{var kn;return!!((kn=fo.find(Un=>Un.id===(Zt==null?void 0:Zt.type)))==null?void 0:kn.element)}).map((Zt,kn)=>{var Mn;const Un=(Mn=fo.find(gn=>gn.id===(Zt==null?void 0:Zt.type)))==null?void 0:Mn.element;return ht.createElement(ht.Fragment,{key:Zt.id},Un(Zt,kn))})),It=()=>vn(void 0,null,function*(){const Zt=wt.filter(kn=>!kn.checked);if(Qi!==3||!Zt.length){Me.ZP.warning("\u672A\u8BC6\u522B\u5230\u8BD5\u9898\uFF01");return}if(Bi){Fe(!0),yield Bi(wt),Fe(!1);return}Dn.setFieldsValue({sub_discipline_id:Ct}),Ue(!0)}),qo=(Zt,kn=[])=>{if(typeof Zt=="string")return Zt.trim();if(Array.isArray(Zt))return Zt.map(Mn=>qo(Mn,kn));if(typeof Zt=="object"&&Zt!==null){const Mn={};for(const Un in Zt)Zt.hasOwnProperty(Un)&&(kn.includes(Un)?Mn[Un]=Zt[Un]:Mn[Un]=qo(Zt[Un],kn));return Mn}return Zt},_o=Zt=>vn(void 0,null,function*(){const kn=En(qo(Zt));pn(kn),Li(JSON.parse(JSON.stringify(kn))),Ao(3),xi(!1),Ce(!1)});(0,ht.useEffect)(()=>{if(un)return;const Zt=()=>{Ti(kn=>kn>=90?(clearInterval(Vn.current),90):kn+1)};return Vn.current=setInterval(Zt,5e4/90),()=>clearInterval(Vn.current)},[un]);const Sr=(Zt,kn)=>{Qn(!1);const Mn=new FormData;Object.keys(kn).forEach(gn=>{Mn.append(gn,kn[gn])});const Un=new window.XMLHttpRequest;Un.withCredentials=!0,Un.addEventListener("load",function(gn){return vn(this,null,function*(){var Tn,Pn;try{const Ee=JSON.parse((Tn=gn==null?void 0:gn.target)==null?void 0:Tn.response);if(Qn(!0),Ti(100),yield new Promise(fn=>setTimeout(()=>fn(),780)),Ee.status===0){if(!((Pn=Ee==null?void 0:Ee.data)!=null&&Pn.length)){Me.ZP.warning("\u672A\u8BC6\u522B\u5230\u8BD5\u9898!"),xi(!1);return}_o((Ee==null?void 0:Ee.data)||[])}else xi(!1),Me.ZP.warning(Ee==null?void 0:Ee.message)}catch(Ee){console.log("\u8BF7\u6C42\u9519\u8BEF\uFF1A",Ee)}})}),Un.addEventListener("error",()=>{xi(!1)}),Un.open("POST",`${lt.Z.API_SERVER}${Zt}`),Un.send(Mn)},Fr=Zt=>vn(void 0,null,function*(){const kn=Zt.name.split(".").slice(-1)[0].toLowerCase();return["docx"].indexOf(kn)==-1?(Me.ZP.error(`${Zt.name}\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\uFF0C\u5F53\u524D\u4EC5\u9650\u652F\u6301\u683C\u5F0F\u4E3Adocx\u6587\u4EF6\uFF08Microsoft Word 2007\u4EE5\u4E0A\u7684\u7248\u672C\uFF09`),Promise.reject()):(xi(!0),so("\u5904\u7406\u4E2D"),Sr("/api/intelligent_imports/import.json",{file:Zt}),Promise.reject())});let Xo=[{key:1,label:ht.createElement(Oe.default,{showUploadList:!1,accept:".docx",maxCount:1,beforeUpload:Fr},ht.createElement("div",{style:{padding:"0 5px",width:108,height:35,lineHeight:"35px"}},"\u672C\u5730\u5BFC\u5165"))}];((0,an.Ny)()||(0,an.$O)())&&Xo.push({key:2,label:ht.createElement("div",{style:{padding:"0 5px"}},"\u5927\u6A21\u578B\u667A\u80FD\u51FA\u9898"),onClick:()=>{li.current.onClick()}});const kr=[wt.length,(qi=wt.filter(Zt=>!!(Zt!=null&&Zt.errorMsg)))==null?void 0:qi.length];return ht.createElement("div",{className:Re()(Ht.intelligentBox,"intelligent-body-curb",yn),style:Bn(Je({},Ge),{width:Ne}),ref:Ve},ht.createElement("div",{className:Ht.underpin},ht.createElement("b",{style:Jn}),ht.createElement("b",{style:Jn})),ht.createElement("div",{className:Ht.head,style:{top:Nt}},ht.createElement("div",{className:Ht.leftLayout},Gt||ht.createElement(ht.Fragment,null,ht.createElement(ce.Z,{align:"middle"},ht.createElement("div",{className:Ht.title},"\u8BD5\u9898\u7F16\u8F91"),!St&&ht.createElement(dt.op,{href:`${lt.Z.API_SERVER}/api/intelligent_imports/download_template`,download:!0,type:"link"},"\u4E0B\u8F7DWord\u6A21\u7248",ht.createElement("i",{className:"iconfont icon-xiazai4 font14 ml10"})),ht.createElement(dt.op,{onClick:qn,shape:"default"},"\u4E00\u952E\u6E05\u7A7A"),!St&&ht.createElement(he.Z,{overlayClassName:Ht.menu,menu:{items:Xo}},ht.createElement(dt.op,{className:"ml20",type:"primary",shape:"default"},"\u5BFC\u5165\u8BD5\u9898")),!!di&&di),ht.createElement("div",{className:Ht.tip},ht.createElement("i",{className:"iconfont icon-tishi7 font12 mr10"}),"\u63D0\u793A\uFF1A\u82E5\u8BC6\u522B\u6709\u8BEF\uFF0C\u53EF\u5728\u5DE6\u4FA7\u7F16\u8F91\u533A\u70B9\u51FB\u5BF9\u5E94\u7684\u8BD5\u9898\u6309\u683C\u5F0F\u4FEE\u6539\u540E\u91CD\u65B0\u8BC6\u522B"))),ht.createElement(ce.Z,{className:Ht.rightLayout,style:{alignItems:"start"}},Lt||ht.createElement(ht.Fragment,null,ht.createElement("div",{className:Ht.title,style:{marginRight:0}},"\u8BD5\u9898\u9884\u89C8"),[3].includes(Qi)&&ht.createElement(ve.default,{className:"ml20",checked:ui,onChange:Zt=>Ce(Zt.target.checked)},"\u4EC5\u67E5\u770B\u9519\u8BEF\u8BD5\u9898"),[3].includes(Qi)&&ht.createElement("div",{style:{color:"#5F6368",marginLeft:"auto"}},"\u5171\u8BC6\u522B",ht.createElement("span",{className:"ml5 mr5 c-light-primary"},kr[0]),"\u9898\uFF0C\u5176\u4E2D\u8BC6\u522B\u6709\u8BEF",ht.createElement("span",{className:"ml5 mr5 c-red-e53"},kr[1]),"\u9898")),hn&&ht.createElement("div",{className:Ht.tabs},ho==null?void 0:ho.map((Zt,kn)=>ht.createElement("div",{onClick:()=>{ai(kn)},className:Nn===kn&&Ht.active,key:kn},"\u65B0\u9898",kn+1)))),ht.createElement("div",{className:Ht.centerBox},ht.createElement("img",{className:"mb10",src:Dt,width:56}),!Ke&&ht.createElement(dt.op,{onClick:ci},"\u8BC6\u522B"))),[1,2].includes(Qi)&&Pi(),[3].includes(Qi)&&ri(),ht.createElement("div",{className:"pb10"}),ht.createElement("div",{className:Ht.buttonFixed},ht.createElement("div",{className:Ht.buttonWrap},ht.createElement(je.ZP,{size:"middle",className:`${Ht.button} mr20`,onClick:Zn},"\u53D6\u6D88"),ht.createElement(je.ZP,{size:"middle",type:"primary",loading:zt,className:`${Ht.button}`,onClick:It},pi))),ht.createElement(Jt.default,{centered:!0,closable:!1,destroyOnClose:!0,open:mo,title:null,footer:null,width:320,afterClose:()=>Ti(0)},ht.createElement(ce.Z,{align:"middle",style:{flexDirection:"column"}},ht.createElement("b",{style:{color:"#5F6368"},className:"font16 mb5 mt20"},Ui,ht.createElement("span",{className:Ht.dotLoading},ht.createElement("span",null,"."),ht.createElement("span",null,"."),ht.createElement("span",null,"."))),ht.createElement(kt.Z,{style:{width:"auto"},size:[200,8],showInfo:!1,percent:Mo}),ht.createElement("div",{style:{color:"#5F6368"},className:"mb20"},"\u6B63\u5728\u8BC6\u522B\uFF0C\u5DF2\u5B8C\u6210",ht.createElement("span",{className:"ml5 c-light-primary"},Mo,"%")))),ht.createElement(Jt.default,{centered:!0,open:Kn,title:"\u8BD5\u9898\u5BFC\u5165\u8BBE\u7F6E",confirmLoading:xn,width:480,onCancel:()=>Ue(!1),onOk:()=>Dn.submit(),afterClose:()=>{Dn.resetFields()}},ht.createElement(Se.default,{style:{maxHeight:550},form:Dn,layout:"horizontal",colon:!1,size:"large",onFinish:Zt=>vn(void 0,null,function*(){var kn,Mn,Un,gn,Tn;const Pn=wt.filter(gi=>!gi.checked&&!gi.errorMsg);wn(!0);const Ee=()=>vn(void 0,null,function*(){var gi,Wi;const ki=yield(0,Ut.ZP)("/api/intelligent_imports/save.json",{method:"post",body:Bn(Je(Je({},We),Zt),{list:Pn,mode:en})});ki.status===0&&(fi&&((gi=ki==null?void 0:ki.data)!=null&&gi.success)&&window.location.pathname==="/problemset"&&(Gn.Z.publish("refresh-item-bank",Zt.group_id),yield new Promise(vi=>setTimeout(()=>vi(),1500))),Me.ZP.success(`\u6210\u529F\u5BFC\u5165${(Wi=ki==null?void 0:ki.data)==null?void 0:Wi.success}\u9053\u8BD5\u9898`,3),sn(ki),Ue(!1)),wn(!1)});if(en!==1){yield Ee();return}const fn=yield(0,Ut.ZP)("/api/intelligent_imports/is_repeated.json",{method:"post",body:{list:wt,mode:en}});if(fn.status===0){if(!((kn=fn==null?void 0:fn.data)!=null&&kn.error_size)){yield Ee();return}Jt.default.confirm({centered:!0,icon:null,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onCancel:()=>{wn(!1)},title:"\u63D0\u793A",content:ht.createElement("div",{style:{overflow:"auto",maxHeight:500}},"\u5171",ht.createElement("span",{className:"c-light-primary ml5 mr5"},(Mn=fn==null?void 0:fn.data)==null?void 0:Mn.all_size),"\u9053\u8BD5\u9898\uFF0C\u5176\u4E2D",ht.createElement("span",{style:{color:"#FF9D18"},className:"ml5 mr5"},(Un=fn==null?void 0:fn.data)==null?void 0:Un.error_size),"\u9053\u8BD5\u9898\u91CD\u590D\uFF08\u7B2C",ht.createElement("span",{className:"ml5 mr5"},(Tn=(gn=fn==null?void 0:fn.data)==null?void 0:gn.index)==null?void 0:Tn.join("\u3001")),"\u9053\uFF09\uFF0C\u91CD\u590D\u8BD5\u9898\u5C06\u4F1A\u4E3A\u60A8\u81EA\u52A8\u8FC7\u6EE4\uFF0C\u786E\u5B9A\u5BFC\u5165\u5417\uFF1F"),onOk:Ee})}})},ht.createElement("div",{className:"c-grey-999 mb20"},"\u63D0\u793A\uFF1A\u8BC6\u522B\u6709\u8BEF\u7684\u8BD5\u9898\u5C06\u4E0D\u4F1A\u88AB\u5BFC\u5165"),ht.createElement(Se.default.Item,{label:"\u65B9\u5411&\u8BFE\u7A0B",name:"sub_discipline_id",labelCol:{span:5},wrapperCol:{span:19},rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B"}]},ht.createElement(et.Z,{placeholder:"\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B",fieldNames:{label:"name",value:"id",children:"sub_disciplines"},options:re})),en===1&&ht.createElement(Se.default.Item,{label:ht.createElement(ce.Z,{align:"middle",style:{justifyContent:"space-between"}},ht.createElement("span",null,"\u653E\u5165\u6587\u4EF6\u5939\u76EE\u5F55"),ht.createElement("div",{onClick:()=>le(!0),style:{marginLeft:211,transform:"translateX(14px)",display:"flex",color:"#5F6368",cursor:"pointer"}},ht.createElement("img",{className:"mr5 primary-hover",src:$t}),"\u65B0\u5EFA\u6587\u4EF6\u5939")),rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6587\u4EF6\u5939"}],name:"group_id",labelCol:{span:24},wrapperCol:{span:24}},ht.createElement(Qt.Z,{key:Ze})))),ht.createElement(Jt.default,{centered:!0,open:qe,title:"\u65B0\u5EFA\u6587\u4EF6\u5939",destroyOnClose:!0,width:480,confirmLoading:Ln,onCancel:()=>le(!1),onOk:()=>On.submit(),afterClose:()=>{On.resetFields()}},ht.createElement(Se.default,{style:{maxHeight:550},form:On,layout:"horizontal",colon:!1,size:"large",onFinish:Zt=>vn(void 0,null,function*(){var kn;Be(!0),(yield(0,Ut.ZP)("/api/item_banks_groups.json",{method:"post",body:{name:Zt.name,parent_id:(kn=Zt==null?void 0:Zt.parent_id)==null?void 0:kn[0]}})).status===0?(An(Ze+1),setTimeout(()=>{Me.ZP.success("\u64CD\u4F5C\u6210\u529F"),le(!1),Be(!1)},1e3)):Be(!1)})},ht.createElement(Se.default.Item,{label:"\u6587\u4EF6\u5939\u540D\u79F0",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5939\u540D\u79F0"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},ht.createElement(nt.default,{maxLength:60,showCount:!0,placeholder:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5939\u540D\u79F0"})),ht.createElement(Se.default.Item,{label:"\u6587\u4EF6\u5939\u4F4D\u7F6E",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6587\u4EF6\u5939"}],name:"parent_id"},ht.createElement(Qt.Z,null)))),ht.createElement(bn.Z,{onSave:Zt=>{xi(!0),so("\u5904\u7406\u4E2D"),Sr("/api/intelligent_imports/import.json",{html:Zt})},ref:li}))},ii=pt;var mi=Wn},68664:function(Ye,jn,Ft){"use strict";Ft.d(jn,{N:function(){return nt}});var ht=Ft(59301),Ht=Ft(57809),fe=Ft(43418),Re=Ft(92832),Se=Ft(8591),Me=Ft(95237),Jt=Ft(43604),Le=Ft(99064),ce={wrap:"wrap___F7E3F",selectWrapper:"selectWrapper____kESB",tips:"tips___aHjQY",linkBtn:"linkBtn___uggVr",mainText:"mainText____S1I0",public_tips:"public_tips___sZVWd",inputCss:"inputCss___t66EO",bt:"bt___lXptu",add_style:"add_style___knrMF"},ve=Ft(92310),he=Ft.n(ve),Oe=Ft(87169),je=Ft(59301),kt=(dt,lt,pt)=>new Promise((yt,At)=>{var Dt=$t=>{try{Qt(pt.next($t))}catch(ne){At(ne)}},Ut=$t=>{try{Qt(pt.throw($t))}catch(ne){At(ne)}},Qt=$t=>$t.done?yt($t.value):Promise.resolve($t.value).then(Dt,Ut);Qt((pt=pt.apply(dt,lt)).next())});const{Option:et}=Ht.default,nt=({subId:dt,value:lt,selectvalues:pt,disabled:yt,knowledgeOptions:At=[],className:Dt,height:Ut,onChange:Qt=()=>{},onAddKnowledgeFinish:$t=()=>{},zIndex:ne=1e3})=>{const _t=(0,ht.useRef)(),[Pe,ue]=(0,ht.useState)([]);lt=lt||[];const pe=(Ae,Ie)=>{Ae?(ue([...Ie]),Qt([...Ie])):(ue([]),Qt([]))};(0,ht.useEffect)(()=>{(pt==null?void 0:pt.length)>0?(ue([...pt]),Qt([...pt])):(ue([]),Qt([]))},[At]),(0,ht.useEffect)(()=>{(lt==null?void 0:lt.length)>0&&Qt([...lt])},[At]);const oe=Ae=>{Ae.preventDefault(),_t.current="",fe.default.confirm({centered:!0,width:585,zIndex:ne,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",icon:null,title:"\u65B0\u5EFA\u77E5\u8BC6\u70B9",className:"custom-modal-divider",content:je.createElement("div",{className:"font14"},je.createElement("div",{className:ce.public_tips},je.createElement(Oe.Z,{style:{color:"#FF8C29",marginRight:10,paddingTop:5}}),"\u65B0\u5EFA\u7684\u77E5\u8BC6\u70B9\u4EC5\u672C\u4EBA\u53EF\u89C1\uFF0C\u5E73\u53F0\u5BA1\u6838\u5217\u5165\u516C\u5F00\u77E5\u8BC6\u70B9\u540E\uFF0C\u5BF9\u6240\u6709\u7528\u6237\u53EF\u89C1\u3002 \u5E73\u53F0\u6709\u6743\u5220\u9664\u4E0D\u5408\u9002\u7684\u77E5\u8BC6\u70B9\uFF0C\u8BF7\u8BA4\u771F\u586B\u5199\u77E5\u8BC6\u70B9\u540D\u79F0\u3002"),je.createElement("div",{style:{display:"flex",alignItems:"center"}},je.createElement("div",{style:{width:"95px"}},je.createElement("span",{className:ce.bt},"*"),"\u77E5\u8BC6\u70B9\u540D\u79F0"),je.createElement(Re.default,{className:ce.inputCss,style:{width:"calc(100% - 95px)"},maxLength:20,size:"middle",showCount:!0,placeholder:"\u8BF7\u8F93\u5165\u77E5\u8BC6\u70B9\u540D\u79F0",defaultValue:_t.current,onChange:Ie=>{_t.current=Ie.target.value}}))),onOk:()=>new Promise((Ie,an)=>kt(void 0,null,function*(){if(!_t.current)return Se.ZP.warning("\u8BF7\u8F93\u5165\u77E5\u8BC6\u70B9\u540D\u79F0"),an();if(_t.current.length>20)return Se.ZP.warning("\u8BF7\u8F93\u5165\u4E0D\u8D85\u8FC720\u5B57\u7684\u77E5\u8BC6\u70B9\u540D\u79F0"),an();const Gn=yield(0,Le.ZP)("/api/tag_disciplines.json",{method:"post",body:{name:_t.current,sub_discipline_id:dt}});if((Gn==null?void 0:Gn.status)===0){$t({id:Gn.tag_discipline_id,name:_t.current,type:"personal"});let bn=pt||[];bn.push(Gn.tag_discipline_id),Qt([...bn]),ue([...bn]),Qt([...bn])}return Ie()}))})};return je.createElement(Me.Z,{wrap:!1,align:"middle",className:he()(ce.wrap,Dt)},je.createElement(Jt.Z,null,je.createElement(Ht.default,{mode:"multiple",disabled:!dt||yt,className:ce.selectWrapper,placeholder:"\u8BF7\u9009\u62E9\u77E5\u8BC6\u70B9\uFF0C\u652F\u6301\u9009\u62E9\u591A\u4E2A",onChange:pe,style:{width:Ut||490},showSearch:!0,allowClear:!0,value:Pe,filterOption:(Ae,Ie)=>Ie.label.indexOf(Ae.toLowerCase())>=0},At==null?void 0:At.map(Ae=>je.createElement(et,{key:Ae.id,value:Ae.id,label:Ae.name},je.createElement("div",{style:{display:"flex",alignItems:"center"}},je.createElement("span",{style:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},Ae.name),(Ae==null?void 0:Ae.type)==="personal"&&je.createElement("div",{style:{marginLeft:"5px",border:"1px solid #24C074",color:"#24C074",padding:"0 4px",borderRadius:"2px",fontSize:"12px",height:"20px",lineHeight:"20px"}},"\u81EA\u7528")))))),dt&&je.createElement(Jt.Z,{className:`ml20 ${Ut&&ce.add_style}`},je.createElement("span",{className:ce.tips},"\u6CA1\u6709\u5408\u9002\u7684\u77E5\u8BC6\u70B9\uFF1F"),je.createElement("span",{className:ce.linkBtn,onClick:oe},"\u65B0\u5EFA\u77E5\u8BC6\u70B9")))}},59879:function(Ye,jn,Ft){"use strict";var ht=Ft(59301),Ht=Ft(88010),fe=Ft(48136),Re=Ft(41588),Se=Ft(43418),Me=Ft(59301);const Jt=(0,ht.forwardRef)(({callback:Le,width:ce,onChange:ve,disabled:he,readOnly:Oe,type:je="",value:kt="",style:et={}},nt)=>{const dt=(0,ht.useRef)(),lt=(0,ht.useRef)(),[pt,yt]=(0,ht.useState)(0),[At,Dt]=(0,ht.useState)(0),[Ut,Qt]=(0,ht.useState)(!1),$t=()=>{var ue=document.createElement("div");ue.innerHTML=dt.current.getValue();var pe=ue.innerText;return Le&&Le(pe),pe};(0,ht.useImperativeHandle)(nt,()=>({getData:$t}));const ne=ue=>{ue.preventDefault();const pe=ue.clientX-pt,oe=ue.clientY-At;document.body.onmousemove=Ae=>{let Ie=Ae.clientX-pe,an=Ae.clientY-oe;const Gn=document.getElementsByClassName("markdown-popup-form")[0],bn=window.innerWidth-Gn.offsetWidth,de=window.innerHeight-Gn.offsetHeight;Ie=Math.max(0,Math.min(Ie,bn)),an=Math.max(0,Math.min(an,de)),_t(Ae.clientX,Ae.clientY,pe,oe)&&(yt(Ie),Dt(an))},document.body.onmouseup=function(){document.body.onmousemove=null}},_t=(ue,pe,oe,Ae)=>{const Ie=document.body.clientHeight,an=document.body.clientWidth;return ue<20&&oe>ue||ue>an-20&&oe<ue||pe<20&&Ae>pe||pe>Ie-20&&Ae<pe?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};(0,ht.useEffect)(()=>{Ut&&setTimeout(()=>{const ue=document.getElementsByClassName("markdown-popup-form")[0],pe=window.innerWidth/2-ue.offsetWidth/2,oe=window.innerHeight/2-ue.offsetHeight/2;yt(pe),Dt(oe)},0)},[Ut]);const Pe=()=>{he||Oe||Qt(!0)};return Me.createElement("div",{style:et},Me.createElement("div",{style:{width:ce||"100%",position:"relative"},className:`${Ht.Z.mathFillWrap} ${he||Oe?"cursorDefault":""}`,onClick:()=>Pe()},Me.createElement("math-field",{disabled:he,locale:"zh_cn",class:`${Ht.Z.mathField} ${je}`,readOnly:Oe,placeholder:"\u8BF7\u8F93\u5165\u516C\u5F0F",ref:dt,style:{width:"100%",fontSize:kt?18:14},value:kt||""})),Me.createElement(Se.default,{maskClosable:!1,centered:!0,width:860,style:{position:"absolute",left:pt,top:At},title:Me.createElement("div",{style:{cursor:"move"},onMouseDown:ne},"\u8F93\u5165\u516C\u5F0F"),open:Ut,onOk:()=>{const ue=lt.current.getData();dt.current.setValue(ue),ve(ue),Qt(!1)},onCancel:()=>{Qt(!1)},destroyOnClose:!0,className:"markdown-popup-form"},Me.createElement(Re.Z,{value:kt,ref:lt,onChange:ve,showSaveButton:!1})))});jn.Z=Jt},41588:function(Ye,jn,Ft){"use strict";var ht=Ft(59301),Ht=Ft(95237),fe=Ft(43604),Re=Ft(99313),Se=Ft(3113),Me=Ft(85149),Jt=Ft(88010),Le=Ft(48136),ce=Ft(59301);const ve=(0,ht.forwardRef)(({callback:he,showSaveButton:Oe,value:je=""},kt)=>{const et=(0,ht.useRef)(),nt=[{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 "}]}]}],dt=[{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}`}]}]}],lt=At=>{et.current.setValue(et.current.getValue()+" "+At.value+" ")},pt=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:ce.createElement(Ht.Z,{className:Jt.Z.lists,gutter:[10,10]},nt.map((At,Dt)=>ce.createElement(fe.Z,{flex:"110px",className:Jt.Z.item},ce.createElement("div",null,ce.createElement(Me.Z,{value:`$$${At.value}$$`}),At.name),ce.createElement("div",{className:Jt.Z.children},At.children.map((Ut,Qt)=>ce.createElement("div",{key:Qt},ce.createElement("h1",null,Ut.name),ce.createElement(Ht.Z,{gutter:[10,10]},Ut.data.map(($t,ne)=>ce.createElement(fe.Z,{key:ne,onClick:()=>lt($t),className:Jt.Z.diamond},ce.createElement(Me.Z,{value:"`$$"+$t.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:ce.createElement(Ht.Z,{className:Jt.Z.lists,gutter:[10,10]},dt.map((At,Dt)=>ce.createElement(fe.Z,{flex:"110px",className:Jt.Z.item},ce.createElement("div",null,ce.createElement(Me.Z,{value:"`$$"+At.value+"$$`"}),At.name),ce.createElement("div",{className:Jt.Z.children},At.children.map((Ut,Qt)=>ce.createElement("div",{key:Qt},Ut.name&&ce.createElement("h1",null,Ut.name),ce.createElement(Ht.Z,{gutter:[10,10]},Ut.data.map(($t,ne)=>ce.createElement(fe.Z,{key:ne,onClick:()=>lt($t),className:Jt.Z.diamond},ce.createElement(Me.Z,{value:"`$$"+$t.value+"$$`"}))))))))))}],yt=()=>{var At=document.createElement("div");At.innerHTML=et.current.getValue();var Dt=At.innerText;return he&&he(Dt),Dt};return(0,ht.useImperativeHandle)(kt,()=>({getData:yt})),ce.createElement("div",{className:Jt.Z.mathWrap},ce.createElement(Re.default,{defaultActiveKey:"1",items:pt}),ce.createElement("math-field",{locale:"zh_cn",className:Jt.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:et,style:{width:800,marginTop:30,fontSize:18}},je||""),Oe&&ce.createElement("div",{className:Jt.Z.button},ce.createElement(Se.ZP,{size:"large",onClick:yt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});jn.Z=ve},8797:function(Ye,jn,Ft){"use strict";var ht=Ft(59301),Ht=Ft(93314),fe=Ft(3113),Re=Object.defineProperty,Se=Object.defineProperties,Me=Object.getOwnPropertyDescriptors,Jt=Object.getOwnPropertySymbols,Le=Object.prototype.hasOwnProperty,ce=Object.prototype.propertyIsEnumerable,ve=(kt,et,nt)=>et in kt?Re(kt,et,{enumerable:!0,configurable:!0,writable:!0,value:nt}):kt[et]=nt,he=(kt,et)=>{for(var nt in et||(et={}))Le.call(et,nt)&&ve(kt,nt,et[nt]);if(Jt)for(var nt of Jt(et))ce.call(et,nt)&&ve(kt,nt,et[nt]);return kt},Oe=(kt,et)=>Se(kt,Me(et));const je=({img:kt,buttonProps:et={},styles:nt={},customText:dt,ButtonText:lt,ButtonClick:pt,Buttonclass:yt,ButtonTwo:At,imgStyles:Dt,loading:Ut=!1,className:Qt=""})=>ht.createElement("section",{className:`tc animated fadeIn ${Qt}`,style:he({color:"#999",margin:"100px auto",visibility:Ut?"hidden":"visible"},nt)},ht.createElement("img",{src:kt||Ht,style:Oe(he({},Dt),{pointerEvents:"none",userSelect:"none"})}),ht.createElement("p",{className:"mt20 font14"},dt||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),lt&&ht.createElement(fe.ZP,he({className:yt,onClick:pt},et),lt),At&&At);jn.Z=je},23210:function(Ye,jn,Ft){"use strict";Ft.d(jn,{Z:function(){return yt}});var ht=Ft(59301),Ht={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},fe=Ft(3113),Re=Ft(70557),Se=Ft(23954),Me=Ft(6848),Jt=Ft(955),Le=Ft(94941),ce=Ft(8797),ve=Ft(3294),he=Ft(19381),Oe=Ft(59301),je=Object.defineProperty,kt=Object.getOwnPropertySymbols,et=Object.prototype.hasOwnProperty,nt=Object.prototype.propertyIsEnumerable,dt=(At,Dt,Ut)=>Dt in At?je(At,Dt,{enumerable:!0,configurable:!0,writable:!0,value:Ut}):At[Dt]=Ut,lt=(At,Dt)=>{for(var Ut in Dt||(Dt={}))et.call(Dt,Ut)&&dt(At,Ut,Dt[Ut]);if(kt)for(var Ut of kt(Dt))nt.call(Dt,Ut)&&dt(At,Ut,Dt[Ut]);return At},pt=(At,Dt,Ut)=>new Promise((Qt,$t)=>{var ne=ue=>{try{Pe(Ut.next(ue))}catch(pe){$t(pe)}},_t=ue=>{try{Pe(Ut.throw(ue))}catch(pe){$t(pe)}},Pe=ue=>ue.done?Qt(ue.value):Promise.resolve(ue.value).then(ne,_t);Pe((Ut=Ut.apply(At,Dt)).next())}),yt=({editOffice:At="view",data:Dt,theme:Ut,type:Qt,filename:$t,monacoEditor:ne,className:_t,style:Pe,close:ue,onClose:pe,hasMask:oe,disabledDownload:Ae,onImgDimensions:Ie,showNodata:an,recordInfo:Gn})=>{const[bn,de]=(0,ht.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[Wt,xe]=(0,ht.useState)(""),[nn,dn]=(0,ht.useState)(),ge=window.ENV==="build"?"/react/build":"",we=location.host.startsWith("localhost")?ve.Z.PROXY_SERVER:ve.Z.API_SERVER,Bn=10*(1024*1024),vn=(0,ht.useRef)();Dt!=null&&Dt.startsWith("/api")&&Qt!=="txt"&&(Dt=ve.Z.API_SERVER+Dt);const zn=Wn=>Wn.substring(Wn.lastIndexOf("/")+1).split(".").pop();$t&&ne&&(ne.filename=$t),(0,ht.useEffect)(()=>{var Wn,ii;const mi=(ii=(Wn=document.cookie)==null?void 0:Wn.replace(/\s/g,""))==null?void 0:ii.split(";");mi==null||mi.map(yn=>{let Ge=yn.split("=");Ge[0]==="_educoder_session"&&xe(Ge[1])})},[]),(0,ht.useEffect)(()=>{Qt==="office"&&(Dt.indexOf("bigfilescdn.")>-1||Dt.indexOf("bigfiles1")>-1?dn({url:Dt,fileType:zn(Dt),model:Dt.indexOf("model=edit")?"edit":"view"}):ae())},[Qt,Dt]);const ae=()=>pt(void 0,null,function*(){console.log("data:",Dt);let Wn=Dt;Dt.startsWith("http")||(Wn=location.origin+Wn);let ii=new URL(Wn).pathname.split("/").pop();const mi=yield(0,Le.gJ)({attachment_id:ii});mi.url=we+mi.url,dn(mi)}),mn=()=>{if(Dt.startsWith("http")||Dt.startsWith("blob:")){ti();return}(0,Jt.Sv)($t||"educoder",Dt,$t)},ti=()=>{Gn&&(0,he.fc)({id:Gn==null?void 0:Gn.id,watch_type:1,course_id:Gn==null?void 0:Gn.course_id}),(0,Jt.Nd)($t||"educoder",decodeURIComponent(Dt))};return Oe.createElement("div",{style:lt({},Pe||{}),className:`${oe&&Ht.bgBlack} ${Qt?Ht.wrp:"hide"}`},ue&&Oe.createElement("div",{className:Ht.close,ref:vn},!!Ie&&Oe.createElement(Me.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>vn.current},Oe.createElement("span",{onClick:()=>{pe(),Ie()}},Oe.createElement("i",{className:"icon-yulanpizhu"}))),!Ae&&Oe.createElement(Me.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>vn.current},Oe.createElement("span",{onClick:ti},Oe.createElement("i",{className:"icon-quxiaozhiding"}))),Oe.createElement(Me.Z,{title:"\u5173\u95ED",getPopupContainer:()=>vn.current},Oe.createElement("span",{className:"",onClick:pe},Oe.createElement("i",{className:"icon-guanbi1"})))),Oe.createElement("div",{className:`${Ht[_t]} ${_t} ${Ht.monaco} ${Qt==="txt"?"show":"hide"}`},Qt==="txt"&&Oe.createElement(Oe.Fragment,null,Oe.createElement(Se.ZP,lt({},ne)))),Qt==="audio"&&Oe.createElement("audio",{src:`${(Dt==null?void 0:Dt.indexOf("http://"))>-1||(Dt==null?void 0:Dt.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${Dt}`,autoPlay:!0}),Qt==="video"&&Oe.createElement(Oe.Fragment,null,(Dt==null?void 0:Dt.indexOf("http"))>-1?Oe.createElement("video",{controls:!0,src:`${Dt}`,autoPlay:!0}):Oe.createElement("video",{controls:!0,src:`data:video/mp4;base64,${Dt}`,autoPlay:!0})),Qt==="office"&&nn&&Oe.createElement("iframe",{src:`${ge}/office.html?key=${nn.key}&url=${btoa(nn.url)}&callbackUrl=${we+(nn.callbackUrl||"")}&fileType=${nn.fileType}&title=${nn.title||""}&model=${At}&officeServer=${ve.Z.ONLYOFFICE}&disabledDownload=${!!Ae}`}),Qt==="html"&&Oe.createElement("iframe",{src:Dt+"&disposition=inline"}),Qt==="pdf"&&Oe.createElement("iframe",{src:`${ge}/js/pdfview/index.html?filename=${$t||"educoder.pdf"}&url=${encodeURIComponent(Dt)}&disabledDownload=${!!Ae}`}),Qt==="image"&&Oe.createElement("img",{src:`${(Dt==null?void 0:Dt.indexOf("http://"))>-1||(Dt==null?void 0:Dt.indexOf("https://"))>-1?"":"data:image/png;base64,"}${Dt}`}),(Qt==="other"||Qt==="download")&&Oe.createElement(Oe.Fragment,null,an?Oe.createElement(ce.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:Oe.createElement(fe.ZP,{icon:Oe.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:mn,disabled:Ae},"\u4E0B\u8F7D")}):Oe.createElement(fe.ZP,{type:"primary",size:"middle",onClick:mn,disabled:Ae},Oe.createElement(Re.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")))}},85149:function(Ye,jn,Ft){"use strict";Ft.d(jn,{z:function(){return Qt},Z:function(){return $t}});var ht=Ft(59301),Ht=Ft(50304),fe=Ft(24768),Re=Ft(64018),Se=Ft(65157),Me=Ft(3294),Jt=Ft(955),Le=Ft(15342),ce=Ft(1012),ve=Ft(23210),he=Ft(59301),je=({html:ne})=>{const _t=(0,ht.useRef)(null),Pe=(0,ht.useRef)(null),ue=`.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,ht.useEffect)(()=>{const pe=_t.current.attachShadow({mode:"open"});Pe.current=document.createElement("div"),Pe.current.className="markdown-body",Pe.current.innerHTML=ne,pe.appendChild(Pe.current);const oe=document.createElement("style");return oe.textContent=ue,pe.appendChild(oe),()=>{pe.innerHTML=""}},[]),(0,ht.useEffect)(()=>{Pe.current&&(Pe.current.innerHTML=ne)},[ne]),he.createElement("div",{ref:_t})},kt=Object.defineProperty,et=Object.getOwnPropertySymbols,nt=Object.prototype.hasOwnProperty,dt=Object.prototype.propertyIsEnumerable,lt=(ne,_t,Pe)=>_t in ne?kt(ne,_t,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):ne[_t]=Pe,pt=(ne,_t)=>{for(var Pe in _t||(_t={}))nt.call(_t,Pe)&<(ne,Pe,_t[Pe]);if(et)for(var Pe of et(_t))dt.call(_t,Pe)&<(ne,Pe,_t[Pe]);return ne};const yt="@\u2581\u2581@",At="@\u2581@",Dt=/<pre[^>]*>/g;function Ut(ne){let _t=document.createElement("div");return _t.innerHTML=ne,_t.childNodes.length===0?"":_t.childNodes[0].nodeValue}const Qt=(ne,_t)=>{ne=ne||"";const Pe=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,ue=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,pe=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,oe=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return _t?ne.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(Pe,(Ae,Ie,an,Gn,bn,de,Wt)=>{const xe=Ie||Gn||de,nn=an||bn||Wt||"?";return Me.Z.API_SERVER+"/api/attachments/"+xe+nn+"&t="+(0,Jt.Jn)(xe,Date.now())+(Ae.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(ne=ne.replace(oe,(Ae,Ie,an,Gn,bn,de,Wt)=>{const xe=Ie||Gn||de,nn=an||bn||Wt||"?";return Me.Z.API_SERVER+"/attachments/download/"+xe+nn+"&t="+(0,Jt.Jn)(xe,Date.now())+(Ae.indexOf(")")>-1?")":"&")}).replace(Pe,(Ae,Ie,an,Gn,bn,de,Wt)=>{const xe=Ie||Gn||de,nn=an||bn||Wt||"?";return Me.Z.API_SERVER+"/api/attachments/"+xe+nn+"&t="+(0,Jt.Jn)(xe,Date.now())+(Ae.indexOf(")")>-1?")":"&")}).replace(ue,(Ae,Ie,an,Gn,bn)=>{const de=Ie||Gn,Wt=an||bn||"";return'"'+Me.Z.API_SERVER+"/api/attachments/"+de+Wt+de+Wt+"&t="+(0,Jt.Jn)(de,Date.now())}).replace(pe,(Ae,Ie,an,Gn,bn)=>{const de=Ie||Gn,Wt=an||bn||"";return"("+Me.Z.API_SERVER+"/files/uploads/"+de+Wt+de+Wt+"&t="+(0,Jt.Jn)(de,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,`
|
|
`),ne)};var $t=({value:ne="",className:_t,showTextOnly:Pe,showLines:ue,style:pe={},stylesPrev:oe={},highlightKeywords:Ae,showProgramFill:Ie,isProgramFill:an,disabledFill:Gn=!1,programFillValue:bn,onFillChange:de=nn=>{},onFillBlur:Wt=()=>{},onFillFocus:xe=()=>{}})=>{let nn=String(ne);const[dn,ge]=(0,ht.useState)(""),[we,Je]=(0,ht.useState)("office"),[Bn,vn]=(0,ht.useState)([]),zn=(0,ht.useRef)("a"+(0,ce.Z)()),ae={},mn=(Nt,Ct,St)=>{const Bt=document.createElement(Nt===At?"input":"textarea");Bt.style.width="100%",Bt.style.height=Nt===At?"40px":"151px",Bt.rows=5,Bt.spellcheck=!1,Bt.name="edu-program-fill",Bt.placeholder="\u8BF7\u8F93\u5165",Bt.dataset.id=Ct;const Gt=Object.keys(ae).length;return ae[Gt]=Bt,`<span class="edu-program-fill-wrap ${Nt===At?"":"show"}" style="width:${Nt===At?"400px":"100%"}" title=${St||""}><span>${Bt.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function ti(Nt){return Nt=Nt.replace(/!\[.*?\]\(.*?\)/g,""),Nt=Nt.replace(/\[.*?\]\(.*?\)/g,""),Nt=Nt.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),Nt=Nt.replace(/<embed.*?>/g,""),Nt=Nt.replace(/<img.*?>/g,""),Nt=Nt.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),Nt=Nt.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),Nt=Nt.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),Nt=Nt.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),Nt}const Wn=Nt=>Nt.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(Ct,St){let Bt=St.replace(/(\n|\r)/g,"").split("}"),Gt=[];return Bt.map(Lt=>{Lt!=""&&Gt.push(`.${zn.current} ${Lt}`)}),`<style>${Gt.join("}")}</style>`}),ii=(0,ht.useMemo)(()=>{try{const Bt=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,Gt=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Lt=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,ie=/\(\/attachments\/download\//g;nn=nn.replace(ie,"("+Me.Z.API_SERVER+"/attachments/download/").replace(Bt,"("+Me.Z.API_SERVER+"/api/attachments/").replace(Gt,'"'+Me.Z.API_SERVER+"/api/attachments/").replace(Lt,'"'+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(Bt){}if(Ie){let Bt=-1;return nn=nn.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,function(Gt,Lt,ie){var Ke;return++Bt,mn(Gt,Bt,(Ke=bn==null?void 0:bn[Bt])==null?void 0:Ke.value.replaceAll("<","<").replaceAll(">",">"))}),`<pre style="background:#fff;padding:4px">${Wn(nn||"")}</pre>`}let Nt=Wn(nn);Nt=(0,fe.ZP)(Nt);const Ct=(0,fe.ez)();nn.match(/\[TOC\]/)&&(Nt=Nt.replace("<p>[TOC]</p>",(0,fe.Qv)()),(0,fe.Iy)()),Nt=Nt.replace(/(__special_katext_id_\d+__)/g,(Bt,Gt)=>{const{type:Lt,expression:ie}=Ct[Gt];return(0,Le.renderToString)(Ut(ie)||"",{displayMode:Lt==="block",throwOnError:!1,output:"html"})}),Nt=Nt.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,fe.AL)();const St=document.createElement("div");if(St.innerHTML=Nt,Pe)return St.innerText;if(Ae){const Bt=Ae.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return Ne(St,Bt),St.innerHTML}return setTimeout(()=>We(),500),St.innerHTML},[nn,Ae]);(0,ht.useEffect)(()=>{Zn.current&&Zn.current.querySelectorAll(["input","textarea"]).forEach(Ct=>{Ct.oninput=mi,Ct.onblur=yn,Ct.onfocus=Ge})},[Bn]),(0,ht.useEffect)(()=>{var Nt,Ct,St,Bt,Gt;if(bn!=null&&bn.length)try{const Lt=Zn.current.querySelectorAll(".edu-program-fill-score"),ie=Zn.current.querySelectorAll('[name="edu-program-fill"]');for(const[Ke,ln]of ie.entries())ln.value=((Nt=bn==null?void 0:bn[Ke])==null?void 0:Nt.value)||"",((Ct=bn==null?void 0:bn[Ke])==null?void 0:Ct.type)==="warning"?ln.className="program-fill-warning":((St=bn==null?void 0:bn[Ke])==null?void 0:St.type)==="success"?ln.className="program-fill-success":ln.className="";for(const[Ke,ln]of Lt.entries())ln.innerHTML=(Bt=bn==null?void 0:bn[Ke])!=null&&Bt.score?`${(Gt=bn==null?void 0:bn[Ke])==null?void 0:Gt.score}\u5206`:"";vn(bn)}catch(Lt){console.log(Lt,"error")}},[bn]);const mi=Nt=>{Bn[Nt.target.dataset.id]=Bn[Nt.target.dataset.id]||{},Bn[Nt.target.dataset.id].value=Nt.target.value,vn([...Bn]),de(Bn,Nt.target.dataset.id)},yn=Nt=>{Bn[Nt.target.dataset.id]=Bn[Nt.target.dataset.id]||{},Bn[Nt.target.dataset.id].value=Nt.target.value,vn([...Bn]),Wt(Bn,Nt.target.dataset.id)},Ge=Nt=>{Bn[Nt.target.dataset.id]=Bn[Nt.target.dataset.id]||{},Bn[Nt.target.dataset.id].value=Nt.target.value,vn([...Bn]),xe(Bn,Nt.target.dataset.id)};function Ne(Nt,Ct){return Nt.childNodes.forEach(St=>{var Bt;if(St.childNodes.length>0)Ne(St,Ct);else if(St.nodeName!=="IMG")if(St.innerHTML)St.innerHTML=(Bt=St.innerHTML)==null?void 0:Bt.replace(new RegExp(Ct,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const Gt=document.createElement("span");Gt.innerHTML=St.textContent.replace(new RegExp(Ct,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),St.replaceWith(Gt)}})}const Zn=(0,ht.useRef)();fe.jb.WebkitLineClamp=ue,ue&&(pe=pt(pt({},pe),fe.jb));function sn(Nt){let Ct=Nt.target;if(Ct.tagName.toUpperCase()==="A"){let St=Ct.getAttribute("href");if(St.indexOf("office")>-1)Nt.preventDefault(),ge(St),Je("office");else if(St.indexOf("application/pdf")>-1)Nt.preventDefault(),ge(St),Je("pdf");else if(St.indexOf("text/html")>-1)Nt.preventDefault(),ge(St),Je("html");else if(St.startsWith("#")){Nt.preventDefault();let Bt=document.getElementById(St.replace("#",""));Bt&&Bt.scrollIntoView(!0)}}}const We=()=>{var Nt;const Ct=(Nt=Zn.current)==null?void 0:Nt.querySelectorAll("video");Ct==null||Ct.forEach(St=>{if(St.oncontextmenu=()=>!1,St.src.indexOf(".m3u8")>-1&&!St.canPlayType("application/vnd.apple.mpegurl")){if(Se.ZP.isSupported()){var Bt=new Se.ZP;Bt.loadSource(St.src),Bt.attachMedia(St)}}})};(0,ht.useEffect)(()=>{if(Zn.current&&ii&&ii.match(Dt)&&window.PR.prettyPrint(),Zn.current)return Zn.current.addEventListener("click",sn),()=>{var Nt;(Nt=Zn.current)==null||Nt.removeEventListener("click",sn),(0,fe.AL)(),(0,fe.Iy)()}},[ii,Zn.current,sn]),(0,ht.useEffect)(()=>{var Nt;const Ct=St=>{St.preventDefault(),St.clipboardData.setData("text",window.getSelection().toString())};return(Nt=Zn.current)==null||Nt.addEventListener("copy",Ct),()=>{var St;(St=Zn.current)==null||St.removeEventListener("copy",Ct)}},[Zn.current]);const en=Nt=>/<style[\s\S]*?>/i.test(Nt||"");return ht.createElement(ht.Fragment,null,Pe&&ht.createElement("div",{ref:Zn},ii),!Pe&&!en(ii)&&ht.createElement("div",{ref:Zn,style:pt({},pe),className:`${_t||""} ${Gn?"disabled-fill":""} markdown-body ${zn.current}`,dangerouslySetInnerHTML:{__html:ii}}),!Pe&&en(ii)&&ht.createElement(je,{html:ii}),ht.createElement(ve.Z,{close:!0,data:dn,type:dn!=null&&dn.length?we:"",style:pt({},oe),onClose:()=>ge("")}))}},53932:function(Ye,jn,Ft){"use strict";Ft.d(jn,{h:function(){return At},Z:function(){return yt}});var ht=Ft(59301),Ht=Ft(57809),fe=Ft(78241),Re=Ft(3113),Se=Ft(89780),Me=Ft.n(Se),Jt=Ft(37036),Le=Object.defineProperty,ce=Object.defineProperties,ve=Object.getOwnPropertyDescriptors,he=Object.getOwnPropertySymbols,Oe=Object.prototype.hasOwnProperty,je=Object.prototype.propertyIsEnumerable,kt=(Dt,Ut,Qt)=>Ut in Dt?Le(Dt,Ut,{enumerable:!0,configurable:!0,writable:!0,value:Qt}):Dt[Ut]=Qt,et=(Dt,Ut)=>{for(var Qt in Ut||(Ut={}))Oe.call(Ut,Qt)&&kt(Dt,Qt,Ut[Qt]);if(he)for(var Qt of he(Ut))je.call(Ut,Qt)&&kt(Dt,Qt,Ut[Qt]);return Dt},nt=(Dt,Ut)=>ce(Dt,ve(Ut));const dt=Ht.default.Option,lt={labelCol:{span:4},wrapperCol:{span:20}},pt={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};var yt=({callback:Dt,onCancel:Ut})=>{const[Qt,$t]=(0,ht.useState)("python");function ne(Pe){$t(pt[Pe][1])}function _t(Pe){Dt(Pe)}return ht.createElement(fe.default,nt(et({},lt),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:_t,style:{width:500}}),ht.createElement(fe.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},ht.createElement(Ht.default,{getPopupContainer:Pe=>Pe.parentNode,onChange:ne},Object.keys(pt).map(Pe=>ht.createElement(dt,{key:Pe,value:Pe},pt[Pe][0])))),ht.createElement(fe.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},ht.createElement(At,{mode:Qt})),ht.createElement("div",{className:"flex-container flex-end"},ht.createElement(Re.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ht.createElement(Re.ZP,{type:"ghost",onClick:Ut},"\u53D6\u6D88")))};function At({value:Dt,onChange:Ut,mode:Qt,options:$t={}}){const ne=(0,ht.useRef)(),[_t,Pe]=(0,ht.useState)();return(0,ht.useEffect)(()=>{if(_t){let ue=function(pe){const oe=pe.getValue();Ut&&Ut(oe)};return _t.on("change",ue),()=>{_t.off("change",ue)}}},[_t,Ut]),(0,ht.useEffect)(()=>{_t&&_t.setOption("mode",Qt)},[_t,Qt]),(0,ht.useEffect)(()=>{_t&&(Dt!==_t.getValue()||Dt==="")&&setTimeout(()=>{_t.setValue(Dt||"")},300)},[_t,Dt]),(0,ht.useEffect)(()=>{if(ne.current&&!_t){const ue=Me().fromTextArea(ne.current,et({mode:Qt,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},$t));Pe(ue)}},[ne.current,_t]),ht.createElement("div",{className:"my-codemirror-container"},ht.createElement("textarea",{ref:ne}))}},12290:function(Ye,jn,Ft){"use strict";Ft.d(jn,{Z:function(){return qe}});var ht=Ft(59301),Ht=Ft(89780),fe=Ft.n(Ht),Re=Ft(76374),Se=Ft(37036),Me=Ft(6313),Jt=Ft(25717),Le=Ft(99498),ce=Ft(25419),ve=Ft(67549),he=Ft(85149),Oe=({value:le="",className:re,showTextOnly:qt,showLines:Ze,style:An={}})=>{const Ln=(0,ht.useMemo)(()=>"",[le]);return ht.createElement(ht.Fragment,null,ht.createElement("div",{dangerouslySetInnerHTML:{__html:Ln}}))},je=Ft(59301),kt=Object.defineProperty,et=Object.defineProperties,nt=Object.getOwnPropertyDescriptors,dt=Object.getOwnPropertySymbols,lt=Object.prototype.hasOwnProperty,pt=Object.prototype.propertyIsEnumerable,yt=(le,re,qt)=>re in le?kt(le,re,{enumerable:!0,configurable:!0,writable:!0,value:qt}):le[re]=qt,At=(le,re)=>{for(var qt in re||(re={}))lt.call(re,qt)&&yt(le,qt,re[qt]);if(dt)for(var qt of dt(re))pt.call(re,qt)&&yt(le,qt,re[qt]);return le},Dt=(le,re)=>et(le,nt(re));let Ut=[{title:"\u7C97\u4F53",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"md-iconfont icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"\u6570\u5B66\u56FE\u50CF",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"\u63D2\u5165\u753B\u56FE",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"\u63D2\u5165\u6D41\u7A0B\u56FE",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"\u8868\u683C",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function Qt({onActionCallback:le,title:re,icon:qt,actionName:Ze,className:An="",children:Ln}){function Be(){le(Ze)}return je.createElement("a",{title:re,className:An,onClick:Be},je.createElement("i",{className:`${qt}`}),Ln)}var $t=({watch:le,showNullButton:re,showNullProgramButton:qt,onActionCallback:Ze,fullScreen:An,insertTemp:Ln,hidetoolBar:Be,extraUse:un})=>{const Qn=[...Ut,{title:`${le?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${le?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return je.createElement("ul",{className:"markdown-toolbar-container"},!Be&&Qn.map((Nn,ai)=>je.createElement("li",{key:ai},Nn.actionName?je.createElement(Qt,Dt(At({},Nn),{onActionCallback:Ze})):je.createElement("span",{className:"v-line"}))),re?je.createElement("li",null,je.createElement(Qt,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Ze},je.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,qt?je.createElement(je.Fragment,null,je.createElement("li",null,je.createElement(Qt,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:Ze},je.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),je.createElement("li",null,je.createElement(Qt,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:Ze},je.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,Ln&&je.createElement("li",null,je.createElement(Qt,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${Ln}`,onActionCallback:Ze},je.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),un&&je.createElement("li",null,un),je.createElement("li",{className:"btn-full-screen"},je.createElement(Qt,{icon:`${An?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:An?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Ze})))},ne=Ft(79346),_t=Ft(78241),Pe=Ft(92832),ue=Ft(3113),pe=Object.defineProperty,oe=Object.defineProperties,Ae=Object.getOwnPropertyDescriptors,Ie=Object.getOwnPropertySymbols,an=Object.prototype.hasOwnProperty,Gn=Object.prototype.propertyIsEnumerable,bn=(le,re,qt)=>re in le?pe(le,re,{enumerable:!0,configurable:!0,writable:!0,value:qt}):le[re]=qt,de=(le,re)=>{for(var qt in re||(re={}))an.call(re,qt)&&bn(le,qt,re[qt]);if(Ie)for(var qt of Ie(re))Gn.call(re,qt)&&bn(le,qt,re[qt]);return le},Wt=(le,re)=>oe(le,Ae(re));const xe={labelCol:{span:4},wrapperCol:{span:20}};var nn=({callback:le,onCancel:re})=>{function qt(Ze){le(Ze)}return ht.createElement(_t.default,Wt(de({},xe),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:qt,style:{width:500}}),ht.createElement(_t.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},ht.createElement(Pe.default,null)),ht.createElement(_t.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},ht.createElement(Pe.default,null)),ht.createElement("div",{className:"flex-container flex-end"},ht.createElement(ue.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ht.createElement(ue.ZP,{type:"ghost",onClick:re},"\u53D6\u6D88")))},dn=Ft(53932),ge=Ft(28451),we=Ft(43418),Je=Ft(95237),Bn=Ft(16406),vn=Ft(59301),zn=({callback:le,onCancel:re})=>{const qt=document.createElement("canvas"),Ze=qt.getContext("2d");qt.width=1e3,qt.height=800,Ze.fillStyle="#ffffff",Ze.fillRect(0,0,qt.width,qt.height);const An=qt.toDataURL("image/png");return vn.createElement(we.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},vn.createElement(Je.Z,{style:{height:"100vh"}},vn.createElement(Bn.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:An,visible:!0,title:String(Date.now())},onOk:Ln=>{le({src:Ln.url})},onClose:re})))},ae=Ft(12378);function mn(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(mn,go.CommandHandler),mn.prototype.canAlignSelection=function(){var le=this.diagram;return!(le===null||le.isReadOnly||le.isModelReadOnly||le.selection.count<2)},mn.prototype.alignLeft=function(){var le=this.diagram;le.startTransaction("aligning left");var re=1/0;le.selection.each(function(qt){qt instanceof go.Link||(re=Math.min(qt.position.x,re))}),le.selection.each(function(qt){qt instanceof go.Link||qt.move(new go.Point(re,qt.position.y))}),le.commitTransaction("aligning left")},mn.prototype.alignRight=function(){var le=this.diagram;le.startTransaction("aligning right");var re=-1/0;le.selection.each(function(qt){if(!(qt instanceof go.Link)){var Ze=qt.actualBounds.x+qt.actualBounds.width;re=Math.max(Ze,re)}}),le.selection.each(function(qt){qt instanceof go.Link||qt.move(new go.Point(re-qt.actualBounds.width,qt.position.y))}),le.commitTransaction("aligning right")},mn.prototype.alignTop=function(){var le=this.diagram;le.startTransaction("alignTop");var re=1/0;le.selection.each(function(qt){qt instanceof go.Link||(re=Math.min(qt.position.y,re))}),le.selection.each(function(qt){qt instanceof go.Link||qt.move(new go.Point(qt.position.x,re))}),le.commitTransaction("alignTop")},mn.prototype.alignBottom=function(){var le=this.diagram;le.startTransaction("aligning bottom");var re=-1/0;le.selection.each(function(qt){if(!(qt instanceof go.Link)){var Ze=qt.actualBounds.y+qt.actualBounds.height;re=Math.max(Ze,re)}}),le.selection.each(function(qt){qt instanceof go.Link||qt.move(new go.Point(qt.actualBounds.x,re-qt.actualBounds.height))}),le.commitTransaction("aligning bottom")},mn.prototype.alignCenterX=function(){var le=this.diagram,re=le.selection.first();if(re){le.startTransaction("aligning Center X");var qt=re.actualBounds.x+re.actualBounds.width/2;le.selection.each(function(Ze){Ze instanceof go.Link||Ze.move(new go.Point(qt-Ze.actualBounds.width/2,Ze.actualBounds.y))}),le.commitTransaction("aligning Center X")}},mn.prototype.alignCenterY=function(){var le=this.diagram,re=le.selection.first();if(re){le.startTransaction("aligning Center Y");var qt=re.actualBounds.y+re.actualBounds.height/2;le.selection.each(function(Ze){Ze instanceof go.Link||Ze.move(new go.Point(Ze.actualBounds.x,qt-Ze.actualBounds.height/2))}),le.commitTransaction("aligning Center Y")}},mn.prototype.alignColumn=function(le){var re=this.diagram;re.startTransaction("align Column"),le===void 0&&(le=0),le=parseFloat(le);var qt=new Array;re.selection.each(function(un){un instanceof go.Link||qt.push(un)});for(var Ze=0;Ze<qt.length-1;Ze++){var An=qt[Ze],Ln=An.actualBounds.y+An.actualBounds.height+le,Be=qt[Ze+1];Be.move(new go.Point(An.actualBounds.x,Ln))}re.commitTransaction("align Column")},mn.prototype.alignRow=function(le){le===void 0&&(le=0),le=parseFloat(le);var re=this.diagram;re.startTransaction("align Row");var qt=new Array;re.selection.each(function(un){un instanceof go.Link||qt.push(un)});for(var Ze=0;Ze<qt.length-1;Ze++){var An=qt[Ze],Ln=An.actualBounds.x+An.actualBounds.width+le,Be=qt[Ze+1];Be.move(new go.Point(Ln,An.actualBounds.y))}re.commitTransaction("align Row")},mn.prototype.canRotate=function(le){var re=this.diagram;return!(re===null||re.isReadOnly||re.isModelReadOnly||re.selection.count<1)},mn.prototype.rotate=function(le){le===void 0&&(le=90);var re=this.diagram;re.startTransaction("rotate "+le.toString());var re=this.diagram;re.selection.each(function(qt){qt instanceof go.Link||qt instanceof go.Group||(qt.angle+=le)}),re.commitTransaction("rotate "+le.toString())},mn.prototype.pullToFront=function(){var le=this.diagram;le.startTransaction("pullToFront");var re=new go.Map;le.selection.each(function(qt){re.set(qt.layer,0)}),re.iteratorKeys.each(function(qt){var Ze=0;qt.parts.each(function(An){if(!An.isSelected){var Ln=An.zOrder;isNaN(Ln)?An.zOrder=0:Ze=Math.max(Ze,Ln)}}),re.set(qt,Ze)}),le.selection.each(function(qt){mn._assignZOrder(qt,re.get(qt.layer)+1)}),le.commitTransaction("pullToFront")},mn.prototype.pushToBack=function(){var le=this.diagram;le.startTransaction("pushToBack");var re=new go.Map;le.selection.each(function(qt){re.set(qt.layer,0)}),re.iteratorKeys.each(function(qt){var Ze=0;qt.parts.each(function(An){if(!An.isSelected){var Ln=An.zOrder;isNaN(Ln)?An.zOrder=0:Ze=Math.min(Ze,Ln)}}),re.set(qt,Ze)}),le.selection.each(function(qt){mn._assignZOrder(qt,re.get(qt.layer)-1-mn._findGroupDepth(qt))}),le.commitTransaction("pushToBack")},mn._assignZOrder=function(le,re,qt){qt===void 0&&(qt=le),le.layer===qt.layer&&(le.zOrder=re),le instanceof go.Group&&le.memberParts.each(function(Ze){mn._assignZOrder(Ze,re+1,qt)})},mn._findGroupDepth=function(le){if(le instanceof go.Group){var re=0;return le.memberParts.each(function(qt){re=Math.max(re,mn._findGroupDepth(qt))}),re+1}else return 0},mn.prototype.doKeyDown=function(){var le=this.diagram;if(le!==null){var re=le.lastInput;if(re.key==="Up"||re.key==="Down"||re.key==="Left"||re.key==="Right"){var qt=this.arrowKeyBehavior;if(qt==="none")return;if(qt==="select"){this._arrowKeySelect();return}else if(qt==="move"){this._arrowKeyMove();return}else if(qt==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},mn.prototype._getAllParts=function(){var le=new Array;return this.diagram.nodes.each(function(re){le.push(re)}),this.diagram.parts.each(function(re){le.push(re)}),le},mn.prototype._arrowKeyMove=function(){var le=this.diagram,re=le.lastInput,qt=0,Ze=0;if(re.control||re.meta)qt=1,Ze=1;else if(le.grid!==null){var An=le.grid.gridCellSize;Ze=An.width,qt=An.height}le.startTransaction("arrowKeyMove"),le.selection.each(function(Ln){re.key==="Up"?Ln.move(new go.Point(Ln.actualBounds.x,Ln.actualBounds.y-qt)):re.key==="Down"?Ln.move(new go.Point(Ln.actualBounds.x,Ln.actualBounds.y+qt)):re.key==="Left"?Ln.move(new go.Point(Ln.actualBounds.x-Ze,Ln.actualBounds.y)):re.key==="Right"&&Ln.move(new go.Point(Ln.actualBounds.x+Ze,Ln.actualBounds.y))}),le.commitTransaction("arrowKeyMove")},mn.prototype._arrowKeySelect=function(){var le=this.diagram,re=le.lastInput,qt=null;re.key==="Up"?qt=this._findNearestPartTowards(270):re.key==="Down"?qt=this._findNearestPartTowards(90):re.key==="Left"?qt=this._findNearestPartTowards(180):re.key==="Right"&&(qt=this._findNearestPartTowards(0)),qt!==null&&(re.shift?qt.isSelected=!0:re.control||re.meta?qt.isSelected=!qt.isSelected:le.select(qt))},mn.prototype._findNearestPartTowards=function(le){var re=this.diagram.selection.first();if(re===null)return null;for(var qt=re.actualBounds.center,Ze=this._getAllParts(),An=1/0,Ln=re,Be=0;Be<Ze.length;Be++){var un=Ze[Be];if(un!==re&&un.canSelect()){var Qn=un.actualBounds.center,Nn=qt.directionPoint(Qn),ai=this._angleCloseness(Nn,le);if(ai<=45){var zt=qt.distanceSquaredPoint(Qn);zt*=1+Math.sin(ai*Math.PI/180),zt<An&&(An=zt,Ln=un)}}}return Ln},mn.prototype._angleCloseness=function(le,re){return Math.min(Math.abs(re-le),Math.min(Math.abs(re+360-le),Math.abs(re-360-le)))},mn.prototype._arrowKeyTree=function(){var le=this.diagram,re=le.selection.first();if(re instanceof go.Node){var qt=le.lastInput;if(qt.key==="Right"){if(!re.isTreeLeaf)if(!re.isTreeExpanded)le.commandHandler.canExpandTree(re)&&le.commandHandler.expandTree(re);else{var Ze=this._sortTreeChildrenByY(re).first();Ze!==null&&le.select(Ze)}}else if(qt.key==="Left")if(!re.isTreeLeaf&&re.isTreeExpanded)le.commandHandler.canCollapseTree(re)&&le.commandHandler.collapseTree(re);else{var An=re.findTreeParentNode();An!==null&&le.select(An)}else if(qt.key==="Up"){var An=re.findTreeParentNode();if(An!==null){var Ln=this._sortTreeChildrenByY(An),Be=Ln.indexOf(re);if(Be>0){for(var un=Ln.elt(Be-1);un!==null&&un.isTreeExpanded&&!un.isTreeLeaf;){var Qn=this._sortTreeChildrenByY(un);un=Qn.last()}un!==null&&le.select(un)}else le.select(An)}}else if(qt.key==="Down")if(re.isTreeExpanded&&!re.isTreeLeaf){var Ze=this._sortTreeChildrenByY(re).first();Ze!==null&&le.select(Ze)}else for(;re!==null;){var An=re.findTreeParentNode();if(An===null)break;var Ln=this._sortTreeChildrenByY(An),Be=Ln.indexOf(re);if(Be<Ln.length-1){le.select(Ln.elt(Be+1));break}else re=An}var Nn=le.selection.first();Nn!==null&&le.scrollToRect(Nn.actualBounds)}},mn.prototype._sortTreeChildrenByY=function(le){var re=new go.List().addAll(le.findTreeChildrenNodes());return re.sort(function(qt,Ze){var An=qt.location,Ln=Ze.location;return An.y<Ln.y?-1:An.y>Ln.y?1:An.x<Ln.x?-1:An.x>Ln.x?1:0}),re},mn.prototype.copyToClipboard=function(le){go.CommandHandler.prototype.copyToClipboard.call(this,le),this._lastPasteOffset.set(this.pasteOffset)},mn.prototype.pasteFromClipboard=function(){var le=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(le,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),le},Object.defineProperty(mn.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(le){if(le!=="move"&&le!=="select"&&le!=="scroll"&&le!=="tree"&&le!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+le);this._arrowKeyBehavior=le}}),Object.defineProperty(mn.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(le){if(!(le instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+le);this._pasteOffset.set(le)}});var ti=mn,Wn=Ft(74413),ii=Ft(43604),mi=Ft(99064),yn={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},Ge=Ft(24065),Ne=Ft(59301),Zn=(le,re,qt)=>new Promise((Ze,An)=>{var Ln=Qn=>{try{un(qt.next(Qn))}catch(Nn){An(Nn)}},Be=Qn=>{try{un(qt.throw(Qn))}catch(Nn){An(Nn)}},un=Qn=>Qn.done?Ze(Qn.value):Promise.resolve(Qn.value).then(Ln,Be);un((qt=qt.apply(le,re)).next())});function sn({onCancel:le,callback:re}){let qt=(0,ht.useRef)(),Ze=(0,ht.useRef)(),An=(0,ht.useRef)(),Ln=(0,ht.useRef)(!1);const Be=(0,ht.useRef)(!1),[un,Qn]=(0,ht.useState)(0);function Nn(){const zt=ae.bx.make,Fe={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"};qt.current=new ae.S0(Ze.current,{padding:20,grid:zt(ae.s_,"Grid",zt(ae.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),zt(ae.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:En=>{var ci=En.diagram.commandHandler.addTopLevelParts(En.diagram.selection,!0);ci||En.diagram.currentTool.doCancel()},commandHandler:zt(ti),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:En=>{var ci=En.subject;ci.location=ci.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 ci=En.subject;setTimeout(()=>{En.diagram.commandHandler.editTextBlock()})},LinkRelinked:En=>{var ci=En.parameter.part;ci.invalidateConnectedLinks();var Pi=En.subject;En.diagram.toolManager.linkingTool.isForwards?Pi.toNode.invalidateConnectedLinks():Pi.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),qt.current.nodeTemplate=zt(ae.NB,"Auto",{locationSpot:ae.z6.Center,locationObjectName:"SHAPE",desiredSize:new ae.$u(120,60),minSize:new ae.$u(40,40),resizable:!0,resizeCellSize:new ae.$u(10,10),rotatable:!0},new ae.KX("location","loc",ae.E9.parse).makeTwoWay(ae.E9.stringify),new ae.KX("desiredSize","size",ae.$u.parse).makeTwoWay(ae.$u.stringify),zt(ae.bn,{name:"SHAPE",fill:Fe.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:ae.z6.AllSides,toSpot:ae.z6.AllSides},new ae.KX("figure"),new ae.KX("fill"),new ae.KX("stroke","borderColor"),new ae.KX("strokeWidth","thickness"),new ae.KX("strokeDashArray","dash")),zt(ae.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),zt(ae.al,{margin:1,textAlign:"center",overflow:ae.al.OverflowEllipsis,editable:!0},new ae.KX("text").makeTwoWay(),new ae.KX("stroke","color"))),qt.current.nodeTemplate.toolTip=zt("ToolTip",zt(ae.s_,"Vertical",{maxSize:new ae.$u(200,NaN)},zt(ae.al,{font:"bold 10pt sans-serif",textAlign:"center"},new ae.KX("text")),zt(ae.al,{font:"10pt sans-serif",textAlign:"center"},new ae.KX("text","details"))));function Dn(En,ci){var Pi=(_n,wi)=>{_n.handled=!0,_n.diagram.model.commit(_i=>{var Zi=wi.part.adornedPart,oo=new ae.E9().setRectSpot(Zi.actualBounds,En);oo.subtract(Zi.location),oo.scale(2,2),oo.x+=Math.sign(oo.x)*130,oo.y+=Math.sign(oo.y)*130,oo.add(Zi.location),oo.snapToGridPoint(_n.diagram.grid.gridOrigin,_n.diagram.grid.gridCellSize);var $i=_i.copyNodeData(Zi.data);_i.setGroupKeyForNodeData($i,_i.getGroupKeyForNodeData(Zi.data)),_i.addNodeData($i);var $e={from:Zi.key,to:_i.getKeyForNodeData($i)};_i.addLinkData($e);var Gi=_n.diagram.findNodeForData($i);Gi.location=oo,_n.diagram.select(Gi),setTimeout(()=>{_n.diagram.commandHandler.editTextBlock()},20)})};return zt(ae.bn,{figure:ci,alignment:En,alignmentFocus:En.opposite(),width:En.equals(ae.z6.Top)||En.equals(ae.z6.Bottom)?25:18,height:En.equals(ae.z6.Top)||En.equals(ae.z6.Bottom)?18:25,fill:"orange",stroke:Fe.white,strokeWidth:4,mouseEnter:(_n,wi)=>wi.fill="dodgerblue",mouseLeave:(_n,wi)=>wi.fill="orange",isActionable:!0,click:Pi,contextClick:Pi})}function On(En){return zt(ae.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:(ci,Pi)=>Pi.fill="dodgerblue",mouseLeave:(ci,Pi)=>Pi.fill="orange",click:(ci,Pi)=>{ci.diagram.commandHandler.showContextMenu(Pi.part.adornedPart)}},En||{})}qt.current.nodeTemplate.selectionAdornmentTemplate=zt(ae.uz,"Spot",zt(ae.Vm,{padding:10}),Dn(ae.z6.Top,"TriangleUp"),Dn(ae.z6.Left,"TriangleLeft"),Dn(ae.z6.Right,"TriangleRight"),Dn(ae.z6.Bottom,"TriangleDown"),On({alignment:new ae.z6(.75,0)}));function Te(En,ci){return(Pi,_n)=>{Pi.handled=!0,Pi.diagram.model.commit(wi=>{wi.set(_n.part.adornedPart.data,En,ci)})}}function Ve(En,ci){return ci||(ci="color"),zt(ae.bn,{width:16,height:16,stroke:"lightgray",fill:En,margin:1,background:"transparent",mouseEnter:(Pi,_n)=>_n.stroke="dodgerblue",mouseLeave:(Pi,_n)=>_n.stroke="lightgray",click:Te(ci,En),contextClick:Te(ci,En)})}function Vn(){return[zt("ContextMenuButton",zt(ae.s_,"Horizontal",Ve(Fe.white,"fill"),Ve(Fe.beige,"fill"),Ve(Fe.extralightblue,"fill"),Ve(Fe.extralightred,"fill"))),zt("ContextMenuButton",zt(ae.s_,"Horizontal",Ve(Fe.lightgray,"fill"),Ve(Fe.lightgreen,"fill"),Ve(Fe.lightblue,"fill"),Ve(Fe.lightred,"fill")))]}function li(){return[zt("ContextMenuButton",zt(ae.s_,"Horizontal",Ve(Fe.black),Ve(Fe.green),Ve(Fe.blue),Ve(Fe.red))),zt("ContextMenuButton",zt(ae.s_,"Horizontal",Ve(Fe.white),Ve(Fe.magenta),Ve(Fe.purple),Ve(Fe.orange)))]}function oi(En,ci){return ci||(ci="thickness"),zt(ae.bn,"LineH",{width:16,height:16,strokeWidth:En,margin:1,background:"transparent",mouseEnter:(Pi,_n)=>_n.background="dodgerblue",mouseLeave:(Pi,_n)=>_n.background="transparent",click:Te(ci,En),contextClick:Te(ci,En)})}function Rn(En,ci){return ci||(ci="dash"),zt(ae.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:En,margin:1,background:"transparent",mouseEnter:(Pi,_n)=>_n.background="dodgerblue",mouseLeave:(Pi,_n)=>_n.background="transparent",click:Te(ci,En),contextClick:Te(ci,En)})}function qn(){return[zt("ContextMenuButton",zt(ae.s_,"Horizontal",oi(1),oi(2),oi(3),oi(4))),zt("ContextMenuButton",zt(ae.s_,"Horizontal",Rn(null),Rn([2,4]),Rn([4,4])))]}function si(En,ci){return ci||(ci="figure"),zt(ae.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:En,margin:1,background:"transparent",mouseEnter:(Pi,_n)=>_n.fill="dodgerblue",mouseLeave:(Pi,_n)=>_n.fill="lightgray",click:Te(ci,En),contextClick:Te(ci,En)})}qt.current.nodeTemplate.contextMenu=zt("ContextMenu",zt("ContextMenuButton",zt(ae.s_,"Horizontal",si("Rectangle"),si("RoundedRectangle"),si("Ellipse"),si("Diamond"))),zt("ContextMenuButton",zt(ae.s_,"Horizontal",si("Parallelogram2"),si("ManualOperation"),si("Procedure"),si("Cylinder1"))),zt("ContextMenuButton",zt(ae.s_,"Horizontal",si("Terminator"),si("CreateRequest"),si("Document"),si("TriangleDown"))),Vn(),li(),qn()),qt.current.groupTemplate=zt(ae.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:ae.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(En,ci)=>{var Pi=ci.addMembers(ci.diagram.selection,!0);Pi||ci.diagram.currentTool.doCancel()},avoidable:!1},new ae.KX("location","loc",ae.E9.parse).makeTwoWay(ae.E9.stringify),zt(ae.s_,"Auto",{name:"BODY"},zt(ae.bn,{parameter1:10,fill:Fe.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:ae.z6.AllSides,toSpot:ae.z6.AllSides},new ae.KX("fill"),new ae.KX("stroke","color"),new ae.KX("strokeWidth","thickness"),new ae.KX("strokeDashArray","dash")),zt(ae.Vm,{background:"transparent",margin:20})),zt(ae.al,{alignment:ae.z6.Top,alignmentFocus:ae.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new ae.KX("text"),new ae.KX("stroke","color"))),qt.current.groupTemplate.selectionAdornmentTemplate=zt(ae.uz,"Spot",zt(ae.s_,"Auto",zt(ae.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),zt(ae.Vm,{margin:1.5})),On({alignment:ae.z6.TopRight,alignmentFocus:ae.z6.BottomRight})),qt.current.groupTemplate.contextMenu=zt("ContextMenu",Vn(),li(),qn()),qt.current.linkTemplate=zt(ae.rU,{layerName:"Foreground",routing:ae.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new ae.KX("fromSpot","fromSpot",ae.z6.parse),new ae.KX("toSpot","toSpot",ae.z6.parse),new ae.KX("fromShortLength","dir",En=>En>=1?10:0),new ae.KX("toShortLength","dir",En=>En>=1?10:0),new ae.KX("points").makeTwoWay(),zt(ae.bn,{strokeWidth:2},new ae.KX("stroke","color"),new ae.KX("strokeWidth","thickness"),new ae.KX("strokeDashArray","dash")),zt(ae.bn,{segmentIndex:0,segmentOffset:new ae.E9(15,0),segmentOrientation:ae.rU.OrientAlong,alignmentFocus:ae.z6.Right,figure:"circle",width:10,strokeWidth:0},new ae.KX("fill","color"),new ae.KX("visible","dir",En=>En===1)),zt(ae.bn,{segmentIndex:-1,segmentOffset:new ae.E9(-10,6),segmentOrientation:ae.rU.OrientPlus90,alignmentFocus:ae.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new ae.KX("fill","color"),new ae.KX("visible","dir",En=>En>=1),new ae.KX("width","thickness",En=>7+3*En),new ae.KX("height","thickness",En=>7+3*En),new ae.KX("segmentOffset","thickness",En=>new ae.E9(-15,4+1.5*En))),zt(ae.bn,{segmentIndex:0,segmentOffset:new ae.E9(15,-6),segmentOrientation:ae.rU.OrientMinus90,alignmentFocus:ae.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new ae.KX("fill","color"),new ae.KX("visible","dir",En=>En===2),new ae.KX("width","thickness",En=>7+3*En),new ae.KX("height","thickness",En=>7+3*En),new ae.KX("segmentOffset","thickness",En=>new ae.E9(-15,4+1.5*En))),zt(ae.al,{alignmentFocus:new ae.z6(0,1,-4,0),editable:!0},new ae.KX("text").makeTwoWay(),new ae.KX("stroke","color"))),qt.current.linkTemplate.selectionAdornmentTemplate=zt(ae.uz,zt(ae.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:Xi(2)},new ae.KX("pathPattern","thickness",Xi)),On({alignmentFocus:new ae.z6(0,0,-6,-4)}));function Xi(En){return zt(ae.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(En+4).toString()+" H3"})}function Ii(En){var ci="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return En===0?ci="M0 0 M16 16 M0 8 L16 8":En===2&&(ci="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),zt(ae.bn,{geometryString:ci,margin:2,background:"transparent",mouseEnter:(Pi,_n)=>_n.background="dodgerblue",mouseLeave:(Pi,_n)=>_n.background="transparent",click:Te("dir",En),contextClick:Te("dir",En)})}function ji(En){var ci=(Pi,_n)=>{Pi.handled=!0,Pi.diagram.model.commit(wi=>{var _i=_n.part.adornedPart;wi.set(_i.data,En?"toSpot":"fromSpot",ae.z6.stringify(ae.z6.AllSides)),(En?_i.toNode:_i.fromNode).invalidateConnectedLinks()})};return zt(ae.bn,{width:12,height:12,fill:"transparent",mouseEnter:(Pi,_n)=>_n.background="dodgerblue",mouseLeave:(Pi,_n)=>_n.background="transparent",click:ci,contextClick:ci})}function Qe(En,ci){var Pi=0,_n=ae.z6.RightSide;En.equals(ae.z6.Top)?(Pi=270,_n=ae.z6.TopSide):En.equals(ae.z6.Left)?(Pi=180,_n=ae.z6.LeftSide):En.equals(ae.z6.Bottom)&&(Pi=90,_n=ae.z6.BottomSide),ci||(Pi-=180);var wi=(_i,Zi)=>{_i.handled=!0,_i.diagram.model.commit(oo=>{var $i=Zi.part.adornedPart;oo.set($i.data,ci?"toSpot":"fromSpot",ae.z6.stringify(_n)),(ci?$i.toNode:$i.fromNode).invalidateConnectedLinks()})};return zt(ae.bn,{alignment:En,alignmentFocus:En.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:Pi,background:"transparent",mouseEnter:(_i,Zi)=>Zi.background="dodgerblue",mouseLeave:(_i,Zi)=>Zi.background="transparent",click:wi,contextClick:wi})}qt.current.linkTemplate.contextMenu=zt("ContextMenu",li(),qn(),zt("ContextMenuButton",zt(ae.s_,"Horizontal",Ii(0),Ii(1),Ii(2))),zt("ContextMenuButton",zt(ae.s_,"Horizontal",zt(ae.s_,"Spot",ji(!1),Qe(ae.z6.Top,!1),Qe(ae.z6.Left,!1),Qe(ae.z6.Right,!1),Qe(ae.z6.Bottom,!1)),zt(ae.s_,"Spot",{margin:new ae.Zt(0,0,0,2)},ji(!0),Qe(ae.z6.Top,!0),Qe(ae.z6.Left,!0),Qe(ae.z6.Right,!0),Qe(ae.z6.Bottom,!0)))));const ao=`{ "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 Oi=["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 Ci(En){return console.log("shapeName:",En),Oi.indexOf(En)>=0}var De=new ae.YI(An.current,{maxSelectionCount:1,linkTemplate:zt(ae.rU,{locationSpot:ae.z6.Center,selectionAdornmentTemplate:zt(ae.uz,"Link",{locationSpot:ae.z6.Center},zt(ae.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),zt(ae.bn,{toArrow:"Standard",stroke:null}))},{routing:ae.rU.AvoidsNodes,curve:ae.rU.JumpOver,corner:5,toShortLength:4},new ae.KX("points"),zt(ae.bn,{isPanelMain:!0,strokeWidth:2}),zt(ae.bn,{toArrow:"Standard",stroke:null})),model:new ae.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...ae.bn.getFigureGenerators().toArray().map(En=>({text:"\u672A\u547D\u540D",size:"100 100",figure:En.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return qt.current.addDiagramListener("TextEdited",function(En){var ci;const Pi=En.subject.part;var _n=(ci=document.activeElement)==null?void 0:ci.value;typeof _n=="string"&&_n.trim()===""&&qt.current.model.commit(function(wi){wi.set(Pi.data,"text","\u672A\u547D\u540D"),qt.current.commandHandler.stopCommand()},"increment")}),De.nodeTemplate=zt(ae.NB,"Auto",{locationSpot:ae.z6.Center},new ae.KX("location","location",ae.E9.parse).makeTwoWay(ae.E9.stringify),zt(ae.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 ae.KX("stroke").makeTwoWay(),new ae.KX("fill").makeTwoWay(),new ae.KX("figure")),zt(ae.al,{margin:new ae.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new ae.$u(16,16),maxSize:new ae.$u(10,NaN),textAlign:"center",editable:!0},new ae.KX("key").makeTwoWay())),setTimeout(()=>{qt.current.grid=zt(ae.s_,"Grid",zt(ae.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),zt(ae.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),qt.current.grid.visible=!0,qt.current.grid.gridCellStroke="darkgray",qt.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=qt.current,qt.current}const ai=()=>Zn(this,null,function*(){var zt,Fe=qt.current.makeImage();const Dn=yield(0,mi.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:Fe.src,file_data:JSON.stringify({login:(zt=(0,Ge.eY)())==null?void 0:zt.login,data:JSON.parse(qt.current.model.toJson())})}});re({src:Dn.url})});return(0,ht.useEffect)(()=>(setTimeout(()=>{Nn()},500),Qn(un+1),()=>{qt.current=null}),[]),Ne.createElement("div",{ref:Be,className:Ln.current?`${yn.maxH60} body-overflow-initial`:"body-overflow-initial"},Ne.createElement(we.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!un,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:Ne.createElement(Je.Z,null,Ne.createElement(ii.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),Ne.createElement(ii.Z,{onClick:()=>{var zt,Fe,Dn=qt.current.selection.first();if(Ln.current=!Ln.current,document.activeElement&&Dn){let On=(Fe=(zt=document.activeElement)==null?void 0:zt.value)==null?void 0:Fe.trim();typeof On=="string"&&qt.current.model.commit(function(Te){Te.set(Dn.data,"text",On||"\u672A\u547D\u540D"),qt.current.commandHandler.stopCommand()},"increment")}Qn(un+1)}},Ne.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:le},Ne.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:yn.flowChartWrp},Ne.createElement("div",{style:{display:"flex",height:"100%"}},Ne.createElement("div",{style:{width:"300px",height:"100%"}},Ne.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),Ne.createElement("div",{style:{height:"calc(100% - 50px)"},className:yn.myPaletteDiv,ref:An})),Ne.createElement("div",{style:{flex:1,position:"relative"}},Ne.createElement("div",{ref:Ze,style:{height:"80vh"}}))),Ne.createElement("div",{className:"tr"},Ne.createElement(ue.ZP,{size:"large",onClick:ai,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var We=sn,en=Ft(5112),Nt=Ft(5871);const Ct=en.ZP.Group,St={margin:"0 8px"};var Bt=({callback:le,onCancel:re})=>{function qt(Ze){le(Ze)}return ht.createElement(_t.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:qt},ht.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},ht.createElement("span",{style:St},"\u5355\u5143\u683C\u6570\uFF1A"),ht.createElement("span",{style:St},"\u884C\u6570"),ht.createElement(_t.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},ht.createElement(Nt.Z,null)),ht.createElement("span",{style:St},"\u5217\u6570"),ht.createElement(_t.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},ht.createElement(Nt.Z,null))),ht.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},ht.createElement("span",{style:St},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),ht.createElement(_t.default.Item,{name:"align"},ht.createElement(Ct,null,ht.createElement(en.ZP,{value:"default"},ht.createElement("i",{className:"fa fa-align-justify"})),ht.createElement(en.ZP,{value:"left"},ht.createElement("i",{className:"fa fa-align-left"})),ht.createElement(en.ZP,{value:"center"},ht.createElement("i",{className:"fa fa-align-center"})),ht.createElement(en.ZP,{value:"right"},ht.createElement("i",{className:"fa fa-align-right"}))))),ht.createElement("div",{className:"flex-container flex-end"},ht.createElement(ue.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ht.createElement(ue.ZP,{type:"ghost",onClick:re},"\u53D6\u6D88")))},Gt=Ft(78673),Lt=Ft(80727),ie=Ft.n(Lt),ln=(0,ht.forwardRef)(({use3d:le,width:re,height:qt,callback:Ze,showSaveButton:An},Ln)=>{const Be=(0,ht.useRef)(),un=(0,ht.useRef)(),[Qn,Nn]=(0,ht.useState)(!1),ai=(0,ht.useRef)({id:Be,appName:"graphing",width:re||1e3,height:qt||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,ht.useEffect)(()=>{un.current=new(ie())(ai.current,!0),window.onload=function(){un.current.inject("applet_container")}},[]);const zt=()=>{var Fe=window.ggbApplet.getPNGBase64(1,!0,72);return Ze&&Ze(Fe),Fe};return(0,ht.useEffect)(()=>{ai.current.appName=Qn?"3D":"graphing",un.current.inject("applet_container")},[Qn]),(0,ht.useEffect)(()=>{Nn(le)},[le]),(0,ht.useImperativeHandle)(Ln,()=>({getImgData:zt})),ht.createElement(ht.Fragment,null,ht.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:Be}),ht.createElement(Je.Z,{align:"middle"},ht.createElement(ii.Z,{flex:1},ht.createElement(Gt.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Qn,onChange:Fe=>Nn(Fe)})),ht.createElement(ii.Z,null,ht.createElement(ue.ZP,{size:"large",onClick:zt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),hn=Ft(41588),Jn=Ft(8591);const di="link",fi="upload-image",pi="add-flowchart",Bi="draw-image",qi="add-flowchart",Qi="code-block",Ao="add-table",Mo="------------",Ti={default:Mo,left:`:${Mo}`,center:`:${Mo}:`,right:`${Mo}:`};var Ui=Ft(58856);function so(){}let mo=0;const xi=1e4,ho="\u2581",pn="@\u2581\u2581@",wt="@\u2581@",Li=`
|
|
**\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`,ui=["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 Ce(le){return/^\d+$/.test(le)?`${le}px`:le}const wn=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Kn={[wn+"-B"]:"bold",[wn+"-I"]:"italic"},Ue={[di]:"\u6DFB\u52A0\u94FE\u63A5",[Qi]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[fi]:"\u6DFB\u52A0\u56FE\u7247",[Bi]:"\u6DFB\u52A0\u753B\u56FE",[pi]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Ao]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var qe=({defaultValue:le="",onChange:re,width:qt="100%",height:Ze=400,miniToolbar:An=!1,isFocus:Ln=!1,watch:Be,insertTemp:un,mode:Qn="markdown",id:Nn="markdown-editor-id",showResizeBar:ai=!1,noStorage:zt=!1,showNullButton:Fe=!1,showNullProgramButton:Dn=!1,hidetoolBar:On=!1,fullScreen:Te=!1,onBlur:Ve,onCMBeforeChange:Vn,onFullScreen:li,className:oi="",disablePaste:Rn=!1,disabled:qn=!1,disabledFill:si=!1,placeholder:Xi="",values:Ii="",extraUse:ji})=>{const[Qe,ao]=(0,ht.useState)(null),[Oi,Ci]=(0,ht.useState)(le),[De,En]=(0,ht.useState)(Be),[ci,Pi]=(0,ht.useState)(Te),[_n,wi]=(0,ht.useState)(""),[_i,Zi]=(0,ht.useState)(0),[oo,$i]=(0,ht.useState)(Ze),[$e,Gi]=(0,ht.useState)(!1),[_e,xo]=(0,ht.useState)(0),[Co,to]=(0,ht.useState)(0),Bo=(0,ht.useRef)(),co=(0,ht.useRef)(),Hi=(0,ht.useRef)(),wo=(0,ht.useRef)();(0,ht.useEffect)(()=>{const Tn=window.scrollY||window.pageYOffset;Ci(Ii),Qe==null||Qe.setValue(Ii),window.scrollTo(0,Tn)},[Ii]),(0,ht.useEffect)(()=>{li==null||li(ci)},[ci]),(0,ht.useEffect)(()=>{if(Bo.current){let Tn=function(Ee,fn){var gi;if(Rn){fn.preventDefault();return}const Wi=fn.clipboardData;if(Wi){const ki=Wi.types.toString(),vi=Wi.items;if(ki==="Files"||Wi.types.indexOf("Files")>-1){if(fn.preventDefault(),Qn=="stex")return;try{let Ji=vi[1];((gi=vi[0])==null?void 0:gi.kind)==="file"&&(Ji=vi[0]);const Ki=Ji.getAsFile(),Jo=Ki.name.split(".").pop();(0,ge.I)(Ki,nr=>{var $r,be,Ir;nr.id?(($r=Ki==null?void 0:Ki.type)==null?void 0:$r.indexOf("image"))>-1?Pn.replaceSelection(`<img width="100%" src="/api/attachments/${nr.id}?type=${nr.content_type})" alt="" />`):((be=Ki==null?void 0:Ki.type)==null?void 0:be.indexOf("video"))>-1?Pn.replaceSelection(`<video width="100%" controls src="/api/attachments/${nr.id}"></video>`):((Ir=Ki==null?void 0:Ki.type)==null?void 0:Ir.indexOf("pdf"))>-1?Pn.replaceSelection(`<a href="/api/attachments/${nr.id}?type=${Ki.type}&disposition=inline" target="_blank">${Ki.name}</a>`):ui.includes(Jo)?Pn.replaceSelection(`<a href="/api/attachments/${nr.id}?type=office&disposition=inline" target="_blank">${Ki.name}</a>`):Pn.replaceSelection(`[${Ki.name}](/api/attachments/${nr.id}?type=${nr.content_type})`):(nr==null?void 0:nr.status)===401&&(document.location.href="/user/login")})}catch(Ji){Jn.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const Pn=fe().fromTextArea(Bo.current,{mode:Qn,lineNumbers:!An,lineWrapping:!0,value:le,autoCloseTags:!0,autoCloseBrackets:!0});return Pn.on("keyup",function(Ee,fn){fn.keyCode===8&&(Ee.getValue()==""?Pn.setOption("placeholder",Xi):Pn.setOption("placeholder",null))}),Pn.on("keydown",function(Ee,fn){if(fn.keyCode===8){var gi=fo(Ee);gi&&fn.preventDefault()}}),Ln&&Pn.focus(),Pn.on("paste",Tn),qn&&Pn.on("beforeChange",function(Ee,fn){(fn.origin==="paste"||fn.origin==="+input")&&fn.cancel()}),ao(Pn),()=>{Pn.off("paste",Tn)}}},[]);const Lo=(0,ht.useCallback)(()=>{if(co.current)try{}catch(Tn){console.log(Tn,"---- to set md editor body height")}},[oo,co,ci]);(0,ht.useEffect)(()=>{function Tn(){let Pn=new Re.Z(Ee=>{for(let fn of Ee)(fn.target.offsetHeight>0||fn.target.offsetWidth>0)&&(Lo(),Qe.setSize("100%","100%"),Qe.refresh())});return Pn.observe(Bo.current.parentElement),Pn}if(Qe){const Pn=Tn();return()=>{var Ee,fn;(Ee=Bo.current)!=null&&Ee.parentElement&&Pn.unobserve((fn=Bo.current)==null?void 0:fn.parentElement)}}},[Qe,Lo]),(0,ht.useEffect)(()=>{if(Qe){let Tn=[];for(const[Pn,Ee]of Object.entries(Kn)){let fn={[Pn]:()=>{ri(Ee)}};Tn.push(fn),Qe.addKeyMap(fn)}return()=>{for(let Pn of Tn)Qe.removeKeyMap(Pn)}}},[Qe]),(0,ht.useEffect)(()=>{Te!==ci&&Pi(Te)},[Te]),(0,Ui.Z)(()=>{if(!zt&&_i>0){let Tn=new Date().getTime(),Pn=window.sessionStorage.getItem(Nn);Tn>=_i+xi&&(!Pn||Pn!==Oi)&&(window.sessionStorage.setItem(Nn,Oi),Gi(!0))}},xi),(0,ht.useEffect)(()=>{En(Be)},[Qe,Be]),(0,ht.useEffect)(()=>{Qe&&Ln&&Qe.focus()},[Qe,Ln]),(0,ht.useEffect)(()=>{if(De&&Qe){let Tn=function(Ee){let fn=Ee.target;if(wo.current){let gi=fn.scrollTop/fn.scrollHeight;wo.current.scrollTop=wo.current.scrollHeight*gi}};const Pn=Qe.getScrollerElement();return Pn.addEventListener("scroll",Tn),()=>{Pn.removeEventListener("scroll",Tn)}}},[Qe,De]),(0,ht.useEffect)(()=>{if(Qe&&Vn){let Tn=function(Pn,Ee){Vn(Pn,Ee)};return Qe.on("beforeChange",Tn),()=>{Qe.off("beforeChange",Tn)}}},[Qe,Vn]),(0,ht.useEffect)(()=>{if(Qe&&Ve){let Tn=function(){Ve(Qe.getValue())};return Qe.on("blur",Tn),()=>{Qe.off("blur",Tn)}}},[Qe,Ve]);function fo(Tn,Pn){var Ee=Tn.getDoc(),fn=Ee.getCursor(),gi=Ee.getLine(fn.line),Wi=gi.charAt(fn.ch-1),ki=gi.lastIndexOf("@\u2581@",fn.ch),vi=gi.lastIndexOf("@\u2581\u2581@",fn.ch),Ji=ki>vi?ki:vi,Ki=ki>vi?3:4;if(pn.indexOf(Wi)===-1)return null;if(console.log("change1:",Pn,Tn,gi,fn,Ji,ki,vi,Wi),Ji>=0&&fn.ch-Ji<5){var Jo=Ji+Ki;return Ee.replaceRange("",{line:fn.line,ch:Ji},{line:fn.line,ch:Jo}),{line:fn.line,ch:Jo}}return null}(0,ht.useEffect)(()=>{if(Qe){let Tn=function(Pn,Ee){const fn=Pn.getValue();Ci(fn),Zi(new Date().getTime()),Pn.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),re&&(Dn?re(fn,Zt(fn)):re(fn))};return Qe.on("change",Tn),()=>{Qe.off("change",Tn)}}},[Qe,re]),(0,ht.useEffect)(()=>{if(Qe)if(le==null)Qe.setValue(""),Ci("");else{const Tn=window.scrollY||window.pageYOffset;le!==Qe.getValue()&&(Qe.setValue(le),Ci(le),Qe.setCursor(qn?1:Qe.lineCount(),0),window.scrollTo(0,Tn))}},[Qe,le]);const ri=(0,ht.useCallback)(Tn=>{const Pn=Qe.getCursor(),Ee=Qe.getSelection();let fn=Ee.split(`
|
|
`);switch(Tn){case"bold":return Qe.replaceSelection("**"+Ee+"**"),Ee===""&&Qe.setCursor(Pn.line,Pn.ch+2),Qe.focus();case"italic":return Qe.replaceSelection("*"+Ee+"*"),Ee===""&&Qe.setCursor(Pn.line,Pn.ch+1),Qe.focus();case"code":return Qe.replaceSelection("`"+Ee+"`"),Ee===""&&Qe.setCursor(Pn.line,Pn.ch+1),Qe.focus();case"inline-latex":return wi("inline-latex"),Qe.focus();case"latex":return Qe.replaceSelection("```latex\n"+Ee+"\n```"),Qe.setCursor(Pn.line+1,Ee.length+1),Qe.focus();case"line-break":return Qe.replaceSelection(`<br/>
|
|
`),Qe.focus();case"list-ul":return Ee===""?Qe.replaceSelection("- "+Ee):Qe.replaceSelection(fn.map(gi=>gi===""?"":`- ${gi}`).join(`
|
|
`)),Qe.focus();case"list-ol":return Ee===""?Qe.replaceSelection("1. "+Ee):Qe.replaceSelection(fn.map((gi,Wi)=>gi===""?"":`${Wi+1}. ${gi}`).join(`
|
|
`)),Qe.focus();case"add-null-ch":return Ee===""&&Qe.setCursor(Pn.line,Pn.ch),Qe.replaceSelection(ho),Qe.focus();case"add-signal":return Ee===""&&Qe.setCursor(Pn.line,Pn.ch),Qe.replaceSelection(wt),Qe.focus();case"add-multiple":return Ee===""&&Qe.setCursor(Pn.line,Pn.ch),Qe.replaceSelection(pn),Qe.focus();case"inster-template-1":return Ee===""&&Qe.setCursor(Pn.line,Pn.ch),Qe.replaceSelection(Li),Qe.focus();case"eraser":return Qe.setValue(""),Qe.focus();case"trigger-watch":return En(!De),Qe.focus();case"trigger-full-screen":return Pi(!ci),Qe.focus();case di:wi(di);return;case Qi:wi(Qi);return;case fi:wi(fi);return;case Bi:wi(Bi);return;case"maths-latex":wi("maths-latex");return;case pi:wi(pi);return;case Ao:wi(Ao);return;default:throw new Error}},[Qe,De,ci]),It=(0,ht.useCallback)((Tn,Pn)=>{var Ee,fn,gi,Wi,ki,vi;switch(wi(""),_n){case di:const{title:$r,link:be}=Tn;return Qe.replaceSelection(`[${$r}](${be})`),Qe.focus();case Qi:const{language:Ir,content:Ea}=Tn;return Qe.replaceSelection(["```"+Ir,Ea,"```"].join(`
|
|
`)),Qe.focus();case"maths-latex":for(var Ji=atob(Tn),Ki=new Uint8Array(Ji.length),Jo=0;Jo<Ji.length;Jo++)Ki[Jo]=Ji.charCodeAt(Jo);var nr=new Blob([Ki],{type:"image/png"});(0,ge.I)(nr,ar=>{ar.id?Qe.replaceSelection(``):(ar==null?void 0:ar.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":Qe.replaceSelection("`$$"+Tn+"$$`");break;case fi:case Bi:case qi:const{src:js,alt:cl}=Tn,pr=Pn,fa=(gi=(fn=(Ee=pr==null?void 0:pr.name)==null?void 0:Ee.split("."))==null?void 0:fn.pop)==null?void 0:gi.call(fn);return((Wi=pr==null?void 0:pr.type)==null?void 0:Wi.indexOf("image"))>-1||!(pr!=null&&pr.type)?pr!=null&&pr.align||pr!=null&&pr.width?Qe.replaceSelection(`<p style="text-align:${pr.align||"initial"}"><img width="${pr.width?pr.width+"%":"initial"}" src="${js}" alt="${cl||""}" /></p>`):Qe.replaceSelection(`<img width="100%" src="${js}" alt="${cl||""}" />`):((ki=pr==null?void 0:pr.type)==null?void 0:ki.indexOf("video"))>-1?Qe.replaceSelection(`<video width="100%" controls src="${js}"></video>`):((vi=pr==null?void 0:pr.type)==null?void 0:vi.indexOf("pdf"))>-1?Qe.replaceSelection(`<a href="${js}?type=${pr.type}&disposition=inline" target="_blank">${pr.name}</a>`):ui.includes(fa)?Qe.replaceSelection(`<a href="${js}?type=office&disposition=inline" target="_blank">${pr.name}</a>`):Qe.replaceSelection(`[${pr.name}](${js})`),Qe.focus();case Ao:const{row:jo,col:uo,align:Fo}=Tn;let mr=`
|
|
`;for(let ar=0;ar<jo;ar++){let Qr=[],$o=[];for(let yi=0;yi<uo;yi++)ar===1&&$o.push(Ti[Fo]),Qr.push(" ");ar===1&&(mr+=`| ${$o.join(" | ")} |
|
|
`),mr+=`| ${Qr.join(uo===1?"":" | ")} |
|
|
`}return Qe.replaceSelection(mr+`
|
|
`),Qe.focus();default:throw new Error}},[Qe,_n]),qo=(0,ht.useMemo)(()=>{switch(_n){case di:return ht.createElement(nn,{callback:It,onCancel:_o});case Qi:return ht.createElement(dn.Z,{callback:It,onCancel:_o});case fi:return ht.createElement(ge.Z,{callback:It,onCancel:_o});case pi:return ht.createElement(We,{callback:It,onCancel:_o});case Ao:return ht.createElement(Bt,{callback:It,onCancel:_o});case"maths-latex":return ht.createElement(ln,{showSaveButton:!0,callback:It});case"inline-latex":return ht.createElement(hn.Z,{showSaveButton:!0,callback:It});default:return null}},[_n]);function _o(){wi("")}(0,ht.useEffect)(()=>{if(Hi.current){let Tn=function(ki){gi=!0,Wi=ki.pageY},Pn=function(){gi=!1},Ee=function(ki){if(gi){let vi=ki.pageY-Wi;vi<0&&(vi=0),vi>300&&(vi=300);let Ji=Ze+vi+"px";$i(Ji)}},fn=Hi.current,gi=!1,Wi=0;return fn.addEventListener("mousedown",Tn),document.addEventListener("mousemove",Ee),document.addEventListener("mouseup",Pn),()=>{fn.removeEventListener("mousedown",Tn),document.removeEventListener("mousemove",Ee),document.removeEventListener("mouseup",Pn)}}},[Qe,Hi]),(0,ht.useEffect)(()=>{$i(Ze)},[Ze]);const Sr=Ce(qt),Fr=Ce(oo),Xo={width:Sr,height:Fr},kr=(0,ht.useMemo)(()=>{if(_i){let Tn=new Date(_i),Pn=Tn.getHours(),Ee=Tn.getMinutes(),fn=Tn.getSeconds();return Pn=Pn<10?"0"+Pn:Pn,Ee=Ee<10?"0"+Ee:Ee,fn=fn<10?"0"+fn:fn,`${Pn}:${Ee}:${fn}`}return 0},[_i]),Zt=Tn=>{const Pn=[];if(Dn){let Ee=-1;Tn=Tn.replace(/(@▁▁@|@▁@)/g,function(fn,gi,Wi){Pn.push({multiLine:fn!==wt})})}return Pn};function kn(){window.sessionStorage.removeItem(Nn),Gi(!1),Zi(0)}function Mn(){Gi(!1),Zi(0),Qe.setValue(window.sessionStorage.getItem(Nn))}(0,ht.useEffect)(()=>{Ue[_n]&&_n!==Bi&&_n!==pi&&setTimeout(()=>{const Tn=document.getElementsByClassName("markdown-popup-form")[0],Pn=window.innerWidth/2-Tn.offsetWidth/2,Ee=window.innerHeight/2-Tn.offsetHeight/2;xo(Pn),to(Ee)},0)},[_n]);const Un=Tn=>{Tn.preventDefault();const Pn=Tn.clientX-_e,Ee=Tn.clientY-Co;document.body.onmousemove=fn=>{let gi=fn.clientX-Pn,Wi=fn.clientY-Ee;const ki=document.getElementsByClassName("markdown-popup-form")[0],vi=window.innerWidth-ki.offsetWidth,Ji=window.innerHeight-ki.offsetHeight;gi=Math.max(0,Math.min(gi,vi)),Wi=Math.max(0,Math.min(Wi,Ji)),gn(fn.clientX,fn.clientY,Pn,Ee)&&(xo(gi),to(Wi))},document.body.onmouseup=function(){document.body.onmousemove=null}},gn=(Tn,Pn,Ee,fn)=>{const gi=document.body.clientHeight,Wi=document.body.clientWidth;return Tn<20&&Ee>Tn||Tn>Wi-20&&Ee<Tn||Pn<20&&fn>Pn||Pn>gi-20&&fn<Pn?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return ht.createElement(ht.Fragment,null,ht.createElement("div",{className:"markdown-editor-wrapper",ref:co},ht.createElement("div",{className:`markdown-editor-container ${oi} ${De?"on-preview":""} ${An?"mini":""} ${ci?"full-screen":""}`,style:Xo},ht.createElement($t,{insertTemp:un,watch:De,fullScreen:ci,showNullButton:Fe,showNullProgramButton:Dn,onActionCallback:ri,hidetoolBar:On,extraUse:ji}),ht.createElement("div",{className:"markdown-editor-body"},ht.createElement("div",{className:"codemirror-container"},ht.createElement("textarea",{ref:Bo,placeholder:Xi})),De?ht.createElement("div",{ref:wo,className:"preview-container"},Qn==="stex"&&ht.createElement(Oe,{value:Oi}),Qn!=="stex"&&ht.createElement(he.Z,{disabledFill:si,showProgramFill:Dn,value:Oi})):null))),ai?ht.createElement("a",{ref:Hi,className:"editor-resize"}):null,_n===Bi&&ht.createElement(zn,{callback:It,onCancel:_o}),_n===pi&&ht.createElement(We,{callback:It,onCancel:_o}),ht.createElement(ne.Z,null,Ue[_n]&&_n!==Bi&&_n!==pi?ht.createElement(we.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:_e,top:Co},title:ht.createElement("div",{style:{cursor:"move"},onMouseDown:Un},Ue[_n]),open:!0,onCancel:_o,footer:null,destroyOnClose:!0,width:_n===pi?"1200px":null,height:_n===pi?"80vh":null,className:"markdown-popup-form"},qo):null))}},28451:function(Ye,jn,Ft){"use strict";Ft.d(jn,{Z:function(){return Ut},I:function(){return $t}});var ht=Ft(78241),Ht=Ft(8591),fe=Ft(92832),Re=Ft(81327),Se=Ft(5871),Me=Ft(5112),Jt=Ft(3113),Le=Ft(77903),ce=Ft(59301),ve=Ft(59301),he=Object.defineProperty,Oe=Object.defineProperties,je=Object.getOwnPropertyDescriptors,kt=Object.getOwnPropertySymbols,et=Object.prototype.hasOwnProperty,nt=Object.prototype.propertyIsEnumerable,dt=(ne,_t,Pe)=>_t in ne?he(ne,_t,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):ne[_t]=Pe,lt=(ne,_t)=>{for(var Pe in _t||(_t={}))et.call(_t,Pe)&&dt(ne,Pe,_t[Pe]);if(kt)for(var Pe of kt(_t))nt.call(_t,Pe)&&dt(ne,Pe,_t[Pe]);return ne},pt=(ne,_t)=>Oe(ne,je(_t));const{useForm:yt}=ht.default,At={width:280,marginRight:10},Dt={labelCol:{span:5},wrapperCol:{span:19}};var Ut=({callback:ne,onCancel:_t})=>{const[Pe]=yt();let ue=(0,ce.useRef)();function pe(Ie){ue.current.width=Pe.getFieldValue("width"),ue.current.align=Pe.getFieldValue("align"),ne(Ie,ue.current)}function oe(Ie,an){if(Ie.status===-1){Ht.ZP.error(Ie.message);return}Pe.setFieldsValue({src:`/api/attachments/${Ie.id}`,type:an.type})}function Ae(Ie){let an=Ie.target.files[0];ue.current=an,$t(an,oe)}return ve.createElement(ht.default,pt(lt({form:Pe},Dt),{className:"upload-image-panel",onFinish:pe,style:{width:470,overflow:"hidden"}}),ve.createElement(ht.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},ve.createElement("div",{className:"flex-container"},ve.createElement(ht.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},ve.createElement(fe.default,{style:At})),ve.createElement(Qt,{onFileChange:Ae}))),ve.createElement(ht.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},ve.createElement(fe.default,{style:{width:264}})),ve.createElement(ht.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},ve.createElement(Re.Z,null,ve.createElement(ht.default.Item,{name:"width",style:{margin:0}},ve.createElement(Se.Z,{style:{width:264}})),ve.createElement("span",{className:"ml8"},"%"))),ve.createElement(ht.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},ve.createElement(Me.ZP.Group,{name:"align",defaultValue:1,options:[{value:"left",label:"\u5DE6\u5BF9\u9F50"},{value:"center",label:"\u5C45\u4E2D\u5BF9\u9F50"},{value:"right",label:"\u53F3\u5BF9\u9F50"}]})),ve.createElement("aside",null,ve.createElement(ht.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},ve.createElement(Jt.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ve.createElement(Jt.ZP,{type:"default",onClick:_t},"\u53D6\u6D88"))))};function Qt({onFileChange:ne}){return ve.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",ve.createElement("input",{type:"file",onChange:ne}))}function $t(ne,_t){if(!ne)throw new String("\u6CA1\u6709\u6587\u4EF6");let Pe=new FormData;Pe.append("editormd-image-file",ne),Pe.append("file_param_name","editormd-image-file"),Pe.append("byxhr","true");var ue=new window.XMLHttpRequest;ue.withCredentials=!0,ue.addEventListener("load",function(pe){_t(JSON.parse(pe.target.responseText),ne)},!1),ue.addEventListener("error",function(pe){console.error(pe)},!1),ue.open("POST",`${Le.KI}/api/attachments.json`),ue.send(Pe)}},79346:function(Ye,jn,Ft){"use strict";Ft.d(jn,{Z:function(){return fe}});var ht=Ft(59301),Ht=Ft(4676);class fe extends ht.Component{constructor(Se){super(Se);const Me=window.document;this.node=Me.createElement("div"),Me.body.appendChild(this.node)}render(){const{children:Se}=this.props;return(0,Ht.createPortal)(Se,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},23954:function(Ye,jn,Ft){"use strict";Ft.d(jn,{SV:function(){return Zn},ZP:function(){return Ne}});var ht=Ft(59301),Ht=Ft(76374);const fe={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"]},Re={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"]},Se={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(`
|
|
`)}]},Jt={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 Le=Ft(53184),ce=Ft.n(Le),ve=Object.defineProperty,he=Object.defineProperties,Oe=Object.getOwnPropertyDescriptors,je=Object.getOwnPropertySymbols,kt=Object.prototype.hasOwnProperty,et=Object.prototype.propertyIsEnumerable,nt=(sn,We,en)=>We in sn?ve(sn,We,{enumerable:!0,configurable:!0,writable:!0,value:en}):sn[We]=en,dt=(sn,We)=>{for(var en in We||(We={}))kt.call(We,en)&&nt(sn,en,We[en]);if(je)for(var en of je(We))et.call(We,en)&&nt(sn,en,We[en]);return sn},lt=(sn,We)=>he(sn,Oe(We)),pt=(sn,We,en)=>new Promise((Nt,Ct)=>{var St=Lt=>{try{Gt(en.next(Lt))}catch(ie){Ct(ie)}},Bt=Lt=>{try{Gt(en.throw(Lt))}catch(ie){Ct(ie)}},Gt=Lt=>Lt.done?Nt(Lt.value):Promise.resolve(Lt.value).then(St,Bt);Gt((en=en.apply(sn,We)).next())});const yt={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"]}},At=(sn,We)=>We.map(en=>({label:en,kind:sn.languages.CompletionItemKind.Keyword,insertText:en})),Dt=sn=>Object.keys(yt.tables).map(We=>({label:We,kind:sn.languages.CompletionItemKind.Variable,insertText:We})),Ut=(sn,We)=>{const en=yt.tables[sn];return en?en.map(Nt=>({label:Nt,kind:We.languages.CompletionItemKind.Field,insertText:Nt})):[]};function Qt(sn,We,en,Nt,Ct){let St=We.getWordUntilPosition(en),Bt={startLineNumber:en.lineNumber,endLineNumber:en.lineNumber,startColumn:St.startColumn,endColumn:St.endColumn},Gt=Nt.map(Lt=>({label:Lt,kind:sn.languages.CompletionItemKind.Keyword,insertText:Lt,insertTextRules:sn.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Bt}));return Ct.map(Lt=>{Gt.push(lt(dt({},Lt),{range:Bt}))}),Gt}var $t=sn=>{yt.languages.map(Ct=>(sn.languages.registerDocumentFormattingEditProvider(Ct,{provideDocumentFormattingEdits(St,Bt,Gt){return pt(this,null,function*(){const Lt=ce()(St.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:St.getFullModelRange(),text:Lt}]})}}),Ct));const We=Se.quickKey.map(Ct=>({label:Ct.label,kind:sn.languages.CompletionItemKind.Method,insertText:Ct.content,insertTextRules:sn.languages.CompletionItemInsertTextRule.InsertAsSnippet})),en=Me.quickKey.map(Ct=>({label:Ct.label,kind:sn.languages.CompletionItemKind.Method,insertText:Ct.content,insertTextRules:sn.languages.CompletionItemInsertTextRule.InsertAsSnippet})),Nt=Re.quickKey.map(Ct=>({label:Ct.label,kind:sn.languages.CompletionItemKind.Method,insertText:Ct.content,insertTextRules:sn.languages.CompletionItemInsertTextRule.InsertAsSnippet}));sn.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(Ct,St){var Bt=Ct.getWordUntilPosition(St),Gt={startLineNumber:St.lineNumber,endLineNumber:St.lineNumber,startColumn:Bt.startColumn,endColumn:Bt.endColumn},Lt=Ct.getLineContent(St.lineNumber).substring(Bt.startColumn-2,Bt.endColumn);return{suggestions:[...Se.keywords.map(ie=>({label:ie,kind:sn.languages.CompletionItemKind.Function,documentation:ie,insertText:ie,insertTextRules:sn.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Gt})),...Se.quickKey.map(ie=>({label:ie.label,kind:sn.languages.CompletionItemKind.Function,documentation:ie.content,insertText:Lt.startsWith("#")?ie.content.replace(/#/,""):ie.content,insertTextRules:sn.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Gt}))]}}}),sn.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(Ct,St){var Bt=Ct.getWordUntilPosition(St),Gt={startLineNumber:St.lineNumber,endLineNumber:St.lineNumber,startColumn:Bt.startColumn,endColumn:Bt.endColumn};return{suggestions:[...fe.keywords.map(Lt=>({label:Lt,kind:sn.languages.CompletionItemKind.Function,documentation:Lt,insertText:Lt,insertTextRules:sn.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Gt}))]}}}),sn.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(Ct,St){var Bt=Ct.getWordUntilPosition(St),Gt={startLineNumber:St.lineNumber,endLineNumber:St.lineNumber,startColumn:Bt.startColumn,endColumn:Bt.endColumn},Lt=Ct.getLineContent(St.lineNumber).substring(Bt.startColumn-2,Bt.endColumn);return{suggestions:[...Re.keywords.map(ie=>({label:ie,kind:sn.languages.CompletionItemKind.Function,documentation:ie,insertText:ie,insertTextRules:sn.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Gt})),...Re.quickKey.map(ie=>({label:ie.label,kind:sn.languages.CompletionItemKind.Function,documentation:ie.content,insertText:Lt.startsWith("#")?ie.content.replace(/#/,""):ie.content,insertTextRules:sn.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Gt}))]}}}),sn.languages.registerCompletionItemProvider("scala",{provideCompletionItems:function(Ct,St){var Bt=Ct.getWordUntilPosition(St),Gt={startLineNumber:St.lineNumber,endLineNumber:St.lineNumber,startColumn:Bt.startColumn,endColumn:Bt.endColumn},Lt=Ct.getLineContent(St.lineNumber).substring(Bt.startColumn-2,Bt.endColumn);return{suggestions:[...Jt.keywords.map(ie=>({label:ie,kind:sn.languages.CompletionItemKind.Function,documentation:ie,insertText:ie,insertTextRules:sn.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Gt})),...Jt.quickKey.map(ie=>({label:ie.label,kind:sn.languages.CompletionItemKind.Function,documentation:ie.content,insertText:Lt.startsWith("#")?ie.content.replace(/#/,""):ie.content,insertTextRules:sn.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Gt}))]}}}),sn.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(Ct,St){var Bt=Ct.getWordUntilPosition(St),Gt={startLineNumber:St.lineNumber,endLineNumber:St.lineNumber,startColumn:Bt.startColumn,endColumn:Bt.endColumn},Lt=Ct.getLineContent(St.lineNumber).substring(Bt.startColumn-2,Bt.endColumn);return{suggestions:[...Me.keywords.map(ie=>({label:ie,kind:sn.languages.CompletionItemKind.Function,documentation:ie,insertText:ie,insertTextRules:sn.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Gt})),...Me.quickKey.map(ie=>({label:ie.label,kind:sn.languages.CompletionItemKind.Function,documentation:ie.content,insertText:Lt.startsWith("#")?ie.content.replace(/#/,""):ie.content,insertTextRules:sn.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Gt}))]}}})};const ne="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var _t=Object.defineProperty,Pe=(sn,We,en)=>We in sn?_t(sn,We,{enumerable:!0,configurable:!0,writable:!0,value:en}):sn[We]=en,ue=(sn,We,en)=>Pe(sn,typeof We!="symbol"?We+"":We,en);const pe=class px{constructor(We,en,Nt){this.placeholder=We,this.editor=en,this.monaco=Nt,en.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return px.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)}};ue(pe,"ID","editor.widget.placeholderHint");var Ae=pe,Ie=Ft(96236),an=Ft(8591),Gn=Ft(6848),bn=Ft(89392),de=Ft(34604),Wt=Ft(56102),xe=Object.defineProperty,nn=Object.defineProperties,dn=Object.getOwnPropertyDescriptors,ge=Object.getOwnPropertySymbols,we=Object.prototype.hasOwnProperty,Je=Object.prototype.propertyIsEnumerable,Bn=(sn,We,en)=>We in sn?xe(sn,We,{enumerable:!0,configurable:!0,writable:!0,value:en}):sn[We]=en,vn=(sn,We)=>{for(var en in We||(We={}))we.call(We,en)&&Bn(sn,en,We[en]);if(ge)for(var en of ge(We))Je.call(We,en)&&Bn(sn,en,We[en]);return sn},zn=(sn,We)=>nn(sn,dn(We)),ae=(sn,We)=>{var en={};for(var Nt in sn)we.call(sn,Nt)&&We.indexOf(Nt)<0&&(en[Nt]=sn[Nt]);if(sn!=null&&ge)for(var Nt of ge(sn))We.indexOf(Nt)<0&&Je.call(sn,Nt)&&(en[Nt]=sn[Nt]);return en},mn=(sn,We,en)=>new Promise((Nt,Ct)=>{var St=Lt=>{try{Gt(en.next(Lt))}catch(ie){Ct(ie)}},Bt=Lt=>{try{Gt(en.throw(Lt))}catch(ie){Ct(ie)}},Gt=Lt=>Lt.done?Nt(Lt.value):Promise.resolve(Lt.value).then(St,Bt);Gt((en=en.apply(sn,We)).next())});function ti(sn){return/^\d+$/.test(sn)?`${sn}px`:sn}function Wn(){}let ii=!1;const mi={"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 yn(sn=[]){let We=sn;if(Array.isArray(sn)){for(let en=0;en<sn.length;en++){let Nt=mi[sn[en]];if(Nt)return Nt}return We[0]}return mi[We]||We}let Ge=null;var Ne=sn=>{var We=sn,{width:en="100%",height:Nt="100%",value:Ct,language:St="javascript",style:Bt={},options:Gt={},overrideServices:Lt={},theme:ie="vs-dark",onEditBlur:Ke,isCopy:ln=!1,onSave:hn,autoHeight:Jn=!1,forbidCopy:di=!1,onChange:fi=Wn,editorDidMount:pi=Wn,onFocus:Bi=Wn,onBreakPoint:qi=Wn,breakPointValue:Qi=[],filename:Ao="educoder.txt",errorLine:Mo,errorContent:Ti="",highlightLine:Ui,openBreakPoint:so=!1,placeholder:mo="",showMiniMap:xi=!0}=We,ho=ae(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","showMiniMap"]);const pn=(0,ht.useRef)(),wt=(0,ht.useRef)({}),Li=(0,ht.useRef)(),ui=(0,ht.useRef)(),Ce=(0,ht.useRef)([]),xn=(0,ht.useRef)(!1),wn=(0,ht.useRef)(),Kn=(0,ht.useRef)(),Ue=(0,ht.useRef)(!1),[qe,le]=(0,ht.useState)(!1);function re(){let Ve;return pn.current&&(Ve=new Ht.Z(Vn=>{for(let li of Vn)(li.target.offsetHeight>0||li.target.offsetWidth>0)&&wt.current.instance.layout()}),Ve.observe(pn.current)),Ve}function qt(){an.ZP.warning({content:decodeURIComponent(ne),key:"monaco-editor-tip"})}const Ze=()=>{let Ve=wt.current.instance;if(Ct!=null&&Ve&&qe){const Vn=Ve.getModel();Vn&&Ct!==Vn.getValue()&&(ii=!0,Vn.setValue(Ct),Ve.layout(),ii=!1)}};(0,ht.useEffect)(()=>{const Ve=de.Z.subscribe("formatDocument",Vn=>{var li;let oi=wt.current.instance;(li=oi==null?void 0:oi.getAction)==null||li.call(oi,"editor.action.formatDocument").run()});return window.updateMonacoValue=Vn=>{fi(Vn)},Ve},[]),(0,ht.useEffect)(()=>{var Ve;let Vn=wt.current.instance;ui.current&&clearTimeout(ui.current),ui.current=setTimeout(()=>{Ze()},500),Ct&&(Ct!=null&&Ct.length)&&((Ve=Vn==null?void 0:Vn.updateOptions)==null||Ve.call(Vn,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(Ct.split(/\r\n|\r|\n/g).length))+3,5)}))},[Ct,qe,wt.current]),(0,ht.useEffect)(()=>{if(Mo&&wt.current&&wt.current.instance){let Vn=wt.current.instance;Vn.changeViewZones(function(li){var oi=document.createElement("div");oi.style.padding="10px 20px",oi.style.width="calc(100% - 20px)",oi.className="my-error-line-wrp",oi.innerHTML=Ti,li.addZone({afterLineNumber:Mo||11,heightInLines:3,domNode:oi})});var Ve={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}};Vn.addOverlayWidget(Ve),Vn.revealPositionInCenter({lineNumber:20,column:1})}},[Mo,wt.current,qe]);const An=(Ve="",Vn)=>{if(!Ve||Ve.trim()==="")return!0;const oi=wt.current.instance.getModel().getLineTokens(Vn);let Rn=!1;for(let qn=0;qn<2;qn++)oi.getStandardTokenType(qn)===1&&(Rn=!0);return Rn};(0,ht.useEffect)(()=>{var Ve;const Vn=(Ve=wt.current)==null?void 0:Ve.instance;if(Vn&&qe&&di){const li=Vn.onDidBlurEditorWidget(()=>{Ue.current=!1}),oi=Vn.onDidFocusEditorText(()=>{Ue.current=!0});return()=>{li.dispose(),oi.dispose()}}},[wt.current,qe,di]),(0,ht.useEffect)(()=>{var Ve;if((Ve=wt.current)!=null&&Ve.instance&&qe&&so){let Vn=wt.current.instance,li=Vn.getModel();if(!li)return;(()=>{var De;let En=[],ci=[];const Pi=li.getAllDecorations();for(let wi of Pi)wi.options.className==="highlighted-line"&&(En.push((De=wi==null?void 0:wi.range)==null?void 0:De.startLineNumber),ci.push(wi==null?void 0:wi.id));if(Ui===En[0])return;li.deltaDecorations(ci,[]);const _n=li.getLineCount();Ui&&Ui<=_n&&(Vn.deltaDecorations([],[{range:new Ge.Range(Ui,1,Ui,li.getLineMaxColumn(Ui)),options:{isWholeLine:!0,className:"highlighted-line"}}]),Vn.revealLineInCenter(Ui))})();const Rn=(De=!1)=>{var En;let ci=[],Pi=[];const _n=li.getAllDecorations();for(let wi of _n)wi.options.linesDecorationsClassName==="breakpoints-select"&&(ci.push((En=wi==null?void 0:wi.range)==null?void 0:En.startLineNumber),Pi.push(wi==null?void 0:wi.id));if(De)return{lines:ci,ids:Pi};qi(ci)},qn=De=>mn(void 0,null,function*(){let En={range:new Ge.Range(De,1,De,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield li.deltaDecorations([],[En]),Rn()}),si=De=>mn(void 0,null,function*(){let En=[];const ci=Vn.getLineDecorations(De);for(let Pi of ci)Pi.options.linesDecorationsClassName==="breakpoints-select"&&En.push(Pi.id);yield li.deltaDecorations(En,[]),Rn()}),Xi=De=>{let En=Vn.getLineDecorations(De);for(let ci of En)if(ci.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,bn.isEqual)(Qi,Rn(!0).lines)){li.deltaDecorations(Rn(!0).ids,[]);const De=Qi.map(En=>({range:new Ge.Range(En,1,En,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));li.deltaDecorations([],De)}const Ii=Vn.onDidChangeModelContent(De=>{let En=Vn.getPosition();if(En){let ci=En.lineNumber;clearTimeout(Kn.current),Kn.current=setTimeout(()=>{An(li.getLineContent(ci),ci)?si(ci):Xi(ci)?(si(ci),qn(ci)):Rn()},100)}}),ji=Vn.onMouseDown(De=>{var En,ci,Pi;if(De.target.detail&&((Pi=(ci=(En=De.target)==null?void 0:En.element)==null?void 0:ci.className)!=null&&Pi.includes("line-numbers"))){let _n=De.target.position.lineNumber;if(An(li.getLineContent(_n),_n))return;Xi(_n)?si(_n):qn(_n)}}),Qe=De=>{let En={range:new Ge.Range(De,1,De,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};Ce.current=Vn.deltaDecorations(Ce.current,[En])},ao=()=>{Ce.current=Vn.deltaDecorations(Ce.current,[])},Oi=Vn.onMouseMove(De=>{var En,ci,Pi;if(ao(),De.target.detail&&((Pi=(ci=(En=De.target)==null?void 0:En.element)==null?void 0:ci.className)!=null&&Pi.includes("line-numbers"))){let _n=De.target.position.lineNumber;if(An(li.getLineContent(_n),_n))return;Qe(_n)}}),Ci=Vn.onMouseLeave(()=>{ao()});return()=>{Ii.dispose(),ji.dispose(),Oi.dispose(),Ci.dispose()}}},[wt.current,qe,Qi,Ui,so,St]),(0,ht.useEffect)(()=>{var Ve;(Ve=wt.current)!=null&&Ve.instance&&so&&wt.current.instance.setPosition({lineNumber:0,column:0})},[Ui]);function Ln(){let Ve=wt.current.instance;if(Ve){const Vn=Ve.getSelection(),li=wt.current.pastePos||{},oi=new Ge.Range(li.startLineNumber||Vn.endLineNumber,li.startColumn||Vn.endColumn,li.endLineNumber||Vn.endLineNumber,li.endColumn||Vn.endColumn);setTimeout(()=>{Ve.executeEdits("",[{range:oi,text:""}])},300)}}function Be(Ve){(window.navigator.platform.match("Mac")?Ve.metaKey:Ve.ctrlKey)&&Ve.keyCode==83&&(Ve.preventDefault(),hn())}const un=()=>{if(Jn&&wt.current.instance){const Ve=wt.current.instance.getContentHeight();On(Ve<Nt?Nt:Ve)}else On(Nt)};function Qn(Ve){var Vn=document.createEvent("MouseEvents");Vn.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),Ve.dispatchEvent(Vn)}const Nn=Ve=>{if(!Ue.current)return;const{keyCode:Vn,ctrlKey:li,metaKey:oi,target:Rn,type:qn}=Ve;return(qn==="paste"||(Vn===67||Vn===86)&&(oi||li))&&Rn.nodeName==="TEXTAREA"&&(qt(),Ve.preventDefault()),!1};function ai(Ve,Vn){var li=window.URL||window.webkitURL||window,oi=new Blob([Vn]),Rn=document.createElementNS("http://www.w3.org/1999/xhtml","a");Rn.href=li.createObjectURL(oi),Rn.download=Ve,Qn(Rn)}(0,ht.useEffect)(()=>{un()},[un]),(0,ht.useEffect)(()=>{pn.current&&!qe&&Promise.all([Ft.e(8909),Ft.e(3267)]).then(Ft.bind(Ft,71448)).then(Ve=>{try{Ge=Ve,wt.current.instance=Ge.editor.create(pn.current,{value:Ct,language:yn(St),theme:ie,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:xi||!1}},Lt);const Vn=wt.current.instance;let Rn=[...Ie.BH._menuItems].find(Ii=>Ii[0]._debugName=="EditorContext")[1],qn=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],si=(Ii,ji)=>{var Qe,ao;let Oi=Ii._first;do ji.includes((ao=(Qe=Oi.element)==null?void 0:Qe.command)==null?void 0:ao.id)&&Ii._remove(Oi);while(Oi=Oi.next)};if(pi(Vn,Ge),setTimeout(()=>{un(),wt.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{ai(Ao||"educoder.txt",Vn.getValue())}})},500),wt.current.subscription=Vn.onDidChangeModelContent(Ii=>{xn.current?clearTimeout(wn.current):(un(),fi(Vn.getValue(),Ii)),wn.current=setTimeout(()=>{xn.current=!1},500)}),window.Monaco||$t(Ge,yn(St)),di&&(si(Rn,qn),pn.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",Nn),window.removeEventListener("paste",Nn),window.addEventListener("keydown",Nn),window.addEventListener("paste",Nn)),window.Monaco=Ge,Ke&&Vn.onDidBlurEditorWidget(()=>{Ke(Vn.getValue())}),Bi&&Vn.onDidFocusEditorText(()=>{Bi(Vn.getValue())}),di)try{Vn.onDidPaste(Ii=>{const ji=Vn.getSelection(),Qe=wt.current.pastePos||{},ao=new Ge.Range(Qe.startLineNumber||ji.endLineNumber,Qe.startColumn||ji.endColumn,Qe.endLineNumber||ji.endLineNumber,Qe.endColumn||ji.endColumn);Vn.executeEdits("",[{range:Ii.range,text:""}])})}catch(Ii){}let Xi=re();return mo&&typeof mo=="string"&&new Ae(mo,Vn,Ge),le(!0),()=>{const Ii=wt.current.instance;Ii.dispose();const ji=Ii.getModel();ji&&ji.dispose(),wt.current.subscription&&wt.current.subscription.dispose(),Xi.unobserve(pn.current)}}catch(Vn){}})},[]),(0,ht.useEffect)(()=>{if(wt.current.instance&&qe)return document.addEventListener("keydown",Be,!1),()=>{document.removeEventListener("keydown",Be)}},[hn,qe]),(0,ht.useEffect)(()=>{let Ve=wt.current.instance;if(Ve&&qe){let Vn=yn(St);Ge.editor.setModelLanguage(Ve.getModel(),Vn)}},[St,qe]),(0,ht.useEffect)(()=>{wt.current.instance&&qe&&Ge.editor.setTheme(ie)},[ie,qe]),(0,ht.useEffect)(()=>{let Ve=wt.current.instance;Li.current=Gt,Ve&&qe&&(Ve.updateOptions(vn({},Gt)),setTimeout(()=>{Ve.getModel().updateOptions(vn({},Gt))},200))},[JSON.stringify(Gt),qe]),(0,ht.useEffect)(()=>{let Ve=wt.current.instance;Ve&&qe&&Ve.layout()},[en,Nt,qe]);const[zt,Fe]=(0,ht.useState)(ti(en)),[Dn,On]=(0,ht.useState)(ti(Nt)),Te=zn(vn({},Bt),{width:zt,height:Dn,position:"relative"});return ht.createElement("div",{className:"my-monaco-editor",ref:pn,style:Te},ln&&ht.createElement(Wt.CopyToClipboard,{text:Ct,onCopy:()=>an.ZP.success("\u590D\u5236\u6210\u529F")},ht.createElement(Gn.Z,{title:"\u590D\u5236\u4EE3\u7801"},ht.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},ht.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function Zn({width:sn="100%",height:We="100%",original:en,modified:Nt,language:Ct,options:St={}}){const Bt=(0,ht.useRef)(),[Gt,Lt]=(0,ht.useState)(null);function ie(Jn){let di;return Bt.current&&(di=new Ht.Z(fi=>{for(let pi of fi)(pi.target.offsetHeight>0||pi.target.offsetWidth>0)&&Jn.layout()}),di.observe(Bt.current)),di}(0,ht.useEffect)(()=>(Bt.current&&Promise.all([Ft.e(8909),Ft.e(9404)]).then(Ft.bind(Ft,2550)).then(Jn=>{Ge=Jn;const di=Ge.editor.createDiffEditor(Bt.current,zn(vn({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},St),{wordWrap:!0}));Lt(di);let fi=ie(di);return()=>{di.dispose();const pi=di.getModel();pi&&pi.dispose(),fi.unobserve(Bt.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,ht.useEffect)(()=>{Gt&&Gt.setModel({original:Ge.editor.createModel(en,Ct),modified:Ge.editor.createModel(Nt,Ct)})},[en,Nt,Ct,Gt]);const Ke=ti(sn),ln=ti(We),hn={width:Ke,height:ln};return ht.createElement("div",{className:"my-diff-editor",ref:Bt,style:hn})}},85057:function(Ye,jn,Ft){"use strict";Ft.d(jn,{jL:function(){return Se},w9:function(){return we},QD:function(){return fi},cQ:function(){return Wt},op:function(){return ie},O5:function(){return Kn},_b:function(){return Mo},t7:function(){return lt},Gi:function(){return mn},YG:function(){return zn},qp:function(){return he},vr:function(){return qi},qE:function(){return hn},Je:function(){return At},wb:function(){return Ie},cq:function(){return Ge},tp:function(){return kt}});var ht=Ft(59301),Ht={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"},fe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAAA0CAYAAAAkEw66AAAAAXNSR0IArs4c6QAAGNVJREFUeF7VmwmwHVWdxr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/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==",Se=({dataSource:Ue=[],img:qe,imgWidth:le=346,title:re,sunTitle:qt,bannerExtraContent:Ze})=>ht.createElement("div",{className:Ht.banner},ht.createElement("div",{className:Ht.content},ht.createElement("aside",null,ht.createElement("p",null,ht.createElement("b",null,re),ht.createElement("span",null,qt)),Ue.length>0&&ht.createElement("div",{className:Ht.btns},Ue.map((An,Ln)=>ht.createElement("div",{key:Ln,onClick:An.click},An.name,An.sign?ht.createElement("img",{src:fe,width:39}):null))),Ze),qe&&ht.createElement("img",{style:{marginTop:33,marginRight:38},src:qe,width:le}))),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"},Jt=Ft(92310),Le=Ft.n(Jt),ce=Ft(89392),he=({dataSource:Ue=[],value:qe,onChange:le,onTitleChange:re,className:qt,title:Ze,titleWidth:An=41,style:Ln={},fontColor:Be="#6A7283",showCount:un})=>{const[Qn,Nn]=(0,ht.useState)(0),[ai,zt]=(0,ht.useState)(!1),Fe=(0,ht.useRef)(null),Dn=(0,ht.useRef)(null);return(0,ht.useEffect)(()=>{var On;Ue.length!==0&&(((On=Fe==null?void 0:Fe.current)==null?void 0:On.clientHeight)>97?Nn(1):Nn(0)),Ue.length===0&&Nn(0),zt(!1)},[Ue]),ht.createElement("div",{className:Le()(Me.row,qt),style:Ln},ht.createElement("div",{onClick:(0,ce.throttle)(()=>re==null?void 0:re(),2e3),style:{width:An,marginTop:ai?12:4},className:`${Me.title} ${re?"current":""}`},Ze),ht.createElement("div",{className:ai?`${Me.tagsWrap} ${Me.tagsBorderWrap}`:Me.tagsWrap},ht.createElement("div",{className:Me.bar,ref:Dn,style:Qn>0?{height:Qn===1?97:"auto",overflow:Qn===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},ht.createElement("div",{className:Me.tag,ref:Fe},Ue==null?void 0:Ue.map(On=>ht.createElement("span",{onClick:()=>le(On.id),key:On.id,style:{color:Be},className:qe===On.id?Me.active:""},ht.createElement("span",{title:On.name,className:Me.name},On.name),!!un&&ht.createElement("span",{className:Me.num},On.count))))),!!Qn&&ht.createElement(ht.Fragment,null,Qn===1?ht.createElement("div",{onClick:()=>{var On;Nn(2),((On=Fe==null?void 0:Fe.current)==null?void 0:On.clientHeight)>245?zt(!0):zt(!1)},className:Me.action},"\u5C55\u5F00",ht.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):ht.createElement("div",{onClick:()=>{Dn.current.scrollTop=0,Nn(1),zt(!1)},className:Me.action},"\u6536\u8D77",ht.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},Oe={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"},kt=({dataSource:Ue=[],value:qe,onChange:le,className:re,style:qt={}})=>ht.createElement("div",{style:qt,className:Le()(Oe.tabs,re)},Ue.map(Ze=>ht.createElement("span",{onClick:()=>le(Ze.id),className:qe===Ze.id?Oe.active:"",key:Ze.id},Ze.name))),et={flex_box_center:"flex_box_center___yX6Oa",flex_space_between:"flex_space_between___t7oqF",flex_box_vertical_center:"flex_box_vertical_center___dEIHy",flex_box_center_end:"flex_box_center_end___taQDF",flex_box_column:"flex_box_column___xY_Lr",input:"input___PW2zI",dropdown:"dropdown___vSy8B",menu:"menu___NiyBu",text:"text___Grueu",b1:"b1___ZKryM",b2:"b2___aKyGa"},nt=Ft(92832),lt=({dataSource:Ue=[],value:qe="",onChange:le,onInputChange:re=()=>{},className:qt,style:Ze={},placeholder:An,allowClear:Ln=!1})=>{var Be;const[un,Qn]=(0,ht.useState)(""),[Nn,ai]=(0,ht.useState)("");(0,ht.useEffect)(()=>{var Dn;let On=qe;(Dn=JSON.stringify(qe))!=null&&Dn.includes("{")&&(Qn(qe.id),On=qe.value||"");try{ai(decodeURIComponent(On||""))}catch(Te){ai(decodeURIComponent(On||""))}},[qe]);const zt=()=>{le(encodeURIComponent(Nn),un||null)},Fe=Dn=>{Dn!==un&&(Qn(Dn),le(encodeURIComponent(Nn),Dn))};return ht.createElement("div",{className:Le()(et.input,qt),style:Ze},!!Ue.length&&ht.createElement("div",{className:et.dropdown},ht.createElement("div",{className:et.text},(Be=Ue.find(Dn=>Dn.id===un))==null?void 0:Be.name,ht.createElement("i",{className:"iconfont icon-zhankai4"}),ht.createElement("b",{className:et.b1}),ht.createElement("b",{className:et.b2})),ht.createElement("div",{className:et.menu},Ue.map((Dn,On)=>ht.createElement("div",{key:On,onClick:()=>Fe(Dn.id)},Dn.name)))),ht.createElement(nt.default,{onPressEnter:zt,value:Nn,onChange:Dn=>{ai(Dn.target.value),re(encodeURIComponent(Dn.target.value),un||null)},bordered:!1,placeholder:An}),ht.createElement("i",{onClick:zt,className:"iconfont icon-sousuo9 font14 pl10 current"}))},pt={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"},At=({value:Ue,onChange:qe,className:le,total:re,pageSize:qt,style:Ze={}})=>{const An=Ue<2,Ln=Ue>=Math.ceil(re/qt);return re<=qt?ht.createElement(ht.Fragment,null):ht.createElement("div",{className:Le()(pt.quickPager,le),style:Ze},ht.createElement("div",{onClick:()=>{An||qe(Ue-1,"prev")},className:An?pt.disabled:""},"\u4E0A\u4E00\u9875"),ht.createElement("div",{onClick:()=>{Ln||qe(Ue+1,"next")},className:Ln?pt.disabled:""},"\u4E0B\u4E00\u9875"))},Dt={flex_box_center:"flex_box_center___FO7TP",flex_space_between:"flex_space_between___LotYx",flex_box_vertical_center:"flex_box_vertical_center___bWdaw",flex_box_center_end:"flex_box_center_end___mVJ1o",flex_box_column:"flex_box_column___M83Mm",list:"list___oOsiS",wrap:"wrap___G6T7F",lockWrap:"lockWrap___Rl79E",li:"li___oZZ7l",cover:"cover___b2bYW",img:"img___IQX7w",sign:"sign___HkT6C",name:"name___SsJx8",e:"e___TMqq0",tags:"tags___bcjyo",rate:"rate___YACg7"},Ut=Ft(71418),Qt=Ft(6848),$t=Ft(13570),ne=Ft(3294),_t=Ft(955),Pe=Ft(96908),ue=Ft(57177),pe=Ft(81378),oe=Ft(8797),Ie=({className:Ue,dataSource:qe=[],col:le=4,right:re,bottom:qt=23,precision:Ze=0,wrapWidth:An=1200,trackEventItems:Ln,loading:Be})=>{const un=Math.floor((An-(le-1)*re)/le);return ht.createElement(Ut.Z,{spinning:Be},ht.createElement("div",{className:Le()(Dt.list,Ue)},!!qe.length&&qe.map((Qn,Nn)=>{const{name:ai,id:zt,identifier:Fe,power:Dn,cover_image_id:On,pic:Te}=Qn;return ht.createElement("div",{className:Dt.wrap,key:zt,style:{width:un,marginRight:(1+Nn)%le===0?0:re+Ze,marginBottom:qt}},ht.createElement("a",{target:"_blank",href:`/shixuns/${Fe}/challenges`,className:Dt.li,onClick:Ve=>{Ve.preventDefault(),Ln&&(0,_t.L9)([Ln]),Dn&&(0,_t.xg)(`/shixuns/${Fe}/challenges`)}},ht.createElement("div",{className:Dt.img},ht.createElement("img",{className:Dt.cover,src:`${Te}`}),Qn.is_jupyter&&ht.createElement("img",{className:Dt.sign,src:Pe}),Qn.is_jupyter_lab&&ht.createElement("img",{className:Dt.sign,src:ue}),Qn.is_unity_3d&&ht.createElement("img",{className:Dt.sign,src:pe})),ht.createElement("div",{className:Dt.name},ht.createElement(Qt.Z,{title:ai||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},ht.createElement("span",{className:Dt.e},ai||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),ht.createElement("div",{className:Dt.tags},ht.createElement(Qt.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},ht.createElement("span",null,ht.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),ht.createElement("span",null,Qn.challenges_count))),!!Qn.myshixuns_count&&ht.createElement(Qt.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},ht.createElement("span",null,ht.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),ht.createElement("span",null,Qn.myshixuns_count))),ht.createElement(Qt.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},ht.createElement("span",null,ht.createElement("span",null,Qn.level))),ht.createElement("div",{className:Dt.rate},ht.createElement($t.Z,{allowHalf:!0,disabled:!0,defaultValue:Qn.score_info}),ht.createElement("span",null,"\xA0",Qn.score_info?`${Qn.score_info}\u5206`:"5\u5206")))),!Dn&&ht.createElement("div",{className:Dt.lockWrap},ht.createElement("img",{src:`${ne.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),ht.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!qe.length&&ht.createElement(oe.Z,null)))},an={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"},Gn=Ft(24065),bn=Ft(59301),Wt=({className:Ue,dataSource:qe=[],col:le=4,right:re,bottom:qt=23,precision:Ze=0,wrapWidth:An=1200,trackEventItems:Ln,loading:Be,onRemove:un=()=>{},isCurrent:Qn=!0,showAlias:Nn=!1})=>{const ai=Math.floor((An-(le-1)*re)/le),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 bn.createElement(Ut.Z,{spinning:Be},bn.createElement("div",{className:Le()(an.list,Ue)},!!(qe!=null&&qe.length)&&(qe==null?void 0:qe.map((Fe,Dn)=>{var On;const{name:Te,id:Ve,identifier:Vn,featured:li,school_name:oi,image_url:Rn,excellent:qn,is_plan:si}=Fe;return bn.createElement("div",{key:Ve,className:an.wrap,style:{width:ai,marginRight:(1+Dn)%le===0?0:re+Ze,marginBottom:qt}},bn.createElement("a",{className:an.li,onClick:Xi=>{Xi.preventDefault(),Xi.stopPropagation(),Ln&&(0,_t.L9)([Ln]),(0,_t.xg)(`/paths/${Vn}`)}},bn.createElement("div",{className:an.img},bn.createElement("img",{className:an.cover,src:`${Rn}`}),Qn&&(0,Gn.bg)()&&(Fe==null?void 0:Fe.studying)&&bn.createElement("div",{className:`${an.movebq} user-path-items`,onClick:Xi=>{Xi.stopPropagation(),un(Fe)}},bn.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),bn.createElement("span",{className:"c-red"},"\u79FB\u9664")),(On=Fe==null?void 0:Fe.subject_tags)==null?void 0:On.map((Xi,Ii)=>{var ji,Qe;if(Ii===0){const Oi=(ji=zt.find(Ci=>Ci.name==Xi))==null?void 0:ji.swimg;return bn.createElement("img",{className:an.sign,src:Oi,style:{left:"-4px"}})}const ao=(Qe=zt.find(Oi=>Oi.name==Xi))==null?void 0:Qe.ptimg;return bn.createElement("img",{className:an.sign,src:ao,style:{left:`${48+52*(Ii-1)+2*Ii}px`}})}),bn.createElement("div",{style:{position:"absolute",top:"150px",left:"4px"}},(Fe==null?void 0:Fe.excellent)&&bn.createElement("div",{className:an.bq},"\u5F00\u653E\u8BFE\u7A0B"))),bn.createElement("div",{className:an.name},bn.createElement(Qt.Z,{title:Nn&&(Fe!=null&&Fe.excellent_alias_name)?bn.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${Te}`,bn.createElement("br",null),bn.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${Fe==null?void 0:Fe.excellent_alias_name}`)):Te},bn.createElement("span",{className:an.e},Nn&&(Fe==null?void 0:Fe.excellent_alias_name)||Te))),bn.createElement(Qt.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${oi}`},bn.createElement("div",{className:an.unit},bn.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),oi)),bn.createElement("div",{className:an.tags},bn.createElement("div",null,bn.createElement(Qt.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},bn.createElement("span",null,bn.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),bn.createElement("span",null,Fe.stages_count))),bn.createElement(Qt.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},bn.createElement("span",null,bn.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),bn.createElement("span",null,Fe.members_count)))))))})),!qe.length&&bn.createElement(oe.Z,null)))},xe={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"},nn="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+ZbWhnEBX8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lkWq03GuOMBm4JLwRh4+z+DbOp3ManhOsvxY4UvpeOSR1TGe1TCK0BiC/OS7APoQwKHqHKtsoPOGQzMA/7sCvp5MRp9aTSNdNRRcvyhSTqJQqN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",dn=Ft(59301),we=({className:Ue,dataSource:qe=[],col:le=4,right:re,bottom:qt=23,precision:Ze=0,wrapWidth:An=1200,trackEventItems:Ln,loading:Be,handleVery:un=()=>!0})=>{const Qn=Math.floor((An-(le-1)*re)/le);return dn.createElement(Ut.Z,{spinning:Be},dn.createElement("div",{className:Le()(xe.list,Ue)},!!qe.length&&qe.map((Nn,ai)=>{const{subject_identifier:zt,id:Fe,identifier:Dn,power:On}=Nn,Te=Nn.is_public!=0&&Nn.is_public;return dn.createElement("div",{className:xe.wrap,key:Fe,style:{width:Qn,marginRight:(1+ai)%le===0?0:re+Ze,marginBottom:qt}},dn.createElement("a",{className:xe.li,onClick:Ve=>{Ve.preventDefault(),un(Nn==null?void 0:Nn.first_category_url)&&(Ln&&(0,_t.L9)([Ln]),(0,_t.xg)(Nn.first_category_url))}},dn.createElement("div",{className:xe.top},dn.createElement(Qt.Z,{title:Nn.name},dn.createElement("div",{className:xe.name},Nn.name)),dn.createElement("img",{className:xe.img,src:ne.Z.IMG_SERVER+"/images/"+Nn.avatar_url}),dn.createElement("div",{className:xe.text,title:Nn.creator},Nn.creator),zt&&dn.createElement("div",{className:xe.btns},dn.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),dn.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),Te&&dn.createElement("div",{className:xe.sign},"\u516C\u5F00")),dn.createElement("div",{className:xe.bottom},Nn.visits>0&&dn.createElement(Qt.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},dn.createElement("span",null,dn.createElement("i",{className:"iconfont icon-liulanyan"}),dn.createElement("span",null,Nn.visits))),Nn.course_members_count>0&&dn.createElement(Qt.Z,{title:"\u6210\u5458",placement:"bottom"},dn.createElement("span",null,dn.createElement("i",{className:"iconfont icon-chengyuan"}),Nn.course_members_count)),Nn.tasks_count>0&&dn.createElement(Qt.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},dn.createElement("span",null,dn.createElement("i",{className:"iconfont icon-zuoye"}),Nn.tasks_count)),Nn.is_end?dn.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):dn.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!Nn.is_accessible&&dn.createElement("div",{className:xe.lockWrap},dn.createElement("img",{src:`${ne.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),dn.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!qe.length&&dn.createElement(oe.Z,null)))},Je={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"},Bn=Ft(89070),zn=({dataSource:Ue=[],value:qe,onChange:le,className:re,style:qt={},tabBarExtraContent:Ze})=>ht.createElement("div",{className:Le()(Je.tabs,re),style:qt},ht.createElement("div",{className:Je.tabsWrap},Ue.map((An,Ln)=>!(An!=null&&An.hide)&&ht.createElement("aside",{className:Je.tab,onClick:()=>{le(An.id),An.link&&Bn.history.push(An.link)},key:Ln},ht.createElement("div",{className:qe===An.id?Je.active:""},An.name),(An==null?void 0:An.resetCount)==null&&(An==null?void 0:An.total)!==void 0&&ht.createElement("span",null,"\uFF08",An==null?void 0:An.total,"\uFF09"),(An==null?void 0:An.resetCount)!==void 0&&(An==null?void 0:An.total)!==void 0&&ht.createElement(Qt.Z,{title:(An==null?void 0:An.tip)!=null?An==null?void 0:An.tip:""},ht.createElement("span",{style:{color:"#9096A3"}},"\uFF08",ht.createElement("span",{style:{color:"#000"}},An==null?void 0:An.resetCount),"/",ht.createElement("span",null,An==null?void 0:An.total),"\uFF09"))))),ht.createElement("div",{className:Je.tabBar},Ze)),mn=({className:Ue,style:qe={},children:le})=>ht.createElement("div",{className:Le()(Ue),style:qe},le),ti={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"},Wn=Ft(38854),ii=Ft(20834);const mi=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var Ge=({sortValue:Ue,dropValue:qe,className:le,onSort:re,onDrop:qt,dataSource:Ze=mi})=>{var An;return ht.createElement("div",{className:Le()(ti.orderWrap,le)},ht.createElement(Wn.Z,{dropdownRender:()=>ht.createElement(ii.default,null,Ze.map((Ln,Be)=>ht.createElement(ii.default.Item,{key:Be,onClick:()=>qt(Ln.id)},Ln.name)))},ht.createElement("span",{className:ti.orderTextWrap},(An=Ze.find(Ln=>qe===Ln.id))==null?void 0:An.name)),ht.createElement("span",{className:ti.orderIconWrap},ht.createElement("span",{className:ti.orderAsc},ht.createElement("i",{className:Ue==="asc"?`iconfont icon-sanjiaoxing-up font12 ${ti.cursorPointer} ${ti.active}`:`iconfont icon-sanjiaoxing-up font12 ${ti.cursorPointer}`,onClick:()=>re(Ue==="asc"?"desc":"asc")})),ht.createElement("span",{className:ti.orderDesc},ht.createElement("i",{className:Ue==="desc"?`iconfont icon-sanjiaoxing-down font12 ${ti.cursorPointer} ${ti.active}`:`iconfont icon-sanjiaoxing-down font12 ${ti.cursorPointer}`,onClick:()=>re(Ue==="asc"?"desc":"asc")}))))},Ne={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"},Zn=Ft(3113),sn=Object.defineProperty,We=Object.getOwnPropertySymbols,en=Object.prototype.hasOwnProperty,Nt=Object.prototype.propertyIsEnumerable,Ct=(Ue,qe,le)=>qe in Ue?sn(Ue,qe,{enumerable:!0,configurable:!0,writable:!0,value:le}):Ue[qe]=le,St=(Ue,qe)=>{for(var le in qe||(qe={}))en.call(qe,le)&&Ct(Ue,le,qe[le]);if(We)for(var le of We(qe))Nt.call(qe,le)&&Ct(Ue,le,qe[le]);return Ue},Bt=(Ue,qe)=>{var le={};for(var re in Ue)en.call(Ue,re)&&qe.indexOf(re)<0&&(le[re]=Ue[re]);if(Ue!=null&&We)for(var re of We(Ue))qe.indexOf(re)<0&&Nt.call(Ue,re)&&(le[re]=Ue[re]);return le},Gt=(Ue,qe,le)=>new Promise((re,qt)=>{var Ze=Be=>{try{Ln(le.next(Be))}catch(un){qt(un)}},An=Be=>{try{Ln(le.throw(Be))}catch(un){qt(un)}},Ln=Be=>Be.done?re(Be.value):Promise.resolve(Be.value).then(Ze,An);Ln((le=le.apply(Ue,qe)).next())}),ie=Ue=>{var qe=Ue,{className:le,style:re,children:qt,loading:Ze=!1,openLoading:An,onClick:Ln=()=>{},size:Be="middle",shape:un="round"}=qe,Qn=Bt(qe,["className","style","children","loading","openLoading","onClick","size","shape"]);const[Nn,ai]=(0,ht.useState)(!1);return ht.createElement(Zn.ZP,St({onClick:(0,ce.throttle)(zt=>Gt(void 0,null,function*(){An&&ai(!0);try{yield Ln(zt)}catch(Fe){console.log("error",Fe)}An&&ai(!1)}),2e3,{leading:!0,trailing:!1}),className:Le()(Ne.btn,Ne[`${Be}-${un}`],le),style:re,size:Be,shape:un,loading:Nn||Ze},Qn),qt)},Ke={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"},hn=({className:Ue,style:qe,children:le=null,onClick:re,title:qt})=>ht.createElement("div",{className:Le()(Ke.head,Ue),style:qe},ht.createElement("span",{className:"primary-hover",onClick:re},ht.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),ht.createElement("b",{title:qt},qt),ht.createElement("div",{className:Ke.node},le)),Jn={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"},fi=({confirmShow:Ue=!0,confirmTitle:qe,confirmClick:le,cancelShow:re=!0,cancelTitle:qt,cancelClick:Ze,className:An,style:Ln,confirmLoading:Be=!1})=>ht.createElement("div",{className:Le()(Jn.btns,An),style:Ln},Ue&&ht.createElement(Zn.ZP,{loading:Be,onClick:le,type:"primary",className:Jn.confirm},qe),re&&ht.createElement(Zn.ZP,{onClick:Ze,className:Jn.cancel},qt)),pi={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"},qi=({className:Ue,style:qe={},LeftContent:le,children:re,RightContent:qt})=>ht.createElement("div",{className:Le()(pi.fixedBottom,Ue),style:qe},ht.createElement("div",{className:pi.wrap},ht.createElement("div",{className:pi.left},le),ht.createElement("div",{className:pi.center},re),ht.createElement("div",{className:pi.right},qt))),Qi={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"},Mo=({className:Ue,style:qe={},dataSource:le=[]})=>ht.createElement("div",{className:Le()(Qi.crumbs,Ue),style:qe},le.map((re,qt)=>qt<le.length-1?ht.createElement(ht.Fragment,{key:qt},re.path||re.onClick?ht.createElement("span",{className:Qi.hover,onClick:re!=null&&re.onClick?re.onClick:()=>Bn.history.push(re.path)},re.name):ht.createElement("span",null,re.name),ht.createElement("span",null,"\xA0",">","\xA0")):ht.createElement("span",{key:qt,style:{color:"#5F6368"}},re.name))),Ti=Ft(31797),Ui=Object.defineProperty,so=Object.defineProperties,mo=Object.getOwnPropertyDescriptors,xi=Object.getOwnPropertySymbols,ho=Object.prototype.hasOwnProperty,pn=Object.prototype.propertyIsEnumerable,wt=(Ue,qe,le)=>qe in Ue?Ui(Ue,qe,{enumerable:!0,configurable:!0,writable:!0,value:le}):Ue[qe]=le,Li=(Ue,qe)=>{for(var le in qe||(qe={}))ho.call(qe,le)&&wt(Ue,le,qe[le]);if(xi)for(var le of xi(qe))pn.call(qe,le)&&wt(Ue,le,qe[le]);return Ue},ui=(Ue,qe)=>so(Ue,mo(qe)),Ce=(Ue,qe)=>{var le={};for(var re in Ue)ho.call(Ue,re)&&qe.indexOf(re)<0&&(le[re]=Ue[re]);if(Ue!=null&&xi)for(var re of xi(Ue))qe.indexOf(re)<0&&pn.call(Ue,re)&&(le[re]=Ue[re]);return le};const{Countdown:xn}=Ti.default;var Kn=Ue=>{var qe=Ue,{onChange:le}=qe,re=Ce(qe,["onChange"]);const[qt,Ze]=(0,ht.useState)(null);(0,ht.useEffect)(()=>{typeof qt=="number"&&qt>=0&&le(qt)},[qt]);const An=Ln=>{const Be=Math.floor(Ln/1e3);Ze(Be)};return ht.createElement(xn,ui(Li({},re),{onChange:An}))}},58856:function(Ye,jn,Ft){"use strict";Ft.d(jn,{Z:function(){return Ht}});var ht=Ft(59301);function Ht(fe,Re){const Se=(0,ht.useRef)();(0,ht.useEffect)(()=>{Se.current=fe}),(0,ht.useEffect)(()=>{function Me(){Se.current()}if(Re!==null){let Jt=setInterval(Me,Re);return()=>clearInterval(Jt)}},[Re])}},79285:function(Ye,jn,Ft){"use strict";Ft.d(jn,{Z:function(){return ge}});var ht=Ft(59301),Ht=Ft(78241),fe=Ft(8591),Re=Ft(43418),Se=Ft(99313),Me=Ft(57809),Jt=Ft(19842),Le=Ft(98228),ce=Ft(92832),ve=Ft(1710),he=Ft(6848),Oe=Ft(58421),je=Ft(3113),kt=Ft(99064),et={flex_box_center:"flex_box_center___kuaVT",flex_space_between:"flex_space_between___exKHH",flex_box_vertical_center:"flex_box_vertical_center___BzvkN",flex_box_center_end:"flex_box_center_end___Ss2DJ",flex_box_column:"flex_box_column___p1LEr",scoremodal:"scoremodal___upTFR",selectWrapper:"selectWrapper___HH3RX",selectWrappers:"selectWrappers___fUWwr",allqingchu:"allqingchu___BFF1D",title:"title___hFasb",score:"score___DXG3o",close:"close___kEIiB",content:"content___Mco8L",items:"items___j98jk",bottom:"bottom___A1n1C",yes:"yes___P1zzb",no:"no___xZqXd",titlecount:"titlecount___fqA9P",add:"add___MqV0R",search:"search___NREgv",searchIcon:"searchIcon___qny3A",tabWrap:"tabWrap___dR18c",previewModal:"previewModal___uSiGS",q_title:"q_title___a9NY9"},nt=Ft(26422),dt={flex_box_center:"flex_box_center___nnwwA",flex_space_between:"flex_space_between___cRir9",flex_box_vertical_center:"flex_box_vertical_center___FqTZ8",flex_box_center_end:"flex_box_center_end___WU5_v",flex_box_column:"flex_box_column___QZFa1",warp:"warp___aLZwN",shixunbutton:"shixunbutton___Eoa1i",redio:"redio___LJ4js",redioitem:"redioitem___YicCC",redioitemyes:"redioitemyes___lX4Nr",title:"title___pi1jH",titleyes:"titleyes___jiEh7",yestag:"yestag___DLWoP",qcount:"qcount___U9kkL",score:"score___vLK4B",qtitle:"qtitle___kyg0t",checkbox:"checkbox___vjiBw",checkboxitem:"checkboxitem___HW3CP",checkboxitemyes:"checkboxitemyes___kpjek",bottom:"bottom___uG8Zq",bottomitem:"bottomitem___TnJQQ",left:"left___M8WXX",right:"right____dkCI",completion:"completion___H6RmA",content:"content___a2hGC",items:"items___D8mLd",simple:"simple___fQ0OS",shixun:"shixun___nB6Jk",combination:"combination___YrOdz",program:"program___lG0JA"},lt=Ft(85149),pt=Ft(955),yt=Ft(24334);const At=["A\uFF0E","B\uFF0E","C\uFF0E","D\uFF0E","E\uFF0E","F\uFF0E","G\uFF0E","H\uFF0E","I\uFF0E","J\uFF0E","K\uFF0E","L\uFF0E","M\uFF0E","N\uFF0E","O\uFF0E","P\uFF0E","Q\uFF0E","R\uFF0E","S\uFF0E","T\uFF0E","U\uFF0E","V\uFF0E","W\uFF0E","X\uFF0E","Y\uFF0E","Z\uFF0E"];var Ut=({qitem:we})=>{var Je,Bn,vn,zn,ae,mn,ti,Wn,ii,mi;return ht.createElement("div",{className:dt.warp},ht.createElement("div",{className:dt.mainPart},ht.createElement("div",{className:dt.qcount},(we==null?void 0:we.question_type)===8&&ht.createElement(lt.Z,{className:dt.content,showProgramFill:!0,value:(Je=we==null?void 0:we.program_attr)==null?void 0:Je.description}),(we==null?void 0:we.question_type)!=8&&ht.createElement(lt.Z,{className:dt.qtitle,value:(we==null?void 0:we.name)||(we==null?void 0:we.title)})),((we==null?void 0:we.question_type)===0||(we==null?void 0:we.question_type)===2)&&ht.createElement("div",null,(Bn=we==null?void 0:we.choices)==null?void 0:Bn.map((yn,Ge)=>ht.createElement("div",{className:dt.redio},!(yn!=null&&yn.is_answer)&&ht.createElement("span",{className:dt.redioitem}),(yn==null?void 0:yn.is_answer)&&ht.createElement("i",{className:`${dt.redioitemyes} icon-duigou1`}),ht.createElement(lt.Z,{className:yn!=null&&yn.is_answer?dt.titleyes:dt.title,value:At[Ge]+(yn==null?void 0:yn.choice_text)}),(yn==null?void 0:yn.is_answer)&&ht.createElement("div",{className:dt.yestag},"\u6B63\u786E\u7B54\u6848")))),(we==null?void 0:we.question_type)===1&&ht.createElement("div",null,(vn=we==null?void 0:we.choices)==null?void 0:vn.map((yn,Ge)=>ht.createElement("div",{className:dt.checkbox},!(yn!=null&&yn.is_answer)&&ht.createElement("span",{className:dt.checkboxitem}),(yn==null?void 0:yn.is_answer)&&ht.createElement("i",{className:`${dt.checkboxitemyes} icon-duigou1`}),ht.createElement(lt.Z,{className:yn!=null&&yn.is_answer?dt.titleyes:dt.title,value:At[Ge]+(yn==null?void 0:yn.choice_text)}),(yn==null?void 0:yn.is_answer)&&ht.createElement("div",{className:dt.yestag},"\u6B63\u786E\u7B54\u6848")))),(we==null?void 0:we.question_type)===3&&ht.createElement("div",{className:dt.completion},(zn=we==null?void 0:we.standard_answer)==null?void 0:zn.map((yn,Ge)=>{var Ne;return ht.createElement("div",{style:{display:"flex"}},ht.createElement("span",{className:dt.title},"\u586B\u7A7A\u9879",Ge+1),ht.createElement("div",{className:dt.content},(Ne=yn==null?void 0:yn.answer_text)==null?void 0:Ne.map((Zn,sn)=>ht.createElement("div",{className:dt.items},Zn))))})),(we==null?void 0:we.question_type)===4&&ht.createElement("div",{className:dt.simple},ht.createElement("div",{className:dt.title},"\u53C2\u8003\u7B54\u6848"),ht.createElement("div",{className:"mt10",style:{fontSize:"16px"}},(ae=we==null?void 0:we.answer_texts)!=null&&ae[0]?ht.createElement(lt.Z,{className:dt.content,value:(mn=we==null?void 0:we.answer_texts)==null?void 0:mn[0]}):ht.createElement("div",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"))),(we==null?void 0:we.question_type)===5&&((ti=we==null?void 0:we.challenge_names)==null?void 0:ti.map((yn,Ge)=>ht.createElement("div",{className:dt.shixun},ht.createElement("span",{className:dt.qtitle},ht.createElement("span",{style:{marginRight:10}},"\u7B2C",(0,pt.EM)(Ge+1),"\u9898"),yn)))),(we==null?void 0:we.question_type)===6&&ht.createElement("div",{className:dt.program},ht.createElement(lt.Z,{className:dt.content,value:((Wn=we==null?void 0:we.program_attr)==null?void 0:Wn.description)||"- -"})),(we==null?void 0:we.question_type)===7&&((ii=we==null?void 0:we.sub_item_banks)==null?void 0:ii.map((yn,Ge)=>{var Ne,Zn,sn,We,en;return ht.createElement("div",null,ht.createElement("div",{className:dt.combination},ht.createElement("span",{className:dt.qtitle},yn==null?void 0:yn.name)),ht.createElement("div",{className:dt.warp,style:{padding:"0px",paddingTop:20}},ht.createElement("div",null,((yn==null?void 0:yn.item_type)=="SINGLE"||(yn==null?void 0:yn.item_type)=="JUDGMENT")&&((Ne=yn==null?void 0:yn.choices)==null?void 0:Ne.map((Nt,Ct)=>ht.createElement("div",{className:dt.redio},!(Nt!=null&&Nt.is_answer)&&ht.createElement("span",{className:dt.redioitem}),(Nt==null?void 0:Nt.is_answer)&&ht.createElement("i",{className:`${dt.redioitemyes} icon-duigou1`}),ht.createElement(lt.Z,{className:Nt!=null&&Nt.is_answer?dt.titleyes:dt.title,value:At[Ct]+(Nt==null?void 0:Nt.choice_text)}),(Nt==null?void 0:Nt.is_answer)&&ht.createElement("div",{className:dt.yestag},"\u6B63\u786E\u7B54\u6848")))),(yn==null?void 0:yn.item_type)=="MULTIPLE"&&((Zn=yn==null?void 0:yn.choices)==null?void 0:Zn.map((Nt,Ct)=>ht.createElement("div",{className:dt.checkbox},!(Nt!=null&&Nt.is_answer)&&ht.createElement("span",{className:dt.checkboxitem}),(Nt==null?void 0:Nt.is_answer)&&ht.createElement("i",{className:`${dt.checkboxitemyes} icon-duigou1`}),ht.createElement(lt.Z,{className:Nt!=null&&Nt.is_answer?dt.titleyes:dt.title,value:At[Ct]+(Nt==null?void 0:Nt.choice_text)}),(Nt==null?void 0:Nt.is_answer)&&ht.createElement("div",{className:dt.yestag},"\u6B63\u786E\u7B54\u6848")))),(yn==null?void 0:yn.item_type)=="COMPLETION"&&ht.createElement("div",{className:dt.completion},(sn=yn==null?void 0:yn.standard_answer)==null?void 0:sn.map((Nt,Ct)=>{var St;return ht.createElement("div",{style:{display:"flex"}},ht.createElement("span",{className:dt.title},"\u586B\u7A7A\u9879",Ct+1),ht.createElement("div",{className:dt.content},(St=Nt==null?void 0:Nt.answer_text)==null?void 0:St.map((Bt,Gt)=>ht.createElement("div",{className:dt.items},Bt))))})),(yn==null?void 0:yn.item_type)=="SUBJECTIVE"&&ht.createElement("div",{className:dt.simple},ht.createElement("div",{className:dt.title},"\u53C2\u8003\u7B54\u6848"),ht.createElement("div",{className:"mt10",style:{fontSize:"16px"}},(We=yn==null?void 0:yn.answer_texts)!=null&&We[0]?ht.createElement(lt.Z,{className:dt.content,value:(en=yn==null?void 0:yn.answer_texts)==null?void 0:en[0]}):ht.createElement("div",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"))))))})),(we==null?void 0:we.question_type)===8&&ht.createElement("div",null,ht.createElement(lt.Z,{disabledFill:!0,className:dt.content,showProgramFill:!0,value:yt.Base64.decode(((mi=we==null?void 0:we.program_attr)==null?void 0:mi.code)||"")})),(we==null?void 0:we.question_type)===5&&ht.createElement("div",{style:{background:"#F6F7F9",padding:"0px 20px",height:46,lineHeight:"46px",marginTop:40,display:"flex",alignItems:"center"}},ht.createElement("div",{style:{flex:1,alignItems:"center",display:"flex"}},ht.createElement("div",{style:{marginRight:30}},ht.createElement("span",{style:{marginRight:10}},"\u521B\u5EFA\u8005"),ht.createElement("span",{style:{color:"#000000"}},(we==null?void 0:we.author_name)||"- -")),ht.createElement("div",{style:{marginRight:30}},ht.createElement("span",{style:{marginRight:10}},"\u6240\u5C5E\u5355\u4F4D"),ht.createElement("span",{style:{color:"#000000"}},(we==null?void 0:we.author_school_name)||"- -")),ht.createElement("div",{style:{marginRight:30}},ht.createElement("span",{style:{marginRight:10}},"\u5B66\u4E60\u4EBA\u6570"),ht.createElement("span",{style:{color:"#000000"}},(we==null?void 0:we.study_count)||"0"))),ht.createElement("a",{className:dt.shixunbutton,href:`/shixuns/${we==null?void 0:we.identifier}/challenges?exercise=true`,target:"_blank"},ht.createElement("i",{onClick:()=>{},style:{marginRight:20},className:"iconfont icon-shixunkecheng mr5 "}),"\u5B9E\u8BAD\u8BE6\u60C5"))),((we==null?void 0:we.question_type)<=4||[6,8].includes(we==null?void 0:we.question_type))&&ht.createElement("div",{className:dt.bottom},ht.createElement("div",{className:dt.bottomitem},ht.createElement("span",{className:dt.left},"\u89E3\u6790"),ht.createElement("span",{className:dt.right},we!=null&&we.analysis?ht.createElement(lt.Z,{value:we==null?void 0:we.analysis}):ht.createElement("span",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"))),ht.createElement("div",{className:dt.bottomitem},ht.createElement("span",{className:dt.left},"\u96BE\u5EA6"),ht.createElement("span",{className:dt.right},(we==null?void 0:we.difficulty)===1?"\u7B80\u5355":(we==null?void 0:we.difficulty)===2?"\u9002\u4E2D":"\u56F0\u96BE")),ht.createElement("div",{className:dt.bottomitem},ht.createElement("span",{className:dt.left},"\u77E5\u8BC6\u70B9"),ht.createElement("span",{className:dt.right},we!=null&&we.tag_discipline?we==null?void 0:we.tag_discipline:ht.createElement("span",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~")))))},Qt=Ft(86087),$t=Ft(84287),ne=Ft(89070),_t=Ft(61485),Pe=Ft(32570),ue=Ft(16149),pe=Ft(59301),oe=Object.defineProperty,Ae=Object.defineProperties,Ie=Object.getOwnPropertyDescriptors,an=Object.getOwnPropertySymbols,Gn=Object.prototype.hasOwnProperty,bn=Object.prototype.propertyIsEnumerable,de=(we,Je,Bn)=>Je in we?oe(we,Je,{enumerable:!0,configurable:!0,writable:!0,value:Bn}):we[Je]=Bn,Wt=(we,Je)=>{for(var Bn in Je||(Je={}))Gn.call(Je,Bn)&&de(we,Bn,Je[Bn]);if(an)for(var Bn of an(Je))bn.call(Je,Bn)&&de(we,Bn,Je[Bn]);return we},xe=(we,Je)=>Ae(we,Ie(Je)),nn=(we,Je,Bn)=>new Promise((vn,zn)=>{var ae=Wn=>{try{ti(Bn.next(Wn))}catch(ii){zn(ii)}},mn=Wn=>{try{ti(Bn.throw(Wn))}catch(ii){zn(ii)}},ti=Wn=>Wn.done?vn(Wn.value):Promise.resolve(Wn.value).then(ae,mn);ti((Bn=Bn.apply(we,Je)).next())});const dn=({setScoreShow:we,ScoreShow:Je,onOk:Bn,isshixuns:vn,isloadings:zn,dispatch:ae,isIntelligentAssistant:mn=!1,ispptModal:ti=!1,newExercisePaper:Wn,shixunsDetail:ii})=>{var mi,yn,Ge;let[Ne,Zn]=(0,ht.useState)({type:"0",page:1,updated_at:"",quotes:"",item_type:null,per_page:10,courseid:"",tag_discipline_id:null,difficulty:null,keyword:null,bigmodel:mn,is_smart_plan:ti,group_id:[]}),[sn,We]=(0,ht.useState)([]),[en,Nt]=(0,ht.useState)([]),[Ct,St]=(0,ht.useState)([]),[Bt,Gt]=(0,ht.useState)([]);const[Lt,ie]=(0,ht.useState)(!1),[Ke]=Ht.default.useForm(),[ln,hn]=(0,ht.useState)(),[Jn,di]=(0,ht.useState)(!1);let[fi,pi]=(0,ht.useState)(vn);const[Bi,qi]=(0,ht.useState)([]),[Qi,Ao]=(0,ht.useState)(0),[Mo,Ti]=(0,ht.useState)(!0),[Ui,so]=(0,ht.useState)([]),[mo,xi]=(0,ht.useState)([]),ho=[{name:"\u5168\u90E8",value:"",question_type:0},{name:"\u5355\u9009\u9898",value:"SINGLE",question_type:0},{name:"\u591A\u9009\u9898",value:"MULTIPLE",question_type:1},{name:"\u5224\u65AD\u9898",value:"JUDGMENT",question_type:2},{name:"\u586B\u7A7A\u9898",value:"COMPLETION",question_type:3},{name:"\u7B80\u7B54\u9898",value:"SUBJECTIVE",question_type:4},{name:"\u5B9E\u8BAD\u9898",value:"SHIXUN",question_type:5},{name:"\u7F16\u7A0B\u9898",value:"PROGRAM",question_type:6},{name:"\u7EC4\u5408\u9898",value:"COMBINATION",question_type:7},{name:"\u7A0B\u5E8F\u586B\u7A7A\u9898",value:"BPROGRAM",question_type:8}],pn=[{name:"\u5168\u90E8",value:"",question_type:0},{name:"\u5355\u9009\u9898",value:"SINGLE",question_type:0},{name:"\u591A\u9009\u9898",value:"MULTIPLE",question_type:1},{name:"\u7F16\u7A0B\u9898",value:"PROGRAM",question_type:6}];let[wt,Li]=(0,ht.useState)({gg:{type:"1",page:1,updated_at:"",quotes:"",item_type:null,courseid:"",per_page:10,tag_discipline_id:null,difficulty:null,keyword:null},ttgx:{type:"3",page:1,updated_at:"",quotes:"",item_type:null,per_page:10,courseid:"",tag_discipline_id:null,difficulty:null,keyword:null,group_id:[]},scj:{type:"2",page:1,updated_at:"",quotes:"",item_type:null,per_page:10,courseid:"",tag_discipline_id:null,difficulty:null,keyword:null},wcjd:{type:"0",page:1,updated_at:"",quotes:"",item_type:null,per_page:10,courseid:"",tag_discipline_id:null,difficulty:null,keyword:null,group_id:[]},yx:{type:"5",page:1,updated_at:"",quotes:"",item_type:null,per_page:10,courseid:"",tag_discipline_id:null,difficulty:null,keyword:null,group_id:null}});const ui=(0,ht.useRef)(new Set),Ce=(0,ht.useRef)(new Set),xn=[{name:"\u7B80\u5355",value:1},{name:"\u9002\u4E2D",value:2},{name:"\u56F0\u96BE",value:3}],wn=[{name:"\u521D\u7EA7",value:1},{name:"\u4E2D\u7EA7",value:2},{name:"\u4E2D\u9AD8\u7EA7",value:3},{name:"\u9AD8\u7EA7",value:4}],Kn=[{name:"\u672A\u53D1\u5E03",value:"unpublish"},{name:"\u9759\u9ED8\u53D1\u5E03",value:"silent_publish"},{name:"\u516C\u5F00\u53D1\u5E03",value:"public_publish"}],[Ue,qe]=(0,ht.useState)(!1),le=()=>{Ke.resetFields(),fi=!1,pi(!1),qe(!1),Ke.submit()};(0,ht.useEffect)(()=>{var zt,Fe,Dn,On,Te,Ve,Vn,li,oi,Rn;(((Dn=(Fe=(zt=Wn==null?void 0:Wn.editData)==null?void 0:zt.exercise)==null?void 0:Fe.exist_item_bank_ids)==null?void 0:Dn.length)>0||((Ve=(Te=(On=Wn==null?void 0:Wn.editData)==null?void 0:On.exercise)==null?void 0:Te.exist_item_bank_shixun_ids)==null?void 0:Ve.length)>0)&&xi([...(li=(Vn=Wn==null?void 0:Wn.editData)==null?void 0:Vn.exercise)==null?void 0:li.exist_item_bank_ids,...(Rn=(oi=Wn==null?void 0:Wn.editData)==null?void 0:oi.exercise)==null?void 0:Rn.exist_item_bank_shixun_ids])},[(yn=(mi=Wn==null?void 0:Wn.editData)==null?void 0:mi.exercise)==null?void 0:yn.exist_item_bank_ids]),(0,ht.useEffect)(()=>{Je&&(Ke.setFieldsValue({item_type:"",courseid:"",tag_discipline_id:null,difficulty:null,keyword:null}),Mo&&fi&&(Ke.setFieldsValue({item_type:"SHIXUN"}),Ne.item_type="SHIXUN",Zn(Wt({},Ne)),Ti(!1)),re(Ne),qt(),Ze({group_id:0,page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",type:"0"}))},[Je]),(0,ht.useEffect)(()=>{Qi>0&&setTimeout(()=>{Ao(0)},2e3)},[Qi]);function re(zt){return nn(this,null,function*(){var Fe,Dn,On;if(ie(!0),Zn(Wt({},zt)),(Ct==null?void 0:Ct.length)<=0&&zt.type==="5"){Gt([]),ie(!1);return}console.log("----",Ct,Bi);let Te=zt.type==="5"?Ct==null?void 0:Ct.filter(li=>!Bi.includes(li)):null,Ve=zt.type==="5"?Ct==null?void 0:Ct.filter(li=>Bi.includes(li)):null,Vn=yield(0,kt.ZP)("/api/item_banks.json",{method:"get",params:xe(Wt({},zt),{discipline_id:((Fe=zt==null?void 0:zt.courseid)==null?void 0:Fe[0])||null,sub_discipline_id:((Dn=zt==null?void 0:zt.courseid)==null?void 0:Dn[1])||null,ids:Te,shixun_ids:Ve,include_shixuns:!mn,group_id:((On=zt.group_id)==null?void 0:On.map(li=>li==null?void 0:li.value))||null,keyword:zt.keyword?encodeURIComponent(zt.keyword):zt.keyword,type:zt.type==="5"?null:zt.type,clazz:zt.type==="3"?"ItemBanksGroup":null,bigmodel:mn,is_smart_plan:ti})});Gt(Vn),ie(!1)})}function qt(){return nn(this,null,function*(){let zt=yield(0,kt.ZP)("/api/disciplines.json",{method:"get",params:{source:"question",group_id:0,group_type:Ne.type==="5"?null:Ne.type,clazz:"ItemBanksGroup"}});We((0,nt.L)(zt==null?void 0:zt.disciplines))})}function Ze(zt){return nn(this,null,function*(){var Fe;let Dn=yield(0,kt.ZP)("/api/item_banks_groups/for_problemset.json",{method:"post",body:zt}),On=[{title:"\u6839\u76EE\u5F55",id:0,pid:0,value:0,key:0,isLeaf:!1,children:(Fe=Dn==null?void 0:Dn.data)==null?void 0:Fe.map(Te=>({title:Te.name,id:Te.id,pid:Te.id,value:Te.id,key:Te.id,isLeaf:!Te.have_child}))}];so(On)})}function An(zt){return nn(this,null,function*(){var Fe,Dn,On,Te;ie(!0);let Ve=(Fe=zt.list)==null?void 0:Fe.filter(oi=>!Bi.includes(oi)),Vn=(Dn=zt.list)==null?void 0:Dn.filter(oi=>Bi.includes(oi));if(Ve.length===0&&Vn.length===0){ie(!1),Gt([]);return}let li=yield(0,kt.ZP)("/api/item_banks.json",{method:"get",params:xe(Wt({},zt),{discipline_id:((On=zt==null?void 0:zt.courseid)==null?void 0:On[0])||null,sub_discipline_id:((Te=zt==null?void 0:zt.courseid)==null?void 0:Te[1])||null,ids:Ve,shixun_ids:Vn,type:zt.type==="5"?null:zt.type,clazz:zt.type==="3"?"ItemBanksGroup":null})});ie(!1),Gt(li)})}const Ln=zt=>nn(void 0,null,function*(){const Fe=yield ae({type:"shixunsDetail/release",payload:{id:zt}});let Dn=Fe==null?void 0:Fe.tag_position,On=(Fe==null?void 0:Fe.evaluation_set_position)||[],Te=Fe.status;return Te===0?(fe.ZP.success("\u53D1\u5E03\u6210\u529F"),re(Ne),!0):(Te===2?fe.ZP.error(`\u7B2C${On.join(",")}\u5173\u5C1A\u672A\u5B8C\u6210\uFF0C\u65E0\u6CD5\u7533\u8BF7\u53D1\u5E03`):Te===3?fe.ZP.error(`\u6BCF\u4E00\u4E2A\u5173\u5361\u81F3\u5C11\u9700\u8981\u4E00\u4E2A\u6280\u80FD\u6807\u7B7E, \u7B2C${Dn.join(",")}\u5173\u5C1A\u672A\u8BBE\u7F6E\u6280\u80FD\u6807\u7B7E\uFF0C\u8BF7\u8865\u5145`):fe.ZP.error("\u5C1A\u672A\u521B\u5EFA\u4EFB\u52A1\u7684\u5B9E\u8BAD\uFF0C\u4E0D\u80FD\u7533\u8BF7\u53D1\u5E03"),!1)}),Be=zt=>(zt==null?void 0:zt.shixun_tag_num)===1?"\u672A\u53D1\u5E03\u7684\u5B9E\u8DF5\u9879\u76EE\u4E0D\u80FD\u88AB\u9009\u7528\uFF0C\u8BF7\u5148\u8FDB\u884C\u53D1\u5E03":"",un=(zt,Fe,Dn)=>zt.map(On=>On.key===Fe?Wt(Wt({},On),Dn):On.children?xe(Wt({},On),{children:un(On.children,Fe,Dn)}):On),Qn=zt=>nn(void 0,null,function*(){const{key:Fe}=zt;let Dn=Ne.type;const On=yield(0,ue.ex)({page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",group_id:Math.abs(Fe),type:Dn}),{data:Te,total_count:Ve}=On||{};Ve>0&&so(Vn=>un(Vn,Fe,{children:Te.map(li=>({title:li.name,id:li.id,pid:li.id,value:li.id,key:li.id,isLeaf:!li.have_child}))}))});function Nn(zt){console.log("----",Ne),zt==="1"&&(wt.gg=Wt({},Ne)),zt==="2"&&(wt.scj=Wt({},Ne)),zt==="3"&&(wt.ttgx=Wt({},Ne)),zt==="0"&&(wt.wcjd=Wt({},Ne)),zt==="5"&&(wt.yx=Wt({},Ne)),Li(Wt({},wt))}function ai(){Ne.type==="1"&&(Ne=wt.gg),Ne.type==="2"&&(Ne=wt.scj),Ne.type==="3"&&(Ne=wt.ttgx),Ne.type==="0"&&(Ne=wt.wcjd),Ne.type==="5"&&(Ne=wt.yx),(Ne==null?void 0:Ne.item_type)==="SHIXUN"?(fi=!0,pi(!0)):(fi=!1,pi(!1)),Ke.setFieldsValue(Wt({},Ne)),Zn(Wt({},Ne)),re(Wt({},Ne))}return pe.createElement("div",null,pe.createElement(Re.default,{title:!1,footer:!1,open:Je,width:1200,centered:!0,className:et.scoremodal,onCancel:()=>{we(!1)}},pe.createElement("div",{style:{display:"flex",alignItems:"center"}},pe.createElement("div",{className:et.title},mn?"\u4EE5\u9898\u6362\u9898":"\u9898\u5E93\u9009\u9898")),mn&&pe.createElement("div",{style:{padding:10,background:"#F6F7F9",borderRadius:4,marginTop:14}},"\u6839\u636E\u73B0\u6709\u8BD5\u9898\u7684\u9898\u578B\u3001\u65B9\u5411\u3001\u77E5\u8BC6\u70B9\u3001\u96BE\u6613\u5EA6\uFF0C\u5FEB\u901F\u751F\u6210\u65B0\u7684\u8BD5\u9898\uFF0C\u589E\u52A0\u8BD5\u9898\u7684\u4E30\u5BCC\u5EA6"),pe.createElement(Se.default,{className:et.tabWrap,activeKey:Ne.type,onChange:zt=>{zt==="3"?(Ne.show_all_share=!0,Ze({group_id:0,page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",type:"3"})):Ne.show_all_share=null,zt==="0"&&Ze({group_id:0,page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",type:"0"}),Nn(Ne.type),Ne.type=zt,(Ne==null?void 0:Ne.item_type)==="SHIXUN"&&Ne.type!=="5"&&(fi=!0,pi(!0)),qe(!1),Ne.type==="5"&&(fi=!1,pi(!1)),ai(),qt()},items:[{label:"\u516C\u5171",key:"1"},{label:"\u56E2\u961F\u5171\u4EAB",key:"3"},{label:"\u6536\u85CF\u5939",key:"2"},{label:"\u6211\u521B\u5EFA\u7684",key:"0"},{label:pe.createElement("div",null,"\u5DF2\u9009",Ct.length>0&&pe.createElement("span",{className:et.titlecount},Ct.length),Qi>0&&pe.createElement("span",{className:et.add},"+",Qi)),key:"5"}]}),pe.createElement(Ht.default,{layout:"inline",form:Ke,onValuesChange:(zt,Fe)=>{const Dn=Object.values(Fe).some(Te=>Te!==null&&Te!==""&&Te!==void 0),On=Fe.keyword==="";if(qe(Dn||!On),Ne.page=1,(Fe==null?void 0:Fe.item_type)==="SHIXUN"){if(Ne.type==="5"?pi(!1):pi(!0),zt.keyword||zt.keyword==="")return;Ke.submit()}else{if(zt!=null&&zt.courseid&&Ke.setFieldsValue({tag_discipline_id:""}),pi(!1),zt.keyword||zt.keyword==="")return;Ke.submit()}},onFinish:zt=>{var Fe;Ne.type==="3"&&(!zt.group_id||((Fe=zt==null?void 0:zt.group_id)==null?void 0:Fe.length)===0)?Ne.show_all_share=!0:Ne.show_all_share=null,Zn(Wt(Wt({},Ne),zt)),re(Wt(Wt({},Ne),zt))}},pe.createElement(Ht.default.Item,{name:"item_type"},pe.createElement(Me.default,{className:et.selectWrapper,placeholder:"\u9898\u578B",style:{width:110},size:"middle"},(ti?pn:mn?ho==null?void 0:ho.filter(zt=>zt.question_type!==5):ho).map(zt=>pe.createElement(Me.default.Option,{key:zt.value},zt.name)))),pe.createElement(Ht.default.Item,{name:"courseid"},pe.createElement(Jt.Z,{className:et.selectWrapper,style:{width:160},size:"middle",placeholder:"\u65B9\u5411&\u8BFE\u7A0B",options:sn})),!fi&&pe.createElement(Ht.default.Item,{name:"tag_discipline_id"},pe.createElement(Me.default,{className:et.selectWrapper,placeholder:"\u77E5\u8BC6\u70B9",style:{width:160},size:"middle",allowClear:!0},(Ge=Bt==null?void 0:Bt.tag_disciplines)==null?void 0:Ge.map(zt=>pe.createElement(Me.default.Option,{key:zt.id},zt.name)))),pe.createElement(Ht.default.Item,{name:fi?"diff":"difficulty"},pe.createElement(Me.default,{className:et.selectWrapper,placeholder:"\u96BE\u5EA6",style:{width:118},size:"middle",allowClear:!0},!fi&&xn.map(zt=>pe.createElement(Me.default.Option,{key:zt.value},zt.name)),fi&&wn.map(zt=>pe.createElement(Me.default.Option,{key:zt.value},zt.name)))),fi&&pe.createElement(Ht.default.Item,{name:"shixun_publish_status"},pe.createElement(Me.default,{className:et.selectWrapper,placeholder:"\u5168\u90E8\u72B6\u6001",style:{width:118},size:"middle",allowClear:!0},Kn.map(zt=>pe.createElement(Me.default.Option,{key:zt.value},zt.name)))),(Ne.type==="3"||Ne.type==="0")&&!fi&&pe.createElement(Ht.default.Item,{name:"group_id"},pe.createElement(Le.default,{treeDataSimpleMode:!0,style:{width:118},className:et.selectWrappers,multiple:!0,allowClear:!0,showSearch:!0,filterTreeNode:(zt,Fe)=>Fe.title.toUpperCase().indexOf(zt.toUpperCase())!==-1,dropdownStyle:{maxHeight:400,width:500,overflow:"auto"},placeholder:"\u8BF7\u9009\u62E9\u6587\u4EF6\u5939",treeCheckStrictly:!0,loadData:Qn,treeDefaultExpandedKeys:[0],maxTagCount:0,treeCheckable:!0,treeData:Ui})),Ue&&pe.createElement("span",{className:et.allqingchu,onClick:le},pe.createElement("i",{className:"iconfont icon-guanbi4"}),pe.createElement("span",null,"\u6E05\u9664\u7B5B\u9009\u6761\u4EF6")),pe.createElement(Ht.default.Item,{style:{flex:"0 0 auto",marginRight:0,marginLeft:"auto"},name:"keyword"},pe.createElement(ce.default.Search,{className:et.search,placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u641C\u7D22",allowClear:!0,suffix:pe.createElement("i",{className:`iconfont icon-sousuo9 font14 ${et.searchIcon}`,onClick:()=>Ke.submit()}),onSearch:zt=>{Ke.submit()}}))),pe.createElement("div",{style:{background:"#F6F7F9",display:"flex",alignItems:"center",marginTop:18,height:40,paddingLeft:10,paddingRight:20}},pe.createElement("div",{onClick:()=>{Ne.updated_at==="asc"?Ne.updated_at="desc":Ne.updated_at="asc",Zn(xe(Wt({},Ne),{page:1})),re(xe(Wt({},Ne),{page:1}))}}," ",Ne.updated_at?pe.createElement("img",{src:Ne.updated_at==="asc"?Qt.Z:$t.Z,style:{width:"15px",verticalAlign:"text-bottom"},className:"font14 mr5 c-light-primary"}):pe.createElement("i",{style:{fontSize:"14px"},className:"iconfont icon-jiangxu mr5 c-light-primary"}),"\u6309\u66F4\u65B0\u65F6\u95F4\u6392\u5E8F"),pe.createElement("div",{onClick:()=>{Ne.quotes==="asc"?Ne.quotes="desc":Ne.quotes="asc",Zn(xe(Wt({},Ne),{page:1})),re(xe(Wt({},Ne),{page:1}))},style:{marginLeft:20}}," ",Ne.quotes?pe.createElement("img",{src:Ne.quotes==="asc"?Qt.Z:$t.Z,style:{width:"15px",verticalAlign:"text-bottom"},className:"font14 mr5 c-light-primary"}):pe.createElement("i",{style:{fontSize:"14px"},className:"iconfont icon-jiangxu mr5 c-light-primary"}),"\u6309\u4F7F\u7528\u6B21\u6570\u6392\u5E8F")),pe.createElement(ve.default,{style:{marginTop:2,marginBottom:20},scroll:{y:260},dataSource:(Bt==null?void 0:Bt.items)||(Bt==null?void 0:Bt.shixun_list),pagination:!1,loading:Lt,rowKey:zt=>zt.id,rowSelection:{type:mn||ti?"radio":"checkbox",selectedRowKeys:en,getCheckboxProps:zt=>({disabled:zt.shixun_tag_num===1||(mo==null?void 0:mo.find(Fe=>zt.id===Fe))}),onSelect(zt,Fe,Dn){if(mn||ti){Nt([zt.id]),Ce.current=new Set([zt.id]),Ao(1),St([zt.id]);return}if(Fe)fi&&qi([...Bi,zt.id]),Nt([...en,zt.id]),zt.identifier?ui.current.add(zt.id):Ce.current.add(zt.id),Ao(1),St([...Ct,zt.id]);else{zt.identifier?ui.current.delete(zt.id):Ce.current.delete(zt.id);let On=Ct.filter(Te=>Te!==zt.id);if(Nt(On),St(On),fi){let Te=Bi.filter(Ve=>Ve!==zt.id);qi([...Te])}if(Ne.type==="5"){An(xe(Wt({},Ne),{list:[...On]}));return}}},onSelectAll(zt,Fe,Dn){if(zt){const On=Dn.map(Te=>Te.id);fi&&qi([...Bi,...On]),Nt([...en,...On]),St([...Ct,...On]);for(const Te of Dn)Te.identifier?ui.current.add(Te.id):Ce.current.add(Te.id)}else{const On=Dn.map(Ve=>Ve.id),Te=en.filter(Ve=>!On.some(Vn=>Vn===Ve));if(Nt([...Te]),St([...Te]),fi){let Ve=Bi.filter(Vn=>!On.some(li=>li===Vn.id));qi([...Ve])}Ne.type==="5"&&An(xe(Wt({},Ne),{list:[...Te]}));for(const Ve of On)Ve.identifier?ui.current.delete(Ve):Ce.current.delete(Ve)}}},columns:[{title:"\u9898\u578B",dataIndex:"item_type",key:"item_type",render:(zt,Fe,Dn)=>{var On,Te;return pe.createElement(he.Z,{title:Be(Fe)},pe.createElement("div",null,fi||Fe!=null&&Fe.challenge_names?"\u5B9E\u8BAD\u9898":(Te=(On=ho==null?void 0:ho.filter(Ve=>Ve.value===zt))==null?void 0:On[0])==null?void 0:Te.name))}},{title:"\u8BD5\u9898\u540D\u79F0",dataIndex:"name",width:fi?"30%":"60%",key:"name",render:(zt,Fe,Dn)=>{var On;return pe.createElement("div",{style:{display:"flex",alignItems:"center"}},pe.createElement(he.Z,{title:Be(Fe)},pe.createElement("div",{className:Fe!=null&&Fe.high_resources_consume?et.q_title:""},pe.createElement(lt.Z,{key:1,showLines:1,showTextOnly:!0,value:fi||Fe!=null&&Fe.challenge_names?Fe!=null&&Fe.title||zt===null?"--":zt:(Fe==null?void 0:Fe.item_type)=="BPROGRAM"?(On=Fe==null?void 0:Fe.program_attr)==null?void 0:On.description:zt}))),(Fe==null?void 0:Fe.high_resources_consume)&&pe.createElement(Pe.Z,{type:"shixun",style:{marginLeft:10}}))}},{title:"\u521B\u5EFA\u8005",dataIndex:"author_name",key:"author_name",hidden:!fi,render:(zt,Fe,Dn)=>{var On;return pe.createElement(he.Z,{title:Be(Fe)},pe.createElement("span",null,zt?(On=zt==null?void 0:zt.split("\u3001"))==null?void 0:On[0]:"- -"))}},{title:"\u6240\u5C5E\u5355\u4F4D",dataIndex:"author_school_name",key:"author_school_name",hidden:!fi,render:(zt,Fe,Dn)=>pe.createElement(he.Z,{title:Be(Fe)},pe.createElement("span",null,zt||"- -"))},{title:"\u96BE\u5EA6",dataIndex:"difficulty",key:"difficulty",render:(zt,Fe,Dn)=>{var On,Te,Ve,Vn;return pe.createElement(he.Z,{title:Be(Fe)},pe.createElement("div",null,fi||Fe!=null&&Fe.challenge_names?(Fe==null?void 0:Fe.level)||((Te=(On=xn==null?void 0:xn.filter(li=>li.value===zt))==null?void 0:On[0])==null?void 0:Te.name):(Vn=(Ve=xn==null?void 0:xn.filter(li=>li.value===zt))==null?void 0:Ve[0])==null?void 0:Vn.name))}},{title:"\u5173\u5361\u6570\u91CF",dataIndex:"challenges_count",key:"challenges_count",hidden:!fi,render:(zt,Fe,Dn)=>pe.createElement(he.Z,{title:Be(Fe)},pe.createElement("div",null,zt||"- -"))},{title:"\u4F7F\u7528\u6B21\u6570",dataIndex:"quotes",key:"quotes",render:(zt,Fe,Dn)=>pe.createElement(he.Z,{title:Be(Fe)},pe.createElement("div",null,fi||Fe!=null&&Fe.challenge_names?(Fe==null?void 0:Fe.study_count)||(Fe==null?void 0:Fe.stu_num):zt))},{title:pe.createElement("span",null,"\u53D1\u5E03\u72B6\u6001 ",pe.createElement(he.Z,{title:"\u672A\u53D1\u5E03\u7684\u5B9E\u8DF5\u9879\u76EE\u4E0D\u80FD\u88AB\u9009\u7528"},pe.createElement(_t.Z,null))),dataIndex:"shixun_tag_num_name",key:"shixun_tag_num_name",hidden:!fi,render:(zt,Fe,Dn)=>pe.createElement(he.Z,{title:Be(Fe)},pe.createElement("div",null,zt||"- -"))},{title:"\u64CD\u4F5C",dataIndex:"id",key:"item_type",render:(zt,Fe,Dn)=>pe.createElement(he.Z,{title:Be(Fe)},pe.createElement("div",{style:{flex:1,textAlign:"start"}},pe.createElement("a",{onClick:()=>{var On,Te;hn(xe(Wt({},Fe),{question_type:fi||Fe!=null&&Fe.challenge_names?5:(Te=(On=ho==null?void 0:ho.filter(Ve=>Ve.value===(Fe==null?void 0:Fe.item_type)))==null?void 0:On[0])==null?void 0:Te.question_type})),di(!0)}},"\u67E5\u770B"),(Fe==null?void 0:Fe.shixun_tag_num)===1&&pe.createElement("a",{style:{marginLeft:10},onClick:()=>{Re.default.confirm({title:"\u63D0\u793A",icon:null,centered:!0,width:400,content:pe.createElement("div",null,"\u662F\u5426\u786E\u5B9A\u53D1\u5E03",pe.createElement("span",{style:{cursor:"pointer",color:"#3061D0"},onClick:()=>{window.open(`/shixuns/${Fe==null?void 0:Fe.identifier}/challenges`)}},(Fe==null?void 0:Fe.shixun_name)||"--"),"\uFF1F"),onOk:()=>nn(void 0,null,function*(){if(!Ln(Fe==null?void 0:Fe.identifier))return new Promise((On,Te)=>{Te()})})})}},"\u53D1\u5E03")))}].filter(zt=>!zt.hidden)}),pe.createElement(Oe.Z,{current:Ne.page,total:(Bt==null?void 0:Bt.items_count)||(Bt==null?void 0:Bt.shixuns_count),style:{marginBottom:20},defaultPageSize:Ne.per_page,showTotal:zt=>pe.createElement("span",null,"\u5171\xA0",pe.createElement("span",{style:{color:"#165DFF"}},zt),"\xA0\u6761\u6570\u636E"),pageSize:Ne.per_page,onChange:(zt,Fe)=>{Ne.page=zt,Ne.per_page=Fe,Zn(Wt({},Ne)),re(Wt({},Ne))}}),pe.createElement("div",{className:et.bottom},pe.createElement(je.ZP,{className:et.no,onClick:()=>{we(!1)}},"\u53D6\u6D88"),pe.createElement(je.ZP,{loading:zn,style:{width:zn&&75},className:et.yes,onClick:()=>nn(void 0,null,function*(){if((Ct==null?void 0:Ct.length)<=0){fe.ZP.info(mn||ti?"\u8BF7\u9009\u62E9\u4E00\u9053\u8BD5\u9898":"\u5F53\u524D\u6682\u672A\u9009\u62E9\u6570\u636E");return}Bn([...Ce.current],[...ui.current],!0,Ct==null?void 0:Ct.length)})},mn?"\u5F00\u59CB\u6362\u9898":"\u786E\u8BA4"))),pe.createElement(Re.default,{open:Jn,title:"\u9898\u76EE\u8BE6\u60C5",footer:!1,className:et.previewModal,width:1e3,centered:!0,onCancel:()=>{di(!1)},onOk:()=>{di(!1)}},pe.createElement(Ut,{qitem:ln})))};var ge=(0,ne.connect)(({shixunsDetail:we,newExercisePaper:Je})=>({shixunsDetail:we,newExercisePaper:Je}))(dn)},24768:function(Ye,jn,Ft){"use strict";Ft.d(jn,{AL:function(){return At},Iy:function(){return he},Qv:function(){return kt},ez:function(){return yt},jb:function(){return Oe}});var ht=Ft(32834),Ht=Ft.n(ht),fe=Ft(11690),Re=Ft.n(fe);let Se=1;function Me(ne,_t){const Pe=ne.match(/^(\s+)(?:```)/);if(Pe===null)return _t;const ue=Pe[1];return _t.split(`
|
|
`).map(pe=>{const oe=pe.match(/^\s+/);if(oe===null)return pe;const[Ae]=oe;return Ae.length>=ue.length?pe.slice(ue.length):pe}).join(`
|
|
`)}let Jt=[],Le=["<ul>"];const ce=new(Ht()).Renderer,ve=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function he(){Jt.length=0,Le=["<ul>"]}const Oe={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function je(ne,_t,Pe,ue){if(_t>=ne.length||ne[_t].level<=Pe)return _t;var pe=ne[_t];ue.push("<li><a href='#"+Se+pe.anchor+"'>"+pe.text+"</a>"),_t++;var oe=[];return _t=je(ne,_t,pe.level,oe),oe.length>0&&(ue.push("<ul>"),oe.forEach(function(Ae){ue.push(Ae)}),ue.push("</ul>")),ue.push("</li>"),_t=je(ne,_t,Pe,ue),_t}function kt(){return je(Jt,0,0,Le),Le.push("</ul>"),Le.join("")}const et={heading(ne){const _t=ve.exec(ne);if(Se+=1,_t)return{type:"heading",raw:_t[0],depth:_t[1].length,text:_t[2]}},fences(ne){const _t=this.rules.block.fences.exec(ne);if(_t){const Pe=_t[0];let ue=Me(Pe,_t[3]||"");const pe=_t[2]?_t[2].trim():_t[2];if(["latex","katex","math"].indexOf(pe)>=0){const oe=lt(),Ae=ue;ue=oe,pt[oe]={type:"block",expression:Ae}}return{type:"code",raw:Pe,lang:pe,text:ue}}}},nt=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let dt=0;const lt=()=>`__special_katext_id_${dt++}__`;let pt={};function yt(){return pt}function At(){dt=0,pt={}}function Dt(ne){return ne=ne.replace(nt,(_t,Pe)=>{const ue=lt();return pt[ue]={type:"inline",expression:Pe},ue}),ne}const Ut=ce.listitem;ce.listitem=function(ne){return Ut(Dt(ne))};const Qt=ce.paragraph;ce.paragraph=function(ne){return Qt(Dt(ne))};const $t=ce.tablecell;ce.tablecell=function(ne,_t){return $t(Dt(ne),_t)},ce.code=function(ne,_t,Pe){const ue=(_t||"").match(/\S*/)[0];return ue?["latex","katex","math"].indexOf(ue)>=0?`<p class='editormd-tex'>${ne}</p>`:`<pre class="prettyprint linenums"><code class="language-${_t}">${Pe?ne:(0,fe.escape)(ne,!0)}</code></pre>
|
|
`:'<pre class="prettyprint linenums"><code>'+(Pe?ne:(0,fe.escape)(ne,!0))+"</code></pre>"},ce.heading=function(ne,_t,Pe){let ue=this.options.headerPrefix+Pe.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return Jt.push({anchor:ue,level:_t,text:ne}),"<h"+_t+' id="'+Se+ue+'">'+ne+"</h"+_t+">"},Ht().setOptions({silent:!0,gfm:!0,pedantic:!1}),Ht().use({tokenizer:et,renderer:ce}),jn.ZP=Ht()},77578:function(Ye,jn,Ft){"use strict";Ft.d(jn,{Z:function(){return ht}});const ht=Ht=>Ht?typeof Ht=="function"?Ht():Ht:null},19842:function(Ye,jn,Ft){"use strict";Ft.d(jn,{Z:function(){return ui}});var ht=Ft(80702),Ht=Ft(59301),fe=Ft(33853),Re=Ft(58617),Se=Ft(38819),Me=Ft(92310),Jt=Ft.n(Me),Le=Ft(72308),ce=Ft(52487),ve=Ft(74416),he=Ft(77861),Oe=Ft(17115),je=Ft(90782),kt=Ft(6089),et=Ft(18929),nt=Ht.createContext(null),dt=nt,lt=Ft(62853),pt=Ft(49618),yt=Ft(77321),At="__rc_cascader_search_mark__",Dt=function(xn,wn,Kn){var Ue=Kn.label;return wn.some(function(qe){return String(qe[Ue]).toLowerCase().includes(xn.toLowerCase())})},Ut=function(xn,wn,Kn,Ue){return wn.map(function(qe){return qe[Ue.label]}).join(" / ")},Qt=function(Ce,xn,wn,Kn,Ue,qe){var le=Ue.filter,re=le===void 0?Dt:le,qt=Ue.render,Ze=qt===void 0?Ut:qt,An=Ue.limit,Ln=An===void 0?50:An,Be=Ue.sort;return Ht.useMemo(function(){var un=[];if(!Ce)return[];function Qn(Nn,ai){var zt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;Nn.forEach(function(Fe){if(!(!Be&&Ln!==!1&&Ln>0&&un.length>=Ln)){var Dn=[].concat((0,ht.Z)(ai),[Fe]),On=Fe[wn.children],Te=zt||Fe.disabled;if((!On||On.length===0||qe)&&re(Ce,Dn,{label:wn.label})){var Ve;un.push((0,yt.Z)((0,yt.Z)({},Fe),{},(Ve={disabled:Te},(0,pt.Z)(Ve,wn.label,Ze(Ce,Dn,Kn,wn)),(0,pt.Z)(Ve,At,Dn),(0,pt.Z)(Ve,wn.children,void 0),Ve)))}On&&Qn(Fe[wn.children],Dn,Te)}})}return Qn(xn,[]),Be&&un.sort(function(Nn,ai){return Be(Nn[At],ai[At],Ce,wn)}),Ln!==!1&&Ln>0?un.slice(0,Ln):un},[Ce,xn,wn,Kn,Ze,qe,re,Be,Ln])},$t="__RC_CASCADER_SPLIT__",ne="SHOW_PARENT",_t="SHOW_CHILD";function Pe(Ce){return Ce.join($t)}function ue(Ce){return Ce.map(Pe)}function pe(Ce){return Ce.split($t)}function oe(Ce){var xn=Ce||{},wn=xn.label,Kn=xn.value,Ue=xn.children,qe=Kn||"value";return{label:wn||"label",value:qe,key:qe,children:Ue||"children"}}function Ae(Ce,xn){var wn,Kn;return(wn=Ce.isLeaf)!==null&&wn!==void 0?wn:!((Kn=Ce[xn.children])!==null&&Kn!==void 0&&Kn.length)}function Ie(Ce){var xn=Ce.parentElement;if(xn){var wn=Ce.offsetTop-xn.offsetTop;wn-xn.scrollTop<0?xn.scrollTo({top:wn}):wn+Ce.offsetHeight-xn.scrollTop>xn.offsetHeight&&xn.scrollTo({top:wn+Ce.offsetHeight-xn.offsetHeight})}}function an(Ce,xn){return Ce.map(function(wn){var Kn;return(Kn=wn[At])===null||Kn===void 0?void 0:Kn.map(function(Ue){return Ue[xn.value]})})}function Gn(Ce,xn,wn){var Kn=new Set(Ce),Ue=xn();return Ce.filter(function(qe){var le=Ue[qe],re=le?le.parent:null,qt=le?le.children:null;return le&&le.node.disabled?!0:wn===_t?!(qt&&qt.some(function(Ze){return Ze.key&&Kn.has(Ze.key)})):!(re&&!re.node.disabled&&Kn.has(re.key))})}function bn(Ce,xn,wn){for(var Kn=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,Ue=xn,qe=[],le=function(){var Ze,An,Ln,Be=Ce[re],un=(Ze=Ue)===null||Ze===void 0?void 0:Ze.findIndex(function(Nn){var ai=Nn[wn.value];return Kn?String(ai)===String(Be):ai===Be}),Qn=un!==-1?(An=Ue)===null||An===void 0?void 0:An[un]:null;qe.push({value:(Ln=Qn==null?void 0:Qn[wn.value])!==null&&Ln!==void 0?Ln:Be,index:un,option:Qn}),Ue=Qn==null?void 0:Qn[wn.children]},re=0;re<Ce.length;re+=1)le();return qe}var de=function(Ce,xn,wn,Kn,Ue){return Ht.useMemo(function(){var qe=Ue||function(le){var re=Kn?le.slice(-1):le,qt=" / ";return re.every(function(Ze){return["string","number"].includes((0,lt.Z)(Ze))})?re.join(qt):re.reduce(function(Ze,An,Ln){var Be=Ht.isValidElement(An)?Ht.cloneElement(An,{key:Ln}):An;return Ln===0?[Be]:[].concat((0,ht.Z)(Ze),[qt,Be])},[])};return Ce.map(function(le){var re,qt,Ze=bn(le,xn,wn),An=qe(Ze.map(function(Be){var un,Qn=Be.option,Nn=Be.value;return(un=Qn==null?void 0:Qn[wn.label])!==null&&un!==void 0?un:Nn}),Ze.map(function(Be){var un=Be.option;return un})),Ln=Pe(le);return{label:An,value:Ln,key:Ln,valueCells:le,disabled:(re=Ze[Ze.length-1])===null||re===void 0||(qt=re.option)===null||qt===void 0?void 0:qt.disabled}})},[Ce,xn,wn,Ue,Kn])},Wt=Ft(71430),xe=function(Ce,xn){var wn=Ht.useRef({options:null,info:null}),Kn=Ht.useCallback(function(){return wn.current.options!==Ce&&(wn.current.options=Ce,wn.current.info=(0,Wt.I8)(Ce,{fieldNames:xn,initWrapper:function(qe){return(0,yt.Z)((0,yt.Z)({},qe),{},{pathKeyEntities:{}})},processEntity:function(qe,le){var re=qe.nodes.map(function(qt){return qt[xn.value]}).join($t);le.pathKeyEntities[re]=qe,qe.key=re}})),wn.current.info.pathKeyEntities},[xn,Ce]);return Kn},nn=function(Ce,xn){return Ht.useCallback(function(wn){var Kn=[],Ue=[];return wn.forEach(function(qe){var le=bn(qe,Ce,xn);le.every(function(re){return re.option})?Ue.push(qe):Kn.push(qe)}),[Ue,Kn]},[Ce,xn])},dn=Ft(48736);function ge(Ce){return Ht.useMemo(function(){if(!Ce)return[!1,{}];var xn={matchInputWidth:!0,limit:50};return Ce&&(0,lt.Z)(Ce)==="object"&&(xn=(0,yt.Z)((0,yt.Z)({},xn),Ce)),xn.limit<=0&&delete xn.limit,[!0,xn]},[Ce])}var we=Ht.memo(function(Ce){var xn=Ce.children;return xn},function(Ce,xn){return!xn.open}),Je=we;function Bn(Ce){var xn,wn=Ce.prefixCls,Kn=Ce.checked,Ue=Ce.halfChecked,qe=Ce.disabled,le=Ce.onClick,re=Ce.disableCheckbox,qt=Ht.useContext(dt),Ze=qt.checkable,An=typeof Ze!="boolean"?Ze:null;return Ht.createElement("span",{className:Jt()("".concat(wn),(xn={},(0,pt.Z)(xn,"".concat(wn,"-checked"),Kn),(0,pt.Z)(xn,"".concat(wn,"-indeterminate"),!Kn&&Ue),(0,pt.Z)(xn,"".concat(wn,"-disabled"),qe||re),xn)),onClick:le},An)}var vn="__cascader_fix_label__";function zn(Ce){var xn=Ce.prefixCls,wn=Ce.multiple,Kn=Ce.options,Ue=Ce.activeValue,qe=Ce.prevValuePath,le=Ce.onToggleOpen,re=Ce.onSelect,qt=Ce.onActive,Ze=Ce.checkedSet,An=Ce.halfCheckedSet,Ln=Ce.loadingKeys,Be=Ce.isSelectable,un=Ce.searchValue,Qn="".concat(xn,"-menu"),Nn="".concat(xn,"-menu-item"),ai=Ht.useContext(dt),zt=ai.fieldNames,Fe=ai.changeOnSelect,Dn=ai.expandTrigger,On=ai.expandIcon,Te=ai.loadingIcon,Ve=ai.dropdownMenuColumnStyle,Vn=Dn==="hover",li=Ht.useMemo(function(){return Kn.map(function(oi){var Rn,qn=oi.disabled,si=oi.disableCheckbox,Xi=oi[At],Ii=(Rn=oi[vn])!==null&&Rn!==void 0?Rn:oi[zt.label],ji=oi[zt.value],Qe=Ae(oi,zt),ao=Xi?Xi.map(function(ci){return ci[zt.value]}):[].concat((0,ht.Z)(qe),[ji]),Oi=Pe(ao),Ci=Ln.includes(Oi),De=Ze.has(Oi),En=An.has(Oi);return{disabled:qn,label:Ii,value:ji,isLeaf:Qe,isLoading:Ci,checked:De,halfChecked:En,option:oi,disableCheckbox:si,fullPath:ao,fullPathKey:Oi}})},[Kn,Ze,zt,An,Ln,qe]);return Ht.createElement("ul",{className:Qn,role:"menu"},li.map(function(oi){var Rn,qn=oi.disabled,si=oi.label,Xi=oi.value,Ii=oi.isLeaf,ji=oi.isLoading,Qe=oi.checked,ao=oi.halfChecked,Oi=oi.option,Ci=oi.fullPath,De=oi.fullPathKey,En=oi.disableCheckbox,ci=function(){if(!(qn||un)){var _i=(0,ht.Z)(Ci);Vn&&Ii&&_i.pop(),qt(_i)}},Pi=function(){Be(Oi)&&re(Ci,Ii)},_n;return typeof Oi.title=="string"?_n=Oi.title:typeof si=="string"&&(_n=si),Ht.createElement("li",{key:De,className:Jt()(Nn,(Rn={},(0,pt.Z)(Rn,"".concat(Nn,"-expand"),!Ii),(0,pt.Z)(Rn,"".concat(Nn,"-active"),Ue===Xi||Ue===De),(0,pt.Z)(Rn,"".concat(Nn,"-disabled"),qn),(0,pt.Z)(Rn,"".concat(Nn,"-loading"),ji),Rn)),style:Ve,role:"menuitemcheckbox",title:_n,"aria-checked":Qe,"data-path-key":De,onClick:function(){ci(),!En&&(!wn||Ii)&&Pi()},onDoubleClick:function(){Fe&&le(!1)},onMouseEnter:function(){Vn&&ci()},onMouseDown:function(_i){_i.preventDefault()}},wn&&Ht.createElement(Bn,{prefixCls:"".concat(xn,"-checkbox"),checked:Qe,halfChecked:ao,disabled:qn||En,disableCheckbox:En,onClick:function(_i){En||(_i.stopPropagation(),Pi())}}),Ht.createElement("div",{className:"".concat(Nn,"-content")},si),!ji&&On&&!Ii&&Ht.createElement("div",{className:"".concat(Nn,"-expand-icon")},On),ji&&Te&&Ht.createElement("div",{className:"".concat(Nn,"-loading-icon")},Te))}))}var ae=function(){var Ce=(0,he.lk)(),xn=Ce.multiple,wn=Ce.open,Kn=Ht.useContext(dt),Ue=Kn.values,qe=Ht.useState([]),le=(0,ce.Z)(qe,2),re=le[0],qt=le[1];return Ht.useEffect(function(){if(wn&&!xn){var Ze=Ue[0];qt(Ze||[])}},[wn]),[re,qt]},mn=Ft(10228),ti=function(Ce,xn,wn,Kn,Ue,qe){var le=(0,he.lk)(),re=le.direction,qt=le.searchValue,Ze=le.toggleOpen,An=le.open,Ln=re==="rtl",Be=Ht.useMemo(function(){for(var Ve=-1,Vn=xn,li=[],oi=[],Rn=Kn.length,qn=an(xn,wn),si=function(Oi){var Ci=Vn.findIndex(function(De,En){return(qn[En]?Pe(qn[En]):De[wn.value])===Kn[Oi]});if(Ci===-1)return"break";Ve=Ci,li.push(Ve),oi.push(Kn[Oi]),Vn=Vn[Ve][wn.children]},Xi=0;Xi<Rn&&Vn;Xi+=1){var Ii=si(Xi);if(Ii==="break")break}for(var ji=xn,Qe=0;Qe<li.length-1;Qe+=1)ji=ji[li[Qe]][wn.children];return[oi,Ve,ji,qn]},[Kn,wn,xn]),un=(0,ce.Z)(Be,4),Qn=un[0],Nn=un[1],ai=un[2],zt=un[3],Fe=function(Vn){Ue(Vn)},Dn=function(Vn){var li=ai.length,oi=Nn;oi===-1&&Vn<0&&(oi=li);for(var Rn=0;Rn<li;Rn+=1){oi=(oi+Vn+li)%li;var qn=ai[oi];if(qn&&!qn.disabled){var si=Qn.slice(0,-1).concat(zt[oi]?Pe(zt[oi]):qn[wn.value]);Fe(si);return}}},On=function(){if(Qn.length>1){var Vn=Qn.slice(0,-1);Fe(Vn)}else Ze(!1)},Te=function(){var Vn,li=((Vn=ai[Nn])===null||Vn===void 0?void 0:Vn[wn.children])||[],oi=li.find(function(qn){return!qn.disabled});if(oi){var Rn=[].concat((0,ht.Z)(Qn),[oi[wn.value]]);Fe(Rn)}};Ht.useImperativeHandle(Ce,function(){return{onKeyDown:function(Vn){var li=Vn.which;switch(li){case mn.Z.UP:case mn.Z.DOWN:{var oi=0;li===mn.Z.UP?oi=-1:li===mn.Z.DOWN&&(oi=1),oi!==0&&Dn(oi);break}case mn.Z.LEFT:{if(qt)break;Ln?Te():On();break}case mn.Z.RIGHT:{if(qt)break;Ln?On():Te();break}case mn.Z.BACKSPACE:{qt||On();break}case mn.Z.ENTER:{if(Qn.length){var Rn=ai[Nn],qn=(Rn==null?void 0:Rn[At])||[];qn.length?qe(qn.map(function(si){return si[wn.value]}),qn[qn.length-1]):qe(Qn,ai[Nn])}break}case mn.Z.ESC:Ze(!1),An&&Vn.stopPropagation()}},onKeyUp:function(){}}})},Wn=Ht.forwardRef(function(Ce,xn){var wn,Kn,Ue,qe,le=(0,he.lk)(),re=le.prefixCls,qt=le.multiple,Ze=le.searchValue,An=le.toggleOpen,Ln=le.notFoundContent,Be=le.direction,un=le.open,Qn=Ht.useRef(),Nn=Be==="rtl",ai=Ht.useContext(dt),zt=ai.options,Fe=ai.values,Dn=ai.halfValues,On=ai.fieldNames,Te=ai.changeOnSelect,Ve=ai.onSelect,Vn=ai.searchOptions,li=ai.dropdownPrefixCls,oi=ai.loadData,Rn=ai.expandTrigger,qn=li||re,si=Ht.useState([]),Xi=(0,ce.Z)(si,2),Ii=Xi[0],ji=Xi[1],Qe=function(to){if(!(!oi||Ze)){var Bo=bn(to,zt,On),co=Bo.map(function(Lo){var fo=Lo.option;return fo}),Hi=co[co.length-1];if(Hi&&!Ae(Hi,On)){var wo=Pe(to);ji(function(Lo){return[].concat((0,ht.Z)(Lo),[wo])}),oi(co)}}};Ht.useEffect(function(){Ii.length&&Ii.forEach(function(Co){var to=pe(Co),Bo=bn(to,zt,On,!0).map(function(Hi){var wo=Hi.option;return wo}),co=Bo[Bo.length-1];(!co||co[On.children]||Ae(co,On))&&ji(function(Hi){return Hi.filter(function(wo){return wo!==Co})})})},[zt,Ii,On]);var ao=Ht.useMemo(function(){return new Set(ue(Fe))},[Fe]),Oi=Ht.useMemo(function(){return new Set(ue(Dn))},[Dn]),Ci=ae(),De=(0,ce.Z)(Ci,2),En=De[0],ci=De[1],Pi=function(to){ci(to),Qe(to)},_n=function(to){var Bo=to.disabled,co=Ae(to,On);return!Bo&&(co||Te||qt)},wi=function(to,Bo){var co=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;Ve(to),!qt&&(Bo||Te&&(Rn==="hover"||co))&&An(!1)},_i=Ht.useMemo(function(){return Ze?Vn:zt},[Ze,Vn,zt]),Zi=Ht.useMemo(function(){for(var Co=[{options:_i}],to=_i,Bo=an(to,On),co=function(){var fo=En[Hi],ri=to.find(function(qo,_o){return(Bo[_o]?Pe(Bo[_o]):qo[On.value])===fo}),It=ri==null?void 0:ri[On.children];if(!(It!=null&&It.length))return"break";to=It,Co.push({options:It})},Hi=0;Hi<En.length;Hi+=1){var wo=co();if(wo==="break")break}return Co},[_i,En,On]),oo=function(to,Bo){_n(Bo)&&wi(to,Ae(Bo,On),!0)};ti(xn,_i,On,En,Pi,oo),Ht.useEffect(function(){for(var Co=0;Co<En.length;Co+=1){var to,Bo=En.slice(0,Co+1),co=Pe(Bo),Hi=(to=Qn.current)===null||to===void 0?void 0:to.querySelector('li[data-path-key="'.concat(co.replace(/\\{0,2}"/g,'\\"'),'"]'));Hi&&Ie(Hi)}},[En]);var $i=!((wn=Zi[0])!==null&&wn!==void 0&&(Kn=wn.options)!==null&&Kn!==void 0&&Kn.length),$e=[(Ue={},(0,pt.Z)(Ue,On.value,"__EMPTY__"),(0,pt.Z)(Ue,vn,Ln),(0,pt.Z)(Ue,"disabled",!0),Ue)],Gi=(0,yt.Z)((0,yt.Z)({},Ce),{},{multiple:!$i&&qt,onSelect:wi,onActive:Pi,onToggleOpen:An,checkedSet:ao,halfCheckedSet:Oi,loadingKeys:Ii,isSelectable:_n}),_e=$i?[{options:$e}]:Zi,xo=_e.map(function(Co,to){var Bo=En.slice(0,to),co=En[to];return Ht.createElement(zn,(0,Le.Z)({key:to},Gi,{searchValue:Ze,prefixCls:qn,options:Co.options,prevValuePath:Bo,activeValue:co}))});return Ht.createElement(Je,{open:un},Ht.createElement("div",{className:Jt()("".concat(qn,"-menus"),(qe={},(0,pt.Z)(qe,"".concat(qn,"-menu-empty"),$i),(0,pt.Z)(qe,"".concat(qn,"-rtl"),Nn),qe)),ref:Qn},xo))}),ii=Wn;function mi(Ce){var xn=Ce.onPopupVisibleChange,wn=Ce.popupVisible,Kn=Ce.popupClassName,Ue=Ce.popupPlacement;warning(!xn,"`onPopupVisibleChange` is deprecated. Please use `onDropdownVisibleChange` instead."),warning(wn===void 0,"`popupVisible` is deprecated. Please use `open` instead."),warning(Kn===void 0,"`popupClassName` is deprecated. Please use `dropdownClassName` instead."),warning(Ue===void 0,"`popupPlacement` is deprecated. Please use `placement` instead.")}function yn(Ce,xn){if(Ce){var wn=function Kn(Ue){for(var qe=0;qe<Ue.length;qe++){var le=Ue[qe];if(le[xn==null?void 0:xn.value]===null)return warning(!1,"`value` in Cascader options should not be `null`."),!0;if(Array.isArray(le[xn==null?void 0:xn.children])&&Kn(le[xn==null?void 0:xn.children]))return!0}};wn(Ce)}}var Ge=null,Ne=["id","prefixCls","fieldNames","defaultValue","value","changeOnSelect","onChange","displayRender","checkable","autoClearSearchValue","searchValue","onSearch","showSearch","expandTrigger","options","dropdownPrefixCls","loadData","popupVisible","open","popupClassName","dropdownClassName","dropdownMenuColumnStyle","popupPlacement","placement","onDropdownVisibleChange","onPopupVisibleChange","expandIcon","loadingIcon","children","dropdownMatchSelectWidth","showCheckedStrategy"];function Zn(Ce){return Array.isArray(Ce)&&Array.isArray(Ce[0])}function sn(Ce){return Ce?Zn(Ce)?Ce:(Ce.length===0?[]:[Ce]).map(function(xn){return Array.isArray(xn)?xn:[xn]}):[]}var We=Ht.forwardRef(function(Ce,xn){var wn=Ce.id,Kn=Ce.prefixCls,Ue=Kn===void 0?"rc-cascader":Kn,qe=Ce.fieldNames,le=Ce.defaultValue,re=Ce.value,qt=Ce.changeOnSelect,Ze=Ce.onChange,An=Ce.displayRender,Ln=Ce.checkable,Be=Ce.autoClearSearchValue,un=Be===void 0?!0:Be,Qn=Ce.searchValue,Nn=Ce.onSearch,ai=Ce.showSearch,zt=Ce.expandTrigger,Fe=Ce.options,Dn=Ce.dropdownPrefixCls,On=Ce.loadData,Te=Ce.popupVisible,Ve=Ce.open,Vn=Ce.popupClassName,li=Ce.dropdownClassName,oi=Ce.dropdownMenuColumnStyle,Rn=Ce.popupPlacement,qn=Ce.placement,si=Ce.onDropdownVisibleChange,Xi=Ce.onPopupVisibleChange,Ii=Ce.expandIcon,ji=Ii===void 0?">":Ii,Qe=Ce.loadingIcon,ao=Ce.children,Oi=Ce.dropdownMatchSelectWidth,Ci=Oi===void 0?!1:Oi,De=Ce.showCheckedStrategy,En=De===void 0?ne:De,ci=(0,ve.Z)(Ce,Ne),Pi=(0,Oe.ZP)(wn),_n=!!Ln,wi=(0,et.Z)(le,{value:re,postState:sn}),_i=(0,ce.Z)(wi,2),Zi=_i[0],oo=_i[1],$i=Ht.useMemo(function(){return oe(qe)},[JSON.stringify(qe)]),$e=Ht.useMemo(function(){return Fe||[]},[Fe]),Gi=xe($e,$i),_e=Ht.useCallback(function(ki){var vi=Gi();return ki.map(function(Ji){var Ki=vi[Ji].nodes;return Ki.map(function(Jo){return Jo[$i.value]})})},[Gi,$i]),xo=(0,et.Z)("",{value:Qn,postState:function(vi){return vi||""}}),Co=(0,ce.Z)(xo,2),to=Co[0],Bo=Co[1],co=function(vi,Ji){Bo(vi),Ji.source!=="blur"&&Nn&&Nn(vi)},Hi=ge(ai),wo=(0,ce.Z)(Hi,2),Lo=wo[0],fo=wo[1],ri=Qt(to,$e,$i,Dn||Ue,fo,qt),It=nn($e,$i),qo=Ht.useMemo(function(){var ki=It(Zi),vi=(0,ce.Z)(ki,2),Ji=vi[0],Ki=vi[1];if(!_n||!Zi.length)return[Ji,[],Ki];var Jo=ue(Ji),nr=Gi(),$r=(0,je.S)(Jo,!0,nr),be=$r.checkedKeys,Ir=$r.halfCheckedKeys;return[_e(be),_e(Ir),Ki]},[_n,Zi,Gi,_e,It]),_o=(0,ce.Z)(qo,3),Sr=_o[0],Fr=_o[1],Xo=_o[2],kr=Ht.useMemo(function(){var ki=ue(Sr),vi=Gn(ki,Gi,En);return[].concat((0,ht.Z)(Xo),(0,ht.Z)(_e(vi)))},[Sr,Gi,_e,Xo,En]),Zt=de(kr,$e,$i,_n,An),kn=(0,kt.Z)(function(ki){if(oo(ki),Ze){var vi=sn(ki),Ji=vi.map(function(nr){return bn(nr,$e,$i).map(function($r){return $r.option})}),Ki=_n?vi:vi[0],Jo=_n?Ji:Ji[0];Ze(Ki,Jo)}}),Mn=(0,kt.Z)(function(ki){if((!_n||un)&&Bo(""),!_n)kn(ki);else{var vi=Pe(ki),Ji=ue(Sr),Ki=ue(Fr),Jo=Ji.includes(vi),nr=Xo.some(function(jo){return Pe(jo)===vi}),$r=Sr,be=Xo;if(nr&&!Jo)be=Xo.filter(function(jo){return Pe(jo)!==vi});else{var Ir=Jo?Ji.filter(function(jo){return jo!==vi}):[].concat((0,ht.Z)(Ji),[vi]),Ea=Gi(),js;if(Jo){var cl=(0,je.S)(Ir,{checked:!1,halfCheckedKeys:Ki},Ea);js=cl.checkedKeys}else{var pr=(0,je.S)(Ir,!0,Ea);js=pr.checkedKeys}var fa=Gn(js,Gi,En);$r=_e(fa)}kn([].concat((0,ht.Z)(be),(0,ht.Z)($r)))}}),Un=function(vi,Ji){if(Ji.type==="clear"){kn([]);return}var Ki=Ji.values[0],Jo=Ki.valueCells;Mn(Jo)},gn=Ve!==void 0?Ve:Te,Tn=li||Vn,Pn=qn||Rn,Ee=function(vi){si==null||si(vi),Xi==null||Xi(vi)},fn=Ht.useMemo(function(){return{options:$e,fieldNames:$i,values:Sr,halfValues:Fr,changeOnSelect:qt,onSelect:Mn,checkable:Ln,searchOptions:ri,dropdownPrefixCls:Dn,loadData:On,expandTrigger:zt,expandIcon:ji,loadingIcon:Qe,dropdownMenuColumnStyle:oi}},[$e,$i,Sr,Fr,qt,Mn,Ln,ri,Dn,On,zt,ji,Qe,oi]),gi=!(to?ri:$e).length,Wi=to&&fo.matchInputWidth||gi?{}:{minWidth:"auto"};return Ht.createElement(dt.Provider,{value:fn},Ht.createElement(he.Ac,(0,Le.Z)({},ci,{ref:xn,id:Pi,prefixCls:Ue,autoClearSearchValue:un,dropdownMatchSelectWidth:Ci,dropdownStyle:Wi,displayValues:Zt,onDisplayValuesChange:Un,mode:_n?"multiple":void 0,searchValue:to,onSearch:co,showSearch:Lo,OptionList:ii,emptyOptions:gi,open:gn,dropdownClassName:Tn,placement:Pn,onDropdownVisibleChange:Ee,getRawInputElement:function(){return ao}})))});We.SHOW_PARENT=ne,We.SHOW_CHILD=_t;var en=We,Nt=en,Ct=Ft(2738),St=Ft(62892),Bt=Ft(53487),Gt=Ft(19080),Lt=Ft(36355),ie=Ft(93891),Ke=Ft(1684),ln=Ft(19716),hn=Ft(32441),Jn=Ft(14154),di=Ft(58582),fi=Ft(84443),pi=Ft(66339),Bi=Ft(33234),qi=Ft(98447),Qi=Ft(17313),Ao=Ft(74207),Mo=Ft(83116);const Ti=Ce=>{const{prefixCls:xn,componentCls:wn,antCls:Kn}=Ce,Ue=`${wn}-menu-item`,qe=`
|
|
&${Ue}-expand ${Ue}-expand-icon,
|
|
${Ue}-loading-icon
|
|
`;return[{[wn]:{width:Ce.controlWidth}},{[`${wn}-dropdown`]:[(0,qi.C2)(`${xn}-checkbox`,Ce),{[`&${Kn}-select-dropdown`]:{padding:0}},{[wn]:{"&-checkbox":{top:0,marginInlineEnd:Ce.paddingXS},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${wn}-menu-empty`]:{[`${wn}-menu`]:{width:"100%",height:"auto",[Ue]:{color:Ce.colorTextDisabled}}}},"&-menu":{flexGrow:1,minWidth:Ce.controlItemWidth,height:Ce.dropdownHeight,margin:0,padding:Ce.menuPadding,overflow:"auto",verticalAlign:"top",listStyle:"none","-ms-overflow-style":"-ms-autohiding-scrollbar","&:not(:last-child)":{borderInlineEnd:`${Ce.lineWidth}px ${Ce.lineType} ${Ce.colorSplit}`},"&-item":Object.assign(Object.assign({},Qi.vS),{display:"flex",flexWrap:"nowrap",alignItems:"center",padding:Ce.optionPadding,lineHeight:Ce.lineHeight,cursor:"pointer",transition:`all ${Ce.motionDurationMid}`,borderRadius:Ce.borderRadiusSM,"&:hover":{background:Ce.controlItemBgHover},"&-disabled":{color:Ce.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"},[qe]:{color:Ce.colorTextDisabled}},[`&-active:not(${Ue}-disabled)`]:{"&, &:hover":{fontWeight:Ce.optionSelectedFontWeight,backgroundColor:Ce.optionSelectedBg}},"&-content":{flex:"auto"},[qe]:{marginInlineStart:Ce.paddingXXS,color:Ce.colorTextDescription,fontSize:Ce.fontSizeIcon},"&-keyword":{color:Ce.colorHighlight}})}}}]},{[`${wn}-dropdown-rtl`]:{direction:"rtl"}},(0,Ao.c)(Ce)]};var Ui=(0,Mo.Z)("Cascader",Ce=>[Ti(Ce)],Ce=>{const xn=Math.round((Ce.controlHeight-Ce.fontSize*Ce.lineHeight)/2);return{controlWidth:184,controlItemWidth:111,dropdownHeight:180,optionSelectedBg:Ce.controlItemBgActive,optionSelectedFontWeight:Ce.fontWeightStrong,optionPadding:`${xn}px ${Ce.paddingSM}px`,menuPadding:Ce.paddingXXS}}),so=function(Ce,xn){var wn={};for(var Kn in Ce)Object.prototype.hasOwnProperty.call(Ce,Kn)&&xn.indexOf(Kn)<0&&(wn[Kn]=Ce[Kn]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ue=0,Kn=Object.getOwnPropertySymbols(Ce);Ue<Kn.length;Ue++)xn.indexOf(Kn[Ue])<0&&Object.prototype.propertyIsEnumerable.call(Ce,Kn[Ue])&&(wn[Kn[Ue]]=Ce[Kn[Ue]]);return wn};const{SHOW_CHILD:mo,SHOW_PARENT:xi}=Nt;function ho(Ce,xn,wn){const Kn=Ce.toLowerCase().split(xn).reduce((le,re,qt)=>qt===0?[re]:[].concat((0,ht.Z)(le),[xn,re]),[]),Ue=[];let qe=0;return Kn.forEach((le,re)=>{const qt=qe+le.length;let Ze=Ce.slice(qe,qt);qe=qt,re%2===1&&(Ze=Ht.createElement("span",{className:`${wn}-menu-item-keyword`,key:`separator-${re}`},Ze)),Ue.push(Ze)}),Ue}const pn=(Ce,xn,wn,Kn)=>{const Ue=[],qe=Ce.toLowerCase();return xn.forEach((le,re)=>{re!==0&&Ue.push(" / ");let qt=le[Kn.label];const Ze=typeof qt;(Ze==="string"||Ze==="number")&&(qt=ho(String(qt),qe,wn)),Ue.push(qt)}),Ue},wt=Ht.forwardRef((Ce,xn)=>{const{prefixCls:wn,size:Kn,disabled:Ue,className:qe,rootClassName:le,multiple:re,bordered:qt=!0,transitionName:Ze,choiceTransitionName:An="",popupClassName:Ln,dropdownClassName:Be,expandIcon:un,placement:Qn,showSearch:Nn,allowClear:ai=!0,notFoundContent:zt,direction:Fe,getPopupContainer:Dn,status:On,showArrow:Te,builtinPlacements:Ve,style:Vn}=Ce,li=so(Ce,["prefixCls","size","disabled","className","rootClassName","multiple","bordered","transitionName","choiceTransitionName","popupClassName","dropdownClassName","expandIcon","placement","showSearch","allowClear","notFoundContent","direction","getPopupContainer","status","showArrow","builtinPlacements","style"]),oi=(0,Ct.Z)(li,["suffixIcon"]),{getPopupContainer:Rn,getPrefixCls:qn,renderEmpty:si,direction:Xi,popupOverflow:Ii,cascader:ji}=Ht.useContext(Lt.E_),Qe=Fe||Xi,ao=Qe==="rtl",{status:Oi,hasFeedback:Ci,isFormItemInput:De,feedbackIcon:En}=Ht.useContext(hn.aM),ci=(0,Gt.F)(Oi,On),Pi=zt||(si==null?void 0:si("Cascader"))||Ht.createElement(ie.Z,{componentName:"Cascader"}),_n=qn(),wi=qn("select",wn),_i=qn("cascader",wn),[Zi,oo]=(0,Jn.Z)(wi),[$i]=Ui(_i),{compactSize:$e,compactItemClassnames:Gi}=(0,Bi.ri)(wi,Fe),_e=Jt()(Ln||Be,`${_i}-dropdown`,{[`${_i}-dropdown-rtl`]:Qe==="rtl"},le,oo),xo=Ht.useMemo(()=>{if(!Nn)return Nn;let Xo={render:pn};return typeof Nn=="object"&&(Xo=Object.assign(Object.assign({},Xo),Nn)),Xo},[Nn]),Co=(0,ln.Z)(Xo=>{var kr;return(kr=Kn!=null?Kn:$e)!==null&&kr!==void 0?kr:Xo}),to=Ht.useContext(Ke.Z),Bo=Ue!=null?Ue:to;let co=un;un||(co=ao?Ht.createElement(fe.Z,null):Ht.createElement(Se.Z,null));const Hi=Ht.createElement("span",{className:`${wi}-menu-item-loading-icon`},Ht.createElement(Re.Z,{spin:!0})),wo=Ht.useMemo(()=>re?Ht.createElement("span",{className:`${_i}-checkbox-inner`}):!1,[re]),Lo=(0,fi.Z)(Ce.suffixIcon,Te),{suffixIcon:fo,removeIcon:ri,clearIcon:It}=(0,pi.Z)(Object.assign(Object.assign({},Ce),{hasFeedback:Ci,feedbackIcon:En,showSuffixIcon:Lo,multiple:re,prefixCls:wi,componentName:"Cascader"})),qo=Ht.useMemo(()=>Qn!==void 0?Qn:ao?"bottomRight":"bottomLeft",[Qn,ao]),_o=(0,di.Z)(Ve,Ii),Sr=ai===!0?{clearIcon:It}:ai,Fr=Ht.createElement(Nt,Object.assign({prefixCls:wi,className:Jt()(!wn&&_i,{[`${wi}-lg`]:Co==="large",[`${wi}-sm`]:Co==="small",[`${wi}-rtl`]:ao,[`${wi}-borderless`]:!qt,[`${wi}-in-form-item`]:De},(0,Gt.Z)(wi,ci,Ci),Gi,ji==null?void 0:ji.className,qe,le,oo),disabled:Bo,style:Object.assign(Object.assign({},ji==null?void 0:ji.style),Vn)},oi,{builtinPlacements:_o,direction:Qe,placement:qo,notFoundContent:Pi,allowClear:Sr,showSearch:xo,expandIcon:co,suffixIcon:fo,removeIcon:ri,loadingIcon:Hi,checkable:wo,dropdownClassName:_e,dropdownPrefixCls:wn||_i,choiceTransitionName:(0,St.m)(_n,"",An),transitionName:(0,St.m)(_n,"slide-up",Ze),getPopupContainer:Dn||Rn,ref:xn}));return $i(Zi(Fr))}),Li=(0,Bt.Z)(wt);wt.SHOW_PARENT=xi,wt.SHOW_CHILD=mo,wt._InternalPanelDoNotUseOrYouWillBeFired=Li;var ui=wt},14478:function(Ye,jn,Ft){"use strict";Ft.d(jn,{Z:function(){return _t}});var ht=Ft(96512),Ht=Ft(92310),fe=Ft.n(Ht),Re=Ft(10228),Se=Ft(18929),Me=Ft(2738),Jt=Ft(59301),Le=Ft(92343),ce=Ft(36355),ve=Ft(60324),he=Ft(92806),Oe=Ft(77578),je=Ft(3113),kt=Ft(67797),et=Ft(9763),nt=Ft(31724),dt=Ft(39722),lt=Ft(83116);const pt=Pe=>{const{componentCls:ue,iconCls:pe,antCls:oe,zIndexPopup:Ae,colorText:Ie,colorWarning:an,marginXXS:Gn,marginXS:bn,fontSize:de,fontWeightStrong:Wt,colorTextHeading:xe}=Pe;return{[ue]:{zIndex:Ae,[`&${oe}-popover`]:{fontSize:de},[`${ue}-message`]:{marginBottom:bn,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${ue}-message-icon ${pe}`]:{color:an,fontSize:de,lineHeight:1,marginInlineEnd:bn},[`${ue}-title`]:{fontWeight:Wt,color:xe,"&:only-child":{fontWeight:"normal"}},[`${ue}-description`]:{marginTop:Gn,color:Ie}},[`${ue}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:bn}}}}};var yt=(0,lt.Z)("Popconfirm",Pe=>pt(Pe),Pe=>{const{zIndexPopupBase:ue}=Pe;return{zIndexPopup:ue+60}},{resetStyle:!1}),At=function(Pe,ue){var pe={};for(var oe in Pe)Object.prototype.hasOwnProperty.call(Pe,oe)&&ue.indexOf(oe)<0&&(pe[oe]=Pe[oe]);if(Pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ae=0,oe=Object.getOwnPropertySymbols(Pe);Ae<oe.length;Ae++)ue.indexOf(oe[Ae])<0&&Object.prototype.propertyIsEnumerable.call(Pe,oe[Ae])&&(pe[oe[Ae]]=Pe[oe[Ae]]);return pe};const Dt=Pe=>{const{prefixCls:ue,okButtonProps:pe,cancelButtonProps:oe,title:Ae,description:Ie,cancelText:an,okText:Gn,okType:bn="primary",icon:de=Jt.createElement(ht.Z,null),showCancel:Wt=!0,close:xe,onConfirm:nn,onCancel:dn,onPopupClick:ge}=Pe,{getPrefixCls:we}=Jt.useContext(ce.E_),[Je]=(0,et.Z)("Popconfirm",nt.Z.Popconfirm),Bn=(0,Oe.Z)(Ae),vn=(0,Oe.Z)(Ie);return Jt.createElement("div",{className:`${ue}-inner-content`,onClick:ge},Jt.createElement("div",{className:`${ue}-message`},de&&Jt.createElement("span",{className:`${ue}-message-icon`},de),Jt.createElement("div",{className:`${ue}-message-text`},Bn&&Jt.createElement("div",{className:fe()(`${ue}-title`)},Bn),vn&&Jt.createElement("div",{className:`${ue}-description`},vn))),Jt.createElement("div",{className:`${ue}-buttons`},Wt&&Jt.createElement(je.ZP,Object.assign({onClick:dn,size:"small"},oe),an!=null?an:Je==null?void 0:Je.cancelText),Jt.createElement(he.Z,{buttonProps:Object.assign(Object.assign({size:"small"},(0,kt.n)(bn)),pe),actionFn:nn,close:xe,prefixCls:we("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},Gn!=null?Gn:Je==null?void 0:Je.okText)))};var Qt=Pe=>{const{prefixCls:ue,placement:pe,className:oe,style:Ae}=Pe,Ie=At(Pe,["prefixCls","placement","className","style"]),{getPrefixCls:an}=Jt.useContext(ce.E_),Gn=an("popconfirm",ue),[bn]=yt(Gn);return bn(Jt.createElement(dt.ZP,{placement:pe,className:fe()(Gn,oe),style:Ae,content:Jt.createElement(Dt,Object.assign({prefixCls:Gn},Ie))}))},$t=function(Pe,ue){var pe={};for(var oe in Pe)Object.prototype.hasOwnProperty.call(Pe,oe)&&ue.indexOf(oe)<0&&(pe[oe]=Pe[oe]);if(Pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ae=0,oe=Object.getOwnPropertySymbols(Pe);Ae<oe.length;Ae++)ue.indexOf(oe[Ae])<0&&Object.prototype.propertyIsEnumerable.call(Pe,oe[Ae])&&(pe[oe[Ae]]=Pe[oe[Ae]]);return pe};const ne=Jt.forwardRef((Pe,ue)=>{const{prefixCls:pe,placement:oe="top",trigger:Ae="click",okType:Ie="primary",icon:an=Jt.createElement(ht.Z,null),children:Gn,overlayClassName:bn,onOpenChange:de,onVisibleChange:Wt}=Pe,xe=$t(Pe,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange"]),{getPrefixCls:nn}=Jt.useContext(ce.E_),[dn,ge]=(0,Se.Z)(!1,{value:Pe.open,defaultValue:Pe.defaultOpen}),we=(ii,mi)=>{ge(ii,!0),Wt==null||Wt(ii),de==null||de(ii,mi)},Je=ii=>{we(!1,ii)},Bn=ii=>{var mi;return(mi=Pe.onConfirm)===null||mi===void 0?void 0:mi.call(void 0,ii)},vn=ii=>{var mi;we(!1,ii),(mi=Pe.onCancel)===null||mi===void 0||mi.call(void 0,ii)},zn=ii=>{ii.keyCode===Re.Z.ESC&&dn&&we(!1,ii)},ae=ii=>{const{disabled:mi=!1}=Pe;mi||we(ii)},mn=nn("popconfirm",pe),ti=fe()(mn,bn),[Wn]=yt(mn);return Wn(Jt.createElement(ve.Z,Object.assign({},(0,Me.Z)(xe,["title"]),{trigger:Ae,placement:oe,onOpenChange:ae,open:dn,ref:ue,overlayClassName:ti,content:Jt.createElement(Dt,Object.assign({okType:Ie,icon:an},Pe,{prefixCls:mn,close:Je,onConfirm:Bn,onCancel:vn})),"data-popover-inject":!0}),(0,Le.Tm)(Gn,{onKeyDown:ii=>{var mi,yn;Jt.isValidElement(Gn)&&((yn=Gn==null?void 0:(mi=Gn.props).onKeyDown)===null||yn===void 0||yn.call(mi,ii)),zn(ii)}})))});ne._InternalPanelDoNotUseOrYouWillBeFired=Qt;var _t=ne},39722:function(Ye,jn,Ft){"use strict";Ft.d(jn,{t5:function(){return ve}});var ht=Ft(92310),Ht=Ft.n(ht),fe=Ft(55477),Re=Ft(59301),Se=Ft(36355),Me=Ft(77578),Jt=Ft(17356),Le=function(Oe,je){var kt={};for(var et in Oe)Object.prototype.hasOwnProperty.call(Oe,et)&&je.indexOf(et)<0&&(kt[et]=Oe[et]);if(Oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,et=Object.getOwnPropertySymbols(Oe);nt<et.length;nt++)je.indexOf(et[nt])<0&&Object.prototype.propertyIsEnumerable.call(Oe,et[nt])&&(kt[et[nt]]=Oe[et[nt]]);return kt};const ce=(Oe,je,kt)=>{if(!(!je&&!kt))return Re.createElement(Re.Fragment,null,je&&Re.createElement("div",{className:`${Oe}-title`},(0,Me.Z)(je)),Re.createElement("div",{className:`${Oe}-inner-content`},(0,Me.Z)(kt)))},ve=Oe=>{const{hashId:je,prefixCls:kt,className:et,style:nt,placement:dt="top",title:lt,content:pt,children:yt}=Oe;return Re.createElement("div",{className:Ht()(je,kt,`${kt}-pure`,`${kt}-placement-${dt}`,et),style:nt},Re.createElement("div",{className:`${kt}-arrow`}),Re.createElement(fe.G,Object.assign({},Oe,{className:je,prefixCls:kt}),yt||ce(kt,lt,pt)))},he=Oe=>{const{prefixCls:je}=Oe,kt=Le(Oe,["prefixCls"]),{getPrefixCls:et}=Re.useContext(Se.E_),nt=et("popover",je),[dt,lt]=(0,Jt.Z)(nt);return dt(Re.createElement(ve,Object.assign({},kt,{prefixCls:nt,hashId:lt})))};jn.ZP=he},60324:function(Ye,jn,Ft){"use strict";var ht=Ft(92310),Ht=Ft.n(ht),fe=Ft(59301),Re=Ft(77578),Se=Ft(62892),Me=Ft(36355),Jt=Ft(6848),Le=Ft(39722),ce=Ft(17356),ve=function(je,kt){var et={};for(var nt in je)Object.prototype.hasOwnProperty.call(je,nt)&&kt.indexOf(nt)<0&&(et[nt]=je[nt]);if(je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var dt=0,nt=Object.getOwnPropertySymbols(je);dt<nt.length;dt++)kt.indexOf(nt[dt])<0&&Object.prototype.propertyIsEnumerable.call(je,nt[dt])&&(et[nt[dt]]=je[nt[dt]]);return et};const he=je=>{let{title:kt,content:et,prefixCls:nt}=je;return fe.createElement(fe.Fragment,null,kt&&fe.createElement("div",{className:`${nt}-title`},(0,Re.Z)(kt)),fe.createElement("div",{className:`${nt}-inner-content`},(0,Re.Z)(et)))},Oe=fe.forwardRef((je,kt)=>{const{prefixCls:et,title:nt,content:dt,overlayClassName:lt,placement:pt="top",trigger:yt="hover",mouseEnterDelay:At=.1,mouseLeaveDelay:Dt=.1,overlayStyle:Ut={}}=je,Qt=ve(je,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:$t}=fe.useContext(Me.E_),ne=$t("popover",et),[_t,Pe]=(0,ce.Z)(ne),ue=$t(),pe=Ht()(lt,Pe);return _t(fe.createElement(Jt.Z,Object.assign({placement:pt,trigger:yt,mouseEnterDelay:At,mouseLeaveDelay:Dt,overlayStyle:Ut},Qt,{prefixCls:ne,overlayClassName:pe,ref:kt,overlay:nt||dt?fe.createElement(he,{prefixCls:ne,title:nt,content:dt}):null,transitionName:(0,Se.m)(ue,"zoom-big",Qt.transitionName),"data-popover-inject":!0})))});Oe._InternalPanelDoNotUseOrYouWillBeFired=Le.ZP,jn.Z=Oe},17356:function(Ye,jn,Ft){"use strict";var ht=Ft(17313),Ht=Ft(29878),fe=Ft(19447),Re=Ft(33166),Se=Ft(83116),Me=Ft(37613);const Jt=ve=>{const{componentCls:he,popoverColor:Oe,minWidth:je,fontWeightStrong:kt,popoverPadding:et,boxShadowSecondary:nt,colorTextHeading:dt,borderRadiusLG:lt,zIndexPopup:pt,marginXS:yt,colorBgElevated:At,popoverBg:Dt}=ve;return[{[he]:Object.assign(Object.assign({},(0,ht.Wf)(ve)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:pt,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":At,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${he}-content`]:{position:"relative"},[`${he}-inner`]:{backgroundColor:Dt,backgroundClip:"padding-box",borderRadius:lt,boxShadow:nt,padding:et},[`${he}-title`]:{minWidth:je,marginBottom:yt,color:dt,fontWeight:kt},[`${he}-inner-content`]:{color:Oe}})},(0,fe.ZP)(ve,{colorBg:"var(--antd-arrow-background-color)"}),{[`${he}-pure`]:{position:"relative",maxWidth:"none",margin:ve.sizePopupArrow,display:"inline-block",[`${he}-content`]:{display:"inline-block"}}}]},Le=ve=>{const{componentCls:he}=ve;return{[he]:Re.i.map(Oe=>{const je=ve[`${Oe}6`];return{[`&${he}-${Oe}`]:{"--antd-arrow-background-color":je,[`${he}-inner`]:{backgroundColor:je},[`${he}-arrow`]:{background:"transparent"}}}})}},ce=ve=>{const{componentCls:he,lineWidth:Oe,lineType:je,colorSplit:kt,paddingSM:et,controlHeight:nt,fontSize:dt,lineHeight:lt,padding:pt}=ve,yt=nt-Math.round(dt*lt),At=yt/2,Dt=yt/2-Oe,Ut=pt;return{[he]:{[`${he}-inner`]:{padding:0},[`${he}-title`]:{margin:0,padding:`${At}px ${Ut}px ${Dt}px`,borderBottom:`${Oe}px ${je} ${kt}`},[`${he}-inner-content`]:{padding:`${et}px ${Ut}px`}}}};jn.Z=(0,Se.Z)("Popover",ve=>{const{colorBgElevated:he,colorText:Oe,wireframe:je}=ve,kt=(0,Me.TS)(ve,{popoverPadding:12,popoverBg:he,popoverColor:Oe});return[Jt(kt),Le(kt),je&&ce(kt),(0,Ht._y)(kt,"zoom-big")]},ve=>({width:177,minWidth:177,zIndexPopup:ve.zIndexPopupBase+30}),{resetStyle:!1,deprecatedTokens:[["width","minWidth"]]})},13570:function(Ye,jn,Ft){"use strict";Ft.d(jn,{Z:function(){return Wt}});var ht=Ft(72308),Ht=Ft(59301),fe={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"},Re=fe,Se=Ft(7657),Me=function(nn,dn){return Ht.createElement(Se.Z,(0,ht.Z)({},nn,{ref:dn,icon:Re}))},Jt=Ht.forwardRef(Me),Le=Jt,ce=Ft(92310),ve=Ft.n(ce),he=Ft(49618),Oe=Ft(52487),je=Ft(74416),kt=Ft(18929),et=Ft(10228),nt=Ft(26112);function dt(xe,nn){var dn=xe.disabled,ge=xe.prefixCls,we=xe.character,Je=xe.characterRender,Bn=xe.index,vn=xe.count,zn=xe.value,ae=xe.allowHalf,mn=xe.focused,ti=xe.onHover,Wn=xe.onClick,ii=function(en){ti(en,Bn)},mi=function(en){Wn(en,Bn)},yn=function(en){en.keyCode===et.Z.ENTER&&Wn(en,Bn)},Ge=Bn+1,Ne=new Set([ge]);zn===0&&Bn===0&&mn?Ne.add("".concat(ge,"-focused")):ae&&zn+.5>=Ge&&zn<Ge?(Ne.add("".concat(ge,"-half")),Ne.add("".concat(ge,"-active")),mn&&Ne.add("".concat(ge,"-focused"))):(Ge<=zn?Ne.add("".concat(ge,"-full")):Ne.add("".concat(ge,"-zero")),Ge===zn&&mn&&Ne.add("".concat(ge,"-focused")));var Zn=typeof we=="function"?we(xe):we,sn=Ht.createElement("li",{className:ve()(Array.from(Ne)),ref:nn},Ht.createElement("div",{onClick:dn?null:mi,onKeyDown:dn?null:yn,onMouseMove:dn?null:ii,role:"radio","aria-checked":zn>Bn?"true":"false","aria-posinset":Bn+1,"aria-setsize":vn,tabIndex:dn?-1:0},Ht.createElement("div",{className:"".concat(ge,"-first")},Zn),Ht.createElement("div",{className:"".concat(ge,"-second")},Zn)));return Je&&(sn=Je(sn,xe)),sn}var lt=Ht.forwardRef(dt);function pt(){var xe=Ht.useRef({});function nn(ge){return xe.current[ge]}function dn(ge){return function(we){xe.current[ge]=we}}return[nn,dn]}function yt(xe){var nn=xe.pageXOffset,dn="scrollLeft";if(typeof nn!="number"){var ge=xe.document;nn=ge.documentElement[dn],typeof nn!="number"&&(nn=ge.body[dn])}return nn}function At(xe){var nn,dn,ge=xe.ownerDocument,we=ge.body,Je=ge&&ge.documentElement,Bn=xe.getBoundingClientRect();return nn=Bn.left,dn=Bn.top,nn-=Je.clientLeft||we.clientLeft||0,dn-=Je.clientTop||we.clientTop||0,{left:nn,top:dn}}function Dt(xe){var nn=At(xe),dn=xe.ownerDocument,ge=dn.defaultView||dn.parentWindow;return nn.left+=yt(ge),nn.left}var Ut=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function Qt(xe,nn){var dn,ge=xe.prefixCls,we=ge===void 0?"rc-rate":ge,Je=xe.className,Bn=xe.defaultValue,vn=xe.value,zn=xe.count,ae=zn===void 0?5:zn,mn=xe.allowHalf,ti=mn===void 0?!1:mn,Wn=xe.allowClear,ii=Wn===void 0?!0:Wn,mi=xe.character,yn=mi===void 0?"\u2605":mi,Ge=xe.characterRender,Ne=xe.disabled,Zn=xe.direction,sn=Zn===void 0?"ltr":Zn,We=xe.tabIndex,en=We===void 0?0:We,Nt=xe.autoFocus,Ct=xe.onHoverChange,St=xe.onChange,Bt=xe.onFocus,Gt=xe.onBlur,Lt=xe.onKeyDown,ie=xe.onMouseLeave,Ke=(0,je.Z)(xe,Ut),ln=pt(),hn=(0,Oe.Z)(ln,2),Jn=hn[0],di=hn[1],fi=Ht.useRef(null),pi=function(){if(!Ne){var Be;(Be=fi.current)===null||Be===void 0||Be.focus()}};Ht.useImperativeHandle(nn,function(){return{focus:pi,blur:function(){if(!Ne){var Be;(Be=fi.current)===null||Be===void 0||Be.blur()}}}});var Bi=(0,kt.Z)(Bn||0,{value:vn}),qi=(0,Oe.Z)(Bi,2),Qi=qi[0],Ao=qi[1],Mo=(0,kt.Z)(null),Ti=(0,Oe.Z)(Mo,2),Ui=Ti[0],so=Ti[1],mo=function(Be,un){var Qn=sn==="rtl",Nn=Be+1;if(ti){var ai=Jn(Be),zt=Dt(ai),Fe=ai.clientWidth;(Qn&&un-zt>Fe/2||!Qn&&un-zt<Fe/2)&&(Nn-=.5)}return Nn},xi=function(Be){Ao(Be),St==null||St(Be)},ho=Ht.useState(!1),pn=(0,Oe.Z)(ho,2),wt=pn[0],Li=pn[1],ui=function(){Li(!0),Bt==null||Bt()},Ce=function(){Li(!1),Gt==null||Gt()},xn=Ht.useState(null),wn=(0,Oe.Z)(xn,2),Kn=wn[0],Ue=wn[1],qe=function(Be,un){var Qn=mo(un,Be.pageX);Qn!==Ui&&(Ue(Qn),so(null)),Ct==null||Ct(Qn)},le=function(Be){Ne||(Ue(null),so(null),Ct==null||Ct(void 0)),Be&&(ie==null||ie(Be))},re=function(Be,un){var Qn=mo(un,Be.pageX),Nn=!1;ii&&(Nn=Qn===Qi),le(),xi(Nn?0:Qn),so(Nn?Qn:null)},qt=function(Be){var un=Be.keyCode,Qn=sn==="rtl",Nn=Qi;un===et.Z.RIGHT&&Nn<ae&&!Qn?(ti?Nn+=.5:Nn+=1,xi(Nn),Be.preventDefault()):un===et.Z.LEFT&&Nn>0&&!Qn||un===et.Z.RIGHT&&Nn>0&&Qn?(ti?Nn-=.5:Nn-=1,xi(Nn),Be.preventDefault()):un===et.Z.LEFT&&Nn<ae&&Qn&&(ti?Nn+=.5:Nn+=1,xi(Nn),Be.preventDefault()),Lt==null||Lt(Be)};Ht.useEffect(function(){Nt&&!Ne&&pi()},[]);var Ze=new Array(ae).fill(0).map(function(Ln,Be){return Ht.createElement(lt,{ref:di(Be),index:Be,count:ae,disabled:Ne,prefixCls:"".concat(we,"-star"),allowHalf:ti,value:Kn===null?Qi:Kn,onClick:re,onHover:qe,key:Ln||Be,character:yn,characterRender:Ge,focused:wt})}),An=ve()(we,Je,(dn={},(0,he.Z)(dn,"".concat(we,"-disabled"),Ne),(0,he.Z)(dn,"".concat(we,"-rtl"),sn==="rtl"),dn));return Ht.createElement("ul",(0,ht.Z)({className:An,onMouseLeave:le,tabIndex:Ne?-1:en,onFocus:Ne?null:ui,onBlur:Ne?null:Ce,onKeyDown:Ne?null:qt,ref:fi,role:"radiogroup"},(0,nt.Z)(Ke,{aria:!0,data:!0,attr:!0})),Ze)}var $t=Ht.forwardRef(Qt),ne=$t,_t=Ft(36355),Pe=Ft(6848),ue=Ft(17313),pe=Ft(83116),oe=Ft(37613);const Ae=xe=>{const{componentCls:nn}=xe;return{[`${nn}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:xe.marginXS},"> div":{transition:`all ${xe.motionDurationMid}, outline 0s`,"&:hover":{transform:xe.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${xe.lineWidth}px dashed ${xe.starColor}`,transform:xe.starHoverScale}},"&-first, &-second":{color:xe.starBg,transition:`all ${xe.motionDurationMid}`,userSelect:"none",[xe.iconCls]:{verticalAlign:"middle"}},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${nn}-star-first, &-half ${nn}-star-second`]:{opacity:1},[`&-half ${nn}-star-first, &-full ${nn}-star-second`]:{color:"inherit"}}}},Ie=xe=>({[`&-rtl${xe.componentCls}`]:{direction:"rtl"}}),an=xe=>{const{componentCls:nn}=xe;return{[nn]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,ue.Wf)(xe)),{display:"inline-block",margin:0,padding:0,color:xe.starColor,fontSize:xe.starSize,lineHeight:"unset",listStyle:"none",outline:"none",[`&-disabled${nn} ${nn}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),Ae(xe)),{[`+ ${nn}-text`]:{display:"inline-block",marginInlineStart:xe.marginXS,fontSize:xe.fontSize}}),Ie(xe))}};var Gn=(0,pe.Z)("Rate",xe=>{const nn=(0,oe.TS)(xe,{});return[an(nn)]},xe=>({starColor:xe.yellow6,starSize:xe.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:xe.colorFillContent})),bn=function(xe,nn){var dn={};for(var ge in xe)Object.prototype.hasOwnProperty.call(xe,ge)&&nn.indexOf(ge)<0&&(dn[ge]=xe[ge]);if(xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var we=0,ge=Object.getOwnPropertySymbols(xe);we<ge.length;we++)nn.indexOf(ge[we])<0&&Object.prototype.propertyIsEnumerable.call(xe,ge[we])&&(dn[ge[we]]=xe[ge[we]]);return dn},Wt=Ht.forwardRef((xe,nn)=>{const{prefixCls:dn,className:ge,rootClassName:we,style:Je,tooltips:Bn,character:vn=Ht.createElement(Le,null)}=xe,zn=bn(xe,["prefixCls","className","rootClassName","style","tooltips","character"]),ae=(Ne,Zn)=>{let{index:sn}=Zn;return Bn?Ht.createElement(Pe.Z,{title:Bn[sn]},Ne):Ne},{getPrefixCls:mn,direction:ti,rate:Wn}=Ht.useContext(_t.E_),ii=mn("rate",dn),[mi,yn]=Gn(ii),Ge=Object.assign(Object.assign({},Wn==null?void 0:Wn.style),Je);return mi(Ht.createElement(ne,Object.assign({ref:nn,character:vn,characterRender:ae},zn,{className:ve()(ge,we,yn,Wn==null?void 0:Wn.className),style:Ge,prefixCls:ii,direction:ti})))})},61621:function(Ye,jn,Ft){"use strict";Ft.d(jn,{Z:function(){return yn}});var ht=Ft(92310),Ht=Ft.n(ht),fe=Ft(59301),Re=Ft(36355),Se=Ft(2738),Jt=Ge=>{const{prefixCls:Ne,className:Zn,style:sn,size:We,shape:en}=Ge,Nt=Ht()({[`${Ne}-lg`]:We==="large",[`${Ne}-sm`]:We==="small"}),Ct=Ht()({[`${Ne}-circle`]:en==="circle",[`${Ne}-square`]:en==="square",[`${Ne}-round`]:en==="round"}),St=fe.useMemo(()=>typeof We=="number"?{width:We,height:We,lineHeight:`${We}px`}:{},[We]);return fe.createElement("span",{className:Ht()(Ne,Nt,Ct,Zn),style:Object.assign(Object.assign({},St),sn)})},Le=Ft(93083),ce=Ft(83116),ve=Ft(37613);const he=new Le.Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),Oe=Ge=>({height:Ge,lineHeight:`${Ge}px`}),je=Ge=>Object.assign({width:Ge},Oe(Ge)),kt=Ge=>({background:Ge.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:he,animationDuration:Ge.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),et=Ge=>Object.assign({width:Ge*5,minWidth:Ge*5},Oe(Ge)),nt=Ge=>{const{skeletonAvatarCls:Ne,gradientFromColor:Zn,controlHeight:sn,controlHeightLG:We,controlHeightSM:en}=Ge;return{[`${Ne}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Zn},je(sn)),[`${Ne}${Ne}-circle`]:{borderRadius:"50%"},[`${Ne}${Ne}-lg`]:Object.assign({},je(We)),[`${Ne}${Ne}-sm`]:Object.assign({},je(en))}},dt=Ge=>{const{controlHeight:Ne,borderRadiusSM:Zn,skeletonInputCls:sn,controlHeightLG:We,controlHeightSM:en,gradientFromColor:Nt}=Ge;return{[`${sn}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Nt,borderRadius:Zn},et(Ne)),[`${sn}-lg`]:Object.assign({},et(We)),[`${sn}-sm`]:Object.assign({},et(en))}},lt=Ge=>Object.assign({width:Ge},Oe(Ge)),pt=Ge=>{const{skeletonImageCls:Ne,imageSizeBase:Zn,gradientFromColor:sn,borderRadiusSM:We}=Ge;return{[`${Ne}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:sn,borderRadius:We},lt(Zn*2)),{[`${Ne}-path`]:{fill:"#bfbfbf"},[`${Ne}-svg`]:Object.assign(Object.assign({},lt(Zn)),{maxWidth:Zn*4,maxHeight:Zn*4}),[`${Ne}-svg${Ne}-svg-circle`]:{borderRadius:"50%"}}),[`${Ne}${Ne}-circle`]:{borderRadius:"50%"}}},yt=(Ge,Ne,Zn)=>{const{skeletonButtonCls:sn}=Ge;return{[`${Zn}${sn}-circle`]:{width:Ne,minWidth:Ne,borderRadius:"50%"},[`${Zn}${sn}-round`]:{borderRadius:Ne}}},At=Ge=>Object.assign({width:Ge*2,minWidth:Ge*2},Oe(Ge)),Dt=Ge=>{const{borderRadiusSM:Ne,skeletonButtonCls:Zn,controlHeight:sn,controlHeightLG:We,controlHeightSM:en,gradientFromColor:Nt}=Ge;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${Zn}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Nt,borderRadius:Ne,width:sn*2,minWidth:sn*2},At(sn))},yt(Ge,sn,Zn)),{[`${Zn}-lg`]:Object.assign({},At(We))}),yt(Ge,We,`${Zn}-lg`)),{[`${Zn}-sm`]:Object.assign({},At(en))}),yt(Ge,en,`${Zn}-sm`))},Ut=Ge=>{const{componentCls:Ne,skeletonAvatarCls:Zn,skeletonTitleCls:sn,skeletonParagraphCls:We,skeletonButtonCls:en,skeletonInputCls:Nt,skeletonImageCls:Ct,controlHeight:St,controlHeightLG:Bt,controlHeightSM:Gt,gradientFromColor:Lt,padding:ie,marginSM:Ke,borderRadius:ln,titleHeight:hn,blockRadius:Jn,paragraphLiHeight:di,controlHeightXS:fi,paragraphMarginTop:pi}=Ge;return{[`${Ne}`]:{display:"table",width:"100%",[`${Ne}-header`]:{display:"table-cell",paddingInlineEnd:ie,verticalAlign:"top",[`${Zn}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Lt},je(St)),[`${Zn}-circle`]:{borderRadius:"50%"},[`${Zn}-lg`]:Object.assign({},je(Bt)),[`${Zn}-sm`]:Object.assign({},je(Gt))},[`${Ne}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${sn}`]:{width:"100%",height:hn,background:Lt,borderRadius:Jn,[`+ ${We}`]:{marginBlockStart:Gt}},[`${We}`]:{padding:0,"> li":{width:"100%",height:di,listStyle:"none",background:Lt,borderRadius:Jn,"+ li":{marginBlockStart:fi}}},[`${We}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${Ne}-content`]:{[`${sn}, ${We} > li`]:{borderRadius:ln}}},[`${Ne}-with-avatar ${Ne}-content`]:{[`${sn}`]:{marginBlockStart:Ke,[`+ ${We}`]:{marginBlockStart:pi}}},[`${Ne}${Ne}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},Dt(Ge)),nt(Ge)),dt(Ge)),pt(Ge)),[`${Ne}${Ne}-block`]:{width:"100%",[`${en}`]:{width:"100%"},[`${Nt}`]:{width:"100%"}},[`${Ne}${Ne}-active`]:{[`
|
|
${sn},
|
|
${We} > li,
|
|
${Zn},
|
|
${en},
|
|
${Nt},
|
|
${Ct}
|
|
`]:Object.assign({},kt(Ge))}}};var Qt=(0,ce.Z)("Skeleton",Ge=>{const{componentCls:Ne}=Ge,Zn=(0,ve.TS)(Ge,{skeletonAvatarCls:`${Ne}-avatar`,skeletonTitleCls:`${Ne}-title`,skeletonParagraphCls:`${Ne}-paragraph`,skeletonButtonCls:`${Ne}-button`,skeletonInputCls:`${Ne}-input`,skeletonImageCls:`${Ne}-image`,imageSizeBase:Ge.controlHeight*1.5,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${Ge.gradientFromColor} 25%, ${Ge.gradientToColor} 37%, ${Ge.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[Ut(Zn)]},Ge=>{const{colorFillContent:Ne,colorFill:Zn}=Ge,sn=Ne,We=Zn;return{color:sn,colorGradientEnd:We,gradientFromColor:sn,gradientToColor:We,titleHeight:Ge.controlHeight/2,blockRadius:Ge.borderRadiusSM,paragraphMarginTop:Ge.marginLG+Ge.marginXXS,paragraphLiHeight:Ge.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),ne=Ge=>{const{prefixCls:Ne,className:Zn,rootClassName:sn,active:We,shape:en="circle",size:Nt="default"}=Ge,{getPrefixCls:Ct}=fe.useContext(Re.E_),St=Ct("skeleton",Ne),[Bt,Gt]=Qt(St),Lt=(0,Se.Z)(Ge,["prefixCls","className"]),ie=Ht()(St,`${St}-element`,{[`${St}-active`]:We},Zn,sn,Gt);return Bt(fe.createElement("div",{className:ie},fe.createElement(Jt,Object.assign({prefixCls:`${St}-avatar`,shape:en,size:Nt},Lt))))},Pe=Ge=>{const{prefixCls:Ne,className:Zn,rootClassName:sn,active:We,block:en=!1,size:Nt="default"}=Ge,{getPrefixCls:Ct}=fe.useContext(Re.E_),St=Ct("skeleton",Ne),[Bt,Gt]=Qt(St),Lt=(0,Se.Z)(Ge,["prefixCls"]),ie=Ht()(St,`${St}-element`,{[`${St}-active`]:We,[`${St}-block`]:en},Zn,sn,Gt);return Bt(fe.createElement("div",{className:ie},fe.createElement(Jt,Object.assign({prefixCls:`${St}-button`,size:Nt},Lt))))};const ue="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 oe=Ge=>{const{prefixCls:Ne,className:Zn,rootClassName:sn,style:We,active:en}=Ge,{getPrefixCls:Nt}=fe.useContext(Re.E_),Ct=Nt("skeleton",Ne),[St,Bt]=Qt(Ct),Gt=Ht()(Ct,`${Ct}-element`,{[`${Ct}-active`]:en},Zn,sn,Bt);return St(fe.createElement("div",{className:Gt},fe.createElement("div",{className:Ht()(`${Ct}-image`,Zn),style:We},fe.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${Ct}-image-svg`},fe.createElement("path",{d:ue,className:`${Ct}-image-path`})))))},Ie=Ge=>{const{prefixCls:Ne,className:Zn,rootClassName:sn,active:We,block:en,size:Nt="default"}=Ge,{getPrefixCls:Ct}=fe.useContext(Re.E_),St=Ct("skeleton",Ne),[Bt,Gt]=Qt(St),Lt=(0,Se.Z)(Ge,["prefixCls"]),ie=Ht()(St,`${St}-element`,{[`${St}-active`]:We,[`${St}-block`]:en},Zn,sn,Gt);return Bt(fe.createElement("div",{className:ie},fe.createElement(Jt,Object.assign({prefixCls:`${St}-input`,size:Nt},Lt))))},an=Ft(72308),Gn={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"},bn=Gn,de=Ft(7657),Wt=function(Ne,Zn){return fe.createElement(de.Z,(0,an.Z)({},Ne,{ref:Zn,icon:bn}))},xe=fe.forwardRef(Wt),nn=xe,ge=Ge=>{const{prefixCls:Ne,className:Zn,rootClassName:sn,style:We,active:en,children:Nt}=Ge,{getPrefixCls:Ct}=fe.useContext(Re.E_),St=Ct("skeleton",Ne),[Bt,Gt]=Qt(St),Lt=Ht()(St,`${St}-element`,{[`${St}-active`]:en},Gt,Zn,sn),ie=Nt!=null?Nt:fe.createElement(nn,null);return Bt(fe.createElement("div",{className:Lt},fe.createElement("div",{className:Ht()(`${St}-image`,Zn),style:We},ie)))},we=Ft(80702),Bn=Ge=>{const Ne=Ct=>{const{width:St,rows:Bt=2}=Ge;if(Array.isArray(St))return St[Ct];if(Bt-1===Ct)return St},{prefixCls:Zn,className:sn,style:We,rows:en}=Ge,Nt=(0,we.Z)(Array(en)).map((Ct,St)=>fe.createElement("li",{key:St,style:{width:Ne(St)}}));return fe.createElement("ul",{className:Ht()(Zn,sn),style:We},Nt)},zn=Ge=>{let{prefixCls:Ne,className:Zn,width:sn,style:We}=Ge;return fe.createElement("h3",{className:Ht()(Ne,Zn),style:Object.assign({width:sn},We)})};function ae(Ge){return Ge&&typeof Ge=="object"?Ge:{}}function mn(Ge,Ne){return Ge&&!Ne?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function ti(Ge,Ne){return!Ge&&Ne?{width:"38%"}:Ge&&Ne?{width:"50%"}:{}}function Wn(Ge,Ne){const Zn={};return(!Ge||!Ne)&&(Zn.width="61%"),!Ge&&Ne?Zn.rows=3:Zn.rows=2,Zn}const ii=Ge=>{const{prefixCls:Ne,loading:Zn,className:sn,rootClassName:We,style:en,children:Nt,avatar:Ct=!1,title:St=!0,paragraph:Bt=!0,active:Gt,round:Lt}=Ge,{getPrefixCls:ie,direction:Ke,skeleton:ln}=fe.useContext(Re.E_),hn=ie("skeleton",Ne),[Jn,di]=Qt(hn);if(Zn||!("loading"in Ge)){const fi=!!Ct,pi=!!St,Bi=!!Bt;let qi;if(fi){const Mo=Object.assign(Object.assign({prefixCls:`${hn}-avatar`},mn(pi,Bi)),ae(Ct));qi=fe.createElement("div",{className:`${hn}-header`},fe.createElement(Jt,Object.assign({},Mo)))}let Qi;if(pi||Bi){let Mo;if(pi){const Ui=Object.assign(Object.assign({prefixCls:`${hn}-title`},ti(fi,Bi)),ae(St));Mo=fe.createElement(zn,Object.assign({},Ui))}let Ti;if(Bi){const Ui=Object.assign(Object.assign({prefixCls:`${hn}-paragraph`},Wn(fi,pi)),ae(Bt));Ti=fe.createElement(Bn,Object.assign({},Ui))}Qi=fe.createElement("div",{className:`${hn}-content`},Mo,Ti)}const Ao=Ht()(hn,{[`${hn}-with-avatar`]:fi,[`${hn}-active`]:Gt,[`${hn}-rtl`]:Ke==="rtl",[`${hn}-round`]:Lt},ln==null?void 0:ln.className,sn,We,di);return Jn(fe.createElement("div",{className:Ao,style:Object.assign(Object.assign({},ln==null?void 0:ln.style),en)},qi,Qi))}return typeof Nt!="undefined"?Nt:null};ii.Button=Pe,ii.Avatar=ne,ii.Input=Ie,ii.Image=oe,ii.Node=ge;var mi=ii,yn=mi},31797:function(Ye,jn,Ft){"use strict";Ft.d(jn,{default:function(){return Qt}});var ht=Ft(59301),Ht=Ft(56762),fe=Ft(92343),Re=Ft(92310),Se=Ft.n(Re),Me=Ft(36355),Jt=Ft(61621),ce=$t=>{const{value:ne,formatter:_t,precision:Pe,decimalSeparator:ue,groupSeparator:pe="",prefixCls:oe}=$t;let Ae;if(typeof _t=="function")Ae=_t(ne);else{const Ie=String(ne),an=Ie.match(/^(-?)(\d*)(\.(\d+))?$/);if(!an||Ie==="-")Ae=Ie;else{const Gn=an[1];let bn=an[2]||"0",de=an[4]||"";bn=bn.replace(/\B(?=(\d{3})+(?!\d))/g,pe),typeof Pe=="number"&&(de=de.padEnd(Pe,"0").slice(0,Pe>0?Pe:0)),de&&(de=`${ue}${de}`),Ae=[ht.createElement("span",{key:"int",className:`${oe}-content-value-int`},Gn,bn),de&&ht.createElement("span",{key:"decimal",className:`${oe}-content-value-decimal`},de)]}}return ht.createElement("span",{className:`${oe}-content-value`},Ae)},ve=Ft(17313),he=Ft(83116),Oe=Ft(37613);const je=$t=>{const{componentCls:ne,marginXXS:_t,padding:Pe,colorTextDescription:ue,titleFontSize:pe,colorTextHeading:oe,contentFontSize:Ae,fontFamily:Ie}=$t;return{[`${ne}`]:Object.assign(Object.assign({},(0,ve.Wf)($t)),{[`${ne}-title`]:{marginBottom:_t,color:ue,fontSize:pe},[`${ne}-skeleton`]:{paddingTop:Pe},[`${ne}-content`]:{color:oe,fontSize:Ae,fontFamily:Ie,[`${ne}-content-value`]:{display:"inline-block",direction:"ltr"},[`${ne}-content-prefix, ${ne}-content-suffix`]:{display:"inline-block"},[`${ne}-content-prefix`]:{marginInlineEnd:_t},[`${ne}-content-suffix`]:{marginInlineStart:_t}}})}};var kt=(0,he.Z)("Statistic",$t=>{const ne=(0,Oe.TS)($t,{});return[je(ne)]},$t=>{const{fontSizeHeading3:ne,fontSize:_t}=$t;return{titleFontSize:_t,contentFontSize:ne}}),nt=$t=>{const{prefixCls:ne,className:_t,rootClassName:Pe,style:ue,valueStyle:pe,value:oe=0,title:Ae,valueRender:Ie,prefix:an,suffix:Gn,loading:bn=!1,onMouseEnter:de,onMouseLeave:Wt,decimalSeparator:xe=".",groupSeparator:nn=","}=$t,{getPrefixCls:dn,direction:ge,statistic:we}=ht.useContext(Me.E_),Je=dn("statistic",ne),[Bn,vn]=kt(Je),zn=ht.createElement(ce,Object.assign({decimalSeparator:xe,groupSeparator:nn,prefixCls:Je},$t,{value:oe})),ae=Se()(Je,{[`${Je}-rtl`]:ge==="rtl"},we==null?void 0:we.className,_t,Pe,vn);return Bn(ht.createElement("div",{className:ae,style:Object.assign(Object.assign({},we==null?void 0:we.style),ue),onMouseEnter:de,onMouseLeave:Wt},Ae&&ht.createElement("div",{className:`${Je}-title`},Ae),ht.createElement(Jt.Z,{paragraph:!1,loading:bn,className:`${Je}-skeleton`},ht.createElement("div",{style:pe,className:`${Je}-content`},an&&ht.createElement("span",{className:`${Je}-content-prefix`},an),Ie?Ie(zn):zn,Gn&&ht.createElement("span",{className:`${Je}-content-suffix`},Gn)))))};const dt=[["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 lt($t,ne){let _t=$t;const Pe=/\[[^\]]*]/g,ue=(ne.match(Pe)||[]).map(Ie=>Ie.slice(1,-1)),pe=ne.replace(Pe,"[]"),oe=dt.reduce((Ie,an)=>{let[Gn,bn]=an;if(Ie.includes(Gn)){const de=Math.floor(_t/bn);return _t-=de*bn,Ie.replace(new RegExp(`${Gn}+`,"g"),Wt=>{const xe=Wt.length;return de.toString().padStart(xe,"0")})}return Ie},pe);let Ae=0;return oe.replace(Pe,()=>{const Ie=ue[Ae];return Ae+=1,Ie})}function pt($t,ne){const{format:_t=""}=ne,Pe=new Date($t).getTime(),ue=Date.now(),pe=Math.max(Pe-ue,0);return lt(pe,_t)}const yt=1e3/30;function At($t){return new Date($t).getTime()}const Dt=$t=>{const{value:ne,format:_t="HH:mm:ss",onChange:Pe,onFinish:ue}=$t,pe=(0,Ht.Z)(),oe=ht.useRef(null),Ae=()=>{ue==null||ue(),oe.current&&(clearInterval(oe.current),oe.current=null)},Ie=()=>{const bn=At(ne);bn>=Date.now()&&(oe.current=setInterval(()=>{pe(),Pe==null||Pe(bn-Date.now()),bn<Date.now()&&Ae()},yt))};ht.useEffect(()=>(Ie(),()=>{oe.current&&(clearInterval(oe.current),oe.current=null)}),[ne]);const an=(bn,de)=>pt(bn,Object.assign(Object.assign({},de),{format:_t})),Gn=bn=>(0,fe.Tm)(bn,{title:void 0});return ht.createElement(nt,Object.assign({},$t,{valueRender:Gn,formatter:an}))};var Ut=ht.memo(Dt);nt.Countdown=Ut;var Qt=nt},78673:function(Ye,jn,Ft){"use strict";Ft.d(jn,{Z:function(){return pe}});var ht=Ft(58617),Ht=Ft(92310),fe=Ft.n(Ht),Re=Ft(72308),Se=Ft(49618),Me=Ft(52487),Jt=Ft(74416),Le=Ft(59301),ce=Ft(18929),ve=Ft(10228),he=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],Oe=Le.forwardRef(function(oe,Ae){var Ie,an=oe.prefixCls,Gn=an===void 0?"rc-switch":an,bn=oe.className,de=oe.checked,Wt=oe.defaultChecked,xe=oe.disabled,nn=oe.loadingIcon,dn=oe.checkedChildren,ge=oe.unCheckedChildren,we=oe.onClick,Je=oe.onChange,Bn=oe.onKeyDown,vn=(0,Jt.Z)(oe,he),zn=(0,ce.Z)(!1,{value:de,defaultValue:Wt}),ae=(0,Me.Z)(zn,2),mn=ae[0],ti=ae[1];function Wn(Ge,Ne){var Zn=mn;return xe||(Zn=Ge,ti(Zn),Je==null||Je(Zn,Ne)),Zn}function ii(Ge){Ge.which===ve.Z.LEFT?Wn(!1,Ge):Ge.which===ve.Z.RIGHT&&Wn(!0,Ge),Bn==null||Bn(Ge)}function mi(Ge){var Ne=Wn(!mn,Ge);we==null||we(Ne,Ge)}var yn=fe()(Gn,bn,(Ie={},(0,Se.Z)(Ie,"".concat(Gn,"-checked"),mn),(0,Se.Z)(Ie,"".concat(Gn,"-disabled"),xe),Ie));return Le.createElement("button",(0,Re.Z)({},vn,{type:"button",role:"switch","aria-checked":mn,disabled:xe,className:yn,ref:Ae,onKeyDown:ii,onClick:mi}),nn,Le.createElement("span",{className:"".concat(Gn,"-inner")},Le.createElement("span",{className:"".concat(Gn,"-inner-checked")},dn),Le.createElement("span",{className:"".concat(Gn,"-inner-unchecked")},ge)))});Oe.displayName="Switch";var je=Oe,kt=Ft(14088),et=Ft(36355),nt=Ft(1684),dt=Ft(19716),lt=Ft(64993),pt=Ft(17313),yt=Ft(83116),At=Ft(37613);const Dt=oe=>{const{componentCls:Ae,trackHeightSM:Ie,trackPadding:an,trackMinWidthSM:Gn,innerMinMarginSM:bn,innerMaxMarginSM:de,handleSizeSM:Wt}=oe,xe=`${Ae}-inner`;return{[Ae]:{[`&${Ae}-small`]:{minWidth:Gn,height:Ie,lineHeight:`${Ie}px`,[`${Ae}-inner`]:{paddingInlineStart:de,paddingInlineEnd:bn,[`${xe}-checked`]:{marginInlineStart:`calc(-100% + ${Wt+an*2}px - ${de*2}px)`,marginInlineEnd:`calc(100% - ${Wt+an*2}px + ${de*2}px)`},[`${xe}-unchecked`]:{marginTop:-Ie,marginInlineStart:0,marginInlineEnd:0}},[`${Ae}-handle`]:{width:Wt,height:Wt},[`${Ae}-loading-icon`]:{top:(Wt-oe.switchLoadingIconSize)/2,fontSize:oe.switchLoadingIconSize},[`&${Ae}-checked`]:{[`${Ae}-inner`]:{paddingInlineStart:bn,paddingInlineEnd:de,[`${xe}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${xe}-unchecked`]:{marginInlineStart:`calc(100% - ${Wt+an*2}px + ${de*2}px)`,marginInlineEnd:`calc(-100% + ${Wt+an*2}px - ${de*2}px)`}},[`${Ae}-handle`]:{insetInlineStart:`calc(100% - ${Wt+an}px)`}},[`&:not(${Ae}-disabled):active`]:{[`&:not(${Ae}-checked) ${xe}`]:{[`${xe}-unchecked`]:{marginInlineStart:oe.marginXXS/2,marginInlineEnd:-oe.marginXXS/2}},[`&${Ae}-checked ${xe}`]:{[`${xe}-checked`]:{marginInlineStart:-oe.marginXXS/2,marginInlineEnd:oe.marginXXS/2}}}}}}},Ut=oe=>{const{componentCls:Ae,handleSize:Ie}=oe;return{[Ae]:{[`${Ae}-loading-icon${oe.iconCls}`]:{position:"relative",top:(Ie-oe.fontSize)/2,color:oe.switchLoadingIconColor,verticalAlign:"top"},[`&${Ae}-checked ${Ae}-loading-icon`]:{color:oe.switchColor}}}},Qt=oe=>{const{componentCls:Ae,motion:Ie,trackPadding:an,handleBg:Gn,handleShadow:bn,handleSize:de}=oe,Wt=`${Ae}-handle`;return{[Ae]:{[Wt]:{position:"absolute",top:an,insetInlineStart:an,width:de,height:de,transition:`all ${oe.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:Gn,borderRadius:de/2,boxShadow:bn,transition:`all ${oe.switchDuration} ease-in-out`,content:'""'}},[`&${Ae}-checked ${Wt}`]:{insetInlineStart:`calc(100% - ${de+an}px)`},[`&:not(${Ae}-disabled):active`]:Ie?{[`${Wt}::before`]:{insetInlineEnd:oe.switchHandleActiveInset,insetInlineStart:0},[`&${Ae}-checked ${Wt}::before`]:{insetInlineEnd:0,insetInlineStart:oe.switchHandleActiveInset}}:{}}}},$t=oe=>{const{componentCls:Ae,trackHeight:Ie,trackPadding:an,innerMinMargin:Gn,innerMaxMargin:bn,handleSize:de}=oe,Wt=`${Ae}-inner`;return{[Ae]:{[Wt]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:bn,paddingInlineEnd:Gn,transition:`padding-inline-start ${oe.switchDuration} ease-in-out, padding-inline-end ${oe.switchDuration} ease-in-out`,[`${Wt}-checked, ${Wt}-unchecked`]:{display:"block",color:oe.colorTextLightSolid,fontSize:oe.fontSizeSM,transition:`margin-inline-start ${oe.switchDuration} ease-in-out, margin-inline-end ${oe.switchDuration} ease-in-out`,pointerEvents:"none"},[`${Wt}-checked`]:{marginInlineStart:`calc(-100% + ${de+an*2}px - ${bn*2}px)`,marginInlineEnd:`calc(100% - ${de+an*2}px + ${bn*2}px)`},[`${Wt}-unchecked`]:{marginTop:-Ie,marginInlineStart:0,marginInlineEnd:0}},[`&${Ae}-checked ${Wt}`]:{paddingInlineStart:Gn,paddingInlineEnd:bn,[`${Wt}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${Wt}-unchecked`]:{marginInlineStart:`calc(100% - ${de+an*2}px + ${bn*2}px)`,marginInlineEnd:`calc(-100% + ${de+an*2}px - ${bn*2}px)`}},[`&:not(${Ae}-disabled):active`]:{[`&:not(${Ae}-checked) ${Wt}`]:{[`${Wt}-unchecked`]:{marginInlineStart:an*2,marginInlineEnd:-an*2}},[`&${Ae}-checked ${Wt}`]:{[`${Wt}-checked`]:{marginInlineStart:-an*2,marginInlineEnd:an*2}}}}}},ne=oe=>{const{componentCls:Ae,trackHeight:Ie,trackMinWidth:an}=oe;return{[Ae]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,pt.Wf)(oe)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:an,height:Ie,lineHeight:`${Ie}px`,verticalAlign:"middle",background:oe.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${oe.motionDurationMid}`,userSelect:"none",[`&:hover:not(${Ae}-disabled)`]:{background:oe.colorTextTertiary}}),(0,pt.Qy)(oe)),{[`&${Ae}-checked`]:{background:oe.switchColor,[`&:hover:not(${Ae}-disabled)`]:{background:oe.colorPrimaryHover}},[`&${Ae}-loading, &${Ae}-disabled`]:{cursor:"not-allowed",opacity:oe.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${Ae}-rtl`]:{direction:"rtl"}})}};var _t=(0,yt.Z)("Switch",oe=>{const Ae=(0,At.TS)(oe,{switchDuration:oe.motionDurationMid,switchColor:oe.colorPrimary,switchDisabledOpacity:oe.opacityLoading,switchLoadingIconSize:oe.fontSizeIcon*.75,switchLoadingIconColor:`rgba(0, 0, 0, ${oe.opacityLoading})`,switchHandleActiveInset:"-30%"});return[ne(Ae),$t(Ae),Qt(Ae),Ut(Ae),Dt(Ae)]},oe=>{const{fontSize:Ae,lineHeight:Ie,controlHeight:an,colorWhite:Gn}=oe,bn=Ae*Ie,de=an/2,Wt=2,xe=bn-Wt*2,nn=de-Wt*2;return{trackHeight:bn,trackHeightSM:de,trackMinWidth:xe*2+Wt*4,trackMinWidthSM:nn*2+Wt*2,trackPadding:Wt,handleBg:Gn,handleSize:xe,handleSizeSM:nn,handleShadow:`0 2px 4px 0 ${new lt.C("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:xe/2,innerMaxMargin:xe+Wt+Wt*2,innerMinMarginSM:nn/2,innerMaxMarginSM:nn+Wt+Wt*2}}),Pe=function(oe,Ae){var Ie={};for(var an in oe)Object.prototype.hasOwnProperty.call(oe,an)&&Ae.indexOf(an)<0&&(Ie[an]=oe[an]);if(oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Gn=0,an=Object.getOwnPropertySymbols(oe);Gn<an.length;Gn++)Ae.indexOf(an[Gn])<0&&Object.prototype.propertyIsEnumerable.call(oe,an[Gn])&&(Ie[an[Gn]]=oe[an[Gn]]);return Ie};const ue=Le.forwardRef((oe,Ae)=>{const{prefixCls:Ie,size:an,disabled:Gn,loading:bn,className:de,rootClassName:Wt,style:xe}=oe,nn=Pe(oe,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:dn,direction:ge,switch:we}=Le.useContext(et.E_),Je=Le.useContext(nt.Z),Bn=(Gn!=null?Gn:Je)||bn,vn=dn("switch",Ie),zn=Le.createElement("div",{className:`${vn}-handle`},bn&&Le.createElement(ht.Z,{className:`${vn}-loading-icon`})),[ae,mn]=_t(vn),ti=(0,dt.Z)(an),Wn=fe()(we==null?void 0:we.className,{[`${vn}-small`]:ti==="small",[`${vn}-loading`]:bn,[`${vn}-rtl`]:ge==="rtl"},de,Wt,mn),ii=Object.assign(Object.assign({},we==null?void 0:we.style),xe);return ae(Le.createElement(kt.Z,{component:"Switch"},Le.createElement(je,Object.assign({},nn,{prefixCls:vn,className:Wn,style:ii,disabled:Bn,ref:Ae,loadingIcon:zn}))))});ue.__ANT_SWITCH=!0;var pe=ue},98228:function(Ye,jn,Ft){"use strict";Ft.d(jn,{default:function(){return ho}});var ht=Ft(92310),Ht=Ft.n(ht),fe=Ft(72308),Re=Ft(80702),Se=Ft(77321),Me=Ft(52487),Jt=Ft(74416),Le=Ft(62853),ce=Ft(77861),ve=Ft(17115),he=Ft(90782),Oe=Ft(18929),je=Ft(48736),kt=Ft(59301),et=function(pn){var wt=kt.useRef({valueLabels:new Map});return kt.useMemo(function(){var Li=wt.current.valueLabels,ui=new Map,Ce=pn.map(function(xn){var wn,Kn=xn.value,Ue=(wn=xn.label)!==null&&wn!==void 0?wn:Li.get(Kn);return ui.set(Kn,Ue),(0,Se.Z)((0,Se.Z)({},xn),{},{label:Ue})});return wt.current.valueLabels=ui,[Ce]},[pn])},nt=function(pn,wt,Li,ui){return kt.useMemo(function(){var Ce=pn.map(function(Ue){var qe=Ue.value;return qe}),xn=wt.map(function(Ue){var qe=Ue.value;return qe}),wn=Ce.filter(function(Ue){return!ui[Ue]});if(Li){var Kn=(0,he.S)(Ce,!0,ui);Ce=Kn.checkedKeys,xn=Kn.halfCheckedKeys}return[Array.from(new Set([].concat((0,Re.Z)(wn),(0,Re.Z)(Ce)))),xn]},[pn,wt,Li,ui])},dt=Ft(71430),lt=function(pn,wt){return kt.useMemo(function(){var Li=(0,dt.I8)(pn,{fieldNames:wt,initWrapper:function(Ce){return(0,Se.Z)((0,Se.Z)({},Ce),{},{valueEntities:new Map})},processEntity:function(Ce,xn){var wn=Ce.node[wt.value];if(0)var Kn;xn.valueEntities.set(wn,Ce)}});return Li},[pn,wt])},pt=Ft(49618),yt=Ft(11592),At=function(){return null},Dt=At,Ut=["children","value"];function Qt(pn){return(0,yt.Z)(pn).map(function(wt){if(!kt.isValidElement(wt)||!wt.type)return null;var Li=wt,ui=Li.key,Ce=Li.props,xn=Ce.children,wn=Ce.value,Kn=(0,Jt.Z)(Ce,Ut),Ue=(0,Se.Z)({key:ui,value:wn},Kn),qe=Qt(xn);return qe.length&&(Ue.children=qe),Ue}).filter(function(wt){return wt})}function $t(pn){if(!pn)return pn;var wt=(0,Se.Z)({},pn);return"props"in wt||Object.defineProperty(wt,"props",{get:function(){return(0,je.ZP)(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),wt}}),wt}function ne(pn,wt,Li,ui,Ce,xn){var wn=null,Kn=null;function Ue(){function qe(le){var re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0",qt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return le.map(function(Ze,An){var Ln="".concat(re,"-").concat(An),Be=Ze[xn.value],un=Li.includes(Be),Qn=qe(Ze[xn.children]||[],Ln,un),Nn=kt.createElement(Dt,Ze,Qn.map(function(zt){return zt.node}));if(wt===Be&&(wn=Nn),un){var ai={pos:Ln,node:Nn,children:Qn};return qt||Kn.push(ai),ai}return null}).filter(function(Ze){return Ze})}Kn||(Kn=[],qe(ui),Kn.sort(function(le,re){var qt=le.node.props.value,Ze=re.node.props.value,An=Li.indexOf(qt),Ln=Li.indexOf(Ze);return An-Ln}))}Object.defineProperty(pn,"triggerNode",{get:function(){return(0,je.ZP)(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),Ue(),wn}}),Object.defineProperty(pn,"allCheckedNodes",{get:function(){return(0,je.ZP)(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),Ue(),Ce?Kn:Kn.map(function(le){var re=le.node;return re})}})}var _t=function(pn,wt,Li){var ui=Li.treeNodeFilterProp,Ce=Li.filterTreeNode,xn=Li.fieldNames,wn=xn.children;return kt.useMemo(function(){if(!wt||Ce===!1)return pn;var Kn;if(typeof Ce=="function")Kn=Ce;else{var Ue=wt.toUpperCase();Kn=function(re,qt){var Ze=qt[ui];return String(Ze).toUpperCase().includes(Ue)}}function qe(le){var re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return le.reduce(function(qt,Ze){var An=Ze[wn],Ln=re||Kn(wt,$t(Ze)),Be=qe(An||[],Ln);return(Ln||Be.length)&&qt.push((0,Se.Z)((0,Se.Z)({},Ze),{},(0,pt.Z)({isLeaf:void 0},wn,Be))),qt},[])}return qe(pn)},[pn,wt,wn,ui,Ce])};function Pe(pn){var wt=kt.useRef();wt.current=pn;var Li=kt.useCallback(function(){return wt.current.apply(wt,arguments)},[]);return Li}function ue(pn,wt){var Li=wt.id,ui=wt.pId,Ce=wt.rootPId,xn={},wn=[],Kn=pn.map(function(Ue){var qe=(0,Se.Z)({},Ue),le=qe[Li];return xn[le]=qe,qe.key=qe.key||le,qe});return Kn.forEach(function(Ue){var qe=Ue[ui],le=xn[qe];le&&(le.children=le.children||[],le.children.push(Ue)),(qe===Ce||!le&&Ce===null)&&wn.push(Ue)}),wn}function pe(pn,wt,Li){return kt.useMemo(function(){return pn?Li?ue(pn,(0,Se.Z)({id:"id",pId:"pId",rootPId:null},Li!==!0?Li:{})):pn:Qt(wt)},[wt,Li,pn])}var oe=kt.createContext(null),Ae=oe,Ie=Ft(10228),an=Ft(80547),Gn=Ft(54844),bn=kt.createContext(null),de=bn;function Wt(pn){return Array.isArray(pn)?pn:pn!==void 0?[pn]:[]}function xe(pn){var wt=pn||{},Li=wt.label,ui=wt.value,Ce=wt.children,xn=ui||"value";return{_title:Li?[Li]:["title","label"],value:xn,key:xn,children:Ce||"children"}}function nn(pn){return!pn||pn.disabled||pn.disableCheckbox||pn.checkable===!1}function dn(pn,wt){var Li=[];function ui(Ce){Ce.forEach(function(xn){var wn=xn[wt.children];wn&&(Li.push(xn[wt.value]),ui(wn))})}return ui(pn),Li}function ge(pn){return pn==null}var we={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Je=function(wt,Li){var ui=(0,ce.lk)(),Ce=ui.prefixCls,xn=ui.multiple,wn=ui.searchValue,Kn=ui.toggleOpen,Ue=ui.open,qe=ui.notFoundContent,le=kt.useContext(de),re=le.virtual,qt=le.listHeight,Ze=le.listItemHeight,An=le.treeData,Ln=le.fieldNames,Be=le.onSelect,un=le.dropdownMatchSelectWidth,Qn=le.treeExpandAction,Nn=kt.useContext(Ae),ai=Nn.checkable,zt=Nn.checkedKeys,Fe=Nn.halfCheckedKeys,Dn=Nn.treeExpandedKeys,On=Nn.treeDefaultExpandAll,Te=Nn.treeDefaultExpandedKeys,Ve=Nn.onTreeExpand,Vn=Nn.treeIcon,li=Nn.showTreeIcon,oi=Nn.switcherIcon,Rn=Nn.treeLine,qn=Nn.treeNodeFilterProp,si=Nn.loadData,Xi=Nn.treeLoadedKeys,Ii=Nn.treeMotion,ji=Nn.onTreeLoad,Qe=Nn.keyEntities,ao=kt.useRef(),Oi=(0,an.Z)(function(){return An},[Ue,An],function(Lo,fo){return fo[0]&&Lo[1]!==fo[1]}),Ci=kt.useState(null),De=(0,Me.Z)(Ci,2),En=De[0],ci=De[1],Pi=Qe[En],_n=kt.useMemo(function(){return ai?{checked:zt,halfChecked:Fe}:null},[ai,zt,Fe]);kt.useEffect(function(){if(Ue&&!xn&&zt.length){var Lo;(Lo=ao.current)===null||Lo===void 0||Lo.scrollTo({key:zt[0]}),ci(zt[0])}},[Ue]);var wi=String(wn).toLowerCase(),_i=function(fo){return wi?String(fo[qn]).toLowerCase().includes(wi):!1},Zi=kt.useState(Te),oo=(0,Me.Z)(Zi,2),$i=oo[0],$e=oo[1],Gi=kt.useState(null),_e=(0,Me.Z)(Gi,2),xo=_e[0],Co=_e[1],to=kt.useMemo(function(){return Dn?(0,Re.Z)(Dn):wn?xo:$i},[$i,xo,Dn,wn]);kt.useEffect(function(){wn&&Co(dn(An,Ln))},[wn]);var Bo=function(fo){$e(fo),Co(fo),Ve&&Ve(fo)},co=function(fo){fo.preventDefault()},Hi=function(fo,ri){var It=ri.node;ai&&nn(It)||(Be(It.key,{selected:!zt.includes(It.key)}),xn||Kn(!1))};if(kt.useImperativeHandle(Li,function(){var Lo;return{scrollTo:(Lo=ao.current)===null||Lo===void 0?void 0:Lo.scrollTo,onKeyDown:function(ri){var It,qo=ri.which;switch(qo){case Ie.Z.UP:case Ie.Z.DOWN:case Ie.Z.LEFT:case Ie.Z.RIGHT:(It=ao.current)===null||It===void 0||It.onKeyDown(ri);break;case Ie.Z.ENTER:{if(Pi){var _o=(Pi==null?void 0:Pi.node)||{},Sr=_o.selectable,Fr=_o.value;Sr!==!1&&Hi(null,{node:{key:En},selected:!zt.includes(Fr)})}break}case Ie.Z.ESC:Kn(!1)}},onKeyUp:function(){}}}),Oi.length===0)return kt.createElement("div",{role:"listbox",className:"".concat(Ce,"-empty"),onMouseDown:co},qe);var wo={fieldNames:Ln};return Xi&&(wo.loadedKeys=Xi),to&&(wo.expandedKeys=to),kt.createElement("div",{onMouseDown:co},Pi&&Ue&&kt.createElement("span",{style:we,"aria-live":"assertive"},Pi.node.value),kt.createElement(Gn.Z,(0,fe.Z)({ref:ao,focusable:!1,prefixCls:"".concat(Ce,"-tree"),treeData:Oi,height:qt,itemHeight:Ze,virtual:re!==!1&&un!==!1,multiple:xn,icon:Vn,showIcon:li,switcherIcon:oi,showLine:Rn,loadData:wn?null:si,motion:Ii,activeKey:En,checkable:ai,checkStrictly:!0,checkedKeys:_n,selectedKeys:ai?[]:zt,defaultExpandAll:On},wo,{onActiveChange:ci,onSelect:Hi,onCheck:Hi,onExpand:Bo,onLoad:ji,filterTreeNode:_i,expandAction:Qn})))},Bn=kt.forwardRef(Je);Bn.displayName="OptionList";var vn=Bn,zn="SHOW_ALL",ae="SHOW_PARENT",mn="SHOW_CHILD";function ti(pn,wt,Li,ui){var Ce=new Set(pn);return wt===mn?pn.filter(function(xn){var wn=Li[xn];return!(wn&&wn.children&&wn.children.some(function(Kn){var Ue=Kn.node;return Ce.has(Ue[ui.value])})&&wn.children.every(function(Kn){var Ue=Kn.node;return nn(Ue)||Ce.has(Ue[ui.value])}))}):wt===ae?pn.filter(function(xn){var wn=Li[xn],Kn=wn?wn.parent:null;return!(Kn&&!nn(Kn.node)&&Ce.has(Kn.key))}):pn}function Wn(pn){var wt=pn.searchPlaceholder,Li=pn.treeCheckStrictly,ui=pn.treeCheckable,Ce=pn.labelInValue,xn=pn.value,wn=pn.multiple;warning(!wt,"`searchPlaceholder` has been removed."),Li&&Ce===!1&&warning(!1,"`treeCheckStrictly` will force set `labelInValue` to `true`."),(Ce||Li)&&warning(toArray(xn).every(function(Kn){return Kn&&_typeof(Kn)==="object"&&"value"in Kn}),"Invalid prop `value` supplied to `TreeSelect`. You should use { label: string, value: string | number } or [{ label: string, value: string | number }] instead."),Li||wn||ui?warning(!xn||Array.isArray(xn),"`value` should be an array when `TreeSelect` is checkable or multiple."):warning(!Array.isArray(xn),"`value` should not be array when `TreeSelect` is single mode.")}var ii=null,mi=["id","prefixCls","value","defaultValue","onChange","onSelect","onDeselect","searchValue","inputValue","onSearch","autoClearSearchValue","filterTreeNode","treeNodeFilterProp","showCheckedStrategy","treeNodeLabelProp","multiple","treeCheckable","treeCheckStrictly","labelInValue","fieldNames","treeDataSimpleMode","treeData","children","loadData","treeLoadedKeys","onTreeLoad","treeDefaultExpandAll","treeExpandedKeys","treeDefaultExpandedKeys","onTreeExpand","treeExpandAction","virtual","listHeight","listItemHeight","onDropdownVisibleChange","dropdownMatchSelectWidth","treeLine","treeIcon","showTreeIcon","switcherIcon","treeMotion"];function yn(pn){return!pn||(0,Le.Z)(pn)!=="object"}var Ge=kt.forwardRef(function(pn,wt){var Li=pn.id,ui=pn.prefixCls,Ce=ui===void 0?"rc-tree-select":ui,xn=pn.value,wn=pn.defaultValue,Kn=pn.onChange,Ue=pn.onSelect,qe=pn.onDeselect,le=pn.searchValue,re=pn.inputValue,qt=pn.onSearch,Ze=pn.autoClearSearchValue,An=Ze===void 0?!0:Ze,Ln=pn.filterTreeNode,Be=pn.treeNodeFilterProp,un=Be===void 0?"value":Be,Qn=pn.showCheckedStrategy,Nn=pn.treeNodeLabelProp,ai=pn.multiple,zt=pn.treeCheckable,Fe=pn.treeCheckStrictly,Dn=pn.labelInValue,On=pn.fieldNames,Te=pn.treeDataSimpleMode,Ve=pn.treeData,Vn=pn.children,li=pn.loadData,oi=pn.treeLoadedKeys,Rn=pn.onTreeLoad,qn=pn.treeDefaultExpandAll,si=pn.treeExpandedKeys,Xi=pn.treeDefaultExpandedKeys,Ii=pn.onTreeExpand,ji=pn.treeExpandAction,Qe=pn.virtual,ao=pn.listHeight,Oi=ao===void 0?200:ao,Ci=pn.listItemHeight,De=Ci===void 0?20:Ci,En=pn.onDropdownVisibleChange,ci=pn.dropdownMatchSelectWidth,Pi=ci===void 0?!0:ci,_n=pn.treeLine,wi=pn.treeIcon,_i=pn.showTreeIcon,Zi=pn.switcherIcon,oo=pn.treeMotion,$i=(0,Jt.Z)(pn,mi),$e=(0,ve.ZP)(Li),Gi=zt&&!Fe,_e=zt||Fe,xo=Fe||Dn,Co=_e||ai,to=(0,Oe.Z)(wn,{value:xn}),Bo=(0,Me.Z)(to,2),co=Bo[0],Hi=Bo[1],wo=kt.useMemo(function(){return zt?Qn||mn:zn},[Qn,zt]),Lo=kt.useMemo(function(){return xe(On)},[JSON.stringify(On)]),fo=(0,Oe.Z)("",{value:le!==void 0?le:re,postState:function(uo){return uo||""}}),ri=(0,Me.Z)(fo,2),It=ri[0],qo=ri[1],_o=function(uo){qo(uo),qt==null||qt(uo)},Sr=pe(Ve,Vn,Te),Fr=lt(Sr,Lo),Xo=Fr.keyEntities,kr=Fr.valueEntities,Zt=kt.useCallback(function(jo){var uo=[],Fo=[];return jo.forEach(function(mr){kr.has(mr)?Fo.push(mr):uo.push(mr)}),{missingRawValues:uo,existRawValues:Fo}},[kr]),kn=_t(Sr,It,{fieldNames:Lo,treeNodeFilterProp:un,filterTreeNode:Ln}),Mn=kt.useCallback(function(jo){if(jo){if(Nn)return jo[Nn];for(var uo=Lo._title,Fo=0;Fo<uo.length;Fo+=1){var mr=jo[uo[Fo]];if(mr!==void 0)return mr}}},[Lo,Nn]),Un=kt.useCallback(function(jo){var uo=Wt(jo);return uo.map(function(Fo){return yn(Fo)?{value:Fo}:Fo})},[]),gn=kt.useCallback(function(jo){var uo=Un(jo);return uo.map(function(Fo){var mr=Fo.label,ar=Fo.value,Qr=Fo.halfChecked,$o,yi=kr.get(ar);if(yi){var Ss;mr=(Ss=mr)!==null&&Ss!==void 0?Ss:Mn(yi.node),$o=yi.node.disabled}else if(mr===void 0){var Aa=Un(co).find(function(Rs){return Rs.value===ar});mr=Aa.label}return{label:mr,value:ar,halfChecked:Qr,disabled:$o}})},[kr,Mn,Un,co]),Tn=kt.useMemo(function(){return Un(co)},[Un,co]),Pn=kt.useMemo(function(){var jo=[],uo=[];return Tn.forEach(function(Fo){Fo.halfChecked?uo.push(Fo):jo.push(Fo)}),[jo,uo]},[Tn]),Ee=(0,Me.Z)(Pn,2),fn=Ee[0],gi=Ee[1],Wi=kt.useMemo(function(){return fn.map(function(jo){return jo.value})},[fn]),ki=nt(fn,gi,Gi,Xo),vi=(0,Me.Z)(ki,2),Ji=vi[0],Ki=vi[1],Jo=kt.useMemo(function(){var jo=ti(Ji,wo,Xo,Lo),uo=jo.map(function(Qr){var $o,yi,Ss;return($o=(yi=Xo[Qr])===null||yi===void 0||(Ss=yi.node)===null||Ss===void 0?void 0:Ss[Lo.value])!==null&&$o!==void 0?$o:Qr}),Fo=uo.map(function(Qr){var $o=fn.find(function(yi){return yi.value===Qr});return{value:Qr,label:$o==null?void 0:$o.label}}),mr=gn(Fo),ar=mr[0];return!Co&&ar&&ge(ar.value)&&ge(ar.label)?[]:mr.map(function(Qr){var $o;return(0,Se.Z)((0,Se.Z)({},Qr),{},{label:($o=Qr.label)!==null&&$o!==void 0?$o:Qr.value})})},[Lo,Co,Ji,fn,gn,wo,Xo]),nr=et(Jo),$r=(0,Me.Z)(nr,1),be=$r[0],Ir=Pe(function(jo,uo,Fo){var mr=gn(jo);if(Hi(mr),An&&qo(""),Kn){var ar=jo;if(Gi){var Qr=ti(jo,wo,Xo,Lo);ar=Qr.map(function(ir){var Xr=kr.get(ir);return Xr?Xr.node[Lo.value]:ir})}var $o=uo||{triggerValue:void 0,selected:void 0},yi=$o.triggerValue,Ss=$o.selected,Aa=ar;if(Fe){var Rs=gi.filter(function(ir){return!ar.includes(ir.value)});Aa=[].concat((0,Re.Z)(Aa),(0,Re.Z)(Rs))}var Ll=gn(Aa),_a={preValue:fn,triggerValue:yi},ni=!0;(Fe||Fo==="selection"&&!Ss)&&(ni=!1),ne(_a,yi,jo,Sr,ni,Lo),_e?_a.checked=Ss:_a.selected=Ss;var lr=xo?Ll:Ll.map(function(ir){return ir.value});Kn(Co?lr:lr[0],xo?null:Ll.map(function(ir){return ir.label}),_a)}}),Ea=kt.useCallback(function(jo,uo){var Fo,mr=uo.selected,ar=uo.source,Qr=Xo[jo],$o=Qr==null?void 0:Qr.node,yi=(Fo=$o==null?void 0:$o[Lo.value])!==null&&Fo!==void 0?Fo:jo;if(!Co)Ir([yi],{selected:!0,triggerValue:yi},"option");else{var Ss=mr?[].concat((0,Re.Z)(Wi),[yi]):Ji.filter(function(Xr){return Xr!==yi});if(Gi){var Aa=Zt(Ss),Rs=Aa.missingRawValues,Ll=Aa.existRawValues,_a=Ll.map(function(Xr){return kr.get(Xr).key}),ni;if(mr){var lr=(0,he.S)(_a,!0,Xo);ni=lr.checkedKeys}else{var ir=(0,he.S)(_a,{checked:!1,halfCheckedKeys:Ki},Xo);ni=ir.checkedKeys}Ss=[].concat((0,Re.Z)(Rs),(0,Re.Z)(ni.map(function(Xr){return Xo[Xr].node[Lo.value]})))}Ir(Ss,{selected:mr,triggerValue:yi},ar||"option")}mr||!Co?Ue==null||Ue(yi,$t($o)):qe==null||qe(yi,$t($o))},[Zt,kr,Xo,Lo,Co,Wi,Ir,Gi,Ue,qe,Ji,Ki]),js=kt.useCallback(function(jo){if(En){var uo={};Object.defineProperty(uo,"documentClickClose",{get:function(){return(0,je.ZP)(!1,"Second param of `onDropdownVisibleChange` has been removed."),!1}}),En(jo,uo)}},[En]),cl=Pe(function(jo,uo){var Fo=jo.map(function(mr){return mr.value});if(uo.type==="clear"){Ir(Fo,{},"selection");return}uo.values.length&&Ea(uo.values[0].value,{selected:!1,source:"selection"})}),pr=kt.useMemo(function(){return{virtual:Qe,dropdownMatchSelectWidth:Pi,listHeight:Oi,listItemHeight:De,treeData:kn,fieldNames:Lo,onSelect:Ea,treeExpandAction:ji}},[Qe,Pi,Oi,De,kn,Lo,Ea,ji]),fa=kt.useMemo(function(){return{checkable:_e,loadData:li,treeLoadedKeys:oi,onTreeLoad:Rn,checkedKeys:Ji,halfCheckedKeys:Ki,treeDefaultExpandAll:qn,treeExpandedKeys:si,treeDefaultExpandedKeys:Xi,onTreeExpand:Ii,treeIcon:wi,treeMotion:oo,showTreeIcon:_i,switcherIcon:Zi,treeLine:_n,treeNodeFilterProp:un,keyEntities:Xo}},[_e,li,oi,Rn,Ji,Ki,qn,si,Xi,Ii,wi,oo,_i,Zi,_n,un,Xo]);return kt.createElement(de.Provider,{value:pr},kt.createElement(Ae.Provider,{value:fa},kt.createElement(ce.Ac,(0,fe.Z)({ref:wt},$i,{id:$e,prefixCls:Ce,mode:Co?"multiple":void 0,displayValues:be,onDisplayValuesChange:cl,searchValue:It,onSearch:_o,OptionList:vn,emptyOptions:!Sr.length,onDropdownVisibleChange:js,dropdownMatchSelectWidth:Pi}))))}),Ne=Ge;Ne.TreeNode=Dt,Ne.SHOW_ALL=zn,Ne.SHOW_PARENT=ae,Ne.SHOW_CHILD=mn;var Zn=Ne,sn=Zn,We=Ft(2738),en=Ft(53487),Nt=Ft(62892),Ct=Ft(19080),St=Ft(36355),Bt=Ft(1684),Gt=Ft(93891),Lt=Ft(19716),ie=Ft(32441),Ke=Ft(14154),ln=Ft(58582),hn=Ft(84443),Jn=Ft(66339),di=Ft(33234),fi=Ft(71997),pi=Ft(98447),Bi=Ft(37613),qi=Ft(83116),Qi=Ft(20648);const Ao=pn=>{const{componentCls:wt,treePrefixCls:Li,colorBgElevated:ui}=pn,Ce=`.${Li}`;return[{[`${wt}-dropdown`]:[{padding:`${pn.paddingXS}px ${pn.paddingXS/2}px`},(0,Qi.Yk)(Li,(0,Bi.TS)(pn,{colorBgContainer:ui})),{[Ce]:{borderRadius:0,[`${Ce}-list-holder-inner`]:{alignItems:"stretch",[`${Ce}-treenode`]:{[`${Ce}-node-content-wrapper`]:{flex:"auto"}}}}},(0,pi.C2)(`${Li}-checkbox`,pn),{"&-rtl":{direction:"rtl",[`${Ce}-switcher${Ce}-switcher_close`]:{[`${Ce}-switcher-icon svg`]:{transform:"rotate(90deg)"}}}}]}]};function Mo(pn,wt){return(0,qi.Z)("TreeSelect",Li=>{const ui=(0,Bi.TS)(Li,{treePrefixCls:wt});return[Ao(ui)]},Qi.TM)(pn)}var Ti=function(pn,wt){var Li={};for(var ui in pn)Object.prototype.hasOwnProperty.call(pn,ui)&&wt.indexOf(ui)<0&&(Li[ui]=pn[ui]);if(pn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ce=0,ui=Object.getOwnPropertySymbols(pn);Ce<ui.length;Ce++)wt.indexOf(ui[Ce])<0&&Object.prototype.propertyIsEnumerable.call(pn,ui[Ce])&&(Li[ui[Ce]]=pn[ui[Ce]]);return Li};const Ui=(pn,wt)=>{var Li,{prefixCls:ui,size:Ce,disabled:xn,bordered:wn=!0,className:Kn,rootClassName:Ue,treeCheckable:qe,multiple:le,listHeight:re=256,listItemHeight:qt=26,placement:Ze,notFoundContent:An,switcherIcon:Ln,treeLine:Be,getPopupContainer:un,popupClassName:Qn,dropdownClassName:Nn,treeIcon:ai=!1,transitionName:zt,choiceTransitionName:Fe="",status:Dn,treeExpandAction:On,builtinPlacements:Te,dropdownMatchSelectWidth:Ve,popupMatchSelectWidth:Vn,allowClear:li}=pn,oi=Ti(pn,["prefixCls","size","disabled","bordered","className","rootClassName","treeCheckable","multiple","listHeight","listItemHeight","placement","notFoundContent","switcherIcon","treeLine","getPopupContainer","popupClassName","dropdownClassName","treeIcon","transitionName","choiceTransitionName","status","treeExpandAction","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","allowClear"]);const{getPopupContainer:Rn,getPrefixCls:qn,renderEmpty:si,direction:Xi,virtual:Ii,popupMatchSelectWidth:ji,popupOverflow:Qe}=kt.useContext(St.E_),ao=qn(),Oi=qn("select",ui),Ci=qn("select-tree",ui),De=qn("tree-select",ui),{compactSize:En,compactItemClassnames:ci}=(0,di.ri)(Oi,Xi),[Pi,_n]=(0,Ke.Z)(Oi),[wi]=Mo(De,Ci),_i=Ht()(Qn||Nn,`${De}-dropdown`,{[`${De}-dropdown-rtl`]:Xi==="rtl"},Ue,_n),Zi=!!(qe||le),oo=(0,hn.Z)(oi.suffixIcon,oi.showArrow),$i=(Li=Vn!=null?Vn:Ve)!==null&&Li!==void 0?Li:ji,{status:$e,hasFeedback:Gi,isFormItemInput:_e,feedbackIcon:xo}=kt.useContext(ie.aM),Co=(0,Ct.F)($e,Dn),{suffixIcon:to,removeIcon:Bo,clearIcon:co}=(0,Jn.Z)(Object.assign(Object.assign({},oi),{multiple:Zi,showSuffixIcon:oo,hasFeedback:Gi,feedbackIcon:xo,prefixCls:Oi,componentName:"TreeSelect"})),Hi=li===!0?{clearIcon:co}:li;let wo;An!==void 0?wo=An:wo=(si==null?void 0:si("Select"))||kt.createElement(Gt.Z,{componentName:"Select"});const Lo=(0,We.Z)(oi,["suffixIcon","itemIcon","removeIcon","clearIcon","switcherIcon"]),fo=kt.useMemo(()=>Ze!==void 0?Ze:Xi==="rtl"?"bottomRight":"bottomLeft",[Ze,Xi]),ri=(0,ln.Z)(Te,Qe),It=(0,Lt.Z)(kr=>{var Zt;return(Zt=Ce!=null?Ce:En)!==null&&Zt!==void 0?Zt:kr}),qo=kt.useContext(Bt.Z),_o=xn!=null?xn:qo,Sr=Ht()(!ui&&De,{[`${Oi}-lg`]:It==="large",[`${Oi}-sm`]:It==="small",[`${Oi}-rtl`]:Xi==="rtl",[`${Oi}-borderless`]:!wn,[`${Oi}-in-form-item`]:_e},(0,Ct.Z)(Oi,Co,Gi),ci,Kn,Ue,_n),Fr=kr=>kt.createElement(fi.Z,{prefixCls:Ci,switcherIcon:Ln,treeNodeProps:kr,showLine:Be}),Xo=kt.createElement(sn,Object.assign({virtual:Ii,disabled:_o},Lo,{dropdownMatchSelectWidth:$i,builtinPlacements:ri,ref:wt,prefixCls:Oi,className:Sr,listHeight:re,listItemHeight:qt,treeCheckable:qe&&kt.createElement("span",{className:`${Oi}-tree-checkbox-inner`}),treeLine:!!Be,suffixIcon:to,multiple:Zi,placement:fo,removeIcon:Bo,allowClear:Hi,switcherIcon:Fr,showTreeIcon:ai,notFoundContent:wo,getPopupContainer:un||Rn,treeMotion:null,dropdownClassName:_i,choiceTransitionName:(0,Nt.m)(ao,"",Fe),transitionName:(0,Nt.m)(ao,"slide-up",zt),treeExpandAction:On}));return Pi(wi(Xo))},mo=kt.forwardRef(Ui),xi=(0,en.Z)(mo);mo.TreeNode=Dt,mo.SHOW_ALL=zn,mo.SHOW_PARENT=ae,mo.SHOW_CHILD=mn,mo._InternalPanelDoNotUseOrYouWillBeFired=xi;var ho=mo},99498:function(Ye,jn,Ft){(function(ht){ht(Ft(89780))})(function(ht){ht.defineOption("placeholder","",function(Le,ce,ve){var he=ve&&ve!=ht.Init;if(ce&&!he)Le.on("blur",Se),Le.on("change",Me),Le.on("swapDoc",Me),ht.on(Le.getInputField(),"compositionupdate",Le.state.placeholderCompose=function(){Re(Le)}),Me(Le);else if(!ce&&he){Le.off("blur",Se),Le.off("change",Me),Le.off("swapDoc",Me),ht.off(Le.getInputField(),"compositionupdate",Le.state.placeholderCompose),Ht(Le);var Oe=Le.getWrapperElement();Oe.className=Oe.className.replace(" CodeMirror-empty","")}ce&&!Le.hasFocus()&&Se(Le)});function Ht(Le){Le.state.placeholder&&(Le.state.placeholder.parentNode.removeChild(Le.state.placeholder),Le.state.placeholder=null)}function fe(Le){Ht(Le);var ce=Le.state.placeholder=document.createElement("pre");ce.style.cssText="height: 0; overflow: visible",ce.style.direction=Le.getOption("direction"),ce.className="CodeMirror-placeholder CodeMirror-line-like";var ve=Le.getOption("placeholder");typeof ve=="string"&&(ve=document.createTextNode(ve)),ce.appendChild(ve),Le.display.lineSpace.insertBefore(ce,Le.display.lineSpace.firstChild)}function Re(Le){setTimeout(function(){var ce=!1,ve=Le.getInputField();ve.nodeName=="TEXTAREA"?ce=!ve.value:Le.lineCount()==1&&(ce=!/[^\u200b]/.test(ve.querySelector(".CodeMirror-line").textContent)),ce?fe(Le):Ht(Le)},20)}function Se(Le){Jt(Le)&&fe(Le)}function Me(Le){var ce=Le.getWrapperElement(),ve=Jt(Le);ce.className=ce.className.replace(" CodeMirror-empty","")+(ve?" CodeMirror-empty":""),ve?fe(Le):Ht(Le)}function Jt(Le){return Le.lineCount()===1&&Le.getLine(0)===""}})},25717:function(Ye,jn,Ft){(function(ht){ht(Ft(89780))})(function(ht){var Ht={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},fe=ht.Pos;ht.defineOption("autoCloseBrackets",!1,function(et,nt,dt){dt&&dt!=ht.Init&&(et.removeKeyMap(Se),et.state.closeBrackets=null),nt&&(Me(Re(nt,"pairs")),et.state.closeBrackets=nt,et.addKeyMap(Se))});function Re(et,nt){return nt=="pairs"&&typeof et=="string"?et:typeof et=="object"&&et[nt]!=null?et[nt]:Ht[nt]}var Se={Backspace:ce,Enter:ve};function Me(et){for(var nt=0;nt<et.length;nt++){var dt=et.charAt(nt),lt="'"+dt+"'";Se[lt]||(Se[lt]=Jt(dt))}}Me(Ht.pairs+"`");function Jt(et){return function(nt){return Oe(nt,et)}}function Le(et){var nt=et.state.closeBrackets;if(!nt||nt.override)return nt;var dt=et.getModeAt(et.getCursor());return dt.closeBrackets||nt}function ce(et){var nt=Le(et);if(!nt||et.getOption("disableInput"))return ht.Pass;for(var dt=Re(nt,"pairs"),lt=et.listSelections(),pt=0;pt<lt.length;pt++){if(!lt[pt].empty())return ht.Pass;var yt=je(et,lt[pt].head);if(!yt||dt.indexOf(yt)%2!=0)return ht.Pass}for(var pt=lt.length-1;pt>=0;pt--){var At=lt[pt].head;et.replaceRange("",fe(At.line,At.ch-1),fe(At.line,At.ch+1),"+delete")}}function ve(et){var nt=Le(et),dt=nt&&Re(nt,"explode");if(!dt||et.getOption("disableInput"))return ht.Pass;for(var lt=et.listSelections(),pt=0;pt<lt.length;pt++){if(!lt[pt].empty())return ht.Pass;var yt=je(et,lt[pt].head);if(!yt||dt.indexOf(yt)%2!=0)return ht.Pass}et.operation(function(){var At=et.lineSeparator()||`
|
|
`;et.replaceSelection(At+At,null),et.execCommand("goCharLeft"),lt=et.listSelections();for(var Dt=0;Dt<lt.length;Dt++){var Ut=lt[Dt].head.line;et.indentLine(Ut,null,!0),et.indentLine(Ut+1,null,!0)}})}function he(et){var nt=ht.cmpPos(et.anchor,et.head)>0;return{anchor:new fe(et.anchor.line,et.anchor.ch+(nt?-1:1)),head:new fe(et.head.line,et.head.ch+(nt?1:-1))}}function Oe(et,nt){var dt=Le(et);if(!dt||et.getOption("disableInput"))return ht.Pass;var lt=Re(dt,"pairs"),pt=lt.indexOf(nt);if(pt==-1)return ht.Pass;for(var yt=Re(dt,"closeBefore"),At=Re(dt,"triples"),Dt=lt.charAt(pt+1)==nt,Ut=et.listSelections(),Qt=pt%2==0,$t,ne=0;ne<Ut.length;ne++){var _t=Ut[ne],Pe=_t.head,ue,pe=et.getRange(Pe,fe(Pe.line,Pe.ch+1));if(Qt&&!_t.empty())ue="surround";else if((Dt||!Qt)&&pe==nt)Dt&&kt(et,Pe)?ue="both":At.indexOf(nt)>=0&&et.getRange(Pe,fe(Pe.line,Pe.ch+3))==nt+nt+nt?ue="skipThree":ue="skip";else if(Dt&&Pe.ch>1&&At.indexOf(nt)>=0&&et.getRange(fe(Pe.line,Pe.ch-2),Pe)==nt+nt){if(Pe.ch>2&&/\bstring/.test(et.getTokenTypeAt(fe(Pe.line,Pe.ch-2))))return ht.Pass;ue="addFour"}else if(Dt){var oe=Pe.ch==0?" ":et.getRange(fe(Pe.line,Pe.ch-1),Pe);if(!ht.isWordChar(pe)&&oe!=nt&&!ht.isWordChar(oe))ue="both";else return ht.Pass}else if(Qt&&(pe.length===0||/\s/.test(pe)||yt.indexOf(pe)>-1))ue="both";else return ht.Pass;if(!$t)$t=ue;else if($t!=ue)return ht.Pass}var Ae=pt%2?lt.charAt(pt-1):nt,Ie=pt%2?nt:lt.charAt(pt+1);et.operation(function(){if($t=="skip")et.execCommand("goCharRight");else if($t=="skipThree")for(var an=0;an<3;an++)et.execCommand("goCharRight");else if($t=="surround"){for(var Gn=et.getSelections(),an=0;an<Gn.length;an++)Gn[an]=Ae+Gn[an]+Ie;et.replaceSelections(Gn,"around"),Gn=et.listSelections().slice();for(var an=0;an<Gn.length;an++)Gn[an]=he(Gn[an]);et.setSelections(Gn)}else $t=="both"?(et.replaceSelection(Ae+Ie,null),et.triggerElectric(Ae+Ie),et.execCommand("goCharLeft")):$t=="addFour"&&(et.replaceSelection(Ae+Ae+Ae+Ae,"before"),et.execCommand("goCharRight"))})}function je(et,nt){var dt=et.getRange(fe(nt.line,nt.ch-1),fe(nt.line,nt.ch+1));return dt.length==2?dt:null}function kt(et,nt){var dt=et.getTokenAt(fe(nt.line,nt.ch+1));return/\bstring/.test(dt.type)&&dt.start==nt.ch&&(nt.ch==0||!/\bstring/.test(et.getTokenTypeAt(nt)))}})},6313:function(Ye,jn,Ft){(function(ht){ht(Ft(89780),Ft(32855))})(function(ht){ht.defineOption("autoCloseTags",!1,function(ce,ve,he){if(he!=ht.Init&&he&&ce.removeKeyMap("autoCloseTags"),!!ve){var Oe={name:"autoCloseTags"};(typeof ve!="object"||ve.whenClosing!==!1)&&(Oe["'/'"]=function(je){return Me(je)}),(typeof ve!="object"||ve.whenOpening!==!1)&&(Oe["'>'"]=function(je){return Re(je)}),ce.addKeyMap(Oe)}});var Ht=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],fe=["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 Re(ce){if(ce.getOption("disableInput"))return ht.Pass;for(var ve=ce.listSelections(),he=[],Oe=ce.getOption("autoCloseTags"),je=0;je<ve.length;je++){if(!ve[je].empty())return ht.Pass;var kt=ve[je].head,et=ce.getTokenAt(kt),nt=ht.innerMode(ce.getMode(),et.state),dt=nt.state,lt=nt.mode.xmlCurrentTag&&nt.mode.xmlCurrentTag(dt),pt=lt&<.name;if(!pt)return ht.Pass;var yt=nt.mode.configuration=="html",At=typeof Oe=="object"&&Oe.dontCloseTags||yt&&Ht,Dt=typeof Oe=="object"&&Oe.indentTags||yt&&fe;et.end>kt.ch&&(pt=pt.slice(0,pt.length-et.end+kt.ch));var Ut=pt.toLowerCase();if(!pt||et.type=="string"&&(et.end!=kt.ch||!/[\"\']/.test(et.string.charAt(et.string.length-1))||et.string.length==1)||et.type=="tag"&<.close||et.string.indexOf("/")==kt.ch-et.start-1||At&&Jt(At,Ut)>-1||Le(ce,nt.mode.xmlCurrentContext&&nt.mode.xmlCurrentContext(dt)||[],pt,kt,!0))return ht.Pass;var Qt=typeof Oe=="object"&&Oe.emptyTags;if(Qt&&Jt(Qt,pt)>-1){he[je]={text:"/>",newPos:ht.Pos(kt.line,kt.ch+2)};continue}var $t=Dt&&Jt(Dt,Ut)>-1;he[je]={indent:$t,text:">"+($t?`
|
|
|
|
`:"")+"</"+pt+">",newPos:$t?ht.Pos(kt.line+1,0):ht.Pos(kt.line,kt.ch+1)}}for(var ne=typeof Oe=="object"&&Oe.dontIndentOnAutoClose,je=ve.length-1;je>=0;je--){var _t=he[je];ce.replaceRange(_t.text,ve[je].head,ve[je].anchor,"+insert");var Pe=ce.listSelections().slice(0);Pe[je]={head:_t.newPos,anchor:_t.newPos},ce.setSelections(Pe),!ne&&_t.indent&&(ce.indentLine(_t.newPos.line,null,!0),ce.indentLine(_t.newPos.line+1,null,!0))}}function Se(ce,ve){for(var he=ce.listSelections(),Oe=[],je=ve?"/":"</",kt=ce.getOption("autoCloseTags"),et=typeof kt=="object"&&kt.dontIndentOnSlash,nt=0;nt<he.length;nt++){if(!he[nt].empty())return ht.Pass;var dt=he[nt].head,lt=ce.getTokenAt(dt),pt=ht.innerMode(ce.getMode(),lt.state),yt=pt.state;if(ve&&(lt.type=="string"||lt.string.charAt(0)!="<"||lt.start!=dt.ch-1))return ht.Pass;var At,Dt=pt.mode.name!="xml"&&ce.getMode().name=="htmlmixed";if(Dt&&pt.mode.name=="javascript")At=je+"script";else if(Dt&&pt.mode.name=="css")At=je+"style";else{var Ut=pt.mode.xmlCurrentContext&&pt.mode.xmlCurrentContext(yt);if(!Ut||Ut.length&&Le(ce,Ut,Ut[Ut.length-1],dt))return ht.Pass;At=je+Ut[Ut.length-1]}ce.getLine(dt.line).charAt(lt.end)!=">"&&(At+=">"),Oe[nt]=At}if(ce.replaceSelections(Oe),he=ce.listSelections(),!et)for(var nt=0;nt<he.length;nt++)(nt==he.length-1||he[nt].head.line<he[nt+1].head.line)&&ce.indentLine(he[nt].head.line)}function Me(ce){return ce.getOption("disableInput")?ht.Pass:Se(ce,!0)}ht.commands.closeTag=function(ce){return Se(ce)};function Jt(ce,ve){if(ce.indexOf)return ce.indexOf(ve);for(var he=0,Oe=ce.length;he<Oe;++he)if(ce[he]==ve)return he;return-1}function Le(ce,ve,he,Oe,je){if(!ht.scanForClosingTag)return!1;var kt=Math.min(ce.lastLine()+1,Oe.line+500),et=ht.scanForClosingTag(ce,Oe,null,kt);if(!et||et.tag!=he)return!1;for(var nt=je?1:0,dt=ve.length-1;dt>=0&&ve[dt]==he;dt--)++nt;Oe=et.to;for(var dt=1;dt<nt;dt++){var lt=ht.scanForClosingTag(ce,Oe,null,kt);if(!lt||lt.tag!=he)return!1;Oe=lt.to}return!0}})},32855:function(Ye,jn,Ft){(function(ht){ht(Ft(89780))})(function(ht){"use strict";var Ht=ht.Pos;function fe(dt,lt){return dt.line-lt.line||dt.ch-lt.ch}var Re="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",Se=Re+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",Me=new RegExp("<(/?)(["+Re+"]["+Se+"]*)","g");function Jt(dt,lt,pt,yt){this.line=lt,this.ch=pt,this.cm=dt,this.text=dt.getLine(lt),this.min=yt?Math.max(yt.from,dt.firstLine()):dt.firstLine(),this.max=yt?Math.min(yt.to-1,dt.lastLine()):dt.lastLine()}function Le(dt,lt){var pt=dt.cm.getTokenTypeAt(Ht(dt.line,lt));return pt&&/\btag\b/.test(pt)}function ce(dt){if(!(dt.line>=dt.max))return dt.ch=0,dt.text=dt.cm.getLine(++dt.line),!0}function ve(dt){if(!(dt.line<=dt.min))return dt.text=dt.cm.getLine(--dt.line),dt.ch=dt.text.length,!0}function he(dt){for(;;){var lt=dt.text.indexOf(">",dt.ch);if(lt==-1){if(ce(dt))continue;return}if(!Le(dt,lt+1)){dt.ch=lt+1;continue}var pt=dt.text.lastIndexOf("/",lt),yt=pt>-1&&!/\S/.test(dt.text.slice(pt+1,lt));return dt.ch=lt+1,yt?"selfClose":"regular"}}function Oe(dt){for(;;){var lt=dt.ch?dt.text.lastIndexOf("<",dt.ch-1):-1;if(lt==-1){if(ve(dt))continue;return}if(!Le(dt,lt+1)){dt.ch=lt;continue}Me.lastIndex=lt,dt.ch=lt;var pt=Me.exec(dt.text);if(pt&&pt.index==lt)return pt}}function je(dt){for(;;){Me.lastIndex=dt.ch;var lt=Me.exec(dt.text);if(!lt){if(ce(dt))continue;return}if(!Le(dt,lt.index+1)){dt.ch=lt.index+1;continue}return dt.ch=lt.index+lt[0].length,lt}}function kt(dt){for(;;){var lt=dt.ch?dt.text.lastIndexOf(">",dt.ch-1):-1;if(lt==-1){if(ve(dt))continue;return}if(!Le(dt,lt+1)){dt.ch=lt;continue}var pt=dt.text.lastIndexOf("/",lt),yt=pt>-1&&!/\S/.test(dt.text.slice(pt+1,lt));return dt.ch=lt+1,yt?"selfClose":"regular"}}function et(dt,lt){for(var pt=[];;){var yt=je(dt),At,Dt=dt.line,Ut=dt.ch-(yt?yt[0].length:0);if(!yt||!(At=he(dt)))return;if(At!="selfClose")if(yt[1]){for(var Qt=pt.length-1;Qt>=0;--Qt)if(pt[Qt]==yt[2]){pt.length=Qt;break}if(Qt<0&&(!lt||lt==yt[2]))return{tag:yt[2],from:Ht(Dt,Ut),to:Ht(dt.line,dt.ch)}}else pt.push(yt[2])}}function nt(dt,lt){for(var pt=[];;){var yt=kt(dt);if(!yt)return;if(yt=="selfClose"){Oe(dt);continue}var At=dt.line,Dt=dt.ch,Ut=Oe(dt);if(!Ut)return;if(Ut[1])pt.push(Ut[2]);else{for(var Qt=pt.length-1;Qt>=0;--Qt)if(pt[Qt]==Ut[2]){pt.length=Qt;break}if(Qt<0&&(!lt||lt==Ut[2]))return{tag:Ut[2],from:Ht(dt.line,dt.ch),to:Ht(At,Dt)}}}}ht.registerHelper("fold","xml",function(dt,lt){for(var pt=new Jt(dt,lt.line,0);;){var yt=je(pt);if(!yt||pt.line!=lt.line)return;var At=he(pt);if(!At)return;if(!yt[1]&&At!="selfClose"){var Dt=Ht(pt.line,pt.ch),Ut=et(pt,yt[2]);return Ut&&fe(Ut.from,Dt)>0?{from:Dt,to:Ut.from}:null}}}),ht.findMatchingTag=function(dt,lt,pt){var yt=new Jt(dt,lt.line,lt.ch,pt);if(!(yt.text.indexOf(">")==-1&&yt.text.indexOf("<")==-1)){var At=he(yt),Dt=At&&Ht(yt.line,yt.ch),Ut=At&&Oe(yt);if(!(!At||!Ut||fe(yt,lt)>0)){var Qt={from:Ht(yt.line,yt.ch),to:Dt,tag:Ut[2]};return At=="selfClose"?{open:Qt,close:null,at:"open"}:Ut[1]?{open:nt(yt,Ut[2]),close:Qt,at:"close"}:(yt=new Jt(dt,Dt.line,Dt.ch,pt),{open:Qt,close:et(yt,Ut[2]),at:"open"})}}},ht.findEnclosingTag=function(dt,lt,pt,yt){for(var At=new Jt(dt,lt.line,lt.ch,pt);;){var Dt=nt(At,yt);if(!Dt)break;var Ut=new Jt(dt,lt.line,lt.ch,pt),Qt=et(Ut,Dt.tag);if(Qt)return{open:Dt,close:Qt}}},ht.scanForClosingTag=function(dt,lt,pt,yt){var At=new Jt(dt,lt.line,lt.ch,yt?{from:0,to:yt}:null);return et(At,pt)}})},89780:function(Ye){(function(jn,Ft){Ye.exports=Ft()})(this,function(){"use strict";var jn=navigator.userAgent,Ft=navigator.platform,ht=/gecko\/\d/i.test(jn),Ht=/MSIE \d/.test(jn),fe=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(jn),Re=/Edge\/(\d+)/.exec(jn),Se=Ht||fe||Re,Me=Se&&(Ht?document.documentMode||6:+(Re||fe)[1]),Jt=!Re&&/WebKit\//.test(jn),Le=Jt&&/Qt\/\d+\.\d+/.test(jn),ce=!Re&&/Chrome\//.test(jn),ve=/Opera\//.test(jn),he=/Apple Computer/.test(navigator.vendor),Oe=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(jn),je=/PhantomJS/.test(jn),kt=!Re&&/AppleWebKit/.test(jn)&&/Mobile\/\w+/.test(jn),et=/Android/.test(jn),nt=kt||et||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(jn),dt=kt||/Mac/.test(Ft),lt=/\bCrOS\b/.test(jn),pt=/win/i.test(Ft),yt=ve&&jn.match(/Version\/(\d*\.\d*)/);yt&&(yt=Number(yt[1])),yt&&yt>=15&&(ve=!1,Jt=!0);var At=dt&&(Le||ve&&(yt==null||yt<12.11)),Dt=ht||Se&&Me>=9;function Ut(it){return new RegExp("(^|\\s)"+it+"(?:$|\\s)\\s*")}var Qt=function(it,st){var gt=it.className,ct=Ut(st).exec(gt);if(ct){var mt=gt.slice(ct.index+ct[0].length);it.className=gt.slice(0,ct.index)+(mt?ct[1]+mt:"")}};function $t(it){for(var st=it.childNodes.length;st>0;--st)it.removeChild(it.firstChild);return it}function ne(it,st){return $t(it).appendChild(st)}function _t(it,st,gt,ct){var mt=document.createElement(it);if(gt&&(mt.className=gt),ct&&(mt.style.cssText=ct),typeof st=="string")mt.appendChild(document.createTextNode(st));else if(st)for(var Et=0;Et<st.length;++Et)mt.appendChild(st[Et]);return mt}function Pe(it,st,gt,ct){var mt=_t(it,st,gt,ct);return mt.setAttribute("role","presentation"),mt}var ue;document.createRange?ue=function(it,st,gt,ct){var mt=document.createRange();return mt.setEnd(ct||it,gt),mt.setStart(it,st),mt}:ue=function(it,st,gt){var ct=document.body.createTextRange();try{ct.moveToElementText(it.parentNode)}catch(mt){return ct}return ct.collapse(!0),ct.moveEnd("character",gt),ct.moveStart("character",st),ct};function pe(it,st){if(st.nodeType==3&&(st=st.parentNode),it.contains)return it.contains(st);do if(st.nodeType==11&&(st=st.host),st==it)return!0;while(st=st.parentNode)}function oe(){var it;try{it=document.activeElement}catch(st){it=document.body||null}for(;it&&it.shadowRoot&&it.shadowRoot.activeElement;)it=it.shadowRoot.activeElement;return it}function Ae(it,st){var gt=it.className;Ut(st).test(gt)||(it.className+=(gt?" ":"")+st)}function Ie(it,st){for(var gt=it.split(" "),ct=0;ct<gt.length;ct++)gt[ct]&&!Ut(gt[ct]).test(st)&&(st+=" "+gt[ct]);return st}var an=function(it){it.select()};kt?an=function(it){it.selectionStart=0,it.selectionEnd=it.value.length}:Se&&(an=function(it){try{it.select()}catch(st){}});function Gn(it){var st=Array.prototype.slice.call(arguments,1);return function(){return it.apply(null,st)}}function bn(it,st,gt){st||(st={});for(var ct in it)it.hasOwnProperty(ct)&&(gt!==!1||!st.hasOwnProperty(ct))&&(st[ct]=it[ct]);return st}function de(it,st,gt,ct,mt){st==null&&(st=it.search(/[^\s\u00a0]/),st==-1&&(st=it.length));for(var Et=ct||0,bt=mt||0;;){var Rt=it.indexOf(" ",Et);if(Rt<0||Rt>=st)return bt+(st-Et);bt+=Rt-Et,bt+=gt-bt%gt,Et=Rt+1}}var Wt=function(){this.id=null,this.f=null,this.time=0,this.handler=Gn(this.onTimeout,this)};Wt.prototype.onTimeout=function(it){it.id=0,it.time<=+new Date?it.f():setTimeout(it.handler,it.time-+new Date)},Wt.prototype.set=function(it,st){this.f=st;var gt=+new Date+it;(!this.id||gt<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,it),this.time=gt)};function xe(it,st){for(var gt=0;gt<it.length;++gt)if(it[gt]==st)return gt;return-1}var nn=50,dn={toString:function(){return"CodeMirror.Pass"}},ge={scroll:!1},we={origin:"*mouse"},Je={origin:"+move"};function Bn(it,st,gt){for(var ct=0,mt=0;;){var Et=it.indexOf(" ",ct);Et==-1&&(Et=it.length);var bt=Et-ct;if(Et==it.length||mt+bt>=st)return ct+Math.min(bt,st-mt);if(mt+=Et-ct,mt+=gt-mt%gt,ct=Et+1,mt>=st)return ct}}var vn=[""];function zn(it){for(;vn.length<=it;)vn.push(ae(vn)+" ");return vn[it]}function ae(it){return it[it.length-1]}function mn(it,st){for(var gt=[],ct=0;ct<it.length;ct++)gt[ct]=st(it[ct],ct);return gt}function ti(it,st,gt){for(var ct=0,mt=gt(st);ct<it.length&>(it[ct])<=mt;)ct++;it.splice(ct,0,st)}function Wn(){}function ii(it,st){var gt;return Object.create?gt=Object.create(it):(Wn.prototype=it,gt=new Wn),st&&bn(st,gt),gt}var mi=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function yn(it){return/\w/.test(it)||it>"\x80"&&(it.toUpperCase()!=it.toLowerCase()||mi.test(it))}function Ge(it,st){return st?st.source.indexOf("\\w")>-1&&yn(it)?!0:st.test(it):yn(it)}function Ne(it){for(var st in it)if(it.hasOwnProperty(st)&&it[st])return!1;return!0}var Zn=/[\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 sn(it){return it.charCodeAt(0)>=768&&Zn.test(it)}function We(it,st,gt){for(;(gt<0?st>0:st<it.length)&&sn(it.charAt(st));)st+=gt;return st}function en(it,st,gt){for(var ct=st>gt?-1:1;;){if(st==gt)return st;var mt=(st+gt)/2,Et=ct<0?Math.ceil(mt):Math.floor(mt);if(Et==st)return it(Et)?st:gt;it(Et)?gt=Et:st=Et+ct}}function Nt(it,st,gt,ct){if(!it)return ct(st,gt,"ltr",0);for(var mt=!1,Et=0;Et<it.length;++Et){var bt=it[Et];(bt.from<gt&&bt.to>st||st==gt&&bt.to==st)&&(ct(Math.max(bt.from,st),Math.min(bt.to,gt),bt.level==1?"rtl":"ltr",Et),mt=!0)}mt||ct(st,gt,"ltr")}var Ct=null;function St(it,st,gt){var ct;Ct=null;for(var mt=0;mt<it.length;++mt){var Et=it[mt];if(Et.from<st&&Et.to>st)return mt;Et.to==st&&(Et.from!=Et.to&>=="before"?ct=mt:Ct=mt),Et.from==st&&(Et.from!=Et.to&>!="before"?ct=mt:Ct=mt)}return ct!=null?ct:Ct}var Bt=function(){var it="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",st="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function gt(Xt){return Xt<=247?it.charAt(Xt):1424<=Xt&&Xt<=1524?"R":1536<=Xt&&Xt<=1785?st.charAt(Xt-1536):1774<=Xt&&Xt<=2220?"r":8192<=Xt&&Xt<=8203?"w":Xt==8204?"b":"L"}var ct=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,mt=/[stwN]/,Et=/[LRr]/,bt=/[Lb1n]/,Rt=/[1n]/;function Ot(Xt,ke,ee){this.level=Xt,this.from=ke,this.to=ee}return function(Xt,ke){var ee=ke=="ltr"?"L":"R";if(Xt.length==0||ke=="ltr"&&!ct.test(Xt))return!1;for(var Xe=Xt.length,He=[],Yn=0;Yn<Xe;++Yn)He.push(gt(Xt.charCodeAt(Yn)));for(var $n=0,hi=ee;$n<Xe;++$n){var Mi=He[$n];Mi=="m"?He[$n]=hi:hi=Mi}for(var zi=0,bi=ee;zi<Xe;++zi){var Yi=He[zi];Yi=="1"&&bi=="r"?He[zi]="n":Et.test(Yi)&&(bi=Yi,Yi=="r"&&(He[zi]="R"))}for(var Eo=1,Ni=He[0];Eo<Xe-1;++Eo){var zo=He[Eo];zo=="+"&&Ni=="1"&&He[Eo+1]=="1"?He[Eo]="1":zo==","&&Ni==He[Eo+1]&&(Ni=="1"||Ni=="n")&&(He[Eo]=Ni),Ni=zo}for(var br=0;br<Xe;++br){var ps=He[br];if(ps==",")He[br]="N";else if(ps=="%"){var Vr=void 0;for(Vr=br+1;Vr<Xe&&He[Vr]=="%";++Vr);for(var ya=br&&He[br-1]=="!"||Vr<Xe&&He[Vr]=="1"?"1":"N",qs=br;qs<Vr;++qs)He[qs]=ya;br=Vr-1}}for(var us=0,Ba=ee;us<Xe;++us){var Vs=He[us];Ba=="L"&&Vs=="1"?He[us]="L":Et.test(Vs)&&(Ba=Vs)}for(var hs=0;hs<Xe;++hs)if(mt.test(He[hs])){var er=void 0;for(er=hs+1;er<Xe&&mt.test(He[er]);++er);for(var Yr=(hs?He[hs-1]:ee)=="L",Ms=(er<Xe?He[er]:ee)=="L",Us=Yr==Ms?Yr?"L":"R":ee,vl=hs;vl<er;++vl)He[vl]=Us;hs=er-1}for(var Ur=[],il,_r=0;_r<Xe;)if(bt.test(He[_r])){var cc=_r;for(++_r;_r<Xe&&bt.test(He[_r]);++_r);Ur.push(new Ot(0,cc,_r))}else{var Wa=_r,Na=Ur.length,Sa=ke=="rtl"?1:0;for(++_r;_r<Xe&&He[_r]!="L";++_r);for(var Pr=Wa;Pr<_r;)if(Rt.test(He[Pr])){Wa<Pr&&(Ur.splice(Na,0,new Ot(1,Wa,Pr)),Na+=Sa);var Ls=Pr;for(++Pr;Pr<_r&&Rt.test(He[Pr]);++Pr);Ur.splice(Na,0,new Ot(2,Ls,Pr)),Na+=Sa,Wa=Pr}else++Pr;Wa<_r&&Ur.splice(Na,0,new Ot(1,Wa,_r))}return ke=="ltr"&&(Ur[0].level==1&&(il=Xt.match(/^\s+/))&&(Ur[0].from=il[0].length,Ur.unshift(new Ot(0,0,il[0].length))),ae(Ur).level==1&&(il=Xt.match(/\s+$/))&&(ae(Ur).to-=il[0].length,Ur.push(new Ot(0,Xe-il[0].length,Xe)))),ke=="rtl"?Ur.reverse():Ur}}();function Gt(it,st){var gt=it.order;return gt==null&&(gt=it.order=Bt(it.text,st)),gt}var Lt=[],ie=function(it,st,gt){if(it.addEventListener)it.addEventListener(st,gt,!1);else if(it.attachEvent)it.attachEvent("on"+st,gt);else{var ct=it._handlers||(it._handlers={});ct[st]=(ct[st]||Lt).concat(gt)}};function Ke(it,st){return it._handlers&&it._handlers[st]||Lt}function ln(it,st,gt){if(it.removeEventListener)it.removeEventListener(st,gt,!1);else if(it.detachEvent)it.detachEvent("on"+st,gt);else{var ct=it._handlers,mt=ct&&ct[st];if(mt){var Et=xe(mt,gt);Et>-1&&(ct[st]=mt.slice(0,Et).concat(mt.slice(Et+1)))}}}function hn(it,st){var gt=Ke(it,st);if(gt.length)for(var ct=Array.prototype.slice.call(arguments,2),mt=0;mt<gt.length;++mt)gt[mt].apply(null,ct)}function Jn(it,st,gt){return typeof st=="string"&&(st={type:st,preventDefault:function(){this.defaultPrevented=!0}}),hn(it,gt||st.type,it,st),Qi(st)||st.codemirrorIgnore}function di(it){var st=it._handlers&&it._handlers.cursorActivity;if(st)for(var gt=it.curOp.cursorActivityHandlers||(it.curOp.cursorActivityHandlers=[]),ct=0;ct<st.length;++ct)xe(gt,st[ct])==-1&>.push(st[ct])}function fi(it,st){return Ke(it,st).length>0}function pi(it){it.prototype.on=function(st,gt){ie(this,st,gt)},it.prototype.off=function(st,gt){ln(this,st,gt)}}function Bi(it){it.preventDefault?it.preventDefault():it.returnValue=!1}function qi(it){it.stopPropagation?it.stopPropagation():it.cancelBubble=!0}function Qi(it){return it.defaultPrevented!=null?it.defaultPrevented:it.returnValue==!1}function Ao(it){Bi(it),qi(it)}function Mo(it){return it.target||it.srcElement}function Ti(it){var st=it.which;return st==null&&(it.button&1?st=1:it.button&2?st=3:it.button&4&&(st=2)),dt&&it.ctrlKey&&st==1&&(st=3),st}var Ui=function(){if(Se&&Me<9)return!1;var it=_t("div");return"draggable"in it||"dragDrop"in it}(),so;function mo(it){if(so==null){var st=_t("span","\u200B");ne(it,_t("span",[st,document.createTextNode("x")])),it.firstChild.offsetHeight!=0&&(so=st.offsetWidth<=1&&st.offsetHeight>2&&!(Se&&Me<8))}var gt=so?_t("span","\u200B"):_t("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return gt.setAttribute("cm-text",""),gt}var xi;function ho(it){if(xi!=null)return xi;var st=ne(it,document.createTextNode("A\u062EA")),gt=ue(st,0,1).getBoundingClientRect(),ct=ue(st,1,2).getBoundingClientRect();return $t(it),!gt||gt.left==gt.right?!1:xi=ct.right-gt.right<3}var pn=`
|
|
|
|
b`.split(/\n/).length!=3?function(it){for(var st=0,gt=[],ct=it.length;st<=ct;){var mt=it.indexOf(`
|
|
`,st);mt==-1&&(mt=it.length);var Et=it.slice(st,it.charAt(mt-1)=="\r"?mt-1:mt),bt=Et.indexOf("\r");bt!=-1?(gt.push(Et.slice(0,bt)),st+=bt+1):(gt.push(Et),st=mt+1)}return gt}:function(it){return it.split(/\r\n?|\n/)},wt=window.getSelection?function(it){try{return it.selectionStart!=it.selectionEnd}catch(st){return!1}}:function(it){var st;try{st=it.ownerDocument.selection.createRange()}catch(gt){}return!st||st.parentElement()!=it?!1:st.compareEndPoints("StartToEnd",st)!=0},Li=function(){var it=_t("div");return"oncopy"in it?!0:(it.setAttribute("oncopy","return;"),typeof it.oncopy=="function")}(),ui=null;function Ce(it){if(ui!=null)return ui;var st=ne(it,_t("span","x")),gt=st.getBoundingClientRect(),ct=ue(st,0,1).getBoundingClientRect();return ui=Math.abs(gt.left-ct.left)>1}var xn={},wn={};function Kn(it,st){arguments.length>2&&(st.dependencies=Array.prototype.slice.call(arguments,2)),xn[it]=st}function Ue(it,st){wn[it]=st}function qe(it){if(typeof it=="string"&&wn.hasOwnProperty(it))it=wn[it];else if(it&&typeof it.name=="string"&&wn.hasOwnProperty(it.name)){var st=wn[it.name];typeof st=="string"&&(st={name:st}),it=ii(st,it),it.name=st.name}else{if(typeof it=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(it))return qe("application/xml");if(typeof it=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(it))return qe("application/json")}return typeof it=="string"?{name:it}:it||{name:"null"}}function le(it,st){st=qe(st);var gt=xn[st.name];if(!gt)return le(it,"text/plain");var ct=gt(it,st);if(re.hasOwnProperty(st.name)){var mt=re[st.name];for(var Et in mt)mt.hasOwnProperty(Et)&&(ct.hasOwnProperty(Et)&&(ct["_"+Et]=ct[Et]),ct[Et]=mt[Et])}if(ct.name=st.name,st.helperType&&(ct.helperType=st.helperType),st.modeProps)for(var bt in st.modeProps)ct[bt]=st.modeProps[bt];return ct}var re={};function qt(it,st){var gt=re.hasOwnProperty(it)?re[it]:re[it]={};bn(st,gt)}function Ze(it,st){if(st===!0)return st;if(it.copyState)return it.copyState(st);var gt={};for(var ct in st){var mt=st[ct];mt instanceof Array&&(mt=mt.concat([])),gt[ct]=mt}return gt}function An(it,st){for(var gt;it.innerMode&&(gt=it.innerMode(st),!(!gt||gt.mode==it));)st=gt.state,it=gt.mode;return gt||{mode:it,state:st}}function Ln(it,st,gt){return it.startState?it.startState(st,gt):!0}var Be=function(it,st,gt){this.pos=this.start=0,this.string=it,this.tabSize=st||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=gt};Be.prototype.eol=function(){return this.pos>=this.string.length},Be.prototype.sol=function(){return this.pos==this.lineStart},Be.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Be.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Be.prototype.eat=function(it){var st=this.string.charAt(this.pos),gt;if(typeof it=="string"?gt=st==it:gt=st&&(it.test?it.test(st):it(st)),gt)return++this.pos,st},Be.prototype.eatWhile=function(it){for(var st=this.pos;this.eat(it););return this.pos>st},Be.prototype.eatSpace=function(){for(var it=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>it},Be.prototype.skipToEnd=function(){this.pos=this.string.length},Be.prototype.skipTo=function(it){var st=this.string.indexOf(it,this.pos);if(st>-1)return this.pos=st,!0},Be.prototype.backUp=function(it){this.pos-=it},Be.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=de(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?de(this.string,this.lineStart,this.tabSize):0)},Be.prototype.indentation=function(){return de(this.string,null,this.tabSize)-(this.lineStart?de(this.string,this.lineStart,this.tabSize):0)},Be.prototype.match=function(it,st,gt){if(typeof it=="string"){var ct=function(bt){return gt?bt.toLowerCase():bt},mt=this.string.substr(this.pos,it.length);if(ct(mt)==ct(it))return st!==!1&&(this.pos+=it.length),!0}else{var Et=this.string.slice(this.pos).match(it);return Et&&Et.index>0?null:(Et&&st!==!1&&(this.pos+=Et[0].length),Et)}},Be.prototype.current=function(){return this.string.slice(this.start,this.pos)},Be.prototype.hideFirstChars=function(it,st){this.lineStart+=it;try{return st()}finally{this.lineStart-=it}},Be.prototype.lookAhead=function(it){var st=this.lineOracle;return st&&st.lookAhead(it)},Be.prototype.baseToken=function(){var it=this.lineOracle;return it&&it.baseToken(this.pos)};function un(it,st){if(st-=it.first,st<0||st>=it.size)throw new Error("There is no line "+(st+it.first)+" in the document.");for(var gt=it;!gt.lines;)for(var ct=0;;++ct){var mt=gt.children[ct],Et=mt.chunkSize();if(st<Et){gt=mt;break}st-=Et}return gt.lines[st]}function Qn(it,st,gt){var ct=[],mt=st.line;return it.iter(st.line,gt.line+1,function(Et){var bt=Et.text;mt==gt.line&&(bt=bt.slice(0,gt.ch)),mt==st.line&&(bt=bt.slice(st.ch)),ct.push(bt),++mt}),ct}function Nn(it,st,gt){var ct=[];return it.iter(st,gt,function(mt){ct.push(mt.text)}),ct}function ai(it,st){var gt=st-it.height;if(gt)for(var ct=it;ct;ct=ct.parent)ct.height+=gt}function zt(it){if(it.parent==null)return null;for(var st=it.parent,gt=xe(st.lines,it),ct=st.parent;ct;st=ct,ct=ct.parent)for(var mt=0;ct.children[mt]!=st;++mt)gt+=ct.children[mt].chunkSize();return gt+st.first}function Fe(it,st){var gt=it.first;t:do{for(var ct=0;ct<it.children.length;++ct){var mt=it.children[ct],Et=mt.height;if(st<Et){it=mt;continue t}st-=Et,gt+=mt.chunkSize()}return gt}while(!it.lines);for(var bt=0;bt<it.lines.length;++bt){var Rt=it.lines[bt],Ot=Rt.height;if(st<Ot)break;st-=Ot}return gt+bt}function Dn(it,st){return st>=it.first&&st<it.first+it.size}function On(it,st){return String(it.lineNumberFormatter(st+it.firstLineNumber))}function Te(it,st,gt){if(gt===void 0&&(gt=null),!(this instanceof Te))return new Te(it,st,gt);this.line=it,this.ch=st,this.sticky=gt}function Ve(it,st){return it.line-st.line||it.ch-st.ch}function Vn(it,st){return it.sticky==st.sticky&&Ve(it,st)==0}function li(it){return Te(it.line,it.ch)}function oi(it,st){return Ve(it,st)<0?st:it}function Rn(it,st){return Ve(it,st)<0?it:st}function qn(it,st){return Math.max(it.first,Math.min(st,it.first+it.size-1))}function si(it,st){if(st.line<it.first)return Te(it.first,0);var gt=it.first+it.size-1;return st.line>gt?Te(gt,un(it,gt).text.length):Xi(st,un(it,st.line).text.length)}function Xi(it,st){var gt=it.ch;return gt==null||gt>st?Te(it.line,st):gt<0?Te(it.line,0):it}function Ii(it,st){for(var gt=[],ct=0;ct<st.length;ct++)gt[ct]=si(it,st[ct]);return gt}var ji=function(it,st){this.state=it,this.lookAhead=st},Qe=function(it,st,gt,ct){this.state=st,this.doc=it,this.line=gt,this.maxLookAhead=ct||0,this.baseTokens=null,this.baseTokenPos=1};Qe.prototype.lookAhead=function(it){var st=this.doc.getLine(this.line+it);return st!=null&&it>this.maxLookAhead&&(this.maxLookAhead=it),st},Qe.prototype.baseToken=function(it){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=it;)this.baseTokenPos+=2;var st=this.baseTokens[this.baseTokenPos+1];return{type:st&&st.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-it}},Qe.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Qe.fromSaved=function(it,st,gt){return st instanceof ji?new Qe(it,Ze(it.mode,st.state),gt,st.lookAhead):new Qe(it,Ze(it.mode,st),gt)},Qe.prototype.save=function(it){var st=it!==!1?Ze(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new ji(st,this.maxLookAhead):st};function ao(it,st,gt,ct){var mt=[it.state.modeGen],Et={};_i(it,st.text,it.doc.mode,gt,function(Xt,ke){return mt.push(Xt,ke)},Et,ct);for(var bt=gt.state,Rt=function(Xt){gt.baseTokens=mt;var ke=it.state.overlays[Xt],ee=1,Xe=0;gt.state=!0,_i(it,st.text,ke.mode,gt,function(He,Yn){for(var $n=ee;Xe<He;){var hi=mt[ee];hi>He&&mt.splice(ee,1,He,mt[ee+1],hi),ee+=2,Xe=Math.min(He,hi)}if(Yn)if(ke.opaque)mt.splice($n,ee-$n,He,"overlay "+Yn),ee=$n+2;else for(;$n<ee;$n+=2){var Mi=mt[$n+1];mt[$n+1]=(Mi?Mi+" ":"")+"overlay "+Yn}},Et),gt.state=bt,gt.baseTokens=null,gt.baseTokenPos=1},Ot=0;Ot<it.state.overlays.length;++Ot)Rt(Ot);return{styles:mt,classes:Et.bgClass||Et.textClass?Et:null}}function Oi(it,st,gt){if(!st.styles||st.styles[0]!=it.state.modeGen){var ct=Ci(it,zt(st)),mt=st.text.length>it.options.maxHighlightLength&&Ze(it.doc.mode,ct.state),Et=ao(it,st,ct);mt&&(ct.state=mt),st.stateAfter=ct.save(!mt),st.styles=Et.styles,Et.classes?st.styleClasses=Et.classes:st.styleClasses&&(st.styleClasses=null),gt===it.doc.highlightFrontier&&(it.doc.modeFrontier=Math.max(it.doc.modeFrontier,++it.doc.highlightFrontier))}return st.styles}function Ci(it,st,gt){var ct=it.doc,mt=it.display;if(!ct.mode.startState)return new Qe(ct,!0,st);var Et=Zi(it,st,gt),bt=Et>ct.first&&un(ct,Et-1).stateAfter,Rt=bt?Qe.fromSaved(ct,bt,Et):new Qe(ct,Ln(ct.mode),Et);return ct.iter(Et,st,function(Ot){De(it,Ot.text,Rt);var Xt=Rt.line;Ot.stateAfter=Xt==st-1||Xt%5==0||Xt>=mt.viewFrom&&Xt<mt.viewTo?Rt.save():null,Rt.nextLine()}),gt&&(ct.modeFrontier=Rt.line),Rt}function De(it,st,gt,ct){var mt=it.doc.mode,Et=new Be(st,it.options.tabSize,gt);for(Et.start=Et.pos=ct||0,st==""&&En(mt,gt.state);!Et.eol();)ci(mt,Et,gt.state),Et.start=Et.pos}function En(it,st){if(it.blankLine)return it.blankLine(st);if(it.innerMode){var gt=An(it,st);if(gt.mode.blankLine)return gt.mode.blankLine(gt.state)}}function ci(it,st,gt,ct){for(var mt=0;mt<10;mt++){ct&&(ct[0]=An(it,gt).mode);var Et=it.token(st,gt);if(st.pos>st.start)return Et}throw new Error("Mode "+it.name+" failed to advance stream.")}var Pi=function(it,st,gt){this.start=it.start,this.end=it.pos,this.string=it.current(),this.type=st||null,this.state=gt};function _n(it,st,gt,ct){var mt=it.doc,Et=mt.mode,bt;st=si(mt,st);var Rt=un(mt,st.line),Ot=Ci(it,st.line,gt),Xt=new Be(Rt.text,it.options.tabSize,Ot),ke;for(ct&&(ke=[]);(ct||Xt.pos<st.ch)&&!Xt.eol();)Xt.start=Xt.pos,bt=ci(Et,Xt,Ot.state),ct&&ke.push(new Pi(Xt,bt,Ze(mt.mode,Ot.state)));return ct?ke:new Pi(Xt,bt,Ot.state)}function wi(it,st){if(it)for(;;){var gt=it.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!gt)break;it=it.slice(0,gt.index)+it.slice(gt.index+gt[0].length);var ct=gt[1]?"bgClass":"textClass";st[ct]==null?st[ct]=gt[2]:new RegExp("(?:^|\\s)"+gt[2]+"(?:$|\\s)").test(st[ct])||(st[ct]+=" "+gt[2])}return it}function _i(it,st,gt,ct,mt,Et,bt){var Rt=gt.flattenSpans;Rt==null&&(Rt=it.options.flattenSpans);var Ot=0,Xt=null,ke=new Be(st,it.options.tabSize,ct),ee,Xe=it.options.addModeClass&&[null];for(st==""&&wi(En(gt,ct.state),Et);!ke.eol();){if(ke.pos>it.options.maxHighlightLength?(Rt=!1,bt&&De(it,st,ct,ke.pos),ke.pos=st.length,ee=null):ee=wi(ci(gt,ke,ct.state,Xe),Et),Xe){var He=Xe[0].name;He&&(ee="m-"+(ee?He+" "+ee:He))}if(!Rt||Xt!=ee){for(;Ot<ke.start;)Ot=Math.min(ke.start,Ot+5e3),mt(Ot,Xt);Xt=ee}ke.start=ke.pos}for(;Ot<ke.pos;){var Yn=Math.min(ke.pos,Ot+5e3);mt(Yn,Xt),Ot=Yn}}function Zi(it,st,gt){for(var ct,mt,Et=it.doc,bt=gt?-1:st-(it.doc.mode.innerMode?1e3:100),Rt=st;Rt>bt;--Rt){if(Rt<=Et.first)return Et.first;var Ot=un(Et,Rt-1),Xt=Ot.stateAfter;if(Xt&&(!gt||Rt+(Xt instanceof ji?Xt.lookAhead:0)<=Et.modeFrontier))return Rt;var ke=de(Ot.text,null,it.options.tabSize);(mt==null||ct>ke)&&(mt=Rt-1,ct=ke)}return mt}function oo(it,st){if(it.modeFrontier=Math.min(it.modeFrontier,st),!(it.highlightFrontier<st-10)){for(var gt=it.first,ct=st-1;ct>gt;ct--){var mt=un(it,ct).stateAfter;if(mt&&(!(mt instanceof ji)||ct+mt.lookAhead<st)){gt=ct+1;break}}it.highlightFrontier=Math.min(it.highlightFrontier,gt)}}var $i=!1,$e=!1;function Gi(){$i=!0}function _e(){$e=!0}function xo(it,st,gt){this.marker=it,this.from=st,this.to=gt}function Co(it,st){if(it)for(var gt=0;gt<it.length;++gt){var ct=it[gt];if(ct.marker==st)return ct}}function to(it,st){for(var gt,ct=0;ct<it.length;++ct)it[ct]!=st&&(gt||(gt=[])).push(it[ct]);return gt}function Bo(it,st){it.markedSpans=it.markedSpans?it.markedSpans.concat([st]):[st],st.marker.attachLine(it)}function co(it,st,gt){var ct;if(it)for(var mt=0;mt<it.length;++mt){var Et=it[mt],bt=Et.marker,Rt=Et.from==null||(bt.inclusiveLeft?Et.from<=st:Et.from<st);if(Rt||Et.from==st&&bt.type=="bookmark"&&(!gt||!Et.marker.insertLeft)){var Ot=Et.to==null||(bt.inclusiveRight?Et.to>=st:Et.to>st);(ct||(ct=[])).push(new xo(bt,Et.from,Ot?null:Et.to))}}return ct}function Hi(it,st,gt){var ct;if(it)for(var mt=0;mt<it.length;++mt){var Et=it[mt],bt=Et.marker,Rt=Et.to==null||(bt.inclusiveRight?Et.to>=st:Et.to>st);if(Rt||Et.from==st&&bt.type=="bookmark"&&(!gt||Et.marker.insertLeft)){var Ot=Et.from==null||(bt.inclusiveLeft?Et.from<=st:Et.from<st);(ct||(ct=[])).push(new xo(bt,Ot?null:Et.from-st,Et.to==null?null:Et.to-st))}}return ct}function wo(it,st){if(st.full)return null;var gt=Dn(it,st.from.line)&&un(it,st.from.line).markedSpans,ct=Dn(it,st.to.line)&&un(it,st.to.line).markedSpans;if(!gt&&!ct)return null;var mt=st.from.ch,Et=st.to.ch,bt=Ve(st.from,st.to)==0,Rt=co(gt,mt,bt),Ot=Hi(ct,Et,bt),Xt=st.text.length==1,ke=ae(st.text).length+(Xt?mt:0);if(Rt)for(var ee=0;ee<Rt.length;++ee){var Xe=Rt[ee];if(Xe.to==null){var He=Co(Ot,Xe.marker);He?Xt&&(Xe.to=He.to==null?null:He.to+ke):Xe.to=mt}}if(Ot)for(var Yn=0;Yn<Ot.length;++Yn){var $n=Ot[Yn];if($n.to!=null&&($n.to+=ke),$n.from==null){var hi=Co(Rt,$n.marker);hi||($n.from=ke,Xt&&(Rt||(Rt=[])).push($n))}else $n.from+=ke,Xt&&(Rt||(Rt=[])).push($n)}Rt&&(Rt=Lo(Rt)),Ot&&Ot!=Rt&&(Ot=Lo(Ot));var Mi=[Rt];if(!Xt){var zi=st.text.length-2,bi;if(zi>0&&Rt)for(var Yi=0;Yi<Rt.length;++Yi)Rt[Yi].to==null&&(bi||(bi=[])).push(new xo(Rt[Yi].marker,null,null));for(var Eo=0;Eo<zi;++Eo)Mi.push(bi);Mi.push(Ot)}return Mi}function Lo(it){for(var st=0;st<it.length;++st){var gt=it[st];gt.from!=null&>.from==gt.to&>.marker.clearWhenEmpty!==!1&&it.splice(st--,1)}return it.length?it:null}function fo(it,st,gt){var ct=null;if(it.iter(st.line,gt.line+1,function(He){if(He.markedSpans)for(var Yn=0;Yn<He.markedSpans.length;++Yn){var $n=He.markedSpans[Yn].marker;$n.readOnly&&(!ct||xe(ct,$n)==-1)&&(ct||(ct=[])).push($n)}}),!ct)return null;for(var mt=[{from:st,to:gt}],Et=0;Et<ct.length;++Et)for(var bt=ct[Et],Rt=bt.find(0),Ot=0;Ot<mt.length;++Ot){var Xt=mt[Ot];if(!(Ve(Xt.to,Rt.from)<0||Ve(Xt.from,Rt.to)>0)){var ke=[Ot,1],ee=Ve(Xt.from,Rt.from),Xe=Ve(Xt.to,Rt.to);(ee<0||!bt.inclusiveLeft&&!ee)&&ke.push({from:Xt.from,to:Rt.from}),(Xe>0||!bt.inclusiveRight&&!Xe)&&ke.push({from:Rt.to,to:Xt.to}),mt.splice.apply(mt,ke),Ot+=ke.length-3}}return mt}function ri(it){var st=it.markedSpans;if(st){for(var gt=0;gt<st.length;++gt)st[gt].marker.detachLine(it);it.markedSpans=null}}function It(it,st){if(st){for(var gt=0;gt<st.length;++gt)st[gt].marker.attachLine(it);it.markedSpans=st}}function qo(it){return it.inclusiveLeft?-1:0}function _o(it){return it.inclusiveRight?1:0}function Sr(it,st){var gt=it.lines.length-st.lines.length;if(gt!=0)return gt;var ct=it.find(),mt=st.find(),Et=Ve(ct.from,mt.from)||qo(it)-qo(st);if(Et)return-Et;var bt=Ve(ct.to,mt.to)||_o(it)-_o(st);return bt||st.id-it.id}function Fr(it,st){var gt=$e&&it.markedSpans,ct;if(gt)for(var mt=void 0,Et=0;Et<gt.length;++Et)mt=gt[Et],mt.marker.collapsed&&(st?mt.from:mt.to)==null&&(!ct||Sr(ct,mt.marker)<0)&&(ct=mt.marker);return ct}function Xo(it){return Fr(it,!0)}function kr(it){return Fr(it,!1)}function Zt(it,st){var gt=$e&&it.markedSpans,ct;if(gt)for(var mt=0;mt<gt.length;++mt){var Et=gt[mt];Et.marker.collapsed&&(Et.from==null||Et.from<st)&&(Et.to==null||Et.to>st)&&(!ct||Sr(ct,Et.marker)<0)&&(ct=Et.marker)}return ct}function kn(it,st,gt,ct,mt){var Et=un(it,st),bt=$e&&Et.markedSpans;if(bt)for(var Rt=0;Rt<bt.length;++Rt){var Ot=bt[Rt];if(Ot.marker.collapsed){var Xt=Ot.marker.find(0),ke=Ve(Xt.from,gt)||qo(Ot.marker)-qo(mt),ee=Ve(Xt.to,ct)||_o(Ot.marker)-_o(mt);if(!(ke>=0&&ee<=0||ke<=0&&ee>=0)&&(ke<=0&&(Ot.marker.inclusiveRight&&mt.inclusiveLeft?Ve(Xt.to,gt)>=0:Ve(Xt.to,gt)>0)||ke>=0&&(Ot.marker.inclusiveRight&&mt.inclusiveLeft?Ve(Xt.from,ct)<=0:Ve(Xt.from,ct)<0)))return!0}}}function Mn(it){for(var st;st=Xo(it);)it=st.find(-1,!0).line;return it}function Un(it){for(var st;st=kr(it);)it=st.find(1,!0).line;return it}function gn(it){for(var st,gt;st=kr(it);)it=st.find(1,!0).line,(gt||(gt=[])).push(it);return gt}function Tn(it,st){var gt=un(it,st),ct=Mn(gt);return gt==ct?st:zt(ct)}function Pn(it,st){if(st>it.lastLine())return st;var gt=un(it,st),ct;if(!Ee(it,gt))return st;for(;ct=kr(gt);)gt=ct.find(1,!0).line;return zt(gt)+1}function Ee(it,st){var gt=$e&&st.markedSpans;if(gt){for(var ct=void 0,mt=0;mt<gt.length;++mt)if(ct=gt[mt],!!ct.marker.collapsed){if(ct.from==null)return!0;if(!ct.marker.widgetNode&&ct.from==0&&ct.marker.inclusiveLeft&&fn(it,st,ct))return!0}}}function fn(it,st,gt){if(gt.to==null){var ct=gt.marker.find(1,!0);return fn(it,ct.line,Co(ct.line.markedSpans,gt.marker))}if(gt.marker.inclusiveRight&>.to==st.text.length)return!0;for(var mt=void 0,Et=0;Et<st.markedSpans.length;++Et)if(mt=st.markedSpans[Et],mt.marker.collapsed&&!mt.marker.widgetNode&&mt.from==gt.to&&(mt.to==null||mt.to!=gt.from)&&(mt.marker.inclusiveLeft||gt.marker.inclusiveRight)&&fn(it,st,mt))return!0}function gi(it){it=Mn(it);for(var st=0,gt=it.parent,ct=0;ct<gt.lines.length;++ct){var mt=gt.lines[ct];if(mt==it)break;st+=mt.height}for(var Et=gt.parent;Et;gt=Et,Et=gt.parent)for(var bt=0;bt<Et.children.length;++bt){var Rt=Et.children[bt];if(Rt==gt)break;st+=Rt.height}return st}function Wi(it){if(it.height==0)return 0;for(var st=it.text.length,gt,ct=it;gt=Xo(ct);){var mt=gt.find(0,!0);ct=mt.from.line,st+=mt.from.ch-mt.to.ch}for(ct=it;gt=kr(ct);){var Et=gt.find(0,!0);st-=ct.text.length-Et.from.ch,ct=Et.to.line,st+=ct.text.length-Et.to.ch}return st}function ki(it){var st=it.display,gt=it.doc;st.maxLine=un(gt,gt.first),st.maxLineLength=Wi(st.maxLine),st.maxLineChanged=!0,gt.iter(function(ct){var mt=Wi(ct);mt>st.maxLineLength&&(st.maxLineLength=mt,st.maxLine=ct)})}var vi=function(it,st,gt){this.text=it,It(this,st),this.height=gt?gt(this):1};vi.prototype.lineNo=function(){return zt(this)},pi(vi);function Ji(it,st,gt,ct){it.text=st,it.stateAfter&&(it.stateAfter=null),it.styles&&(it.styles=null),it.order!=null&&(it.order=null),ri(it),It(it,gt);var mt=ct?ct(it):1;mt!=it.height&&ai(it,mt)}function Ki(it){it.parent=null,ri(it)}var Jo={},nr={};function $r(it,st){if(!it||/^\s*$/.test(it))return null;var gt=st.addModeClass?nr:Jo;return gt[it]||(gt[it]=it.replace(/\S+/g,"cm-$&"))}function be(it,st){var gt=Pe("span",null,null,Jt?"padding-right: .1px":null),ct={pre:Pe("pre",[gt],"CodeMirror-line"),content:gt,col:0,pos:0,cm:it,trailingSpace:!1,splitSpaces:it.getOption("lineWrapping")};st.measure={};for(var mt=0;mt<=(st.rest?st.rest.length:0);mt++){var Et=mt?st.rest[mt-1]:st.line,bt=void 0;ct.pos=0,ct.addToken=Ea,ho(it.display.measure)&&(bt=Gt(Et,it.doc.direction))&&(ct.addToken=cl(ct.addToken,bt)),ct.map=[];var Rt=st!=it.display.externalMeasured&&zt(Et);fa(Et,ct,Oi(it,Et,Rt)),Et.styleClasses&&(Et.styleClasses.bgClass&&(ct.bgClass=Ie(Et.styleClasses.bgClass,ct.bgClass||"")),Et.styleClasses.textClass&&(ct.textClass=Ie(Et.styleClasses.textClass,ct.textClass||""))),ct.map.length==0&&ct.map.push(0,0,ct.content.appendChild(mo(it.display.measure))),mt==0?(st.measure.map=ct.map,st.measure.cache={}):((st.measure.maps||(st.measure.maps=[])).push(ct.map),(st.measure.caches||(st.measure.caches=[])).push({}))}if(Jt){var Ot=ct.content.lastChild;(/\bcm-tab\b/.test(Ot.className)||Ot.querySelector&&Ot.querySelector(".cm-tab"))&&(ct.content.className="cm-tab-wrap-hack")}return hn(it,"renderLine",it,st.line,ct.pre),ct.pre.className&&(ct.textClass=Ie(ct.pre.className,ct.textClass||"")),ct}function Ir(it){var st=_t("span","\u2022","cm-invalidchar");return st.title="\\u"+it.charCodeAt(0).toString(16),st.setAttribute("aria-label",st.title),st}function Ea(it,st,gt,ct,mt,Et,bt){if(st){var Rt=it.splitSpaces?js(st,it.trailingSpace):st,Ot=it.cm.state.specialChars,Xt=!1,ke;if(!Ot.test(st))it.col+=st.length,ke=document.createTextNode(Rt),it.map.push(it.pos,it.pos+st.length,ke),Se&&Me<9&&(Xt=!0),it.pos+=st.length;else{ke=document.createDocumentFragment();for(var ee=0;;){Ot.lastIndex=ee;var Xe=Ot.exec(st),He=Xe?Xe.index-ee:st.length-ee;if(He){var Yn=document.createTextNode(Rt.slice(ee,ee+He));Se&&Me<9?ke.appendChild(_t("span",[Yn])):ke.appendChild(Yn),it.map.push(it.pos,it.pos+He,Yn),it.col+=He,it.pos+=He}if(!Xe)break;ee+=He+1;var $n=void 0;if(Xe[0]==" "){var hi=it.cm.options.tabSize,Mi=hi-it.col%hi;$n=ke.appendChild(_t("span",zn(Mi),"cm-tab")),$n.setAttribute("role","presentation"),$n.setAttribute("cm-text"," "),it.col+=Mi}else Xe[0]=="\r"||Xe[0]==`
|
|
`?($n=ke.appendChild(_t("span",Xe[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),$n.setAttribute("cm-text",Xe[0]),it.col+=1):($n=it.cm.options.specialCharPlaceholder(Xe[0]),$n.setAttribute("cm-text",Xe[0]),Se&&Me<9?ke.appendChild(_t("span",[$n])):ke.appendChild($n),it.col+=1);it.map.push(it.pos,it.pos+1,$n),it.pos++}}if(it.trailingSpace=Rt.charCodeAt(st.length-1)==32,gt||ct||mt||Xt||Et||bt){var zi=gt||"";ct&&(zi+=ct),mt&&(zi+=mt);var bi=_t("span",[ke],zi,Et);if(bt)for(var Yi in bt)bt.hasOwnProperty(Yi)&&Yi!="style"&&Yi!="class"&&bi.setAttribute(Yi,bt[Yi]);return it.content.appendChild(bi)}it.content.appendChild(ke)}}function js(it,st){if(it.length>1&&!/ /.test(it))return it;for(var gt=st,ct="",mt=0;mt<it.length;mt++){var Et=it.charAt(mt);Et==" "&>&&(mt==it.length-1||it.charCodeAt(mt+1)==32)&&(Et="\xA0"),ct+=Et,gt=Et==" "}return ct}function cl(it,st){return function(gt,ct,mt,Et,bt,Rt,Ot){mt=mt?mt+" cm-force-border":"cm-force-border";for(var Xt=gt.pos,ke=Xt+ct.length;;){for(var ee=void 0,Xe=0;Xe<st.length&&(ee=st[Xe],!(ee.to>Xt&&ee.from<=Xt));Xe++);if(ee.to>=ke)return it(gt,ct,mt,Et,bt,Rt,Ot);it(gt,ct.slice(0,ee.to-Xt),mt,Et,null,Rt,Ot),Et=null,ct=ct.slice(ee.to-Xt),Xt=ee.to}}}function pr(it,st,gt,ct){var mt=!ct&>.widgetNode;mt&&it.map.push(it.pos,it.pos+st,mt),!ct&&it.cm.display.input.needsContentAttribute&&(mt||(mt=it.content.appendChild(document.createElement("span"))),mt.setAttribute("cm-marker",gt.id)),mt&&(it.cm.display.input.setUneditable(mt),it.content.appendChild(mt)),it.pos+=st,it.trailingSpace=!1}function fa(it,st,gt){var ct=it.markedSpans,mt=it.text,Et=0;if(!ct){for(var bt=1;bt<gt.length;bt+=2)st.addToken(st,mt.slice(Et,Et=gt[bt]),$r(gt[bt+1],st.cm.options));return}for(var Rt=mt.length,Ot=0,Xt=1,ke="",ee,Xe,He=0,Yn,$n,hi,Mi,zi;;){if(He==Ot){Yn=$n=hi=Xe="",zi=null,Mi=null,He=1/0;for(var bi=[],Yi=void 0,Eo=0;Eo<ct.length;++Eo){var Ni=ct[Eo],zo=Ni.marker;if(zo.type=="bookmark"&&Ni.from==Ot&&zo.widgetNode)bi.push(zo);else if(Ni.from<=Ot&&(Ni.to==null||Ni.to>Ot||zo.collapsed&&Ni.to==Ot&&Ni.from==Ot)){if(Ni.to!=null&&Ni.to!=Ot&&He>Ni.to&&(He=Ni.to,$n=""),zo.className&&(Yn+=" "+zo.className),zo.css&&(Xe=(Xe?Xe+";":"")+zo.css),zo.startStyle&&Ni.from==Ot&&(hi+=" "+zo.startStyle),zo.endStyle&&Ni.to==He&&(Yi||(Yi=[])).push(zo.endStyle,Ni.to),zo.title&&((zi||(zi={})).title=zo.title),zo.attributes)for(var br in zo.attributes)(zi||(zi={}))[br]=zo.attributes[br];zo.collapsed&&(!Mi||Sr(Mi.marker,zo)<0)&&(Mi=Ni)}else Ni.from>Ot&&He>Ni.from&&(He=Ni.from)}if(Yi)for(var ps=0;ps<Yi.length;ps+=2)Yi[ps+1]==He&&($n+=" "+Yi[ps]);if(!Mi||Mi.from==Ot)for(var Vr=0;Vr<bi.length;++Vr)pr(st,0,bi[Vr]);if(Mi&&(Mi.from||0)==Ot){if(pr(st,(Mi.to==null?Rt+1:Mi.to)-Ot,Mi.marker,Mi.from==null),Mi.to==null)return;Mi.to==Ot&&(Mi=!1)}}if(Ot>=Rt)break;for(var ya=Math.min(Rt,He);;){if(ke){var qs=Ot+ke.length;if(!Mi){var us=qs>ya?ke.slice(0,ya-Ot):ke;st.addToken(st,us,ee?ee+Yn:Yn,hi,Ot+us.length==He?$n:"",Xe,zi)}if(qs>=ya){ke=ke.slice(ya-Ot),Ot=ya;break}Ot=qs,hi=""}ke=mt.slice(Et,Et=gt[Xt++]),ee=$r(gt[Xt++],st.cm.options)}}}function jo(it,st,gt){this.line=st,this.rest=gn(st),this.size=this.rest?zt(ae(this.rest))-gt+1:1,this.node=this.text=null,this.hidden=Ee(it,st)}function uo(it,st,gt){for(var ct=[],mt,Et=st;Et<gt;Et=mt){var bt=new jo(it.doc,un(it.doc,Et),Et);mt=Et+bt.size,ct.push(bt)}return ct}var Fo=null;function mr(it){Fo?Fo.ops.push(it):it.ownsGroup=Fo={ops:[it],delayedCallbacks:[]}}function ar(it){var st=it.delayedCallbacks,gt=0;do{for(;gt<st.length;gt++)st[gt].call(null);for(var ct=0;ct<it.ops.length;ct++){var mt=it.ops[ct];if(mt.cursorActivityHandlers)for(;mt.cursorActivityCalled<mt.cursorActivityHandlers.length;)mt.cursorActivityHandlers[mt.cursorActivityCalled++].call(null,mt.cm)}}while(gt<st.length)}function Qr(it,st){var gt=it.ownsGroup;if(gt)try{ar(gt)}finally{Fo=null,st(gt)}}var $o=null;function yi(it,st){var gt=Ke(it,st);if(gt.length){var ct=Array.prototype.slice.call(arguments,2),mt;Fo?mt=Fo.delayedCallbacks:$o?mt=$o:(mt=$o=[],setTimeout(Ss,0));for(var Et=function(Rt){mt.push(function(){return gt[Rt].apply(null,ct)})},bt=0;bt<gt.length;++bt)Et(bt)}}function Ss(){var it=$o;$o=null;for(var st=0;st<it.length;++st)it[st]()}function Aa(it,st,gt,ct){for(var mt=0;mt<st.changes.length;mt++){var Et=st.changes[mt];Et=="text"?ni(it,st):Et=="gutter"?ir(it,st,gt,ct):Et=="class"?lr(it,st):Et=="widget"&&Xr(it,st,ct)}st.changes=null}function Rs(it){return it.node==it.text&&(it.node=_t("div",null,null,"position: relative"),it.text.parentNode&&it.text.parentNode.replaceChild(it.node,it.text),it.node.appendChild(it.text),Se&&Me<8&&(it.node.style.zIndex=2)),it.node}function Ll(it,st){var gt=st.bgClass?st.bgClass+" "+(st.line.bgClass||""):st.line.bgClass;if(gt&&(gt+=" CodeMirror-linebackground"),st.background)gt?st.background.className=gt:(st.background.parentNode.removeChild(st.background),st.background=null);else if(gt){var ct=Rs(st);st.background=ct.insertBefore(_t("div",null,gt),ct.firstChild),it.display.input.setUneditable(st.background)}}function _a(it,st){var gt=it.display.externalMeasured;return gt&>.line==st.line?(it.display.externalMeasured=null,st.measure=gt.measure,gt.built):be(it,st)}function ni(it,st){var gt=st.text.className,ct=_a(it,st);st.text==st.node&&(st.node=ct.pre),st.text.parentNode.replaceChild(ct.pre,st.text),st.text=ct.pre,ct.bgClass!=st.bgClass||ct.textClass!=st.textClass?(st.bgClass=ct.bgClass,st.textClass=ct.textClass,lr(it,st)):gt&&(st.text.className=gt)}function lr(it,st){Ll(it,st),st.line.wrapClass?Rs(st).className=st.line.wrapClass:st.node!=st.text&&(st.node.className="");var gt=st.textClass?st.textClass+" "+(st.line.textClass||""):st.line.textClass;st.text.className=gt||""}function ir(it,st,gt,ct){if(st.gutter&&(st.node.removeChild(st.gutter),st.gutter=null),st.gutterBackground&&(st.node.removeChild(st.gutterBackground),st.gutterBackground=null),st.line.gutterClass){var mt=Rs(st);st.gutterBackground=_t("div",null,"CodeMirror-gutter-background "+st.line.gutterClass,"left: "+(it.options.fixedGutter?ct.fixedPos:-ct.gutterTotalWidth)+"px; width: "+ct.gutterTotalWidth+"px"),it.display.input.setUneditable(st.gutterBackground),mt.insertBefore(st.gutterBackground,st.text)}var Et=st.line.gutterMarkers;if(it.options.lineNumbers||Et){var bt=Rs(st),Rt=st.gutter=_t("div",null,"CodeMirror-gutter-wrapper","left: "+(it.options.fixedGutter?ct.fixedPos:-ct.gutterTotalWidth)+"px");if(it.display.input.setUneditable(Rt),bt.insertBefore(Rt,st.text),st.line.gutterClass&&(Rt.className+=" "+st.line.gutterClass),it.options.lineNumbers&&(!Et||!Et["CodeMirror-linenumbers"])&&(st.lineNumber=Rt.appendChild(_t("div",On(it.options,gt),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+ct.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+it.display.lineNumInnerWidth+"px"))),Et)for(var Ot=0;Ot<it.display.gutterSpecs.length;++Ot){var Xt=it.display.gutterSpecs[Ot].className,ke=Et.hasOwnProperty(Xt)&&Et[Xt];ke&&Rt.appendChild(_t("div",[ke],"CodeMirror-gutter-elt","left: "+ct.gutterLeft[Xt]+"px; width: "+ct.gutterWidth[Xt]+"px"))}}}function Xr(it,st,gt){st.alignable&&(st.alignable=null);for(var ct=Ut("CodeMirror-linewidget"),mt=st.node.firstChild,Et=void 0;mt;mt=Et)Et=mt.nextSibling,ct.test(mt.className)&&st.node.removeChild(mt);Ul(it,st,gt)}function uu(it,st,gt,ct){var mt=_a(it,st);return st.text=st.node=mt.pre,mt.bgClass&&(st.bgClass=mt.bgClass),mt.textClass&&(st.textClass=mt.textClass),lr(it,st),ir(it,st,gt,ct),Ul(it,st,ct),st.node}function Ul(it,st,gt){if(po(it,st.line,st,gt,!0),st.rest)for(var ct=0;ct<st.rest.length;ct++)po(it,st.rest[ct],st,gt,!1)}function po(it,st,gt,ct,mt){if(st.widgets)for(var Et=Rs(gt),bt=0,Rt=st.widgets;bt<Rt.length;++bt){var Ot=Rt[bt],Xt=_t("div",[Ot.node],"CodeMirror-linewidget"+(Ot.className?" "+Ot.className:""));Ot.handleMouseEvents||Xt.setAttribute("cm-ignore-events","true"),vh(Ot,Xt,gt,ct),it.display.input.setUneditable(Xt),mt&&Ot.above?Et.insertBefore(Xt,gt.gutter||gt.text):Et.appendChild(Xt),yi(Ot,"redraw")}}function vh(it,st,gt,ct){if(it.noHScroll){(gt.alignable||(gt.alignable=[])).push(st);var mt=ct.wrapperWidth;st.style.left=ct.fixedPos+"px",it.coverGutter||(mt-=ct.gutterTotalWidth,st.style.paddingLeft=ct.gutterTotalWidth+"px"),st.style.width=mt+"px"}it.coverGutter&&(st.style.zIndex=5,st.style.position="relative",it.noHScroll||(st.style.marginLeft=-ct.gutterTotalWidth+"px"))}function gl(it){if(it.height!=null)return it.height;var st=it.doc.cm;if(!st)return 0;if(!pe(document.body,it.node)){var gt="position: relative;";it.coverGutter&&(gt+="margin-left: -"+st.display.gutters.offsetWidth+"px;"),it.noHScroll&&(gt+="width: "+st.display.wrapper.clientWidth+"px;"),ne(st.display.measure,_t("div",[it.node],null,gt))}return it.height=it.node.parentNode.offsetHeight}function ia(it,st){for(var gt=Mo(st);gt!=it.wrapper;gt=gt.parentNode)if(!gt||gt.nodeType==1&>.getAttribute("cm-ignore-events")=="true"||gt.parentNode==it.sizer&>!=it.mover)return!0}function zs(it){return it.lineSpace.offsetTop}function Fl(it){return it.mover.offsetHeight-it.lineSpace.offsetHeight}function kl(it){if(it.cachedPaddingH)return it.cachedPaddingH;var st=ne(it.measure,_t("pre","x","CodeMirror-line-like")),gt=window.getComputedStyle?window.getComputedStyle(st):st.currentStyle,ct={left:parseInt(gt.paddingLeft),right:parseInt(gt.paddingRight)};return!isNaN(ct.left)&&!isNaN(ct.right)&&(it.cachedPaddingH=ct),ct}function Qs(it){return nn-it.display.nativeBarWidth}function za(it){return it.display.scroller.clientWidth-Qs(it)-it.display.barWidth}function Sn(it){return it.display.scroller.clientHeight-Qs(it)-it.display.barHeight}function eo(it,st,gt){var ct=it.options.lineWrapping,mt=ct&&za(it);if(!st.measure.heights||ct&&st.measure.width!=mt){var Et=st.measure.heights=[];if(ct){st.measure.width=mt;for(var bt=st.text.firstChild.getClientRects(),Rt=0;Rt<bt.length-1;Rt++){var Ot=bt[Rt],Xt=bt[Rt+1];Math.abs(Ot.bottom-Xt.bottom)>2&&Et.push((Ot.bottom+Xt.top)/2-gt.top)}}Et.push(gt.bottom-gt.top)}}function Po(it,st,gt){if(it.line==st)return{map:it.measure.map,cache:it.measure.cache};for(var ct=0;ct<it.rest.length;ct++)if(it.rest[ct]==st)return{map:it.measure.maps[ct],cache:it.measure.caches[ct]};for(var mt=0;mt<it.rest.length;mt++)if(zt(it.rest[mt])>gt)return{map:it.measure.maps[mt],cache:it.measure.caches[mt],before:!0}}function To(it,st){st=Mn(st);var gt=zt(st),ct=it.display.externalMeasured=new jo(it.doc,st,gt);ct.lineN=gt;var mt=ct.built=be(it,ct);return ct.text=mt.pre,ne(it.display.lineMeasure,mt.pre),ct}function Yo(it,st,gt,ct){return vr(it,xr(it,st),gt,ct)}function No(it,st){if(st>=it.display.viewFrom&&st<it.display.viewTo)return it.display.view[Ga(it,st)];var gt=it.display.externalMeasured;if(gt&&st>=gt.lineN&&st<gt.lineN+gt.size)return gt}function xr(it,st){var gt=zt(st),ct=No(it,gt);ct&&!ct.text?ct=null:ct&&ct.changes&&(Aa(it,ct,gt,Rc(it)),it.curOp.forceUpdate=!0),ct||(ct=To(it,st));var mt=Po(ct,st,gt);return{line:st,view:ct,rect:null,map:mt.map,cache:mt.cache,before:mt.before,hasHeights:!1}}function vr(it,st,gt,ct,mt){st.before&&(gt=-1);var Et=gt+(ct||""),bt;return st.cache.hasOwnProperty(Et)?bt=st.cache[Et]:(st.rect||(st.rect=st.view.text.getBoundingClientRect()),st.hasHeights||(eo(it,st.view,st.rect),st.hasHeights=!0),bt=Or(it,st,gt,ct),bt.bogus||(st.cache[Et]=bt)),{left:bt.left,right:bt.right,top:mt?bt.rtop:bt.top,bottom:mt?bt.rbottom:bt.bottom}}var xs={left:0,right:0,top:0,bottom:0};function Jr(it,st,gt){for(var ct,mt,Et,bt,Rt,Ot,Xt=0;Xt<it.length;Xt+=3)if(Rt=it[Xt],Ot=it[Xt+1],st<Rt?(mt=0,Et=1,bt="left"):st<Ot?(mt=st-Rt,Et=mt+1):(Xt==it.length-3||st==Ot&&it[Xt+3]>st)&&(Et=Ot-Rt,mt=Et-1,st>=Ot&&(bt="right")),mt!=null){if(ct=it[Xt+2],Rt==Ot&>==(ct.insertLeft?"left":"right")&&(bt=gt),gt=="left"&&mt==0)for(;Xt&&it[Xt-2]==it[Xt-3]&&it[Xt-1].insertLeft;)ct=it[(Xt-=3)+2],bt="left";if(gt=="right"&&mt==Ot-Rt)for(;Xt<it.length-3&&it[Xt+3]==it[Xt+4]&&!it[Xt+5].insertLeft;)ct=it[(Xt+=3)+2],bt="right";break}return{node:ct,start:mt,end:Et,collapse:bt,coverStart:Rt,coverEnd:Ot}}function Xs(it,st){var gt=xs;if(st=="left")for(var ct=0;ct<it.length&&(gt=it[ct]).left==gt.right;ct++);else for(var mt=it.length-1;mt>=0&&(gt=it[mt]).left==gt.right;mt--);return gt}function Or(it,st,gt,ct){var mt=Jr(st.map,gt,ct),Et=mt.node,bt=mt.start,Rt=mt.end,Ot=mt.collapse,Xt;if(Et.nodeType==3){for(var ke=0;ke<4;ke++){for(;bt&&sn(st.line.text.charAt(mt.coverStart+bt));)--bt;for(;mt.coverStart+Rt<mt.coverEnd&&sn(st.line.text.charAt(mt.coverStart+Rt));)++Rt;if(Se&&Me<9&&bt==0&&Rt==mt.coverEnd-mt.coverStart?Xt=Et.parentNode.getBoundingClientRect():Xt=Xs(ue(Et,bt,Rt).getClientRects(),ct),Xt.left||Xt.right||bt==0)break;Rt=bt,bt=bt-1,Ot="right"}Se&&Me<11&&(Xt=sd(it.display.measure,Xt))}else{bt>0&&(Ot=ct="right");var ee;it.options.lineWrapping&&(ee=Et.getClientRects()).length>1?Xt=ee[ct=="right"?ee.length-1:0]:Xt=Et.getBoundingClientRect()}if(Se&&Me<9&&!bt&&(!Xt||!Xt.left&&!Xt.right)){var Xe=Et.parentNode.getClientRects()[0];Xe?Xt={left:Xe.left,right:Xe.left+Sh(it.display),top:Xe.top,bottom:Xe.bottom}:Xt=xs}for(var He=Xt.top-st.rect.top,Yn=Xt.bottom-st.rect.top,$n=(He+Yn)/2,hi=st.view.measure.heights,Mi=0;Mi<hi.length-1&&!($n<hi[Mi]);Mi++);var zi=Mi?hi[Mi-1]:0,bi=hi[Mi],Yi={left:(Ot=="right"?Xt.right:Xt.left)-st.rect.left,right:(Ot=="left"?Xt.left:Xt.right)-st.rect.left,top:zi,bottom:bi};return!Xt.left&&!Xt.right&&(Yi.bogus=!0),it.options.singleCursorHeightPerLine||(Yi.rtop=He,Yi.rbottom=Yn),Yi}function sd(it,st){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Ce(it))return st;var gt=screen.logicalXDPI/screen.deviceXDPI,ct=screen.logicalYDPI/screen.deviceYDPI;return{left:st.left*gt,right:st.right*gt,top:st.top*ct,bottom:st.bottom*ct}}function yh(it){if(it.measure&&(it.measure.cache={},it.measure.heights=null,it.rest))for(var st=0;st<it.rest.length;st++)it.measure.caches[st]={}}function Bl(it){it.display.externalMeasure=null,$t(it.display.lineMeasure);for(var st=0;st<it.display.view.length;st++)yh(it.display.view[st])}function fl(it){Bl(it),it.display.cachedCharWidth=it.display.cachedTextHeight=it.display.cachedPaddingH=null,it.options.lineWrapping||(it.display.maxLineChanged=!0),it.display.lineNumChars=null}function as(){return ce&&et?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Gs(){return ce&&et?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function ts(it){var st=0;if(it.widgets)for(var gt=0;gt<it.widgets.length;++gt)it.widgets[gt].above&&(st+=gl(it.widgets[gt]));return st}function qr(it,st,gt,ct,mt){if(!mt){var Et=ts(st);gt.top+=Et,gt.bottom+=Et}if(ct=="line")return gt;ct||(ct="local");var bt=gi(st);if(ct=="local"?bt+=zs(it.display):bt-=it.display.viewOffset,ct=="page"||ct=="window"){var Rt=it.display.lineSpace.getBoundingClientRect();bt+=Rt.top+(ct=="window"?0:Gs());var Ot=Rt.left+(ct=="window"?0:as());gt.left+=Ot,gt.right+=Ot}return gt.top+=bt,gt.bottom+=bt,gt}function pl(it,st,gt){if(gt=="div")return st;var ct=st.left,mt=st.top;if(gt=="page")ct-=as(),mt-=Gs();else if(gt=="local"||!gt){var Et=it.display.sizer.getBoundingClientRect();ct+=Et.left,mt+=Et.top}var bt=it.display.lineSpace.getBoundingClientRect();return{left:ct-bt.left,top:mt-bt.top}}function hu(it,st,gt,ct,mt){return ct||(ct=un(it.doc,st.line)),qr(it,ct,Yo(it,ct,st.ch,mt),gt)}function Gr(it,st,gt,ct,mt,Et){ct=ct||un(it.doc,st.line),mt||(mt=xr(it,ct));function bt(Yn,$n){var hi=vr(it,mt,Yn,$n?"right":"left",Et);return $n?hi.left=hi.right:hi.right=hi.left,qr(it,ct,hi,gt)}var Rt=Gt(ct,it.doc.direction),Ot=st.ch,Xt=st.sticky;if(Ot>=ct.text.length?(Ot=ct.text.length,Xt="before"):Ot<=0&&(Ot=0,Xt="after"),!Rt)return bt(Xt=="before"?Ot-1:Ot,Xt=="before");function ke(Yn,$n,hi){var Mi=Rt[$n],zi=Mi.level==1;return bt(hi?Yn-1:Yn,zi!=hi)}var ee=St(Rt,Ot,Xt),Xe=Ct,He=ke(Ot,ee,Xt=="before");return Xe!=null&&(He.other=ke(Ot,Xe,Xt!="before")),He}function Ic(it,st){var gt=0;st=si(it.doc,st),it.options.lineWrapping||(gt=Sh(it.display)*st.ch);var ct=un(it.doc,st.line),mt=gi(ct)+zs(it.display);return{left:gt,right:gt,top:mt,bottom:mt+ct.height}}function Oc(it,st,gt,ct,mt){var Et=Te(it,st,gt);return Et.xRel=mt,ct&&(Et.outside=ct),Et}function jc(it,st,gt){var ct=it.doc;if(gt+=it.display.viewOffset,gt<0)return Oc(ct.first,0,null,-1,-1);var mt=Fe(ct,gt),Et=ct.first+ct.size-1;if(mt>Et)return Oc(ct.first+ct.size-1,un(ct,Et).text.length,null,1,1);st<0&&(st=0);for(var bt=un(ct,mt);;){var Rt=cn(it,bt,mt,st,gt),Ot=Zt(bt,Rt.ch+(Rt.xRel>0||Rt.outside>0?1:0));if(!Ot)return Rt;var Xt=Ot.find(1);if(Xt.line==mt)return Xt;bt=un(ct,mt=Xt.line)}}function Di(it,st,gt,ct){ct-=ts(st);var mt=st.text.length,Et=en(function(bt){return vr(it,gt,bt-1).bottom<=ct},mt,0);return mt=en(function(bt){return vr(it,gt,bt).top>ct},Et,mt),{begin:Et,end:mt}}function Jg(it,st,gt,ct){gt||(gt=xr(it,st));var mt=qr(it,st,vr(it,gt,ct),"line").top;return Di(it,st,gt,mt)}function se(it,st,gt,ct){return it.bottom<=gt?!1:it.top>gt?!0:(ct?it.left:it.right)>st}function cn(it,st,gt,ct,mt){mt-=gi(st);var Et=xr(it,st),bt=ts(st),Rt=0,Ot=st.text.length,Xt=!0,ke=Gt(st,it.doc.direction);if(ke){var ee=(it.options.lineWrapping?Dp:bp)(it,st,gt,Et,ke,ct,mt);Xt=ee.level!=1,Rt=Xt?ee.from:ee.to-1,Ot=Xt?ee.to:ee.from-1}var Xe=null,He=null,Yn=en(function(Eo){var Ni=vr(it,Et,Eo);return Ni.top+=bt,Ni.bottom+=bt,se(Ni,ct,mt,!1)?(Ni.top<=mt&&Ni.left<=ct&&(Xe=Eo,He=Ni),!0):!1},Rt,Ot),$n,hi,Mi=!1;if(He){var zi=ct-He.left<He.right-ct,bi=zi==Xt;Yn=Xe+(bi?0:1),hi=bi?"after":"before",$n=zi?He.left:He.right}else{!Xt&&(Yn==Ot||Yn==Rt)&&Yn++,hi=Yn==0?"after":Yn==st.text.length?"before":vr(it,Et,Yn-(Xt?1:0)).bottom+bt<=mt==Xt?"after":"before";var Yi=Gr(it,Te(gt,Yn,hi),"line",st,Et);$n=Yi.left,Mi=mt<Yi.top?-1:mt>=Yi.bottom?1:0}return Yn=We(st.text,Yn,1),Oc(gt,Yn,hi,Mi,ct-$n)}function bp(it,st,gt,ct,mt,Et,bt){var Rt=en(function(ee){var Xe=mt[ee],He=Xe.level!=1;return se(Gr(it,Te(gt,He?Xe.to:Xe.from,He?"before":"after"),"line",st,ct),Et,bt,!0)},0,mt.length-1),Ot=mt[Rt];if(Rt>0){var Xt=Ot.level!=1,ke=Gr(it,Te(gt,Xt?Ot.from:Ot.to,Xt?"after":"before"),"line",st,ct);se(ke,Et,bt,!0)&&ke.top>bt&&(Ot=mt[Rt-1])}return Ot}function Dp(it,st,gt,ct,mt,Et,bt){var Rt=Di(it,st,ct,bt),Ot=Rt.begin,Xt=Rt.end;/\s/.test(st.text.charAt(Xt-1))&&Xt--;for(var ke=null,ee=null,Xe=0;Xe<mt.length;Xe++){var He=mt[Xe];if(!(He.from>=Xt||He.to<=Ot)){var Yn=He.level!=1,$n=vr(it,ct,Yn?Math.min(Xt,He.to)-1:Math.max(Ot,He.from)).right,hi=$n<Et?Et-$n+1e9:$n-Et;(!ke||ee>hi)&&(ke=He,ee=hi)}}return ke||(ke=mt[mt.length-1]),ke.from<Ot&&(ke={from:Ot,to:ke.to,level:ke.level}),ke.to>Xt&&(ke={from:ke.from,to:Xt,level:ke.level}),ke}var du;function cu(it){if(it.cachedTextHeight!=null)return it.cachedTextHeight;if(du==null){du=_t("pre",null,"CodeMirror-line-like");for(var st=0;st<49;++st)du.appendChild(document.createTextNode("x")),du.appendChild(_t("br"));du.appendChild(document.createTextNode("x"))}ne(it.measure,du);var gt=du.offsetHeight/50;return gt>3&&(it.cachedTextHeight=gt),$t(it.measure),gt||1}function Sh(it){if(it.cachedCharWidth!=null)return it.cachedCharWidth;var st=_t("span","xxxxxxxxxx"),gt=_t("pre",[st],"CodeMirror-line-like");ne(it.measure,gt);var ct=st.getBoundingClientRect(),mt=(ct.right-ct.left)/10;return mt>2&&(it.cachedCharWidth=mt),mt||10}function Rc(it){for(var st=it.display,gt={},ct={},mt=st.gutters.clientLeft,Et=st.gutters.firstChild,bt=0;Et;Et=Et.nextSibling,++bt){var Rt=it.display.gutterSpecs[bt].className;gt[Rt]=Et.offsetLeft+Et.clientLeft+mt,ct[Rt]=Et.clientWidth}return{fixedPos:Ud(st),gutterTotalWidth:st.gutters.offsetWidth,gutterLeft:gt,gutterWidth:ct,wrapperWidth:st.wrapper.clientWidth}}function Ud(it){return it.scroller.getBoundingClientRect().left-it.sizer.getBoundingClientRect().left}function Br(it){var st=cu(it.display),gt=it.options.lineWrapping,ct=gt&&Math.max(5,it.display.scroller.clientWidth/Sh(it.display)-3);return function(mt){if(Ee(it.doc,mt))return 0;var Et=0;if(mt.widgets)for(var bt=0;bt<mt.widgets.length;bt++)mt.widgets[bt].height&&(Et+=mt.widgets[bt].height);return gt?Et+(Math.ceil(mt.text.length/ct)||1)*st:Et+st}}function ro(it){var st=it.doc,gt=Br(it);st.iter(function(ct){var mt=gt(ct);mt!=ct.height&&ai(ct,mt)})}function oa(it,st,gt,ct){var mt=it.display;if(!gt&&Mo(st).getAttribute("cm-not-content")=="true")return null;var Et,bt,Rt=mt.lineSpace.getBoundingClientRect();try{Et=st.clientX-Rt.left,bt=st.clientY-Rt.top}catch(ee){return null}var Ot=jc(it,Et,bt),Xt;if(ct&&Ot.xRel>0&&(Xt=un(it.doc,Ot.line).text).length==Ot.ch){var ke=de(Xt,Xt.length,it.options.tabSize)-Xt.length;Ot=Te(Ot.line,Math.max(0,Math.round((Et-kl(it.display).left)/Sh(it.display))-ke))}return Ot}function Ga(it,st){if(st>=it.display.viewTo||(st-=it.display.viewFrom,st<0))return null;for(var gt=it.display.view,ct=0;ct<gt.length;ct++)if(st-=gt[ct].size,st<0)return ct}function Nr(it,st,gt,ct){st==null&&(st=it.doc.first),gt==null&&(gt=it.doc.first+it.doc.size),ct||(ct=0);var mt=it.display;if(ct&><mt.viewTo&&(mt.updateLineNumbers==null||mt.updateLineNumbers>st)&&(mt.updateLineNumbers=st),it.curOp.viewChanged=!0,st>=mt.viewTo)$e&&Tn(it.doc,st)<mt.viewTo&&es(it);else if(gt<=mt.viewFrom)$e&&Pn(it.doc,gt+ct)>mt.viewFrom?es(it):(mt.viewFrom+=ct,mt.viewTo+=ct);else if(st<=mt.viewFrom&>>=mt.viewTo)es(it);else if(st<=mt.viewFrom){var Et=pa(it,gt,gt+ct,1);Et?(mt.view=mt.view.slice(Et.index),mt.viewFrom=Et.lineN,mt.viewTo+=ct):es(it)}else if(gt>=mt.viewTo){var bt=pa(it,st,st,-1);bt?(mt.view=mt.view.slice(0,bt.index),mt.viewTo=bt.lineN):es(it)}else{var Rt=pa(it,st,st,-1),Ot=pa(it,gt,gt+ct,1);Rt&&Ot?(mt.view=mt.view.slice(0,Rt.index).concat(uo(it,Rt.lineN,Ot.lineN)).concat(mt.view.slice(Ot.index)),mt.viewTo+=ct):es(it)}var Xt=mt.externalMeasured;Xt&&(gt<Xt.lineN?Xt.lineN+=ct:st<Xt.lineN+Xt.size&&(mt.externalMeasured=null))}function Oo(it,st,gt){it.curOp.viewChanged=!0;var ct=it.display,mt=it.display.externalMeasured;if(mt&&st>=mt.lineN&&st<mt.lineN+mt.size&&(ct.externalMeasured=null),!(st<ct.viewFrom||st>=ct.viewTo)){var Et=ct.view[Ga(it,st)];if(Et.node!=null){var bt=Et.changes||(Et.changes=[]);xe(bt,gt)==-1&&bt.push(gt)}}}function es(it){it.display.viewFrom=it.display.viewTo=it.doc.first,it.display.view=[],it.display.viewOffset=0}function pa(it,st,gt,ct){var mt=Ga(it,st),Et,bt=it.display.view;if(!$e||gt==it.doc.first+it.doc.size)return{index:mt,lineN:gt};for(var Rt=it.display.viewFrom,Ot=0;Ot<mt;Ot++)Rt+=bt[Ot].size;if(Rt!=st){if(ct>0){if(mt==bt.length-1)return null;Et=Rt+bt[mt].size-st,mt++}else Et=Rt-st;st+=Et,gt+=Et}for(;Tn(it.doc,gt)!=gt;){if(mt==(ct<0?0:bt.length-1))return null;gt+=ct*bt[mt-(ct<0?1:0)].size,mt+=ct}return{index:mt,lineN:gt}}function yr(it,st,gt){var ct=it.display,mt=ct.view;mt.length==0||st>=ct.viewTo||gt<=ct.viewFrom?(ct.view=uo(it,st,gt),ct.viewFrom=st):(ct.viewFrom>st?ct.view=uo(it,st,ct.viewFrom).concat(ct.view):ct.viewFrom<st&&(ct.view=ct.view.slice(Ga(it,st))),ct.viewFrom=st,ct.viewTo<gt?ct.view=ct.view.concat(uo(it,ct.viewTo,gt)):ct.viewTo>gt&&(ct.view=ct.view.slice(0,Ga(it,gt)))),ct.viewTo=gt}function Ma(it){for(var st=it.display.view,gt=0,ct=0;ct<st.length;ct++){var mt=st[ct];!mt.hidden&&(!mt.node||mt.changes)&&++gt}return gt}function cs(it){it.display.input.showSelection(it.display.input.prepareSelection())}function bu(it,st){st===void 0&&(st=!0);for(var gt=it.doc,ct={},mt=ct.cursors=document.createDocumentFragment(),Et=ct.selection=document.createDocumentFragment(),bt=0;bt<gt.sel.ranges.length;bt++)if(!(!st&&bt==gt.sel.primIndex)){var Rt=gt.sel.ranges[bt];if(!(Rt.from().line>=it.display.viewTo||Rt.to().line<it.display.viewFrom)){var Ot=Rt.empty();(Ot||it.options.showCursorWhenSelecting)&&Wo(it,Rt.head,mt),Ot||Uo(it,Rt,Et)}}return ct}function Wo(it,st,gt){var ct=Gr(it,st,"div",null,null,!it.options.singleCursorHeightPerLine),mt=gt.appendChild(_t("div","\xA0","CodeMirror-cursor"));if(mt.style.left=ct.left+"px",mt.style.top=ct.top+"px",mt.style.height=Math.max(0,ct.bottom-ct.top)*it.options.cursorHeight+"px",ct.other){var Et=gt.appendChild(_t("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));Et.style.display="",Et.style.left=ct.other.left+"px",Et.style.top=ct.other.top+"px",Et.style.height=(ct.other.bottom-ct.other.top)*.85+"px"}}function ra(it,st){return it.top-st.top||it.left-st.left}function Uo(it,st,gt){var ct=it.display,mt=it.doc,Et=document.createDocumentFragment(),bt=kl(it.display),Rt=bt.left,Ot=Math.max(ct.sizerWidth,za(it)-ct.sizer.offsetLeft)-bt.right,Xt=mt.direction=="ltr";function ke(bi,Yi,Eo,Ni){Yi<0&&(Yi=0),Yi=Math.round(Yi),Ni=Math.round(Ni),Et.appendChild(_t("div",null,"CodeMirror-selected","position: absolute; left: "+bi+`px;
|
|
top: `+Yi+"px; width: "+(Eo==null?Ot-bi:Eo)+`px;
|
|
height: `+(Ni-Yi)+"px"))}function ee(bi,Yi,Eo){var Ni=un(mt,bi),zo=Ni.text.length,br,ps;function Vr(us,Ba){return hu(it,Te(bi,us),"div",Ni,Ba)}function ya(us,Ba,Vs){var hs=Jg(it,Ni,null,us),er=Ba=="ltr"==(Vs=="after")?"left":"right",Yr=Vs=="after"?hs.begin:hs.end-(/\s/.test(Ni.text.charAt(hs.end-1))?2:1);return Vr(Yr,er)[er]}var qs=Gt(Ni,mt.direction);return Nt(qs,Yi||0,Eo==null?zo:Eo,function(us,Ba,Vs,hs){var er=Vs=="ltr",Yr=Vr(us,er?"left":"right"),Ms=Vr(Ba-1,er?"right":"left"),Us=Yi==null&&us==0,vl=Eo==null&&Ba==zo,Ur=hs==0,il=!qs||hs==qs.length-1;if(Ms.top-Yr.top<=3){var _r=(Xt?Us:vl)&&Ur,cc=(Xt?vl:Us)&&il,Wa=_r?Rt:(er?Yr:Ms).left,Na=cc?Ot:(er?Ms:Yr).right;ke(Wa,Yr.top,Na-Wa,Yr.bottom)}else{var Sa,Pr,Ls,Xl;er?(Sa=Xt&&Us&&Ur?Rt:Yr.left,Pr=Xt?Ot:ya(us,Vs,"before"),Ls=Xt?Rt:ya(Ba,Vs,"after"),Xl=Xt&&vl&&il?Ot:Ms.right):(Sa=Xt?ya(us,Vs,"before"):Rt,Pr=!Xt&&Us&&Ur?Ot:Yr.right,Ls=!Xt&&vl&&il?Rt:Ms.left,Xl=Xt?ya(Ba,Vs,"after"):Ot),ke(Sa,Yr.top,Pr-Sa,Yr.bottom),Yr.bottom<Ms.top&&ke(Rt,Yr.bottom,null,Ms.top),ke(Ls,Ms.top,Xl-Ls,Ms.bottom)}(!br||ra(Yr,br)<0)&&(br=Yr),ra(Ms,br)<0&&(br=Ms),(!ps||ra(Yr,ps)<0)&&(ps=Yr),ra(Ms,ps)<0&&(ps=Ms)}),{start:br,end:ps}}var Xe=st.from(),He=st.to();if(Xe.line==He.line)ee(Xe.line,Xe.ch,He.ch);else{var Yn=un(mt,Xe.line),$n=un(mt,He.line),hi=Mn(Yn)==Mn($n),Mi=ee(Xe.line,Xe.ch,hi?Yn.text.length+1:null).end,zi=ee(He.line,hi?0:null,He.ch).start;hi&&(Mi.top<zi.top-2?(ke(Mi.right,Mi.top,null,Mi.bottom),ke(Rt,zi.top,zi.left,zi.bottom)):ke(Mi.right,Mi.top,zi.left-Mi.right,Mi.bottom)),Mi.bottom<zi.top&&ke(Rt,Mi.bottom,null,zi.top)}gt.appendChild(Et)}function ur(it){if(it.state.focused){var st=it.display;clearInterval(st.blinker);var gt=!0;st.cursorDiv.style.visibility="",it.options.cursorBlinkRate>0?st.blinker=setInterval(function(){it.hasFocus()||xh(it),st.cursorDiv.style.visibility=(gt=!gt)?"":"hidden"},it.options.cursorBlinkRate):it.options.cursorBlinkRate<0&&(st.cursorDiv.style.visibility="hidden")}}function Ar(it){it.state.focused||(it.display.input.focus(),Zo(it))}function jr(it){it.state.delayingBlurEvent=!0,setTimeout(function(){it.state.delayingBlurEvent&&(it.state.delayingBlurEvent=!1,xh(it))},100)}function Zo(it,st){it.state.delayingBlurEvent&&(it.state.delayingBlurEvent=!1),it.options.readOnly!="nocursor"&&(it.state.focused||(hn(it,"focus",it,st),it.state.focused=!0,Ae(it.display.wrapper,"CodeMirror-focused"),!it.curOp&&it.display.selForContextMenu!=it.doc.sel&&(it.display.input.reset(),Jt&&setTimeout(function(){return it.display.input.reset(!0)},20)),it.display.input.receivedFocus()),ur(it))}function xh(it,st){it.state.delayingBlurEvent||(it.state.focused&&(hn(it,"blur",it,st),it.state.focused=!1,Qt(it.display.wrapper,"CodeMirror-focused")),clearInterval(it.display.blinker),setTimeout(function(){it.state.focused||(it.display.shift=!1)},150))}function no(it){for(var st=it.display,gt=st.lineDiv.offsetTop,ct=0;ct<st.view.length;ct++){var mt=st.view[ct],Et=it.options.lineWrapping,bt=void 0,Rt=0;if(!mt.hidden){if(Se&&Me<8){var Ot=mt.node.offsetTop+mt.node.offsetHeight;bt=Ot-gt,gt=Ot}else{var Xt=mt.node.getBoundingClientRect();bt=Xt.bottom-Xt.top,!Et&&mt.text.firstChild&&(Rt=mt.text.firstChild.getBoundingClientRect().right-Xt.left-1)}var ke=mt.line.height-bt;if((ke>.005||ke<-.005)&&(ai(mt.line,bt),Tp(mt.line),mt.rest))for(var ee=0;ee<mt.rest.length;ee++)Tp(mt.rest[ee]);if(Rt>it.display.sizerWidth){var Xe=Math.ceil(Rt/Sh(it.display));Xe>it.display.maxLineLength&&(it.display.maxLineLength=Xe,it.display.maxLine=mt.line,it.display.maxLineChanged=!0)}}}}function Tp(it){if(it.widgets)for(var st=0;st<it.widgets.length;++st){var gt=it.widgets[st],ct=gt.node.parentNode;ct&&(gt.height=ct.offsetHeight)}}function Vo(it,st,gt){var ct=gt&>.top!=null?Math.max(0,gt.top):it.scroller.scrollTop;ct=Math.floor(ct-zs(it));var mt=gt&>.bottom!=null?gt.bottom:ct+it.wrapper.clientHeight,Et=Fe(st,ct),bt=Fe(st,mt);if(gt&>.ensure){var Rt=gt.ensure.from.line,Ot=gt.ensure.to.line;Rt<Et?(Et=Rt,bt=Fe(st,gi(un(st,Rt))+it.wrapper.clientHeight)):Math.min(Ot,st.lastLine())>=bt&&(Et=Fe(st,gi(un(st,Ot))-it.wrapper.clientHeight),bt=Ot)}return{from:Et,to:Math.max(bt,Et+1)}}function Ip(it,st){if(!Jn(it,"scrollCursorIntoView")){var gt=it.display,ct=gt.sizer.getBoundingClientRect(),mt=null;if(st.top+ct.top<0?mt=!0:st.bottom+ct.top>(window.innerHeight||document.documentElement.clientHeight)&&(mt=!1),mt!=null&&!je){var Et=_t("div","\u200B",null,`position: absolute;
|
|
top: `+(st.top-gt.viewOffset-zs(it.display))+`px;
|
|
height: `+(st.bottom-st.top+Qs(it)+gt.barHeight)+`px;
|
|
left: `+st.left+"px; width: "+Math.max(2,st.right-st.left)+"px;");it.display.lineSpace.appendChild(Et),Et.scrollIntoView(mt),it.display.lineSpace.removeChild(Et)}}}function ad(it,st,gt,ct){ct==null&&(ct=0);var mt;!it.options.lineWrapping&&st==gt&&(st=st.ch?Te(st.line,st.sticky=="before"?st.ch-1:st.ch,"after"):st,gt=st.sticky=="before"?Te(st.line,st.ch+1,"before"):st);for(var Et=0;Et<5;Et++){var bt=!1,Rt=Gr(it,st),Ot=!gt||gt==st?Rt:Gr(it,gt);mt={left:Math.min(Rt.left,Ot.left),top:Math.min(Rt.top,Ot.top)-ct,right:Math.max(Rt.left,Ot.left),bottom:Math.max(Rt.bottom,Ot.bottom)+ct};var Xt=qg(it,mt),ke=it.doc.scrollTop,ee=it.doc.scrollLeft;if(Xt.scrollTop!=null&&(Ph(it,Xt.scrollTop),Math.abs(it.doc.scrollTop-ke)>1&&(bt=!0)),Xt.scrollLeft!=null&&(fu(it,Xt.scrollLeft),Math.abs(it.doc.scrollLeft-ee)>1&&(bt=!0)),!bt)break}return mt}function Wd(it,st){var gt=qg(it,st);gt.scrollTop!=null&&Ph(it,gt.scrollTop),gt.scrollLeft!=null&&fu(it,gt.scrollLeft)}function qg(it,st){var gt=it.display,ct=cu(it.display);st.top<0&&(st.top=0);var mt=it.curOp&&it.curOp.scrollTop!=null?it.curOp.scrollTop:gt.scroller.scrollTop,Et=Sn(it),bt={};st.bottom-st.top>Et&&(st.bottom=st.top+Et);var Rt=it.doc.height+Fl(gt),Ot=st.top<ct,Xt=st.bottom>Rt-ct;if(st.top<mt)bt.scrollTop=Ot?0:st.top;else if(st.bottom>mt+Et){var ke=Math.min(st.top,(Xt?Rt:st.bottom)-Et);ke!=mt&&(bt.scrollTop=ke)}var ee=it.options.fixedGutter?0:gt.gutters.offsetWidth,Xe=it.curOp&&it.curOp.scrollLeft!=null?it.curOp.scrollLeft:gt.scroller.scrollLeft-ee,He=za(it)-gt.gutters.offsetWidth,Yn=st.right-st.left>He;return Yn&&(st.right=st.left+He),st.left<10?bt.scrollLeft=0:st.left<Xe?bt.scrollLeft=Math.max(0,st.left+ee-(Yn?0:10)):st.right>He+Xe-3&&(bt.scrollLeft=st.right+(Yn?0:10)-He),bt}function zc(it,st){st!=null&&(Wl(it),it.curOp.scrollTop=(it.curOp.scrollTop==null?it.doc.scrollTop:it.curOp.scrollTop)+st)}function gu(it){Wl(it);var st=it.getCursor();it.curOp.scrollToPos={from:st,to:st,margin:it.options.cursorScrollMargin}}function wh(it,st,gt){(st!=null||gt!=null)&&Wl(it),st!=null&&(it.curOp.scrollLeft=st),gt!=null&&(it.curOp.scrollTop=gt)}function Ko(it,st){Wl(it),it.curOp.scrollToPos=st}function Wl(it){var st=it.curOp.scrollToPos;if(st){it.curOp.scrollToPos=null;var gt=Ic(it,st.from),ct=Ic(it,st.to);Gc(it,gt,ct,st.margin)}}function Gc(it,st,gt,ct){var mt=qg(it,{left:Math.min(st.left,gt.left),top:Math.min(st.top,gt.top)-ct,right:Math.max(st.right,gt.right),bottom:Math.max(st.bottom,gt.bottom)+ct});wh(it,mt.scrollLeft,mt.scrollTop)}function Ph(it,st){Math.abs(it.doc.scrollTop-st)<2||(ht||Ru(it,{top:st}),_g(it,st,!0),ht&&Ru(it),ld(it,100))}function _g(it,st,gt){st=Math.max(0,Math.min(it.display.scroller.scrollHeight-it.display.scroller.clientHeight,st)),!(it.display.scroller.scrollTop==st&&!gt)&&(it.doc.scrollTop=st,it.display.scrollbars.setScrollTop(st),it.display.scroller.scrollTop!=st&&(it.display.scroller.scrollTop=st))}function fu(it,st,gt,ct){st=Math.max(0,Math.min(st,it.display.scroller.scrollWidth-it.display.scroller.clientWidth)),!((gt?st==it.doc.scrollLeft:Math.abs(it.doc.scrollLeft-st)<2)&&!ct)&&(it.doc.scrollLeft=st,Uc(it),it.display.scroller.scrollLeft!=st&&(it.display.scroller.scrollLeft=st),it.display.scrollbars.setScrollLeft(st))}function $a(it){var st=it.display,gt=st.gutters.offsetWidth,ct=Math.round(it.doc.height+Fl(it.display));return{clientHeight:st.scroller.clientHeight,viewHeight:st.wrapper.clientHeight,scrollWidth:st.scroller.scrollWidth,clientWidth:st.scroller.clientWidth,viewWidth:st.wrapper.clientWidth,barLeft:it.options.fixedGutter?gt:0,docHeight:ct,scrollHeight:ct+Qs(it)+st.barHeight,nativeBarWidth:st.nativeBarWidth,gutterWidth:gt}}var Du=function(it,st,gt){this.cm=gt;var ct=this.vert=_t("div",[_t("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),mt=this.horiz=_t("div",[_t("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");ct.tabIndex=mt.tabIndex=-1,it(ct),it(mt),ie(ct,"scroll",function(){ct.clientHeight&&st(ct.scrollTop,"vertical")}),ie(mt,"scroll",function(){mt.clientWidth&&st(mt.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,Se&&Me<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Du.prototype.update=function(it){var st=it.scrollWidth>it.clientWidth+1,gt=it.scrollHeight>it.clientHeight+1,ct=it.nativeBarWidth;if(gt){this.vert.style.display="block",this.vert.style.bottom=st?ct+"px":"0";var mt=it.viewHeight-(st?ct:0);this.vert.firstChild.style.height=Math.max(0,it.scrollHeight-it.clientHeight+mt)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(st){this.horiz.style.display="block",this.horiz.style.right=gt?ct+"px":"0",this.horiz.style.left=it.barLeft+"px";var Et=it.viewWidth-it.barLeft-(gt?ct:0);this.horiz.firstChild.style.width=Math.max(0,it.scrollWidth-it.clientWidth+Et)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&it.clientHeight>0&&(ct==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:gt?ct:0,bottom:st?ct:0}},Du.prototype.setScrollLeft=function(it){this.horiz.scrollLeft!=it&&(this.horiz.scrollLeft=it),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Du.prototype.setScrollTop=function(it){this.vert.scrollTop!=it&&(this.vert.scrollTop=it),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Du.prototype.zeroWidthHack=function(){var it=dt&&!Oe?"12px":"18px";this.horiz.style.height=this.vert.style.width=it,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new Wt,this.disableVert=new Wt},Du.prototype.enableZeroWidthBar=function(it,st,gt){it.style.pointerEvents="auto";function ct(){var mt=it.getBoundingClientRect(),Et=gt=="vert"?document.elementFromPoint(mt.right-1,(mt.top+mt.bottom)/2):document.elementFromPoint((mt.right+mt.left)/2,mt.bottom-1);Et!=it?it.style.pointerEvents="none":st.set(1e3,ct)}st.set(1e3,ct)},Du.prototype.clear=function(){var it=this.horiz.parentNode;it.removeChild(this.horiz),it.removeChild(this.vert)};var Nl=function(){};Nl.prototype.update=function(){return{bottom:0,right:0}},Nl.prototype.setScrollLeft=function(){},Nl.prototype.setScrollTop=function(){},Nl.prototype.clear=function(){};function Tu(it,st){st||(st=$a(it));var gt=it.display.barWidth,ct=it.display.barHeight;Hc(it,st);for(var mt=0;mt<4&>!=it.display.barWidth||ct!=it.display.barHeight;mt++)gt!=it.display.barWidth&&it.options.lineWrapping&&no(it),Hc(it,$a(it)),gt=it.display.barWidth,ct=it.display.barHeight}function Hc(it,st){var gt=it.display,ct=gt.scrollbars.update(st);gt.sizer.style.paddingRight=(gt.barWidth=ct.right)+"px",gt.sizer.style.paddingBottom=(gt.barHeight=ct.bottom)+"px",gt.heightForcer.style.borderBottom=ct.bottom+"px solid transparent",ct.right&&ct.bottom?(gt.scrollbarFiller.style.display="block",gt.scrollbarFiller.style.height=ct.bottom+"px",gt.scrollbarFiller.style.width=ct.right+"px"):gt.scrollbarFiller.style.display="",ct.bottom&&it.options.coverGutterNextToScrollbar&&it.options.fixedGutter?(gt.gutterFiller.style.display="block",gt.gutterFiller.style.height=ct.bottom+"px",gt.gutterFiller.style.width=st.gutterWidth+"px"):gt.gutterFiller.style.display=""}var $g={native:Du,null:Nl};function tf(it){it.display.scrollbars&&(it.display.scrollbars.clear(),it.display.scrollbars.addClass&&Qt(it.display.wrapper,it.display.scrollbars.addClass)),it.display.scrollbars=new $g[it.options.scrollbarStyle](function(st){it.display.wrapper.insertBefore(st,it.display.scrollbarFiller),ie(st,"mousedown",function(){it.state.focused&&setTimeout(function(){return it.display.input.focus()},0)}),st.setAttribute("cm-not-content","true")},function(st,gt){gt=="horizontal"?fu(it,st):Ph(it,st)},it),it.display.scrollbars.addClass&&Ae(it.display.wrapper,it.display.scrollbars.addClass)}var Op=0;function Iu(it){it.curOp={cm:it,viewChanged:!1,startHeight:it.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Op},mr(it.curOp)}function Ou(it){var st=it.curOp;st&&Qr(st,function(gt){for(var ct=0;ct<gt.ops.length;ct++)gt.ops[ct].cm.curOp=null;Jm(gt)})}function Jm(it){for(var st=it.ops,gt=0;gt<st.length;gt++)qm(st[gt]);for(var ct=0;ct<st.length;ct++)_m(st[ct]);for(var mt=0;mt<st.length;mt++)jp(st[mt]);for(var Et=0;Et<st.length;Et++)Wr(st[Et]);for(var bt=0;bt<st.length;bt++)ju(st[bt])}function qm(it){var st=it.cm,gt=st.display;Rp(st),it.updateMaxLine&&ki(st),it.mustUpdate=it.viewChanged||it.forceUpdate||it.scrollTop!=null||it.scrollToPos&&(it.scrollToPos.from.line<gt.viewFrom||it.scrollToPos.to.line>=gt.viewTo)||gt.maxLineChanged&&st.options.lineWrapping,it.update=it.mustUpdate&&new Ch(st,it.mustUpdate&&{top:it.scrollTop,ensure:it.scrollToPos},it.forceUpdate)}function _m(it){it.updatedDisplay=it.mustUpdate&&Vc(it.cm,it.update)}function jp(it){var st=it.cm,gt=st.display;it.updatedDisplay&&no(st),it.barMeasure=$a(st),gt.maxLineChanged&&!st.options.lineWrapping&&(it.adjustWidthTo=Yo(st,gt.maxLine,gt.maxLine.text.length).left+3,st.display.sizerWidth=it.adjustWidthTo,it.barMeasure.scrollWidth=Math.max(gt.scroller.clientWidth,gt.sizer.offsetLeft+it.adjustWidthTo+Qs(st)+st.display.barWidth),it.maxScrollLeft=Math.max(0,gt.sizer.offsetLeft+it.adjustWidthTo-za(st))),(it.updatedDisplay||it.selectionChanged)&&(it.preparedSelection=gt.input.prepareSelection())}function Wr(it){var st=it.cm;it.adjustWidthTo!=null&&(st.display.sizer.style.minWidth=it.adjustWidthTo+"px",it.maxScrollLeft<st.doc.scrollLeft&&fu(st,Math.min(st.display.scroller.scrollLeft,it.maxScrollLeft),!0),st.display.maxLineChanged=!1);var gt=it.focus&&it.focus==oe();it.preparedSelection&&st.display.input.showSelection(it.preparedSelection,gt),(it.updatedDisplay||it.startHeight!=st.doc.height)&&Tu(st,it.barMeasure),it.updatedDisplay&&Gu(st,it.barMeasure),it.selectionChanged&&ur(st),st.state.focused&&it.updateInput&&st.display.input.reset(it.typing),gt&&Ar(it.cm)}function ju(it){var st=it.cm,gt=st.display,ct=st.doc;if(it.updatedDisplay&&hr(st,it.update),gt.wheelStartX!=null&&(it.scrollTop!=null||it.scrollLeft!=null||it.scrollToPos)&&(gt.wheelStartX=gt.wheelStartY=null),it.scrollTop!=null&&_g(st,it.scrollTop,it.forceScroll),it.scrollLeft!=null&&fu(st,it.scrollLeft,!0,!0),it.scrollToPos){var mt=ad(st,si(ct,it.scrollToPos.from),si(ct,it.scrollToPos.to),it.scrollToPos.margin);Ip(st,mt)}var Et=it.maybeHiddenMarkers,bt=it.maybeUnhiddenMarkers;if(Et)for(var Rt=0;Rt<Et.length;++Rt)Et[Rt].lines.length||hn(Et[Rt],"hide");if(bt)for(var Ot=0;Ot<bt.length;++Ot)bt[Ot].lines.length&&hn(bt[Ot],"unhide");gt.wrapper.offsetHeight&&(ct.scrollTop=st.display.scroller.scrollTop),it.changeObjs&&hn(st,"changes",st,it.changeObjs),it.update&&it.update.finish()}function or(it,st){if(it.curOp)return st();Iu(it);try{return st()}finally{Ou(it)}}function gs(it,st){return function(){if(it.curOp)return st.apply(it,arguments);Iu(it);try{return st.apply(it,arguments)}finally{Ou(it)}}}function ws(it){return function(){if(this.curOp)return it.apply(this,arguments);Iu(this);try{return it.apply(this,arguments)}finally{Ou(this)}}}function Ps(it){return function(){var st=this.cm;if(!st||st.curOp)return it.apply(this,arguments);Iu(st);try{return it.apply(this,arguments)}finally{Ou(st)}}}function ld(it,st){it.doc.highlightFrontier<it.display.viewTo&&it.state.highlight.set(st,Gn(Cs,it))}function Cs(it){var st=it.doc;if(!(st.highlightFrontier>=it.display.viewTo)){var gt=+new Date+it.options.workTime,ct=Ci(it,st.highlightFrontier),mt=[];st.iter(ct.line,Math.min(st.first+st.size,it.display.viewTo+500),function(Et){if(ct.line>=it.display.viewFrom){var bt=Et.styles,Rt=Et.text.length>it.options.maxHighlightLength?Ze(st.mode,ct.state):null,Ot=ao(it,Et,ct,!0);Rt&&(ct.state=Rt),Et.styles=Ot.styles;var Xt=Et.styleClasses,ke=Ot.classes;ke?Et.styleClasses=ke:Xt&&(Et.styleClasses=null);for(var ee=!bt||bt.length!=Et.styles.length||Xt!=ke&&(!Xt||!ke||Xt.bgClass!=ke.bgClass||Xt.textClass!=ke.textClass),Xe=0;!ee&&Xe<bt.length;++Xe)ee=bt[Xe]!=Et.styles[Xe];ee&&mt.push(ct.line),Et.stateAfter=ct.save(),ct.nextLine()}else Et.text.length<=it.options.maxHighlightLength&&De(it,Et.text,ct),Et.stateAfter=ct.line%5==0?ct.save():null,ct.nextLine();if(+new Date>gt)return ld(it,it.options.workDelay),!0}),st.highlightFrontier=ct.line,st.modeFrontier=Math.max(st.modeFrontier,ct.line),mt.length&&or(it,function(){for(var Et=0;Et<mt.length;Et++)Oo(it,mt[Et],"text")})}}var Ch=function(it,st,gt){var ct=it.display;this.viewport=st,this.visible=Vo(ct,it.doc,st),this.editorIsHidden=!ct.wrapper.offsetWidth,this.wrapperHeight=ct.wrapper.clientHeight,this.wrapperWidth=ct.wrapper.clientWidth,this.oldDisplayWidth=za(it),this.force=gt,this.dims=Rc(it),this.events=[]};Ch.prototype.signal=function(it,st){fi(it,st)&&this.events.push(arguments)},Ch.prototype.finish=function(){for(var it=0;it<this.events.length;it++)hn.apply(null,this.events[it])};function Rp(it){var st=it.display;!st.scrollbarsClipped&&st.scroller.offsetWidth&&(st.nativeBarWidth=st.scroller.offsetWidth-st.scroller.clientWidth,st.heightForcer.style.height=Qs(it)+"px",st.sizer.style.marginBottom=-st.nativeBarWidth+"px",st.sizer.style.borderRightWidth=Qs(it)+"px",st.scrollbarsClipped=!0)}function zp(it){if(it.hasFocus())return null;var st=oe();if(!st||!pe(it.display.lineDiv,st))return null;var gt={activeElt:st};if(window.getSelection){var ct=window.getSelection();ct.anchorNode&&ct.extend&&pe(it.display.lineDiv,ct.anchorNode)&&(gt.anchorNode=ct.anchorNode,gt.anchorOffset=ct.anchorOffset,gt.focusNode=ct.focusNode,gt.focusOffset=ct.focusOffset)}return gt}function ma(it){if(!(!it||!it.activeElt||it.activeElt==oe())&&(it.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(it.activeElt.nodeName)&&it.anchorNode&&pe(document.body,it.anchorNode)&&pe(document.body,it.focusNode))){var st=window.getSelection(),gt=document.createRange();gt.setEnd(it.anchorNode,it.anchorOffset),gt.collapse(!1),st.removeAllRanges(),st.addRange(gt),st.extend(it.focusNode,it.focusOffset)}}function Vc(it,st){var gt=it.display,ct=it.doc;if(st.editorIsHidden)return es(it),!1;if(!st.force&&st.visible.from>=gt.viewFrom&&st.visible.to<=gt.viewTo&&(gt.updateLineNumbers==null||gt.updateLineNumbers>=gt.viewTo)&>.renderedView==gt.view&&Ma(it)==0)return!1;ss(it)&&(es(it),st.dims=Rc(it));var mt=ct.first+ct.size,Et=Math.max(st.visible.from-it.options.viewportMargin,ct.first),bt=Math.min(mt,st.visible.to+it.options.viewportMargin);gt.viewFrom<Et&&Et-gt.viewFrom<20&&(Et=Math.max(ct.first,gt.viewFrom)),gt.viewTo>bt&>.viewTo-bt<20&&(bt=Math.min(mt,gt.viewTo)),$e&&(Et=Tn(it.doc,Et),bt=Pn(it.doc,bt));var Rt=Et!=gt.viewFrom||bt!=gt.viewTo||gt.lastWrapHeight!=st.wrapperHeight||gt.lastWrapWidth!=st.wrapperWidth;yr(it,Et,bt),gt.viewOffset=gi(un(it.doc,gt.viewFrom)),it.display.mover.style.top=gt.viewOffset+"px";var Ot=Ma(it);if(!Rt&&Ot==0&&!st.force&>.renderedView==gt.view&&(gt.updateLineNumbers==null||gt.updateLineNumbers>=gt.viewTo))return!1;var Xt=zp(it);return Ot>4&&(gt.lineDiv.style.display="none"),ef(it,gt.updateLineNumbers,st.dims),Ot>4&&(gt.lineDiv.style.display=""),gt.renderedView=gt.view,ma(Xt),$t(gt.cursorDiv),$t(gt.selectionDiv),gt.gutters.style.height=gt.sizer.style.minHeight=0,Rt&&(gt.lastWrapHeight=st.wrapperHeight,gt.lastWrapWidth=st.wrapperWidth,ld(it,400)),gt.updateLineNumbers=null,!0}function hr(it,st){for(var gt=st.viewport,ct=!0;;ct=!1){if(!ct||!it.options.lineWrapping||st.oldDisplayWidth==za(it)){if(gt&>.top!=null&&(gt={top:Math.min(it.doc.height+Fl(it.display)-Sn(it),gt.top)}),st.visible=Vo(it.display,it.doc,gt),st.visible.from>=it.display.viewFrom&&st.visible.to<=it.display.viewTo)break}else ct&&(st.visible=Vo(it.display,it.doc,gt));if(!Vc(it,st))break;no(it);var mt=$a(it);cs(it),Tu(it,mt),Gu(it,mt),st.force=!1}st.signal(it,"update",it),(it.display.viewFrom!=it.display.reportedViewFrom||it.display.viewTo!=it.display.reportedViewTo)&&(st.signal(it,"viewportChange",it,it.display.viewFrom,it.display.viewTo),it.display.reportedViewFrom=it.display.viewFrom,it.display.reportedViewTo=it.display.viewTo)}function Ru(it,st){var gt=new Ch(it,st);if(Vc(it,gt)){no(it),hr(it,gt);var ct=$a(it);cs(it),Tu(it,ct),Gu(it,ct),gt.finish()}}function ef(it,st,gt){var ct=it.display,mt=it.options.lineNumbers,Et=ct.lineDiv,bt=Et.firstChild;function Rt(Yn){var $n=Yn.nextSibling;return Jt&&dt&&it.display.currentWheelTarget==Yn?Yn.style.display="none":Yn.parentNode.removeChild(Yn),$n}for(var Ot=ct.view,Xt=ct.viewFrom,ke=0;ke<Ot.length;ke++){var ee=Ot[ke];if(!ee.hidden)if(!ee.node||ee.node.parentNode!=Et){var Xe=uu(it,ee,Xt,gt);Et.insertBefore(Xe,bt)}else{for(;bt!=ee.node;)bt=Rt(bt);var He=mt&&st!=null&&st<=Xt&&ee.lineNumber;ee.changes&&(xe(ee.changes,"gutter")>-1&&(He=!1),Aa(it,ee,Xt,gt)),He&&($t(ee.lineNumber),ee.lineNumber.appendChild(document.createTextNode(On(it.options,Xt)))),bt=ee.node.nextSibling}Xt+=ee.size}for(;bt;)bt=Rt(bt)}function zu(it){var st=it.gutters.offsetWidth;it.sizer.style.marginLeft=st+"px"}function Gu(it,st){it.display.sizer.style.minHeight=st.docHeight+"px",it.display.heightForcer.style.top=st.docHeight+"px",it.display.gutters.style.height=st.docHeight+it.display.barHeight+Qs(it)+"px"}function Uc(it){var st=it.display,gt=st.view;if(!(!st.alignWidgets&&(!st.gutters.firstChild||!it.options.fixedGutter))){for(var ct=Ud(st)-st.scroller.scrollLeft+it.doc.scrollLeft,mt=st.gutters.offsetWidth,Et=ct+"px",bt=0;bt<gt.length;bt++)if(!gt[bt].hidden){it.options.fixedGutter&&(gt[bt].gutter&&(gt[bt].gutter.style.left=Et),gt[bt].gutterBackground&&(gt[bt].gutterBackground.style.left=Et));var Rt=gt[bt].alignable;if(Rt)for(var Ot=0;Ot<Rt.length;Ot++)Rt[Ot].style.left=Et}it.options.fixedGutter&&(st.gutters.style.left=ct+mt+"px")}}function ss(it){if(!it.options.lineNumbers)return!1;var st=it.doc,gt=On(it.options,st.first+st.size-1),ct=it.display;if(gt.length!=ct.lineNumChars){var mt=ct.measure.appendChild(_t("div",[_t("div",gt)],"CodeMirror-linenumber CodeMirror-gutter-elt")),Et=mt.firstChild.offsetWidth,bt=mt.offsetWidth-Et;return ct.lineGutter.style.width="",ct.lineNumInnerWidth=Math.max(Et,ct.lineGutter.offsetWidth-bt)+1,ct.lineNumWidth=ct.lineNumInnerWidth+bt,ct.lineNumChars=ct.lineNumInnerWidth?gt.length:-1,ct.lineGutter.style.width=ct.lineNumWidth+"px",zu(it.display),!0}return!1}function Es(it,st){for(var gt=[],ct=!1,mt=0;mt<it.length;mt++){var Et=it[mt],bt=null;if(typeof Et!="string"&&(bt=Et.style,Et=Et.className),Et=="CodeMirror-linenumbers")if(st)ct=!0;else continue;gt.push({className:Et,style:bt})}return st&&!ct&>.push({className:"CodeMirror-linenumbers",style:null}),gt}function Eh(it){var st=it.gutters,gt=it.gutterSpecs;$t(st),it.lineGutter=null;for(var ct=0;ct<gt.length;++ct){var mt=gt[ct],Et=mt.className,bt=mt.style,Rt=st.appendChild(_t("div",null,"CodeMirror-gutter "+Et));bt&&(Rt.style.cssText=bt),Et=="CodeMirror-linenumbers"&&(it.lineGutter=Rt,Rt.style.width=(it.lineNumWidth||1)+"px")}st.style.display=gt.length?"":"none",zu(it)}function Ha(it){Eh(it.display),Nr(it),Uc(it)}function Hu(it,st,gt,ct){var mt=this;this.input=gt,mt.scrollbarFiller=_t("div",null,"CodeMirror-scrollbar-filler"),mt.scrollbarFiller.setAttribute("cm-not-content","true"),mt.gutterFiller=_t("div",null,"CodeMirror-gutter-filler"),mt.gutterFiller.setAttribute("cm-not-content","true"),mt.lineDiv=Pe("div",null,"CodeMirror-code"),mt.selectionDiv=_t("div",null,null,"position: relative; z-index: 1"),mt.cursorDiv=_t("div",null,"CodeMirror-cursors"),mt.measure=_t("div",null,"CodeMirror-measure"),mt.lineMeasure=_t("div",null,"CodeMirror-measure"),mt.lineSpace=Pe("div",[mt.measure,mt.lineMeasure,mt.selectionDiv,mt.cursorDiv,mt.lineDiv],null,"position: relative; outline: none");var Et=Pe("div",[mt.lineSpace],"CodeMirror-lines");mt.mover=_t("div",[Et],null,"position: relative"),mt.sizer=_t("div",[mt.mover],"CodeMirror-sizer"),mt.sizerWidth=null,mt.heightForcer=_t("div",null,null,"position: absolute; height: "+nn+"px; width: 1px;"),mt.gutters=_t("div",null,"CodeMirror-gutters"),mt.lineGutter=null,mt.scroller=_t("div",[mt.sizer,mt.heightForcer,mt.gutters],"CodeMirror-scroll"),mt.scroller.setAttribute("tabIndex","-1"),mt.wrapper=_t("div",[mt.scrollbarFiller,mt.gutterFiller,mt.scroller],"CodeMirror"),Se&&Me<8&&(mt.gutters.style.zIndex=-1,mt.scroller.style.paddingRight=0),!Jt&&!(ht&&nt)&&(mt.scroller.draggable=!0),it&&(it.appendChild?it.appendChild(mt.wrapper):it(mt.wrapper)),mt.viewFrom=mt.viewTo=st.first,mt.reportedViewFrom=mt.reportedViewTo=st.first,mt.view=[],mt.renderedView=null,mt.externalMeasured=null,mt.viewOffset=0,mt.lastWrapHeight=mt.lastWrapWidth=0,mt.updateLineNumbers=null,mt.nativeBarWidth=mt.barHeight=mt.barWidth=0,mt.scrollbarsClipped=!1,mt.lineNumWidth=mt.lineNumInnerWidth=mt.lineNumChars=null,mt.alignWidgets=!1,mt.cachedCharWidth=mt.cachedTextHeight=mt.cachedPaddingH=null,mt.maxLine=null,mt.maxLineLength=0,mt.maxLineChanged=!1,mt.wheelDX=mt.wheelDY=mt.wheelStartX=mt.wheelStartY=null,mt.shift=!1,mt.selForContextMenu=null,mt.activeTouch=null,mt.gutterSpecs=Es(ct.gutters,ct.lineNumbers),Eh(mt),gt.init(mt)}var La=0,ns=null;Se?ns=-.53:ht?ns=15:ce?ns=-.7:he&&(ns=-1/3);function bl(it){var st=it.wheelDeltaX,gt=it.wheelDeltaY;return st==null&&it.detail&&it.axis==it.HORIZONTAL_AXIS&&(st=it.detail),gt==null&&it.detail&&it.axis==it.VERTICAL_AXIS?gt=it.detail:gt==null&&(gt=it.wheelDelta),{x:st,y:gt}}function Va(it){var st=bl(it);return st.x*=ns,st.y*=ns,st}function As(it,st){var gt=bl(st),ct=gt.x,mt=gt.y,Et=it.display,bt=Et.scroller,Rt=bt.scrollWidth>bt.clientWidth,Ot=bt.scrollHeight>bt.clientHeight;if(ct&&Rt||mt&&Ot){if(mt&&dt&&Jt){t:for(var Xt=st.target,ke=Et.view;Xt!=bt;Xt=Xt.parentNode)for(var ee=0;ee<ke.length;ee++)if(ke[ee].node==Xt){it.display.currentWheelTarget=Xt;break t}}if(ct&&!ht&&!ve&&ns!=null){mt&&Ot&&Ph(it,Math.max(0,bt.scrollTop+mt*ns)),fu(it,Math.max(0,bt.scrollLeft+ct*ns)),(!mt||mt&&Ot)&&Bi(st),Et.wheelStartX=null;return}if(mt&&ns!=null){var Xe=mt*ns,He=it.doc.scrollTop,Yn=He+Et.wrapper.clientHeight;Xe<0?He=Math.max(0,He+Xe-50):Yn=Math.min(it.doc.height,Yn+Xe+50),Ru(it,{top:He,bottom:Yn})}La<20&&(Et.wheelStartX==null?(Et.wheelStartX=bt.scrollLeft,Et.wheelStartY=bt.scrollTop,Et.wheelDX=ct,Et.wheelDY=mt,setTimeout(function(){if(Et.wheelStartX!=null){var $n=bt.scrollLeft-Et.wheelStartX,hi=bt.scrollTop-Et.wheelStartY,Mi=hi&&Et.wheelDY&&hi/Et.wheelDY||$n&&Et.wheelDX&&$n/Et.wheelDX;Et.wheelStartX=Et.wheelStartY=null,Mi&&(ns=(ns*La+Mi)/(La+1),++La)}},200)):(Et.wheelDX+=ct,Et.wheelDY+=mt))}}var tl=function(it,st){this.ranges=it,this.primIndex=st};tl.prototype.primary=function(){return this.ranges[this.primIndex]},tl.prototype.equals=function(it){if(it==this)return!0;if(it.primIndex!=this.primIndex||it.ranges.length!=this.ranges.length)return!1;for(var st=0;st<this.ranges.length;st++){var gt=this.ranges[st],ct=it.ranges[st];if(!Vn(gt.anchor,ct.anchor)||!Vn(gt.head,ct.head))return!1}return!0},tl.prototype.deepCopy=function(){for(var it=[],st=0;st<this.ranges.length;st++)it[st]=new dr(li(this.ranges[st].anchor),li(this.ranges[st].head));return new tl(it,this.primIndex)},tl.prototype.somethingSelected=function(){for(var it=0;it<this.ranges.length;it++)if(!this.ranges[it].empty())return!0;return!1},tl.prototype.contains=function(it,st){st||(st=it);for(var gt=0;gt<this.ranges.length;gt++){var ct=this.ranges[gt];if(Ve(st,ct.from())>=0&&Ve(it,ct.to())<=0)return gt}return-1};var dr=function(it,st){this.anchor=it,this.head=st};dr.prototype.from=function(){return Rn(this.anchor,this.head)},dr.prototype.to=function(){return oi(this.anchor,this.head)},dr.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function ml(it,st,gt){var ct=it&&it.options.selectionsMayTouch,mt=st[gt];st.sort(function(Xe,He){return Ve(Xe.from(),He.from())}),gt=xe(st,mt);for(var Et=1;Et<st.length;Et++){var bt=st[Et],Rt=st[Et-1],Ot=Ve(Rt.to(),bt.from());if(ct&&!bt.empty()?Ot>0:Ot>=0){var Xt=Rn(Rt.from(),bt.from()),ke=oi(Rt.to(),bt.to()),ee=Rt.empty()?bt.from()==bt.head:Rt.from()==Rt.head;Et<=gt&&--gt,st.splice(--Et,2,new dr(ee?ke:Xt,ee?Xt:ke))}}return new tl(st,gt)}function pu(it,st){return new tl([new dr(it,st||it)],0)}function Vu(it){return it.text?Te(it.from.line+it.text.length-1,ae(it.text).length+(it.text.length==1?it.from.ch:0)):it.to}function Ah(it,st){if(Ve(it,st.from)<0)return it;if(Ve(it,st.to)<=0)return Vu(st);var gt=it.line+st.text.length-(st.to.line-st.from.line)-1,ct=it.ch;return it.line==st.to.line&&(ct+=Vu(st).ch-st.to.ch),Te(gt,ct)}function Yd(it,st){for(var gt=[],ct=0;ct<it.sel.ranges.length;ct++){var mt=it.sel.ranges[ct];gt.push(new dr(Ah(mt.anchor,st),Ah(mt.head,st)))}return ml(it.cm,gt,it.sel.primIndex)}function ud(it,st,gt){return it.line==st.line?Te(gt.line,it.ch-st.ch+gt.ch):Te(gt.line+(it.line-st.line),it.ch)}function Zd(it,st,gt){for(var ct=[],mt=Te(it.first,0),Et=mt,bt=0;bt<st.length;bt++){var Rt=st[bt],Ot=ud(Rt.from,mt,Et),Xt=ud(Vu(Rt),mt,Et);if(mt=Rt.to,Et=Xt,gt=="around"){var ke=it.sel.ranges[bt],ee=Ve(ke.head,ke.anchor)<0;ct[bt]=new dr(ee?Xt:Ot,ee?Ot:Xt)}else ct[bt]=new dr(Ot,Ot)}return new tl(ct,it.sel.primIndex)}function Ro(it){it.doc.mode=le(it.options,it.doc.modeOption),Kd(it)}function Kd(it){it.doc.iter(function(st){st.stateAfter&&(st.stateAfter=null),st.styles&&(st.styles=null)}),it.doc.modeFrontier=it.doc.highlightFrontier=it.doc.first,ld(it,100),it.state.modeGen++,it.curOp&&Nr(it)}function nf(it,st){return st.from.ch==0&&st.to.ch==0&&ae(st.text)==""&&(!it.cm||it.cm.options.wholeLineUpdateBefore)}function Wc(it,st,gt,ct){function mt(zi){return gt?gt[zi]:null}function Et(zi,bi,Yi){Ji(zi,bi,Yi,ct),yi(zi,"change",zi,st)}function bt(zi,bi){for(var Yi=[],Eo=zi;Eo<bi;++Eo)Yi.push(new vi(Xt[Eo],mt(Eo),ct));return Yi}var Rt=st.from,Ot=st.to,Xt=st.text,ke=un(it,Rt.line),ee=un(it,Ot.line),Xe=ae(Xt),He=mt(Xt.length-1),Yn=Ot.line-Rt.line;if(st.full)it.insert(0,bt(0,Xt.length)),it.remove(Xt.length,it.size-Xt.length);else if(nf(it,st)){var $n=bt(0,Xt.length-1);Et(ee,ee.text,He),Yn&&it.remove(Rt.line,Yn),$n.length&&it.insert(Rt.line,$n)}else if(ke==ee)if(Xt.length==1)Et(ke,ke.text.slice(0,Rt.ch)+Xe+ke.text.slice(Ot.ch),He);else{var hi=bt(1,Xt.length-1);hi.push(new vi(Xe+ke.text.slice(Ot.ch),He,ct)),Et(ke,ke.text.slice(0,Rt.ch)+Xt[0],mt(0)),it.insert(Rt.line+1,hi)}else if(Xt.length==1)Et(ke,ke.text.slice(0,Rt.ch)+Xt[0]+ee.text.slice(Ot.ch),mt(0)),it.remove(Rt.line+1,Yn);else{Et(ke,ke.text.slice(0,Rt.ch)+Xt[0],mt(0)),Et(ee,Xe+ee.text.slice(Ot.ch),He);var Mi=bt(1,Xt.length-1);Yn>1&&it.remove(Rt.line+1,Yn-1),it.insert(Rt.line+1,Mi)}yi(it,"change",it,st)}function Dl(it,st,gt){function ct(mt,Et,bt){if(mt.linked)for(var Rt=0;Rt<mt.linked.length;++Rt){var Ot=mt.linked[Rt];if(Ot.doc!=Et){var Xt=bt&&Ot.sharedHist;gt&&!Xt||(st(Ot.doc,Xt),ct(Ot.doc,mt,Xt))}}}ct(it,null,!0)}function Yc(it,st){if(st.cm)throw new Error("This document is already in use.");it.doc=st,st.cm=it,ro(it),Ro(it),Qd(it),it.options.lineWrapping||ki(it),it.options.mode=st.modeOption,Nr(it)}function Qd(it){(it.doc.direction=="rtl"?Ae:Qt)(it.display.lineDiv,"CodeMirror-rtl")}function $m(it){or(it,function(){Qd(it),Nr(it)})}function hd(it){this.done=[],this.undone=[],this.undoDepth=1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=it||1}function Zc(it,st){var gt={from:li(st.from),to:Vu(st),text:Qn(it,st.from,st.to)};return Uu(it,gt,st.from.line,st.to.line+1),Dl(it,function(ct){return Uu(ct,gt,st.from.line,st.to.line+1)},!0),gt}function dd(it){for(;it.length;){var st=ae(it);if(st.ranges)it.pop();else break}}function Xd(it,st){if(st)return dd(it.done),ae(it.done);if(it.done.length&&!ae(it.done).ranges)return ae(it.done);if(it.done.length>1&&!it.done[it.done.length-2].ranges)return it.done.pop(),ae(it.done)}function Jd(it,st,gt,ct){var mt=it.history;mt.undone.length=0;var Et=+new Date,bt,Rt;if((mt.lastOp==ct||mt.lastOrigin==st.origin&&st.origin&&(st.origin.charAt(0)=="+"&&mt.lastModTime>Et-(it.cm?it.cm.options.historyEventDelay:500)||st.origin.charAt(0)=="*"))&&(bt=Xd(mt,mt.lastOp==ct)))Rt=ae(bt.changes),Ve(st.from,st.to)==0&&Ve(st.from,Rt.to)==0?Rt.to=Vu(st):bt.changes.push(Zc(it,st));else{var Ot=ae(mt.done);for((!Ot||!Ot.ranges)&&cd(it.sel,mt.done),bt={changes:[Zc(it,st)],generation:mt.generation},mt.done.push(bt);mt.done.length>mt.undoDepth;)mt.done.shift(),mt.done[0].ranges||mt.done.shift()}mt.done.push(gt),mt.generation=++mt.maxGeneration,mt.lastModTime=mt.lastSelTime=Et,mt.lastOp=mt.lastSelOp=ct,mt.lastOrigin=mt.lastSelOrigin=st.origin,Rt||hn(it,"historyAdded")}function of(it,st,gt,ct){var mt=st.charAt(0);return mt=="*"||mt=="+"&>.ranges.length==ct.ranges.length&>.somethingSelected()==ct.somethingSelected()&&new Date-it.history.lastSelTime<=(it.cm?it.cm.options.historyEventDelay:500)}function qd(it,st,gt,ct){var mt=it.history,Et=ct&&ct.origin;gt==mt.lastSelOp||Et&&mt.lastSelOrigin==Et&&(mt.lastModTime==mt.lastSelTime&&mt.lastOrigin==Et||of(it,Et,ae(mt.done),st))?mt.done[mt.done.length-1]=st:cd(st,mt.done),mt.lastSelTime=+new Date,mt.lastSelOrigin=Et,mt.lastSelOp=gt,ct&&ct.clearRedo!==!1&&dd(mt.undone)}function cd(it,st){var gt=ae(st);gt&>.ranges&>.equals(it)||st.push(it)}function Uu(it,st,gt,ct){var mt=st["spans_"+it.id],Et=0;it.iter(Math.max(it.first,gt),Math.min(it.first+it.size,ct),function(bt){bt.markedSpans&&((mt||(mt=st["spans_"+it.id]={}))[Et]=bt.markedSpans),++Et})}function sa(it){if(!it)return null;for(var st,gt=0;gt<it.length;++gt)it[gt].marker.explicitlyCleared?st||(st=it.slice(0,gt)):st&&st.push(it[gt]);return st?st.length?st:null:it}function Yl(it,st){var gt=st["spans_"+it.id];if(!gt)return null;for(var ct=[],mt=0;mt<st.text.length;++mt)ct.push(sa(gt[mt]));return ct}function Kc(it,st){var gt=Yl(it,st),ct=wo(it,st);if(!gt)return ct;if(!ct)return gt;for(var mt=0;mt<gt.length;++mt){var Et=gt[mt],bt=ct[mt];if(Et&&bt)t:for(var Rt=0;Rt<bt.length;++Rt){for(var Ot=bt[Rt],Xt=0;Xt<Et.length;++Xt)if(Et[Xt].marker==Ot.marker)continue t;Et.push(Ot)}else bt&&(gt[mt]=bt)}return gt}function mu(it,st,gt){for(var ct=[],mt=0;mt<it.length;++mt){var Et=it[mt];if(Et.ranges){ct.push(gt?tl.prototype.deepCopy.call(Et):Et);continue}var bt=Et.changes,Rt=[];ct.push({changes:Rt});for(var Ot=0;Ot<bt.length;++Ot){var Xt=bt[Ot],ke=void 0;if(Rt.push({from:Xt.from,to:Xt.to,text:Xt.text}),st)for(var ee in Xt)(ke=ee.match(/^spans_(\d+)$/))&&xe(st,Number(ke[1]))>-1&&(ae(Rt)[ee]=Xt[ee],delete Xt[ee])}}return ct}function Qc(it,st,gt,ct){if(ct){var mt=it.anchor;if(gt){var Et=Ve(st,mt)<0;Et!=Ve(gt,mt)<0?(mt=st,st=gt):Et!=Ve(st,gt)<0&&(st=gt)}return new dr(mt,st)}else return new dr(gt||st,st)}function Xc(it,st,gt,ct,mt){mt==null&&(mt=it.cm&&(it.cm.display.shift||it.extend)),Js(it,new tl([Qc(it.sel.primary(),st,gt,mt)],0),ct)}function Gp(it,st,gt){for(var ct=[],mt=it.cm&&(it.cm.display.shift||it.extend),Et=0;Et<it.sel.ranges.length;Et++)ct[Et]=Qc(it.sel.ranges[Et],st[Et],null,mt);var bt=ml(it.cm,ct,it.sel.primIndex);Js(it,bt,gt)}function Wu(it,st,gt,ct){var mt=it.sel.ranges.slice(0);mt[st]=gt,Js(it,ml(it.cm,mt,it.sel.primIndex),ct)}function Mh(it,st,gt,ct){Js(it,pu(st,gt),ct)}function Hp(it,st,gt){var ct={ranges:st.ranges,update:function(mt){this.ranges=[];for(var Et=0;Et<mt.length;Et++)this.ranges[Et]=new dr(si(it,mt[Et].anchor),si(it,mt[Et].head))},origin:gt&>.origin};return hn(it,"beforeSelectionChange",it,ct),it.cm&&hn(it.cm,"beforeSelectionChange",it.cm,ct),ct.ranges!=st.ranges?ml(it.cm,ct.ranges,ct.ranges.length-1):st}function Jc(it,st,gt){var ct=it.history.done,mt=ae(ct);mt&&mt.ranges?(ct[ct.length-1]=st,Lh(it,st,gt)):Js(it,st,gt)}function Js(it,st,gt){Lh(it,st,gt),qd(it,it.sel,it.cm?it.cm.curOp.id:NaN,gt)}function Lh(it,st,gt){(fi(it,"beforeSelectionChange")||it.cm&&fi(it.cm,"beforeSelectionChange"))&&(st=Hp(it,st,gt));var ct=gt&>.bias||(Ve(st.primary().head,it.sel.primary().head)<0?-1:1);rf(it,$d(it,st,ct,!0)),!(gt&>.scroll===!1)&&it.cm&&gu(it.cm)}function rf(it,st){st.equals(it.sel)||(it.sel=st,it.cm&&(it.cm.curOp.updateInput=1,it.cm.curOp.selectionChanged=!0,di(it.cm)),yi(it,"cursorActivity",it))}function _d(it){rf(it,$d(it,it.sel,null,!1))}function $d(it,st,gt,ct){for(var mt,Et=0;Et<st.ranges.length;Et++){var bt=st.ranges[Et],Rt=st.ranges.length==it.sel.ranges.length&&it.sel.ranges[Et],Ot=tc(it,bt.anchor,Rt&&Rt.anchor,gt,ct),Xt=tc(it,bt.head,Rt&&Rt.head,gt,ct);(mt||Ot!=bt.anchor||Xt!=bt.head)&&(mt||(mt=st.ranges.slice(0,Et)),mt[Et]=new dr(Ot,Xt))}return mt?ml(it.cm,mt,st.primIndex):st}function vu(it,st,gt,ct,mt){var Et=un(it,st.line);if(Et.markedSpans)for(var bt=0;bt<Et.markedSpans.length;++bt){var Rt=Et.markedSpans[bt],Ot=Rt.marker,Xt="selectLeft"in Ot?!Ot.selectLeft:Ot.inclusiveLeft,ke="selectRight"in Ot?!Ot.selectRight:Ot.inclusiveRight;if((Rt.from==null||(Xt?Rt.from<=st.ch:Rt.from<st.ch))&&(Rt.to==null||(ke?Rt.to>=st.ch:Rt.to>st.ch))){if(mt&&(hn(Ot,"beforeCursorEnter"),Ot.explicitlyCleared))if(Et.markedSpans){--bt;continue}else break;if(!Ot.atomic)continue;if(gt){var ee=Ot.find(ct<0?1:-1),Xe=void 0;if((ct<0?ke:Xt)&&(ee=sf(it,ee,-ct,ee&&ee.line==st.line?Et:null)),ee&&ee.line==st.line&&(Xe=Ve(ee,gt))&&(ct<0?Xe<0:Xe>0))return vu(it,ee,st,ct,mt)}var He=Ot.find(ct<0?-1:1);return(ct<0?Xt:ke)&&(He=sf(it,He,ct,He.line==st.line?Et:null)),He?vu(it,He,st,ct,mt):null}}return st}function tc(it,st,gt,ct,mt){var Et=ct||1,bt=vu(it,st,gt,Et,mt)||!mt&&vu(it,st,gt,Et,!0)||vu(it,st,gt,-Et,mt)||!mt&&vu(it,st,gt,-Et,!0);return bt||(it.cantEdit=!0,Te(it.first,0))}function sf(it,st,gt,ct){return gt<0&&st.ch==0?st.line>it.first?si(it,Te(st.line-1)):null:gt>0&&st.ch==(ct||un(it,st.line)).text.length?st.line<it.first+it.size-1?Te(st.line+1,0):null:new Te(st.line,st.ch+gt)}function is(it){it.setSelection(Te(it.firstLine(),0),Te(it.lastLine()),ge)}function ec(it,st,gt){var ct={canceled:!1,from:st.from,to:st.to,text:st.text,origin:st.origin,cancel:function(){return ct.canceled=!0}};return gt&&(ct.update=function(mt,Et,bt,Rt){mt&&(ct.from=si(it,mt)),Et&&(ct.to=si(it,Et)),bt&&(ct.text=bt),Rt!==void 0&&(ct.origin=Rt)}),hn(it,"beforeChange",it,ct),it.cm&&hn(it.cm,"beforeChange",it.cm,ct),ct.canceled?(it.cm&&(it.cm.curOp.updateInput=2),null):{from:ct.from,to:ct.to,text:ct.text,origin:ct.origin}}function Yu(it,st,gt){if(it.cm){if(!it.cm.curOp)return gs(it.cm,Yu)(it,st,gt);if(it.cm.state.suppressEdits)return}if(!((fi(it,"beforeChange")||it.cm&&fi(it.cm,"beforeChange"))&&(st=ec(it,st,!0),!st))){var ct=$i&&!gt&&fo(it,st.from,st.to);if(ct)for(var mt=ct.length-1;mt>=0;--mt)Fh(it,{from:ct[mt].from,to:ct[mt].to,text:mt?[""]:st.text,origin:st.origin});else Fh(it,st)}}function Fh(it,st){if(!(st.text.length==1&&st.text[0]==""&&Ve(st.from,st.to)==0)){var gt=Yd(it,st);Jd(it,st,gt,it.cm?it.cm.curOp.id:NaN),gd(it,st,gt,wo(it,st));var ct=[];Dl(it,function(mt,Et){!Et&&xe(ct,mt.history)==-1&&(lf(mt.history,st),ct.push(mt.history)),gd(mt,st,null,wo(mt,st))})}}function nc(it,st,gt){var ct=it.cm&&it.cm.state.suppressEdits;if(!(ct&&!gt)){for(var mt=it.history,Et,bt=it.sel,Rt=st=="undo"?mt.done:mt.undone,Ot=st=="undo"?mt.undone:mt.done,Xt=0;Xt<Rt.length&&(Et=Rt[Xt],!(gt?Et.ranges&&!Et.equals(it.sel):!Et.ranges));Xt++);if(Xt!=Rt.length){for(mt.lastOrigin=mt.lastSelOrigin=null;;)if(Et=Rt.pop(),Et.ranges){if(cd(Et,Ot),gt&&!Et.equals(it.sel)){Js(it,Et,{clearRedo:!1});return}bt=Et}else if(ct){Rt.push(Et);return}else break;var ke=[];cd(bt,Ot),Ot.push({changes:ke,generation:mt.generation}),mt.generation=Et.generation||++mt.maxGeneration;for(var ee=fi(it,"beforeChange")||it.cm&&fi(it.cm,"beforeChange"),Xe=function($n){var hi=Et.changes[$n];if(hi.origin=st,ee&&!ec(it,hi,!1))return Rt.length=0,{};ke.push(Zc(it,hi));var Mi=$n?Yd(it,hi):ae(Rt);gd(it,hi,Mi,Kc(it,hi)),!$n&&it.cm&&it.cm.scrollIntoView({from:hi.from,to:Vu(hi)});var zi=[];Dl(it,function(bi,Yi){!Yi&&xe(zi,bi.history)==-1&&(lf(bi.history,hi),zi.push(bi.history)),gd(bi,hi,null,Kc(bi,hi))})},He=Et.changes.length-1;He>=0;--He){var Yn=Xe(He);if(Yn)return Yn.v}}}}function af(it,st){if(st!=0&&(it.first+=st,it.sel=new tl(mn(it.sel.ranges,function(mt){return new dr(Te(mt.anchor.line+st,mt.anchor.ch),Te(mt.head.line+st,mt.head.ch))}),it.sel.primIndex),it.cm)){Nr(it.cm,it.first,it.first-st,st);for(var gt=it.cm.display,ct=gt.viewFrom;ct<gt.viewTo;ct++)Oo(it.cm,ct,"gutter")}}function gd(it,st,gt,ct){if(it.cm&&!it.cm.curOp)return gs(it.cm,gd)(it,st,gt,ct);if(st.to.line<it.first){af(it,st.text.length-1-(st.to.line-st.from.line));return}if(!(st.from.line>it.lastLine())){if(st.from.line<it.first){var mt=st.text.length-1-(it.first-st.from.line);af(it,mt),st={from:Te(it.first,0),to:Te(st.to.line+mt,st.to.ch),text:[ae(st.text)],origin:st.origin}}var Et=it.lastLine();st.to.line>Et&&(st={from:st.from,to:Te(Et,un(it,Et).text.length),text:[st.text[0]],origin:st.origin}),st.removed=Qn(it,st.from,st.to),gt||(gt=Yd(it,st)),it.cm?Vp(it.cm,st,ct):Wc(it,st,ct),Lh(it,gt,ge),it.cantEdit&&tc(it,Te(it.firstLine(),0))&&(it.cantEdit=!1)}}function Vp(it,st,gt){var ct=it.doc,mt=it.display,Et=st.from,bt=st.to,Rt=!1,Ot=Et.line;it.options.lineWrapping||(Ot=zt(Mn(un(ct,Et.line))),ct.iter(Ot,bt.line+1,function(He){if(He==mt.maxLine)return Rt=!0,!0})),ct.sel.contains(st.from,st.to)>-1&&di(it),Wc(ct,st,gt,Br(it)),it.options.lineWrapping||(ct.iter(Ot,Et.line+st.text.length,function(He){var Yn=Wi(He);Yn>mt.maxLineLength&&(mt.maxLine=He,mt.maxLineLength=Yn,mt.maxLineChanged=!0,Rt=!1)}),Rt&&(it.curOp.updateMaxLine=!0)),oo(ct,Et.line),ld(it,400);var Xt=st.text.length-(bt.line-Et.line)-1;st.full?Nr(it):Et.line==bt.line&&st.text.length==1&&!nf(it.doc,st)?Oo(it,Et.line,"text"):Nr(it,Et.line,bt.line+1,Xt);var ke=fi(it,"changes"),ee=fi(it,"change");if(ee||ke){var Xe={from:Et,to:bt,text:st.text,removed:st.removed,origin:st.origin};ee&&yi(it,"change",it,Xe),ke&&(it.curOp.changeObjs||(it.curOp.changeObjs=[])).push(Xe)}it.display.selForContextMenu=null}function kh(it,st,gt,ct,mt){var Et;ct||(ct=gt),Ve(ct,gt)<0&&(Et=[ct,gt],gt=Et[0],ct=Et[1]),typeof st=="string"&&(st=it.splitLines(st)),Yu(it,{from:gt,to:ct,text:st,origin:mt})}function el(it,st,gt,ct){gt<it.line?it.line+=ct:st<it.line&&(it.line=st,it.ch=0)}function Up(it,st,gt,ct){for(var mt=0;mt<it.length;++mt){var Et=it[mt],bt=!0;if(Et.ranges){Et.copied||(Et=it[mt]=Et.deepCopy(),Et.copied=!0);for(var Rt=0;Rt<Et.ranges.length;Rt++)el(Et.ranges[Rt].anchor,st,gt,ct),el(Et.ranges[Rt].head,st,gt,ct);continue}for(var Ot=0;Ot<Et.changes.length;++Ot){var Xt=Et.changes[Ot];if(gt<Xt.from.line)Xt.from=Te(Xt.from.line+ct,Xt.from.ch),Xt.to=Te(Xt.to.line+ct,Xt.to.ch);else if(st<=Xt.to.line){bt=!1;break}}bt||(it.splice(0,mt+1),mt=0)}}function lf(it,st){var gt=st.from.line,ct=st.to.line,mt=st.text.length-(ct-gt)-1;Up(it.done,gt,ct,mt),Up(it.undone,gt,ct,mt)}function Bh(it,st,gt,ct){var mt=st,Et=st;return typeof st=="number"?Et=un(it,qn(it,st)):mt=zt(st),mt==null?null:(ct(Et,mt)&&it.cm&&Oo(it.cm,mt,gt),Et)}function fd(it){this.lines=it,this.parent=null;for(var st=0,gt=0;gt<it.length;++gt)it[gt].parent=this,st+=it[gt].height;this.height=st}fd.prototype={chunkSize:function(){return this.lines.length},removeInner:function(it,st){for(var gt=it,ct=it+st;gt<ct;++gt){var mt=this.lines[gt];this.height-=mt.height,Ki(mt),yi(mt,"delete")}this.lines.splice(it,st)},collapse:function(it){it.push.apply(it,this.lines)},insertInner:function(it,st,gt){this.height+=gt,this.lines=this.lines.slice(0,it).concat(st).concat(this.lines.slice(it));for(var ct=0;ct<st.length;++ct)st[ct].parent=this},iterN:function(it,st,gt){for(var ct=it+st;it<ct;++it)if(gt(this.lines[it]))return!0}};function Hr(it){this.children=it;for(var st=0,gt=0,ct=0;ct<it.length;++ct){var mt=it[ct];st+=mt.chunkSize(),gt+=mt.height,mt.parent=this}this.size=st,this.height=gt,this.parent=null}Hr.prototype={chunkSize:function(){return this.size},removeInner:function(it,st){this.size-=st;for(var gt=0;gt<this.children.length;++gt){var ct=this.children[gt],mt=ct.chunkSize();if(it<mt){var Et=Math.min(st,mt-it),bt=ct.height;if(ct.removeInner(it,Et),this.height-=bt-ct.height,mt==Et&&(this.children.splice(gt--,1),ct.parent=null),(st-=Et)==0)break;it=0}else it-=mt}if(this.size-st<25&&(this.children.length>1||!(this.children[0]instanceof fd))){var Rt=[];this.collapse(Rt),this.children=[new fd(Rt)],this.children[0].parent=this}},collapse:function(it){for(var st=0;st<this.children.length;++st)this.children[st].collapse(it)},insertInner:function(it,st,gt){this.size+=st.length,this.height+=gt;for(var ct=0;ct<this.children.length;++ct){var mt=this.children[ct],Et=mt.chunkSize();if(it<=Et){if(mt.insertInner(it,st,gt),mt.lines&&mt.lines.length>50){for(var bt=mt.lines.length%25+25,Rt=bt;Rt<mt.lines.length;){var Ot=new fd(mt.lines.slice(Rt,Rt+=25));mt.height-=Ot.height,this.children.splice(++ct,0,Ot),Ot.parent=this}mt.lines=mt.lines.slice(0,bt),this.maybeSpill()}break}it-=Et}},maybeSpill:function(){if(!(this.children.length<=10)){var it=this;do{var st=it.children.splice(it.children.length-5,5),gt=new Hr(st);if(it.parent){it.size-=gt.size,it.height-=gt.height;var mt=xe(it.parent.children,it);it.parent.children.splice(mt+1,0,gt)}else{var ct=new Hr(it.children);ct.parent=it,it.children=[ct,gt],it=ct}gt.parent=it.parent}while(it.children.length>10);it.parent.maybeSpill()}},iterN:function(it,st,gt){for(var ct=0;ct<this.children.length;++ct){var mt=this.children[ct],Et=mt.chunkSize();if(it<Et){var bt=Math.min(st,Et-it);if(mt.iterN(it,bt,gt))return!0;if((st-=bt)==0)break;it=0}else it-=Et}}};var yu=function(it,st,gt){if(gt)for(var ct in gt)gt.hasOwnProperty(ct)&&(this[ct]=gt[ct]);this.doc=it,this.node=st};yu.prototype.clear=function(){var it=this.doc.cm,st=this.line.widgets,gt=this.line,ct=zt(gt);if(!(ct==null||!st)){for(var mt=0;mt<st.length;++mt)st[mt]==this&&st.splice(mt--,1);st.length||(gt.widgets=null);var Et=gl(this);ai(gt,Math.max(0,gt.height-Et)),it&&(or(it,function(){Wp(it,gt,-Et),Oo(it,ct,"widget")}),yi(it,"lineWidgetCleared",it,this,ct))}},yu.prototype.changed=function(){var it=this,st=this.height,gt=this.doc.cm,ct=this.line;this.height=null;var mt=gl(this)-st;mt&&(Ee(this.doc,ct)||ai(ct,ct.height+mt),gt&&or(gt,function(){gt.curOp.forceUpdate=!0,Wp(gt,ct,mt),yi(gt,"lineWidgetChanged",gt,it,zt(ct))}))},pi(yu);function Wp(it,st,gt){gi(st)<(it.curOp&&it.curOp.scrollTop||it.doc.scrollTop)&&zc(it,gt)}function qc(it,st,gt,ct){var mt=new yu(it,gt,ct),Et=it.cm;return Et&&mt.noHScroll&&(Et.display.alignWidgets=!0),Bh(it,st,"widget",function(bt){var Rt=bt.widgets||(bt.widgets=[]);if(mt.insertAt==null?Rt.push(mt):Rt.splice(Math.min(Rt.length-1,Math.max(0,mt.insertAt)),0,mt),mt.line=bt,Et&&!Ee(it,bt)){var Ot=gi(bt)<it.scrollTop;ai(bt,bt.height+gl(mt)),Ot&&zc(Et,mt.height),Et.curOp.forceUpdate=!0}return!0}),Et&&yi(Et,"lineWidgetAdded",Et,mt,typeof st=="number"?st:zt(st)),mt}var Yp=0,ye=function(it,st){this.lines=[],this.type=st,this.doc=it,this.id=++Yp};ye.prototype.clear=function(){if(!this.explicitlyCleared){var it=this.doc.cm,st=it&&!it.curOp;if(st&&Iu(it),fi(this,"clear")){var gt=this.find();gt&&yi(this,"clear",gt.from,gt.to)}for(var ct=null,mt=null,Et=0;Et<this.lines.length;++Et){var bt=this.lines[Et],Rt=Co(bt.markedSpans,this);it&&!this.collapsed?Oo(it,zt(bt),"text"):it&&(Rt.to!=null&&(mt=zt(bt)),Rt.from!=null&&(ct=zt(bt))),bt.markedSpans=to(bt.markedSpans,Rt),Rt.from==null&&this.collapsed&&!Ee(this.doc,bt)&&it&&ai(bt,cu(it.display))}if(it&&this.collapsed&&!it.options.lineWrapping)for(var Ot=0;Ot<this.lines.length;++Ot){var Xt=Mn(this.lines[Ot]),ke=Wi(Xt);ke>it.display.maxLineLength&&(it.display.maxLine=Xt,it.display.maxLineLength=ke,it.display.maxLineChanged=!0)}ct!=null&&it&&this.collapsed&&Nr(it,ct,mt+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,it&&_d(it.doc)),it&&yi(it,"markerCleared",it,this,ct,mt),st&&Ou(it),this.parent&&this.parent.clear()}},ye.prototype.find=function(it,st){it==null&&this.type=="bookmark"&&(it=1);for(var gt,ct,mt=0;mt<this.lines.length;++mt){var Et=this.lines[mt],bt=Co(Et.markedSpans,this);if(bt.from!=null&&(gt=Te(st?Et:zt(Et),bt.from),it==-1))return gt;if(bt.to!=null&&(ct=Te(st?Et:zt(Et),bt.to),it==1))return ct}return gt&&{from:gt,to:ct}},ye.prototype.changed=function(){var it=this,st=this.find(-1,!0),gt=this,ct=this.doc.cm;!st||!ct||or(ct,function(){var mt=st.line,Et=zt(st.line),bt=No(ct,Et);if(bt&&(yh(bt),ct.curOp.selectionChanged=ct.curOp.forceUpdate=!0),ct.curOp.updateMaxLine=!0,!Ee(gt.doc,mt)&>.height!=null){var Rt=gt.height;gt.height=null;var Ot=gl(gt)-Rt;Ot&&ai(mt,mt.height+Ot)}yi(ct,"markerChanged",ct,it)})},ye.prototype.attachLine=function(it){if(!this.lines.length&&this.doc.cm){var st=this.doc.cm.curOp;(!st.maybeHiddenMarkers||xe(st.maybeHiddenMarkers,this)==-1)&&(st.maybeUnhiddenMarkers||(st.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(it)},ye.prototype.detachLine=function(it){if(this.lines.splice(xe(this.lines,it),1),!this.lines.length&&this.doc.cm){var st=this.doc.cm.curOp;(st.maybeHiddenMarkers||(st.maybeHiddenMarkers=[])).push(this)}},pi(ye);function Nh(it,st,gt,ct,mt){if(ct&&ct.shared)return Zp(it,st,gt,ct,mt);if(it.cm&&!it.cm.curOp)return gs(it.cm,Nh)(it,st,gt,ct,mt);var Et=new ye(it,mt),bt=Ve(st,gt);if(ct&&bn(ct,Et,!1),bt>0||bt==0&&Et.clearWhenEmpty!==!1)return Et;if(Et.replacedWith&&(Et.collapsed=!0,Et.widgetNode=Pe("span",[Et.replacedWith],"CodeMirror-widget"),ct.handleMouseEvents||Et.widgetNode.setAttribute("cm-ignore-events","true"),ct.insertLeft&&(Et.widgetNode.insertLeft=!0)),Et.collapsed){if(kn(it,st.line,st,gt,Et)||st.line!=gt.line&&kn(it,gt.line,st,gt,Et))throw new Error("Inserting collapsed marker partially overlapping an existing one");_e()}Et.addToHistory&&Jd(it,{from:st,to:gt,origin:"markText"},it.sel,NaN);var Rt=st.line,Ot=it.cm,Xt;if(it.iter(Rt,gt.line+1,function(ee){Ot&&Et.collapsed&&!Ot.options.lineWrapping&&Mn(ee)==Ot.display.maxLine&&(Xt=!0),Et.collapsed&&Rt!=st.line&&ai(ee,0),Bo(ee,new xo(Et,Rt==st.line?st.ch:null,Rt==gt.line?gt.ch:null)),++Rt}),Et.collapsed&&it.iter(st.line,gt.line+1,function(ee){Ee(it,ee)&&ai(ee,0)}),Et.clearOnEnter&&ie(Et,"beforeCursorEnter",function(){return Et.clear()}),Et.readOnly&&(Gi(),(it.history.done.length||it.history.undone.length)&&it.clearHistory()),Et.collapsed&&(Et.id=++Yp,Et.atomic=!0),Ot){if(Xt&&(Ot.curOp.updateMaxLine=!0),Et.collapsed)Nr(Ot,st.line,gt.line+1);else if(Et.className||Et.startStyle||Et.endStyle||Et.css||Et.attributes||Et.title)for(var ke=st.line;ke<=gt.line;ke++)Oo(Ot,ke,"text");Et.atomic&&_d(Ot.doc),yi(Ot,"markerAdded",Ot,Et)}return Et}var Zl=function(it,st){this.markers=it,this.primary=st;for(var gt=0;gt<it.length;++gt)it[gt].parent=this};Zl.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var it=0;it<this.markers.length;++it)this.markers[it].clear();yi(this,"clear")}},Zl.prototype.find=function(it,st){return this.primary.find(it,st)},pi(Zl);function Zp(it,st,gt,ct,mt){ct=bn(ct),ct.shared=!1;var Et=[Nh(it,st,gt,ct,mt)],bt=Et[0],Rt=ct.widgetNode;return Dl(it,function(Ot){Rt&&(ct.widgetNode=Rt.cloneNode(!0)),Et.push(Nh(Ot,si(Ot,st),si(Ot,gt),ct,mt));for(var Xt=0;Xt<Ot.linked.length;++Xt)if(Ot.linked[Xt].isParent)return;bt=ae(Et)}),new Zl(Et,bt)}function uf(it){return it.findMarks(Te(it.first,0),it.clipPos(Te(it.lastLine())),function(st){return st.parent})}function Kp(it,st){for(var gt=0;gt<st.length;gt++){var ct=st[gt],mt=ct.find(),Et=it.clipPos(mt.from),bt=it.clipPos(mt.to);if(Ve(Et,bt)){var Rt=Nh(it,Et,bt,ct.primary,ct.primary.type);ct.markers.push(Rt),Rt.parent=ct}}}function hf(it){for(var st=function(ct){var mt=it[ct],Et=[mt.primary.doc];Dl(mt.primary.doc,function(Ot){return Et.push(Ot)});for(var bt=0;bt<mt.markers.length;bt++){var Rt=mt.markers[bt];xe(Et,Rt.doc)==-1&&(Rt.parent=null,mt.markers.splice(bt--,1))}},gt=0;gt<it.length;gt++)st(gt)}var tv=0,Hs=function(it,st,gt,ct,mt){if(!(this instanceof Hs))return new Hs(it,st,gt,ct,mt);gt==null&&(gt=0),Hr.call(this,[new fd([new vi("",null)])]),this.first=gt,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=gt;var Et=Te(gt,0);this.sel=pu(Et),this.history=new hd(null),this.id=++tv,this.modeOption=st,this.lineSep=ct,this.direction=mt=="rtl"?"rtl":"ltr",this.extend=!1,typeof it=="string"&&(it=this.splitLines(it)),Wc(this,{from:Et,to:Et,text:it}),Js(this,pu(Et),ge)};Hs.prototype=ii(Hr.prototype,{constructor:Hs,iter:function(it,st,gt){gt?this.iterN(it-this.first,st-it,gt):this.iterN(this.first,this.first+this.size,it)},insert:function(it,st){for(var gt=0,ct=0;ct<st.length;++ct)gt+=st[ct].height;this.insertInner(it-this.first,st,gt)},remove:function(it,st){this.removeInner(it-this.first,st)},getValue:function(it){var st=Nn(this,this.first,this.first+this.size);return it===!1?st:st.join(it||this.lineSeparator())},setValue:Ps(function(it){var st=Te(this.first,0),gt=this.first+this.size-1;Yu(this,{from:st,to:Te(gt,un(this,gt).text.length),text:this.splitLines(it),origin:"setValue",full:!0},!0),this.cm&&wh(this.cm,0,0),Js(this,pu(st),ge)}),replaceRange:function(it,st,gt,ct){st=si(this,st),gt=gt?si(this,gt):st,kh(this,it,st,gt,ct)},getRange:function(it,st,gt){var ct=Qn(this,si(this,it),si(this,st));return gt===!1?ct:ct.join(gt||this.lineSeparator())},getLine:function(it){var st=this.getLineHandle(it);return st&&st.text},getLineHandle:function(it){if(Dn(this,it))return un(this,it)},getLineNumber:function(it){return zt(it)},getLineHandleVisualStart:function(it){return typeof it=="number"&&(it=un(this,it)),Mn(it)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(it){return si(this,it)},getCursor:function(it){var st=this.sel.primary(),gt;return it==null||it=="head"?gt=st.head:it=="anchor"?gt=st.anchor:it=="end"||it=="to"||it===!1?gt=st.to():gt=st.from(),gt},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Ps(function(it,st,gt){Mh(this,si(this,typeof it=="number"?Te(it,st||0):it),null,gt)}),setSelection:Ps(function(it,st,gt){Mh(this,si(this,it),si(this,st||it),gt)}),extendSelection:Ps(function(it,st,gt){Xc(this,si(this,it),st&&si(this,st),gt)}),extendSelections:Ps(function(it,st){Gp(this,Ii(this,it),st)}),extendSelectionsBy:Ps(function(it,st){var gt=mn(this.sel.ranges,it);Gp(this,Ii(this,gt),st)}),setSelections:Ps(function(it,st,gt){if(it.length){for(var ct=[],mt=0;mt<it.length;mt++)ct[mt]=new dr(si(this,it[mt].anchor),si(this,it[mt].head));st==null&&(st=Math.min(it.length-1,this.sel.primIndex)),Js(this,ml(this.cm,ct,st),gt)}}),addSelection:Ps(function(it,st,gt){var ct=this.sel.ranges.slice(0);ct.push(new dr(si(this,it),si(this,st||it))),Js(this,ml(this.cm,ct,ct.length-1),gt)}),getSelection:function(it){for(var st=this.sel.ranges,gt,ct=0;ct<st.length;ct++){var mt=Qn(this,st[ct].from(),st[ct].to());gt=gt?gt.concat(mt):mt}return it===!1?gt:gt.join(it||this.lineSeparator())},getSelections:function(it){for(var st=[],gt=this.sel.ranges,ct=0;ct<gt.length;ct++){var mt=Qn(this,gt[ct].from(),gt[ct].to());it!==!1&&(mt=mt.join(it||this.lineSeparator())),st[ct]=mt}return st},replaceSelection:function(it,st,gt){for(var ct=[],mt=0;mt<this.sel.ranges.length;mt++)ct[mt]=it;this.replaceSelections(ct,st,gt||"+input")},replaceSelections:Ps(function(it,st,gt){for(var ct=[],mt=this.sel,Et=0;Et<mt.ranges.length;Et++){var bt=mt.ranges[Et];ct[Et]={from:bt.from(),to:bt.to(),text:this.splitLines(it[Et]),origin:gt}}for(var Rt=st&&st!="end"&&Zd(this,ct,st),Ot=ct.length-1;Ot>=0;Ot--)Yu(this,ct[Ot]);Rt?Jc(this,Rt):this.cm&&gu(this.cm)}),undo:Ps(function(){nc(this,"undo")}),redo:Ps(function(){nc(this,"redo")}),undoSelection:Ps(function(){nc(this,"undo",!0)}),redoSelection:Ps(function(){nc(this,"redo",!0)}),setExtending:function(it){this.extend=it},getExtending:function(){return this.extend},historySize:function(){for(var it=this.history,st=0,gt=0,ct=0;ct<it.done.length;ct++)it.done[ct].ranges||++st;for(var mt=0;mt<it.undone.length;mt++)it.undone[mt].ranges||++gt;return{undo:st,redo:gt}},clearHistory:function(){var it=this;this.history=new hd(this.history.maxGeneration),Dl(this,function(st){return st.history=it.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(it){return it&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(it){return this.history.generation==(it||this.cleanGeneration)},getHistory:function(){return{done:mu(this.history.done),undone:mu(this.history.undone)}},setHistory:function(it){var st=this.history=new hd(this.history.maxGeneration);st.done=mu(it.done.slice(0),null,!0),st.undone=mu(it.undone.slice(0),null,!0)},setGutterMarker:Ps(function(it,st,gt){return Bh(this,it,"gutter",function(ct){var mt=ct.gutterMarkers||(ct.gutterMarkers={});return mt[st]=gt,!gt&&Ne(mt)&&(ct.gutterMarkers=null),!0})}),clearGutter:Ps(function(it){var st=this;this.iter(function(gt){gt.gutterMarkers&>.gutterMarkers[it]&&Bh(st,gt,"gutter",function(){return gt.gutterMarkers[it]=null,Ne(gt.gutterMarkers)&&(gt.gutterMarkers=null),!0})})}),lineInfo:function(it){var st;if(typeof it=="number"){if(!Dn(this,it)||(st=it,it=un(this,it),!it))return null}else if(st=zt(it),st==null)return null;return{line:st,handle:it,text:it.text,gutterMarkers:it.gutterMarkers,textClass:it.textClass,bgClass:it.bgClass,wrapClass:it.wrapClass,widgets:it.widgets}},addLineClass:Ps(function(it,st,gt){return Bh(this,it,st=="gutter"?"gutter":"class",function(ct){var mt=st=="text"?"textClass":st=="background"?"bgClass":st=="gutter"?"gutterClass":"wrapClass";if(!ct[mt])ct[mt]=gt;else{if(Ut(gt).test(ct[mt]))return!1;ct[mt]+=" "+gt}return!0})}),removeLineClass:Ps(function(it,st,gt){return Bh(this,it,st=="gutter"?"gutter":"class",function(ct){var mt=st=="text"?"textClass":st=="background"?"bgClass":st=="gutter"?"gutterClass":"wrapClass",Et=ct[mt];if(Et)if(gt==null)ct[mt]=null;else{var bt=Et.match(Ut(gt));if(!bt)return!1;var Rt=bt.index+bt[0].length;ct[mt]=Et.slice(0,bt.index)+(!bt.index||Rt==Et.length?"":" ")+Et.slice(Rt)||null}else return!1;return!0})}),addLineWidget:Ps(function(it,st,gt){return qc(this,it,st,gt)}),removeLineWidget:function(it){it.clear()},markText:function(it,st,gt){return Nh(this,si(this,it),si(this,st),gt,gt&>.type||"range")},setBookmark:function(it,st){var gt={replacedWith:st&&(st.nodeType==null?st.widget:st),insertLeft:st&&st.insertLeft,clearWhenEmpty:!1,shared:st&&st.shared,handleMouseEvents:st&&st.handleMouseEvents};return it=si(this,it),Nh(this,it,it,gt,"bookmark")},findMarksAt:function(it){it=si(this,it);var st=[],gt=un(this,it.line).markedSpans;if(gt)for(var ct=0;ct<gt.length;++ct){var mt=gt[ct];(mt.from==null||mt.from<=it.ch)&&(mt.to==null||mt.to>=it.ch)&&st.push(mt.marker.parent||mt.marker)}return st},findMarks:function(it,st,gt){it=si(this,it),st=si(this,st);var ct=[],mt=it.line;return this.iter(it.line,st.line+1,function(Et){var bt=Et.markedSpans;if(bt)for(var Rt=0;Rt<bt.length;Rt++){var Ot=bt[Rt];!(Ot.to!=null&&mt==it.line&&it.ch>=Ot.to||Ot.from==null&&mt!=it.line||Ot.from!=null&&mt==st.line&&Ot.from>=st.ch)&&(!gt||gt(Ot.marker))&&ct.push(Ot.marker.parent||Ot.marker)}++mt}),ct},getAllMarks:function(){var it=[];return this.iter(function(st){var gt=st.markedSpans;if(gt)for(var ct=0;ct<gt.length;++ct)gt[ct].from!=null&&it.push(gt[ct].marker)}),it},posFromIndex:function(it){var st,gt=this.first,ct=this.lineSeparator().length;return this.iter(function(mt){var Et=mt.text.length+ct;if(Et>it)return st=it,!0;it-=Et,++gt}),si(this,Te(gt,st))},indexFromPos:function(it){it=si(this,it);var st=it.ch;if(it.line<this.first||it.ch<0)return 0;var gt=this.lineSeparator().length;return this.iter(this.first,it.line,function(ct){st+=ct.text.length+gt}),st},copy:function(it){var st=new Hs(Nn(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return st.scrollTop=this.scrollTop,st.scrollLeft=this.scrollLeft,st.sel=this.sel,st.extend=!1,it&&(st.history.undoDepth=this.history.undoDepth,st.setHistory(this.getHistory())),st},linkedDoc:function(it){it||(it={});var st=this.first,gt=this.first+this.size;it.from!=null&&it.from>st&&(st=it.from),it.to!=null&&it.to<gt&&(gt=it.to);var ct=new Hs(Nn(this,st,gt),it.mode||this.modeOption,st,this.lineSep,this.direction);return it.sharedHist&&(ct.history=this.history),(this.linked||(this.linked=[])).push({doc:ct,sharedHist:it.sharedHist}),ct.linked=[{doc:this,isParent:!0,sharedHist:it.sharedHist}],Kp(ct,uf(this)),ct},unlinkDoc:function(it){if(it instanceof tr&&(it=it.doc),this.linked)for(var st=0;st<this.linked.length;++st){var gt=this.linked[st];if(gt.doc==it){this.linked.splice(st,1),it.unlinkDoc(this),hf(uf(this));break}}if(it.history==this.history){var ct=[it.id];Dl(it,function(mt){return ct.push(mt.id)},!0),it.history=new hd(null),it.history.done=mu(this.history.done,ct),it.history.undone=mu(this.history.undone,ct)}},iterLinkedDocs:function(it){Dl(this,it)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(it){return this.lineSep?it.split(this.lineSep):pn(it)},lineSeparator:function(){return this.lineSep||`
|
|
`},setDirection:Ps(function(it){it!="rtl"&&(it="ltr"),it!=this.direction&&(this.direction=it,this.iter(function(st){return st.order=null}),this.cm&&$m(this.cm))})}),Hs.prototype.eachLine=Hs.prototype.iter;var ic=0;function df(it){var st=this;if(Jp(st),!(Jn(st,it)||ia(st.display,it))){Bi(it),Se&&(ic=+new Date);var gt=oa(st,it,!0),ct=it.dataTransfer.files;if(!(!gt||st.isReadOnly()))if(ct&&ct.length&&window.FileReader&&window.File)for(var mt=ct.length,Et=Array(mt),bt=0,Rt=function(){++bt==mt&&gs(st,function(){gt=si(st.doc,gt);var He={from:gt,to:gt,text:st.doc.splitLines(Et.filter(function(Yn){return Yn!=null}).join(st.doc.lineSeparator())),origin:"paste"};Yu(st.doc,He),Jc(st.doc,pu(si(st.doc,gt),si(st.doc,Vu(He))))})()},Ot=function(He,Yn){if(st.options.allowDropFileTypes&&xe(st.options.allowDropFileTypes,He.type)==-1){Rt();return}var $n=new FileReader;$n.onerror=function(){return Rt()},$n.onload=function(){var hi=$n.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(hi)){Rt();return}Et[Yn]=hi,Rt()},$n.readAsText(He)},Xt=0;Xt<ct.length;Xt++)Ot(ct[Xt],Xt);else{if(st.state.draggingText&&st.doc.sel.contains(gt)>-1){st.state.draggingText(it),setTimeout(function(){return st.display.input.focus()},20);return}try{var ke=it.dataTransfer.getData("Text");if(ke){var ee;if(st.state.draggingText&&!st.state.draggingText.copy&&(ee=st.listSelections()),Lh(st.doc,pu(gt,gt)),ee)for(var Xe=0;Xe<ee.length;++Xe)kh(st.doc,"",ee[Xe].anchor,ee[Xe].head,"drag");st.replaceSelection(ke,"around","paste"),st.display.input.focus()}}catch(He){}}}}function Qp(it,st){if(Se&&(!it.state.draggingText||+new Date-ic<100)){Ao(st);return}if(!(Jn(it,st)||ia(it.display,st))&&(st.dataTransfer.setData("Text",it.getSelection()),st.dataTransfer.effectAllowed="copyMove",st.dataTransfer.setDragImage&&!he)){var gt=_t("img",null,null,"position: fixed; left: 0; top: 0;");gt.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",ve&&(gt.width=gt.height=1,it.display.wrapper.appendChild(gt),gt._top=gt.offsetTop),st.dataTransfer.setDragImage(gt,0,0),ve&>.parentNode.removeChild(gt)}}function Xp(it,st){var gt=oa(it,st);if(gt){var ct=document.createDocumentFragment();Wo(it,gt,ct),it.display.dragCursor||(it.display.dragCursor=_t("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),it.display.lineSpace.insertBefore(it.display.dragCursor,it.display.cursorDiv)),ne(it.display.dragCursor,ct)}}function Jp(it){it.display.dragCursor&&(it.display.lineSpace.removeChild(it.display.dragCursor),it.display.dragCursor=null)}function qp(it){if(document.getElementsByClassName){for(var st=document.getElementsByClassName("CodeMirror"),gt=[],ct=0;ct<st.length;ct++){var mt=st[ct].CodeMirror;mt&>.push(mt)}gt.length&>[0].operation(function(){for(var Et=0;Et<gt.length;Et++)it(gt[Et])})}}var cf=!1;function Ua(){cf||(pd(),cf=!0)}function pd(){var it;ie(window,"resize",function(){it==null&&(it=setTimeout(function(){it=null,qp(gf)},100))}),ie(window,"blur",function(){return qp(xh)})}function gf(it){var st=it.display;st.cachedCharWidth=st.cachedTextHeight=st.cachedPaddingH=null,st.scrollbarsClipped=!1,it.setSize()}for(var Kl={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"},oc=0;oc<10;oc++)Kl[oc+48]=Kl[oc+96]=String(oc);for(var _c=65;_c<=90;_c++)Kl[_c]=String.fromCharCode(_c);for(var rc=1;rc<=12;rc++)Kl[rc+111]=Kl[rc+63235]="F"+rc;var Fa={};Fa.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"},Fa.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"},Fa.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"},Fa.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"]},Fa.default=dt?Fa.macDefault:Fa.pcDefault;function ff(it){var st=it.split(/-(?!$)/);it=st[st.length-1];for(var gt,ct,mt,Et,bt=0;bt<st.length-1;bt++){var Rt=st[bt];if(/^(cmd|meta|m)$/i.test(Rt))Et=!0;else if(/^a(lt)?$/i.test(Rt))gt=!0;else if(/^(c|ctrl|control)$/i.test(Rt))ct=!0;else if(/^s(hift)?$/i.test(Rt))mt=!0;else throw new Error("Unrecognized modifier name: "+Rt)}return gt&&(it="Alt-"+it),ct&&(it="Ctrl-"+it),Et&&(it="Cmd-"+it),mt&&(it="Shift-"+it),it}function pf(it){var st={};for(var gt in it)if(it.hasOwnProperty(gt)){var ct=it[gt];if(/^(name|fallthrough|(de|at)tach)$/.test(gt))continue;if(ct=="..."){delete it[gt];continue}for(var mt=mn(gt.split(" "),ff),Et=0;Et<mt.length;Et++){var bt=void 0,Rt=void 0;Et==mt.length-1?(Rt=mt.join(" "),bt=ct):(Rt=mt.slice(0,Et+1).join(" "),bt="...");var Ot=st[Rt];if(!Ot)st[Rt]=bt;else if(Ot!=bt)throw new Error("Inconsistent bindings for "+Rt)}delete it[gt]}for(var Xt in st)it[Xt]=st[Xt];return it}function nl(it,st,gt,ct){st=bh(st);var mt=st.call?st.call(it,ct):st[it];if(mt===!1)return"nothing";if(mt==="...")return"multi";if(mt!=null&>(mt))return"handled";if(st.fallthrough){if(Object.prototype.toString.call(st.fallthrough)!="[object Array]")return nl(it,st.fallthrough,gt,ct);for(var Et=0;Et<st.fallthrough.length;Et++){var bt=nl(it,st.fallthrough[Et],gt,ct);if(bt)return bt}}}function md(it){var st=typeof it=="string"?it:Kl[it.keyCode];return st=="Ctrl"||st=="Alt"||st=="Shift"||st=="Mod"}function mf(it,st,gt){var ct=it;return st.altKey&&ct!="Alt"&&(it="Alt-"+it),(At?st.metaKey:st.ctrlKey)&&ct!="Ctrl"&&(it="Ctrl-"+it),(At?st.ctrlKey:st.metaKey)&&ct!="Mod"&&(it="Cmd-"+it),!gt&&st.shiftKey&&ct!="Shift"&&(it="Shift-"+it),it}function _p(it,st){if(ve&&it.keyCode==34&&it.char)return!1;var gt=Kl[it.keyCode];return gt==null||it.altGraphKey?!1:(it.keyCode==3&&it.code&&(gt=it.code),mf(gt,it,st))}function bh(it){return typeof it=="string"?Fa[it]:it}function ka(it,st){for(var gt=it.doc.sel.ranges,ct=[],mt=0;mt<gt.length;mt++){for(var Et=st(gt[mt]);ct.length&&Ve(Et.from,ae(ct).to)<=0;){var bt=ct.pop();if(Ve(bt.from,Et.from)<0){Et.from=bt.from;break}}ct.push(Et)}or(it,function(){for(var Rt=ct.length-1;Rt>=0;Rt--)kh(it.doc,"",ct[Rt].from,ct[Rt].to,"+delete");gu(it)})}function vf(it,st,gt){var ct=We(it.text,st+gt,gt);return ct<0||ct>it.text.length?null:ct}function os(it,st,gt){var ct=vf(it,st.ch,gt);return ct==null?null:new Te(st.line,ct,gt<0?"after":"before")}function sc(it,st,gt,ct,mt){if(it){st.doc.direction=="rtl"&&(mt=-mt);var Et=Gt(gt,st.doc.direction);if(Et){var bt=mt<0?ae(Et):Et[0],Rt=mt<0==(bt.level==1),Ot=Rt?"after":"before",Xt;if(bt.level>0||st.doc.direction=="rtl"){var ke=xr(st,gt);Xt=mt<0?gt.text.length-1:0;var ee=vr(st,ke,Xt).top;Xt=en(function(Xe){return vr(st,ke,Xe).top==ee},mt<0==(bt.level==1)?bt.from:bt.to-1,Xt),Ot=="before"&&(Xt=vf(gt,Xt,1))}else Xt=mt<0?bt.to:bt.from;return new Te(ct,Xt,Ot)}}return new Te(ct,mt<0?gt.text.length:0,mt<0?"before":"after")}function $c(it,st,gt,ct){var mt=Gt(st,it.doc.direction);if(!mt)return os(st,gt,ct);gt.ch>=st.text.length?(gt.ch=st.text.length,gt.sticky="before"):gt.ch<=0&&(gt.ch=0,gt.sticky="after");var Et=St(mt,gt.ch,gt.sticky),bt=mt[Et];if(it.doc.direction=="ltr"&&bt.level%2==0&&(ct>0?bt.to>gt.ch:bt.from<gt.ch))return os(st,gt,ct);var Rt=function(Mi,zi){return vf(st,Mi instanceof Te?Mi.ch:Mi,zi)},Ot,Xt=function(Mi){return it.options.lineWrapping?(Ot=Ot||xr(it,st),Jg(it,st,Ot,Mi)):{begin:0,end:st.text.length}},ke=Xt(gt.sticky=="before"?Rt(gt,-1):gt.ch);if(it.doc.direction=="rtl"||bt.level==1){var ee=bt.level==1==ct<0,Xe=Rt(gt,ee?1:-1);if(Xe!=null&&(ee?Xe<=bt.to&&Xe<=ke.end:Xe>=bt.from&&Xe>=ke.begin)){var He=ee?"before":"after";return new Te(gt.line,Xe,He)}}var Yn=function(Mi,zi,bi){for(var Yi=function(br,ps){return ps?new Te(gt.line,Rt(br,1),"before"):new Te(gt.line,br,"after")};Mi>=0&&Mi<mt.length;Mi+=zi){var Eo=mt[Mi],Ni=zi>0==(Eo.level!=1),zo=Ni?bi.begin:Rt(bi.end,-1);if(Eo.from<=zo&&zo<Eo.to||(zo=Ni?Eo.from:Rt(Eo.to,-1),bi.begin<=zo&&zo<bi.end))return Yi(zo,Ni)}},$n=Yn(Et+ct,ct,ke);if($n)return $n;var hi=ct>0?ke.end:Rt(ke.begin,-1);return hi!=null&&!(ct>0&&hi==st.text.length)&&($n=Yn(ct>0?0:mt.length-1,ct,Xt(hi)),$n)?$n:null}var Zu={selectAll:is,singleSelection:function(it){return it.setSelection(it.getCursor("anchor"),it.getCursor("head"),ge)},killLine:function(it){return ka(it,function(st){if(st.empty()){var gt=un(it.doc,st.head.line).text.length;return st.head.ch==gt&&st.head.line<it.lastLine()?{from:st.head,to:Te(st.head.line+1,0)}:{from:st.head,to:Te(st.head.line,gt)}}else return{from:st.from(),to:st.to()}})},deleteLine:function(it){return ka(it,function(st){return{from:Te(st.from().line,0),to:si(it.doc,Te(st.to().line+1,0))}})},delLineLeft:function(it){return ka(it,function(st){return{from:Te(st.from().line,0),to:st.from()}})},delWrappedLineLeft:function(it){return ka(it,function(st){var gt=it.charCoords(st.head,"div").top+5,ct=it.coordsChar({left:0,top:gt},"div");return{from:ct,to:st.from()}})},delWrappedLineRight:function(it){return ka(it,function(st){var gt=it.charCoords(st.head,"div").top+5,ct=it.coordsChar({left:it.display.lineDiv.offsetWidth+100,top:gt},"div");return{from:st.from(),to:ct}})},undo:function(it){return it.undo()},redo:function(it){return it.redo()},undoSelection:function(it){return it.undoSelection()},redoSelection:function(it){return it.redoSelection()},goDocStart:function(it){return it.extendSelection(Te(it.firstLine(),0))},goDocEnd:function(it){return it.extendSelection(Te(it.lastLine()))},goLineStart:function(it){return it.extendSelectionsBy(function(st){return vd(it,st.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(it){return it.extendSelectionsBy(function(st){return yf(it,st.head)},{origin:"+move",bias:1})},goLineEnd:function(it){return it.extendSelectionsBy(function(st){return yd(it,st.head.line)},{origin:"+move",bias:-1})},goLineRight:function(it){return it.extendSelectionsBy(function(st){var gt=it.cursorCoords(st.head,"div").top+5;return it.coordsChar({left:it.display.lineDiv.offsetWidth+100,top:gt},"div")},Je)},goLineLeft:function(it){return it.extendSelectionsBy(function(st){var gt=it.cursorCoords(st.head,"div").top+5;return it.coordsChar({left:0,top:gt},"div")},Je)},goLineLeftSmart:function(it){return it.extendSelectionsBy(function(st){var gt=it.cursorCoords(st.head,"div").top+5,ct=it.coordsChar({left:0,top:gt},"div");return ct.ch<it.getLine(ct.line).search(/\S/)?yf(it,st.head):ct},Je)},goLineUp:function(it){return it.moveV(-1,"line")},goLineDown:function(it){return it.moveV(1,"line")},goPageUp:function(it){return it.moveV(-1,"page")},goPageDown:function(it){return it.moveV(1,"page")},goCharLeft:function(it){return it.moveH(-1,"char")},goCharRight:function(it){return it.moveH(1,"char")},goColumnLeft:function(it){return it.moveH(-1,"column")},goColumnRight:function(it){return it.moveH(1,"column")},goWordLeft:function(it){return it.moveH(-1,"word")},goGroupRight:function(it){return it.moveH(1,"group")},goGroupLeft:function(it){return it.moveH(-1,"group")},goWordRight:function(it){return it.moveH(1,"word")},delCharBefore:function(it){return it.deleteH(-1,"codepoint")},delCharAfter:function(it){return it.deleteH(1,"char")},delWordBefore:function(it){return it.deleteH(-1,"word")},delWordAfter:function(it){return it.deleteH(1,"word")},delGroupBefore:function(it){return it.deleteH(-1,"group")},delGroupAfter:function(it){return it.deleteH(1,"group")},indentAuto:function(it){return it.indentSelection("smart")},indentMore:function(it){return it.indentSelection("add")},indentLess:function(it){return it.indentSelection("subtract")},insertTab:function(it){return it.replaceSelection(" ")},insertSoftTab:function(it){for(var st=[],gt=it.listSelections(),ct=it.options.tabSize,mt=0;mt<gt.length;mt++){var Et=gt[mt].from(),bt=de(it.getLine(Et.line),Et.ch,ct);st.push(zn(ct-bt%ct))}it.replaceSelections(st)},defaultTab:function(it){it.somethingSelected()?it.indentSelection("add"):it.execCommand("insertTab")},transposeChars:function(it){return or(it,function(){for(var st=it.listSelections(),gt=[],ct=0;ct<st.length;ct++)if(st[ct].empty()){var mt=st[ct].head,Et=un(it.doc,mt.line).text;if(Et){if(mt.ch==Et.length&&(mt=new Te(mt.line,mt.ch-1)),mt.ch>0)mt=new Te(mt.line,mt.ch+1),it.replaceRange(Et.charAt(mt.ch-1)+Et.charAt(mt.ch-2),Te(mt.line,mt.ch-2),mt,"+transpose");else if(mt.line>it.doc.first){var bt=un(it.doc,mt.line-1).text;bt&&(mt=new Te(mt.line,1),it.replaceRange(Et.charAt(0)+it.doc.lineSeparator()+bt.charAt(bt.length-1),Te(mt.line-1,bt.length-1),mt,"+transpose"))}}gt.push(new dr(mt,mt))}it.setSelections(gt)})},newlineAndIndent:function(it){return or(it,function(){for(var st=it.listSelections(),gt=st.length-1;gt>=0;gt--)it.replaceRange(it.doc.lineSeparator(),st[gt].anchor,st[gt].head,"+input");st=it.listSelections();for(var ct=0;ct<st.length;ct++)it.indentLine(st[ct].from().line,null,!0);gu(it)})},openLine:function(it){return it.replaceSelection(`
|
|
`,"start")},toggleOverwrite:function(it){return it.toggleOverwrite()}};function vd(it,st){var gt=un(it.doc,st),ct=Mn(gt);return ct!=gt&&(st=zt(ct)),sc(!0,it,ct,st,1)}function yd(it,st){var gt=un(it.doc,st),ct=Un(gt);return ct!=gt&&(st=zt(ct)),sc(!0,it,gt,st,-1)}function yf(it,st){var gt=vd(it,st.line),ct=un(it.doc,gt.line),mt=Gt(ct,it.doc.direction);if(!mt||mt[0].level==0){var Et=Math.max(gt.ch,ct.text.search(/\S/)),bt=st.line==gt.line&&st.ch<=Et&&st.ch;return Te(gt.line,bt?0:Et,gt.sticky)}return gt}function Sd(it,st,gt){if(typeof st=="string"&&(st=Zu[st],!st))return!1;it.display.input.ensurePolled();var ct=it.display.shift,mt=!1;try{it.isReadOnly()&&(it.state.suppressEdits=!0),gt&&(it.display.shift=!1),mt=st(it)!=dn}finally{it.display.shift=ct,it.state.suppressEdits=!1}return mt}function Sf(it,st,gt){for(var ct=0;ct<it.state.keyMaps.length;ct++){var mt=nl(st,it.state.keyMaps[ct],gt,it);if(mt)return mt}return it.options.extraKeys&&nl(st,it.options.extraKeys,gt,it)||nl(st,it.options.keyMap,gt,it)}var Ql=new Wt;function Dh(it,st,gt,ct){var mt=it.state.keySeq;if(mt){if(md(st))return"handled";if(/\'$/.test(st)?it.state.keySeq=null:Ql.set(50,function(){it.state.keySeq==mt&&(it.state.keySeq=null,it.display.input.reset())}),tg(it,mt+" "+st,gt,ct))return!0}return tg(it,st,gt,ct)}function tg(it,st,gt,ct){var mt=Sf(it,st,ct);return mt=="multi"&&(it.state.keySeq=st),mt=="handled"&&yi(it,"keyHandled",it,st,gt),(mt=="handled"||mt=="multi")&&(Bi(gt),ur(it)),!!mt}function eg(it,st){var gt=_p(st,!0);return gt?st.shiftKey&&!it.state.keySeq?Dh(it,"Shift-"+gt,st,function(ct){return Sd(it,ct,!0)})||Dh(it,gt,st,function(ct){if(typeof ct=="string"?/^go[A-Z]/.test(ct):ct.motion)return Sd(it,ct)}):Dh(it,gt,st,function(ct){return Sd(it,ct)}):!1}function ng(it,st,gt){return Dh(it,"'"+gt+"'",st,function(ct){return Sd(it,ct,!0)})}var Th=null;function xf(it){var st=this;if(!(it.target&&it.target!=st.display.input.getField())&&(st.curOp.focus=oe(),!Jn(st,it))){Se&&Me<11&&it.keyCode==27&&(it.returnValue=!1);var gt=it.keyCode;st.display.shift=gt==16||it.shiftKey;var ct=eg(st,it);ve&&(Th=ct?gt:null,!ct&>==88&&!Li&&(dt?it.metaKey:it.ctrlKey)&&st.replaceSelection("",null,"cut")),ht&&!dt&&!ct&>==46&&it.shiftKey&&!it.ctrlKey&&document.execCommand&&document.execCommand("cut"),gt==18&&!/\bCodeMirror-crosshair\b/.test(st.display.lineDiv.className)&&wf(st)}}function wf(it){var st=it.display.lineDiv;Ae(st,"CodeMirror-crosshair");function gt(ct){(ct.keyCode==18||!ct.altKey)&&(Qt(st,"CodeMirror-crosshair"),ln(document,"keyup",gt),ln(document,"mouseover",gt))}ie(document,"keyup",gt),ie(document,"mouseover",gt)}function Pf(it){it.keyCode==16&&(this.doc.sel.shift=!1),Jn(this,it)}function Tl(it){var st=this;if(!(it.target&&it.target!=st.display.input.getField())&&!(ia(st.display,it)||Jn(st,it)||it.ctrlKey&&!it.altKey||dt&&it.metaKey)){var gt=it.keyCode,ct=it.charCode;if(ve&>==Th){Th=null,Bi(it);return}if(!(ve&&(!it.which||it.which<10)&&eg(st,it))){var mt=String.fromCharCode(ct==null?gt:ct);mt!="\b"&&(ng(st,it,mt)||st.display.input.onKeyPress(it))}}}var $p=400,Cf=function(it,st,gt){this.time=it,this.pos=st,this.button=gt};Cf.prototype.compare=function(it,st,gt){return this.time+$p>it&&Ve(st,this.pos)==0&>==this.button};var xd,Ih;function Ef(it,st){var gt=+new Date;return Ih&&Ih.compare(gt,it,st)?(xd=Ih=null,"triple"):xd&&xd.compare(gt,it,st)?(Ih=new Cf(gt,it,st),xd=null,"double"):(xd=new Cf(gt,it,st),Ih=null,"single")}function Il(it){var st=this,gt=st.display;if(!(Jn(st,it)||gt.activeTouch&>.input.supportsTouch())){if(gt.input.ensurePolled(),gt.shift=it.shiftKey,ia(gt,it)){Jt||(gt.scroller.draggable=!1,setTimeout(function(){return gt.scroller.draggable=!0},100));return}if(!rg(st,it)){var ct=oa(st,it),mt=Ti(it),Et=ct?Ef(ct,mt):"single";window.focus(),mt==1&&st.state.selectingText&&st.state.selectingText(it),!(ct&&Af(st,mt,ct,Et,it))&&(mt==1?ct?t0(st,ct,Et,it):Mo(it)==gt.scroller&&Bi(it):mt==2?(ct&&Xc(st.doc,ct),setTimeout(function(){return gt.input.focus()},20)):mt==3&&(Dt?st.display.input.onContextMenu(it):jr(st)))}}}function Af(it,st,gt,ct,mt){var Et="Click";return ct=="double"?Et="Double"+Et:ct=="triple"&&(Et="Triple"+Et),Et=(st==1?"Left":st==2?"Middle":"Right")+Et,Dh(it,mf(Et,mt),mt,function(bt){if(typeof bt=="string"&&(bt=Zu[bt]),!bt)return!1;var Rt=!1;try{it.isReadOnly()&&(it.state.suppressEdits=!0),Rt=bt(it,gt)!=dn}finally{it.state.suppressEdits=!1}return Rt})}function ig(it,st,gt){var ct=it.getOption("configureMouse"),mt=ct?ct(it,st,gt):{};if(mt.unit==null){var Et=lt?gt.shiftKey&>.metaKey:gt.altKey;mt.unit=Et?"rectangle":st=="single"?"char":st=="double"?"word":"line"}return(mt.extend==null||it.doc.extend)&&(mt.extend=it.doc.extend||gt.shiftKey),mt.addNew==null&&(mt.addNew=dt?gt.metaKey:gt.ctrlKey),mt.moveOnDrag==null&&(mt.moveOnDrag=!(dt?gt.altKey:gt.ctrlKey)),mt}function t0(it,st,gt,ct){Se?setTimeout(Gn(Ar,it),0):it.curOp.focus=oe();var mt=ig(it,gt,ct),Et=it.doc.sel,bt;it.options.dragDrop&&Ui&&!it.isReadOnly()&>=="single"&&(bt=Et.contains(st))>-1&&(Ve((bt=Et.ranges[bt]).from(),st)<0||st.xRel>0)&&(Ve(bt.to(),st)>0||st.xRel<0)?Mf(it,ct,st,mt):ev(it,ct,st,mt)}function Mf(it,st,gt,ct){var mt=it.display,Et=!1,bt=gs(it,function(Xt){Jt&&(mt.scroller.draggable=!1),it.state.draggingText=!1,ln(mt.wrapper.ownerDocument,"mouseup",bt),ln(mt.wrapper.ownerDocument,"mousemove",Rt),ln(mt.scroller,"dragstart",Ot),ln(mt.scroller,"drop",bt),Et||(Bi(Xt),ct.addNew||Xc(it.doc,gt,null,null,ct.extend),Jt&&!he||Se&&Me==9?setTimeout(function(){mt.wrapper.ownerDocument.body.focus({preventScroll:!0}),mt.input.focus()},20):mt.input.focus())}),Rt=function(Xt){Et=Et||Math.abs(st.clientX-Xt.clientX)+Math.abs(st.clientY-Xt.clientY)>=10},Ot=function(){return Et=!0};Jt&&(mt.scroller.draggable=!0),it.state.draggingText=bt,bt.copy=!ct.moveOnDrag,mt.scroller.dragDrop&&mt.scroller.dragDrop(),ie(mt.wrapper.ownerDocument,"mouseup",bt),ie(mt.wrapper.ownerDocument,"mousemove",Rt),ie(mt.scroller,"dragstart",Ot),ie(mt.scroller,"drop",bt),jr(it),setTimeout(function(){return mt.input.focus()},20)}function Lf(it,st,gt){if(gt=="char")return new dr(st,st);if(gt=="word")return it.findWordAt(st);if(gt=="line")return new dr(Te(st.line,0),si(it.doc,Te(st.line+1,0)));var ct=gt(it,st);return new dr(ct.from,ct.to)}function ev(it,st,gt,ct){var mt=it.display,Et=it.doc;Bi(st);var bt,Rt,Ot=Et.sel,Xt=Ot.ranges;if(ct.addNew&&!ct.extend?(Rt=Et.sel.contains(gt),Rt>-1?bt=Xt[Rt]:bt=new dr(gt,gt)):(bt=Et.sel.primary(),Rt=Et.sel.primIndex),ct.unit=="rectangle")ct.addNew||(bt=new dr(gt,gt)),gt=oa(it,st,!0,!0),Rt=-1;else{var ke=Lf(it,gt,ct.unit);ct.extend?bt=Qc(bt,ke.anchor,ke.head,ct.extend):bt=ke}ct.addNew?Rt==-1?(Rt=Xt.length,Js(Et,ml(it,Xt.concat([bt]),Rt),{scroll:!1,origin:"*mouse"})):Xt.length>1&&Xt[Rt].empty()&&ct.unit=="char"&&!ct.extend?(Js(Et,ml(it,Xt.slice(0,Rt).concat(Xt.slice(Rt+1)),0),{scroll:!1,origin:"*mouse"}),Ot=Et.sel):Wu(Et,Rt,bt,we):(Rt=0,Js(Et,new tl([bt],0),we),Ot=Et.sel);var ee=gt;function Xe(bi){if(Ve(ee,bi)!=0)if(ee=bi,ct.unit=="rectangle"){for(var Yi=[],Eo=it.options.tabSize,Ni=de(un(Et,gt.line).text,gt.ch,Eo),zo=de(un(Et,bi.line).text,bi.ch,Eo),br=Math.min(Ni,zo),ps=Math.max(Ni,zo),Vr=Math.min(gt.line,bi.line),ya=Math.min(it.lastLine(),Math.max(gt.line,bi.line));Vr<=ya;Vr++){var qs=un(Et,Vr).text,us=Bn(qs,br,Eo);br==ps?Yi.push(new dr(Te(Vr,us),Te(Vr,us))):qs.length>us&&Yi.push(new dr(Te(Vr,us),Te(Vr,Bn(qs,ps,Eo))))}Yi.length||Yi.push(new dr(gt,gt)),Js(Et,ml(it,Ot.ranges.slice(0,Rt).concat(Yi),Rt),{origin:"*mouse",scroll:!1}),it.scrollIntoView(bi)}else{var Ba=bt,Vs=Lf(it,bi,ct.unit),hs=Ba.anchor,er;Ve(Vs.anchor,hs)>0?(er=Vs.head,hs=Rn(Ba.from(),Vs.anchor)):(er=Vs.anchor,hs=oi(Ba.to(),Vs.head));var Yr=Ot.ranges.slice(0);Yr[Rt]=e0(it,new dr(si(Et,hs),er)),Js(Et,ml(it,Yr,Rt),we)}}var He=mt.wrapper.getBoundingClientRect(),Yn=0;function $n(bi){var Yi=++Yn,Eo=oa(it,bi,!0,ct.unit=="rectangle");if(Eo)if(Ve(Eo,ee)!=0){it.curOp.focus=oe(),Xe(Eo);var Ni=Vo(mt,Et);(Eo.line>=Ni.to||Eo.line<Ni.from)&&setTimeout(gs(it,function(){Yn==Yi&&$n(bi)}),150)}else{var zo=bi.clientY<He.top?-20:bi.clientY>He.bottom?20:0;zo&&setTimeout(gs(it,function(){Yn==Yi&&(mt.scroller.scrollTop+=zo,$n(bi))}),50)}}function hi(bi){it.state.selectingText=!1,Yn=1/0,bi&&(Bi(bi),mt.input.focus()),ln(mt.wrapper.ownerDocument,"mousemove",Mi),ln(mt.wrapper.ownerDocument,"mouseup",zi),Et.history.lastSelOrigin=null}var Mi=gs(it,function(bi){bi.buttons===0||!Ti(bi)?hi(bi):$n(bi)}),zi=gs(it,hi);it.state.selectingText=zi,ie(mt.wrapper.ownerDocument,"mousemove",Mi),ie(mt.wrapper.ownerDocument,"mouseup",zi)}function e0(it,st){var gt=st.anchor,ct=st.head,mt=un(it.doc,gt.line);if(Ve(gt,ct)==0&>.sticky==ct.sticky)return st;var Et=Gt(mt);if(!Et)return st;var bt=St(Et,gt.ch,gt.sticky),Rt=Et[bt];if(Rt.from!=gt.ch&&Rt.to!=gt.ch)return st;var Ot=bt+(Rt.from==gt.ch==(Rt.level!=1)?0:1);if(Ot==0||Ot==Et.length)return st;var Xt;if(ct.line!=gt.line)Xt=(ct.line-gt.line)*(it.doc.direction=="ltr"?1:-1)>0;else{var ke=St(Et,ct.ch,ct.sticky),ee=ke-bt||(ct.ch-gt.ch)*(Rt.level==1?-1:1);ke==Ot-1||ke==Ot?Xt=ee<0:Xt=ee>0}var Xe=Et[Ot+(Xt?-1:0)],He=Xt==(Xe.level==1),Yn=He?Xe.from:Xe.to,$n=He?"after":"before";return gt.ch==Yn&>.sticky==$n?st:new dr(new Te(gt.line,Yn,$n),ct)}function og(it,st,gt,ct){var mt,Et;if(st.touches)mt=st.touches[0].clientX,Et=st.touches[0].clientY;else try{mt=st.clientX,Et=st.clientY}catch(Xe){return!1}if(mt>=Math.floor(it.display.gutters.getBoundingClientRect().right))return!1;ct&&Bi(st);var bt=it.display,Rt=bt.lineDiv.getBoundingClientRect();if(Et>Rt.bottom||!fi(it,gt))return Qi(st);Et-=Rt.top-bt.viewOffset;for(var Ot=0;Ot<it.display.gutterSpecs.length;++Ot){var Xt=bt.gutters.childNodes[Ot];if(Xt&&Xt.getBoundingClientRect().right>=mt){var ke=Fe(it.doc,Et),ee=it.display.gutterSpecs[Ot];return hn(it,gt,it,ke,ee.className,st),Qi(st)}}}function rg(it,st){return og(it,st,"gutterClick",!0)}function sg(it,st){ia(it.display,st)||n0(it,st)||Jn(it,st,"contextmenu")||Dt||it.display.input.onContextMenu(st)}function n0(it,st){return fi(it,"gutterContextMenu")?og(it,st,"gutterContextMenu",!1):!1}function ag(it){it.display.wrapper.className=it.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+it.options.theme.replace(/(^|\s)\s*/g," cm-s-"),fl(it)}var Ku={toString:function(){return"CodeMirror.Init"}},Ff={},ac={};function i0(it){var st=it.optionHandlers;function gt(ct,mt,Et,bt){it.defaults[ct]=mt,Et&&(st[ct]=bt?function(Rt,Ot,Xt){Xt!=Ku&&Et(Rt,Ot,Xt)}:Et)}it.defineOption=gt,it.Init=Ku,gt("value","",function(ct,mt){return ct.setValue(mt)},!0),gt("mode",null,function(ct,mt){ct.doc.modeOption=mt,Ro(ct)},!0),gt("indentUnit",2,Ro,!0),gt("indentWithTabs",!1),gt("smartIndent",!0),gt("tabSize",4,function(ct){Kd(ct),fl(ct),Nr(ct)},!0),gt("lineSeparator",null,function(ct,mt){if(ct.doc.lineSep=mt,!!mt){var Et=[],bt=ct.doc.first;ct.doc.iter(function(Ot){for(var Xt=0;;){var ke=Ot.text.indexOf(mt,Xt);if(ke==-1)break;Xt=ke+mt.length,Et.push(Te(bt,ke))}bt++});for(var Rt=Et.length-1;Rt>=0;Rt--)kh(ct.doc,mt,Et[Rt],Te(Et[Rt].line,Et[Rt].ch+mt.length))}}),gt("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(ct,mt,Et){ct.state.specialChars=new RegExp(mt.source+(mt.test(" ")?"":"| "),"g"),Et!=Ku&&ct.refresh()}),gt("specialCharPlaceholder",Ir,function(ct){return ct.refresh()},!0),gt("electricChars",!0),gt("inputStyle",nt?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),gt("spellcheck",!1,function(ct,mt){return ct.getInputField().spellcheck=mt},!0),gt("autocorrect",!1,function(ct,mt){return ct.getInputField().autocorrect=mt},!0),gt("autocapitalize",!1,function(ct,mt){return ct.getInputField().autocapitalize=mt},!0),gt("rtlMoveVisually",!pt),gt("wholeLineUpdateBefore",!0),gt("theme","default",function(ct){ag(ct),Ha(ct)},!0),gt("keyMap","default",function(ct,mt,Et){var bt=bh(mt),Rt=Et!=Ku&&bh(Et);Rt&&Rt.detach&&Rt.detach(ct,bt),bt.attach&&bt.attach(ct,Rt||null)}),gt("extraKeys",null),gt("configureMouse",null),gt("lineWrapping",!1,o0,!0),gt("gutters",[],function(ct,mt){ct.display.gutterSpecs=Es(mt,ct.options.lineNumbers),Ha(ct)},!0),gt("fixedGutter",!0,function(ct,mt){ct.display.gutters.style.left=mt?Ud(ct.display)+"px":"0",ct.refresh()},!0),gt("coverGutterNextToScrollbar",!1,function(ct){return Tu(ct)},!0),gt("scrollbarStyle","native",function(ct){tf(ct),Tu(ct),ct.display.scrollbars.setScrollTop(ct.doc.scrollTop),ct.display.scrollbars.setScrollLeft(ct.doc.scrollLeft)},!0),gt("lineNumbers",!1,function(ct,mt){ct.display.gutterSpecs=Es(ct.options.gutters,mt),Ha(ct)},!0),gt("firstLineNumber",1,Ha,!0),gt("lineNumberFormatter",function(ct){return ct},Ha,!0),gt("showCursorWhenSelecting",!1,cs,!0),gt("resetSelectionOnContextMenu",!0),gt("lineWiseCopyCut",!0),gt("pasteLinesPerSelection",!0),gt("selectionsMayTouch",!1),gt("readOnly",!1,function(ct,mt){mt=="nocursor"&&(xh(ct),ct.display.input.blur()),ct.display.input.readOnlyChanged(mt)}),gt("screenReaderLabel",null,function(ct,mt){mt=mt===""?null:mt,ct.display.input.screenReaderLabelChanged(mt)}),gt("disableInput",!1,function(ct,mt){mt||ct.display.input.reset()},!0),gt("dragDrop",!0,lg),gt("allowDropFileTypes",null),gt("cursorBlinkRate",530),gt("cursorScrollMargin",0),gt("cursorHeight",1,cs,!0),gt("singleCursorHeightPerLine",!0,cs,!0),gt("workTime",100),gt("workDelay",100),gt("flattenSpans",!0,Kd,!0),gt("addModeClass",!1,Kd,!0),gt("pollInterval",100),gt("undoDepth",200,function(ct,mt){return ct.doc.history.undoDepth=mt}),gt("historyEventDelay",1250),gt("viewportMargin",10,function(ct){return ct.refresh()},!0),gt("maxHighlightLength",1e4,Kd,!0),gt("moveInputWithCursor",!0,function(ct,mt){mt||ct.display.input.resetPosition()}),gt("tabindex",null,function(ct,mt){return ct.display.input.getField().tabIndex=mt||""}),gt("autofocus",null),gt("direction","ltr",function(ct,mt){return ct.doc.setDirection(mt)},!0),gt("phrases",null)}function lg(it,st,gt){var ct=gt&>!=Ku;if(!st!=!ct){var mt=it.display.dragFunctions,Et=st?ie:ln;Et(it.display.scroller,"dragstart",mt.start),Et(it.display.scroller,"dragenter",mt.enter),Et(it.display.scroller,"dragover",mt.over),Et(it.display.scroller,"dragleave",mt.leave),Et(it.display.scroller,"drop",mt.drop)}}function o0(it){it.options.lineWrapping?(Ae(it.display.wrapper,"CodeMirror-wrap"),it.display.sizer.style.minWidth="",it.display.sizerWidth=null):(Qt(it.display.wrapper,"CodeMirror-wrap"),ki(it)),ro(it),Nr(it),fl(it),setTimeout(function(){return Tu(it)},100)}function tr(it,st){var gt=this;if(!(this instanceof tr))return new tr(it,st);this.options=st=st?bn(st):{},bn(Ff,st,!1);var ct=st.value;typeof ct=="string"?ct=new Hs(ct,st.mode,null,st.lineSeparator,st.direction):st.mode&&(ct.modeOption=st.mode),this.doc=ct;var mt=new tr.inputStyles[st.inputStyle](this),Et=this.display=new Hu(it,ct,mt,st);Et.wrapper.CodeMirror=this,ag(this),st.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),tf(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 Wt,keySeq:null,specialChars:null},st.autofocus&&!nt&&Et.input.focus(),Se&&Me<11&&setTimeout(function(){return gt.display.input.reset(!0)},20),wd(this),Ua(),Iu(this),this.curOp.forceUpdate=!0,Yc(this,ct),st.autofocus&&!nt||this.hasFocus()?setTimeout(function(){gt.hasFocus()&&!gt.state.focused&&Zo(gt)},20):xh(this);for(var bt in ac)ac.hasOwnProperty(bt)&&ac[bt](this,st[bt],Ku);ss(this),st.finishInit&&st.finishInit(this);for(var Rt=0;Rt<Oh.length;++Rt)Oh[Rt](this);Ou(this),Jt&&st.lineWrapping&&getComputedStyle(Et.lineDiv).textRendering=="optimizelegibility"&&(Et.lineDiv.style.textRendering="auto")}tr.defaults=Ff,tr.optionHandlers=ac;function wd(it){var st=it.display;ie(st.scroller,"mousedown",gs(it,Il)),Se&&Me<11?ie(st.scroller,"dblclick",gs(it,function(Ot){if(!Jn(it,Ot)){var Xt=oa(it,Ot);if(!(!Xt||rg(it,Ot)||ia(it.display,Ot))){Bi(Ot);var ke=it.findWordAt(Xt);Xc(it.doc,ke.anchor,ke.head)}}})):ie(st.scroller,"dblclick",function(Ot){return Jn(it,Ot)||Bi(Ot)}),ie(st.scroller,"contextmenu",function(Ot){return sg(it,Ot)}),ie(st.input.getField(),"contextmenu",function(Ot){st.scroller.contains(Ot.target)||sg(it,Ot)});var gt,ct={end:0};function mt(){st.activeTouch&&(gt=setTimeout(function(){return st.activeTouch=null},1e3),ct=st.activeTouch,ct.end=+new Date)}function Et(Ot){if(Ot.touches.length!=1)return!1;var Xt=Ot.touches[0];return Xt.radiusX<=1&&Xt.radiusY<=1}function bt(Ot,Xt){if(Xt.left==null)return!0;var ke=Xt.left-Ot.left,ee=Xt.top-Ot.top;return ke*ke+ee*ee>20*20}ie(st.scroller,"touchstart",function(Ot){if(!Jn(it,Ot)&&!Et(Ot)&&!rg(it,Ot)){st.input.ensurePolled(),clearTimeout(gt);var Xt=+new Date;st.activeTouch={start:Xt,moved:!1,prev:Xt-ct.end<=300?ct:null},Ot.touches.length==1&&(st.activeTouch.left=Ot.touches[0].pageX,st.activeTouch.top=Ot.touches[0].pageY)}}),ie(st.scroller,"touchmove",function(){st.activeTouch&&(st.activeTouch.moved=!0)}),ie(st.scroller,"touchend",function(Ot){var Xt=st.activeTouch;if(Xt&&!ia(st,Ot)&&Xt.left!=null&&!Xt.moved&&new Date-Xt.start<300){var ke=it.coordsChar(st.activeTouch,"page"),ee;!Xt.prev||bt(Xt,Xt.prev)?ee=new dr(ke,ke):!Xt.prev.prev||bt(Xt,Xt.prev.prev)?ee=it.findWordAt(ke):ee=new dr(Te(ke.line,0),si(it.doc,Te(ke.line+1,0))),it.setSelection(ee.anchor,ee.head),it.focus(),Bi(Ot)}mt()}),ie(st.scroller,"touchcancel",mt),ie(st.scroller,"scroll",function(){st.scroller.clientHeight&&(Ph(it,st.scroller.scrollTop),fu(it,st.scroller.scrollLeft,!0),hn(it,"scroll",it))}),ie(st.scroller,"mousewheel",function(Ot){return As(it,Ot)}),ie(st.scroller,"DOMMouseScroll",function(Ot){return As(it,Ot)}),ie(st.wrapper,"scroll",function(){return st.wrapper.scrollTop=st.wrapper.scrollLeft=0}),st.dragFunctions={enter:function(Ot){Jn(it,Ot)||Ao(Ot)},over:function(Ot){Jn(it,Ot)||(Xp(it,Ot),Ao(Ot))},start:function(Ot){return Qp(it,Ot)},drop:gs(it,df),leave:function(Ot){Jn(it,Ot)||Jp(it)}};var Rt=st.input.getField();ie(Rt,"keyup",function(Ot){return Pf.call(it,Ot)}),ie(Rt,"keydown",gs(it,xf)),ie(Rt,"keypress",gs(it,Tl)),ie(Rt,"focus",function(Ot){return Zo(it,Ot)}),ie(Rt,"blur",function(Ot){return xh(it,Ot)})}var Oh=[];tr.defineInitHook=function(it){return Oh.push(it)};function fs(it,st,gt,ct){var mt=it.doc,Et;gt==null&&(gt="add"),gt=="smart"&&(mt.mode.indent?Et=Ci(it,st).state:gt="prev");var bt=it.options.tabSize,Rt=un(mt,st),Ot=de(Rt.text,null,bt);Rt.stateAfter&&(Rt.stateAfter=null);var Xt=Rt.text.match(/^\s*/)[0],ke;if(!ct&&!/\S/.test(Rt.text))ke=0,gt="not";else if(gt=="smart"&&(ke=mt.mode.indent(Et,Rt.text.slice(Xt.length),Rt.text),ke==dn||ke>150)){if(!ct)return;gt="prev"}gt=="prev"?st>mt.first?ke=de(un(mt,st-1).text,null,bt):ke=0:gt=="add"?ke=Ot+it.options.indentUnit:gt=="subtract"?ke=Ot-it.options.indentUnit:typeof gt=="number"&&(ke=Ot+gt),ke=Math.max(0,ke);var ee="",Xe=0;if(it.options.indentWithTabs)for(var He=Math.floor(ke/bt);He;--He)Xe+=bt,ee+=" ";if(Xe<ke&&(ee+=zn(ke-Xe)),ee!=Xt)return kh(mt,ee,Te(st,0),Te(st,Xt.length),"+input"),Rt.stateAfter=null,!0;for(var Yn=0;Yn<mt.sel.ranges.length;Yn++){var $n=mt.sel.ranges[Yn];if($n.head.line==st&&$n.head.ch<Xt.length){var hi=Te(st,Xt.length);Wu(mt,Yn,new dr(hi,hi));break}}}var va=null;function jh(it){va=it}function lc(it,st,gt,ct,mt){var Et=it.doc;it.display.shift=!1,ct||(ct=Et.sel);var bt=+new Date-200,Rt=mt=="paste"||it.state.pasteIncoming>bt,Ot=pn(st),Xt=null;if(Rt&&ct.ranges.length>1)if(va&&va.text.join(`
|
|
`)==st){if(ct.ranges.length%va.text.length==0){Xt=[];for(var ke=0;ke<va.text.length;ke++)Xt.push(Et.splitLines(va.text[ke]))}}else Ot.length==ct.ranges.length&&it.options.pasteLinesPerSelection&&(Xt=mn(Ot,function(Mi){return[Mi]}));for(var ee=it.curOp.updateInput,Xe=ct.ranges.length-1;Xe>=0;Xe--){var He=ct.ranges[Xe],Yn=He.from(),$n=He.to();He.empty()&&(gt&>>0?Yn=Te(Yn.line,Yn.ch-gt):it.state.overwrite&&!Rt?$n=Te($n.line,Math.min(un(Et,$n.line).text.length,$n.ch+ae(Ot).length)):Rt&&va&&va.lineWise&&va.text.join(`
|
|
`)==Ot.join(`
|
|
`)&&(Yn=$n=Te(Yn.line,0)));var hi={from:Yn,to:$n,text:Xt?Xt[Xe%Xt.length]:Ot,origin:mt||(Rt?"paste":it.state.cutIncoming>bt?"cut":"+input")};Yu(it.doc,hi),yi(it,"inputRead",it,hi)}st&&!Rt&&Bf(it,st),gu(it),it.curOp.updateInput<2&&(it.curOp.updateInput=ee),it.curOp.typing=!0,it.state.pasteIncoming=it.state.cutIncoming=-1}function kf(it,st){var gt=it.clipboardData&&it.clipboardData.getData("Text");if(gt)return it.preventDefault(),!st.isReadOnly()&&!st.options.disableInput&&or(st,function(){return lc(st,gt,0,null,"paste")}),!0}function Bf(it,st){if(!(!it.options.electricChars||!it.options.smartIndent))for(var gt=it.doc.sel,ct=gt.ranges.length-1;ct>=0;ct--){var mt=gt.ranges[ct];if(!(mt.head.ch>100||ct&>.ranges[ct-1].head.line==mt.head.line)){var Et=it.getModeAt(mt.head),bt=!1;if(Et.electricChars){for(var Rt=0;Rt<Et.electricChars.length;Rt++)if(st.indexOf(Et.electricChars.charAt(Rt))>-1){bt=fs(it,mt.head.line,"smart");break}}else Et.electricInput&&Et.electricInput.test(un(it.doc,mt.head.line).text.slice(0,mt.head.ch))&&(bt=fs(it,mt.head.line,"smart"));bt&&yi(it,"electricInput",it,mt.head.line)}}}function Nf(it){for(var st=[],gt=[],ct=0;ct<it.doc.sel.ranges.length;ct++){var mt=it.doc.sel.ranges[ct].head.line,Et={anchor:Te(mt,0),head:Te(mt+1,0)};gt.push(Et),st.push(it.getRange(Et.anchor,Et.head))}return{text:st,ranges:gt}}function bf(it,st,gt,ct){it.setAttribute("autocorrect",gt?"":"off"),it.setAttribute("autocapitalize",ct?"":"off"),it.setAttribute("spellcheck",!!st)}function Df(){var it=_t("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),st=_t("div",[it],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return Jt?it.style.width="1000px":it.setAttribute("wrap","off"),kt&&(it.style.border="1px solid black"),bf(it),st}function Qu(it){var st=it.optionHandlers,gt=it.helpers={};it.prototype={constructor:it,focus:function(){window.focus(),this.display.input.focus()},setOption:function(ct,mt){var Et=this.options,bt=Et[ct];Et[ct]==mt&&ct!="mode"||(Et[ct]=mt,st.hasOwnProperty(ct)&&gs(this,st[ct])(this,mt,bt),hn(this,"optionChange",this,ct))},getOption:function(ct){return this.options[ct]},getDoc:function(){return this.doc},addKeyMap:function(ct,mt){this.state.keyMaps[mt?"push":"unshift"](bh(ct))},removeKeyMap:function(ct){for(var mt=this.state.keyMaps,Et=0;Et<mt.length;++Et)if(mt[Et]==ct||mt[Et].name==ct)return mt.splice(Et,1),!0},addOverlay:ws(function(ct,mt){var Et=ct.token?ct:it.getMode(this.options,ct);if(Et.startState)throw new Error("Overlays may not be stateful.");ti(this.state.overlays,{mode:Et,modeSpec:ct,opaque:mt&&mt.opaque,priority:mt&&mt.priority||0},function(bt){return bt.priority}),this.state.modeGen++,Nr(this)}),removeOverlay:ws(function(ct){for(var mt=this.state.overlays,Et=0;Et<mt.length;++Et){var bt=mt[Et].modeSpec;if(bt==ct||typeof ct=="string"&&bt.name==ct){mt.splice(Et,1),this.state.modeGen++,Nr(this);return}}}),indentLine:ws(function(ct,mt,Et){typeof mt!="string"&&typeof mt!="number"&&(mt==null?mt=this.options.smartIndent?"smart":"prev":mt=mt?"add":"subtract"),Dn(this.doc,ct)&&fs(this,ct,mt,Et)}),indentSelection:ws(function(ct){for(var mt=this.doc.sel.ranges,Et=-1,bt=0;bt<mt.length;bt++){var Rt=mt[bt];if(Rt.empty())Rt.head.line>Et&&(fs(this,Rt.head.line,ct,!0),Et=Rt.head.line,bt==this.doc.sel.primIndex&&gu(this));else{var Ot=Rt.from(),Xt=Rt.to(),ke=Math.max(Et,Ot.line);Et=Math.min(this.lastLine(),Xt.line-(Xt.ch?0:1))+1;for(var ee=ke;ee<Et;++ee)fs(this,ee,ct);var Xe=this.doc.sel.ranges;Ot.ch==0&&mt.length==Xe.length&&Xe[bt].from().ch>0&&Wu(this.doc,bt,new dr(Ot,Xe[bt].to()),ge)}}}),getTokenAt:function(ct,mt){return _n(this,ct,mt)},getLineTokens:function(ct,mt){return _n(this,Te(ct),mt,!0)},getTokenTypeAt:function(ct){ct=si(this.doc,ct);var mt=Oi(this,un(this.doc,ct.line)),Et=0,bt=(mt.length-1)/2,Rt=ct.ch,Ot;if(Rt==0)Ot=mt[2];else for(;;){var Xt=Et+bt>>1;if((Xt?mt[Xt*2-1]:0)>=Rt)bt=Xt;else if(mt[Xt*2+1]<Rt)Et=Xt+1;else{Ot=mt[Xt*2+2];break}}var ke=Ot?Ot.indexOf("overlay "):-1;return ke<0?Ot:ke==0?null:Ot.slice(0,ke-1)},getModeAt:function(ct){var mt=this.doc.mode;return mt.innerMode?it.innerMode(mt,this.getTokenAt(ct).state).mode:mt},getHelper:function(ct,mt){return this.getHelpers(ct,mt)[0]},getHelpers:function(ct,mt){var Et=[];if(!gt.hasOwnProperty(mt))return Et;var bt=gt[mt],Rt=this.getModeAt(ct);if(typeof Rt[mt]=="string")bt[Rt[mt]]&&Et.push(bt[Rt[mt]]);else if(Rt[mt])for(var Ot=0;Ot<Rt[mt].length;Ot++){var Xt=bt[Rt[mt][Ot]];Xt&&Et.push(Xt)}else Rt.helperType&&bt[Rt.helperType]?Et.push(bt[Rt.helperType]):bt[Rt.name]&&Et.push(bt[Rt.name]);for(var ke=0;ke<bt._global.length;ke++){var ee=bt._global[ke];ee.pred(Rt,this)&&xe(Et,ee.val)==-1&&Et.push(ee.val)}return Et},getStateAfter:function(ct,mt){var Et=this.doc;return ct=qn(Et,ct==null?Et.first+Et.size-1:ct),Ci(this,ct+1,mt).state},cursorCoords:function(ct,mt){var Et,bt=this.doc.sel.primary();return ct==null?Et=bt.head:typeof ct=="object"?Et=si(this.doc,ct):Et=ct?bt.from():bt.to(),Gr(this,Et,mt||"page")},charCoords:function(ct,mt){return hu(this,si(this.doc,ct),mt||"page")},coordsChar:function(ct,mt){return ct=pl(this,ct,mt||"page"),jc(this,ct.left,ct.top)},lineAtHeight:function(ct,mt){return ct=pl(this,{top:ct,left:0},mt||"page").top,Fe(this.doc,ct+this.display.viewOffset)},heightAtLine:function(ct,mt,Et){var bt=!1,Rt;if(typeof ct=="number"){var Ot=this.doc.first+this.doc.size-1;ct<this.doc.first?ct=this.doc.first:ct>Ot&&(ct=Ot,bt=!0),Rt=un(this.doc,ct)}else Rt=ct;return qr(this,Rt,{top:0,left:0},mt||"page",Et||bt).top+(bt?this.doc.height-gi(Rt):0)},defaultTextHeight:function(){return cu(this.display)},defaultCharWidth:function(){return Sh(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(ct,mt,Et,bt,Rt){var Ot=this.display;ct=Gr(this,si(this.doc,ct));var Xt=ct.bottom,ke=ct.left;if(mt.style.position="absolute",mt.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(mt),Ot.sizer.appendChild(mt),bt=="over")Xt=ct.top;else if(bt=="above"||bt=="near"){var ee=Math.max(Ot.wrapper.clientHeight,this.doc.height),Xe=Math.max(Ot.sizer.clientWidth,Ot.lineSpace.clientWidth);(bt=="above"||ct.bottom+mt.offsetHeight>ee)&&ct.top>mt.offsetHeight?Xt=ct.top-mt.offsetHeight:ct.bottom+mt.offsetHeight<=ee&&(Xt=ct.bottom),ke+mt.offsetWidth>Xe&&(ke=Xe-mt.offsetWidth)}mt.style.top=Xt+"px",mt.style.left=mt.style.right="",Rt=="right"?(ke=Ot.sizer.clientWidth-mt.offsetWidth,mt.style.right="0px"):(Rt=="left"?ke=0:Rt=="middle"&&(ke=(Ot.sizer.clientWidth-mt.offsetWidth)/2),mt.style.left=ke+"px"),Et&&Wd(this,{left:ke,top:Xt,right:ke+mt.offsetWidth,bottom:Xt+mt.offsetHeight})},triggerOnKeyDown:ws(xf),triggerOnKeyPress:ws(Tl),triggerOnKeyUp:Pf,triggerOnMouseDown:ws(Il),execCommand:function(ct){if(Zu.hasOwnProperty(ct))return Zu[ct].call(null,this)},triggerElectric:ws(function(ct){Bf(this,ct)}),findPosH:function(ct,mt,Et,bt){var Rt=1;mt<0&&(Rt=-1,mt=-mt);for(var Ot=si(this.doc,ct),Xt=0;Xt<mt&&(Ot=uc(this.doc,Ot,Rt,Et,bt),!Ot.hitSide);++Xt);return Ot},moveH:ws(function(ct,mt){var Et=this;this.extendSelectionsBy(function(bt){return Et.display.shift||Et.doc.extend||bt.empty()?uc(Et.doc,bt.head,ct,mt,Et.options.rtlMoveVisually):ct<0?bt.from():bt.to()},Je)}),deleteH:ws(function(ct,mt){var Et=this.doc.sel,bt=this.doc;Et.somethingSelected()?bt.replaceSelection("",null,"+delete"):ka(this,function(Rt){var Ot=uc(bt,Rt.head,ct,mt,!1);return ct<0?{from:Ot,to:Rt.head}:{from:Rt.head,to:Ot}})}),findPosV:function(ct,mt,Et,bt){var Rt=1,Ot=bt;mt<0&&(Rt=-1,mt=-mt);for(var Xt=si(this.doc,ct),ke=0;ke<mt;++ke){var ee=Gr(this,Xt,"div");if(Ot==null?Ot=ee.left:ee.left=Ot,Xt=Xu(this,ee,Rt,Et),Xt.hitSide)break}return Xt},moveV:ws(function(ct,mt){var Et=this,bt=this.doc,Rt=[],Ot=!this.display.shift&&!bt.extend&&bt.sel.somethingSelected();if(bt.extendSelectionsBy(function(ke){if(Ot)return ct<0?ke.from():ke.to();var ee=Gr(Et,ke.head,"div");ke.goalColumn!=null&&(ee.left=ke.goalColumn),Rt.push(ee.left);var Xe=Xu(Et,ee,ct,mt);return mt=="page"&&ke==bt.sel.primary()&&zc(Et,hu(Et,Xe,"div").top-ee.top),Xe},Je),Rt.length)for(var Xt=0;Xt<bt.sel.ranges.length;Xt++)bt.sel.ranges[Xt].goalColumn=Rt[Xt]}),findWordAt:function(ct){var mt=this.doc,Et=un(mt,ct.line).text,bt=ct.ch,Rt=ct.ch;if(Et){var Ot=this.getHelper(ct,"wordChars");(ct.sticky=="before"||Rt==Et.length)&&bt?--bt:++Rt;for(var Xt=Et.charAt(bt),ke=Ge(Xt,Ot)?function(ee){return Ge(ee,Ot)}:/\s/.test(Xt)?function(ee){return/\s/.test(ee)}:function(ee){return!/\s/.test(ee)&&!Ge(ee)};bt>0&&ke(Et.charAt(bt-1));)--bt;for(;Rt<Et.length&&ke(Et.charAt(Rt));)++Rt}return new dr(Te(ct.line,bt),Te(ct.line,Rt))},toggleOverwrite:function(ct){ct!=null&&ct==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Ae(this.display.cursorDiv,"CodeMirror-overwrite"):Qt(this.display.cursorDiv,"CodeMirror-overwrite"),hn(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==oe()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:ws(function(ct,mt){wh(this,ct,mt)}),getScrollInfo:function(){var ct=this.display.scroller;return{left:ct.scrollLeft,top:ct.scrollTop,height:ct.scrollHeight-Qs(this)-this.display.barHeight,width:ct.scrollWidth-Qs(this)-this.display.barWidth,clientHeight:Sn(this),clientWidth:za(this)}},scrollIntoView:ws(function(ct,mt){ct==null?(ct={from:this.doc.sel.primary().head,to:null},mt==null&&(mt=this.options.cursorScrollMargin)):typeof ct=="number"?ct={from:Te(ct,0),to:null}:ct.from==null&&(ct={from:ct,to:null}),ct.to||(ct.to=ct.from),ct.margin=mt||0,ct.from.line!=null?Ko(this,ct):Gc(this,ct.from,ct.to,ct.margin)}),setSize:ws(function(ct,mt){var Et=this,bt=function(Ot){return typeof Ot=="number"||/^\d+$/.test(String(Ot))?Ot+"px":Ot};ct!=null&&(this.display.wrapper.style.width=bt(ct)),mt!=null&&(this.display.wrapper.style.height=bt(mt)),this.options.lineWrapping&&Bl(this);var Rt=this.display.viewFrom;this.doc.iter(Rt,this.display.viewTo,function(Ot){if(Ot.widgets){for(var Xt=0;Xt<Ot.widgets.length;Xt++)if(Ot.widgets[Xt].noHScroll){Oo(Et,Rt,"widget");break}}++Rt}),this.curOp.forceUpdate=!0,hn(this,"refresh",this)}),operation:function(ct){return or(this,ct)},startOperation:function(){return Iu(this)},endOperation:function(){return Ou(this)},refresh:ws(function(){var ct=this.display.cachedTextHeight;Nr(this),this.curOp.forceUpdate=!0,fl(this),wh(this,this.doc.scrollLeft,this.doc.scrollTop),zu(this.display),(ct==null||Math.abs(ct-cu(this.display))>.5||this.options.lineWrapping)&&ro(this),hn(this,"refresh",this)}),swapDoc:ws(function(ct){var mt=this.doc;return mt.cm=null,this.state.selectingText&&this.state.selectingText(),Yc(this,ct),fl(this),this.display.input.reset(),wh(this,ct.scrollLeft,ct.scrollTop),this.curOp.forceScroll=!0,yi(this,"swapDoc",this,mt),mt}),phrase:function(ct){var mt=this.options.phrases;return mt&&Object.prototype.hasOwnProperty.call(mt,ct)?mt[ct]:ct},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}},pi(it),it.registerHelper=function(ct,mt,Et){gt.hasOwnProperty(ct)||(gt[ct]=it[ct]={_global:[]}),gt[ct][mt]=Et},it.registerGlobalHelper=function(ct,mt,Et,bt){it.registerHelper(ct,mt,bt),gt[ct]._global.push({pred:Et,val:bt})}}function uc(it,st,gt,ct,mt){var Et=st,bt=gt,Rt=un(it,st.line),Ot=mt&&it.direction=="rtl"?-gt:gt;function Xt(){var zi=st.line+Ot;return zi<it.first||zi>=it.first+it.size?!1:(st=new Te(zi,st.ch,st.sticky),Rt=un(it,zi))}function ke(zi){var bi;if(ct=="codepoint"){var Yi=Rt.text.charCodeAt(st.ch+(ct>0?0:-1));isNaN(Yi)?bi=null:bi=new Te(st.line,Math.max(0,Math.min(Rt.text.length,st.ch+gt*(Yi>=55296&&Yi<56320?2:1))),-gt)}else mt?bi=$c(it.cm,Rt,st,gt):bi=os(Rt,st,gt);if(bi==null)if(!zi&&Xt())st=sc(mt,it.cm,Rt,st.line,Ot);else return!1;else st=bi;return!0}if(ct=="char"||ct=="codepoint")ke();else if(ct=="column")ke(!0);else if(ct=="word"||ct=="group")for(var ee=null,Xe=ct=="group",He=it.cm&&it.cm.getHelper(st,"wordChars"),Yn=!0;!(gt<0&&!ke(!Yn));Yn=!1){var $n=Rt.text.charAt(st.ch)||`
|
|
`,hi=Ge($n,He)?"w":Xe&&$n==`
|
|
`?"n":!Xe||/\s/.test($n)?null:"p";if(Xe&&!Yn&&!hi&&(hi="s"),ee&&ee!=hi){gt<0&&(gt=1,ke(),st.sticky="after");break}if(hi&&(ee=hi),gt>0&&!ke(!Yn))break}var Mi=tc(it,st,Et,bt,!0);return Vn(Et,Mi)&&(Mi.hitSide=!0),Mi}function Xu(it,st,gt,ct){var mt=it.doc,Et=st.left,bt;if(ct=="page"){var Rt=Math.min(it.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),Ot=Math.max(Rt-.5*cu(it.display),3);bt=(gt>0?st.bottom:st.top)+gt*Ot}else ct=="line"&&(bt=gt>0?st.bottom+3:st.top-3);for(var Xt;Xt=jc(it,Et,bt),!!Xt.outside;){if(gt<0?bt<=0:bt>=mt.height){Xt.hitSide=!0;break}bt+=gt*5}return Xt}var wr=function(it){this.cm=it,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Wt,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};wr.prototype.init=function(it){var st=this,gt=this,ct=gt.cm,mt=gt.div=it.lineDiv;bf(mt,ct.options.spellcheck,ct.options.autocorrect,ct.options.autocapitalize);function Et(Rt){for(var Ot=Rt.target;Ot;Ot=Ot.parentNode){if(Ot==mt)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(Ot.className))break}return!1}ie(mt,"paste",function(Rt){!Et(Rt)||Jn(ct,Rt)||kf(Rt,ct)||Me<=11&&setTimeout(gs(ct,function(){return st.updateFromDOM()}),20)}),ie(mt,"compositionstart",function(Rt){st.composing={data:Rt.data,done:!1}}),ie(mt,"compositionupdate",function(Rt){st.composing||(st.composing={data:Rt.data,done:!1})}),ie(mt,"compositionend",function(Rt){st.composing&&(Rt.data!=st.composing.data&&st.readFromDOMSoon(),st.composing.done=!0)}),ie(mt,"touchstart",function(){return gt.forceCompositionEnd()}),ie(mt,"input",function(){st.composing||st.readFromDOMSoon()});function bt(Rt){if(!(!Et(Rt)||Jn(ct,Rt))){if(ct.somethingSelected())jh({lineWise:!1,text:ct.getSelections()}),Rt.type=="cut"&&ct.replaceSelection("",null,"cut");else if(ct.options.lineWiseCopyCut){var Ot=Nf(ct);jh({lineWise:!0,text:Ot.text}),Rt.type=="cut"&&ct.operation(function(){ct.setSelections(Ot.ranges,0,ge),ct.replaceSelection("",null,"cut")})}else return;if(Rt.clipboardData){Rt.clipboardData.clearData();var Xt=va.text.join(`
|
|
`);if(Rt.clipboardData.setData("Text",Xt),Rt.clipboardData.getData("Text")==Xt){Rt.preventDefault();return}}var ke=Df(),ee=ke.firstChild;ct.display.lineSpace.insertBefore(ke,ct.display.lineSpace.firstChild),ee.value=va.text.join(`
|
|
`);var Xe=document.activeElement;an(ee),setTimeout(function(){ct.display.lineSpace.removeChild(ke),Xe.focus(),Xe==mt&>.showPrimarySelection()},50)}}ie(mt,"copy",bt),ie(mt,"cut",bt)},wr.prototype.screenReaderLabelChanged=function(it){it?this.div.setAttribute("aria-label",it):this.div.removeAttribute("aria-label")},wr.prototype.prepareSelection=function(){var it=bu(this.cm,!1);return it.focus=document.activeElement==this.div,it},wr.prototype.showSelection=function(it,st){!it||!this.cm.display.view.length||((it.focus||st)&&this.showPrimarySelection(),this.showMultipleSelections(it))},wr.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},wr.prototype.showPrimarySelection=function(){var it=this.getSelection(),st=this.cm,gt=st.doc.sel.primary(),ct=gt.from(),mt=gt.to();if(st.display.viewTo==st.display.viewFrom||ct.line>=st.display.viewTo||mt.line<st.display.viewFrom){it.removeAllRanges();return}var Et=hc(st,it.anchorNode,it.anchorOffset),bt=hc(st,it.focusNode,it.focusOffset);if(!(Et&&!Et.bad&&bt&&!bt.bad&&Ve(Rn(Et,bt),ct)==0&&Ve(oi(Et,bt),mt)==0)){var Rt=st.display.view,Ot=ct.line>=st.display.viewFrom&&ug(st,ct)||{node:Rt[0].measure.map[2],offset:0},Xt=mt.line<st.display.viewTo&&ug(st,mt);if(!Xt){var ke=Rt[Rt.length-1].measure,ee=ke.maps?ke.maps[ke.maps.length-1]:ke.map;Xt={node:ee[ee.length-1],offset:ee[ee.length-2]-ee[ee.length-3]}}if(!Ot||!Xt){it.removeAllRanges();return}var Xe=it.rangeCount&&it.getRangeAt(0),He;try{He=ue(Ot.node,Ot.offset,Xt.offset,Xt.node)}catch(Yn){}He&&(!ht&&st.state.focused?(it.collapse(Ot.node,Ot.offset),He.collapsed||(it.removeAllRanges(),it.addRange(He))):(it.removeAllRanges(),it.addRange(He)),Xe&&it.anchorNode==null?it.addRange(Xe):ht&&this.startGracePeriod()),this.rememberSelection()}},wr.prototype.startGracePeriod=function(){var it=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){it.gracePeriod=!1,it.selectionChanged()&&it.cm.operation(function(){return it.cm.curOp.selectionChanged=!0})},20)},wr.prototype.showMultipleSelections=function(it){ne(this.cm.display.cursorDiv,it.cursors),ne(this.cm.display.selectionDiv,it.selection)},wr.prototype.rememberSelection=function(){var it=this.getSelection();this.lastAnchorNode=it.anchorNode,this.lastAnchorOffset=it.anchorOffset,this.lastFocusNode=it.focusNode,this.lastFocusOffset=it.focusOffset},wr.prototype.selectionInEditor=function(){var it=this.getSelection();if(!it.rangeCount)return!1;var st=it.getRangeAt(0).commonAncestorContainer;return pe(this.div,st)},wr.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},wr.prototype.blur=function(){this.div.blur()},wr.prototype.getField=function(){return this.div},wr.prototype.supportsTouch=function(){return!0},wr.prototype.receivedFocus=function(){var it=this;this.selectionInEditor()?this.pollSelection():or(this.cm,function(){return it.cm.curOp.selectionChanged=!0});function st(){it.cm.state.focused&&(it.pollSelection(),it.polling.set(it.cm.options.pollInterval,st))}this.polling.set(this.cm.options.pollInterval,st)},wr.prototype.selectionChanged=function(){var it=this.getSelection();return it.anchorNode!=this.lastAnchorNode||it.anchorOffset!=this.lastAnchorOffset||it.focusNode!=this.lastFocusNode||it.focusOffset!=this.lastFocusOffset},wr.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var it=this.getSelection(),st=this.cm;if(et&&ce&&this.cm.display.gutterSpecs.length&&Tf(it.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var gt=hc(st,it.anchorNode,it.anchorOffset),ct=hc(st,it.focusNode,it.focusOffset);gt&&ct&&or(st,function(){Js(st.doc,pu(gt,ct),ge),(gt.bad||ct.bad)&&(st.curOp.selectionChanged=!0)})}}},wr.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var it=this.cm,st=it.display,gt=it.doc.sel.primary(),ct=gt.from(),mt=gt.to();if(ct.ch==0&&ct.line>it.firstLine()&&(ct=Te(ct.line-1,un(it.doc,ct.line-1).length)),mt.ch==un(it.doc,mt.line).text.length&&mt.line<it.lastLine()&&(mt=Te(mt.line+1,0)),ct.line<st.viewFrom||mt.line>st.viewTo-1)return!1;var Et,bt,Rt;ct.line==st.viewFrom||(Et=Ga(it,ct.line))==0?(bt=zt(st.view[0].line),Rt=st.view[0].node):(bt=zt(st.view[Et].line),Rt=st.view[Et-1].node.nextSibling);var Ot=Ga(it,mt.line),Xt,ke;if(Ot==st.view.length-1?(Xt=st.viewTo-1,ke=st.lineDiv.lastChild):(Xt=zt(st.view[Ot+1].line)-1,ke=st.view[Ot+1].node.previousSibling),!Rt)return!1;for(var ee=it.doc.splitLines(Cd(it,Rt,ke,bt,Xt)),Xe=Qn(it.doc,Te(bt,0),Te(Xt,un(it.doc,Xt).text.length));ee.length>1&&Xe.length>1;)if(ae(ee)==ae(Xe))ee.pop(),Xe.pop(),Xt--;else if(ee[0]==Xe[0])ee.shift(),Xe.shift(),bt++;else break;for(var He=0,Yn=0,$n=ee[0],hi=Xe[0],Mi=Math.min($n.length,hi.length);He<Mi&&$n.charCodeAt(He)==hi.charCodeAt(He);)++He;for(var zi=ae(ee),bi=ae(Xe),Yi=Math.min(zi.length-(ee.length==1?He:0),bi.length-(Xe.length==1?He:0));Yn<Yi&&zi.charCodeAt(zi.length-Yn-1)==bi.charCodeAt(bi.length-Yn-1);)++Yn;if(ee.length==1&&Xe.length==1&&bt==ct.line)for(;He&&He>ct.ch&&zi.charCodeAt(zi.length-Yn-1)==bi.charCodeAt(bi.length-Yn-1);)He--,Yn++;ee[ee.length-1]=zi.slice(0,zi.length-Yn).replace(/^\u200b+/,""),ee[0]=ee[0].slice(He).replace(/\u200b+$/,"");var Eo=Te(bt,He),Ni=Te(Xt,Xe.length?ae(Xe).length-Yn:0);if(ee.length>1||ee[0]||Ve(Eo,Ni))return kh(it.doc,ee,Eo,Ni,"+input"),!0},wr.prototype.ensurePolled=function(){this.forceCompositionEnd()},wr.prototype.reset=function(){this.forceCompositionEnd()},wr.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},wr.prototype.readFromDOMSoon=function(){var it=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(it.readDOMTimeout=null,it.composing)if(it.composing.done)it.composing=null;else return;it.updateFromDOM()},80))},wr.prototype.updateFromDOM=function(){var it=this;(this.cm.isReadOnly()||!this.pollContent())&&or(this.cm,function(){return Nr(it.cm)})},wr.prototype.setUneditable=function(it){it.contentEditable="false"},wr.prototype.onKeyPress=function(it){it.charCode==0||this.composing||(it.preventDefault(),this.cm.isReadOnly()||gs(this.cm,lc)(this.cm,String.fromCharCode(it.charCode==null?it.keyCode:it.charCode),0))},wr.prototype.readOnlyChanged=function(it){this.div.contentEditable=String(it!="nocursor")},wr.prototype.onContextMenu=function(){},wr.prototype.resetPosition=function(){},wr.prototype.needsContentAttribute=!0;function ug(it,st){var gt=No(it,st.line);if(!gt||gt.hidden)return null;var ct=un(it.doc,st.line),mt=Po(gt,ct,st.line),Et=Gt(ct,it.doc.direction),bt="left";if(Et){var Rt=St(Et,st.ch);bt=Rt%2?"right":"left"}var Ot=Jr(mt.map,st.ch,bt);return Ot.offset=Ot.collapse=="right"?Ot.end:Ot.start,Ot}function Tf(it){for(var st=it;st;st=st.parentNode)if(/CodeMirror-gutter-wrapper/.test(st.className))return!0;return!1}function Pd(it,st){return st&&(it.bad=!0),it}function Cd(it,st,gt,ct,mt){var Et="",bt=!1,Rt=it.doc.lineSeparator(),Ot=!1;function Xt(He){return function(Yn){return Yn.id==He}}function ke(){bt&&(Et+=Rt,Ot&&(Et+=Rt),bt=Ot=!1)}function ee(He){He&&(ke(),Et+=He)}function Xe(He){if(He.nodeType==1){var Yn=He.getAttribute("cm-text");if(Yn){ee(Yn);return}var $n=He.getAttribute("cm-marker"),hi;if($n){var Mi=it.findMarks(Te(ct,0),Te(mt+1,0),Xt(+$n));Mi.length&&(hi=Mi[0].find(0))&&ee(Qn(it.doc,hi.from,hi.to).join(Rt));return}if(He.getAttribute("contenteditable")=="false")return;var zi=/^(pre|div|p|li|table|br)$/i.test(He.nodeName);if(!/^br$/i.test(He.nodeName)&&He.textContent.length==0)return;zi&&ke();for(var bi=0;bi<He.childNodes.length;bi++)Xe(He.childNodes[bi]);/^(pre|p)$/i.test(He.nodeName)&&(Ot=!0),zi&&(bt=!0)}else He.nodeType==3&&ee(He.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;Xe(st),st!=gt;)st=st.nextSibling,Ot=!1;return Et}function hc(it,st,gt){var ct;if(st==it.display.lineDiv){if(ct=it.display.lineDiv.childNodes[gt],!ct)return Pd(it.clipPos(Te(it.display.viewTo-1)),!0);st=null,gt=0}else for(ct=st;;ct=ct.parentNode){if(!ct||ct==it.display.lineDiv)return null;if(ct.parentNode&&ct.parentNode==it.display.lineDiv)break}for(var mt=0;mt<it.display.view.length;mt++){var Et=it.display.view[mt];if(Et.node==ct)return r0(Et,st,gt)}}function r0(it,st,gt){var ct=it.text.firstChild,mt=!1;if(!st||!pe(ct,st))return Pd(Te(zt(it.line),0),!0);if(st==ct&&(mt=!0,st=ct.childNodes[gt],gt=0,!st)){var Et=it.rest?ae(it.rest):it.line;return Pd(Te(zt(Et),Et.text.length),mt)}var bt=st.nodeType==3?st:null,Rt=st;for(!bt&&st.childNodes.length==1&&st.firstChild.nodeType==3&&(bt=st.firstChild,gt&&(gt=bt.nodeValue.length));Rt.parentNode!=ct;)Rt=Rt.parentNode;var Ot=it.measure,Xt=Ot.maps;function ke(hi,Mi,zi){for(var bi=-1;bi<(Xt?Xt.length:0);bi++)for(var Yi=bi<0?Ot.map:Xt[bi],Eo=0;Eo<Yi.length;Eo+=3){var Ni=Yi[Eo+2];if(Ni==hi||Ni==Mi){var zo=zt(bi<0?it.line:it.rest[bi]),br=Yi[Eo]+zi;return(zi<0||Ni!=hi)&&(br=Yi[Eo+(zi?1:0)]),Te(zo,br)}}}var ee=ke(bt,Rt,gt);if(ee)return Pd(ee,mt);for(var Xe=Rt.nextSibling,He=bt?bt.nodeValue.length-gt:0;Xe;Xe=Xe.nextSibling){if(ee=ke(Xe,Xe.firstChild,0),ee)return Pd(Te(ee.line,ee.ch-He),mt);He+=Xe.textContent.length}for(var Yn=Rt.previousSibling,$n=gt;Yn;Yn=Yn.previousSibling){if(ee=ke(Yn,Yn.firstChild,-1),ee)return Pd(Te(ee.line,ee.ch+$n),mt);$n+=Yn.textContent.length}}var ls=function(it){this.cm=it,this.prevInput="",this.pollingFast=!1,this.polling=new Wt,this.hasSelection=!1,this.composing=null};ls.prototype.init=function(it){var st=this,gt=this,ct=this.cm;this.createField(it);var mt=this.textarea;it.wrapper.insertBefore(this.wrapper,it.wrapper.firstChild),kt&&(mt.style.width="0px"),ie(mt,"input",function(){Se&&Me>=9&&st.hasSelection&&(st.hasSelection=null),gt.poll()}),ie(mt,"paste",function(bt){Jn(ct,bt)||kf(bt,ct)||(ct.state.pasteIncoming=+new Date,gt.fastPoll())});function Et(bt){if(!Jn(ct,bt)){if(ct.somethingSelected())jh({lineWise:!1,text:ct.getSelections()});else if(ct.options.lineWiseCopyCut){var Rt=Nf(ct);jh({lineWise:!0,text:Rt.text}),bt.type=="cut"?ct.setSelections(Rt.ranges,null,ge):(gt.prevInput="",mt.value=Rt.text.join(`
|
|
`),an(mt))}else return;bt.type=="cut"&&(ct.state.cutIncoming=+new Date)}}ie(mt,"cut",Et),ie(mt,"copy",Et),ie(it.scroller,"paste",function(bt){if(!(ia(it,bt)||Jn(ct,bt))){if(!mt.dispatchEvent){ct.state.pasteIncoming=+new Date,gt.focus();return}var Rt=new Event("paste");Rt.clipboardData=bt.clipboardData,mt.dispatchEvent(Rt)}}),ie(it.lineSpace,"selectstart",function(bt){ia(it,bt)||Bi(bt)}),ie(mt,"compositionstart",function(){var bt=ct.getCursor("from");gt.composing&>.composing.range.clear(),gt.composing={start:bt,range:ct.markText(bt,ct.getCursor("to"),{className:"CodeMirror-composing"})}}),ie(mt,"compositionend",function(){gt.composing&&(gt.poll(),gt.composing.range.clear(),gt.composing=null)})},ls.prototype.createField=function(it){this.wrapper=Df(),this.textarea=this.wrapper.firstChild},ls.prototype.screenReaderLabelChanged=function(it){it?this.textarea.setAttribute("aria-label",it):this.textarea.removeAttribute("aria-label")},ls.prototype.prepareSelection=function(){var it=this.cm,st=it.display,gt=it.doc,ct=bu(it);if(it.options.moveInputWithCursor){var mt=Gr(it,gt.sel.primary().head,"div"),Et=st.wrapper.getBoundingClientRect(),bt=st.lineDiv.getBoundingClientRect();ct.teTop=Math.max(0,Math.min(st.wrapper.clientHeight-10,mt.top+bt.top-Et.top)),ct.teLeft=Math.max(0,Math.min(st.wrapper.clientWidth-10,mt.left+bt.left-Et.left))}return ct},ls.prototype.showSelection=function(it){var st=this.cm,gt=st.display;ne(gt.cursorDiv,it.cursors),ne(gt.selectionDiv,it.selection),it.teTop!=null&&(this.wrapper.style.top=it.teTop+"px",this.wrapper.style.left=it.teLeft+"px")},ls.prototype.reset=function(it){if(!(this.contextMenuPending||this.composing)){var st=this.cm;if(st.somethingSelected()){this.prevInput="";var gt=st.getSelection();this.textarea.value=gt,st.state.focused&&an(this.textarea),Se&&Me>=9&&(this.hasSelection=gt)}else it||(this.prevInput=this.textarea.value="",Se&&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"&&(!nt||oe()!=this.textarea))try{this.textarea.focus()}catch(it){}},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 it=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){it.poll(),it.cm.state.focused&&it.slowPoll()})},ls.prototype.fastPoll=function(){var it=!1,st=this;st.pollingFast=!0;function gt(){var ct=st.poll();!ct&&!it?(it=!0,st.polling.set(60,gt)):(st.pollingFast=!1,st.slowPoll())}st.polling.set(20,gt)},ls.prototype.poll=function(){var it=this,st=this.cm,gt=this.textarea,ct=this.prevInput;if(this.contextMenuPending||!st.state.focused||wt(gt)&&!ct&&!this.composing||st.isReadOnly()||st.options.disableInput||st.state.keySeq)return!1;var mt=gt.value;if(mt==ct&&!st.somethingSelected())return!1;if(Se&&Me>=9&&this.hasSelection===mt||dt&&/[\uf700-\uf7ff]/.test(mt))return st.display.input.reset(),!1;if(st.doc.sel==st.display.selForContextMenu){var Et=mt.charCodeAt(0);if(Et==8203&&!ct&&(ct="\u200B"),Et==8666)return this.reset(),this.cm.execCommand("undo")}for(var bt=0,Rt=Math.min(ct.length,mt.length);bt<Rt&&ct.charCodeAt(bt)==mt.charCodeAt(bt);)++bt;return or(st,function(){lc(st,mt.slice(bt),ct.length-bt,null,it.composing?"*compose":null),mt.length>1e3||mt.indexOf(`
|
|
`)>-1?gt.value=it.prevInput="":it.prevInput=mt,it.composing&&(it.composing.range.clear(),it.composing.range=st.markText(it.composing.start,st.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},ls.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},ls.prototype.onKeyPress=function(){Se&&Me>=9&&(this.hasSelection=null),this.fastPoll()},ls.prototype.onContextMenu=function(it){var st=this,gt=st.cm,ct=gt.display,mt=st.textarea;st.contextMenuPending&&st.contextMenuPending();var Et=oa(gt,it),bt=ct.scroller.scrollTop;if(!Et||ve)return;var Rt=gt.options.resetSelectionOnContextMenu;Rt&>.doc.sel.contains(Et)==-1&&gs(gt,Js)(gt.doc,pu(Et),ge);var Ot=mt.style.cssText,Xt=st.wrapper.style.cssText,ke=st.wrapper.offsetParent.getBoundingClientRect();st.wrapper.style.cssText="position: static",mt.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
top: `+(it.clientY-ke.top-5)+"px; left: "+(it.clientX-ke.left-5)+`px;
|
|
z-index: 1000; background: `+(Se?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var ee;Jt&&(ee=window.scrollY),ct.input.focus(),Jt&&window.scrollTo(null,ee),ct.input.reset(),gt.somethingSelected()||(mt.value=st.prevInput=" "),st.contextMenuPending=He,ct.selForContextMenu=gt.doc.sel,clearTimeout(ct.detectingSelectAll);function Xe(){if(mt.selectionStart!=null){var $n=gt.somethingSelected(),hi="\u200B"+($n?mt.value:"");mt.value="\u21DA",mt.value=hi,st.prevInput=$n?"":"\u200B",mt.selectionStart=1,mt.selectionEnd=hi.length,ct.selForContextMenu=gt.doc.sel}}function He(){if(st.contextMenuPending==He&&(st.contextMenuPending=!1,st.wrapper.style.cssText=Xt,mt.style.cssText=Ot,Se&&Me<9&&ct.scrollbars.setScrollTop(ct.scroller.scrollTop=bt),mt.selectionStart!=null)){(!Se||Se&&Me<9)&&Xe();var $n=0,hi=function(){ct.selForContextMenu==gt.doc.sel&&mt.selectionStart==0&&mt.selectionEnd>0&&st.prevInput=="\u200B"?gs(gt,is)(gt):$n++<10?ct.detectingSelectAll=setTimeout(hi,500):(ct.selForContextMenu=null,ct.input.reset())};ct.detectingSelectAll=setTimeout(hi,200)}}if(Se&&Me>=9&&Xe(),Dt){Ao(it);var Yn=function(){ln(window,"mouseup",Yn),setTimeout(He,20)};ie(window,"mouseup",Yn)}else setTimeout(He,50)},ls.prototype.readOnlyChanged=function(it){it||this.reset(),this.textarea.disabled=it=="nocursor",this.textarea.readOnly=!!it},ls.prototype.setUneditable=function(){},ls.prototype.needsContentAttribute=!1;function s0(it,st){if(st=st?bn(st):{},st.value=it.value,!st.tabindex&&it.tabIndex&&(st.tabindex=it.tabIndex),!st.placeholder&&it.placeholder&&(st.placeholder=it.placeholder),st.autofocus==null){var gt=oe();st.autofocus=gt==it||it.getAttribute("autofocus")!=null&>==document.body}function ct(){it.value=Rt.getValue()}var mt;if(it.form&&(ie(it.form,"submit",ct),!st.leaveSubmitMethodAlone)){var Et=it.form;mt=Et.submit;try{var bt=Et.submit=function(){ct(),Et.submit=mt,Et.submit(),Et.submit=bt}}catch(Ot){}}st.finishInit=function(Ot){Ot.save=ct,Ot.getTextArea=function(){return it},Ot.toTextArea=function(){Ot.toTextArea=isNaN,ct(),it.parentNode.removeChild(Ot.getWrapperElement()),it.style.display="",it.form&&(ln(it.form,"submit",ct),!st.leaveSubmitMethodAlone&&typeof it.form.submit=="function"&&(it.form.submit=mt))}},it.style.display="none";var Rt=tr(function(Ot){return it.parentNode.insertBefore(Ot,it.nextSibling)},st);return Rt}function Ed(it){it.off=ln,it.on=ie,it.wheelEventPixels=Va,it.Doc=Hs,it.splitLines=pn,it.countColumn=de,it.findColumn=Bn,it.isWordChar=yn,it.Pass=dn,it.signal=hn,it.Line=vi,it.changeEnd=Vu,it.scrollbarModel=$g,it.Pos=Te,it.cmpPos=Ve,it.modes=xn,it.mimeModes=wn,it.resolveMode=qe,it.getMode=le,it.modeExtensions=re,it.extendMode=qt,it.copyState=Ze,it.startState=Ln,it.innerMode=An,it.commands=Zu,it.keyMap=Fa,it.keyName=_p,it.isModifierKey=md,it.lookupKey=nl,it.normalizeKeyMap=pf,it.StringStream=Be,it.SharedTextMarker=Zl,it.TextMarker=ye,it.LineWidget=yu,it.e_preventDefault=Bi,it.e_stopPropagation=qi,it.e_stop=Ao,it.addClass=Ae,it.contains=pe,it.rmClass=Qt,it.keyNames=Kl}i0(tr),Qu(tr);var Su="iter insert remove copy getEditor constructor".split(" ");for(var dc in Hs.prototype)Hs.prototype.hasOwnProperty(dc)&&xe(Su,dc)<0&&(tr.prototype[dc]=function(it){return function(){return it.apply(this.doc,arguments)}}(Hs.prototype[dc]));return pi(Hs),tr.inputStyles={textarea:ls,contenteditable:wr},tr.defineMode=function(it){!tr.defaults.mode&&it!="null"&&(tr.defaults.mode=it),Kn.apply(this,arguments)},tr.defineMIME=Ue,tr.defineMode("null",function(){return{token:function(it){return it.skipToEnd()}}}),tr.defineMIME("text/plain","null"),tr.defineExtension=function(it,st){tr.prototype[it]=st},tr.defineDocExtension=function(it,st){Hs.prototype[it]=st},tr.fromTextArea=s0,Ed(tr),tr.version="5.58.2",tr})},25419:function(Ye,jn,Ft){(function(ht){ht(Ft(89780),Ft(15525),Ft(98101))})(function(ht){"use strict";ht.defineMode("markdown",function(Ht,fe){var Re=ht.getMode(Ht,"text/html"),Se=Re.name=="null";function Me(de){if(ht.findModeByName){var Wt=ht.findModeByName(de);Wt&&(de=Wt.mime||Wt.mimes[0])}var xe=ht.getMode(Ht,de);return xe.name=="null"?null:xe}fe.highlightFormatting===void 0&&(fe.highlightFormatting=!1),fe.maxBlockquoteDepth===void 0&&(fe.maxBlockquoteDepth=0),fe.taskLists===void 0&&(fe.taskLists=!1),fe.strikethrough===void 0&&(fe.strikethrough=!1),fe.emoji===void 0&&(fe.emoji=!1),fe.fencedCodeBlockHighlighting===void 0&&(fe.fencedCodeBlockHighlighting=!0),fe.fencedCodeBlockDefaultMode===void 0&&(fe.fencedCodeBlockDefaultMode="text/plain"),fe.xml===void 0&&(fe.xml=!0),fe.tokenTypeOverrides===void 0&&(fe.tokenTypeOverrides={});var Jt={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 Le in Jt)Jt.hasOwnProperty(Le)&&fe.tokenTypeOverrides[Le]&&(Jt[Le]=fe.tokenTypeOverrides[Le]);var ce=/^([*\-_])(?:\s*\1){2,}\s*$/,ve=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,he=/^\[(x| )\](?=\s)/i,Oe=fe.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,je=/^ {0,3}(?:\={1,}|-{2,})\s*$/,kt=/^[^#!\[\]*_\\<>` "'(~:]+/,et=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,nt=/^\s*\[[^\]]+?\]:.*$/,dt=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,lt=" ";function pt(de,Wt,xe){return Wt.f=Wt.inline=xe,xe(de,Wt)}function yt(de,Wt,xe){return Wt.f=Wt.block=xe,xe(de,Wt)}function At(de){return!de||!/\S/.test(de.string)}function Dt(de){if(de.linkTitle=!1,de.linkHref=!1,de.linkText=!1,de.em=!1,de.strong=!1,de.strikethrough=!1,de.quote=0,de.indentedCode=!1,de.f==Qt){var Wt=Se;if(!Wt){var xe=ht.innerMode(Re,de.htmlState);Wt=xe.mode.name=="xml"&&xe.state.tagStart===null&&!xe.state.context&&xe.state.tokenize.isInText}Wt&&(de.f=Pe,de.block=Ut,de.htmlState=null)}return de.trailingSpace=0,de.trailingSpaceNewLine=!1,de.prevLine=de.thisLine,de.thisLine={stream:null},null}function Ut(de,Wt){var xe=de.column()===Wt.indentation,nn=At(Wt.prevLine.stream),dn=Wt.indentedCode,ge=Wt.prevLine.hr,we=Wt.list!==!1,Je=(Wt.listStack[Wt.listStack.length-1]||0)+3;Wt.indentedCode=!1;var Bn=Wt.indentation;if(Wt.indentationDiff===null&&(Wt.indentationDiff=Wt.indentation,we)){for(Wt.list=null;Bn<Wt.listStack[Wt.listStack.length-1];)Wt.listStack.pop(),Wt.listStack.length?Wt.indentation=Wt.listStack[Wt.listStack.length-1]:Wt.list=!1;Wt.list!==!1&&(Wt.indentationDiff=Bn-Wt.listStack[Wt.listStack.length-1])}var vn=!nn&&!ge&&!Wt.prevLine.header&&(!we||!dn)&&!Wt.prevLine.fencedCodeEnd,zn=(Wt.list===!1||ge||nn)&&Wt.indentation<=Je&&de.match(ce),ae=null;if(Wt.indentationDiff>=4&&(dn||Wt.prevLine.fencedCodeEnd||Wt.prevLine.header||nn))return de.skipToEnd(),Wt.indentedCode=!0,Jt.code;if(de.eatSpace())return null;if(xe&&Wt.indentation<=Je&&(ae=de.match(Oe))&&ae[1].length<=6)return Wt.quote=0,Wt.header=ae[1].length,Wt.thisLine.header=!0,fe.highlightFormatting&&(Wt.formatting="header"),Wt.f=Wt.inline,ne(Wt);if(Wt.indentation<=Je&&de.eat(">"))return Wt.quote=xe?1:Wt.quote+1,fe.highlightFormatting&&(Wt.formatting="quote"),de.eatSpace(),ne(Wt);if(!zn&&!Wt.setext&&xe&&Wt.indentation<=Je&&(ae=de.match(ve))){var mn=ae[1]?"ol":"ul";return Wt.indentation=Bn+de.current().length,Wt.list=!0,Wt.quote=0,Wt.listStack.push(Wt.indentation),Wt.em=!1,Wt.strong=!1,Wt.code=!1,Wt.strikethrough=!1,fe.taskLists&&de.match(he,!1)&&(Wt.taskList=!0),Wt.f=Wt.inline,fe.highlightFormatting&&(Wt.formatting=["list","list-"+mn]),ne(Wt)}else{if(xe&&Wt.indentation<=Je&&(ae=de.match(et,!0)))return Wt.quote=0,Wt.fencedEndRE=new RegExp(ae[1]+"+ *$"),Wt.localMode=fe.fencedCodeBlockHighlighting&&Me(ae[2]||fe.fencedCodeBlockDefaultMode),Wt.localMode&&(Wt.localState=ht.startState(Wt.localMode)),Wt.f=Wt.block=$t,fe.highlightFormatting&&(Wt.formatting="code-block"),Wt.code=-1,ne(Wt);if(Wt.setext||(!vn||!we)&&!Wt.quote&&Wt.list===!1&&!Wt.code&&!zn&&!nt.test(de.string)&&(ae=de.lookAhead(1))&&(ae=ae.match(je)))return Wt.setext?(Wt.header=Wt.setext,Wt.setext=0,de.skipToEnd(),fe.highlightFormatting&&(Wt.formatting="header")):(Wt.header=ae[0].charAt(0)=="="?1:2,Wt.setext=Wt.header),Wt.thisLine.header=!0,Wt.f=Wt.inline,ne(Wt);if(zn)return de.skipToEnd(),Wt.hr=!0,Wt.thisLine.hr=!0,Jt.hr;if(de.peek()==="[")return pt(de,Wt,Ie)}return pt(de,Wt,Wt.inline)}function Qt(de,Wt){var xe=Re.token(de,Wt.htmlState);if(!Se){var nn=ht.innerMode(Re,Wt.htmlState);(nn.mode.name=="xml"&&nn.state.tagStart===null&&!nn.state.context&&nn.state.tokenize.isInText||Wt.md_inside&&de.current().indexOf(">")>-1)&&(Wt.f=Pe,Wt.block=Ut,Wt.htmlState=null)}return xe}function $t(de,Wt){var xe=Wt.listStack[Wt.listStack.length-1]||0,nn=Wt.indentation<xe,dn=xe+3;if(Wt.fencedEndRE&&Wt.indentation<=dn&&(nn||de.match(Wt.fencedEndRE))){fe.highlightFormatting&&(Wt.formatting="code-block");var ge;return nn||(ge=ne(Wt)),Wt.localMode=Wt.localState=null,Wt.block=Ut,Wt.f=Pe,Wt.fencedEndRE=null,Wt.code=0,Wt.thisLine.fencedCodeEnd=!0,nn?yt(de,Wt,Wt.block):ge}else return Wt.localMode?Wt.localMode.token(de,Wt.localState):(de.skipToEnd(),Jt.code)}function ne(de){var Wt=[];if(de.formatting){Wt.push(Jt.formatting),typeof de.formatting=="string"&&(de.formatting=[de.formatting]);for(var xe=0;xe<de.formatting.length;xe++)Wt.push(Jt.formatting+"-"+de.formatting[xe]),de.formatting[xe]==="header"&&Wt.push(Jt.formatting+"-"+de.formatting[xe]+"-"+de.header),de.formatting[xe]==="quote"&&(!fe.maxBlockquoteDepth||fe.maxBlockquoteDepth>=de.quote?Wt.push(Jt.formatting+"-"+de.formatting[xe]+"-"+de.quote):Wt.push("error"))}if(de.taskOpen)return Wt.push("meta"),Wt.length?Wt.join(" "):null;if(de.taskClosed)return Wt.push("property"),Wt.length?Wt.join(" "):null;if(de.linkHref?Wt.push(Jt.linkHref,"url"):(de.strong&&Wt.push(Jt.strong),de.em&&Wt.push(Jt.em),de.strikethrough&&Wt.push(Jt.strikethrough),de.emoji&&Wt.push(Jt.emoji),de.linkText&&Wt.push(Jt.linkText),de.code&&Wt.push(Jt.code),de.image&&Wt.push(Jt.image),de.imageAltText&&Wt.push(Jt.imageAltText,"link"),de.imageMarker&&Wt.push(Jt.imageMarker)),de.header&&Wt.push(Jt.header,Jt.header+"-"+de.header),de.quote&&(Wt.push(Jt.quote),!fe.maxBlockquoteDepth||fe.maxBlockquoteDepth>=de.quote?Wt.push(Jt.quote+"-"+de.quote):Wt.push(Jt.quote+"-"+fe.maxBlockquoteDepth)),de.list!==!1){var nn=(de.listStack.length-1)%3;nn?nn===1?Wt.push(Jt.list2):Wt.push(Jt.list3):Wt.push(Jt.list1)}return de.trailingSpaceNewLine?Wt.push("trailing-space-new-line"):de.trailingSpace&&Wt.push("trailing-space-"+(de.trailingSpace%2?"a":"b")),Wt.length?Wt.join(" "):null}function _t(de,Wt){if(de.match(kt,!0))return ne(Wt)}function Pe(de,Wt){var xe=Wt.text(de,Wt);if(typeof xe!="undefined")return xe;if(Wt.list)return Wt.list=null,ne(Wt);if(Wt.taskList){var nn=de.match(he,!0)[1]===" ";return nn?Wt.taskOpen=!0:Wt.taskClosed=!0,fe.highlightFormatting&&(Wt.formatting="task"),Wt.taskList=!1,ne(Wt)}if(Wt.taskOpen=!1,Wt.taskClosed=!1,Wt.header&&de.match(/^#+$/,!0))return fe.highlightFormatting&&(Wt.formatting="header"),ne(Wt);var dn=de.next();if(Wt.linkTitle){Wt.linkTitle=!1;var ge=dn;dn==="("&&(ge=")"),ge=(ge+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var we="^\\s*(?:[^"+ge+"\\\\]+|\\\\\\\\|\\\\.)"+ge;if(de.match(new RegExp(we),!0))return Jt.linkHref}if(dn==="`"){var Je=Wt.formatting;fe.highlightFormatting&&(Wt.formatting="code"),de.eatWhile("`");var Bn=de.current().length;if(Wt.code==0&&(!Wt.quote||Bn==1))return Wt.code=Bn,ne(Wt);if(Bn==Wt.code){var vn=ne(Wt);return Wt.code=0,vn}else return Wt.formatting=Je,ne(Wt)}else if(Wt.code)return ne(Wt);if(dn==="\\"&&(de.next(),fe.highlightFormatting)){var zn=ne(Wt),ae=Jt.formatting+"-escape";return zn?zn+" "+ae:ae}if(dn==="!"&&de.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return Wt.imageMarker=!0,Wt.image=!0,fe.highlightFormatting&&(Wt.formatting="image"),ne(Wt);if(dn==="["&&Wt.imageMarker&&de.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return Wt.imageMarker=!1,Wt.imageAltText=!0,fe.highlightFormatting&&(Wt.formatting="image"),ne(Wt);if(dn==="]"&&Wt.imageAltText){fe.highlightFormatting&&(Wt.formatting="image");var zn=ne(Wt);return Wt.imageAltText=!1,Wt.image=!1,Wt.inline=Wt.f=pe,zn}if(dn==="["&&!Wt.image)return Wt.linkText&&de.match(/^.*?\]/)||(Wt.linkText=!0,fe.highlightFormatting&&(Wt.formatting="link")),ne(Wt);if(dn==="]"&&Wt.linkText){fe.highlightFormatting&&(Wt.formatting="link");var zn=ne(Wt);return Wt.linkText=!1,Wt.inline=Wt.f=de.match(/\(.*?\)| ?\[.*?\]/,!1)?pe:Pe,zn}if(dn==="<"&&de.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){Wt.f=Wt.inline=ue,fe.highlightFormatting&&(Wt.formatting="link");var zn=ne(Wt);return zn?zn+=" ":zn="",zn+Jt.linkInline}if(dn==="<"&&de.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){Wt.f=Wt.inline=ue,fe.highlightFormatting&&(Wt.formatting="link");var zn=ne(Wt);return zn?zn+=" ":zn="",zn+Jt.linkEmail}if(fe.xml&&dn==="<"&&de.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var mn=de.string.indexOf(">",de.pos);if(mn!=-1){var ti=de.string.substring(de.start,mn);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(ti)&&(Wt.md_inside=!0)}return de.backUp(1),Wt.htmlState=ht.startState(Re),yt(de,Wt,Qt)}if(fe.xml&&dn==="<"&&de.match(/^\/\w*?>/))return Wt.md_inside=!1,"tag";if(dn==="*"||dn==="_"){for(var Wn=1,ii=de.pos==1?" ":de.string.charAt(de.pos-2);Wn<3&&de.eat(dn);)Wn++;var mi=de.peek()||" ",yn=!/\s/.test(mi)&&(!dt.test(mi)||/\s/.test(ii)||dt.test(ii)),Ge=!/\s/.test(ii)&&(!dt.test(ii)||/\s/.test(mi)||dt.test(mi)),Ne=null,Zn=null;if(Wn%2&&(!Wt.em&&yn&&(dn==="*"||!Ge||dt.test(ii))?Ne=!0:Wt.em==dn&&Ge&&(dn==="*"||!yn||dt.test(mi))&&(Ne=!1)),Wn>1&&(!Wt.strong&&yn&&(dn==="*"||!Ge||dt.test(ii))?Zn=!0:Wt.strong==dn&&Ge&&(dn==="*"||!yn||dt.test(mi))&&(Zn=!1)),Zn!=null||Ne!=null){fe.highlightFormatting&&(Wt.formatting=Ne==null?"strong":Zn==null?"em":"strong em"),Ne===!0&&(Wt.em=dn),Zn===!0&&(Wt.strong=dn);var vn=ne(Wt);return Ne===!1&&(Wt.em=!1),Zn===!1&&(Wt.strong=!1),vn}}else if(dn===" "&&(de.eat("*")||de.eat("_"))){if(de.peek()===" ")return ne(Wt);de.backUp(1)}if(fe.strikethrough){if(dn==="~"&&de.eatWhile(dn)){if(Wt.strikethrough){fe.highlightFormatting&&(Wt.formatting="strikethrough");var vn=ne(Wt);return Wt.strikethrough=!1,vn}else if(de.match(/^[^\s]/,!1))return Wt.strikethrough=!0,fe.highlightFormatting&&(Wt.formatting="strikethrough"),ne(Wt)}else if(dn===" "&&de.match(/^~~/,!0)){if(de.peek()===" ")return ne(Wt);de.backUp(2)}}if(fe.emoji&&dn===":"&&de.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){Wt.emoji=!0,fe.highlightFormatting&&(Wt.formatting="emoji");var sn=ne(Wt);return Wt.emoji=!1,sn}return dn===" "&&(de.match(/^ +$/,!1)?Wt.trailingSpace++:Wt.trailingSpace&&(Wt.trailingSpaceNewLine=!0)),ne(Wt)}function ue(de,Wt){var xe=de.next();if(xe===">"){Wt.f=Wt.inline=Pe,fe.highlightFormatting&&(Wt.formatting="link");var nn=ne(Wt);return nn?nn+=" ":nn="",nn+Jt.linkInline}return de.match(/^[^>]+/,!0),Jt.linkInline}function pe(de,Wt){if(de.eatSpace())return null;var xe=de.next();return xe==="("||xe==="["?(Wt.f=Wt.inline=Ae(xe==="("?")":"]"),fe.highlightFormatting&&(Wt.formatting="link-string"),Wt.linkHref=!0,ne(Wt)):"error"}var oe={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function Ae(de){return function(Wt,xe){var nn=Wt.next();if(nn===de){xe.f=xe.inline=Pe,fe.highlightFormatting&&(xe.formatting="link-string");var dn=ne(xe);return xe.linkHref=!1,dn}return Wt.match(oe[de]),xe.linkHref=!0,ne(xe)}}function Ie(de,Wt){return de.match(/^([^\]\\]|\\.)*\]:/,!1)?(Wt.f=an,de.next(),fe.highlightFormatting&&(Wt.formatting="link"),Wt.linkText=!0,ne(Wt)):pt(de,Wt,Pe)}function an(de,Wt){if(de.match(/^\]:/,!0)){Wt.f=Wt.inline=Gn,fe.highlightFormatting&&(Wt.formatting="link");var xe=ne(Wt);return Wt.linkText=!1,xe}return de.match(/^([^\]\\]|\\.)+/,!0),Jt.linkText}function Gn(de,Wt){return de.eatSpace()?null:(de.match(/^[^\s]+/,!0),de.peek()===void 0?Wt.linkTitle=!0:de.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),Wt.f=Wt.inline=Pe,Jt.linkHref+" url")}var bn={startState:function(){return{f:Ut,prevLine:{stream:null},thisLine:{stream:null},block:Ut,htmlState:null,indentation:0,inline:Pe,text:_t,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(de){return{f:de.f,prevLine:de.prevLine,thisLine:de.thisLine,block:de.block,htmlState:de.htmlState&&ht.copyState(Re,de.htmlState),indentation:de.indentation,localMode:de.localMode,localState:de.localMode?ht.copyState(de.localMode,de.localState):null,inline:de.inline,text:de.text,formatting:!1,linkText:de.linkText,linkTitle:de.linkTitle,linkHref:de.linkHref,code:de.code,em:de.em,strong:de.strong,strikethrough:de.strikethrough,emoji:de.emoji,header:de.header,setext:de.setext,hr:de.hr,taskList:de.taskList,list:de.list,listStack:de.listStack.slice(0),quote:de.quote,indentedCode:de.indentedCode,trailingSpace:de.trailingSpace,trailingSpaceNewLine:de.trailingSpaceNewLine,md_inside:de.md_inside,fencedEndRE:de.fencedEndRE}},token:function(de,Wt){if(Wt.formatting=!1,de!=Wt.thisLine.stream){if(Wt.header=0,Wt.hr=!1,de.match(/^\s*$/,!0))return Dt(Wt),null;if(Wt.prevLine=Wt.thisLine,Wt.thisLine={stream:de},Wt.taskList=!1,Wt.trailingSpace=0,Wt.trailingSpaceNewLine=!1,!Wt.localState&&(Wt.f=Wt.block,Wt.f!=Qt)){var xe=de.match(/^\s*/,!0)[0].replace(/\t/g,lt).length;if(Wt.indentation=xe,Wt.indentationDiff=null,xe>0)return null}}return Wt.f(de,Wt)},innerMode:function(de){return de.block==Qt?{state:de.htmlState,mode:Re}:de.localState?{state:de.localState,mode:de.localMode}:{state:de,mode:bn}},indent:function(de,Wt,xe){return de.block==Qt&&Re.indent?Re.indent(de.htmlState,Wt,xe):de.localState&&de.localMode.indent?de.localMode.indent(de.localState,Wt,xe):ht.Pass},blankLine:Dt,getType:ne,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return bn},"xml"),ht.defineMIME("text/markdown","markdown"),ht.defineMIME("text/x-markdown","markdown")})},98101:function(Ye,jn,Ft){(function(ht){ht(Ft(89780))})(function(ht){"use strict";ht.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 Ht=0;Ht<ht.modeInfo.length;Ht++){var fe=ht.modeInfo[Ht];fe.mimes&&(fe.mime=fe.mimes[0])}ht.findModeByMIME=function(Re){Re=Re.toLowerCase();for(var Se=0;Se<ht.modeInfo.length;Se++){var Me=ht.modeInfo[Se];if(Me.mime==Re)return Me;if(Me.mimes){for(var Jt=0;Jt<Me.mimes.length;Jt++)if(Me.mimes[Jt]==Re)return Me}}if(/\+xml$/.test(Re))return ht.findModeByMIME("application/xml");if(/\+json$/.test(Re))return ht.findModeByMIME("application/json")},ht.findModeByExtension=function(Re){Re=Re.toLowerCase();for(var Se=0;Se<ht.modeInfo.length;Se++){var Me=ht.modeInfo[Se];if(Me.ext){for(var Jt=0;Jt<Me.ext.length;Jt++)if(Me.ext[Jt]==Re)return Me}}},ht.findModeByFileName=function(Re){for(var Se=0;Se<ht.modeInfo.length;Se++){var Me=ht.modeInfo[Se];if(Me.file&&Me.file.test(Re))return Me}var Jt=Re.lastIndexOf("."),Le=Jt>-1&&Re.substring(Jt+1,Re.length);if(Le)return ht.findModeByExtension(Le)},ht.findModeByName=function(Re){Re=Re.toLowerCase();for(var Se=0;Se<ht.modeInfo.length;Se++){var Me=ht.modeInfo[Se];if(Me.name.toLowerCase()==Re)return Me;if(Me.alias){for(var Jt=0;Jt<Me.alias.length;Jt++)if(Me.alias[Jt].toLowerCase()==Re)return Me}}}})},67549:function(Ye,jn,Ft){(function(ht){ht(Ft(89780))})(function(ht){"use strict";ht.defineMode("stex",function(Ht,fe){"use strict";function Re(kt,et){kt.cmdState.push(et)}function Se(kt){return kt.cmdState.length>0?kt.cmdState[kt.cmdState.length-1]:null}function Me(kt){var et=kt.cmdState.pop();et&&et.closeBracket()}function Jt(kt){for(var et=kt.cmdState,nt=et.length-1;nt>=0;nt--){var dt=et[nt];if(dt.name!="DEFAULT")return dt}return{styleIdentifier:function(){return null}}}function Le(kt,et,nt){return function(){this.name=kt,this.bracketNo=0,this.style=et,this.styles=nt,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var ce={};ce.importmodule=Le("importmodule","tag",["string","builtin"]),ce.documentclass=Le("documentclass","tag",["","atom"]),ce.usepackage=Le("usepackage","tag",["atom"]),ce.begin=Le("begin","tag",["atom"]),ce.end=Le("end","tag",["atom"]),ce.label=Le("label","tag",["atom"]),ce.ref=Le("ref","tag",["atom"]),ce.eqref=Le("eqref","tag",["atom"]),ce.cite=Le("cite","tag",["atom"]),ce.bibitem=Le("bibitem","tag",["atom"]),ce.Bibitem=Le("Bibitem","tag",["atom"]),ce.RBibitem=Le("RBibitem","tag",["atom"]),ce.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function ve(kt,et){kt.f=et}function he(kt,et){var nt;if(kt.match(/^\\[a-zA-Z@]+/)){var dt=kt.current().slice(1);return nt=ce.hasOwnProperty(dt)?ce[dt]:ce.DEFAULT,nt=new nt,Re(et,nt),ve(et,je),nt.style}if(kt.match(/^\\[$&%#{}_]/)||kt.match(/^\\[,;!\/\\]/))return"tag";if(kt.match("\\["))return ve(et,function(pt,yt){return Oe(pt,yt,"\\]")}),"keyword";if(kt.match("\\("))return ve(et,function(pt,yt){return Oe(pt,yt,"\\)")}),"keyword";if(kt.match("$$"))return ve(et,function(pt,yt){return Oe(pt,yt,"$$")}),"keyword";if(kt.match("$"))return ve(et,function(pt,yt){return Oe(pt,yt,"$")}),"keyword";var lt=kt.next();if(lt=="%")return kt.skipToEnd(),"comment";if(lt=="}"||lt=="]"){if(nt=Se(et),nt)nt.closeBracket(lt),ve(et,je);else return"error";return"bracket"}else return lt=="{"||lt=="["?(nt=ce.DEFAULT,nt=new nt,Re(et,nt),"bracket"):/\d/.test(lt)?(kt.eatWhile(/[\w.%]/),"atom"):(kt.eatWhile(/[\w\-_]/),nt=Jt(et),nt.name=="begin"&&(nt.argument=kt.current()),nt.styleIdentifier())}function Oe(kt,et,nt){if(kt.eatSpace())return null;if(nt&&kt.match(nt))return ve(et,he),"keyword";if(kt.match(/^\\[a-zA-Z@]+/))return"tag";if(kt.match(/^[a-zA-Z]+/))return"variable-2";if(kt.match(/^\\[$&%#{}_]/)||kt.match(/^\\[,;!\/]/)||kt.match(/^[\^_&]/))return"tag";if(kt.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(kt.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var dt=kt.next();return dt=="{"||dt=="}"||dt=="["||dt=="]"||dt=="("||dt==")"?"bracket":dt=="%"?(kt.skipToEnd(),"comment"):"error"}function je(kt,et){var nt=kt.peek(),dt;return nt=="{"||nt=="["?(dt=Se(et),dt.openBracket(nt),kt.eat(nt),ve(et,he),"bracket"):/[ \t\r]/.test(nt)?(kt.eat(nt),null):(ve(et,he),Me(et),he(kt,et))}return{startState:function(){var kt=fe.inMathMode?function(et,nt){return Oe(et,nt)}:he;return{cmdState:[],f:kt}},copyState:function(kt){return{cmdState:kt.cmdState.slice(),f:kt.f}},token:function(kt,et){return et.f(kt,et)},blankLine:function(kt){kt.f=he,kt.cmdState.length=0},lineComment:"%"}}),ht.defineMIME("text/x-stex","stex"),ht.defineMIME("text/x-latex","stex")})},15525:function(Ye,jn,Ft){(function(ht){ht(Ft(89780))})(function(ht){"use strict";var Ht={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},fe={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};ht.defineMode("xml",function(Re,Se){var Me=Re.indentUnit,Jt={},Le=Se.htmlMode?Ht:fe;for(var ce in Le)Jt[ce]=Le[ce];for(var ce in Se)Jt[ce]=Se[ce];var ve,he;function Oe(ue,pe){function oe(an){return pe.tokenize=an,an(ue,pe)}var Ae=ue.next();if(Ae=="<")return ue.eat("!")?ue.eat("[")?ue.match("CDATA[")?oe(et("atom","]]>")):null:ue.match("--")?oe(et("comment","-->")):ue.match("DOCTYPE",!0,!0)?(ue.eatWhile(/[\w\._\-]/),oe(nt(1))):null:ue.eat("?")?(ue.eatWhile(/[\w\._\-]/),pe.tokenize=et("meta","?>"),"meta"):(ve=ue.eat("/")?"closeTag":"openTag",pe.tokenize=je,"tag bracket");if(Ae=="&"){var Ie;return ue.eat("#")?ue.eat("x")?Ie=ue.eatWhile(/[a-fA-F\d]/)&&ue.eat(";"):Ie=ue.eatWhile(/[\d]/)&&ue.eat(";"):Ie=ue.eatWhile(/[\w\.\-:]/)&&ue.eat(";"),Ie?"atom":"error"}else return ue.eatWhile(/[^&<]/),null}Oe.isInText=!0;function je(ue,pe){var oe=ue.next();if(oe==">"||oe=="/"&&ue.eat(">"))return pe.tokenize=Oe,ve=oe==">"?"endTag":"selfcloseTag","tag bracket";if(oe=="=")return ve="equals",null;if(oe=="<"){pe.tokenize=Oe,pe.state=yt,pe.tagName=pe.tagStart=null;var Ae=pe.tokenize(ue,pe);return Ae?Ae+" tag error":"tag error"}else return/[\'\"]/.test(oe)?(pe.tokenize=kt(oe),pe.stringStartCol=ue.column(),pe.tokenize(ue,pe)):(ue.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function kt(ue){var pe=function(oe,Ae){for(;!oe.eol();)if(oe.next()==ue){Ae.tokenize=je;break}return"string"};return pe.isInAttribute=!0,pe}function et(ue,pe){return function(oe,Ae){for(;!oe.eol();){if(oe.match(pe)){Ae.tokenize=Oe;break}oe.next()}return ue}}function nt(ue){return function(pe,oe){for(var Ae;(Ae=pe.next())!=null;){if(Ae=="<")return oe.tokenize=nt(ue+1),oe.tokenize(pe,oe);if(Ae==">")if(ue==1){oe.tokenize=Oe;break}else return oe.tokenize=nt(ue-1),oe.tokenize(pe,oe)}return"meta"}}function dt(ue,pe,oe){this.prev=ue.context,this.tagName=pe,this.indent=ue.indented,this.startOfLine=oe,(Jt.doNotIndent.hasOwnProperty(pe)||ue.context&&ue.context.noIndent)&&(this.noIndent=!0)}function lt(ue){ue.context&&(ue.context=ue.context.prev)}function pt(ue,pe){for(var oe;;){if(!ue.context||(oe=ue.context.tagName,!Jt.contextGrabbers.hasOwnProperty(oe)||!Jt.contextGrabbers[oe].hasOwnProperty(pe)))return;lt(ue)}}function yt(ue,pe,oe){return ue=="openTag"?(oe.tagStart=pe.column(),At):ue=="closeTag"?Dt:yt}function At(ue,pe,oe){return ue=="word"?(oe.tagName=pe.current(),he="tag",$t):Jt.allowMissingTagName&&ue=="endTag"?(he="tag bracket",$t(ue,pe,oe)):(he="error",At)}function Dt(ue,pe,oe){if(ue=="word"){var Ae=pe.current();return oe.context&&oe.context.tagName!=Ae&&Jt.implicitlyClosed.hasOwnProperty(oe.context.tagName)&<(oe),oe.context&&oe.context.tagName==Ae||Jt.matchClosing===!1?(he="tag",Ut):(he="tag error",Qt)}else return Jt.allowMissingTagName&&ue=="endTag"?(he="tag bracket",Ut(ue,pe,oe)):(he="error",Qt)}function Ut(ue,pe,oe){return ue!="endTag"?(he="error",Ut):(lt(oe),yt)}function Qt(ue,pe,oe){return he="error",Ut(ue,pe,oe)}function $t(ue,pe,oe){if(ue=="word")return he="attribute",ne;if(ue=="endTag"||ue=="selfcloseTag"){var Ae=oe.tagName,Ie=oe.tagStart;return oe.tagName=oe.tagStart=null,ue=="selfcloseTag"||Jt.autoSelfClosers.hasOwnProperty(Ae)?pt(oe,Ae):(pt(oe,Ae),oe.context=new dt(oe,Ae,Ie==oe.indented)),yt}return he="error",$t}function ne(ue,pe,oe){return ue=="equals"?_t:(Jt.allowMissing||(he="error"),$t(ue,pe,oe))}function _t(ue,pe,oe){return ue=="string"?Pe:ue=="word"&&Jt.allowUnquoted?(he="string",$t):(he="error",$t(ue,pe,oe))}function Pe(ue,pe,oe){return ue=="string"?Pe:$t(ue,pe,oe)}return{startState:function(ue){var pe={tokenize:Oe,state:yt,indented:ue||0,tagName:null,tagStart:null,context:null};return ue!=null&&(pe.baseIndent=ue),pe},token:function(ue,pe){if(!pe.tagName&&ue.sol()&&(pe.indented=ue.indentation()),ue.eatSpace())return null;ve=null;var oe=pe.tokenize(ue,pe);return(oe||ve)&&oe!="comment"&&(he=null,pe.state=pe.state(ve||oe,ue,pe),he&&(oe=he=="error"?oe+" error":he)),oe},indent:function(ue,pe,oe){var Ae=ue.context;if(ue.tokenize.isInAttribute)return ue.tagStart==ue.indented?ue.stringStartCol+1:ue.indented+Me;if(Ae&&Ae.noIndent)return ht.Pass;if(ue.tokenize!=je&&ue.tokenize!=Oe)return oe?oe.match(/^(\s*)/)[0].length:0;if(ue.tagName)return Jt.multilineTagIndentPastTag!==!1?ue.tagStart+ue.tagName.length+2:ue.tagStart+Me*(Jt.multilineTagIndentFactor||1);if(Jt.alignCDATA&&/<!\[CDATA\[/.test(pe))return 0;var Ie=pe&&/^<(\/)?([\w_:\.-]*)/.exec(pe);if(Ie&&Ie[1])for(;Ae;)if(Ae.tagName==Ie[2]){Ae=Ae.prev;break}else if(Jt.implicitlyClosed.hasOwnProperty(Ae.tagName))Ae=Ae.prev;else break;else if(Ie)for(;Ae;){var an=Jt.contextGrabbers[Ae.tagName];if(an&&an.hasOwnProperty(Ie[2]))Ae=Ae.prev;else break}for(;Ae&&Ae.prev&&!Ae.startOfLine;)Ae=Ae.prev;return Ae?Ae.indent+Me:ue.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:Jt.htmlMode?"html":"xml",helperType:Jt.htmlMode?"html":"xml",skipAttribute:function(ue){ue.state==_t&&(ue.state=$t)},xmlCurrentTag:function(ue){return ue.tagName?{name:ue.tagName,close:ue.type=="closeTag"}:null},xmlCurrentContext:function(ue){for(var pe=[],oe=ue.context;oe;oe=oe.prev)oe.tagName&&pe.push(oe.tagName);return pe.reverse()}}}),ht.defineMIME("text/xml","xml"),ht.defineMIME("application/xml","xml"),ht.mimeModes.hasOwnProperty("text/html")||ht.defineMIME("text/html",{name:"xml",htmlMode:!0})})},12378:function(Ye,jn,Ft){"use strict";Ft.d(jn,{$u:function(){return ce},BD:function(){return Wn},E9:function(){return Le},FF:function(){return so},FJ:function(){return yt},Hn:function(){return pt},KX:function(){return Dt},NB:function(){return Nt},S0:function(){return ae},UL:function(){return ve},Vk:function(){return lt},Vm:function(){return St},YI:function(){return mn},ZA:function(){return fe},Zt:function(){return he},al:function(){return Ne},bn:function(){return Ge},bx:function(){return ii},g2:function(){return ti},h1:function(){return _t},hD:function(){return pi},l4:function(){return Me},rU:function(){return Ct},s_:function(){return mi},uz:function(){return en},z6:function(){return Oe}}),Ye=Ft.hmd(Ye),function(){var wt;function Li(a){var y=0;return function(){return y<a.length?{done:!1,value:a[y++]}:{done:!0}}}function ui(a){var y=typeof Symbol!="undefined"&&Symbol.iterator&&a[Symbol.iterator];return y?y.call(a):{next:Li(a)}}function Ce(a){for(var y,x=[];!(y=a.next()).done;)x.push(y.value);return x}var xn=typeof Object.create=="function"?Object.create:function(a){function y(){}return y.prototype=a,new y},wn;if(typeof Object.setPrototypeOf=="function")wn=Object.setPrototypeOf;else{var Kn;t:{var Ue={a:!0},qe={};try{qe.__proto__=Ue,Kn=qe.a;break t}catch(a){}Kn=!1}wn=Kn?function(a,y){if(a.__proto__=y,a.__proto__!==y)throw new TypeError(a+" is not extensible");return a}:null}var le=wn;function re(a,y){if(a.prototype=xn(y.prototype),a.prototype.constructor=a,le)le(a,y);else for(var x in y)if(x!="prototype")if(Object.defineProperties){var E=Object.getOwnPropertyDescriptor(y,x);E&&Object.defineProperty(a,x,E)}else a[x]=y[x];a.QA=y.prototype}var qt=typeof Ft.g!="undefined"&&Ft.g!=null?Ft.g:self,Ze=typeof Object.assign=="function"?Object.assign:function(a,y){for(var x=1;x<arguments.length;x++){var E=arguments[x];if(E)for(var b in E)Object.prototype.hasOwnProperty.call(E,b)&&(a[b]=E[b])}return a},An=typeof Object.defineProperties=="function"?Object.defineProperty:function(a,y,x){a!=Array.prototype&&a!=Object.prototype&&(a[y]=x.value)};function Ln(a,y){if(y){var x=qt;a=a.split(".");for(var E=0;E<a.length-1;E++){var b=a[E];b in x||(x[b]={}),x=x[b]}a=a[a.length-1],E=x[a],y=y(E),y!=E&&y!=null&&An(x,a,{writable:!0,value:y})}}Ln("Object.assign",function(a){return a||Ze}),Ln("Array.prototype.fill",function(a){return a||function(y,x,E){var b=this.length||0;for(0>x&&(x=Math.max(0,b+x)),(E==null||E>b)&&(E=b),E=Number(E),0>E&&(E=Math.max(0,b+E)),x=Number(x||0);x<E;x++)this[x]=y;return this}});var Be=typeof globalThis=="object"&&globalThis||typeof Ft.g=="object"&&Ft.g.global===Ft.g&&Ft.g||typeof self=="object"&&self.self===self&&self||{};Be.requestAnimationFrame===void 0&&(Be.setImmediate===void 0?Be.requestAnimationFrame=function(a){Be.setTimeout(a,0)}:Be.requestAnimationFrame=Be.setImmediate);function un(){}function Qn(a,y){var x=-1;return function(){var E=this,b=arguments;x!==-1&&Be.clearTimeout(x),x=Nn(function(){x=-1,a.apply(E,b)},y)}}function Nn(a,y){return Be.setTimeout(a,y)}function ai(a){return Be.document.createElement(a)}function zt(a){throw Error(a)}function Fe(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 Dn(a,y,x,E){x=x===null?"*":typeof x=="string"?x:typeof x=="function"&&typeof x.className=="string"?x.className:"",E!==void 0&&(x+="."+E),zt(x+" is not in the range "+y+": "+a)}function On(a){Be.console&&Be.console.log(a)}function Te(a){return typeof a=="object"&&a!==null}function Ve(a){return Array.isArray(a)||Be.NodeList&&a instanceof Be.NodeList||Be.HTMLCollection&&a instanceof Be.HTMLCollection}function Vn(a){return Array.prototype.slice.call(a)}function li(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 oi(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 Rn(){var a=Ci.pop();return a===void 0?[]:a}function qn(a){a.length=0,Ci.push(a)}function si(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(Te(a)&&a.constructor)return si(a.constructor);return typeof a}function Xi(a){var y=a;return Te(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 Ii(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 ji(a,y,x){Object.defineProperty(Vo.prototype,a,{get:y,set:x})}function Qe(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 E=0,b=0;b<a.length;b+=2)x[E++]=y[a.substr(b,2)];for(a=x.join(""),a=a===""?"0":a,y=[],x=0;256>x;x++)y[x]=x;for(x=E=0;256>x;x++)E=(E+y[x]+119)%256,b=y[x],y[x]=y[E],y[E]=b;E=x=0;for(var z="",tt=0;tt<a.length;tt++)x=(x+1)%256,E=(E+y[x])%256,b=y[x],y[x]=y[E],y[E]=b,z+=String.fromCharCode(a.charCodeAt(tt)^y[(y[x]+y[E])%256]);return z.indexOf("GoJS 2.1 evaluation")>-1||z.indexOf("\xA9 1998-2021 Northwoods Software")>-1||z.indexOf("Not for distribution or production use")>-1||z.indexOf("gojs.net")>-1?"":z}var ao=Be.navigator!==void 0&&0<Be.navigator.userAgent.indexOf("Trident/7"),Oi=Be.navigator!==void 0&&Be.navigator.platform!==void 0&&Be.navigator.platform.match(/(iPhone|iPod|iPad|Mac)/i)!==null,Ci=[];Object.freeze([]),un.className="Util",un.Dx="32ab5ff3b26f42dc0ed90f21472913b5",un.adym="gojs.net",un.vfo="28e645fdb266",un.className="Util";function De(a,y,x){xo(this),this.j=a,this.xa=y,this.o=x}De.prototype.toString=function(){return"EnumValue."+this.xa};function En(a,y){return y==null||y===""?null:a[y]}qt.Object.defineProperties(De.prototype,{classType:{get:function(){return this.j}},name:{get:function(){return this.xa}},value:{get:function(){return this.o}}}),De.className="EnumValue";function ci(){this.ew=[]}ci.prototype.toString=function(){return this.ew.join("")},ci.prototype.add=function(a){a!==""&&this.ew.push(a)},ci.className="StringBuilder";function Pi(){}Pi.className="PropertyCollection";var _n={EA:!1,JA:!1,GA:!1,IA:!1,NA:!1,LA:!1,nx:!1,FA:null,trace:function(a){Be.console&&Be.console.log(a)},HA:function(a,y,x,E){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(E.left,E.top+20),a.lineTo(E.left,E.top),a.lineTo(E.left+20,E.top),a.moveTo(E.right,E.bottom-20),a.lineTo(E.right,E.bottom),a.lineTo(E.right-20,E.bottom),a.stroke(),a.fillText("DB: "+Math.round(E.x)+", "+Math.round(E.y)+", "+Math.round(E.width)+", "+Math.round(E.height),E.left,E.top-5)},DA:function(a){var y={},x;for(x in a){if(y.x=x,y.x!=="licenseKey"){var E=a[y.x];if(E.prototype!==void 0){y.Zl=Object.getOwnPropertyNames(E.prototype);for(var b={Tj:0};b.Tj<y.Zl.length;b={Tj:b.Tj},b.Tj++){var z=Object.getOwnPropertyDescriptor(E.prototype,y.Zl[b.Tj]);z.get!==void 0&&z.set===void 0&&Object.defineProperty(E.prototype,y.Zl[b.Tj],{set:function(tt,ot){return function(){throw Error("Property "+tt.Zl[ot.Tj]+" of "+tt.x+" is read-only.")}}(y,b)})}}}y={Zl:y.Zl,x:y.x}}}};function wi(){}wi.prototype.reset=function(){},wi.prototype.next=function(){return!1},wi.prototype.Ad=function(){return!1},wi.prototype.first=function(){return null},wi.prototype.any=function(){return!1},wi.prototype.all=function(){return!0},wi.prototype.each=function(){return this},wi.prototype.map=function(){return this},wi.prototype.filter=function(){return this},wi.prototype.de=function(){},wi.prototype.toString=function(){return"EmptyIterator"},qt.Object.defineProperties(wi.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 0}}}),wi.prototype.first=wi.prototype.first,wi.prototype.hasNext=wi.prototype.Ad,wi.prototype.next=wi.prototype.next,wi.prototype.reset=wi.prototype.reset;var _i=null;wi.className="EmptyIterator",_i=new wi;function Zi(a){this.key=-1,this.value=a}Zi.prototype.reset=function(){this.key=-1},Zi.prototype.next=function(){return this.key===-1?(this.key=0,!0):!1},Zi.prototype.Ad=function(){return this.next()},Zi.prototype.first=function(){return this.key=0,this.value},Zi.prototype.any=function(a){return this.key=-1,a(this.value)},Zi.prototype.all=function(a){return this.key=-1,a(this.value)},Zi.prototype.each=function(a){return this.key=-1,a(this.value),this},Zi.prototype.map=function(a){return new Zi(a(this.value))},Zi.prototype.filter=function(a){return a(this.value)?new Zi(this.value):_i},Zi.prototype.de=function(){this.value=null},Zi.prototype.toString=function(){return"SingletonIterator("+this.value+")"},qt.Object.defineProperties(Zi.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 1}}}),Zi.prototype.first=Zi.prototype.first,Zi.prototype.hasNext=Zi.prototype.Ad,Zi.prototype.next=Zi.prototype.next,Zi.prototype.reset=Zi.prototype.reset,Zi.className="SingletonIterator";function oo(a){this.Bb=a,this.qf=null,a.Sa=null,this.qa=a.Ja,this.Za=-1}oo.prototype.reset=function(){var a=this.Bb;a.Sa=null,this.qa=a.Ja,this.Za=-1},oo.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,E=this.qf;if(E!==null)for(;x<y;){var b=a[x];if(E(b))return this.key=this.Za=x,this.value=b,!0;x++}else{if(x<y)return this.key=x,this.value=a[x],!0;this.de()}return!1},oo.prototype.Ad=function(){return this.next()},oo.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 E=0;E<y;){var b=a[E];if(x(b))return this.key=this.Za=E,this.value=b;E++}return null}return 0<y?(a=a[0],this.key=0,this.value=a):null},oo.prototype.any=function(a){var y=this.Bb;y.Sa=null,this.Za=-1,y=y.s;for(var x=y.length,E=this.qf,b=0;b<x;b++){var z=y[b];if((E===null||E(z))&&a(z))return!0}return!1},oo.prototype.all=function(a){var y=this.Bb;y.Sa=null,this.Za=-1,y=y.s;for(var x=y.length,E=this.qf,b=0;b<x;b++){var z=y[b];if((E===null||E(z))&&!a(z))return!1}return!0},oo.prototype.each=function(a){var y=this.Bb;y.Sa=null,this.Za=-1,y=y.s;for(var x=y.length,E=this.qf,b=0;b<x;b++){var z=y[b];(E===null||E(z))&&a(z)}return this},oo.prototype.map=function(a){var y=this.Bb;y.Sa=null,this.Za=-1;var x=[];y=y.s;for(var E=y.length,b=this.qf,z=0;z<E;z++){var tt=y[z];(b===null||b(tt))&&x.push(a(tt))}return a=new $e,a.s=x,a.xb(),a.iterator},oo.prototype.filter=function(a){var y=this.Bb;y.Sa=null,this.Za=-1;var x=[];y=y.s;for(var E=y.length,b=this.qf,z=0;z<E;z++){var tt=y[z];(b===null||b(tt))&&a(tt)&&x.push(tt)}return a=new $e,a.s=x,a.xb(),a.iterator},oo.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.qf=null,this.Bb.Sa=this},oo.prototype.toString=function(){return"ListIterator@"+this.Za+"/"+this.Bb.count},qt.Object.defineProperties(oo.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,E=x.length,b=0;b<E;b++)a(x[b])&&y++;return y}return this.Bb.s.length}}}),oo.prototype.first=oo.prototype.first,oo.prototype.hasNext=oo.prototype.Ad,oo.prototype.next=oo.prototype.next,oo.prototype.reset=oo.prototype.reset,oo.className="ListIterator";function $i(a){this.Bb=a,a.Hg=null,this.qa=a.Ja,this.Za=a.s.length}$i.prototype.reset=function(){var a=this.Bb;a.Hg=null,this.qa=a.Ja,this.Za=a.s.length},$i.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)},$i.prototype.Ad=function(){return this.next()},$i.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},$i.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},$i.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},$i.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},$i.prototype.map=function(a){var y=this.Bb;y.Hg=null;var x=[];y=y.s;var E=y.length;for(this.Za=E,--E;0<=E;E--)x.push(a(y[E]));return a=new $e,a.s=x,a.xb(),a.iterator},$i.prototype.filter=function(a){var y=this.Bb;y.Hg=null;var x=[];y=y.s;var E=y.length;for(this.Za=E,--E;0<=E;E--){var b=y[E];a(b)&&x.push(b)}return a=new $e,a.s=x,a.xb(),a.iterator},$i.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.Bb.Hg=this},$i.prototype.toString=function(){return"ListIteratorBackwards("+this.Za+"/"+this.Bb.count+")"},qt.Object.defineProperties($i.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.Bb.s.length}}}),$i.prototype.first=$i.prototype.first,$i.prototype.hasNext=$i.prototype.Ad,$i.prototype.next=$i.prototype.next,$i.prototype.reset=$i.prototype.reset,$i.className="ListIteratorBackwards";function $e(a){xo(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)}wt=$e.prototype,wt.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},wt.freeze=function(){return this._isFrozen=!0,this},wt.ka=function(){return this._isFrozen=!1,this},wt.toString=function(){return"List()#"+to(this)},wt.add=function(a){return a===null?this:(this._isFrozen&&Fe(this,a),this.s.push(a),this.xb(),this)},wt.push=function(a){this.add(a)},wt.addAll=function(a){if(a===null)return this;this._isFrozen&&Fe(this);var y=this.s;if(Ve(a))for(var x=a.length,E=0;E<x;E++)y.push(a[E]);else for(a=a.iterator;a.next();)y.push(a.value);return this.xb(),this},wt.clear=function(){this._isFrozen&&Fe(this),this.s.length=0,this.xb()},wt.contains=function(a){return a===null?!1:this.s.indexOf(a)!==-1},wt.has=function(a){return this.contains(a)},wt.indexOf=function(a){return a===null?-1:this.s.indexOf(a)},wt.M=function(a){var y=this.s;return(0>a||a>=y.length)&&Dn(a,"0 <= i < length",$e,"elt:i"),y[a]},wt.get=function(a){return this.M(a)},wt.cd=function(a,y){var x=this.s;(0>a||a>=x.length)&&Dn(a,"0 <= i < length",$e,"setElt:i"),this._isFrozen&&Fe(this,a),x[a]=y},wt.set=function(a,y){this.cd(a,y)},wt.first=function(){var a=this.s;return a.length===0?null:a[0]},wt.jc=function(){var a=this.s,y=a.length;return 0<y?a[y-1]:null},wt.pop=function(){this._isFrozen&&Fe(this);var a=this.s;return 0<a.length?a.pop():null},$e.prototype.any=function(a){for(var y=this.s,x=y.length,E=0;E<x;E++)if(a(y[E]))return!0;return!1},$e.prototype.all=function(a){for(var y=this.s,x=y.length,E=0;E<x;E++)if(!a(y[E]))return!1;return!0},$e.prototype.each=function(a){for(var y=this.s,x=y.length,E=0;E<x;E++)a(y[E]);return this},$e.prototype.map=function(a){for(var y=new $e,x=[],E=this.s,b=E.length,z=0;z<b;z++)x.push(a(E[z]));return y.s=x,y.xb(),y},$e.prototype.filter=function(a){for(var y=new $e,x=[],E=this.s,b=E.length,z=0;z<b;z++){var tt=E[z];a(tt)&&x.push(tt)}return y.s=x,y.xb(),y},wt=$e.prototype,wt.Gb=function(a,y){0>a&&Dn(a,">= 0",$e,"insertAt:i"),this._isFrozen&&Fe(this,a);var x=this.s;a>=x.length?x.push(y):x.splice(a,0,y),this.xb()},wt.remove=function(a){if(a===null)return!1;this._isFrozen&&Fe(this,a);var y=this.s;return a=y.indexOf(a),a===-1?!1:(a===y.length-1?y.pop():y.splice(a,1),this.xb(),!0)},wt.delete=function(a){return this.remove(a)},wt.mb=function(a){var y=this.s;(0>a||a>=y.length)&&Dn(a,"0 <= i < length",$e,"removeAt:i"),this._isFrozen&&Fe(this,a),a===y.length-1?y.pop():y.splice(a,1),this.xb()},wt.removeRange=function(a,y){var x=this.s,E=x.length;if(0>a)a=0;else if(a>=E)return this;if(0>y)return this;if(y>=E&&(y=E-1),a>y)return this;this._isFrozen&&Fe(this);for(var b=a,z=y+1;z<E;)x[b++]=x[z++];return x.length=E-(y-a+1),this.xb(),this},$e.prototype.copy=function(){var a=new $e,y=this.s;return 0<y.length&&(a.s=Array.prototype.slice.call(y)),a},wt=$e.prototype,wt.Fa=function(){for(var a=this.s,y=this.count,x=Array(y),E=0;E<y;E++)x[E]=a[E];return x},wt.Iv=function(){for(var a=new _e,y=this.s,x=this.count,E=0;E<x;E++)a.add(y[E]);return a},wt.sort=function(a){return this._isFrozen&&Fe(this),this.s.sort(a),this.xb(),this},wt.zi=function(a,y,x){var E=this.s,b=E.length;y===void 0&&(y=0),x===void 0&&(x=b),this._isFrozen&&Fe(this);var z=x-y;if(1>=z)return this;if((0>y||y>=b-1)&&Dn(y,"0 <= from < length",$e,"sortRange:from"),z===2)return x=E[y],b=E[y+1],0<a(x,b)&&(E[y]=b,E[y+1]=x,this.xb()),this;if(y===0)if(x>=b)E.sort(a);else for(y=E.slice(0,x),y.sort(a),a=0;a<x;a++)E[a]=y[a];else if(x>=b)for(x=E.slice(y),x.sort(a),a=y;a<b;a++)E[a]=x[a-y];else for(b=E.slice(y,x),b.sort(a),a=y;a<x;a++)E[a]=b[a-y];return this.xb(),this},wt.reverse=function(){return this._isFrozen&&Fe(this),this.s.reverse(),this.xb(),this},qt.Object.defineProperties($e.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 _i;var a=this.Sa;return a!==null?(a.reset(),a):new oo(this)}},iteratorBackwards:{get:function(){if(0>=this.s.length)return _i;var a=this.Hg;return a!==null?(a.reset(),a):new $i(this)}}}),$e.prototype.reverse=$e.prototype.reverse,$e.prototype.sortRange=$e.prototype.zi,$e.prototype.sort=$e.prototype.sort,$e.prototype.toSet=$e.prototype.Iv,$e.prototype.toArray=$e.prototype.Fa,$e.prototype.removeRange=$e.prototype.removeRange,$e.prototype.removeAt=$e.prototype.mb,$e.prototype.delete=$e.prototype.delete,$e.prototype.remove=$e.prototype.remove,$e.prototype.insertAt=$e.prototype.Gb,$e.prototype.pop=$e.prototype.pop,$e.prototype.last=$e.prototype.jc,$e.prototype.first=$e.prototype.first,$e.prototype.set=$e.prototype.set,$e.prototype.setElt=$e.prototype.cd,$e.prototype.get=$e.prototype.get,$e.prototype.elt=$e.prototype.M,$e.prototype.indexOf=$e.prototype.indexOf,$e.prototype.has=$e.prototype.has,$e.prototype.contains=$e.prototype.contains,$e.prototype.clear=$e.prototype.clear,$e.prototype.addAll=$e.prototype.addAll,$e.prototype.push=$e.prototype.push,$e.prototype.add=$e.prototype.add,$e.prototype.thaw=$e.prototype.ka,$e.prototype.freeze=$e.prototype.freeze,$e.className="List";function Gi(a){this.eg=a,a.Sa=null,this.qa=a.Ja,this.sa=null}Gi.prototype.reset=function(){var a=this.eg;a.Sa=null,this.qa=a.Ja,this.sa=null},Gi.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)},Gi.prototype.Ad=function(){return this.next()},Gi.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},Gi.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},Gi.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},Gi.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},Gi.prototype.map=function(a){var y=this.eg;y.Sa=null;var x=new $e;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},Gi.prototype.filter=function(a){var y=this.eg;y.Sa=null;var x=new $e;for(y=y.ea;y!==null;){var E=y.value;a(E)&&x.add(E),y=y.va}return x.iterator},Gi.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.eg.Sa=this},Gi.prototype.toString=function(){return this.sa!==null?"SetIterator@"+this.sa.value:"SetIterator"},qt.Object.defineProperties(Gi.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.eg.Sb}}}),Gi.prototype.first=Gi.prototype.first,Gi.prototype.hasNext=Gi.prototype.Ad,Gi.prototype.next=Gi.prototype.next,Gi.prototype.reset=Gi.prototype.reset,Gi.className="SetIterator";function _e(a){xo(this),this._isFrozen=!1,this.Tb={},this.Sb=0,this.Sa=null,this.Ja=0,this.kf=this.ea=null,typeof a=="string"&&zt("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}wt=_e.prototype,wt.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},wt.freeze=function(){return this._isFrozen=!0,this},wt.ka=function(){return this._isFrozen=!1,this},wt.toString=function(){return"Set()#"+to(this)},wt.add=function(a){if(a===null)return this;this._isFrozen&&Fe(this,a);var y=a;return Te(a)&&(y=Co(a)),this.Tb[y]===void 0&&(this.Sb++,a=new Lo(a,a),this.Tb[y]=a,y=this.kf,y===null?this.ea=a:(a.ll=y,y.va=a),this.kf=a,this.xb()),this},wt.addAll=function(a){if(a===null)return this;if(this._isFrozen&&Fe(this),Ve(a))for(var y=a.length,x=0;x<y;x++)this.add(a[x]);else for(a=a.iterator;a.next();)this.add(a.value);return this},wt.contains=function(a){if(a===null)return!1;var y=a;return Te(a)&&(y=to(a),y===void 0)?!1:this.Tb[y]!==void 0},wt.has=function(a){return this.contains(a)},wt.Sy=function(a){if(a===null)return!0;for(a=a.iterator;a.next();)if(!this.contains(a.value))return!1;return!0},wt.Ty=function(a){if(a===null)return!0;for(a=a.iterator;a.next();)if(this.contains(a.value))return!0;return!1},wt.first=function(){var a=this.ea;return a===null?null:a.value},_e.prototype.any=function(a){for(var y=this.ea;y!==null;){if(a(y.value))return!0;y=y.va}return!1},_e.prototype.all=function(a){for(var y=this.ea;y!==null;){if(!a(y.value))return!1;y=y.va}return!0},_e.prototype.each=function(a){for(var y=this.ea;y!==null;)a(y.value),y=y.va;return this},_e.prototype.map=function(a){for(var y=new _e,x=this.ea;x!==null;)y.add(a(x.value)),x=x.va;return y},_e.prototype.filter=function(a){for(var y=new _e,x=this.ea;x!==null;){var E=x.value;a(E)&&y.add(E),x=x.va}return y},wt=_e.prototype,wt.remove=function(a){if(a===null)return!1;this._isFrozen&&Fe(this,a);var y=a;if(Te(a)&&(y=to(a),y===void 0)||(a=this.Tb[y],a===void 0))return!1;var x=a.va,E=a.ll;return x!==null&&(x.ll=E),E!==null&&(E.va=x),this.ea===a&&(this.ea=x),this.kf===a&&(this.kf=E),delete this.Tb[y],this.Sb--,this.xb(),!0},wt.delete=function(a){return this.remove(a)},wt.hp=function(a){if(a===null)return this;if(this._isFrozen&&Fe(this),Ve(a))for(var y=a.length,x=0;x<y;x++)this.remove(a[x]);else for(a=a.iterator;a.next();)this.remove(a.value);return this},wt.pA=function(a){if(a===null||this.count===0)return this;this._isFrozen&&Fe(this);var y=new _e;y.addAll(a),a=[];for(var x=this.iterator;x.next();){var E=x.value;y.contains(E)||a.push(E)}return this.hp(a),this},wt.clear=function(){this._isFrozen&&Fe(this),this.Tb={},this.Sb=0,this.Sa!==null&&this.Sa.reset(),this.kf=this.ea=null,this.xb()},_e.prototype.copy=function(){var a=new _e,y=this.Tb,x;for(x in y)a.add(y[x].value);return a},_e.prototype.Fa=function(){var a=Array(this.Sb),y=this.Tb,x=0,E;for(E in y)a[x]=y[E].value,x++;return a},_e.prototype.Hv=function(){var a=new $e,y=this.Tb,x;for(x in y)a.add(y[x].value);return a};function xo(a){a.__gohashid=Bo++}function Co(a){var y=a.__gohashid;return y===void 0&&(y=Bo++,a.__gohashid=y),y}function to(a){return a.__gohashid}qt.Object.defineProperties(_e.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.Sb)return _i;var a=this.Sa;return a!==null?(a.reset(),a):new Gi(this)}}}),_e.prototype.toList=_e.prototype.Hv,_e.prototype.toArray=_e.prototype.Fa,_e.prototype.clear=_e.prototype.clear,_e.prototype.retainAll=_e.prototype.pA,_e.prototype.removeAll=_e.prototype.hp,_e.prototype.delete=_e.prototype.delete,_e.prototype.remove=_e.prototype.remove,_e.prototype.first=_e.prototype.first,_e.prototype.containsAny=_e.prototype.Ty,_e.prototype.containsAll=_e.prototype.Sy,_e.prototype.has=_e.prototype.has,_e.prototype.contains=_e.prototype.contains,_e.prototype.addAll=_e.prototype.addAll,_e.prototype.add=_e.prototype.add,_e.prototype.thaw=_e.prototype.ka,_e.prototype.freeze=_e.prototype.freeze;var Bo=1;_e.className="Set",_e.uniqueHash=xo,_e.hashIdUnique=Co,_e.hashId=to;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 $e;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 $e;for(y=y.ea;y!==null;){var E=y.key;a(E)&&x.add(E),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"},qt.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 Hi(a){_e.call(this),xo(this),this._isFrozen=!0,this.ma=a}re(Hi,_e),wt=Hi.prototype,wt.freeze=function(){return this},wt.ka=function(){return this},wt.toString=function(){return"MapKeySet("+this.ma.toString()+")"},wt.add=function(){zt("This Set is read-only: "+this.toString())},wt.contains=function(a){return this.ma.contains(a)},wt.has=function(a){return this.contains(a)},wt.remove=function(){zt("This Set is read-only: "+this.toString())},wt.delete=function(a){return this.remove(a)},wt.clear=function(){zt("This Set is read-only: "+this.toString())},wt.first=function(){var a=this.ma.ea;return a!==null?a.key:null},Hi.prototype.any=function(a){for(var y=this.ma.ea;y!==null;){if(a(y.key))return!0;y=y.va}return!1},Hi.prototype.all=function(a){for(var y=this.ma.ea;y!==null;){if(!a(y.key))return!1;y=y.va}return!0},Hi.prototype.each=function(a){for(var y=this.ma.ea;y!==null;)a(y.key),y=y.va;return this},Hi.prototype.map=function(a){for(var y=new _e,x=this.ma.ea;x!==null;)y.add(a(x.key)),x=x.va;return y},Hi.prototype.filter=function(a){for(var y=new _e,x=this.ma.ea;x!==null;){var E=x.key;a(E)&&y.add(E),x=x.va}return y},Hi.prototype.copy=function(){return new Hi(this.ma)},Hi.prototype.Iv=function(){var a=new _e,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},Hi.prototype.Fa=function(){var a=this.ma.Tb,y=Array(this.ma.Sb),x=0,E;for(E in a)y[x]=a[E].key,x++;return y},Hi.prototype.Hv=function(){var a=new $e,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},qt.Object.defineProperties(Hi.prototype,{count:{get:function(){return this.ma.Sb}},size:{get:function(){return this.ma.Sb}},iterator:{get:function(){return 0>=this.ma.Sb?_i:new co(this.ma)}}}),Hi.prototype.toList=Hi.prototype.Hv,Hi.prototype.toArray=Hi.prototype.Fa,Hi.prototype.toSet=Hi.prototype.Iv,Hi.prototype.first=Hi.prototype.first,Hi.prototype.clear=Hi.prototype.clear,Hi.prototype.delete=Hi.prototype.delete,Hi.prototype.remove=Hi.prototype.remove,Hi.prototype.has=Hi.prototype.has,Hi.prototype.contains=Hi.prototype.contains,Hi.prototype.add=Hi.prototype.add,Hi.prototype.thaw=Hi.prototype.ka,Hi.prototype.freeze=Hi.prototype.freeze,Hi.className="MapKeySet";function wo(a){this.ma=a,a.jf=null,this.qa=a.Ja,this.sa=null}wo.prototype.reset=function(){var a=this.ma;a.jf=null,this.qa=a.Ja,this.sa=null},wo.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)},wo.prototype.Ad=function(){return this.next()},wo.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},wo.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},wo.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},wo.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},wo.prototype.map=function(a){var y=this.ma;this.sa=y.jf=null;var x=new $e;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},wo.prototype.filter=function(a){var y=this.ma;this.sa=y.jf=null;var x=new $e;for(y=y.ea;y!==null;){var E=y.value;a(E)&&x.add(E),y=y.va}return x.iterator},wo.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.jf=this},wo.prototype.toString=function(){return this.sa!==null?"MapValueSetIterator@"+this.sa.value:"MapValueSetIterator"},qt.Object.defineProperties(wo.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),wo.prototype.first=wo.prototype.first,wo.prototype.hasNext=wo.prototype.Ad,wo.prototype.next=wo.prototype.next,wo.prototype.reset=wo.prototype.reset,wo.className="MapValueSetIterator";function Lo(a,y){this.key=a,this.value=y,this.ll=this.va=null}Lo.prototype.toString=function(){return"{"+this.key+":"+this.value+"}"},Lo.className="KeyValuePair";function fo(a){this.ma=a,a.Sa=null,this.qa=a.Ja,this.sa=null}fo.prototype.reset=function(){var a=this.ma;a.Sa=null,this.qa=a.Ja,this.sa=null},fo.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)},fo.prototype.Ad=function(){return this.next()},fo.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},fo.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},fo.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},fo.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},fo.prototype.map=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new $e;for(y=y.ea;y!==null;)x.add(a(y)),y=y.va;return x.iterator},fo.prototype.filter=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new $e;for(y=y.ea;y!==null;)a(y)&&x.add(y),y=y.va;return x.iterator},fo.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.Sa=this},fo.prototype.toString=function(){return this.sa!==null?"MapIterator@"+this.sa:"MapIterator"},qt.Object.defineProperties(fo.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),fo.prototype.first=fo.prototype.first,fo.prototype.hasNext=fo.prototype.Ad,fo.prototype.next=fo.prototype.next,fo.prototype.reset=fo.prototype.reset,fo.className="MapIterator";function ri(a){xo(this),this._isFrozen=!1,this.Tb={},this.Sb=0,this.jf=this.Sa=null,this.Ja=0,this.kf=this.ea=null,typeof a=="string"&&zt("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}wt=ri.prototype,wt.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},wt.freeze=function(){return this._isFrozen=!0,this},wt.ka=function(){return this._isFrozen=!1,this},wt.toString=function(){return"Map()#"+to(this)},wt.add=function(a,y){this._isFrozen&&Fe(this,a);var x=a;Te(a)&&(x=Co(a));var E=this.Tb[x];return E===void 0?(this.Sb++,a=new Lo(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()):E.value=y,this},wt.set=function(a,y){return this.add(a,y)},wt.addAll=function(a){if(a===null)return this;if(Ve(a))for(var y=a.length,x=0;x<y;x++){var E=a[x];this.add(E.key,E.value)}else if(a instanceof ri)for(a=a.iterator;a.next();)this.add(a.key,a.value);else for(a=a.iterator;a.next();)y=a.value,this.add(y.key,y.value);return this},wt.first=function(){return this.ea},ri.prototype.any=function(a){for(var y=this.ea;y!==null;){if(a(y))return!0;y=y.va}return!1},ri.prototype.all=function(a){for(var y=this.ea;y!==null;){if(!a(y))return!1;y=y.va}return!0},ri.prototype.each=function(a){for(var y=this.ea;y!==null;)a(y),y=y.va;return this},ri.prototype.map=function(a){for(var y=new ri,x=this.ea;x!==null;)y.add(x.key,a(x)),x=x.va;return y},ri.prototype.filter=function(a){for(var y=new ri,x=this.ea;x!==null;)a(x)&&y.add(x.key,x.value),x=x.va;return y},wt=ri.prototype,wt.contains=function(a){var y=a;return Te(a)&&(y=to(a),y===void 0)?!1:this.Tb[y]!==void 0},wt.has=function(a){return this.contains(a)},wt.I=function(a){var y=a;return Te(a)&&(y=to(a),y===void 0)?null:(a=this.Tb[y],a===void 0?null:a.value)},wt.get=function(a){return this.I(a)},wt.remove=function(a){if(a===null)return!1;this._isFrozen&&Fe(this,a);var y=a;if(Te(a)&&(y=to(a),y===void 0)||(a=this.Tb[y],a===void 0))return!1;var x=a.va,E=a.ll;return x!==null&&(x.ll=E),E!==null&&(E.va=x),this.ea===a&&(this.ea=x),this.kf===a&&(this.kf=E),delete this.Tb[y],this.Sb--,this.xb(),!0},wt.delete=function(a){return this.remove(a)},wt.clear=function(){this._isFrozen&&Fe(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()},ri.prototype.copy=function(){var a=new ri,y=this.Tb,x;for(x in y){var E=y[x];a.add(E.key,E.value)}return a},ri.prototype.Fa=function(){var a=this.Tb,y=Array(this.Sb),x=0,E;for(E in a){var b=a[E];y[x]=new Lo(b.key,b.value),x++}return y},ri.prototype.Lf=function(){return new Hi(this)},qt.Object.defineProperties(ri.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.count)return _i;var a=this.Sa;return a!==null?(a.reset(),a):new fo(this)}},iteratorKeys:{get:function(){return 0>=this.count?_i:new co(this)}},iteratorValues:{get:function(){if(0>=this.count)return _i;var a=this.jf;return a!==null?(a.reset(),a):new wo(this)}}}),ri.prototype.toKeySet=ri.prototype.Lf,ri.prototype.toArray=ri.prototype.Fa,ri.prototype.clear=ri.prototype.clear,ri.prototype.delete=ri.prototype.delete,ri.prototype.remove=ri.prototype.remove,ri.prototype.get=ri.prototype.get,ri.prototype.getValue=ri.prototype.I,ri.prototype.has=ri.prototype.has,ri.prototype.contains=ri.prototype.contains,ri.prototype.first=ri.prototype.first,ri.prototype.addAll=ri.prototype.addAll,ri.prototype.set=ri.prototype.set,ri.prototype.add=ri.prototype.add,ri.prototype.thaw=ri.prototype.ka,ri.prototype.freeze=ri.prototype.freeze,ri.className="Map";function It(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 qo,_o,Sr,Fr,Xo;It.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this},It.prototype.h=function(a,y){return this.x=a,this.y=y,this},It.prototype.sg=function(a,y){return this.x=a,this.y=y,this},It.prototype.set=function(a){return this.x=a.x,this.y=a.y,this},It.prototype.copy=function(){var a=new It;return a.x=this.x,a.y=this.y,a},wt=It.prototype,wt.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},wt.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},wt.freeze=function(){return this._isFrozen=!0,this},wt.ka=function(){return Object.isFrozen(this)&&zt("cannot thaw constant: "+this),this._isFrozen=!1,this};function kr(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var E=a[y++];E&&(x=parseFloat(E));for(var b=0;a[y]==="";)y++;return(E=a[y++])&&(b=parseFloat(E)),new It(x,b)}return new It}function Zt(a){return a.x.toString()+" "+a.y.toString()}wt.toString=function(){return"Point("+this.x+","+this.y+")"},wt.D=function(a){return a instanceof It?this.x===a.x&&this.y===a.y:!1},wt.hi=function(a,y){return this.x===a&&this.y===y},wt.Xa=function(a){return se.B(this.x,a.x)&&se.B(this.y,a.y)},wt.add=function(a){return this.x+=a.x,this.y+=a.y,this},wt.re=function(a){return this.x-=a.x,this.y-=a.y,this},wt.offset=function(a,y){return this.x+=a,this.y+=y,this},It.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 E=1}else a===180?(a=-1,E=0):a===270?(a=0,E=-1):(E=a*Math.PI/180,a=Math.cos(E),E=Math.sin(E));return this.x=a*y-E*x,this.y=E*y+a*x,this},wt=It.prototype,wt.scale=function(a,y){return this.x*=a,this.y*=y,this},wt.Bf=function(a){var y=a.x-this.x;return a=a.y-this.y,y*y+a*a},wt.zd=function(a,y){return a-=this.x,y-=this.y,a*a+y*y},wt.normalize=function(){var a=this.x,y=this.y,x=Math.sqrt(a*a+y*y);return 0<x&&(this.x=a/x,this.y=y/x),this},wt.ab=function(a){return kn(a.x-this.x,a.y-this.y)},wt.direction=function(a,y){return kn(a-this.x,y-this.y)};function kn(a,y){if(a===0)return 0<y?90:0>y?270:0;if(y===0)return 0<a?0:180;if(isNaN(a)||isNaN(y))return 0;var x=180*Math.atan(Math.abs(y/a))/Math.PI;return 0>a?x=0>y?x+180:180-x:0>y&&(x=360-x),x}wt.Ry=function(a,y){return se.Fl(a.x,a.y,y.x,y.y,this.x,this.y)},wt.fA=function(a,y,x,E){return se.qh(a,y,x,E,this.x,this.y,this),this},wt.gA=function(a,y){return se.qh(a.x,a.y,y.x,y.y,this.x,this.y,this),this},wt.uA=function(a,y,x,E){return se.No(this.x,this.y,a,y,x,E,this),this},wt.vA=function(a,y){return se.No(this.x,this.y,a.x,a.y,y.width,y.height,this),this},wt.xi=function(a,y){return this.x=a.x+y.x*a.width+y.offsetX,this.y=a.y+y.y*a.height+y.offsetY,this},wt.yi=function(a,y,x,E,b){return this.x=a+b.x*x+b.offsetX,this.y=y+b.y*E+b.offsetY,this},wt.transform=function(a){return a.Ga(this),this};function Mn(a,y){return y.Cd(a),a}function Un(a,y,x,E,b,z){var tt=b-x,ot=z-E,rt=tt*tt+ot*ot;x-=a,E-=y;var at=-x*tt-E*ot;return 0>=at||at>=rt?(tt=b-a,ot=z-y,Math.min(x*x+E*E,tt*tt+ot*ot)):(a=tt*E-ot*x,a*a/rt)}function gn(a,y,x,E){return a=x-a,y=E-y,a*a+y*y}function Tn(a,y,x,E){return a=x-a,y=E-y,a===0?0<y?90:0>y?270:0:y===0?0<a?0:180:isNaN(a)||isNaN(y)?0:(E=180*Math.atan(Math.abs(y/a))/Math.PI,0>a?E=0>y?E+180:180-E:0>y&&(E=360-E),E)}wt.w=function(){return isFinite(this.x)&&isFinite(this.y)},It.alloc=function(){var a=Pn.pop();return a===void 0?new It:a},It.allocAt=function(a,y){var x=Pn.pop();return x===void 0?new It(a,y):(x.x=a,x.y=y,x)},It.free=function(a){Pn.push(a)},It.prototype.isReal=It.prototype.w,It.prototype.setSpot=It.prototype.yi,It.prototype.setRectSpot=It.prototype.xi,It.prototype.snapToGridPoint=It.prototype.vA,It.prototype.snapToGrid=It.prototype.uA,It.prototype.projectOntoLineSegmentPoint=It.prototype.gA,It.prototype.projectOntoLineSegment=It.prototype.fA,It.intersectingLineSegments=function(a,y,x,E,b,z,tt,ot){return se.Rl(a,y,x,E,b,z,tt,ot)},It.prototype.compareWithLineSegmentPoint=It.prototype.Ry,It.compareWithLineSegment=function(a,y,x,E,b,z){return se.Fl(a,y,x,E,b,z)},It.prototype.direction=It.prototype.direction,It.prototype.directionPoint=It.prototype.ab,It.prototype.normalize=It.prototype.normalize,It.prototype.distanceSquared=It.prototype.zd,It.prototype.distanceSquaredPoint=It.prototype.Bf,It.prototype.scale=It.prototype.scale,It.prototype.rotate=It.prototype.rotate,It.prototype.offset=It.prototype.offset,It.prototype.subtract=It.prototype.re,It.prototype.add=It.prototype.add,It.prototype.equalsApprox=It.prototype.Xa,It.prototype.equalTo=It.prototype.hi,It.prototype.equals=It.prototype.D,It.prototype.set=It.prototype.set,It.prototype.setTo=It.prototype.sg;var Pn=[];It.className="Point",It.parse=kr,It.stringify=Zt,It.distanceLineSegmentSquared=Un,It.distanceSquared=gn,It.direction=Tn,It.Origin=qo=new It(0,0).ja(),It.InfiniteTopLeft=_o=new It(-1/0,-1/0).ja(),It.InfiniteBottomRight=Sr=new It(1/0,1/0).ja(),It.SixPoint=Fr=new It(6,6).ja(),It.NoPoint=Xo=new It(NaN,NaN).ja(),It.parse=kr,It.stringify=Zt,It.distanceLineSegmentSquared=Un,It.distanceSquared=gn,It.direction=Tn;function Ee(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 fn,gi,Wi,ki,vi,Ji,Ki;Ee.prototype.assign=function(a){return this.width=a.width,this.height=a.height,this},Ee.prototype.h=function(a,y){return this.width=a,this.height=y,this},Ee.prototype.sg=function(a,y){return this.width=a,this.height=y,this},Ee.prototype.set=function(a){return this.width=a.width,this.height=a.height,this},Ee.prototype.copy=function(){var a=new Ee;return a.width=this.width,a.height=this.height,a},wt=Ee.prototype,wt.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},wt.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},wt.freeze=function(){return this._isFrozen=!0,this},wt.ka=function(){return Object.isFrozen(this)&&zt("cannot thaw constant: "+this),this._isFrozen=!1,this};function Jo(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var E=a[y++];E&&(x=parseFloat(E));for(var b=0;a[y]==="";)y++;return(E=a[y++])&&(b=parseFloat(E)),new Ee(x,b)}return new Ee}function nr(a){return a.width.toString()+" "+a.height.toString()}wt.toString=function(){return"Size("+this.width+","+this.height+")"},wt.D=function(a){return a instanceof Ee?this.width===a.width&&this.height===a.height:!1},wt.hi=function(a,y){return this.width===a&&this.height===y},wt.Xa=function(a){return se.B(this.width,a.width)&&se.B(this.height,a.height)},wt.Bc=function(a,y){return a=this.width+a,this.width=0<=a?a:0,y=this.height+y,this.height=0<=y?y:0,this},wt.w=function(){return isFinite(this.width)&&isFinite(this.height)},Ee.alloc=function(){var a=$r.pop();return a===void 0?new Ee:a},Ee.free=function(a){$r.push(a)},Ee.prototype.isReal=Ee.prototype.w,Ee.prototype.inflate=Ee.prototype.Bc,Ee.prototype.equalsApprox=Ee.prototype.Xa,Ee.prototype.equalTo=Ee.prototype.hi,Ee.prototype.equals=Ee.prototype.D,Ee.prototype.set=Ee.prototype.set,Ee.prototype.setTo=Ee.prototype.sg;var $r=[];Ee.className="Size",Ee.parse=Jo,Ee.stringify=nr,Ee.ZeroSize=fn=new Ee(0,0).ja(),Ee.OneSize=gi=new Ee(1,1).ja(),Ee.SixSize=Wi=new Ee(6,6).ja(),Ee.EightSize=ki=new Ee(8,8).ja(),Ee.TenSize=vi=new Ee(10,10).ja(),Ee.InfiniteSize=Ji=new Ee(1/0,1/0).ja(),Ee.NoSize=Ki=new Ee(NaN,NaN).ja(),Ee.parse=Jo,Ee.stringify=nr;function be(a,y,x,E){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 E=="number"&&(0<=E||isNaN(E))?(this.x=a,this.y=y,this.width=x,this.height=E):a instanceof It?(x=a.x,a=a.y,y instanceof It?(E=y.x,y=y.y,this.x=Math.min(x,E),this.y=Math.min(a,y),this.width=Math.abs(x-E),this.height=Math.abs(a-y)):y instanceof Ee?(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+", "+E),this._isFrozen=!1}wt=be.prototype,wt.assign=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},wt.h=function(a,y,x,E){return this.x=a,this.y=y,this.width=x,this.height=E,this};function Ir(a,y,x){a.width=y,a.height=x}wt.sg=function(a,y,x,E){return this.x=a,this.y=y,this.width=x,this.height=E,this},wt.set=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},wt.dd=function(a){return this.x=a.x,this.y=a.y,this},wt.tA=function(a){return this.width=a.width,this.height=a.height,this},be.prototype.copy=function(){var a=new be;return a.x=this.x,a.y=this.y,a.width=this.width,a.height=this.height,a},wt=be.prototype,wt.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},wt.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},wt.freeze=function(){return this._isFrozen=!0,this},wt.ka=function(){return Object.isFrozen(this)&&zt("cannot thaw constant: "+this),this._isFrozen=!1,this};function Ea(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var E=a[y++];E&&(x=parseFloat(E));for(var b=0;a[y]==="";)y++;(E=a[y++])&&(b=parseFloat(E));for(var z=0;a[y]==="";)y++;(E=a[y++])&&(z=parseFloat(E));for(var tt=0;a[y]==="";)y++;return(E=a[y++])&&(tt=parseFloat(E)),new be(x,b,z,tt)}return new be}function js(a){return a.x.toString()+" "+a.y.toString()+" "+a.width.toString()+" "+a.height.toString()}wt.toString=function(){return"Rect("+this.x+","+this.y+","+this.width+","+this.height+")"},wt.D=function(a){return a instanceof be?this.x===a.x&&this.y===a.y&&this.width===a.width&&this.height===a.height:!1},wt.hi=function(a,y,x,E){return this.x===a&&this.y===y&&this.width===x&&this.height===E},wt.Xa=function(a){return se.B(this.x,a.x)&&se.B(this.y,a.y)&&se.B(this.width,a.width)&&se.B(this.height,a.height)};function cl(a,y){return se.$(a.x,y.x)&&se.$(a.y,y.y)&&se.$(a.width,y.width)&&se.$(a.height,y.height)}wt.ca=function(a){return this.x<=a.x&&this.x+this.width>=a.x&&this.y<=a.y&&this.y+this.height>=a.y},wt.Re=function(a){return this.x<=a.x&&a.x+a.width<=this.x+this.width&&this.y<=a.y&&a.y+a.height<=this.y+this.height},wt.contains=function(a,y,x,E){return x===void 0&&(x=0),E===void 0&&(E=0),this.x<=a&&a+x<=this.x+this.width&&this.y<=y&&y+E<=this.y+this.height},wt.offset=function(a,y){return this.x+=a,this.y+=y,this},wt.Bc=function(a,y){return pr(this,y,a,y,a)},wt.Co=function(a){return pr(this,a.top,a.right,a.bottom,a.left)},wt.Fv=function(a){return pr(this,-a.top,-a.right,-a.bottom,-a.left)},wt.Hz=function(a,y,x,E){return pr(this,a,y,x,E)};function pr(a,y,x,E,b){var z=a.width;return x+b<=-z?(a.x+=z/2,a.width=0):(a.x-=b,a.width+=x+b),x=a.height,y+E<=-x?(a.y+=x/2,a.height=0):(a.y-=y,a.height+=y+E),a}wt.Ex=function(a){return fa(this,a.x,a.y,a.width,a.height)},wt.Uu=function(a,y,x,E){return fa(this,a,y,x,E)};function fa(a,y,x,E,b){var z=Math.max(a.x,y),tt=Math.max(a.y,x);return y=Math.min(a.x+a.width,y+E),x=Math.min(a.y+a.height,x+b),a.x=z,a.y=tt,a.width=Math.max(0,y-z),a.height=Math.max(0,x-tt),a}wt.Yc=function(a){return this.Vu(a.x,a.y,a.width,a.height)},wt.Vu=function(a,y,x,E){var b=this.width,z=this.x;return b!==1/0&&x!==1/0&&(b+=z,x+=a,isNaN(x)||isNaN(b)||z>x||a>b)?!1:(a=this.height,x=this.y,!(a!==1/0&&E!==1/0&&(a+=x,E+=y,isNaN(E)||isNaN(a)||x>E||y>a)))};function jo(a,y){var x=a.width,E=a.x,b=y.x-10;return E>y.width+10+10+b||b>x+E?!1:(x=a.height,a=a.y,E=y.y-10,!(a>y.height+10+10+E||E>x+a))}wt.Ye=function(a){return uo(this,a.x,a.y,0,0)},wt.ed=function(a){return uo(this,a.x,a.y,a.width,a.height)},wt.Kv=function(a,y,x,E){return x===void 0&&(x=0),E===void 0&&(E=0),uo(this,a,y,x,E)};function uo(a,y,x,E,b){var z=Math.min(a.x,y),tt=Math.min(a.y,x);return y=Math.max(a.x+a.width,y+E),x=Math.max(a.y+a.height,x+b),a.x=z,a.y=tt,a.width=y-z,a.height=x-tt,a}wt.yi=function(a,y,x){return this.x=a-x.offsetX-x.x*this.width,this.y=y-x.offsetY-x.y*this.height,this};function Fo(a,y,x,E,b,z,tt,ot){return tt===void 0&&(tt=0),ot===void 0&&(ot=0),a<=b&&b+tt<=a+x&&y<=z&&z+ot<=y+E}function mr(a,y,x,E,b,z,tt,ot){return a>tt+b||b>x+a?!1:!(y>ot+z||z>E+y)}wt.w=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},wt.Mz=function(){return this.width===0&&this.height===0},be.alloc=function(){var a=$o.pop();return a===void 0?new be:a},be.allocAt=function(a,y,x,E){var b=$o.pop();return b===void 0?new be(a,y,x,E):b.h(a,y,x,E)},be.free=function(a){$o.push(a)},qt.Object.defineProperties(be.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 It(this.x,this.y)},set:function(a){this.x=a.x,this.y=a.y}},size:{get:function(){return new Ee(this.width,this.height)},set:function(a){this.width=a.width,this.height=a.height}},center:{get:function(){return new It(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}}}),be.prototype.isEmpty=be.prototype.Mz,be.prototype.isReal=be.prototype.w,be.intersectsLineSegment=function(a,y,x,E,b,z,tt,ot){return se.Fx(a,y,x,E,b,z,tt,ot)},be.prototype.setSpot=be.prototype.yi,be.prototype.union=be.prototype.Kv,be.prototype.unionRect=be.prototype.ed,be.prototype.unionPoint=be.prototype.Ye,be.prototype.intersects=be.prototype.Vu,be.prototype.intersectsRect=be.prototype.Yc,be.prototype.intersect=be.prototype.Uu,be.prototype.intersectRect=be.prototype.Ex,be.prototype.grow=be.prototype.Hz,be.prototype.subtractMargin=be.prototype.Fv,be.prototype.addMargin=be.prototype.Co,be.prototype.inflate=be.prototype.Bc,be.prototype.offset=be.prototype.offset,be.prototype.contains=be.prototype.contains,be.prototype.containsRect=be.prototype.Re,be.prototype.containsPoint=be.prototype.ca,be.prototype.equalsApprox=be.prototype.Xa,be.prototype.equalTo=be.prototype.hi,be.prototype.equals=be.prototype.D,be.prototype.setSize=be.prototype.tA,be.prototype.setPoint=be.prototype.dd,be.prototype.set=be.prototype.set,be.prototype.setTo=be.prototype.sg;var ar=null,Qr=null,$o=[];be.className="Rect",be.parse=Ea,be.stringify=js,be.contains=Fo,be.intersects=mr,be.ZeroRect=ar=new be(0,0,0,0).ja(),be.NoRect=Qr=new be(NaN,NaN,NaN,NaN).ja(),be.parse=Ea,be.stringify=js,be.contains=Fo,be.intersects=mr;function yi(a,y,x,E){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):E!==void 0?(this.top=a,this.right=y,this.bottom=x,this.left=E):zt("Invalid arguments to Margin constructor: "+a+", "+y+", "+x+", "+E),this._isFrozen=!1}yi.prototype.assign=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},yi.prototype.sg=function(a,y,x,E){return this.top=a,this.right=y,this.bottom=x,this.left=E,this},yi.prototype.set=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},yi.prototype.copy=function(){var a=new yi;return a.top=this.top,a.right=this.right,a.bottom=this.bottom,a.left=this.left,a},wt=yi.prototype,wt.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},wt.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},wt.freeze=function(){return this._isFrozen=!0,this},wt.ka=function(){return Object.isFrozen(this)&&zt("cannot thaw constant: "+this),this._isFrozen=!1,this};function Ss(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=NaN;a[y]==="";)y++;var E=a[y++];if(E&&(x=parseFloat(E)),isNaN(x))return new yi;for(var b=NaN;a[y]==="";)y++;if((E=a[y++])&&(b=parseFloat(E)),isNaN(b))return new yi(x);for(var z=NaN;a[y]==="";)y++;if((E=a[y++])&&(z=parseFloat(E)),isNaN(z))return new yi(x,b);for(var tt=NaN;a[y]==="";)y++;return(E=a[y++])&&(tt=parseFloat(E)),isNaN(tt)?new yi(x,b):new yi(x,b,z,tt)}return new yi}function Aa(a){return a.top.toString()+" "+a.right.toString()+" "+a.bottom.toString()+" "+a.left.toString()}wt.toString=function(){return"Margin("+this.top+","+this.right+","+this.bottom+","+this.left+")"},wt.D=function(a){return a instanceof yi?this.top===a.top&&this.right===a.right&&this.bottom===a.bottom&&this.left===a.left:!1},wt.hi=function(a,y,x,E){return this.top===a&&this.right===y&&this.bottom===x&&this.left===E},wt.Xa=function(a){return se.B(this.top,a.top)&&se.B(this.right,a.right)&&se.B(this.bottom,a.bottom)&&se.B(this.left,a.left)},wt.w=function(){return isFinite(this.top)&&isFinite(this.right)&&isFinite(this.bottom)&&isFinite(this.left)},yi.alloc=function(){var a=_a.pop();return a===void 0?new yi:a},yi.free=function(a){_a.push(a)},yi.prototype.isReal=yi.prototype.w,yi.prototype.equalsApprox=yi.prototype.Xa,yi.prototype.equalTo=yi.prototype.hi,yi.prototype.equals=yi.prototype.D,yi.prototype.set=yi.prototype.set,yi.prototype.setTo=yi.prototype.sg;var Rs=null,Ll=null,_a=[];yi.className="Margin",yi.parse=Ss,yi.stringify=Aa,yi.ZeroMargin=Rs=new yi(0,0,0,0).ja(),yi.TwoMargin=Ll=new yi(2,2,2,2).ja(),yi.parse=Ss,yi.stringify=Aa;function ni(a,y,x,E){a===void 0?this.offsetY=this.offsetX=this.y=this.x=0:(y===void 0&&(y=0),x===void 0&&(x=0),E===void 0&&(E=0),this.x=a,this.y=y,this.offsetX=x,this.offsetY=E),this._isFrozen=!1}var lr,ir,Xr,uu,Ul,po,vh,gl,ia,zs,Fl,kl,Qs,za,Sn,eo,Po,To,Yo,No,xr,vr,xs,Jr,Xs,Or,sd,yh,Bl,fl,as,Gs,ts,qr,pl,hu;ni.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},ni.prototype.sg=function(a,y,x,E){return this.x=a,this.y=y,this.offsetX=x,this.offsetY=E,this},ni.prototype.set=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},ni.prototype.copy=function(){var a=new ni;return a.x=this.x,a.y=this.y,a.offsetX=this.offsetX,a.offsetY=this.offsetY,a},wt=ni.prototype,wt.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},wt.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},wt.freeze=function(){return this._isFrozen=!0,this},wt.ka=function(){return Object.isFrozen(this)&&zt("cannot thaw constant: "+this),this._isFrozen=!1,this};function Gr(a,y){return a.x=NaN,a.y=NaN,a.offsetX=y,a}function Ic(a){if(typeof a=="string"){if(a=a.trim(),a==="None")return lr;if(a==="TopLeft")return ir;if(a==="Top"||a==="TopCenter"||a==="MiddleTop")return Xr;if(a==="TopRight")return uu;if(a==="Left"||a==="LeftCenter"||a==="MiddleLeft")return Ul;if(a==="Center")return po;if(a==="Right"||a==="RightCenter"||a==="MiddleRight")return vh;if(a==="BottomLeft")return gl;if(a==="Bottom"||a==="BottomCenter"||a==="MiddleBottom")return ia;if(a==="BottomRight")return zs;if(a==="TopSide")return Fl;if(a==="LeftSide")return kl;if(a==="RightSide")return Qs;if(a==="BottomSide")return za;if(a==="TopBottomSides")return Sn;if(a==="LeftRightSides")return eo;if(a==="TopLeftSides")return Po;if(a==="TopRightSides")return To;if(a==="BottomLeftSides")return Yo;if(a==="BottomRightSides")return No;if(a==="NotTopSide")return xr;if(a==="NotLeftSide")return vr;if(a==="NotRightSide")return xs;if(a==="NotBottomSide")return Jr;if(a==="AllSides")return Xs;if(a==="Default")return Or;a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var E=a[y++];E!==void 0&&0<E.length&&(x=parseFloat(E));for(var b=0;a[y]==="";)y++;E=a[y++],E!==void 0&&0<E.length&&(b=parseFloat(E));for(var z=0;a[y]==="";)y++;E=a[y++],E!==void 0&&0<E.length&&(z=parseFloat(E));for(var tt=0;a[y]==="";)y++;return E=a[y++],E!==void 0&&0<E.length&&(tt=parseFloat(E)),new ni(x,b,z,tt)}return new ni}function Oc(a){return a.sb()?a.x.toString()+" "+a.y.toString()+" "+a.offsetX.toString()+" "+a.offsetY.toString():a.toString()}wt.toString=function(){return this.sb()?this.offsetX===0&&this.offsetY===0?"Spot("+this.x+","+this.y+")":"Spot("+this.x+","+this.y+","+this.offsetX+","+this.offsetY+")":this.D(lr)?"None":this.D(ir)?"TopLeft":this.D(Xr)?"Top":this.D(uu)?"TopRight":this.D(Ul)?"Left":this.D(po)?"Center":this.D(vh)?"Right":this.D(gl)?"BottomLeft":this.D(ia)?"Bottom":this.D(zs)?"BottomRight":this.D(Fl)?"TopSide":this.D(kl)?"LeftSide":this.D(Qs)?"RightSide":this.D(za)?"BottomSide":this.D(Sn)?"TopBottomSides":this.D(eo)?"LeftRightSides":this.D(Po)?"TopLeftSides":this.D(To)?"TopRightSides":this.D(Yo)?"BottomLeftSides":this.D(No)?"BottomRightSides":this.D(xr)?"NotTopSide":this.D(vr)?"NotLeftSide":this.D(xs)?"NotRightSide":this.D(Jr)?"NotBottomSide":this.D(Xs)?"AllSides":this.D(Or)?"Default":"None"},wt.D=function(a){return a instanceof ni?(this.x===a.x||isNaN(this.x)&&isNaN(a.x))&&(this.y===a.y||isNaN(this.y)&&isNaN(a.y))&&this.offsetX===a.offsetX&&this.offsetY===a.offsetY:!1},wt.gv=function(){return new ni(.5-(this.x-.5),.5-(this.y-.5),-this.offsetX,-this.offsetY)},wt.Hf=function(a){if(!this.$c())return!1;if(!a.$c())if(a.D(sd))a=kl;else if(a.D(yh))a=Qs;else if(a.D(Bl))a=Fl;else if(a.D(fl))a=za;else return!1;return a=a.offsetY,(this.offsetY&a)===a},wt.sb=function(){return!isNaN(this.x)&&!isNaN(this.y)},wt.Mc=function(){return isNaN(this.x)||isNaN(this.y)},wt.$c=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===1&&this.offsetY!==0},wt.ys=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===0&&this.offsetY===0},wt.Xb=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===-1&&this.offsetY===0},ni.alloc=function(){var a=jc.pop();return a===void 0?new ni:a},ni.free=function(a){jc.push(a)},ni.prototype.isDefault=ni.prototype.Xb,ni.prototype.isNone=ni.prototype.ys,ni.prototype.isSide=ni.prototype.$c,ni.prototype.isNoSpot=ni.prototype.Mc,ni.prototype.isSpot=ni.prototype.sb,ni.prototype.includesSide=ni.prototype.Hf,ni.prototype.opposite=ni.prototype.gv,ni.prototype.equals=ni.prototype.D,ni.prototype.set=ni.prototype.set,ni.prototype.setTo=ni.prototype.sg;var jc=[];ni.className="Spot",ni.parse=Ic,ni.stringify=Oc,ni.None=lr=Gr(new ni(0,0,0,0),0).ja(),ni.Default=Or=Gr(new ni(0,0,-1,0),-1).ja(),ni.TopLeft=ir=new ni(0,0,0,0).ja(),ni.TopCenter=Xr=new ni(.5,0,0,0).ja(),ni.TopRight=uu=new ni(1,0,0,0).ja(),ni.LeftCenter=Ul=new ni(0,.5,0,0).ja(),ni.Center=po=new ni(.5,.5,0,0).ja(),ni.RightCenter=vh=new ni(1,.5,0,0).ja(),ni.BottomLeft=gl=new ni(0,1,0,0).ja(),ni.BottomCenter=ia=new ni(.5,1,0,0).ja(),ni.BottomRight=zs=new ni(1,1,0,0).ja(),ni.MiddleTop=as=Xr,ni.MiddleLeft=Gs=Ul,ni.MiddleRight=ts=vh,ni.MiddleBottom=qr=ia,ni.Top=Bl=Xr,ni.Left=sd=Ul,ni.Right=yh=vh,ni.Bottom=fl=ia,ni.TopSide=Fl=Gr(new ni(0,0,1,1),1).ja(),ni.LeftSide=kl=Gr(new ni(0,0,1,2),1).ja(),ni.RightSide=Qs=Gr(new ni(0,0,1,4),1).ja(),ni.BottomSide=za=Gr(new ni(0,0,1,8),1).ja(),ni.TopBottomSides=Sn=Gr(new ni(0,0,1,9),1).ja(),ni.LeftRightSides=eo=Gr(new ni(0,0,1,6),1).ja(),ni.TopLeftSides=Po=Gr(new ni(0,0,1,3),1).ja(),ni.TopRightSides=To=Gr(new ni(0,0,1,5),1).ja(),ni.BottomLeftSides=Yo=Gr(new ni(0,0,1,10),1).ja(),ni.BottomRightSides=No=Gr(new ni(0,0,1,12),1).ja(),ni.NotTopSide=xr=Gr(new ni(0,0,1,14),1).ja(),ni.NotLeftSide=vr=Gr(new ni(0,0,1,13),1).ja(),ni.NotRightSide=xs=Gr(new ni(0,0,1,11),1).ja(),ni.NotBottomSide=Jr=Gr(new ni(0,0,1,7),1).ja(),ni.AllSides=Xs=Gr(new ni(0,0,1,15),1).ja(),pl=new ni(.156,.156).ja(),hu=new ni(.844,.844).ja(),ni.parse=Ic,ni.stringify=Oc;function Di(){this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0}Di.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},Di.prototype.setTransform=function(a,y,x,E,b,z){return this.m11=a,this.m12=y,this.m21=x,this.m22=E,this.dx=b,this.dy=z,this},Di.prototype.copy=function(){var a=new Di;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},Di.prototype.toString=function(){return"Transform("+this.m11+","+this.m12+","+this.m21+","+this.m22+","+this.dx+","+this.dy+")"},Di.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},Di.prototype.ws=function(){return this.dx===0&&this.dy===0&&this.m11===1&&this.m12===0&&this.m21===0&&this.m22===1},Di.prototype.reset=function(){return this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0,this},Di.prototype.multiply=function(a){var y=this.m11*a.m11+this.m21*a.m12,x=this.m12*a.m11+this.m22*a.m12,E=this.m11*a.m21+this.m21*a.m22,b=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=E,this.m22=b,this},Di.prototype.bv=function(a){var y=1/(a.m11*a.m22-a.m12*a.m21),x=a.m22*y,E=-a.m12*y,b=-a.m21*y,z=a.m11*y,tt=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*E,x=this.m12*x+this.m22*E,E=this.m11*b+this.m21*z,b=this.m12*b+this.m22*z,this.dx=this.m11*tt+this.m21*a+this.dx,this.dy=this.m12*tt+this.m22*a+this.dy,this.m11=y,this.m12=x,this.m21=E,this.m22=b,this},Di.prototype.Vj=function(){var a=1/(this.m11*this.m22-this.m12*this.m21),y=-this.m12*a,x=-this.m21*a,E=this.m11*a,b=a*(this.m21*this.dy-this.m22*this.dx),z=a*(this.m12*this.dx-this.m11*this.dy);return this.m11=this.m22*a,this.m12=y,this.m21=x,this.m22=E,this.dx=b,this.dy=z,this},Di.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 E=1}else a===180?(a=-1,E=0):a===270?(a=0,E=-1):(E=a*Math.PI/180,a=Math.cos(E),E=Math.sin(E));var b=this.m12*a+this.m22*E,z=this.m11*-E+this.m21*a,tt=this.m12*-E+this.m22*a;return this.m11=this.m11*a+this.m21*E,this.m12=b,this.m21=z,this.m22=tt,this.translate(-y,-x),this},wt=Di.prototype,wt.translate=function(a,y){return this.dx+=this.m11*a+this.m21*y,this.dy+=this.m12*a+this.m22*y,this},wt.scale=function(a,y){return y===void 0&&(y=a),this.m11*=a,this.m12*=a,this.m21*=y,this.m22*=y,this},wt.Ga=function(a){var y=a.x,x=a.y;return a.h(y*this.m11+x*this.m21+this.dx,y*this.m12+x*this.m22+this.dy)},wt.Cd=function(a){var y=1/(this.m11*this.m22-this.m12*this.m21),x=a.x,E=a.y;return a.h(x*this.m22*y+E*-this.m21*y+y*(this.m21*this.dy-this.m22*this.dx),x*-this.m12*y+E*this.m11*y+y*(this.m12*this.dx-this.m11*this.dy))},wt.Eu=function(a){var y=1/(this.m11*this.m22-this.m12*this.m21),x=1.25*a.x,E=1.2*a.y;return a.h(x*this.m22*y+E*-this.m21*y+y*(this.m21*this.dy-this.m22*this.dx),x*-this.m12*y+E*this.m11*y+y*(this.m12*this.dx-this.m11*this.dy))},wt.pp=function(a){var y=a.x,x=a.y,E=y+a.width,b=x+a.height,z=this.m11,tt=this.m12,ot=this.m21,rt=this.m22,at=this.dx,ut=this.dy,ft=y*z+x*ot+at,vt=y*tt+x*rt+ut,xt=E*z+x*ot+at,Pt=E*tt+x*rt+ut;return x=y*z+b*ot+at,y=y*tt+b*rt+ut,z=E*z+b*ot+at,E=E*tt+b*rt+ut,b=Math.min(ft,xt),ft=Math.max(ft,xt),xt=Math.min(vt,Pt),vt=Math.max(vt,Pt),b=Math.min(b,x),ft=Math.max(ft,x),xt=Math.min(xt,y),vt=Math.max(vt,y),b=Math.min(b,z),ft=Math.max(ft,z),xt=Math.min(xt,E),vt=Math.max(vt,E),a.h(b,xt,ft-b,vt-xt),a},Di.alloc=function(){var a=Jg.pop();return a===void 0?new Di:a},Di.free=function(a){Jg.push(a)},Di.prototype.transformRect=Di.prototype.pp,Di.prototype.transformPoint=Di.prototype.Ga,Di.prototype.scale=Di.prototype.scale,Di.prototype.translate=Di.prototype.translate,Di.prototype.rotate=Di.prototype.rotate,Di.prototype.invert=Di.prototype.Vj,Di.prototype.multiplyInverted=Di.prototype.bv,Di.prototype.multiply=Di.prototype.multiply,Di.prototype.reset=Di.prototype.reset,Di.prototype.isIdentity=Di.prototype.ws,Di.prototype.equals=Di.prototype.D,Di.prototype.setTransform=Di.prototype.setTransform,Di.prototype.set=Di.prototype.set;var Jg=[];Di.className="Transform",Di.xF="54a702f3e53909c447824c6706603faf4c";var se={AA:"7da71ca0ad381e90",wg:(Math.sqrt(2)-1)/3*4,Uv:null,sqrt:function(a){if(0>=a)return 0;var y=se.Uv;if(y===null){y=[];for(var x=0;2e3>=x;x++)y[x]=Math.sqrt(x);se.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,E,b,z,tt){if(0>=b&&(b=1e-6),a<x)var ot=a,rt=x;else ot=x,rt=a;if(y<E)var at=y,ut=E;else at=E,ut=y;if(a===x)return at<=tt&&tt<=ut&&a-b<=z&&z<=a+b;if(y===E)return ot<=z&&z<=rt&&y-b<=tt&&tt<=y+b;if(rt+=b,ot-=b,ot<=z&&z<=rt&&(ut+=b,at-=b,at<=tt&&tt<=ut))if(rt-ot>ut-at)if(a-x>b||x-a>b){if(z=(E-y)/(x-a)*(z-a)+y,z-b<=tt&&tt<=z+b)return!0}else return!0;else if(y-E>b||E-y>b){if(tt=(x-a)/(E-y)*(tt-y)+a,tt-b<=z&&z<=tt+b)return!0}else return!0;return!1},cs:function(a,y,x,E,b,z,tt,ot,rt,at,ut,ft){if(se.Yb(a,y,tt,ot,ft,x,E)&&se.Yb(a,y,tt,ot,ft,b,z))return se.Yb(a,y,tt,ot,ft,at,ut);var vt=(a+x)/2,xt=(y+E)/2,Pt=(x+b)/2,Mt=(E+z)/2;b=(b+tt)/2,z=(z+ot)/2,E=(vt+Pt)/2,x=(xt+Mt)/2,Pt=(Pt+b)/2,Mt=(Mt+z)/2;var jt=(E+Pt)/2,Tt=(x+Mt)/2;return se.cs(a,y,vt,xt,E,x,jt,Tt,rt,at,ut,ft)||se.cs(jt,Tt,Pt,Mt,b,z,tt,ot,rt,at,ut,ft)},ax:function(a,y,x,E,b,z,tt,ot,rt){var at=(x+b)/2,ut=(E+z)/2;return rt.h((((a+x)/2+at)/2+(at+(b+tt)/2)/2)/2,(((y+E)/2+ut)/2+(ut+(z+ot)/2)/2)/2),rt},My:function(a,y,x,E,b,z,tt,ot){var rt=(x+b)/2,at=(E+z)/2;return Tn(((a+x)/2+rt)/2,((y+E)/2+at)/2,(rt+(b+tt)/2)/2,(at+(z+ot)/2)/2)},Dl:function(a,y,x,E,b,z,tt,ot,rt,at){if(se.Yb(a,y,tt,ot,rt,x,E)&&se.Yb(a,y,tt,ot,rt,b,z))uo(at,a,y,0,0),uo(at,tt,ot,0,0);else{var ut=(a+x)/2,ft=(y+E)/2,vt=(x+b)/2,xt=(E+z)/2;b=(b+tt)/2,z=(z+ot)/2,E=(ut+vt)/2,x=(ft+xt)/2,vt=(vt+b)/2,xt=(xt+z)/2;var Pt=(E+vt)/2,Mt=(x+xt)/2;se.Dl(a,y,ut,ft,E,x,Pt,Mt,rt,at),se.Dl(Pt,Mt,vt,xt,b,z,tt,ot,rt,at)}return at},Qe:function(a,y,x,E,b,z,tt,ot,rt,at){if(se.Yb(a,y,tt,ot,rt,x,E)&&se.Yb(a,y,tt,ot,rt,b,z))at.length===0&&(at.push(a),at.push(y)),at.push(tt),at.push(ot);else{var ut=(a+x)/2,ft=(y+E)/2,vt=(x+b)/2,xt=(E+z)/2;b=(b+tt)/2,z=(z+ot)/2,E=(ut+vt)/2,x=(ft+xt)/2,vt=(vt+b)/2,xt=(xt+z)/2;var Pt=(E+vt)/2,Mt=(x+xt)/2;se.Qe(a,y,ut,ft,E,x,Pt,Mt,rt,at),se.Qe(Pt,Mt,vt,xt,b,z,tt,ot,rt,at)}return at},jv:function(a,y,x,E,b,z,tt,ot,rt,at){if(se.Yb(a,y,b,z,at,x,E))return se.Yb(a,y,b,z,at,ot,rt);var ut=(a+x)/2,ft=(y+E)/2;x=(x+b)/2,E=(E+z)/2;var vt=(ut+x)/2,xt=(ft+E)/2;return se.jv(a,y,ut,ft,vt,xt,tt,ot,rt,at)||se.jv(vt,xt,x,E,b,z,tt,ot,rt,at)},OA:function(a,y,x,E,b,z,tt){return tt.h(((a+x)/2+(x+b)/2)/2,((y+E)/2+(E+z)/2)/2),tt},iv:function(a,y,x,E,b,z,tt,ot){if(se.Yb(a,y,b,z,tt,x,E))uo(ot,a,y,0,0),uo(ot,b,z,0,0);else{var rt=(a+x)/2,at=(y+E)/2;x=(x+b)/2,E=(E+z)/2;var ut=(rt+x)/2,ft=(at+E)/2;se.iv(a,y,rt,at,ut,ft,tt,ot),se.iv(ut,ft,x,E,b,z,tt,ot)}return ot},ep:function(a,y,x,E,b,z,tt,ot){if(se.Yb(a,y,b,z,tt,x,E))ot.length===0&&(ot.push(a),ot.push(y)),ot.push(b),ot.push(z);else{var rt=(a+x)/2,at=(y+E)/2;x=(x+b)/2,E=(E+z)/2;var ut=(rt+x)/2,ft=(at+E)/2;se.ep(a,y,rt,at,ut,ft,tt,ot),se.ep(ut,ft,x,E,b,z,tt,ot)}return ot},Eo:function(a,y,x,E,b,z,tt,ot,rt,at,ut,ft,vt,xt){if(se.Yb(a,y,tt,ot,vt,x,E)&&se.Yb(a,y,tt,ot,vt,b,z))return!se.Rl(a,y,tt,ot,rt,at,ut,ft)||(vt=(a-tt)*(at-ft)-(y-ot)*(rt-ut),vt===0)?!1:(xt.h(((a*ot-y*tt)*(rt-ut)-(a-tt)*(rt*ft-at*ut))/vt,((a*ot-y*tt)*(at-ft)-(y-ot)*(rt*ft-at*ut))/vt),!0);var Pt=(a+x)/2,Mt=(y+E)/2,jt=(x+b)/2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,ot,rt,at,ut,ft,vt)}return xt},qh:function(a,y,x,E,b,z,tt){return se.$(a,x)?(y<E?(x=y,y=E):x=E,z<x?(tt.h(a,x),!1):z>y?(tt.h(a,y),!1):(tt.h(a,z),!0)):se.$(y,E)?(a<x?(E=a,a=x):E=x,b<E?(tt.h(E,y),!1):b>a?(tt.h(a,y),!1):(tt.h(b,y),!0)):(b=((a-b)*(a-x)+(y-z)*(y-E))/((x-a)*(x-a)+(E-y)*(E-y)),-5e-6>b?(tt.h(a,y),!1):1.000005<b?(tt.h(x,E),!1):(tt.h(a+b*(x-a),y+b*(E-y)),!0))},Ve:function(a,y,x,E,b,z,tt,ot,rt){return se.B(a,x)&&se.B(y,E)?(rt.h(a,y),!1):se.$(b,tt)?se.$(a,x)?(se.qh(a,y,x,E,b,z,rt),!1):se.qh(a,y,x,E,b,(E-y)/(x-a)*(b-a)+y,rt):(ot=(ot-z)/(tt-b),se.$(a,x)?(x=ot*(a-b)+z,y<E?(b=y,y=E):b=E,x<b?(rt.h(a,b),!1):x>y?(rt.h(a,y),!1):(rt.h(a,x),!0)):(tt=(E-y)/(x-a),se.$(ot,tt)?(se.qh(a,y,x,E,b,z,rt),!1):(b=(tt*a-ot*b+z-y)/(tt-ot),se.$(tt,0)?(a<x?(E=a,a=x):E=x,b<E?(rt.h(E,y),!1):b>a?(rt.h(a,y),!1):(rt.h(b,y),!0)):se.qh(a,y,x,E,b,tt*(b-a)+y,rt))))},MA:function(a,y,x,E,b){return se.Ve(x.x,x.y,E.x,E.y,a.x,a.y,y.x,y.y,b)},KA:function(a,y,x,E,b,z,tt,ot,rt,at){function ut(jt,Tt){var Vt=(jt-a)*(jt-a)+(Tt-y)*(Tt-y);Vt<ft&&(ft=Vt,rt.h(jt,Tt))}var ft=1/0;ut(rt.x,rt.y);var vt=0,xt=0,Pt=0,Mt=0;if(b<tt?(vt=b,xt=tt):(vt=tt,xt=b),z<ot?(Pt=b,Mt=tt):(Pt=tt,Mt=b),vt=(xt-vt)/2+at,at=(Mt-Pt)/2+at,b=(b+tt)/2,z=(z+ot)/2,vt===0||at===0)return rt;if(.5>(x>a?x-a:a-x)){if(vt=1-(x-b)*(x-b)/(vt*vt),0>vt)return rt;vt=Math.sqrt(vt),E=-at*vt+z,ut(x,at*vt+z),ut(x,E)}else{if(x=(E-y)/(x-a),E=1/(vt*vt)+x*x/(at*at),ot=2*x*(y-x*a)/(at*at)-2*x*z/(at*at)-2*b/(vt*vt),vt=ot*ot-4*E*(2*x*a*z/(at*at)-2*y*z/(at*at)+z*z/(at*at)+b*b/(vt*vt)-1+(y-x*a)*(y-x*a)/(at*at)),0>vt)return rt;vt=Math.sqrt(vt),at=(-ot+vt)/(2*E),ut(at,x*at-x*a+y),vt=(-ot-vt)/(2*E),ut(vt,x*vt-x*a+y)}return rt},Ff:function(a,y,x,E,b,z,tt,ot,rt){var at=1e21,ut=a,ft=y;if(se.Ve(a,y,a,E,b,z,tt,ot,rt)){var vt=(rt.x-b)*(rt.x-b)+(rt.y-z)*(rt.y-z);vt<at&&(at=vt,ut=rt.x,ft=rt.y)}return se.Ve(x,y,x,E,b,z,tt,ot,rt)&&(vt=(rt.x-b)*(rt.x-b)+(rt.y-z)*(rt.y-z),vt<at&&(at=vt,ut=rt.x,ft=rt.y)),se.Ve(a,y,x,y,b,z,tt,ot,rt)&&(y=(rt.x-b)*(rt.x-b)+(rt.y-z)*(rt.y-z),y<at&&(at=y,ut=rt.x,ft=rt.y)),se.Ve(a,E,x,E,b,z,tt,ot,rt)&&(a=(rt.x-b)*(rt.x-b)+(rt.y-z)*(rt.y-z),a<at&&(at=a,ut=rt.x,ft=rt.y)),rt.h(ut,ft),1e21>at},us:function(a,y,x){return se.Fx(a.x,a.y,a.width,a.height,y.x,y.y,x.x,x.y)},Fx:function(a,y,x,E,b,z,tt,ot){var rt=a+x,at=y+E;return b===tt?(z<ot?(tt=z,z=ot):tt=ot,a<=b&&b<=rt&&tt<=at&&z>=y):z===ot?(b<tt?(ot=b,b=tt):ot=tt,y<=z&&z<=at&&ot<=rt&&b>=a):!!(Fo(a,y,x,E,b,z)||Fo(a,y,x,E,tt,ot)||se.Rl(a,y,rt,y,b,z,tt,ot)||se.Rl(rt,y,rt,at,b,z,tt,ot)||se.Rl(rt,at,a,at,b,z,tt,ot)||se.Rl(a,at,a,y,b,z,tt,ot))},Rl:function(a,y,x,E,b,z,tt,ot){return a===x&&y===E&&b===tt&&z===ot?a===b&&y===z:0>=se.Fl(a,y,x,E,b,z)*se.Fl(a,y,x,E,tt,ot)&&0>=se.Fl(b,z,tt,ot,a,y)*se.Fl(b,z,tt,ot,x,E)},Fl:function(a,y,x,E,b,z){return x-=a,E-=y,a=b-a,y=z-y,z=a*E-y*x,z===0&&(z=a*x+y*E,0<z&&(z=(a-x)*x+(y-E)*E,0>z&&(z=0))),z},bp:function(a){return 0>a&&(a+=360),360<=a&&(a-=360),a},jx:function(a,y,x,E,b,z){var tt=Math.PI;z||(E*=tt/180,b*=tt/180);var ot=E>b?-1:1;z=[];var rt=tt/2,at=E;if(E=Math.min(2*tt,Math.abs(b-E)),1e-5>E)return rt=at+ot*Math.min(E,rt),ot=a+x*Math.cos(at),at=y+x*Math.sin(at),a+=x*Math.cos(rt),y+=x*Math.sin(rt),x=(ot+a)/2,rt=(at+y)/2,z.push([ot,at,x,rt,x,rt,a,y]),z;for(;1e-5<E;)b=at+ot*Math.min(E,rt),z.push(se.Vy(x,at,b,a,y)),E-=Math.abs(b-at),at=b;return z},Vy:function(a,y,x,E,b){var z=(x-y)/2,tt=a*Math.cos(z),ot=a*Math.sin(z),rt=-ot,at=tt*tt+rt*rt,ut=at+tt*tt+rt*ot;return at=4/3*(Math.sqrt(2*at*ut)-ut)/(tt*ot-rt*tt),ot=tt-at*rt,tt=rt+at*tt,rt=-tt,at=z+y,z=Math.cos(at),at=Math.sin(at),[E+a*Math.cos(y),b+a*Math.sin(y),E+ot*z-tt*at,b+ot*at+tt*z,E+ot*z-rt*at,b+ot*at+rt*z,E+a*Math.cos(x),b+a*Math.sin(x)]},No:function(a,y,x,E,b,z,tt){x=Math.floor((a-x)/b)*b+x,E=Math.floor((y-E)/z)*z+E;var ot=x;return x+b-a<b/2&&(ot=x+b),a=E,E+z-y<z/2&&(a=E+z),tt.h(ot,a),tt},vx:function(a,y){var x=Math.max(a,y);a=Math.min(a,y);var E;do y=x%a,x=E=a,a=y;while(0<y);return E},$y:function(a,y,x,E){var b=0>x,z=0>E;if(a<y)var tt=1,ot=0;else tt=0,ot=1;var rt=tt===0?a:y,at=tt===0?x:E;return(tt===0?b:z)&&(at=-at),tt=ot,x=tt===0?x:E,(tt===0?b:z)&&(x=-x),se.az(rt,tt===0?a:y,at,x,0,0)},az:function(a,y,x,E,b,z){if(0<E)if(0<x){b=a*a,z=y*y,a*=x;var tt=y*E,ot=-z+tt,rt=-z+Math.sqrt(a*a+tt*tt);y=ot;for(var at=0;9999999999>at&&(y=.5*(ot+rt),!(y===ot||y===rt));++at){var ut=a/(y+b),ft=tt/(y+z);if(ut=ut*ut+ft*ft-1,0<ut)ot=y;else if(0>ut)rt=y;else break}x=b*x/(y+b)-x,E=z*E/(y+z)-E,x=Math.sqrt(x*x+E*E)}else x=Math.abs(E-y);else E=a*a-y*y,z=a*x,z<E?(E=z/E,z=y*Math.sqrt(Math.abs(1-E*E)),x=a*E-x,x=Math.sqrt(x*x+z*z)):x=Math.abs(x-a);return x},Ze:new Pi,um:new Pi,Mf:new Pi,Nf:0,vm:100};se.za=se.AA;function cn(a){xo(this),this.l=2,a===void 0&&(a=cn.o),this.na=a,this.Ec=this.Dc=this.pd=this.od=0,a===cn.o?this.ee=new $e:(cn.V===null&&(cn.V=new $e().freeze()),this.ee=cn.V),this.aq=this.ee.Ja,this.Ip=new be().freeze(),this.ym=this.tk=null,this.zm=NaN,this.fg=ir,this.gg=zs,this.Rk=this.Sk=NaN,this.Uf=Xe}cn.prototype.copy=function(){var a=new cn;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===cn.o){for(var y=this.ee.s,x=a.ee,E=0;E<y.length;E++)x.add(y[E].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},cn.prototype.ja=function(){return this.freeze(),Object.freeze(this),this},cn.prototype.freeze=function(){if(this._isFrozen=!0,this.type!==cn.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},cn.prototype.ka=function(){if(Object.isFrozen(this)&&zt("cannot thaw constant: "+this),this._isFrozen=!1,this.type!==cn.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},cn.prototype.Xa=function(a){if(!(a instanceof cn))return!1;if(this.type!==a.type)return this.type===cn.j&&a.type===cn.o?bp(this,a):a.type===cn.j&&this.type===cn.o?bp(a,this):!1;if(this.type===cn.o){var y=this.figures.s;a=a.figures.s;var x=y.length;if(x!==a.length)return!1;for(var E=0;E<x;E++)if(!y[E].Xa(a[E]))return!1;return!0}return se.B(this.startX,a.startX)&&se.B(this.startY,a.startY)&&se.B(this.endX,a.endX)&&se.B(this.endY,a.endY)};function bp(a,y){return a.type!==cn.j||y.type!==cn.o?!1:!!(y.figures.count===1&&(y=y.figures.M(0),y.segments.count===1&&se.B(a.startX,y.startX)&&se.B(a.startY,y.startY)&&(y=y.segments.M(0),y.type===Oo&&se.B(a.endX,y.endX)&&se.B(a.endY,y.endY))))}cn.ia=function(a){return a.toString()},cn.prototype.qb=function(a){a.classType===cn&&(this.type=a)},cn.prototype.toString=function(a){switch(a===void 0&&(a=-1),this.type){case cn.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 cn.u:var y=new be(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 cn.F:if(y=new be(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 cn.o:y="",x=this.figures.s;for(var E=x.length,b=0;b<E;b++){var z=x[b];0<b&&(y+=" x "),z.isFilled&&(y+="F "),y+=z.toString(a)}return y;default:return this.type.toString()}},cn.nb=function(a){a=a.split(/[Xx]/);for(var y=a.length,x="",E=0;E<y;E++){var b=a[E];x=b.match(/[Ff]/)!==null?E===0?x+b:x+("X"+(b[0]===" "?"":" ")+b):x+((E===0?"":"X ")+"F"+(b[0]===" "?"":" ")+b)}return x},cn.parse=function(a,y){function x(){return Mt>=Kt-1?!0:at[Mt+1].match(te)!==null}function E(){return Mt++,at[Mt]}function b(Ei){var Si=parseFloat(E()),lo=parseFloat(E());jt===jt.toLowerCase()&&(Si=Yt.x+Si,lo=Yt.y+lo),Ei.h(Si,lo)}function z(){return b(Yt),Yt}function tt(){return b(Vt),Vt}function ot(){var Ei=Tt.toLowerCase();return Ei!=="c"&&Ei!=="s"&&Ei!=="q"&&Ei!=="t"?Yt:new It(2*Yt.x-Vt.x,2*Yt.y-Vt.y)}y===void 0&&(y=!1);var rt=/([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])/gm;a=a.replace(/,/gm," "),a=a.replace(rt,"$1 $2"),a=a.replace(rt,"$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 at=a.split(" ");for(a=0;a<at.length;a++){var ut=at[a];if(ut.match(/(\.[0-9]*)(\.)/gm)!==null){rt=Rn();for(var ft="",vt=!1,xt=0;xt<ut.length;xt++){var Pt=ut[xt];Pt!=="."||vt?Pt==="."?(rt.push(ft),ft="."):ft+=Pt:(vt=!0,ft+=Pt)}for(rt.push(ft),at.splice(a,1),ut=0;ut<rt.length;ut++)at.splice(a+ut,0,rt[ut]);a+=rt.length-1,qn(rt)}}var Mt=-1,jt="",Tt="";rt=new It(0,0);var Vt=new It(0,0),Yt=new It(0,0),Kt=at.length;a=B1(null),vt=ft=ut=!1,xt=!0,Pt=null;for(var te=/[UuBbMmZzLlHhVvCcSsQqTtAaFfXx]/;!(Mt>=Kt-1);)if(Tt=jt,jt=E(),jt!=="")switch(jt.toUpperCase()){case"X":xt=!0,ft=ut=!1;break;case"M":for(Pt=z(),a.mc===null||xt===!0?(Cg(a,Pt.x,Pt.y,ut,!ft,vt),xt=!1):a.moveTo(Pt.x,Pt.y),rt.assign(Yt);!x();)Pt=z(),a.lineTo(Pt.x,Pt.y);break;case"L":for(;!x();)Pt=z(),a.lineTo(Pt.x,Pt.y);break;case"H":for(;!x();)Yt=new It((jt===jt.toLowerCase()?Yt.x:0)+parseFloat(E()),Yt.y),a.lineTo(Yt.x,Yt.y);break;case"V":for(;!x();)Yt=new It(Yt.x,(jt===jt.toLowerCase()?Yt.y:0)+parseFloat(E())),a.lineTo(Yt.x,Yt.y);break;case"C":for(;!x();){Pt=new It,b(Pt);var me=tt(),Cn=z();$u(a,Pt.x,Pt.y,me.x,me.y,Cn.x,Cn.y)}break;case"S":for(;!x();)Pt=ot(),me=tt(),Cn=z(),$u(a,Pt.x,Pt.y,me.x,me.y,Cn.x,Cn.y);break;case"Q":for(;!x();)Pt=tt(),me=z(),O0(a,Pt.x,Pt.y,me.x,me.y);break;case"T":for(;!x();)Vt=Pt=ot(),me=z(),O0(a,Pt.x,Pt.y,me.x,me.y);break;case"B":for(;!x();){Pt=parseFloat(E()),me=parseFloat(E()),Cn=parseFloat(E());var Hn=parseFloat(E()),In=parseFloat(E()),on=In,ze=!1;x()||(on=parseFloat(E()),x()||(ze=parseFloat(E())!==0)),jt===jt.toLowerCase()&&(Cn+=Yt.x,Hn+=Yt.y),a.arcTo(Pt,me,Cn,Hn,In,on,ze)}break;case"A":for(;!x();)Pt=Math.abs(parseFloat(E())),me=Math.abs(parseFloat(E())),Cn=parseFloat(E()),In=Hn=!1,ze=on=0,on=E(),on.length===1?(Hn=!!parseFloat(on),In=!!parseFloat(E()),on=parseFloat(E())):on.length===2?(Hn=!!parseFloat(on[0]),In=!!parseFloat(on[1]),on=parseFloat(E())):(Hn=!!parseFloat(on[0]),In=!!parseFloat(on[1]),on=parseFloat(on.slice(2))),ze=parseFloat(E()),jt===jt.toLowerCase()&&(on=Yt.x+on,ze=Yt.y+ze),Yt.h(on,ze),Px(a,Pt,me,Cn,Hn,In,on,ze);break;case"Z":wx(a),Yt.assign(rt);break;case"F":for(Pt="",me=1;at[Mt+me];)if(at[Mt+me]==="0")vt=!0,me++;else if(at[Mt+me].match(/[Uu]/)!==null)me++;else if(at[Mt+me].match(te)===null)me++;else{Pt=at[Mt+me];break}Pt.match(/[Mm]/)?ut=!0:0<a.mc.segments.length&&(a.mc.isFilled=!0);break;case"U":for(Pt="",me=1;at[Mt+me];)if(at[Mt+me].match(/[Ff]/)!==null)me++;else if(at[Mt+me].match(te)===null)me++;else{Pt=at[Mt+me];break}Pt.match(/[Mm]/)?ft=!0:a.mc.isShadowed=!1}if(rt=a.os,j0=a,y)for(y=rt.figures.iterator;y.next();)y.value.isFilled=!0;return rt},cn.Ha=function(a,y){for(var x=a.length,E=It.alloc(),b=0;b<x;b++){var z=a[b];E.x=z[0],E.y=z[1],y.Ga(E),z[0]=E.x,z[1]=E.y,E.x=z[2],E.y=z[3],y.Ga(E),z[2]=E.x,z[3]=E.y,E.x=z[4],E.y=z[5],y.Ga(E),z[4]=E.x,z[5]=E.y,E.x=z[6],E.y=z[7],y.Ga(E),z[6]=E.x,z[7]=E.y}It.free(E)},cn.prototype.Zu=function(){if(this._isInvalidBounds)return!0;if(this.type===cn.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},cn.prototype.computeBounds=function(){if(this._isInvalidBounds=!1,this.ym=this.tk=null,this.zm=NaN,this.type===cn.o){this.aq=this.figures.Ja;for(var a=this.figures.s,y=a.length,x=0;x<y;x++){var E=a[x];E._isInvalidBounds=!1;var b=E.segments;E.sr=b.Ja,E=b.s,b=E.length;for(var z=0;z<b;z++){var tt=E[z];tt._isInvalidBounds=!1,tt.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),Dp(this,a,!1),uo(a,0,0,0,0),a.freeze()},cn.prototype.ix=function(){var a=new be;return Dp(this,a,!0),a};function Dp(a,y,x){switch(a.type){case cn.j:case cn.u:case cn.F:x?y.h(a.od,a.pd,0,0):uo(y,a.od,a.pd,0,0),uo(y,a.Dc,a.Ec,0,0);break;case cn.o:var E=a.figures;a=E.s,E=E.length;for(var b=0;b<E;b++){var z=a[b];x&&b===0?y.h(z.startX,z.startY,0,0):uo(y,z.startX,z.startY,0,0);for(var tt=z.segments.s,ot=tt.length,rt=z.startX,at=z.startY,ut=0;ut<ot;ut++){var ft=tt[ut];switch(ft.type){case Oo:case Nr:rt=ft.endX,at=ft.endY,uo(y,rt,at,0,0);break;case es:se.Dl(rt,at,ft.point1X,ft.point1Y,ft.point2X,ft.point2Y,ft.endX,ft.endY,.5,y),rt=ft.endX,at=ft.endY;break;case pa:se.iv(rt,at,ft.point1X,ft.point1Y,ft.endX,ft.endY,.5,y),rt=ft.endX,at=ft.endY;break;case yr:case Ma:var vt=ft.type===yr?oa(ft,z):Ga(ft,z,rt,at),xt=vt.length;if(xt===0){rt=ft.type===yr?ft.centerX:ft.endX,at=ft.type===yr?ft.centerY:ft.endY,uo(y,rt,at,0,0);break}ft=null;for(var Pt=0;Pt<xt;Pt++)ft=vt[Pt],se.Dl(ft[0],ft[1],ft[2],ft[3],ft[4],ft[5],ft[6],ft[7],.5,y);ft!==null&&(rt=ft[6],at=ft[7]);break;default:zt("Unknown Segment type: "+ft.type)}}}break;default:zt("Unknown Geometry type: "+a.type)}}cn.prototype.normalize=function(){this._isFrozen&&Fe(this);var a=this.ix();return this.offset(-a.x,-a.y),new It(-a.x,-a.y)},cn.prototype.offset=function(a,y){return this._isFrozen&&Fe(this),this.transform(1,0,0,1,a,y),this},cn.prototype.scale=function(a,y){return this._isFrozen&&Fe(this),this.transform(a,0,0,y,0,0),this},cn.prototype.rotate=function(a,y,x){this._isFrozen&&Fe(this),y===void 0&&(y=0),x===void 0&&(x=0);var E=Di.alloc();return E.reset(),E.rotate(a,y,x),this.transform(E.m11,E.m12,E.m21,E.m22,E.dx,E.dy),Di.free(E),this},wt=cn.prototype,wt.transform=function(a,y,x,E,b,z){switch(this.type){case cn.j:case cn.u:case cn.F:var tt=this.od,ot=this.pd;this.od=tt*a+ot*x+b,this.pd=tt*y+ot*E+z,tt=this.Dc,ot=this.Ec,this.Dc=tt*a+ot*x+b,this.Ec=tt*y+ot*E+z;break;case cn.o:for(var rt=this.figures.s,at=rt.length,ut=0;ut<at;ut++){var ft=rt[ut];tt=ft.startX,ot=ft.startY,ft.startX=tt*a+ot*x+b,ft.startY=tt*y+ot*E+z,ft=ft.segments.s;for(var vt=ft.length,xt=0;xt<vt;xt++){var Pt=ft[xt];switch(Pt.type){case Oo:case Nr:tt=Pt.endX,ot=Pt.endY,Pt.endX=tt*a+ot*x+b,Pt.endY=tt*y+ot*E+z;break;case es:tt=Pt.point1X,ot=Pt.point1Y,Pt.point1X=tt*a+ot*x+b,Pt.point1Y=tt*y+ot*E+z,tt=Pt.point2X,ot=Pt.point2Y,Pt.point2X=tt*a+ot*x+b,Pt.point2Y=tt*y+ot*E+z,tt=Pt.endX,ot=Pt.endY,Pt.endX=tt*a+ot*x+b,Pt.endY=tt*y+ot*E+z;break;case pa:tt=Pt.point1X,ot=Pt.point1Y,Pt.point1X=tt*a+ot*x+b,Pt.point1Y=tt*y+ot*E+z,tt=Pt.endX,ot=Pt.endY,Pt.endX=tt*a+ot*x+b,Pt.endY=tt*y+ot*E+z;break;case yr:tt=Pt.centerX,ot=Pt.centerY,Pt.centerX=tt*a+ot*x+b,Pt.centerY=tt*y+ot*E+z,y!==0&&(tt=180*Math.atan2(y,a)/Math.PI,0>tt&&(tt+=360),Pt.startAngle+=tt),0>a&&(Pt.startAngle=180-Pt.startAngle,Pt.sweepAngle=-Pt.sweepAngle),0>E&&(Pt.startAngle=-Pt.startAngle,Pt.sweepAngle=-Pt.sweepAngle),Pt.radiusX*=Math.sqrt(a*a+x*x),Pt.radiusY!==void 0&&(Pt.radiusY*=Math.sqrt(y*y+E*E));break;case Ma:if(tt=Pt.endX,ot=Pt.endY,Pt.endX=tt*a+ot*x+b,Pt.endY=tt*y+ot*E+z,Pt.radiusX===0||Pt.radiusY===0)break;y!==0&&(tt=180*Math.atan2(y,a)/Math.PI,0>tt&&(tt+=360),Pt.xAxisRotation+=tt),0>a&&(Pt.xAxisRotation=180-Pt.xAxisRotation,Pt.isClockwiseArc=!Pt.isClockwiseArc),0>E&&(Pt.xAxisRotation=-Pt.xAxisRotation,Pt.isClockwiseArc=!Pt.isClockwiseArc),Pt.radiusX*=Math.sqrt(a*a+x*x),Pt.radiusY*=Math.sqrt(y*y+E*E);break;default:zt("Unknown Segment type: "+Pt.type)}}}}return this._isInvalidBounds=!0,this},wt.ca=function(a,y){y===void 0&&(y=0);var x=this.od,E=this.pd,b=this.Dc,z=this.Ec;switch(this.type){case cn.j:return se.Yb(x,E,b,z,y,a.x,a.y);case cn.u:var tt=be.allocAt(Math.min(x,b)-y,Math.min(E,z)-y,Math.abs(b-x)+2*y,Math.abs(z-E)+2*y);return a=tt.ca(a),be.free(tt),a;case cn.F:tt=Math.min(x,b)-y;var ot=Math.min(E,z)-y;return x=(Math.abs(b-x)+2*y)/2,y=(Math.abs(z-E)+2*y)/2,0>=x||0>=y?!1:(tt=a.x-(tt+x),ot=a.y-(ot+y),1>=tt*tt/(x*x)+ot*ot/(y*y));case cn.o:return du(this,a,y,!0,!1);default:return!1}};function du(a,y,x,E,b){var z=y.x;y=y.y;for(var tt=a.bounds.x-20,ot=0,rt,at,ut,ft,vt=a.figures.s,xt=vt.length,Pt=0;Pt<xt;Pt++){var Mt=vt[Pt],jt=!Mt.isEvenOdd;if(Mt.isFilled){if(E&&Mt.ca(z,y,x))return!0;var Tt=Mt.segments;rt=Mt.startX,at=Mt.startY;for(var Vt=rt,Yt=at,Kt=Tt.s,te=0;te<=Tt.length;te++){var me=void 0;if(te!==Tt.length){me=Kt[te];var Cn=me.type;a=me.endX,ft=me.endY}else Cn=Oo,a=Vt,ft=Yt;switch(Cn){case Nr:if(Vt=cu(z,y,tt,y,rt,at,Vt,Yt),isNaN(Vt))return!0;ot+=Vt,Vt=a,Yt=ft;break;case Oo:if(rt=cu(z,y,tt,y,rt,at,a,ft),isNaN(rt))return!0;ot+=rt;break;case es:ut=se.Fo(rt,at,me.point1X,me.point1Y,me.point2X,me.point2Y,a,ft,tt,y,z,y,.5),ot+=ut;break;case pa:ut=se.Fo(rt,at,(rt+2*me.point1X)/3,(at+2*me.point1Y)/3,(2*me.point1X+a)/3,(2*me.point1Y+ft)/3,a,ft,tt,y,z,y,.5),ot+=ut;break;case yr:case Ma:Cn=me.type===yr?oa(me,Mt):Ga(me,Mt,rt,at);var Hn=Cn.length;if(Hn===0){if(rt=cu(z,y,tt,y,rt,at,me.type===yr?me.centerX:me.endX,me.type===yr?me.centerY:me.endY),isNaN(rt))return!0;ot+=rt;break}me=null;for(var In=0;In<Hn;In++){if(me=Cn[In],In===0){if(ut=cu(z,y,tt,y,rt,at,me[0],me[1]),isNaN(ut))return!0;ot+=ut}ut=se.Fo(me[0],me[1],me[2],me[3],me[4],me[5],me[6],me[7],tt,y,z,y,.5),ot+=ut}me!==null&&(a=me[6],ft=me[7]);break;default:zt("Unknown Segment type: "+me.type)}rt=a,at=ft}if(jt){if(ot!==0)return!0}else if(ot%2!==0)return!0;ot=0}else if(Mt.ca(z,y,b?x:x+2))return!0}return!1}function cu(a,y,x,E,b,z,tt,ot){if(se.Yb(b,z,tt,ot,.05,a,y))return NaN;var rt=(a-x)*(z-ot);if(rt===0)return 0;var at=((a*E-y*x)*(b-tt)-(a-x)*(b*ot-z*tt))/rt;if(y=(a*E-y*x)*(z-ot)/rt,at>=a)return 0;if((b>tt?b-tt:tt-b)<(z>ot?z-ot:ot-z)){if(z<ot){if(y<z||y>ot)return 0}else if(y<ot||y>z)return 0}else if(b<tt){if(at<b||at>tt)return 0}else if(at<tt||at>b)return 0;return 0<rt?1:-1}function Sh(a,y,x,E){a=a.figures.s;for(var b=a.length,z=0;z<b;z++)if(a[z].ca(y,x,E))return!0;return!1}wt.Pu=function(a,y){if(0>a?a=0:1<a&&(a=1),y===void 0&&(y=new It),this.type===cn.j)return y.h(this.startX+a*(this.endX-this.startX),this.startY+a*(this.endY-this.startY)),y;for(var x=this.flattenedSegments,E=this.flattenedLengths,b=x.length,z=this.flattenedTotalLength*a,tt=0,ot=0;ot<b;ot++){var rt=E[ot],at=rt.length;for(a=0;a<at;a++){var ut=rt[a];if(tt+ut>=z)return E=z-tt,E=ut===0?0:E/ut,x=x[ot],ot=x[2*a],b=x[2*a+1],y.h(ot+(x[2*a+2]-ot)*E,b+(x[2*a+3]-b)*E),y;tt+=ut}}return y},wt.wx=function(a){if(0>a?a=0:1<a&&(a=1),this.type===cn.j)return 180*Math.atan2(this.endY-this.startY,this.endX-this.startX)/Math.PI;for(var y=this.flattenedSegments,x=this.flattenedLengths,E=y.length,b=this.flattenedTotalLength*a,z=0,tt=0;tt<E;tt++){var ot=x[tt],rt=ot.length;for(a=0;a<rt;a++){var at=ot[a];if(z+at>=b)return b=y[tt],y=b[2*a],x=b[2*a+1],E=b[2*a+2],a=b[2*a+3],1>Math.abs(E-y)&&1>Math.abs(a-x)?0:1>Math.abs(E-y)?0<=a-x?90:270:1>Math.abs(a-x)?0<=E-y?0:180:180*Math.atan2(a-x,E-y)/Math.PI;z+=at}}return NaN},wt.Qu=function(a,y){if(0>a?a=0:1<a&&(a=1),y===void 0&&(y=[]),y.length=3,this.type===cn.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,E=this.flattenedLengths,b=x.length,z=this.flattenedTotalLength*a,tt=0,ot=0;ot<b;ot++){var rt=E[ot],at=rt.length;for(a=0;a<at;a++){var ut=rt[a];if(tt+ut>=z)return E=z-tt,E=ut===0?0:E/ut,ut=x[ot],x=ut[2*a],ot=ut[2*a+1],b=ut[2*a+2],a=ut[2*a+3],y[0]=x+(b-x)*E,y[1]=ot+(a-ot)*E,y[2]=1>Math.abs(b-x)&&1>Math.abs(a-ot)?0:1>Math.abs(b-x)?0<=a-ot?90:270:1>Math.abs(a-ot)?0<=b-x?0:180:180*Math.atan2(a-ot,b-x)/Math.PI,y;tt+=ut}}return y},wt.xx=function(a){if(this.type===cn.j){var y=this.startX,x=this.startY,E=this.endX,b=this.endY;if(y!==E||x!==b){var z=a.x;if(a=a.y,y===E){if(x<b){var tt=x;E=b}else tt=b,E=x;return a<=tt?tt===x?0:1:a>=E?E===x?0:1:Math.abs(a-x)/(E-tt)}if(x===b)return y<E?tt=y:(tt=E,E=y),z<=tt?tt===y?0:1:z>=E?E===y?0:1:Math.abs(z-y)/(E-tt);tt=(E-y)*(E-y)+(b-x)*(b-x);var ot=It.alloc();return se.qh(y,x,E,b,z,a,ot),a=ot.x,z=ot.y,It.free(ot),Math.sqrt(((a-y)*(a-y)+(z-x)*(z-x))/tt)}}else if(this.type===cn.u){tt=this.startX,ot=this.startY;var rt=this.endX;if(b=this.endY,tt!==rt||ot!==b){y=rt-tt,x=b-ot,z=2*y+2*x,E=a.x,a=a.y,E=Math.min(Math.max(E,tt),rt),a=Math.min(Math.max(a,ot),b),tt=Math.abs(E-tt),rt=Math.abs(E-rt),ot=Math.abs(a-ot),b=Math.abs(a-b);var at=Math.min(tt,rt,ot,b);if(at===ot)return E/z;if(at===rt)return(y+a)/z;if(at===b)return(2*y+x-E)/z;if(at===tt)return(2*y+2*x-a)/z}}else{y=this.flattenedSegments,x=this.flattenedLengths,z=this.flattenedTotalLength,E=It.alloc(),b=1/0,ot=tt=0,rt=y.length;for(var ut=at=0,ft=0;ft<rt;ft++)for(var vt=y[ft],xt=x[ft],Pt=vt.length,Mt=0;Mt<Pt;Mt+=2){var jt=vt[Mt],Tt=vt[Mt+1];if(Mt!==0){se.qh(at,ut,jt,Tt,a.x,a.y,E);var Vt=(E.x-a.x)*(E.x-a.x)+(E.y-a.y)*(E.y-a.y);Vt<b&&(b=Vt,tt=ot,tt+=Math.sqrt((E.x-at)*(E.x-at)+(E.y-ut)*(E.y-ut))),ot+=xt[(Mt-2)/2]}at=jt,ut=Tt}return It.free(E),a=tt/z,0>a?0:1<a?1:a}return 0};function Rc(a){if(a.tk===null){var y=a.tk=[],x=a.ym=[],E=[],b=[];if(a.type===cn.j)E.push(a.startX),E.push(a.startY),E.push(a.endX),E.push(a.endY),y.push(E),b.push(Math.sqrt((a.startX-a.endX)*(a.startX-a.endX)+(a.startY-a.endY)*(a.startY-a.endY))),x.push(b);else if(a.type===cn.u)E.push(a.startX),E.push(a.startY),E.push(a.endX),E.push(a.startY),E.push(a.endX),E.push(a.endY),E.push(a.startX),E.push(a.endY),E.push(a.startX),E.push(a.startY),y.push(E),b.push(Math.abs(a.startX-a.endX)),b.push(Math.abs(a.startY-a.endY)),b.push(Math.abs(a.startX-a.endX)),b.push(Math.abs(a.startY-a.endY)),x.push(b);else if(a.type===cn.F){var z=new Br;z.startX=a.endX,z.startY=(a.startY+a.endY)/2;var tt=new ro(yr);if(tt.startAngle=0,tt.sweepAngle=360,tt.centerX=(a.startX+a.endX)/2,tt.centerY=(a.startY+a.endY)/2,tt.radiusX=Math.abs(a.startX-a.endX)/2,tt.radiusY=Math.abs(a.startY-a.endY)/2,z.add(tt),a=oa(tt,z),b=a.length,b===0)E.push(tt.centerX),E.push(tt.centerY);else{tt=z.startX,z=z.startY;for(var ot=0;ot<b;ot++){var rt=a[ot];se.Qe(tt,z,rt[2],rt[3],rt[4],rt[5],rt[6],rt[7],.5,E),tt=rt[6],z=rt[7]}}y.push(E),x.push(Ud(E))}else for(a=a.figures.iterator;a.next();){b=a.value,E=[],E.push(b.startX),E.push(b.startY),tt=b.startX,z=b.startY,ot=tt,rt=z;for(var at=b.segments.s,ut=at.length,ft=0;ft<ut;ft++){var vt=at[ft];switch(vt.type){case Nr:4<=E.length&&(y.push(E),x.push(Ud(E))),E=[],E.push(vt.endX),E.push(vt.endY),tt=vt.endX,z=vt.endY,ot=tt,rt=z;break;case Oo:E.push(vt.endX),E.push(vt.endY),tt=vt.endX,z=vt.endY;break;case es:se.Qe(tt,z,vt.point1X,vt.point1Y,vt.point2X,vt.point2Y,vt.endX,vt.endY,.5,E),tt=vt.endX,z=vt.endY;break;case pa:se.ep(tt,z,vt.point1X,vt.point1Y,vt.endX,vt.endY,.5,E),tt=vt.endX,z=vt.endY;break;case yr:var xt=oa(vt,b),Pt=xt.length;if(Pt===0){E.push(vt.centerX),E.push(vt.centerY),tt=vt.centerX,z=vt.centerY;break}for(var Mt=0;Mt<Pt;Mt++){var jt=xt[Mt];se.Qe(tt,z,jt[2],jt[3],jt[4],jt[5],jt[6],jt[7],.5,E),tt=jt[6],z=jt[7]}break;case Ma:if(xt=Ga(vt,b,tt,z),Pt=xt.length,Mt=vt.endX,jt=vt.endY,Pt===0){E.push(Mt),E.push(jt),tt=Mt,z=jt;break}for(Mt=0;Mt<Pt;Mt++)jt=xt[Mt],se.Qe(tt,z,jt[2],jt[3],jt[4],jt[5],jt[6],jt[7],.5,E),tt=jt[6],z=jt[7];break;default:zt("Segment not of valid type: "+vt.type)}vt.isClosed&&(E.push(ot),E.push(rt))}4<=E.length&&(y.push(E),x.push(Ud(E)))}}}function Ud(a){for(var y=[],x=0,E=0,b=a.length,z=0;z<b;z+=2){var tt=a[z],ot=a[z+1];z!==0&&y.push(Math.sqrt(gn(x,E,tt,ot))),x=tt,E=ot}return y}wt.add=function(a){return this.ee.add(a),this},wt.pm=function(a,y,x,E,b,z,tt,ot){return this._isFrozen&&Fe(this),this.fg=new ni(a,y,b,z).freeze(),this.gg=new ni(x,E,tt,ot).freeze(),this},qt.Object.defineProperties(cn.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 Rc(this),this.tk}},flattenedLengths:{get:function(){return Rc(this),this.ym}},flattenedTotalLength:{get:function(){var a=this.zm;if(isNaN(a)){if(this.type===cn.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===cn.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,E=a=0;E<x;E++)for(var b=y[E],z=b.length,tt=0;tt<z;tt++)a+=b[tt]}this.zm=a}return a}},type:{get:function(){return this.na},set:function(a){this.na!==a&&(this._isFrozen&&Fe(this,a),this.na=a,a===cn.o?this.ee=new $e:(cn.V===null&&(cn.V=new $e().freeze()),this.ee=cn.V),this._isInvalidBounds=!0)}},startX:{get:function(){return this.od},set:function(a){this.od!==a&&(this._isFrozen&&Fe(this,a),this.od=a,this._isInvalidBounds=!0)}},startY:{get:function(){return this.pd},set:function(a){this.pd!==a&&(this._isFrozen&&Fe(this,a),this.pd=a,this._isInvalidBounds=!0)}},endX:{get:function(){return this.Dc},set:function(a){this.Dc!==a&&(this._isFrozen&&Fe(this,a),this.Dc=a,this._isInvalidBounds=!0)}},endY:{get:function(){return this.Ec},set:function(a){this.Ec!==a&&(this._isFrozen&&Fe(this,a),this.Ec=a,this._isInvalidBounds=!0)}},figures:{get:function(){return this.ee},set:function(a){this.ee!==a&&(this._isFrozen&&Fe(this,a),this.ee=a,this._isInvalidBounds=!0)}},spot1:{get:function(){return this.fg},set:function(a){this._isFrozen&&Fe(this,a),this.fg=a.J()}},spot2:{get:function(){return this.gg},set:function(a){this._isFrozen&&Fe(this,a),this.gg=a.J()}},defaultStretch:{get:function(){return this.Uf},set:function(a){this._isFrozen&&Fe(this,a),this.Uf=a}},bounds:{get:function(){return this.Zu()&&this.computeBounds(),this.Ip}}}),cn.prototype.setSpots=cn.prototype.pm,cn.prototype.add=cn.prototype.add,cn.prototype.getFractionForPoint=cn.prototype.xx,cn.prototype.getPointAndAngleAlongPath=cn.prototype.Qu,cn.prototype.getAngleAlongPath=cn.prototype.wx,cn.prototype.getPointAlongPath=cn.prototype.Pu,cn.prototype.containsPoint=cn.prototype.ca,cn.prototype.transform=cn.prototype.transform,cn.prototype.rotate=cn.prototype.rotate,cn.prototype.scale=cn.prototype.scale,cn.prototype.offset=cn.prototype.offset,cn.prototype.normalize=cn.prototype.normalize,cn.prototype.computeBoundsWithoutOrigin=cn.prototype.ix,cn.prototype.equalsApprox=cn.prototype.Xa,cn.className="Geometry",cn.j=new De(cn,"Line",0),cn.u=new De(cn,"Rectangle",1),cn.F=new De(cn,"Ellipse",2),cn.o=new De(cn,"Path",3),cn.V=null,cn.hb="UuBbMmZzLlHhVvCcSsQqTtAaFfXx",cn.className="Geometry",cn.stringify=cn.ia,cn.fillPath=cn.nb,cn.parse=cn.parse,cn.Line=cn.j,cn.Rectangle=cn.u,cn.Ellipse=cn.F,cn.Path=cn.o;function Br(a,y,x,E,b){xo(this),x===void 0&&(x=!0),E===void 0&&(E=!0),b===void 0&&(b=!1),this.l=2|(x?4:0)|(E?8:0)|(b?16:0),a!==void 0?this.od=a:this.od=0,y!==void 0?this.pd=y:this.pd=0,this.pl=new $e,this.sr=this.pl.Ja,this.fw=null}Br.prototype.copy=function(){var a=new Br;a.l=this.l&-2,a.od=this.od,a.pd=this.pd;for(var y=this.pl.s,x=y.length,E=a.pl,b=0;b<x;b++){var z=y[b].copy();E.add(z)}return a.sr=this.sr,a.fw=this.fw,a},wt=Br.prototype,wt.Xa=function(a){if(!(a instanceof Br&&se.B(this.startX,a.startX)&&se.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 E=0;E<x;E++)if(!y[E].Xa(a[E]))return!1;return!0},wt.toString=function(a){a===void 0&&(a=-1);for(var y=0>a?"M"+this.startX.toString()+" "+this.startY.toString():"M"+this.startX.toFixed(a)+" "+this.startY.toFixed(a),x=this.segments.s,E=x.length,b=0;b<E;b++)y+=" "+x[b].toString(a);return y},wt.freeze=function(){this._isFrozen=!0;var a=this.segments;a.freeze();var y=a.s;a=a.length;for(var x=0;x<a;x++)y[x].freeze();return this},wt.ka=function(){this._isFrozen=!1;var a=this.segments;a.ka(),a=a.s;for(var y=a.length,x=0;x<y;x++)a[x].ka();return this},wt.Zu=function(){if(this._isInvalidBounds)return!0;var a=this.segments;if(this.sr!==a.Ja)return!0;a=a.s;for(var y=a.length,x=0;x<y;x++)if(a[x]._isInvalidBounds)return!0;return!1},wt.add=function(a){return this.pl.add(a),this},wt.ca=function(a,y,x){for(var E=this.startX,b=this.startY,z=E,tt=b,ot=this.segments.s,rt=ot.length,at=0;at<rt;at++){var ut=ot[at];switch(ut.type){case Nr:z=ut.endX,tt=ut.endY,E=ut.endX,b=ut.endY;break;case Oo:if(se.Yb(E,b,ut.endX,ut.endY,x,a,y))return!0;E=ut.endX,b=ut.endY;break;case es:if(se.cs(E,b,ut.point1X,ut.point1Y,ut.point2X,ut.point2Y,ut.endX,ut.endY,.5,a,y,x))return!0;E=ut.endX,b=ut.endY;break;case pa:if(se.jv(E,b,ut.point1X,ut.point1Y,ut.endX,ut.endY,.5,a,y,x))return!0;E=ut.endX,b=ut.endY;break;case yr:case Ma:var ft=ut.type===yr?oa(ut,this):Ga(ut,this,E,b),vt=ft.length,xt=ut.type===yr?ut.centerX:ut.endX,Pt=ut.type===yr?ut.centerY:ut.endY;if(vt===0){if(se.Yb(E,b,xt,Pt,x,a,y))return!0;E=xt,b=Pt;break}for(xt=null,Pt=0;Pt<vt;Pt++)if(xt=ft[Pt],Pt===0&&se.Yb(E,b,xt[0],xt[1],x,a,y)||se.cs(xt[0],xt[1],xt[2],xt[3],xt[4],xt[5],xt[6],xt[7],.5,a,y,x))return!0;xt!==null&&(E=xt[6],b=xt[7]);break;default:zt("Unknown Segment type: "+ut.type)}if(ut.isClosed&&(E!==z||b!==tt)&&se.Yb(E,b,z,tt,x,a,y))return!0}return!1},qt.Object.defineProperties(Br.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&&Fe(this,a),this.l=a?this.l|4:this.l&-5}},isShadowed:{get:function(){return(this.l&8)!==0},set:function(a){this._isFrozen&&Fe(this,a),this.l=a?this.l|8:this.l&-9}},isEvenOdd:{get:function(){return(this.l&16)!==0},set:function(a){this._isFrozen&&Fe(this,a),this.l=a?this.l|16:this.l&-17}},startX:{get:function(){return this.od},set:function(a){this._isFrozen&&Fe(this,a),this.od=a,this._isInvalidBounds=!0}},startY:{get:function(){return this.pd},set:function(a){this._isFrozen&&Fe(this,a),this.pd=a,this._isInvalidBounds=!0}},segments:{get:function(){return this.pl},set:function(a){this._isFrozen&&Fe(this,a),this.pl=a,this._isInvalidBounds=!0}}}),Br.prototype.add=Br.prototype.add,Br.prototype.equalsApprox=Br.prototype.Xa,Br.className="PathFigure";function ro(a,y,x,E,b,z,tt,ot){xo(this),a===void 0&&(a=Oo),this.na=a,this.l=2,y!==void 0?this.Dc=y:this.Dc=0,x!==void 0?this.Ec=x:this.Ec=0,E===void 0&&(E=0),b===void 0&&(b=0),z===void 0&&(z=0),tt===void 0&&(tt=0),a===Ma?(a=z%360,0>a&&(a+=360),this.Ne=a,this.Vh=0,this.Wh=Math.max(E,0),this.Pg=Math.max(b,0),typeof tt=="boolean"?tt&&(this.isLargeArc=!0):typeof tt=="number"&&tt&&(this.isLargeArc=!0),ot&&(this.isClockwiseArc=!0)):(this.Ne=E,this.Vh=b,a===yr&&(z=Math.max(z,0)),this.Wh=z,typeof tt=="number"?(a===yr&&(tt=Math.max(tt,0)),this.Pg=tt):this.Pg=0),this.ae=null}ro.prototype.copy=function(){var a=new ro;return a.na=this.na,a.l=this.l&-2,a.Dc=this.Dc,a.Ec=this.Ec,a.Ne=this.Ne,a.Vh=this.Vh,a.Wh=this.Wh,a.Pg=this.Pg,a},wt=ro.prototype,wt.Xa=function(a){if(!(a instanceof ro)||this.type!==a.type||this.isClosed!==a.isClosed)return!1;switch(this.type){case Nr:case Oo:return se.B(this.endX,a.endX)&&se.B(this.endY,a.endY);case es:return se.B(this.endX,a.endX)&&se.B(this.endY,a.endY)&&se.B(this.point1X,a.point1X)&&se.B(this.point1Y,a.point1Y)&&se.B(this.point2X,a.point2X)&&se.B(this.point2Y,a.point2Y);case pa:return se.B(this.endX,a.endX)&&se.B(this.endY,a.endY)&&se.B(this.point1X,a.point1X)&&se.B(this.point1Y,a.point1Y);case yr:return se.B(this.startAngle,a.startAngle)&&se.B(this.sweepAngle,a.sweepAngle)&&se.B(this.centerX,a.centerX)&&se.B(this.centerY,a.centerY)&&se.B(this.radiusX,a.radiusX)&&se.B(this.radiusY,a.radiusY);case Ma:return this.isClockwiseArc===a.isClockwiseArc&&this.isLargeArc===a.isLargeArc&&se.B(this.xAxisRotation,a.xAxisRotation)&&se.B(this.endX,a.endX)&&se.B(this.endY,a.endY)&&se.B(this.radiusX,a.radiusX)&&se.B(this.radiusY,a.radiusY);default:return!1}},wt.qb=function(a){a.classType===ro&&(this.type=a)},wt.toString=function(a){switch(a===void 0&&(a=-1),this.type){case Nr:a=0>a?"M"+this.endX.toString()+" "+this.endY.toString():"M"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case Oo:a=0>a?"L"+this.endX.toString()+" "+this.endY.toString():"L"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case es: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 pa: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 yr: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 Ma:a=0>a?"A"+this.radiusX.toString()+" "+this.radiusY.toString()+" "+this.xAxisRotation.toString()+" "+(this.isLargeArc?1:0)+" "+(this.isClockwiseArc?1:0)+" "+this.endX.toString()+" "+this.endY.toString():"A"+this.radiusX.toFixed(a)+" "+this.radiusY.toFixed(a)+" "+this.xAxisRotation.toFixed(a)+" "+(this.isLargeArc?1:0)+" "+(this.isClockwiseArc?1:0)+" "+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;default:a=this.type.toString()}return a+(this.isClosed?"z":"")},wt.freeze=function(){return this._isFrozen=!0,this},wt.ka=function(){return this._isFrozen=!1,this},wt.close=function(){return this.isClosed=!0,this};function oa(a,y){if(a.ae!==null&&y._isInvalidBounds===!1)return a.ae;var x=a.radiusX,E=a.radiusY;if(E===void 0&&(E=x),x===0||E===0)return a.ae=[],a.ae;y=a.Ne;var b=a.Vh,z=se.jx(0,0,x<E?x:E,a.startAngle,a.startAngle+a.sweepAngle,!1);if(x!==E){var tt=Di.alloc();tt.reset(),x<E?tt.scale(1,E/x):tt.scale(x/E,1),cn.Ha(z,tt),Di.free(tt)}for(x=z.length,E=0;E<x;E++)tt=z[E],tt[0]+=y,tt[1]+=b,tt[2]+=y,tt[3]+=b,tt[4]+=y,tt[5]+=b,tt[6]+=y,tt[7]+=b;return a.ae=z,a.ae}function Ga(a,y,x,E){function b(Mt,jt,Tt,Vt){return(Mt*Vt<jt*Tt?-1:1)*Math.acos((Mt*Tt+jt*Vt)/(Math.sqrt(Mt*Mt+jt*jt)*Math.sqrt(Tt*Tt+Vt*Vt)))}if(a.ae!==null&&y._isInvalidBounds===!1)return a.ae;if(a.radiusX===0||a.radiusY===0)return a.ae=[],a.ae;y=a.Wh;var z=a.Pg;y===0&&(y=1e-4),z===0&&(z=1e-4);var tt=Math.PI/180*a.Ne,ot=a.isLargeArc,rt=a.isClockwiseArc,at=a.Dc,ut=a.Ec,ft=Math.cos(tt),vt=Math.sin(tt),xt=ft*(x-at)/2+vt*(E-ut)/2;tt=-vt*(x-at)/2+ft*(E-ut)/2;var Pt=xt*xt/(y*y)+tt*tt/(z*z);return 1<Pt&&(y*=Math.sqrt(Pt),z*=Math.sqrt(Pt)),Pt=(ot===rt?-1:1)*Math.sqrt((y*y*z*z-y*y*tt*tt-z*z*xt*xt)/(y*y*tt*tt+z*z*xt*xt)),isNaN(Pt)&&(Pt=0),ot=Pt*y*tt/z,Pt=Pt*-z*xt/y,isNaN(ot)&&(ot=0),isNaN(Pt)&&(Pt=0),x=(x+at)/2+ft*ot-vt*Pt,E=(E+ut)/2+vt*ot+ft*Pt,ut=b(1,0,(xt-ot)/y,(tt-Pt)/z),ft=(xt-ot)/y,at=(tt-Pt)/z,xt=(-xt-ot)/y,ot=(-tt-Pt)/z,tt=b(ft,at,xt,ot),xt=(ft*xt+at*ot)/(Math.sqrt(ft*ft+at*at)*Math.sqrt(xt*xt+ot*ot)),-1>=xt?tt=Math.PI:1<=xt&&(tt=0),!rt&&0<tt&&(tt-=2*Math.PI),rt&&0>tt&&(tt+=2*Math.PI),rt=y>z?1:y/z,xt=y>z?z/y:1,y=se.jx(0,0,y>z?y:z,ut,ut+tt,!0),z=Di.alloc(),z.reset(),z.translate(x,E),z.rotate(a.Ne,0,0),z.scale(rt,xt),cn.Ha(y,z),Di.free(z),a.ae=y,a.ae}qt.Object.defineProperties(ro.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&&Fe(this,a),this.na=a,this._isInvalidBounds=!0}},endX:{get:function(){return this.Dc},set:function(a){this._isFrozen&&Fe(this,a),this.Dc=a,this._isInvalidBounds=!0}},endY:{get:function(){return this.Ec},set:function(a){this._isFrozen&&Fe(this,a),this.Ec=a,this._isInvalidBounds=!0}},point1X:{get:function(){return this.Ne},set:function(a){this._isFrozen&&Fe(this,a),this.Ne=a,this._isInvalidBounds=!0}},point1Y:{get:function(){return this.Vh},set:function(a){this._isFrozen&&Fe(this,a),this.Vh=a,this._isInvalidBounds=!0}},point2X:{get:function(){return this.Wh},set:function(a){this._isFrozen&&Fe(this,a),this.Wh=a,this._isInvalidBounds=!0}},point2Y:{get:function(){return this.Pg},set:function(a){this._isFrozen&&Fe(this,a),this.Pg=a,this._isInvalidBounds=!0}},centerX:{get:function(){return this.Ne},set:function(a){this._isFrozen&&Fe(this,a),this.Ne=a,this._isInvalidBounds=!0}},centerY:{get:function(){return this.Vh},set:function(a){this._isFrozen&&Fe(this,a),this.Vh=a,this._isInvalidBounds=!0}},radiusX:{get:function(){return this.Wh},set:function(a){0>a&&Dn(a,">= zero",ro,"radiusX"),this._isFrozen&&Fe(this,a),this.Wh=a,this._isInvalidBounds=!0}},radiusY:{get:function(){return this.Pg},set:function(a){0>a&&Dn(a,">= zero",ro,"radiusY"),this._isFrozen&&Fe(this,a),this.Pg=a,this._isInvalidBounds=!0}},startAngle:{get:function(){return this.Dc},set:function(a){this._isFrozen&&Fe(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&&Fe(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&&Fe(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&&Fe(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&&Fe(this,a),a%=360,0>a&&(a+=360),this.Ne=a,this._isInvalidBounds=!0}}}),ro.prototype.equalsApprox=ro.prototype.Xa;var Nr=new De(ro,"Move",0),Oo=new De(ro,"Line",1),es=new De(ro,"Bezier",2),pa=new De(ro,"QuadraticBezier",3),yr=new De(ro,"Arc",4),Ma=new De(ro,"SvgArc",4);ro.className="PathSegment",ro.Move=Nr,ro.Line=Oo,ro.Bezier=es,ro.QuadraticBezier=pa,ro.Arc=yr,ro.SvgArc=Ma;function cs(){this.H=null,this.xu=new It(0,0).freeze(),this.mt=new It(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}cs.prototype.copy=function(){var a=new cs;return this.clone(a)},cs.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},cs.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},cs.prototype.So=function(a,y){var x=this.diagram;return x===null||mf(x,a,y),y},cs.prototype.Bz=function(a,y){var x=this.diagram;return x===null||(mf(x,a,y),y.assign(x.Ps(y))),y},qt.Object.defineProperties(cs.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}}}),cs.prototype.getMultiTouchDocumentPoint=cs.prototype.Bz,cs.prototype.getMultiTouchViewPoint=cs.prototype.So,cs.className="InputEvent";function bu(){this.H=null,this.xa="",this.ar=this.Lr=null}bu.prototype.copy=function(){var a=new bu;return a.H=this.H,a.xa=this.xa,a.Lr=this.Lr,a.ar=this.ar,a},bu.prototype.toString=function(){var a="*"+this.name;return this.subject!==null&&(a+=":"+this.subject.toString()),this.parameter!==null&&(a+="("+this.parameter.toString()+")"),a},qt.Object.defineProperties(bu.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}}}),bu.className="DiagramEvent";function Wo(){this.Fm=Uo,this.rf=this.Qq="",this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null}Wo.prototype.clear=function(){this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null},Wo.prototype.copy=function(){var a=new Wo;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=Te(y)&&typeof y.J=="function"?y.J():y,y=this.Rn,a.Rn=Te(y)&&typeof y.J=="function"?y.J():y,y=this.Mn,a.Mn=Te(y)&&typeof y.J=="function"?y.J():y,y=this.Ln,a.Ln=Te(y)&&typeof y.J=="function"?y.J():y,a},Wo.prototype.qb=function(a){a.classType===Wo&&(this.change=a)},Wo.prototype.toString=function(){var a="";return a=this.change===ra?a+"* ":this.change===Uo?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===ra?this.oldValue!==null&&(a+=" "+this.oldValue):(this.object!==null&&(a+=Xi(this.object)),this.oldValue!==null&&(a+=" old: "+Xi(this.oldValue)),this.oldParam!==null&&(a+=" "+this.oldParam),this.newValue!==null&&(a+=" new: "+Xi(this.newValue)),this.newParam!==null&&(a+=" "+this.newParam)),a},Wo.prototype.I=function(a){return a?this.oldValue:this.newValue},Wo.prototype.Dz=function(a){return a?this.oldParam:this.newParam},Wo.prototype.canUndo=function(){return this.model!==null||this.diagram!==null},Wo.prototype.undo=function(){this.canUndo()&&(this.model!==null?this.model.changeState(this,!0):this.diagram!==null&&this.diagram.changeState(this,!0))},Wo.prototype.canRedo=function(){return this.model!==null||this.diagram!==null},Wo.prototype.redo=function(){this.canRedo()&&(this.model!==null?this.model.changeState(this,!1):this.diagram!==null&&this.diagram.changeState(this,!1))},qt.Object.defineProperties(Wo.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===ra&&(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}}}),Wo.prototype.redo=Wo.prototype.redo,Wo.prototype.canRedo=Wo.prototype.canRedo,Wo.prototype.undo=Wo.prototype.undo,Wo.prototype.canUndo=Wo.prototype.canUndo,Wo.prototype.getParam=Wo.prototype.Dz,Wo.prototype.getValue=Wo.prototype.I,Wo.prototype.clear=Wo.prototype.clear;var ra=new De(Wo,"Transaction",-1),Uo=new De(Wo,"Property",0),ur=new De(Wo,"Insert",1),Ar=new De(Wo,"Remove",2);Wo.className="ChangedEvent",Wo.Transaction=ra,Wo.Property=Uo,Wo.Insert=ur,Wo.Remove=Ar;function jr(){this.o=new $e().freeze(),this.xa="",this.j=!1}jr.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 E=this.changes.M(x);E!==null&&(y+=`
|
|
`+E.toString())}}return y},jr.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()},jr.prototype.canUndo=function(){return this.isComplete},jr.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()}},jr.prototype.canRedo=function(){return this.isComplete},jr.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()}},jr.prototype.ak=function(){if(this.isComplete){var a=this.changes;a.ka();for(var y=new ri,x=0;x<a.count;x++){var E=a.M(x);if(E!==null&&E.change===Uo&&E.object){var b=y.get(E.object);b||(b=new ri,y.set(E.object,b));var z=b.get(E.propertyName);z===null?b.set(E.propertyName,-1):(0<z&&a.cd(z,null),b.set(E.propertyName,x))}}for(x=y=0;x<a.count;x++)E=a.M(x),E!==null&&(x>y&&a.cd(y,E),y++);for(;a.length>y;)a.pop();a.freeze()}},qt.Object.defineProperties(jr.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}}}),jr.prototype.optimize=jr.prototype.ak,jr.prototype.redo=jr.prototype.redo,jr.prototype.canRedo=jr.prototype.canRedo,jr.prototype.undo=jr.prototype.undo,jr.prototype.canUndo=jr.prototype.canUndo,jr.prototype.clear=jr.prototype.clear,jr.className="Transaction";function Zo(){this.Pt=new _e,this.Jd=!1,this.u=new $e().freeze(),this.Ce=-1,this.o=999,this.Fe=!1,this.Np=null,this.bi=0,this.j=!1,this.Ie=new $e().freeze(),this.hl=new $e,this.tt=!0,this.Dt=this.rq=this.Gt=this.Ft=!1}Zo.prototype.toString=function(a){var y="UndoManager "+this.historyIndex+"<"+this.history.count+"<="+this.maxHistoryLength;y+="[";for(var x=this.nestedTransactionNames.count,E=0;E<x;E++)0<E&&(y+=" "),y+=this.nestedTransactionNames.M(E);if(y+="]",a!==void 0&&0<a)for(x=this.history.count,E=0;E<x;E++)y+=`
|
|
`+this.history.M(E).toString(a-1);return y},Zo.prototype.clear=function(){var a=this.history;a.ka();for(var y=a.count-1;0<=y;y--){var x=a.M(y);x!==null&&x.clear()}a.clear(),this.Ce=-1,a.freeze(),this.Fe=!1,this.Np=null,this.bi=0,this.Ie.ka(),this.Ie.clear(),this.Ie.freeze(),this.hl.clear(),this.Dt=this.rq=this.Gt=this.Ft=!1},Zo.prototype.copyProperties=function(a){this.isEnabled=a.isEnabled,this.maxHistoryLength=a.maxHistoryLength,this.checksTransactionLevel=a.checksTransactionLevel},wt=Zo.prototype,wt.Xw=function(a){this.Pt.add(a)},wt.Rx=function(a){this.Pt.remove(a)},wt.Ea=function(a){if(a===void 0&&(a=""),a===null&&(a=""),this.isUndoingRedoing)return!1;this.tt===!0&&(this.tt=!1,this.bi++,this.isInternalTransaction||this.Ob("StartingFirstTransaction",a,this.currentTransaction),0<this.bi&&this.bi--),this.isEnabled&&(this.Ie.ka(),this.Ie.add(a),this.Ie.freeze(),this.currentTransaction===null?this.hl.add(0):this.hl.add(this.currentTransaction.changes.count)),this.bi++;var y=this.transactionLevel===1;return y&&(this.isInternalTransaction||this.Ob("StartedTransaction",a,this.currentTransaction)),y},wt.eb=function(a){return a===void 0&&(a=""),xh(this,!0,a)},wt.Kf=function(){return xh(this,!1,"")};function xh(a,y,x){if(a.isUndoingRedoing)return!1;a.checksTransactionLevel&&1>a.transactionLevel&&On("Ending transaction without having started a transaction: "+x);var E=a.transactionLevel===1,b=a.currentTransaction;E&&y&&(a.isInternalTransaction||a.Ob("CommittingTransaction",x,b));var z=0;if(0<a.transactionLevel&&(a.bi--,a.isEnabled)){var tt=a.Ie.count;0<tt&&(x===""&&(x=a.Ie.M(0)),a.Ie.ka(),a.Ie.mb(tt-1),a.Ie.freeze()),tt=a.hl.count,0<tt&&(z=a.hl.M(tt-1),a.hl.mb(tt-1))}if(E){if(y)a.rq=!1,b===null&&x!==""&&(b=a.currentTransaction),a.isEnabled&&b!==null&&(b.isComplete||(b.isComplete=!0,b.name=x),a.lx(),y=a.history,y.ka(),E=a.maxHistoryLength,0<=E&&(E===0?y.clear():y.count>=E&&(z=y.M(0),z!==null&&z.clear(),y.mb(0),a.Ce--)),E===0||y.count!==0&&y.get(y.count-1)===b||(y.add(b),a.Ce++),y.freeze()),a.isInternalTransaction||a.Ob("CommittedTransaction",x,b);else{a.Fe=!0;try{a.isEnabled&&b!==null&&(b.isComplete=!0,b.undo())}finally{a.isInternalTransaction||a.Ob("RolledBackTransaction",x,b),a.Fe=!1}b!==null&&b.clear()}return a.Np=null,a.isPendingClear&&a.clear(),a.isPendingClear=!1,a.isPendingUnmodified=!1,!0}if(a.isEnabled&&!y&&b!==null){for(a=z,x=b.changes,b=x.count-1;b>=a;b--)y=x.M(b),y!==null&&y.undo(),x.ka(),x.mb(b);x.freeze()}return!1}wt.lx=function(){if(!this.isUndoingRedoing&&this.canRedo()){var a=this.history;a.ka();for(var y=a.count-1;y>this.historyIndex;y--){var x=a.M(y);x!==null&&x.clear(),a.mb(y),this.rq=!0}a.freeze()}},Zo.prototype.canUndo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var a=this.transactionToUndo;return!!(a!==null&&a.canUndo())},Zo.prototype.undo=function(){if(this.canUndo()){var a=this.transactionToUndo;try{this.Fe=!0,this.Ob("StartingUndo","Undo",a),this.Ce--,a.undo()}catch(y){On("undo error: "+y.toString())}finally{this.Ob("FinishedUndo","Undo",a),this.Fe=!1}}},Zo.prototype.canRedo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var a=this.transactionToRedo;return!!(a!==null&&a.canRedo())},Zo.prototype.redo=function(){if(this.canRedo()){var a=this.transactionToRedo;try{this.Fe=!0,this.Ob("StartingRedo","Redo",a),this.Ce++,a.redo()}catch(y){On("redo error: "+y.toString())}finally{this.Ob("FinishedRedo","Redo",a),this.Fe=!1}}},Zo.prototype.Ob=function(a,y,x){x===void 0&&(x=null);var E=new Wo;for(E.change=ra,E.propertyName=a,E.object=x,E.oldValue=y,a=this.models;a.next();)y=a.value,E.model=y,y.ds(E)},Zo.prototype.Tu=function(a){if(this.isEnabled&&!this.isUndoingRedoing&&!this.skipsEvent(a)){var y=this.currentTransaction;y===null&&(this.Np=y=new jr);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||On("Change not within a transaction: "+x.toString()))}},Zo.prototype.skipsEvent=function(a){if(a===null||0>a.change.value)return!0;if(a=a.object,a===null)return!1;if(a.layer!==void 0){if(a=a.layer,a!==null&&a.isTemporary)return!0}else if(a.isTemporary)return!0;return!1},qt.Object.defineProperties(Zo.prototype,{models:{get:function(){return this.Pt.iterator}},isEnabled:{get:function(){return this.Jd},set:function(a){this.Jd=a}},transactionToUndo:{get:function(){return 0<=this.historyIndex&&this.historyIndex<=this.history.count-1?this.history.M(this.historyIndex):null}},transactionToRedo:{get:function(){return this.historyIndex<this.history.count-1?this.history.M(this.historyIndex+1):null}},isUndoingRedoing:{get:function(){return this.Fe}},history:{get:function(){return this.u}},maxHistoryLength:{get:function(){return this.o},set:function(a){this.o=a}},historyIndex:{get:function(){return this.Ce}},currentTransaction:{get:function(){return this.Np}},transactionLevel:{get:function(){return this.bi}},isInTransaction:{get:function(){return 0<this.bi}},checksTransactionLevel:{get:function(){return this.j},set:function(a){this.j=a}},nestedTransactionNames:{get:function(){return this.Ie}},isPendingClear:{get:function(){return this.Ft},set:function(a){this.Ft=a}},isPendingUnmodified:{get:function(){return this.Gt},set:function(a){this.Gt=a}},isInternalTransaction:{get:function(){return this.Dt},set:function(a){this.Dt=a}},isJustDiscarded:{get:function(){return this.rq}}}),Zo.prototype.handleChanged=Zo.prototype.Tu,Zo.prototype.redo=Zo.prototype.redo,Zo.prototype.undo=Zo.prototype.undo,Zo.prototype.canUndo=Zo.prototype.canUndo,Zo.prototype.discardHistoryAfterIndex=Zo.prototype.lx,Zo.prototype.rollbackTransaction=Zo.prototype.Kf,Zo.prototype.commitTransaction=Zo.prototype.eb,Zo.prototype.startTransaction=Zo.prototype.Ea,Zo.prototype.removeModel=Zo.prototype.Rx,Zo.prototype.addModel=Zo.prototype.Xw,Zo.prototype.clear=Zo.prototype.clear,Zo.className="UndoManager";function no(){xo(this),this.H=Zl,this.xa="",this.Jd=!0,this.nb=!1,this.wm=null,this.yy=new cs,this.Zr=-1}no.prototype.toString=function(){return this.name!==""?this.name+" Tool":si(this.constructor)},no.prototype.updateAdornments=function(){},no.prototype.canStart=function(){return this.isEnabled},no.prototype.doStart=function(){},no.prototype.doActivate=function(){this.isActive=!0},no.prototype.doDeactivate=function(){this.isActive=!1},no.prototype.doStop=function(){},no.prototype.doCancel=function(){this.transactionResult=null,this.stopTool()},no.prototype.stopTool=function(){var a=this.diagram;a.currentTool===this&&(a.currentTool=null,a.currentCursor="")},no.prototype.doMouseDown=function(){!this.isActive&&this.canStart()&&this.doActivate()},no.prototype.doMouseMove=function(){},no.prototype.doMouseUp=function(){this.stopTool()},no.prototype.doMouseWheel=function(){},no.prototype.canStartMultiTouch=function(){return!0},no.prototype.standardPinchZoomStart=function(){var a=this.diagram,y=a.lastInput,x=y.So(0,It.allocAt(NaN,NaN)),E=y.So(1,It.allocAt(NaN,NaN));if(x.w()&&E.w()&&(this.doCancel(),a.Ql("hasGestureZoom"))){a.Bw=a.scale;var b=E.x-x.x,z=E.y-x.y;a.Jw=Math.sqrt(b*b+z*z),y.bubbles=!1}It.free(x),It.free(E)},no.prototype.standardPinchZoomMove=function(){var a=this.diagram,y=a.lastInput,x=y.So(0,It.allocAt(NaN,NaN)),E=y.So(1,It.allocAt(NaN,NaN));if(x.w()&&E.w()&&(this.doCancel(),a.Ql("hasGestureZoom"))){var b=E.x-x.x,z=E.y-x.y;z=Math.sqrt(b*b+z*z)/a.Jw,b=new It((Math.min(E.x,x.x)+Math.max(E.x,x.x))/2,(Math.min(E.y,x.y)+Math.max(E.y,x.y))/2),z*=a.Bw;var tt=a.commandHandler;if(z!==a.scale&&tt.canResetZoom(z)){var ot=a.zoomPoint;a.zoomPoint=b,tt.resetZoom(z),a.zoomPoint=ot}y.bubbles=!1}It.free(x),It.free(E)},no.prototype.doKeyDown=function(){this.diagram.lastInput.key==="Esc"&&this.doCancel()},no.prototype.doKeyUp=function(){},no.prototype.Ea=function(a){return a===void 0&&(a=this.name),this.transactionResult=null,this.diagram.Ea(a)},no.prototype.stopTransaction=function(){var a=this.diagram;return this.transactionResult===null?a.Kf():a.eb(this.transactionResult)},no.prototype.standardMouseSelect=function(){var a=this.diagram;if(a.allowSelect){var y=a.lastInput,x=a.Ol(y.documentPoint,!1);if(x!==null){if(Oi?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||(Oi?y.meta:y.control)||y.shift||a.clearSelection()}},no.prototype.standardMouseClick=function(a,y){a===void 0&&(a=null),y===void 0&&(y=function(b){return!b.layer.isTemporary});var x=this.diagram,E=x.lastInput;return a=x.ic(E.documentPoint,a,y),E.targetObject=a,Tp(a,E,x),E.handled};function Tp(a,y,x){if(y.handled=!1,a===null||a.If()){var E=0;y.left?E=y.clickCount===1?1:y.clickCount===2?2:1:y.right&&y.clickCount===1&&(E=3);var b="ObjectSingleClicked";if(a!==null){switch(E){case 1:b="ObjectSingleClicked";break;case 2:b="ObjectDoubleClicked";break;case 3:b="ObjectContextClicked"}E!==0&&x.R(b,a)}else{switch(E){case 1:b="BackgroundSingleClicked";break;case 2:b="BackgroundDoubleClicked";break;case 3:b="BackgroundContextClicked"}E!==0&&x.R(b)}if(a!==null)for(;a!==null;){switch(x=null,E){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,E){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)}}}no.prototype.standardMouseOver=function(){var a=this.diagram,y=a.lastInput;if(a.animationManager.zb!==!0){var x=a.skipsUndoManager;a.skipsUndoManager=!0;var E=a.viewportBounds.ca(y.documentPoint)?a.ic(y.documentPoint,null,null):null;!y.event||y.event.type!=="pointercancel"&&y.event.type!=="pointerout"||(E=null),y.targetObject=E;var b=!1;if(E!==a.Ck){var z=a.Ck,tt=z;for(a.Ck=E,this.doCurrentObjectChanged(z,E),y.handled=!1;z!==null;){var ot=z.mouseLeave;if(ot!==null&&(E===z||E!==null&&E.rg(z)||(ot(y,z,E),b=!0,y.handled)))break;z=z.panel}for(z=tt,y.handled=!1;E!==null&&(tt=E.mouseEnter,!(tt!==null&&(z===E||z!==null&&z.rg(E)||(tt(y,E,z),b=!0,y.handled))));)E=E.panel;E=a.Ck}if(E!==null){for(z=E,tt="";z!==null&&(tt=z.cursor,tt==="");)z=z.panel;for(a.currentCursor=tt,y.handled=!1,z=E;z!==null&&(E=z.mouseOver,!(E!==null&&(E(y,z),b=!0,y.handled)));)z=z.panel}else this.doUpdateCursor(null),E=a.mouseOver,E!==null&&(E(y),b=!0);b&&a.$b(),a.skipsUndoManager=x}},no.prototype.doUpdateCursor=function(){var a=this.diagram;a&&(a.currentCursor="")},no.prototype.doCurrentObjectChanged=function(){},no.prototype.standardMouseWheel=function(){var a=this.diagram,y=a.lastInput,x=y.delta;if(x!==0&&a.documentBounds.w()){var E=a.commandHandler,b=a.toolManager.mouseWheelBehavior;if(E!==null&&(b===Wd&&!y.shift||b===ad&&y.control))(0<x?E.canIncreaseZoom():E.canDecreaseZoom())&&(b=a.zoomPoint,a.zoomPoint=y.viewPoint,0<x?E.increaseZoom():E.decreaseZoom(),a.zoomPoint=b),y.bubbles=!1;else if(b===Wd&&y.shift||b===ad&&!y.control){E=a.position.copy();var z=y.event;b=z.deltaMode;var tt=z.deltaX;z=z.deltaY;var ot="pixel";if(tt===0&&z===0||y.shift)!y.shift&&a.allowVerticalScroll?(x=3*x*a.scrollVerticalLineChange,a.scroll(ot,0<x?"up":"down",Math.abs(x))):y.shift&&a.allowHorizontalScroll&&(x=3*x*a.scrollHorizontalLineChange,a.scroll(ot,0<x?"left":"right",Math.abs(x)));else{switch(b){case 0:ot="pixel";break;case 1:ot="line";break;case 2:ot="page"}tt!==0&&a.allowHorizontalScroll&&(tt*=a.scrollHorizontalLineChange/16,a.scroll(ot,0<tt?"right":"left",Math.abs(tt))),z!==0&&a.allowVerticalScroll&&(z*=a.scrollVerticalLineChange/16,a.scroll(ot,0<z?"down":"up",Math.abs(z)))}this.doWheelChange(a,E,y)}}},no.prototype.doWheelChange=function(a,y,x){a.position.D(y)&&x.event.wheelDeltaX===0||(x.bubbles=!1)},no.prototype.standardWaitAfter=function(a,y){y===void 0&&(y=this.diagram.lastInput),this.cancelWaitAfter();var x=this,E=y.clone(this.yy);this.Zr=Nn(function(){x.doWaitAfter(E)},a)},no.prototype.cancelWaitAfter=function(){this.Zr!==-1&&Be.clearTimeout(this.Zr),this.Zr=-1},no.prototype.doWaitAfter=function(){},no.prototype.findToolHandleAt=function(a,y){return a=this.diagram.ic(a,function(x){for(;x!==null&&!(x.panel instanceof io);)x=x.panel;return x}),a===null?null:a.part.category===y?a:null},no.prototype.isBeyondDragSize=function(a,y){var x=this.diagram;a===void 0&&(a=x.firstInput.viewPoint),y===void 0&&(y=x.lastInput.viewPoint);var E=x.toolManager.dragSize,b=E.width;return E=E.height,x.firstInput.isTouchEvent&&(b+=6,E+=6),Math.abs(y.x-a.x)>b||Math.abs(y.y-a.y)>E},qt.Object.defineProperties(no.prototype,{diagram:{get:function(){return this.H},set:function(a){a instanceof ye&&(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}}}),no.prototype.startTransaction=no.prototype.Ea,no.className="Tool";function Vo(){no.call(this),this.name="ToolManager",this.hb=new $e,this.ob=new $e,this.Hb=new $e,this.F=this.V=850,this.o=new Ee(2,2).ja(),this.Ha=5e3,this.ia=ad,this.u=zc,this.Mp=this.j=null,this.zj=-1}re(Vo,no),Vo.prototype.initializeStandardTools=function(){},Vo.prototype.updateAdornments=function(a){var y=this.currentToolTip;if(y instanceof io&&this.Mp===a){var x=y.adornedObject;(a!==null?x.part===a:x===null)?this.showToolTip(y,x):this.hideToolTip()}},Vo.prototype.doMouseDown=function(){var a=this.diagram,y=a.lastInput;if(y.isTouchEvent&&this.gestureBehavior===gu&&(y.bubbles=!1),y.isMultiTouch){if(this.cancelWaitAfter(),this.gestureBehavior===wh){y.bubbles=!0;return}if(this.gestureBehavior===gu)return;if(a.currentTool.canStartMultiTouch()){a.currentTool.standardPinchZoomStart();return}}for(var x=this.mouseDownTools.length,E=0;E<x;E++){var b=this.mouseDownTools.M(E);if(b.diagram=this.diagram,b.canStart()){a.doFocus(),a.currentTool=b,a.currentTool===b&&(b.isActive||b.doActivate(),b.doMouseDown());return}}a.lastInput.button===1&&(this.mouseWheelBehavior===ad?this.mouseWheelBehavior=Wd:this.mouseWheelBehavior===Wd&&(this.mouseWheelBehavior=ad)),this.doActivate(),this.standardWaitAfter(this.holdDelay,y)},Vo.prototype.doMouseMove=function(){var a=this.diagram,y=a.lastInput;if(y.isMultiTouch){if(this.gestureBehavior===wh){y.bubbles=!0;return}if(this.gestureBehavior===gu)return;if(a.currentTool.canStartMultiTouch()){a.currentTool.standardPinchZoomMove();return}}if(this.isActive)for(var x=this.mouseMoveTools.length,E=0;E<x;E++){var b=this.mouseMoveTools.M(E);if(b.diagram=this.diagram,b.canStart()){a.doFocus(),a.currentTool=b,a.currentTool===b&&(b.isActive||b.doActivate(),b.doMouseMove());return}}Ip(this,a),a=y.event,a===null||a.type!=="pointermove"&&a.cancelable||(y.bubbles=!0)};function Ip(a,y){a.standardMouseOver(),a.isBeyondDragSize()&&a.standardWaitAfter(a.isActive?a.holdDelay:a.hoverDelay,y.lastInput)}Vo.prototype.doCurrentObjectChanged=function(a,y){a=this.currentToolTip,a===null||y!==null&&a instanceof io&&(y===a||y.rg(a))||this.hideToolTip()},Vo.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()))},Vo.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)},Vo.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 io)||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()},Vo.prototype.showToolTip=function(a,y){var x=this.diagram;if(a!==this.currentToolTip&&this.hideToolTip(),a instanceof io){a.layerName="Tool",a.selectable=!1,a.scale=1/x.scale,a.category="ToolTip",a.placeholder!==null&&(a.placeholder.scale=x.scale);var E=a.diagram;E!==null&&E!==x&&E.remove(a),x.add(a),y!==null?a.adornedObject=y:a.data=x.model,a.Va(),this.positionToolTip(a,y)}else a instanceof bl&&a!==this.currentToolTip&&a.show(y,x,this);if(this.currentToolTip=a,this.zj!==-1&&(Be.clearTimeout(this.zj),this.zj=-1),a=this.toolTipDuration,0<a&&a!==1/0){var b=this;this.zj=Nn(function(){b.hideToolTip()},a)}},Vo.prototype.positionToolTip=function(a){if(a.placeholder===null){var y=this.diagram,x=y.lastInput.documentPoint.copy(),E=a.measuredBounds,b=y.viewportBounds;y.lastInput.isTouchEvent&&(x.x-=E.width),x.x+E.width>b.right&&(x.x-=E.width+5/y.scale),x.x<b.x&&(x.x=b.x),x.y=x.y+20/y.scale+E.height>b.bottom?x.y-(E.height+5/y.scale):x.y+20/y.scale,x.y<b.y&&(x.y=b.y),a.position=x}},Vo.prototype.hideToolTip=function(){this.zj!==-1&&(Be.clearTimeout(this.zj),this.zj=-1);var a=this.diagram,y=this.currentToolTip;y!==null&&(y instanceof io?(a.remove(y),this.Mp!==null&&this.Mp.Jf(y.category),y.data=null,y.adornedObject=null):y instanceof bl&&y.hide!==null&&y.hide(a,this),this.currentToolTip=null)},Vo.prototype.doMouseUp=function(){this.cancelWaitAfter();var a=this.diagram;if(this.isActive)for(var y=this.mouseUpTools.length,x=0;x<y;x++){var E=this.mouseUpTools.M(x);if(E.diagram=this.diagram,E.canStart()){a.doFocus(),a.currentTool=E,a.currentTool===E&&(E.isActive||E.doActivate(),E.doMouseUp());return}}a.doFocus(),this.doDeactivate()},Vo.prototype.doMouseWheel=function(){this.standardMouseWheel()},Vo.prototype.doKeyDown=function(){var a=this.diagram;a.commandHandler!==null&&a.commandHandler.doKeyDown()},Vo.prototype.doKeyUp=function(){var a=this.diagram;a.commandHandler!==null&&a.commandHandler.doKeyUp()},Vo.prototype.findTool=function(a){for(var y=this.mouseDownTools.length,x=0;x<y;x++){var E=this.mouseDownTools.M(x);if(E.name===a)return E}for(y=this.mouseMoveTools.length,x=0;x<y;x++)if(E=this.mouseMoveTools.M(x),E.name===a)return E;for(y=this.mouseUpTools.length,x=0;x<y;x++)if(E=this.mouseUpTools.M(x),E.name===a)return E;return null},Vo.prototype.replaceTool=function(a,y){y!==null&&(y.diagram=this.diagram);for(var x=this.mouseDownTools.length,E=0;E<x;E++){var b=this.mouseDownTools.M(E);if(b.name===a)return y!==null?this.mouseDownTools.cd(E,y):this.mouseDownTools.mb(E),b}for(x=this.mouseMoveTools.length,E=0;E<x;E++)if(b=this.mouseMoveTools.M(E),b.name===a)return y!==null?this.mouseMoveTools.cd(E,y):this.mouseMoveTools.mb(E),b;for(x=this.mouseUpTools.length,E=0;E<x;E++)if(b=this.mouseUpTools.M(E),b.name===a)return y!==null?this.mouseUpTools.cd(E,y):this.mouseUpTools.mb(E),b;return null},Vo.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)},qt.Object.defineProperties(Vo.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 io?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}}}),Vo.prototype.replaceStandardTool=Vo.prototype.gb;var ad=new De(Vo,"WheelScroll",0),Wd=new De(Vo,"WheelZoom",1),qg=new De(Vo,"WheelNone",2),zc=new De(Vo,"GestureZoom",3),gu=new De(Vo,"GestureCancel",4),wh=new De(Vo,"GestureNone",5);Vo.className="ToolManager",Vo.WheelScroll=ad,Vo.WheelZoom=Wd,Vo.WheelNone=qg,Vo.GestureZoom=zc,Vo.GestureCancel=gu,Vo.GestureNone=wh;function Ko(){no.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 It(NaN,NaN),this.Fr=new It,this.hb=!0,this.Ik=100,this.Cg=[],this.te=new _e().freeze(),this.ia=new st,this.Bn=null,this.F="copy",this.Oc="",this.Pc="no-drop"}var Wl;re(Ko,no),Ko.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},Ko.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},Ko.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,(Oi?y.meta:y.control)||y.shift||a.clearSelection(!0),this.currentPart.isSelected=!0,a.R("ChangedSelection",a.selection))}}},Ko.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),Wr=null,this.isActive=!0,this.tl.set(a.position),Gc(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&&Hs(a),ng(a,this.draggedParts),this.Ea("Drag"),this.startPoint=a.firstInput.documentPoint,a.isMouseCaptured=!0,a.allowDragOut&&(this.isDragOutStarted=!0,this.Ym=!1,Wr=this,ju=this.diagram,this.doSimulatedDragOut()))};function Gc(a,y){if(a.dragsLink){var x=a.diagram;x.allowRelink&&(x.model.Wj()&&y.count===1&&y.first()instanceof rn?(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 ma,a.Oe.diagram=x),a.Oe.originalLink=a.draggedLink):(a.draggedLink=null,a.Oe=null))}}Ko.prototype.computeEffectiveCollection=function(a,y){return this.diagram.commandHandler.computeEffectiveCollection(a,y)},Ko.prototype.Pd=function(a){return a===void 0?new Su(qo):this.isGridSnapEnabled?new Su(new It(Math.round(1e3*a.x)/1e3,Math.round(1e3*a.y)/1e3)):new Su(a.copy())},Ko.prototype.doDeactivate=function(){this.isActive=!1;var a=this.diagram;if(this.diagram.layout.isRealtime=this.Sw,a.Fu(!1),a.ug(),Ph(this),Th(a,this.draggedParts),this.draggedParts=this.currentPart=this.Bn=null,this.Ym=this.isDragOutStarted=!1,0<Wl.count){for(var y=Wl,x=y.length,E=0;E<x;E++){var b=y.M(E);Du(b),$a(b),Ph(b),b.diagram.ug()}y.clear()}Du(this),this.tl.h(NaN,NaN),ju!==null&&(ju.currentCursor=""),Wr=ju=null,$a(this),a.isMouseCaptured=!1,a.currentCursor="",a.Ns=!1,this.stopTransaction(),ic(a,!0)},Ko.prototype.stopTransaction=function(){var a=this.diagram,y=no.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y};function Ph(a){var y=a.diagram,x=y.skipsUndoManager;y.skipsUndoManager=!0,$g(a,y.lastInput,null),y.skipsUndoManager=x,a.Cg.length=0}function _g(){var a=Wr;$a(a),Tu(a);var y=a.diagram;a.tl.w()&&(y.position=a.tl),y.ug()}Ko.prototype.doCancel=function(){$a(this),Tu(this);var a=this.diagram;this.tl.w()&&(a.position=this.tl),this.stopTool()},Ko.prototype.doKeyDown=function(){var a=this.diagram,y=a.lastInput;this.isActive&&(y.key==="Esc"?this.doCancel():y.key!==a.previousInput.key&&this.doMouseMove())},Ko.prototype.doKeyUp=function(){this.isActive&&this.doMouseMove()};function fu(a,y){if(a.copiedParts===null){var x=a.diagram;if((!y||!x.isReadOnly&&!x.isModelReadOnly)&&a.draggedParts!==null){var E=x.undoManager;for(E.isEnabled&&E.isInTransaction?E.currentTransaction!==null&&0<E.currentTransaction.changes.count&&(x.undoManager.Kf(),x.Ea("Drag")):Tu(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 ri,E=a.draggedParts.iterator;E.next();){var b=E.key;if(b.Zc()&&b.canCopy()){var z=y.I(b);z!==null&&(z.location=b.location,z.Va(),x.add(z,a.Pd(z.location)))}}for(y=y.iterator;y.next();)E=y.value,E instanceof rn&&E.canCopy()&&x.add(E,a.Pd());a.copiedParts=x,Gc(a,x.Lf()),a.draggedLink!==null&&(x=a.draggedLink,y=x.routeBounds,nh(x,a.startPoint.x-(y.x+y.width/2),a.startPoint.y-(y.y+y.height/2))),a.doUpdateCursor(null)}}}function $a(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 rn&&(x.value.point=new It(0,0));a.doUpdateCursor(null)}y.skipsUndoManager=!1,y.partManager.addsToTemporaryLayer=!1,a.startPoint=y.firstInput.documentPoint}function Du(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 Nl(a,y,x){var E=a.diagram,b=a.startPoint,z=It.alloc();z.assign(E.lastInput.documentPoint),a.moveParts(y,z.re(b),x),It.free(z),E.Gf("temporaryPixelRatio")===!0&&E.Yh===null&&30<E.$w&&(Hs(E),E.hk())}Ko.prototype.moveParts=function(a,y,x){x===void 0&&(x=!1);var E=this.diagram;E!==null&&Dh(E,a,y,this.dragOptions,x)};function Tu(a){if(a.draggedParts!==null){for(var y=a.diagram,x=a.draggedParts.iterator;x.next();){var E=x.key;E.Zc()&&(E.location=x.value.point)}for(x=a.draggedParts.iterator;x.next();)if(E=x.key,E instanceof rn&&E.suspendsRouting){var b=x.value.point;a.draggedParts.add(E,a.Pd()),nh(E,-b.x,-b.y)}y.bd()}}function Hc(a,y){var x=a.diagram;a.dragsLink&&(a.draggedLink!==null&&(a.draggedLink.fromNode=null,a.draggedLink.toNode=null),Iu(a,!1));var E=a.findDragOverObject(y),b=x.lastInput;b.targetObject=E,a.doUpdateCursor(E);var z=x.skipsUndoManager,tt=!1;try{if(x.skipsUndoManager=!0,tt=$g(a,b,E),!a.isActive&&Wr===null)return;var ot=E!==null?E.part:null;if(ot===null||x.handlesDragDropForTopLevelParts&&ot.isTopLevel&&!(ot instanceof Ai)){var rt=x.mouseDragOver;rt!==null&&(rt(b),tt=!0)}if(!a.isActive&&Wr===null||(a.doDragOver(y,E),!a.isActive&&Wr===null))return}finally{x.skipsUndoManager=z,tt&&x.bd()}a.Bn=E,x.isReadOnly||!x.allowMove&&!x.allowCopy||!x.allowHorizontalScroll&&!x.allowVerticalScroll||x.gs(b.viewPoint)}Ko.prototype.findDragOverObject=function(a){var y=this;return Kl(this.diagram,a,null,function(x){return x===null?x=!0:(x=x.part,x=!!(x===null||x instanceof io||x.layer.isTemporary||y.draggedParts&&y.draggedParts.contains(x)||y.copiedParts&&y.copiedParts.contains(x))),!x})},Ko.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 $g(a,y,x){var E=!1,b=a.Cg.length,z=0<b?a.Cg[0]:null;if(x===z)return!1;y.handled=!1;for(var tt=0;tt<b;tt++){var ot=a.Cg[tt],rt=ot.mouseDragLeave;if(rt!==null&&(rt(y,ot,x),E=!0,y.handled))break}if(a.Cg.length=0,!a.isActive&&Wr===null||x===null)return E;for(y.handled=!1,b=x;b!==null;)a.Cg.push(b),b=tf(b);for(b=a.Cg.length,x=0;x<b&&(tt=a.Cg[x],ot=tt.mouseDragEnter,ot===null||(ot(y,tt,z),E=!0,!y.handled));x++);return E}function tf(a){var y=a.panel;return y!==null?y:a instanceof ei&&!(a instanceof Ai)&&(a=a.containingGroup,a!==null&&a.handlesDragDropForMembers)?a:null}function Op(a,y,x){var E=a.Oe;if(E===null)return null;var b=a.diagram.og(y,E.portGravity,function(at){return E.findValidLinkablePort(at,x)});a=It.alloc();var z=1/0,tt=null;for(b=b.iterator;b.next();){var ot=b.value;if(ot.part!==null){var rt=ot.ga(po,a);rt=y.Bf(rt),rt<z&&(tt=ot,z=rt)}}return It.free(a),tt}function Iu(a,y){var x=a.draggedLink;if(x!==null&&!(2>x.pointsCount)){var E=a.diagram;if(!E.isReadOnly){var b=a.Oe;if(b!==null){var z=null,tt=null;x.fromNode===null&&(z=Op(a,x.i(0),!1),z!==null&&(tt=z.part));var ot=null,rt=null;x.toNode===null&&(ot=Op(a,x.i(x.pointsCount-1),!0),ot!==null&&(rt=ot.part)),b.isValidLink(tt,z,rt,ot)?y?(x.defaultFromPoint=x.i(0),x.defaultToPoint=x.i(x.pointsCount-1),x.suspendsRouting=!1,x.fromNode=tt,z!==null&&(x.fromPortId=z.portId),x.toNode=rt,ot!==null&&(x.toPortId=ot.portId),x.fromPort!==E.Mx&&E.R("LinkRelinked",x,E.Mx),x.toPort!==E.Nx&&E.R("LinkRelinked",x,E.Nx)):Vc(b,tt,z,rt,ot):Vc(b,null,null,null,null)}}}}Ko.prototype.doDragOver=function(){};function Ou(a,y){var x=a.diagram;a.dragsLink&&Iu(a,!0),Ph(a);var E=a.findDragOverObject(y),b=x.lastInput;if(b.targetObject=E,E!==null){b.handled=!1;for(var z=E;z!==null;){var tt=z.mouseDrop;if(tt!==null&&(tt(b,z),b.handled))break;Jm(a,b,z),z=tf(z)}}else z=x.mouseDrop,z!==null&&z(b);if(a.isActive||Wr!==null){for(b=(a.copiedParts||a.draggedParts).iterator;b.next();)z=b.key,z instanceof Fn&&z.linksConnected.each(function(ot){ot.suspendsRouting=!1});if(a.doDropOnto(y,E),a.isActive||Wr!==null){for(a=be.alloc(),y=x.selection.iterator;y.next();)E=y.value,E instanceof Fn&&qm(x,E,a);be.free(a)}}}function Jm(a,y,x){a=a.diagram,x=x.part,!a.handlesDragDropForTopLevelParts||!x.isTopLevel||x instanceof Ai||(x=a.mouseDrop,x!==null&&x(y))}function qm(a,y,x){var E=!1;if(x=y.getAvoidableRect(x),a.viewportBounds.Re(x)&&(E=!0),a=a.Nu(x,function(b){return b.part},function(b){return b instanceof rn},!0,function(b){return b instanceof rn},E),a.count!==0)for(a=a.iterator;a.next();)x=a.value,!x.Td(y)&&x.isAvoiding&&x.bb()}Ko.prototype.doDropOnto=function(){},Ko.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()?(fu(this,!1),ng(a,this.copiedParts),Nl(this,this.copiedParts,!1),Th(a,this.copiedParts)):this.mayMove()?($a(this),Nl(this,this.draggedParts,!0)):this.mayDragOut()?(fu(this,!1),Nl(this,this.copiedParts,!1)):$a(this),Hc(this,a.lastInput.documentPoint))}},Ko.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?($a(this),fu(this,!0),ng(a,this.copiedParts),Nl(this,this.copiedParts,!1),Th(a,this.copiedParts),this.copiedParts!==null&&(a.R("ChangingSelection",a.selection),a.clearSelection(!0),this.copiedParts.iteratorKeys.each(function(b){b.isSelected=!0}))):(y=!0,$a(this),this.mayMove()&&(Nl(this,this.draggedParts,!0),Hc(this,a.lastInput.documentPoint))),this.Ym=!0,Ou(this,a.lastInput.documentPoint),this.isActive){var E=x?this.copiedParts.Lf():this.draggedParts.Lf();this.copiedParts=null,y&&_m(this),a.Ya(),Th(a,this.draggedParts),this.transactionResult=x?"Copy":"Move",a.R(x?"SelectionCopied":"SelectionMoved",E)}this.stopTool(),x&&a.R("ChangedSelection",a.selection)}}},Ko.prototype.simulatedMouseMove=function(a,y,x){if(Wr===null)return!1;var E=Wr.diagram;x instanceof ye||(x=null);var b=ju;return x!==b&&(b!==null&&b!==E&&(b.ug(),Wr.isDragOutStarted=!1,b=b.toolManager.findTool("Dragging"),b!==null&&b.doSimulatedDragLeave()),ju=x,x!==null&&x!==E&&(_g(),b=x.toolManager.findTool("Dragging"),b!==null&&(Wl.contains(b)||Wl.add(b),b.doSimulatedDragEnter())),this.doUpdateCursor(null)),x===null||x===E||!x.allowDrop||x.isReadOnly||!x.allowInsert?!1:(E=x.toolManager.findTool("Dragging"),E!==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,E.doSimulatedDragOver()),!0)},Ko.prototype.simulatedMouseUp=function(a,y,x){if(Wr===null)return!1;var E=ju,b=Wr.diagram;if(x===null)return Wr.doCancel(),!0;if(x!==E){var z=E.toolManager.findTool("Dragging");if(E!==null&&E!==b&&z!==null)return E.ug(),Wr.isDragOutStarted=!1,z.doSimulatedDragLeave(),!1;ju=x,E=x.toolManager.findTool("Dragging"),E!==null&&(_g(),Wl.contains(E)||Wl.add(E),E.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 It),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=Wr,a!==null&&(x=a.mayCopy(),a.transactionResult=x?"Copy":"Move",a.stopTool()),!0):!1};function _m(a){if(a.draggedParts!==null)for(var y=a.draggedParts.iterator;y.next();){var x=y.key;x instanceof Fn&&(x=x.containingGroup,x===null||x.placeholder===null||a.draggedParts.contains(x)||x.placeholder.v())}}Ko.prototype.mayCopy=function(){if(!this.isCopyEnabled)return!1;var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowCopy||(Oi?!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())},Ko.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())},Ko.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())},Ko.prototype.computeBorder=function(a,y,x){return this.Ym||this.draggedParts===null||this.draggedParts.contains(a)?null:x.assign(y)},Ko.prototype.Az=function(){return Wr},Ko.prototype.mayDragIn=function(){var a=this.diagram;if(!a.allowDrop||a.isReadOnly||a.isModelReadOnly||!a.allowInsert)return!1;var y=Wr;return!(y===null||y.diagram.model.dataFormat!==a.model.dataFormat)},Ko.prototype.doSimulatedDragEnter=function(){if(this.mayDragIn()){var a=this.diagram;a.animationManager.Cc(),ka(a),a.animationManager.Cc(),a=Wr,a!==null&&(a.diagram.Ns=!1),this.doUpdateCursor(null)}},Ko.prototype.doSimulatedDragLeave=function(){var a=Wr;a!==null&&a.doSimulatedDragOut(),this.doCancel()},Ko.prototype.doSimulatedDragOver=function(){var a=this.diagram;a.animationManager.Dm=!0;var y=Wr;if(y!==null&&y.draggedParts!==null){if(!this.mayDragIn())return;jp(this,y.draggedParts.Lf(),!1,a.firstInput),Nl(this,this.copiedParts,!1),Hc(this,a.lastInput.documentPoint)}a.animationManager.Dm=!1},Ko.prototype.doSimulatedDrop=function(){var a=this.diagram,y=Wr;if(y!==null){var x=y.diagram;if(y.Ym=!0,$a(this),!this.mayDragIn())return;a.animationManager.Dm=!0,a.R("ChangingSelection",a.selection),this.Ea("Drop"),jp(this,y.draggedParts.Lf(),!0,a.lastInput),Nl(this,this.copiedParts,!1);var E=new _e;this.copiedParts!==null&&(a.clearSelection(!0),this.copiedParts.iteratorKeys.each(function(b){b.isSelected=!0,E.add(b)})),Ou(this,a.lastInput.documentPoint),a.Ya(),this.copiedParts!==null&&(this.transactionResult="ExternalCopy"),this.copiedParts=null,a.doFocus(),a.R("ExternalObjectsDropped",E,x),this.stopTransaction(),a.R("ChangedSelection",a.selection)}a.animationManager.Dm=!1};function jp(a,y,x,E){if(a.copiedParts===null){var b=a.diagram;if(!b.isReadOnly&&!b.isModelReadOnly){b.skipsUndoManager=!x,b.partManager.addsToTemporaryLayer=!x,a.startPoint=E.documentPoint,x=b.Kj(y,b,!0);var z=be.alloc();b=E=1/0;for(var tt=-1/0,ot=-1/0,rt=y.iterator;rt.next();){var at=rt.value;if(at.isVisible()){var ut=at.location;at=ut.x,ut=ut.y,isNaN(at)||isNaN(ut)||(at<E&&(E=at),ut<b&&(b=ut),at>tt&&(tt=at),ut>ot&&(ot=ut))}}for(E===1/0?z.h(0,0,0,0):z.h(E,b,tt-E,ot-b),E=z.x+z.width/2,b=z.y+z.height/2,be.free(z),z=a.Fr,tt=new ri,ot=It.alloc(),rt=y.iterator;rt.next();)at=rt.value,at instanceof rn&&at.canCopy()&&(ut=x.I(at),ut!==null&&(ut.points=at.points,nh(ut,z.x-E,z.y-b),ut.suspendsRouting=!0,tt.add(ut,a.Pd())));for(y=y.iterator;y.next();)at=y.value,at.Zc()&&at.canCopy()&&(rt=x.I(at),rt!==null&&(at=at.location,ot.h(z.x-(E-at.x),z.y-(b-at.y)),rt.location=ot,rt.Va(),tt.add(rt,a.Pd(ot))));It.free(ot),a.copiedParts=tt,Gc(a,tt.Lf()),a.draggedLink!==null&&(x=a.draggedLink,y=x.routeBounds,nh(x,a.startPoint.x-(y.x+y.width/2),a.startPoint.y-(y.y+y.height/2))),a.doUpdateCursor(null)}}}Ko.prototype.doSimulatedDragOut=function(){var a=this.diagram;a.Ns=!1,this.mayCopy()||this.mayMove()?a.currentCursor="":a.currentCursor=this.nodropCursor,this.Bn=null},Ko.prototype.computeMove=function(a,y,x,E){return x=this.diagram,x!==null?x.computeMove(a,y,this.dragOptions,E):new It},qt.Object.defineProperties(Ko.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}}}),Ko.prototype.getDraggingSource=Ko.prototype.Az;var Wr=null,ju=null;Ko.className="DraggingTool",Wl=new $e,ji("draggingTool",function(){return this.findTool("Dragging")},function(a){this.gb("Dragging",a,this.mouseMoveTools)}),Vo.prototype.doCancel=function(){Wr!==null&&Wr.doCancel(),no.prototype.doCancel.call(this)};function or(){no.call(this),this.te=100,this.Ha=!1,this.u="pointer";var a=new rn,y=new Fi;y.isPanelMain=!0,y.stroke="blue",a.add(y),y=new Fi,y.toArrow="Standard",y.fill="blue",y.stroke="blue",a.add(y),a.layerName="Tool",this.Ci=a,a=new Fn,y=new Fi,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=gi,a.add(y),a.selectable=!1,a.layerName="Tool",this.Bi=a,this.j=y,a=new Fn,y=new Fi,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=gi,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 ri,this.Of=this.gj=this.Pf=null}re(or,no),or.prototype.doStop=function(){this.diagram.ug(),this.originalToPort=this.originalToNode=this.originalFromPort=this.originalFromNode=this.originalLink=null,this.validPortsCache.clear(),this.targetPort=null},or.prototype.copyPortProperties=function(a,y,x,E,b){if(a!==null&&y!==null&&x!==null&&E!==null){var z=y.Df(),tt=Ee.alloc();tt.width=y.naturalBounds.width*z,tt.height=y.naturalBounds.height*z,E.desiredSize=tt,Ee.free(tt),b?(E.toSpot=y.toSpot,E.toEndSegmentLength=y.toEndSegmentLength):(E.fromSpot=y.fromSpot,E.fromEndSegmentLength=y.fromEndSegmentLength),x.locationSpot=po,z=It.alloc(),x.location=y.ga(po,z),It.free(z),E.angle=y.li(),this.portTargeted!==null&&this.portTargeted(a,y,x,E,b)}},or.prototype.setNoTargetPortProperties=function(a,y,x){y!==null&&(y.desiredSize=gi,y.fromSpot=lr,y.toSpot=lr),a!==null&&(a.location=this.diagram.lastInput.documentPoint),this.portTargeted!==null&&this.portTargeted(null,null,a,y,x)},or.prototype.doMouseDown=function(){this.isActive&&this.doMouseMove()},or.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram;if(this.targetPort=this.findTargetPort(this.isForwards),this.targetPort!==null&&this.targetPort.part instanceof Fn){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)}},or.prototype.findValidLinkablePort=function(a,y){if(a===null)return null;var x=a.part;if(!(x instanceof Fn))return null;for(;a!==null;){var E=y?a.toLinkable:a.fromLinkable;if(E===!0&&(a.portId!==null||a instanceof Fn)&&(y?this.isValidTo(x,a):this.isValidFrom(x,a)))return a;if(E===!1)break;a=a.panel}return null},or.prototype.findTargetPort=function(a){var y=this.diagram,x=y.lastInput.documentPoint,E=this.portGravity;0>=E&&(E=.1);var b=this,z=y.og(x,E,function(ft){return b.findValidLinkablePort(ft,a)},null,!0);for(E=1/0,y=null,z=z.iterator;z.next();){var tt=z.value,ot=tt.part;if(ot instanceof Fn){var rt=tt.ga(po,It.alloc()),at=x.x-rt.x,ut=x.y-rt.y;It.free(rt),rt=at*at+ut*ut,rt<E&&(at=this.validPortsCache.I(tt),at!==null?at&&(y=tt,E=rt):a&&this.isValidLink(this.originalFromNode,this.originalFromPort,ot,tt)||!a&&this.isValidLink(ot,tt,this.originalToNode,this.originalToPort)?(this.validPortsCache.add(tt,!0),y=tt,E=rt):this.validPortsCache.add(tt,!1))}}return y!==null&&(x=y.part,x instanceof Fn&&(x.layer===null||x.layer.allowLink))?y:null},or.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},or.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},or.prototype.isInSameNode=function(a,y){return a===null||y===null?!1:a===y?!0:(a=a.part,y=y.part,a!==null&&a===y)},or.prototype.isLinked=function(a,y){if(a===null||y===null)return!1;var x=a.part;if(!(x instanceof Fn))return!1;a=a.portId,a===null&&(a="");var E=y.part;if(!(E instanceof Fn))return!1;for(y=y.portId,y===null&&(y=""),y=E.Sd(y);y.next();)if(E=y.value,E.fromNode===x&&E.fromPortId===a)return!0;return!1},or.prototype.isValidLink=function(a,y,x,E){if(!this.isValidFrom(a,y)||!this.isValidTo(x,E)||!(y===null||E===null||(y.fromLinkableSelfNode&&E.toLinkableSelfNode||!this.isInSameNode(y,E))&&(y.fromLinkableDuplicates&&E.toLinkableDuplicates||!this.isLinked(y,E)))||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 b=a.linkValidation;if(b!==null&&!b(a,y,x,E,this.originalLink))return!1}return x!==null&&(b=x.linkValidation,b!==null&&!b(a,y,x,E,this.originalLink))?!1:(b=this.linkValidation,b!==null?b(a,y,x,E,this.originalLink):!0)},or.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 E=new _e;return E.add(a),gs(this,x,y,E)};function gs(a,y,x,E){if(y===x)return!0;var b=y.fromNode;return b!==null&&b.isLinkLabel&&(E.add(b),gs(a,b.labeledLink,x,E))?!0:(y=y.toNode,!!(y!==null&&y.isLinkLabel&&(E.add(y),gs(a,y.labeledLink,x,E))))}or.prototype.isValidCycle=function(a,y,x){if(x===void 0&&(x=null),a===null||y===null)return this.isUnconnectedLinkValid;var E=this.diagram.validCycle;if(E!==lc){if(E===bf){if(E=x||this.temporaryLink,E!==null&&!E.isTreeLink)return!0;for(E=y.linksConnected;E.next();){var b=E.value;if(b!==x&&b.isTreeLink&&b.toNode===y)return!1}return!ws(this,a,y,x,!0)}if(E===Df){if(E=x||this.temporaryLink,E!==null&&!E.isTreeLink)return!0;for(E=a.linksConnected;E.next();)if(b=E.value,b!==x&&b.isTreeLink&&b.fromNode===a)return!1;return!ws(this,a,y,x,!0)}if(E===kf)return a===y?a=!0:(E=new _e,E.add(y),a=Ps(this,E,a,y,x)),!a;if(E===Bf)return!ws(this,a,y,x,!1);if(E===Nf)return a===y?a=!0:(E=new _e,E.add(y),a=ld(this,E,a,y,x)),!a}return!0};function ws(a,y,x,E,b){if(y===x)return!0;if(y===null||x===null)return!1;for(var z=y.linksConnected;z.next();){var tt=z.value;if(tt!==E&&(!b||tt.isTreeLink)&&tt.toNode===y&&(tt=tt.fromNode,tt!==y&&ws(a,tt,x,E,b)))return!0}return!1}function Ps(a,y,x,E,b){if(x===E)return!0;if(x===null||E===null||y.contains(x))return!1;y.add(x);for(var z=x.linksConnected;z.next();){var tt=z.value;if(tt!==b&&tt.toNode===x&&(tt=tt.fromNode,tt!==x&&Ps(a,y,tt,E,b)))return!0}return!1}function ld(a,y,x,E,b){if(x===E)return!0;if(x===null||E===null||y.contains(x))return!1;y.add(x);for(var z=x.linksConnected;z.next();){var tt=z.value;if(tt!==b){var ot=tt.fromNode;if(tt=tt.toNode,ot=ot===x?tt:ot,ot!==x&&ld(a,y,ot,E,b))return!0}}return!1}qt.Object.defineProperties(or.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}}}),or.className="LinkingBaseTool";function Cs(){or.call(this),this.name="Linking",this.V={},this.F=null,this.K=Ch,this.Xd=null}re(Cs,or),Cs.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},Cs.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 Fn)))return null;var x=this.direction;if(x===Ch||x===Rp){var E=this.findValidLinkablePort(y,!1);if(E!==null||this.startObject===a&&(E=a.port,this.findValidLinkablePort(E,!1)))return this.isForwards=!0,E}return(x===Ch||x===zp)&&(y=this.findValidLinkablePort(y,!0),y!==null||this.startObject===a&&(y=a.port,this.findValidLinkablePort(y,!0)))?(this.isForwards=!1,y):null},Cs.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 Fn&&(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 Fn&&(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)},Cs.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()},Cs.prototype.doStop=function(){or.prototype.doStop.call(this),this.startObject=null},Cs.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram,y=this.transactionResult=null,x=null,E=null,b=null,z=null;try{var tt=this.targetPort=this.findTargetPort(this.isForwards);if(tt!==null){var ot=tt.part;ot instanceof Fn&&(this.isForwards?(this.originalFromNode!==null&&(y=this.originalFromNode,x=this.originalFromPort),E=ot,b=tt):(y=ot,x=tt,this.originalToNode!==null&&(E=this.originalToNode,b=this.originalToPort)))}else this.isForwards?this.originalFromNode!==null&&this.isUnconnectedLinkValid&&(y=this.originalFromNode,x=this.originalFromPort):this.originalToNode!==null&&this.isUnconnectedLinkValid&&(E=this.originalToNode,b=this.originalToPort);y!==null||E!==null?(z=this.insertLink(y,x,E,b),z!==null?(tt===null&&(this.isForwards?z.defaultToPoint=a.lastInput.documentPoint:z.defaultFromPoint=a.lastInput.documentPoint),a.allowSelect&&(a.R("ChangingSelection",a.selection),a.clearSelection(!0),z.isSelected=!0),this.transactionResult=this.name,a.R("LinkDrawn",z)):this.doNoLink(y,x,E,b)):this.isForwards?this.doNoLink(this.originalFromNode,this.originalFromPort,null,null):this.doNoLink(null,null,this.originalToNode,this.originalToPort)}finally{this.stopTool(),z&&a.allowSelect&&a.R("ChangedSelection",a.selection)}}},Cs.prototype.isNewTreeLink=function(){var a=this.archetypeLinkData;if(a===null)return!0;if(a instanceof rn)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)},Cs.prototype.insertLink=function(a,y,x,E){return this.diagram.partManager.insertLink(a,y,x,E)},Cs.prototype.doNoLink=function(){},qt.Object.defineProperties(Cs.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 Ch=new De(Cs,"Either",0),Rp=new De(Cs,"ForwardsOnly",0),zp=new De(Cs,"BackwardsOnly",0);Cs.className="LinkingTool",Cs.Either=Ch,Cs.ForwardsOnly=Rp,Cs.BackwardsOnly=zp;function ma(){or.call(this),this.name="Relinking";var a=new Fi;a.figure="Diamond",a.desiredSize=ki,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=0,this.V=a,a=new Fi,a.figure="Diamond",a.desiredSize=ki,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=-1,this.Xd=a,this.F=null,this.Ew=new be}re(ma,or),ma.prototype.updateAdornments=function(a){if(a!==null&&a instanceof rn){var y="RelinkFrom",x=null;if(a.isSelected&&!this.diagram.isReadOnly){var E=a.selectionObject;E!==null&&a.canRelinkFrom()&&a.actualBounds.w()&&a.isVisible()&&E.actualBounds.w()&&E.Ed()&&(x=a.Pj(y),x===null&&(x=this.makeAdornment(E,!1),a.bh(y,x)))}x===null&&a.Jf(y),y="RelinkTo",x=null,a.isSelected&&!this.diagram.isReadOnly&&(E=a.selectionObject,E!==null&&a.canRelinkTo()&&a.actualBounds.w()&&a.isVisible()&&E.actualBounds.w()&&E.Ed()&&(x=a.Pj(y),x===null?(x=this.makeAdornment(E,!0),a.bh(y,x)):x.v())),x===null&&a.Jf(y)}},ma.prototype.makeAdornment=function(a,y){var x=new io;return x.type=tn.Link,y=y?this.toHandleArchetype:this.fromHandleArchetype,y!==null&&x.add(y.copy()),x.adornedObject=a,x},ma.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},ma.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 io&&x.adornedPart instanceof rn))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=fn),this.temporaryFromNode!==null&&(this.temporaryFromNode.location=this.originalLink.i(0))),this.originalLink.toNode===null&&(this.temporaryToPort!==null&&(this.temporaryToPort.desiredSize=fn),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},ma.prototype.copyLinkProperties=function(a,y){if(a!==null&&y!==null){y.adjusting=a.adjusting,y.corner=a.corner;var x=a.curve;(x===Mg||x===ih)&&(x=Bs),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}},ma.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()},ma.prototype.doStop=function(){or.prototype.doStop.call(this),this.handle=null},ma.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram;this.transactionResult=null;var y=this.originalFromNode,x=this.originalFromPort,E=this.originalToNode,b=this.originalToPort,z=this.originalLink;try{if(this.targetPort=this.findTargetPort(this.isForwards),this.targetPort!==null){var tt=this.targetPort.part;tt instanceof Fn&&(this.isForwards?(E=tt,b=this.targetPort):(y=tt,x=this.targetPort))}else this.isUnconnectedLinkValid?this.isForwards?b=E=null:x=y=null:z=null;z!==null?(this.reconnectLink(z,this.isForwards?E:y,this.isForwards?b:x,this.isForwards),this.targetPort===null&&(this.isForwards?z.defaultToPoint=a.lastInput.documentPoint:z.defaultFromPoint=a.lastInput.documentPoint,z.bb()),this.transactionResult=this.name,a.R("LinkRelinked",z,this.isForwards?this.originalToPort:this.originalFromPort)):this.doNoRelink(this.originalLink,this.isForwards),this.originalLink.Xo(this.Ew)}finally{this.stopTool()}}},ma.prototype.reconnectLink=function(a,y,x,E){return x=x!==null&&x.portId!==null?x.portId:"",E?(a.toNode=y,a.toPortId=x):(a.fromNode=y,a.fromPortId=x),!0},ma.prototype.doNoRelink=function(){};function Vc(a,y,x,E,b){y!==null?(a.copyPortProperties(y,x,a.temporaryFromNode,a.temporaryFromPort,!1),a.diagram.add(a.temporaryFromNode)):a.diagram.remove(a.temporaryFromNode),E!==null?(a.copyPortProperties(E,b,a.temporaryToNode,a.temporaryToPort,!0),a.diagram.add(a.temporaryToNode)):a.diagram.remove(a.temporaryToNode)}qt.Object.defineProperties(ma.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 io))throw Error("new handle is not in an Adornment: "+a);this.F=a}}}),ma.className="RelinkingTool",ji("linkingTool",function(){return this.findTool("Linking")},function(a){this.gb("Linking",a,this.mouseMoveTools)}),ji("relinkingTool",function(){return this.findTool("Relinking")},function(a){this.gb("Relinking",a,this.mouseDownTools)});function hr(){no.call(this),this.name="LinkReshaping";var a=new Fi;a.figure="Rectangle",a.desiredSize=Wi,a.fill="lightblue",a.stroke="dodgerblue",this.o=a,a=new Fi,a.figure="Diamond",a.desiredSize=ki,a.fill="lightblue",a.stroke="dodgerblue",a.cursor="move",this.u=a,this.F=3,this.Ts=this.j=null,this.Fw=new It,this.Yq=new $e}re(hr,no),hr.prototype.Ru=function(a){return a&&a.reshapingBehavior.value!==0?a.reshapingBehavior:ef},hr.prototype.om=function(a,y){a.reshapingBehavior=y},hr.prototype.updateAdornments=function(a){if(a!==null&&a instanceof rn){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)}},hr.prototype.makeAdornment=function(a){var y=a.part,x=y.pointsCount,E=y.isOrthogonal,b=null;if(y.points!==null&&1<x){b=new io,b.type=tn.Link,x=y.firstPickIndex;var z=y.lastPickIndex,tt=E?1:0;if(y.resegmentable&&y.computeCurve()!==wa)for(var ot=x+tt;ot<z-tt;ot++){var rt=this.makeResegmentHandle(a,ot);rt!==null&&(rt.segmentIndex=ot,rt.segmentFraction=.5,rt.fromMaxLinks=999,b.add(rt))}for(tt=x+1;tt<z;tt++)if(ot=this.makeHandle(a,tt),ot!==null){if(ot.segmentIndex=tt,tt!==x)if(tt===x+1&&E){rt=y.i(x);var at=y.i(x+1);se.B(rt.x,at.x)&&se.B(rt.y,at.y)&&(at=y.i(x-1)),se.B(rt.x,at.x)?(this.om(ot,Gu),ot.cursor="n-resize"):se.B(rt.y,at.y)&&(this.om(ot,zu),ot.cursor="w-resize")}else tt===z-1&&E?(rt=y.i(z-1),at=y.i(z),se.B(rt.x,at.x)&&se.B(rt.y,at.y)&&(rt=y.i(z+1)),se.B(rt.x,at.x)?(this.om(ot,Gu),ot.cursor="n-resize"):se.B(rt.y,at.y)&&(this.om(ot,zu),ot.cursor="w-resize")):tt!==z&&(this.om(ot,Uc),ot.cursor="move");b.add(ot)}b.adornedObject=a}return b},hr.prototype.makeHandle=function(){var a=this.handleArchetype;return a===null?null:a.copy()},hr.prototype.makeResegmentHandle=function(){var a=this.midHandleArchetype;return a===null?null:a.copy()},hr.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},hr.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 rn){if(this.Ts=y,a.isMouseCaptured=!0,this.Ea(this.name),y.resegmentable&&this.handle.fromMaxLinks===999){var x=y.points.copy(),E=this.getResegmentingPoint();if(x.Gb(this.handle.segmentIndex+1,E),y.isOrthogonal&&x.Gb(this.handle.segmentIndex+1,E),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}}},hr.prototype.doDeactivate=function(){this.stopTransaction(),this.Ts=this.handle=null,this.isActive=this.diagram.isMouseCaptured=!1},hr.prototype.stopTransaction=function(){var a=this.diagram,y=no.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},hr.prototype.doCancel=function(){var a=this.adornedLink;a!==null&&(a.points=this.Yq),this.stopTool()},hr.prototype.getResegmentingPoint=function(){return this.handle.ga(po)},hr.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeReshape(a.lastInput.documentPoint),this.reshape(a))},hr.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,E=y.i(x-1),b=y.i(x),z=y.i(x+1);if(y.isOrthogonal){if(x>y.firstPickIndex+1&&x<y.lastPickIndex-1){var tt=y.i(x-2);if(Math.abs(E.x-b.x)<this.resegmentingDistance&&Math.abs(E.y-b.y)<this.resegmentingDistance&&(Ru(this,tt,E,b,z,!0)||Ru(this,tt,E,b,z,!1))){var ot=y.points.copy();Ru(this,tt,E,b,z,!0)?(ot.cd(x-2,new It(tt.x,(z.y+tt.y)/2)),ot.cd(x+1,new It(z.x,(z.y+tt.y)/2))):(ot.cd(x-2,new It((z.x+tt.x)/2,tt.y)),ot.cd(x+1,new It((z.x+tt.x)/2,z.y))),ot.mb(x),ot.mb(x-1),y.points=ot,y.Wb()}else tt=y.i(x+2),Math.abs(b.x-z.x)<this.resegmentingDistance&&Math.abs(b.y-z.y)<this.resegmentingDistance&&(Ru(this,E,b,z,tt,!0)||Ru(this,E,b,z,tt,!1))&&(ot=y.points.copy(),Ru(this,E,b,z,tt,!0)?(ot.cd(x-1,new It(E.x,(E.y+tt.y)/2)),ot.cd(x+2,new It(tt.x,(E.y+tt.y)/2))):(ot.cd(x-1,new It((E.x+tt.x)/2,E.y)),ot.cd(x+2,new It((E.x+tt.x)/2,tt.y))),ot.mb(x+1),ot.mb(x),y.points=ot,y.Wb())}}else tt=It.alloc(),se.qh(E.x,E.y,z.x,z.y,b.x,b.y,tt)&&tt.Bf(b)<this.resegmentingDistance*this.resegmentingDistance&&(E=y.points.copy(),E.mb(x),y.points=E,y.Wb()),It.free(tt)}a.Ya(),this.transactionResult=this.name,a.R("LinkReshaped",this.adornedLink,this.Yq)}this.stopTool()};function Ru(a,y,x,E,b,z){return z?Math.abs(y.y-x.y)<a.resegmentingDistance&&Math.abs(x.y-E.y)<a.resegmentingDistance&&Math.abs(E.y-b.y)<a.resegmentingDistance:Math.abs(y.x-x.x)<a.resegmentingDistance&&Math.abs(x.x-E.x)<a.resegmentingDistance&&Math.abs(E.x-b.x)<a.resegmentingDistance}hr.prototype.reshape=function(a){var y=this.adornedLink;y.uh();var x=this.handle.segmentIndex,E=this.Ru(this.handle);if(y.isOrthogonal)if(x===y.firstPickIndex+1)x=y.firstPickIndex+1,E===Gu?(y.L(x,y.i(x-1).x,a.y),y.L(x+1,y.i(x+2).x,a.y)):E===zu&&(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,E===Gu?(y.L(x-1,y.i(x-2).x,a.y),y.L(x,y.i(x+1).x,a.y)):E===zu&&(y.L(x-1,a.x,y.i(x-2).y),y.L(x,a.x,y.i(x+1).y));else{E=x;var b=y.i(E),z=y.i(E-1),tt=y.i(E+1);se.B(z.x,b.x)&&se.B(b.y,tt.y)?(se.B(z.x,y.i(E-2).x)&&!se.B(z.y,y.i(E-2).y)?(y.m(E,a.x,z.y),x++,E++):y.L(E-1,a.x,z.y),se.B(tt.y,y.i(E+2).y)&&!se.B(tt.x,y.i(E+2).x)?y.m(E+1,tt.x,a.y):y.L(E+1,tt.x,a.y)):se.B(z.y,b.y)&&se.B(b.x,tt.x)?(se.B(z.y,y.i(E-2).y)&&!se.B(z.x,y.i(E-2).x)?(y.m(E,z.x,a.y),x++,E++):y.L(E-1,z.x,a.y),se.B(tt.x,y.i(E+2).x)&&!se.B(tt.y,y.i(E+2).y)?y.m(E+1,a.x,tt.y):y.L(E+1,a.x,tt.y)):se.B(z.x,b.x)&&se.B(b.x,tt.x)?(se.B(z.x,y.i(E-2).x)&&!se.B(z.y,y.i(E-2).y)?(y.m(E,a.x,z.y),x++,E++):y.L(E-1,a.x,z.y),se.B(tt.x,y.i(E+2).x)&&!se.B(tt.y,y.i(E+2).y)?y.m(E+1,a.x,tt.y):y.L(E+1,a.x,tt.y)):se.B(z.y,b.y)&&se.B(b.y,tt.y)&&(se.B(z.y,y.i(E-2).y)&&!se.B(z.x,y.i(E-2).x)?(y.m(E,z.x,a.y),x++,E++):y.L(E-1,z.x,a.y),se.B(tt.y,y.i(E+2).y)&&!se.B(tt.x,y.i(E+2).x)?y.m(E+1,tt.x,a.y):y.L(E+1,tt.x,a.y)),y.L(x,a.x,a.y)}else y.L(x,a.x,a.y),E=y.fromNode,b=y.fromPort,E!==null&&(z=E.findVisibleNode(),z!==null&&z!==E&&(E=z,b=E.port)),x===1&&y.computeSpot(!0,b).Mc()&&(z=b.ga(po,It.alloc()),E=y.getLinkPointFromPoint(E,b,z,a,!0,It.alloc()),y.L(0,E.x,E.y),It.free(z),It.free(E)),E=y.toNode,b=y.toPort,E!==null&&(z=E.findVisibleNode(),z!==null&&z!==E&&(E=z,b=E.port)),x===y.pointsCount-2&&y.computeSpot(!1,b).Mc()&&(x=b.ga(po,It.alloc()),a=y.getLinkPointFromPoint(E,b,x,a,!1,It.alloc()),y.L(y.pointsCount-1,a.x,a.y),It.free(x),It.free(a));y.zf()},hr.prototype.computeReshape=function(a){var y=this.adornedLink,x=this.handle.segmentIndex;switch(this.Ru(this.handle)){case Uc:return a;case Gu:return new It(y.i(x).x,a.y);case zu:return new It(a.x,y.i(x).y);default:case ef:return y.i(x)}},qt.Object.defineProperties(hr.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 io))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}}}),hr.prototype.setReshapingBehavior=hr.prototype.om,hr.prototype.getReshapingBehavior=hr.prototype.Ru;var ef=new De(hr,"None",0),zu=new De(hr,"Horizontal",1),Gu=new De(hr,"Vertical",2),Uc=new De(hr,"All",3);hr.className="LinkReshapingTool",hr.None=ef,hr.Horizontal=zu,hr.Vertical=Gu,hr.All=Uc,ji("linkReshapingTool",function(){return this.findTool("LinkReshaping")},function(a){this.gb("LinkReshaping",a,this.mouseDownTools)});function ss(){no.call(this),this.name="Resizing",this.o=new Ee(1,1).freeze(),this.j=new Ee(9999,9999).freeze(),this.yg=new Ee(NaN,NaN).freeze(),this.V=!1,this.ia=!0,this.ue=null;var a=new Fi;a.alignmentFocus=po,a.figure="Rectangle",a.desiredSize=Wi,a.fill="lightblue",a.stroke="dodgerblue",a.strokeWidth=1,a.cursor="pointer",this.F=a,this.u=null,this.Xq=new It,this.Dw=new Ee,this.Tn=new It,this.rt=new Ee(0,0),this.qt=new Ee(1/0,1/0),this.pt=new Ee(1,1)}re(ss,no),ss.prototype.updateAdornments=function(a){if(!(a===null||a instanceof rn)){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(),Gh(a)&&this.updateResizeHandles(x,y),a.bh(this.name,x);return}}a.Jf(this.name)}},ss.prototype.makeAdornment=function(a){var y=a.part.resizeAdornmentTemplate;if(y===null){y=new io,y.type=tn.Spot,y.locationSpot=po;var x=new ks;x.isPanelMain=!0,y.add(x),y.add(this.makeHandle(a,ir)),y.add(this.makeHandle(a,uu)),y.add(this.makeHandle(a,zs)),y.add(this.makeHandle(a,gl)),y.add(this.makeHandle(a,as)),y.add(this.makeHandle(a,ts)),y.add(this.makeHandle(a,qr)),y.add(this.makeHandle(a,Gs))}else if(Za(y),y=y.copy(),y===null)return null;return y.adornedObject=a,y},ss.prototype.makeHandle=function(a,y){return a=this.handleArchetype,a===null?null:(a=a.copy(),a.alignment=y,a)},ss.prototype.updateResizeHandles=function(a,y){if(a!==null){if(!a.alignment.Xb()&&(a.cursor==="pointer"||0<a.cursor.indexOf("resize")))t:{var x=a.alignment;if(x.Mc()&&(x=po),0>=x.x)y=0>=x.y?y+225:1<=x.y?y+135:y+180;else if(1<=x.x)0>=x.y?y+=315:1<=x.y&&(y+=45);else if(0>=x.y)y+=270;else if(1<=x.y)y+=90;else break t;0>y?y+=360:360<=y&&(y-=360),a.cursor=22.5>y?"e-resize":67.5>y?"se-resize":112.5>y?"s-resize":157.5>y?"sw-resize":202.5>y?"w-resize":247.5>y?"nw-resize":292.5>y?"n-resize":337.5>y?"ne-resize":"e-resize"}else if(a instanceof tn)for(a=a.elements;a.next();)this.updateResizeHandles(a.value,y)}},ss.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},ss.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))},ss.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.isActive=a.isMouseCaptured=!1},ss.prototype.stopTransaction=function(){var a=this.diagram,y=no.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},ss.prototype.doCancel=function(){this.adornedObject!==null&&(this.adornedObject.desiredSize=this.originalDesiredSize,this.adornedObject.part.location=this.originalLocation),this.stopTool()},ss.prototype.doMouseMove=function(){var a=this.diagram;if(this.isActive){var y=this.rt,x=this.qt,E=this.pt,b=this.adornedObject.qs(a.lastInput.documentPoint,It.alloc()),z=this.computeReshape();y=this.computeResize(b,this.handle.alignment,y,x,E,z),this.resize(y),a.bd(),It.free(b)}},ss.prototype.doMouseUp=function(){var a=this.diagram;if(this.isActive){var y=this.rt,x=this.qt,E=this.pt,b=this.adornedObject.qs(a.lastInput.documentPoint,It.alloc()),z=this.computeReshape();y=this.computeResize(b,this.handle.alignment,y,x,E,z),this.resize(y),It.free(b),a.Ya(),this.transactionResult=this.name,a.R("PartResized",this.adornedObject,this.originalDesiredSize)}this.stopTool()},ss.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 Ai){var E=new $e;if(E.add(a),!this.dragsMembers&&a.placeholder===null){var b=new st;b.dragsMembers=!1}y.moveParts(E,this.oppositePoint.copy().re(x),!0,b)}else a.location=a.location.copy().re(x).add(this.oppositePoint);y.bd()}},ss.prototype.computeResize=function(a,y,x,E,b,z){y.Mc()&&(y=po);var tt=this.adornedObject.naturalBounds,ot=tt.x,rt=tt.y,at=tt.x+tt.width,ut=tt.y+tt.height,ft=1;if(!z){ft=tt.width;var vt=tt.height;0>=ft&&(ft=1),0>=vt&&(vt=1),ft=vt/ft}return vt=It.alloc(),se.No(a.x,a.y,ot,rt,b.width,b.height,vt),a=tt.copy(),0>=y.x?0>=y.y?(a.x=Math.max(vt.x,at-E.width),a.x=Math.min(a.x,at-x.width),a.width=Math.max(at-a.x,x.width),a.y=Math.max(vt.y,ut-E.height),a.y=Math.min(a.y,ut-x.height),a.height=Math.max(ut-a.y,x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(ft*a.width,E.height),x.height),a.width=a.height/ft):(a.width=Math.max(Math.min(a.height/ft,E.width),x.width),a.height=ft*a.width),a.x=at-a.width,a.y=ut-a.height)):1<=y.y?(a.x=Math.max(vt.x,at-E.width),a.x=Math.min(a.x,at-x.width),a.width=Math.max(at-a.x,x.width),a.height=Math.max(Math.min(vt.y-rt,E.height),x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(ft*a.width,E.height),x.height),a.width=a.height/ft):(a.width=Math.max(Math.min(a.height/ft,E.width),x.width),a.height=ft*a.width),a.x=at-a.width)):(a.x=Math.max(vt.x,at-E.width),a.x=Math.min(a.x,at-x.width),a.width=at-a.x,z||(a.height=Math.max(Math.min(ft*a.width,E.height),x.height),a.width=a.height/ft,a.y=rt+.5*(ut-rt-a.height))):1<=y.x?0>=y.y?(a.width=Math.max(Math.min(vt.x-ot,E.width),x.width),a.y=Math.max(vt.y,ut-E.height),a.y=Math.min(a.y,ut-x.height),a.height=Math.max(ut-a.y,x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(ft*a.width,E.height),x.height),a.width=a.height/ft):(a.width=Math.max(Math.min(a.height/ft,E.width),x.width),a.height=ft*a.width),a.y=ut-a.height)):1<=y.y?(a.width=Math.max(Math.min(vt.x-ot,E.width),x.width),a.height=Math.max(Math.min(vt.y-rt,E.height),x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(ft*a.width,E.height),x.height),a.width=a.height/ft):(a.width=Math.max(Math.min(a.height/ft,E.width),x.width),a.height=ft*a.width))):(a.width=Math.max(Math.min(vt.x-ot,E.width),x.width),z||(a.height=Math.max(Math.min(ft*a.width,E.height),x.height),a.width=a.height/ft,a.y=rt+.5*(ut-rt-a.height))):0>=y.y?(a.y=Math.max(vt.y,ut-E.height),a.y=Math.min(a.y,ut-x.height),a.height=ut-a.y,z||(a.width=Math.max(Math.min(a.height/ft,E.width),x.width),a.height=ft*a.width,a.x=ot+.5*(at-ot-a.width))):1<=y.y&&(a.height=Math.max(Math.min(vt.y-rt,E.height),x.height),z||(a.width=Math.max(Math.min(a.height/ft,E.width),x.width),a.height=ft*a.width,a.x=ot+.5*(at-ot-a.width))),It.free(vt),a},ss.prototype.computeReshape=function(){var a=He;return this.adornedObject instanceof Fi&&(a=Ev(this.adornedObject)),!(a===Yn||this.diagram.lastInput.shift)},ss.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},ss.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},ss.prototype.computeCellSize=function(){var a=new Ee(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},qt.Object.defineProperties(ss.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 io))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 io)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}}}),ss.className="ResizingTool",ji("resizingTool",function(){return this.findTool("Resizing")},function(a){this.gb("Resizing",a,this.mouseDownTools)});function Es(){no.call(this),this.name="Rotating",this.ia=45,this.V=2,this.Tn=new It,this.ue=null;var a=new Fi;a.figure="Ellipse",a.desiredSize=ki,a.fill="lightblue",a.stroke="dodgerblue",a.strokeWidth=1,a.cursor="pointer",this.o=a,this.j=null,this.Cw=0,this.kr=new It(NaN,NaN),this.u=0,this.F=50}re(Es,no),Es.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)}},Es.prototype.makeAdornment=function(a){var y=a.part.rotateAdornmentTemplate;if(y===null){y=new io,y.type=tn.Position,y.locationSpot=po;var x=this.handleArchetype;x!==null&&y.add(x.copy())}else if(Za(y),y=y.copy(),y===null)return null;return y.adornedObject=a,y},Es.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},Es.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)},Es.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(po)},Es.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 E=this.handleDistance;return x===0?y.x=a.naturalBounds.width+E:x===45?(y.x=a.naturalBounds.width+E,y.y=a.naturalBounds.height+E):x===90?y.y=a.naturalBounds.height+E:x===135?(y.x=-E,y.y=a.naturalBounds.height+E):x===180?y.x=-E:x===225?(y.x=-E,y.y=-E):x===270?y.y=-E:x===315&&(y.x=a.naturalBounds.width+E,y.y=-E),a.ga(y)},Es.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.kr=new It(NaN,NaN),this.isActive=a.isMouseCaptured=!1},Es.prototype.stopTransaction=function(){var a=this.diagram,y=no.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},Es.prototype.doCancel=function(){this.diagram.delaysLayout=!1,this.rotate(this.originalAngle),this.stopTool()},Es.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeRotate(a.lastInput.documentPoint),this.rotate(a))},Es.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()},Es.prototype.rotate=function(a){var y=this.adornedObject;if(y!==null){y.angle=a,y=y.part,y.Va();var x=y.locationObject,E=y.rotateObject;(x===E||x.rg(E))&&(x=this.Tn.copy(),y.location=x.re(this.rotationPoint).rotate(a-this.originalAngle).add(this.rotationPoint)),this.diagram.bd()}},Es.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},qt.Object.defineProperties(Es.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 io))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 io)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}}}),Es.className="RotatingTool",ji("rotatingTool",function(){return this.findTool("Rotating")},function(a){this.gb("Rotating",a,this.mouseDownTools)});function Eh(){no.call(this),this.name="ClickSelecting"}re(Eh,no),Eh.prototype.canStart=function(){return!(!this.isEnabled||this.isBeyondDragSize())},Eh.prototype.doMouseUp=function(){this.isActive&&(this.standardMouseSelect(),!this.standardMouseClick()&&this.diagram.lastInput.isTouchEvent&&this.diagram.toolManager.doToolTip()),this.stopTool()},Eh.className="ClickSelectingTool";function Ha(){no.call(this),this.name="Action",this.pk=null}re(Ha,no),Ha.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram,y=a.lastInput,x=a.ic(y.documentPoint,function(E){for(;E.panel!==null&&!E.isActionable;)E=E.panel;return E});return x!==null&&x.isActionable?(this.pk=x,a.Ck=a.ic(y.documentPoint,null,null),!0):!1},Ha.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()},Ha.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))}},Ha.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()},Ha.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())},Ha.prototype.doStop=function(){this.pk=null},Ha.className="ActionTool";function Hu(){no.call(this),this.name="ClickCreating",this.Ri=null,this.o=!0,this.j=!1,this.mw=new It(0,0)}re(Hu,no),Hu.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)},Hu.prototype.doMouseUp=function(){var a=this.diagram;this.isActive&&this.insertPart(a.lastInput.documentPoint),this.stopTool()},Hu.prototype.insertPart=function(a){var y=this.diagram,x=this.archetypeNodeData;if(x===null)return null;var E=null;try{if(y.R("ChangingSelection",y.selection),this.Ea(this.name),x instanceof ei)x.Zc()&&(Za(x),E=x.copy(),E!==null&&y.add(E));else if(x!==null){var b=y.model.copyNodeData(x);Te(b)&&(y.model.xf(b),E=y.Lc(b))}if(E!==null){var z=It.allocAt(a.x,a.y);this.isGridSnapEnabled&&eg(this.diagram,E,a,z),E.location=z,y.allowSelect&&(y.clearSelection(!0),E.isSelected=!0),It.free(z)}y.Ya(),this.transactionResult=this.name,y.R("PartCreated",E)}finally{this.stopTransaction(),y.R("ChangedSelection",y.selection)}return E},qt.Object.defineProperties(Hu.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}}}),Hu.className="ClickCreatingTool";function La(){no.call(this),this.name="DragSelecting",this.Ik=175,this.o=!1;var a=new ei;a.layerName="Tool",a.selectable=!1;var y=new Fi;y.name="SHAPE",y.figure="Rectangle",y.fill=null,y.stroke="magenta",a.add(y),this.j=a}re(La,no),La.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))},La.prototype.doActivate=function(){var a=this.diagram;this.isActive=!0,a.isMouseCaptured=!0,a.skipsUndoManager=!0,a.add(this.box),this.doMouseMove()},La.prototype.doDeactivate=function(){var a=this.diagram;a.ug(),a.remove(this.box),a.skipsUndoManager=!1,this.isActive=a.isMouseCaptured=!1},La.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 E=Ee.alloc().h(y.width,y.height);x.desiredSize=E,this.box.mm(y.x,y.y,!1),Ee.free(E),(a.allowHorizontalScroll||a.allowVerticalScroll)&&a.gs(a.lastInput.viewPoint)}},La.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()},La.prototype.computeBoxBounds=function(){var a=this.diagram;return new be(a.firstInput.documentPoint,a.lastInput.documentPoint)},La.prototype.selectInRect=function(a){var y=this.diagram,x=y.lastInput;if(a=y.ux(a,this.isPartialInclusion),Oi?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 $e,y=y.selection.iterator;y.next();){var E=y.value;a.contains(E)||x.add(E)}for(y=x.iterator;y.next();)y.value.isSelected=!1;for(a=a.iterator;a.next();)y=a.value,y.isSelected||(y.isSelected=!0)}},qt.Object.defineProperties(La.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}}}),La.className="DragSelectingTool";function ns(){no.call(this),this.name="Panning",this.Xt=new It,this.xy=new It,this.xg=!1;var a=this;this.Kw=function(){var y=a.diagram;y!==null&&y.removeEventListener(Be.document,"scroll",a.Kw,!1),a.stopTool()}}re(ns,no),ns.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())},ns.prototype.doActivate=function(){var a=this.diagram;this.xg?(a.lastInput.bubbles=!0,a.addEventListener(Be.document,"scroll",this.Kw,!1)):(a.currentCursor="move",a.isMouseCaptured=!0,this.Xt.assign(a.position)),this.isActive=!0},ns.prototype.doDeactivate=function(){var a=this.diagram;a.currentCursor="",this.isActive=a.isMouseCaptured=!1},ns.prototype.doCancel=function(){var a=this.diagram;a.position=this.Xt,a.isMouseCaptured=!1,this.stopTool()},ns.prototype.doMouseMove=function(){this.move()},ns.prototype.doMouseUp=function(){this.move(),this.stopTool()},ns.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,E=a.lastInput.documentPoint,b=y.x+x.x-E.x;x=y.y+x.y-E.y,a.allowHorizontalScroll||(b=y.x),a.allowVerticalScroll||(x=y.y),a.position=this.xy.h(b,x)}},qt.Object.defineProperties(ns.prototype,{bubbles:{get:function(){return this.xg},set:function(a){this.xg=a}},originalPosition:{get:function(){return this.Xt}}}),ns.className="PanningTool",ji("clickCreatingTool",function(){return this.findTool("ClickCreating")},function(a){this.gb("ClickCreating",a,this.mouseUpTools)}),ji("clickSelectingTool",function(){return this.findTool("ClickSelecting")},function(a){this.gb("ClickSelecting",a,this.mouseUpTools)}),ji("panningTool",function(){return this.findTool("Panning")},function(a){this.gb("Panning",a,this.mouseMoveTools)}),ji("dragSelectingTool",function(){return this.findTool("DragSelecting")},function(a){this.gb("DragSelecting",a,this.mouseMoveTools)}),ji("actionTool",function(){return this.findTool("Action")},function(a){this.gb("Action",a,this.mouseDownTools)});function bl(){this.F=this.u=this.j=this.o=null}qt.Object.defineProperties(bl.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}}}),bl.className="HTMLInfo";function Va(a,y,x){this.text=a,this.hx=y,this.visible=x}Va.className="ContextMenuButtonInfo";function As(){no.call(this),this.name="ContextMenu",this.o=this.ht=this.j=null,this.yw=new It,this.jt=null,this.Et=!1;var a=this;this.tu=function(){a.stopTool()}}re(As,no);function tl(a){var y=new bl;y.show=function(b,z,tt){tt.showDefaultContextMenu()},y.hide=function(b,z){z.hideDefaultContextMenu()},Ah=y,a.tu=function(){a.stopTool()},y=ai("div");var x=ai("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 E=ai("style");Be.document.getElementsByTagName("head")[0].appendChild(E),E.sheet.insertRule(".goCXul { list-style: none; }",0),E.sheet.insertRule(".goCXli {font:700 1.5em Helvetica, Arial, sans-serif;position: relative;min-width: 60px; }",0),E.sheet.insertRule(".goCXa {color: #444;display: inline-block;padding: 4px;text-decoration: none;margin: 2px;border: 1px solid gray;border-radius: 10px; }",0),E=a.diagram,E!==null&&(E.addEventListener(y,"contextmenu",dr,!1),E.addEventListener(y,"selectstart",dr,!1),E.addEventListener(x,"contextmenu",dr,!1)),y.className="goCXforeground",x.className="goCXbackground",Be.document.body&&(Be.document.body.appendChild(y),Be.document.body.appendChild(x)),Zd=y,ud=x,Yd=!0}function dr(a){return a.preventDefault(),!1}As.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)},As.prototype.doStart=function(){this.yw.set(this.diagram.firstInput.documentPoint)},As.prototype.doStop=function(){this.hideContextMenu(),this.currentObject=null},As.prototype.findObjectWithContextMenu=function(a){a===void 0&&(a=null);var y=this.diagram,x=y.lastInput,E=null;if(a instanceof ye||(a instanceof ee?E=a:E=y.ic(x.documentPoint,null,function(b){return!b.layer.isTemporary})),E!==null){for(a=E;a!==null;){if(a.contextMenu!==null)return a;a=a.panel}if(y.lastInput.isTouchEvent&&this.defaultTouchContextMenu)return E.part}else if(y.contextMenu!==null)return y;return null},As.prototype.doActivate=function(){},As.prototype.doMouseDown=function(){if(no.prototype.doMouseDown.call(this),this.isActive&&this.currentContextMenu instanceof io){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.canStart()&&(a.doActivate(),a.doMouseDown(),a.doDeactivate())}this.diagram.toolManager.mouseDownTools.contains(this)&&ml(this)},As.prototype.doMouseUp=function(){if(this.isActive&&this.currentContextMenu instanceof io){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.canStart()&&(a.doActivate(),a.doCancel(),a.doDeactivate())}ml(this)};function ml(a){var y=a.diagram;if(a.isActive){var x=a.currentContextMenu;if(x!==null){var E=null;x instanceof bl||(E=y.ic(y.lastInput.documentPoint,null,null),E!==null&&E.rg(x)&&a.standardMouseClick(null,null)),a.maybeStopTool(E)}}else a.canStart()&&(pu(a,!0),a.isActive||a.stopTool())}As.prototype.maybeStopTool=function(){this.stopTool(),this.canStart()&&(this.diagram.currentTool=this,this.doMouseUp())};function pu(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=Ah,x===null&&(x=a.findObjectWithContextMenu()),x!==null){var E=x.contextMenu;E!==null?(a.currentObject=x instanceof ee?x:null,a.showContextMenu(E,a.currentObject)):y!==null&&a.showContextMenu(y,a.currentObject)}else y!==null&&a.showContextMenu(y,null);a.currentContextMenu instanceof io&&!a.currentContextMenu.visible&&a.stopTool()}}As.prototype.doMouseMove=function(){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.doMouseMove(),this.isActive&&this.diagram.toolManager.doMouseMove()},As.prototype.showContextMenu=function(a,y){var x=this.diagram;if(a!==this.currentContextMenu&&this.hideContextMenu(),a instanceof io){a.layerName="Tool",a.selectable=!1,a.scale=1/x.scale,a.category=this.name,a.placeholder!==null&&(a.placeholder.scale=x.scale);var E=a.diagram;E!==null&&E!==x&&E.remove(a),x.add(a),y!==null?a.adornedObject=y:a.data=x.model,a.Va(),this.positionContextMenu(a,y)}else a instanceof bl&&a.show(y,x,this);this.currentContextMenu=a},As.prototype.positionContextMenu=function(a){if(a.placeholder===null){var y=this.diagram,x=y.lastInput.documentPoint.copy(),E=a.measuredBounds,b=y.viewportBounds;y.lastInput.isTouchEvent&&(x.x-=E.width),x.x+E.width>b.right&&(x.x-=E.width+5/y.scale),x.x<b.x&&(x.x=b.x),x.y+E.height>b.bottom&&(x.y-=E.height+5/y.scale),x.y<b.y&&(x.y=b.y),a.position=x}},As.prototype.hideContextMenu=function(){var a=this.diagram,y=this.currentContextMenu;y!==null&&(y instanceof io?(a.remove(y),this.ht!==null&&this.ht.Jf(y.category),y.data=null,y.adornedObject=null):y instanceof bl&&(y.hide!==null?y.hide(a,this):y.mainElement!==null&&(y.mainElement.style.display="none")),this.currentContextMenu=null,this.standardMouseOver())};function Vu(a){var y=new $e;return y.add(new Va("Copy",function(x){x.commandHandler.copySelection()},function(x){return x.commandHandler.canCopySelection()})),y.add(new Va("Cut",function(x){x.commandHandler.cutSelection()},function(x){return x.commandHandler.canCutSelection()})),y.add(new Va("Delete",function(x){x.commandHandler.deleteSelection()},function(x){return x.commandHandler.canDeleteSelection()})),y.add(new Va("Paste",function(x){x.commandHandler.pasteSelection(a.mouseDownPoint)},function(x){return x.commandHandler.canPasteSelection(a.mouseDownPoint)})),y.add(new Va("Select All",function(x){x.commandHandler.selectAll()},function(x){return x.commandHandler.canSelectAll()})),y.add(new Va("Undo",function(x){x.commandHandler.undo()},function(x){return x.commandHandler.canUndo()})),y.add(new Va("Redo",function(x){x.commandHandler.redo()},function(x){return x.commandHandler.canRedo()})),y.add(new Va("Scroll To Part",function(x){x.commandHandler.scrollToPart()},function(x){return x.commandHandler.canScrollToPart()})),y.add(new Va("Zoom To Fit",function(x){x.commandHandler.zoomToFit()},function(x){return x.commandHandler.canZoomToFit()})),y.add(new Va("Reset Zoom",function(x){x.commandHandler.resetZoom()},function(x){return x.commandHandler.canResetZoom()})),y.add(new Va("Group Selection",function(x){x.commandHandler.groupSelection()},function(x){return x.commandHandler.canGroupSelection()})),y.add(new Va("Ungroup Selection",function(x){x.commandHandler.ungroupSelection()},function(x){return x.commandHandler.canUngroupSelection()})),y.add(new Va("Edit Text",function(x){x.commandHandler.editTextBlock()},function(x){return x.commandHandler.canEditTextBlock()})),y}As.prototype.showDefaultContextMenu=function(){var a=this.diagram;this.jt===null&&(this.jt=Vu(this)),Zd.innerHTML="",ud.addEventListener("pointerdown",this.tu,!1);var y=this,x=ai("ul");x.className="goCXul",Zd.appendChild(x),x.innerHTML="";for(var E=this.jt.iterator;E.next();){var b=E.value,z=b.visible;if(typeof b.hx=="function"&&(typeof z!="function"||z(a))){z=ai("li"),z.className="goCXli";var tt=ai("a");tt.className="goCXa",tt.href="#",tt.ky=b.hx,tt.addEventListener("pointerdown",function(ot){return this.ky(a),y.stopTool(),ot.preventDefault(),!1},!1),tt.textContent=b.text,z.appendChild(tt),x.appendChild(z)}}Zd.style.display="block",ud.style.display="block"},As.prototype.hideDefaultContextMenu=function(){if(this.currentContextMenu!==null&&this.currentContextMenu===Ah){Zd.style.display="none",ud.style.display="none";var a=this.diagram;a!==null&&a.removeEventListener(ud,"pointerdown",this.tu,!1),this.currentContextMenu=null}},qt.Object.defineProperties(As.prototype,{currentContextMenu:{get:function(){return this.j},set:function(a){this.j=a,this.ht=a instanceof io?a.adornedPart:null}},defaultTouchContextMenu:{get:function(){return Yd===!1&&Ah===null&&tr&&tl(this),Ah},set:function(a){a===null&&(Yd=!0),Ah=a}},currentObject:{get:function(){return this.o},set:function(a){this.o=a}},mouseDownPoint:{get:function(){return this.yw}}});var Ah=null,Yd=!1,ud=null,Zd=null;As.className="ContextMenuTool",ji("contextMenuTool",function(){return this.findTool("ContextMenu")},function(a){this.gb("ContextMenu",a,this.mouseUpTools)});function Ro(){no.call(this),this.name="TextEditing",this.Zh=new bo,this.ia=null,this.V=hd,this.vj=null,this.qa=dd,this.u=1,this.F=!0,this.o=null,this.j=new bl,this.kt=null,Kd(this,this.j)}re(Ro,no);function Kd(a,y){if(tr){var x=ai("textarea");a.kt=x,x.addEventListener("input",function(){if(a.textBlock!==null){var E=a.Lx(this.value);this.style.width=20+E.measuredBounds.width*this.wA+"px",this.rows=E.lineCount}},!1),x.addEventListener("keydown",function(E){if(!E.isComposing&&a.textBlock!==null){var b=E.key;b==="Enter"?(a.textBlock.isMultiline===!1&&E.preventDefault(),a.acceptText(Qd)):b==="Tab"?(a.acceptText(Yc),E.preventDefault()):b==="Escape"&&(a.doCancel(),a.diagram!==null&&a.diagram.doFocus())}},!1),x.addEventListener("focus",function(){if(a.currentTextEditor!==null&&a.state!==dd){var E=a.kt;a.qa===Xd&&(a.qa=Jd),typeof E.select=="function"&&a.selectsTextOnActivate&&(E.select(),E.setSelectionRange(0,9999))}},!1),x.addEventListener("blur",function(){if(a.currentTextEditor!==null&&a.state!==dd){var E=a.kt;typeof E.focus=="function"&&E.focus(),typeof E.select=="function"&&a.selectsTextOnActivate&&(E.select(),E.setSelectionRange(0,9999))}},!1),y.valueFunction=function(){return x.value},y.mainElement=x,y.show=function(E,b,z){if(E instanceof bo&&z instanceof Ro)if(z.state===qd)x.style.border="3px solid red",x.focus();else{var tt=E.ga(po),ot=b.position,rt=b.scale,at=E.Df()*rt;at<z.minimumEditorScale&&(at=z.minimumEditorScale);var ut=E.naturalBounds.width*at+6,ft=E.naturalBounds.height*at+2,vt=(tt.x-ot.x)*rt;tt=(tt.y-ot.y)*rt,ot=E.verticalAlignment,rt=(E.lineHeight+E.spacingAbove+E.spacingBelow)*E.lineCount*at,ft=ot.y*ft-ot.y*rt+ot.offsetY-(.5*ft-.5*rt)-rt/2,x.value=E.text,b.div.style.font=E.font,x.style.position="absolute",x.style.zIndex="100",x.style.font="inherit",x.style.fontSize=100*at+"%",x.style.lineHeight="normal",x.style.width=ut+"px",x.style.left=(vt-ut/2|0)-1+"px",x.style.top=(tt+ft|0)-1+"px",x.style.textAlign=E.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=E.lineCount,x.wA=at,x.className="goTXarea",b.div.appendChild(x),x.focus(),z.selectsTextOnActivate&&(x.select(),x.setSelectionRange(0,9999))}},y.hide=function(E){E.div.removeChild(x)}}}Ro.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a===null||a.isReadOnly||Uu&&Uu!==this&&(Uu.acceptText(Dl),Uu&&Uu!==this)||!a.lastInput.left||this.isBeyondDragSize())return!1;var y=a.ic(a.lastInput.documentPoint);return y!==null&&y instanceof bo&&y.editable&&y.part.canEdit()?(y=y.part,!(y===null||this.starting===hd&&!y.isSelected||this.starting===Zc&&2>a.lastInput.clickCount)):!1},Ro.prototype.doStart=function(){Uu=this,this.textBlock!==null&&this.doActivate()},Ro.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 bo&&(this.textBlock=y,y.part!==null)){a.animationManager.Cc(),this.isActive=!0,this.qa=Xd;var x=this.defaultTextEditor;y.textEditor!==null&&(x=y.textEditor),this.Zh=this.textBlock.copy();var E=new be(this.textBlock.ga(ir),this.textBlock.ga(zs));a.tv(E),x.show(y,a,this),this.currentTextEditor=x}}}},Ro.prototype.doCancel=function(){this.stopTool()},Ro.prototype.doMouseUp=function(){this.canStart()&&this.doActivate()},Ro.prototype.doMouseDown=function(){this.isActive&&this.acceptText(Dl)},Ro.prototype.acceptText=function(a){switch(a){case Dl:this.qa===cd?this.currentTextEditor instanceof HTMLElement&&this.currentTextEditor.focus():(this.qa===Xd||this.qa===qd||this.qa===Jd)&&(this.qa=of,nf(this));break;case Wc:case Qd:case Yc:(Qd!==a||this.textBlock.isMultiline!==!0)&&(this.qa===Xd||this.qa===qd||this.qa===Jd)&&(this.qa=of,nf(this))}};function nf(a){var y=a.textBlock,x=a.diagram,E=a.currentTextEditor;if(y!==null&&E!==null){var b=y.text,z="";E.valueFunction!==null&&(z=E.valueFunction()),a.isValidText(y,b,z)?(a.Ea(a.name),a.qa=cd,a.transactionResult=a.name,y.text=z,a.doSuccess(b,z),x!==null&&x.R("TextEdited",y,b),a.stopTransaction(),a.stopTool(),x!==null&&x.doFocus()):(a.qa=qd,a.doError(b,z))}}Ro.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)},Ro.prototype.doSuccess=function(a,y){var x=this.textBlock;x.textEdited!==null&&x.textEdited(x,a,y)},Ro.prototype.doDeactivate=function(){var a=this.diagram;a!==null&&(this.qa=dd,this.currentTextEditor!==null&&this.currentTextEditor.hide(a,this),this.textBlock=null,this.isActive=!1)},Ro.prototype.doStop=function(){Uu=null},Ro.prototype.isValidText=function(a,y,x){var E=this.textValidation;return E!==null&&!E(a,y,x)?!1:(E=a.textValidation,!!(E===null||E(a,y,x)))},Ro.prototype.Lx=function(a){var y=this.Zh;return y.text=a,y.measure(this.textBlock.Ih,1/0),y},qt.Object.defineProperties(Ro.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)}}}),Ro.prototype.measureTemporaryTextBlock=Ro.prototype.Lx;var Wc=new De(Ro,"LostFocus",0),Dl=new De(Ro,"MouseDown",1),Yc=new De(Ro,"Tab",2),Qd=new De(Ro,"Enter",3),$m=new De(Ro,"SingleClick",0),hd=new De(Ro,"SingleClickSelected",1),Zc=new De(Ro,"DoubleClick",2),dd=new De(Ro,"StateNone",0),Xd=new De(Ro,"StateActive",1),Jd=new De(Ro,"StateEditing",2),of=new De(Ro,"StateValidating",3),qd=new De(Ro,"StateInvalid",4),cd=new De(Ro,"StateValidated",5),Uu=null;Ro.className="TextEditingTool",Ro.LostFocus=Wc,Ro.MouseDown=Dl,Ro.Tab=Yc,Ro.Enter=Qd,Ro.SingleClick=$m,Ro.SingleClickSelected=hd,Ro.DoubleClick=Zc,Ro.StateNone=dd,Ro.StateActive=Xd,Ro.StateEditing=Jd,Ro.StateValidating=of,Ro.StateInvalid=qd,Ro.StateValidated=cd,ji("textEditingTool",function(){return this.findTool("TextEditing")},function(a){this.gb("TextEditing",a,this.mouseUpTools)});function sa(a){$d||(rf(),$d=!0),this.H=Zl,this.Ok=this.zb=this.vq=this.bc=!1,this.Qw=!0,this.Pk=vu,this.Dm=!1,this.Gh=this.Jd=!0,this.Dg=600,this.cw=this.Ow=!1,this.Zd=new _e,this.ce=new is,this.ce.Yd=this,this.Ei=new _e,this.pu=new _e,this.Sr=new _e,this.pr=new _e,a&&Object.assign(this,a)}sa.prototype.Xe=function(a){this.H=a},sa.prototype.canStart=function(){return!0};function Yl(a,y){a.Jd&&a.canStart(y)&&(a.Zd.add(y),a.defaultAnimation.isAnimating&&a.Cc(),os(a.H),a.zb=!0)}function Kc(a){if(a.Jd&&a.zb){var y=a.ce,x=a.H,E=a.Zd.contains("Model");E&&(a.Ok=!0,a.Pk===vu?(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===sf&&y.vc.clear(),a.Qw=!!(a.Pk===tc&&x.du.D(x.pa)),x.R("InitialAnimationStarting",a)),E&&!a.Gh||y.vc.count===0?(a.Zd.clear(),a.zb=!1,y.vc.clear(),ec(y,x),a.Ok=!1,x.N()):(a.Zd.clear(),x.kg=!1,E=y.vc.get(x),x.autoScale!==fs&&E!==null&&(delete E.start.scale,delete E.end.scale),Be.requestAnimationFrame(function(){a.zb===!1||y.bc||(x.Gf("temporaryPixelRatio")&&Hs(x),df(x),a.zb=!1,y.start(),y.bc&&(Wu(a),x.Ya(),af(y,0),ka(x,!0),Mh(a),x.R("AnimationStarting",a)))}))}}function mu(a){return a.Zd.contains("Trigger")&&a.Zd.count===1}function Qc(a,y,x,E){a.isTicking||mu(a)||y instanceof rn&&(y.fromNode!==null||y.toNode!==null)||a.ce.add(y,"position",x,E,!1)}wt=sa.prototype,wt.fv=function(a){return this.ce.fv(a)},wt.Xu=function(a){return this.ce.Xu(a)};function Xc(a,y){function x(){if(0<b.Sr.count&&(E.addAll(b.Sr),b.Sr.clear(),b.bc=!0),b.bc!==!1&&E.count!==0){b.pu.addAll(E);for(var z=b.pu.iterator;z.next();){var tt=z.value;if(tt.bc!==!1){t:if(0<tt.yl.count)var ot=!0;else{for(ot=tt.vc.iterator;ot.next();){var rt=ot.key;if(rt instanceof ee&&rt.diagram!==null||rt instanceof ye){ot=!0;break t}}ot=!1}ot?nc(tt,!1):tt.Xk=!0}}b.pu.clear(),b.bc!==!1&&(Wu(b),ka(b.H),Mh(b)),Be.requestAnimationFrame(x)}}var E=a.Ei,b=a;a.bc?a.Sr.add(y):(a.bc=!0,E.add(y),Be.requestAnimationFrame(function(){x()}))}function Gp(a){for(a=a.Ei.iterator;a.next();)a.value.Xk=!1}function Wu(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 Mh(a){var y=a.H;y.skipsUndoManager=a.Ow,y.skipsModelSourceBindings=a.cw,a.vq=!1}wt.Cc=function(a){var y=this.ce;if(this.zb===!0&&(this.Ok=this.zb=!1,this.Zd.clear(),0<y.vc.count&&this.H.$b()),this.bc){if(y.Ml(!0),y.vc.clear(),ec(y,null),a===!0)for(a=this.Ei.Fa(),y=0;y<a.length;y++)a[y].Ml(!0)}else y.vc.clear(),ec(y,this.H)},wt.Ml=function(a){a===this.defaultAnimation&&this.defaultAnimation.vc.clear(),this.Ei.remove(a),this.Ei.count===0&&(this.bc=!1,this.H.$b()),a===this.defaultAnimation&&(this.defaultAnimation.vc.clear(),this.H.R("AnimationFinished",this))},wt.Cj=function(a,y){this.zb&&(this.Zd.contains("Expand Tree")||this.Zd.contains("Expand SubGraph"))&&(this.ce.Cj(a,y),Js(this,a))},wt.Aj=function(a,y){this.zb&&(this.Zd.contains("Collapse Tree")||this.Zd.contains("Collapse SubGraph"))&&(this.ce.Aj(a,y),Yu(this.ce,y,"position",y.position,y.position),Js(this,a))};function Hp(a,y,x){!a.zb||y.D(x)||mu(a)||(a.H.pi||(y=x.copy()),Yu(a.ce,a.H,"position",y,x))}function Jc(a,y,x){y.fd&&(y.Tg=x,a.pr.add(y))}function Js(a,y){for(y=y.findLinksConnected();y.next();){var x=y.value;x.fd&&(x.Tg=x.points.copy(),a.pr.add(x))}}function Lh(a,y,x,E,b){a===null&&(a=[0,0,0,0]),y===null&&(y=[0,0,0,0]);var z=a[0],tt=a[1],ot=a[2];a=a[3];var rt=y[0],at=y[1],ut=y[2];return y=y[3],ot===0||ot===100?(z=rt,tt=at):(ut===0||ut===100)&&(rt=z,at=tt),180<Math.abs(rt-z)&&(rt>z?z+=360:rt+=360),z=b(x,z,rt-z,E)%360,tt=b(x,tt,at-tt,E),ot=b(x,ot,ut-ot,E),x=b(x,a,y-a,E),"hsla("+z+", "+tt+"%, "+ot+"%, "+x+")"}function rf(){function a(x,E,b,z,tt,ot){x.position=new It(z(tt,E.x,b.x-E.x,ot),z(tt,E.y,b.y-E.y,ot))}var y=new ri;y.add("position:diagram",a),y.add("position",a),y.add("position:part",function(x,E,b,z,tt,ot){tt<ot?x.mm(z(tt,E.x,b.x-E.x,ot),z(tt,E.y,b.y-E.y,ot),!1):x.position=new It(z(tt,E.x,b.x-E.x,ot),z(tt,E.y,b.y-E.y,ot))}),y.add("location",function(x,E,b,z,tt,ot){tt<ot?x.mm(z(tt,E.x,b.x-E.x,ot),z(tt,E.y,b.y-E.y,ot),!0):x.location=new It(z(tt,E.x,b.x-E.x,ot),z(tt,E.y,b.y-E.y,ot))}),y.add("position:placeholder",function(x,E,b,z,tt,ot){tt<ot?x.mm(z(tt,E.x,b.x-E.x,ot),z(tt,E.y,b.y-E.y,ot),!1):x.position=new It(z(tt,E.x,b.x-E.x,ot),z(tt,E.y,b.y-E.y,ot))}),y.add("position:nodeCollapse",function(x,E,b,z,tt,ot){var rt=x.actualBounds,at=b.actualBounds;b=at.x+at.width/2-rt.width/2,rt=at.y+at.height/2-rt.height/2,tt<ot?x.mm(z(tt,E.x,b-E.x,ot),z(tt,E.y,rt-E.y,ot),!1):x.position=new It(z(tt,E.x,b-E.x,ot),z(tt,E.y,rt-E.y,ot))}),y.add("desiredSize",function(x,E,b,z,tt,ot){x.desiredSize=new be(z(tt,E.width,b.width-E.width,ot),z(tt,E.height,b.height-E.height,ot))}),y.add("width",function(x,E,b,z,tt,ot){x.width=z(tt,E,b-E,ot)}),y.add("height",function(x,E,b,z,tt,ot){x.height=z(tt,E,b-E,ot)}),y.add("fill",function(x,E,b,z,tt,ot){x.fill=Lh(E,b,tt,ot,z)}),y.add("stroke",function(x,E,b,z,tt,ot){x.stroke=Lh(E,b,tt,ot,z)}),y.add("strokeWidth",function(x,E,b,z,tt,ot){x.strokeWidth=z(tt,E,b-E,ot)}),y.add("strokeDashOffset",function(x,E,b,z,tt,ot){x.strokeDashOffset=z(tt,E,b-E,ot)}),y.add("background",function(x,E,b,z,tt,ot){x.background=Lh(E,b,tt,ot,z)}),y.add("areaBackground",function(x,E,b,z,tt,ot){x.areaBackground=Lh(E,b,tt,ot,z)}),y.add("opacity",function(x,E,b,z,tt,ot){x.opacity=z(tt,E,b-E,ot)}),y.add("scale",function(x,E,b,z,tt,ot){x.scale=z(tt,E,b-E,ot)}),y.add("angle",function(x,E,b,z,tt,ot){x.angle=z(tt,E,b-E,ot)}),_d=y}qt.Object.defineProperties(sa.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&&Dn(a,">= 1",sa,"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}}}),sa.prototype.stopAnimation=sa.prototype.Cc;var _d=null,$d=!1,vu=new De(sa,"Default",1),tc=new De(sa,"AnimateLocations",2),sf=new De(sa,"None",3);sa.className="AnimationManager",sa.defineAnimationEffect=function(a,y){$d||(rf(),$d=!0),_d.add(a,y)},sa.Default=vu,sa.AnimateLocations=tc,sa.None=sf;function is(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=gd,this.Wk=this.ho=!1,this.cu=1,this.au=0,this.Gd=this.Dg=NaN,this.gw=0,this.dn=null,this.o=qo,this.vc=new ri,this.Tt=new ri,this.yl=new _e,this.Ut=new _e,this.dw=Qu,a&&Object.assign(this,a)}is.prototype.suspend=function(){this.Xk=!0},is.prototype.advanceTo=function(a,y){y&&(this.Xk=!1),this.ho&&a>=this.Gd&&(this.Wk=!0,a-=this.Gd),this.gw=a,nc(this,!0),Wu(this.Yd),ka(this.H),Mh(this.Yd),this.H.redraw()};function ec(a,y){if(a.Tt.clear(),a.Wk=!1,a.au=0,a.Gd=NaN,0<a.yl.count&&a.yl.clear(),0<a.Ut.count&&a.Ut.clear(),y!==null)for(a=y.links;a.next();)a.value.Tg=null}wt=is.prototype,wt.start=function(){if(this.vc.count===0||this.bc)return this;for(var a=this.H,y=this.vc.iterator;y.next();){var x=y.key;a===null&&(x instanceof ye?a=x:x instanceof ee&&(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===vu&&this===y.defaultAnimation&&(this.Lp=Vp,this.Gd=isNaN(this.Dg)?y.duration===600?900:y.duration:this.Dg),this.dw=a.scrollMode,this.isViewportUnconstrained&&(a.sj=uc),Wu(y),this.yl.each(function(E){E.data=null,a.add(E)}),Mh(y),this.bc=!0,this.Qd=+new Date,this.cn=this.Qd+this.Gd,Xc(y,this),this)},wt.Iy=function(a,y){return a.Zc()?(this.yl.add(a),this.H=y,this):this},wt.add=function(a,y,x,E,b){if(y==="position"&&x.Xa(E))return this;if(this.H===null&&(a instanceof ye?this.H=a:a instanceof ee&&a.diagram!==null&&(this.H=a.diagram)),a instanceof ei){if(!a.isAnimated)return this;y==="position"&&(y="position:part")}return Yu(this,a,y,x,E,b),this};function Yu(a,y,x,E,b,z){var tt=a.vc;if(y instanceof ye&&x==="position"&&(x="position:diagram"),(x==="fill"||x==="stroke"||x==="background"||x==="areaBackground")&&(wu(E),sv(),E=[xa.j,xa.u,xa.o,xa.F],wu(b),sv(),b=[xa.j,xa.u,xa.o,xa.F]),tt.contains(y)){var ot=tt.I(y),rt=ot.start,at=ot.end;rt[x]===void 0&&(rt[x]=Fh(E)),at[x]=Fh(b)}else rt={},at={},rt[x]=Fh(E),at[x]=Fh(b),ot=rt.position,y instanceof ee&&ot instanceof It&&!ot.w()&&y.diagram.animationManager.Zd.contains("Expand SubGraph")&&ot.assign(at.position),ot=new kh(rt,at,z),tt.add(y,ot);tt=rt[x],tt instanceof It&&!tt.w()&&tt.assign(a.o),z&&x.indexOf("position:")===0&&y instanceof ei?ot.Ku.location=Fh(y.location):z&&(ot.Ku[x]=Fh(E))}function Fh(a){return a instanceof It||a instanceof Ee?a.copy():a}wt.fv=function(a){return this.bc?(a=this.vc.I(a),a!==null&&a.nv):!1},wt.Xu=function(a){return this.bc?(a=this.vc.I(a),a!==null&&(a.start.position||a.start.location)):!1};function nc(a,y){if(!a.Xk||y){var x=a.Yd;if(a.bc!==!1){var E=+new Date,b=E>a.cn?a.Gd:E-a.Qd;y&&(b=a.gw,b<a.Gd?(a.Qd=+new Date-b,a.cn=a.Qd+a.Gd):b=a.Gd),Wu(x),af(a,b),ka(a.H,!0),Mh(x),E>a.cn&&(a.ho&&!a.Wk?(a.Qd=+new Date,a.cn=a.Qd+a.Gd,a.Wk=!0):a.Ml(!1))}}}function af(a,y){for(var x=a.Gd,E=a.vc.iterator,b=a.Wk;E.next();){var z=E.key;if(!(z instanceof ee&&z.diagram===null)){var tt=E.value,ot=b?tt.end:tt.start;tt=b?tt.start:tt.end;var rt=_d,at;for(at in tt)at==="position"&&(tt["position:placeholder"]||tt["position:nodeCollapse"])||rt.get(at)===null||rt.get(at)(z,ot[at],tt[at],a.Lp,y,x,a)}}}wt.stop=function(){return this.bc?(this.Ml(!0),this):this},wt.Ml=function(a){if(this.vu!==null&&this.vu.jo.remove(this.Nw),this.bc){var y=this.H,x=this.Yd;this.Xk=this.bc=x.Ok=!1,Wu(x);for(var E=this.vc,b=this.yl.iterator;b.next();)y.remove(b.value);for(b=this.Ut.iterator;b.next();)b.value.v();b=this.ho,E=E.iterator;for(var z=_d;E.next();){var tt=E.key,ot=E.value,rt=b?ot.end:ot.start,at=b?ot.start:ot.end,ut=ot.Ku,ft;for(ft in at)if(z.get(ft)!==null){var vt=ft;!ot.Hu||vt!=="position:nodeCollapse"&&vt!=="position:placeholder"||(vt="position"),z.get(vt)(tt,rt[ft],ut[ft]!==void 0?ut[ft]:ot.Hu?rt[ft]:at[ft],this.Lp,this.Gd,this.Gd,this)}ot.Hu&&ut.location!==void 0&&tt instanceof ei&&(tt.location=ut.location),ot.nv&&tt instanceof ei&&tt.Zb(!1)}if(y.As.clear(),ic(y,!1),y.Ya(),y.N(),ka(y,!0),x.defaultAnimation===this){for(ft=x.pr.iterator;ft.next();)b=ft.value,b.Tg!==null&&(b.points=b.Tg,b.Tg=null);x.pr.clear()}ka(y,!0),this.isViewportUnconstrained&&(y.scrollMode=this.dw),Mh(x),this.au++,!a&&this.cu>this.au?(this.Wk=!1,this.start()):(this.dn&&this.dn(this),ec(this,null),x.Ml(this),y.$b())}},wt.Cj=function(a,y){var x=y.actualBounds,E=null;if(y instanceof Ai&&(E=y.placeholder),E!==null?(x=E.ga(ir),E=E.padding,x.x+=E.left,x.y+=E.top,this.add(a,"position",x,a.position,!1)):this.add(a,"position",new It(x.x+x.width/2,x.y+x.height/2),a.position,!1),this.add(a,"scale",.01,a.scale,!1),a instanceof Ai)for(a=a.memberParts;a.next();)E=a.value,E instanceof Fn&&this.Cj(E,y)},wt.Aj=function(a,y){if(a.isVisible()){var x=null;if(y instanceof Ai&&(x=y.placeholder),x!==null){var E=x.ga(ir);x=x.padding,E.x+=x.left,E.y+=x.top,this.add(a,"position:placeholder",a.position,E,!0)}else this.add(a,"position:nodeCollapse",a.position,y,!0);if(this.add(a,"scale",a.scale,.01,!0),E=this.vc,E.contains(a)&&(E.I(a).nv=!0),a instanceof Ai)for(a=a.memberParts;a.next();)E=a.value,E instanceof Fn&&this.Aj(E,y)}},wt.Ez=function(a){var y=this.Tt.get(a);return y===null&&(y={},this.Tt.add(a,y)),y},qt.Object.defineProperties(is.prototype,{duration:{get:function(){return this.Dg},set:function(a){1>a&&Dn(a,">= 1",is,"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}}}),is.prototype.getTemporaryState=is.prototype.Ez,is.prototype.stop=is.prototype.stop,is.prototype.add=is.prototype.add,is.prototype.addTemporaryPart=is.prototype.Iy;function gd(a,y,x,E){return a/=E/2,1>a?x/2*a*a+y:-x/2*(--a*(a-2)-1)+y}function Vp(a,y,x,E){return a===E?y+x:x*(-Math.pow(2,-10*a/E)+1)+y}is.className="Animation",is.EaseLinear=function(a,y,x,E){return x*a/E+y},is.EaseInOutQuad=gd,is.EaseInQuad=function(a,y,x,E){return x*(a/=E)*a+y},is.EaseOutQuad=function(a,y,x,E){return-x*(a/=E)*(a-2)+y},is.EaseInExpo=function(a,y,x,E){return a===0?y:x*Math.pow(2,10*(a/E-1))+y},is.EaseOutExpo=Vp;function kh(a,y,x){this.start=a,this.end=y,this.Ku={},this.Hu=x,this.nv=!1}kh.className="AnimationState";function el(a,y,x){this.xd=null,this.rf=a,this.so=x||lf,this.uk=null,y!==void 0&&(this.uk=y,x===void 0&&(this.so=Bh))}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 Up(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))}qt.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 lf=new De(el,"Default",1),Bh=new De(el,"Immediate",2),fd=new De(el,"Bundled",3);el.className="AnimationTrigger",el.Default=lf,el.Immediate=Bh,el.Bundled=fd;function Hr(a){xo(this),this.H=null,this.Pa=new $e,this.xa="",this.pb=1,this.o=!1,this.j=this.Uh=this.u=this.Oi=this.Ni=this.Mi=this.Li=this.Ji=this.Ki=this.Ii=this.Qi=this.Hi=this.Pi=this.Gi=this.Fi=!0,this.Zq=[],a&&Object.assign(this,a)}wt=Hr.prototype,wt.clear=function(){for(var a=this.Pa,y=0;y<a.length;y++){var x=a.s[y];x.Ig=null,hs(x)}a.clear(),this.Zq.length=0},wt.Xe=function(a){this.H=a},wt.toString=function(a){a===void 0&&(a=0);var y='Layer "'+this.name+'"';if(0>=a)return y;for(var x=0,E=0,b=0,z=0,tt=0,ot=this.Pa.iterator;ot.next();){var rt=ot.value;rt instanceof Ai?b++:rt instanceof Fn?E++:rt instanceof rn?z++:rt instanceof io?tt++:x++}if(ot="",0<x&&(ot+=x+" Parts "),0<E&&(ot+=E+" Nodes "),0<b&&(ot+=b+" Groups "),0<z&&(ot+=z+" Links "),0<tt&&(ot+=tt+" Adornments "),1<a)for(a=this.Pa.iterator;a.next();)x=a.value,ot+=`
|
|
`+x.toString(),E=x.data,E!==null&&to(E)&&(ot+=" #"+to(E)),x instanceof Fn?ot+=" "+Xi(E):x instanceof rn&&(ot+=" "+Xi(x.fromNode)+" "+Xi(x.toNode));return y+" "+this.Pa.count+": "+ot},wt.ic=function(a,y,x){if(y===void 0&&(y=null),x===void 0&&(x=null),this.Uh===!1)return null;var E=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(E=!0);for(var b=It.alloc(),z=this.Pa.s,tt=z.length;tt--;){var ot=z[tt];if((E!==!0||Gh(ot)!==!1)&&ot.isVisible()&&(b.assign(a),Mn(b,ot.oe),ot=ot.ic(b,y,x),ot!==null&&(y!==null&&(ot=y(ot)),ot!==null&&(x===null||x(ot)))))return It.free(b),ot}return It.free(b),null},wt.ji=function(a,y,x,E){if(y===void 0&&(y=null),x===void 0&&(x=null),E instanceof $e||E instanceof _e||(E=new _e),this.Uh===!1)return E;var b=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(b=!0);for(var z=It.alloc(),tt=this.Pa.s,ot=tt.length;ot--;){var rt=tt[ot];if((b!==!0||Gh(rt)!==!1)&&rt.isVisible()){z.assign(a),Mn(z,rt.oe);var at=rt;rt.ji(z,y,x,E)&&(y!==null&&(at=y(at)),at===null||x!==null&&!x(at)||E.add(at))}}return It.free(z),E},wt.Cf=function(a,y,x,E,b){if(y===void 0&&(y=null),x===void 0&&(x=null),E===void 0&&(E=!1),b instanceof $e||b instanceof _e||(b=new _e),this.Uh===!1)return b;var z=!1;this.diagram!==null&&this.diagram.viewportBounds.Re(a)&&(z=!0);for(var tt=this.Pa.s,ot=tt.length;ot--;){var rt=tt[ot];if((z!==!0||Gh(rt)!==!1)&&rt.isVisible()){var at=rt;rt.Cf(a,y,x,E,b)&&(y!==null&&(at=y(at)),at===null||x!==null&&!x(at)||b.add(at))}}return b},wt.Nu=function(a,y,x,E,b,z,tt){if(this.Uh===!1)return b;for(var ot=this.Pa.s,rt=ot.length;rt--;){var at=ot[rt];if((tt!==!0||Gh(at)!==!1)&&z(at)&&at.isVisible()){var ut=at;at.Cf(a,y,x,E,b)&&(y!==null&&(ut=y(ut)),ut===null||x!==null&&!x(ut)||b.add(ut))}}return b},wt.og=function(a,y,x,E,b,z){if(x===void 0&&(x=null),E===void 0&&(E=null),b===void 0&&(b=!0),b!==!1&&b!==!0&&((b instanceof $e||b instanceof _e)&&(z=b),b=!0),z instanceof $e||z instanceof _e||(z=new _e),this.Uh===!1)return z;var tt=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(tt=!0);for(var ot=It.alloc(),rt=It.alloc(),at=this.Pa.s,ut=at.length;ut--;){var ft=at[ut];if((tt!==!0||Gh(ft)!==!1)&&ft.isVisible()){ot.assign(a),Mn(ot,ft.oe),rt.h(a.x+y,a.y),Mn(rt,ft.oe);var vt=ft;ft.og(ot,rt,x,E,b,z)&&(x!==null&&(vt=x(vt)),vt===null||E!==null&&!E(vt)||z.add(vt))}}return It.free(ot),It.free(rt),z},wt.Fd=function(a,y){if(this.visible){var x=this.Pa.s,E=x.length;if(E!==0){a=Rn();for(var b=Rn(),z=0;z<E;z++){var tt=x[z];if(tt.vw=z,tt instanceof rn){if(tt.fd===!1)continue}else if(tt instanceof io&&tt.adornedPart!==null)continue;var ot=tt.actualBounds;tt.isVisible()&&jo(ot,y)?(tt.Fd(!0),a.push(tt)):(tt.Fd(!1),tt.adornments!==null&&0<tt.adornments.count&&b.push(tt))}for(y=0;y<a.length;y++)for(x=a[y],Iv(x),x=x.adornments;x.next();)E=x.value,E.measure(1/0,1/0),E.arrange(),E.Fd(!0);for(y=0;y<b.length;y++)Iv(b[y]);qn(a),qn(b)}}};function yu(a,y){var x=1;return a.pb!==1&&(x=y.globalAlpha,y.globalAlpha=x*a.pb),x}wt.gc=function(a,y,x){if(this.visible&&this.pb!==0&&(x===void 0&&(x=!0),x||!this.isTemporary)){x=this.Pa.s;var E=x.length;if(E!==0){if(a.isTemporary)for(var b=0;b<E;b++)x[b].Gj();b=yu(this,a);var z=this.Zq;z.length=0;for(var tt=y.scale,ot=be.alloc(),rt=0;rt<E;rt++)this.Oj(a,x[rt],y,z,tt,ot,!0);if(be.free(ot),a.isTemporary)for(y=0;y<E;y++)x[y].Gj();a.globalAlpha=b}}};function Wp(a,y,x,E,b){if(a.visible&&a.pb!==0&&(b||!a.isTemporary)){b=a.Pa.s;var z=b.length;if(z!==0){var tt=yu(a,y),ot=a.Zq;ot.length=0;for(var rt=x.scale,at=be.alloc(),ut=0;ut<z;ut++){var ft=b[ut];E.contains(ft)&&a.Oj(y,ft,x,ot,rt,at,!1)}be.free(at),y.globalAlpha=tt}}}wt.Oj=function(a,y,x,E,b,z,tt){if(tt&&!Gh(y))a.Hs(y);else{if(E!==null&&y instanceof rn&&(y.isOrthogonal&&E.push(y),y.fd===!1)){a.Hs(y);return}for(tt=!1,E=y.containingGroup;E!==null;)tt?E.tb!==null&&z.Ex(E.tb):E.tb!==null&&(tt=!0,z.assign(E.tb)),E=E.containingGroup;var ot=y.actualBounds;if(E=!1,tt&&y.isVisible()){if(!z.Yc(ot)){a.Hs(y);return}E=!z.Re(ot)}E&&(a.save(),a instanceof aa?a.bk=z.copy():(a.beginPath(),a.rect(z.x,z.y,z.width,z.height),a.clip())),ot.width*b>x.Oq||ot.height*b>x.Oq?y.gc(a,x):(b=y.actualBounds,z=y.naturalBounds,b.width===0||b.height===0||isNaN(b.x)||isNaN(b.y)||!y.isVisible()||(x=y.transform,y.areaBackground!==null&&(er(y,a,y.areaBackground,!0,!0,z,b),a.fillRect(b.x,b.y,b.width,b.height)),y.areaBackground===null&&y.background===null&&(er(y,a,"rgba(0,0,0,0.3)",!0,!1,z,b),a.fillRect(b.x,b.y,b.width,b.height)),y.background!==null&&(a.transform(x.m11,x.m12,x.m21,x.m22,x.dx,x.dy),er(y,a,y.background,!0,!1,z,b),a.fillRect(0,0,z.width/2,z.height/2),x.ws()||(y=1/(x.m11*x.m22-x.m12*x.m21),a.transform(x.m22*y,-x.m12*y,-x.m21*y,x.m11*y,y*(x.m21*x.dy-x.m22*x.dx),y*(x.m12*x.dx-x.m11*x.dy)))))),E&&(a.restore(),a.Vc(!0))}},wt.g=function(a,y,x,E,b){var z=this.diagram;z!==null&&z.cb(Uo,a,this,y,x,E,b)},wt.oi=function(a,y,x){var E=this.Pa;if(y.Ig=this,this===null&&hs(y),a>=E.count)a=E.count;else if(E.M(a)===y)return-1;return E.Gb(a,y),y.Vo(x),E=this.diagram,E!==null&&(x?E.N():E.oi(y)),qc(this,a,y),a},wt.pc=function(a,y,x){if(!x&&y.layer!==this&&y.layer!==null)return y.layer.pc(a,y,x);var E=this.Pa;if(0>a||a>=E.length){if(a=E.indexOf(y),0>a)return-1}else if(E.M(a)!==y&&(a=E.indexOf(y),0>a))return-1;return y.Wo(x),E.mb(a),E=this.diagram,E!==null&&(x?E.N():E.pc(y)),y.Ig=null,hs(y),a};function qc(a,y,x){if(y=Yp(a,y,x),x instanceof Ai&&x!==null&&isNaN(x.zOrder)){if(x.memberParts.count!==0){for(var E=-1,b=a.Pa.s,z=b.length,tt=0;tt<z;tt++){var ot=b[tt];if(ot===x&&(y=tt,0<=E)||0>E&&ot.containingGroup===x&&(E=tt,0<=y))break}!(0>E)&&E<y&&(b=a.Pa,b.mb(y),b.Gb(E,x))}y=x.containingGroup,y!==null&&qc(a,-1,y)}x.svg!==null&&x.svg.remove()}function Yp(a,y,x){var E=x.zOrder;if(isNaN(E))return y;a=a.Pa;var b=a.count;if(1>=b)return y;if(0>y&&(y=a.indexOf(x)),0>y)return-1;for(var z=y-1,tt=NaN;0<=z&&(tt=a.M(z).zOrder,!!isNaN(tt));)z--;for(var ot=y+1,rt=NaN;ot<b&&(rt=a.M(ot).zOrder,!!isNaN(rt));)ot++;if(!isNaN(tt)&&tt>E)for(;;){if(z===-1||tt<=E){if(z++,z===y)break;return a.mb(y),a.Gb(z,x),z}for(tt=NaN;0<=--z&&(tt=a.M(z).zOrder,isNaN(tt)););}else if(!isNaN(rt)&&rt<E)for(;;){if(ot===b||rt>=E){if(ot--,ot===y)break;return a.mb(y),a.Gb(ot,x),ot}for(rt=NaN;++ot<b&&(rt=a.M(ot).zOrder,isNaN(rt)););}return y}qt.Object.defineProperties(Hr.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)&&Dn(a,"0 <= value <= 1",Hr,"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))}}}),Hr.prototype.findObjectsNear=Hr.prototype.og,Hr.prototype.findObjectsIn=Hr.prototype.Cf,Hr.prototype.findObjectsAt=Hr.prototype.ji,Hr.prototype.findObjectAt=Hr.prototype.ic,Hr.className="Layer";function ye(a,y){if(r0||(ls(),r0=!0),xo(this),Zl=this,this.vb=!0,this.Ka=null,this.ya=this.Aa=0,this.ta=null,tr){var x=this,E=function(){x.removeEventListener(Be.document,"DOMContentLoaded",E,!1),x.setRTL()};Be.document.body!==null?this.setRTL():x.addEventListener(Be.document,"DOMContentLoaded",E,!1)}this.ol=null,lg.add("Model",yo);var b=this;return this.Hb=function(z){var tt=b.partManager;if(z.model===tt.diagram.model&&tt.diagram.aa){tt.diagram.aa=!1;try{var ot=z.change;z.modelChange===""&&ot===Uo&&tt.updateDataBindings(z.object,z.propertyName)}finally{tt.diagram.aa=!0}}},this.Oc=function(z){b.partManager.doModelChanged(z)},this.hu=this.ku=null,Zp(this),this.model=hy(),this.Wg=!0,Qp(this),this.layout=new Ho,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 s0,a!==void 0&&(typeof a=="string"||Be.Element&&a instanceof Element?hf(this,a):y=a),this.vb=!1,y&&this.nm(y),this}var Nh,Zl;function Zp(a){a.Yd=new sa,a.Yd.Xe(a),a.Db=17,a.Gw=!1,a.tn=!1,a.bu="default",a.Wa=new $e,a.pj=new ri,a.nl="default",a.Tx(),a.Sx(),a.pb=1,a.pa=new It(NaN,NaN).freeze(),a.du=new It(NaN,NaN),a.Ca=1,a.Pp=1,a.zt=new It(NaN,NaN).freeze(),a.At=NaN,a.Ot=1e-4,a.Mt=100,a.Ab=new Di,a.zu=new It(NaN,NaN).freeze(),a.ut=new be(NaN,NaN,NaN,NaN).freeze(),a.rj=new yi(0,0,0,0).freeze(),a.sj=Qu,a.nu=!1,a.Zt=null,a.fu=null,a.yh=fs,a.zk=Or,a.Fg=fs,a.pq=Or,a.yt=ir,a.Bt=ir,a.Fc=!0,a.pn=!1,a.De=new _e,a.Eh=new ri,a.Xm=!0,a.vp=250,a.vk=-1,a.xp=new yi(16,16,16,16).freeze(),a.kg=!1,a.Jk=!1,a.fn=!0,a.bq=new cs,a.bq.diagram=a,a.Qg=new cs,a.Qg.diagram=a,a.cj=new cs,a.cj.diagram=a,a.zg=null,a.pf=null,a.qu=!1,ev(a),a.ai=new _e,a.Ht=!0,a.uu=Xu,a.pw=!1,a.wu=lc,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 ri,a.Xn=new $e,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 yi(5).freeze(),a.Hw=new _e().freeze(),a.Nt=999999999,a.nw=new _e().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 _e,a.ow=new _e,a.Xh=null,a.aw=new Ee(8,8),a.bw=999,a.Bw=1,a.Jw=0,a.fc={scale:1,position:new It,bounds:new be,Py:new Ee,bA:new Ee,Oz:!1},a.fc.canvasSize=a.fc.Py,a.fc.newCanvasSize=a.fc.bA,a.fc.isScroll=!1,a.Rw=new be(NaN,NaN,NaN,NaN).freeze(),a.wo=new Ee(NaN,NaN).freeze(),a.Sp=new be(NaN,NaN,NaN,NaN).freeze(),a.It=!1,a.Lg=new ri;var y=new Fn,x=new bo;x.bind(new cr("text","",Xi)),y.add(x),a.ny=y,a.Lg.add("",y),y=new Fn,x=new bo,x.stroke="brown",x.bind(new cr("text","",Xi)),y.add(x),a.Lg.add("Comment",y),y=new Fn,y.selectable=!1,y.avoidable=!1,x=new Fi,x.figure="Ellipse",x.fill="black",x.stroke=null,x.desiredSize=new Ee(3,3).ja(),y.add(x),a.Lg.add("LinkLabel",y),a.Yi=new ri,y=new Ai,y.selectionObjectName="GROUPPANEL",y.type=tn.Vertical,x=new bo,x.font="bold 12pt sans-serif",x.bind(new cr("text","",Xi)),y.add(x),x=new tn(tn.Auto),x.name="GROUPPANEL";var E=new Fi;E.figure="Rectangle",E.fill="rgba(128,128,128,0.2)",E.stroke="black",x.add(E),E=new ks,E.padding=new yi(5,5,5,5).ja(),x.add(E),y.add(x),a.ly=y,a.Yi.add("",y),a.Kh=new ri,y=new rn,x=new Fi,x.isPanelMain=!0,y.add(x),x=new Fi,x.toArrow="Standard",x.fill="black",x.stroke=null,x.strokeWidth=0,y.add(x),a.my=y,a.Kh.add("",y),y=new rn,x=new Fi,x.isPanelMain=!0,x.stroke="brown",y.add(x),a.Kh.add("Comment",y),y=new io,y.type=tn.Auto,x=new Fi,x.fill=null,x.stroke="dodgerblue",x.strokeWidth=3,y.add(x),x=new ks,x.margin=new yi(1.5,1.5,1.5,1.5).ja(),y.add(x),a.St=y,a.wt=y,y=new io,y.type=tn.Link,x=new Fi,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 yo,a.toolManager=new Vo,a.toolManager.initializeStandardTools(),a.defaultTool=a.toolManager,a.currentTool=a.defaultTool,a.nt=null,a.Wm=new st,a.Vt=null,a.Wt=null,a.Mr=!1,a.commandHandler=Kp(),a.eq=null,a.fq=Xo,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 It,a.zy=500,a.wp=new It,a.wq=!1}ye.prototype.clear=function(){this.animationManager.Cc(),this.model.clear(),wd=null,Oh="",uf(this,!1),this.Xn.clear(),wg(),this.Og.clear(),this.Xh=null,this.Ya(),this.Va(),this.N()};function uf(a,y){a.animationManager.Cc(!0),a.Hw=new _e().freeze(),a.nw=new _e().freeze();var x=a.skipsUndoManager,E=a.cc!==null&&a.cc!==void 0;E&&(a.skipsUndoManager=!0);var b=null;a.fe!==null&&(b=a.fe.part,b!==null&&a.remove(b));var z=[],tt=a.Wa.length;if(y){for(y=0;y<tt;y++)for(var ot=a.Wa.s[y].parts;ot.next();){var rt=ot.value;rt!==b&&rt.data===null&&z.push(rt)}for(y=0;y<z.length;y++)a.remove(z[y])}for(y=0;y<tt;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(),wg(),a.Og.clear(),Ci=[],b!==null&&(a.add(b),a.partManager.parts.remove(b)),E&&(a.skipsUndoManager=x),z}function Kp(){return null}ye.prototype.reset=function(){this.clear(),this.vb=!0,Zp(this),Il(this),this.Wg=!0,Qp(this),this.layout=new Ho,this.Wg=!1,this.model=hy(),this.model.undoManager=new Zo,this.vb=this.rn=!1,this.N()},ye.prototype.setRTL=function(a){a=a===void 0?this.div:a,a===null&&(a=Be.document.body);var y=ai("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},ye.prototype.setScrollWidth=function(a){a=a===void 0?this.div:a,a===null&&(a=Be.document.body);var y=0;if(tr){var x=o0;y=Nh,x===null&&(x=o0=ai("p"),x.style.width="100%",x.style.height="200px",x.style.boxSizing="content-box",y=Nh=ai("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 E=x.offsetWidth;y.style.overflow="scroll",x=x.offsetWidth,E===x&&(x=y.clientWidth),a.removeChild(y),y=E-x,y!==0||Oi||(y=11)}this.Db=y,this.Gw=!0},ye.prototype.qb=function(a){a.classType===ye&&(this.autoScale=a)},ye.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 hf(a,y){if(tr){if(y!=null||zt("Diagram setup requires an argument DIV."),a.Ka!==null&&zt("Diagram has already completed setup."),typeof y=="string"?a.Ka=Be.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&&Be.ResizeObserver){var x=Qn(function(){a.$b()},250);a.ol=new Be.ResizeObserver(function(){x()}),a.ol.observe(a.Ka)}Be.getComputedStyle(a.Ka,null).position==="static"&&(a.Ka.style.position="relative"),y=5;var E="rgba(2"+y+"5, 255, 255, 0)";y--,a.Ka.style["-webkit-tap-highlight-color"]=E,a.Ka.innerHTML="",a.Ka.H=a,a.Ka.goDiagram=a,a.Ka.go=Be.go;var b=new Ya(a);if(b.style!==void 0&&(b.style.position="absolute",b.style.top="0px",b.style.left="0px",Be.getComputedStyle(a.Ka,null).getPropertyValue("direction")==="rtl"&&(a.tn=!0),b.style.zIndex="2",b.style.userSelect="none",b.style.MozUserSelect="none",b.style.touchAction="none",b.style.letterSpacing="normal !important",b.style.wordSpacing="normal !important"),a.ta=b,a.ib=b.context,E=a.ib,a.Mb=a.computePixelRatio(),a.viewSize.w()||(a.Aa=a.Ka.clientWidth||1,a.ya=a.Ka.clientHeight||1),yf(a,a.Aa,a.ya),a.Ka.insertBefore(b.Oa,a.Ka.firstChild),b=new Ya(null),b.width=1,b.height=1,a.jw=b,a.oy=b.context,tr){b=ai("div");var z=ai("div");b.style.position="absolute",b.style.overflow="auto",b.style.width=a.Aa+"px",b.style.height=a.ya+"px",b.style.zIndex="1",z.style.position="absolute",z.style.width="1px",z.style.height="1px",a.Ka.appendChild(b),b.appendChild(z),b.onscroll=Jp,b.addEventListener("pointerdown",qp),b.H=a,b.uy=!0,b.vy=!0,a.ku=b,a.hu=z}a.hk=Qn(function(){a.Yh=null,a.N()},300),a.Ov=Qn(function(){df(a)},250),a.preventDefault=function(tt){return tt.preventDefault(),!1},a.$j=function(tt){if(a.isEnabled){var ot=Fa(a,tt,!0);ot.bubbles=!0;var rt=0,at=0;ot.delta=0,tt.deltaX!==void 0?(tt.deltaX!==0&&(rt=0<tt.deltaX?1:-1),tt.deltaY!==0&&(at=0<tt.deltaY?1:-1),ot.delta=Math.abs(tt.deltaX)>Math.abs(tt.deltaY)?-rt:-at):tt.wheelDeltaX!==void 0?(tt.wheelDeltaX!==0&&(rt=0<tt.wheelDeltaX?-1:1),tt.wheelDeltaY!==0&&(at=0<tt.wheelDeltaY?-1:1),ot.delta=Math.abs(tt.wheelDeltaX)>Math.abs(tt.wheelDeltaY)?-rt:-at):tt.wheelDelta!==void 0&&tt.wheelDelta!==0&&(ot.delta=0<tt.wheelDelta?1:-1),a.doMouseWheel(),nl(ot,tt)}},a.aA=function(tt){a.isEnabled&&(a.Vk=!1,Fa(a,tt,!0),tt=a.currentTool,tt.cancelWaitAfter(),tt.standardMouseOver())},a.ui=function(tt){if(a.isEnabled){a.Vk=!0;var ot=a.Yt;ot[tt.pointerId]===void 0&&(ot[tt.pointerId]=tt),ot=a.oj;var rt=!1;if(ot[0]===null||ot[0].pointerId!==tt.pointerId&&ot[0].pointerType===tt.pointerType)if(ot[1]!==null&&ot[1].pointerId===tt.pointerId)ot[1]=tt,rt=!0;else if(ot[0]===null)ot[0]=tt;else if(ot[1]===null)ot[1]=tt,rt=!0;else{tt.preventDefault();return}else ot[0]=tt;(ot=tt.pointerType==="touch"||tt.pointerType==="pen")&&(a.qu=!1,a.wq=!0);var at=rt;rt=pf(a,tt,!0,!1,!0,at),md(a,tt,rt),rt.targetDiagram=ff(tt,tt.target),rt.targetObject=null,at||rt.clone(a.bq),at=a.uw,ot=ot?25:10,tt.timeStamp-a.tw<a.zy&&!(Math.abs(at.x-tt.screenX)>ot||Math.abs(at.y-tt.screenY)>ot)?a.yq++:a.yq=1,rt.clickCount=a.yq,a.tw=tt.timeStamp,a.uw.sg(tt.screenX,tt.screenY),a.doMouseDown(),tt.button===1?tt.preventDefault():nl(rt,tt)}},a.dk=function(tt){if(a.isEnabled){a.Vk=!0;var ot=a.oj;if(ot[0]===null||ot[0].pointerId!==tt.pointerId&&ot[0].pointerType===tt.pointerType){if(ot[1]!==null&&ot[1].pointerId===tt.pointerId){ot[1]=tt;return}if(ot[0]===null)ot[0]=tt;else return}else ot[0]=tt;if(ot[0].pointerId===tt.pointerId){ot=pf(a,tt,!1,!1,!1,ot[1]!==null);var rt=Be.document.elementFromPoint(tt.clientX,tt.clientY)||null;rt!==null&&rt.shadowRoot!==void 0&&rt.shadowRoot!==null&&(rt=rt.shadowRoot.elementFromPoint(tt.clientX,tt.clientY));var at=a,ut=tt;rt&&rt.H&&(ut=tt,at=rt.H),ot.targetDiagram=at,md(a,ut,ot),ot.targetObject=null,a.doMouseMove(),nl(ot,tt)}}},a.fk=function(tt){if(a.isEnabled){a.Vk=!0;var ot=tt.pointerType==="touch"||tt.pointerType==="pen",rt=a.Yt;if(ot&&a.qu)delete rt[tt.pointerId],tt.preventDefault();else if(rt=a.oj,rt[0]===null||rt[0].pointerId!==tt.pointerId&&rt[0].pointerType===tt.pointerType)rt[1]!==null&&rt[1].pointerId===tt.pointerId&&(rt[1]=null);else{rt[0]=null,rt=pf(a,tt,!1,!0,!0,!1);var at=Be.document.elementFromPoint(tt.clientX,tt.clientY)||null;at!==null&&at.shadowRoot!==void 0&&at.shadowRoot!==null&&(at=at.shadowRoot.elementFromPoint(tt.clientX,tt.clientY)),at!==null&&at.H instanceof ye&&at.H!==a&&md(at.H,tt,rt),at===null&&(at=tt.target),md(a,tt,rt),rt.clickCount=a.yq,rt.targetDiagram=ff(tt,at),rt.targetObject=null,a.doMouseUp(),nl(rt,tt),ot&&(a.wq=!1)}}},a.ek=function(tt){if(a.isEnabled){a.Vk=!1;var ot=a.Yt;ot[tt.pointerId]&&delete ot[tt.pointerId],ot=a.oj,ot[0]!==null&&ot[0].pointerId===tt.pointerId&&(ot[0]=null),ot[1]!==null&&ot[1].pointerId===tt.pointerId&&(ot[1]=null),tt.pointerType!=="touch"&&tt.pointerType!=="pen"&&(tt=a.currentTool,tt.cancelWaitAfter(),tt.standardMouseOver())}},a.ck=function(tt){var ot=a.oj;ot[0]!==null&&ot[0].pointerId===tt.pointerId?(ot[0]=null,a.wq=!1):ot[1]!==null&&ot[1].pointerId===tt.pointerId&&(ot[1]=null)},a.Vp=E.Z["d"+dc[1]+dc[2]+"wI"+Cd.slice(1,5)]["b"+bx.slice(1,y)](E.Z,hc,y,y),E.Vc(!0),tv(a),a.nl==="svg"&&(y=a.pj.get("svg"),a.Ka.appendChild(y.Oa),a.ib=y.context)}}ye.prototype.addEventListener=function(a,y,x,E){a.addEventListener(y,x,{capture:E,passive:!1})},ye.prototype.removeEventListener=function(a,y,x,E){a.removeEventListener(y,x,{capture:E})};function tv(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(Be,"resize",a.Ov,!1)}function Hs(a){30<a.Sq&&(a.Yh=1)}function ic(a,y){a.Yh!==null&&(a.Yh=null,y&&a.hk(),_n&&_n.nx||(a.Sq=0,a.zw=[0,0,0,0,0],a.Tq=0))}ye.prototype.computePixelRatio=function(){return this.Yh!==null?this.Yh:Be.devicePixelRatio||1},ye.prototype.doMouseMove=function(){this.currentTool.doMouseMove()},ye.prototype.doMouseDown=function(){this.currentTool.doMouseDown()},ye.prototype.doMouseUp=function(){this.currentTool.doMouseUp()},ye.prototype.doMouseWheel=function(){this.currentTool.doMouseWheel()},ye.prototype.doKeyDown=function(){this.currentTool.doKeyDown()},ye.prototype.doKeyUp=function(){this.currentTool.doKeyUp()},ye.prototype.doFocus=function(){this.focus()},ye.prototype.focus=function(){if(this.ta)if(this.scrollsPageOnFocus)this.ta.focus();else{var a=Be.scrollX||Be.pageXOffset,y=Be.scrollY||Be.pageYOffset;this.ta.focus(),Be.scrollTo(a,y)}},ye.prototype.Oy=function(){this.H.R("GainedFocus")},ye.prototype.Ny=function(){this.H.R("LostFocus")};function df(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,E=a.Be?a.Db:0,b=a.Mb;a.Mb=a.computePixelRatio(),a.Mb!==b&&(a.pn=!0,a.$b()),(y.clientWidth!==a.Aa+x||y.clientHeight!==a.ya+E)&&(a.Ee=!0,a.Fc=!0,y=a.layout,y!==null&&y.isViewportSized&&a.autoScale===fs&&(a.Jk=!0,y.C()),a.ld||a.$b())}}}function Qp(a){var y=new Hr;y.name="Background",a.Al(y),y=new Hr,y.name="",a.Al(y),y=new Hr,y.name="Foreground",a.Al(y),y=new Hr,y.name="Adornment",y.isTemporary=!0,y.isInDocumentBounds=!1,a.Al(y),y=new Hr,y.name="Tool",y.isTemporary=!0,y.isInDocumentBounds=!0,a.Al(y),y=new Hr,y.name="Grid",y.allowSelect=!1,y.pickable=!1,y.isTemporary=!0,y.isInDocumentBounds=!1,a.Ww(y,a.Qj("Background"))}function Xp(a){var y=new tn(tn.Grid);y.name="GRID";var x=new Fi;return x.figure="LineH",x.stroke="lightgray",x.strokeWidth=.5,x.interval=1,y.add(x),x=new Fi,x.figure="LineH",x.stroke="gray",x.strokeWidth=.5,x.interval=5,y.add(x),x=new Fi,x.figure="LineH",x.stroke="gray",x.strokeWidth=1,x.interval=10,y.add(x),x=new Fi,x.figure="LineV",x.stroke="lightgray",x.strokeWidth=.5,x.interval=1,y.add(x),x=new Fi,x.figure="LineV",x.stroke="gray",x.strokeWidth=.5,x.interval=5,y.add(x),x=new Fi,x.figure="LineV",x.stroke="gray",x.strokeWidth=1,x.interval=10,y.add(x),x=new ei,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 Jp(){this.H.gu?this.H.gu=!1:this.H.isEnabled?this.H.kx(this):Sd(this.H)}function qp(a){this.H.isEnabled?(this.H.lu=a.target.scrollTop,this.H.ju=a.target.scrollLeft):Sd(this.H)}ye.prototype.kx=function(a){if(this.ta!==null){var y=this.ku,x=this.hu;this.qr=!0;var E=this.documentBounds,b=this.viewportBounds,z=this.rj,tt=E.x-z.left,ot=E.y-z.top,rt=E.width+z.left+z.right,at=E.height+z.top+z.bottom,ut=E.right+z.right;z=E.bottom+z.bottom;var ft=b.x;E=b.y;var vt=b.width,xt=b.height,Pt=b.right,Mt=b.bottom;b=this.scale;var jt=a.scrollLeft;if(this.tn)switch(this.bu){case"negative":jt=jt+a.scrollWidth-a.clientWidth;break;case"reverse":jt=a.scrollWidth-jt-a.clientWidth}var Tt=jt;vt<rt||xt<at?(jt=It.allocAt(this.position.x,this.position.y),this.allowHorizontalScroll&&this.ju!==Tt&&(jt.x=Tt/b+tt,this.ju=Tt),this.allowVerticalScroll&&this.lu!==a.scrollTop&&(jt.y=a.scrollTop/b+ot,this.lu=a.scrollTop),this.position=jt,It.free(jt),this.Ee=this.qr=!1):(jt=It.alloc(),a.uy&&this.allowHorizontalScroll&&(tt<ft&&(this.position=jt.h(Tt+tt,this.position.y)),ut>Pt&&(this.position=jt.h(-(y.scrollWidth-this.Aa)+Tt-this.Aa/b+ut,this.position.y))),a.vy&&this.allowVerticalScroll&&(ot<E&&(this.position=jt.h(this.position.x,a.scrollTop+ot)),z>Mt&&(this.position=jt.h(this.position.x,-(y.scrollHeight-this.ya)+a.scrollTop-this.ya/b+z))),It.free(jt),this.vd=!0,this.Ee=this.qr=!1,E=this.documentBounds,b=this.viewportBounds,ut=E.right,Pt=b.right,z=E.bottom,Mt=b.bottom,tt=E.x,ft=b.x,ot=E.y,E=b.y,vt>=rt&&tt>=ft&&ut<=Pt&&(x.style.width="1px"),xt>=at&&ot>=E&&z<=Mt&&(x.style.height="1px"))}},ye.prototype.computeBounds=function(a){return a===void 0&&(a=new be),os(this),cf(this,a)};function cf(a,y){if(a.fixedBounds.w())return y.assign(a.fixedBounds),y.Co(a.yb),y;for(var x=!0,E=a.Wa.s,b=E.length,z=0;z<b;z++){var tt=E[z];if(tt.visible&&tt.isInDocumentBounds){tt=tt.Pa.s;for(var ot=tt.length,rt=0;rt<ot;rt++){var at=tt[rt];at.isInDocumentBounds&&at.isVisible()&&(at=at.actualBounds,at.w()&&(x?(x=!1,y.assign(at)):y.ed(at)))}}}return x&&y.h(0,0,0,0),y.Co(a.yb),y}ye.prototype.computePartsBounds=function(a,y){y===void 0&&(y=!1);var x=null;if(Ve(a))for(var E=0;E<a.length;E++){var b=a[E];!y&&b instanceof rn||(b.Va(),x===null?x=b.actualBounds.copy():x.ed(b.actualBounds))}else for(a=a.iterator;a.next();)E=a.value,!y&&E instanceof rn||(E.Va(),x===null?x=E.actualBounds.copy():x.ed(E.actualBounds));return x===null?new be(NaN,NaN,0,0):x};function Ua(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=It.alloc(),x.xi(a.documentBounds,a.initialDocumentSpot);var E=a.viewportBounds;E=be.allocAt(0,0,E.width,E.height);var b=It.alloc();b.xi(E,a.initialViewportSpot),b.h(x.x-b.x,x.y-b.y),a.position=b,be.free(E),It.free(b),It.free(x)}x=a.yh,y&&a.Fg!==fs&&(x=a.Fg);var z=x!==fs?pd(a,x):a.scale;x=a.pa.x,E=a.pa.y,b=a.Aa/z;var tt=a.ya/z,ot=a.zk,rt=a.pq;y&&!ot.sb()&&(rt.sb()||rt.Xb())&&(ot=rt.Xb()?po:rt),gf(a,a.documentBounds,b,tt,ot,y),y=a.scale,a.scale=z,a.vb=!1,z=a.viewportBounds,se.B(z.x,x)&&se.B(z.y,E)&&se.B(z.width,b)&&se.B(z.height,tt)||a.onViewportBoundsChanged(new be(x,E,b,tt),z,y,!1)}}function pd(a,y){var x=a.Pp;if(a.ta===null)return x;a.Va();var E=a.documentBounds;if(!E.w())return x;var b=E.width;E=E.height;var z=a.Aa+(a.gf?a.Db:0),tt=a.ya+(a.Be?a.Db:0),ot=z/b,rt=tt/E;return y===va?(y=Math.min(rt,ot),y>x&&(y=x),y<a.minScale&&(y=a.minScale),y>a.maxScale&&(y=a.maxScale),y):y===jh?(y=rt>ot?(tt-a.Db)/E:(z-a.Db)/b,y>x&&(y=x),y<a.minScale&&(y=a.minScale),y>a.maxScale&&(y=a.maxScale),y):a.scale}ye.prototype.zoomToFit=function(){var a=this.sj;this.sj=Qu,this.scale=pd(this,va),a!==Qu&&(Ua(this,!1),gf(this,this.documentBounds,this.Aa/this.Ca,this.ya/this.Ca,this.zk,!1)),this.sj=a},wt=ye.prototype,wt.BA=function(a,y){y===void 0&&(y=va);var x=a.width,E=a.height;if(!(x===0||E===0||isNaN(x)&&isNaN(E))){var b=1;if(y===va||y===jh)if(isNaN(x))b=this.viewportBounds.height*this.scale/E;else if(isNaN(E))b=this.viewportBounds.width*this.scale/x;else{b=this.Aa;var z=this.ya;b=y===jh?z/E>b/x?(z-(this.Be?this.Db:0))/E:(b-(this.gf?this.Db:0))/x:Math.min(z/E,b/x)}this.scale=b,this.position=new It(a.x,a.y)}},wt.Jy=function(a,y){this.Va();var x=this.documentBounds,E=this.viewportBounds;this.position=new It(x.x+(a.x*x.width+a.offsetX)-(y.x*E.width-y.offsetX),x.y+(a.y*x.height+a.offsetY)-(y.y*E.height-y.offsetY))},wt.zz=function(a){if(a instanceof ee){this.eq=a;var y=It.alloc();this.fq=this.op(a.ga(ir,y)),It.free(y)}else this.eq=null,this.fq=Xo};function gf(a,y,x,E,b,z){var tt=It.allocAt(a.pa.x,a.pa.y),ot=tt.x,rt=tt.y;if(a.eq!==null){var at=It.alloc();at=a.eq.ga(ir,at),ot=at.x-a.fq.x/a.scale,rt=at.y-a.fq.y/a.scale,b=lr,It.free(at)}(z||a.scrollMode===Qu)&&(b.sb()&&(x>y.width&&(ot=y.x+(b.x*y.width+b.offsetX)-(b.x*x-b.offsetX)),E>y.height&&(rt=y.y+(b.y*y.height+b.offsetY)-(b.y*E-b.offsetY))),b=a.rj,z=x-y.width,x<y.width+b.left+b.right?(ot=Math.min(ot+x/2,y.right+Math.max(z,b.right)-x/2),ot=Math.max(ot,y.left-Math.max(z,b.left)+x/2),ot-=x/2):ot>y.left?ot=y.left:ot<y.right-x&&(ot=y.right-x),x=E-y.height,E<y.height+b.top+b.bottom?(rt=Math.min(rt+E/2,y.bottom+Math.max(x,b.bottom)-E/2),rt=Math.max(rt,y.top-Math.max(x,b.top)+E/2),rt-=E/2):rt>y.top?rt=y.top:rt<y.bottom-E&&(rt=y.bottom-E)),tt.x=isFinite(ot)?ot:-a.yb.left,tt.y=isFinite(rt)?rt:-a.yb.top,a.positionComputation!==null&&(y=a.positionComputation(a,tt),tt.x=y.x,tt.y=y.y),Hp(a.Yd,a.pa,tt),a.pa.h(tt.x,tt.y),Il(a),It.free(tt)}wt.Ol=function(a,y){if(y===void 0&&(y=!0),y){if(a=Kl(this,a,function(x){return x.part},function(x){return x.canSelect()}),a instanceof ei)return a}else if(a=Kl(this,a,function(x){return x.part}),a instanceof ei)return a;return null},wt.ic=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null),os(this);for(var E=this.Wa.iteratorBackwards;E.next();){var b=E.value;if(b.visible&&(b=b.ic(a,y,x),b!==null))return b}return null};function Kl(a,y,x,E){for(x===void 0&&(x=null),E===void 0&&(E=null),os(a),a=a.Wa.iteratorBackwards;a.next();){var b=a.value;if(b.visible&&!b.isTemporary&&(b=b.ic(y,x,E),b!==null))return b}return null}wt.lz=function(a,y,x){return y===void 0&&(y=!0),oc(this,a,function(E){return E.part},y?function(E){return E instanceof ei&&E.canSelect()}:null,x)};function oc(a,y,x,E,b){for(x===void 0&&(x=null),E===void 0&&(E=null),b instanceof $e||b instanceof _e||(b=new _e),os(a),a=a.Wa.iteratorBackwards;a.next();){var z=a.value;z.visible&&!z.isTemporary&&z.ji(y,x,E,b)}return b}wt.ji=function(a,y,x,E){y===void 0&&(y=null),x===void 0&&(x=null),E instanceof $e||E instanceof _e||(E=new _e),os(this);for(var b=this.Wa.iteratorBackwards;b.next();){var z=b.value;z.visible&&z.ji(a,y,x,E)}return E},wt.ux=function(a,y,x,E){return y===void 0&&(y=!1),x===void 0&&(x=!0),_c(this,a,function(b){return b instanceof ei&&(!x||b.canSelect())},y,E)},wt.Cf=function(a,y,x,E,b){y===void 0&&(y=null),x===void 0&&(x=null),E===void 0&&(E=!1),b instanceof $e||b instanceof _e||(b=new _e),os(this);for(var z=this.Wa.iteratorBackwards;z.next();){var tt=z.value;tt.visible&&tt.Cf(a,y,x,E,b)}return b},wt.Nu=function(a,y,x,E,b,z){var tt=new _e;os(this);for(var ot=this.Wa.iteratorBackwards;ot.next();){var rt=ot.value;rt.visible&&rt.Nu(a,y,x,E,tt,b,z)}return tt};function _c(a,y,x,E,b){var z=null;for(z===void 0&&(z=null),x===void 0&&(x=null),E===void 0&&(E=!1),b instanceof $e||b instanceof _e||(b=new _e),os(a),a=a.Wa.iteratorBackwards;a.next();){var tt=a.value;tt.visible&&!tt.isTemporary&&tt.Cf(y,z,x,E,b)}return b}wt.mz=function(a,y,x,E,b){return x===void 0&&(x=!0),E===void 0&&(E=!0),rc(this,a,y,function(z){return z instanceof ei&&(!E||z.canSelect())},x,b)},wt.og=function(a,y,x,E,b,z){x===void 0&&(x=null),E===void 0&&(E=null),b===void 0&&(b=!0),b!==!1&&b!==!0&&((b instanceof $e||b instanceof _e)&&(z=b),b=!0),z instanceof $e||z instanceof _e||(z=new _e),os(this);for(var tt=this.Wa.iteratorBackwards;tt.next();){var ot=tt.value;ot.visible&&ot.og(a,y,x,E,b,z)}return z};function rc(a,y,x,E,b,z){var tt=null;for(tt===void 0&&(tt=null),E===void 0&&(E=null),b===void 0&&(b=!0),b!==!1&&b!==!0&&((b instanceof $e||b instanceof _e)&&(z=b),b=!0),z instanceof $e||z instanceof _e||(z=new _e),os(a),a=a.Wa.iteratorBackwards;a.next();){var ot=a.value;ot.visible&&!ot.isTemporary&&ot.og(y,x,tt,E,b,z)}return z}ye.prototype.acceptEvent=function(a){return Fa(this,a,a instanceof MouseEvent)};function Fa(a,y,x){var E=a.Qg;return a.Qg=a.cj,a.cj=E,E.diagram=a,E.event=y,x?md(a,y,E):(E.viewPoint=a.Qg.viewPoint,E.documentPoint=a.Qg.documentPoint),a=0,y.ctrlKey&&(a+=1),y.altKey&&(a+=2),y.shiftKey&&(a+=4),y.metaKey&&(a+=8),E.modifiers=a,E.button=y.button,y.buttons!==void 0&&(E.buttons=y.buttons),Oi&&y.button===0&&y.ctrlKey&&(E.button=2),E.down=!1,E.up=!1,E.clickCount=1,E.delta=0,E.handled=!1,E.bubbles=!1,E.timestamp=y.timeStamp,E.isMultiTouch=!1,E.targetDiagram=ff(y,y.target),E.targetObject=null,E}function ff(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 pf(a,y,x,E,b,z){var tt=a.Qg;return a.Qg=a.cj,a.cj=tt,tt.diagram=a,tt.clickCount=1,a=tt.delta=0,y.ctrlKey&&(a+=1),y.altKey&&(a+=2),y.shiftKey&&(a+=4),y.metaKey&&(a+=8),tt.modifiers=a,tt.event=y,tt.timestamp=y.timeStamp,tt.button=y.button,tt.buttons=y.buttons,Oi&&y.button===0&&y.ctrlKey&&(tt.button=2),tt.down=x,tt.up=E,tt.handled=!1,tt.bubbles=b,tt.isMultiTouch=z,tt}function nl(a,y){return a.bubbles?!0:(y.stopPropagation!==void 0&&y.stopPropagation(),y.cancelable!==!1&&y.preventDefault(),y.cancelBubble=!0,!1)}ye.prototype.Qz=function(a){var y=this.H;if(!this.H.isEnabled)return!1;var x=Fa(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(),nl(x,a)},ye.prototype.Rz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=Fa(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(),nl(x,a)},ye.prototype.bz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=Fa(y,a,!0);return y.mouseEnter!==null&&y.mouseEnter(x),y.currentTool.standardMouseOver(),nl(x,a)},ye.prototype.cz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=Fa(y,a,!0);return y.mouseLeave!==null&&y.mouseLeave(x),nl(x,a)},ye.prototype.getMouse=function(a){var y=this.ta;if(y===null)return new It(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?Mn(new It(y,a),this.Ab):new It(y,a)};function md(a,y,x){var E=a.ta,b=a.Aa,z=a.ya,tt=0,ot=0;E!==null&&(E=E.getBoundingClientRect(),tt=y.clientX-b/E.width*E.left,ot=y.clientY-z/E.height*E.top),x.viewPoint.h(tt,ot),a.Ab!==null?(y=It.allocAt(tt,ot),a.Ab.Cd(y),x.documentPoint.assign(y),It.free(y)):x.documentPoint.h(tt,ot)}function mf(a,y,x){if(a.oj[0]!==null){y=a.oj[y];var E=a.ta;E!==null&&(E=E.getBoundingClientRect(),x.h(y.clientX-a.Aa/E.width*E.left,y.clientY-a.ya/E.height*E.top))}}ye.prototype.Ya=function(){this.Zi||(this.Zi=!0,this.$b(!1))};function _p(a){a.ld||os(a),a.Va()}ye.prototype.redraw=function(){this.vb||this.ld||(this.N(),this.bd())},wt=ye.prototype,wt.Pz=function(){return this.kg},wt.Xy=function(a){a===void 0&&(a=null);var y=this.animationManager,x=y.isEnabled;y.Cc(),y.isEnabled=!1,ka(this),this.hf=!1,this.du=new It(NaN,NaN),y.isEnabled=x,this.ld=!0;var E=this;a!==null&&Nn(function(){E.ld=!1,Yl(y,"Model"),a(E)},1)},wt.$b=function(a){if(a===void 0&&(a=!1),this.kg!==!0&&!(this.vb||a===!1&&this.ld)){this.kg=!0;var y=this;Be.requestAnimationFrame(function(){y.kg&&y.bd()})}},wt.bd=function(){(!this.fn||this.kg)&&(this.fn&&(this.fn=!1),ka(this))};function bh(a,y,x){!a.Ee||a.vb||a.animationManager.defaultAnimation.isAnimating||Sd(a)||(y&&os(a),x&&Ua(a,!1))}function ka(a,y){if(!a.ld&&(a.kg=!1,a.Ka!==null||a.wo.w())){a.ld=!0;var x=a.animationManager,E=a.Xn;if(!x.isAnimating&&E.length!==0){for(var b=E.s,z=b.length,tt=0;tt<z;tt++){var ot=b[tt];Pr(ot,!1),ot.v()}E.clear()}E=a.ow,0<E.count&&(E.each(function(rt){rt.Nv()}),E.clear()),b=E=!1,x.defaultAnimation.isAnimating&&(b=!0,E=a.skipsUndoManager,a.skipsUndoManager=!0),x.zb||df(a),bh(a,!1,!0),a.fe!==null&&(a.fe.visible&&!a.mq&&(Tl(a),a.mq=!0),!a.fe.visible&&a.mq&&(a.mq=!1)),os(a),z=!1,(!a.hf||a.xh)&&(a.hf?Mf(a,!a.Jk):(a.Ea("Initial Layout"),x.isEnabled===!1&&x.Cc(),Mf(a,!1)),z=!0),a.Jk=!1,os(a),a.ou||_p(a),bh(a,!0,!1),tt=!1,z?(x=be.alloc(),x.assign(a.viewportBounds),a.hf||(tt=a.hf=!0,a.skipsUndoManager||(a.undoManager.isPendingClear=!0),a.undoManager.isPendingUnmodified=!0,vf(a)),a.R("LayoutCompleted"),bh(a,!0,!1),be.free(x)):x.Ok&&x.Qw&&(a.Fg!==fs?a.scale=pd(a,a.Fg):a.yh!==fs?a.scale=pd(a,a.yh):(x=a.initialScale,isFinite(x)&&0<x&&(a.scale=x)),Ua(a,!0)),z&&tt&&a.eb("Initial Layout"),os(a),y||a.gc(a.ib),b&&(a.skipsUndoManager=E),a.ld=!1}}function vf(a){if(a.Fg!==fs)a.scale=pd(a,a.Fg);else if(a.yh!==fs)a.scale=pd(a,a.yh);else{var y=a.initialScale;isFinite(y)&&0<y&&(a.scale=y)}Ua(a,!0),y=a.Wa.s,a.Fd(y,y.length,a,a.viewportBounds),a.R("InitialLayoutCompleted"),a.du.assign(a.pa),Tl(a)}function os(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 _e,a.Nv(x,a.De)}a.nodes.each(function(E){E instanceof Ai&&E.U&65536&&(E.U=E.U^65536)})}}wt.Nv=function(a,y){for(a.reset();a.next();){var x=a.value;!x.Zc()||x instanceof Ai||(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))}for(a.reset();a.next();)x=a.value,x instanceof Ai&&x.isVisible()&&sc(this,x);for(a.reset();a.next();)x=a.value,x instanceof rn&&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 io&&x.isVisible()&&(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))};function sc(a,y){for(var x=Rn(),E=Rn(),b=y.memberParts;b.next();){var z=b.value;z.isVisible()&&(z instanceof Ai?(Sa(z)||Ls(z)||zh(z))&&sc(a,z):z instanceof rn?z.fromNode===y||z.toNode===y?E.push(z):x.push(z):(z.measure(1/0,1/0),z.arrange()))}for(a=x.length,b=0;b<a;b++)z=x[b],z.measure(1/0,1/0),z.arrange();for(qn(x),y.measure(1/0,1/0),y.arrange(),a=E.length,y=0;y<a;y++)x=E[y],x.measure(1/0,1/0),x.arrange();qn(E)}wt.Fd=function(a,y,x,E){if(this.vd||this.animationManager.isAnimating)for(var b=0;b<y;b++)a[b].Fd(x,E)},wt.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)){yd(this);var x=this.Aa,E=this.ya;if(a.Gv.resize(x,E,x,E),x=this.Wa.s,E=x.length,this.Fd(x,E,this,this.viewportBounds),this.Fc||y.isAnimating){y=this.pa;var b=this.Ca,z=Math.round(y.x*b)/b,tt=Math.round(y.y*b)/b,ot=this.Ab;for(ot.reset(),b!==1&&ot.scale(b),y.x===0&&y.y===0||ot.translate(-z,-tt),a.ti=null,Qy(a,ot.m11,ot.m12,ot.m21,ot.m22,ot.dx,ot.dy),this.pb!==1&&(a.globalAlpha=this.pb),Zu(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<E;y++)x[y].gc(a,this);a=!1,this.Yf?Ed(this.Yf,this)&&(a=this.Vp()):a=!0,a&&(Di.prototype.Cd=Di.prototype.Eu),this.Fc=this.vd=!1}}}}else t:if(z=this.animationManager,!z.zb&&(!z.isAnimating||z.isTicking)&&(x=new Date,yd(this),this.Ka.style.opacity!=="0")){if(E=a!==this.ib,y=this.Wa.s,b=y.length,this.Fd(y,b,this,this.viewportBounds),E)a.Vc(!0),this.vd=!0;else if(!this.Fc&&!z.isAnimating)break t;z=this.Ab,z.reset(),tt=this.Mb,ot=this.pa;var rt=this.Ca,at=Math.round(ot.x*rt)/rt,ut=Math.round(ot.y*rt)/rt;for(rt!==1&&z.scale(rt),ot.x===0&&ot.y===0||z.translate(-at,-ut),a.setTransform(tt,0,0,tt,0,0),a.clearRect(0,0,this.Aa,this.ya),this.pb!==1&&(a.globalAlpha=this.pb),Zu(this,a),ot=0;ot<b;ot++)a.setTransform(tt,0,0,tt,0,0),a.transform(z.m11,z.m12,z.m21,z.m22,z.dx,z.dy),a.yc(),y[ot].gc(a,this);if(y=!1,this.Yf?Ed(this.Yf,this)&&(y=this.Vp()):y=!0,y&&(Di.prototype.Cd=Di.prototype.Eu),E?(this.ib.Vc(!0),this.vd=!0):this.Fc=this.vd=!1,y=+new Date-+x,E=_n&&_n.nx,x=this.zw,E||this.Yh===null){for(x[this.Tq]=y,this.Tq=(this.Tq+1)%x.length,b=y=0;b<x.length;b++)y+=x[b];this.Sq=y/x.length}if(this.pb!==1&&(a.globalAlpha=1),E)for(a.setTransform(1,0,0,1,0,0),E=0;E<x.length;E++)a.fillText(x[E].toString(),20,150+ +(20*E))}}};function $c(a,y,x,E,b,z,tt,ot,rt,at){if(a.Ka!==null){a.ta===null&&zt("No canvas specified"),tt===void 0&&(tt=null),ot===void 0&&(ot=null),rt===void 0&&(rt=!1),at===void 0&&(at=!1),yd(a),a.ib.Vc(!0),a.vd=!0,a.$i=!0;var ut=a.Ca;a.Ca=b;var ft=a.Wa.s,vt=ft.length;try{var xt=new be(z.x,z.y,E.width/b,E.height/b),Pt=xt.copy();Pt.Co(x),Tl(a,Pt),os(a),a.Fd(ft,vt,a,xt),y.setTransform(1,0,0,1,0,0),y.clearRect(0,0,E.width,E.height),ot!==null&&ot!==""&&(y.fillStyle=ot,y.ox(0,0,E.width,E.height));var Mt=a.Mb;y.scale(Mt,Mt);var jt=Di.alloc();jt.reset(),jt.translate(x.left,x.top),jt.scale(b),z.x===0&&z.y===0||jt.translate(-z.x,-z.y),y.setTransform(jt.m11,jt.m12,jt.m21,jt.m22,jt.dx,jt.dy),y.yc(),y instanceof aa&&Qy(y,jt.m11,jt.m12,jt.m21,jt.m22,jt.dx,jt.dy),Di.free(jt),Zu(a,y),y.globalAlpha=a.pb;var Tt=a.Qj("Grid");if(tt){var Vt=new _e,Yt=tt.iterator;for(Yt.reset();Yt.next();){var Kt=Yt.value;Kt instanceof ei&&(at||Kt.layer!==Tt)&&(Kt.Gj(),Vt.add(Kt))}for(at=0;at<vt;at++)Wp(ft[at],y,a,Vt,rt);Vt.each(function(me){return me.Gj()})}else for(Vt=0;Vt<vt;Vt++){var te=ft[Vt];te===Tt?at&&te.gc(y,a,!0):te.gc(y,a,rt)}a.$i=!1,a.Yf&&Ed(a.Yf,a)&&a.Vp()}finally{a.Ca=ut,a.ib.Vc(!0),a.vd=!0,a.Fd(ft,vt,a,a.viewportBounds),Tl(a),a.ib instanceof aa&&(a.ib.Nj.PA(),a.redraw())}}}wt.Gf=function(a){return this.Rg[a]},wt.Xx=function(a,y){a==="minDrawingLength"&&(this.Oq=y),this.Rg[a]=y,this.redraw()},wt.Tx=function(){this.Rg=new Pi,this.Rg.drawShadows=!0,this.Rg.textGreeking=!0,this.Rg.viewportOptimizations=!(Oi||ao),this.Rg.temporaryPixelRatio=!0,this.Rg.pictureRatioOptimization=!0,this.Oq=this.Rg.minDrawingLength=1};function Zu(a,y){a=a.Rg,a!==null&&(a.imageSmoothingEnabled!==void 0&&y.Wx(!!a.imageSmoothingEnabled),a=a.defaultFont,a!=null&&(y.font=a))}wt.Ql=function(a){return this.on[a]},wt.sA=function(a,y){this.on[a]=y},wt.Sx=function(){this.on=new Pi,this.on.extraTouchArea=10,this.on.extraTouchThreshold=10,this.on.hasGestureZoom=!0},wt.set=function(a){return Object.assign(this,a),this},wt.Du=function(a){return this.nm(a)},wt.nm=function(a){return vd(this,a),this};function vd(a,y){var x=a instanceof tn,E=a instanceof ye,b;for(b in y){b===""&&zt("Setting properties requires non-empty property names");var z=a,tt=b;if(x||E){var ot=b.indexOf(".");if(0<ot){var rt=b.substring(0,ot);x?z=a.fb(rt):(z=a[rt],z==null&&(z=a.toolManager[rt])),Te(z)?tt=b.substr(ot+1):zt("Unable to find object named: "+rt+" in "+a.toString()+" when trying to set property: "+b)}}if(tt[0]!=="_"&&!Ii(z,tt))if(E&&tt==="ModelChanged"){a.Yw(y[tt]);continue}else if(E&&tt==="Changed"){a.Pe(y[tt]);continue}else if(E&&Ii(a.toolManager,tt))z=a.toolManager;else if(E&&e0(a,tt)){a.Bj(tt,y[tt]);continue}else if(a instanceof Xn&&tt==="Changed"){a.Pe(y[tt]);continue}else zt('Trying to set undefined property "'+tt+'" on object: '+z.toString());z[tt]=y[b],tt[0]==="_"&&z instanceof ee&&z.Vw(tt)}}wt.bx=function(){if(this.Eh.count!==0&&!(1<this.undoManager.transactionLevel)){for(;0<this.Eh.count;){var a=this.Eh;for(this.Eh=new ri,a=a.iterator;a.next();){var y=a.key;y.Xo(a.value),y.qc()}}this.N()}},wt.N=function(a){if(a===void 0)this.Fc=!0,this.$b();else{var y=this.viewportBounds;a.w()&&y.Yc(a)&&(this.Fc=!0,this.$b())}this.R("InvalidateDraw")},ye.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!==uc&&this.rj.hi(0,0,0,0)&&y.width===a.width&&y.height===a.height){var E=this.scale,b=Math.max(a.y,y.y),z=Math.min(a.y+a.height,y.y+y.height);if(0<Math.max(0,Math.min(a.x+a.width,y.x+y.width)-Math.max(a.x,y.x))*E&&0<Math.max(0,z-b)*E){if(!(this.ld||(this.kg=!1,this.Ka===null||(this.ld=!0,this.documentBounds.w()||(E=be.alloc(),Af(this,this.computeBounds(E)),be.free(E)),E=this.ta,E===null||E instanceof Ol)))){var tt=this.Mb;b=this.Aa*tt;var ot=this.ya*tt,rt=this.scale*tt;z=Math.round(Math.round(y.x*rt)-Math.round(a.x*rt)),y=Math.round(Math.round(y.y*rt)-Math.round(a.y*rt)),rt=this.jw,a=this.oy,rt.width!==b&&(rt.width=b),rt.height!==ot&&(rt.height=ot),a.clearRect(0,0,b,ot),rt=190*tt;var at=70*tt,ut=Math.max(z,0),ft=Math.max(y,0),vt=Math.floor(b-ut),xt=Math.floor(ot-ft);a.drawImage(E.Oa,ut,ft,vt,xt,0,0,vt,xt),Ed(this.Yf,this)&&a.clearRect(0,0,rt,at),E=Rn(),a=Rn(),xt=Math.abs(z),vt=Math.abs(y);var Pt=ut===0?0:b-xt;ut=It.allocAt(Pt,0),xt=It.allocAt(xt+Pt,ot),a.push(new be(Math.min(ut.x,xt.x),Math.min(ut.y,xt.y),Math.abs(ut.x-xt.x),Math.abs(ut.y-xt.y)));var Mt=this.Ab;if(Mt.reset(),Mt.scale(tt,tt),this.Ca!==1&&Mt.scale(this.Ca),tt=this.pa,(tt.x!==0||tt.y!==0)&&isFinite(tt.x)&&isFinite(tt.y)&&Mt.translate(-tt.x,-tt.y),Mn(ut,Mt),Mn(xt,Mt),E.push(new be(Math.min(ut.x,xt.x),Math.min(ut.y,xt.y),Math.abs(ut.x-xt.x),Math.abs(ut.y-xt.y))),Pt=ft===0?0:ot-vt,ut.h(0,Pt),xt.h(b,vt+Pt),a.push(new be(Math.min(ut.x,xt.x),Math.min(ut.y,xt.y),Math.abs(ut.x-xt.x),Math.abs(ut.y-xt.y))),Mn(ut,Mt),Mn(xt,Mt),E.push(new be(Math.min(ut.x,xt.x),Math.min(ut.y,xt.y),Math.abs(ut.x-xt.x),Math.abs(ut.y-xt.y))),Ed(this.Yf,this)&&(b=0<z?0:-z,ot=0<y?0:-y,ut.h(b,ot),xt.h(rt+b,at+ot),a.push(new be(Math.min(ut.x,xt.x),Math.min(ut.y,xt.y),Math.abs(ut.x-xt.x),Math.abs(ut.y-xt.y))),Mn(ut,Mt),Mn(xt,Mt),E.push(new be(Math.min(ut.x,xt.x),Math.min(ut.y,xt.y),Math.abs(ut.x-xt.x),Math.abs(ut.y-xt.y)))),It.free(ut),It.free(xt),bh(this,!1,!0),this.Ka===null&&zt("No div specified"),this.ta===null&&zt("No canvas specified"),!this.animationManager.zb&&(b=this.ib,this.Fc)){for(yd(this),ot=this.Mb,b.setTransform(1,0,0,1,0,0),b.clearRect(0,0,this.Aa*ot,this.ya*ot),b.drawImage(this.jw.Oa,0<z?0:Math.round(-z),0<y?0:Math.round(-y)),z=this.pa,tt=this.Ca,rt=Math.round(z.x*tt)/tt,at=Math.round(z.y*tt)/tt,y=this.Ab,y.reset(),tt!==1&&y.scale(tt),z.x===0&&z.y===0||y.translate(-rt,-at),b.save(),b.beginPath(),z=a.length,tt=0;tt<z;tt++)rt=a[tt],rt.width!==0&&rt.height!==0&&b.rect(Math.floor(rt.x),Math.floor(rt.y),Math.ceil(rt.width),Math.ceil(rt.height));for(b.clip(),b.setTransform(ot,0,0,ot,0,0),b.transform(y.m11,y.m12,y.m21,y.m22,y.dx,y.dy),b.yc(),y=this.Wa.s,z=y.length,this.Fd(y,z,this,this.viewportBounds),Zu(this,b),b.globalAlpha=this.pb,ot=0;ot<z;ot++)if(tt=y[ot],rt=E,tt.visible&&tt.pb!==0){at=yu(tt,b),ft=tt.Zq,ft.length=0,ut=this.scale,vt=be.alloc(),xt=tt.Pa.s,Mt=xt.length,Pt=rt.length;for(var jt=0;jt<Mt;jt++){var Tt=xt[jt],Vt=Nd(Tt,Tt.actualBounds);t:{for(var Yt=2/ut,Kt=4/ut,te=0;te<Pt;te++){var me=rt[te];if(me.width!==0&&me.height!==0&&Vt.Vu(me.x-Yt,me.y-Yt,me.width+Kt,me.height+Kt)){Vt=!0;break t}}Vt=!1}Vt&&tt.Oj(b,Tt,this,ft,ut,vt,!0)}be.free(vt),b.globalAlpha=at}b.restore(),b.Vc(!0),this.Yf&&Ed(this.Yf,this)&&this.Vp(),this.Fc=this.vd=!1,this.hk()}qn(E),qn(a),this.ld=!1}}else this.bd();x&&(Hs(this),this.bd(),ic(this,!0))}else x?(Hs(this),this.bd(),ic(this,!0)):this.bd()}};function yd(a){a.pn!==!1&&(a.pn=!1,yf(a,a.Aa,a.ya))}function yf(a,y,x){Il(a);var E=a.Mb;a.ta.resize(y*E,x*E,y,x)&&(a.Fc=!0,a.ib.Vc(!0))}function Sd(a){var y=a.ta;if(y===null||a.wo.w())return!0;var x=a.Aa,E=a.ya,b=a.Ka,z=!1,tt=a.gf?a.Db:0,ot=a.Be?a.Db:0,rt=b.clientWidth||x+tt,at=b.clientHeight||E+ot,ut=a.viewportBounds;b=ut.x;var ft=ut.y,vt=ut.width,xt=ut.height;if((rt!==x+tt||at!==E+ot)&&(a.gf=!1,a.Be=!1,ot=tt=0,a.Aa=rt,a.ya=at,z=a.pn=!0,Il(a)),!a.hf||!a.viewportBounds.w())return!0;var Pt=a.ku,Mt=a.hu;if(a.Ee=!1,!(z||a.gf||a.Be||a.mn||a.nn))return!0;var jt=a.documentBounds,Tt=0,Vt=0,Yt=0,Kt=0,te=ut.width,me=ut.height,Cn=a.rj;a.contentAlignment.sb()?(jt.width>te&&(Tt=Cn.left,Vt=Cn.right),jt.height>me&&(Yt=Cn.top,Kt=Cn.bottom)):(Tt=Cn.left,Vt=Cn.right,Yt=Cn.top,Kt=Cn.bottom);var Hn=jt.width+Tt+Vt,In=jt.height+Yt+Kt;Cn=a.scale;var on=Hn>rt/Cn,ze=In>at/Cn;if(!(z||a.gf||a.Be||on||ze))return!0;Tt=jt.x-Tt,rt=ut.x,Vt=jt.right+Vt,at=ut.right+tt,Yt=jt.y-Yt;var Ei=ut.y;jt=jt.bottom+Kt,ut=ut.bottom+ot;var Si="1px";if(Kt="1px",a.scrollMode===Qu&&(on||ze)&&(on&&a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(on=1,Tt+1<rt&&(on=Math.max((rt-Tt)*Cn+a.Aa,on)),Vt>at+1&&(on=Math.max((Vt-at)*Cn+a.Aa,on)),te+tt+1<Hn&&(on=Math.max((Hn-te)*Cn+a.Aa,on)),Si=on.toString()+"px"),ze&&a.hasVerticalScrollbar&&a.allowVerticalScroll&&(on=1,Yt+1<Ei&&(on=Math.max((Ei-Yt)*Cn+a.ya,on)),jt>ut+1&&(on=Math.max((jt-ut)*Cn+a.ya,on)),me+ot+1<In&&(on=Math.max((In-me)*Cn+a.ya,on)),Kt=on.toString()+"px")),on=Si!=="1px",ze=Kt!=="1px",on&&ze||!on&&!ze||(ze&&(at-=a.Db),on&&(ut-=a.Db),Hn<te+tt||!a.hasHorizontalScrollbar||!a.allowHorizontalScroll||(tt=1,Tt+1<rt&&(tt=Math.max((rt-Tt)*Cn+a.Aa,tt)),Vt>at+1&&(tt=Math.max((Vt-at)*Cn+a.Aa,tt)),te+1<Hn&&(tt=Math.max((Hn-te)*Cn+a.Aa,tt)),Si=tt.toString()+"px"),on=Si!=="1px",tt=a.ya,on!==a.Be&&(tt=on?a.ya-a.Db:a.ya+a.Db),In<me+ot||!a.hasVerticalScrollbar||!a.allowVerticalScroll||(ot=1,Yt+1<Ei&&(ot=Math.max((Ei-Yt)*Cn+tt,ot)),jt>ut+1&&(ot=Math.max((jt-ut)*Cn+tt,ot)),me+1<In&&(ot=Math.max((In-me)*Cn+tt,ot)),Kt=ot.toString()+"px"),ze=Kt!=="1px"),a.qr&&on===a.Be&&ze===a.gf)return x===a.Aa&&E===a.ya||a.bd(),!1;if(on!==a.Be&&(Si==="1px"?a.ya=a.ya+a.Db:a.ya=Math.max(a.ya-a.Db,1),z=!0),a.Be=on,Mt.style.width=Si,ze!==a.gf&&(Kt==="1px"?a.Aa=a.Aa+a.Db:a.Aa=Math.max(a.Aa-a.Db,1),z=!0,a.tn&&(ot=It.alloc(),ze?(y.style.left=a.Db+"px",a.position=ot.h(a.pa.x+a.Db/a.scale,a.pa.y)):(y.style.left="0px",a.position=ot.h(a.pa.x-a.Db/a.scale,a.pa.y)),It.free(ot))),z&&Il(a),a.gf=ze,Mt.style.height=Kt,a.gu=!0,z&&(a.pn=!0),y=Pt.scrollLeft,a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(te+1<Hn?y=(a.position.x-Tt)*Cn:Tt+1<rt?y=Pt.scrollWidth-Pt.clientWidth:Vt>at+1&&(y=a.position.x*Cn)),a.tn)switch(a.bu){case"negative":y=-(Pt.scrollWidth-y-Pt.clientWidth);break;case"reverse":y=Pt.scrollWidth-y-Pt.clientWidth}return Pt.scrollLeft=y,a.hasVerticalScrollbar&&a.allowVerticalScroll&&(me+1<In?Pt.scrollTop=(a.position.y-Yt)*Cn:Yt+1<Ei?Pt.scrollTop=Pt.scrollHeight-Pt.clientHeight:jt>ut+1&&(Pt.scrollTop=a.position.y*Cn)),rt=a.Aa,at=a.ya,Pt.style.width=rt+(a.gf?a.Db:0)+"px",Pt.style.height=at+(a.Be?a.Db:0)+"px",x!==rt||E!==at||a.animationManager.zb?(x=be.allocAt(b,ft,vt,xt),a.onViewportBoundsChanged(x,a.viewportBounds,Cn,z),be.free(x),!1):!0}wt=ye.prototype,wt.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(ur,"parts",y,null,a,null,x),y.isTemporary||this.Ya(),a.C(1),x=a.layerChanged,x!==null&&x(a,null,y)}},wt.oi=function(a){this.partManager.oi(a);var y=this;Fd(a,function(x){xd(y,x)}),(a instanceof io||a instanceof Ai&&a.placeholder!==null)&&a.v(),a.data!==null&&Fd(a,function(x){ay(y.partManager,x)}),Ls(a)!==!0&&zh(a)!==!0||this.De.add(a),j1(a,!0,this),z1(a)?(a.actualBounds.w()&&this.N(Nd(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(Nd(a,a.actualBounds)),this.$b()},wt.pc=function(a){a.Ej(),this.partManager.pc(a);var y=this;a.data!==null&&Fd(a,function(x){ly(y.partManager,x,y)}),this.De.remove(a),z1(a)?(a.actualBounds.w()&&this.N(Nd(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(Nd(a,a.actualBounds)),this.$b()},wt.remove=function(a){Sf(this,a,!0)};function Sf(a,y,x){var E=y.layer;E!==null&&E.diagram===a&&(y.isSelected=!1,y.isHighlighted=!1,y.C(2),x&&y.Lj(),x=E.pc(-1,y,!1),0<=x&&a.cb(Ar,"parts",E,y,null,x,null),a=y.layerChanged,a!==null&&a(y,E,null))}wt.Is=function(a,y){if(y===void 0&&(y=!1),Ve(a))for(var x=a.length,E=0;E<x;E++){var b=a[E];y&&!b.canDelete()||this.remove(b)}else for(x=new _e,x.addAll(a),a=x.iterator;a.next();)x=a.value,y&&!x.canDelete()||this.remove(x)},wt.Kj=function(a,y,x){return x===void 0&&(x=!1),this.partManager.Kj(a,y,x)},ye.prototype.moveParts=function(a,y,x,E){if(x===void 0&&(x=!1),E===void 0&&(E=tg(this)),this.toolManager!==null){var b=new ri;if(a!==null)if(Ve(a))for(var z=0;z<a.length;z++)Ql(this,b,a[z],x,E);else for(a=a.iterator;a.next();)Ql(this,b,a.value,x,E);else{for(a=this.parts;a.next();)Ql(this,b,a.value,x,E);for(a=this.nodes;a.next();)Ql(this,b,a.value,x,E);for(a=this.links;a.next();)Ql(this,b,a.value,x,E)}Dh(this,b,y,E,x)}};function Ql(a,y,x,E,b,z){if(!y.contains(x)&&(z===void 0&&(z=!1),!E||z||x.canMove()||x.canCopy()))if(b===void 0&&(b=tg(a)),x instanceof Fn){if(y.add(x,a.Pd(b,x,x.location)),x instanceof Ai&&(x.placeholder!==null||b.dragsMembers))for(z=x.memberParts;z.next();)Ql(a,y,z.value,E,b,b.groupsAlwaysMove);for(z=x.linksConnected;z.next();){var tt=z.value;if(!y.contains(tt)){var ot=tt.fromNode,rt=tt.toNode;ot!==null&&y.contains(ot)&&rt!==null&&y.contains(rt)&&Ql(a,y,tt,E,b)}}if(b.dragsTree)for(x=x.Ou();x.next();)Ql(a,y,x.value,E,b)}else if(x instanceof rn)for(y.add(x,a.Pd(b,x)),x=x.labelNodes;x.next();)Ql(a,y,x.value,E,b);else x instanceof io||y.add(x,a.Pd(b,x,x.location))}function Dh(a,y,x,E,b){if(y!==null&&y.count!==0){var z=It.alloc(),tt=It.alloc();tt.assign(x),isNaN(tt.x)&&(tt.x=0),isNaN(tt.y)&&(tt.y=0),(x=a.Mr)||ng(a,y);for(var ot=Rn(),rt=Rn(),at=y.iterator,ut=It.alloc();at.next();){var ft=at.key,vt=at.value;if(ft.Zc()){var xt=xf(a,ft,y);xt!==null?ot.push(new it(ft,vt,xt)):(!b||ft.canMove())&&(xt=vt.point,z.assign(xt),a.computeMove(ft,z.add(tt),E,ut),ft.location=ut,vt.shifted===void 0&&(vt.shifted=new It),vt.shifted.assign(ut.re(xt)))}else at.key instanceof rn&&rt.push(at.sa)}for(It.free(ut),b=ot.length,at=0;at<b;at++)ft=ot[at],z.assign(ft.info.point),ft.Su.shifted===void 0&&(ft.Su.shifted=new It),ft.node.location=z.add(ft.Su.shifted);for(b=It.alloc(),at=It.alloc(),ft=rt.length,vt=0;vt<ft;vt++){var Pt=rt[vt];if(xt=Pt.key,xt instanceof rn)if(xt.suspendsRouting){xt.Tg=null,ut=xt.fromNode;var Mt=xt.toNode;if(a.draggedLink!==null&&E.dragsLink)if(Mt=Pt.value.point,xt.dragComputation===null)y.add(xt,a.Pd(E,xt,tt)),nh(xt,tt.x-Mt.x,tt.y-Mt.y);else{Pt=It.allocAt(0,0),(ut=xt.i(0))&&ut.w()&&Pt.assign(ut);var jt=ut=It.alloc().assign(Pt).add(tt);E.isGridSnapEnabled&&(E.isGridSnapRealtime||a.lastInput.up)&&(jt=It.alloc(),eg(a,xt,ut,jt,E)),ut.assign(xt.dragComputation(xt,ut,jt)).re(Pt),y.add(xt,a.Pd(E,xt,ut)),nh(xt,ut.x-Mt.x,ut.y-Mt.y),It.free(Pt),It.free(ut),jt!==ut&&It.free(jt)}else ut!==null&&(b.assign(ut.location),jt=y.I(ut),jt!==null&&b.re(jt.point)),Mt!==null&&(at.assign(Mt.location),jt=y.I(Mt),jt!==null&&at.re(jt.point)),ut!==null&&Mt!==null?b.Xa(at)?(ut=Pt.value.point,Mt=z,Mt.assign(b),Mt.re(ut),y.add(xt,a.Pd(E,xt,b)),nh(xt,Mt.x,Mt.y)):(xt.suspendsRouting=!1,xt.bb()):(Pt=Pt.value.point,ut=ut!==null?b:Mt!==null?at:tt,y.add(xt,a.Pd(E,xt,ut)),nh(xt,ut.x-Pt.x,ut.y-Pt.y))}else(xt.fromNode===null||xt.toNode===null)&&(ut=Pt.value.point,y.add(xt,a.Pd(E,xt,tt)),nh(xt,tt.x-ut.x,tt.y-ut.y))}It.free(z),It.free(tt),It.free(b),It.free(at),qn(ot),qn(rt),x||(os(a),Th(a,y))}}ye.prototype.computeMove=function(a,y,x,E){if(E===void 0&&(E=new It),E.assign(y),a===null)return E;var b=y,z=x.isGridSnapEnabled;z&&(x.isGridSnapRealtime||this.lastInput.up)&&(b=It.alloc(),eg(this,a,y,b,x)),x=a.dragComputation!==null?a.dragComputation(a,y,b):b;var tt=a.minLocation,ot=tt.x;isNaN(ot)&&(ot=z?Math.round(1e3*a.location.x)/1e3:a.location.x),tt=tt.y,isNaN(tt)&&(tt=z?Math.round(1e3*a.location.y)/1e3:a.location.y);var rt=a.maxLocation,at=rt.x;return isNaN(at)&&(at=z?Math.round(1e3*a.location.x)/1e3:a.location.x),rt=rt.y,isNaN(rt)&&(rt=z?Math.round(1e3*a.location.y)/1e3:a.location.y),E.h(Math.max(ot,Math.min(x.x,at)),Math.max(tt,Math.min(x.y,rt))),b!==y&&It.free(b),E};function tg(a){var y=a.toolManager.findTool("Dragging");return y!==null?y.dragOptions:a.Wm}function eg(a,y,x,E,b){if(b===void 0&&(b=tg(a)),E.assign(x),y!==null){var z=a.grid;y=b.gridSnapCellSize,a=y.width,y=y.height;var tt=b.gridSnapOrigin,ot=tt.x;if(tt=tt.y,b=b.gridSnapCellSpot,z!==null){var rt=z.gridCellSize;isNaN(a)&&(a=rt.width),isNaN(y)&&(y=rt.height),z=z.gridOrigin,isNaN(ot)&&(ot=z.x),isNaN(tt)&&(tt=z.y)}z=It.allocAt(0,0),z.yi(0,0,a,y,b),se.No(x.x,x.y,ot+z.x,tt+z.y,a,y,E),It.free(z)}}function ng(a,y){if(y!==null)for(a.Mr=!0,a=y.iterator;a.next();)y=a.key,y instanceof rn&&(y.suspendsRouting=!0)}function Th(a,y){if(y!==null){for(y=y.iterator;y.next();){var x=y.key;x instanceof rn&&(x.suspendsRouting=!1,Kv(x)&&x.bb())}a.Mr=!1}}function xf(a,y,x){return y=y.containingGroup,y!==null&&(a=xf(a,y,x),a!==null||(a=x.I(y),a!==null))?a:null}wt=ye.prototype,wt.Pd=function(a,y,x){if(x===void 0)return new Su(qo);var E=a.isGridSnapEnabled;return a.groupsSnapMembers||y.containingGroup===null||(E=!1),E?new Su(new It(Math.round(1e3*x.x)/1e3,Math.round(1e3*x.y)/1e3)):new Su(x.copy())};function wf(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 E=0;E<x;E++)a.M(E).name===y&&zt("Cannot add Layer with the name '"+y+"'; a Layer with the same name is already present in this Diagram.")}}wt.Al=function(a){wf(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(ur,"layers",this,null,a,null,x+1),this.N(),this.Ya(),this},wt.Ww=function(a,y){wf(this,a,y),a.Xe(this);var x=this.Wa,E=x.indexOf(a);0<=E&&(x.remove(a),this.cc!==null&&this.cb(Ar,"layers",this,a,null,E,null));var b=x.count,z;for(z=0;z<b;z++)if(x.M(z)===y){x.Gb(z,a);break}return this.cc!==null&&this.cb(ur,"layers",this,null,a,null,z),this.N(),0>E&&this.Ya(),this},wt.Cy=function(a,y){wf(this,a,y),a.Xe(this);var x=this.Wa,E=x.indexOf(a);0<=E&&(x.remove(a),this.cc!==null&&this.cb(Ar,"layers",this,a,null,E,null));var b=x.count,z;for(z=0;z<b;z++)if(x.M(z)===y){x.Gb(z+1,a);break}return this.cc!==null&&this.cb(ur,"layers",this,null,a,null,z+1),this.N(),0>E&&this.Ya(),this},wt.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 E=y.value,b=E.layerName;b!==a.name?E.layerName=b:E.layerName=""}this.cc!==null&&this.cb(Ar,"layers",this,a,null,x,null),this.N(),this.Ya()}}},wt.Qj=function(a){for(var y=this.layers;y.next();){var x=y.value;if(x.name===a)return x}return null},wt.Yw=function(a){return this.pf===null&&(this.pf=new $e),this.pf.add(a),this.model.Pe(a),this},wt.mA=function(a){this.pf!==null&&(this.pf.remove(a),this.pf.count===0&&(this.pf=null)),this.model.ik(a)},wt.Pe=function(a){return this.zg===null&&(this.zg=new $e),this.zg.add(a),this},wt.ik=function(a){this.zg!==null&&(this.zg.remove(a),this.zg.count===0&&(this.zg=null))},wt.ds=function(a){if(this.skipsUndoManager||this.model.skipsUndoManager||this.model.undoManager.Tu(a),a.change!==ra&&(this.isModified=!0),this.zg!==null)for(var y=this.zg,x=y.length,E=0;E<x;E++)y.M(E)(a)},wt.cb=function(a,y,x,E,b,z,tt){z===void 0&&(z=null),tt===void 0&&(tt=null);var ot=new Wo;ot.diagram=this,ot.change=a,ot.propertyName=y,ot.object=x,ot.oldValue=E,ot.oldParam=z,ot.newValue=b,ot.newParam=tt,this.ds(ot)},wt.g=function(a,y,x,E,b){this.cb(Uo,a,this,y,x,E,b)},ye.prototype.changeState=function(a,y){if(a!==null&&a.diagram===this){var x=this.skipsModelSourceBindings;try{this.skipsModelSourceBindings=!0;var E=a.change;if(E===Uo){var b=a.object;if(Go(b,a.propertyName,a.I(y)),b instanceof ee){var z=b.part;z!==null&&z.Wb()}this.isModified=!0}else if(E===ur){var tt=a.object,ot=a.newParam,rt=a.newValue;if(tt instanceof tn)if(typeof ot=="number"&&rt instanceof ee){y?tt.pc(ot):tt.Gb(ot,rt);var at=tt.part;at!==null&&at.Wb()}else typeof ot=="number"&&rt instanceof Cr&&(rt.isRow?h1(tt,ot,y?void 0:rt):d1(tt,ot,y?void 0:rt));else if(tt instanceof Hr){var ut=a.oldParam===!0;typeof ot=="number"&&rt instanceof ei&&(y?(rt.isSelected=!1,rt.isHighlighted=!1,rt.Wb(),tt.pc(ut?ot:-1,rt,ut)):tt.oi(ot,rt,ut))}else tt instanceof ye?typeof ot=="number"&&rt instanceof Hr&&(y?this.Wa.mb(ot):(rt.Xe(this),this.Wa.Gb(ot,rt))):zt("unknown ChangedEvent.Insert object: "+a.toString());this.isModified=!0}else if(E===Ar){var ft=a.object,vt=a.oldParam,xt=a.oldValue;if(ft instanceof tn)typeof vt=="number"&&xt instanceof ee?y?ft.Gb(vt,xt):ft.pc(vt):typeof vt=="number"&&xt instanceof Cr&&(xt.isRow?h1(ft,vt,y?xt:void 0):d1(ft,vt,y?xt:void 0));else if(ft instanceof Hr){var Pt=a.newParam===!0;typeof vt=="number"&&xt instanceof ei&&(y?0>ft.Pa.indexOf(xt)&&ft.oi(vt,xt,Pt):(xt.isSelected=!1,xt.isHighlighted=!1,xt.Wb(),ft.pc(Pt?vt:-1,xt,Pt)))}else ft instanceof ye?typeof vt=="number"&&xt instanceof Hr&&(y?(xt.Xe(this),this.Wa.Gb(vt,xt)):this.Wa.mb(vt)):zt("unknown ChangedEvent.Remove object: "+a.toString());this.isModified=!0}else E!==ra&&zt("unknown ChangedEvent: "+a.toString())}finally{this.skipsModelSourceBindings=x}}},ye.prototype.Ea=function(a){return this.undoManager.Ea(a)},ye.prototype.eb=function(a){return this.undoManager.eb(a)},ye.prototype.Kf=function(){return this.undoManager.Kf()},ye.prototype.commit=function(a,y){y===void 0&&(y="");var x=this.skipsUndoManager;y===null&&(this.skipsUndoManager=!0,y=""),this.undoManager.Ea(y);var E=!1;try{a(this),E=!0}finally{E?this.undoManager.eb(y):this.undoManager.Kf(),this.skipsUndoManager=x}},ye.prototype.updateAllTargetBindings=function(a){this.partManager.updateAllTargetBindings(a)},ye.prototype.rp=function(){this.partManager.rp()};function Pf(a,y,x){var E=a.animationManager;if(a.vb||a.ld)a.Ca=x,Il(a),a.N(),a.Ee=!0,E.zb&&(mu(E)||E.ce.add(E.H,"scale",y,a.Ca));else if(a.ta===null)a.Ca=x,Il(a);else{a.vb=!0;var b=a.viewportBounds.copy(),z=a.Aa,tt=a.ya,ot=a.zoomPoint.x,rt=a.zoomPoint.y,at=a.contentAlignment;isNaN(ot)&&(at.$c()?at.Hf(kl)?ot=0:at.Hf(Qs)&&(ot=z-1):ot=at.sb()?at.x*(z-1):z/2),isNaN(rt)&&(at.$c()?at.Hf(Fl)?rt=0:at.Hf(za)&&(rt=tt-1):rt=at.sb()?at.y*(tt-1):tt/2),a.scaleComputation===null||a.animationManager.defaultAnimation.isAnimating||(x=a.scaleComputation(a,x)),x<a.minScale&&(x=a.minScale),x>a.maxScale&&(x=a.maxScale),z=It.allocAt(a.pa.x+ot/y-ot/x,a.pa.y+rt/y-rt/x),a.position=z,It.free(z),a.Ca=x,Il(a),a.vb=!1,a.onViewportBoundsChanged(b,a.viewportBounds,y,!1),Ua(a,!1),E.zb&&(mu(E)||E.ce.add(E.H,"scale",y,a.Ca))}}ye.prototype.onViewportBoundsChanged=function(a,y,x,E){if(!a.D(y)){E===void 0&&(E=!1),E||(this.Ee=!0),this.vd=!0;var b=this.layout;b===null||!b.isViewportSized||this.autoScale!==fs||a.width===y.width&&a.height===y.height||b.C(),b=this.currentTool,this.Vk===!0&&b instanceof Vo&&(this.lastInput.documentPoint=this.Ps(this.lastInput.viewPoint),Ip(b,this)),this.vb||this.invalidateViewport(a,y),Tl(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=E,this.R("ViewportBoundsChanged",this.fc,a),this.isVirtualized&&this.links.each(function(z){z.isAvoiding&&z.actualBounds.Yc(y)&&z.bb()})}};function Tl(a,y){var x=a.fe;if(x!==null&&x.visible){for(var E=Ee.alloc(),b=1,z=1,tt=x.O.s,ot=tt.length,rt=0;rt<ot;rt++){var at=tt[rt],ut=Math.abs(at.interval);2>ut||(pv(at.figure)?z=z*ut/se.vx(z,ut):b=b*ut/se.vx(b,ut))}if(tt=x.gridCellSize,E.h(z*tt.width,b*tt.height),y!==void 0)b=y.width,z=y.height,a=y.x,tt=y.y;else{if(y=be.alloc(),a=a.viewportBounds,y.h(a.x,a.y,a.width,a.height),!y.w()){be.free(y);return}b=y.width,z=y.height,a=y.x,tt=y.y,be.free(y)}x.width=b+2*E.width,x.height=z+2*E.height,y=It.alloc(),se.No(a,tt,0,0,E.width,E.height,y),y.offset(-E.width,-E.height),Ee.free(E),x.part.location=y,It.free(y)}}ye.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(),E=x.length,b=0;b<E;b++)x[b].isSelected=!1;y.ka(),y.clear(),y.freeze(),a||this.R("ChangedSelection",y)}},ye.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))},ye.prototype.rA=function(a){if(this.R("ChangingSelection",this.selection),this.clearSelection(!0),Ve(a))for(var y=a.length,x=0;x<y;x++){var E=a[x];E instanceof ei||zt("Diagram.selectCollection given something that is not a Part: "+E),E.isSelected=!0}else for(a=a.iterator;a.next();)y=a.value,y instanceof ei||zt("Diagram.selectCollection given something that is not a Part: "+y),y.isSelected=!0;this.R("ChangedSelection",this.selection)},ye.prototype.clearHighlighteds=function(){var a=this.highlighteds;if(0<a.count){for(var y=a.Fa(),x=y.length,E=0;E<x;E++)y[E].isHighlighted=!1;a.ka(),a.clear(),a.freeze()}},wt=ye.prototype,wt.Iz=function(a){a!==null&&a.diagram===this&&(!a.isHighlighted||1<this.highlighteds.count)&&(this.clearHighlighteds(),a.isHighlighted=!0)},wt.Jz=function(a){a=new _e().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 ei||zt("Diagram.highlightCollection given something that is not a Part: "+y),y.isHighlighted=!0},wt.scroll=function(a,y,x){x===void 0&&(x=1);var E=y==="up"||y==="down",b=0,z=It.alloc();if(a==="pixel")b=x;else if(a==="line")b=x*(E?this.scrollVerticalLineChange:this.scrollHorizontalLineChange);else if(a==="page")a=E?this.viewportBounds.height:this.viewportBounds.width,a*=this.scale,a!==0&&(b=x*Math.max(a-(E?this.scrollVerticalLineChange:this.scrollHorizontalLineChange),0));else{if(a==="document"){b=this.documentBounds,x=this.viewportBounds,y==="up"?this.position=z.h(x.x,b.y):y==="left"?this.position=z.h(b.x,x.y):y==="down"?this.position=z.h(x.x,b.bottom-x.height):y==="right"&&(this.position=z.h(b.right-x.width,x.y)),It.free(z);return}zt("scrolling unit must be 'pixel', 'line', 'page', or 'document', not: "+a)}b/=this.scale,x=this.position,y==="up"?this.position=z.h(x.x,x.y-b):y==="down"?this.position=z.h(x.x,x.y+b):y==="left"?this.position=z.h(x.x-b,x.y):y==="right"?this.position=z.h(x.x+b,x.y):zt("scrolling direction must be 'up', 'down', 'left', or 'right', not: "+y),It.free(z)},wt.tv=function(a){var y=this.viewportBounds;y.Re(a)||(a=a.center,a.x-=y.width/2,a.y-=y.height/2,this.position=a)},wt.es=function(a){var y=this.viewportBounds;a=a.center,a.x-=y.width/2,a.y-=y.height/2,this.position=a},wt.op=function(a){var y=this.Ab;y.reset(),this.Ca!==1&&y.scale(this.Ca);var x=this.pa;return(x.x!==0||x.y!==0)&&isFinite(x.x)&&isFinite(x.y)&&y.translate(-x.x,-x.y),a.copy().transform(this.Ab)},wt.zA=function(a){var y=this.Ab,x=a.x,E=a.y,b=x+a.width,z=E+a.height,tt=y.m11,ot=y.m12,rt=y.m21,at=y.m22,ut=y.dx,ft=y.dy,vt=x*tt+E*rt+ut;y=x*ot+E*at+ft;var xt=b*tt+E*rt+ut;return a=b*ot+E*at+ft,E=x*tt+z*rt+ut,x=x*ot+z*at+ft,tt=b*tt+z*rt+ut,b=b*ot+z*at+ft,z=Math.min(vt,xt),vt=Math.max(vt,xt),xt=Math.min(y,a),y=Math.max(y,a),z=Math.min(z,E),vt=Math.max(vt,E),xt=Math.min(xt,x),y=Math.max(y,x),z=Math.min(z,tt),vt=Math.max(vt,tt),xt=Math.min(xt,b),y=Math.max(y,b),new be(z,xt,vt-z,y-xt)},wt.Ps=function(a){var y=this.Ab;y.reset(),this.Ca!==1&&y.scale(this.Ca);var x=this.pa;return(x.x!==0||x.y!==0)&&isFinite(x.x)&&isFinite(x.y)&&y.translate(-x.x,-x.y),Mn(a.copy(),this.Ab)};function $p(a){var y=a.isModified;a.Tw!==y&&(a.Tw=y,a.R("Modified"))}function Cf(a){return a=lg.get(a),a!==null?new a:new yo}ye.prototype.doModelChanged=function(a){var y=this;if(a.model===this.model){var x=a.change,E=a.propertyName;if(x===ra&&E[0]==="S")if(E==="StartingFirstTransaction"){var b=this;a=this.toolManager,a.mouseDownTools.each(function(rt){return rt.diagram=b}),a.mouseMoveTools.each(function(rt){return rt.diagram=b}),a.mouseUpTools.each(function(rt){return rt.diagram=b}),this.ld||this.hf||(this.Jk=!0,this.fn&&(this.kg=!0))}else E==="StartingUndo"||E==="StartingRedo"?(a=this.animationManager,a.defaultAnimation.isAnimating&&!this.skipsUndoManager&&a.Cc(),this.R("ChangingSelection",this.selection)):E==="StartedTransaction"&&(a=this.animationManager,a.defaultAnimation.isAnimating&&!this.skipsUndoManager&&a.Cc());else if(this.aa){this.aa=!1;try{if(a.modelChange===""&&x===ra){(E==="FinishedUndo"||E==="FinishedRedo")&&(this.R("ChangedSelection",this.selection),os(this));var z=this.animationManager;E==="RolledBackTransaction"&&z.Cc(),this.bx(),this.Jk=!0,this.bd(),this.undoManager.transactionLevel!==0&&this.undoManager.transactionLevel!==1||Kc(z),E==="CommittedTransaction"&&this.undoManager.isJustDiscarded&&(this.Ce=Math.min(this.Ce,this.undoManager.historyIndex-1)),E!=="CommittedTransaction"&&E!=="RolledBackTransaction"||!this.undoManager.isPendingUnmodified||setTimeout(function(){y.isModified=!1},1);var tt=a.isTransactionFinished;if(tt&&($p(this),this.As.clear(),Gp(this.animationManager)),!this.Rt&&tt&&this.lastInput.targetDiagram){this.Rt=!0;var ot=this;Nn(function(){ot.currentTool.standardMouseOver(),ot.Rt=!1},10)}}}finally{this.aa=!0}}}};function xd(a,y){y=y.O.s;for(var x=y.length,E=0;E<x;E++)Ih(a,y[E])}function Ih(a,y){if(y instanceof Ys){var x=y.element;if(x!==null&&x instanceof HTMLImageElement){x.Bg instanceof _e&&x.Bg.add(a);var E=y.Eg;if(E!==null&&E.sq===!0&&y.diagram!==null&&y.diagram.Xn.add(y),x.hn)if(x=x.getAttribute("src")||"",E=a.Og.I(x),E===null)E=[],E.push(y),a.Og.add(x,E);else{for(a=0;a<E.length;a++)if(E[a]===y)return;E.push(y)}}}}function Ef(a,y){if(y instanceof Ys){var x=y.element;if(x!==null&&x instanceof HTMLImageElement&&x.hn){var E=x.getAttribute("src")||"",b=a.Og.I(E);if(b!==null){for(var z=0;z<b.length;z++)if(b[z]===y){b.splice(z,1),b.length===0&&(a.Og.remove(E),x.Fq&&x.removeEventListener("load",x.Fq),x.Yp&&x.removeEventListener("error",x.Yp),delete x.Fq,delete x.Yp,x.Bg instanceof _e&&x.Bg.remove(a),wg(E));break}}}}}ye.prototype.Wd=function(){this.partManager.Wd()},ye.prototype.Aj=function(a,y){this.Yd.Aj(a,y)},ye.prototype.Cj=function(a,y){this.Yd.Cj(a,y)},ye.prototype.findPartForKey=function(a){return this.partManager.findPartForKey(a)},ye.prototype.Vb=function(a){return this.partManager.Vb(a)},ye.prototype.findLinkForKey=function(a){return this.partManager.findLinkForKey(a)},wt=ye.prototype,wt.Lc=function(a){return this.partManager.Lc(a)},wt.ii=function(a){return this.partManager.ii(a)},wt.Kc=function(a){return this.partManager.Kc(a)},wt.ms=function(a){for(var y=[],x=0;x<arguments.length;++x)y[x]=arguments[x];return this.partManager.ms.apply(this.partManager,y instanceof Array?y:Ce(ui(y)))},wt.ls=function(a){for(var y=[],x=0;x<arguments.length;++x)y[x]=arguments[x];return this.partManager.ls.apply(this.partManager,y instanceof Array?y:Ce(ui(y)))};function Il(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 Af(a,y){a.Zi=!1;var x=a.Sp;x.D(y)||(x=x.copy(),a.Sp.assign(y),Ua(a,!1),a.R("DocumentBoundsChanged",void 0,x),a.Ee=!0,a.N())}wt.Va=function(){if(this.Zi){var a=be.alloc();Af(this,this.computeBounds(a)),be.free(a)}},wt.rz=function(){for(var a=new _e,y=this.nodes;y.next();){var x=y.value;x.isTopLevel&&a.add(x)}for(y=this.links;y.next();)x=y.value,x.isTopLevel&&a.add(x);return a.iterator},wt.qz=function(){return this.ai.iterator},wt.Uz=function(a){os(this),a&&ig(this,!0),this.ld?Mf(this,!1):(this.Jk=!0,ka(this))};function ig(a,y){for(var x=a.ai.iterator;x.next();)t0(a,x.value,y);a.layout&&(y?a.layout.isValidLayout=!1:a.layout.C())}function t0(a,y,x){if(y!==null){for(var E=y.gl.iterator;E.next();)t0(a,E.value,x);y.layout!==null&&(x?y.layout.isValidLayout=!1:y.layout.C())}}function Mf(a,y){if(a.xh&&!a.lt){var x=a.aa;a.aa=!0;var E=a.undoManager.transactionLevel,b=a.layout,z=a.animationManager;try{E===0&&(a.undoManager.isInternalTransaction=!0,a.Ea("Layout")),1>=E&&!z.defaultAnimation.isAnimating&&!z.zb&&(y||Yl(z,"Layout")),a.xh=!1;for(var tt=a.ai.iterator;tt.next();)Lf(a,tt.value,y,E);b.isValidLayout||(!y||b.isRealtime||b.isRealtime===null||E===0?(b.doLayout(a),os(a),b.isValidLayout=!0):a.xh=!0)}finally{y=a.undoManager.isInternalTransaction,E===0&&(a.eb("Layout"),a.undoManager.isInternalTransaction=!1),!y||E!==0&&E!==1||Kc(z),a.aa=x}}}function Lf(a,y,x,E){if(y!==null){for(var b=y.gl.iterator;b.next();)Lf(a,b.value,x,E);b=y.layout,b===null||b.isValidLayout||(!x||b.isRealtime||E===0?(y.rh=!y.location.w(),b.doLayout(y),y.C(32),sc(a,y),b.isValidLayout=!0):a.xh=!0)}}wt.yz=function(){for(var a=new $e,y=this.nodes;y.next();){var x=y.value;x.isTopLevel&&x.kh()===null&&a.add(x)}return a.iterator};function ev(a){function y(b){var z=b.toLowerCase(),tt=new $e;x.add(b,tt),x.add(z,tt),E.add(b,b),E.add(z,b)}var x=new ri,E=new ri;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=E}function e0(a,y){var x=a.hw.I(y);return x!==null?x:a.hw.I(y.toLowerCase())}function og(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)}wt.Bj=function(a,y){return a=og(this,a),a!==null&&a.add(y),this},wt.am=function(a,y){a=og(this,a),a!==null&&a.remove(y)},wt.R=function(a,y,x){var E=og(this,a),b=new bu;if(b.diagram=this,a=e0(this,a),a!==null&&(b.name=a),y!==void 0&&(b.subject=y),x!==void 0&&(b.parameter=x),y=E.length,y===1)E.M(0)(b);else if(y!==0)for(E=E.Fa(),x=0;x<y;x++)(0,E[x])(b)};function rg(a){if(a.animationManager.isTicking)return!1;var y=a.currentTool;return y===a.toolManager.findTool("Dragging")?!a.Mr||y.isComplexRoutingRealtime:!0}wt.Yj=function(a,y){return sg(this,!1,null,y||null).Yj(a.x,a.y,a.width,a.height)},ye.prototype.computeOccupiedArea=function(a){return this.isVirtualized?this.viewportBounds.copy():this.Zi?cf(this,a):a.assign(this.documentBounds)};function sg(a,y,x,E){var b=a.Xh;if(b===null&&(a.Xh=b=new np(a.avoidanceCellSize)),b.vs||b.group!==x||b.Yx!==E){if(b.Hx=Math.max(b.Os+1,Math.floor(a.avoidanceLimit/a.avoidanceCellSize.width)),b.Ix=Math.max(b.Os+1,Math.floor(a.avoidanceLimit/a.avoidanceCellSize.height)),x!==null&&(x=n0(a,x)),x===null){y=be.alloc(),a.computeOccupiedArea(y),y.Bc(100,100),b.initialize(y);for(var z=a.nodes;z.next();){var tt=z.value,ot=tt.layer;ot!==null&&ot.visible&&!ot.isTemporary&&ag(a,tt,E,y)}be.free(y)}else{for(0<x.memberParts.count&&(y=a.computePartsBounds(x.memberParts,!1),y.Bc(20,20),b.initialize(y)),y=be.alloc(),z=x.memberParts;z.next();)tt=z.value,tt instanceof Fn&&ag(a,tt,E,y);be.free(y)}b.group=x,b.Yx=E,b.vs=!1}else y&&oS(b);return b}function n0(a,y){return y.avoidable&&!y.isLinkLabel?y:y.containingGroup!==null?n0(a,y.containingGroup):null}function ag(a,y,x,E){if(y!==x&&y.isVisible()){if(y.avoidable&&!y.isLinkLabel){y=y.getAvoidableRect(E),a=a.Xh;var b=y.x,z=y.y;if(Lg(a,b,z))for(x=(z-a.Od)/a.sc|0,E=Math.min((b+y.width-a.Nd)/a.rc|0,a.di),y=Math.min((z+y.height-a.Od)/a.sc|0,a.ei),b=(b-a.Nd)/a.rc|0;b<=E;b++)if(z=a.ac[b],z.fill)z.fill(oh,x,y+1);else for(var tt=x;tt<=y;tt++)z[tt]=oh}else if(y instanceof Ai)for(y=y.memberParts;y.next();)b=y.value,b instanceof Fn&&ag(a,b,x,E)}}function Ku(a,y){a.Xh===null||a.Xh.vs||y!==void 0&&(!y.avoidable||y.isLinkLabel)||(a.Xh.vs=!0)}ye.prototype.gs=function(a){this.wp.assign(a),this.computeAutoScrollPosition(this.wp).Xa(this.position)?this.ug():Ff(this)};function Ff(a){a.vk===-1&&(a.vk=Nn(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=be.alloc(),a.computeBounds(y),y.ed(a.documentBounds),Af(a,y),be.free(y),a.Fc=!0,a.bd(),Ff(a))}},a.vp))}ye.prototype.ug=function(){this.vk!==-1&&(Be.clearTimeout(this.vk),this.vk=-1)},ye.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 E=this.viewportBounds,b=this.scale;E=be.allocAt(0,0,E.width*b,E.height*b);var z=It.allocAt(0,0);if(a.x>=E.x&&a.x<E.x+x.left&&this.allowHorizontalScroll){var tt=Math.max(this.scrollHorizontalLineChange,1);tt|=0,z.x-=tt,a.x<E.x+x.left/2&&(z.x-=tt),a.x<E.x+x.left/4&&(z.x-=4*tt)}else a.x<=E.x+E.width&&a.x>E.x+E.width-x.right&&this.allowHorizontalScroll&&(tt=Math.max(this.scrollHorizontalLineChange,1),tt|=0,z.x+=tt,a.x>E.x+E.width-x.right/2&&(z.x+=tt),a.x>E.x+E.width-x.right/4&&(z.x+=4*tt));return a.y>=E.y&&a.y<E.y+x.top&&this.allowVerticalScroll?(tt=Math.max(this.scrollVerticalLineChange,1),tt|=0,z.y-=tt,a.y<E.y+x.top/2&&(z.y-=tt),a.y<E.y+x.top/4&&(z.y-=4*tt)):a.y<=E.y+E.height&&a.y>E.y+E.height-x.bottom&&this.allowVerticalScroll&&(tt=Math.max(this.scrollVerticalLineChange,1),tt|=0,z.y+=tt,a.y>E.y+E.height-x.bottom/2&&(z.y+=tt),a.y>E.y+E.height-x.bottom/4&&(z.y+=4*tt)),z.Xa(qo)||(y=new It(y.x+z.x/b,y.y+z.y/b)),be.free(E),It.free(z),y},wt=ye.prototype,wt.Cs=function(){return null},wt.av=function(){return null},wt.bs=function(a,y){this.pj.add(a,y)},wt.Fu=function(a){(this.Pw=a)||this.nodes.each(function(y){y instanceof Ai&&(y.$p=null)})};function ac(a,y,x){function E(){var ut=+new Date;for(z=!0,tt.reset();tt.next();)if(!tt.value[0].al){z=!1;break}z||ut-at>rt?y(x,b,ot):Be.requestAnimationFrame(E)}for(var b=x.callback,z=!0,tt=a.Og.iterator;tt.next();)if(!tt.value[0].al){z=!1;break}if(typeof b!="function"||z)return y(x,b,a);var ot=a,rt=x.callbackTimeout||300,at=+new Date;return Be.requestAnimationFrame(function(){E()}),null}wt.Wz=function(a){return tr?(a===void 0&&(a={}),a.returnType="Image",this.Jx(a)):null},wt.Jx=function(a){return a===void 0&&(a={}),ac(this,this.Xz,a)},wt.Xz=function(a,y,x){var E=i0(x,a,"canvas",null);if(E===null)return null;x=E.Z.canvas;var b=null;if(x!==null)switch(b=a.returnType,b===void 0?b="string":b=b.toLowerCase(),b){case Cd+"data":b=E.getImageData(0,0,x.width,x.height);break;case Cd:E=(a.document||document).createElement("img"),E.src=x.toDataURL(a.type,a.details),b=E;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:b=x.toDataURL(a.type,a.details)}return typeof y=="function"?(y(b),null):b};function i0(a,y,x,E){if(a.animationManager.Cc(),a.bd(),a.ta===null)return null;typeof y!="object"&&zt("properties argument must be an Object.");var b=y.size||null,z=y.scale||null;y.scale!==void 0&&isNaN(y.scale)&&(z="NaN");var tt=y.maxSize;y.maxSize===void 0&&(tt=x==="SVG"?new Ee(1/0,1/0):new Ee(2e3,2e3));var ot=y.position||null,rt=y.parts||null,at=y.padding===void 0?1:y.padding,ut=y.background||null,ft=y.omitTemporary;ft===void 0&&(ft=!0);var vt=y.document||document,xt=y.elementFinished||null,Pt=y.showTemporary;Pt===void 0&&(Pt=!ft),y=y.showGrid,y===void 0&&(y=Pt),b!==null&&isNaN(b.width)&&isNaN(b.height)&&(b=null),typeof at=="number"?at=new yi(at):at instanceof yi||zt("MakeImage padding must be a Margin or a number."),at.left=Math.max(at.left,0),at.right=Math.max(at.right,0),at.top=Math.max(at.top,0),at.bottom=Math.max(at.bottom,0),a.ib.Vc(!0),ft=new Ya(null,vt,void 0,!0);var Mt=ft.context;if(!(b||z||rt||ot))return ft.width=a.Aa+Math.ceil(at.left+at.right),ft.height=a.ya+Math.ceil(at.top+at.bottom),x==="SVG"?E===null?null:(E.resize(ft.width,ft.height,ft.width,ft.height),E.ownerDocument=vt,E.hs=xt,$c(a,E.context,at,new Ee(ft.width,ft.height),a.Ca,a.pa,rt,ut,Pt,y),E.context):(a.Xm=!1,$c(a,Mt,at,new Ee(ft.width,ft.height),a.Ca,a.pa,rt,ut,Pt,y),a.Xm=!0,ft.context);var jt=a.Pp,Tt=a.documentBounds.copy();if(Tt.Fv(a.yb),Pt)for(var Vt=a.Wa.s,Yt=Vt.length,Kt=0;Kt<Yt;Kt++){var te=Vt[Kt];if(te.visible&&te.isTemporary){te=te.Pa.s;for(var me=te.length,Cn=0;Cn<me;Cn++){var Hn=te[Cn];Hn.isInDocumentBounds&&Hn.isVisible()&&(Hn=Hn.actualBounds,Hn.w()&&Tt.ed(Hn))}}}if(Vt=new It(Tt.x,Tt.y),rt!==null){for(Yt=new be(0,0,0,0),Kt=!0,te=rt.iterator,te.reset();te.next();)me=te.value,me instanceof ei&&(Cn=me.layer,Cn!==null&&!Cn.visible||Cn!==null&&!Pt&&Cn.isTemporary||!me.isVisible()||(me=me.actualBounds,me.w()&&(Kt?(Kt=!1,Yt.assign(me)):Yt.ed(me))));Tt.width=Yt.width,Tt.height=Yt.height,Vt.x=Yt.x,Vt.y=Yt.y}return ot!==null&&ot.w()&&(Vt=ot,z||(z=jt)),Yt=ot=0,at!==null&&(ot=at.left+at.right,Yt=at.top+at.bottom),Kt=te=0,b!==null&&(te=b.width,Kt=b.height,isFinite(te)&&(te=Math.max(0,te-ot)),isFinite(Kt)&&(Kt=Math.max(0,Kt-Yt))),b!==null&&z!==null?(z==="NaN"&&(z=jt),b.w()?(b=te,Tt=Kt):isNaN(Kt)?(b=te,Tt=Tt.height*z):(b=Tt.width*z,Tt=Kt)):b!==null?b.w()?(z=Math.min(te/Tt.width,Kt/Tt.height),b=te,Tt=Kt):isNaN(Kt)?(z=te/Tt.width,b=te,Tt=Tt.height*z):(z=Kt/Tt.height,b=Tt.width*z,Tt=Kt):z!==null?z==="NaN"&&tt.w()?(z=Math.min((tt.width-ot)/Tt.width,(tt.height-Yt)/Tt.height),z>jt?(z=jt,b=Tt.width,Tt=Tt.height):(b=tt.width,Tt=tt.height)):(b=Tt.width*z,Tt=Tt.height*z):(z=jt,b=Tt.width,Tt=Tt.height),at!==null?(b+=ot,Tt+=Yt):at=new yi(0),tt!==null&&(jt=tt.width,tt=tt.height,isNaN(jt)&&(jt=2e3),isNaN(tt)&&(tt=2e3),isFinite(jt)&&(b=Math.min(b,jt)),isFinite(tt)&&(Tt=Math.min(Tt,tt))),ft.width=Math.ceil(b),ft.height=Math.ceil(Tt),x==="SVG"?E===null?null:(E.resize(ft.width,ft.height,ft.width,ft.height),E.ownerDocument=vt,E.hs=xt,$c(a,E.context,at,new Ee(Math.ceil(b),Math.ceil(Tt)),z,Vt,rt,ut,Pt,y),E.context):(a.Xm=!1,$c(a,Mt,at,new Ee(Math.ceil(b),Math.ceil(Tt)),z,Vt,rt,ut,Pt,y),a.Xm=!0,ft.context)}qt.Object.defineProperties(ye.prototype,{renderer:{get:function(){return this.nl},set:function(a){this instanceof mt||(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 Ol(this,Be.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 Ol(this,Be.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(Be,"resize",this.Ov,!1),this.removeEventListener(Be,"wheel",this.$j,!0),Zl===this&&(Zl=null)):this.ui===null&&(this.hf=!1),this.Ka=null,a!==null&&((y=a.H)&&(y.div=null),hf(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)&&Dn(a,"0 <= value <= 1",ye,"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),Ua(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),Ua(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),Ua(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),Ua(this,!1))}},scrollHorizontalLineChange:{get:function(){return this.iu},set:function(a){var y=this.iu;y!==a&&(0>a&&Dn(a,">= 0",ye,"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&&Dn(a,">= 0",ye,"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 E=y.style.cursor;y.style.cursor=a,x.style.cursor=a,y.style.cursor===E&&(y.style.cursor="-webkit-"+a,x.style.cursor="-webkit-"+a,y.style.cursor===E&&(y.style.cursor="-moz-"+a,x.style.cursor="-moz-"+a,y.style.cursor===E&&(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 Dn(a,">= 0",ye,"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||$p(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=uf(this,!0);this.hf=!1,this.fn=!0,this.Ce=-2,this.kg=!1;var E=this.vb;this.vb=!0,Yl(this.animationManager,"Model"),y&&(this.pf!==null&&this.pf.each(function(z){return y.ik(z)}),y.ik(this.Oc)),this.cc=a,this.partManager=Cf(this.cc.type);for(var b=0;b<x.length;b++)this.add(x[b]);a.Pe(this.Hb),this.partManager.addAllModeledParts(),a.ik(this.Hb),a.Pe(this.Oc),this.pf!==null&&this.pf.each(function(z){return a.Pe(z)}),this.vb=E,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(Be,"pointermove",this.dk,!0),this.addEventListener(Be,"pointerdown",this.ui,!0),this.addEventListener(Be,"pointerup",this.fk,!0),this.addEventListener(Be,"pointerout",this.ek,!0),this.addEventListener(Be,"pointercancel",this.ck,!0),this.removeEventListener(y,"wheel",this.$j,!1),this.addEventListener(Be,"wheel",this.$j,!0),this.addEventListener(Be,"selectstart",this.preventDefault,!1)):(this.removeEventListener(Be,"pointermove",this.dk,!0),this.removeEventListener(Be,"pointerdown",this.ui,!0),this.removeEventListener(Be,"pointerup",this.fk,!0),this.removeEventListener(Be,"pointerout",this.ek,!0),this.removeEventListener(Be,"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(Be,"wheel",this.$j,!0),this.removeEventListener(Be,"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=It.alloc().assign(this.pa);if(!y.D(a)){var x=this.viewportBounds.copy();this.pa.assign(a),Hp(this.animationManager,y,this.pa),this.vb||this.ta===null&&!this.wo.w()?Il(this):(this.vb=!0,a=this.scale,gf(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)}It.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=Xp(this)),this.fe},set:function(a){var y=this.fe;if(y!==a){y===null&&(y=this.fe=Xp(this)),a.type!==tn.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),Tl(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),Il(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 yi(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===Qu&&Ua(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,Ua(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,Pf(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&&Pf(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!==fs&&Ua(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)):Dn(a,"> 0",ye,"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)):Dn(a,"> 0",ye,"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),Ua(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 yi(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();)Zf(a.value)}},treeCollapsePolicy:{get:function(){return this.uu},set:function(a){var y=this.uu;y!==a&&(a!==Xu&&a!==wr&&a!==ug&&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 Ee(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 yi(a));var y=this.xp;y.D(a)||(this.xp=a=a.J(),this.Ya(),this.g("autoScrollRegion",y,a))}}}),qt.Object.defineProperties(ye,{licenseKey:{get:function(){return Tf.jc()},set:function(a){Tf.add(a.replace(/\s/g,""))}},version:{get:function(){return Pd}}}),ye.prototype.makeImageData=ye.prototype.Jx,ye.prototype.makeImage=ye.prototype.Wz,ye.prototype.cacheGroupExternalLinks=ye.prototype.Fu,ye.prototype.addRenderer=ye.prototype.bs,ye.prototype.makeSVG=ye.prototype.av,ye.prototype.makeSvg=ye.prototype.Cs,ye.prototype.stopAutoScroll=ye.prototype.ug,ye.prototype.doAutoScroll=ye.prototype.gs,ye.prototype.isUnoccupied=ye.prototype.Yj,ye.prototype.raiseDiagramEvent=ye.prototype.R,ye.prototype.removeDiagramListener=ye.prototype.am,ye.prototype.addDiagramListener=ye.prototype.Bj,ye.prototype.findTreeRoots=ye.prototype.yz,ye.prototype.layoutDiagram=ye.prototype.Uz,ye.prototype.findTopLevelGroups=ye.prototype.qz,ye.prototype.findTopLevelNodesAndLinks=ye.prototype.rz,ye.prototype.ensureBounds=ye.prototype.Va,ye.prototype.findLinksByExample=ye.prototype.ls,ye.prototype.findNodesByExample=ye.prototype.ms,ye.prototype.findLinkForData=ye.prototype.Kc,ye.prototype.findNodeForData=ye.prototype.ii,ye.prototype.findPartForData=ye.prototype.Lc,ye.prototype.findLinkForKey=ye.prototype.findLinkForKey,ye.prototype.findNodeForKey=ye.prototype.Vb,ye.prototype.findPartForKey=ye.prototype.findPartForKey,ye.prototype.rebuildParts=ye.prototype.Wd,ye.prototype.transformViewToDoc=ye.prototype.Ps,ye.prototype.transformRectDocToView=ye.prototype.zA,ye.prototype.transformDocToView=ye.prototype.op,ye.prototype.centerRect=ye.prototype.es,ye.prototype.scrollToRect=ye.prototype.tv,ye.prototype.scroll=ye.prototype.scroll,ye.prototype.highlightCollection=ye.prototype.Jz,ye.prototype.highlight=ye.prototype.Iz,ye.prototype.selectCollection=ye.prototype.rA,ye.prototype.select=ye.prototype.select,ye.prototype.updateAllRelationshipsFromData=ye.prototype.rp,ye.prototype.updateAllTargetBindings=ye.prototype.updateAllTargetBindings,ye.prototype.commit=ye.prototype.commit,ye.prototype.rollbackTransaction=ye.prototype.Kf,ye.prototype.commitTransaction=ye.prototype.eb,ye.prototype.startTransaction=ye.prototype.Ea,ye.prototype.raiseChanged=ye.prototype.g,ye.prototype.raiseChangedEvent=ye.prototype.cb,ye.prototype.removeChangedListener=ye.prototype.ik,ye.prototype.addChangedListener=ye.prototype.Pe,ye.prototype.removeModelChangedListener=ye.prototype.mA,ye.prototype.addModelChangedListener=ye.prototype.Yw,ye.prototype.findLayer=ye.prototype.Qj,ye.prototype.removeLayer=ye.prototype.kA,ye.prototype.addLayerAfter=ye.prototype.Cy,ye.prototype.addLayerBefore=ye.prototype.Ww,ye.prototype.addLayer=ye.prototype.Al,ye.prototype.moveParts=ye.prototype.moveParts,ye.prototype.copyParts=ye.prototype.Kj,ye.prototype.removeParts=ye.prototype.Is,ye.prototype.remove=ye.prototype.remove,ye.prototype.add=ye.prototype.add,ye.prototype.clearDelayedGeometries=ye.prototype.bx,ye.prototype.setProperties=ye.prototype.nm,ye.prototype.attach=ye.prototype.Du,ye.prototype.set=ye.prototype.set,ye.prototype.resetInputOptions=ye.prototype.Sx,ye.prototype.setInputOption=ye.prototype.sA,ye.prototype.getInputOption=ye.prototype.Ql,ye.prototype.resetRenderingHints=ye.prototype.Tx,ye.prototype.setRenderingHint=ye.prototype.Xx,ye.prototype.getRenderingHint=ye.prototype.Gf,ye.prototype.maybeUpdate=ye.prototype.bd,ye.prototype.requestUpdate=ye.prototype.$b,ye.prototype.delayInitialization=ye.prototype.Xy,ye.prototype.isUpdateRequested=ye.prototype.Pz,ye.prototype.invalidateDocumentBounds=ye.prototype.Ya,ye.prototype.findObjectsNear=ye.prototype.og,ye.prototype.findPartsNear=ye.prototype.mz,ye.prototype.findObjectsIn=ye.prototype.Cf,ye.prototype.findPartsIn=ye.prototype.ux,ye.prototype.findObjectsAt=ye.prototype.ji,ye.prototype.findPartsAt=ye.prototype.lz,ye.prototype.findObjectAt=ye.prototype.ic,ye.prototype.findPartAt=ye.prototype.Ol,ye.prototype.focusObject=ye.prototype.zz,ye.prototype.alignDocument=ye.prototype.Jy,ye.prototype.zoomToRect=ye.prototype.BA,ye.prototype.zoomToFit=ye.prototype.zoomToFit,ye.prototype.diagramScroll=ye.prototype.kx,ye.prototype.focus=ye.prototype.focus;var lg=new ri,o0=null,tr=Be.document!==void 0,wd=null,Oh="",fs=new De(ye,"None",0),va=new De(ye,"Uniform",1),jh=new De(ye,"UniformToFill",2),lc=new De(ye,"CycleAll",10),kf=new De(ye,"CycleNotDirected",11),Bf=new De(ye,"CycleNotDirectedFast",12),Nf=new De(ye,"CycleNotUndirected",13),bf=new De(ye,"CycleDestinationTree",14),Df=new De(ye,"CycleSourceTree",15),Qu=new De(ye,"DocumentScroll",1),uc=new De(ye,"InfiniteScroll",2),Xu=new De(ye,"TreeParentCollapsed",21),wr=new De(ye,"AllParentsCollapsed",22),ug=new De(ye,"AnyParentsCollapsed",23),Tf=new $e,Pd="2.3.10",Cd="image",hc=null,r0=!1;function ls(){if(tr){var a=Be.document.createElement("canvas"),y=a.getContext("2d"),x=Qe("7ca11abfd022028846");y[x]=Qe("398c3597c01238");for(var E=["5da73c80a36455d7038e4972187c3cae51fd22",un.Dx+"4ae6247590da4bb21c324ba3a84e385776",Di.xF+"fb236cdfda5de14c134ba1a95a2d4c7cc6f93c1387",se.za],b=1;5>b;b++)y[Qe("7ca11abfd7330390")](Qe(E[b-1]),10,15*b);for(y[x]=Qe("39f046ebb36e4b"),x=1;5>x;x++)y[Qe("7ca11abfd7330390")](Qe(E[x-1]),10,15*x);(E.length!==4||E[0][0]!=="5"||E[3][0]!=="7")&&(Di.prototype.Cd=Di.prototype.Eu),hc=a}}ye.className="Diagram",ye.fromDiv=function(a){var y=a;return typeof a=="string"&&(y=Be.document.getElementById(a)),y instanceof HTMLDivElement&&y.H instanceof ye?y.H:null},ye.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},ye.useDOM=function(a){tr=a?Be.document!==void 0:!1},ye.isUsingDOM=function(){return tr},ye.None=fs,ye.Uniform=va,ye.UniformToFill=jh,ye.CycleAll=lc,ye.CycleNotDirected=kf,ye.CycleNotDirectedFast=Bf,ye.CycleNotUndirected=Nf,ye.CycleDestinationTree=bf,ye.CycleSourceTree=Df,ye.DocumentScroll=Qu,ye.InfiniteScroll=uc,ye.TreeParentCollapsed=Xu,ye.AllParentsCollapsed=wr,ye.AnyParentsCollapsed=ug;function s0(){this.wy=null,this.j="zz@orderNum",this._tk==="63ad05bbe23a1786468a4c741b6d2"?this.Rc=this.j=!0:this.Rc=null}function Ed(a,y){if(y.ib.setTransform(y.Mb,0,0,y.Mb,0,0),y.ib.yc(),a.Rc===null)t:{y="f";var x=Be[Qe("76a715b2f73f148a")][Qe("72ba13b5")]||"";if(a.Rc=!0,tr){var E=ye[Qe("76a115b6ed251eaf4692")];if(E)for(var b=Tf.iterator;b.next()&&(E=b.value,E=Qe(E).split(Qe("39e9")),!(6>E.length));){var z=Qe(E[1]).split(".");if(E[4]!=="7da71ca0")break;var tt=Qe(un[Qe("6cae19")]).split(".");if(z[0]>tt[0]||z[0]===tt[0]&&z[1]>=tt[1]){var ot=Be[Qe("74a900bae4370f8b51")][Qe("6fbb13a1c2311e8a57")].toLowerCase();if(tt=ot[Qe("73a612b6fb191d")](Qe("3aad1ab6e022098b4dc4")),z=Qe(E[2]),-1<tt&&(ot=ot[Qe("73a612b6fb191d")](z.toLowerCase()+"/"),a.Rc=!(-1<ot&&ot<tt),!a.Rc))break;for(tt=x[Qe("76ad18b4f73e")],ot=x[Qe("73a612b6fb191d")](Qe("35e7"))+2;ot<tt;ot++)y+=x[ot];if(tt=y[Qe("73a612b6fb191d")](z),0>tt&&z!==Qe("7da71ca0ad381e90")&&(tt=y[Qe("73a612b6fb191d")](Qe("76a715b2ef3e149757"))),0>tt&&(tt=y[Qe("73a612b6fb191d")](Qe("76a715b2ef3e149757"))),0>tt&&(tt=y[Qe("73a612b6fb191d")](Qe("2bfa41fdb3784bca12"))),0>tt&&(tt=x[Qe("73a612b6fb191d")](Qe("7baa19a6f76c1988428554"))),a.Rc=!(0<=tt&&tt<y[Qe("73a612b6fb191d")](Qe("35"))||y[Qe("73a612b6fb191d")](Qe("35"))===-1),!a.Rc||x[Qe("73a612b6fb191d")](Qe("7fb002b6ed25128b4da25b2e"))&&(a.Rc=!(-1<x[Qe("73a612b6fb191d")](z)),!a.Rc)||(tt=Be[Qe("76a715b2f73f148a")][Qe("69ad17a1e03e")],ot=tt[Qe("73a612b6fb191d")](Qe("7fb002b6ed25128b4da25b2e")),-1<ot&&(a.Rc=!(tt[Qe("73a612b6fb191d")](z)>ot),!a.Rc)))break;if(z[0]==="#"){tt=Be.document.createElement("div");for(var rt=E[0].replace(/[A-Za-z]/g,"");4>rt.length;)rt+="9";if(ot=rt,rt=rt.substr(rt.length-4),E="",E+=["gsh","gsf"][parseInt(rt.substr(0,1),10)%2],E+=["Header","Background","Display","Feedback"][parseInt(rt.substr(0,1),10)%4],tt[Qe("79a417a0f0181a8946")]=E,Be.document[Qe("78a712aa")]){Be.document[Qe("78a712aa")][Qe("7bb806b6ed32388c4a875b")](tt),rt=Be.getComputedStyle(tt).getPropertyValue(Qe("78a704b7e62456904c9b12701b6532a8"));var at=Be.getComputedStyle(tt).getPropertyValue(Qe("75b817b0ea2202"));if(Be.document[Qe("78a712aa")][Qe("68ad1bbcf533388c4a875b")](tt),rt){if(tt=Be[Qe("77a902b0eb1b1e804a8a")],at==="0."+parseInt(ot,10)%100||rt.indexOf(parseInt(z[1]+z[2],16))!==-1&&rt.indexOf(parseInt(z[3]+z[4],16))!==-1){a.Rc=!1;break}else if(tt&&tt(Qe("32ae19a1e0331fc94084537c067a67fa59f1386b89d006")).matches)for(E="."+E,z=0;z<document.styleSheets.length;z++){tt=document.styleSheets[z].rules||document.styleSheets[z].cssRules;for(var ut in tt)if(E===tt[ut].selectorText){a.Rc=!1;break t}}}}else a.Rc=null,a.Rc=!1}}}else{for(ut=x[Qe("76ad18b4f73e")],b=x[Qe("73a612b6fb191d")](Qe("35e7"))+2;b<ut;b++)y+=x[b];x=y[Qe("73a612b6fb191d")](Qe("7da71ca0ad381e90")),a.Rc=!(0<=x&&x<y[Qe("73a612b6fb191d")](Qe("35")))}}}return 0<a.Rc&&a!==a.wy}s0.className="DiagramHelper";function Su(a){this.j=a===void 0?new It:a,this.o=new It}qt.Object.defineProperties(Su.prototype,{point:{get:function(){return this.j},set:function(a){this.j=a}},shifted:{get:function(){return this.o},set:function(a){this.o=a}}});var dc="DraggingInfo";Su.className="DraggingInfo";function it(a,y,x){this.node=a,this.info=y,this.Su=x}it.className="DraggingNodeInfoPair";function st(){this.reset()}st.prototype.reset=function(){this.isGridSnapEnabled=!1,this.isGridSnapRealtime=!0,this.gridSnapCellSize=new Ee(NaN,NaN).freeze(),this.gridSnapCellSpot=ir,this.gridSnapOrigin=new It(NaN,NaN).freeze(),this.groupsSnapMembers=this.dragsTree=this.dragsLink=!1,this.dragsMembers=this.groupsAlwaysMove=!0},st.className="DraggingOptions";function gt(a,y){if(typeof a=="string"||Be.Element&&a instanceof Element)var x=ye.call(this,a)||this;else x=ye.call(this)||this,y=a;return ct(x),y&&x.nm(y),x}re(gt,ye);function ct(a){a.allowDragOut=!0,a.allowMove=!1,a.isReadOnly=!0,a.contentAlignment=Xr,a.layout=new Zr}gt.prototype.reset=function(){ye.prototype.reset.call(this),ct(this)},gt.className="Palette";function mt(a,y){if(typeof a=="string"||Be.Element&&a instanceof Element)var x=ye.call(this,a)||this;else x=ye.call(this)||this,y=a;var E=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 ei;var b=new Fi;return b.stroke="magenta",b.strokeWidth=2,b.fill="transparent",b.name="BOXSHAPE",a.selectable=!0,a.selectionAdorned=!1,a.selectionObjectName="BOXSHAPE",a.locationObjectName="BOXSHAPE",a.resizeObjectName="BOXSHAPE",a.cursor="move",a.add(b),x.j=a,x.allowCopy=!1,x.allowDelete=!1,x.allowSelect=!0,x.autoScrollRegion=new yi(0,0,0,0),x.pa.h(0,0),x.toolManager.gb("Dragging",new Rt,x.toolManager.mouseMoveTools),x.click=function(){var z=E.observed;if(z!==null){var tt=z.viewportBounds,ot=E.lastInput.documentPoint;z.position=new It(ot.x-tt.width/2,ot.y-tt.height/2)}},x.Pf=function(){E.Ya(),bt(E)},x.Xd=function(){E.observed!==null&&(E.Ya(),E.N())},x.Ha=function(){1>E.updateDelay?E.N():E.o||(E.o=!0,setTimeout(function(){return E.redraw()},E.updateDelay))},x.Of=function(){E.observed!==null&&bt(E)},x.autoScale=va,x.vb=!1,y&&Object.assign(x,y),x}re(mt,ye),mt.prototype.computePixelRatio=function(){return 1},mt.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(yd(this),this.ql===null){var x=new Ya(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),Et(this)}finally{this.ta=a,this.ib=y}}}ye.prototype.redraw.call(this)},mt.prototype.gc=function(){if(this.Ka===null&&zt("No div specified"),this.ta===null&&zt("No canvas specified"),!(this.ta instanceof Ol)&&(Iv(this.box),this.Fc)){var a=this.observed;if(a!==null&&!a.animationManager.defaultAnimation.isAnimating&&a.pi){yd(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?Et(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,E=0;E<x;E++)y[E].gc(a,this);this.Fc=this.vd=!1}}};function Et(a){var y=a.observed;if(y!==null){var x=a.drawsTemporaryLayers,E=a.drawsGrid&&x,b=y.grid;E&&b!==null&&b.visible&&!isNaN(b.width)&&!isNaN(b.height)&&(b=be.alloc().assign(a.viewportBounds).ed(y.viewportBounds),Tl(y,b),be.free(b),os(y));var z=a.Ab;z.reset(),a.scale!==1&&z.scale(a.scale),a.position.x===0&&a.position.y===0||z.translate(-a.position.x,-a.position.y),b=a.ib,b.scale(a.Mb,a.Mb),b.transform(z.m11,z.m12,z.m21,z.m22,z.dx,z.dy),b.yc(),y=y.Wa.s,z=y.length;for(var tt=0;tt<z;tt++){var ot=y[tt],rt=a;if(ot.visible&&ot.opacity!==0){var at=ot.diagram.grid.part;if(!x&&ot.isTemporary)E&&at.layer===ot&&(ot=yu(ot,b),at.gc(b,rt),b.globalAlpha=ot);else{for(var ut=yu(ot,b),ft=rt.scale,vt=be.alloc(),xt=ot.Pa.s,Pt=xt.length,Mt=0;Mt<Pt;Mt++){var jt=xt[Mt];(E||jt!==at)&&ot.Oj(b,jt,rt,null,ft,vt,!1)}be.free(vt),b.globalAlpha=ut}}}}}function bt(a){var y=a.box;if(y!==null){var x=a.observed;if(x!==null){a.Fc=!0,x=x.viewportBounds;var E=y.selectionObject,b=Ee.alloc();b.h(x.width,x.height),E.desiredSize=b,Ee.free(b),a=2/a.scale,E instanceof Fi&&(E.strokeWidth=a),y.location=new It(x.x-a/2,x.y-a/2),y.isSelected=!0}}}mt.prototype.computeBounds=function(){var a=this.observed;if(a===null)return ar;var y=a.documentBounds.copy();return y.ed(a.viewportBounds),y},mt.prototype.invalidateViewport=function(){this.Fc!==!0&&(this.Fc=!0,this.$b())},mt.prototype.onViewportBoundsChanged=function(a,y,x,E){this.vb||(this.vd=!0,this.N(),this.Ee=!0,this.Ya(),bt(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=E,this.R("ViewportBoundsChanged",this.fc,a))},qt.Object.defineProperties(mt.prototype,{observed:{get:function(){return this.V},set:function(a){var y=this.V;if(a instanceof mt&&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,E=this.ib;x&&E&&(E.setTransform(1,0,0,1,0,0),E.clearRect(0,0,x.width,x.height))}else this.Ha(null),bt(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),bt(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)}}}),mt.className="Overview";function Rt(){Ko.call(this),this.j=null}re(Rt,Ko),Rt.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 It(x.width/2,x.height/2),a=a.firstInput.documentPoint,y.position=new It(a.x-this.j.x,a.y-this.j.y)),!0)},Rt.prototype.doActivate=function(){this.j=null,Ko.prototype.doActivate.call(this)},Rt.prototype.doUpdateCursor=function(){var a=this.diagram,y=a.box;y!==null&&y.cursor&&(a.currentCursor=y.cursor)},Rt.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 E=a.firstInput.documentPoint;x=x.location,this.j=new It(E.x-x.x,E.y-x.y)}a=a.lastInput.documentPoint,y.position=new It(a.x-this.j.x,a.y-this.j.y)}}},Rt.className="OverviewDraggingTool";function Ot(){xo(this),this.H=Zl,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=ar,this.hb=!0,this.cg=null,this.ob=200}Ot.prototype.toString=function(){return"CommandHandler"},Ot.prototype.Xe=function(a){this.H=a},Ot.prototype.doKeyDown=function(){var a=this.diagram,y=a.lastInput,x=Oi?y.meta:y.control,E=y.shift,b=y.alt,z=y.key;!x||z!=="C"&&z!=="Insert"?x&&z==="X"||E&&z==="Del"?this.canCutSelection()&&this.cutSelection():x&&z==="V"||E&&z==="Insert"?this.canPasteSelection()&&this.pasteSelection():x&&z==="Y"||b&&E&&z==="Backspace"?this.canRedo()&&this.redo():x&&z==="Z"||b&&z==="Backspace"?this.canUndo()&&this.undo():z==="Del"||z==="Backspace"?this.canDeleteSelection()&&this.deleteSelection():x&&z==="A"?this.canSelectAll()&&this.selectAll():z==="Esc"?this.canStopCommand()&&this.stopCommand():z==="Up"?a.allowVerticalScroll&&(x?a.scroll("pixel","up"):a.scroll("line","up")):z==="Down"?a.allowVerticalScroll&&(x?a.scroll("pixel","down"):a.scroll("line","down")):z==="Left"?a.allowHorizontalScroll&&(x?a.scroll("pixel","left"):a.scroll("line","left")):z==="Right"?a.allowHorizontalScroll&&(x?a.scroll("pixel","right"):a.scroll("line","right")):z==="PageUp"?E&&a.allowHorizontalScroll?a.scroll("page","left"):a.allowVerticalScroll&&a.scroll("page","up"):z==="PageDown"?E&&a.allowHorizontalScroll?a.scroll("page","right"):a.allowVerticalScroll&&a.scroll("page","down"):z==="Home"?x&&a.allowVerticalScroll?a.scroll("document","up"):!x&&a.allowHorizontalScroll&&a.scroll("document","left"):z==="End"?x&&a.allowVerticalScroll?a.scroll("document","down"):!x&&a.allowHorizontalScroll&&a.scroll("document","right"):z===" "?this.canScrollToPart()&&this.scrollToPart():z==="Subtract"?this.canDecreaseZoom()&&this.decreaseZoom():z==="Add"?this.canIncreaseZoom()&&this.increaseZoom():x&&z==="0"?this.canResetZoom()&&this.resetZoom():E&&z==="Z"?this.canZoomToFit()&&this.zoomToFit():x&&!E&&z==="G"?this.canGroupSelection()&&this.groupSelection():x&&E&&z==="G"?this.canUngroupSelection()&&this.ungroupSelection():z==="F2"||y.event&&y.event.key==="F2"?this.canEditTextBlock()&&this.editTextBlock():z==="ContextMenu"||y.event&&y.event.key==="ContextMenu"?this.canShowContextMenu()&&this.showContextMenu():y.bubbles=!0:this.canCopySelection()&&this.copySelection()},Ot.prototype.doKeyUp=function(){this.diagram.lastInput.bubbles=!0},Ot.prototype.stopCommand=function(){var a=this.diagram,y=a.currentTool;y instanceof Vo&&a.allowSelect&&a.clearSelection(),y!==null&&y.doCancel()},Ot.prototype.canStopCommand=function(){return!0},Ot.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 E=a.links;E.next();)E.value.isSelected=!0}finally{a.R("ChangedSelection",a.selection),a.currentCursor=""}},Ot.prototype.canSelectAll=function(){return this.diagram.allowSelect},Ot.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 _e,x=a.selection.iterator;x.next();)Hh(y,x.value,!0,this.deletesTree?1/0:0,this.deletesConnectedLinks?null:!1,function(E){return E.canDelete()});a.Is(y,!0),a.R("SelectionDeleted",y)}finally{a.eb("Delete"),a.R("ChangedSelection",a.selection),a.currentCursor=""}},Ot.prototype.canDeleteSelection=function(){var a=this.diagram;return!(a.isReadOnly||a.isModelReadOnly||!a.allowDelete||a.selection.count===0)},Ot.prototype.copySelection=function(){var a=this.diagram,y=new _e;for(a=a.selection.iterator;a.next();)Hh(y,a.value,!0,this.copiesTree?1/0:0,this.copiesConnectedLinks,function(x){return x.canCopy()});this.copyToClipboard(y)},Ot.prototype.canCopySelection=function(){var a=this.diagram;return!!(a.allowCopy&&a.allowClipboard&&a.selection.count!==0)},Ot.prototype.cutSelection=function(){this.copySelection(),this.deleteSelection()},Ot.prototype.canCutSelection=function(){var a=this.diagram;return!!(!a.isReadOnly&&!a.isModelReadOnly&&a.allowCopy&&a.allowDelete&&a.allowClipboard&&a.selection.count!==0)},Ot.prototype.copyToClipboard=function(a){var y=this.diagram,x=null;if(a===null)wd=null,Oh="";else{x=y.model;var E=!1,b=!1,z=null;try{x.Tl()&&(E=x.Jj,x.Jj=this.copiesParentKey),x.Wj()&&(b=x.Ij,x.Ij=this.copiesGroupKey),z=y.Kj(a,null,!0)}finally{x.Tl()&&(x.Jj=E),x.Wj()&&(x.Ij=b),x=new $e,x.addAll(z),wd=x,Oh=y.model.dataFormat}}y.R("ClipboardChanged",x)},Ot.prototype.pasteFromClipboard=function(){var a=new _e,y=wd;if(y===null)return a;var x=this.diagram;if(Oh!==x.model.dataFormat)return a;var E=x.model,b=!1,z=!1,tt=null;try{E.Tl()&&(b=E.Jj,E.Jj=this.copiesParentKey),E.Wj()&&(z=E.Ij,E.Ij=this.copiesGroupKey),tt=x.Kj(y,x,!1)}finally{for(E.Tl()&&(E.Jj=b),E.Wj()&&(E.Ij=z),y=tt.iterator;y.next();)x=y.value,E=y.key,x.location.w()||(E.location.w()?x.location=E.location:!x.position.w()&&E.position.w()&&(x.position=E.position)),a.add(x)}return a},Ot.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 E=x.iterator;E.next();)E.value.isSelected=!0;if(a!==null){var b=y.computePartsBounds(y.selection);if(b.w()){var z=this.computeEffectiveCollection(y.selection,y.Wm);Dh(y,z,new It(a.x-b.centerX,a.y-b.centerY),y.Wm,!1)}}y.R("ClipboardPasted",x)}finally{y.eb("Paste"),y.R("ChangedSelection",y.selection),y.currentCursor=""}},Ot.prototype.canPasteSelection=function(){var a=this.diagram;return!(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowClipboard||wd===null||wd.count===0||Oh!==a.model.dataFormat)},Ot.prototype.undo=function(){this.diagram.undoManager.undo()},Ot.prototype.canUndo=function(){var a=this.diagram;return a.isReadOnly||a.isModelReadOnly?!1:a.allowUndo&&a.undoManager.canUndo()},Ot.prototype.redo=function(){this.diagram.undoManager.redo()},Ot.prototype.canRedo=function(){var a=this.diagram;return a.isReadOnly||a.isModelReadOnly?!1:a.allowUndo&&a.undoManager.canRedo()},Ot.prototype.decreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;y.autoScale===fs&&(a=y.scale*a,a<y.minScale||a>y.maxScale||(y.scale=a))},Ot.prototype.canDecreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;return y.autoScale!==fs?!1:(a=y.scale*a,a<y.minScale||a>y.maxScale?!1:y.allowZoom)},Ot.prototype.increaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;y.autoScale===fs&&(a=y.scale*a,a<y.minScale||a>y.maxScale||(y.scale=a))},Ot.prototype.canIncreaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;return y.autoScale!==fs?!1:(a=y.scale*a,a<y.minScale||a>y.maxScale?!1:y.allowZoom)},Ot.prototype.resetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;a<y.minScale||a>y.maxScale||(y.scale=a)},Ot.prototype.canResetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;return a<y.minScale||a>y.maxScale?!1:y.allowZoom},Ot.prototype.zoomToFit=function(){var a=this.diagram,y=a.animationManager;y.Cc(),a.redraw();var x=a.position,E=a.scale;Yl(y,"Zoom To Fit"),this.isZoomToFitRestoreEnabled&&E===this.Au&&!isNaN(this.Jt)&&a.documentBounds.D(this.yu)?(a.scale=this.Jt,a.position=this.sw,this.Au=NaN,this.yu=ar):(this.Jt=E,this.sw=x.copy(),a.zoomToFit(),this.Au=a.scale,this.yu=a.documentBounds.copy()),Kc(y)},Ot.prototype.canZoomToFit=function(){return this.diagram.allowZoom},Ot.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(rt){this.cg=null}a===null&&(0<y.highlighteds.count?this.cg=y.highlighteds.iterator:0<y.selection.count&&(this.cg=y.selection.iterator),this.cg!==null&&this.cg.next()&&(a=this.cg.value))}if(a!==null){var x=y.animationManager;Yl(x,"Scroll To Part");var E=this.scrollToPartPause;if(0<E){var b=Xt(this,a,[a]);if(b.length===1)y.Ea(),y.es(a.actualBounds),y.eb("Scroll To Part");else{var z=function(){y.Ea();for(var rt=b.pop();0<b.length&&rt instanceof Fn&&rt.isTreeExpanded&&(!(rt instanceof Ai)||rt.isSubGraphExpanded);)rt=b.pop();0<b.length?(rt instanceof ei&&y.tv(rt.actualBounds),rt instanceof Fn&&!rt.isTreeExpanded&&(rt.isTreeExpanded=!0),rt instanceof Ai&&!rt.isSubGraphExpanded&&(rt.isSubGraphExpanded=!0)):(rt instanceof ei&&y.es(rt.actualBounds),y.am("LayoutCompleted",tt)),y.eb("Scroll To Part")},tt=function(){Nn(z,(x.isEnabled?x.duration:0)+E)};y.Bj("LayoutCompleted",tt),z()}}else{var ot=y.position.copy();y.es(a.actualBounds),ot.Xa(y.position)&&x.Cc()}}};function Xt(a,y,x){if(y.isVisible())return x;if(y instanceof io)Xt(a,y.adornedPart,x);else if(y instanceof rn){var E=y.fromNode;E!==null&&Xt(a,E,x),y=y.toNode,y!==null&&Xt(a,y,x)}else y instanceof Fn&&(E=y.labeledLink,E!==null&&Xt(a,E,x),E=y.pg(),E!==null&&(E.isTreeExpanded||E.wasTreeExpanded||x.push(E),Xt(a,E,x))),y=y.containingGroup,y!==null&&(y.isSubGraphExpanded||y.wasSubGraphExpanded||x.push(y),Xt(a,y,x));return x}Ot.prototype.canScrollToPart=function(a){return a===void 0&&(a=null),a!==null&&!(a instanceof ei)?!1:(a=this.diagram,a.selection.count===0&&a.highlighteds.count===0?!1:a.allowHorizontalScroll&&a.allowVerticalScroll)},Ot.prototype.collapseTree=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Collapse Tree"),Yl(y.animationManager,"Collapse Tree");var x=new $e;if(a!==null&&a.isTreeExpanded)a.collapseTree(),x.add(a);else if(a===null)for(var E=y.selection.iterator;E.next();){var b=E.value;b instanceof Fn&&b.isTreeExpanded&&(b.collapseTree(),x.add(b))}y.R("TreeCollapsed",x)}finally{y.eb("Collapse Tree")}},Ot.prototype.canCollapseTree=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null){if(!(a instanceof Fn&&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 Fn&&y.isTreeExpanded&&0<y.Qo().count)return!0;return!1},Ot.prototype.expandTree=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Expand Tree"),Yl(y.animationManager,"Expand Tree");var x=new $e;if(a!==null&&!a.isTreeExpanded)a.expandTree(),x.add(a);else if(a===null)for(var E=y.selection.iterator;E.next();){var b=E.value;b instanceof Fn&&!b.isTreeExpanded&&(b.expandTree(),x.add(b))}y.R("TreeExpanded",x)}finally{y.eb("Expand Tree")}},Ot.prototype.canExpandTree=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null){if(!(a instanceof Fn)||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 Fn&&!y.isTreeExpanded&&0<y.Qo().count)return!0;return!1},Ot.prototype.groupSelection=function(){var a=this.diagram,y=a.model;if(y.Xj()){var x=this.archetypeGroupData;if(x!==null){var E=null;try{a.currentCursor="wait",a.R("ChangingSelection",a.selection),a.Ea("Group");for(var b=new $e,z=a.selection.iterator;z.next();){var tt=z.value;tt.Zc()&&tt.canGroup()&&b.add(tt)}for(var ot=new $e,rt=b.iterator;rt.next();){var at=rt.value;z=!1;for(var ut=b.iterator;ut.next();)if(at.Td(ut.value)){z=!0;break}z||ot.add(at)}if(0<ot.count){var ft=ot.first().containingGroup;if(ft!==null)for(;ft!==null;){b=!1;for(var vt=ot.iterator;vt.next();)if(!vt.value.Td(ft)){b=!0;break}if(b)ft=ft.containingGroup;else break}if(x instanceof Ai)Za(x),E=x.copy(),E!==null&&a.add(E);else if(y.Yu(x)){var xt=y.copyNodeData(x);Te(xt)&&(y.xf(xt),E=a.ii(xt))}if(E!==null){ft!==null&&this.isValidMember(ft,E)&&(E.containingGroup=ft);for(var Pt=ot.iterator;Pt.next();){var Mt=Pt.value;this.isValidMember(E,Mt)&&(Mt.containingGroup=E)}a.clearSelection(!0),E.isSelected=!0}}a.R("SelectionGrouped",E)}finally{a.eb("Group"),a.R("ChangedSelection",a.selection),a.currentCursor=""}}}},Ot.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 ke(a){var y=Rn();for(a=a.iterator;a.next();){var x=a.value;x instanceof rn||y.push(x)}a=new _e,x=y.length;for(var E=0;E<x;E++){for(var b=y[E],z=!0,tt=0;tt<x;tt++)if(b.Td(y[tt])){z=!1;break}z&&a.add(b)}return qn(y),a}Ot.prototype.isValidMember=function(a,y){if(y===null||a===y||y instanceof rn)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},Ot.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 E=new $e;if(a!==null)E.add(a);else for(var b=y.selection.iterator;b.next();){var z=b.value;z instanceof Ai&&z.canUngroup()&&E.add(z)}var tt=new $e;if(0<E.count){y.clearSelection(!0);for(var ot=E.iterator;ot.next();){var rt=ot.value;rt.expandSubGraph();var at=rt.containingGroup,ut=at!==null&&at.data!==null?x.wa(at.data):void 0;tt.addAll(rt.memberParts);for(var ft=tt.iterator;ft.next();){var vt=ft.value;if(vt.isSelected=!0,!(vt instanceof rn)){var xt=vt.data;xt!==null?x.mp(xt,ut):vt.containingGroup=at}}y.remove(rt)}}y.R("SelectionUngrouped",E,tt)}finally{y.eb("Ungroup"),y.R("ChangedSelection",y.selection),y.currentCursor=""}},Ot.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 Ai))return!1;if(a.canUngroup())return!0}else for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof Ai&&y.canUngroup())return!0;return!1},Ot.prototype.addTopLevelParts=function(a,y){var x=!0;for(a=ke(a).iterator;a.next();){var E=a.value;E.containingGroup!==null&&(!y||this.isValidMember(null,E)?E.containingGroup=null:x=!1)}return x},Ot.prototype.collapseSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Collapse SubGraph"),Yl(y.animationManager,"Collapse SubGraph");var x=new $e;if(a!==null&&a.isSubGraphExpanded)a.collapseSubGraph(),x.add(a);else if(a===null)for(var E=y.selection.iterator;E.next();){var b=E.value;b instanceof Ai&&b.isSubGraphExpanded&&(b.collapseSubGraph(),x.add(b))}y.R("SubGraphCollapsed",x)}finally{y.eb("Collapse SubGraph")}},Ot.prototype.canCollapseSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null)return!!(a instanceof Ai&&a.isSubGraphExpanded);for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof Ai&&y.isSubGraphExpanded)return!0;return!1},Ot.prototype.expandSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Expand SubGraph"),Yl(y.animationManager,"Expand SubGraph");var x=new $e;if(a!==null&&!a.isSubGraphExpanded)a.expandSubGraph(),x.add(a);else if(a===null)for(var E=y.selection.iterator;E.next();){var b=E.value;b instanceof Ai&&!b.isSubGraphExpanded&&(b.expandSubGraph(),x.add(b))}y.R("SubGraphExpanded",x)}finally{y.eb("Expand SubGraph")}},Ot.prototype.canExpandSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null)return a instanceof Ai&&!a.isSubGraphExpanded;for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof Ai&&!y.isSubGraphExpanded)return!0;return!1},Ot.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 E=y.selection.iterator;E.next();){var b=E.value;if(b.canEdit()){a=b;break}}if(a===null)return;a=a.Nl(function(z){return z instanceof bo&&z.editable})}a!==null&&(y.currentTool=null,x.textBlock=a,y.currentTool=x)}},Ot.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 bo))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 bo&&x.editable}),a!==null))return!0;return!1},Ot.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 E=y.lastInput,b=null;a instanceof ee?b=a.ga(po):y.viewportBounds.ca(E.documentPoint)||(b=y.viewportBounds,b=new It(b.x+b.width/2,b.y+b.height/2)),b!==null&&(E.viewPoint=y.op(b),E.documentPoint=b,E.left=!1,E.right=!0,E.up=!0),y.currentTool=x,pu(x,!1,a)}},Ot.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)},Ot.prototype.computeEffectiveCollection=function(a,y){var x=this.diagram,E=x.toolManager.findTool("Dragging"),b=x.currentTool===E;if(y===void 0&&(y=b?E.dragOptions:x.Wm),E=new ri,a===null)return E;for(var z=a.iterator;z.next();)Ql(x,E,z.value,b,y);if(x.draggedLink!==null&&y.dragsLink)return E;for(z=a.iterator;z.next();)a=z.value,a instanceof rn&&(y=a.fromNode,y===null||E.contains(y)?(y=a.toNode,y===null||E.contains(y)||E.remove(a)):E.remove(a));return E},qt.Object.defineProperties(Ot.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}}}),Ot.className="CommandHandler",Kp=function(){return new Ot};function ee(){xo(this),this.l=30723,this.pb=1,this.bn="",this.Ma=this.Me=null,this.pa=new It(NaN,NaN).freeze(),this.jd=Ki,this.Ab=new Di,this.wh=new Di,this.Lb=null,this.Ca=this.Kk=1,this.Kb=0,this.Kg=Rs,this.uc=new be(NaN,NaN,NaN,NaN).freeze(),this.Ib=new be(NaN,NaN,NaN,NaN).freeze(),this.dc=new be(0,0,NaN,NaN).freeze(),this.ba=this.Yn=this.Zn=null,this.sk=this.Jb=Or,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 Xe,He,Yn,$n,hi,Mi,zi,bi,Yi,Eo;ee.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=Vn(this.Dh)),this.tb!==null&&(a.tb=this.tb.copy())},ee.prototype.Vw=function(a){var y=this.Dh;if(Ve(y)){for(var x=0;x<y.length;x++)if(y[x]===a)return}else this.Dh=y=[];y.push(a)},ee.prototype.Af=function(a){a.Zn=null,a.Ng=null,a.v()},ee.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},ee.prototype.copy=function(){return this.clone()},wt=ee.prototype,wt.qb=function(a){a.classType===rn?a.name.indexOf("Orient")===0?this.segmentOrientation=a:zt("Unknown Link enum value for GraphObject.segmentOrientation property: "+a):a.classType===ee&&(this.stretch=a)},wt.toString=function(){return si(this.constructor)+"#"+to(this)},wt.th=function(){this.A!==null&&(this.A.nc=!0)};function Ni(a){a.A===null?a.A=new gc:a.A.nc&&(a.A=a.A.copy())}wt.Xc=function(){if(this.ba===null){var a=new If;a.Xi=lr,a.yj=lr,a.Vi=10,a.wj=10,a.Wi=0,a.xj=0,this.ba=a}},wt.cb=function(a,y,x,E,b,z,tt){var ot=this.part;if(ot!==null&&(ot.gk(a,y,x,E,b,z,tt),x===this&&a===Uo&&_r(this)&&zo(this,ot,y),z=this.diagram,this.animationTriggers===null||z===null||!z.pi||z.undoManager.isUndoingRedoing||z.animationManager.Dm||(a=this.animationTriggers.get(y),a!==null&&z.animationManager.isEnabled&&!z.animationManager.isTicking&&(this.jo===null&&(this.jo=new ri),tt=z.undoManager.transactionLevel===0,a.startCondition===Bh?tt=!0:a.startCondition===fd&&(tt=!1),tt?(z=new is,Up(a,z),tt=this.jo.get(a),tt!==null&&tt.stop(),this.jo.add(a,z),z.vu=this,z.Nw=a,z.add(this,y,E,b),z.start()):(Yl(z.animationManager,"Trigger"),z.animationManager.defaultAnimation.add(this,y,E,b)))),this instanceof tn&&x===ot&&(ot.l&16777216)!==0&&ot.data!==null))for(x=this.O.s,E=x.length,b=0;b<E;b++)ot=x[b],ot instanceof tn&&Fd(ot,function(rt){rt.data!==null&&rt.l&16777216&&rt.La(y)})};function zo(a,y,x){var E=a.ih();if(E!==null)for(var b=a.localBindings.iterator;b.next();){var z=b.value,tt=null;if(z.sourceName!==null){if(tt=MS(z,E,a),tt===null)continue;z.sp(a,tt,x,null)}else if(z.isToModel){var ot=y.diagram;ot===null||ot.skipsModelSourceBindings||z.sp(a,ot.model.modelData,x,E)}else{if(ot=E.data,ot===null)continue;var rt=y.diagram;rt===null||rt.skipsModelSourceBindings||z.sp(a,ot,x,E)}tt===a&&(ot=E.ks(z.Ai),ot!==null&&z.Mv(ot,tt,x))}}wt.ks=function(a){return this.bindingId===a?this:null},wt.g=function(a,y,x){this.cb(Uo,a,this,y,x)},wt.Ge=function(a,y,x,E){var b=this.uc;if(b.h(a,y,x,E),this.Ca!==1||this.Kb!==0){this.Lb===null&&(this.Lb=new Di);var z=this.Lb;z.reset(),this.no(z,a,y,x,E),z.pp(b)}};function br(a,y,x,E){return a.pickable===!1?!1:(E.multiply(a.transform),x?a.Yc(y,E):a.fh(y,E))}wt.tx=function(a,y,x){if(this.pickable===!1)return!1;var E=this.naturalBounds;return y=a.Bf(y),x?Un(a.x,a.y,0,0,0,E.height)<=y||Un(a.x,a.y,0,E.height,E.width,E.height)<=y||Un(a.x,a.y,E.width,E.height,E.width,0)<=y||Un(a.x,a.y,E.width,0,0,0)<=y:a.zd(0,0)<=y&&a.zd(0,E.height)<=y&&a.zd(E.width,0)<=y&&a.zd(E.width,E.height)<=y},wt.se=function(){return!0},wt.ca=function(a){var y=It.alloc();y.assign(a),this.transform.Ga(y);var x=this.actualBounds;if(!x.w())return It.free(y),!1;var E=this.diagram;if(E!==null&&E.wq){var b=E.Ql("extraTouchThreshold"),z=E.Ql("extraTouchArea"),tt=z/2,ot=this.naturalBounds;E=this.Df()*E.scale;var rt=1/E;if(ot.width*E<b&&ot.height*E<b)return a=Fo(x.x-tt*rt,x.y-tt*rt,x.width+z*rt,x.height+z*rt,y.x,y.y),It.free(y),a}return b=!1,(this instanceof io||this instanceof Fi?Fo(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)?b=!1:this.areaBackground!==null&&x.ca(y)||this.Ma!==null&&this.dc.ca(a)?b=!0:b=this.gh(a)),It.free(y),b},wt.gh=function(a){var y=this.naturalBounds;return Fo(0,0,y.width,y.height,a.x,a.y)},wt.Re=function(a){if(this.angle===0)return this.actualBounds.Re(a);var y=this.naturalBounds;y=be.allocAt(0,0,y.width,y.height);var x=this.transform,E=!1,b=It.allocAt(a.x,a.y);return y.ca(x.Cd(b))&&(b.h(a.x,a.bottom),y.ca(x.Cd(b))&&(b.h(a.right,a.bottom),y.ca(x.Cd(b))&&(b.h(a.right,a.y),y.ca(x.Cd(b))&&(E=!0)))),It.free(b),be.free(y),E},wt.fh=function(a,y){if(y===void 0)return a.Re(this.actualBounds);var x=this.naturalBounds,E=!1,b=It.allocAt(0,0);return a.ca(y.Ga(b))&&(b.h(0,x.height),a.ca(y.Ga(b))&&(b.h(x.width,x.height),a.ca(y.Ga(b))&&(b.h(x.width,0),a.ca(y.Ga(b))&&(E=!0)))),It.free(b),E},wt.Yc=function(a,y){if(y===void 0&&(y=this.transform,this.angle===0))return a.Yc(this.actualBounds);var x=this.naturalBounds,E=It.allocAt(0,0),b=It.allocAt(0,x.height),z=It.allocAt(x.width,x.height),tt=It.allocAt(x.width,0),ot=!1;if(a.ca(y.Ga(E))||a.ca(y.Ga(b))||a.ca(y.Ga(z))||a.ca(y.Ga(tt)))ot=!0;else{x=be.allocAt(0,0,x.width,x.height);var rt=It.allocAt(a.x,a.y);x.ca(y.Cd(rt))?ot=!0:(rt.h(a.x,a.bottom),x.ca(y.Cd(rt))?ot=!0:(rt.h(a.right,a.bottom),x.ca(y.Cd(rt))?ot=!0:(rt.h(a.right,a.y),x.ca(y.Cd(rt))&&(ot=!0)))),It.free(rt),be.free(x),!ot&&(se.us(a,E,b)||se.us(a,b,z)||se.us(a,z,tt)||se.us(a,tt,E))&&(ot=!0)}return It.free(E),It.free(b),It.free(z),It.free(tt),ot},wt.ga=function(a,y){if(y===void 0&&(y=new It),a instanceof ni){var x=this.naturalBounds;y.h(a.x*x.width+a.offsetX,a.y*x.height+a.offsetY)}else y.set(a);return this.oe.Ga(y),y},wt.mi=function(a){a===void 0&&(a=new be);var y=this.naturalBounds,x=this.oe,E=It.allocAt(0,0).transform(x);return a.h(E.x,E.y,0,0),E.h(y.width,0).transform(x),uo(a,E.x,E.y,0,0),E.h(y.width,y.height).transform(x),uo(a,E.x,E.y,0,0),E.h(0,y.height).transform(x),uo(a,E.x,E.y,0,0),It.free(E),a},wt.li=function(){var a=this.oe;return a.m11===1&&a.m12===0?a=0:(a=180*Math.atan2(a.m12,a.m11)/Math.PI,0>a&&(a+=360)),a},wt.Df=function(){if(!(this.l&4096))return this.Kk;var a=this.Ca;return this.panel!==null?a*this.panel.Df():a},wt.qs=function(a,y){return y===void 0&&(y=new It),y.assign(a),this.oe.Cd(y),y},wt.rs=function(a,y,x){return this.Sj(a.x,a.y,y.x,y.y,x)},wt.Sj=function(a,y,x,E,b){var z=this.transform,tt=1/(z.m11*z.m22-z.m12*z.m21),ot=z.m22*tt,rt=-z.m12*tt,at=-z.m21*tt,ut=z.m11*tt,ft=tt*(z.m21*z.dy-z.m22*z.dx),vt=tt*(z.m12*z.dx-z.m11*z.dy);return this.areaBackground!==null?(z=this.actualBounds,se.Ff(z.left,z.top,z.right,z.bottom,a,y,x,E,b)):(tt=a*ot+y*at+ft,a=a*rt+y*ut+vt,y=x*ot+E*at+ft,x=x*rt+E*ut+vt,b.h(0,0),E=this.naturalBounds,x=se.Ff(0,0,E.width,E.height,tt,a,y,x,b),b.transform(z),x)},ee.prototype.measure=function(a,y,x,E){if(Sa(this)!==!1){var b=this.Kg,z=b.right+b.left;b=b.top+b.bottom,a=Math.max(a-z,0),y=Math.max(y-b,0),x=Math.max((x||0)-z,0),E=Math.max((E||0)-b,0),z=this.angle,b=this.desiredSize;var tt=this.kq();z===90||z===270?(a=isFinite(b.height)?b.height+tt:a,y=isFinite(b.width)?b.width+tt:y):(a=isFinite(b.width)?b.width+tt:a,y=isFinite(b.height)?b.height+tt:y),b=x||0,tt=E||0;var ot=this instanceof tn;switch(Us(this,!0)){case He:tt=b=0,ot&&(y=a=1/0);break;case Xe:isFinite(a)&&a>x&&(b=a),isFinite(y)&&y>E&&(tt=y);break;case $n:isFinite(a)&&a>x&&(b=a),tt=0,ot&&(y=1/0);break;case hi:isFinite(y)&&y>E&&(tt=y),b=0,ot&&(a=1/0)}ot=this.maxSize;var rt=this.minSize;b>ot.width&&rt.width<ot.width&&(b=ot.width),tt>ot.height&&rt.height<ot.height&&(tt=ot.height),x=Math.max(b,rt.width),E=Math.max(tt,rt.height),ot.width<x&&(x=Math.min(rt.width,x)),ot.height<E&&(E=Math.min(rt.height,E)),a=Math.min(ot.width,a),y=Math.min(ot.height,y),a=Math.max(x,a),y=Math.max(E,y),(z===90||z===270)&&(z=a,a=y,y=z,z=x,x=E,E=z),this.uc.ka(),this.Wl(a,y,x,E),this.uc.freeze(),this.uc.w()||zt("Non-real measuredBounds has been set. Object "+this+", measuredBounds: "+this.uc.toString()),Pr(this,!1)}},ee.prototype.Wl=function(){},ee.prototype.Dd=function(){return!1},ee.prototype.arrange=function(a,y,x,E,b){this.Uk();var z=be.alloc();z.assign(this.Ib),this.Ib.ka(),Ls(this)===!1?this.Ib.h(a,y,x,E):this.eh(a,y,x,E),this.Ib.freeze(),b===void 0?this.tb=null:this.tb=b,x=!1,b!==void 0?x=!0:(b=this.panel,b!==null&&_u(b)&&(b=b.panel),b!==null&&(b=b.dc,E=this.measuredBounds,this.areaBackground!==null&&(E=this.Ib),x=y+E.height,E=a+E.width,x=!(0<=a+.05&&E<=b.width+.05&&0<=y+.05&&x<=b.height+.05),this instanceof bo&&(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(z,this.Ib),Xl(this,!1),be.free(z)},wt=ee.prototype,wt.eh=function(){};function ps(a,y,x,E,b){if(a.Ib.h(y,x,E,b),!a.desiredSize.w()){var z=a.uc;x=a.Kg,y=x.right+x.left;var tt=x.top+x.bottom;switch(x=z.width+y,z=z.height+tt,E+=y,b+=tt,y=Us(a,!0),x===E&&z===b&&(y=He),y){case He:(x>E||z>b)&&(Pr(a,!0),a.measure(x>E?E:x,z>b?b:z,0,0));break;case Xe:Pr(a,!0),a.measure(E,b,0,0);break;case $n:Pr(a,!0),a.measure(E,z,0,0);break;case hi:Pr(a,!0),a.measure(x,b,0,0)}}}wt.Xl=function(a,y){var x=this.part;x!==null&&x.diagram!==null&&(x.selectionObject!==this&&x.resizeObject!==this&&x.rotateObject!==this||Rv(x,!0),this.N(),cl(a,y)||(x.oh(),this.Pn(x)))},wt.Pn=function(a){this.portId!==null&&(Rv(a,!0),a instanceof Fn&&U1(a,this))},wt.gc=function(a,y){if(!Ba(this,a,y)&&this.visible){var x=this.opacity;if(x!==0){var E=1;x!==1&&(E=a.globalAlpha,a.globalAlpha=E*x);var b="";this.filter!==""&&(b=a.filter,a.filter=this.filter);var z=this instanceof tn&&_u(this),tt=this.Ib;if(z){var ot=this.Ib,rt=this.dc,at=this.areaBackground,ut=this.Ma;at===null&&ut===null||a.yc(),at!==null&&(er(this,a,at,!0,!0,rt,ot),at instanceof vo&&at.type===Da?(a.beginPath(),a.rect(ot.x,ot.y,ot.width,ot.height),a.ng(at)):a.fillRect(ot.x,ot.y,ot.width,ot.height)),ut!==null&&(er(this,a,ut,!0,!1,rt,ot),ut instanceof vo&&ut.type===Da?(a.beginPath(),a.rect(ot.x,ot.y,ot.width,ot.height),a.ng(ut)):a.fillRect(ot.x,ot.y,ot.width,ot.height)),this.hh(a,y)}if(!z&&(z||tt.width!==0&&tt.height!==0&&!isNaN(tt.x)&&!isNaN(tt.y))){z=this.transform,ot=this.panel,this.l&4096&&Yr(this),at=this.part,rt=!1;var ft=0;at&&y.Gf("drawShadows")&&(rt=at.isShadowed)&&(ut=at.shadowOffset,ft=Math.max(ut.y,ut.x)*y.scale*y.Mb),ut=this.Dd();var vt;if(!(vt=y.$i||!ut)){var xt=this.naturalBounds;vt=this.wh;var Pt=vt.m11,Mt=vt.m21,jt=vt.dx,Tt=vt.m12,Vt=vt.m22,Yt=vt.dy,Kt,te=Kt=0;vt=Kt*Pt+te*Mt+jt;var me=Kt*Tt+te*Vt+Yt;Kt=xt.width+ft,te=0;var Cn=Kt*Pt+te*Mt+jt;Kt=Kt*Tt+te*Vt+Yt,te=Math.min(vt,Cn);var Hn=Math.min(me,Kt),In=Math.max(vt+0,Cn)-te,on=Math.max(me+0,Kt)-Hn;vt=te,me=Hn,Kt=xt.width+ft,te=xt.height+ft,Cn=Kt*Pt+te*Mt+jt,Kt=Kt*Tt+te*Vt+Yt,te=Math.min(vt,Cn),Hn=Math.min(me,Kt),In=Math.max(vt+In,Cn)-te,on=Math.max(me+on,Kt)-Hn,vt=te,me=Hn,Kt=0,te=xt.height+ft,Cn=Kt*Pt+te*Mt+jt,Kt=Kt*Tt+te*Vt+Yt,te=Math.min(vt,Cn),Hn=Math.min(me,Kt),In=Math.max(vt+In,Cn)-te,on=Math.max(me+on,Kt)-Hn,vt=te,me=Hn,ft=y.viewportBounds,xt=ft.x,Pt=ft.y,vt=!(vt>ft.width+xt||xt>In+vt||me>ft.height+Pt||Pt>on+me)}if(vt){if(vt=(this.l&256)!==0,a.clipInsteadOfFill&&(vt=!1),this instanceof bo&&(a.font=this.font),vt){if(me=ot.se()?ot.naturalBounds:ot.actualBounds,In=Math.max(tt.x,me.x),on=Math.max(tt.y,me.y),ft=Math.min(tt.right,me.right)-In,xt=Math.min(tt.bottom,me.bottom)-on,Pt=this.tb,Pt!==null&&(In=Pt.x,on=Pt.y,ft=Pt.width,xt=Pt.height),In>tt.width+tt.x||tt.x>me.width+me.x){x!==1&&(a.globalAlpha=E),this.filter!==""&&(a.filter=b);return}a.save(),a.beginPath(),a.rect(In,on,ft,xt),a.clip()}if(ut){if(!at.isVisible()){x!==1&&(a.globalAlpha=E),this.filter!==""&&(a.filter=b);return}rt&&(me=at.shadowOffset,a.Ev(me.x*y.scale*this.scale*y.Mb,me.y*y.scale*this.scale*y.Mb,at.shadowBlur),xu(a),a.shadowColor=at.shadowColor)}rt&&this.shadowVisible===!0?xu(a):rt&&this.shadowVisible===!1&&Jl(a),at=this.naturalBounds,this.areaBackground!==null&&(a.yc(),ya(this,a,at,tt)),a.transform(z.m11,z.m12,z.m21,z.m22,z.dx,z.dy),rt&&Vr(this,ot)&&this.shadowVisible===null&&Jl(a),this.Ma!==null&&(a.yc(),qs(this,a,at,tt)),rt&&(this.Ma!==null||this.areaBackground!==null||Vr(this,ot))?(il(this,!0),this.shadowVisible===null&&Jl(a)):il(this,!1),this.hh(a,y),rt&&this.l&512&&xu(a),ut&&rt&&Jl(a),vt&&(a.restore(),a.Vc(this instanceof tn)),z.ws()||(y=1/(z.m11*z.m22-z.m12*z.m21),a.transform(z.m22*y,-z.m12*y,-z.m21*y,z.m11*y,y*(z.m21*z.dy-z.m22*z.dx),y*(z.m12*z.dx-z.m11*z.dy)))}}x!==1&&(a.globalAlpha=E),this.filter!==""&&(a.filter=b)}}};function Vr(a,y){return y===null?!1:(_u(y)&&(y=y.panel),(y.l&512)!==0||(y.type===tn.Auto||y.type===tn.Spot)&&y.Pb()!==a)}wt.Dv=function(){};function ya(a,y,x,E){er(a,y,a.areaBackground,!0,!0,x,E),a.areaBackground instanceof vo&&a.areaBackground.type===Da?(y.beginPath(),y.rect(E.x,E.y,E.width,E.height),y.ng(a.areaBackground)):y.fillRect(E.x,E.y,E.width,E.height)}function qs(a,y,x,E){var b=a.kq(),z=x.x,tt=x.y,ot=x.width+b,rt=x.height+b;er(a,y,a.Ma,!0,!1,x,E),a.Ma instanceof vo&&a.Ma.type===Da?(y.beginPath(),y.rect(z-b/2,tt-b/2,ot,rt),y.ng(a.Ma)):y.fillRect(z-b/2,tt-b/2,ot,rt)}function us(a,y,x){for(var E=y.O.s,b=E.length,z=-1,tt=0;tt<b;tt++)if(E[tt]===a){z=tt;break}if(a=z,a!==-1)if(a===0)y.svg.gd?y.svg.gd.after(x):y.svg.Ma?y.svg.Ma.after(x):y.type===tn.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 Ba(a,y,x){if(!(y instanceof aa))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 E=a.panel,b=a.nk(y);if(a.kk(y,x,b))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):E&&us(a,E,a.svg),!0);if(a.Dd()&&a.isShadowed){var z=a.shadowOffset;y.Ev(z.x*x.scale*a.scale*x.Mb,z.y*x.scale*a.scale*x.Mb,a.shadowBlur),xu(y),y.shadowColor=a.shadowColor}a instanceof bo&&(y.font=a.font),y.yd=null;var tt=a.transform;z=a instanceof tn;var ot=a instanceof tn?_u(a):!1;a.l&4096&&Yr(a);var rt=a.Ib;if(y.rb.ha=[1,0,0,1,0,0],y.o=!1,b&&(y.o=!0,z&&ot?(Of(y,1,0,0,1,0,0),a.svg=y.ad):z?(Of(y,tt.m11,tt.m12,tt.m21,tt.m22,tt.dx,tt.dy),a.svg=y.ad):Of(y,1,0,0,1,0,0)),b=a.naturalBounds,a.areaBackground!==null){var at=tt.copy().Vj();y.rb.ha=[at.m11,at.m12,at.m21,at.m22,at.dx,at.dy],ya(a,y,b,rt),y.rb.ha=[1,0,0,1,0,0],y.yd.gd=y.ad,y.yd.prepend(y.ad)}return z||(y.rb.ha=[tt.m11,tt.m12,tt.m21,tt.m22,tt.dx,tt.dy]),a.background!==null&&(z?(ot&&(y.rb.ha=[tt.m11,tt.m12,tt.m21,tt.m22,tt.dx,tt.dy]),qs(a,y,b,rt),ot&&(y.rb.ha=[1,0,0,1,0,0])):(y.rb.ha=[tt.m11,tt.m12,tt.m21,tt.m22,tt.dx,tt.dy],qs(a,y,b,rt)),y.yd.Ma=y.ad,y.yd.prepend(y.ad)),tt=y.yd,b=a.part,ot=!1,b&&x.Gf("drawShadows")&&(ot=b.isShadowed),y.clipInsteadOfFill&&(ot=!1),a.Dd()&&ot&&xu(y),ot&&a.shadowVisible===!0?xu(y):ot&&a.shadowVisible===!1&&Jl(y),b=a.panel,ot&&Vr(a,b)&&a.shadowVisible===null&&Jl(y),y.Il&&(at=x.computePixelRatio(),at="drop-shadow("+y.shadowOffsetX/at+"px "+y.shadowOffsetY/at+"px "+y.shadowBlur/at/2+"px "+y.shadowColor+")",a.background!==null&&tt.Ma.setAttributeNS(null,"filter",at),a.areaBackground!==null&&tt.gd.setAttributeNS(null,"filter",at)),ot&&(a.Ma!==null||a.areaBackground!==null||Vr(a,b))?(il(a,!0),a.shadowVisible===null&&Jl(y)):il(a,!1),b=ot,a.hh(y,x),z&&y.nh.pop(),y.o&&y.nh.pop(),tt=y.Gv.hs,ot=z?a.svg:y.yd,at=a.svg,!z&&at!==null&&ot!==at&&at.parentNode===a.panel.svg?(a.svg.replaceWith(ot),a.svg=ot,ot!==null&&a.$o(y,E,rt,ot),Vs(y,at),!0):(a.svg=ot,tt!==null&&ot===null&&(l0(y),y.nh.pop()),ot===null||(a.$o(y,E,rt,ot),y.Il&&(x=x.computePixelRatio(),a.Dv(ot,"drop-shadow("+y.shadowOffsetX/x+"px "+y.shadowOffsetY/x+"px "+y.shadowBlur/x/2+"px "+y.shadowColor+")")),b&&a.l&512&&xu(y),a.Dd()&&Jl(y),x=a.Dd()?a.opacity*y.globalAlpha:a.opacity,x!==1&&ot.setAttributeNS(null,"opacity",x.toString()),a.filter!==""&&ot.setAttributeNS(null,"filter",a.filter),a.Dd()?(y.ti?y.ti.after(ot):y.Nj.prepend(ot),y.ti=ot):E!==null&&us(a,E,ot),tt!==null&&tt(a,ot)),!0)}wt.$o=function(a,y,x,E){var b=(this.l&256)!==0;if(a.clipInsteadOfFill&&(b=!1),b){var z=y.se()?y.naturalBounds:y.actualBounds;y=Math.max(x.x,z.x),b=Math.max(x.y,z.y);var tt=Math.min(x.right,z.right)-y;x=Math.min(x.bottom,z.bottom)-b,z=this.tb,z!==null&&(y=z.x,b=z.y,tt=z.width,x=z.height),z=E.getAttribute("clip-path");var ot=null;z!==null&&(ot=a.svg.getElementById(z.split("#")[1].slice(0,-1))),ot===null?(z="CLIP"+Bo++,ot=a.Ud("clipPath",{id:z}),y=a.Ud("rect",{x:y,y:b,width:tt,height:x}),this instanceof tn&&(b=this.transform.copy().Vj(),y.setAttribute("transform","matrix("+b.m11+", "+b.m12+", "+b.m21+", "+b.m22+", "+b.dx+", "+b.dy+")")),ot.appendChild(y),a.svg.appendChild(ot),E.setAttributeNS(null,"clip-path","url(#"+z+")")):(a=ot.firstElementChild,a.setAttribute("x",y.toString()),a.setAttribute("y",b.toString()),a.setAttribute("width",tt.toString()),a.setAttribute("height",x.toString()))}else E.removeAttributeNS(null,"clip-path"),Vs(a,E)};function Vs(a,y){y=y.getAttribute("clip-path"),y!==null&&(a=a.svg.getElementById(y.split("#")[1].slice(0,-1)),a!==null&&a.remove())}function hs(a){if(a.svg!==null){var y=a.svg.innerHTML.match(/url\(#((CLIP|GRAD).+?)\)/g),x=a.svg.ownerDocument;if(y!==null){y=ui(y);for(var E=y.next();!E.done;E=y.next())E=x.getElementById(E.value.split("#")[1].slice(0,-1)),E!==null&&E.remove()}a.svg.remove()}}wt.hh=function(){},wt.lv=function(){this.Uc=!0},wt.kk=function(a,y,x){if(this.Uc)return this.lv(),this.Uc=!1;if(y=this.svg,y===null)return!1;if(!this.visible)return y.remove(),!1;if(y.nodeName!=="g"&&x||y.nodeName==="g"&&!x)return!1;var E=this.transform,b=this instanceof tn?_u(this):!1;if(!(this instanceof tn&&b))if(this instanceof Ys){var z=this.bt;a.rb.ha=[E.m11,E.m12,E.m21,E.m22,E.dx,E.dy],z!==null&&Xy(a,z[0],z[1],z[2],z[3],z[4],z[5],z[6],z[7]),x?y.lastElementChild.setAttributeNS(null,"transform",Jy(a)):y.setAttributeNS(null,"transform",Jy(a))}else if(!x||this instanceof tn)y.setAttributeNS(null,"transform","matrix("+E.m11+", "+E.m12+", "+E.m21+", "+E.m22+", "+E.dx+", "+E.dy+")");else if(this instanceof Fi){z=y.getElementsByTagName("path");for(var tt=0;tt<z.length;tt++)z[tt].setAttributeNS(null,"transform","matrix("+E.m11+", "+E.m12+", "+E.m21+", "+E.m22+", "+E.dx+", "+E.dy+")")}else y.lastElementChild.setAttributeNS(null,"transform","matrix("+E.m11+", "+E.m12+", "+E.m21+", "+E.m22+", "+E.dx+", "+E.dy+")");return z=this.Dd()?this.opacity*a.globalAlpha:this.opacity,z===1?y.removeAttribute("opacity"):y.setAttributeNS(null,"opacity",z.toString()),a.rb.ha=[1,0,0,1,0,0],(this.areaBackground!==null||y.gd!==void 0)&&(z=y.gd,this.areaBackground===null?(y.gd.remove(),y.gd=void 0):(tt=E.copy().Vj(),a.rb.ha=[tt.m11,tt.m12,tt.m21,tt.m22,tt.dx,tt.dy],ya(this,a,this.naturalBounds,this.actualBounds),a.rb.ha=[1,0,0,1,0,0],y.gd?(tt=y.gd.getAttribute("filter"),tt!==null&&a.ad.setAttribute("filter",tt),y.gd.replaceWith(a.ad)):y.prepend(a.ad),y.gd=a.ad),z&&u0(a,z)),(this.background!==null||y.Ma!==void 0)&&(z=y.Ma,this.background===null?(u0(a,y.Ma),y.Ma.remove(),y.Ma=void 0):((b||x&&!(this instanceof tn))&&(a.rb.ha=[E.m11,E.m12,E.m21,E.m22,E.dx,E.dy]),qs(this,a,this.naturalBounds,this.actualBounds),y.Ma?(u0(a,y.Ma),x=y.Ma.getAttribute("filter"),x!==null&&a.ad.setAttribute("filter",x),y.Ma.replaceWith(a.ad)):y.prepend(a.ad),y.Ma=a.ad),z&&u0(a,z)),this.$o(a,this.panel,this.actualBounds,y),!0},wt.nk=function(a){if(this.background!==null||this.areaBackground!==null)return!0;var y=(this.l&256)!==0;return a.clipInsteadOfFill&&(y=!1),!!y};function er(a,y,x,E,b,z,tt){if(x!==null){var ot=1,rt=1;if(typeof x=="string")E?y.fillStyle=x:y.strokeStyle=x;else if(x.type===qu)E?y.fillStyle=x.color:y.strokeStyle=x.color;else{var at=a.kq();if(ot=z.width,rt=z.height,b?(ot=tt.width,rt=tt.height):E||(ot+=at,rt+=at),(z=y instanceof Ld)&&x.xe&&(x.type===mg||x.yk===ot&&x.ft===rt))var ut=x.xe;else{var ft=0,vt=0,xt=0,Pt=0,Mt=0,jt=0;if(jt=Mt=0,b?(Mt=tt.x,jt=tt.y):E||(Mt-=at/2,jt-=at/2),ft=x.start.x*ot+x.start.offsetX,vt=x.start.y*rt+x.start.offsetY,xt=x.end.x*ot+x.end.offsetX,Pt=x.end.y*rt+x.end.offsetY,ft+=Mt,xt+=Mt,vt+=jt,Pt+=jt,x.type===Pu)ut=y.createLinearGradient(ft,vt,xt,Pt);else if(x.type===Da)jt=isNaN(x.endRadius)?Math.max(ot,rt)/2:x.endRadius,isNaN(x.startRadius)?(Mt=0,jt=Math.max(ot,rt)/2):Mt=x.startRadius,ut=y.createRadialGradient(ft,vt,Mt,xt,Pt,jt);else if(x.type===mg)try{ut=y.createPattern(x.pattern,"repeat")}catch(Vt){ut=null}if(x.type!==mg&&(b=x.colorStops,b!==null))for(b=b.iterator;b.next();)ut.addColorStop(b.key,b.value);if(z&&(x.xe=ut,ut!==null&&(x.yk=ot,x.ft=rt),ut===null&&x.type===mg&&x.yk!==-1)){x.yk=-1;var Tt=a.diagram;Tt!==null&&x.yk===-1&&Nn(function(){Tt.redraw()},600)}}E?y.fillStyle=ut:y.strokeStyle=ut}}}wt.rg=function(a){if(a instanceof tn)t:{if(this!==a&&a!==null)for(var y=this.panel;y!==null;){if(y===a){a=!0;break t}y=y.panel}a=!1}else a=!1;return a},wt.Ed=function(){if(!this.visible)return!1;var a=this.panel;return a!==null?a.Ed():!0},wt.If=function(){for(var a=this instanceof tn?this:this.panel;a!==null&&a.isEnabled;)a=a.panel;return a===null};function Yr(a){if(a.l&2048){var y=a.Ab;if(y.reset(),!a.Ib.w()||!a.uc.w()){Wa(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)}Wa(a,!1),Na(a,!0)}a.l&4096&&(y=a.panel,y===null?(a.wh.set(a.Ab),a.Kk=a.scale,Na(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,Na(a,!1)))}wt.no=function(a,y,x,E,b){if(this.Ca!==1&&a.scale(this.Ca),this.Kb!==0){var z=It.alloc();z.yi(y,x,E,b,po),a.rotate(this.Kb,z.x,z.y),It.free(z)}},wt.v=function(a){if(!Sa(this)){a===void 0&&(a=!1),Pr(this,!0),Xl(this,!0);var y=this.panel;y===null||a||y.v()}},wt.Uj=function(){Sa(this)||(Pr(this,!0),Xl(this,!0))};function Ms(a){if(!Ls(a)){var y=a.panel;y!==null?y.v():a.Dd()&&(y=a.diagram,y!==null&&(y.De.add(a),a instanceof Fn&&a.Bd(),y.$b())),Xl(a,!0)}}wt.Uk=function(){!(this.l&2048)&&(Wa(this,!0),Na(this,!0))},wt.Wu=function(){Na(this,!0)},wt.N=function(){var a=this.part;a!==null&&a.N()};function Us(a,y){var x=a.stretch,E=a.panel;return E!==null&&E.type===tn.Table?vl(a,E.Fb(a.row),E.Eb(a.column),y):E!==null&&E.type===tn.Auto&&E.Pb()===a?Ur(a,Xe,y):x===Mi?E!==null?E.type===tn.Spot&&E.Pb()===a?Ur(a,Xe,y):(x=E.defaultStretch,x===Mi?Ur(a,He,y):Ur(a,x,y)):Ur(a,He,y):Ur(a,x,y)}function vl(a,y,x,E){var b=a.stretch;if(b!==Mi)return Ur(a,b,E);var z=b=null;switch(y.stretch){case hi:z=!0;break;case Xe:z=!0}switch(x.stretch){case $n:b=!0;break;case Xe:b=!0}return y=a.panel.defaultStretch,b===null&&(b=y===$n||y===Xe),z===null&&(z=y===hi||y===Xe),b===!0&&z===!0?Ur(a,Xe,E):b===!0?Ur(a,$n,E):z===!0?Ur(a,hi,E):Ur(a,He,E)}function Ur(a,y,x){if(x)return y;if(y===He||(x=a.desiredSize,x.w()))return He;if(a=a.angle,!isNaN(x.width))if(a!==90&&a!==270){if(y===$n)return He;if(y===Xe)return hi}else{if(y===hi)return He;if(y===Xe)return $n}if(!isNaN(x.height))if(a!==90&&a!==270){if(y===hi)return He;if(y===Xe)return $n}else{if(y===$n)return He;if(y===Xe)return hi}return y}function il(a,y){a.l=y?a.l|512:a.l&-513}function _r(a){return(a.l&1024)!==0}function cc(a,y){a.l=y?a.l|1024:a.l&-1025}function Wa(a,y){a.l=y?a.l|2048:a.l&-2049}function Na(a,y){a.l=y?a.l|4096:a.l&-4097}function Sa(a){return(a.l&8192)!==0}function Pr(a,y){a.l=y?a.l|8192:a.l&-8193}function Ls(a){return(a.l&16384)!==0}function Xl(a,y){a.l=y?a.l|16384:a.l&-16385}wt.Gj=function(){this.svg=null},wt.wi=function(a){this.Me=a,this.svg!==null&&this.svg.remove()},wt.Av=function(){},wt.zv=function(a){return this.pa=a,Ms(this),!0},wt.mm=function(a,y){(this.pa.x!==a||this.pa.y!==y)&&(this.pa.h(a,y),this.Uk())},wt.kq=function(){return 0};function Ad(a){var y=a.part;if(y instanceof Fn&&(a.portId!==null||a===y.port)){var x=y.diagram;x===null||x.undoManager.isUndoingRedoing||U1(y,a)}}function Ky(a){var y=a.diagram;y===null||y.undoManager.isUndoingRedoing||(a instanceof tn?a instanceof Fn?a.Bd():a.qm(a,function(x){Ad(x)}):Ad(a))}wt.bind=function(a,y,x,E){var b=null;return typeof a=="string"?b=new cr(a,y,x,E):b=a,b.xd=this,a=this.ih(),a!==null&&c1(a)&&zt("Cannot add a Binding to a template that has already been copied: "+b),this.localBindings===null&&(this.localBindings=new $e),this.localBindings.add(b),this},wt.set=function(a){return Object.assign(this,a),this},wt.Du=function(a){return nv(this,a),this},wt.apply=function(a){return a(this),this},wt.nm=function(a){return vd(this,a),this},wt.pz=function(){return this.ih()},wt.ih=function(){for(var a=this instanceof tn?this:this.panel;a!==null;){if(a.allBindings!==null)return a;a=a.panel}return null},wt.Jv=function(a){return a.xd=this,this.animationTriggers===null&&(this.animationTriggers=new ri),this.animationTriggers.add(a.propertyName,a),this};function ba(a,y){for(var x=1;x<arguments.length;++x);x=arguments;var E=null,b=null;if(typeof a=="function")b=a;else if(typeof a=="string"){var z=hg.I(a);typeof z=="function"?(x=Vn(arguments),E=z(x),Te(E)||zt('GraphObject.make invoked object builder "'+a+'", but it did not return an Object')):b=Be.go[a]}if(E===null&&(b!=null&&b.constructor||zt("GraphObject.make requires a class function or GoJS class name or name of an object builder, not: "+a),E=new b),b=1,E instanceof ye&&1<x.length){z=E;var tt=x[1];(typeof tt=="string"||tt instanceof HTMLDivElement)&&(hf(z,tt),b++)}for(;b<x.length;b++)z=x[b],z===void 0?zt("Undefined value at argument "+b+" for object being constructed by GraphObject.make: "+E):nv(E,z);return E}function nv(a,y){if(typeof y=="string")if(a instanceof bo)a.text=y;else if(a instanceof Fi)a.figure=y;else if(a instanceof Ys)a.source=y;else if(a instanceof tn)y=ol.I(y),y!==null&&(a.type=y);else if(a instanceof vo){var x=En(vo,y);x!==null?a.type=x:zt("Unknown Brush type as an argument to GraphObject.make: "+y)}else a instanceof cn?(y=En(cn,y),y!==null&&(a.type=y)):a instanceof ro&&(y=En(ro,y),y!==null&&(a.type=y));else if(y instanceof ee)a instanceof tn||zt("A GraphObject can only be added to a Panel, not to: "+a),a.add(y);else if(y instanceof Cr){var E;y.isRow&&typeof a.getRowDefinition=="function"?E=a.getRowDefinition(y.index):y.isRow||typeof a.getColumnDefinition!="function"||(E=a.getColumnDefinition(y.index)),E instanceof Cr?A0(E,y):zt("A RowColumnDefinition can only be added to an object that implements getRowDefinition/getColumnDefinition, not to: "+a)}else if(y instanceof De)typeof a.qb=="function"&&a.qb(y);else if(y instanceof Mr)a.type=y;else if(y instanceof cr)a instanceof ee||a instanceof Cr?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 ee?a.Jv(y):zt("An AnimationTrigger can only be applied to a GraphObject, not to: "+a);else if(y instanceof Br)a instanceof cn&&a.type===cn.o?a.figures.add(y):zt("A PathFigure can only be added to a Path Geometry, not to: "+a);else if(y instanceof ro)a instanceof Br?a.segments.add(y):zt("A PathSegment can only be added to a PathFigure, not to: "+a);else if(y instanceof Ho)a instanceof ye||a instanceof Ai?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++)nv(a,y[x]);else if(typeof y=="object"&&y!==null)if(a instanceof vo){x=new Pi;for(var b in y)E=parseFloat(b),isNaN(E)?x[b]=y[b]:a.addColorStop(E,y[b]);vd(a,x)}else if(a instanceof Cr){y.row!==void 0?(b=y.row,(b==null||b===1/0||isNaN(b)||0>b)&&zt("Must specify non-negative integer row for RowColumnDefinition "+y+", not: "+b),a.isRow=!0,a.index=b):y.column!==void 0&&(b=y.column,(b==null||b===1/0||isNaN(b)||0>b)&&zt("Must specify non-negative integer column for RowColumnDefinition "+y+", not: "+b),a.isRow=!1,a.index=b),b=new Pi;for(x in y)x!=="row"&&x!=="column"&&(b[x]=y[x]);vd(a,b)}else vd(a,y);else zt('Unknown initializer "'+y+'" for object being constructed by GraphObject.make: '+a)}function Ju(a,y){hg.add(a,y)}function a0(a,y,x){x===void 0&&(x=null);var E=a[1];if(typeof x=="function"?x(E):typeof E=="string")return a.splice(1,1),E;if(y===void 0)throw Error("no "+(typeof x=="function"?"satisfactory":"string")+" argument for GraphObject builder "+a[0]);return y}qt.Object.defineProperties(ee.prototype,{bindingId:{get:function(){return this.A!==null?this.A.zp:-1},set:function(a){this.bindingId!==a&&(this.A===null&&(this.A=new gc),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 gc),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 gc),this.A.wm=a)}},shadowVisible:{get:function(){return this.A!==null?this.A.Ci:null},set:function(a){var y=this.shadowVisible;y!==a&&(Ni(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&&(Ni(this),this.A.Hb=a,this.g("enabledChanged",y,a))}},segmentOrientation:{get:function(){return this.Ua!==null?this.Ua.rr:Bs},set:function(a){var y=this.segmentOrientation;y!==a&&(this.Ua===null&&(this.Ua=new Rh),this.Ua.rr=a,this.v(),this.g("segmentOrientation",y,a),a===Bs&&(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 Rh),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 Rh),this.Ua.o=a,this.v(),this.g("segmentFraction",y,a))}},segmentOffset:{get:function(){return this.Ua!==null?this.Ua.F:qo},set:function(a){var y=this.segmentOffset;y.D(a)||(a=a.J(),this.Ua===null&&(this.Ua=new Rh),this.Ua.F=a,this.v(),this.g("segmentOffset",y,a))}},stretch:{get:function(){return this.A!==null?this.A.hg:Mi},set:function(a){var y=this.stretch;y!==a&&(Ni(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&&(Ni(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)&&Dn(a,"0 <= value <= 1",ee,"opacity"),this.pb=a,this.g("opacity",y,a),a=this.diagram,y=this.part,a!==null&&y!==null&&a.N(Nd(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(Nd(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(),Ky(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&&pc(a,"GraphObject.areaBackground"),a instanceof vo&&a.freeze(),Ni(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&&pc(a,"GraphObject.background"),a instanceof vo&&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 ei)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,E=this.pa,b=E.x;E=E.y,(b===y||isNaN(b)&&isNaN(y))&&(E===x||isNaN(E)&&isNaN(x))?this.Av():(a=a.copy(),this.zv(a,b,E)&&this.g("position",new It(b,E),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,Ky(this),this.v(),this.g("angle",y,a)))}},desiredSize:{get:function(){return this.jd},set:function(a){var y=a.width,x=a.height,E=this.jd,b=E.width,z=E.height;(b===y||isNaN(b)&&isNaN(y))&&(z===x||isNaN(z)&&isNaN(x))||(this.jd=a=a.J(),this.v(),this instanceof Fi&&this.qc(),this.g("desiredSize",E,a),_r(this)&&(a=this.part,a!==null&&(zo(this,a,"width"),zo(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 Ee(a,this.jd.height).freeze(),this.v(),this instanceof Fi&&this.qc(),this.g("desiredSize",y,a),_r(this)&&(a=this.part,a!==null&&zo(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 Ee(this.jd.width,a).freeze(),this.v(),this instanceof Fi&&this.qc(),this.g("desiredSize",y,a),_r(this)&&(a=this.part,a!==null&&zo(this,a,"height")))}},minSize:{get:function(){return this.A!==null?this.A.u:fn},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(),Ni(this),this.A.u=a,this.v(),this.g("minSize",y,a))}},maxSize:{get:function(){return this.A!==null?this.A.o:Ji},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(),Ni(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 yi(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&&Yr(this),this.Ab}},oe:{get:function(){return this.l&4096&&Yr(this),this.wh}},animationTriggers:{get:function(){return this.A!==null?this.A.hb:null},set:function(a){this.animationTriggers!==a&&(Ni(this),this.A.hb=a)}},reshapingBehavior:{get:function(){return this.A!==null?this.A.Pf:He},set:function(a){this.reshapingBehavior!==a&&(Ni(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(),Ms(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&&Dn(a,">= 0",ee,"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&&Dn(a,">= 1",ee,"columnSpan"),Ni(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&&Dn(a,">= 0",ee,"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&&Dn(a,">= 1",ee,"rowSpan"),Ni(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&&(Ni(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 Fn||zt("Cannot set portID on a Link: "+a),y!==null&&x!==null&&Vv(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:lr},set:function(a){var y=this.toSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.yj=a,this.g("toSpot",y,a),Ad(this))}},toEndSegmentLength:{get:function(){return this.ba!==null?this.ba.wj:10},set:function(a){var y=this.toEndSegmentLength;y!==a&&(0>a&&Dn(a,">= 0",ee,"toEndSegmentLength"),this.Xc(),this.ba.wj=a,this.g("toEndSegmentLength",y,a),Ad(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),Ad(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&&Dn(a,">= 0",ee,"toMaxLinks"),this.Xc(),this.ba.Ur=a,this.g("toMaxLinks",y,a))}},fromSpot:{get:function(){return this.ba!==null?this.ba.Xi:lr},set:function(a){var y=this.fromSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.Xi=a,this.g("fromSpot",y,a),Ad(this))}},fromEndSegmentLength:{get:function(){return this.ba!==null?this.ba.Vi:10},set:function(a){var y=this.fromEndSegmentLength;y!==a&&(0>a&&Dn(a,">= 0",ee,"fromEndSegmentLength"),this.Xc(),this.ba.Vi=a,this.g("fromEndSegmentLength",y,a),Ad(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),Ad(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&&Dn(a,">= 0",ee,"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&&(Ni(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&&(Ni(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&&(Ni(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&&(Ni(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&&(Ni(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&&(Ni(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&&(Ni(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&&(Ni(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&&(Ni(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&&(Ni(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&&(Ni(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&&(Ni(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&&(Ni(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&&(Ni(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&&(Ni(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&&(Ni(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&&(Ni(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&&(Ni(this),this.A.Ch=a,this.g("contextMenu",y,a))}}}),ee.prototype.trigger=ee.prototype.Jv,ee.prototype.findBindingPanel=ee.prototype.ih,ee.prototype.findTemplateBinder=ee.prototype.pz,ee.prototype.setProperties=ee.prototype.nm,ee.prototype.apply=ee.prototype.apply,ee.prototype.attach=ee.prototype.Du,ee.prototype.set=ee.prototype.set,ee.prototype.isEnabledObject=ee.prototype.If,ee.prototype.isVisibleObject=ee.prototype.Ed,ee.prototype.isContainedBy=ee.prototype.rg,ee.prototype.getNearestIntersectionPoint=ee.prototype.rs,ee.prototype.getLocalPoint=ee.prototype.qs,ee.prototype.getDocumentScale=ee.prototype.Df,ee.prototype.getDocumentAngle=ee.prototype.li,ee.prototype.getDocumentBounds=ee.prototype.mi,ee.prototype.getDocumentPoint=ee.prototype.ga,ee.prototype.intersectsRect=ee.prototype.Yc,ee.prototype.containedInRect=ee.prototype.fh,ee.prototype.containsRect=ee.prototype.Re,ee.prototype.containsPoint=ee.prototype.ca,ee.prototype.raiseChanged=ee.prototype.g,ee.prototype.raiseChangedEvent=ee.prototype.cb,ee.prototype.addCopyProperty=ee.prototype.Vw;var hg=null;ee.className="GraphObject",hg=new ri,Ju("Button",function(){function a(x,E){return x.diagram.ic(x.documentPoint,function(b){for(;b.panel!==null&&!b.isActionable;)b=b.panel;return b},function(b){return b===E})!==null}var y=ba(tn,tn.Auto,{isActionable:!0,enabledChanged:function(x,E){if(x instanceof tn){var b=x.fb("ButtonBorder");b!==null&&(b.fill=E?x._buttonFillNormal:x._buttonFillDisabled)}},cursor:"pointer",_buttonFillNormal:"#F5F5F5",_buttonStrokeNormal:"#BDBDBD",_buttonFillOver:"#E0E0E0",_buttonStrokeOver:"#9E9E9E",_buttonFillPressed:"#BDBDBD",_buttonStrokePressed:"#9E9E9E",_buttonFillDisabled:"#E5E5E5"},ba(Fi,{name:"ButtonBorder",figure:"RoundedRectangle",spot1:new ni(0,0,2.76142374915397,2.761423749153969),spot2:new ni(1,1,-2.76142374915397,-2.761423749153969),parameter1:2,parameter2:2,fill:"#F5F5F5",stroke:"#BDBDBD"}));return y.mouseEnter=function(x,E){if(E.If()&&E instanceof tn&&(x=E.fb("ButtonBorder"),x instanceof Fi)){var b=E._buttonFillOver;E._buttonFillNormal=x.fill,x.fill=b,b=E._buttonStrokeOver,E._buttonStrokeNormal=x.stroke,x.stroke=b}},y.mouseLeave=function(x,E){E.If()&&E instanceof tn&&(x=E.fb("ButtonBorder"),x instanceof Fi&&(x.fill=E._buttonFillNormal,x.stroke=E._buttonStrokeNormal))},y.actionDown=function(x,E){if(E.If()&&E instanceof tn&&E._buttonFillPressed!==null&&x.button===0){var b=E.fb("ButtonBorder");if(b instanceof Fi){x=x.diagram;var z=x.skipsUndoManager;x.skipsUndoManager=!0;var tt=E._buttonFillPressed;E._buttonFillOver=b.fill,b.fill=tt,tt=E._buttonStrokePressed,E._buttonStrokeOver=b.stroke,b.stroke=tt,x.skipsUndoManager=z}}},y.actionUp=function(x,E){if(E.If()&&E instanceof tn&&E._buttonFillPressed!==null&&x.button===0){var b=E.fb("ButtonBorder");if(b instanceof Fi){var z=x.diagram,tt=z.skipsUndoManager;z.skipsUndoManager=!0,a(x,E)?(b.fill=E._buttonFillOver,b.stroke=E._buttonStrokeOver):(b.fill=E._buttonFillNormal,b.stroke=E._buttonStrokeNormal),z.skipsUndoManager=tt}}},y.actionCancel=function(x,E){if(E.If()&&E instanceof tn&&E._buttonFillPressed!==null){var b=E.fb("ButtonBorder");if(b instanceof Fi){var z=x.diagram,tt=z.skipsUndoManager;z.skipsUndoManager=!0,a(x,E)?(b.fill=E._buttonFillOver,b.stroke=E._buttonStrokeOver):(b.fill=E._buttonFillNormal,b.stroke=E._buttonStrokeNormal),z.skipsUndoManager=tt}}},y.actionMove=function(x,E){if(E.If()&&E instanceof tn&&E._buttonFillPressed!==null){var b=x.diagram;if(b.firstInput.button===0&&(b.currentTool.standardMouseOver(),a(x,E)&&(x=E.fb("ButtonBorder"),x instanceof Fi))){var z=b.skipsUndoManager;b.skipsUndoManager=!0;var tt=E._buttonFillPressed;x.fill!==tt&&(x.fill=tt),tt=E._buttonStrokePressed,x.stroke!==tt&&(x.stroke=tt),b.skipsUndoManager=z}}},y}),Ju("TreeExpanderButton",function(){var a=ba("Button",{_treeExpandedFigure:"MinusLine",_treeCollapsedFigure:"PlusLine"},ba(Fi,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:ki},new cr("figure","isTreeExpanded",function(y,x){return x=x.panel,y?x._treeExpandedFigure:x._treeCollapsedFigure}).cp()),{visible:!1},new cr("visible","isTreeLeaf",function(y){return!y}).cp());return a.click=function(y,x){if(x=x.part,x instanceof io&&(x=x.adornedPart),x instanceof Fn){var E=x.diagram;if(E!==null){if(E=E.commandHandler,x.isTreeExpanded){if(!E.canCollapseTree(x))return}else if(!E.canExpandTree(x))return;y.handled=!0,x.isTreeExpanded?E.collapseTree(x):E.expandTree(x)}}},a}),Ju("SubGraphExpanderButton",function(){var a=ba("Button",{_subGraphExpandedFigure:"MinusLine",_subGraphCollapsedFigure:"PlusLine"},ba(Fi,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:ki},new cr("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 io&&(x=x.adornedPart),x instanceof Ai){var E=x.diagram;if(E!==null){if(E=E.commandHandler,x.isSubGraphExpanded){if(!E.canCollapseSubGraph(x))return}else if(!E.canExpandSubGraph(x))return;y.handled=!0,x.isSubGraphExpanded?E.collapseSubGraph(x):E.expandSubGraph(x)}}},a}),Ju("ToolTip",function(){return ba(io,tn.Auto,{isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new It(0,3),shadowBlur:5},ba(Fi,{name:"Border",figure:"RoundedRectangle",parameter1:1,parameter2:1,fill:"#F5F5F5",stroke:"#F0F0F0",spot1:new ni(0,0,4,6),spot2:new ni(1,1,-4,-4)}))}),Ju("ContextMenu",function(){return ba(io,tn.Vertical,{background:"#F5F5F5",isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new It(0,3),shadowBlur:5},new cr("background","",function(a){return a.adornedPart!==null&&a.placeholder!==null?null:"#F5F5F5"}))}),Ju("ContextMenuButton",function(){var a=ba("Button");a.stretch=$n;var y=a.fb("ButtonBorder");return y instanceof Fi&&(y.figure="Rectangle",y.strokeWidth=0,y.spot1=new ni(0,0,2,3),y.spot2=new ni(1,1,-2,-2)),a}),Ju("PanelExpanderButton",function(a){var y=a0(a,"COLLAPSIBLE"),x=ba("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},ba(Fi,{name:"ButtonIcon",strokeWidth:2},new cr("geometryString","visible",function(E){return E?x._buttonExpandedFigure:x._buttonCollapsedFigure}).cp(y)));return a=x.fb("ButtonBorder"),a instanceof Fi&&(a.stroke=null,a.fill="rgba(0, 0, 0, 0)"),x.click=function(E,b){var z=b.diagram;if(z!==null&&!z.isReadOnly){var tt=b.ih();tt===null&&(tt=b.part),tt!==null&&(b=tt.fb(y),b!==null&&(E.handled=!0,z.Ea("Collapse/Expand Panel"),b.visible=!b.visible,z.eb("Collapse/Expand Panel")))}},x}),Ju("CheckBoxButton",function(a){var y=a0(a);return a=ba("Button",{desiredSize:new Ee(14,14)},ba(Fi,{name:"ButtonIcon",geometryString:"M0 0 M0 8.85 L4.9 13.75 16.2 2.45 M16.2 16.2",strokeWidth:2,stretch:Xe,geometryStretch:Yn,visible:!1},y!==""?new cr("visible",y).Kx():[])),a.click=function(x,E){if(E instanceof tn){var b=x.diagram;if(!(b===null||b.isReadOnly||y!==""&&b.model.isReadOnly)){x.handled=!0;var z=E.fb("ButtonIcon");b.Ea("checkbox"),z.visible=!z.visible,typeof E._doClick=="function"&&E._doClick(x,E),b.eb("checkbox")}}},a}),Ju("CheckBox",function(a){a=a0(a),a=ba("CheckBoxButton",a,{name:"Button",isActionable:!1,margin:new yi(0,1,0,0)});var y=ba(tn,"Horizontal",a,{isActionable:!0,cursor:a.cursor,margin:new yi(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}),ee.None=He=new De(ee,"None",0),ee.Default=Mi=new De(ee,"Default",0),ee.Vertical=hi=new De(ee,"Vertical",4),ee.Horizontal=$n=new De(ee,"Horizontal",5),ee.Fill=Xe=new De(ee,"Fill",3),ee.Uniform=Yn=new De(ee,"Uniform",1),ee.UniformToFill=zi=new De(ee,"UniformToFill",2),ee.FlipVertical=bi=new De(ee,"FlipVertical",1),ee.FlipHorizontal=Yi=new De(ee,"FlipHorizontal",2),ee.FlipBoth=Eo=new De(ee,"FlipBoth",3),ee.make=ba,ee.getBuilders=function(){var a=new ri,y;for(y in hg)if(y!==y.toLowerCase()){var x=hg.I(y);typeof x=="function"&&a.add(y,x)}return a.freeze(),a},ee.defineBuilder=Ju,ee.build=function(a,y,x){for(var E=[],b=2;b<arguments.length;++b)E[b-2]=arguments[b];if(b=hg.I(a),typeof b=="function"&&(E=b([a].concat(E)),E instanceof ee))return y&&E.set(y),E;zt('GraphObject.build invoked object builder "'+a+'", but it did not return an Object')},ee.takeBuilderArgument=a0;function gc(){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=fn,this.o=Ji,this.hg=Mi,this.ob=this.Bi=1,this.Pf=He,this.Pc=this.Ci=this.gd=null,this.Oc="category"}gc.prototype.copy=function(){var a=new gc;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 Rh(){this.u=-1/0,this.o=0,this.F=qo,this.rr=Bs,this.j=this.V="None"}Rh.prototype.copy=function(){var a=new Rh;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},Rh.className="LinkElementSettings";function If(){this.yj=this.Xi=Or,this.xj=this.Wi=this.wj=this.Vi=NaN,this.Tr=this.hq=null,this.Ur=this.iq=1/0}If.prototype.copy=function(){var a=new If;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},If.className="LinkSettings";function Md(){this.ha=[1,0,0,1,0,0]}Md.prototype.copy=function(){var a=new Md;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},Md.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},Md.prototype.scale=function(a,y){this.ha[0]*=a,this.ha[1]*=a,this.ha[2]*=y,this.ha[3]*=y},Md.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 E=1}else a===180?(a=-1,E=0):a===270?(a=0,E=-1):(E=a*Math.PI/180,a=Math.cos(E),E=Math.sin(E));var b=this.ha[1]*a+this.ha[3]*E,z=this.ha[0]*-E+this.ha[2]*a,tt=this.ha[1]*-E+this.ha[3]*a;this.ha[0]=this.ha[0]*a+this.ha[2]*E,this.ha[1]=b,this.ha[2]=z,this.ha[3]=tt,this.translate(-y,-x)}},Md.className="STransform";function fc(a){this.type=a,this.r2=this.y2=this.x2=this.r1=this.y1=this.x1=0,this.gx=[],this.pattern=null}fc.prototype.addColorStop=function(a,y){this.gx.push({offset:a,color:y})},fc.className="SGradient";function Ol(a,y,x){this.ownerDocument=a=y===void 0?Be.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 aa(this,x)}Ol.prototype.resize=function(a,y,x,E){return this.width!==a||this.height!==y?(this.width=a,this.height=y,this.style.width=x+"px",this.style.height=E+"px",this.Oa.setAttributeNS(null,"width",x+"px"),this.Oa.setAttributeNS(null,"height",E+"px"),this.Oa.setAttributeNS(null,"viewBox","0 0 "+x+" "+E),this.context.ww.firstElementChild.setAttributeNS(null,"width",x+"px"),this.context.ww.firstElementChild.setAttributeNS(null,"height",E+"px"),!0):!1},Ol.prototype.Ud=function(a,y,x){if(a=this.ownerDocument.createElementNS(this.cA,a),Te(y))for(var E in y)a.setAttributeNS(E==="href"?"http://www.w3.org/1999/xlink":"",E,y[E]);return x!==void 0&&(a.textContent=x),a},Ol.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},Ol.prototype.focus=function(){this.Oa.focus()},Ol.prototype.mx=function(){this.ownerDocument=null},qt.Object.defineProperties(Ol.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}}}),Ol.className="SVGSurface";function aa(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 Md,this.j=l0(this),this.Nj=l0(this,"gojs-diagram"),this.Hl=this.ti=null;var x=Bo++,E=this.Ud("clipPath",{id:"mainClip"+x});E.appendChild(this.Ud("rect",{x:0,y:0,width:a.width,height:a.height})),this.ww=E,this.svg.appendChild(this.j),this.j.appendChild(this.Nj),this.svg.appendChild(E),this.j.setAttributeNS(null,"clip-path","url(#mainClip"+x+")"),this.eA={},this.isTemporary=!!y,this.filter="",this.bk=null}function Qy(a,y,x,E,b,z,tt){a.Nj===void 0?Of(a,y,x,E,b,z,tt):a.Nj.setAttribute("transform","matrix("+y+", "+x+", "+E+", "+b+", "+z+", "+tt+")")}wt=aa.prototype,wt.arc=function(a,y,x,E,b,z,tt,ot){var rt=2*Math.PI,at=rt-1e-6,ut=x*Math.cos(E),ft=x*Math.sin(E),vt=a+ut,xt=y+ft,Pt=z?0:1;E=z?E-b:b-E,(1e-6<Math.abs(tt-vt)||1e-6<Math.abs(ot-xt))&&this.path.push(["L",vt,+xt]),0>E&&(E=E%rt+rt),E>at?(this.path.push(["A",x,x,0,1,Pt,a-ut,y-ft]),this.path.push(["A",x,x,0,1,Pt,vt,xt])):1e-6<E&&this.path.push(["A",x,x,0,+(E>=Math.PI),Pt,a+x*Math.cos(b),y+x*Math.sin(b)])},wt.beginPath=function(){this.path=[],this.Yl={stroke:"none",fill:"none"}},wt.Se=function(a){this.addPath(this.path,this.rb,a||0)},wt.bezierCurveTo=function(a,y,x,E,b,z){this.path.push(["C",a,y,x,E,b,z])},wt.clearRect=function(){},wt.clip=function(){this.Yl.clipPath=!0},wt.closePath=function(){this.path.push(["z"])},wt.createLinearGradient=function(a,y,x,E){var b=new fc("linear");return b.x1=a,b.y1=y,b.x2=x,b.y2=E,b},wt.createPattern=function(a){var y="";a instanceof HTMLCanvasElement&&(y=a.toDataURL()),a instanceof HTMLImageElement&&(y=a.getAttribute("src"));var x=this.eA;if(x[y])return"url(#"+x[y]+")";var E="PATTERN"+Bo++,b={x:0,y:0,width:a.width,height:a.height,href:y};return a=this.Ud("pattern",{width:a.width,height:a.height,id:E,patternUnits:"userSpaceOnUse"}),a.appendChild(this.Ud(Cd,b)),this.svg.appendChild(a),x[y]=E,"url(#"+E+")"},wt.createRadialGradient=function(a,y,x,E,b,z){var tt=new fc("radial");return tt.x1=a,tt.y1=y,tt.r1=x,tt.x2=E,tt.y2=b,tt.r2=z,tt};function Xy(a,y,x,E,b,z,tt,ot,rt){E=ot/E,b=rt/b,z===0&&tt===0||a.rb.translate(z,tt),E===1&&b===1||a.rb.scale(E,b),y===0&&x===0||a.rb.translate(-y,-x)}wt.drawImage=function(a,y,x,E,b,z,tt,ot,rt){var at="";a instanceof HTMLCanvasElement&&(at=a.toDataURL()),a instanceof HTMLImageElement&&(at=a.getAttribute("src"));var ut=a instanceof HTMLImageElement?a.naturalWidth:a.width;a=a instanceof HTMLImageElement?a.naturalHeight:a.height,E===void 0&&(z=y,tt=x,ot=E=ut,rt=b=a),E=E||0,b=b||0,ot=ot||0,rt=rt||0,Xy(this,y,x,E,b,z||0,tt||0,ot,rt),z={x:0,y:0,width:ut||E,height:a||b,href:at},se.$(E,ot)&&se.$(b,rt)?at.toLowerCase().indexOf(".svg")===-1&&at.toLowerCase().indexOf("data:image/svg")===-1&&(z.preserveAspectRatio="xMidYMid slice"):z.preserveAspectRatio="none",(y!==0||x!==0||E!==ut||b!==a)&&(E+=y,b+=x,z["clip-path"]="path('M "+y+","+x+" L "+E+" "+x+" L "+E+" "+b+" L "+y+" "+b+" z')"),dg(this,Cd,z,this.rb),this.addElement(Cd,z)},wt.fill=function(a){a&&(this.Yl["fill-rule"]="evenodd"),iv(this,this.Yl)},wt.ng=function(a,y){this.clipInsteadOfFill?this.clip():this.fill(y)},wt.fillRect=function(a,y,x,E){a=[a,y,x,E],a={x:a[0],y:a[1],width:a[2],height:a[3]},dg(this,"fill",a,this.rb),this.addElement("rect",a)},wt.ox=function(a,y,x,E){a={x:a,y,width:x,height:E},dg(this,"fill",a,this.rb),iv(this,a),this.svg.prepend(this.Ud("rect",a))},wt.fillText=function(a,y,x){a=[a,y,x],y=this.textAlign,y==="left"?y="start":y==="right"?y="end":y==="center"&&(y="middle"),y={x:a[1],y:a[2],style:"font: "+this.font,"text-anchor":y},dg(this,"fill",y,this.rb),this.addElement("text",y,a[0])},wt.lineTo=function(a,y){this.path.push(["L",a,y])},wt.moveTo=function(a,y){this.path.push(["M",a,y])},wt.quadraticCurveTo=function(a,y,x,E){this.path.push(["Q",a,y,x,E])},wt.rect=function(a,y,x,E){this.path.push(["M",a,y],["L",a+x,y],["L",a+x,y+E],["L",a,y+E],["z"])},wt.restore=function(){this.rb=this.stack.pop(),this.path=this.stack.pop();var a=this.stack.pop();this.fillStyle=a.fillStyle,this.font=a.font,this.globalAlpha=a.globalAlpha,this.lineCap=a.lineCap,this.lineDashOffset=a.lineDashOffset,this.lineJoin=a.lineJoin,this.lineWidth=a.lineWidth,this.miterLimit=a.miterLimit,this.shadowBlur=a.shadowBlur,this.shadowColor=a.shadowColor,this.shadowOffsetX=a.shadowOffsetX,this.shadowOffsetY=a.shadowOffsetY,this.strokeStyle=a.strokeStyle,this.textAlign=a.textAlign,this.bk=a.bk},wt.save=function(){this.stack.push({fillStyle:this.fillStyle,font:this.font,globalAlpha:this.globalAlpha,lineCap:this.lineCap,lineDashOffset:this.lineDashOffset,lineJoin:this.lineJoin,lineWidth:this.lineWidth,miterLimit:this.miterLimit,shadowBlur:this.shadowBlur,shadowColor:this.shadowColor,shadowOffsetX:this.shadowOffsetX,shadowOffsetY:this.shadowOffsetY,strokeStyle:this.strokeStyle,textAlign:this.textAlign,bk:this.bk});for(var a=[],y=0;y<this.path.length;y++)a.push(this.path[y]);this.stack.push(a),this.stack.push(this.rb.copy())},wt.setTransform=function(a,y,x,E,b,z){a===1&&y===0&&x===0&&E===1&&b===0&&z===0||Of(this,a,y,x,E,b,z)};function Jy(a){return a=a.rb.ha,"matrix("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+", "+a[4]+", "+a[5]+")"}wt.scale=function(a,y){this.rb.scale(a,y)},wt.translate=function(a,y){this.rb.translate(a,y)},wt.transform=function(){},wt.yc=function(){},wt.stroke=function(){_y(this,this.Yl)},wt.jk=function(){this.clipInsteadOfFill||this.stroke()},wt.Ud=function(a,y,x){return this.Gv.Ud(a,y,x)},wt.addElement=function(a,y,x){return a=this.Ud(a,y,x),this.yd!==null?this.yd.appendChild(a):this.yd=a,this.ad=a};function dg(a,y,x,E){y==="fill"?iv(a,x):y==="stroke"&&_y(a,x),E!==null&&(a=E.ha,x.transform="matrix("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+", "+a[4]+", "+a[5]+")")}function iv(a,y){a.fillStyle instanceof fc?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 fc?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 _y(a,y){if(a.strokeStyle instanceof fc)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 E="";if(E=a.Hl!==null?a.Hl.getAttribute(x?"fill":"stroke"):null,E!==null&&E.indexOf("GRAD")!==-1?(E=E.split("#")[1].slice(0,-1),x=a.svg.getElementById(E),x!==null&&x.remove()):E="GRAD"+Bo++,y.type==="linear")x=a.Ud("linearGradient",{x1:y.x1,x2:y.x2,y1:y.y1,y2:y.y2,id:E,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:E});else throw Error("invalid gradient");var b=y.gx;y=b.length;for(var z=[],tt=0;tt<y;tt++){var ot=b[tt],rt=ot.color;ot={offset:ot.offset,"stop-color":rt},/^rgba\(/.test(rt)&&(rt=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(rt),ot["stop-color"]="rgb("+rt[1]+","+rt[2]+","+rt[3]+")",ot["stop-opacity"]=rt[4]),z.push(ot)}for(z.sort(function(at,ut){return at.offset>ut.offset?1:-1}),b=0;b<y;b++)x.appendChild(a.Ud("stop",z[b]));return a.svg.appendChild(x),"url(#"+E+")"}wt.addPath=function(a,y,x){for(var E=[],b=0;b<a.length;b++){var z=Vn(a[b]),tt=[z.shift()];if(tt[0]==="A")tt.push(z.shift()+","+z.shift(),z.shift(),z.shift()+","+z.shift(),z.shift()+","+z.shift());else for(;z.length;)tt.push(z.shift()+","+z.shift());E.push(tt.join(" "))}if(E=E.join(" "),a=this.Yl,a.clipPath)0<this.nh.length&&this.nh[this.nh.length-1].setAttributeNS(null,"clip-path",'path("'+E+'")');else if(a.d=E,dg(this,"",a,y),this.Hl!==null)if(y=this.Hl,y.nodeName!=="g")for(var ot in a)ot!=="transform"&&y.setAttributeNS(null,ot,a[ot]);else{ot=y.getElementsByTagName("path");for(var rt in a)rt!=="transform"&&ot[x].setAttributeNS(null,rt,a[rt])}else this.addElement("path",a)};function Of(a,y,x,E,b,z,tt){var ot=new Md;ot.ha=[y,x,E,b,z,tt],y={},dg(a,"g",y,ot),ot=a.addElement("g",y),a.nh.push(ot)}function l0(a,y){var x={};return y&&(x.class=y),y=a.addElement("g",x),a.nh.push(y),y}wt.Ev=function(a,y,x){this.Ar=a,this.Br=y,this.Vg=x};function Jl(a){a.Il=!1,a.shadowOffsetX=0,a.shadowOffsetY=0,a.shadowBlur=0}function xu(a){a.Il=!0,a.shadowOffsetX=a.Ar,a.shadowOffsetY=a.Br,a.shadowBlur=a.Vg}wt.js=function(a,y){this.Ct=!0,this.Yg=a,this.uj=y},wt.fs=function(){this.Ct=!1},wt.Vc=function(){},wt.Wx=function(){},aa.prototype.rotate=function(a){this.rb.rotate(57.2958*a,0,0)},aa.prototype.getImageData=function(){return null},aa.prototype.measureText=function(){return null};function u0(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()))}aa.prototype.Hs=function(a){a.svg!==null&&a.svg.parentNode===this.Nj&&a.svg.remove()},aa.className="SVGContext",ye.prototype.Cs=function(a){this.pj.contains("SVG")||this.bs("SVG",new Ol(this,Be.document));var y=new Ol(this,Be.document,!0);a===void 0&&(a=new Pi);var x=this;return ac(this,function(E,b){return E=i0(x,E,"SVG",y),E=E!==null?E.svg:null,typeof b=="function"?(b(E),null):E},a)},ye.prototype.makeSvg=ye.prototype.Cs,ye.prototype.av=function(a){return this.Cs(a)},ye.prototype.makeSVG=ye.prototype.av;function Ya(a,y,x,E){this.ownerDocument=y=y===void 0?Be.document:y,this.hs=null,y=y.createElement("canvas"),y.tabIndex=0,this.Oa=y,this.context=new Ld(y,x,E),y.H=a}Ya.prototype.resize=function(a,y,x,E){return this.width!==a||this.height!==y?(this.width=a,this.height=y,this.style.width=x+"px",this.style.height=E+"px",!0):!1},Ya.prototype.toDataURL=function(a,y){return this.Oa.toDataURL(a,y)},Ya.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},Ya.prototype.focus=function(){this.Oa.focus()},Ya.prototype.mx=function(){this.ownerDocument=this.Oa.H=null},qt.Object.defineProperties(Ya.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}}}),Ya.className="CanvasSurface";function Ld(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 Di,this.isTemporary=!!x}wt=Ld.prototype,wt.Wx=function(a){this.Z.imageSmoothingEnabled=a},wt.arc=function(a,y,x,E,b,z){this.Z.arc(a,y,x,E,b,z)},wt.beginPath=function(){this.Z.beginPath()},wt.Se=function(){},wt.bezierCurveTo=function(a,y,x,E,b,z){this.Z.bezierCurveTo(a,y,x,E,b,z)},wt.clearRect=function(a,y,x,E){this.yc(),this.Z.clearRect(a,y,x,E)},wt.clip=function(){this.Z.clip()},wt.closePath=function(){this.Z.closePath()},wt.createLinearGradient=function(a,y,x,E){return this.Z.createLinearGradient(a,y,x,E)},wt.createPattern=function(a,y){return this.Z.createPattern(a,y)},wt.createRadialGradient=function(a,y,x,E,b,z){return this.Z.createRadialGradient(a,y,x,E,b,z)},wt.drawImage=function(a,y,x,E,b,z,tt,ot,rt){E===void 0?this.Z.drawImage(a,y,x):this.Z.drawImage(a,y,x,E,b,z,tt,ot,rt)},wt.fill=function(a){this.Z.fill(a?"evenodd":"nonzero")},wt.fillRect=function(a,y,x,E){this.Z.fillRect(a,y,x,E)},wt.ox=function(a,y,x,E){this.Z.fillRect(a,y,x,E)},wt.fillText=function(a,y,x){this.Z.fillText(a,y,x)},wt.getImageData=function(a,y,x,E){return this.Z.getImageData(a,y,x,E)},wt.lineTo=function(a,y){this.Z.lineTo(a,y)},wt.measureText=function(a){return this.Z.measureText(a)},wt.moveTo=function(a,y){this.Z.moveTo(a,y)},wt.quadraticCurveTo=function(a,y,x,E){this.Z.quadraticCurveTo(a,y,x,E)},wt.rect=function(a,y,x,E){this.Z.rect(a,y,x,E)},wt.restore=function(){this.Z.restore()},wt.save=function(){this.yc(),this.Z.save()},Ld.prototype.rotate=function(a){this.El.rotate(57.2958*a,0,0)},wt=Ld.prototype,wt.setTransform=function(a,y,x,E,b,z){this.El.setTransform(a,y,x,E,b,z)},wt.scale=function(a,y){this.El.scale(a,y)},wt.translate=function(a,y){this.El.translate(a,y)},wt.stroke=function(){this.Z.stroke()},wt.transform=function(a,y,x,E,b,z){if(a!==1||y!==0||x!==0||E!==1||b!==0||z!==0){var tt=this.El,ot=tt.m11*a+tt.m21*y;a=tt.m12*a+tt.m22*y,y=tt.m11*x+tt.m21*E,x=tt.m12*x+tt.m22*E,tt.dx=tt.m11*b+tt.m21*z+tt.dx,tt.dy=tt.m12*b+tt.m22*z+tt.dy,tt.m11=ot,tt.m12=a,tt.m21=y,tt.m22=x}},wt.yc=function(){var a=this.El;this.Z.setTransform(a.m11,a.m12,a.m21,a.m22,a.dx,a.dy)},wt.ng=function(a,y){if(a instanceof vo&&a.type===Da){var x=a.yk;a=a.ft,a>x?(this.scale(x/a,1),this.translate((a-x)/2,0)):x>a&&(this.scale(1,a/x),this.translate(0,(x-a)/2)),this.Hm?this.clip():this.fill(y),a>x?(this.translate(-(a-x)/2,0),this.scale(1/(x/a),1)):x>a&&(this.translate(0,-(x-a)/2),this.scale(1,1/(a/x)))}else this.Hm?this.clip():this.fill(y)},wt.jk=function(){this.Hm||this.stroke()},wt.Ev=function(a,y,x){this.Ar=a,this.Br=y,this.Vg=x},wt.js=function(a,y){var x=this.Z;x.setLineDash!==void 0&&(x.setLineDash(a),x.lineDashOffset=y)},wt.fs=function(){var a=this.Z;a.setLineDash!==void 0&&(a.setLineDash(mx),a.lineDashOffset=0)},wt.Vc=function(a){a&&(this.dt=""),this.ct=this.et=""},wt.Hs=function(){},qt.Object.defineProperties(Ld.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 mx=Object.freeze([]);Ld.className="CanvasSurfaceContext";function jf(){this.F=this.o=this.u=this.j=0}jf.className="ColorNumbers";function vo(a,y){pg||(hv(),pg=!0),xo(this),this._isFrozen=!1,a===void 0?(this.na=qu,this.xk="black"):typeof a=="string"?(this.na=qu,this.xk=a):(this.na=a,this.xk="black"),a=this.na,a===Pu?(this.Qd=Xr,this.Lk=ia):this.Lk=a===Da?this.Qd=po:this.Qd=lr,this.Gr=0,this.Xp=NaN,this.xe=this.cr=this.we=null,this.ft=this.yk=0,y&&Object.assign(this,y)}vo.prototype.copy=function(){var a=new vo;return a.na=this.na,a.xk=this.xk,a.Qd=this.Qd.J(),a.Lk=this.Lk.J(),a.Gr=this.Gr,a.Xp=this.Xp,this.we!==null&&(a.we=this.we.copy()),a.cr=this.cr,a},wt=vo.prototype,wt.freeze=function(){return this._isFrozen=!0,this.we!==null&&this.we.freeze(),this},wt.ka=function(){return Object.isFrozen(this)&&zt("cannot thaw constant: "+this),this._isFrozen=!1,this.we!==null&&this.we.ka(),this},wt.qb=function(a){a.classType===vo&&(this.type=a)},wt.toString=function(){var a="Brush(";if(this.type===qu)a+=this.color;else if(a=this.type===Pu?a+"Linear ":this.type===Da?a+"Radial ":this.type===mg?a+"Pattern ":a+"(unknown) ",a+=this.start+" "+this.end,this.colorStops!==null)for(var y=this.colorStops.iterator;y.next();)a+=" "+y.key+":"+y.value;return a+")"},wt.addColorStop=function(a,y){return this._isFrozen&&Fe(this),(typeof a!="number"||!isFinite(a)||1<a||0>a)&&Dn(a,"0 <= loc <= 1",vo,"addColorStop:loc"),this.we===null&&(this.we=new ri),this.we.add(a,y),this.na===qu&&(this.type=Pu),this.xe=null,this},wt.Vz=function(a,y){if(this._isFrozen&&Fe(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?vg:y,this.type===qu)wu(this.color),this.color=gg(a,y);else if((this.type===Pu||this.type===Da)&&this.colorStops!==null)for(var x=this.colorStops.iterator;x.next();)wu(x.value),this.addColorStop(x.key,gg(a,y));return this};function $y(a,y,x){return y=y===void 0||typeof y!="number"?.2:y,x=x===void 0?vg:x,wu(a),gg(y,x)}wt.Wy=function(a,y){if(this._isFrozen&&Fe(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?vg:y,this.type===qu)wu(this.color),this.color=gg(-a,y);else if((this.type===Pu||this.type===Da)&&this.colorStops!==null)for(var x=this.colorStops.iterator;x.next();)wu(x.value),this.addColorStop(x.key,gg(-a,y));return this};function t1(a,y,x){return y=y===void 0||typeof y!="number"?.2:y,x=x===void 0?vg:x,wu(a),gg(-y,x)}function rv(a,y,x){wu(a),a=Io.j;var E=Io.u,b=Io.o,z=Io.F;return wu(y),x===void 0&&(x=.5),"rgba("+Math.round((Io.j-a)*x+a)+", "+Math.round((Io.u-E)*x+E)+", "+Math.round((Io.o-b)*x+b)+", "+Math.round((Io.F-z)*x+z)+")"}wt.Gx=function(){if(this.type===qu)return cg(this.color);if((this.type===Pu||this.type===Da)&&this.colorStops!==null){var a=this.colorStops;if(this.type===Da)return cg(a.first().value);if(a.get(.5)!==null)return cg(a.get(.5));if(a.count===2)return a=a.Fa(),cg(rv(a[0].value,a[1].value));for(var y=a.iterator,x=-1,E=-1,b=1,z=1;y.next();){var tt=y.key,ot=Math.abs(.5-y.key);b>z&&ot<b?(x=tt,b=ot):z>=b&&ot<z&&(E=tt,z=ot)}return x>E&&(z=x,x=E,E=z,z=b),b=E-x,cg(rv(a.get(x),a.get(E),1-z/b))}return!1};function cg(a){return a?a instanceof vo?a.Gx():(wu(a),128>(299*Io.j+587*Io.u+114*Io.o)/1e3):!1}function gg(a,y){switch(y){case vg:y=100*av(Io.j);var x=100*av(Io.u),E=100*av(Io.o);return Fs.j=.4124564*y+.3575761*x+.1804375*E,Fs.u=.2126729*y+.7151522*x+.072175*E,Fs.o=.0193339*y+.119192*x+.9503041*E,Fs.F=Io.F,y=uv(Fs.j/fg[0]),x=uv(Fs.u/fg[1]),E=uv(Fs.o/fg[2]),ql.j=116*x-16,ql.u=500*(y-x),ql.o=200*(x-E),ql.F=Fs.F,ql.j=Math.min(100,Math.max(0,ql.j+100*a)),a=(ql.j+16)/116,y=a-ql.o/200,Fs.j=fg[0]*e1(ql.u/500+a),Fs.u=fg[1]*(ql.j>h0*dv?Math.pow(a,3):ql.j/h0),Fs.o=fg[2]*e1(y),Fs.F=ql.F,a=-.969266*Fs.j+1.8760108*Fs.u+.041556*Fs.o,y=.0556434*Fs.j+-.2040259*Fs.u+1.0572252*Fs.o,Io.j=255*lv((3.2404542*Fs.j+-1.5371385*Fs.u+-.4985314*Fs.o)/100),Io.u=255*lv(a/100),Io.o=255*lv(y/100),Io.F=Fs.F,Io.j=Math.round(Io.j),255<Io.j?Io.j=255:0>Io.j&&(Io.j=0),Io.u=Math.round(Io.u),255<Io.u?Io.u=255:0>Io.u&&(Io.u=0),Io.o=Math.round(Io.o),255<Io.o?Io.o=255:0>Io.o&&(Io.o=0),"rgba("+Io.j+", "+Io.u+", "+Io.o+", "+Io.F+")";case n1:return sv(),xa.o=Math.min(100,Math.max(0,xa.o+100*a)),"hsla("+xa.j+", "+xa.u+"%, "+xa.o+"%, "+xa.F+")";default:zt("Unknown color space: "+y)}}function wu(a){pg||(hv(),pg=!0);var y=cv;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,Io.j=a[0],Io.u=a[1],Io.o=a[2],Io.F=a[3]/255):(y.fillStyle="#FFFFFF",y.fillStyle=a,Io.j=0,Io.u=0,Io.o=0,Io.F=1)}}function sv(){var a=Io.j/255,y=Io.u/255,x=Io.o/255,E=Math.max(a,y,x),b=Math.min(a,y,x),z=E-b;if(b=(E+b)/2,z===0)var tt=a=0;else{switch(E){case a:tt=(y-x)/z%6;break;case y:tt=(x-a)/z+2;break;case x:tt=(a-y)/z+4}tt*=60,0>tt&&(tt+=360),a=z/(1-Math.abs(2*b-1))}xa.j=Math.round(tt),xa.u=Math.round(100*a),xa.o=Math.round(100*b),xa.F=Io.F}function av(a){return a/=255,.04045>=a?a/12.92:Math.pow((a+.055)/1.055,2.4)}function lv(a){return .0031308>=a?12.92*a:1.055*Math.pow(a,1/2.4)-.055}function uv(a){return a>dv?Math.pow(a,1/3):(h0*a+16)/116}function e1(a){var y=a*a*a;return y>dv?y:(116*a-16)/h0}function pc(a,y){typeof a!="string"&&(a instanceof vo||zt("Value for "+y+" must be a color string or a Brush, not "+a))}function hv(){cv=tr?new Ya(null,void 0,{willReadFrequently:!0}).context:null}qt.Object.defineProperties(vo.prototype,{type:{get:function(){return this.na},set:function(a){this._isFrozen&&Fe(this,a),this.na=a,this.start.Mc()&&(a===Pu?this.start=Xr:a===Da&&(this.start=po)),this.end.Mc()&&(a===Pu?this.end=ia:a===Da&&(this.end=po)),this.xe=null}},color:{get:function(){return this.xk},set:function(a){this._isFrozen&&Fe(this,a),this.xk=a,this.xe=null}},start:{get:function(){return this.Qd},set:function(a){this._isFrozen&&Fe(this,a),this.Qd=a.J(),this.xe=null}},end:{get:function(){return this.Lk},set:function(a){this._isFrozen&&Fe(this,a),this.Lk=a.J(),this.xe=null}},startRadius:{get:function(){return this.Gr},set:function(a){this._isFrozen&&Fe(this,a),0>a&&Dn(a,">= zero",vo,"startRadius"),this.Gr=a,this.xe=null}},endRadius:{get:function(){return this.Xp},set:function(a){this._isFrozen&&Fe(this,a),0>a&&Dn(a,">= zero",vo,"endRadius"),this.Xp=a,this.xe=null}},colorStops:{get:function(){return this.we},set:function(a){this._isFrozen&&Fe(this,a),this.we=a,this.xe=null}},pattern:{get:function(){return this.cr},set:function(a){this._isFrozen&&Fe(this,a),this.cr=a,this.xe=null}}}),vo.prototype.isDark=vo.prototype.Gx,vo.prototype.darkenBy=vo.prototype.Wy,vo.prototype.lightenBy=vo.prototype.Vz,vo.prototype.addColorStop=vo.prototype.addColorStop;var dv=216/24389,h0=24389/27,fg=[95.047,100,108.883],cv=null,Io=new jf,xa=new jf,Fs=new jf,ql=new jf,pg=!1;vo.className="Brush";var qu;vo.Solid=qu=new De(vo,"Solid",0);var Pu;vo.Linear=Pu=new De(vo,"Linear",1);var Da;vo.Radial=Da=new De(vo,"Radial",2);var mg;vo.Pattern=mg=new De(vo,"Pattern",4);var vg;vo.Lab=vg=new De(vo,"Lab",5);var n1;vo.HSL=n1=new De(vo,"HSL",6),vo.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 E=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>E.length&&(E="0"+E),2>a.length&&(a="0"+a),"#"+y+E+a},vo.isValidColor=function(a){if(a==="black")return!0;if(a==="")return!1;pg||(hv(),pg=!0);var y=cv;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)},vo.lighten=function(a){return $y(a)},vo.lightenBy=$y,vo.darken=function(a){return t1(a)},vo.darkenBy=t1,vo.mix=rv,vo.isDark=cg;function Mr(){this.xa="Base"}Mr.prototype.measure=function(){},Mr.prototype.Yz=function(a,y,x,E,b){a.measure(y,x,E,b)},Mr.prototype.arrange=function(){},Mr.prototype.Ly=function(a,y,x,E,b,z){a.arrange(y,x,E,b,z)},Mr.prototype.iA=function(a){a.Uj()},Mr.prototype.gc=function(){},qt.Object.defineProperties(Mr.prototype,{name:{get:function(){return this.xa},set:function(a){this.xa=a}},classType:{get:function(){return tn}}}),Mr.prototype.remeasureObject=Mr.prototype.iA,Mr.prototype.arrangeElement=Mr.prototype.Ly,Mr.prototype.measureElement=Mr.prototype.Yz,Mr.className="PanelLayout";function d0(){this.xa="Base"}re(d0,Mr),d0.prototype.measure=function(a,y,x,E,b,z,tt){var ot=E.length;a=Cu(a);for(var rt=0;rt<ot;rt++){var at=E[rt];if(at.visible||at===a){var ut=at.margin,ft=ut.right+ut.left;ut=ut.top+ut.bottom,at.measure(y,x,z,tt);var vt=at.measuredBounds;ft=Math.max(vt.width+ft,0),ut=Math.max(vt.height+ut,0),vt=at.position.x;var xt=at.position.y;isFinite(vt)||(vt=0),isFinite(xt)||(xt=0),at instanceof Fi&&at.isGeometryPositioned&&(at=at.strokeWidth/2,vt-=at,xt-=at),uo(b,vt,xt,ft,ut)}}},d0.prototype.arrange=function(a,y,x){var E=y.length,b=a.padding;for(a=x.x-b.left,x=x.y-b.top,b=0;b<E;b++){var z=y[b],tt=z.measuredBounds,ot=z.margin,rt=z.position.x,at=z.position.y;if(rt=isNaN(rt)?-a:rt-a,at=isNaN(at)?-x:at-x,z instanceof Fi&&z.isGeometryPositioned){var ut=z.strokeWidth/2;rt-=ut,at-=ut}z.visible&&z.arrange(rt+ot.left,at+ot.top,tt.width,tt.height)}};function c0(){this.xa="Base"}re(c0,Mr),c0.prototype.measure=function(a,y,x,E,b,z,tt){var ot=E.length;y=Rn(),z=Cu(a);for(var rt=0;rt<ot;rt++){var at=E[rt];if(at.visible||at===z){var ut=Us(at,!1);if(ut!==He&&ut!==$n)y.push(at);else{at.measure(1/0,x,0,tt),ut=at.margin,at=at.measuredBounds;var ft=Math.max(at.height+ut.top+ut.bottom,0);b.width+=Math.max(at.width+ut.right+ut.left,0),b.height=Math.max(b.height,ft)}}}for(E=y.length,a.desiredSize.height?x=Math.min(a.desiredSize.height,a.maxSize.height):b.height!==0&&(x=Math.min(b.height,a.maxSize.height)),a=0;a<E;a++)rt=y[a],(rt.visible||rt===z)&&(ut=rt.margin,ot=ut.right+ut.left,ut=ut.top+ut.bottom,rt.measure(1/0,x,0,tt),rt=rt.measuredBounds,ut=Math.max(rt.height+ut,0),b.width+=Math.max(rt.width+ot,0),b.height=Math.max(b.height,ut));qn(y)},c0.prototype.arrange=function(a,y,x){for(var E=y.length,b=a.padding,z=b.top,tt=a.isOpposite,ot=tt?x.width:b.left,rt=0;rt<E;rt++){var at=z,ut=y[rt];if(ut.visible){var ft=ut.measuredBounds,vt=ut.margin,xt=vt.top+vt.bottom,Pt=z+b.bottom,Mt=ft.height,jt=Us(ut,!1);(isNaN(ut.desiredSize.height)&&jt===Xe||jt===hi)&&(Mt=Math.max(x.height-xt-Pt,0)),xt=Mt+xt+Pt,Pt=ut.alignment,Pt.Xb()&&(Pt=a.defaultAlignment),Pt.sb()||(Pt=po),tt&&(ot-=ft.width+vt.left+vt.right),ut.arrange(ot+Pt.offsetX+vt.left,at+Pt.offsetY+vt.top+(x.height*Pt.y-xt*Pt.y),ft.width,Mt),tt||(ot+=ft.width+vt.left+vt.right)}}};function g0(){this.xa="Base"}re(g0,Mr),g0.prototype.measure=function(a,y,x,E,b,z){var tt=E.length;x=Rn();for(var ot=Cu(a),rt=0;rt<tt;rt++){var at=E[rt];if(at.visible||at===ot){var ut=Us(at,!1);if(ut!==He&&ut!==hi)x.push(at);else{var ft=at.margin;ut=ft.right+ft.left,ft=ft.top+ft.bottom,at.measure(y,1/0,z,0),at=at.measuredBounds,Ir(b,Math.max(b.width,Math.max(at.width+ut,0)),b.height+Math.max(at.height+ft,0))}}}if(E=x.length,E!==0){for(a.desiredSize.width?y=Math.min(a.desiredSize.width,a.maxSize.width):b.width!==0&&(y=Math.min(b.width,a.maxSize.width)),a=0;a<E;a++)rt=x[a],(rt.visible||rt===ot)&&(at=rt.margin,tt=at.right+at.left,at=at.top+at.bottom,rt.measure(y,1/0,z,0),rt=rt.measuredBounds,at=Math.max(rt.height+at,0),b.width=Math.max(b.width,Math.max(rt.width+tt,0)),b.height+=at);qn(x)}},g0.prototype.arrange=function(a,y,x){for(var E=y.length,b=a.padding,z=b.left,tt=a.isOpposite,ot=tt?x.height:b.top,rt=0;rt<E;rt++){var at=z,ut=y[rt];if(ut.visible){var ft=ut.measuredBounds,vt=ut.margin,xt=vt.left+vt.right,Pt=z+b.right,Mt=ft.width,jt=Us(ut,!1);(isNaN(ut.desiredSize.width)&&jt===Xe||jt===$n)&&(Mt=Math.max(x.width-xt-Pt,0)),xt=Mt+xt+Pt,Pt=ut.alignment,Pt.Xb()&&(Pt=a.defaultAlignment),Pt.sb()||(Pt=po),tt&&(ot-=ft.height+vt.bottom+vt.top),ut.arrange(at+Pt.offsetX+vt.left+(x.width*Pt.x-xt*Pt.x),ot+Pt.offsetY+vt.top,Mt,ft.height),tt||(ot+=ft.height+vt.bottom+vt.top)}}};function f0(){this.xa="Base"}re(f0,Mr),f0.prototype.measure=function(a,y,x,E,b,z,tt){var ot=E.length,rt=a.Pb(),at=rt.margin,ut=at.right+at.left,ft=at.top+at.bottom;rt.measure(y,x,z,tt);var vt=rt.measuredBounds;z=vt.width,tt=vt.height;var xt=Math.max(z+ut,0),Pt=Math.max(tt+ft,0),Mt=a.isClipping,jt=be.allocAt(-at.left,-at.top,xt,Pt),Tt=be.allocAt(0,0,z,tt);gv(rt,Tt,!0),z=Tt.width,tt=Tt.height;for(var Vt=!0,Yt=Cu(a),Kt=0;Kt<ot;Kt++){var te=E[Kt];vt=y;var me=x;if(te!==rt&&(te.visible||te===Yt)){at=te.margin;var Cn=at.left,Hn=at.top;switch(xt=at.right+at.left,Pt=at.top+at.bottom,at=Us(te,!1),at){case Xe:vt=z,me=tt,Hn=Cn=Pt=xt=0;break;case $n:vt=z,Cn=xt=0;break;case hi:me=tt,Hn=Pt=0}te.measure(vt,me,0,0),vt=te.measuredBounds,xt=Math.max(vt.width+xt,0),Pt=Math.max(vt.height+Pt,0),at=te.alignment,at.Xb()&&(at=a.defaultAlignment),at.sb()||(at=po);var In=te.alignmentFocus;if(In.Xb()&&(In=po),me=null,te instanceof tn&&te.$e!==""&&(me=te.fb(te.$e),me===te&&(me=null)),Cn=Tt.x-Cn,Hn=Tt.y-Hn,me!==null){for(te.arrange(0,0,vt.width,vt.height),vt=me.actualBounds,vt=It.allocAt(vt.x+(In.x*vt.width-In.offsetX),vt.y+(In.y*vt.height-In.offsetY)),me=me.panel;me!==te;)me.transform.Ga(vt),me=me.panel;Cn+=at.x*z+at.offsetX-vt.x,Hn+=at.y*tt+at.offsetY-vt.y,It.free(vt)}else Cn+=at.x*z+at.offsetX-(In.x*vt.width+In.offsetX),Hn+=at.y*tt+at.offsetY-(In.y*vt.height+In.offsetY);Vt?(Vt=!1,b.h(Cn,Hn,xt,Pt)):uo(b,Cn,Hn,xt,Pt)}}switch(Vt?b.assign(jt):Mt?b.Uu(Tt.x,Tt.y,Tt.width,Tt.height):uo(b,jt.x,jt.y,jt.width,jt.height),be.free(jt),be.free(Tt),at=rt.stretch,at===Mi&&(at=Us(rt,!1)),at){case He:return;case Xe:if(!isFinite(y)&&!isFinite(x))return;break;case $n:if(!isFinite(y))return;break;case hi:if(!isFinite(x))return}for(vt=rt.measuredBounds,z=vt.width,tt=vt.height,xt=Math.max(z+ut,0),Pt=Math.max(tt+ft,0),at=rt.margin,Tt=be.allocAt(-at.left,-at.top,xt,Pt),gv(rt,Tt,!0),z=Tt.width,tt=Tt.height,y=0;y<ot;y++)x=E[y],x===rt||!x.visible&&x!==Yt||(at=x.margin,xt=at.right+at.left,Pt=at.top+at.bottom,vt=x.measuredBounds,xt=Math.max(vt.width+xt,0),Pt=Math.max(vt.height+Pt,0),ut=x.alignment,ut.Xb()&&(ut=a.defaultAlignment),ut.sb()||(ut=po),x=x.alignmentFocus,x.Xb()&&(x=po),Vt?(Vt=!1,b.h(ut.x*z+ut.offsetX-(x.x*vt.width+x.offsetX)-at.left,ut.y*tt+ut.offsetY-(x.y*vt.height+x.offsetY)-at.top,xt,Pt)):uo(b,ut.x*z+ut.offsetX-(x.x*vt.width+x.offsetX)-at.left,ut.y*tt+ut.offsetY-(x.y*vt.height+x.offsetY)-at.top,xt,Pt));Vt?b.assign(jt):Mt?b.Uu(Tt.x,Tt.y,Tt.width,Tt.height):uo(b,jt.x,jt.y,jt.width,jt.height),be.free(Tt)},f0.prototype.arrange=function(a,y,x){var E=y.length,b=a.Pb(),z=b.measuredBounds,tt=z.width,ot=z.height,rt=a.padding;z=rt.left,rt=rt.top;var at=z-x.x,ut=rt-x.y;for(b.arrange(at,ut,tt,ot),tt=be.allocAt(0,0,tt,ot),gv(b,tt,!1),ot=0;ot<E;ot++){var ft=y[ot];if(ft!==b){at=ft.measuredBounds;var vt=at.width,xt=at.height;ut=ft.alignment,ut.Xb()&&(ut=a.defaultAlignment),ut.sb()||(ut=po);var Pt=ft.alignmentFocus;if(Pt.Xb()&&(Pt=po),at=null,ft instanceof tn&&ft.$e!==""&&(at=ft.fb(ft.$e),at===ft&&(at=null)),at!==null){var Mt=at.actualBounds;for(Pt=It.allocAt(Mt.x+(Pt.x*Mt.width-Pt.offsetX),Mt.y+(Pt.y*Mt.height-Pt.offsetY)),at=at.panel;at!==ft;)at.transform.Ga(Pt),at=at.panel;at=ut.x*tt.width+ut.offsetX-Pt.x,ut=ut.y*tt.height+ut.offsetY-Pt.y,It.free(Pt)}else at=ut.x*tt.width+ut.offsetX-(Pt.x*vt+Pt.offsetX),ut=ut.y*tt.height+ut.offsetY-(Pt.y*xt+Pt.offsetY);at+=tt.x-x.x,ut+=tt.y-x.y,ft.visible&&ft.arrange(z+at,rt+ut,vt,xt)}}be.free(tt)};function gv(a,y,x){var E=null;if(a instanceof tn&&a.$e!==""&&(E=a.fb(a.$e),E===a&&(E=null)),E!==null)for(x&&a.arrange(0,0,y.width,y.height),y.assign(E.actualBounds),E=E.panel;E!==a;)E.transform.pp(y),E=E.panel}function p0(){this.xa="Base"}re(p0,Mr),p0.prototype.measure=function(a,y,x,E,b,z,tt){var ot=E.length,rt=a.Pb(),at=rt.margin,ut=y,ft=x,vt=at.right+at.left,xt=at.top+at.bottom;rt.measure(y,x,z,tt),at=rt.measuredBounds;var Pt=0,Mt=null;rt instanceof Fi&&(Mt=rt,Pt=Mt.strokeWidth*Mt.scale);var jt=Math.max(at.width+vt,0);at=Math.max(at.height+xt,0);var Tt=vv(rt),Vt=Tt.x*jt+Tt.offsetX;Tt=Tt.y*at+Tt.offsetY;var Yt=yv(rt),Kt=Yt.x*jt+Yt.offsetX;for(Yt=Yt.y*at+Yt.offsetY,isFinite(y)&&(ut=Math.max(Math.abs(Vt-Kt)-Pt,0)),isFinite(x)&&(ft=Math.max(Math.abs(Tt-Yt)-Pt,0)),Pt=Ee.alloc(),Pt.h(0,0),a=Cu(a),Yt=0;Yt<ot;Yt++)Tt=E[Yt],Tt===rt||!Tt.visible&&Tt!==a||(at=Tt.margin,jt=at.right+at.left,Vt=at.top+at.bottom,Tt.measure(ut,ft,0,0),at=Tt.measuredBounds,jt=Math.max(at.width+jt,0),at=Math.max(at.height+Vt,0),Pt.h(Math.max(jt,Pt.width),Math.max(at,Pt.height)));if(ot===1)b.width=jt,b.height=at,Ee.free(Pt);else{switch(Tt=vv(rt),Yt=yv(rt),ot=E=0,Yt.x!==Tt.x&&Yt.y!==Tt.y&&(E=Pt.width/Math.abs(Yt.x-Tt.x),ot=Pt.height/Math.abs(Yt.y-Tt.y)),Ee.free(Pt),Pt=0,Mt!==null&&(Pt=Mt.strokeWidth*Mt.scale,Ev(Mt)===Yn&&(E=ot=Math.max(E,ot))),E+=Math.abs(Tt.offsetX)+Math.abs(Yt.offsetX)+Pt,ot+=Math.abs(Tt.offsetY)+Math.abs(Yt.offsetY)+Pt,Mt=rt.stretch,Mt===Mi&&(Mt=Us(rt,!1)),Mt){case He:tt=z=0;break;case Xe:isFinite(y)&&(E=y),isFinite(x)&&(ot=x);break;case $n:isFinite(y)&&(E=y),tt=0;break;case hi:z=0,isFinite(x)&&(ot=x)}rt.Uj(),rt.measure(E,ot,z,tt),b.width=rt.measuredBounds.width+vt,b.height=rt.measuredBounds.height+xt}},p0.prototype.arrange=function(a,y){var x=y.length,E=a.Pb(),b=E.measuredBounds,z=be.alloc();z.h(0,0,1,1);var tt=E.margin,ot=tt.left;tt=tt.top;var rt=a.padding,at=rt.left;rt=rt.top,E.arrange(at+ot,rt+tt,b.width,b.height);var ut=vv(E),ft=yv(E),vt=ut.y*b.height+ut.offsetY,xt=ft.x*b.width+ft.offsetX;for(ft=ft.y*b.height+ft.offsetY,z.x=ut.x*b.width+ut.offsetX,z.y=vt,uo(z,xt,ft,0,0),z.x+=ot+at,z.y+=tt+rt,b=0;b<x;b++)ot=y[b],ot!==E&&(at=ot.measuredBounds,tt=ot.margin,rt=Math.max(at.width+tt.right+tt.left,0),ut=Math.max(at.height+tt.top+tt.bottom,0),vt=ot.alignment,vt.Xb()&&(vt=a.defaultAlignment),vt.sb()||(vt=po),rt=z.width*vt.x+vt.offsetX-rt*vt.x+tt.left+z.x,tt=z.height*vt.y+vt.offsetY-ut*vt.y+tt.top+z.y,ot.visible&&(Fo(z.x,z.y,z.width,z.height,rt,tt,at.width,at.height)?ot.arrange(rt,tt,at.width,at.height):ot.arrange(rt,tt,at.width,at.height,new be(z.x,z.y,z.width,z.height))));be.free(z)};function m0(){this.xa="Base",this.name="Table"}re(m0,Mr),m0.prototype.measure=function(a,y,x,E,b){for(var z=E.length,tt=Rn(),ot=Rn(),rt=0;rt<z;rt++){var at=E[rt],ut=at instanceof tn?at:null;if(ut!==null&&_u(ut)&&at.visible){ot.push(ut);for(var ft=ut.O.s,vt=ft.length,xt=0;xt<vt;xt++){var Pt=ft[xt];ut.type===tn.TableRow?Pt.row=at.row:ut.type===tn.TableColumn&&(Pt.column=at.column),tt.push(Pt)}}else tt.push(at)}z=tt.length,z===0&&(a.Fb(0),a.Eb(0));for(var Mt=[],jt=0;jt<z;jt++){var Tt=tt[jt];Tt.visible&&(Pr(Tt,!0),Xl(Tt,!0),Mt[Tt.row]||(Mt[Tt.row]=[]),Mt[Tt.row][Tt.column]||(Mt[Tt.row][Tt.column]=[]),Mt[Tt.row][Tt.column].push(Tt))}qn(tt);var Vt=Rn(),Yt=Rn(),Kt=Rn(),te={count:0},me={count:0},Cn=y,Hn=x,In=a.rowDefs,on=a.colDefs,ze=null;z=In.length;for(var Ei=0;Ei<z;Ei++)ze=In[Ei],ze!==void 0&&(ze.actual=0);z=on.length;for(var Si=0;Si<z;Si++)ze=on[Si],ze!==void 0&&(ze.actual=0);for(var lo=Mt.length,ko=0,Dr=0;Dr<lo;Dr++)Mt[Dr]&&(ko=Math.max(ko,Mt[Dr].length));var zr=Math.min(a.topIndex,lo-1),ms=Math.min(a.leftIndex,ko-1),Tr=0;lo=Mt.length;for(var lh=Cu(a),gr=0;gr<lo;gr++)if(Mt[gr]){ko=Mt[gr].length;var Pl=a.Fb(gr);Pl.actual=0;for(var vs=Pl.oc=0;vs<ko;vs++)if(Mt[gr][vs]){var uh=a.Eb(vs);Vt[vs]===void 0&&(uh.actual=0,uh.oc=0,Vt[vs]=!0);for(var Ca=Mt[gr][vs],Xa=Ca.length,ha=0;ha<Xa;ha++){var $s=Ca[ha];if($s.visible||$s===lh){var _h=1<$s.rowSpan||1<$s.columnSpan;_h&&(gr<zr||vs<ms||Yt.push($s));var Cl=$s.margin,Gg=Cl.right+Cl.left,da=Cl.top+Cl.bottom,ys=vl($s,Pl,uh,!1),Ep=$s.desiredSize,Lc=!isNaN(Ep.height),zl=!isNaN(Ep.width)&&Lc;if(_h||ys===He||zl||gr<zr||vs<ms||(te[vs]!==void 0||ys!==Xe&&ys!==$n||(te[vs]=-1,te.count++),me[gr]!==void 0||ys!==Xe&&ys!==hi||(me[gr]=-1,me.count++),Kt.push($s)),$s.measure(1/0,1/0,0,0),!(gr<zr||vs<ms)){var ta=$s.measuredBounds,Od=Math.max(ta.width+Gg,0),ca=Math.max(ta.height+da,0);if($s.rowSpan===1&&(ys===He||ys===$n)){ze=a.Fb(gr);var $h=ze.Wc();Tr=Math.max(ca-ze.actual,0),Tr+$h>Hn&&(Tr=Math.max(Hn-$h,0));var zm=ze.oa===0;ze.oc=ze.oc+Tr,ze.actual=ze.oa+Tr,Hn=Math.max(Hn-(Tr+(zm?$h:0)),0)}if($s.columnSpan===1&&(ys===He||ys===hi)){ze=a.Eb(vs);var Ap=ze.Wc();Tr=Math.max(Od-ze.actual,0),Tr+Ap>Cn&&(Tr=Math.max(Cn-Ap,0));var Gy=ze.oa===0;ze.oc=ze.oc+Tr,ze.actual=ze.oa+Tr,Cn=Math.max(Cn-(Tr+(Gy?Ap:0)),0)}_h&&$s.Uj()}}}}}qn(Vt);var su=0,Mu=0;z=a.columnCount;for(var Fc=0;Fc<z;Fc++){var td=on[Fc];td!==void 0&&(su+=isNaN(td.Hc)?td.oc:td.Hc,td.oc!==0&&(su+=td.Wc()))}z=a.rowCount;for(var Hg=0;Hg<z;Hg++){var ed=In[Hg];ed!==void 0&&(Mu+=isNaN(ed.Hc)?ed.oc:ed.Hc,ed.oc!==0&&(Mu+=ed.Wc()))}Cn=Math.max(y-su,0);var au=Hn=Math.max(x-Mu,0),hh=Cn;z=Kt.length;for(var ea=0;ea<z;ea++){var Gl=Kt[ea],Gm=a.Fb(Gl.row),Lu=a.Eb(Gl.column),Vg=Gl.measuredBounds,El=Gl.margin,jd=El.right+El.left,Hl=El.top+El.bottom;te[Gl.column]=Lu.oc===0&&te[Gl.column]!==void 0?Math.max(Vg.width+jd,te[Gl.column]):null,me[Gl.row]=Gm.oc===0&&me[Gl.row]!==void 0?Math.max(Vg.height+Hl,me[Gl.row]):null}var kc=0,Ug=0,hl;for(hl in me)hl!=="count"&&(kc+=me[hl]);for(hl in te)hl!=="count"&&(Ug+=te[hl]);for(var Kr=Ee.alloc(),Mp=0;Mp<z;Mp++){var Is=Kt[Mp];if(Is.visible||Is===lh){var fr=a.Fb(Is.row),Os=a.Eb(Is.column),Fu=0;isFinite(Os.width)?Fu=Os.width:(isFinite(Cn)&&te[Is.column]!==null?Ug===0?Fu=Os.actual+Cn:Fu=te[Is.column]/Ug*hh:te[Is.column]!==null?Fu=Cn:Fu=Os.actual||Cn,Fu=Math.max(0,Fu-Os.Wc()));var dh=0;switch(isFinite(fr.height)?dh=fr.height:(isFinite(Hn)&&me[Is.row]!==null?kc===0?dh=fr.actual+Hn:dh=me[Is.row]/kc*au:me[Is.row]!==null?dh=Hn:dh=fr.actual||Hn,dh=Math.max(0,dh-fr.Wc())),Kr.h(Math.max(Os.minimum,Math.min(Fu,Os.maximum)),Math.max(fr.minimum,Math.min(dh,fr.maximum))),ys=vl(Is,fr,Os,!1),ys){case $n:Kr.height=Math.max(Kr.height,fr.actual+Hn);break;case hi:Kr.width=Math.max(Kr.width,Os.actual+Cn)}var Rd=Is.margin,Hy=Rd.right+Rd.left,Hm=Rd.top+Rd.bottom;Is.Uj(),Is.measure(Kr.width,Kr.height,Os.minimum,fr.minimum);var Wg=Is.measuredBounds,zd=Math.max(Wg.width+Hy,0),Bc=Math.max(Wg.height+Hm,0);isFinite(Cn)&&(zd=Math.min(zd,Kr.width)),isFinite(Hn)&&(Bc=Math.min(Bc,Kr.height));var na=0;na=fr.actual,fr.actual=Math.max(fr.actual,Bc),fr.oc=Math.max(fr.oc,Bc),Tr=fr.actual-na,Hn=Math.max(Hn-Tr,0),me[Is.row]===null&&(au=Math.max(au-Tr,0)),na=Os.actual,Os.actual=Math.max(Os.actual,zd),Os.oc=Math.max(Os.oc,zd),Tr=Os.actual-na,Cn=Math.max(Cn-Tr,0),te[Is.column]===null&&(hh=Math.max(hh-Tr,0))}}qn(Kt);var ku=Ee.alloc(),Al=Rn(),Ra=Rn();if(z=Yt.length,z!==0){for(var nd=0;nd<lo;nd++)if(Mt[nd]){ko=Mt[nd].length;var Yg=a.Fb(nd);Al[nd]=Yg.actual;for(var id=0;id<ko;id++)if(Mt[nd][id]){var Vm=a.Eb(id);Ra[id]=Vm.actual}}}for(var Zg=0;Zg<z;Zg++){var rr=Yt[Zg];if(rr.visible||rr===lh){var dl=a.Fb(rr.row),Ja=a.Eb(rr.column);switch(Kr.h(Math.max(Ja.minimum,Math.min(y,Ja.maximum)),Math.max(dl.minimum,Math.min(x,dl.maximum))),ys=vl(rr,dl,Ja,!1),ys){case Xe:Ra[Ja.index]!==0&&(Kr.width=Math.min(Kr.width,Ra[Ja.index])),Al[dl.index]!==0&&(Kr.height=Math.min(Kr.height,Al[dl.index]));break;case $n:Ra[Ja.index]!==0&&(Kr.width=Math.min(Kr.width,Ra[Ja.index]));break;case hi:Al[dl.index]!==0&&(Kr.height=Math.min(Kr.height,Al[dl.index]))}isFinite(Ja.width)&&(Kr.width=Ja.width),isFinite(dl.height)&&(Kr.height=dl.height),ku.h(0,0);for(var Um=Ja.minimum,ga=dl.minimum,ch=1;ch<rr.rowSpan&&!(rr.row+ch>=a.rowCount);ch++)ze=a.Fb(rr.row+ch),Tr=0,Tr=ys===Xe||ys===hi?Math.max(ze.minimum,Al[rr.row+ch]===0?ze.maximum:Math.min(Al[rr.row+ch],ze.maximum)):Math.max(ze.minimum,isNaN(ze.Hc)?ze.maximum:Math.min(ze.Hc,ze.maximum)),ku.height+=Tr,ga+=ze.minimum;for(var qa=1;qa<rr.columnSpan&&!(rr.column+qa>=a.columnCount);qa++)ze=a.Eb(rr.column+qa),Tr=0,Tr=ys===Xe||ys===$n?Math.max(ze.minimum,Ra[rr.column+qa]===0?ze.maximum:Math.min(Ra[rr.column+qa],ze.maximum)):Math.max(ze.minimum,isNaN(ze.Hc)?ze.maximum:Math.min(ze.Hc,ze.maximum)),ku.width+=Tr,Um+=ze.minimum;Kr.width+=ku.width,Kr.height+=ku.height;var Kg=rr.margin,od=Kg.right+Kg.left,Lp=Kg.top+Kg.bottom;rr.measure(Kr.width,Kr.height,Um,ga);for(var Qg=rr.measuredBounds,Vl=Math.max(Qg.width+od,0),Gd=Math.max(Qg.height+Lp,0),rd=0,Xg=0;Xg<rr.rowSpan&&!(rr.row+Xg>=a.rowCount);Xg++)ze=a.Fb(rr.row+Xg),rd+=ze.total||0;if(rd<Gd){var gh=Gd-rd,lu=Gd-rd;if(rr.spanAllocation!==null)for(var fh=rr.spanAllocation,Bu=0;Bu<rr.rowSpan&&!(0>=gh)&&!(rr.row+Bu>=a.rowCount);Bu++){ze=a.Fb(rr.row+Bu);var ph=ze.oa||0,Hd=fh(rr,ze,lu);ze.actual=Math.min(ze.maximum,ph+Hd),ze.oa!==ph&&(gh-=ze.oa-ph)}for(;0<gh;){var Ml=ze.oa||0;if(isNaN(ze.height)&&ze.maximum>Ml&&(ze.actual=Math.min(ze.maximum,Ml+gh),ze.oa!==Ml&&(gh-=ze.oa-Ml)),ze.index===0)break;ze=a.Fb(ze.index-1)}}for(var Nc=0,mh=0;mh<rr.columnSpan&&!(rr.column+mh>=a.columnCount);mh++)ze=a.Eb(rr.column+mh),Nc+=ze.total||0;if(Nc<Vl){var bc=Vl-Nc,Vy=Vl-Nc;if(rr.spanAllocation!==null)for(var Nu=rr.spanAllocation,Vd=0;Vd<rr.columnSpan&&!(0>=bc)&&!(rr.column+Vd>=a.columnCount);Vd++){ze=a.Eb(rr.column+Vd);var Fp=ze.oa||0,Uy=Nu(rr,ze,Vy);ze.actual=Math.min(ze.maximum,Fp+Uy),ze.oa!==Fp&&(bc-=ze.oa-Fp)}for(;0<bc;){var Wm=ze.oa||0;if(isNaN(ze.width)&&ze.maximum>Wm&&(ze.actual=Math.min(ze.maximum,Wm+bc),ze.oa!==Wm&&(bc-=ze.oa-Wm)),ze.index===0)break;ze=a.Eb(ze.index-1)}}}}qn(Yt),Ee.free(ku),Ee.free(Kr),Al!==void 0&&qn(Al),Ra!==void 0&&qn(Ra);var Dc=0,Tc=0,Ym=a.desiredSize,fx=a.maxSize;ys=Us(a,!0);var kp=Mu=su=0,Bp=0;z=a.columnCount;for(var Zm=0;Zm<z;Zm++)on[Zm]!==void 0&&(ze=a.Eb(Zm),isFinite(ze.width)?(kp+=ze.width,kp+=ze.Wc()):M0(ze)===Hf?(kp+=ze.oa,kp+=ze.Wc()):ze.oa!==0&&(su+=ze.oa,su+=ze.Wc()));isFinite(Ym.width)?Dc=Math.min(Ym.width,fx.width):Dc=ys!==He&&isFinite(y)?y:su,Dc=Math.max(Dc,a.minSize.width),Dc=Math.max(Dc-kp,0);for(var qx=su===0?1:Math.max(Dc/su,1),Km=0;Km<z;Km++)on[Km]!==void 0&&(ze=a.Eb(Km),isFinite(ze.width)||M0(ze)===Hf||(ze.actual=ze.oa*qx),ze.position=b.width,ze.oa!==0&&(b.width+=ze.oa,b.width+=ze.Wc()));z=a.rowCount;for(var Qm=0;Qm<z;Qm++)In[Qm]!==void 0&&(ze=a.Fb(Qm),isFinite(ze.height)?(Bp+=ze.height,Bp+=ze.Wc()):M0(ze)===Hf?(Bp+=ze.oa,Bp+=ze.Wc()):ze.oa!==0&&(Mu+=ze.oa,Mu+=ze.Wc()));isFinite(Ym.height)?Tc=Math.min(Ym.height,fx.height):Tc=ys!==He&&isFinite(x)?x:Mu,Tc=Math.max(Tc,a.minSize.height),Tc=Math.max(Tc-Bp,0);for(var _x=Mu===0?1:Math.max(Tc/Mu,1),Xm=0;Xm<z;Xm++)In[Xm]!==void 0&&(ze=a.Fb(Xm),isFinite(ze.height)||M0(ze)===Hf||(ze.actual=ze.oa*_x),ze.position=b.height,ze.oa!==0&&(b.height+=ze.oa,b.height+=ze.Wc()));z=ot.length;for(var Wy=0;Wy<z;Wy++){var Np=ot[Wy],Yy=0,Zy=0;Np.type===tn.TableRow?(Yy=b.width,ze=a.Fb(Np.row),Zy=ze.actual):(ze=a.Eb(Np.column),Yy=ze.actual,Zy=b.height),Np.measuredBounds.h(0,0,Yy,Zy),Pr(Np,!1)}qn(ot),a.inRowsCols=Mt},m0.prototype.arrange=function(a,y,x){var E=y.length,b=a.padding,z=b.left;b=b.top;var tt=a.inRowsCols;if(tt!==null){for(var ot,rt,at=tt.length,ut=0,ft=0;ft<at;ft++)tt[ft]&&(ut=Math.max(ut,tt[ft].length));rt=a.rowDefs,ot=a.colDefs;var vt=ft=0,xt=Math.min(a.topIndex,at-1);if(0<rt.length){for(;xt!==at&&(rt[xt]===void 0||rt[xt].oa===0);)xt++;xt=Math.max(Math.min(xt,at-1),0),ft=-rt[xt].position}var Pt=Math.min(a.leftIndex,ut-1);if(0<ot.length){for(;Pt!==ut&&(ot[Pt]===void 0||ot[Pt].oa===0);)Pt++;Pt=Math.max(Math.min(Pt,ut-1),0),vt=-ot[Pt].position}for(var Mt=0,jt=0;Mt!==at&&rt[Mt]===void 0;)Mt++;for(;jt!==at&&ot[jt]===void 0;)jt++;ut=a.part,a.Fb(Mt),a.Eb(jt);for(var Tt=0;Tt<y.length;Tt++){var Vt=y[Tt];if(Vt instanceof tn&&Vt.visible&&_u(Vt)){if(Vt.type===tn.TableRow){ot=a.Fb(Vt.row);var Yt=a.Eb(jt)}else ot=a.Fb(Mt),Yt=a.Eb(Vt.column);rt=ot.position+ft+b,ot.oa!==0&&(rt+=ot.Io(Math.max(Mt,xt))),ot=Yt.position+vt+z,Yt.oa!==0&&(ot+=Yt.Io(Math.max(jt,Pt))),Yt=Vt.measuredBounds,Vt.Uk(),Vt.actualBounds.ka();var Kt=Vt.actualBounds,te=be.allocAt(Kt.x,Kt.y,Kt.width,Kt.height);Kt.x=Vt.type===tn.TableRow?z:ot,Kt.y=Vt.type===tn.TableColumn?b:rt,Kt.width=Yt.width,Kt.height=Yt.height,Vt.actualBounds.freeze(),Xl(Vt,!1),cl(te,Kt)||ut===null||(ut.oh(),Vt.Pn(ut)),be.free(te)}}for(Tt=Ee.alloc(),Vt=0;Vt<at;Vt++)if(tt[Vt]){for(ut=tt[Vt].length,Yt=a.Fb(Vt),rt=Yt.position+ft+b,Yt.oa!==0&&(rt+=Yt.Io(Math.max(Mt,xt))),Kt=0;Kt<ut;Kt++)if(tt[Vt][Kt]){te=a.Eb(Kt),ot=te.position+vt+z,te.oa!==0&&(ot+=te.Io(Math.max(jt,Pt)));for(var me=tt[Vt][Kt],Cn=me.length,Hn=0;Hn<Cn;Hn++){var In=me[Hn],on=In.measuredBounds;Tt.h(0,0);for(var ze=1;ze<In.rowSpan&&!(Vt+ze>=a.rowCount);ze++){var Ei=a.Fb(Vt+ze);Ei.oa!==0&&(Tt.height+=Ei.total)}for(ze=1;ze<In.columnSpan&&!(Kt+ze>=a.columnCount);ze++)Ei=a.Eb(Kt+ze),Ei.oa!==0&&(Tt.width+=Ei.total);var Si=te.oa+Tt.width,lo=Yt.oa+Tt.height;ze=ot,Ei=rt;var ko=Si,Dr=lo,zr=ot,ms=rt,Tr=Si,lh=lo;ot+Si>x.width&&(Tr=Math.max(x.width-ot,0)),rt+lo>x.height&&(lh=Math.max(x.height-rt,0));var gr=In.alignment;if(gr.Xb()){gr=a.defaultAlignment,gr.sb()||(gr=po);var Pl=gr.x,vs=gr.y,uh=gr.offsetX;gr=gr.offsetY;var Ca=te.alignment,Xa=Yt.alignment;Ca.sb()&&(Pl=Ca.x,uh=Ca.offsetX),Xa.sb()&&(vs=Xa.y,gr=Xa.offsetY)}else Pl=gr.x,vs=gr.y,uh=gr.offsetX,gr=gr.offsetY;(isNaN(Pl)||isNaN(vs))&&(vs=Pl=.5,gr=uh=0),Ca=on.width,Xa=on.height;var ha=In.margin,$s=ha.left+ha.right,_h=ha.top+ha.bottom,Cl=vl(In,Yt,te,!1);!isNaN(In.desiredSize.width)||Cl!==Xe&&Cl!==$n||(Ca=Math.max(Si-$s,0)),!isNaN(In.desiredSize.height)||Cl!==Xe&&Cl!==hi||(Xa=Math.max(lo-_h,0)),Si=In.maxSize,lo=In.minSize,Ca=Math.min(Si.width,Ca),Xa=Math.min(Si.height,Xa),Ca=Math.max(lo.width,Ca),Xa=Math.max(lo.height,Xa),Si=Xa+_h,ze+=ko*Pl-(Ca+$s)*Pl+uh+ha.left,Ei+=Dr*vs-Si*vs+gr+ha.top,In.visible&&(Fo(zr,ms,Tr,lh,ze,Ei,on.width,on.height)?In.arrange(ze,Ei,Ca,Xa):In.arrange(ze,Ei,Ca,Xa,new be(zr,ms,Tr,lh)))}}}for(Ee.free(Tt),a=0;a<E;a++)x=y[a],z=x instanceof tn?x:null,z!==null&&_u(z)&&(z=x.actualBounds,x.naturalBounds.ka(),x.naturalBounds.h(0,0,z.width,z.height),x.naturalBounds.freeze())}};function v0(){this.xa="Base"}re(v0,Mr),v0.prototype.measure=function(){},v0.prototype.arrange=function(){};function y0(){this.xa="Base"}re(y0,Mr),y0.prototype.measure=function(){},y0.prototype.arrange=function(){};function S0(){this.xa="Base"}re(S0,Mr),S0.prototype.measure=function(a,y,x,E,b,z,tt){1<E.length&&zt("Viewbox Panel cannot contain more than one GraphObject."),E=E[0],E.Ca=1,E.Uj(),E.measure(1/0,1/0,z,tt);var ot=E.measuredBounds,rt=E.margin,at=rt.right+rt.left;if(rt=rt.top+rt.bottom,isFinite(y)||isFinite(x)){var ut=E.scale,ft=ot.width;ot=ot.height;var vt=Math.max(y-at,0),xt=Math.max(x-rt,0),Pt=1;a.viewboxStretch===Yn?ft!==0&&ot!==0&&(Pt=Math.min(vt/ft,xt/ot)):ft!==0&&ot!==0&&(Pt=Math.max(vt/ft,xt/ot)),Pt===0&&(Pt=1e-4),E.Ca*=Pt,ut!==E.scale&&(Pr(E,!0),E.measure(1/0,1/0,z,tt))}ot=E.measuredBounds,b.width=isFinite(y)?y:Math.max(ot.width+at,0),b.height=isFinite(x)?x:Math.max(ot.height+rt,0)},S0.prototype.arrange=function(a,y,x){y=y[0];var E=y.measuredBounds,b=y.margin,z=Math.max(E.width+(b.right+b.left),0);b=Math.max(E.height+(b.top+b.bottom),0);var tt=y.alignment;tt.Xb()&&(tt=a.defaultAlignment),tt.sb()||(tt=po),y.arrange(x.width*tt.x-z*tt.x+tt.offsetX,x.height*tt.y-b*tt.y+tt.offsetY,E.width,E.height)};function Rf(){this.xa="Base"}re(Rf,Mr),Rf.prototype.measure=function(){},Rf.prototype.arrange=function(){},Rf.prototype.gc=function(a,y,x){x=a.Df()*x.scale,0>=x&&(x=1);var E=a.gridCellSize,b=E.width;E=E.height;var z=a.naturalBounds,tt=a.actualBounds,ot=z.width,rt=z.height,at=Math.ceil(ot/b),ut=Math.ceil(rt/E),ft=a.gridOrigin,vt=ft.x;ft=ft.y,y.save(),y.beginPath(),y.rect(0,0,ot,rt),y.clip(),y.Se();for(var xt=[],Pt=a.O.s,Mt=Pt.length,jt=0;jt<Mt;jt++){var Tt=Pt[jt],Vt=[];if(xt.push(Vt),Tt.visible){var Yt=Tt.interval;if(!(0>Yt)){Tt=pv(Tt.figure);for(var Kt=0;Kt<Mt;Kt++)if(Kt!==jt){var te=Pt[Kt];te.visible&&pv(te.figure)===Tt&&(te=te.interval,te>Yt&&Vt.push(te))}}}}for(Pt=a.O.s,Mt=Pt.length,jt=0;jt<Mt;jt++){var me=Pt[jt];if(me.visible&&(Vt=me.interval||1,Tt=Math.abs(Vt),!(2>b*Tt*x))){if(Yt=me.segmentIndex,(!isFinite(Yt)||isNaN(Yt))&&(Yt=0),0>Yt&&(Yt=Tt-Math.min(-Yt,Tt)),Yt=Math.round(Yt%Tt),Tt=me.opacity,Kt=1,Tt!==1){if(Tt===0)continue;Kt=y.globalAlpha,y.globalAlpha=Kt*Tt}te=xt[jt];var Cn=!1,Hn=me.strokeDashArray;if(Hn!==null&&(Cn=!0,y.js(Hn,me.strokeDashOffset)),me.figure==="LineV"&&me.stroke!==null&&0<me.strokeWidth){for(y.lineWidth=me.strokeWidth,er(a,y,me.stroke,!1,!1,z,tt),y.beginPath(),Hn=me=Math.floor((vt-b)/b);Hn<=me+at;Hn++){var In=Hn*b+vt;0<=In&&In<=ot&&x0(Hn,Vt,Yt,te)&&(y.moveTo(In,0),y.lineTo(In,rt))}y.stroke(),y.Se()}else if(me.figure==="LineH"&&me.stroke!==null&&0<me.strokeWidth){for(y.lineWidth=me.strokeWidth,er(a,y,me.stroke,!1,!1,z,tt),y.beginPath(),Hn=me=Math.floor((ft-E)/E);Hn<=me+ut;Hn++)In=Hn*E+ft,0<=In&&In<=rt&&x0(Hn,Vt,Yt,te)&&(y.moveTo(0,In),y.lineTo(ot,In));y.stroke(),y.Se()}else if(me.figure==="BarV"&&me.fill!==null)for(er(a,y,me.fill,!0,!1,z,tt),me=me.width,isNaN(me)&&(me=b),In=Hn=Math.floor((vt-b)/b);In<=Hn+at;In++){var on=In*b+vt;0<=on+me&&on<=ot&&x0(In,Vt,Yt,te)&&y.fillRect(on,0,me,rt)}else if(me.figure==="BarH"&&me.fill!==null)for(er(a,y,me.fill,!0,!1,z,tt),me=me.height,isNaN(me)&&(me=E),In=Hn=Math.floor((ft-E)/E);In<=Hn+ut;In++)on=In*E+ft,0<=on+me&&on<=rt&&x0(In,Vt,Yt,te)&&y.fillRect(0,on,ot,me);Cn&&y.fs(),Tt!==1&&(y.globalAlpha=Kt)}}y.restore(),y.Vc(!1)};function x0(a,y,x,E){if(0>y)return a%y===x;if(a%y!==x)return!1;y=E.length;for(var b=0;b<y;b++)if(a%E[b]===x)return!1;return!0}function w0(){this.xa="Base"}re(w0,Mr),w0.prototype.measure=function(a,y,x,E,b){var z=E.length;if(a instanceof io||a instanceof rn){var tt=null,ot=null;if(a instanceof rn&&(tt=a),a instanceof io&&(ot=a,tt=ot.adornedPart,a.j===null&&(a.j=[])),tt instanceof rn){var rt=tt;if(z===0)Ir(a.naturalBounds,0,0),a.measuredBounds.h(0,0,0,0);else{var at=a instanceof io?null:tt.path;y=tt.routeBounds,x=a.jg,x.h(0,0,y.width,y.height);var ut=rt.points,ft=tt.pointsCount;ot!==null?ot.Ul(!1):tt!==null&&tt.Ul(!1),ot=y.width;var vt=y.height,xt=a.j;if(xt.length=0,at!==null){i1(a,ot,vt,at);var Pt=at.measuredBounds;x.ed(Pt),xt.push(Pt)}Pt=Di.alloc();for(var Mt=It.alloc(),jt=It.alloc(),Tt=0;Tt<z;Tt++){var Vt=E[Tt];if(Vt!==at)if(Vt.isPanelMain&&Vt instanceof Fi){i1(a,ot,vt,Vt);var Yt=Vt.measuredBounds;x.ed(Yt),xt.push(Yt)}else if(2>ft)Vt.measure(1/0,1/0,0,0),Yt=Vt.measuredBounds,x.ed(Yt),xt.push(Yt);else{var Kt=Vt.segmentIndex,te=Vt.segmentFraction,me=Vt.alignmentFocus;me.Mc()&&(me=po);var Cn=Vt.segmentOrientation,Hn=Vt.segmentOffset;if(isNaN(Kt)){var In=rt.ua;Yt=Rn(),In.Qu(te,Yt);var on=It.allocAt(Yt[0],Yt[1]);if(on.add(rt.i(0)),In.type===cn.j?on.offset(-In.startX,-In.startY):(In=In.figures.first(),In!==null&&on.offset(-In.startX,-In.startY)),In=Yt[2],Cn!==Bs){var ze=rt.computeAngle(Vt,Cn,In);Vt.Kb=ze}ze=on.x-y.x;var Ei=on.y-y.y;It.free(on),qn(Yt)}else if(Kt<-ft||Kt>=ft)Yt=It.alloc(),rt.vg(),rt.computeMidPoint(Yt),In=rt.midAngle,Cn!==Bs&&(ze=rt.computeAngle(Vt,Cn,In),Vt.Kb=ze),ze=Yt.x-y.x,Ei=Yt.y-y.y,It.free(Yt);else{if(ze=0,0<=Kt?(Ei=ut.M(Kt),Yt=Kt<ft-1?ut.M(Kt+1):Ei):(ze=ft+Kt,Ei=ut.M(ze),Yt=0<ze?ut.M(ze-1):Ei),Ei.Xa(Yt)){0<=Kt?(In=0<Kt?ut.M(Kt-1):Ei,ze=Kt<ft-2?ut.M(Kt+2):Yt):(In=ze<ft-1?ut.M(ze+1):Ei,ze=1<ze?ut.M(ze-2):Yt),on=In.Bf(Ei);var Si=Yt.Bf(ze);In=on>Si+10?0<=Kt?In.ab(Ei):Ei.ab(In):Si>on+10?0<=Kt?Yt.ab(ze):ze.ab(Yt):0<=Kt?In.ab(ze):ze.ab(In)}else In=0<=Kt?Ei.ab(Yt):Yt.ab(Ei);Cn!==Bs&&(ze=rt.computeAngle(Vt,Cn,In),Vt.Kb=ze),ze=Ei.x+(Yt.x-Ei.x)*te-y.x,Ei=Ei.y+(Yt.y-Ei.y)*te-y.y}Vt.measure(1/0,1/0,0,0),Yt=Vt.measuredBounds,on=Vt.naturalBounds;var lo=0;Vt instanceof Fi&&(lo=Vt.strokeWidth),Si=on.width+lo;var ko=on.height+lo;Pt.reset(),Pt.translate(-Yt.x,-Yt.y),Pt.scale(Vt.scale,Vt.scale),Pt.rotate(Cn===Bs?Vt.angle:In,Si/2,ko/2),Cn!==qf&&Cn!==$f||Pt.rotate(90,Si/2,ko/2),Cn!==_f&&Cn!==tp||Pt.rotate(-90,Si/2,ko/2),Cn===q0&&(45<In&&135>In||225<In&&315>In)&&Pt.rotate(-In,Si/2,ko/2),on=new be(0,0,Si,ko),Mt.xi(on,me),Pt.Ga(Mt),me=-Mt.x+lo/2*Vt.scale,Vt=-Mt.y+lo/2*Vt.scale,jt.assign(Hn),lo=isNaN(Hn.x);var Dr=isNaN(Hn.y);if(lo||Dr){Si=Si/2+3,ko=ko/2+3;var zr=45<=In&&135>=In,ms=225<=In&&315>=In;Cn===Bs&&(zr||ms)?(jt.x=Dr?Si:Hn.y,jt.y=lo?ko:Hn.x,zr?0<=Kt||isNaN(Kt)&&.5>te||!lo||(jt.y=-ko):ms&&((0<=Kt||isNaN(Kt)&&.5>te)&&lo&&(jt.y=-ko),Dr&&(jt.x=-Si))):(lo&&(jt.x=0<=Kt||isNaN(Kt)&&.5>te?Si:-Si),Dr&&(jt.y=-ko),jt.rotate(In))}else jt.rotate(In);ze+=jt.x,Ei+=jt.y,on.set(Yt),on.h(ze+me,Ei+Vt,Yt.width,Yt.height),xt.push(on),x.ed(on)}}if(tt!==null)for(E=tt.labelNodes;E.next();)E.value.measure(1/0,1/0);a.jg=x,a.position.h(y.x+x.x,y.y+x.y),Ir(b,x.width||0,x.height||0),Di.free(Pt),It.free(Mt),It.free(jt)}}}},w0.prototype.arrange=function(a,y){var x=y.length;if(a instanceof io||a instanceof rn){var E=a,b=null;a instanceof io&&(b=a,E=b.adornedPart);var z=a instanceof io?null:E.path,tt=a.j;if(tt.length!==0){var ot=0;if(z!==null&&ot<tt.length){var rt=tt[ot];ot++,z.arrange(rt.x-a.jg.x,rt.y-a.jg.y,rt.width,rt.height)}for(rt=0;rt<x;rt++){var at=y[rt];if(at!==z&&ot<tt.length){var ut=tt[ot];ot++,at.arrange(ut.x-a.jg.x,ut.y-a.jg.y,ut.width,ut.height)}}}if(y=E.points,x=y.count,2<=x&&a instanceof rn)for(z=a.labelNodes;z.next();){var ft=a;tt=z.value,ot=tt.segmentIndex,rt=tt.segmentFraction;var vt=tt.alignmentFocus;if(at=tt.segmentOrientation,ut=tt.segmentOffset,isNaN(ot)){var xt=ft.ua,Pt=Rn();xt.Qu(rt,Pt);var Mt=It.allocAt(Pt[0],Pt[1]);Mt.add(ft.i(0)),xt.type===cn.j||(xt=xt.figures.first()),Mt.offset(-xt.startX,-xt.startY),xt=Pt[2],at!==Bs&&(ft=ft.computeAngle(tt,at,xt),tt.angle=ft),ft=Mt.x;var jt=Mt.y;It.free(Mt),qn(Pt)}else if(ot<-x||ot>=x)Pt=It.alloc(),xt=ft,jt=Pt,xt.vg(),xt.computeMidPoint(jt),xt=ft.midAngle,at!==Bs&&(ft=ft.computeAngle(tt,at,xt),tt.angle=ft),ft=Pt.x,jt=Pt.y,It.free(Pt);else{if(Mt=0,0<=ot?(Pt=y.s[ot],jt=ot<x-1?y.s[ot+1]:Pt):(Mt=x+ot,Pt=y.s[Mt],jt=0<Mt?y.s[Mt-1]:Pt),Pt.Xa(jt)){0<=ot?(xt=0<ot?y.s[ot-1]:Pt,Mt=ot<x-2?y.s[ot+2]:jt):(xt=Mt<x-1?y.s[Mt+1]:Pt,Mt=1<Mt?y.s[Mt-2]:jt);var Tt=xt.Bf(Pt),Vt=jt.Bf(Mt);xt=Tt>Vt+10?0<=ot?xt.ab(Pt):Pt.ab(xt):Vt>Tt+10?0<=ot?jt.ab(Mt):Mt.ab(jt):0<=ot?xt.ab(Mt):Mt.ab(xt)}else xt=0<=ot?Pt.ab(jt):jt.ab(Pt);at!==Bs&&(ft=ft.computeAngle(tt,at,xt),tt.angle=ft),ft=Pt.x+(jt.x-Pt.x)*rt,jt=Pt.y+(jt.y-Pt.y)*rt}if(vt.ys())tt.location=new It(ft,jt);else{vt.Mc()&&(vt=po),Pt=Di.alloc(),Pt.reset(),Pt.scale(tt.scale,tt.scale),Pt.rotate(tt.angle,0,0);var Yt=tt.naturalBounds;Mt=be.allocAt(0,0,Yt.width,Yt.height),Tt=It.alloc(),Tt.xi(Mt,vt),Pt.Ga(Tt),vt=-Tt.x,Vt=-Tt.y;var Kt=Yt.width,te=Yt.height;Yt=It.alloc(),Yt.assign(ut);var me=isNaN(ut.x),Cn=isNaN(ut.y);if(me||Cn){Kt=Kt/2+3,te=te/2+3;var Hn=45<=xt&&135>=xt,In=225<=xt&&315>=xt;at===Bs&&(Hn||In)?(Yt.x=Cn?Kt:ut.y,Yt.y=me?te:ut.x,Hn?0<=ot||isNaN(ot)&&.5>rt||!me||(Yt.y=-te):In&&((0<=ot||isNaN(ot)&&.5>rt)&&me&&(Yt.y=-te),Cn&&(Yt.x=-Kt))):(me&&(Yt.x=0<=ot||isNaN(ot)&&.5>rt?Kt:-Kt),Cn&&(Yt.y=-te),Yt.rotate(xt))}else Yt.rotate(xt);ft+=Yt.x,jt+=Yt.y,Pt.pp(Mt),vt+=Mt.x,Vt+=Mt.y,ot=It.allocAt(ft+vt,jt+Vt),tt.move(ot),It.free(ot),It.free(Yt),It.free(Tt),be.free(Mt),Di.free(Pt)}}b!==null?b.Ul(!1):E.Ul(!1),E=b1(a),a.location.h(a.position.x+E.x,a.position.y+E.y),It.free(E)}};function i1(a,y,x,E){if(Sa(E)!==!1){var b=E.strokeWidth;b===0&&a instanceof io&&a.type===tn.Link&&a.adornedObject instanceof Fi&&(b=a.adornedObject.strokeWidth),b*=E.Ca,a instanceof rn&&a.ua!==null?(a=a.geometry.bounds,E.Ge(a.x-b/2,a.y-b/2,a.width+b,a.height+b)):a instanceof io&&a.adornedPart.ua!==null?(a=a.adornedPart.ua.bounds,E.Ge(a.x-b/2,a.y-b/2,a.width+b,a.height+b)):E.Ge(-(b/2),-(b/2),y+b,x+b),b=E.desiredSize,b.w()||E.ua===null?E.dc.h(0,0,b.width,b.height):E.dc.assign(E.ua.bounds),Pr(E,!1)}}function zf(){this.xa="Base"}re(zf,Mr),zf.prototype.measure=function(a,y,x,E,b,z,tt){var ot=a.Pb();a.graduatedBounds=[];var rt=ot.margin,at=rt.right+rt.left,ut=rt.top+rt.bottom;ot.measure(y,x,z,tt);var ft=ot.measuredBounds,vt=new be(-rt.left,-rt.top,Math.max(ft.width+at,0),Math.max(ft.height+ut,0));a.graduatedBounds.push(vt),b.assign(vt);for(var xt=ot.geometry,Pt=ot.strokeWidth,Mt=xt.flattenedSegments,jt=xt.flattenedLengths,Tt=xt.flattenedTotalLength,Vt=Mt.length,Yt=0,Kt=0,te=Rn(),me=0;me<Vt;me++){var Cn=Mt[me],Hn=[];Kt=Yt=0;for(var In=Cn.length,on=0;on<In;on+=2){var ze=Cn[on],Ei=Cn[on+1];if(on!==0){var Si=180*Math.atan2(Ei-Kt,ze-Yt)/Math.PI;0>Si&&(Si+=360),Hn.push(Si)}Yt=ze,Kt=Ei}te.push(Hn)}if(a.graduatedIntervals===null){for(var lo=[],ko=a.O.s,Dr=ko.length,zr=0;zr<Dr;zr++){var ms=ko[zr],Tr=[];if(lo.push(Tr),ms.visible){var lh=ms.interval;if(!(0>lh)){for(var gr=0;gr<Dr;gr++)if(gr!==zr){var Pl=ko[gr];if(Pl.visible&&ms.constructor===Pl.constructor){var vs=Pl.interval;vs>lh&&Tr.push(vs)}}}}}a.graduatedIntervals=lo}var uh=a.graduatedIntervals,Ca=a.O.s,Xa=Ca.length,ha=0,$s=0,_h=Tt;a.graduatedMarks=[];for(var Cl,Gg=0;Gg<Xa;Gg++){var da=Ca[Gg];if(Cl=[],da.visible&&da!==ot){var ys=Math.abs(da.interval),Ep=a.graduatedTickUnit;if(!(2>Ep*ys*Tt/a.graduatedRange&&da.graduatedSkip===null)){var Lc=jt[0][0],zl=0,ta=0;$s=Tt*da.graduatedStart-1e-4,_h=Tt*da.graduatedEnd+1e-4;var Od=Ep*ys,ca=a.graduatedTickBase;if(ca<a.graduatedMin){var $h=(a.graduatedMin-ca)/Od;$h=$h%1===0?$h:Math.floor($h+1),ca+=$h*Od}else ca>a.graduatedMin+Od&&(ca-=Math.floor((ca-a.graduatedMin)/Od)*Od);for(var zm=uh[Gg],Ap=ca,Gy=1e-6*a.graduatedMax,su=1;ca<=a.graduatedMax+Gy;su++){t:{for(var Mu=zm.length,Fc=0;Fc<Mu;Fc++){var td=(ca-a.graduatedTickBase)%(zm[Fc]*a.graduatedTickUnit),Hg=1e-6*a.graduatedTickUnit;if(td<Hg&&td>-Hg){var ed=!1;break t}}ed=!0}if(ed&&(ca>a.graduatedMax&&(ca=a.graduatedMax),da.graduatedSkip===null||da instanceof bo&&!da.graduatedSkip(ca,da)||da instanceof Fi&&!da.graduatedSkip(ca,da))&&(ha=(ca-a.graduatedMin)*Tt/a.graduatedRange,ha>Tt&&(ha=Tt),$s<=ha&&ha<=_h)){for(var au=te[zl][ta],hh=jt[zl][ta];zl<jt.length;){for(;ha>Lc&&ta<jt[zl].length-1;)ta++,au=te[zl][ta],hh=jt[zl][ta],Lc+=hh;if(ha<=Lc)break;zl++,ta=0,au=te[zl][ta],hh=jt[zl][ta],Lc+=hh}var ea=Mt[zl],Gl=ea[2*ta],Gm=ea[2*ta+1],Lu=(ha-(Lc-hh))/hh,Vg=new It(Gl+(ea[2*ta+2]-Gl)*Lu+Pt/2-xt.bounds.x,Gm+(ea[2*ta+3]-Gm)*Lu+Pt/2-xt.bounds.y);Vg.scale(ot.scale,ot.scale);t:{var El=au,jd=te[zl];if(!(.5005>Lu&&.4995<Lu)){var Hl=El;if(.5>Lu?0<ta?Hl=jd[ta-1]:se.$(ea[0],ea[ea.length-2])&&se.$(ea[1],ea[ea.length-1])&&(Hl=jd[jd.length-1]):.5<Lu&&(ta+1<jd.length?Hl=jd[ta+1]:se.$(ea[0],ea[ea.length-2])&&se.$(ea[1],ea[ea.length-1])&&(Hl=jd[0])),El!==Hl){var kc=Math.abs(El-Hl);if(180<kc&&(El<Hl?El+=360:Hl+=360,kc=Math.abs(El-Hl)),5e-4>Lu||.9995<Lu){au=(El+Hl)/2%360;break t}if(10>kc){var Ug=1-Math.abs(.5-Lu);au=(El*Ug+Hl*(1-Ug))%360;break t}}}au=El}if(da instanceof bo){var hl="";da.graduatedFunction!==null?(hl=da.graduatedFunction(ca,da),hl=hl!=null?hl.toString():""):hl=(+ca.toFixed(2)).toString(),hl!==""&&Cl.push({$l:Vg,angle:au,text:hl})}else Cl.push({$l:Vg,angle:au})}ca=Ap+su*Od}}}a.graduatedMarks.push(Cl)}qn(te);var Kr=a.graduatedMarks;if(Kr!==null)for(var Mp=E.length,Is=0;Is<Mp;Is++){var fr=E[Is],Os=Kr[Is];if(fr.visible&&fr!==ot&&Os.length!==0){if(fr instanceof Fi){var Fu=a,dh=b,Rd=fr.alignmentFocus;Rd.Mc()&&(Rd=Xr);var Hy=fr.angle;fr.Kb=0,fr.measure(1/0,1/0,0,0),fr.Kb=Hy;var Hm=fr.measuredBounds,Wg=Hm.width,zd=Hm.height,Bc=be.allocAt(0,0,Wg,zd),na=It.alloc();na.xi(Bc,Rd),be.free(Bc);for(var ku=-na.x,Al=-na.y,Ra=new be,nd=Os.length,Yg=0;Yg<nd;Yg++)for(var id=Os[Yg],Vm=id.$l.x,Zg=id.$l.y,rr=id.angle,dl=0;4>dl;dl++){switch(dl){case 0:na.h(ku,Al);break;case 1:na.h(ku+Wg,Al);break;case 2:na.h(ku,Al+zd);break;case 3:na.h(ku+Wg,Al+zd)}na.rotate(rr+fr.angle),na.offset(Vm,Zg),Yg===0&&dl===0?Ra.h(na.x,na.y,0,0):Ra.Ye(na),na.offset(-Vm,-Zg),na.rotate(-rr-fr.angle)}It.free(na),Fu.graduatedBounds!==null&&Fu.graduatedBounds.push(Ra),uo(dh,Ra.x,Ra.y,Ra.width,Ra.height)}else if(fr instanceof bo){var Ja=a,Um=b;Ja.temporaryTextBlock===null&&(Ja.temporaryTextBlock=new bo);var ga=Ja.temporaryTextBlock;y1(ga,fr);var ch=fr.alignmentFocus;ch.Mc()&&(ch=Xr);for(var qa=fr.segmentOrientation,Kg=fr.segmentOffset,od=new be,Lp=0,Qg=0,Vl=0,Gd=0,rd=0,Xg=Os.length,gh=0;gh<Xg;gh++){var lu=Os[gh];Lp=lu.$l.x,Qg=lu.$l.y,Vl=lu.angle,rd=Gd=fr.angle,qa!==Bs&&(rd=qa===Jf||qa===J0?Vl+fr.angle:Vl,Gd=rn.computeAngle(qa,rd)),ga.Kb=Gd,ga.text=lu.text||"",ga.measure(1/0,1/0,0,0);var fh=ga.measuredBounds,Bu=ga.naturalBounds,ph=Bu.width,Hd=Bu.height,Ml=Di.alloc();Ml.reset(),Ml.translate(-fh.x,-fh.y),Ml.scale(ga.scale,ga.scale),Ml.rotate(rd,ph/2,Hd/2),qa!==qf&&qa!==$f||Ml.rotate(90,ph/2,Hd/2),qa!==_f&&qa!==tp||Ml.rotate(-90,ph/2,Hd/2),qa===q0&&(45<Vl&&135>Vl||225<Vl&&315>Vl)&&Ml.rotate(-Vl,ph/2,Hd/2);var Nc=be.allocAt(0,0,ph,Hd),mh=It.alloc();mh.xi(Nc,ch),Ml.Ga(mh);var bc=-mh.x,Vy=-mh.y,Nu=It.alloc();Nu.assign(Kg),isNaN(Nu.x)&&(Nu.x=ph/2+3),isNaN(Nu.y)&&(Nu.y=-(Hd/2+3)),Nu.rotate(Vl),Lp+=Nu.x+bc,Qg+=Nu.y+Vy;var Vd=new be(Lp,Qg,fh.width,fh.height),Fp=new be(fh.x,fh.y,fh.width,fh.height),Uy=new be(Bu.x,Bu.y,Bu.width,Bu.height);lu.Sz=Gd,lu.lineCount=ga.lineCount,lu.lines=[ga.Cb,ga.Ih,ga.df,ga.Le,ga.Qc,ga.Qb,ga.ze],lu.actualBounds=Vd,lu.measuredBounds=Fp,lu.naturalBounds=Uy,gh===0?od.assign(Vd):od.ed(Vd),It.free(Nu),It.free(mh),be.free(Nc),Di.free(Ml)}Ja.graduatedBounds!==null&&Ja.graduatedBounds.push(od),uo(Um,od.x,od.y,od.width,od.height)}Pr(fr,!1)}}},zf.prototype.arrange=function(a,y,x){if(a.graduatedBounds!==null){var E=a.Pb(),b=a.graduatedMarks;if(b!==null){var z=a.graduatedBounds,tt=0,ot=z[tt];tt++,E!==null&&E.arrange(ot.x-x.x,ot.y-x.y,ot.width,ot.height);for(var rt=y.length,at=0;at<rt;at++){var ut=y[at];ot=b[at],ut.visible&&ut!==E&&ot.length!==0&&(ot=z[tt],tt++,ut.arrange(ot.x-x.x,ot.y-x.y,ot.width,ot.height))}a.graduatedBounds=null}}},zf.prototype.gc=function(a,y,x){var E=x.$i;x.$i=!0;var b=a.naturalBounds,z=b.width,tt=b.height;b=y instanceof aa,y.save(),y.beginPath(),y.rect(-1,-1,z+1,tt+1),y.clip(),y.Se(),z=a.Pb(),z.gc(y,x),tt=a.Df()*x.scale,0>=tt&&(tt=1);for(var ot=z.actualBounds,rt=a.O.s,at=a.graduatedMarks,ut=rt.length,ft=0;ft<ut;ft++){var vt=rt[ft],xt=at[ft],Pt=xt.length;if(vt.visible&&vt!==z&&xt.length!==0){if(vt instanceof Fi){if(!(2>a.graduatedTickUnit*vt.interval*z.geometry.flattenedTotalLength/a.graduatedRange*tt&&vt.graduatedSkip===null)){var Mt=vt.measuredBounds,jt=vt.strokeWidth*vt.scale,Tt=vt.alignmentFocus;Tt.Mc()&&(Tt=Xr);for(var Vt=0;Vt<Pt;Vt++){var Yt=xt[Vt].$l,Kt=xt[Vt].angle,te=Tt,me=vt.Ab;me.reset(),me.translate(Yt.x+ot.x,Yt.y+ot.y),me.rotate(Kt+vt.angle,0,0),me.translate(-Mt.width*te.x+te.offsetX+jt/2,-Mt.height*te.y+te.offsetY+jt/2),me.scale(vt.scale,vt.scale),Wa(vt,!1),vt.wh.set(vt.Ab),vt.Kk=vt.scale,Na(vt,!1),vt.gc(y,x),b&&(a.svg.appendChild(vt.svg),vt.svg=null),vt.Ab.reset()}}}else if(vt instanceof bo)for(a.temporaryTextBlock===null&&(a.temporaryTextBlock=new bo),Mt=a.temporaryTextBlock,y1(Mt,vt),jt=0;jt<Pt;jt++)Tt=xt[jt],Tt.actualBounds&&Tt.measuredBounds&&Tt.naturalBounds&&(Mt.ec=Tt.text||"",Mt.Kb=Tt.Sz||0,Mt.Gc=Tt.lineCount||0,Vt=Tt.lines,Vt!==void 0&&(Mt.Cb=Vt[0],Mt.Ih=Vt[1],Mt.df=Vt[2],Mt.Le=Vt[3],Mt.Qc=Vt[4],Mt.Qb=Vt[5],Mt.ze=Vt[6]),Tt.naturalBounds&&(Mt.dc=Tt.naturalBounds),Tt.actualBounds&&(Vt=Tt.actualBounds,Mt.arrange(Vt.x,Vt.y,Vt.width,Vt.height)),Vt=Tt.actualBounds,Mt.arrange(Vt.x,Vt.y,Vt.width,Vt.height),Yt=Tt.measuredBounds,Tt=Tt.naturalBounds,Kt=Mt.Ab,Kt.reset(),Kt.translate(Vt.x+ot.x,Vt.y+ot.y),Kt.translate(-Yt.x,-Yt.y),Mt.no(Kt,Tt.x,Tt.y,Tt.width,Tt.height),Wa(Mt,!1),Mt.wh.set(Mt.Ab),Mt.Kk=Mt.scale,Na(Mt,!1),Mt.Ng=vt.part,Mt.Me=vt.panel,Mt.gc(y,x),Mt.Me=null,Mt.Ng=null,b&&(a.svg.appendChild(Mt.svg),Mt.svg=null))}}x.$i=E,y.restore(),y.Vc(!0)};function tn(a,y){if(ee.call(this),this.na=null,a===void 0)this.na=tn.Position;else if(typeof a=="string"){var x=ol.I(a);x!==null&&(this.na=x)}else a instanceof Mr?this.na=a:a&&(this.na=tn.Position,y=a);this.na===null&&zt("Panel type not specified or PanelLayout not loaded: "+a),this.l=this.l|4194304|(this.na===tn.Grid?1048576:0),this.O=new $e,this.yb=Rs,this.Tm=Or,this.Uf=Mi,this.$g=null,this.$e="",this.jg=new be(NaN,NaN,NaN,NaN),this.T=this.F=null,this.xo=Yn,this.jn=vi,this.kn=qo,this.ub=this.ra=null,this.zn=NaN,this.ge=this.Hh=null,y&&Object.assign(this,y)}re(tn,ee),tn.prototype.cloneProtected=function(a){ee.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},tn.prototype.Af=function(a){ee.prototype.Af.call(this,a),a.O=this.O;for(var y=a.O.s,x=y.length,E=0;E<x;E++)y[E].Me=a;a.$g=null},tn.prototype.copy=function(){var a=ee.prototype.copy.call(this);if(a!==null){for(var y=this.O.s,x=y.length,E=0;E<x;E++){var b=y[E].copy();b.wi(a),b.Ng=null;var z=a.O,tt=z.count;if(z.Gb(tt,b),z=a.part,z!==null){z.Rh=null,b.portId!==null&&z instanceof Fn&&(z.Te=!0);var ot=a.diagram;ot!==null&&ot.undoManager.isUndoingRedoing||z.cb(ur,"elements",a,null,b,null,tt)}}return a}return null},wt=tn.prototype,wt.toString=function(){return"Panel("+this.type.name+")#"+to(this)},wt.Pn=function(a){ee.prototype.Pn.call(this,a);for(var y=this.O.s,x=y.length,E=0;E<x;E++)y[E].Pn(a)},wt.hh=function(a,y){if(this.na===tn.Grid)a.yc(),this.na.gc(this,a,y);else if(this.na===tn.Graduated)a.yc(),this.na.gc(this,a,y);else{if(this.na===tn.Table)if(a.yc(),a instanceof aa){var x=a.yd;a.yd=l0(a,"gojs-ts"),fv(this,a),a.nh.pop(),a.yd=x}else fv(this,a);(x=this.isClipping&&this.na===tn.Spot)&&a.save();for(var E=this.Pb(),b=this.O.s,z=b.length,tt=0;tt<z;tt++){var ot=b[tt];x&&ot===E&&(a.clipInsteadOfFill=!0),ot.gc(a,y),x&&ot===E&&(a.clipInsteadOfFill=!1)}x&&(a.restore(),a.Vc(!0))}};function fv(a,y){y.lineCap="butt";var x=0<a.rowCount?a.rowDefs:null,E=0<a.columnCount?a.colDefs:null;x!==null&&P0(a,y,!0,x,!0),E!==null&&P0(a,y,!1,E,!0),x!==null&&o1(a,y,!0,x),E!==null&&o1(a,y,!1,E),x!==null&&P0(a,y,!0,x,!1),E!==null&&P0(a,y,!1,E,!1)}function o1(a,y,x,E){for(var b=E.length,z=a.actualBounds,tt=a.naturalBounds,ot=!0,rt=0;rt<b;rt++){var at=E[rt];if(at!==void 0&&at.actual!==0)if(ot)ot=!1;else{if(x){if(at.position>tt.height)continue}else if(at.position>tt.width)continue;var ut=at.separatorStrokeWidth;isNaN(ut)&&(ut=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var ft=at.separatorStroke;if(ft===null&&(ft=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),ut!==0&&ft!==null){er(a,y,ft,!1,!1,tt,z),ft=!1;var vt=at.separatorDashArray;vt===null&&(vt=x?a.defaultRowSeparatorDashArray:a.defaultColumnSeparatorDashArray),vt!==null&&(ft=!0,y.js(vt,0)),y.beginPath(),vt=at.position+ut,x?vt>tt.height&&(ut-=vt-tt.height):vt>tt.width&&(ut-=vt-tt.width),at=at.position+ut/2,y.lineWidth=ut,ut=a.yb,x?(at+=ut.top,vt=tt.width-ut.right,y.moveTo(ut.left,at),y.lineTo(vt,at)):(at+=ut.left,vt=tt.height-ut.bottom,y.moveTo(at,ut.top),y.lineTo(at,vt)),y.stroke(),y.Se(),ft&&y.fs()}}}}function P0(a,y,x,E,b){for(var z=E.length,tt=a.actualBounds,ot=a.naturalBounds,rt=r1(a,!0),at=r1(a,!1),ut=0;ut<z;ut++){var ft=E[ut];if(ft!==void 0&&ft.background!==null&&ft.coversSeparators!==b&&ft.actual!==0){var vt=x?tt.height:tt.width;if(!(ft.position>vt)){var xt=ft.Wc(),Pt=ft.separatorStrokeWidth;isNaN(Pt)&&(Pt=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var Mt=ft.separatorStroke;Mt===null&&(Mt=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),(Mt===null||ft.index===(x?rt:at))&&(Pt=0),xt-=Pt,Pt=ft.position+Pt,xt+=ft.actual,Pt+xt>vt&&(xt=vt-Pt),0>=xt||(vt=a.yb,er(a,y,ft.background,!0,!1,ot,tt),x?y.fillRect(vt.left,Pt+vt.top,tt.width-(vt.left+vt.right),xt):y.fillRect(Pt+vt.left,vt.top,xt,tt.height-(vt.top+vt.bottom)))}}}}function r1(a,y){for(var x=y?a.rowCount:a.columnCount,E=0;E<x;E++){var b=y?a.rowDefs[E]:a.colDefs[E];if(b!==void 0)return b.index}return 0}function pv(a){return a==="LineV"||a==="BarV"}wt.lv=function(){for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].lv();this.Uc=!0},wt.kk=function(a,y,x){if(!ee.prototype.kk.call(this,a,y,x))return!1;if(this.type===tn.Table)x=this.svg.getElementsByClassName("gojs-ts"),x=x.length!==0?x[0]:null,x!==null&&(x.innerHTML=""),a.yd=x,fv(this,a),a.yd=null;else if(this.na===tn.Grid||this.na===tn.Graduated)return this.svg.innerHTML="",this.svg.remove(),!1;x=this.O.s;for(var E=x.length,b=0;b<E;b++)x[b].gc(a,y);return!0},wt.nk=function(){return!0},wt.$o=function(a,y,x,E){if(!this.isClipping)if(this.Dd()&&a.bk!==null){a=a.bk,y=this.O.s;for(var b=0,z=0,tt=0;tt<y.length;tt++)if(y[tt].Ed()){var ot=y[tt].actualBounds;b=tt===0?ot.x:Math.min(ot.x,b),z=tt===0?ot.y:Math.min(ot.y,z)}E.setAttributeNS(null,"clip-path","path('M "+(a.x-x.x-b)+","+(a.y-x.y-z)+" l "+a.width+" 0 l 0 "+a.height+" l -"+a.width+" 0 z')")}else ee.prototype.$o.call(this,a,y,x,E)},wt.Sj=function(a,y,x,E,b){var z=this.se(),tt=this.transform,ot=1/(tt.m11*tt.m22-tt.m12*tt.m21),rt=tt.m22*ot,at=-tt.m12*ot,ut=-tt.m21*ot,ft=tt.m11*ot,vt=ot*(tt.m21*tt.dy-tt.m22*tt.dx),xt=ot*(tt.m12*tt.dx-tt.m11*tt.dy);if(this.areaBackground!==null)return tt=this.actualBounds,se.Ff(tt.left,tt.top,tt.right,tt.bottom,a,y,x,E,b);if(this.background!==null)return z=a*rt+y*ut+vt,ot=a*at+y*ft+xt,a=x*rt+E*ut+vt,rt=x*at+E*ft+xt,b.h(0,0),x=this.naturalBounds,z=se.Ff(0,0,x.width,x.height,z,ot,a,rt,b),b.transform(tt),z;z||(rt=1,ut=at=0,ft=1,xt=vt=0),ot=a*rt+y*ut+vt,a=a*at+y*ft+xt,rt=x*rt+E*ut+vt,x=x*at+E*ft+xt,b.h(rt,x),E=(rt-ot)*(rt-ot)+(x-a)*(x-a),at=!1,ft=this.O.s,xt=ft.length,ut=It.alloc(),vt=null,y=1/0;var Pt=null,Mt=this.isClipping&&this.na===tn.Spot;Mt&&(Pt=It.alloc(),vt=this.Pb(),(at=vt.Sj(ot,a,rt,x,Pt))&&(y=(ot-Pt.x)*(ot-Pt.x)+(a-Pt.y)*(a-Pt.y)));for(var jt=0;jt<xt;jt++){var Tt=ft[jt];Tt.visible&&Tt!==vt&&Tt.Sj(ot,a,rt,x,ut)&&(at=!0,Tt=(ot-ut.x)*(ot-ut.x)+(a-ut.y)*(a-ut.y),Tt<E&&(E=Tt,b.set(ut)))}return Mt&&(y>E&&b.set(Pt),It.free(Pt)),It.free(ut),z&&b.transform(tt),at},wt.Gj=function(){for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Gj();ee.prototype.Gj.call(this)},wt.v=function(a){if(!Sa(this)){ee.prototype.v.call(this,a),a=null,(this.na===tn.Auto||this.na===tn.Link)&&(a=this.Pb());for(var y=this.O.s,x=y.length,E=0;E<x;E++){var b=y[E];if((b===a||b.isPanelMain)&&b.v(!0),!b.desiredSize.w()){var z=Us(b,!1);(b instanceof ks||b instanceof tn||b instanceof bo||z!==He)&&b.v(!0)}}}},wt.Uj=function(){if(!Sa(this)){Pr(this,!0),Xl(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Uj()}},wt.Uk=function(){if(!(this.l&2048)){Wa(this,!0),Na(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Wu()}},wt.Wu=function(){Na(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Wu()},wt.Wl=function(a,y,x,E){var b=this.jg;b.h(0,0,0,0);var z=this.desiredSize,tt=this.minSize;x===void 0&&(x=tt.width,E=tt.height),x=Math.max(x,tt.width),E=Math.max(E,tt.height);var ot=this.maxSize;isNaN(z.width)||(a=Math.min(z.width,ot.width)),isNaN(z.height)||(y=Math.min(z.height,ot.height)),a=Math.max(x,a),y=Math.max(E,y);var rt=this.yb;a=Math.max(a-rt.left-rt.right,0),y=Math.max(y-rt.top-rt.bottom,0);var at=this.O.s;at.length!==0&&this.na.measure(this,a,y,at,b,x,E),a=b.width+rt.left+rt.right,rt=b.height+rt.top+rt.bottom,isFinite(z.width)&&(a=z.width),isFinite(z.height)&&(rt=z.height),a=Math.min(ot.width,a),rt=Math.min(ot.height,rt),a=Math.max(tt.width,a),rt=Math.max(tt.height,rt),a=Math.max(x,a),rt=Math.max(E,rt),Ir(b,a,rt),Ir(this.naturalBounds,a,rt),this.Ge(0,0,a,rt)},wt.Pb=function(){if(this.$g===null){var a=this.O.s,y=a.length;if(y===0)return null;for(var x=0;x<y;x++){var E=a[x];if(E.isPanelMain===!0)return this.$g=E}this.$g=a[0]}return this.$g};function Cu(a){return a.part!==null?a.part.locationObject:null}wt.eh=function(a,y,x,E){var b=this.O.s;if(this.actualBounds.h(a,y,x,E),b.length!==0){if(!this.desiredSize.w()){a=Us(this,!0);var z=this.measuredBounds;y=z.width,z=z.height;var tt=this.Kg,ot=tt.left+tt.right;switch(tt=tt.top+tt.bottom,y===x&&z===E&&(a=He),a){case He:(y>x||z>E)&&(this.v(),this.measure(y>x?x:y,z>E?E:z,0,0));break;case Xe:this.v(!0),this.measure(x+ot,E+tt,0,0);break;case $n:this.v(!0),this.measure(x+ot,z+tt,0,0);break;case hi:this.v(!0),this.measure(y+ot,E+tt,0,0)}}this.na.arrange(this,b,this.jg)}},wt.gh=function(a){var y=this.naturalBounds,x=Cu(this);if(Fo(0,0,y.width,y.height,a.x,a.y)){y=this.O.s;for(var E=y.length,b=It.allocAt(0,0);E--;){var z=y[E];if((z.visible||z===x)&&(Mn(b.set(a),z.transform),z.ca(b)))return It.free(b),!0}return It.free(b),!(this.Ma===null&&this.areaBackground===null)}return!1},wt.ks=function(a){if(this.bindingId===a)return this;for(var y=this.O.s,x=y.length,E=0;E<x;E++){var b=y[E].ks(a);if(b!==null)return b}return null},wt.qm=function(a,y){if(y(this,a),a instanceof tn){a=a.O.s;for(var x=a.length,E=0;E<x;E++)this.qm(a[E],y)}};function Fd(a,y){s1(a,a,y)}function s1(a,y,x){x(y),y=y.O.s;for(var E=y.length,b=0;b<E;b++){var z=y[b];z instanceof tn&&s1(a,z,x)}}function vx(a,y){a1(a,a,y)}function a1(a,y,x){if(x(y),y instanceof tn){y=y.O.s;for(var E=y.length,b=0;b<E;b++)a1(a,y[b],x)}}wt.Nl=function(a){return l1(this,this,a)};function l1(a,y,x){if(x(y))return y;if(y instanceof tn){y=y.O.s;for(var E=y.length,b=0;b<E;b++){var z=l1(a,y[b],x);if(z!==null)return z}}return null}wt.fb=function(a){if(this.name===a)return this;var y=this.O.s,x=y.length;this.Hh===null&&this.itemTemplateMap===null||(x=Gf(this));for(var E=0;E<x;E++){var b=y[E];if(b instanceof tn){var z=b.fb(a);if(z!==null)return z}if(b.name===a)return b}return null};function u1(a){a=a.O.s;for(var y=a.length,x=0,E=0;E<y;E++){var b=a[E];b instanceof tn?x=Math.max(x,u1(b)):b instanceof Fi&&(x=Math.max(x,b.ig/2*b.strokeMiterLimit*b.Df()))}return x}wt.se=function(){return!(this.type===tn.TableRow||this.type===tn.TableColumn)};function _u(a){return a.type===tn.TableRow||a.type===tn.TableColumn}wt.ic=function(a,y,x){if(this.pickable===!1||(y===void 0&&(y=null),x===void 0&&(x=null),Ls(this)))return null;var E=this.naturalBounds,b=1/this.Df(),z=this.se(),tt=z?a:Mn(It.allocAt(a.x,a.y),this.transform),ot=this.diagram,rt=10,at=5;if(ot!==null&&(rt=ot.Ql("extraTouchArea"),at=rt/2),Fo(-(at*b),-(at*b),E.width+rt*b,E.height+rt*b,tt.x,tt.y)){if(!this.isAtomic){b=this.O.s;var ut=b.length;if(ot=It.alloc(),at=(rt=this.isClipping&&this.na===tn.Spot)?this.Pb():null,rt&&(at.se()?Mn(ot.set(a),at.transform):ot.set(a),!at.ca(ot)))return It.free(ot),z||It.free(tt),null;for(var ft=Cu(this);ut--;){var vt=b[ut];if((vt.visible||vt===ft)&&(vt.se()?Mn(ot.set(a),vt.transform):ot.set(a),!rt||vt!==at)){var xt=null;if(vt instanceof tn?xt=vt.ic(ot,y,x):vt.pickable===!0&&vt.ca(ot)&&(xt=vt),xt!==null&&(y!==null&&(xt=y(xt)),xt!==null&&(x===null||x(xt))))return It.free(ot),z||It.free(tt),xt}}It.free(ot)}return this.background===null&&this.areaBackground===null?(z||It.free(tt),null):(a=Fo(0,0,E.width,E.height,tt.x,tt.y)?this:null,z||It.free(tt),a)}return z||It.free(tt),null},wt.ji=function(a,y,x,E){if(this.pickable===!1)return!1;y===void 0&&(y=null),x===void 0&&(x=null);var b=this.naturalBounds,z=this.se(),tt=z?a:Mn(It.allocAt(a.x,a.y),this.transform);if(b=Fo(0,0,b.width,b.height,tt.x,tt.y),_u(this)||b){if(!this.isAtomic){for(var ot=this.O.s,rt=ot.length,at=It.alloc(),ut=Cu(this);rt--;){var ft=ot[rt];if(ft.visible||ft===ut){ft.se()?Mn(at.set(a),ft.transform):at.set(a);var vt=ft;ft=ft instanceof tn?ft:null,(ft!==null?ft.ji(at,y,x,E):vt.ca(at))&&vt.pickable!==!1&&(y!==null&&(vt=y(vt)),vt===null||x!==null&&!x(vt)||E.add(vt))}}It.free(at)}return z||It.free(tt),b&&(this.background!==null||this.areaBackground!==null)}return z||It.free(tt),!1},wt.Cf=function(a,y,x,E,b,z){if(this.pickable===!1)return!1;y===void 0&&(y=null),x===void 0&&(x=null);var tt=z;if(z===void 0&&(tt=Di.alloc(),tt.reset()),tt.multiply(this.transform),this.fh(a,tt))return mv(this,y,x,b),z===void 0&&Di.free(tt),!0;if(this.Yc(a,tt)){if(!this.isAtomic)for(var ot=Cu(this),rt=this.O.s,at=rt.length;at--;){var ut=rt[at];if(ut.visible||ut===ot){var ft=ut.actualBounds,vt=this.naturalBounds;ft.x>vt.width||ft.y>vt.height||0>ft.x+ft.width||0>ft.y+ft.height||(ft=ut,ut=ut instanceof tn?ut:null,vt=Di.alloc(),vt.set(tt),(ut!==null?ut.Cf(a,y,x,E,b,vt):br(ft,a,E,vt))&&(y!==null&&(ft=y(ft)),ft===null||x!==null&&!x(ft)||b.add(ft)),Di.free(vt))}}return z===void 0&&Di.free(tt),E}return z===void 0&&Di.free(tt),!1};function mv(a,y,x,E){for(var b=a.O.s,z=b.length;z--;){var tt=b[z];if(tt.visible){var ot=tt.actualBounds,rt=a.naturalBounds;ot.x>rt.width||ot.y>rt.height||0>ot.x+ot.width||0>ot.y+ot.height||(tt instanceof tn&&mv(tt,y,x,E),y!==null&&(tt=y(tt)),tt===null||x!==null&&!x(tt)||E.add(tt))}}}wt.og=function(a,y,x,E,b,z){if(this.pickable===!1)return!1;x===void 0&&(x=null),E===void 0&&(E=null);var tt=this.naturalBounds,ot=this.se(),rt=ot?a:Mn(It.allocAt(a.x,a.y),this.transform),at=ot?y:Mn(It.allocAt(y.x,y.y),this.transform),ut=rt.Bf(at),ft=0<rt.x&&rt.x<tt.width&&0<rt.y&&rt.y<tt.height||Un(rt.x,rt.y,0,0,0,tt.height)<=ut||Un(rt.x,rt.y,0,tt.height,tt.width,tt.height)<=ut||Un(rt.x,rt.y,tt.width,tt.height,tt.width,0)<=ut||Un(rt.x,rt.y,tt.width,0,0,0)<=ut;if(tt=rt.zd(0,0)<=ut&&rt.zd(0,tt.height)<=ut&&rt.zd(tt.width,0)<=ut&&rt.zd(tt.width,tt.height)<=ut,ot||(It.free(rt),It.free(at)),ft){if(!this.isAtomic){rt=It.alloc(),at=It.alloc(),ut=Cu(this);for(var vt=this.O.s,xt=vt.length;xt--;){var Pt=vt[xt];if(Pt.visible||Pt===ut){var Mt=Pt.actualBounds,jt=this.naturalBounds;(!ot||!(Mt.x>jt.width||Mt.y>jt.height||0>Mt.x+Mt.width||0>Mt.y+Mt.height))&&(Pt.se()?(Mt=Pt.transform,Mn(rt.set(a),Mt),Mn(at.set(y),Mt)):(rt.set(a),at.set(y)),Mt=Pt,Pt=Pt instanceof tn?Pt:null,(Pt!==null?Pt.og(rt,at,x,E,b,z):Mt.tx(rt,at,b))&&(x!==null&&(Mt=x(Mt)),Mt===null||E!==null&&!E(Mt)||z.add(Mt)))}}It.free(rt),It.free(at)}return b?ft:tt}return!1};function vv(a){var y=null;return a instanceof Fi&&(y=a.spot1,y===Or&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot1)),y===null&&(y=ir),y}function yv(a){var y=null;return a instanceof Fi&&(y=a.spot2,y===Or&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot2)),y===null&&(y=zs),y}wt.add=function(a){for(var y=[],x=0;x<arguments.length;++x)y[x]=arguments[x];for(x=0;x<y.length;x++)this.Gb(this.O.count,y[x]);return this},wt.M=function(a){return this.O.M(a)},wt.Gb=function(a,y){y instanceof ei&&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!==tn.Grid||y instanceof Fi||zt("Can only add Shapes to a Grid Panel, not: "+y),this.na!==tn.Graduated||y instanceof Fi||y instanceof bo||zt("Can only add Shapes or TextBlocks to a Graduated Panel, not: "+y),y.wi(this),y.Ng=null,this.itemArray!==null){var E=y.data;E!==null&&typeof E=="object"&&(this.ge===null&&(this.ge=new ri),this.ge.add(E,y))}var b=this.O;if(E=-1,x===this){for(var z=-1,tt=this.O.s,ot=tt.length,rt=0;rt<ot;rt++)if(tt[rt]===y){z=rt;break}if(z!==-1){if(z===a||z+1>=b.count&&a>=b.count)return;b.mb(z),E=z}else zt("element "+y.toString()+" has panel "+x.toString()+" but is not contained by it.")}(0>a||a>b.count)&&(a=b.count),b.Gb(a,y),(a===0||y.isPanelMain)&&(this.$g=null),Sa(this)||this.v(),y.v(!1),y.portId!==null?this.Te=!0:y instanceof tn&&y.Te===!0&&(this.Te=!0),this.graduatedIntervals=null,this.If()||E0(this,y,!1),x=this.part,x!==null&&(x.Rh=null,x.ag=NaN,this.Te&&x instanceof Fn&&(x.Te=!0),x.Te&&x instanceof Fn&&(x.wc=null),b=this.diagram,b!==null&&b.undoManager.isUndoingRedoing||(E!==-1&&x.cb(Ar,"elements",this,y,null,E,null),x.cb(ur,"elements",this,null,y,null,a)))};function Sv(a,y){a.l=y?a.l|16777216:a.l&-16777217}wt.remove=function(a){for(var y=this.O.s,x=y.length,E=-1,b=0;b<x;b++)if(y[b]===a){E=b;break}E!==-1&&this.pc(E,!0)},wt.mb=function(a){0<=a&&this.pc(a,!0)},wt.pc=function(a,y){var x=this.O,E=x.M(a);if(E.Ng=null,E.wi(null),this.ge!==null){var b=E.data;typeof b=="object"&&this.ge.remove(b)}x.mb(a),Pr(this,!1),this.v(),this.$g===E&&(this.$g=null),this.graduatedIntervals=null;var z=this.part;z!==null&&(z.Rh=null,z.ag=NaN,z.Wb(),z instanceof Fn&&(E instanceof tn?E.qm(E,function(tt,ot){Vv(z,ot,y)}):Vv(z,E,y)),x=this.diagram,x!==null&&x.undoManager.isUndoingRedoing||z.cb(Ar,"elements",this,E,null,a,null))},wt.Fb=function(a){0>a&&Dn(a,">= 0",tn,"getRowDefinition:idx"),a=Math.round(a);var y=this.rowDefs;if(y[a]===void 0){var x=new Cr;x.wi(this),x.isRow=!0,x.index=a,y[a]=x,this.cb(ur,"rowdefs",this,null,x,null,a)}return y[a]},wt.oA=function(a){if(0>a&&Dn(a,">= 0",tn,"removeRowDefinition:idx"),this.rowCount!==0){a=Math.round(a);var y=this.rowDefs,x=y[a];if(x){y[a]=void 0;for(var E=y.length-1;0<=E&&y[E--]===void 0;)y.length--;this.cb(Ar,"rowdefs",this,x,null,a,null),this.v()}}};function h1(a,y,x){var E=a.rowDefs;if(!(0>y)){if(E[y]=x instanceof Cr?x:void 0,!x)for(y=E.length-1;0<=y&&E[y--]===void 0;)E.length--;a.v()}}wt.Eb=function(a){0>a&&Dn(a,">= 0",tn,"getColumnDefinition:idx"),a=Math.round(a);var y=this.colDefs;if(y[a]===void 0){var x=new Cr;x.wi(this),x.isRow=!1,x.index=a,y[a]=x,this.cb(ur,"coldefs",this,null,x,null,a)}return y[a]},wt.jA=function(a){if(0>a&&Dn(a,">= 0",tn,"removeColumnDefinition:idx"),this.columnCount!==0){a=Math.round(a);var y=this.colDefs,x=y[a];if(x){y[a]=void 0;for(var E=y.length-1;0<=E&&y[E--]===void 0;)y.length--;this.cb(Ar,"coldefs",this,x,null,a,null),this.v()}}};function d1(a,y,x){var E=a.colDefs;if(!(0>y)){if(E[y]=x instanceof Cr?x:void 0,!x)for(y=E.length-1;0<=y&&E[y--]===void 0;)E.length--;a.v()}}wt.Gy=function(a){var y=null;return a.isRow?y=this.Fb(a.index):a.isRow||(y=this.Eb(a.index)),y&&A0(y,a),this},wt.Hy=function(a,y){return(a=this.Fb(a))&&A0(a,new Cr(y)),this},wt.By=function(a,y){return(a=this.Eb(a))&&A0(a,new Cr(y)),this},wt.nz=function(a){if(0>a||this.type!==tn.Table||this.rowCount===0)return-1;for(var y=0,x=this.rowDefs,E=x.length,b=this.topIndex;b<E;b++){var z=x[b];if(z!==void 0&&(y+=z.total,a<y))break}return b},wt.fz=function(a){if(0>a||this.type!==tn.Table||this.columnCount===0)return-1;for(var y=0,x=this.colDefs,E=x.length,b=this.leftIndex;b<E;b++){var z=x[b];if(z!==void 0&&(y+=z.total,a<y))break}return b},wt.Fz=function(a,y){if(y===void 0&&(y=new It(NaN,NaN)),this.type!==tn.Graduated)return y.h(NaN,NaN),y;a=Math.min(Math.max(a,this.graduatedMin),this.graduatedMax);var x=this.Pb();return x.geometry.Pu((a-this.graduatedMin)/this.graduatedRange,y),x.transform.Ga(y)},wt.Gz=function(a){if(this.type!==tn.Graduated)return NaN;var y=this.Pb();return y.transform.Cd(a),y.geometry.xx(a)*this.graduatedRange+this.graduatedMin};function c1(a){return a=a.allBindings,a!==null&&a._isFrozen}function Za(a){var y=a.allBindings;if(y===null)a.data!==null&&zt("Template cannot have .data be non-null: "+a),a.allBindings=y=new $e;else if(y._isFrozen)return;var x=new $e;Sv(a,!1),a.qm(a,function(at,ut){ut.th();var ft=ut.localBindings;if(ft!==null)for(cc(ut,!1),ft=ft.iterator;ft.next();){var vt=ft.value;vt.mode===lp&&cc(ut,!0);var xt=vt.sourceName;xt!==null&&(xt==="/"&&Sv(at,!0),xt=MS(vt,at,ut),xt!==null&&(x.add(xt),xt.srcBindings===null&&(xt.srcBindings=new $e),xt.srcBindings.add(vt))),y.add(vt)}if(ut instanceof tn&&ut.type===tn.Table){if(0<ut.rowCount){for(at=ut.rowDefs,ft=at.length,vt=0;vt<ft;vt++)if(xt=at[vt],xt!==void 0&&xt.be!==null)for(var Pt=xt.be.iterator;Pt.next();){var Mt=Pt.value;Mt.xd=xt,Mt.to=2,Mt.wl=xt.index,y.add(Mt)}}if(0<ut.columnCount){for(ut=ut.colDefs,at=ut.length,ft=0;ft<at;ft++)if(vt=ut[ft],vt!==void 0&&vt.be!==null)for(xt=vt.be.iterator;xt.next();)Pt=xt.value,Pt.xd=vt,Pt.to=1,Pt.wl=vt.index,y.add(Pt)}}});for(var E=x.iterator;E.next();){var b=E.value;if(b.srcBindings!==null){cc(b,!0);for(var z=b.srcBindings.iterator;z.next();){var tt=z.value;b.localBindings===null&&(b.localBindings=new $e),b.localBindings.add(tt)}}b.srcBindings=null}for(E=y.iterator;E.next();)if(b=E.value,z=b.xd,z!==null){b.xd=null;var ot=b.targetProperty,rt=ot.indexOf(".");0<rt&&z instanceof tn&&(tt=ot.substring(0,rt),ot=ot.substr(rt+1),rt=z.fb(tt),rt!==null?(z=rt,b.targetProperty=ot):On('Warning: unable to find GraphObject named "'+tt+'" for Binding: '+b.toString())),z instanceof Cr?(tt=to(z.panel),b.Ai=tt===void 0?-1:tt,z.panel.bindingId=b.Ai):z instanceof ee?(tt=to(z),b.Ai=tt===void 0?-1:tt,z.bindingId=b.Ai):zt("Unknown type of binding target: "+z)}y.freeze(),a instanceof ei&&a.Zc()&&a.Va()}wt.Uy=function(a){a===void 0&&(a=!1);var y=this.copy();return vx(y,function(x){x instanceof tn&&(x.allBindings=null,x.ub=null);var E=x.localBindings;E!==null&&(x.localBindings=null,E.each(function(b){x.bind(b.copy())})),E=x.animationTriggers,E!==null&&(x.animationTriggers=null,E.each(function(b){x.Jv(b.value.copy())}))}),a&&Za(y),y},wt.La=function(a){var y=this.allBindings;if(y!==null)for(a===void 0&&(a=""),y=y.iterator;y.next();){var x=y.value,E=x.sourceProperty;if((a===""||E===""||E===a)&&(E=x.targetProperty,x.converter!==null||E!=="")){E=this.data;var b=x.sourceName;if(b!==null){if(b==="")E=this;else if(b==="/")E=this;else if(b===".")E=this;else if(b==="..")E=this;else if(E=this.fb(b),E===null)continue}else if(x.isToModel)if(E=this.diagram,E!==null)E=E.model.modelData;else continue;var z=this,tt=x.Ai;if(tt!==-1){if(z=this.ks(tt),z===null)continue}else x.xd!==null&&(z=x.xd);if(b==="/"?E=z.part:b==="."?E=z:b===".."&&(E=z.panel),b=x.to,b!==0){if(!(z instanceof tn))continue;b===1?z=z.Eb(x.wl):b===2&&(z=z.Fb(x.wl))}z!==void 0&&x.Mv(z,E)}}},wt.sx=function(a){return a==null||this.ge===null?null:this.ge.I(a)};function yx(a,y){a=a.O.s;for(var x=a.length,E=y.length,b=0,z=null;b<x&&(z=a[b],!(z instanceof tn&&z.data!==null));)b++,z=a[b];if(x-b!==E)return!0;if(z===null)return 0<E;for(var tt=0;b<x&&tt<E;){if(z=a[b],!(z instanceof tn)||z.data!==y[tt])return!0;b++,tt++}return!1}function Gf(a){if(a.type===tn.Spot||a.type===tn.Auto)return Math.min(a.O.length,1);if(a.type===tn.Link){a=a.O;for(var y=a.length,x=0;x<y;x++){var E=a.M(x);if(!(E instanceof Fi&&E.isPanelMain))break}return x}return a.type===tn.Table&&0<a.O.length&&(a=a.O.M(0),a.isPanelMain&&a instanceof tn&&_u(a))?1:0}wt.mv=function(){for(var a=Gf(this);this.O.length>a;)this.pc(this.O.length-1,!1);g1(this,this.itemArray)};function g1(a,y){var x=Gf(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 E=0;E<x;E++)C0(a,y[E],E,!0)}else{E=x;for(var b=0;b<y.length;b++,E++){var z=y[b],tt=E<a.O.length?a.O.M(E):null;if(tt instanceof tn){if(tt.data!==z){var ot=wv(a,tt.data),rt=wv(a,z),at=rt!==ot;at||(ot=Pv(a,ot),at=Pv(a,rt)!==ot),at?(a.pc(E,!1),C0(a,z,b,!1)):tt.data=z}}else C0(a,z,b,!1)}for(;E<a.O.length;)a.pc(E,!1);a.$g=null,xv(a,x,0),Sa(a)||a.v(),a.graduatedIntervals=null,a.If()||E0(a,a,!1),y=a.part,y!==null&&(y.Rh=null,y.ag=NaN,a.Te&&y instanceof Fn&&(y.Te=!0),y.Te&&y instanceof Fn&&(y.wc=null))}}function C0(a,y,x,E){if(!(y==null||0>x)){var b=wv(a,y);if(b=Pv(a,b),b!==null){if(Za(b),b=b.copy(),b.l&16777216){var z=a.ih();z!==null&&Sv(z,!0)}typeof y=="object"&&(a.ge===null&&(a.ge=new ri),a.ge.add(y,b)),z=x+Gf(a),a.Gb(z,b),E&&(b.ub=y,xv(a,z,x),b.ub=null),b.data=y}}}function xv(a,y,x){for(a=a.O;y<a.length;){var E=a.M(y);if(E instanceof tn){var b=y,z=x;E.type===tn.TableRow?E.row=b:E.type===tn.TableColumn&&(E.column=b),E.itemIndex=z}y++,x++}}function wv(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=sr(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,E=null;return x!==null&&(E=x.I(y)),E===null&&(x!==null&&(E=x.I("")),E===null&&(f1||(f1=!0,On('No item template Panel found for category "'+y+'" on '+a),On(" Using default item template."),a=new tn,y=new bo,y.bind(new cr("text","",Xi)),a.add(y),p1=a),E=p1)),E}function E0(a,y,x){var E=y.enabledChanged;if(E!==null&&E(y,x),y instanceof tn){y=y.O.s,E=y.length;for(var b=0;b<E;b++){var z=y[b];x&&z instanceof tn&&!z.isEnabled||E0(a,z,x)}}}function jl(a,y){y.name=a,ol.add(a,y)}qt.Object.defineProperties(tn.prototype,{type:{get:function(){return this.na},set:function(a){var y=this.na;y!==a&&(this.na=a,this.isAtomic=this.na===tn.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&&Dn(a,">= 0",tn,"padding"),a=new yi(a)):(0>a.left&&Dn(a.left,">= 0",tn,"padding:value.left"),0>a.right&&Dn(a.right,">= 0",tn,"padding:value.right"),0>a.top&&Dn(a.top,">= 0",tn,"padding:value.top"),0>a.bottom&&Dn(a.bottom,">= 0",tn,"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:Rs},set:function(a){typeof a=="number"&&(a=new yi(a));var y=this.defaultSeparatorPadding;y.D(a)||(a=a.J(),this.T===null&&(this.T=new Ta),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 vo)&&(a instanceof vo&&a.freeze(),this.T===null&&(this.T=new Ta),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 Ta),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,E=0,b=0;b<x;b++){var z=a[b];typeof z=="number"&&0<=z&&isFinite(z)||zt("defaultRowSeparatorDashArray value "+z+" at index "+b+" must be a positive number or zero."),E+=z}if(E===0){if(y===null)return;a=null}}this.T===null&&(this.T=new Ta),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 vo)&&(a instanceof vo&&a.freeze(),this.T===null&&(this.T=new Ta),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 Ta),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,E=0,b=0;b<x;b++){var z=a[b];typeof z=="number"&&0<=z&&isFinite(z)||zt("defaultColumnSeparatorDashArray value "+z+" at index "+b+" must be a positive number or zero."),E+=z}if(E===0){if(y===null)return;a=null}}this.T===null&&(this.T=new Ta),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 Ta),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&&Tl(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&&Tl(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 Eu),this.ra.lq=a,this.v(),this.g("graduatedMin",y,a),_r(this)&&(a=this.part,a!==null&&zo(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 Eu),this.ra.F=a,this.v(),this.g("graduatedMax",y,a),_r(this)&&(a=this.part,a!==null&&zo(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 Eu),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 Eu),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 Eu,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 Eu,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 Eu,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 Eu,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 Ta),this.T.Pc}},rowCount:{get:function(){return this.T===null?0:this.rowDefs.length}},colDefs:{get:function(){return this.T===null&&(this.T=new Ta),this.T.Oc}},columnCount:{get:function(){return this.T===null?0:this.colDefs.length}},rowSizing:{get:function(){return this.T!==null?this.T.ob:L0},set:function(a){var y=this.rowSizing;y!==a&&(this.T===null&&(this.T=new Ta),this.T.ob=a,this.v(),this.g("rowSizing",y,a))}},columnSizing:{get:function(){return this.T!==null?this.T.j:L0},set:function(a){var y=this.columnSizing;y!==a&&(this.T===null&&(this.T=new Ta),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 Ta),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 Ta),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 ei&&!(this instanceof io);Za(this),this.ub=a;var E=this.diagram;E!==null&&(x?(x=E.partManager,this instanceof rn?(y!==null&&x.bf.remove(y),a!==null&&x.bf.add(a,this)):this instanceof ei&&(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),E!==null&&E.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 gc),this.A.nb=a)}},itemArray:{get:function(){return this.Hh},set:function(a){var y=this.Hh;if(y!==a||a!==null&&yx(this,a)){var x=this.diagram;y!==a&&(x!==null&&y!==null&&ly(x.partManager,this,x),this.Hh=a,x!==null&&a!==null&&ay(x.partManager,this)),this.g("itemArray",y,a),x!==null&&x.undoManager.isUndoingRedoing||g1(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 ri}var y=this.itemTemplateMap.I("");y!==a&&((a instanceof ei||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(););Ni(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&&(Ni(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 Ai&&(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&&E0(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))}}}),qt.Object.defineProperties(tn,{Position:{get:function(){return ol.I("Position")}},Horizontal:{get:function(){return ol.I("Horizontal")}},Vertical:{get:function(){return ol.I("Vertical")}},Spot:{get:function(){return ol.I("Spot")}},Auto:{get:function(){return ol.I("Auto")}},Table:{get:function(){return ol.I("Table")}},Viewbox:{get:function(){return ol.I("Viewbox")}},TableRow:{get:function(){return ol.I("TableRow")}},TableColumn:{get:function(){return ol.I("TableColumn")}},Link:{get:function(){return ol.I("Link")}},Grid:{get:function(){return ol.I("Grid")}},Graduated:{get:function(){return ol.I("Graduated")}}}),tn.prototype.rebuildItemElements=tn.prototype.mv,tn.prototype.findItemPanelForData=tn.prototype.sx,tn.prototype.updateTargetBindings=tn.prototype.La,tn.prototype.copyTemplate=tn.prototype.Uy,tn.prototype.graduatedValueForPoint=tn.prototype.Gz,tn.prototype.graduatedPointForValue=tn.prototype.Fz,tn.prototype.findColumnForLocalX=tn.prototype.fz,tn.prototype.findRowForLocalY=tn.prototype.nz,tn.prototype.addColumnDefinition=tn.prototype.By,tn.prototype.addRowDefinition=tn.prototype.Hy,tn.prototype.addRowColumnDefinition=tn.prototype.Gy,tn.prototype.removeColumnDefinition=tn.prototype.jA,tn.prototype.getColumnDefinition=tn.prototype.Eb,tn.prototype.removeRowDefinition=tn.prototype.oA,tn.prototype.getRowDefinition=tn.prototype.Fb,tn.prototype.removeAt=tn.prototype.mb,tn.prototype.remove=tn.prototype.remove,tn.prototype.insertAt=tn.prototype.Gb,tn.prototype.elt=tn.prototype.M,tn.prototype.add=tn.prototype.add,tn.prototype.findObject=tn.prototype.fb,tn.prototype.findInVisualTree=tn.prototype.Nl,tn.prototype.walkVisualTreeFrom=tn.prototype.qm,tn.prototype.findMainElement=tn.prototype.Pb;var f1=!1,p1=null,ol=new ri;tn.className="Panel",tn.definePanelLayout=jl,jl("Position",new d0),jl("Vertical",new g0),jl("Auto",new p0),jl("Link",new w0);function Eu(){this.lq=0,this.F=100,this.ia=10,this.V=0,this.Zh=this.o=this.j=this.u=null}Eu.prototype.copy=function(){var a=new Eu;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},Eu.className="GradPanelSettings";function Ta(){this.Pc=[],this.Oc=[],this.j=this.ob=L0,this.hb=this.Hb=0,this.Qp=Rs,this.Ha=1,this.V=this.ia=null,this.F=1,this.nb=this.o=this.u=null}Ta.prototype.copy=function(a){for(var y=new Ta,x=this.Pc,E=x.length,b=y.Pc,z=0;z<E;z++)if(x[z]!==void 0){var tt=x[z].copy();tt.wi(a),b[z]=tt}for(x=this.Oc,E=x.length,b=y.Oc,z=0;z<E;z++)x[z]!==void 0&&(tt=x[z].copy(),tt.wi(a),b[z]=tt);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},Ta.className="TablePanelSettings";function Cr(a){xo(this),this.Me=null,this.uq=!0,this.Za=0,this.Hc=NaN,this.jj=0,this.hj=1/0,this.Jb=Or,this.pa=this.oc=this.oa=0,this.be=null,this.oo=Cv,this.hg=Mi,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))}Cr.prototype.copy=function(){var a=new Cr;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=Vn(this.separatorDashArray)),a.Ma=this.Ma,a.Pm=this.Pm,a.be=this.be,a};function A0(a,y){y.isRow?a.height=y.height:a.width=y.width,a.minimum=y.minimum,a.maximum=y.maximum,a.alignment=y.alignment,a.stretch=y.stretch,a.sizing=y.sizing,a.dg=y.separatorPadding===null?null:y.separatorPadding.J(),a.separatorStroke=y.separatorStroke,a.separatorStrokeWidth=y.separatorStrokeWidth,a.tj=null,y.separatorDashArray&&(a.tj=Vn(y.separatorDashArray)),a.background=y.background,a.coversSeparators=y.coversSeparators,a.be=y.be}wt=Cr.prototype,wt.qb=function(a){a.classType===Cr&&(this.sizing=a)},wt.toString=function(){return"RowColumnDefinition "+(this.isRow?"(Row ":"(Column ")+this.index+") #"+to(this)},wt.wi=function(a){this.Me=a},wt.Io=function(a){var y=0,x=this.Me;if(this.index!==a&&(a=this.separatorStroke,a===null&&x!==null&&(a=this.isRow?x.defaultRowSeparatorStroke:x.defaultColumnSeparatorStroke),a!==null&&(y=this.separatorStrokeWidth,isNaN(y)&&(x!==null?y=this.isRow?x.defaultRowSeparatorStrokeWidth:x.defaultColumnSeparatorStrokeWidth:y=0))),a=this.dg,a===null)if(x!==null)a=x.defaultSeparatorPadding;else return y;return y+(this.isRow?a.top:a.left)},wt.Wc=function(){var a=0,y=this.Me,x=0,E=this.isRow;if(y!==null&&y.type===tn.Table)for(var b=E?y.rowDefs.length:y.colDefs.length,z=0;z<b;z++){var tt=E?y.rowDefs[z]:y.colDefs[z];if(tt!==void 0&&tt.oa!==0){x=tt.index;break}}if(this.index!==x&&(x=this.separatorStroke,x===null&&y!==null&&(x=E?y.defaultRowSeparatorStroke:y.defaultColumnSeparatorStroke),x!==null&&(a=this.separatorStrokeWidth,isNaN(a)&&(y!==null?a=E?y.defaultRowSeparatorStrokeWidth:y.defaultColumnSeparatorStrokeWidth:a=0))),E=this.dg,E===null)if(y!==null)E=y.defaultSeparatorPadding;else return a;return a+(this.isRow?E.top+E.bottom:E.left+E.right)},wt.Ob=function(a,y,x){var E=this.Me;if(E!==null&&(E.cb(Uo,a,this,y,x,void 0,void 0),this.be!==null&&(y=E.diagram,y!==null&&!y.skipsModelSourceBindings&&(E=E.ih(),E!==null&&(y=E.data,y!==null)))))for(x=this.be.iterator;x.next();)x.value.sp(this,y,a,E)};function M0(a){if(a.sizing===Cv){var y=a.Me;return a.isRow?y.rowSizing:y.columnSizing}return a.sizing}wt.bind=function(a,y,x,E){var b=null;return typeof a=="string"?b=new cr(a,y,x,E):b=a,b.xd=this,a=this.panel,a!==null&&(y=a.ih(),y!==null&&c1(y)&&zt("Cannot add a Binding to a RowColumnDefinition that is already frozen: "+b+" on "+a)),this.be===null&&(this.be=new $e),this.be.add(b),this},qt.Object.defineProperties(Cr.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&&Dn(a,">= 0",Cr,"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&&Dn(a,">= 0",Cr,"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))&&Dn(a,">= 0",Cr,"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&&Dn(a,">= 0",Cr,"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 yi(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&&pc(a,"RowColumnDefinition.separatorStroke"),a instanceof vo&&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,E=0,b=0;b<x;b++){var z=a[b];typeof z=="number"&&0<=z&&isFinite(z)||zt("separatorDashArray value "+z+" at index "+b+" must be a positive number or zero."),E+=z}if(E===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&&pc(a,"RowColumnDefinition.background"),a instanceof vo&&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}}}),Cr.prototype.computeEffectiveSpacing=Cr.prototype.Wc,Cr.prototype.computeEffectiveSpacingTop=Cr.prototype.Io;var Cv=new De(Cr,"Default",0),Hf=new De(Cr,"None",1),L0=new De(Cr,"ProportionalExtra",2);Cr.className="RowColumnDefinition",Cr.Default=Cv,Cr.None=Hf,Cr.ProportionalExtra=L0;function Fi(a,y){ee.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)}re(Fi,ee),Fi.prototype.cloneProtected=function(a){ee.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=Vn(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 kd(a){a.Na===null?a.Na=new Mv:a.Na.nc&&(a.Na=a.Na.copy())}wt=Fi.prototype,wt.th=function(){ee.prototype.th.call(this),this.Na!==null&&(this.Na.nc=!0)},wt.qb=function(a){a===He||a===Yn||a===zi||a===Mi?this.geometryStretch=a:ee.prototype.qb.call(this,a)},wt.toString=function(){return"Shape("+(this.figure!=="None"?this.figure:this.toArrow!=="None"?this.toArrow:this.fromArrow)+")#"+to(this)};function yg(a,y,x,E){var b=x.length;if(!(4>b)){var z=E.measuredBounds,tt=Math.max(1,z.width);z=z.height;for(var ot=x[0],rt=x[1],at,ut,ft,vt,xt,Pt,Mt=0,jt=Rn(),Tt=2;Tt<b;Tt+=2)at=x[Tt],ut=x[Tt+1],ft=at-ot,ot=ut-rt,ft===0&&(ft=.001),vt=ot/ft,xt=Math.atan2(ot,ft),Pt=Math.sqrt(ft*ft+ot*ot),jt.push([ft,xt,vt,Pt]),Mt+=Pt,ot=at,rt=ut;ot=x[0],rt=x[1],ft=E.measuredBounds.width,E instanceof Fi&&(ft-=E.strokeWidth),1>ft&&(ft=1),b=x=ft,at=tt/2,ut=at!==0,Tt=0,Pt=jt[Tt],ft=Pt[0],xt=Pt[1],vt=Pt[2],Pt=Pt[3];for(var Vt=0;.1<=Mt;){if(Vt===0&&(ut?(b=x,b-=at,Mt-=at,ut=!1):b=x,b===0&&(b=1)),b>Mt){qn(jt);return}b>Pt?(Vt=b-Pt,b=Pt):Vt=0;var Yt=Math.sqrt(b*b/(1+vt*vt));if(0>ft&&(Yt=-Yt),ot+=Yt,rt+=vt*Yt,a.translate(ot,rt),a.rotate(xt),a.translate(-(tt/2),-(z/2)),Vt===0&&E.hh(a,y),a.translate(tt/2,z/2),a.rotate(-xt),a.translate(-ot,-rt),Mt-=b,Pt-=b,Vt!==0){if(Tt++,Tt===jt.length){qn(jt);return}Pt=jt[Tt],ft=Pt[0],xt=Pt[1],vt=Pt[2],Pt=Pt[3],b=Vt}}qn(jt)}}wt.hh=function(a,y){var x=this.xc,E=this.Ui;if(x!==null||E!==null){var b=this.ua;if(b!==null){a.yc();var z=this.actualBounds,tt=this.naturalBounds;E!==null&&er(this,a,E,!0,!1,tt,z);var ot=this.part,rt=this.ig;if(x===null||rt!==0||ot===null||!this.isPanelMain&&ot.Pb()!==this||(rt=ot.type===tn.Link&&ot instanceof io&&ot.category==="Selection"&&ot.adornedObject instanceof Fi&&ot.adornedPart.Pb()===ot.adornedObject?ot.adornedObject.strokeWidth:0),rt===0&&(x=null),x!==null&&rt!==0&&(er(this,a,x,!1,!1,tt,z),a.lineWidth=rt,a.lineJoin=this.strokeJoin,a.lineCap=this.strokeCap,a.miterLimit=this.strokeMiterLimit),z=!1,ot&&y.Gf("drawShadows")&&(z=ot.isShadowed),a.Il===!1&&(z=!1),ot=!0,x===null||E!==null&&E!=="transparent"||(ot=!1),tt=!1,rt=this.strokeDashArray,rt!==null&&(tt=!0,a.js(rt,this.strokeDashOffset)),b.type===cn.j)a.beginPath(),a.moveTo(b.startX,b.startY),a.lineTo(b.endX,b.endY),x!==null&&a.jk(),a.Se();else if(b.type===cn.u){var at=b.startX;rt=b.startY;var ut=b.endX,ft=b.endY;b=Math.min(at,ut);var vt=Math.min(rt,ft);at=Math.abs(ut-at),rt=Math.abs(ft-rt),a.beginPath(),a.rect(b,vt,at,rt),E!==null&&a.ng(E),x!==null&&(ot&&z&&Jl(a),a.jk(),ot&&z&&xu(a)),a.Se()}else if(b.type===cn.F)at=b.startX,rt=b.startY,ut=b.endX,ft=b.endY,b=Math.abs(ut-at)/2,vt=Math.abs(ft-rt)/2,at=Math.min(at,ut)+b,rt=Math.min(rt,ft)+vt,a.beginPath(),a.moveTo(at,rt-vt),a.bezierCurveTo(at+se.wg*b,rt-vt,at+b,rt-se.wg*vt,at+b,rt),a.bezierCurveTo(at+b,rt+se.wg*vt,at+se.wg*b,rt+vt,at,rt+vt),a.bezierCurveTo(at-se.wg*b,rt+vt,at-b,rt+se.wg*vt,at-b,rt),a.bezierCurveTo(at-b,rt-se.wg*vt,at-se.wg*b,rt-vt,at,rt-vt),a.closePath(),E!==null&&a.ng(E),x!==null&&(ot&&z&&Jl(a),a.jk(),ot&&z&&xu(a)),a.Se();else if(b.type===cn.o)for(b=b.figures,rt=b.length,vt=0;vt<rt;vt++){at=b.s[vt],a.beginPath(),a.moveTo(at.startX,at.startY),ut=at.segments.s,ft=ut.length;for(var xt=null,Pt=0;Pt<ft;Pt++){var Mt=ut[Pt];switch(Mt.type){case Nr:a.moveTo(Mt.endX,Mt.endY);break;case Oo:a.lineTo(Mt.endX,Mt.endY);break;case es:a.bezierCurveTo(Mt.point1X,Mt.point1Y,Mt.point2X,Mt.point2Y,Mt.endX,Mt.endY);break;case pa:a.quadraticCurveTo(Mt.point1X,Mt.point1Y,Mt.endX,Mt.endY);break;case yr:if(Mt.radiusX===Mt.radiusY){var jt=Math.PI/180;a.arc(Mt.point1X,Mt.point1Y,Mt.radiusX,Mt.startAngle*jt,(Mt.startAngle+Mt.sweepAngle)*jt,0>Mt.sweepAngle,xt!==null?xt.endX:at.startX,xt!==null?xt.endY:at.startY)}else if(xt=oa(Mt,at),jt=xt.length,jt===0)a.lineTo(Mt.centerX,Mt.centerY);else for(var Tt=0;Tt<jt;Tt++){var Vt=xt[Tt];Tt===0&&a.lineTo(Vt[0],Vt[1]),a.bezierCurveTo(Vt[2],Vt[3],Vt[4],Vt[5],Vt[6],Vt[7])}break;case Ma:if(Tt=jt=0,xt!==null&&xt.type===yr){if(xt=oa(xt,at),Vt=xt.length,Vt===0){a.lineTo(Mt.endX,Mt.endY);break}xt=xt[Vt-1]||null,xt!==null&&(jt=xt[6],Tt=xt[7])}else jt=xt!==null?xt.endX:at.startX,Tt=xt!==null?xt.endY:at.startY;if(xt=Ga(Mt,at,jt,Tt),jt=xt.length,jt===0){a.lineTo(Mt.endX,Mt.endY);break}for(Tt=0;Tt<jt;Tt++)Vt=xt[Tt],a.bezierCurveTo(Vt[2],Vt[3],Vt[4],Vt[5],Vt[6],Vt[7]);break;default:zt("Segment not of valid type: "+Mt.type)}Mt.isClosed&&a.closePath(),xt=Mt}ut=at.isFilled,z?at.isShadowed?(ut===!0&&E!=="transparent"&&E!==null&&a.ng(E,at.isEvenOdd),x!==null&&(ut&&ot&&Jl(a),a.jk(),ut&&ot&&xu(a))):(Jl(a),ut&&E!=="transparent"&&E!==null&&a.ng(E,at.isEvenOdd),x!==null&&a.jk(),xu(a)):(ut&&E!==null&&a.ng(E,at.isEvenOdd),x!==null&&a.jk()),a.Se(vt)}if(tt&&a.fs(),this.pathPattern!==null){if(x=this.pathPattern,x.measure(1/0,1/0),E=x.measuredBounds,x.arrange(0,0,E.width,E.height),z=this.geometry,a.save(),a.beginPath(),E=Rn(),z.type===cn.j)E.push(z.startX),E.push(z.startY),E.push(z.endX),E.push(z.endY),yg(a,y,E,x);else if(z.type===cn.o)for(z=z.figures.iterator;z.next();){for(ot=z.value,E.length=0,E.push(ot.startX),E.push(ot.startY),tt=ot.startX,b=ot.startY,rt=tt,vt=b,at=ot.segments.s,ut=at.length,ft=0;ft<ut;ft++){switch(Pt=at[ft],Pt.type){case Nr:yg(a,y,E,x),E.length=0,E.push(Pt.endX),E.push(Pt.endY),tt=Pt.endX,b=Pt.endY,rt=tt,vt=b;break;case Oo:E.push(Pt.endX),E.push(Pt.endY),tt=Pt.endX,b=Pt.endY;break;case es:se.Qe(tt,b,Pt.point1X,Pt.point1Y,Pt.point2X,Pt.point2Y,Pt.endX,Pt.endY,.5,E),tt=Pt.endX,b=Pt.endY;break;case pa:se.ep(tt,b,Pt.point1X,Pt.point1Y,Pt.endX,Pt.endY,.5,E),tt=Pt.endX,b=Pt.endY;break;case yr:if(Mt=oa(Pt,ot),xt=Mt.length,xt===0){E.push(Pt.centerX),E.push(Pt.centerY),tt=Pt.centerX,b=Pt.centerY;break}for(jt=0;jt<xt;jt++)Tt=Mt[jt],se.Qe(tt,b,Tt[2],Tt[3],Tt[4],Tt[5],Tt[6],Tt[7],.5,E),tt=Tt[6],b=Tt[7];break;case Ma:if(Mt=Ga(Pt,ot,tt,b),xt=Mt.length,xt===0){E.push(Pt.endX),E.push(Pt.endY),tt=Pt.endX,b=Pt.endY;break}for(jt=0;jt<xt;jt++)Tt=Mt[jt],se.Qe(tt,b,Tt[2],Tt[3],Tt[4],Tt[5],Tt[6],Tt[7],.5,E),tt=Tt[6],b=Tt[7];break;default:zt("Segment not of valid type: "+Pt.type)}Pt.isClosed&&(E.push(rt),E.push(vt),yg(a,y,E,x))}yg(a,y,E,x)}else if(z.type===cn.u)E.push(z.startX),E.push(z.startY),E.push(z.endX),E.push(z.startY),E.push(z.endX),E.push(z.endY),E.push(z.startX),E.push(z.endY),E.push(z.startX),E.push(z.startY),yg(a,y,E,x);else if(z.type===cn.F){if(b=new Br,b.startX=z.endX,b.startY=(z.startY+z.endY)/2,tt=new ro(yr),tt.startAngle=0,tt.sweepAngle=360,tt.centerX=(z.startX+z.endX)/2,tt.centerY=(z.startY+z.endY)/2,tt.radiusX=Math.abs(z.startX-z.endX)/2,tt.radiusY=Math.abs(z.startY-z.endY)/2,b.add(tt),z=oa(tt,b),ot=z.length,ot===0)E.push(tt.centerX),E.push(tt.centerY);else for(tt=b.startX,b=b.startY,rt=0;rt<ot;rt++)vt=z[rt],se.Qe(tt,b,vt[2],vt[3],vt[4],vt[5],vt[6],vt[7],.5,E),tt=vt[6],b=vt[7];yg(a,y,E,x)}qn(E),a.restore(),a.Vc(!1)}}}},wt.kk=function(a,y,x){return!ee.prototype.kk.call(this,a,y,x)||this.xc===null&&this.Ui===null||this.ua===null||this.pathPattern!==null||this.geometry.figures.length!==this.svg.getElementsByTagName("path").length?!1:(a.Hl=this.svg,this.hh(a,y),a.Hl=null,!0)},wt.nk=function(a){return this.geometry!==null&&1<this.geometry.figures.length||this.pathPattern!==null?!0:ee.prototype.nk.call(this,a)},wt.Dv=function(a,y){if(a.nodeName!=="g")a.setAttributeNS(null,"filter",y);else{a=a.getElementsByTagName("path");for(var x=0;x<a.length;x++)a[x].setAttributeNS(null,"filter",y)}},wt.ga=function(a,y){if(y===void 0&&(y=new It),a instanceof ni){a.Mc()&&zt("getDocumentPoint Spot must be a real, specific Spot, not: "+a.toString());var x=this.naturalBounds,E=this.strokeWidth;y.h(a.x*(x.width+E)-E/2+x.x+a.offsetX,a.y*(x.height+E)-E/2+x.y+a.offsetY)}else y.set(a);return this.oe.Ga(y),y},wt.mi=function(a){a===void 0&&(a=new be);var y=this.naturalBounds,x=this.oe;y=be.allocAt(y.x,y.y,y.width,y.height);var E=this.strokeWidth;return y.Bc(E/2,E/2),E=It.allocAt(y.x,y.y).transform(x),a.h(E.x,E.y,0,0),E.h(y.right,y.y).transform(x),uo(a,E.x,E.y,0,0),E.h(y.right,y.bottom).transform(x),uo(a,E.x,E.y,0,0),E.h(y.x,y.bottom).transform(x),uo(a,E.x,E.y,0,0),be.free(y),It.free(E),a},wt.gh=function(a,y){var x=this.geometry;if(x===null||this.fill===null&&this.stroke===null)return!1;var E=x.bounds,b=this.strokeWidth/2;x.type!==cn.j||y||(b+=2);var z=be.alloc();if(z.assign(E),z.Bc(b+2,b+2),!z.ca(a))return be.free(z),!1;if(E=b+1e-4,x.type===cn.j)return this.stroke===null||(E=(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>E)?!1:(be.free(z),se.Yb(x.startX,x.startY,x.endX,x.endY,b,a.x,a.y));if(x.type===cn.u){y=x.startX;var tt=x.startY,ot=x.endX;if(x=x.endY,z.x=Math.min(y,ot),z.y=Math.min(tt,x),z.width=Math.abs(ot-y),z.height=Math.abs(x-tt),this.fill===null){if(z.Bc(-E,-E),z.ca(a))return be.free(z),!1;z.Bc(E,E)}return this.stroke!==null&&z.Bc(b,b),a=z.ca(a),be.free(z),a}if(x.type===cn.F){tt=x.startX,b=x.startY,ot=x.endX;var rt=x.endY;if(x=Math.min(tt,ot),y=Math.min(b,rt),tt=Math.abs(ot-tt)/2,b=Math.abs(rt-b)/2,x=a.x-(x+tt),y=a.y-(y+b),this.fill===null){if(tt-=E,b-=E,0>=tt||0>=b||1>=x*x/(tt*tt)+y*y/(b*b))return be.free(z),!1;tt+=E,b+=E}return this.stroke!==null&&(tt+=E,b+=E),be.free(z),0>=tt||0>=b?!1:1>=x*x/(tt*tt)+y*y/(b*b)}if(x.type===cn.o)return be.free(z),this.fill===null?Sh(x,a.x,a.y,b):du(x,a,b,1<this.strokeWidth,y);zt("Unknown Geometry type: "+x.type)},wt.Wl=function(a,y,x,E){var b=this.desiredSize,z=this.ig;if(a=Math.max(a,0),y=Math.max(y,0),this.Rd!==null)var tt=this.geometry.bounds;else{var ot=this.figure,rt=Av[ot];if(rt===void 0){var at=se.Ze[ot];typeof at=="string"&&(at=se.Ze[at]),typeof at=="function"?(rt=at(null,100,100),Av[ot]=rt):zt("Unsupported Figure: "+ot)}tt=rt.bounds}ot=tt.width,rt=tt.height,at=tt.width;var ut=tt.height;switch(Us(this,!0)){case He:E=x=0;break;case Xe:at=Math.max(a-z,0),ut=Math.max(y-z,0);break;case $n:at=Math.max(a-z,0),E=0;break;case hi:x=0,ut=Math.max(y-z,0)}isFinite(b.width)&&(at=b.width),isFinite(b.height)&&(ut=b.height);var ft=this.maxSize,vt=this.minSize;switch(x=Math.max(x-z,vt.width),E=Math.max(E-z,vt.height),at=Math.min(ft.width,at),ut=Math.min(ft.height,ut),at=isFinite(at)?Math.max(x,at):Math.max(ot,x),ut=isFinite(ut)?Math.max(E,ut):Math.max(rt,E),x=Ev(this),x){case He:break;case Xe:ot=at,rt=ut;break;case Yn:x=Math.min(at/ot,ut/rt),isFinite(x)||(x=1),ot*=x,rt*=x;break;default:zt(x+" is not a valid geometryStretch.")}this.Rd!==null?(ot===0&&(ot=.001),rt===0&&(rt=.001),x=this.Rd!==null?this.Rd:this.ua,tt=x.bounds,E=ot/tt.width,tt=rt/tt.height,isFinite(E)||(E=1),isFinite(tt)||(tt=1),this.ua=E===1&&tt===1?x:x.copy().scale(E,tt)):this.ua!==null&&se.$(this.ua.Sk,a-z)&&se.$(this.ua.Rk,y-z)||(this.ua=Fi.makeGeometry(this,ot,rt)),tt=this.ua.bounds,a===1/0||y===1/0?this.Ge(tt.x-z/2,tt.y-z/2,a===0&&ot===0?0:tt.width+z,y===0&&rt===0?0:tt.height+z):this.Ge(-(z/2),-(z/2),at+z,ut+z),b.w()?(at=b.width,ut=b.height,at=Math.min(ft.width,at),ut=Math.min(ft.height,ut),at=Math.max(vt.width,at),ut=Math.max(vt.height,ut),this.dc.h(0,0,at,ut)):this.dc.assign(tt)};function Ev(a){var y=a.geometryStretch;return a.Rd!==null?y===Mi?Xe:y:y===Mi?Av[a.figure].defaultStretch:y}wt.eh=function(a,y,x,E){ps(this,a,y,x,E)},wt.rs=function(a,y,x){return this.Sj(a.x,a.y,y.x,y.y,x)},wt.Sj=function(a,y,x,E,b){var z=this.transform,tt=1/(z.m11*z.m22-z.m12*z.m21),ot=z.m22*tt,rt=-z.m12*tt,at=-z.m21*tt,ut=z.m11*tt,ft=tt*(z.m21*z.dy-z.m22*z.dx),vt=tt*(z.m12*z.dx-z.m11*z.dy);z=a*ot+y*at+ft,tt=a*rt+y*ut+vt,ot=x*ot+E*at+ft,rt=x*rt+E*ut+vt,ft=this.ig/2,at=this.ua,at===null&&(this.measure(1/0,1/0),at=this.ua);var xt=at.bounds;if(ut=!1,at.type===cn.j)if(1.5>=this.strokeWidth)ut=se.Ve(at.startX,at.startY,at.endX,at.endY,z,tt,ot,rt,b);else{if(at.startX===at.endX?(E=ft,ut=0):(y=(at.endY-at.startY)/(at.endX-at.startX),ut=ft/Math.sqrt(1+y*y),E=ut*y),y=Rn(),a=new It,se.Ve(at.startX+E,at.startY+ut,at.endX+E,at.endY+ut,z,tt,ot,rt,a)&&y.push(a),a=new It,se.Ve(at.startX-E,at.startY-ut,at.endX-E,at.endY-ut,z,tt,ot,rt,a)&&y.push(a),a=new It,se.Ve(at.startX+E,at.startY+ut,at.startX-E,at.startY-ut,z,tt,ot,rt,a)&&y.push(a),a=new It,se.Ve(at.endX+E,at.endY+ut,at.endX-E,at.endY-ut,z,tt,ot,rt,a)&&y.push(a),ot=y.length,ot===0)return qn(y),!1;for(ut=!0,rt=1/0,E=0;E<ot;E++)a=y[E],x=(a.x-z)*(a.x-z)+(a.y-tt)*(a.y-tt),x<rt&&(rt=x,b.x=a.x,b.y=a.y);qn(y)}else if(at.type===cn.u)ut=se.Ff(xt.x-ft,xt.y-ft,xt.x+xt.width+ft,xt.y+xt.height+ft,z,tt,ot,rt,b);else if(at.type===cn.F){y=be.allocAt(xt.x,xt.y,xt.width,xt.height).Bc(ft,ft);t:if(y.width===0)ut=se.Ve(y.x,y.y,y.x,y.y+y.height,z,tt,ot,rt,b);else if(y.height===0)ut=se.Ve(y.x,y.y,y.x+y.width,y.y,z,tt,ot,rt,b);else{if(a=y.width/2,at=y.height/2,E=y.x+a,ut=y.y+at,x=9999,z!==ot&&(x=(tt-rt)/(z-ot)),9999>Math.abs(x)){if(rt=tt-ut-x*(z-E),0>a*a*x*x+at*at-rt*rt){b.x=NaN,b.y=NaN,ut=!1;break t}ft=Math.sqrt(a*a*x*x+at*at-rt*rt),ot=(-(a*a*x*rt)+a*at*ft)/(at*at+a*a*x*x)+E,a=(-(a*a*x*rt)-a*at*ft)/(at*at+a*a*x*x)+E,at=x*(ot-E)+rt+ut,rt=x*(a-E)+rt+ut,Math.abs((z-ot)*(z-ot))+Math.abs((tt-at)*(tt-at))<Math.abs((z-a)*(z-a))+Math.abs((tt-rt)*(tt-rt))?(b.x=ot,b.y=at):(b.x=a,b.y=rt)}else{if(ot=at*at,rt=z-E,ot-=ot/(a*a)*rt*rt,0>ot){b.x=NaN,b.y=NaN,ut=!1;break t}rt=Math.sqrt(ot),ot=ut+rt,rt=ut-rt,Math.abs(ot-tt)<Math.abs(rt-tt)?(b.x=z,b.y=ot):(b.x=z,b.y=rt)}ut=!0}be.free(y)}else if(at.type===cn.o){vt=It.alloc();var Pt=ot-z,Mt=rt-tt,jt=Pt*Pt+Mt*Mt,Tt=z,Vt=tt;if(0<jt&&xt.contains(Tt,Vt)&&(vt.x=Tt,vt.y=Vt,this.ca(vt)))for(Pt!==0&&.5>Math.abs(Pt)?(Mt*=.5/Pt,Pt=.5):Mt!==0&&.5>Math.abs(Mt)&&(Pt*=.5/Mt,Mt=.5),Tt-=Pt,Vt-=Mt;xt.contains(Tt,Vt);)Tt-=Pt,Vt-=Mt;for(b.x=ot,b.y=rt,Mt=0;Mt<at.figures.count;Mt++){var Yt=at.figures.s[Mt],Kt=Yt.isFilled?Tt:z,te=Yt.isFilled?Vt:tt,me=Yt.segments;xt=Yt.startX,Pt=Yt.startY;for(var Cn=xt,Hn=Pt,In=0;In<me.count;In++){var on=me.s[In],ze=on.type,Ei=on.endX,Si=on.endY,lo=!1;switch(ze){case Nr:Cn=Ei,Hn=Si;break;case Oo:lo=k0(xt,Pt,Ei,Si,Kt,te,ot,rt,vt);break;case es:lo=se.Eo(xt,Pt,on.point1X,on.point1Y,on.point2X,on.point2Y,Ei,Si,Kt,te,ot,rt,.6,vt);break;case pa:lo=se.Eo(xt,Pt,xt+2/3*(on.point1X-xt),Pt+2/3*(on.point1Y-Pt),Ei+2/3*(on.point1X-Ei),Si+2/3*(on.point1Y-Si),Ei,Si,Kt,te,ot,rt,.6,vt);break;case yr:case Ma:ze=on.type===yr?oa(on,Yt):Ga(on,Yt,xt,Pt);var ko=ze.length;if(ko===0){lo=k0(xt,Pt,on.type===yr?on.centerX:on.endX,on.type===yr?on.centerY:on.endY,Kt,te,ot,rt,vt);break}for(Si=null,Ei=0;Ei<ko;Ei++){if(Si=ze[Ei],Ei===0&&k0(xt,Pt,Si[0],Si[1],Kt,te,ot,rt,vt)){var Dr=F0(Kt,te,vt,jt,b);Dr<jt&&(jt=Dr,ut=!0)}se.Eo(Si[0],Si[1],Si[2],Si[3],Si[4],Si[5],Si[6],Si[7],Kt,te,ot,rt,.6,vt)&&(Dr=F0(Kt,te,vt,jt,b),Dr<jt&&(jt=Dr,ut=!0))}Ei=Si[6],Si=Si[7];break;default:zt("Unknown Segment type: "+ze)}xt=Ei,Pt=Si,lo&&(lo=F0(Kt,te,vt,jt,b),lo<jt&&(jt=lo,ut=!0)),on.isClosed&&(Ei=Cn,Si=Hn,k0(xt,Pt,Ei,Si,Kt,te,ot,rt,vt)&&(on=F0(Kt,te,vt,jt,b),on<jt&&(jt=on,ut=!0)))}}z=x-a,tt=E-y,ot=Math.sqrt(z*z+tt*tt),ot!==0&&(z/=ot,tt/=ot),b.x-=z*ft,b.y-=tt*ft,It.free(vt)}else zt("Unknown Geometry type: "+at.type);return ut?(this.transform.Ga(b),!0):!1};function F0(a,y,x,E,b){return a=x.x-a,y=x.y-y,y=a*a+y*y,y<E?(b.x=x.x,b.y=x.y,y):E}function k0(a,y,x,E,b,z,tt,ot,rt){if(se.$(a,x)&&se.$(y,E)||se.$(b,tt)&&se.$(z,ot))return!1;var at=!1,ut=(b-tt)*(y-E)-(z-ot)*(a-x);return ut===0?!1:(rt.x=((b*ot-z*tt)*(a-x)-(b-tt)*(a*E-y*x))/ut,rt.y=((b*ot-z*tt)*(y-E)-(z-ot)*(a*E-y*x))/ut,(a>x?a-x:x-a)<(y>E?y-E:E-y)?(a=y<E?y:E,y=y<E?E:y,(rt.y>a||se.$(rt.y,a))&&(rt.y<y||se.$(rt.y,y))&&(at=!0)):(y=a<x?a:x,a=a<x?x:a,(rt.x>y||se.$(rt.x,y))&&(rt.x<a||se.$(rt.x,a))&&(at=!0)),at)}wt.fh=function(a,y){if(y===void 0)return a.Re(this.actualBounds);var x=this.ua;x===null&&(this.measure(1/0,1/0),x=this.ua),x=x.bounds;var E=this.strokeWidth/2,b=!1,z=It.alloc();return z.h(x.x-E,x.y-E),a.ca(y.Ga(z))&&(z.h(x.x-E,x.bottom+E),a.ca(y.Ga(z))&&(z.h(x.right+E,x.bottom+E),a.ca(y.Ga(z))&&(z.h(x.right+E,x.y-E),a.ca(y.Ga(z))&&(b=!0)))),It.free(z),b},wt.Yc=function(a,y){if(this.fh(a,y)||y===void 0&&(y=this.transform,a.Re(this.actualBounds)))return!0;var x=Di.alloc();x.set(y),x.Vj();var E=a.left,b=a.right,z=a.top;a=a.bottom;var tt=It.alloc();if(tt.h(E,z),x.Ga(tt),this.gh(tt,!0)||(tt.h(b,z),x.Ga(tt),this.gh(tt,!0))||(tt.h(E,a),x.Ga(tt),this.gh(tt,!0))||(tt.h(b,a),x.Ga(tt),this.gh(tt,!0)))return It.free(tt),!0;var ot=It.alloc(),rt=It.alloc();return x.set(y),x.bv(this.transform),x.Vj(),ot.x=b,ot.y=z,ot.transform(x),tt.x=E,tt.y=z,tt.transform(x),y=!1,Bd(this,tt,ot,rt)?y=!0:(tt.x=b,tt.y=a,tt.transform(x),Bd(this,tt,ot,rt)?y=!0:(ot.x=E,ot.y=a,ot.transform(x),Bd(this,tt,ot,rt)?y=!0:(tt.x=E,tt.y=z,tt.transform(x),Bd(this,tt,ot,rt)&&(y=!0)))),It.free(tt),Di.free(x),It.free(ot),It.free(rt),y};function Bd(a,y,x,E){if(!a.rs(y,x,E))return!1;a=y.x,y=y.y;var b=x.x,z=x.y;return x=E.x,E=E.y,a===b?(y<z?(a=y,y=z):a=z,E>=a&&E<=y):(a<b?(E=a,a=b):E=b,x>=E&&x<=a)}wt.tx=function(a,y,x){function E(jt,Tt){for(var Vt=jt.length,Yt=0;Yt<Vt;Yt+=2)if(Tt.zd(jt[Yt],jt[Yt+1])>b)return!0;return!1}if(x&&this.fill!==null&&this.gh(a,!0))return!0;var b=a.Bf(y),z=b;if(1.5<this.strokeWidth&&(b=this.strokeWidth/2+Math.sqrt(b),b*=b),y=this.ua,y===null&&(this.measure(1/0,1/0),y=this.ua,y===null))return!1;if(!x){var tt=y.bounds,ot=tt.x,rt=tt.y,at=tt.x+tt.width;if(tt=tt.y+tt.height,gn(a.x,a.y,ot,rt)<=b&&gn(a.x,a.y,at,rt)<=b&&gn(a.x,a.y,ot,tt)<=b&&gn(a.x,a.y,at,tt)<=b)return!0}if(ot=y.startX,rt=y.startY,at=y.endX,tt=y.endY,y.type===cn.j){if(x=(ot-at)*(a.x-at)+(rt-tt)*(a.y-tt),Un(a.x,a.y,ot,rt,at,tt)<=(0<=(at-ot)*(a.x-ot)+(tt-rt)*(a.y-rt)&&0<=x?b:z))return!0}else{if(y.type===cn.u)return y=!1,x&&(y=Un(a.x,a.y,ot,rt,ot,tt)<=b||Un(a.x,a.y,ot,rt,at,rt)<=b||Un(a.x,a.y,at,rt,at,tt)<=b||Un(a.x,a.y,ot,tt,at,tt)<=b),y;if(y.type===cn.F){y=a.x-(ot+at)/2,z=a.y-(rt+tt)/2;var ut=Math.abs(at-ot)/2,ft=Math.abs(tt-rt)/2;if(ut===0||ft===0)return Un(a.x,a.y,ot,rt,at,tt)<=b;if(x){if(a=se.$y(ut,ft,y,z),a*a<=b)return!0}else return!(gn(y,z,-ut,0)>=b||gn(y,z,0,-ft)>=b||gn(y,z,0,ft)>=b||gn(y,z,ut,0)>=b)}else if(y.type===cn.o){if(at=y.bounds,z=at.x,ot=at.y,rt=at.x+at.width,at=at.y+at.height,a.x>rt&&a.x<z&&a.y>at&&a.y<ot&&Un(a.x,a.y,z,ot,z,at)>b&&Un(a.x,a.y,z,ot,rt,ot)>b&&Un(a.x,a.y,rt,at,z,at)>b&&Un(a.x,a.y,rt,at,rt,ot)>b)return!1;if(z=Math.sqrt(b),x){if(this.fill===null?Sh(y,a.x,a.y,z):du(y,a,z,!0,!1))return!0}else{for(x=y.figures,y=0;y<x.count;y++){if(z=x.s[y],tt=z.startX,ut=z.startY,a.zd(tt,ut)>b)return!1;for(ot=z.segments.s,rt=ot.length,at=0;at<rt;at++)switch(ft=ot[at],ft.type){case Nr:case Oo:if(tt=ft.endX,ut=ft.endY,a.zd(tt,ut)>b)return!1;break;case es:var vt=Rn();if(se.Qe(tt,ut,ft.point1X,ft.point1Y,ft.point2X,ft.point2Y,ft.endX,ft.endY,.8,vt),tt=E(vt,a),qn(vt),tt||(tt=ft.endX,ut=ft.endY,a.zd(tt,ut)>b))return!1;break;case pa:if(vt=Rn(),se.ep(tt,ut,ft.point1X,ft.point1Y,ft.endX,ft.endY,.8,vt),tt=E(vt,a),qn(vt),tt||(tt=ft.endX,ut=ft.endY,a.zd(tt,ut)>b))return!1;break;case yr:case Ma:vt=ft.type===yr?oa(ft,z):Ga(ft,z,tt,ut);var xt=vt.length;if(xt===0){if(tt=ft.type===yr?ft.centerX:ft.endX,ut=ft.type===yr?ft.centerY:ft.endY,a.zd(tt,ut)>b)return!1;break}ft=null;for(var Pt=Rn(),Mt=0;Mt<xt;Mt++)if(ft=vt[Mt],Pt.length=0,se.Qe(ft[0],ft[1],ft[2],ft[3],ft[4],ft[5],ft[6],ft[7],.8,Pt),E(Pt,a))return qn(Pt),!1;qn(Pt),ft!==null&&(tt=ft[6],ut=ft[7]);break;default:zt("Unknown Segment type: "+ft.type)}}return!0}}}return!1},wt.qc=function(){this.ua=null},wt.kq=function(){return this.ig};function m1(a){var y=a.diagram;y!==null&&y.undoManager.isUndoingRedoing||(a.segmentOrientation=Jf,a.toArrow!=="None"?(a.segmentIndex=-1,a.alignmentFocus=ts):a.fromArrow!=="None"&&(a.segmentIndex=0,a.alignmentFocus=new ni(1-ts.x,ts.y)))}Fi.makeGeometry=function(a,y,x){if(a.toArrow!=="None")var E=_l[a.toArrow];else a.fromArrow!=="None"?E=_l[a.fromArrow]:(E=se.Ze[a.figure],typeof E=="string"&&(E=se.Ze[E]),E===void 0&&zt("Unknown Shape.figure: "+a.figure),E=E(a,y,x),E.Sk=y,E.Rk=x);if(E===null){var b=se.Ze.Rectangle;typeof b=="function"&&(E=b(a,y,x))}return E};function v1(a){var y=_l[a];if(y===void 0){var x=a.toLowerCase();if(x==="none")return"None";if(y=_l[x],y===void 0){var E=null,b;for(b in se.um)if(b.toLowerCase()===x){E=b;break}if(E!==null)return a=cn.parse(se.um[E],!1),_l[E]=a,x!==E&&(_l[x]=E),E}}return typeof y=="string"?y:y instanceof cn?a:null}qt.Object.defineProperties(Fi.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 E=this.part;E!==null&&(E.ag=NaN),this.v(),this.g("geometry",y||x,a),_r(this)&&(a=this.part,a!==null&&zo(this,a,"geometryString"))}}},geometryString:{get:function(){return this.geometry===null?"":this.geometry.toString()},set:function(a){a=cn.parse(a);var y=a.normalize();this.geometry=a,this.position=a=It.allocAt(-y.x,-y.y),It.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&&pc(a,"Shape.fill"),a instanceof vo&&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&&pc(a,"Shape.stroke"),a instanceof vo&&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 Dn(a,"value >= 0",Fi,"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"?Dn(a,'"butt", "round", or "square"',Fi,"strokeCap"):(kd(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"?Dn(a,'"miter", "bevel", or "round"',Fi,"strokeJoin"):(kd(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){kd(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,E=0,b=0;b<x;b++){var z=a[b];0<=z&&isFinite(z)||zt("strokeDashArray:value "+z+" at index "+b+" must be a positive number or zero."),E+=z}if(E===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&&(kd(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=se.Ze[a];typeof x=="function"?x=a:(x=se.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=v1(a);x===null?zt("Unknown Shape.toArrow: "+a):y!==x&&(this.Ua===null&&(this.Ua=new Rh),this.Ua.V=x,this.Rd=null,this.qc(),this.v(),m1(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=v1(a);x===null?zt("Unknown Shape.fromArrow: "+a):y!==x&&(this.Ua===null&&(this.Ua=new Rh),this.Ua.j=x,this.Rd=null,this.qc(),this.v(),m1(this),this.g("fromArrow",y,x))}}},spot1:{get:function(){return this.Na!==null?this.Na.fg:Or},set:function(a){var y=this.spot1;y.D(a)||(a=a.J(),kd(this),this.Na.fg=a,this.v(),this.g("spot1",y,a))}},spot2:{get:function(){return this.Na!==null?this.Na.gg:Or},set:function(a){var y=this.spot2;y.D(a)||(a=a.J(),kd(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&&(kd(this),this.Na.br=a,this.N(),this.g("pathPattern",y,a))}},geometryStretch:{get:function(){return this.Na!==null?this.Na.jq:Mi},set:function(a){var y=this.geometryStretch;y!==a&&(kd(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 $l),this.fa.Tk=a;var x=this.diagram;x!==null&&this.panel===x.grid&&Tl(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 $l),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 $l),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 $l),this.fa.o=a,this.v(),this.g("graduatedSkip",y,a))}}}),Fi.prototype.intersectsRect=Fi.prototype.Yc,Fi.prototype.containedInRect=Fi.prototype.fh,Fi.prototype.getNearestIntersectionPoint=Fi.prototype.rs,Fi.prototype.getDocumentBounds=Fi.prototype.mi,Fi.prototype.getDocumentPoint=Fi.prototype.ga;var _l=new Pi,Av=new Pi;Fi.className="Shape",Fi.getFigureGenerators=function(){var a=new ri,y;for(y in se.Ze)y!==y.toLowerCase()&&a.add(y,se.Ze[y]);return a.freeze(),a},Fi.defineFigureGenerator=function(a,y){var x=a.toLowerCase(),E=se.Ze;E[a]=y,E[x]=a},Fi.getArrowheadGeometries=function(){var a=new ri;for(E in se.um)if(_l[E]===void 0){var y=cn.parse(se.um[E],!1);_l[E]=y,y=E.toLowerCase(),y!==E&&(_l[y]=E)}for(var x in _l)if(x!==x.toLowerCase()){var E=_l[x];E instanceof cn&&a.add(x,E)}return a.freeze(),a},Fi.defineArrowheadGeometry=function(a,y){var x=null;typeof y=="string"?x=cn.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 E=_l;E[a]=x,E[y]=a};function Mv(){this.nc=!1,this.Hr="butt",this.Ir="miter",this.Jr=10,this.uj=0,this.br=null,this.jq=Mi,this.gg=this.fg=Or}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 bo(a,y){return ee.call(this),T0||(Ws=tr?new Ya(null).context:null,T0=!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}re(bo,ee),bo.prototype.cloneProtected=function(a){ee.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 Rl(a){a.da===null?a.da=new Dv:a.da.nc&&(a.da=a.da.copy())}wt=bo.prototype,wt.th=function(){ee.prototype.th.call(this),this.da!==null&&(this.da.nc=!0)};function y1(a,y){a.l=y.l|6144,a.pb=y.opacity,a.Ma=y.background,a.areaBackground=y.areaBackground,a.jd=y.desiredSize.J(),a.minSize=y.minSize.J(),a.maxSize=y.maxSize.J(),y.Lb!==null?a.Lb=y.Lb.copy():a.Lb=null,a.Ca=y.scale,a.Kb=y.angle,a.stretch=y.stretch,a.Kg=y.margin.J(),a.Jb=y.alignment.J(),a.sk=y.alignmentFocus.J(),a.segmentFraction=y.segmentFraction,a.segmentOffset=y.segmentOffset.J(),a.segmentOrientation=y.segmentOrientation,y.tb!==null&&(a.tb=y.tb.copy()),a.shadowVisible=y.shadowVisible,a.ec=y.ec,a.xc=y.xc,a.Ae=y.Ae,a.fa!==null&&(a.fa=y.fa.copy()),y.da!==null&&(a.da=y.da.nc?y.da:y.da.copy()),a.Ih=y.Ih}wt.qb=function(a){a.classType===bo?this.wrap=a:ee.prototype.qb.call(this,a)},wt.toString=function(){return 22<this.ec.length?'TextBlock("'+this.ec.substring(0,20)+'"...)':'TextBlock("'+this.ec+'")'},wt.v=function(){ee.prototype.v.call(this)},wt.hh=function(a,y){if(this.xc!==null&&this.ec.length!==0&&this.Ae!==null){var x=this.naturalBounds,E=this.actualBounds,b=x.width,z=x.height,tt=Uf(this),ot=a.textAlign=this.textAlign,rt=y.tn;ot==="start"?ot=rt?"right":"left":ot==="end"&&(ot=rt?"left":"right"),rt=this.isUnderline;var at=this.isStrikethrough;er(this,a,this.xc,!0,!1,x,E),(rt||at)&&er(this,a,this.xc,!1,!1,x,E),E=0,x=!1;var ut=this.oe,ft=ut.dx-(tt*ut.m21+ut.dx);ut=ut.dy-(tt*ut.m22+ut.dy);var vt=y.scale;switch(8>(ft*ft+ut*ut)*vt*vt&&(x=!0),y.ib!==a&&(x=!1),y.ib instanceof aa&&(x=!1),y.Gf("textGreeking")===!1&&(x=!1),y=this.spacingAbove,ft=this.spacingBelow,this.flip){case Yi:a.translate(b,0),a.scale(-1,1);break;case bi:a.translate(0,z),a.scale(1,-1);break;case Eo:a.translate(b,z),a.scale(-1,-1)}if(a.yc(),ut=this.Gc,vt=(y+tt+ft)*ut,z>vt&&(E=this.verticalAlignment,E=E.y*z-E.y*vt+E.offsetY),ut===1&&this.ze!==null)ft=this.Cb,ft>b&&(ft=b),this.Oj(this.ze,a,0,E+y,b,tt,ft,x,ot,rt,at);else if(this.Qc!==null&&this.Qb!==null)for(vt=0;vt<ut;vt++){var xt=this.Qc[vt];xt>b&&(xt=b),E+=y,this.Oj(this.Qb[vt],a,0,E,b,tt,xt,x,ot,rt,at),E+=tt+ft}switch(this.flip){case Yi:a.scale(-1,1),a.translate(-b,0);break;case bi:a.scale(1,-1),a.translate(0,-z);break;case Eo:a.scale(-1,-1),a.translate(-b,-z)}}},wt.Oj=function(a,y,x,E,b,z,tt,ot,rt,at,ut){var ft=0;if(ot)rt==="left"?ft=0:rt==="right"?ft=b-tt:rt==="center"&&(ft=(b-tt)/2),y.fillRect(x+ft,E+.25*z,tt,1);else{if(rt==="left"?ft=0:rt==="right"?ft=b:rt==="center"&&(ft=b/2),b=B0!==null?B0(this,z):.75*z,y.fillText(a,x+ft,E+b),a=z/20|0,a===0&&(a=1),rt==="right"?ft-=tt:rt==="center"&&(ft-=tt/2),at){ot=N0!==null?N0(this,z):.8*z,rt=x+ft,at=E+ot,b=x+ft+tt,ot=E+ot;var vt=a;y.beginPath(),y.lineWidth=vt,y.moveTo(rt,at),y.lineTo(b,ot),y.stroke(),y.Se(),y instanceof aa&&y.ad.classList.add("gojs-td")}ut&&(ut=E+z-z/2.2|0,a%2!==0&&(ut+=.5),E=x+ft,z=ut,x=x+ft+tt,tt=ut,ft=a,y.beginPath(),y.lineWidth=ft,y.moveTo(E,z),y.lineTo(x,tt),y.stroke(),y.Se(),y instanceof aa&&y.ad.classList.add("gojs-td"))}},wt.kk=function(a,y,x){if(!ee.prototype.kk.call(this,a,y,x))return!1;if(er(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},wt.nk=function(a){return 1<this.lineCount||this.isUnderline||this.isStrikethrough?!0:ee.prototype.nk.call(this,a)},wt.Dv=function(a,y){if(a.nodeName!=="g")a.setAttributeNS(null,"filter",y);else{a=a.getElementsByTagName("text");for(var x=0;x<a.length;x++)a[x].setAttributeNS(null,"filter",y)}},wt.Wl=function(a,y,x,E){var b=this.Gc;this.Ih=a,this.l&=-16777217;var z=this.Ae;Ws!==null&&A1!==z&&(A1=Ws.font=z),this.Cb=this.Le=0,this.ze=this.Qb=this.Qc=this.df=null;var tt;if(isNaN(this.desiredSize.width)){if(z=this.ec.replace(/\r\n/g,`
|
|
`).replace(/\r/g,`
|
|
`),z.length===0)z=8;else if(this.isMultiline){for(var ot=tt=0,rt=!1;!rt;){var at=z.indexOf(`
|
|
`,ot);at===-1&&(at=z.length,rt=!0),ot=z.substr(ot,at-ot),this.formatting===Wf&&(ot=ot.trim()),tt=Math.max(tt,rl(ot)),ot=at+1}z=tt}else tt=z.indexOf(`
|
|
`,0),0<=tt&&(z=z.substr(0,tt)),z=rl(z);z=Math.min(z,a/this.scale)}else z=this.desiredSize.width;if(this.panel!==null&&(z=Math.min(z,this.panel.maxSize.width)),tt=x1(this,z),isNaN(this.desiredSize.height)?tt=Math.min(tt,y/this.scale):tt=this.desiredSize.height,rt=tt,this.Cb!==0&&this.Qc!==null&&this.Qb!==null&&this.overflow===b0&&(y=this.Ae,y=this.overflow===b0?S1(y):0,at=this.spacingAbove+this.spacingBelow,at=Math.max(0,Uf(this)+at),rt=Math.min(this.maxLines-1,Math.max(Math.floor(rt/at+.01)-1,0)),!(rt+1>=this.Qb.length))){for(this.l|=16777216,at=this.Qb[rt],y=Math.max(1,a-y);rl(at)>y&&1<at.length;)at=at.substr(0,at.length-1);at+=Yf,y=rl(at),this.Qb[rt]=at,this.Qb=this.Qb.slice(0,rt+1),this.Qc[rt]=y,this.Qc=this.Qc.slice(0,rt+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===w1||isNaN(this.desiredSize.width))&&(z=isNaN(a)?this.Cb:Math.min(a,this.Cb)),z=Math.max(x,z),tt=Math.max(E,tt),Ir(this.dc,z,tt),this.Ge(0,0,z,tt),this.svg!==null&&b!==this.Gc&&(this.Uc=!0)},wt.eh=function(a,y,x,E){ps(this,a,y,x,E)};function Vf(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,E){var b=a.formatting===Wf;b&&(y=y.trim());var z=0,tt=a.Ae,ot=a.spacingAbove+a.spacingBelow;ot=Math.max(0,Uf(a)+ot);var rt=a.overflow===b0?S1(tt):0;if(a.Gc>=a.maxLines)E!==null&&E.h(0,ot);else if(tt=y,a.wrap===Fv){a.Le=1;var at=rl(y);if(rt===0||at<=x)a.Cb=Math.max(a.Cb,at),Vf(a,y,a.Cb),E!==null&&E.h(at,ot);else{for(z=Sg(a,tt),tt=tt.substr(z.length),y=Sg(a,tt),at=rl(z+y);0<y.length&&at<=x;)z+=y,tt=tt.substr(y.length),y=Sg(a,tt),at=z+y,b&&(at=at.trim()),at=rl(at);for(b&&(y=y.trim()),z+=y,x=Math.max(1,x-rt);rl(z)>x&&1<z.length;)z=z.substr(0,z.length-1);a.l|=16777216,z+=Yf;var ut=rl(z);a.Cb=ut,Vf(a,z,ut),E!==null&&E.h(ut,ot)}}else{for(rt=0,tt.length===0&&(rt=1,Vf(a,tt,0));0<tt.length;){for(y=Sg(a,tt),tt=tt.substr(y.length);rl(y)>x;){var ft=1;for(at=rl(y.substr(0,ft)),ut=0;at<=x;)ft++,ut=at,at=rl(y.substr(0,ft));if(ft===1){var vt=at;z=Math.max(z,at)}else vt=ut,z=Math.max(z,ut);if(ft--,1>ft&&(ft=1),Vf(a,y.substr(0,ft),vt),rt++,y=y.substr(ft),a.Gc+rt>a.maxLines)break}for(ut=Sg(a,tt),at=rl(y+ut);0<ut.length&&at<=x;)y+=ut,tt=tt.substr(ut.length),ut=Sg(a,tt),at=y+ut,b&&(at=at.trim()),at=rl(at);if(b&&(y=y.trim()),y!==""&&(y[y.length-1]==="\xAD"&&(y=y.substring(0,y.length-1)+"\u2010"),ut.length===0?(ft=at,z=Math.max(z,at)):(ft=ut=rl(y),z=Math.max(z,ut)),Vf(a,y,ft),rt++,a.Gc+rt>a.maxLines))break}a.Le=Math.min(a.maxLines,rt),a.Cb=Math.max(a.Cb,z),E!==null&&E.h(a.Cb,ot*a.Le)}}function Sg(a,y){if(a.wrap===P1)return y.substr(0,1);for(var x=y.length,E=0,b=Sx;E<x&&!b.test(y.charAt(E));)E++;for(a.formatting===C1&&(x=Math.min(x,E+1));E<x&&b.test(y.charAt(E));)E++;return E>=y.length?y:y.substr(0,E)}function rl(a){return Ws===null?8*a.length:Ws.measureText(a).width}function Uf(a){if(a.df!==null)return a.df;var y=a.Ae;if(Ws===null){var x=16;return a.df=x}return Nv[y]!==void 0&&5e3>E1?x=Nv[y]:(x=1.3*Ws.measureText("M").width,Nv[y]=x,E1++),a.df=x}function S1(a){if(Ws===null)return 6;if(D0[a]!==void 0&&5e3>bv)var y=D0[a];else y=Ws.measureText(Yf).width,D0[a]=y,bv++;return y}function x1(a,y){var x=a.ec.replace(/\r\n/g,`
|
|
`).replace(/\r/g,`
|
|
`),E=a.spacingAbove+a.spacingBelow;if(E=Math.max(0,Uf(a)+E),x.length===0)return a.Cb=0,a.Gc=1,E;if(!a.isMultiline){var b=x.indexOf(`
|
|
`,0);0<=b&&(x=x.substr(0,b))}b=0;for(var z=a.Gc=0,tt,ot=!1;!ot;){if(tt=x.indexOf(`
|
|
`,z),tt===-1&&(tt=x.length,ot=!0),z<=tt){if(z=x.substr(z,tt-z),a.wrap!==Fv){a.Le=0;var rt=Ee.alloc();Lv(a,z,y,rt),b+=rt.height,Ee.free(rt),a.Gc+=a.Le}else Lv(a,z,y,null),b+=E,a.Gc++;a.Gc===a.maxLines&&(ot=!0)}z=tt+1}return a.Lq=b}qt.Object.defineProperties(bo.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"||(Rl(this),this.da.Or=a,this.N(),this.g("textAlign",y,a))}},flip:{get:function(){return this.da!==null?this.da.Xf:He},set:function(a){var y=this.flip;y!==a&&(Rl(this),this.da.Xf=a,this.N(),this.g("flip",y,a))}},verticalAlignment:{get:function(){return this.da!==null?this.da.Yr:Bl},set:function(a){var y=this.verticalAlignment;y.D(a)||(a=a.J(),Rl(this),this.da.Yr=a,Ms(this),this.g("verticalAlignment",y,a))}},naturalBounds:{get:function(){if(!this.dc.w()){var a=Ee.alloc();Lv(this,this.ec,999999,a);var y=a.width;Ee.free(a),a=x1(this,y);var x=this.desiredSize;isNaN(x.width)||(y=x.width),isNaN(x.height)||(a=x.height),Ir(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:kv},set:function(a){var y=this.wrap;y!==a&&(Rl(this),this.da.$r=a,this.v(),this.g("wrap",y,a))}},overflow:{get:function(){return this.da!==null?this.da.$q:Bv},set:function(a){var y=this.overflow;y!==a&&(Rl(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&&pc(a,"TextBlock.stroke"),a instanceof vo&&a.freeze(),this.xc=a,this.N(),this.g("stroke",y,a))}},lineCount:{get:function(){return this.Gc}},lineHeight:{get:function(){return Uf(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&&(Rl(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&&(Rl(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 $l),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 $l),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 $l),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 $l),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 $l),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&&(Rl(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&&(Rl(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&&(Rl(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&&(Rl(this),this.da.Er=a,this.v(),this.g("spacingBelow",y,a))}},formatting:{get:function(){return this.da!==null?this.da.gq:Wf},set:function(a){var y=this.formatting;y!==a&&(Rl(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&&Dn(a,"> 0",bo,"maxLines"),Rl(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 B0=null,N0=null,Fv=new De(bo,"None",0),w1=new De(bo,"WrapFit",1),kv=new De(bo,"WrapDesiredSize",2),P1=new De(bo,"WrapBreakAll",3),Bv=new De(bo,"OverflowClip",0),b0=new De(bo,"OverflowEllipsis",1),Wf=new De(bo,"FormatTrim",0),C1=new De(bo,"FormatNone",0),Sx=/[ \u200b\u00ad]/,Nv=new Pi,E1=0,D0=new Pi,bv=0,Yf="...",A1="",Ws=null,T0=!1;bo.className="TextBlock";function Dv(){this.nc=!1,this.Hd=null,this.Xf=He,this.gq=Wf,this.Jq=1/0,this.$q=Bv,this.Er=this.Dr=0,this.Or="start",this.vj=this.Qr=this.Pr=null,this.Yr=Bl,this.$r=kv}Dv.prototype.copy=function(){var a=new Dv;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},bo.getEllipsis=function(){return Yf},bo.setEllipsis=function(a){Yf=a,D0=new Pi,bv=0},bo.getBaseline=function(){return B0},bo.setBaseline=function(a){B0=a},bo.getUnderline=function(){return N0},bo.setUnderline=function(a){N0=a},bo.isValidFont=function(a){if(T0||(Ws=tr?new Ya(null).context:null,T0=!0),Ws===null)return!0;var y=Ws.font;if(a===y||a==="10px sans-serif")return!0;Ws.font="10px sans-serif",Ws.font=a;var x=Ws.font;if(x!=="10px sans-serif")return Ws.font=y,!0;Ws.font="19px serif";var E=Ws.font;return Ws.font=a,x=Ws.font,Ws.font=y,x!==E},bo.FormatNone=C1,bo.FormatTrim=Wf,bo.None=Fv,bo.OverflowClip=Bv,bo.OverflowEllipsis=b0,bo.WrapBreakAll=P1,bo.WrapDesiredSize=kv,bo.WrapFit=w1;function $l(){this.Tk=1,this.u=0,this.j=1,this.o=this.F=null}$l.prototype.copy=function(){var a=new $l;return a.Tk=this.Tk,a.u=this.u,a.j=this.j,a.F=this.F,a.o=this.o,a},$l.className="GradElementSettings";function Ys(a,y){ee.call(this),this.Eg=null,this.qo="",this.Xg=Qr,this.Nk=Xe,this.Zg=this.Hd=null,this.Mk=po,this.Xf=He,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 xg;re(Ys,ee),Ys.prototype.cloneProtected=function(a){ee.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},Ys.prototype.qb=function(a){a===He||a===Yn||a===zi?this.imageStretch=a:ee.prototype.qb.call(this,a)},Ys.prototype.toString=function(){return"Picture("+this.source+")#"+to(this)};function wg(a){a===void 0&&(a=""),a!==""?xg[a]&&(delete xg[a],I0--):(xg=new Pi,I0=0)}function M1(a,y){y.qy||(y.Fq=function(x){y.sq=!0,y.ln=!1;var E=y.Bg.copy();if(E!=null){for(E=E.iterator;E.next();){var b=E.value;b.N();var z=y.getAttribute("src")||"",tt=b.Og.I(z);if(tt!==null)for(var ot=tt.length,rt=0;rt<ot;rt++)z=tt[rt],b.Xn.add(z),z.Uc=!0,b.$b(),y.hn&&(y.eu===void 0&&(y.eu=x),z.Zg!==null&&z.Zg(z,x))}y.Bg.clear()}a.desiredSize.w()||(Pr(a,!1),a.v())},y.Yp=function(x){y.ln=x;var E=y.Bg.copy();if(E!=null){for(E=E.iterator;E.next();){var b=E.value,z=y.getAttribute("src")||"",tt=b.Og.I(z);if(tt!==null){b=tt.length,z=Rn();for(var ot=0;ot<b;ot++)z.push(tt[ot]);if(y.hn)for(ot=0;ot<b;ot++)tt=z[ot],tt.Hd!==null&&tt.Hd(tt,x);qn(z)}}y.Bg.clear()}},y.addEventListener("load",y.Fq),y.addEventListener("error",y.Yp),y.qy=!0)}Ys.prototype.hA=function(){if(this.source!==""){wg(this.source);var a=this.source;this.source="",this.source=a}},Ys.prototype.redraw=function(){this.N(),this.Uc=!0},Ys.prototype.hh=function(a,y){var x=this.Eg;if(x!==null){var E=x.getAttribute("src");if(!(x instanceof HTMLImageElement&&(E===null||E==="")||x.ln instanceof Event&&a instanceof Ld)){var b=a instanceof aa;E=this.naturalBounds;var z=0,tt=0,ot=this.qn,rt=ot?+x.width:x.naturalWidth;if(ot=ot?+x.height:x.naturalHeight,rt===void 0&&x.videoWidth&&(rt=x.videoWidth),ot===void 0&&x.videoHeight&&(ot=x.videoHeight),rt=rt||E.width,ot=ot||E.height,rt!==0&&ot!==0){var at=rt,ut=ot;this.sourceRect.w()&&(z=this.Xg.x,tt=this.Xg.y,rt=this.Xg.width,ot=this.Xg.height);var ft=rt,vt=ot,xt=this.Nk,Pt=this.Mk;switch(xt){case He:if(this.sourceRect.w())break;ft>=E.width&&(z=z+Pt.offsetX+(ft*Pt.x-E.width*Pt.x)),vt>=E.height&&(tt=tt+Pt.offsetY+(vt*Pt.y-E.height*Pt.y)),rt=Math.min(E.width,ft),ot=Math.min(E.height,vt);break;case Xe:ft=E.width,vt=E.height;break;case Yn:case zi:xt===Yn?(xt=Math.min(E.height/vt,E.width/ft),ft*=xt,vt*=xt):xt===zi&&(xt=Math.max(E.height/vt,E.width/ft),ft*=xt,vt*=xt,ft>=E.width&&(z=(z+Pt.offsetX+(ft*Pt.x-E.width*Pt.x)/ft)*rt),vt>=E.height&&(tt=(tt+Pt.offsetY+(vt*Pt.y-E.height*Pt.y)/vt)*ot),rt*=1/(ft/E.width),ot*=1/(vt/E.height),ft=E.width,vt=E.height)}xt=this.Df()*y.scale;var Mt=ft*xt*vt*xt,jt=rt*ot/Mt,Tt=x.__goCache;xt=null;var Vt=xx;if(!b){if(x.sq&&Tt!==void 0&&4<Mt&&jt>Vt*Vt)for(Tt.gi===null&&(F1(Tt,4,at,ut,x),F1(Tt,16,at,ut,x)),b=Tt.gi,at=b.length,ut=0;ut<at&&b[ut].ratio*b[ut].ratio<jt;ut++)xt=b[ut];if(!y.Xm){if(this.vl===null)if(this.Eg===null)this.vl=!1;else{b=new Ya(null).context;try{b.drawImage(this.Eg,0,0)}catch(Yt){this.en=!1}try{b.getImageData(0,0,1,1).data[3]&&(this.vl=!1),this.vl=!1}catch(Yt){this.vl=!0}}if(this.vl)return}}switch(b=ft<E.width?Pt.offsetX+(E.width*Pt.x-ft*Pt.x):0,Pt=vt<E.height?Pt.offsetY+(E.height*Pt.y-vt*Pt.y):0,this.flip){case Yi:a.translate(Math.min(E.width,ft),0),a.scale(-1,1);break;case bi:a.translate(0,Math.min(E.height,vt)),a.scale(1,-1);break;case Eo:a.translate(Math.min(E.width,ft),Math.min(E.height,vt)),a.scale(-1,-1)}if(a.yc(),y.Gf("pictureRatioOptimization")&&!y.$i&&Tt!==void 0&&xt!==null&&xt.ratio!==1){a.save(),y=xt.ratio;try{a.drawImage(xt.source,z/y,tt/y,Math.min(xt.source.width,rt/y),Math.min(xt.source.height,ot/y),b,Pt,Math.min(E.width,ft),Math.min(E.height,vt)),a instanceof aa&&(this.bt=[z/y,tt/y,Math.min(xt.source.width,rt/y),Math.min(xt.source.height,ot/y),b,Pt,Math.min(E.width,ft),Math.min(E.height,vt)])}catch(Yt){this.en=!1}a.restore()}else try{a.drawImage(x,z,tt,rt,ot,b,Pt,Math.min(E.width,ft),Math.min(E.height,vt)),a instanceof aa&&(this.bt=[z,tt,rt,ot,b,Pt,Math.min(E.width,ft),Math.min(E.height,vt)])}catch(Yt){this.en=!1}switch(this.flip){case Yi:a.scale(-1,1),a.translate(-Math.min(E.width,ft),0);break;case bi:a.scale(1,-1),a.translate(0,-Math.min(E.height,vt));break;case Eo:a.scale(-1,-1),a.translate(-Math.min(E.width,ft),-Math.min(E.height,vt))}}}}},Ys.prototype.Wl=function(a,y,x,E){var b=this.desiredSize,z=Us(this,!0),tt=this.Eg,ot=this.qn,rt=0,at=0;(ot||!this.al&&tt&&tt.complete)&&(this.al=!0),tt===null?(isFinite(b.width)||(a=0),isFinite(b.height)||(y=0)):(rt=ot?+tt.width:tt.naturalWidth,at=ot?+tt.height:tt.naturalHeight),isFinite(b.width)||z===Xe||z===$n?(isFinite(a)||(this.sourceRect.w()?a=this.sourceRect.width:tt!==null&&(a=rt)),x=0):tt!==null&&this.al!==!1&&(a=this.sourceRect.w()?this.sourceRect.width:rt),isFinite(b.height)||z===Xe||z===hi?(isFinite(y)||(this.sourceRect.w()?y=this.sourceRect.height:tt!==null&&(y=at)),E=0):tt!==null&&this.al!==!1&&(y=this.sourceRect.w()?this.sourceRect.height:at),isFinite(b.width)&&(a=b.width),isFinite(b.height)&&(y=b.height),b=this.maxSize,z=this.minSize,x=Math.max(x||0,z.width),E=Math.max(E||0,z.height),a=Math.min(b.width,a),y=Math.min(b.height,y),a=Math.max(x,a),y=Math.max(E,y),tt===null||tt.complete||(isFinite(a)||(a=0),isFinite(y)||(y=0)),Ir(this.dc,a,y),this.Ge(0,0,a,y)},Ys.prototype.eh=function(a,y,x,E){ps(this,a,y,x,E)},qt.Object.defineProperties(Ys.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 E=this.diagram;E!==null&&Ef(E,this),this.Eg=a,a!==null&&x&&a.Bg===void 0&&(a.Bg=new _e),E!==null&&x&&Ih(E,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()||(Pr(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=xg;if(tr){var E=null;if(x[a]!==void 0)E=x[a];else if(a!==""){30<I0&&(wg(),x=xg),E=ai("img"),E.hn=!0,M1(this,E);var b=this.rl;b!==null&&(E.crossOrigin=b(this)),E.src=a,x[a]=E,I0++}this.element=E,E!==null&&E.__goCache===void 0&&(E.__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}}}),Ys.prototype.redraw=Ys.prototype.redraw,Ys.prototype.reloadSource=Ys.prototype.hA;var I0=0,xx=4;Ys.className="Picture",xg=new Pi,Ys.clearCache=wg;function L1(){this.gi=null}function F1(a,y,x,E,b){a.gi===null&&(a.gi=[]);var z=new Ya(null),tt=z.context,ot=1/y;z.width=x/y,z.height=E/y,z.width!==0&&z.height!==0&&(y=new k1(z.Oa,y),x=1,0<a.gi.length&&(x=a.gi[a.gi.length-1],b=x.source,x=x.ratio),tt.setTransform(ot*x,0,0,ot*x,0,0),tt.yc(),tt.drawImage(b,0,0),a.gi.push(y))}L1.className="PictureCacheArray";function k1(a,y){this.source=a,this.ratio=y}k1.className="PictureCacheInstance";function Pg(){this.os=new cn,this.mc=null}Pg.prototype.reset=function(a){a!==null?(a.ka(),this.os=a,a.figures.clear()):this.os=new cn,this.mc=null};function Cg(a,y,x,E,b,z){a.mc=new Br,a.mc.startX=y,a.mc.startY=x,a.mc.isFilled=E,a.mc.isEvenOdd=z||!1,a.os.figures.add(a.mc),b!==void 0&&(a.mc.isShadowed=b)}function wx(a){var y=a.mc.segments.length;0<y&&a.mc.segments.M(y-1).close()}Pg.prototype.moveTo=function(a,y,x){x===void 0&&(x=!1);var E=new ro(Nr);E.endX=a,E.endY=y,x&&E.close(),this.mc.segments.add(E)},Pg.prototype.lineTo=function(a,y,x){x===void 0&&(x=!1);var E=new ro(Oo);E.endX=a,E.endY=y,x&&E.close(),this.mc.segments.add(E)};function $u(a,y,x,E,b,z,tt){var ot;ot===void 0&&(ot=!1);var rt=new ro(es);rt.point1X=y,rt.point1Y=x,rt.point2X=E,rt.point2Y=b,rt.endX=z,rt.endY=tt,ot&&rt.close(),a.mc.segments.add(rt)}function O0(a,y,x,E,b){var z;z===void 0&&(z=!1);var tt=new ro(pa);tt.point1X=y,tt.point1Y=x,tt.endX=E,tt.endY=b,z&&tt.close(),a.mc.segments.add(tt)}Pg.prototype.arcTo=function(a,y,x,E,b,z,tt){z===void 0&&(z=0),tt===void 0&&(tt=!1);var ot=new ro(yr);ot.startAngle=a,ot.sweepAngle=y,ot.centerX=x,ot.centerY=E,ot.radiusX=b,ot.radiusY=z!==0?z:b,tt&&ot.close(),this.mc.segments.add(ot)};function Px(a,y,x,E,b,z,tt,ot){var rt;rt===void 0&&(rt=!1),y=new ro(Ma,tt,ot,y,x,E,b,z),rt&&y.close(),a.mc.segments.add(y)}function B1(a){var y=j0;return y!==null?(j0=null,y.reset(a),y):(y=new Pg,y.reset(a),y)}var j0=null;Pg.className="StreamGeometryContext";function ds(a,y){var x=a.toLowerCase(),E=se.Ze;E[a]=y,E[x]=a}ds("Rectangle",function(a,y,x){a="r"+y+","+x;var E=se.Mf[a];return E!==void 0||(E=new cn(cn.u),E.endX=y,E.endY=x,se.Nf<se.vm&&(se.Mf[a]=E,se.Nf++)),E}),ds("Square",function(a,y,x){a="s"+y+","+x;var E=se.Mf[a];return E!==void 0||(E=new cn(cn.u),E.endX=y,E.endY=x,E.defaultStretch=Yn,se.Nf<se.vm&&(se.Mf[a]=E,se.Nf++)),E}),ds("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 E="rr"+y+","+x+","+a,b=se.Mf[E];if(b!==void 0)return b;var z=a*se.wg;return b=new cn().add(new Br(a,0,!0).add(new ro(Oo,y-a,0)).add(new ro(es,y,a,y-z,0,y,z)).add(new ro(Oo,y,x-a)).add(new ro(es,y-a,x,y,x-z,y-z,x)).add(new ro(Oo,a,x)).add(new ro(es,0,x-a,z,x,0,x-z)).add(new ro(Oo,0,a)).add(new ro(es,a,0,0,z,z,0).close())),1<z&&(b.spot1=new ni(0,0,z,z),b.spot2=new ni(1,1,-z,-z)),se.Nf<se.vm&&(se.Mf[E]=b,se.Nf++),b}),ds("Border","RoundedRectangle"),ds("Ellipse",function(a,y,x){a="e"+y+","+x;var E=se.Mf[a];return E!==void 0||(E=new cn(cn.F),E.endX=y,E.endY=x,E.spot1=pl,E.spot2=hu,se.Nf<se.vm&&(se.Mf[a]=E,se.Nf++)),E}),ds("Circle",function(a,y,x){a="c"+y+","+x;var E=se.Mf[a];return E!==void 0||(E=new cn(cn.F),E.endX=y,E.endY=x,E.spot1=pl,E.spot2=hu,E.defaultStretch=Yn,se.Nf<se.vm&&(se.Mf[a]=E,se.Nf++)),E}),ds("TriangleRight",function(a,y,x){return new cn().add(new Br(0,0).add(new ro(Oo,y,.5*x)).add(new ro(Oo,0,x).close())).pm(0,.25,.5,.75)}),ds("TriangleDown",function(a,y,x){return new cn().add(new Br(0,0).add(new ro(Oo,y,0)).add(new ro(Oo,.5*y,x).close())).pm(.25,0,.75,.5)}),ds("TriangleLeft",function(a,y,x){return new cn().add(new Br(y,x).add(new ro(Oo,0,.5*x)).add(new ro(Oo,y,0).close())).pm(.5,.25,1,.75)}),ds("TriangleUp",function(a,y,x){return new cn().add(new Br(y,x).add(new ro(Oo,0,x)).add(new ro(Oo,.5*y,0).close())).pm(.25,.5,.75,1)}),ds("Triangle","TriangleUp"),ds("Diamond",function(a,y,x){return new cn().add(new Br(.5*y,0).add(new ro(Oo,0,.5*x)).add(new ro(Oo,.5*y,x)).add(new ro(Oo,y,.5*x).close())).pm(.25,.25,.75,.75)}),ds("LineH",function(a,y,x){return a=new cn(cn.j),a.startX=0,a.startY=x/2,a.endX=y,a.endY=x/2,a}),ds("LineV",function(a,y,x){return a=new cn(cn.j),a.startX=y/2,a.startY=0,a.endX=y/2,a.endY=x,a}),ds("None","Rectangle"),ds("BarH","Rectangle"),ds("BarV","Rectangle"),ds("MinusLine","LineH"),ds("PlusLine",function(a,y,x){return new cn().add(new Br(0,x/2,!1).add(new ro(Oo,y,x/2)).add(new ro(Nr,y/2,0)).add(new ro(Oo,y/2,x)))}),ds("XLine",function(a,y,x){return new cn().add(new Br(0,x,!1).add(new ro(Oo,y,0)).add(new ro(Nr,0,0)).add(new ro(Oo,y,x)))}),ds("LineRight",function(a,y,x){return new cn().add(new Br(.25*y,0,!1).add(new ro(Oo,.75*y,.5*x)).add(new ro(Oo,.25*y,x)))}),ds("LineDown",function(a,y,x){return new cn().add(new Br(0,.25*x,!1).add(new ro(Oo,.5*y,.75*x)).add(new ro(Oo,y,.25*x)))}),ds("LineLeft",function(a,y,x){return new cn().add(new Br(.75*y,0,!1).add(new ro(Oo,.25*y,.5*x)).add(new ro(Oo,.75*y,x)))}),ds("LineUp",function(a,y,x){return new cn().add(new Br(0,.75*x,!1).add(new ro(Oo,.5*y,.25*x)).add(new ro(Oo,y,.75*x)))}),se.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 Tv(){this.nc=!1,this.tr=this.Kp=this.zq=null,this.vr="",this.fr=this.oq=this.ur=null,this.hr="",this.gr=Ki,this.ir=null,this.jr="",this.lr=Or,this.Gq="",this.Hq=ir,this.Pq=_o,this.Kq=Sr,this.Up=null,this.Cq=127,this.zr=Fr,this.yr="gray",this.Vg=4}Tv.prototype.copy=function(){var a=new Tv;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 ei(a,y){a===void 0||a instanceof Mr||typeof a=="string"?tn.call(this,a):(tn.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 It(NaN,NaN).freeze(),this.nf=null,this.Ao=NaN,this.vw=-1,this.py=new be,this.Rh=null,this.ag=NaN,y&&Object.assign(this,y)}re(ei,tn),ei.prototype.cloneProtected=function(a){tn.prototype.cloneProtected.call(this,a),a.G=this.G&-4097|49152,a.Tf=this.Tf,this.P!==null&&(a.P=this.P.nc?this.P:this.P.copy()),a.Jg=this.Jg,a.Qf=null,a.ec=this.ec,a.ke.assign(this.ke),a.Ao=this.Ao},wt=ei.prototype,wt.Af=function(a){tn.prototype.Af.call(this,a),a.oh(),a.Ug=null,a.nf=null,a.Rh=null},wt.toString=function(){var a=si(this.constructor)+"#"+to(this);return this.data!==null&&(a+="("+Xi(this.data)+")"),a};function Zs(a){a.P===null?a.P=new Tv:a.P.nc&&(a.P=a.P.copy())}wt.th=function(){tn.prototype.th.call(this),this.P!==null&&(this.P.nc=!0)},wt.gk=function(a,y,x,E,b,z,tt){var ot=this.diagram;ot!==null&&(a===ur&&y==="elements"?b instanceof tn?Fd(b,function(rt){ay(ot.partManager,rt),xd(ot,rt)}):Ih(ot,b):a===Ar&&y==="elements"&&(b instanceof tn?Fd(b,function(rt){ly(ot.partManager,rt,ot)}):Ef(ot,b)),ot.cb(a,y,x,E,b,z,tt))},wt.La=function(a){if(tn.prototype.La.call(this,a),this.data!==null){for(var y=this.O.s,x=y.length,E=0;E<x;E++){var b=y[E];b instanceof tn&&Fd(b,function(z){z.data!==null&&z.La()})}for(y=this.adornments;y.next();)y.value.La(a)}},ei.prototype.updateRelationshipsFromData=function(){var a;this.data!==null&&((a=this.diagram)===null||a===void 0||a.partManager.updateRelationshipsFromData(this))},ei.prototype.Pj=function(a){var y=this.Qf;return y===null?null:y.I(a)},ei.prototype.bh=function(a,y){if(y!==null){var x=null,E=this.Qf;if(E!==null&&(x=E.I(a)),x!==y){if(x!==null){var b=x.diagram;b!==null&&b.remove(x)}E===null&&(this.Qf=E=new ri),y.Tf!==a&&(y.category=a),E.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)))}}},ei.prototype.Jf=function(a){var y=this.Qf;if(y!==null){var x=y.I(a);if(x!==null){var E=x.diagram;E!==null&&E.remove(x)}y.remove(a),y.count===0&&(this.Qf=null)}},ei.prototype.Ej=function(){var a=this.Qf;if(a!==null){var y=Rn();for(a=a.iterator;a.next();)y.push(a.key);a=y.length;for(var x=0;x<a;x++)this.Jf(y[x]);qn(y)}},ei.prototype.updateAdornments=function(){var a=this.diagram;if(a!==null){for(var y=this.adornments;y.next();){var x=y.value;x.v(),x.placeholder&&x.placeholder.v()}t:{if(this.isSelected&&this.selectionAdorned&&(y=this.selectionObject,y!==null&&this.actualBounds.w()&&this.isVisible()&&y.Ed()&&y.actualBounds.w())){if(x=this.Pj("Selection"),x===null){if(x=this.selectionAdornmentTemplate,x===null&&(x=this.ph()?a.linkSelectionAdornmentTemplate:this instanceof Ai?a.groupSelectionAdornmentTemplate:a.nodeSelectionAdornmentTemplate),!(x instanceof io))break t;Za(x),x=x.copy(),x!==null&&(this.ph()&&this.selectionObject===this.path&&(x.type=tn.Link),x.adornedObject=y)}if(x!==null){x.type===tn.Link&&x.v(),this.bh("Selection",x);break t}}this.Jf("Selection")}for(Cx(this,a),y=this.adornments;y.next();)y.value.La()}},ei.prototype.Wb=function(){var a=this.diagram;a!==null&&(a.vd=!0,!(this.G&16384)&&(this.G|=16384))};function Iv(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 R0(a){if(zh(a)===!1){jv(a,!0),a.Uk();var y=a.diagram;y!==null&&(y.De.add(a),y.$b())}}function N1(a){if(a.G|=2097152,zh(a)!==!1){var y=a.position,x=a.location;x.w()&&y.w()||T1(a,y,x),x=a.Ib;var E=be.alloc().assign(x);x.ka(),x.x=y.x,x.y=y.y,x.freeze(),a.Xl(E,x),be.free(E),jv(a,!1)}}ei.prototype.Ge=function(a,y,x,E){var b=this.uc;b.h(a,y,x,E),this.Lb===null&&(this.Lb=new Di);var z=this.Lb;z.reset(),this.no(z,a,y,x,E),this.Lb=z,z.ws()||z.pp(b)},ei.prototype.no=function(a,y,x,E,b){if(this.Ca!==1&&a.scale(this.Ca),this.Kb!==0){var z=po;this.locationSpot.sb()&&(z=this.locationSpot);var tt=It.alloc();if(this.locationObject!==this)for(y=this.locationObject,x=y.naturalBounds,tt.yi(x.x,x.y,x.width,x.height,z),y.Lb!==null&&y.Lb.Ga(tt),tt.offset(-y.measuredBounds.x,-y.measuredBounds.y),z=y.panel;z!==null&&z!==this;)z.Lb!==null&&z.Lb.Ga(tt),tt.offset(-z.measuredBounds.x,-z.measuredBounds.y),z=z.panel;else tt.yi(y,x,E,b,z);a.rotate(this.Kb,tt.x,tt.y),It.free(tt)}},ei.prototype.move=function(a,y){y===!0?this.location=a:this.position=a},ei.prototype.moveTo=function(a,y,x){a=It.allocAt(a,y),this.move(a,x),It.free(a)},ei.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())},ei.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())},ei.prototype.fb=function(a){if(this.name===a)return this;var y=this.Rh;if(y===null&&(this.Rh=y=new ri),y.I(a)!==null)return y.I(a);var x=tn.prototype.fb.call(this,a);return x!==null?(y.set(a,x),x):(y.set(a,null),null)};function th(a,y,x,E){E===void 0&&(E=new It),x=x.Mc()?po:x;var b=y.naturalBounds;if(E.h(b.width*x.x+x.offsetX,b.height*x.y+x.offsetY),y===null||y===a)return E;for(y.transform.Ga(E),y=y.panel;y!==null&&y!==a;)y.transform.Ga(E),y=y.panel;return a.Lb!==null&&a.Lb.Ga(E),E.offset(-a.uc.x,-a.uc.y),E}ei.prototype.mi=function(a){return a===void 0&&(a=new be),a.assign(this.actualBounds)},ei.prototype.Va=function(){this.measure(1/0,1/0),this.arrange()};function b1(a){var y=It.alloc(),x=a.locationObject,E=x.naturalBounds,b=x instanceof Fi?x.strokeWidth:0;if(y.yi(0,0,E.width+b,E.height+b,a.locationSpot),x!==a)for(y.offset(-b/2,-b/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 Nd(a,y){var x=a.py;isNaN(a.ag)&&(a.ag=u1(a));var E=a.ag,b=2*E;if(!a.isShadowed)return x.h(y.x-1-E,y.y-1-E,y.width+2+b,y.height+2+b),x;E=y.x,b=y.y;var z=y.width;y=y.height;var tt=a.shadowBlur;return a=a.shadowOffset,z+=tt,y+=tt,E-=tt/2,b-=tt/2,0<a.x?z+=a.x:(E+=a.x,z-=a.x),0<a.y?y+=a.y:(b+=a.y,y-=a.y),x.h(E-1,b-1,z+2,y+2),x}ei.prototype.arrange=function(){if(Ls(this)===!1)N1(this);else{Xl(this,!1);var a=this.Ib,y=be.alloc();y.assign(a);var x=Gh(this);this.eh(0,0,this.uc.width,this.uc.height);var E=this.position;T1(this,E,this.location),a.ka(),a.x=E.x,a.y=E.y,a.freeze(),this.Xl(y,a),y.D(a)?this.Fd(x):!this.Zc()||se.B(y.width,a.width)&&se.B(y.height,a.height)||0<=this.vw&&this.C(16),be.free(y),jv(this,!1)}},wt=ei.prototype,wt.Xl=function(a,y){var x=this.diagram;if(x!==null){var E=!1;if(x.Zi===!1&&a.w()){var b=be.alloc();b.assign(x.documentBounds),b.Fv(x.padding),a.x>b.x&&a.y>b.y&&a.right<b.right&&a.bottom<b.bottom&&y.x>b.x&&y.y>b.y&&y.right<b.right&&y.bottom<b.bottom&&(E=!0),be.free(b)}!(this.G&65536)&&a.D(y)||j1(this,E,x),x.N(),!a.w()&&!y.w()||cl(a,y)||(this instanceof Fn&&!x.undoManager.isUndoingRedoing&&this.Bd(),this.oh())}},wt.zv=function(a,y,x){if(this.ph()||!a.w())return!1;var E=this.diagram;return E!==null&&D1(this,E,a,y,x),this.pa=a,this.G&=-2097153,!this.ke.w()||E!==null&&!E.animationManager.isTicking&&E.undoManager.isUndoingRedoing||(E=this.ke,this.ke=new It(E.x+(a.x-y),E.y+(a.y-x)),this.g("location",E,this.ke.copy())),zh(this)===!1&&Ls(this)===!1&&(R0(this),N1(this)),!0};function D1(a,y,x,E,b){y===null||a instanceof io||(y=y.animationManager,y.zb&&Qc(y,a,new It(E,b),x))}wt.mm=function(a,y,x){var E=this.ke,b=this.pa;if(x){if(E.x===a&&E.y===y)return;zh(this)||Ls(this)?b.h(NaN,NaN):b.h(b.x+a-E.x,b.y+y-E.y),E.h(a,y)}else{if(b.x===a&&b.y===y)return;E.h(E.x+a-b.x,E.y+y-b.y),b.h(a,y)}R0(this)},wt.Av=function(){this.G&=-2097153,R0(this)};function T1(a,y,x){var E=b1(a),b=a.diagram,z=x.w(),tt=y.w();z&&tt?a.G&2097152?I1(a,y,x,b,E):O1(a,y,x,b,E):z?I1(a,y,x,b,E):tt&&O1(a,y,x,b,E),a.G|=2097152,It.free(E),a.Uk()}function I1(a,y,x,E,b){var z=y.x,tt=y.y;y.h(x.x-b.x,x.y-b.y),E!==null&&(x=E.animationManager,(E=x.defaultAnimation.isAnimating)||!x.zb||a instanceof io||Qc(x,a,new It(z,tt),y),E||y.x===z&&y.y===tt||a.g("position",new It(z,tt),y.copy()))}function O1(a,y,x,E,b){var z=x.copy();x.h(y.x+b.x,y.y+b.y),x.D(z)||E===null||a.g("location",z,x.copy())}function j1(a,y,x){Rv(a,!1),a instanceof Fn&&Ku(x,a),a.layer.isTemporary||y||x.Ya(),y=a.Ib;var E=x.viewportBounds;E.w()?Gh(a)?(jo(y,E)||a.Fd(!1),a.updateAdornments()):a.isVisible()&&y.Yc(E)?(a.Fd(!0),a.updateAdornments()):a.Wb():x.vd=!0}wt.si=function(){return!0},wt.Zc=function(){return!0},wt.ph=function(){return!1},wt.Dd=function(){return!0};function Ov(a,y,x,E){y.constructor===a.constructor||G1||(G1=!0,On('Should not change the class of the Part when changing category from "'+x+'" to "'+E+'"'),On(" Old class: "+si(a.constructor)+", new class: "+si(y.constructor)+", part: "+a.toString())),a.Ej();var b=a.data;x=a.layerName;var z=a.isSelected,tt=a.isHighlighted,ot=!0,rt=!0,at=!1;a instanceof Fn&&(ot=a.isTreeLeaf,rt=a.isTreeExpanded,at=a.wasTreeExpanded),y.Af(a),y.cloneProtected(a),a.Tf=E,a.svg!==null&&(a.svg.remove(),a.svg=null,a.Uc=!0),a.v(),a.N(),y=a.diagram,E=!0,y!==null&&(E=y.skipsUndoManager,y.skipsUndoManager=!0),a.ub=b,a.G=z?a.G|4096:a.G&-4097,a.G=tt?a.G|524288:a.G&-524289,a instanceof Fn&&(a.U=ot?a.U|4:a.U&-5,a.U=rt?a.U|1:a.U&-2,a.U=at?a.U|2:a.U&-3),b!==null&&a.La(),b=a.layerName,b!==x&&(a.Jg=x,a.layerName=b),y!==null&&(y.skipsUndoManager=E),a.Zc()&&a.C(64)}ei.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},ei.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},ei.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},ei.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},ei.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},ei.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},ei.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},ei.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},ei.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 zh(a){return(a.G&32768)!==0}function jv(a,y){a.G=y?a.G|32768:a.G&-32769}function Rv(a,y){a.G=y?a.G|65536:a.G&-65537}function Gh(a){return(a.G&131072)!==0}wt=ei.prototype,wt.Fd=function(a){this.G=a?this.G|131072:this.G&-131073};function z0(a,y){a.G=y?a.G|1048576:a.G&-1048577}wt.oh=function(){var a=this.containingGroup;a!==null&&(a.v(),a.placeholder!==null&&a.placeholder.v(),a.Bd())},wt.N=function(){var a=this.diagram;a!==null&&!Ls(this)&&!zh(this)&&this.isVisible()&&this.Ib.w()&&a.N(Nd(this,this.Ib))},wt.v=function(){tn.prototype.v.call(this);var a=this.diagram;a!==null&&(a.De.add(this),this instanceof Fn&&this.labeledLink!==null&&Ms(this.labeledLink),a.$b(!0))},wt.Vo=function(a){a||(a=this.Ah,a!==null&&Wv(a,this))},wt.Wo=function(a){a||(a=this.Ah,a!==null&&Yv(a,this))},wt.Lj=function(){var a=this.data;if(a!==null){var y=this.diagram;y!==null&&(y=y.model,y!==null&&y.cm(a))}},wt.oz=function(){return zv(this,this)};function zv(a,y){var x=y.containingGroup;return x!==null?1+zv(a,x):y instanceof Fn&&(y=y.labeledLink,y!==null)?zv(a,y):0}wt.sz=function(){return R1(this,this)};function R1(a,y){var x=y.containingGroup;return x!==null||y instanceof Fn&&(x=y.labeledLink,x!==null)?R1(a,x):y}wt.Td=function(a){return a instanceof Ai?Gv(this,this,a):!1};function Gv(a,y,x){if(y===x||x===null)return!1;var E=y.containingGroup;return E===null||E!==x&&!Gv(a,E,x)?y instanceof Fn&&(y=y.labeledLink,y!==null)?Gv(a,y,x):!1:!0}wt.px=function(a){if(a===null)return null;if(this===a)return this.containingGroup;for(var y=this;y!==null;){if(y instanceof Ai&&z0(y,!0),y instanceof Fn){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 Fn&&(a=y.labeledLink,a!==null&&(y=a)),y=y.containingGroup}for(y=this;y!==null;)y instanceof Ai&&z0(y,!1),y instanceof Fn&&(a=y.labeledLink,a!==null&&(y=a)),y=y.containingGroup;return x},ei.prototype.canLayout=function(){if(!this.isLayoutPositioned||!this.isVisible())return!1;var a=this.layer;return!(a!==null&&a.isTemporary||this instanceof Fn&&this.isLinkLabel)},ei.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 Fn&&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 Hh(a,y,x,E,b,z){if(z===void 0&&(z=null),!(a.contains(y)||z!==null&&!z(y)||y instanceof io)){if(a.add(y),y instanceof Fn){if(x&&y instanceof Ai)for(var tt=y.memberParts;tt.next();)Hh(a,tt.value,x,E,b,z);if(b!==!1)for(tt=y.linksConnected;tt.next();){var ot=tt.value;if(!a.contains(ot)){var rt=ot.fromNode,at=ot.toNode;rt=rt===null||a.contains(rt),at=at===null||a.contains(at),(b?rt&&at:rt||at)&&Hh(a,ot,x,E,b,z)}}if(1<E)for(y=y.Ou();y.next();)Hh(a,y.value,x,E-1,b,z)}else if(y instanceof rn)for(y=y.labelNodes;y.next();)Hh(a,y.value,x,E,b,z)}}qt.Object.defineProperties(ei.prototype,{key:{get:function(){var a=this.diagram;if(a!==null)return a.model.wa(this.data)}},adornments:{get:function(){return this.Qf===null?_i: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 E=y.pc(-1,this,!0);if(0<=E&&x.cb(Ar,"parts",y,this,null,E,!0),E=a.oi(99999999,this,!0),y.visible!==a.visible&&this.Zb(a.visible),0<=E&&x.cb(ur,"parts",a,null,this,!0,E),E=this.layerChanged,E!==null){var b=x.aa;x.aa=!0,E(this,y,a),x.aa=b}}}}},layerChanged:{get:function(){return this.P!==null?this.P.zq:null},set:function(a){var y=this.layerChanged;y!==a&&(Zs(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&&qc(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 io?this.type!==tn.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:_o},set:function(a){var y=this.minLocation;y.D(a)||(a=a.J(),Zs(this),this.P.Pq=a,this.g("minLocation",y,a))}},maxLocation:{get:function(){return this.P!==null?this.P.Kq:Sr},set:function(a){var y=this.maxLocation;y.D(a)||(a=a.J(),Zs(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&&(Zs(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:ir},set:function(a){var y=this.locationSpot;y.D(a)||(a=a.J(),Zs(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,E=this.ke;if(!(E.x===y||isNaN(E.x)&&isNaN(y))||!(E.y===x||isNaN(E.y)&&isNaN(x))){if(a=a.copy(),y=a,this.ph())y=!1;else{if(this.ke=y,this.G|=2097152,Ls(this)===!1&&(R0(this),x=this.pa,x.w())){var b=this.diagram;if(b===null||b.animationManager.isTicking||!b.undoManager.isUndoingRedoing){var z=x.copy();x.h(x.x+(y.x-E.x),x.y+(y.y-E.y)),D1(this,b,x,z.x,z.y),this.g("position",z,x.copy())}}y=!0}y&&this.g("location",E,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,E=this.data,b=null;if(x!==null&&E!==null&&!(this instanceof io)){var z=x.model.undoManager;z.isEnabled&&!z.isUndoingRedoing&&(b=this.clone(),b.O.addAll(this.O))}this.Tf=a,this.g("category",y,a),x===null||E===null||this instanceof io?this instanceof io&&(b=this.adornedPart,b!==null&&(a=b.Qf,a!==null&&a.remove(y),b.bh(this.category,this))):(z=x.model,z.undoManager.isUndoingRedoing||(this.ph()?(x.partManager.setLinkCategoryForData(E,a),x=x.partManager.findLinkTemplateForCategory(a),x!==null&&(Za(x),x=x.copy(),x!==null&&Ov(this,x,y,a))):(z!==null&&z.jm(E,a),x=dS(x.partManager,E,a),x!==null&&(Za(x),x=x.copy(),x===null||x instanceof rn||(E=this.location.copy(),Ov(this,x,y,a),this.location.w()||(this.location=E)))),b!==null&&(y=this.clone(),y.O.addAll(this.O),this.g("self",b,y))))}}},self:{get:function(){return this},set:function(a){Ov(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 E=!1;if(x!==null){E=x.skipsUndoManager,x.skipsUndoManager=!0;var b=x.selection;b.ka(),a?b.add(this):b.remove(this),b.freeze()}this.g("isSelected",y,a),this.Wb(),a=this.selectionChanged,a!==null&&a(this),x!==null&&(x.$b(),x.skipsUndoManager=E)}}}},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&&(Zs(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&&(Zs(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&&(Zs(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 rn?(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&&(Zs(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&&(Zs(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&&(Zs(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:Ki},set:function(a){var y=this.resizeCellSize;y.D(a)||(a=a.J(),Zs(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&&(Zs(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&&(Zs(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:Or},set:function(a){var y=this.rotationSpot;y.D(a)||(a=a.J(),Zs(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?Yv(y,this):this instanceof Ai&&x!==null&&x.ai.remove(this),this.Ah=a,a!==null?Wv(a,this):this instanceof Ai&&x!==null&&x.ai.add(this),this.C(1),x!==null&&x.aa){var E=this.data,b=x.model;if(E!==null&&b.Xj()){var z=b.wa(a!==null?a.data:null);b.mp(E,z)}}if(E=this.containingGroupChanged,E!==null&&(b=!0,x!==null&&(b=x.aa,x.aa=!0),E(this,y,a),x!==null&&(x.aa=b)),this instanceof Ai){for(x=new _e,Hh(x,this,!0,0,!0),x=x.iterator;x.next();)if(E=x.value,E instanceof Fn)for(E=E.linksConnected;E.next();)Eg(E.value)}if(this instanceof Fn){for(x=this.linksConnected;x.next();)Eg(x.value);x=this.labeledLink,x!==null&&Eg(x)}this.g("containingGroup",y,a),a!==null&&(y=a.layer,y!==null&&qc(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&&(Zs(this),this.P.Kp=a,this.g("containingGroupChanged",y,a))}},isTopLevel:{get:function(){return!(this.containingGroup!==null||this instanceof Fn&&this.labeledLink!==null)}},layoutConditions:{get:function(){return this.P!==null?this.P.Cq:127},set:function(a){var y=this.layoutConditions;y!==a&&(Zs(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&&(Zs(this),this.P.Up=a,this.g("dragComputation",y,a))}},shadowOffset:{get:function(){return this.P!==null?this.P.zr:Fr},set:function(a){var y=this.shadowOffset;y.D(a)||(a=a.J(),Zs(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&&(Zs(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&&(Zs(this),this.P.Vg=a,this.N(),this.g("shadowBlur",y,a))}}}),ei.prototype.invalidateLayout=ei.prototype.C,ei.prototype.findCommonContainingGroup=ei.prototype.px,ei.prototype.isMemberOf=ei.prototype.Td,ei.prototype.findTopLevelPart=ei.prototype.sz,ei.prototype.findSubGraphLevel=ei.prototype.oz,ei.prototype.ensureBounds=ei.prototype.Va,ei.prototype.getDocumentBounds=ei.prototype.mi,ei.prototype.findObject=ei.prototype.fb,ei.prototype.moveTo=ei.prototype.moveTo,ei.prototype.invalidateAdornments=ei.prototype.Wb,ei.prototype.clearAdornments=ei.prototype.Ej,ei.prototype.removeAdornment=ei.prototype.Jf,ei.prototype.addAdornment=ei.prototype.bh,ei.prototype.findAdornment=ei.prototype.Pj,ei.prototype.updateTargetBindings=ei.prototype.La;var G1=!1;ei.className="Part",ei.LayoutNone=0,ei.LayoutAdded=1,ei.LayoutRemoved=2,ei.LayoutShown=4,ei.LayoutHidden=8,ei.LayoutNodeSized=16,ei.LayoutGroupLayout=32,ei.LayoutNodeReplaced=64,ei.LayoutStandard=127,ei.LayoutAll=16777215;function io(a,y){a===void 0||a instanceof Mr||typeof a=="string"?ei.call(this,a):(ei.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)}re(io,ei),io.prototype.toString=function(){var a=this.adornedPart;return"Adornment("+this.category+")"+(a!==null?a.toString():"")},io.prototype.updateRelationshipsFromData=function(){},io.prototype.Ul=function(a){var y=this.adornedObject,x=y==null?void 0:y.part;if(x instanceof rn&&y instanceof Fi){y=x.path,x.Ul(a),a=y.geometry,x=this.O.s,y=x.length;for(var E=0;E<y;E++){var b=x[E];b.isPanelMain&&b instanceof Fi&&(b.ua=a)}}},io.prototype.si=function(){var a=this.ue;return a===null?!0:(a=a.part,a===null||!Ls(a))},io.prototype.Zc=function(){return!1},io.prototype.gk=function(a,y,x,E,b,z,tt){if(a===ur&&y==="elements"){if(b instanceof ks)this.$a===null&&(this.$a=b);else if(b instanceof tn){var ot=b.Nl(function(rt){return rt instanceof ks});ot instanceof ks&&this.$a===null&&(this.$a=ot)}}else a===Ar&&y==="elements"&&this.$a!==null&&(E===this.$a?this.$a=null:E instanceof tn&&this.$a.rg(E)&&(this.$a=null));ei.prototype.gk.call(this,a,y,x,E,b,z,tt)},io.prototype.updateAdornments=function(){},io.prototype.Lj=function(){},qt.Object.defineProperties(io.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}}}),io.className="Adornment";function Hv(){this.nc=!1,this.Vr=this.gj=this.Eq=this.Dq=null,this.yp=Ll,this.er=V0,this.Kr=this.ij=this.Nq=this.Mq=null}Hv.prototype.copy=function(){var a=new Hv;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 Fn(a,y){a===void 0||a instanceof Mr||typeof a=="string"?ei.call(this,a):(ei.call(this),a&&(y=a)),this.U=13,this.Ba=null,this.jb=new $e,this.wc=this.af=this.Yk=null,this.ci=!1,y&&Object.assign(this,y)}re(Fn,ei),Fn.prototype.cloneProtected=function(a){ei.prototype.cloneProtected.call(this,a),a.U=this.U,this.Ba!==null&&(a.Ba=this.Ba.nc?this.Ba:this.Ba.copy())},wt=Fn.prototype,wt.Af=function(a){ei.prototype.Af.call(this,a),a.Bd(),a.af=this.af,a.wc=null};function eh(a){a.Ba===null?a.Ba=new Hv:a.Ba.nc&&(a.Ba=a.Ba.copy())}wt.th=function(){ei.prototype.th.call(this),this.Ba!==null&&(this.Ba.nc=!0)};function H1(a,y){y!==null&&(a.af===null&&(a.af=new _e),a.af.add(y))}function V1(a,y,x,E){if(y===null||a.af===null)return null;for(var b=a.af.iterator;b.next();){var z=b.value;if(z.Ds===a&&z.cv===y&&z.Ox===x&&z.Px===E||z.Ds===y&&z.cv===a&&z.Ox===E&&z.Px===x)return z}return null}wt.Lz=function(a,y,x){y==null&&(y=""),x==null&&(x=""),a=V1(this,a,y,x),a!==null&&a.Sl()},wt.gk=function(a,y,x,E,b,z,tt){a===ur&&y==="elements"?this.wc=null:a===Ar&&y==="elements"&&(this.wc=null),ei.prototype.gk.call(this,a,y,x,E,b,z,tt)},wt.Bd=function(a){for(var y=this.linksConnected;y.next();){var x=y.value;a!==void 0&&a.contains(x)||(la(x.fromPort),la(x.toPort),x.bb())}};function U1(a,y){for(a=a.linksConnected;a.next();){var x=a.value;(x.fromPort===y||x.toPort===y)&&(la(x.fromPort),la(x.toPort),x.bb())}}function la(a){if(a!==null){var y=a.Zn;y!==null&&y.Sl(),a=a.part,y=a.containingGroup,y===null||a.isVisible()||la(y.port)}}wt.si=function(){return!0},Fn.prototype.getAvoidableRect=function(a){return a.set(this.actualBounds),a.Co(this.avoidableMargin),a},Fn.prototype.findVisibleNode=function(){for(var a=this;a!==null&&!a.isVisible();)a=a.containingGroup;return a},Fn.prototype.isVisible=function(){if(!ei.prototype.isVisible.call(this))return!1;var a=!0,y=Xu,x=this.diagram;if(x!==null&&(a=x.isTreePathToChildren,y=x.treeCollapsePolicy),y===Xu){if(a=this.pg(),a!==null&&!a.isTreeExpanded)return!1}else if(y===wr){if(a=a?this.Oo():this.Po(),0<a.count&&a.all(function(E){return!E.isTreeExpanded}))return!1}else if(y===ug&&(a=a?this.Oo():this.Po(),0<a.count&&a.any(function(E){return!E.isTreeExpanded})))return!1;return a=this.labeledLink,a!==null?a.isVisible():!0},Fn.prototype.Zb=function(a){ei.prototype.Zb.call(this,a);for(var y=this.linksConnected;y.next();){var x=y.value;if(a&&this.containingGroup!==null){var E=x.To(this);E===null||E.Td(this.containingGroup)||x.bb()}x.Zb(a)}},Fn.prototype.qx=function(){var a=new _e,y=new _e;return W1(this,this,a,y),y.iterator};function W1(a,y,x,E){if(y!==null&&!x.has(y)){x.add(y);var b=!0,z=a.diagram;z!==null&&(b=z.isTreePathToChildren),y.linksConnected.each(function(tt){tt.isTreeLink?(b?tt.fromNode===y:tt.toNode===y)&&W1(a,b?tt.toNode:tt.fromNode,x,E):E.add(tt)})}}Fn.prototype.findLinksConnected=function(a){if(a===void 0&&(a=null),a===null)return this.jb.iterator;var y=new oo(this.jb),x=this;return y.predicate=function(E){return E.fromNode===x&&E.fromPortId===a||E.toNode===x&&E.toPortId===a},y},wt=Fn.prototype,wt.Mo=function(a){a===void 0&&(a=null);var y=new oo(this.jb),x=this;return y.predicate=function(E){return E.fromNode!==x?!1:a===null?!0:E.fromPortId===a},y},wt.Sd=function(a){a===void 0&&(a=null);var y=new oo(this.jb),x=this;return y.predicate=function(E){return E.toNode!==x?!1:a===null?!0:E.toPortId===a},y},wt.Mu=function(a){a===void 0&&(a=null);for(var y=null,x=null,E=this.jb.iterator;E.next();){var b=E.value;b.fromNode===this?(a===null||b.fromPortId===a)&&(b=b.toNode,y!==null?y.add(b):x!==null&&x!==b?(y=new _e,y.add(x),y.add(b)):x=b):b.toNode!==this||a!==null&&b.toPortId!==a||(b=b.fromNode,y!==null?y.add(b):x!==null&&x!==b?(y=new _e,y.add(x),y.add(b)):x=b)}return y!==null?y.iterator:x!==null?new Zi(x):_i},wt.Po=function(a){a===void 0&&(a=null);for(var y=null,x=null,E=this.jb.iterator;E.next();){var b=E.value;b.fromNode!==this||a!==null&&b.fromPortId!==a||(b=b.toNode,y!==null?y.add(b):x!==null&&x!==b?(y=new _e,y.add(x),y.add(b)):x=b)}return y!==null?y.iterator:x!==null?new Zi(x):_i},wt.Oo=function(a){a===void 0&&(a=null);for(var y=null,x=null,E=this.jb.iterator;E.next();){var b=E.value;b.toNode!==this||a!==null&&b.toPortId!==a||(b=b.fromNode,y!==null?y.add(b):x!==null&&x!==b?(y=new _e,y.add(x),y.add(b)):x=b)}return y!==null?y.iterator:x!==null?new Zi(x):_i},wt.jz=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null);var E=new oo(this.jb),b=this;return E.predicate=function(z){return!((z.fromNode!==b||z.toNode!==a||y!==null&&z.fromPortId!==y||x!==null&&z.toPortId!==x)&&(z.fromNode!==a||z.toNode!==b||x!==null&&z.fromPortId!==x||y!==null&&z.toPortId!==y))},E},wt.kz=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null);var E=new oo(this.jb),b=this;return E.predicate=function(z){return!(z.fromNode!==b||z.toNode!==a||y!==null&&z.fromPortId!==y||x!==null&&z.toPortId!==x)},E};function G0(a,y,x){la(x);var E=a.jb.contains(y);if(E||a.jb.add(y),!E||y.fromNode===y.toNode){var b=a.linkConnected;if(b!==null){var z=!0,tt=a.diagram;tt!==null&&(z=tt.aa,tt.aa=!0),b(a,y,x),tt!==null&&(tt.aa=z)}}!E&&y.isTreeLink&&(x=y.fromNode,y=y.toNode,x!==null&&y!==null&&x!==y&&(E=!0,a=a.diagram,a!==null&&(E=a.isTreePathToChildren),b=E?y:x,z=E?x:y,b.ci||(b.ci=z),!z.isTreeLeaf||a!==null&&a.undoManager.isUndoingRedoing||(E?x===z&&(z.isTreeLeaf=!1):y===z&&(z.isTreeLeaf=!1))))}function H0(a,y,x){la(x);var E=a.jb.remove(y),b=null;if(E||y.toNode===y.fromNode){var z=a.linkDisconnected;if(b=a.diagram,z!==null){var tt=!0;b!==null&&(tt=b.aa,b.aa=!0),z(a,y,x),b!==null&&(b.aa=tt)}}E&&y.isTreeLink&&(x=!0,b!==null&&(x=b.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,b!==null&&b.undoManager.isUndoingRedoing||(y.isTreeLeaf=!0)):Zf(y)))}function Zf(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 E=x.value;if(E.isTreeLink){if(y){if(E.fromNode===a){a.isTreeLeaf=!1;return}}else if(E.toNode===a){a.isTreeLeaf=!1;return}}}a.isTreeLeaf=!0}}}Fn.prototype.updateRelationshipsFromData=function(){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)},wt=Fn.prototype,wt.Vo=function(a){ei.prototype.Vo.call(this,a),a||(Zf(this),a=this.Yk,a!==null&&$1(a,this))},wt.Wo=function(a){ei.prototype.Wo.call(this,a),a||(a=this.Yk,a!==null&&a.wd!==null&&(a.wd.remove(this),a.v()))},wt.Lj=function(){if(0<this.jb.count){var a=this.diagram;if(a!==null)for(var y=a.commandHandler!==null?a.commandHandler.deletesConnectedLinks:!0,x=this.jb.copy().iterator;x.next();){var E=x.value;y?a.remove(E):(E.fromNode===this&&(E.fromNode=null),E.toNode===this&&(E.toNode=null))}}this.labeledLink=null,ei.prototype.Lj.call(this)},wt.ns=function(a){if(this.wc===null){if(a===""&&this.Te===!1)return this;Y1(this)}var y=this.wc.I(a);return y!==null||a!==""&&(y=this.wc.I(""),y!==null)?y:this};function Y1(a){a.wc===null?a.wc=new ri: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 Vv(a,y,x){var E=y.portId;if(E!==null&&(a.wc!==null&&a.wc.remove(E),y=a.diagram,y!==null&&x)){for(x=null,a=a.findLinksConnected(E);a.next();)E=a.value,x===null&&(x=Rn()),x.push(E);if(x!==null){for(a=0;a<x.length;a++)y.remove(x[a]);qn(x)}}}wt.Nz=function(a){if(a===null||a===this)return!1;var y=!0,x=this.diagram;if(x!==null&&(y=x.isTreePathToChildren),x=this,y)for(;x!==a;){y=null;for(var E=x.jb.iterator;E.next();){var b=E.value;if(b.isTreeLink&&(y=b.fromNode,y!==x&&y!==this))break}if(y===this||y===null||y===x)return!1;x=y}else for(;x!==a;){for(y=null,E=x.jb.iterator;E.next()&&(b=E.value,!b.isTreeLink||(y=b.toNode,y===x||y===this)););if(y===this||y===null||y===x)return!1;x=y}return!0},wt.xz=function(){var a=!0,y=this.diagram;if(y!==null&&(a=y.isTreePathToChildren),y=this,a)for(;;){a=null;for(var x=y.jb.iterator;x.next();){var E=x.value;if(E.isTreeLink&&(a=E.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()&&(E=x.value,!E.isTreeLink||(a=E.toNode,a===y||a===this)););if(a===this)return this;if(a===null||a===y)return y;y=a}},wt.gz=function(a){if(a===null)return null;if(this===a)return this;for(var y=this;y!==null;)z0(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;)z0(y,!1),y=y.pg();return x},wt.kh=function(){var a=!0,y=this.diagram;if(y!==null&&(a=y.isTreePathToChildren),y=this.jb.iterator,a){for(;y.next();)if(a=y.value,a.isTreeLink&&a.fromNode!==this)return a}else for(;y.next();)if(a=y.value,a.isTreeLink&&a.toNode!==this)return a;return null},wt.pg=function(){var a=this.ci;if(a===null)return null;if(a instanceof Fn)return a;a=this.diagram,a=a!==null?a.isTreePathToChildren:!0;for(var y=this.jb.iterator;y.next();){var x=y.value;if(x.isTreeLink&&(x=a?x.fromNode:x.toNode,x!==this))return this.ci=x}return this.ci=null},wt.vz=function(){function a(x,E){E.add(x);var b=x.kh();b!==null&&(E.add(b),x=x.pg(),x!==null&&a(x,E))}var y=new _e;return a(this,y),y},wt.uz=function(){return K1(this,this)};function K1(a,y){return y=y.pg(),y===null?0:1+K1(a,y)}wt.Qo=function(){var a=!0,y=this.diagram;y!==null&&(a=y.isTreePathToChildren),y=new oo(this.jb);var x=this;return y.predicate=a?function(E){return!!(E.isTreeLink&&E.fromNode===x)}:function(E){return!!(E.isTreeLink&&E.toNode===x)},y},wt.Ou=function(){var a=!0,y=this.diagram;y!==null&&(a=y.isTreePathToChildren);var x=y=null,E=this.jb.iterator;if(a)for(;E.next();)a=E.value,a.isTreeLink&&a.fromNode===this&&(a=a.toNode,y!==null?y.add(a):x!==null&&x!==a?(y=new $e,y.add(x),y.add(a)):x=a);else for(;E.next();)a=E.value,a.isTreeLink&&a.toNode===this&&(a=a.fromNode,y!==null?y.add(a):x!==null&&x!==a?(y=new $e,y.add(x),y.add(a)):x=a);return y!==null?y.iterator:x!==null?new Zi(x):_i},wt.wz=function(a){a===void 0&&(a=1/0);var y=new _e;return Hh(y,this,!1,a,!0),y},Fn.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 _e;x.add(this),Q1(this,x,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===Xu),y.Ue=!1}};function Q1(a,y,x,E,b,z,tt){if(1<E)for(var ot=x?a.Mo():a.Sd();ot.next();){var rt=ot.value;rt.isTreeLink&&(rt=rt.To(a),rt===null||rt===a||y.contains(rt)||(y.add(rt),Q1(rt,y,x,E-1,b,z,tt)))}else X1(a,y,x,b,z,tt)}function X1(a,y,x,E,b,z){for(var tt=b===a?!0:a.isTreeExpanded,ot=x?a.Mo():a.Sd(),rt={};ot.next();){var at=ot.value;if(at.isTreeLink&&(at=at.To(a),at!==null&&at!==a)){var ut=y.contains(at);if(ut||y.add(at),tt){var ft=x?at.Oo():at.Po();rt.uv=a,ft.all(function(vt){return function(xt){return xt===vt.uv||!xt.isTreeExpanded}}(rt))&&E.Aj(at,b),at.oh(),at.Zb(!1)}at.isTreeExpanded&&(at.wasTreeExpanded=at.isTreeExpanded,ut||X1(at,y,x,E,b,z))}rt={uv:rt.uv}}a.isTreeExpanded=!1}Fn.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 _e;x.add(this),J1(this,x,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===Xu),y.Ue=!1}};function J1(a,y,x,E,b,z,tt){for(var ot=z===a?!1:a.isTreeExpanded,rt=x?a.Mo():a.Sd(),at={};rt.next();){var ut=rt.value;if(ut.isTreeLink&&(ot||ut.fd||ut.bb(),ut=ut.To(a),ut!==null&&ut!==a&&!y.contains(ut))){if(y.add(ut),!ot){ut.Zb(!0),ut.oh();var ft=x?ut.Oo():ut.Po();at.vv=a,ft.all(function(vt){return function(xt){return xt===vt.vv||!xt.isTreeExpanded}}(at))&&b.Cj(ut,z)}(2<E||ut.wasTreeExpanded)&&(ut.wasTreeExpanded=!1,J1(ut,y,x,E-1,b,z,tt))}at={vv:at.vv}}a.isTreeExpanded=!0}qt.Object.defineProperties(Fn.prototype,{portSpreading:{get:function(){return this.Ba!==null?this.Ba.er:V0},set:function(a){var y=this.portSpreading;y!==a&&(eh(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&&Ku(x,this),this.g("avoidable",y,a)}}},avoidableMargin:{get:function(){return this.Ba!==null?this.Ba.yp:Ll},set:function(a){typeof a=="number"&&(a=new yi(a));var y=this.avoidableMargin;if(!y.D(a)){a=a.J(),eh(this),this.Ba.yp=a;var x=this.diagram;x!==null&&Ku(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&&(eh(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&&(eh(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&&(eh(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,E=this.data;if(y!==null){if(y.wd!==null&&(y.wd.remove(this),y.v()),x!==null&&E!==null&&!x.undoManager.isUndoingRedoing){var b=y.data,z=x.model;if(b!==null&&z.ri()){var tt=z.wa(E);tt!==void 0&&z.Qx(b,tt)}}this.containingGroup=null}this.Yk=a,a!==null&&($1(a,this),x===null||E===null||x.undoManager.isUndoingRedoing||(b=a.data,x=x.model,b!==null&&x.ri()&&(E=x.wa(E),E!==void 0&&x.Bu(b,E))),this.containingGroup=a.containingGroup),Ms(this),this.g("labeledLink",y,a)}}},port:{get:function(){return this.ns("")}},ports:{get:function(){return this.wc===null&&Y1(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 E=!0;x!==null&&(E=x.aa,x.aa=!0),y(this),x!==null&&(x.aa=E)}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&&(eh(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))}}}),Fn.prototype.expandTree=Fn.prototype.expandTree,Fn.prototype.collapseTree=Fn.prototype.collapseTree,Fn.prototype.findTreeParts=Fn.prototype.wz,Fn.prototype.findTreeChildrenNodes=Fn.prototype.Ou,Fn.prototype.findTreeChildrenLinks=Fn.prototype.Qo,Fn.prototype.findTreeLevel=Fn.prototype.uz,Fn.prototype.findTreeParentChain=Fn.prototype.vz,Fn.prototype.findTreeParentNode=Fn.prototype.pg,Fn.prototype.findTreeParentLink=Fn.prototype.kh,Fn.prototype.findCommonTreeParent=Fn.prototype.gz,Fn.prototype.findTreeRoot=Fn.prototype.xz,Fn.prototype.isInTreeOf=Fn.prototype.Nz,Fn.prototype.findPort=Fn.prototype.ns,Fn.prototype.findLinksTo=Fn.prototype.kz,Fn.prototype.findLinksBetween=Fn.prototype.jz,Fn.prototype.findNodesInto=Fn.prototype.Oo,Fn.prototype.findNodesOutOf=Fn.prototype.Po,Fn.prototype.findNodesConnected=Fn.prototype.Mu,Fn.prototype.findLinksInto=Fn.prototype.Sd,Fn.prototype.findLinksOutOf=Fn.prototype.Mo,Fn.prototype.findExternalTreeLinksConnected=Fn.prototype.qx,Fn.prototype.invalidateConnectedLinks=Fn.prototype.Bd,Fn.prototype.invalidateLinkBundle=Fn.prototype.Lz;var Ex=new De(Fn,"SpreadingNone",10),V0=new De(Fn,"SpreadingEvenly",11),Uv=new De(Fn,"SpreadingPacked",12);Fn.className="Node",Fn.SpreadingNone=Ex,Fn.SpreadingEvenly=V0,Fn.SpreadingPacked=Uv;function Ai(a,y){a===void 0||a instanceof Mr||typeof a=="string"?Fn.call(this,a):(Fn.call(this),a&&(y=a)),this.U|=4608,this.Gn=new _e,this.$a=null,this.Sc=new Ho,this.Sc.group=this,this.gl=new _e,this.tb=this.$p=null,y&&Object.assign(this,y)}re(Ai,Fn),Ai.prototype.cloneProtected=function(a){Fn.prototype.cloneProtected.call(this,a),this.U=this.U&-32769;var y=a.Nl(function(x){return x instanceof ks});y instanceof ks?a.$a=y:a.$a=null,this.Sc!==null?(a.Sc=this.Sc.copy(),a.Sc.group=a):(a.Sc!==null&&(a.Sc.group=null),a.Sc=null),this.tb!==null&&(a.tb=this.tb.copy())},wt=Ai.prototype,wt.Af=function(a){Fn.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 Fn)x.Bd(y);else if(x instanceof rn)for(x=x.labelNodes;x.next();)x.value.Bd(y)}},wt.gk=function(a,y,x,E,b,z,tt){if(a===ur&&y==="elements"){if(b instanceof ks)this.$a===null?this.$a=b:this.$a!==b&&zt("Cannot insert a second Placeholder into the visual tree of a Group.");else if(b instanceof tn){var ot=b.Nl(function(rt){return rt instanceof ks});ot instanceof ks&&(this.$a===null?this.$a=ot:this.$a!==ot&&zt("Cannot insert a second Placeholder into the visual tree of a Group."))}}else a===Ar&&y==="elements"&&this.$a!==null&&(E===this.$a?this.$a=null:E instanceof tn&&this.$a.rg(E)&&(this.$a=null));Fn.prototype.gk.call(this,a,y,x,E,b,z,tt)},wt.Xl=function(a,y){Fn.prototype.Xl.call(this,a,y),this.isClipping&&this.type!==tn.Spot&&this.isSubGraphExpanded&&(a=this.resizeObject,a instanceof tn&&(a=a.Pb()),this.tb===null&&(this.tb=new be),a.mi(this.tb),a instanceof Fi&&this.tb.Bc(-a.strokeWidth,-a.strokeWidth))},wt.eh=function(a,y,x,E){this.nf=this.$a,Fn.prototype.eh.call(this,a,y,x,E)},wt.Va=function(){var a=this;a.isSubGraphExpanded&&this.memberParts.each(function(y){!a.computesBoundsIncludingLinks&&y instanceof rn||y.Va()}),Fn.prototype.Va.call(this)},wt.si=function(){if(!Fn.prototype.si.call(this))return!1;for(var a=this.memberParts;a.next();){var y=a.value;if(y instanceof Fn){if(y.isVisible()&&Ls(y))return!1}else if(y instanceof rn&&y.isVisible()&&Ls(y)&&y.fromNode!==this&&y.toNode!==this)return!1}return!0};function Wv(a,y){if(a.Gn.add(y)){y instanceof Ai&&a.gl.add(y);var x=a.memberAdded;if(x!==null){var E=!0,b=a.diagram;b!==null&&(E=b.aa,b.aa=!0),x(a,y),b!==null&&(b.aa=E)}a.isVisible()&&a.isSubGraphExpanded||y.Zb(!1)}y instanceof rn&&!a.computesBoundsIncludingLinks||(y=a.$a,y===null&&(y=a),y.v())}function Yv(a,y){if(a.Gn.remove(y)){y instanceof Ai&&a.gl.remove(y);var x=a.memberRemoved;if(x!==null){var E=!0,b=a.diagram;b!==null&&(E=b.aa,b.aa=!0),x(a,y),b!==null&&(b.aa=E)}a.isVisible()&&a.isSubGraphExpanded||y.Zb(!0)}y instanceof rn&&!a.computesBoundsIncludingLinks||(y=a.$a,y===null&&(y=a),y.v())}wt.Lj=function(){if(0<this.Gn.count){var a=this.diagram;if(a!==null)for(var y=this.Gn.copy().iterator;y.next();)a.remove(y.value)}Fn.prototype.Lj.call(this)},Ai.prototype.canAddMembers=function(a){var y=this.diagram;if(y===null)return!1;for(y=y.commandHandler,a=ke(a).iterator;a.next();)if(!y.isValidMember(this,a.value))return!1;return!0},Ai.prototype.addMembers=function(a,y){var x=this.diagram;if(x===null)return!1;x=x.commandHandler;var E=!0;for(a=ke(a).iterator;a.next();){var b=a.value;!y||x.isValidMember(this,b)?b.containingGroup=this:E=!1}return E},Ai.prototype.canUngroup=function(){if(!this.ungroupable)return!1;var a=this.layer;return a===null||!a.allowUngroup?!1:(a=a.diagram,!!(a===null||a.allowUngroup))},wt=Ai.prototype,wt.Bd=function(a){var y=(this.U&65536)!==0;if(Fn.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 E=x.fromNode;E!==null&&E!==this&&E.Td(this)&&!E.isVisible()?(la(x.fromPort),la(x.toPort),x.bb()):(E=x.toNode,E!==null&&E!==this&&E.Td(this)&&!E.isVisible()&&(la(x.fromPort),la(x.toPort),x.bb()))}}},wt.Lu=function(){var a=this.diagram!==null&&this.diagram.Pw;if(a&&this.$p!==null)return this.$p.iterator;var y=this.Rj();y.add(this);for(var x=new _e,E=y.iterator;E.next();){var b=E.value;if(b instanceof Fn)for(b=b.linksConnected;b.next();){var z=b.value;y.contains(z)||x.add(z)}}return a&&(this.$p=x),x.iterator},wt.iz=function(){var a=this.Rj();a.add(this);for(var y=new _e,x=a.iterator;x.next();){var E=x.value;if(E instanceof Fn)for(E=E.linksConnected;E.next();){var b=E.value,z=b.fromNode;z===null||a.contains(z)&&z!==this||y.add(z),b=b.toNode,b===null||a.contains(b)&&b!==this||y.add(b)}}return y.iterator},wt.hz=function(){function a(x,E){x!==null&&(E.add(x),a(x.containingGroup,E))}var y=new _e;return a(this,y),y},wt.Rj=function(){var a=new _e;return Hh(a,this,!0,0,!0),a.remove(this),a},wt.Zb=function(a){Fn.prototype.Zb.call(this,a);for(var y=this.memberParts;y.next();)y.value.Zb(a)},Ai.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,E){for(var b=a.memberParts;b.next();){var z=b.value;if(z.Zb(!1),z instanceof Ai&&z.isSubGraphExpanded&&(z.wasSubGraphExpanded=z.isSubGraphExpanded,q1(z,y,x,E)),z instanceof Fn)z.Bd(y),x.Aj(z,E);else if(z instanceof rn)for(z=z.labelNodes;z.next();)z.value.Bd(y)}a.isSubGraphExpanded=!1}Ai.prototype.expandSubGraph=function(){var a=this.diagram;if(a!==null&&!a.Ue){a.Ue=!0;var y=this.Rj();_1(this,y,a,this),a.Ue=!1}};function _1(a,y,x,E){for(var b=a.memberParts;b.next();){var z=b.value;if(z.Zb(!0),z instanceof Ai&&z.wasSubGraphExpanded&&(z.wasSubGraphExpanded=!1,_1(z,y,x,E)),z instanceof Fn)z.Bd(y),x.Cj(z,E);else if(z instanceof rn)for(z=z.labelNodes;z.next();)z.value.Bd(y)}a.isSubGraphExpanded=!0}Ai.prototype.move=function(a,y){y===void 0&&(y=!1);var x=y?this.location:this.position,E=x.x;x=x.y;var b=a.x,z=a.y;if(!(E===b||isNaN(E)&&isNaN(b))||!(x===z||isNaN(x)&&isNaN(z))){for(E=b-(isNaN(E)?0:E),x=z-(isNaN(x)?0:x),z=It.alloc(),Fn.prototype.move.call(this,a,y),a=new _e,y=this.Rj().iterator;y.next();)b=y.value,b instanceof rn&&(b.suspendsRouting&&a.add(b),b.fd||b.fromNode!==this&&b.toNode!==this)&&(b.suspendsRouting=!0);for(y.reset();y.next();)if(b=y.value,!(b.ph()||b instanceof Fn&&b.isLinkLabel)){var tt=b.position,ot=b.location;tt.w()?(z.x=tt.x+E,z.y=tt.y+x,b.position=z):ot.w()&&(z.x=ot.x+E,z.y=ot.y+x,b.location=z)}for(y.reset();y.next();)b=y.value,b instanceof rn&&(b.suspendsRouting=a.contains(b),b.fd||b.fromNode!==this&&b.toNode!==this)&&(tt=b.position,z.x=tt.x+E,z.y=tt.y+x,z.w()?b.move(z):b.bb(),Kv(b)&&b.bb());It.free(z)}},qt.Object.defineProperties(Ai.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&&(eh(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&&(eh(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&&(eh(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 E=!0;x!==null&&(E=x.aa,x.aa=!0),y(this),x!==null&&(x.aa=E)}x!==null&&x.undoManager.isUndoingRedoing?(this.$a!==null&&this.$a.v(),this.memberParts.each(function(b){b.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&&(eh(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)}}}),Ai.prototype.expandSubGraph=Ai.prototype.expandSubGraph,Ai.prototype.collapseSubGraph=Ai.prototype.collapseSubGraph,Ai.prototype.findSubGraphParts=Ai.prototype.Rj,Ai.prototype.findContainingGroupChain=Ai.prototype.hz,Ai.prototype.findExternalNodesConnected=Ai.prototype.iz,Ai.prototype.findExternalLinksConnected=Ai.prototype.Lu,Ai.prototype.ensureBounds=Ai.prototype.Va,Ai.className="Group";function ks(a){ee.call(this),this.yb=Rs,this.ko=new be(NaN,NaN,NaN,NaN),a&&Object.assign(this,a)}re(ks,ee),ks.prototype.cloneProtected=function(a){ee.prototype.cloneProtected.call(this,a),a.yb=this.yb.J(),a.ko=this.ko.copy()},ks.prototype.gh=function(a){if(this.background===null&&this.areaBackground===null)return!1;var y=this.naturalBounds;return Fo(0,0,y.width,y.height,a.x,a.y)},ks.prototype.Wl=function(){var a=this.part;if(a!==null&&(a instanceof Ai||a instanceof io)||zt("Placeholder is not inside a Group or Adornment."),a instanceof Ai){var y=this.computeBorder(this.ko),x=this.minSize,E=this.dc;for(Ir(E,(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,E.width,E.height),E=a.memberParts,x=!1;E.next();)if(E.value.isVisible()){x=!0;break}E=a.diagram,!x||E===null||E.animationManager.Xu(a)||isNaN(y.x)||isNaN(y.y)||(x=It.alloc(),x.xi(y,a.locationSpot),x.D(a.location)||(a.location=x),It.free(x))}else{y=this.dc,x=this.yb,E=x.left+x.right;var b=x.top+x.bottom,z=a.adornedObject;a.angle=z.li();var tt=0;z instanceof Fi&&(tt=z.strokeWidth);var ot=z.Df(),rt=z.naturalBounds,at=(rt.width+tt)*ot;tt=(rt.height+tt)*ot,a.type!==tn.Link&&(ot=z.ga(a.category==="Selection"?ir:a.locationSpot,It.alloc()),a.location=ot,It.free(ot)),isNaN(at)||isNaN(tt)?(a=z.ga(ir,It.alloc()),at=be.allocAt(a.x,a.y,0,0),at.Ye(z.ga(zs,a)),at.Ye(z.ga(uu,a)),at.Ye(z.ga(gl,a)),Ir(y,at.width+E||0,at.height+b||0),this.Ge(-x.left,-x.top,y.width,y.height),It.free(a),be.free(at)):(Ir(y,at+E||0,tt+b||0),this.Ge(-x.left,-x.top,y.width,y.height))}},ks.prototype.eh=function(a,y,x,E){this.actualBounds.h(a,y,x,E)},ks.prototype.computeBorder=function(a){var y=this.part,x=y.diagram,E=x===null||!x.animationManager.isAnimating;if(x!==null&&y instanceof Ai&&!y.layer.isTemporary&&y.computesBoundsAfterDrag&&this.ko.w()){var b=x.toolManager.findTool("Dragging");if(b===x.currentTool&&(x=b.computeBorder(y,this.ko,a),x!==null))return x}x=be.alloc(),b=this.computeMemberBounds(x);var z=this.yb;return y instanceof Ai&&!y.isSubGraphExpanded?a.h(b.x-z.left,b.y-z.top,0,0):a.h(b.x-z.left,b.y-z.top,Math.max(b.width+z.left+z.right,0),Math.max(b.height+z.top+z.bottom,0)),be.free(x),E&&y instanceof Ai&&y.computesBoundsIncludingLocation&&y.location.w()&&a.Ye(y.location),a},ks.prototype.computeMemberBounds=function(a){if(!(this.part instanceof Ai))return a.h(0,0,0,0),a;for(var y=this.part,x=1/0,E=1/0,b=-1/0,z=-1/0,tt=y.memberParts;tt.next();){var ot=tt.value;if(ot.isVisible()){if(ot instanceof rn&&(!y.computesBoundsIncludingLinks||Sa(ot)||ot.fromNode===y||ot.toNode===y))continue;ot=ot.actualBounds,ot.left<x&&(x=ot.left),ot.top<E&&(E=ot.top),ot.right>b&&(b=ot.right),ot.bottom>z&&(z=ot.bottom)}}return isFinite(x)&&isFinite(E)?a.h(x,E,b-x,z-E):(y=y.location,a.h(y.x,y.y,0,0)),a},qt.Object.defineProperties(ks.prototype,{padding:{get:function(){return this.yb},set:function(a){typeof a=="number"&&(a=new yi(a));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.g("padding",y,a),this.v())}}}),ks.className="Placeholder";function rn(a){ei.call(this,tn.Link),this.Qa=8,this.ef=null,this.ff="",this.uf=this.gn=null,this.vf="",this.uo=null,this.qk=Bs,this.Om=0,this.Qm=Bs,this.Rm=NaN,this.qj=Jv,this.po=.5,this.wd=null,this.Nb=new $e().freeze(),this.Tg=this.Mg=null,this.ml=new be,this.ua=new cn,this.u=this.o=this.Sf=this.Wf=null,this.su=new It,this.cq=this.Mw=this.Lw=null,this.vt=NaN,this.ba=null,this.j=[],a&&Object.assign(this,a)}re(rn,ei),rn.prototype.cloneProtected=function(a){ei.prototype.cloneProtected.call(this,a),a.Qa=this.Qa&-113,a.ff=this.ff,a.gn=this.gn,a.vf=this.vf,a.uo=this.uo,a.qk=this.qk,a.Om=this.Om,a.Qm=this.Qm,a.Rm=this.Rm,a.qj=this.qj,a.po=this.po,this.ba!==null&&(a.ba=this.ba.copy())},wt=rn.prototype,wt.Af=function(a){ei.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&&la(y),a=a.toPort,a!==null&&la(a)},wt.qb=function(a){a.classType===rn?(a.value&2)===2?this.routing=a:a===wa||a===ih||a===Mg?this.curve=a:a===Xf||a===Q0||a===X0?this.adjusting=a:a!==Jv&&a!==Bs&&zt("Unknown Link enum value for a Link property: "+a):ei.prototype.qb.call(this,a)},wt.Xc=function(){this.ba===null&&(this.ba=new If)},wt.si=function(){var a=this.fromNode;if(a!==null){var y=a.findVisibleNode();if(y!==null&&(a=y),Ls(a)||zh(a))return!1}return a=this.toNode,!(a!==null&&(y=a.findVisibleNode(),y!==null&&(a=y),Ls(a)||zh(a)))},wt.zv=function(){return!1},wt.Av=function(){},wt.Zc=function(){return!1},rn.prototype.computeAngle=function(a,y,x){return rn.computeAngle(y,x)},rn.computeAngle=function(a,y){switch(a){default:case Bs:a=0;break;case Jf:a=y;break;case qf:a=y+90;break;case _f:a=y-90;break;case qv:a=y+180;break;case J0:a=se.bp(y),90<a&&270>a&&(a-=180);break;case $f:a=se.bp(y+90),90<a&&270>a&&(a-=180);break;case tp:a=se.bp(y-90),90<a&&270>a&&(a-=180);break;case q0:if(a=se.bp(y),45<a&&135>a||225<a&&315>a)return 0;90<a&&270>a&&(a-=180)}return se.bp(a)};function Eg(a){var y=a.fromNode,x=a.toNode,E=null;if(y!==null?E=x!==null?y.px(x):y.containingGroup:x!==null?E=x.containingGroup:E=null,y=E,x=a.Ah,x!==y){x!==null&&Yv(x,a),a.Ah=y,y!==null&&Wv(y,a);var b=a.containingGroupChanged;if(b!==null){var z=!0,tt=a.diagram;tt!==null&&(z=tt.aa,tt.aa=!0),b(a,x,y),tt!==null&&(tt.aa=z)}!a.fd||a.Lw!==x&&a.Mw!==x||a.bb()}if(a.isLabeledLink)for(a=a.labelNodes;a.next();)a.value.containingGroup=E}wt=rn.prototype,wt.oh=function(){var a=this.containingGroup;a!==null&&this.fromNode!==a&&this.toNode!==a&&a.computesBoundsIncludingLinks&&ei.prototype.oh.call(this)},wt.To=function(a){var y=this.fromNode;return a===y?this.toNode:y},wt.Cz=function(a){var y=this.fromPort;return a===y?this.toPort:y};function $1(a,y){a.wd===null&&(a.wd=new _e),a.wd.add(y),a.v()}wt.Vo=function(a){if(ei.prototype.Vo.call(this,a),bd(this)&&this.Xo(this.actualBounds),!a){a=this.ef;var y=null;a!==null&&(y=this.fromPort,G0(a,this,y));var x=this.uf;if(x!==null){var E=this.toPort;x===a&&E===y||G0(x,this,E)}Kf(this)}},wt.Wo=function(a){if(ei.prototype.Wo.call(this,a),bd(this)&&this.Xo(this.actualBounds),!a){a=this.ef;var y=null;a!==null&&(y=this.fromPort,H0(a,this,y));var x=this.uf;if(x!==null){var E=this.toPort;x===a&&E===y||H0(x,this,E)}Qf(this)}},wt.Lj=function(){if(this.fd=!0,this.wd!==null){var a=this.diagram;if(a!==null)for(var y=this.wd.copy().iterator;y.next();)a.remove(y.value)}this.data!==null&&(a=this.diagram,a!==null&&a.partManager.removeDataForLink(this))},rn.prototype.updateRelationshipsFromData=function(){if(this.data!==null){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)}},rn.prototype.move=function(a,y){var x=y?this.location:this.position,E=x.x;isNaN(E)&&(E=0);var b=x.y;for(isNaN(b)&&(b=0),E=a.x-E,b=a.y-b,y===!0?ei.prototype.move.call(this,a,!1):(a=It.allocAt(x.x+E,x.y+b),ei.prototype.move.call(this,a,!1),It.free(a)),nh(this,E,b),a=this.labelNodes;a.next();)y=a.value,x=y.position,y.moveTo(x.x+E,x.y+b)},rn.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},rn.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},rn.prototype.computeMidPoint=function(a){var y=this.pointsCount;if(y===0)return a.assign(Xo),a;if(y===1)return a.assign(this.i(0)),a;if(y===2){var x=this.i(0),E=this.i(1);return a.h((x.x+E.x)/2,(x.y+E.y)/2),a}if(this.isOrthogonal&&(15<=this.computeCorner()||this.computeCurve()===wa))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()===wa){if(y===3){x=this.i(0),E=this.i(1);var b=this.i(2);return se.ax(x.x,x.y,E.x,E.y,E.x,E.y,b.x,b.y,a),a}if(E=(y-1)/3|0,x=3*(E/2|0),E%2===1){E=this.i(x),b=this.i(x+1);var z=this.i(x+2);x=this.i(x+3),se.ax(E.x,E.y,b.x,b.y,z.x,z.y,x.x,x.y,a)}else a.assign(this.i(x));return a}var tt=this.flattenedLengths;for(x=this.flattenedTotalLength,b=z=E=0;E<x/2&&z<y&&(b=tt[z],!(E+b>x/2));)E+=b,z++;return y=this.i(z),z=this.i(z+1),1>Math.abs(y.x-z.x)?y.y>z.y?a.h(y.x,y.y-(x/2-E)):a.h(y.x,y.y+(x/2-E)):1>Math.abs(y.y-z.y)?y.x>z.x?a.h(y.x-(x/2-E),y.y):a.h(y.x+(x/2-E),y.y):(x=(x/2-E)/b,a.h(y.x+x*(z.x-y.x),y.y+x*(z.y-y.y))),a},rn.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()===wa))return this.ua.wx(.5);if(this.computeCurve()===wa&&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 E=this.i(x+2);return x=this.i(x+3),se.My(a.x,a.y,y.x,y.y,E.x,E.y,x.x,x.y)}if(0<x&&x+1<a)return this.i(x-1).ab(this.i(x+1))}y=this.flattenedLengths,E=this.flattenedTotalLength;var b=0;x=0;for(var z;b<E/2&&x<a&&(z=y[x],!(b+z>E/2));)b+=z,x++;if(y=this.i(x),E=this.i(x+1),1>Math.abs(y.x-E.x)&&1>Math.abs(y.y-E.y)){if(0<x&&x+2<a)return this.i(x-1).ab(this.i(x+2))}else{if(1>Math.abs(y.x-E.x))return y.y>E.y?270:90;if(1>Math.abs(y.y-E.y))return y.x>E.x?180:0}return y.ab(E)},wt=rn.prototype,wt.i=function(a){return this.Nb.s[a]},wt.dd=function(a,y){this.Nb.cd(a,y)},wt.L=function(a,y,x){this.Nb.cd(a,new It(y,x))},wt.Kz=function(a,y){this.Nb.Gb(a,y)},wt.m=function(a,y,x){this.Nb.Gb(a,new It(y,x))},wt.ne=function(a){this.Nb.add(a)},wt.yf=function(a,y){this.Nb.add(new It(a,y))},wt.pv=function(a){this.Nb.mb(a)},wt.Fj=function(){this.Nb.clear()};function nh(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 E=a.fd,b=new $e,z=a.Nb.iterator;z.next();){var tt=z.value;b.add(new It(tt.x+y,tt.y+x).freeze())}b.freeze(),z=a.Nb,a.Nb=b,tt=a.diagram,isNaN(y)||isNaN(x)||tt!==null&&tt.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),Ms(a)),E?U0(a):(a.defaultFromPoint&&(a.defaultFromPoint=a.i(0)),a.defaultToPoint&&(a.defaultToPoint=a.i(a.pointsCount-1))),tt!==null&&tt.animationManager.zb&&Jc(tt.animationManager,a,b),a.g("points",z,b)}}wt.uh=function(){this.Mg===null&&(this.Mg=this.Nb,this.Nb=this.Nb.copy())},wt.zf=function(){if(this.Mg!==null){for(var a=this.Mg,y=this.Nb,x=1/0,E=1/0,b=a.s,z=b.length,tt=0;tt<z;tt++){var ot=b[tt];x=Math.min(ot.x,x),E=Math.min(ot.y,E)}ot=tt=1/0;for(var rt=y.s,at=rt.length,ut=0;ut<at;ut++){var ft=rt[ut];tt=Math.min(ft.x,tt),ot=Math.min(ft.y,ot),ft.freeze()}if(y.freeze(),at===z){for(z=0;z<at;z++)if(ut=b[z],ft=rt[z],ut.x-x!==ft.x-tt||ut.y-E!==ft.y-ot){this.qc();break}}else this.qc();this.Mg=null,x=this.diagram,x!==null&&x.animationManager.zb&&Jc(x.animationManager,this,y),U0(this),this.g("points",a,y)}},wt.rv=function(){this.Mg!==null&&(this.Nb=this.Mg,this.Mg=null)};function U0(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),K0(a,!1))}wt.bb=function(){if(!this.suspendsRouting){var a=this.diagram;if(a){if(a.As.contains(this)||a.undoManager.isUndoingRedoing||(a=a.animationManager,a.isTicking&&!a.isAnimating))return;this.Tg===null||a.isTicking||(this.Tg=null)}a=this.path,a!==null&&(this.fd=!1,this.v(),a.v())}},wt.vg=function(){if(!this.fd&&!this.computingPoints){var a=!0;try{this.computingPoints=!0,this.uh(),a=this.computePoints()}catch(y){this.computingPoints=!1,this.rv()}finally{this.computingPoints=!1,a?this.zf():this.rv()}}},rn.prototype.computePoints=function(){if(this.diagram===null)return!1;var a=this.fromNode,y=null;if(a===null?(yc||(yc=new Fn,yc.desiredSize=fn,yc.Va()),this.defaultFromPoint&&(yc.location=this.defaultFromPoint,yc.Va(),y=a=yc)):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 E=this.toNode,b=null;if(E===null?(Sc||(Sc=new Fn,Sc.desiredSize=fn,Sc.Va()),this.defaultToPoint&&(Sc.location=this.defaultToPoint,Sc.Va(),b=E=Sc)):b=this.toPort,b===null||E.isVisible()||(x=E.findVisibleNode(),x!==null&&x!==E?(E=x,b=x.port):E=x),this.Mw=E,E===null||!E.location.w())return!1;for(;!(b===null||b.actualBounds.w()&&b.Ed());)b=b.panel;if(b===null)return!1;var z=this.pointsCount,tt=this.computeSpot(!0,y);x=this.computeSpot(!1,b);var ot=Ag(tt),rt=Ag(x),at=y===b&&y!==null,ut=this.isOrthogonal,ft=this.curve===wa;this.Wf=at&&!ut?ft=!0:!1;var vt=this.computeAdjusting()===Bs||at;if(!ut&&!at&&ot&&rt){if(ot=!1,!vt&&3<=z&&(vt=this.getLinkPoint(a,y,tt,!0,!1,E,b),rt=this.getLinkPoint(E,b,x,!1,!1,a,y),ot=this.adjustPoints(0,vt,z-1,rt))&&(vt=this.getLinkPoint(a,y,tt,!0,!1,E,b),rt=this.getLinkPoint(E,b,x,!1,!1,a,y),this.adjustPoints(0,vt,z-1,rt)),!ot)if(this.Fj(),ft){z=this.getLinkPoint(a,y,tt,!0,!1,E,b),vt=this.getLinkPoint(E,b,x,!1,!1,a,y),ot=vt.x-z.x,rt=vt.y-z.y,at=this.computeCurviness(),ft=ut=0;var xt=z.x+ot/3,Pt=z.y+rt/3,Mt=xt,jt=Pt;se.B(rt,0)?jt=0<ot?jt-at:jt+at:(ut=-ot/rt,ft=Math.sqrt(at*at/(ut*ut+1)),0>at&&(ft=-ft),Mt=(0>rt?-1:1)*ft+xt,jt=ut*(Mt-xt)+Pt),xt=z.x+2*ot/3,Pt=z.y+2*rt/3;var Tt=xt,Vt=Pt;se.B(rt,0)?Vt=0<ot?Vt-at:Vt+at:(Tt=(0>rt?-1:1)*ft+xt,Vt=ut*(Tt-xt)+Pt),this.Fj(),this.ne(z),this.yf(Mt,jt),this.yf(Tt,Vt),this.ne(vt),this.dd(0,this.getLinkPoint(a,y,tt,!0,!1,E,b)),this.dd(3,this.getLinkPoint(E,b,x,!1,!1,a,y))}else z=E,vt=b,E=this.getLinkPoint(a,y,tt,!0,!1,z,vt),b=this.getLinkPoint(z,vt,x,!1,!1,a,y),this.hasCurviness()?(vt=b.x-E.x,x=b.y-E.y,tt=this.computeCurviness(),a=E.x+vt/2,y=E.y+x/2,z=a,ot=y,se.B(x,0)?ot=0<vt?ot-tt:ot+tt:(vt=-vt/x,z=Math.sqrt(tt*tt/(vt*vt+1)),0>tt&&(z=-z),z=(0>x?-1:1)*z+a,ot=vt*(z-a)+y),this.ne(E),this.yf(z,ot),this.ne(b)):(this.ne(E),this.ne(b),ot=be.alloc(),y.mi(ot),rt=ot.ca(b),vt.mi(ot),at=ot.ca(E),(rt||at)&&(tt=y.ga(Y0(tt),new It),this.dd(0,this.getLinkPointFromPoint(a,y,tt,b,!0,tt)),x=vt.ga(Y0(x),new It),this.dd(1,this.getLinkPointFromPoint(z,vt,x,E,!1,x))),be.free(ot))}else{ft=this.isAvoiding,vt&&(ut&&ft||at)&&this.Fj();var Yt=at?this.computeCurviness():0;ft=this.getLinkPoint(a,y,tt,!0,ut,E,b),xt=Mt=Pt=0,(ut||!ot||at)&&(jt=this.computeEndSegmentLength(a,y,tt,!0),xt=this.getLinkDirection(a,y,ft,tt,!0,ut,E,b),at&&(ot||tt.D(x)||!ut&&tt.x+x.x===1&&tt.y+x.y===1)&&(xt-=ut?90:30,0>Yt&&(xt-=180)),0>xt?xt+=360:360<=xt&&(xt-=360),at&&(jt+=Math.abs(Yt)*(ut?1:2)),xt===0?Pt=jt:xt===90?Mt=jt:xt===180?Pt=-jt:xt===270?Mt=-jt:(Pt=jt*Math.cos(xt*Math.PI/180),Mt=jt*Math.sin(xt*Math.PI/180)),tt.Mc()&&at&&(jt=y.ga(po,It.alloc()),Tt=It.allocAt(jt.x+1e3*Pt,jt.y+1e3*Mt),this.getLinkPointFromPoint(a,y,jt,Tt,!0,ft),It.free(jt),It.free(Tt))),jt=this.getLinkPoint(E,b,x,!1,ut,a,y);var Kt=Vt=Tt=0;if(ut||!rt||at){var te=this.computeEndSegmentLength(E,b,x,!1);Kt=this.getLinkDirection(E,b,jt,x,!1,ut,a,y),at&&(rt||tt.D(x)||!ut&&tt.x+x.x===1&&tt.y+x.y===1)&&(Kt+=ut?0:30,0>Yt&&(Kt+=180)),0>Kt?Kt+=360:360<=Kt&&(Kt-=360),at&&(te+=Math.abs(Yt)*(ut?1:2)),Kt===0?Tt=te:Kt===90?Vt=te:Kt===180?Tt=-te:Kt===270?Vt=-te:(Tt=te*Math.cos(Kt*Math.PI/180),Vt=te*Math.sin(Kt*Math.PI/180)),x.Mc()&&at&&(x=b.ga(po,It.alloc()),tt=It.allocAt(x.x+1e3*Tt,x.y+1e3*Vt),this.getLinkPointFromPoint(E,b,x,tt,!1,jt),It.free(x),It.free(tt))}x=ft,(ut||!ot||at)&&(x=new It(ft.x+Pt,ft.y+Mt)),tt=jt,(ut||!rt||at)&&(tt=new It(jt.x+Tt,jt.y+Vt)),!vt&&!ut&&ot&&3<z&&this.adjustPoints(0,ft,z-2,tt)?this.dd(z-1,jt):!vt&&!ut&&rt&&3<z&&this.adjustPoints(1,x,z-1,jt)?this.dd(0,ft):!vt&&(ut?6<=z:4<z)&&this.adjustPoints(1,x,z-2,tt)?(this.dd(0,ft),this.dd(z-1,jt)):(this.Fj(),this.ne(ft),(ut||!ot||at)&&this.ne(x),ut&&this.addOrthoPoints(x,xt,tt,Kt,a,E),(ut||!rt||at)&&this.ne(tt),this.ne(jt))}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}rn.prototype.getLinkPointFromPoint=function(a,y,x,E,b,z){if(z===void 0&&(z=new It),a===null||y===null)return z.assign(x),z;if(a.isVisible()||(b=a.findVisibleNode(),b!==null&&b!==a&&(y=b.port)),a=null,b=y.panel,b===null||b.se()||(b=b.panel),b===null){b=E.x,E=E.y;var tt=x.x;x=x.y}else{a=b.oe,b=1/(a.m11*a.m22-a.m12*a.m21),tt=a.m22*b;var ot=-a.m12*b,rt=-a.m21*b,at=a.m11*b,ut=b*(a.m21*a.dy-a.m22*a.dx),ft=b*(a.m12*a.dx-a.m11*a.dy);b=E.x*tt+E.y*rt+ut,E=E.x*ot+E.y*at+ft,tt=x.x*tt+x.y*rt+ut,x=x.x*ot+x.y*at+ft}return y.Sj(b,E,tt,x,z),a!==null&&z.transform(a),z};function W0(a,y){var x=y.Zn;return x===null&&(x=new xc,x.port=y,x.node=y.part,y.Zn=x),aS(x,a)}rn.prototype.getLinkPoint=function(a,y,x,E,b,z,tt,ot){if(ot===void 0&&(ot=new It),x.sb()&&!Ag(x))return y.ga(x,ot),ot;if(x.$c()){var rt=W0(this,y);if(rt!==null){if(ot.assign(rt.Zo),b&&this.routing===eS){var at=W0(this,tt);if(at!==null&&rt.Gl<at.Gl){rt=It.alloc(),at=It.alloc();var ut=new be(y.ga(ir,rt),y.ga(zs,at)),ft=this.computeSpot(!E,tt);a=this.getLinkPoint(z,tt,ft,!E,b,a,y,at),(x.Hf(kl)||x.Hf(Qs))&&a.y>=ut.y&&a.y<=ut.y+ut.height?ot.y=a.y:(x.Hf(Fl)||x.Hf(za))&&a.x>=ut.x&&a.x<=ut.x+ut.width&&(ot.x=a.x),It.free(rt),It.free(at)}}return ot}}return x=y.ga(Y0(x),It.alloc()),this.pointsCount>(b?6:2)?(tt=E?this.i(1):this.i(this.pointsCount-2),b&&(tt=Zv(x,tt.copy()))):(rt=this.computeSpot(!E,tt),z=It.alloc(),tt=tt.ga(Y0(rt),z),b&&(tt=Zv(x,tt)),It.free(z)),this.getLinkPointFromPoint(a,y,x,tt,E,ot),It.free(x),ot},rn.prototype.getLinkDirection=function(a,y,x,E,b,z,tt,ot){t:if(E.sb())var rt=E.x>E.y?E.x>1-E.y?0:E.x<1-E.y?270:315:E.x<E.y?E.x>1-E.y?90:E.x<1-E.y?180:135:.5>E.x?225:.5<E.x?45:0;else{if(E.$c()&&(rt=W0(this,y),rt!==null))switch(rt.Nc){case 1:rt=270;break t;case 2:rt=180;break t;default:case 4:rt=0;break t;case 8:rt=90;break t}rt=y.ga(po,It.alloc()),this.pointsCount>(z?6:2)?(ot=b?this.i(1):this.i(this.pointsCount-2),ot=z?Zv(rt,ot.copy()):x):(x=It.alloc(),ot=ot.ga(po,x),It.free(x)),x=Math.abs(ot.x-rt.x)>Math.abs(ot.y-rt.y)?ot.x>=rt.x?0:180:ot.y>=rt.y?90:270,It.free(rt),rt=x}return E.Mc()&&tt.Td(a)&&(rt+=180,360<=rt&&(rt-=360)),Ag(E)||(a=y.li(),a===0)||(45<=a&&135>a?rt+=90:135<=a&&225>a?rt+=180:225<=a&&315>a&&(rt+=270),360<=rt&&(rt-=360)),rt},rn.prototype.computeEndSegmentLength=function(a,y,x,E){return y!==null&&x.$c()&&(a=W0(this,y),a!==null)?a.Ju:(a=E?this.fromEndSegmentLength:this.toEndSegmentLength,y!==null&&isNaN(a)&&(a=E?y.fromEndSegmentLength:y.toEndSegmentLength),isNaN(a)&&(a=10),a)},rn.prototype.computeSpot=function(a,y){return y===void 0&&(y=null),a?(a=y||this.fromPort,a===null?a=po:(y=this.fromSpot,y.Xb()&&(y=a.fromSpot),a=y===Or?lr:y)):(a=y||this.toPort,a===null?a=po:(y=this.toSpot,y.Xb()&&(y=a.toSpot),a=y===Or?lr:y)),a};function Ag(a){return a===lr||a.x===.5&&a.y===.5}function Y0(a){return a.x===.5&&a.y===.5?a:po}rn.prototype.computeOtherPoint=function(a,y){return this.computeAdjusting()!==Bs&&4<this.pointsCount?this.computeMidPoint(new It):(a=y.Zn,a=a!==null?aS(a,this):null,a!==null?a.Zo:y.ga(po))},rn.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},rn.prototype.Cf=function(a,y,x,E,b,z){if(this.pickable===!1)return!1;y===void 0&&(y=null),x===void 0&&(x=null);var tt=z;if(z===void 0&&(tt=Di.alloc(),tt.reset()),tt.multiply(this.transform),this.fh(a,tt))return mv(this,y,x,b),z===void 0&&Di.free(tt),!0;if(this.Yc(a,tt)){var ot=!1;if(!this.isAtomic)for(var rt=this.O.s,at=rt.length;at--;){var ut=rt[at];if(ut.visible||ut===this.locationObject){var ft=ut.actualBounds,vt=this.naturalBounds;if(!(ft.x>vt.width||ft.y>vt.height||0>ft.x+ft.width||0>ft.y+ft.height)){if(ft=Di.alloc(),ft.set(tt),ut instanceof tn)ot=ut.Cf(a,y,x,E,b,ft);else if(this.path===ut){if(ut instanceof Fi)if(ot=a,vt=E,ut.pickable===!1)ot=!1;else if(ft.multiply(ut.transform),vt)t:{var xt=ot,Pt=ft;if(ut.fh(xt,Pt))ot=!0;else{if(Pt===void 0&&(Pt=ut.transform,xt.Re(ut.actualBounds))){ot=!0;break t}ot=xt.left,vt=xt.right;var Mt=xt.top;xt=xt.bottom;var jt=It.alloc(),Tt=It.alloc(),Vt=It.alloc(),Yt=Di.alloc();Yt.set(Pt),Yt.bv(ut.transform),Yt.Vj(),Tt.x=vt,Tt.y=Mt,Tt.transform(Yt),jt.x=ot,jt.y=Mt,jt.transform(Yt),Pt=!1,Bd(ut,jt,Tt,Vt)?Pt=!0:(jt.x=vt,jt.y=xt,jt.transform(Yt),Bd(ut,jt,Tt,Vt)?Pt=!0:(Tt.x=ot,Tt.y=xt,Tt.transform(Yt),Bd(ut,jt,Tt,Vt)?Pt=!0:(jt.x=ot,jt.y=Mt,jt.transform(Yt),Bd(ut,jt,Tt,Vt)&&(Pt=!0)))),Di.free(Yt),It.free(jt),It.free(Tt),It.free(Vt),ot=Pt}}else ot=ut.fh(ot,ft)}else ot=br(ut,a,E,ft);ot&&(vt=ut,y!==null&&(vt=y(ut)),vt&&(x===null||x(vt))&&b.add(vt)),Di.free(ft)}}}return z===void 0&&Di.free(tt),ot||this.background!==null||this.areaBackground!==null}return z===void 0&&Di.free(tt),!1},rn.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?wa:this.curve},rn.prototype.computeCorner=function(){if(this.curve===wa)return 0;var a=this.corner;return(isNaN(a)||0>a)&&(a=10),a},rn.prototype.findMidLabel=function(){for(var a=this.path,y=this.O.s,x=y.length,E=0;E<x;E++){var b=y[E];if(b!==a&&!b.isPanelMain&&(b.segmentIndex===-1/0||isNaN(b.segmentIndex)))return b}for(a=this.labelNodes;a.next();)if(y=a.value,y.segmentIndex===-1/0||isNaN(y.segmentIndex))return y;return null},rn.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 E=this.findMidLabel();if(E!==null){var b=E.naturalBounds,z=E.margin,tt=isNaN(b.width)?30:b.width*E.scale+z.left+z.right;b=isNaN(b.height)?14:b.height*E.scale+z.top+z.bottom,E=E.segmentOrientation,E===Jf||E===J0||E===qv?a=Math.max(a,b):E===_f||E===tp||E===qf||E===$f?a=Math.max(a,tt):(y=y.ga(po).ab(x.ga(po))/180*Math.PI,a=Math.max(a,Math.abs(Math.sin(y)*tt)+Math.abs(Math.cos(y)*b)+1)),this.curve===wa&&(a*=1.333)}}return a},rn.prototype.arrangeBundledLinks=function(a,y){if(y)for(y=0;y<a.length;y++){var x=a[y];x.computeAdjusting()===Bs&&x.bb()}},rn.prototype.computeCurviness=function(){var a=this.curviness;if(isNaN(a)){a=nS;var y=this.Sf;if(y!==null){for(var x=Rn(),E=0,b=y.links,z=0;z<b.length;z++){var tt=b[z].computeSpacing();x.push(tt),E+=tt}for(E=-E/2,z=0;z<b.length;z++){if(b[z]===this){a=E+x[z]/2;break}E+=x[z]}y.Ds===this.fromNode&&(a=-a),qn(x)}}return a},rn.prototype.computeThickness=function(){if(!this.isVisible())return 0;var a=this.path;return a!==null?Math.max(a.strokeWidth,1):1},rn.prototype.hasCurviness=function(){return!isNaN(this.curviness)||this.Sf!==null},rn.prototype.adjustPoints=function(a,y,x,E){var b=this.computeAdjusting();if(this.isOrthogonal){if(b===Q0)return!1;b===X0&&(b=Xf)}switch(b){case Q0:var z=this.i(a),tt=this.i(x);if(!z.Xa(y)||!tt.Xa(E)){b=z.x,z=z.y;var ot=tt.x-b,rt=tt.y-z,at=Math.sqrt(ot*ot+rt*rt);if(!se.$(at,0)){if(se.$(ot,0))var ut=0>rt?-Math.PI/2:Math.PI/2;else ut=Math.atan(rt/Math.abs(ot)),0>ot&&(ut=Math.PI-ut);tt=y.x;var ft=y.y;ot=E.x-tt;var vt=E.y-ft;for(rt=Math.sqrt(ot*ot+vt*vt),se.$(ot,0)?vt=0>vt?-Math.PI/2:Math.PI/2:(vt=Math.atan(vt/Math.abs(ot)),0>ot&&(vt=Math.PI-vt)),at=rt/at,ut=vt-ut,this.dd(a,y),a+=1;a<x;a++)y=this.i(a),ot=y.x-b,rt=y.y-z,y=Math.sqrt(ot*ot+rt*rt),se.$(y,0)||(se.$(ot,0)?rt=0>rt?-Math.PI/2:Math.PI/2:(rt=Math.atan(rt/Math.abs(ot)),0>ot&&(rt=Math.PI-rt)),ot=rt+ut,y*=at,this.L(a,tt+y*Math.cos(ot),ft+y*Math.sin(ot)));this.dd(x,E)}}return!0;case X0:if(z=this.i(a),ft=this.i(x),!z.Xa(y)||!ft.Xa(E)){b=z.x,z=z.y,tt=ft.x,ft=ft.y,at=(tt-b)*(tt-b)+(ft-z)*(ft-z),ot=y.x,ut=y.y,rt=E.x,vt=E.y;var xt=1;if(rt-ot!==0){var Pt=(vt-ut)/(rt-ot);xt=Math.sqrt(1+1/(Pt*Pt))}else Pt=9e9;for(this.dd(a,y),a+=1;a<x;a++){y=this.i(a);var Mt=y.x,jt=y.y,Tt=.5;at!==0&&(Tt=((b-Mt)*(b-tt)+(z-jt)*(z-ft))/at);var Vt=b+Tt*(tt-b),Yt=z+Tt*(ft-z);y=Math.sqrt((Mt-Vt)*(Mt-Vt)+(jt-Yt)*(jt-Yt)),jt<Pt*(Mt-Vt)+Yt&&(y=-y),0<Pt&&(y=-y),Mt=ot+Tt*(rt-ot),Tt=ut+Tt*(vt-ut),Pt!==0?(y=Mt+y/xt,this.L(a,y,Tt-(y-Mt)/Pt)):this.L(a,Mt,Tt+y)}this.dd(x,E)}return!0;case Xf:t:{if(this.isOrthogonal&&(b=this.i(a),z=this.i(a+1),tt=this.i(a+2),ot=z.x,ut=z.y,ft=ot,at=ut,se.B(b.y,z.y)?se.B(z.x,tt.x)?ut=y.y:se.B(z.y,tt.y)&&(ot=y.x):se.B(b.x,z.x)&&(se.B(z.y,tt.y)?ot=y.x:se.B(z.x,tt.x)&&(ut=y.y)),this.L(a+1,ot,ut),b=this.i(x),z=this.i(x-1),tt=this.i(x-2),ot=z.x,ut=z.y,rt=ot,vt=ut,se.B(b.y,z.y)?se.B(z.x,tt.x)?ut=E.y:se.B(z.y,tt.y)&&(ot=E.x):se.B(b.x,z.x)&&(se.B(z.y,tt.y)?ot=E.x:se.B(z.x,tt.x)&&(ut=E.y)),this.L(x-1,ot,ut),Kv(this))){this.L(a+1,ft,at),this.L(x-1,rt,vt),x=!1;break t}this.dd(a,y),this.dd(x,E),x=!0}return x;default:return!1}},rn.prototype.addOrthoPoints=function(a,y,x,E,b,z){0>y?y+=360:360<=y&&(y-=360),0>E?E+=360:360<=E&&(E-=360);var tt=E;y=315<=y||45>y?0:45<=y&&135>y?90:135<=y&&225>y?180:270,E=315<=E||45>E?0:45<=E&&135>E?90:135<=E&&225>E?180:270;var ot=b.actualBounds.copy(),rt=z.actualBounds.copy();if(ot.w()&&rt.w()){ot.Bc(ep,ep),rt.Bc(ep,ep),ot.Ye(a),rt.Ye(x);var at=It.alloc(),ut=It.alloc();y===0?x.x>a.x||E===270&&x.y<a.y&&rt.right>a.x||E===90&&x.y>a.y&&rt.right>a.x?(at.h(x.x,a.y),ut.h(x.x,(a.y+x.y)/2),E===180?(at.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1),ut.x=at.x,ut.y=x.y):E===270&&x.y<a.y||E===90&&x.y>a.y?(at.x=a.x<rt.left?this.computeMidOrthoPosition(a.x,a.y,rt.left,x.y,!1):a.x<rt.right&&(E===270&&a.y<rt.top||E===90&&a.y>rt.bottom)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):rt.right,ut.x=at.x,ut.y=x.y):E===0&&a.x<rt.left&&a.y>rt.top&&a.y<rt.bottom&&(at.x=a.x,at.y=a.y<x.y?Math.min(x.y,rt.top):Math.max(x.y,rt.bottom),ut.y=at.y)):(at.h(a.x,x.y),ut.h((a.x+x.x)/2,x.y),(E===180||E===90&&x.y<ot.top||E===270&&x.y>ot.bottom)&&(E===180&&(rt.ca(a)||ot.ca(x))?at.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):x.y<a.y&&(E===180||E===90)?at.y=this.computeMidOrthoPosition(a.x,ot.top,x.x,Math.max(x.y,rt.bottom),!0):x.y>a.y&&(E===180||E===270)&&(at.y=this.computeMidOrthoPosition(a.x,ot.bottom,x.x,Math.min(x.y,rt.top),!0)),ut.x=x.x,ut.y=at.y),at.y>ot.top&&at.y<ot.bottom&&(x.x>=ot.left&&x.x<=a.x||a.x<=rt.right&&a.x>=x.x?(E===90||E===270)&&(at.h(Math.max((a.x+x.x)/2,a.x),a.y),ut.h(at.x,x.y)):(at.y=E===270||(E===0||E===180)&&x.y<a.y?Math.min(x.y,E===0?ot.top:Math.min(ot.top,rt.top)):Math.max(x.y,E===0?ot.bottom:Math.max(ot.bottom,rt.bottom)),ut.x=x.x,ut.y=at.y))):y===180?x.x<a.x||E===270&&x.y<a.y&&rt.left<a.x||E===90&&x.y>a.y&&rt.left<a.x?(at.h(x.x,a.y),ut.h(x.x,(a.y+x.y)/2),E===0?(at.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1),ut.x=at.x,ut.y=x.y):E===270&&x.y<a.y||E===90&&x.y>a.y?(at.x=a.x>rt.right?this.computeMidOrthoPosition(a.x,a.y,rt.right,x.y,!1):a.x>rt.left&&(E===270&&a.y<rt.top||E===90&&a.y>rt.bottom)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):rt.left,ut.x=at.x,ut.y=x.y):E===180&&a.x>rt.right&&a.y>rt.top&&a.y<rt.bottom&&(at.x=a.x,at.y=a.y<x.y?Math.min(x.y,rt.top):Math.max(x.y,rt.bottom),ut.y=at.y)):(at.h(a.x,x.y),ut.h((a.x+x.x)/2,x.y),(E===0||E===90&&x.y<ot.top||E===270&&x.y>ot.bottom)&&(E===0&&(rt.ca(a)||ot.ca(x))?at.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):x.y<a.y&&(E===0||E===90)?at.y=this.computeMidOrthoPosition(a.x,ot.top,x.x,Math.max(x.y,rt.bottom),!0):x.y>a.y&&(E===0||E===270)&&(at.y=this.computeMidOrthoPosition(a.x,ot.bottom,x.x,Math.min(x.y,rt.top),!0)),ut.x=x.x,ut.y=at.y),at.y>ot.top&&at.y<ot.bottom&&(x.x<=ot.right&&x.x>=a.x||a.x>=rt.left&&a.x<=x.x?(E===90||E===270)&&(at.h(Math.min((a.x+x.x)/2,a.x),a.y),ut.h(at.x,x.y)):(at.y=E===270||(E===0||E===180)&&x.y<a.y?Math.min(x.y,E===180?ot.top:Math.min(ot.top,rt.top)):Math.max(x.y,E===180?ot.bottom:Math.max(ot.bottom,rt.bottom)),ut.x=x.x,ut.y=at.y))):y===90?x.y>a.y||E===180&&x.x<a.x&&rt.bottom>a.y||E===0&&x.x>a.x&&rt.bottom>a.y?(at.h(a.x,x.y),ut.h((a.x+x.x)/2,x.y),E===270?(at.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0),ut.x=x.x,ut.y=at.y):E===180&&x.x<a.x||E===0&&x.x>a.x?(at.y=a.y<rt.top?this.computeMidOrthoPosition(a.x,a.y,x.x,rt.top,!0):a.y<rt.bottom&&(E===180&&a.x<rt.left||E===0&&a.x>rt.right)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):rt.bottom,ut.x=x.x,ut.y=at.y):E===90&&a.y<rt.top&&a.x>rt.left&&a.x<rt.right&&(at.x=a.x<x.x?Math.min(x.x,rt.left):Math.max(x.x,rt.right),at.y=a.y,ut.x=at.x)):(at.h(x.x,a.y),ut.h(x.x,(a.y+x.y)/2),(E===270||E===0&&x.x<ot.left||E===180&&x.x>ot.right)&&(E===270&&(rt.ca(a)||ot.ca(x))?at.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):x.x<a.x&&(E===270||E===0)?at.x=this.computeMidOrthoPosition(ot.left,a.y,Math.max(x.x,rt.right),x.y,!1):x.x>a.x&&(E===270||E===180)&&(at.x=this.computeMidOrthoPosition(ot.right,a.y,Math.min(x.x,rt.left),x.y,!1)),ut.x=at.x,ut.y=x.y),at.x>ot.left&&at.x<ot.right&&(x.y>=ot.top&&x.y<=a.y||a.y<=rt.bottom&&a.y>=x.y?(E===0||E===180)&&(at.h(a.x,Math.max((a.y+x.y)/2,a.y)),ut.h(x.x,at.y)):(at.x=E===180||(E===90||E===270)&&x.x<a.x?Math.min(x.x,E===90?ot.left:Math.min(ot.left,rt.left)):Math.max(x.x,E===90?ot.right:Math.max(ot.right,rt.right)),ut.x=at.x,ut.y=x.y))):x.y<a.y||E===180&&x.x<a.x&&rt.top<a.y||E===0&&x.x>a.x&&rt.top<a.y?(at.h(a.x,x.y),ut.h((a.x+x.x)/2,x.y),E===90?(at.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0),ut.x=x.x,ut.y=at.y):E===180&&x.x<a.x||E===0&&x.x>=a.x?(at.y=a.y>rt.bottom?this.computeMidOrthoPosition(a.x,a.y,x.x,rt.bottom,!0):a.y>rt.top&&(E===180&&a.x<rt.left||E===0&&a.x>rt.right)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):rt.top,ut.x=x.x,ut.y=at.y):E===270&&a.y>rt.bottom&&a.x>rt.left&&a.x<rt.right&&(at.x=a.x<x.x?Math.min(x.x,rt.left):Math.max(x.x,rt.right),at.y=a.y,ut.x=at.x)):(at.h(x.x,a.y),ut.h(x.x,(a.y+x.y)/2),(E===90||E===0&&x.x<ot.left||E===180&&x.x>ot.right)&&(E===90&&(rt.ca(a)||ot.ca(x))?at.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):x.x<a.x&&(E===90||E===0)?at.x=this.computeMidOrthoPosition(ot.left,a.y,Math.max(x.x,rt.right),x.y,!1):x.x>a.x&&(E===90||E===180)&&(at.x=this.computeMidOrthoPosition(ot.right,a.y,Math.min(x.x,rt.left),x.y,!1)),ut.x=at.x,ut.y=x.y),at.x>ot.left&&at.x<ot.right&&(x.y<=ot.bottom&&x.y>=a.y||a.y>=rt.top&&a.y<=x.y?(E===0||E===180)&&(at.h(a.x,Math.min((a.y+x.y)/2,a.y)),ut.h(x.x,at.y)):(at.x=E===180||(E===90||E===270)&&x.x<a.x?Math.min(x.x,E===270?ot.left:Math.min(ot.left,rt.left)):Math.max(x.x,E===270?ot.right:Math.max(ot.right,rt.right)),ut.x=at.x,ut.y=x.y)));var ft=x;if(this.isAvoiding){var vt=this.diagram;if(vt===null||b===z||this.layer.isTemporary||!rg(vt)||ot.ca(ft)&&!z.Td(b)||rt.ca(a)&&!b.Td(z))y=!1;else{var xt=sg(vt,!0,this.containingGroup,null);if(this.segmentIndex!==17&&xt.Yj(Math.min(a.x,at.x),Math.min(a.y,at.y),Math.abs(a.x-at.x),Math.abs(a.y-at.y))&&xt.Yj(Math.min(at.x,ut.x),Math.min(at.y,ut.y),Math.abs(at.x-ut.x),Math.abs(at.y-ut.y))&&xt.Yj(Math.min(ut.x,ft.x),Math.min(ut.y,ft.y),Math.abs(ut.x-ft.x),Math.abs(ut.y-ft.y)))y=!1;else{b=a,z=ft;var Pt=x=null;if(vt.isVirtualized){vt=xt.bounds.copy(),vt.Bc(-xt.Ho,-xt.Go);var Mt=It.alloc();Lg(xt,a.x,a.y)||(se.Ff(vt.x,vt.y,vt.x+vt.width,vt.y+vt.height,a.x,a.y,at.x,at.y,Mt)?(x=a=Mt.copy(),y=Mt.ab(at)):se.Ff(vt.x,vt.y,vt.x+vt.width,vt.y+vt.height,at.x,at.y,ut.x,ut.y,Mt)?(x=a=Mt.copy(),y=Mt.ab(ut)):se.Ff(vt.x,vt.y,vt.x+vt.width,vt.y+vt.height,ut.x,ut.y,ft.x,ft.y,Mt)&&(x=a=Mt.copy(),y=Mt.ab(ft))),Lg(xt,ft.x,ft.y)||(se.Ff(vt.x,vt.y,vt.x+vt.width,vt.y+vt.height,ft.x,ft.y,ut.x,ut.y,Mt)?(Pt=ft=Mt.copy(),E=ut.ab(Mt)):se.Ff(vt.x,vt.y,vt.x+vt.width,vt.y+vt.height,ut.x,ut.y,at.x,at.y,Mt)?(Pt=ft=Mt.copy(),E=at.ab(Mt)):se.Ff(vt.x,vt.y,vt.x+vt.width,vt.y+vt.height,at.x,at.y,a.x,a.y,Mt)&&(Pt=ft=Mt.copy(),E=a.ab(Mt))),It.free(Mt)}ot=ot.copy().ed(rt),ot.Bc(xt.Ho*xt.Os,xt.Go*xt.Os),rS(xt,a,y,ft,E,ot,!0),rt=tu(xt,ft.x,ft.y),!xt.abort&&rt>=Fg&&(oS(xt),ot.Bc(xt.Ho*xt.Hx,xt.Go*xt.Ix),rS(xt,a,y,ft,E,ot,!1),rt=tu(xt,ft.x,ft.y)),!xt.abort&&rt<Fg&&tu(xt,ft.x,ft.y)!==oh?(Qv(this,xt,ft.x,ft.y,E,!0,tt),ot=this.i(2),4>this.pointsCount?(y===0||y===180?(ot.x=a.x,ot.y=ft.y):(ot.x=ft.x,ot.y=a.y),this.L(2,ot.x,ot.y),this.m(3,ot.x,ot.y)):(tt=this.i(3),y===0||y===180?se.B(ot.x,tt.x)?(ot=y===0?Math.max(ot.x,a.x):Math.min(ot.x,a.x),this.L(2,ot,a.y),this.L(3,ot,tt.y)):se.B(ot.y,tt.y)?(Math.abs(a.y-ot.y)<=xt.Go/2&&(this.L(2,ot.x,a.y),this.L(3,tt.x,a.y)),this.m(2,ot.x,a.y)):this.L(2,a.x,ot.y):(y===90||y===270)&&(se.B(ot.y,tt.y)?(ot=y===90?Math.max(ot.y,a.y):Math.min(ot.y,a.y),this.L(2,a.x,ot),this.L(3,tt.x,ot)):se.B(ot.x,tt.x)?(Math.abs(a.x-ot.x)<=xt.Ho/2&&(this.L(2,a.x,ot.y),this.L(3,a.x,tt.y)),this.m(2,a.x,ot.y)):this.L(2,ot.x,a.y))),x!==null&&(a=this.i(1),tt=this.i(2),a.x!==tt.x&&a.y!==tt.y?y===0||y===180?this.m(2,a.x,tt.y):this.m(2,tt.x,a.y):y===0||y===180?this.m(2,b.x,x.y):this.m(2,x.x,b.y)),Pt!==null&&(E===0||E===180?this.yf(z.x,Pt.y):this.yf(Pt.x,z.y)),y=!0):y=!1}}}else y=!1;y||(this.ne(at.copy()),this.ne(ut.copy())),It.free(at),It.free(ut)}},rn.prototype.computeMidOrthoPosition=function(a,y,x,E,b){var z=0;return!this.hasCurviness()||this.computeSpot(!0,this.fromPort).$c()||this.computeSpot(!1,this.toPort).$c()||(z=this.computeCurviness()),b?(y+E)/2+z:(a+x)/2+z};function Kv(a){if(a.diagram===null||!a.isAvoiding||!rg(a.diagram))return!1;var y=a.points.s,x=y.length;if(4>x)return!1;a=sg(a.diagram,!0,a.containingGroup,null);for(var E=1;E<x-2;E++){var b=y[E],z=y[E+1];if(!a.Yj(Math.min(b.x,z.x),Math.min(b.y,z.y),Math.abs(b.x-z.x),Math.abs(b.y-z.y)))return!0}return!1}function Qv(a,y,x,E,b,z,tt){var ot=y.Ho,rt=y.Go,at=tu(y,x,E),ut=x,ft=E;for(b===0?ut+=ot:b===90?ft+=rt:b===180?ut-=ot:ft-=rt,b!==tt&&at>Dd&&tu(y,ut,ft)!==at-1&&(tu(y,x-ot,E)===at-1?(b=180,ut=x-ot,ft=E):tu(y,x+ot,E)===at-1?(b=0,ut=x+ot,ft=E):tu(y,x,E-rt)===at-1?(b=270,ut=x,ft=E-rt):tu(y,x,E+rt)===at-1&&(b=90,ut=x,ft=E+rt));at>Dd&&tu(y,ut,ft)===at-1;)x=ut,E=ft,b===0?ut+=ot:b===90?ft+=rt:b===180?ut-=ot:ft-=rt,--at;z?at>Dd&&(b===180||b===0?x=Math.floor(x/ot)*ot+ot/2:(b===90||b===270)&&(E=Math.floor(E/rt)*rt+rt/2)):(x=Math.floor(x/ot)*ot+ot/2,E=Math.floor(E/rt)*rt+rt/2),at>Dd&&(z=b,tt=x,ut=E,b===0?(z=90,ut+=rt):b===90?(z=180,tt-=ot):b===180?(z=270,ut-=rt):b===270&&(z=0,tt+=ot),tu(y,tt,ut)===at-1?Qv(a,y,tt,ut,z,!1,z):(tt=x,ut=E,b===0?(z=270,ut-=rt):b===90?(z=0,tt+=ot):b===180?(z=90,ut+=rt):b===270&&(z=180,tt-=ot),tu(y,tt,ut)===at-1&&Qv(a,y,tt,ut,z,!1,z))),a.yf(x,E)}rn.prototype.ez=function(a){var y=a.x;a=a.y;for(var x=this.i(0),E=this.i(1),b=Un(y,a,x.x,x.y,E.x,E.y),z=0,tt=1;tt<this.pointsCount-1;tt++){x=this.i(tt+1);var ot=Un(y,a,E.x,E.y,x.x,x.y);E=x,ot<b&&(z=tt,b=ot)}return z},rn.prototype.qc=function(){this.lk=!1,this.v()},rn.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,E=0;E<x;E++){var b=y[E];b!==a&&b.isPanelMain&&b instanceof Fi&&(b.ua=this.ua)}}},rn.prototype.makeGeometry=function(){var a=this.ua,y=this.pointsCount,x=!1,E=this.diagram;E!==null&&bd(this)&&E.Eh.contains(this)&&(this.ml.width!==0||this.ml.height!==0)&&(E.animationManager.isAnimating||E.currentTool!==E.toolManager)&&(x=!0);var b=this.i(0).copy(),z=b.copy();E=this.Nb.s;var tt=this.computeCurve();if(tt===wa&&3<=y&&!se.$(this.smoothness,0))if(y===3){var ot=this.i(1);E=Math.min(b.x,ot.x);var rt=Math.min(b.y,ot.y);ot=this.i(2),E=Math.min(E,ot.x),rt=Math.min(rt,ot.y)}else{if(this.isOrthogonal)for(rt=0;rt<y;rt++)ot=E[rt],z.x=Math.min(ot.x,z.x),z.y=Math.min(ot.y,z.y);else for(E=3;E<y;E+=3)E+3>=y&&(E=y-1),rt=this.i(E),z.x=Math.min(rt.x,z.x),z.y=Math.min(rt.y,z.y);E=z.x,rt=z.y}else{for(rt=0;rt<y;rt++)ot=E[rt],z.x=Math.min(ot.x,z.x),z.y=Math.min(ot.y,z.y);E=z.x,rt=z.y}if(E-=this.su.x,rt-=this.su.y,b.x-=E,b.y-=rt,y!==2||bd(this)){if(a.type=cn.o,ot=B1(a),this.computeShortLength(!0)!==0&&(b=mc(this,b,!0,z)),Cg(ot,b.x,b.y,!1),tt===wa&&3<=y&&!se.$(this.smoothness,0))if(y===3)x=this.i(1),y=x.x-E,x=x.y-rt,b=this.i(2).copy(),b.x-=E,b.y-=rt,this.computeShortLength(!1)!==0&&(b=mc(this,b,!1,z)),$u(ot,y,x,y,x,b.x,b.y);else if(this.isOrthogonal){y=It.allocAt(E,rt),x=It.alloc(),x.assign(this.i(1)),z=It.allocAt(E,rt),b=It.allocAt(E,rt),tt=this.i(0);for(var at,ut=this.smoothness/3,ft=1;ft<this.pointsCount-1;ft++){at=this.i(ft);var vt=tt,xt=at,Pt=this.i(Xv(this,at,ft,!1));if((!se.$(vt.x,xt.x)||!se.$(xt.x,Pt.x))&&(!se.$(vt.y,xt.y)||!se.$(xt.y,Pt.y))){var Mt=ut;isNaN(Mt)&&(Mt=this.smoothness/3);var jt=vt.x;vt=vt.y;var Tt=xt.x;xt=xt.y;var Vt=Pt.x;Pt=Pt.y;var Yt=Mt*Z0(jt,vt,Tt,xt);Mt*=Z0(Tt,xt,Vt,Pt),se.$(vt,xt)&&se.$(Tt,Vt)&&(Tt>jt?Pt>xt?(z.x=Tt-Yt,z.y=xt-Yt,b.x=Tt+Mt,b.y=xt+Mt):(z.x=Tt-Yt,z.y=xt+Yt,b.x=Tt+Mt,b.y=xt-Mt):Pt>xt?(z.x=Tt+Yt,z.y=xt-Yt,b.x=Tt-Mt,b.y=xt+Mt):(z.x=Tt+Yt,z.y=xt+Yt,b.x=Tt-Mt,b.y=xt-Mt)),se.$(jt,Tt)&&se.$(xt,Pt)&&(xt>vt?(Vt>Tt?(z.x=Tt-Yt,z.y=xt-Yt,b.x=Tt+Mt):(z.x=Tt+Yt,z.y=xt-Yt,b.x=Tt-Mt),b.y=xt+Mt):(Vt>Tt?(z.x=Tt-Yt,z.y=xt+Yt,b.x=Tt+Mt):(z.x=Tt+Yt,z.y=xt+Yt,b.x=Tt-Mt),b.y=xt-Mt)),(se.$(jt,Tt)&&se.$(Tt,Vt)||se.$(vt,xt)&&se.$(xt,Pt))&&(jt=.5*(jt+Vt),vt=.5*(vt+Pt),z.x=jt,z.y=vt,b.x=jt,b.y=vt),(ft===1||ft===2&&se.$(tt.x,this.i(0).x)&&se.$(tt.y,this.i(0).y))&&(x.x=.5*(tt.x+at.x),x.y=.5*(tt.y+at.y)),$u(ot,x.x-E,x.y-rt,z.x-E,z.y-rt,at.x-E,at.y-rt),y.set(z),x.set(b),tt=at}}at=tt.x,tt=tt.y,ut=this.i(this.pointsCount-1),this.computeShortLength(!1)!==0&&(ut=mc(this,ut.copy(),!1,qo)),at=.5*(at+ut.x),tt=.5*(tt+ut.y),$u(ot,b.x-E,b.y-rt,at-E,tt-rt,ut.x-E,ut.y-rt),It.free(y),It.free(x),It.free(z),It.free(b)}else for(x=3;x<y;x+=3)z=this.i(x-2),x+3>=y&&(x=y-1),b=this.i(x-1),tt=this.i(x),x===y-1&&this.computeShortLength(!1)!==0&&(tt=mc(this,tt.copy(),!1,qo)),$u(ot,z.x-E,z.y-rt,b.x-E,b.y-rt,tt.x-E,tt.y-rt);else{for(z=It.alloc(),z.assign(this.i(0)),b=It.alloc(),b.assign(z),tt=this.computeCorner(),ft=1,at=0;ft<y;){if(ft=Xv(this,z,ft,1<ft),ut=this.i(ft),ft>=y-1){if(!z.D(ut))this.computeShortLength(!1)!==0&&(ut=mc(this,ut.copy(),!1,qo)),vc(this,ot,-E,-rt,z,ut,x);else if(at===0)for(ft=1;ft<y;)b.assign(z),ut=this.i(ft++),vc(this,ot,-E,-rt,z,ut,x),z.assign(ut);break}if(at=Xv(this,ut,ft+1,ft<y-3),ft=-E,jt=-rt,vt=ut,Tt=this.i(at),Mt=x,se.B(z.y,vt.y)&&se.B(vt.x,Tt.x))if(Pt=Math.min(tt,Math.abs(vt.x-b.x)/2),Pt=Yt=Math.min(Pt,Math.abs(Tt.y-vt.y)/2),se.B(Pt,0))vc(this,ot,ft,jt,z,vt,Mt),z.assign(vt);else{var Kt=vt.x,te=vt.y;xt=Kt,Vt=te,vt.x>z.x?Kt=vt.x-Pt:Kt=vt.x+Pt,Tt.y>vt.y?Vt=vt.y+Yt:Vt=vt.y-Yt,Tt=It.allocAt(Kt,te),vc(this,ot,ft,jt,z,Tt,Mt),It.free(Tt),O0(ot,vt.x+ft,vt.y+jt,xt+ft,Vt+jt),z.h(xt,Vt)}else se.B(z.x,vt.x)&&se.B(vt.y,Tt.y)?(Pt=Math.min(tt,Math.abs(vt.y-b.y)/2),Pt=Yt=Math.min(Pt,Math.abs(Tt.x-vt.x)/2),se.B(Yt,0)?(vc(this,ot,ft,jt,z,vt,Mt),z.assign(vt)):(Kt=vt.x,te=vt.y,xt=Kt,Vt=te,vt.y>z.y?te=vt.y-Pt:te=vt.y+Pt,Tt.x>vt.x?xt=vt.x+Yt:xt=vt.x-Yt,Tt=It.allocAt(Kt,te),vc(this,ot,ft,jt,z,Tt,Mt),It.free(Tt),O0(ot,vt.x+ft,vt.y+jt,xt+ft,Vt+jt),z.h(xt,Vt))):(vc(this,ot,ft,jt,z,vt,Mt),z.assign(vt));b.assign(ut),ft=at}It.free(z)}j0=ot}else ot=this.i(1).copy(),ot.x-=E,ot.y-=rt,this.computeShortLength(!0)!==0&&(b=mc(this,b,!0,z)),this.computeShortLength(!1)!==0&&(ot=mc(this,ot,!1,z)),a.type=cn.j,a.startX=b.x,a.startY=b.y,a.endX=ot.x,a.endY=ot.y;return this.lk=!0,a};function Z0(a,y,x,E){return a=x-a,isNaN(a)||a===1/0||a===-1/0?NaN:(0>a&&(a=-a),y=E-y,isNaN(y)||y===1/0||y===-1/0?NaN:(0>y&&(y=-y),se.$(a,0)?y:se.$(y,0)?a:Math.sqrt(a*a+y*y)))}function mc(a,y,x,E){var b=a.pointsCount;if(2>b)return y;if(x){var z=a.i(1);if(x=z.x-E.x,z=z.y-E.y,E=Z0(y.x,y.y,x,z),E===0)return y;b=b===2?.5*E:E,a=a.computeShortLength(!0),a>b&&(a=b),b=a*(z-y.y)/E,y.x+=a*(x-y.x)/E,y.y+=b}else{if(z=a.i(b-2),x=z.x-E.x,z=z.y-E.y,E=Z0(y.x,y.y,x,z),E===0)return y;b=b===2?.5*E:E,a=a.computeShortLength(!1),a>b&&(a=b),b=a*(y.y-z)/E,y.x-=a*(y.x-x)/E,y.y-=b}return y}function Xv(a,y,x,E){for(var b=a.pointsCount,z=y;se.$(y.x,z.x)&&se.$(y.y,z.y);){if(x>=b)return b-1;z=a.i(x++)}if(!se.$(y.x,z.x)&&!se.$(y.y,z.y))return x-1;for(var tt=z;se.$(y.x,z.x)&&se.$(z.x,tt.x)&&(!E||(y.y>=z.y?z.y>=tt.y:z.y<=tt.y))||se.$(y.y,z.y)&&se.$(z.y,tt.y)&&(!E||(y.x>=z.x?z.x>=tt.x:z.x<=tt.x));){if(x>=b)return b-1;tt=a.i(x++)}return x-2}rn.prototype.computeJumpLength=function(){return 10};function vc(a,y,x,E,b,z,tt){if(!tt&&bd(a)){tt=a.computeJumpLength();var ot=tt/2,rt=[],at=0;if(a.isVisible()&&(at=Ax(a,b,z,rt)),0<at){if(se.B(b.y,z.y))if(b.x<z.x)for(var ut=0;ut<at;){var ft=Math.max(b.x,Math.min(rt[ut++]-ot,z.x-tt));y.lineTo(ft+x,z.y+E);for(var vt=ft+x,xt=Math.min(ft+tt,z.x);ut<at&&(ft=rt[ut],ft<xt+tt);)ut++,xt=Math.min(ft+ot,z.x);ft=z.y-tt+E,xt+=x;var Pt=z.y+E;a.curve===ih?Cg(y,xt,Pt,!1):$u(y,vt,ft,xt,ft,xt,Pt)}else for(--at;0<=at;){for(ut=Math.min(b.x,Math.max(rt[at--]+ot,z.x+tt)),y.lineTo(ut+x,z.y+E),vt=ut+x,ft=Math.max(ut-tt,z.x);0<=at&&(ut=rt[at],ut>ft-tt);)at--,ft=Math.max(ut-ot,z.x);ut=z.y-tt+E,ft+=x,xt=z.y+E,a.curve===ih?Cg(y,ft,xt,!1):$u(y,vt,ut,ft,ut,ft,xt)}else if(se.B(b.x,z.x))if(b.y<z.y)for(ut=0;ut<at;){for(ft=Math.max(b.y,Math.min(rt[ut++]-ot,z.y-tt)),y.lineTo(z.x+x,ft+E),vt=ft+E,ft=Math.min(ft+tt,z.y);ut<at&&(xt=rt[ut],xt<ft+tt);)ut++,ft=Math.min(xt+ot,z.y);xt=z.x-tt+x,Pt=z.x+x,ft+=E,a.curve===ih?Cg(y,Pt,ft,!1):$u(y,xt,vt,xt,ft,Pt,ft)}else for(--at;0<=at;){for(ut=Math.min(b.y,Math.max(rt[at--]+ot,z.y+tt)),y.lineTo(z.x+x,ut+E),vt=ut+E,ut=Math.max(ut-tt,z.y);0<=at&&(ft=rt[at],ft>ut-tt);)at--,ut=Math.max(ft-ot,z.y);ft=z.x-tt+x,xt=z.x+x,ut+=E,a.curve===ih?Cg(y,xt,ut,!1):$u(y,ft,vt,ft,ut,xt,ut)}}}y.lineTo(z.x+x,z.y+E)}function Ax(a,y,x,E){var b=a.diagram;if(b===null||y.D(x))return 0;for(b=b.layers;b.next();){var z=b.value;if(z!==null&&z.visible){z=z.Pa.s;for(var tt=z.length,ot=0;ot<tt;ot++){var rt=z[ot];if(rt instanceof rn){if(rt===a)return 0<E.length&&E.sort(function(ut,ft){return ut-ft}),E.length;if(rt.isVisible()&&bd(rt)){var at=rt.routeBounds;at.w()&&a.routeBounds.Yc(at)&&!a.usesSamePort(rt)&&(at=rt.path,at!==null&&at.Ed()&&Mx(y,x,E,rt))}}}}}return 0<E.length&&E.sort(function(ut,ft){return ut-ft}),E.length}function Mx(a,y,x,E){for(var b=se.B(a.y,y.y),z=E.pointsCount,tt=E.i(0),ot=It.alloc(),rt=1;rt<z;rt++){var at=E.i(rt);if(rt<z-1){var ut=E.i(rt+1);if(tt.y===at.y&&at.y===ut.y){if(at.x>tt.x&&ut.x>=at.x||at.x<tt.x&&ut.x<=at.x)continue}else if(tt.x===at.x&&at.x===ut.x&&(at.y>tt.y&&ut.y>=at.y||at.y<tt.y&&ut.y<=at.y))continue}t:{ut=a.x;var ft=a.y,vt=y.x,xt=y.y,Pt=tt.x;tt=tt.y;var Mt=at.x,jt=at.y;if(se.B(ut,vt)){if(!se.B(ft,xt)&&se.B(tt,jt)&&Math.min(ft,xt)<tt&&Math.max(ft,xt)>tt&&Math.min(Pt,Mt)<ut&&Math.max(Pt,Mt)>ut&&!se.B(Pt,Mt)){ot.x=ut,ot.y=tt,ut=!0;break t}}else if(se.B(ft,xt)&&se.B(Pt,Mt)&&Math.min(ut,vt)<Pt&&Math.max(ut,vt)>Pt&&Math.min(tt,jt)<ft&&Math.max(tt,jt)>ft&&!se.B(tt,jt)){ot.x=Pt,ot.y=ft,ut=!0;break t}ot.x=0,ot.y=0,ut=!1}ut&&(b?x.push(ot.x):x.push(ot.y)),tt=at}It.free(ot)}function bd(a){return a=a.curve,a===Mg||a===ih}function K0(a,y){(y||bd(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()))}rn.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 E=!1;for(x=x.layers;x.next();){var b=x.value;if(b.visible){if(b===y){E=!0;var z=!1;b=b.Pa.s;for(var tt=b.length,ot=0;ot<tt;ot++){var rt=b[ot];rt instanceof rn&&(rt===this?z=!0:z&&tS(this,rt,a))}}else if(E)for(z=b.Pa.s,b=z.length,tt=0;tt<b;tt++)ot=z[tt],ot instanceof rn&&tS(this,ot,a)}}}}};function tS(a,y,x){if(y!==null&&y.lk&&y.fd&&bd(y)){var E=y.routeBounds;E.w()&&(a.routeBounds.Yc(E)||x.Yc(E))&&(a.usesSamePort(y)||y.qc())}}rn.prototype.usesSamePort=function(a){var y=this.pointsCount,x=a.pointsCount;if(0<y&&0<x){var E=this.i(0),b=a.i(0);if(E.Xa(b)||(y=this.i(y-1),a=a.i(x-1),y.Xa(a)||E.Xa(a)||y.Xa(b)))return!0}else if(this.fromNode===a.fromNode||this.toNode===a.toNode||this.fromNode===a.toNode||this.toNode===a.fromNode)return!0;return!1},rn.prototype.isVisible=function(){if(!ei.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 E=x;E!==null;){if(E.labeledLink===this)return!0;E=E.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},rn.prototype.Zb=function(a){if(ei.prototype.Zb.call(this,a),a&&K0(this,!1),this.Sf!==null&&this.Sf.Sl(),this.wd!==null)for(var y=this.wd.iterator;y.next();)y.value.Zb(a)},rn.prototype.computeAdjusting=function(){return this.isAvoiding&&this.diagram!==null&&this.diagram.animationManager.defaultAnimation.isAnimating?Xf:this.qk};function Kf(a){var y=a.ef;if(y!==null){var x=a.uf;if(x!==null&&isNaN(a.curviness)){for(var E=a.ff,b=a.vf,z=a=null,tt=y.jb.s,ot=tt.length,rt=0;rt<ot;rt++){var at=tt[rt];(at.ef===y&&at.ff===E&&at.uf===x&&at.vf===b||at.ef===x&&at.ff===b&&at.uf===y&&at.vf===E)&&(z===null?z=at:(a===null&&(a=[],a.push(z)),a.push(at)))}if(a!==null){for(z=V1(y,x,E,b),z===null&&(z=new _0(y,E,x,b),H1(y,z),H1(x,z)),z.links=a,y=0;y<a.length;y++)a[y].Sf=z;z.Sl()}}}}function Qf(a){var y=a.Sf;y!==null&&isNaN(a.curviness)&&(a.Sf=null,a=y.links.indexOf(a),0<=a&&(oi(y.links,a),y.Sl()))}rn.prototype.ph=function(){return!0},qt.Object.defineProperties(rn.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&&H0(y,this,x),Qf(this),this.C(2)),this.ef=a,a!==null&&this.Zb(a.isVisible()),this.Wf=null,this.bb();var E=this.diagram;E!==null&&E.aa&&E.partManager.setFromNodeForLink(this,a,y);var b=this.fromPort,z=this.fromPortChanged;if(z!==null){var tt=!0;E!==null&&(tt=E.aa,E.aa=!0),z(this,x,b),E!==null&&(E.aa=tt)}a!==null&&(this.uf!==a&&G0(a,this,b),Kf(this),this.C(1)),this.g("fromNode",y,a),Eg(this)}}},fromPortId:{get:function(){return this.ff},set:function(a){var y=this.ff;if(y!==a){var x=this.fromPort;x!==null&&la(x),Qf(this),this.ff=a;var E=this.fromPort;E!==null&&la(E);var b=this.diagram;if(b!==null){var z=this.data,tt=b.model;z!==null&&tt.ri()&&tt.xv(z,a)}x!==E&&(this.Wf=null,this.bb(),z=this.fromPortChanged,z!==null&&(tt=!0,b!==null&&(tt=b.aa,b.aa=!0),z(this,x,E),b!==null&&(b.aa=tt))),Kf(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&&H0(y,this,x),Qf(this),this.C(2)),this.uf=a,a!==null&&this.Zb(a.isVisible()),this.Wf=null,this.bb();var E=this.diagram;E!==null&&E.aa&&E.partManager.setToNodeForLink(this,a,y);var b=this.toPort,z=this.toPortChanged;if(z!==null){var tt=!0;E!==null&&(tt=E.aa,E.aa=!0),z(this,x,b),E!==null&&(E.aa=tt)}a!==null&&(this.ef!==a&&G0(a,this,b),Kf(this),this.C(1)),this.g("toNode",y,a),Eg(this)}}},toPortId:{get:function(){return this.vf},set:function(a){var y=this.vf;if(y!==a){var x=this.toPort;x!==null&&la(x),Qf(this),this.vf=a;var E=this.toPort;E!==null&&la(E);var b=this.diagram;if(b!==null){var z=this.data,tt=b.model;z!==null&&tt.ri()&&tt.Cv(z,a)}x!==E&&(this.Wf=null,this.bb(),z=this.toPortChanged,z!==null&&(tt=!0,b!==null&&(tt=b.aa,b.aa=!0),z(this,x,E),b!==null&&(b.aa=tt))),Kf(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:Or},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&&la(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&&Dn(a,">= 0",rn,"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:Or},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&&la(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&&Dn(a,">= 0",rn,"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?_i: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&&Zf(this.fromNode),this.toNode!==null&&Zf(this.toNode))}},path:{get:function(){var a=this.Pb();return a instanceof Fi?a:null}},routeBounds:{get:function(){this.vg();var a=this.ml,y=1/0,x=1/0,E=this.pointsCount;if(E===0)a.h(NaN,NaN,0,0);else{if(E===1)E=this.i(0),y=Math.min(E.x,y),x=Math.min(E.y,x),a.h(E.x,E.y,0,0);else if(E===2){E=this.i(0);var b=this.i(1);y=Math.min(E.x,b.x),x=Math.min(E.y,b.y),a.h(E.x,E.y,0,0),a.Ye(b)}else if(this.computeCurve()===wa&&3<=E&&!this.isOrthogonal)if(b=this.i(0),y=b.x,x=b.y,a.h(y,x,0,0),E===3){E=this.i(1),y=Math.min(E.x,y),x=Math.min(E.y,x);var z=this.i(2);y=Math.min(z.x,y),x=Math.min(z.y,x),se.Dl(b.x,b.y,E.x,E.y,E.x,E.y,z.x,z.y,.5,a)}else for(z=3;z<E;z+=3){var tt=this.i(z-2);z+3>=E&&(z=E-1);var ot=this.i(z-1),rt=this.i(z);se.Dl(b.x,b.y,tt.x,tt.y,ot.x,ot.y,rt.x,rt.y,.5,a),y=Math.min(rt.x,y),x=Math.min(rt.y,x),b=rt}else for(b=this.i(0),z=this.i(1),y=Math.min(b.x,z.x),x=Math.min(b.y,z.y),a.h(b.x,b.y,0,0),a.Ye(z),b=2;b<E;b++)z=this.i(b),y=Math.min(z.x,y),x=Math.min(z.y,x),a.Ye(z);this.su.h(y-a.x,x-a.y)}return a}},midPoint:{get:function(){return this.vg(),this.computeMidPoint(new It)}},midAngle:{get:function(){return this.vg(),this.computeMidAngle()}},flattenedLengths:{get:function(){if(this.cq===null){this.fd||U0(this);for(var a=this.cq=[],y=this.pointsCount,x=0;x<y-1;x++){var E=this.i(x),b=this.i(x+1);se.$(E.x,b.x)?(E=b.y-E.y,0>E&&(E=-E)):se.$(E.y,b.y)?(E=b.x-E.x,0>E&&(E=-E)):E=Math.sqrt(E.Bf(b)),a.push(E)}}return this.cq}},flattenedTotalLength:{get:function(){var a=this.vt;if(isNaN(a)){for(var y=this.flattenedLengths,x=y.length,E=a=0;E<x;E++)a+=y[E];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 E=a.length%2===0;if(E){for(var b=0;b<a.length;b++)if(typeof a[b]!="number"||isNaN(a[b])){E=!1;break}}if(E)for(x=new $e,E=0;E<a.length/2;E++)b=new It(a[2*E],a[2*E+1]).freeze(),x.add(b);else{for(E=!0,b=0;b<a.length;b++){var z=a[b];if(!Te(z)||typeof z.x!="number"||isNaN(z.x)||typeof z.y!="number"||isNaN(z.y)){E=!1;break}}if(E)for(x=new $e,E=0;E<a.length;E++)b=a[E],x.add(new It(b.x,b.y).freeze())}}else if(a instanceof $e)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(),U0(this),a=this.diagram,a!==null&&(a.pi||a.undoManager.isUndoingRedoing||a.As.add(this),a.animationManager.zb&&Jc(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||!Ag(this.computeSpot(!0))?1:0}},lastPickIndex:{get:function(){var a=this.pointsCount;return a===0?0:2>=a?a-1:this.isOrthogonal||!Ag(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(),K0(this,y===ih||y===Mg||a===ih||a===Mg),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(),K0(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)}}}),rn.prototype.invalidateOtherJumpOvers=rn.prototype.Xo,rn.prototype.findClosestSegment=rn.prototype.ez,rn.prototype.updateRoute=rn.prototype.vg,rn.prototype.invalidateRoute=rn.prototype.bb,rn.prototype.rollbackRoute=rn.prototype.rv,rn.prototype.commitRoute=rn.prototype.zf,rn.prototype.startRoute=rn.prototype.uh,rn.prototype.clearPoints=rn.prototype.Fj,rn.prototype.removePoint=rn.prototype.pv,rn.prototype.addPointAt=rn.prototype.yf,rn.prototype.addPoint=rn.prototype.ne,rn.prototype.insertPointAt=rn.prototype.m,rn.prototype.insertPoint=rn.prototype.Kz,rn.prototype.setPointAt=rn.prototype.L,rn.prototype.setPoint=rn.prototype.dd,rn.prototype.getPoint=rn.prototype.i,rn.prototype.getOtherPort=rn.prototype.Cz,rn.prototype.getOtherNode=rn.prototype.To;var yc=null,Sc=null,Jv=new De(rn,"Normal",1),Lx=new De(rn,"Orthogonal",2),Fx=new De(rn,"AvoidsNodes",6),eS=new De(rn,"AvoidsNodesStraight",7),Bs=new De(rn,"None",0),wa=new De(rn,"Bezier",9),ih=new De(rn,"JumpGap",10),Mg=new De(rn,"JumpOver",11),Xf=new De(rn,"End",17),Q0=new De(rn,"Scale",18),X0=new De(rn,"Stretch",19),Jf=new De(rn,"OrientAlong",21),qf=new De(rn,"OrientPlus90",22),_f=new De(rn,"OrientMinus90",23),qv=new De(rn,"OrientOpposite",24),J0=new De(rn,"OrientUpright",25),$f=new De(rn,"OrientPlus90Upright",26),tp=new De(rn,"OrientMinus90Upright",27),q0=new De(rn,"OrientUpright45",28),nS=16,iS=14,ep=8;rn.className="Link",rn.Normal=Jv,rn.Orthogonal=Lx,rn.AvoidsNodes=Fx,rn.AvoidsNodesStraight=eS,rn.None=Bs,rn.Bezier=wa,rn.JumpGap=ih,rn.JumpOver=Mg,rn.End=Xf,rn.Scale=Q0,rn.Stretch=X0,rn.OrientAlong=Jf,rn.OrientPlus90=qf,rn.OrientMinus90=_f,rn.OrientOpposite=qv,rn.OrientUpright=J0,rn.OrientPlus90Upright=$f,rn.OrientMinus90Upright=tp,rn.OrientUpright45=q0,rn.EndSegmentStep=8,rn.CurvinessStart=nS,rn.SpacingMin=iS,rn.OrthoShortCut=ep;function _0(a,y,x,E){xo(this),this.Fe=this.qq=!1,this.Ds=a,this.Ox=y,this.cv=x,this.Px=E,this.links=[]}_0.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},_0.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))}},_0.className="LinkBundle";function np(a){xo(this),this.Yx=this.group=null,this.vs=!0,this.abort=!1,this.Od=this.Nd=1,this.Fn=this.En=-1,this.rc=a.width,this.sc=a.height,this.ac=null,this.ei=this.di=0,this.Os=11,this.Ix=this.Hx=22}np.prototype.initialize=function(a){if(!(0>=a.width||0>=a.height)){var y=a.y,x=a.x+a.width,E=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((E+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=[],E=0;E<=a;E++)x[E]=new Uint32Array(y);this.ac=x,this.di=a-1,this.ei=y-1}if(a=_v,this.ac!==null)for(y=0;y<=this.di;y++)if(x=this.ac[y],x.fill)x.fill(a);else for(E=0;E<=this.ei;E++)x[E]=a}};function Lg(a,y,x){return a.Nd<=y&&y<=a.En&&a.Od<=x&&x<=a.Fn}function tu(a,y,x){return Lg(a,y,x)?(y-=a.Nd,y/=a.rc,x-=a.Od,x/=a.sc,a.ac[y|0][x|0]):_v}function oS(a){if(a.ac!==null)for(var y=0;y<=a.di;y++)for(var x=a.ac[y],E=0;E<=a.ei;E++)x[E]>=Dd&&(x[E]=_v)}np.prototype.Yj=function(a,y,x,E){if(a>this.En||a+x<this.Nd||y>this.Fn||y+E<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 b=Math.max(0,E)/this.sc+1|0;if(0>a&&(x+=a,a=0),0>y&&(b+=y,y=0),0>x||0>b)return!0;for(E=Math.min(a+x-1,this.di)|0,x=Math.min(y+b-1,this.ei)|0;a<=E;a++){b=this.ac[a];for(var z=y;z<=x;z++)if(b[z]===oh)return!1}return!0};function eu(a,y,x,E,b,z,tt,ot,rt){if(!(y<z||y>tt||x<ot||x>rt)){var at=y|0,ut=x|0,ft=a.ac[at][ut];if(ft>=Dd&&ft<Fg)for(b?ut+=E:at+=E,ft+=1;z<=at&&at<=tt&&ot<=ut&&ut<=rt&&!(ft>=a.ac[at][ut]);)a.ac[at][ut]=ft,ft+=1,b?ut+=E:at+=E;if(at=b?ut:at,b)if(0<E)for(x+=E;x<at;x+=E)eu(a,y,x,1,!b,z,tt,ot,rt),eu(a,y,x,-1,!b,z,tt,ot,rt);else for(x+=E;x>at;x+=E)eu(a,y,x,1,!b,z,tt,ot,rt),eu(a,y,x,-1,!b,z,tt,ot,rt);else if(0<E)for(y+=E;y<at;y+=E)eu(a,y,x,1,!b,z,tt,ot,rt),eu(a,y,x,-1,!b,z,tt,ot,rt);else for(y+=E;y>at;y+=E)eu(a,y,x,1,!b,z,tt,ot,rt),eu(a,y,x,-1,!b,z,tt,ot,rt)}}function $0(a,y,x,E,b,z,tt,ot,rt){y|=0,x|=0;var at=oh,ut=Dd;for(a.ac[y][x]=ut;at===oh&&y>z&&y<tt&&x>ot&&x<rt;)ut+=1,a.ac[y][x]=ut,b?x+=E:y+=E,at=a.ac[y][x]}function tm(a,y,x,E,b,z,tt,ot,rt){y|=0,x|=0;var at=oh,ut=Fg;for(a.ac[y][x]=ut;at===oh&&y>z&&y<tt&&x>ot&&x<rt;)a.ac[y][x]=ut,b?x+=E:y+=E,at=a.ac[y][x]}function rS(a,y,x,E,b,z,tt){if(a.ac!==null){a.abort=!1;var ot=y.x,rt=y.y;if(Lg(a,ot,rt)){ot-=a.Nd,ot/=a.rc,rt-=a.Od,rt/=a.sc;var at=E.x,ut=E.y;if(Lg(a,at,ut))if(at-=a.Nd,at/=a.rc,ut-=a.Od,ut/=a.sc,1>=Math.abs(ot-at)&&1>=Math.abs(rt-ut))a.abort=!0;else{var ft=z.x;E=z.y,y=z.x+z.width;var vt=z.y+z.height;ft-=a.Nd,ft/=a.rc,E-=a.Od,E/=a.sc,y-=a.Nd,y/=a.rc,vt-=a.Od,vt/=a.sc,z=Math.max(0,Math.min(a.di,ft|0)),y=Math.min(a.di,Math.max(0,y|0)),ft=Math.max(0,Math.min(a.ei,E|0)),vt=Math.min(a.ei,Math.max(0,vt|0)),E=a.ac,ot|=0,rt|=0,at|=0,ut|=0;var xt=x===0||x===90?1:-1;if(x=x===90||x===270,E[ot][rt]===oh?($0(a,ot,rt,xt,x,z,y,ft,vt),$0(a,ot,rt,1,!x,z,y,ft,vt),$0(a,ot,rt,-1,!x,z,y,ft,vt)):$0(a,ot,rt,xt,x,ot,rt,ot,rt),E[at][ut]===oh?(tm(a,at,ut,b===0||b===90?1:-1,b===90||b===270,z,y,ft,vt),tm(a,at,ut,1,!(b===90||b===270),z,y,ft,vt),tm(a,at,ut,-1,!(b===90||b===270),z,y,ft,vt)):tm(a,at,ut,xt,x,at,ut,at,ut),x=Rn(),tt&&sS(a,at,ut,b,ot,rt,x))for((x[0]!==at||x[1]!==ut)&&(x.unshift(ut),x.unshift(at)),(x[x.length-2]!==ot||x[x.length-1]!==rt)&&(x.push(ot),x.push(rt)),a=Dd,b=x[x.length-2],tt=x[x.length-1],E[b][tt]=a++,z=x.length-4;0<=z;z-=2)for(b=x[z+2],tt=x[z+3],y=x[z],at=x[z+1];y>b?b++:y<b?b--:at>tt?tt++:at<tt&&tt--,E[b][tt]=a++,b!==y||tt!==at;);else eu(a,ot,rt,1,!1,z,y,ft,vt),eu(a,ot,rt,-1,!1,z,y,ft,vt),eu(a,ot,rt,1,!0,z,y,ft,vt),eu(a,ot,rt,-1,!0,z,y,ft,vt);qn(x)}}}}function sS(a,y,x,E,b,z,tt){for(var ot=a.ac,rt=y,at=x;;){if(rt===b&&at===z)return!0;var ut=rt,ft=at;if(E===0)if(ut<b)ut++;else break;else if(E===90)if(ft<z)ft++;else break;else if(E===180)if(ut>b)ut--;else break;else if(ft>z)ft--;else break;var vt=ot[ut][ft];if(vt===0||vt===$v)break;rt=ut,at=ft}for(;;){if(ut=E,ft=rt,vt=at,E===0?vt<z?(ut=90,vt++):vt>z&&(ut=270,vt--):E===90?ft<b?(ut=0,ft++):ft>b&&(ut=180,ft--):E===180?vt<z?(ut=90,vt++):vt>z&&(ut=270,vt--):ft<b?(ut=0,ft++):ft>b&&(ut=180,ft--),ft=ot[ft][vt],ut!==E&&ft!==0&&ft!==$v){if(tt.push(rt),tt.push(at),sS(a,rt,at,ut,b,z,tt))return!0;tt.pop(),tt.pop()}if(ot[rt][at]=$v,E===0){if(rt===y)return!1;rt--}else if(E===90){if(at===x)return!1;at--}else if(E===180){if(rt===y)return!1;rt++}else{if(at===x)return!1;at++}}}qt.Object.defineProperties(np.prototype,{bounds:{get:function(){return new be(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 oh=0,Dd=1,Fg=999999,_v=Fg+1,$v=Fg+2;np.className="PositionArray";function xc(){xo(this),this.port=this.node=null,this.pe=[],this.ap=!1}xc.prototype.toString=function(){for(var a=this.pe,y=this.node.toString()+" "+a.length.toString()+":",x=0;x<a.length;x++){var E=a[x];E!==null&&(y+=`
|
|
`+E.toString())}return y};function kx(a,y,x,E){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 E&&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}xc.prototype.Sl=function(){this.pe.length=0};function aS(a,y){var x=a.pe;if(x.length===0){t:if(!a.ap){x=a.ap,a.ap=!0;var E=null,b=a.node,z=b instanceof Ai?b:null;if(z===null||z.isSubGraphExpanded)var tt=b.isTreeExpanded?b.findLinksConnected(a.port.portId):b.qx();else{if(!z.actualBounds.w()){a.ap=x;break t}E=z,tt=E.Lu()}z=a.pe.length=0;var ot=a.port.ga(ir,It.alloc()),rt=a.port.ga(zs,It.alloc());for(b=be.allocAt(ot.x,ot.y,0,0),b.Ye(rt),It.free(ot),It.free(rt),ot=It.allocAt(b.x+b.width/2,b.y+b.height/2),rt=a.port.li(),tt=tt.iterator;tt.next();){var at=tt.value;if(at.isVisible()&&at.fromPort!==at.toPort){var ut=at.fromPort===a.port||at.fromNode!==null&&at.fromNode.Td(E),ft=at.computeSpot(ut,a.port);if(ft.$c()&&(ut=ut?at.toPort:at.fromPort,ut!==null)){var vt=ut.part;if(vt!==null){var xt=vt.findVisibleNode();xt!==null&&xt!==vt&&(vt=xt,ut=vt.port),ut=at.computeOtherPoint(vt,ut),vt=ot.ab(ut),vt-=rt,0>vt?vt+=360:360<=vt&&(vt-=360),ft=kx(b,ft,vt,at.isOrthogonal),ft===0?(ft=4,180<vt&&(vt-=360)):ft===90?(ft=8,270<vt&&(vt-=360)):ft===180?ft=2:(ft=1,90>vt&&(vt+=360)),xt=a.pe[z],xt===void 0?(xt=new ty(at,vt,ft),a.pe[z]=xt):(xt.link=at,xt.angle=vt,xt.Nc=ft),xt.hv.set(ut),z++}}}}for(It.free(ot),a.pe.sort(xc.prototype.j),rt=a.pe.length,E=-1,z=ot=0;z<rt;z++)tt=a.pe[z],tt!==void 0&&(tt.Nc!==E&&(E=tt.Nc,ot=0),tt.Uo=ot,ot++);for(E=-1,ot=0,z=rt-1;0<=z;z--)rt=a.pe[z],rt!==void 0&&(rt.Nc!==E&&(E=rt.Nc,ot=rt.Uo+1),rt.Gl=ot);if(z=a.pe,ft=a.port,E=a.node.portSpreading,ot=It.alloc(),rt=It.alloc(),tt=It.alloc(),at=It.alloc(),ft.ga(ir,ot),ft.ga(uu,rt),ft.ga(zs,tt),ft.ga(gl,at),xt=vt=ut=ft=0,E===Uv)for(var Pt=0;Pt<z.length;Pt++){var Mt=z[Pt];if(Mt!==null){var jt=Mt.link.computeThickness();switch(Mt.Nc){case 8:vt+=jt;break;case 2:xt+=jt;break;case 1:ft+=jt;break;default:case 4:ut+=jt}}}var Tt=Pt=0,Vt=1,Yt=Mt=0;for(jt=0;jt<z.length;jt++){var Kt=z[jt];if(Kt!==null){if(Pt!==Kt.Nc){switch(Pt=Kt.Nc,Pt){case 8:var te=tt;Tt=at;break;case 2:te=at,Tt=ot;break;case 1:te=ot,Tt=rt;break;default:case 4:te=rt,Tt=tt}switch(Mt=Tt.x-te.x,Yt=Tt.y-te.y,Pt){case 8:vt>Math.abs(Mt)?(Vt=Math.abs(Mt)/vt,vt=Math.abs(Mt)):Vt=1;break;case 2:xt>Math.abs(Yt)?(Vt=Math.abs(Yt)/xt,xt=Math.abs(Yt)):Vt=1;break;case 1:ft>Math.abs(Mt)?(Vt=Math.abs(Mt)/ft,ft=Math.abs(Mt)):Vt=1;break;default:case 4:ut>Math.abs(Yt)?(Vt=Math.abs(Yt)/ut,ut=Math.abs(Yt)):Vt=1}Tt=0}var me=Kt.Zo;if(E===Uv){switch(Kt=Kt.link.computeThickness(),Kt*=Vt,me.set(te),Pt){case 8:me.x=te.x+Mt/2+vt/2-Tt-Kt/2;break;case 2:me.y=te.y+Yt/2+xt/2-Tt-Kt/2;break;case 1:me.x=te.x+Mt/2-ft/2+Tt+Kt/2;break;default:case 4:me.y=te.y+Yt/2-ut/2+Tt+Kt/2}Tt+=Kt}else{var Cn=.5;E===V0&&(Cn=(Kt.Uo+1)/(Kt.Gl+1)),me.x=te.x+Mt*Cn,me.y=te.y+Yt*Cn}}}for(It.free(ot),It.free(rt),It.free(tt),It.free(at),te=a.pe,z=0;z<te.length;z++)E=te[z],E!==null&&(E.Ju=a.computeEndSegmentLength(E));a.ap=x,be.free(b)}x=a.pe}for(a=0;a<x.length;a++)if(b=x[a],b!==null&&b.link===y)return b;return null}xc.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},xc.prototype.computeEndSegmentLength=function(a){var y=a.link,x=y.computeEndSegmentLength(this.node,this.port,lr,y.fromPort===this.port),E=a.Uo;if(0>E)return x;var b=a.Gl;if(1>=b||!y.isOrthogonal)return x;y=a.hv;var z=a.Zo;return(a.Nc===2||a.Nc===8)&&(E=b-1-E),((a=a.Nc===2||a.Nc===4)?y.y<z.y:y.x<z.x)?x+8*E:(a?y.y===z.y:y.x===z.x)?x:x+8*(b-1-E)},xc.className="Knot";function ty(a,y,x){this.link=a,this.angle=y,this.Nc=x,this.hv=new It,this.Gl=this.Uo=0,this.Zo=new It,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 Ho(a){xo(this),this.o=this.H=null,this.Gh=this.sn=!0,this.yn=!1,this.Am=new It(0,0).freeze(),this.vn=!0,this.Em=this.un=null,this.xn=!1,this.j=null,a&&Object.assign(this,a)}Ho.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},Ho.prototype.copy=function(){var a=new this.constructor;return this.cloneProtected(a),a},Ho.prototype.qb=function(){},Ho.prototype.toString=function(){var a=si(this.constructor);return a+="(",this.group!==null&&(a+=" in "+this.group),this.diagram!==null&&(a+=" for "+this.diagram),a+")"},Ho.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())}}},Ho.prototype.createNetwork=function(){return new Do(this)},Ho.prototype.makeNetwork=function(a){var y=this.createNetwork();return a instanceof ye?(y.lg(a.nodes,!0),y.lg(a.links,!0)):a instanceof Ai?y.lg(a.memberParts):y.lg(a.iterator),y},Ho.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")}},Ho.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()}},Ho.prototype.doLayout=function(a){var y=new _e;a instanceof ye?(Vh(this,y,a.nodes,!0,this.rh,!0,!1,!0),Vh(this,y,a.parts,!0,this.rh,!0,!1,!0)):a instanceof Ai?Vh(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},Ho.prototype.doMinimalNoNetworkLayout=function(a){var y=Math.ceil(Math.sqrt(a.count));this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);var x=this.arrangementOrigin.x,E=x,b=this.arrangementOrigin.y,z=0,tt=0;for(a=a.iterator;a.next();){var ot=a.value;ip(ot);var rt=ot.measuredBounds,at=rt.width;rt=rt.height,ot.moveTo(E,b),ot instanceof Ai&&(ot.rh=!1),E+=Math.max(at,50)+20,tt=Math.max(tt,Math.max(rt,50)),z>=y-1?(z=0,E=x,b+=tt+20,tt=0):z++}},Ho.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,E=this.arrangementOrigin.y,b=0,z=0,tt=this.network.vertexes.iterator;tt.next();){var ot=tt.value.node;if(!(ot===null||ot instanceof rn)&&(ip(ot),this.rh(ot))){var rt=ot.measuredBounds,at=rt.width;rt=rt.height,ot.moveTo(x,E),ot instanceof Ai&&(ot.rh=!1),x+=Math.max(at,50)+20,z=Math.max(z,Math.max(rt,50)),b>=a-1?(b=0,x=y,E+=z+20,z=0):b++}}},Ho.prototype.rh=function(a){return!!(!a.location.w()||a instanceof Ai&&a.rh)};function Vh(a,y,x,E,b,z,tt,ot){for(x=x.iterator;x.next();){var rt=x.value;E&&!rt.isTopLevel||b!==null&&!b(rt)||!rt.canLayout()||(z&&rt instanceof Fn?rt.isLinkLabel||(rt instanceof Ai&&rt.layout===null?Vh(a,y,rt.memberParts,!1,b,z,tt,ot):(ip(rt),y.add(rt))):tt&&rt instanceof rn?y.add(rt):!ot||!rt.Zc()||rt instanceof Fn||(ip(rt),y.add(rt)))}}function ip(a){var y=a.actualBounds;(y.width===0||y.height===0||isNaN(y.width)||isNaN(y.height))&&a.Va()}Ho.prototype.ni=function(a,y){var x=this.boundsComputation;return x!==null?(y||(y=new be),x(a,this,y)):y?(y.set(a.actualBounds),y):a.actualBounds},Ho.prototype.ex=function(a){var y=new _e;return a instanceof ye?(Vh(this,y,a.nodes,!0,null,!0,!0,!0),Vh(this,y,a.links,!0,null,!0,!0,!0),Vh(this,y,a.parts,!0,null,!0,!0,!0)):a instanceof Ai?Vh(this,y,a.memberParts,!1,null,!0,!0,!0):Vh(this,y,a.iterator,!1,null,!0,!0,!0),y},Ho.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(ir),(isNaN(x.x)||isNaN(x.y))&&x.set(a),a=y.padding,x.x+=a.left,x.y+=a.top),x}return a},qt.Object.defineProperties(Ho.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())}}}),Ho.prototype.collectParts=Ho.prototype.ex,Ho.prototype.getLayoutBounds=Ho.prototype.ni,Ho.prototype.invalidateLayout=Ho.prototype.C,Ho.className="Layout";function Do(a){xo(this),this.Sc=a,this.wf=new _e,this.ye=new _e,this.Es=new ri,this.zs=new ri}Do.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 _e,this.ye=new _e,this.Es=new ri,this.zs=new ri},Do.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},Do.prototype.createVertex=function(){return new Lr(this)},Do.prototype.createEdge=function(){return new ua(this)},Do.prototype.lg=function(a,y,x){if(a!==null){for(y===void 0&&(y=!1),x===void 0&&(x=null),x===null&&(x=function(tt){if(tt instanceof Fn)return!tt.isLinkLabel;if(tt instanceof rn){var ot=tt.fromNode;return ot===null||ot.isLinkLabel?!1:(tt=tt.toNode,!(tt===null||tt.isLinkLabel))}return!1}),a=a.iterator;a.next();){var E=a.value;if(E instanceof Fn&&(!y||E.isTopLevel)&&E.canLayout()&&x(E)){if(E instanceof Ai&&E.layout===null)this.lg(E.memberParts,!1);else if(this.ki(E)===null){var b=this.createVertex();b.node=E,this.dh(b)}}}for(a.reset();a.next();)if(E=a.value,E instanceof rn&&(!y||E.isTopLevel)&&E.canLayout()&&x(E)&&this.Lo(E)===null){var z=E.fromNode;b=E.toNode,z!==null&&b!==null&&z!==b&&(z=this.findGroupVertex(z),b=this.findGroupVertex(b),z!==null&&b!==null&&this.Zj(z,b,E))}}},Do.prototype.findGroupVertex=function(a){if(a===null)return null;var y=a.findVisibleNode();if(y===null)return null;if(a=this.ki(y),a!==null)return a;for(y=y.containingGroup;y!==null;){if(a=this.ki(y),a!==null)return a;y=y.containingGroup}return null},wt=Do.prototype,wt.dh=function(a){if(a!==null){this.wf.add(a);var y=a.node;y!==null&&this.Es.add(y,a),a.network=this}},wt.Bl=function(a){if(a===null)return null;var y=this.ki(a);return y===null&&(y=this.createVertex(),y.node=a,this.dh(y)),y},wt.Iu=function(a){if(a!==null&&lS(this,a)){for(var y=a.tg,x=y.count-1;0<=x;x--){var E=y.M(x);this.Mj(E)}for(y=a.mg,a=y.count-1;0<=a;a--)x=y.M(a),this.Mj(x)}};function lS(a,y){if(y===null)return!1;var x=a.wf.remove(y);return x&&(y=y.node,y!==null&&a.Es.remove(y)),x}wt.Zy=function(a){a!==null&&(a=this.ki(a),a!==null&&this.Iu(a))},wt.ki=function(a){return a===null?null:this.Es.I(a)},wt.Bo=function(a){if(a!==null){ey(this,a);var y=a.toVertex;y!==null&&y.Cl(a),y=a.fromVertex,y!==null&&y.zl(a)}};function ey(a,y){if(y!==null){a.ye.add(y);var x=y.link;x!==null&&a.Lo(x)===null&&a.zs.add(x,y),y.network=a}}wt.Dy=function(a){if(a===null)return null;var y=a.fromNode,x=a.toNode,E=this.Lo(a);return E===null?(E=this.createEdge(),E.link=a,y!==null&&(E.fromVertex=this.Bl(y)),x!==null&&(E.toVertex=this.Bl(x)),this.Bo(E)):(y!==null?E.fromVertex=this.Bl(y):E.fromVertex=null,x!==null?E.toVertex=this.Bl(x):E.toVertex=null),E},wt.Mj=function(a){if(a!==null){var y=a.toVertex;y!==null&&y.Kl(a),y=a.fromVertex,y!==null&&y.Jl(a),ny(this,a)}};function ny(a,y){y!==null&&a.ye.remove(y)&&(y=y.link,y!==null&&a.zs.remove(y))}wt.Yy=function(a){a!==null&&(a=this.Lo(a),a!==null&&this.Mj(a))},wt.Lo=function(a){return a===null?null:this.zs.I(a)},wt.Zj=function(a,y,x){if(a===null||y===null)return null;if(a.network===this&&y.network===this){var E=this.createEdge();return E.link=x,E.fromVertex=a,E.toVertex=y,this.Bo(E),E}return null},wt.gm=function(a){if(a!==null){var y=a.fromVertex,x=a.toVertex;y!==null&&x!==null&&(y.Jl(a),x.Kl(a),a.gm(),y.Cl(a),x.zl(a))}},wt.Ko=function(){for(var a=Rn(),y=this.ye.iterator;y.next();){var x=y.value;x.fromVertex===x.toVertex&&a.push(x)}for(y=a.length,x=0;x<y;x++)this.Mj(a[x]);qn(a)},Do.prototype.deleteArtificialVertexes=function(){for(var a=Rn(),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=Rn(),x=this.ye.iterator;x.next();){var E=x.value;E.link===null&&E.data===null&&y.push(E)}for(x=y.length,E=0;E<x;E++)this.Mj(y[E]);qn(a),qn(y)};function Bx(a){for(var y=Rn(),x=a.ye.iterator;x.next();){var E=x.value;E.fromVertex!==null&&E.toVertex!==null||y.push(E)}for(x=y.length,E=0;E<x;E++)a.Mj(y[E]);qn(y)}Do.prototype.Zx=function(a){a===void 0&&(a=!0),a&&(this.deleteArtificialVertexes(),Bx(this),this.Ko()),a=new $e;for(var y=!0;y;){y=!1;for(var x=this.wf.iterator;x.next();){var E=x.value;if(0<E.tg.count||0<E.mg.count){y=this.layout.createNetwork(),a.add(y),iy(this,y,E),y=!0;break}}}return a.sort(function(b,z){return b===null||z===null||b===z?0:z.vertexes.count-b.vertexes.count}),a};function iy(a,y,x){if(x!==null&&x.network!==y){lS(a,x),y.dh(x);for(var E=x.sourceEdges;E.next();){var b=E.value;b.network!==y&&(ny(a,b),ey(y,b),iy(a,y,b.fromVertex))}for(E=x.destinationEdges;E.next();)x=E.value,x.network!==y&&(ny(a,x),ey(y,x),iy(a,y,x.toVertex))}}Do.prototype.dz=function(){for(var a=new _e,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},qt.Object.defineProperties(Do.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}}}),Do.prototype.findAllParts=Do.prototype.dz,Do.prototype.splitIntoSubNetworks=Do.prototype.Zx,Do.prototype.deleteSelfEdges=Do.prototype.Ko,Do.prototype.reverseEdge=Do.prototype.gm,Do.prototype.linkVertexes=Do.prototype.Zj,Do.prototype.findEdge=Do.prototype.Lo,Do.prototype.deleteLink=Do.prototype.Yy,Do.prototype.deleteEdge=Do.prototype.Mj,Do.prototype.addLink=Do.prototype.Dy,Do.prototype.addEdge=Do.prototype.Bo,Do.prototype.findVertex=Do.prototype.ki,Do.prototype.deleteNode=Do.prototype.Zy,Do.prototype.deleteVertex=Do.prototype.Iu,Do.prototype.addNode=Do.prototype.Bl,Do.prototype.addVertex=Do.prototype.dh,Do.prototype.addParts=Do.prototype.lg,Do.className="LayoutNetwork";function Lr(a){xo(this),this.ob=a,this.j=new be(0,0,10,10).freeze(),this.o=new It(5,5).freeze(),this.Sh=this.ub=null,this.tg=new $e,this.mg=new $e}Lr.prototype.clear=function(){this.Sh=this.ub=null,this.tg=new $e,this.mg=new $e},Lr.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutVertex#"+to(this);if(0<a&&(y+=this.node!==null?"("+this.node.toString()+")":"",1<a)){a="";for(var x=!0,E=this.tg.iterator;E.next();){var b=E.value;x?x=!1:a+=",",a+=b.toString(0)}for(b="",x=!0,E=this.mg.iterator;E.next();){var z=E.value;x?x=!1:b+=",",b+=z.toString(0)}y+=" sources: "+a+" destinations: "+b}return y},Lr.prototype.commit=function(){var a=this.ub;if(a!==null){var y=this.bounds,x=a.bounds;Te(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 Ai)){x=be.alloc(),a.Va();var E=this.network.layout.ni(a,x),b=a.locationObject.ga(po);if(E.w()&&b.w()){a.moveTo(y.x+this.focusX-(b.x-E.x),y.y+this.focusY-(b.y-E.y)),be.free(x);return}be.free(x)}a.moveTo(y.x,y.y)}},Lr.prototype.Cl=function(a){a!==null&&(this.tg.contains(a)||this.tg.add(a))},Lr.prototype.Kl=function(a){a!==null&&this.tg.remove(a)},Lr.prototype.zl=function(a){a!==null&&(this.mg.contains(a)||this.mg.add(a))},Lr.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}qt.Object.defineProperties(Lr.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,E=y.width;y=y.height,this.o.h(E/2,y/2),this.j.h(a,x,E,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=be.alloc(),E=y.ni(a,x);y=E.x;var b=E.y,z=E.width;if(E=E.height,isNaN(y)&&(y=0),isNaN(b)&&(b=0),this.j.h(y,b,z,E),be.free(x),!(a instanceof Ai)&&(a=a.locationObject.ga(po),a.w())){this.o.h(a.x-y,a.y-b);return}this.o.h(z/2,E/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 _e,y=this.sourceEdges;y.next();)a.add(y.value.fromVertex);return a.iterator}},destinationVertexes:{get:function(){for(var a=new _e,y=this.destinationEdges;y.next();)a.add(y.value.toVertex);return a.iterator}},vertexes:{get:function(){for(var a=new _e,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 $e,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}}}),Lr.prototype.deleteDestinationEdge=Lr.prototype.Jl,Lr.prototype.addDestinationEdge=Lr.prototype.zl,Lr.prototype.deleteSourceEdge=Lr.prototype.Kl,Lr.prototype.addSourceEdge=Lr.prototype.Cl,Lr.className="LayoutVertex",Lr.standardComparer=oy,Lr.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 E=parseFloat(y[x]),b=parseFloat(a[x]);if(isNaN(E))if(isNaN(b)){if(y[x].localeCompare(a[x])!==0)return y[x].localeCompare(a[x])}else return 1;else{if(isNaN(b))return-1;if(E-b!==0)return E-b}}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 ua(a){xo(this),this.nb=a,this.qd=this.kd=this.$k=this.ub=null}ua.prototype.clear=function(){this.qd=this.kd=this.$k=this.ub=null},ua.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutEdge#"+to(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},ua.prototype.gm=function(){var a=this.kd;this.kd=this.qd,this.qd=a},ua.prototype.commit=function(){},ua.prototype.Ax=function(a){return this.qd===a?this.kd:this.kd===a?this.qd:null},qt.Object.defineProperties(ua.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)}}}),ua.prototype.getOtherVertex=ua.prototype.Ax,ua.className="LayoutEdge";function Zr(a){Ho.call(this),this.isViewportSized=!0,this.yo=this.zo=NaN,this.yg=new Ee(NaN,NaN).freeze(),this.tf=new Ee(10,10).freeze(),this.Jb=op,this.Rb=nm,this.nd=rp,this.hd=uS,a&&Object.assign(this,a)}re(Zr,Ho),Zr.prototype.cloneProtected=function(a){Ho.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},Zr.prototype.qb=function(a){a.classType===Zr?a===rp||a===om||a===ry||a===im?this.sorting=a:a===nm||a===yl?this.arrangement=a:a===op||a===em?this.alignment=a:zt("Unknown enum value: "+a):Ho.prototype.qb.call(this,a)},Zr.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 E=x.value;if(!E.ph()||E.fromNode===null&&E.toNode===null){if(E.Va(),E instanceof Ai)for(E=E.memberParts;E.next();)y.remove(E.value)}else y.remove(E)}var b=y.Fa();if(b.length!==0){switch(this.sorting){case im:b.reverse();break;case rp:b.sort(this.comparer);break;case om:b.sort(this.comparer),b.reverse()}var z=this.wrappingColumn;isNaN(z)&&(z=0);var tt=this.wrappingWidth;switch(isNaN(tt)&&a!==null?(y=a.padding,tt=Math.max(a.viewportBounds.width-y.left-y.right,0)):tt=Math.max(this.wrappingWidth,0),0>=z&&0>=tt&&(z=1),y=this.spacing.width,isFinite(y)||(y=0),x=this.spacing.height,isFinite(x)||(x=0),a!==null&&a.Ea("Layout"),E=[],this.alignment){case em:var ot=y,rt=x,at=be.alloc(),ut=Math.max(this.cellSize.width,1);if(!isFinite(ut))for(var ft=ut=0;ft<b.length;ft++){var vt=this.ni(b[ft],at);ut=Math.max(ut,vt.width)}if(ut=Math.max(ut+ot,1),ft=Math.max(this.cellSize.height,1),!isFinite(ft))for(vt=ft=0;vt<b.length;vt++){var xt=this.ni(b[vt],at);ft=Math.max(ft,xt.height)}ft=Math.max(ft+rt,1),vt=this.arrangement;for(var Pt=xt=this.arrangementOrigin.x,Mt=this.arrangementOrigin.y,jt=0,Tt=0,Vt=0;Vt<b.length;Vt++){var Yt=b[Vt],Kt=this.ni(Yt,at),te=Math.ceil((Kt.width+ot)/ut)*ut,me=Math.ceil((Kt.height+rt)/ft)*ft;switch(vt){case yl:var Cn=Math.abs(Pt-Kt.width);break;default:Cn=Pt+Kt.width}switch((0<z&&jt>z-1||0<tt&&0<jt&&Cn-xt>tt)&&(E.push(new be(0,Mt,tt+ot,Tt)),jt=0,Pt=xt,Mt+=Tt,Tt=0),Tt=Math.max(Tt,me),vt){case yl:Kt=-Kt.width;break;default:Kt=0}switch(Yt.moveTo(Pt+Kt,Mt),vt){case yl:Pt-=te;break;default:Pt+=te}jt++}E.push(new be(0,Mt,tt+ot,Tt)),be.free(at);break;case op:for(rt=tt,ut=z,ft=y,vt=x,tt=be.alloc(),xt=Math.max(this.cellSize.width,1),z=Mt=at=0,ot=It.alloc(),Pt=0;Pt<b.length;Pt++)Tt=b[Pt],jt=this.ni(Tt,tt),Tt=th(Tt,Tt.locationObject,Tt.locationSpot,ot),at=Math.max(at,Tt.x),Mt=Math.max(Mt,jt.width-Tt.x),z=Math.max(z,Tt.y);switch(Pt=this.arrangement,Pt){case yl:at+=ft;break;default:Mt+=ft}xt=isFinite(xt)?Math.max(xt+ft,1):Math.max(at+Mt,1);var Hn=Tt=this.arrangementOrigin.x;for(Vt=this.arrangementOrigin.y,Mt=0,rt>=at&&(rt-=at),at=Yt=0,te=Math.max(this.cellSize.height,1),Kt=z=0,me=!0,jt=It.alloc(),Cn=0;Cn<b.length;Cn++){var In=b[Cn],on=this.ni(In,tt),ze=th(In,In.locationObject,In.locationSpot,ot);if(0<Mt)switch(Pt){case yl:Hn=(Hn-Tt-(on.width-ze.x))/xt,Hn=se.$(Math.round(Hn),Hn)?Math.round(Hn):Math.floor(Hn),Hn=Hn*xt+Tt;break;default:Hn=(Hn-Tt+ze.x)/xt,Hn=se.$(Math.round(Hn),Hn)?Math.round(Hn):Math.ceil(Hn),Hn=Hn*xt+Tt}else switch(Pt){case yl:Yt=Hn+ze.x+on.width;break;default:Yt=Hn-ze.x}switch(Pt){case yl:var Ei=-(Hn+ze.x)+Yt;break;default:Ei=Hn+on.width-ze.x-Yt}if(0<ut&&Mt>ut-1||0<rt&&0<Mt&&Ei>rt){for(E.push(new be(0,me?Vt-z:Vt,rt+ft,Kt+z+vt)),Hn=0;Hn<Mt&&Cn!==Mt;Hn++){Ei=b[Cn-Mt+Hn];var Si=th(Ei,Ei.locationObject,Ei.locationSpot,jt);Ei.moveTo(Ei.position.x,Ei.position.y+z-Si.y)}Kt+=vt,Vt=me?Vt+Kt:Vt+(Kt+z),Mt=Kt=z=0,Hn=Tt,me=!1}switch(Hn===Tt&&(at=Pt===yl?Math.max(at,on.width-ze.x):Math.min(at,-ze.x)),z=Math.max(z,ze.y),Kt=Math.max(Kt,on.height-ze.y),isFinite(te)&&(Kt=Math.max(Kt,Math.max(on.height,te)-ze.y)),me?In.moveTo(Hn-ze.x,Vt-ze.y):In.moveTo(Hn-ze.x,Vt),Pt){case yl:Hn-=ze.x+ft;break;default:Hn+=on.width-ze.x+ft}Mt++}if(E.push(new be(0,Vt,rt+ft,(me?Kt:Kt+z)+vt)),b.length!==Mt)for(rt=0;rt<Mt;rt++)ut=b[b.length-Mt+rt],ft=th(ut,ut.locationObject,ut.locationSpot,ot),ut.moveTo(ut.position.x,ut.position.y+z-ft.y);if(It.free(ot),It.free(jt),Pt===yl)for(b=0;b<E.length;b++)z=E[b],z.width+=at,z.x-=at;else for(b=0;b<E.length;b++)z=E[b],z.x>at&&(z.width+=z.x-at,z.x=at);be.free(tt)}for(ot=z=tt=b=0;ot<E.length;ot++)rt=E[ot],b=Math.min(b,rt.x),tt=Math.min(tt,rt.y),z=Math.max(z,rt.x+rt.width);this.arrangement===yl?this.commitLayers(E,new It(b+y/2-(z+b),tt-x/2)):this.commitLayers(E,new It(b-y/2,tt-x/2)),a!==null&&a.eb("Layout"),this.isValidLayout=!0}},Zr.prototype.commitLayers=function(){};function uS(a,y){return a=a.text,y=y.text,a<y?-1:a>y?1:0}qt.Object.defineProperties(Zr.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!==op&&a!==em||(this.Jb=a,this.C())}},arrangement:{get:function(){return this.Rb},set:function(a){this.Rb===a||a!==nm&&a!==yl||(this.Rb=a,this.C())}},sorting:{get:function(){return this.nd},set:function(a){this.nd===a||a!==ry&&a!==im&&a!==rp&&a!==om||(this.nd=a,this.C())}},comparer:{get:function(){return this.hd},set:function(a){this.hd!==a&&(this.hd=a,this.C())}}});var em=new De(Zr,"Position",0),op=new De(Zr,"Location",1),nm=new De(Zr,"LeftToRight",2),yl=new De(Zr,"RightToLeft",3),ry=new De(Zr,"Forward",4),im=new De(Zr,"Reverse",5),rp=new De(Zr,"Ascending",6),om=new De(Zr,"Descending",7);Zr.className="GridLayout",Zr.standardComparer=uS,Zr.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 E=parseFloat(a[x]),b=parseFloat(y[x]);if(isNaN(E))if(isNaN(b)){if(a[x].localeCompare(y[x])!==0)return a[x].localeCompare(y[x])}else return 1;else{if(isNaN(b))return-1;if(E-b!==0)return E-b}}else if(a[x]!=="")return 1;return y[x]!==""&&y[x]!==void 0?-1:0}return 1}return y!==null?-1:0},Zr.Position=em,Zr.Location=op,Zr.LeftToRight=nm,Zr.RightToLeft=yl,Zr.Forward=ry,Zr.Reverse=im,Zr.Ascending=rp,Zr.Descending=om;function yo(){this.On=new _e,this.Dn=new _e,this.Pa=new _e,this.cf=new ri,this.bf=new ri,this.aj=new ri,this.H=null,this.tp=!1}wt=yo.prototype,wt.clear=function(){this.On.clear(),this.Dn.clear(),this.Pa.clear(),this.cf.clear(),this.bf.clear(),this.aj.clear()},wt.Xe=function(a){this.H=a},wt.oi=function(a){if(a instanceof Fn){if(this.On.add(a),a instanceof Ai){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 rn?this.Dn.add(a):a instanceof io||this.Pa.add(a);y=a.data,y===null||a instanceof io||(a instanceof rn?this.bf.add(y,a):this.cf.add(y,a))},wt.pc=function(a){if(a.Ej(),a instanceof Fn){if(this.On.remove(a),a instanceof Ai){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 rn?this.Dn.remove(a):a instanceof io||this.Pa.remove(a);y=a.data,y===null||a instanceof io||(a instanceof rn?this.bf.remove(y):this.cf.remove(y))},wt.Wd=function(){var a=this.H;if(a!==null){for(var y=a.nodeTemplateMap.iterator;y.next();){var x=y.value,E=y.key;(!x.Zc()||x instanceof Ai)&&zt('Invalid node template in Diagram.nodeTemplateMap: template for "'+E+'" must be a Node or a simple Part, not a Group or Link: '+x)}for(y=a.groupTemplateMap.iterator;y.next();)x=y.value,E=y.key,x instanceof Ai||zt('Invalid group template in Diagram.groupTemplateMap: template for "'+E+'" must be a Group, not a normal Node or Link: '+x);for(y=a.linkTemplateMap.iterator;y.next();)x=y.value,E=y.key,x instanceof rn||zt('Invalid link template in Diagram.linkTemplateMap: template for "'+E+'" must be a Link, not a normal Node or simple Part: '+x);for(y=Rn(),x=a.selection.iterator;x.next();)(E=x.value.data)&&y.push(E);for(x=Rn(),a=a.highlighteds.iterator;a.next();)(E=a.value.data)&&x.push(E);for(a=Rn(),E=this.nodes.iterator;E.next();){var b=E.value;b.data!==null&&(a.push(b.data),a.push(b.location))}for(E=this.links.iterator;E.next();)b=E.value,b.data!==null&&(a.push(b.data),a.push(b.location));for(E=this.parts.iterator;E.next();)b=E.value,b.data!==null&&(a.push(b.data),a.push(b.location));for(this.removeAllModeledParts(),this.addAllModeledParts(),E=0;E<y.length;E++)b=this.Lc(y[E]),b!==null&&(b.isSelected=!0);for(E=0;E<x.length;E++)b=this.Lc(x[E]),b!==null&&(b.isHighlighted=!0);for(E=0;E<a.length;E+=2)b=this.Lc(a[E]),b!==null&&(b.location=a[E+1]);qn(y),qn(x),qn(a)}},yo.prototype.addAllModeledParts=function(){this.addModeledParts(this.diagram.model.nodeDataArray)},yo.prototype.addModeledParts=function(a,y){var x=this,E=this.diagram.model;a.forEach(function(b){E.lb(b)&&hS(x,b,!1)}),a.forEach(function(b){E.lb(b)&&x.resolveReferencesForData(b)}),y!==!1&&ig(this.diagram,!1)};function hS(a,y,x){if(y!=null&&!a.diagram.undoManager.isUndoingRedoing&&!a.cf.contains(y)){x===void 0&&(x=!0);t:{if(y!=null&&!a.H.undoManager.isUndoingRedoing&&!a.cf.contains(y)){var E=a.Ro(y),b=dS(a,y,E);if(b!==null&&(Za(b),b=b.copy(),b!==null)){var z=a.diagram.skipsModelSourceBindings;a.diagram.skipsModelSourceBindings=!0,b.Tf=E,b.ub=y,a.tp&&(b.Jg="Tool"),a.diagram.add(b),b.ub=null,b.data=y,a.diagram.skipsModelSourceBindings=z,E=b;break t}}E=null}E!==null&&x&&a.resolveReferencesForData(y)}}yo.prototype.insertLink=function(){return null},yo.prototype.resolveReferencesForData=function(){},yo.prototype.Ro=function(a){return this.H.model.Ro(a)};function dS(a,y,x){a=a.H;var E=a.model;return E.Xj()&&E.Yu(y)?(y=a.groupTemplateMap.I(x),y===null&&(y=a.groupTemplateMap.I(""),y===null&&(fS||(fS=!0,On('No Group template found for category "'+x+'"'),On(" Using default group template")),y=a.ly))):(y=a.nodeTemplateMap.I(x),y===null&&(y=a.nodeTemplateMap.I(""),y===null&&(gS||(gS=!0,On('No Node template found for category "'+x+'"'),On(" Using default node template")),y=a.ny))),y}yo.prototype.getLinkCategoryForData=function(){return""},yo.prototype.setLinkCategoryForData=function(){},yo.prototype.setFromNodeForLink=function(){},yo.prototype.setToNodeForLink=function(){},yo.prototype.findLinkTemplateForCategory=function(a){var y=this.H,x=y.linkTemplateMap.I(a);return x===null&&(x=y.linkTemplateMap.I(""),x===null&&(pS||(pS=!0,On('No Link template found for category "'+a+'"'),On(" Using default link template")),x=y.my)),x},yo.prototype.removeAllModeledParts=function(){this.Gs(this.diagram.model.nodeDataArray)},yo.prototype.Gs=function(a){var y=this;a.forEach(function(x){y.ip(x)})},yo.prototype.ip=function(a){a=this.Lc(a),a!==null&&(Sf(this.diagram,a,!1),this.unresolveReferencesForPart(a))},yo.prototype.unresolveReferencesForPart=function(){},yo.prototype.removeDataForLink=function(){},yo.prototype.findPartForKey=function(a){return a==null?null:(a=this.H.model.hc(a),a!==null?this.cf.I(a):null)},yo.prototype.Vb=function(a){return a==null||(a=this.H.model.hc(a),a===null)?null:(a=this.cf.I(a),a instanceof Fn?a:null)},yo.prototype.findLinkForKey=function(){return null},wt=yo.prototype,wt.Lc=function(a){if(a===null)return null;var y=this.cf.I(a);return y!==null?y:y=this.bf.I(a)},wt.ii=function(a){return a===null?null:(a=this.cf.I(a),a instanceof Fn?a:null)},wt.Kc=function(a){return a===null?null:this.bf.I(a)},wt.ms=function(a){for(var y=0;y<arguments.length;++y);y=new _e;for(var x=this.On.iterator;x.next();){var E=x.value,b=E.data;if(b!==null)for(var z=0;z<arguments.length;z++){var tt=arguments[z];if(Te(tt)&&sy(this,b,tt)){y.add(E);break}}}return y.iterator},wt.ls=function(a){for(var y=0;y<arguments.length;++y);y=new _e;for(var x=this.Dn.iterator;x.next();){var E=x.value,b=E.data;if(b!==null)for(var z=0;z<arguments.length;z++){var tt=arguments[z];if(Te(tt)&&sy(this,b,tt)){y.add(E);break}}}return y.iterator};function sy(a,y,x){for(var E in x){var b=y[E],z=x[E];if(Ve(z)){if(!Ve(b)||b.length<z.length)return!1;for(var tt=0;tt<b.length;tt++){var ot=z[tt];if(ot!==void 0&&!cS(a,b[tt],ot))return!1}}else if(!cS(a,b,z))return!1}return!0}function cS(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(Te(y)&&Te(x)){if(!sy(a,y,x))return!1}else if(y!==x)return!1;return!0}yo.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 E=a.modelChange;if(E!=="")if(x===Uo){if(E==="nodeCategory"){var b=this.Lc(a.object),z=a.newValue;b!==null&&typeof z=="string"&&(b.category=z)}else E==="nodeDataArray"&&(this.Gs(a.oldValue),this.addModeledParts(a.newValue));y.isModified=!0}else if(x===ur){var tt=a.newValue;E==="nodeDataArray"&&Te(tt)&&hS(this,tt),y.isModified=!0}else if(x===Ar){var ot=a.oldValue;E==="nodeDataArray"&&Te(ot)&&this.ip(ot),y.isModified=!0}else x===ra&&(E==="SourceChanged"?a.object!==null?this.updateDataBindings(a.object,a.propertyName):(this.rp(),this.updateAllTargetBindings()):E==="ModelDisplaced"&&this.Wd());else if(x===Uo){var rt=a.propertyName,at=a.object;at===y.model?(rt==="nodeKeyProperty"||rt==="nodeCategoryProperty")&&(y.undoManager.isUndoingRedoing||this.Wd()):this.updateDataBindings(at,rt),y.isModified=!0}else if(x===ur||x===Ar){var ut=a.change===ur,ft=ut?a.newParam:a.oldParam,vt=ut?a.newValue:a.oldValue,xt=this.aj.I(a.object);if(Array.isArray(xt))for(a=0;a<xt.length;a++){var Pt=xt[a];if(ut)C0(Pt,vt,ft,!0);else if(!(0>ft)){var Mt=ft+Gf(Pt);Pt.pc(Mt,!0),xv(Pt,Mt,ft)}}y.isModified=!0}}finally{y.aa=!0}}}}},yo.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)},yo.prototype.rp=function(){for(var a=this.H.model,y=new _e,x=a.nodeDataArray,E=0;E<x.length;E++)y.add(x[E]);var b=[];for(this.nodes.each(function(tt){tt.data===null||y.contains(tt.data)||b.push(tt.data)}),this.parts.each(function(tt){tt.data===null||y.contains(tt.data)||b.push(tt.data)}),b.forEach(function(tt){ES(a,tt,!1)}),E=0;E<x.length;E++){var z=x[E];this.Lc(z)===null&&CS(a,z,!1)}for(this.refreshDataBoundLinks(),x=this.parts.iterator;x.next();)x.value.updateRelationshipsFromData();for(x=this.nodes.iterator;x.next();)x.value.updateRelationshipsFromData();for(x=this.links.iterator;x.next();)x.value.updateRelationshipsFromData()},yo.prototype.refreshDataBoundLinks=function(){},yo.prototype.updateRelationshipsFromData=function(){},yo.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 E=this.aj.iterator;E.next();){for(var b=E.value,z=0;z<b.length;z++){var tt=b[z].sx(a);tt!==null&&(x===null&&(x=Rn()),x.push(tt))}if(x!==null)break}if(x!==null){for(E=0;E<x.length;E++)x[E].La(y);qn(x)}}a===this.diagram.model.modelData&&this.updateAllTargetBindings(y)}};function ay(a,y){var x=y.Hh;if(Ve(x)){var E=a.aj.I(x);if(E===null)E=[],E.push(y),a.aj.add(x,E);else{for(a=0;a<E.length;a++)if(E[a]===y)return;E.push(y)}}}function ly(a,y,x){Fd(y,function(tt){tt=tt.O.s;for(var ot=tt.length,rt=0;rt<ot;rt++)Ef(x,tt[rt])});var E=y.Hh;if(Ve(E)){var b=a.aj.I(E);if(b!==null){for(var z=0;z<b.length;z++)if(b[z]===y){b.splice(z,1),b.length===0&&a.aj.remove(E);break}}}}yo.prototype.Kj=function(a,y,x){x===void 0&&(x=!1);var E=new ri;if(Ve(a))for(var b=0;b<a.length;b++)rm(this,a[b],y,E,x);else for(a=a.iterator;a.next();)rm(this,a.value,y,E,x);if(y!==null){x=y.model,a=y.toolManager.findTool("Dragging"),a=a!==null?a.dragOptions.dragsLink:y.Wm.dragsLink,b=new _e;for(var z=new ri,tt=E.iterator;tt.next();){var ot=tt.value;if(ot instanceof rn)a||ot.fromNode!==null&&ot.toNode!==null||b.add(ot);else if(ot instanceof Fn&&ot.data!==null&&x.Tl()){var rt=ot;ot=tt.key;var at=ot.pg();at!==null&&(at=E.I(at),at!==null?(x.qe(rt.data,x.wa(at.data)),rt=y.Kc(rt.data),ot=ot.kh(),ot!==null&&rt!==null&&z.add(ot,rt)):x.qe(rt.data,void 0))}}if(0<b.count&&y.Is(b,!1),0<z.count)for(x=z.iterator;x.next();)E.add(x.key,x.value)}if(y!==null&&this.H!==null&&(y=y.model,x=y.afterCopyFunction,x!==null)){var ut=new ri;E.each(function(ft){ft.key.data!==null&&ut.add(ft.key.data,ft.value.data)}),x(ut,y,this.H.model)}for(y=E.iterator;y.next();)y.value.La();return E};function rm(a,y,x,E,b){if(y===null||b&&!y.canCopy())return null;if(E.contains(y))return E.I(y);var z=a.copyPartData(y,x);if(!(z instanceof ei))return null;if(z.isSelected=!1,z.isHighlighted=!1,E.add(y,z),y instanceof Fn){for(var tt=y.linksConnected;tt.next();){var ot=tt.value;if(ot.fromNode===y){var rt=E.I(ot);rt!==null&&(rt.fromNode=z)}ot.toNode===y&&(ot=E.I(ot),ot!==null&&(ot.toNode=z))}if(y instanceof Ai&&z instanceof Ai)for(y=y.memberParts;y.next();)tt=rm(a,y.value,x,E,b),tt instanceof rn||tt===null||(tt.containingGroup=z)}else if(y instanceof rn&&z instanceof rn)for(tt=y.fromNode,tt!==null&&(tt=E.I(tt),tt!==null&&(z.fromNode=tt)),tt=y.toNode,tt!==null&&(tt=E.I(tt),tt!==null&&(z.toNode=tt)),y=y.labelNodes;y.next();)tt=rm(a,y.value,x,E,b),tt!==null&&tt instanceof Fn&&(tt.labeledLink=z);return z}yo.prototype.copyPartData=function(a,y){var x=null,E=a.data;if(E!==null&&y!==null){var b=y.model;a instanceof rn||(E=b.copyNodeData(E),Te(E)&&(b.xf(E),x=y.Lc(E)))}else Za(a),x=a.copy(),x!==null&&(b=this.H,y!==null?y.add(x):E!==null&&b!==null&&b.commandHandler!==null&&b.commandHandler.copiesClipboardData&&(y=b.model,b=null,x instanceof rn||(b=y.copyNodeData(E)),Te(b)&&(x.data=b)));return x},qt.Object.defineProperties(yo.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}}}),yo.prototype.updateAllRelationshipsFromData=yo.prototype.rp,yo.prototype.findLinksByExample=yo.prototype.ls,yo.prototype.findNodesByExample=yo.prototype.ms,yo.prototype.findLinkForData=yo.prototype.Kc,yo.prototype.findNodeForData=yo.prototype.ii,yo.prototype.findPartForData=yo.prototype.Lc,yo.prototype.findNodeForKey=yo.prototype.Vb,yo.prototype.removeModeledPart=yo.prototype.ip,yo.prototype.removeModeledParts=yo.prototype.Gs,yo.prototype.rebuildParts=yo.prototype.Wd;var gS=!1,fS=!1,pS=!1;yo.className="PartManager";function Rr(a){yo.apply(this,arguments)}re(Rr,yo),Rr.prototype.addAllModeledParts=function(){var a=this.diagram.model;this.addModeledParts(a.nodeDataArray),mS(this,a.linkDataArray)},Rr.prototype.addModeledParts=function(a){for(yo.prototype.addModeledParts.call(this,a,!1),a=this.links.iterator;a.next();)Eg(a.value);ig(this.diagram,!1)};function mS(a,y){y.forEach(function(x){vS(a,x)}),ig(a.diagram,!1)}function vS(a,y){if(y!=null&&!a.diagram.undoManager.isUndoingRedoing&&!a.bf.contains(y)){var x=a.getLinkCategoryForData(y),E=a.findLinkTemplateForCategory(x);if(E!==null){Za(E);var b=E.copy();if(b!==null){E=a.diagram.skipsModelSourceBindings,a.diagram.skipsModelSourceBindings=!0,b.Tf=x,b.ub=y,x=a.diagram.model;var z=um(x,y,!0);z!==""&&(b.fromPortId=z),z=Pa(x,y,!0),z!==void 0&&(z=a.Vb(z),z instanceof Fn&&(b.fromNode=z)),z=um(x,y,!1),z!==""&&(b.toPortId=z),z=Pa(x,y,!1),z!==void 0&&(z=a.Vb(z),z instanceof Fn&&(b.toNode=z)),x=x.Ef(y),Array.isArray(x)&&x.forEach(function(tt){tt=a.Vb(tt),tt!==null&&(tt.labeledLink=b)}),a.tp&&(b.Jg="Tool"),a.diagram.add(b),b.ub=null,b.data=y,a.diagram.skipsModelSourceBindings=E}}}}Rr.prototype.removeAllModeledParts=function(){var a=this.diagram.model;yS(this,a.linkDataArray),this.Gs(a.nodeDataArray)};function yS(a,y){y.forEach(function(x){a.ip(x)})}Rr.prototype.getLinkCategoryForData=function(a){return this.diagram.model.ps(a)},Rr.prototype.setLinkCategoryForData=function(a,y){return this.diagram.model.lp(a,y)},Rr.prototype.setFromNodeForLink=function(a,y){var x=this.diagram.model;x.wv(a.data,x.wa(y!==null?y.data:null))},Rr.prototype.setToNodeForLink=function(a,y){var x=this.diagram.model;x.Bv(a.data,x.wa(y!==null?y.data:null))},Rr.prototype.removeDataForLink=function(a){this.diagram.model.bm(a.data)},Rr.prototype.findPartForKey=function(a){var y=yo.prototype.findPartForKey.call(this,a);return y===null&&(a=this.diagram.model.jh(a),a!==null)?this.bf.I(a):y},Rr.prototype.findLinkForKey=function(a){return a==null?null:(a=this.diagram.model.jh(a),a!==null?this.bf.I(a):null)},Rr.prototype.doModelChanged=function(a){var y=this;if(yo.prototype.doModelChanged.call(this,a),this.diagram){var x=this.diagram;if(a.model===x.model){var E=a.change;if(x.aa){x.aa=!1;try{var b=a.modelChange;if(b!==""){if(E===Uo){if(b==="linkFromKey"){var z=this.Kc(a.object);if(z!==null){var tt=this.Vb(a.newValue);z.fromNode=tt}}else if(b==="linkToKey"){var ot=this.Kc(a.object);if(ot!==null){var rt=this.Vb(a.newValue);ot.toNode=rt}}else if(b==="linkFromPortId"){var at=this.Kc(a.object);if(at!==null){var ut=a.newValue;typeof ut=="string"&&(at.fromPortId=ut)}}else if(b==="linkToPortId"){var ft=this.Kc(a.object);if(ft!==null){var vt=a.newValue;typeof vt=="string"&&(ft.toPortId=vt)}}else if(b==="nodeGroupKey"){var xt=this.Lc(a.object);if(xt!==null){var Pt=a.newValue;if(Pt!==void 0){var Mt=this.Vb(Pt);Mt instanceof Ai?xt.containingGroup=Mt:xt.containingGroup=null}else xt.containingGroup=null}}else if(b==="linkLabelKeys"){var jt=this.Kc(a.object);if(jt!==null){var Tt=a.oldValue,Vt=a.newValue;Array.isArray(Tt)&&Tt.forEach(function(ze){0<=Vt.indexOf(ze)||(ze=y.Vb(ze),ze!==null&&(ze.labeledLink=null))}),Array.isArray(Vt)&&Vt.forEach(function(ze){ze=y.Vb(ze),ze!==null&&(ze.labeledLink=jt)})}}else if(b==="linkCategory"){var Yt=this.Kc(a.object),Kt=a.newValue;Yt!==null&&typeof Kt=="string"&&(Yt.category=Kt)}else b==="linkDataArray"&&(yS(this,a.oldValue),mS(this,a.newValue));x.isModified=!0}else if(E===ur){var te=a.newValue;if(b==="linkDataArray"&&typeof te=="object"&&te!==null)vS(this,te);else if(b==="linkLabelKeys"&&Wh(te)){var me=this.Kc(a.object),Cn=this.Vb(te);me!==null&&Cn!==null&&(Cn.labeledLink=me)}x.isModified=!0}else if(E===Ar){var Hn=a.oldValue;if(b==="linkDataArray"&&typeof Hn=="object"&&Hn!==null)this.ip(Hn);else if(b==="linkLabelKeys"&&Wh(Hn)){var In=this.Vb(Hn);In!==null&&(In.labeledLink=null)}x.isModified=!0}}else if(E===Uo){var on=a.propertyName;a.object!==x.model||on!=="linkFromKeyProperty"&&on!=="linkToKeyProperty"&&on!=="linkFromPortIdProperty"&&on!=="linkToPortIdProperty"&&on!=="linkLabelKeysProperty"&&on!=="nodeIsGroupProperty"&&on!=="nodeGroupKeyProperty"&&on!=="linkCategoryProperty"||x.undoManager.isUndoingRedoing||this.Wd(),x.isModified=!0}}finally{x.aa=!0}}}}},Rr.prototype.refreshDataBoundLinks=function(){var a=this,y=this.diagram.model,x=new _e,E=y.linkDataArray;E.forEach(function(z){x.add(z)});var b=[];this.links.each(function(z){z.data===null||x.contains(z.data)||b.push(z.data)}),b.forEach(function(z){BS(y,z,!1)}),E.forEach(function(z){a.Kc(z)===null&&kS(y,z,!1)})},Rr.prototype.updateRelationshipsFromData=function(a){var y=a.data;if(y!==null){var x=a.diagram;if(x!==null){var E=x.model;if(a instanceof rn){var b=Pa(E,y,!0);if(b=x.Vb(b),a.fromNode=b,b=Pa(E,y,!1),b=x.Vb(b),a.toNode=b,y=E.Ef(y),0<y.length||0<a.labelNodes.count){if(y.length===1&&a.labelNodes.count===1){b=y[0];var z=a.labelNodes.first();if(E.wa(z.data)===b)return}b=new _e().addAll(y);var tt=new _e;a.labelNodes.each(function(ot){ot.data!==null&&(ot=E.wa(ot.data),ot!==void 0&&tt.add(ot))}),y=tt.copy(),y.hp(b),b=b.copy(),b.hp(tt),(0<y.count||0<b.count)&&(y.each(function(ot){ot=x.Vb(ot),ot!==null&&ot.labeledLink===a&&(ot.labeledLink=null)}),b.each(function(ot){ot=x.Vb(ot),ot!==null&&ot.labeledLink!==a&&(ot.labeledLink=a)}))}}else!(a instanceof io)&&(y=E.lh(y),y=x.findPartForKey(y),y===null||y instanceof Ai)&&(a.containingGroup=y)}}},Rr.prototype.resolveReferencesForData=function(a){var y=this.diagram.model,x=y.wa(a);if(x!==void 0){var E=sp(y,x),b=this.Lc(a);if(E!==null&&b!==null){E=E.iterator;for(var z={};E.next();){var tt=E.value;y.lb(tt)?b instanceof Ai&&y.lh(tt)===x&&(tt=this.Lc(tt),tt!==null&&(tt.containingGroup=b)):(z.link=this.Kc(tt),z.link!==null&&b instanceof Fn&&(Pa(y,tt,!0)===x&&(z.link.fromNode=b),Pa(y,tt,!1)===x&&(z.link.toNode=b),tt=y.Ef(tt),Array.isArray(tt)&&tt.some(function(ot){return function(rt){return rt===x?(b.labeledLink=ot.link,!0):!1}}(z)))),z={link:z.link}}xl(y,x)}a=y.lh(a),a!==void 0&&(a=this.Vb(a),a instanceof Ai&&(b.containingGroup=a))}},Rr.prototype.unresolveReferencesForPart=function(a){var y=this.diagram.model;if(a instanceof Fn){var x=y.wa(a.data);if(x!==void 0){for(var E=a.linksConnected;E.next();)Sl(y,x,E.value.data);if(a.isLinkLabel&&(E=a.labeledLink,E!==null&&Sl(y,x,E.data)),a instanceof Ai)for(a=a.memberParts;a.next();)E=a.value.data,y.lb(E)&&Sl(y,x,E)}}},Rr.prototype.copyPartData=function(a,y){var x=yo.prototype.copyPartData.call(this,a,y);if(a instanceof rn)if(a=a.data,a!==null&&y!==null){var E=y.model;a=E.Jo(a),typeof a=="object"&&a!==null&&(E.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},Rr.prototype.insertLink=function(a,y,x,E){var b=this.diagram,z=b.model,tt=b.toolManager.findTool("Linking"),ot="";if(a!==null&&(y===null&&(y=a),ot=y.portId,ot===null&&(ot="")),y="",x!==null&&(E===null&&(E=x),y=E.portId,y===null&&(y="")),E=tt.archetypeLinkData,E instanceof rn){if(Za(E),z=E.copy(),z!==null)return z.fromNode=a,z.fromPortId=ot,z.toNode=x,z.toPortId=y,b.add(z),a=tt.archetypeLabelNodeData,a instanceof Fn&&(Za(a),a=a.copy(),a!==null&&(a.labeledLink=z,b.add(a))),z}else if(E!==null&&(E=z.Jo(E),typeof E=="object"&&E!==null))return a!==null&&Bg(z,E,z.wa(a.data),!0),Ng(z,E,ot,!0),x!==null&&Bg(z,E,z.wa(x.data),!1),Ng(z,E,y,!1),z.fi(E),a=tt.archetypeLabelNodeData,a===null||a instanceof Fn||(a=z.copyNodeData(a),typeof a=="object"&&a!==null&&(z.xf(a),a=z.wa(a),a!==void 0&&z.Bu(E,a))),b.Kc(E);return null},Rr.prototype.findLinkForKey=Rr.prototype.findLinkForKey,Rr.prototype.findPartForKey=Rr.prototype.findPartForKey,Rr.prototype.removeAllModeledParts=Rr.prototype.removeAllModeledParts,Rr.prototype.addModeledParts=Rr.prototype.addModeledParts,Rr.prototype.addAllModeledParts=Rr.prototype.addAllModeledParts,Rr.className="GraphLinksPartManager";function Ia(){yo.apply(this,arguments),this.Sg=null}re(Ia,yo);function sm(a,y,x){if(y!==null&&x!==null&&x.kh()===null){var E=a.diagram.toolManager.findTool("Linking"),b=y,z=x;if(a.diagram.isTreePathToChildren||(b=x,z=y),(E===null||!ws(E,b,z,null,!0))&&(y=a.getLinkCategoryForData(x.data),E=a.findLinkTemplateForCategory(y),E!==null&&(Za(E),E=E.copy(),E!==null))){var tt=a.diagram.skipsModelSourceBindings;a.diagram.skipsModelSourceBindings=!0,E.Tf=y,E.ub=x.data,E.fromNode=b,E.toNode=z,a.diagram.add(E),E.ub=null,E.data=x.data,a.diagram.skipsModelSourceBindings=tt}}}Ia.prototype.getLinkCategoryForData=function(a){return this.diagram.model.ss(a)},Ia.prototype.setLinkCategoryForData=function(a,y){this.diagram.model.Ms(a,y)},Ia.prototype.setFromNodeForLink=function(a,y,x){var E=this.diagram.model;if(x===void 0&&(x=null),y=y!==null?y.data:null,this.diagram.isTreePathToChildren)E.qe(a.data,E.wa(y));else{var b=this.Sg;this.Sg=a,x!==null&&E.qe(x.data,void 0),E.qe(y,E.wa(a.toNode!==null?a.toNode.data:null)),this.Sg=b}},Ia.prototype.setToNodeForLink=function(a,y,x){var E=this.diagram.model;if(x===void 0&&(x=null),y=y!==null?y.data:null,this.diagram.isTreePathToChildren){var b=this.Sg;this.Sg=a,x!==null&&E.qe(x.data,void 0),E.qe(y,E.wa(a.fromNode!==null?a.fromNode.data:null)),this.Sg=b}else E.qe(a.data,E.wa(y))},Ia.prototype.removeDataForLink=function(a){this.diagram.model.qe(a.data,void 0)},Ia.prototype.findLinkForKey=function(a){return a==null?null:(a=this.diagram.model.hc(a),a!==null?this.bf.I(a):null)},Ia.prototype.doModelChanged=function(a){if(yo.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 E=a.modelChange;if(E!==""){if(x===Uo){if(E==="nodeParentKey"){var b=a.object,z=this.Vb(a.newValue),tt=this.ii(b);if(this.Sg!==null)z!==null&&(this.Sg.data=b,this.Sg.category=this.getLinkCategoryForData(b));else if(tt!==null){var ot=tt.kh();ot!==null?z===null?y.remove(ot):y.isTreePathToChildren?ot.fromNode=z:ot.toNode=z:sm(this,z,tt)}}else if(E==="parentLinkCategory"){var rt=this.ii(a.object),at=a.newValue;if(rt!==null&&typeof at=="string"){var ut=rt.kh();ut!==null&&(ut.category=at)}}y.isModified=!0}}else if(x===Uo){var ft=a.propertyName;a.object===y.model&&ft==="nodeParentKeyProperty"&&(y.undoManager.isUndoingRedoing||this.Wd()),y.isModified=!0}}finally{y.aa=!0}}}}},Ia.prototype.updateRelationshipsFromData=function(a){var y=a.data;if(y!==null){var x=a.diagram;if(x!==null){var E=x.model;a instanceof Fn&&(y=E.mh(y),y=x.Vb(y),E=a.pg(),y!==E&&(E=a.kh(),y!==null?E!==null?x.isTreePathToChildren?E.fromNode=y:E.toNode=y:sm(this,y,a):E!==null&&Sf(x,E,!1)))}}},Ia.prototype.updateDataBindings=function(a,y){yo.prototype.updateDataBindings.call(this,a,y),typeof y=="string"&&this.Lc(a)!==null&&(a=this.Kc(a),a!==null&&a.La(y))},Ia.prototype.resolveReferencesForData=function(a){var y=this.diagram.model,x=y.wa(a);if(x!==void 0){var E=sp(y,x),b=this.Lc(a);if(E!==null&&b!==null){for(E=E.iterator;E.next();){var z=E.value;y.lb(z)&&b instanceof Fn&&y.mh(z)===x&&sm(this,b,this.ii(z))}xl(y,x)}a=y.mh(a),a!==void 0&&b instanceof Fn&&(a=this.Vb(a),sm(this,a,b))}},Ia.prototype.unresolveReferencesForPart=function(a){var y=this.diagram.model;if(a instanceof Fn){var x=y.wa(a.data),E=this.Kc(a.data);if(E!==null){E.isSelected=!1,E.isHighlighted=!1;var b=E.layer;if(b!==null){var z=b.pc(-1,E,!1);0<=z&&this.diagram.cb(Ar,"parts",b,E,null,z,null),z=E.layerChanged,z!==null&&z(E,b,null)}}for(E=this.diagram.isTreePathToChildren,a=a.linksConnected;a.next();)b=a.value,b=(E?b.toNode:b.fromNode).data,y.lb(b)&&Sl(y,x,b)}},Ia.prototype.insertLink=function(a,y,x){y=this.diagram.model;var E=a,b=x;return this.diagram.isTreePathToChildren||(E=x,b=a),E!==null&&b!==null?(y.qe(b.data,y.wa(E.data)),b.kh()):null},Ia.prototype.findLinkForKey=Ia.prototype.findLinkForKey,Ia.className="TreePartManager";function Xn(a,y){this.kl=new _e,this.il=new _e,this.Wv=`,
|
|
"insertedNodeKeys": `,this.jy=`,
|
|
"modifiedNodeData": `,this.Yv=`,
|
|
"removedNodeKeys": `,this.vh=null,xo(this),this.Sm=this.xa="",this.Gg=!1,this.j={},this.Tc=[],this.kb=new ri,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 ri,this.Lt=new $e,this.Wg=!1,this.o=null,this.undoManager=new Zo,a!==void 0&&(Ve(a)?this.nodeDataArray=a:y=a),y&&(Object.assign(this,y),a=y.Changed)&&(delete this.Changed,this.Pe(a))}Xn.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},Xn.prototype.copy=function(){var a=new this.constructor;return this.cloneProtected(a),a},Xn.prototype.clear=function(){this.Tc=[],this.kb.clear(),this.Vf.clear(),this.undoManager.clear()},Xn.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,E=0;E<x;E++){var b=a[E];y+=" "+this.wa(b)+":"+Xi(b)}}return y},Xn.prototype.xA=function(a){a.change!==ra&&zt("Model.toIncrementalData argument is not a Transaction ChangedEvent:"+a.toString());var y=a.object;return a.isTransactionFinished&&y instanceof jr?(xS(this,y),a=this.Qv(y,a.propertyName==="FinishedUndo"),this.vh=null,a):null},Xn.prototype.Qv=function(a,y){var x=this,E=!1,b=new _e,z=new _e,tt=new _e,ot=this.vh;a.changes.each(function(ft){ft.model===x&&(ft.modelChange==="nodeDataArray"?ft.change===ur?b.add(ft.newValue):ft.change===Ar&&tt.add(ft.oldValue):x.lb(ft.object)?z.add(ft.object):ft.change!==Uo||x.modelData!==ft.object&&ft.propertyName!=="modelData"?ft.object!==null&&(ot&&ot.contains(ft.object)?ot.get(ft.object).each(function(vt){x.lb(vt)&&z.add(vt)}):ft.object instanceof Xn||x.ri()&&x.Jc(ft.object)||wS(x,ft.object).each(function(vt){z.add(vt)})):E=!0)});var rt=this.il;rt.clear(),b.each(function(ft){rt.add(x.wa(ft)),y||z.add(ft)});var at=this.kl;at.clear(),tt.each(function(ft){at.add(x.wa(ft)),y&&z.add(ft)}),a=x.cloneDeep(z.Fa());var ut=null;return E&&(ut===null&&(ut={}),ut.modelData=this.cloneDeep(this.modelData)),0<rt.count&&(ut===null&&(ut={}),y?ut.removedNodeKeys=rt.Fa():ut.insertedNodeKeys=rt.Fa()),0<a.length&&(ut===null&&(ut={}),ut.modifiedNodeData=a),0<at.count&&(ut===null&&(ut={}),y?ut.insertedNodeKeys=at.Fa():ut.removedNodeKeys=at.Fa()),at.clear(),rt.clear(),ut},Xn.prototype.cloneDeep=function(a){return kg(this,a,!0)};function kg(a,y,x,E,b,z){function tt(ft,vt){ot?(ft.__gohashid===void 0&&z.push(ft),E.set(ft,vt)):(ft=Bo++,E.set(ft,vt),b.set(ft,y))}if(!Te(y))return y;z||(z=[]);var ot=Object.isExtensible(y);if(E||(E=new ri),ot){var rt=E.get(y);if(rt)return rt}else for(b||(b=new ri),rt=b.iterator;rt.next();){var at=rt.key;if(rt.value===y&&(at=E.get(at)))return at}if(Array.isArray(y)){rt=[],tt(y,rt);for(var ut=0;ut<y.length;ut++)rt.push(kg(a,y[ut],!1,E,b,z))}else if(y instanceof It||y instanceof Ee||y instanceof be||y instanceof yi||y instanceof ni)rt=y.copy(),tt(y,rt);else{if(y instanceof vo||y instanceof cn||y instanceof De)return y;if(y instanceof $e)rt=new $e().addAll(kg(a,y.Fa(),!1,E,b,z)),tt(y,rt);else if(y instanceof _e)rt=new _e().addAll(kg(a,y.Fa(),!1,E,b,z)),tt(y,rt);else if(y instanceof ri)rt=new ri().addAll(kg(a,y.Fa(),!1,E,b,z)),tt(y,rt);else if(y instanceof Date)rt=new Date(y.getTime()),tt(y,rt);else if(y instanceof RegExp)rt=new RegExp(y),tt(y,rt),rt.lastIndex=y.lastIndex;else if(typeof y.copy=="function")rt=y.copy(),tt(y,rt);else for(ut in rt={},tt(y,rt),y)ut!=="__gohashid"&&(rt[ut]=kg(a,y[ut],!1,E,b,z))}return x&&z.forEach(function(ft){delete ft.__gohashid}),rt}wt=Xn.prototype,wt.quote=function(a){return JSON.stringify(a).replace(/[\u007F-\uFFFF]/g,function(y){return"\\u"+("0000"+y.charCodeAt(0).toString(16)).substr(-4)})},wt.rm=function(){var a="";return this.name!==""&&(a+=`,
|
|
"name": `+this.quote(this.name)),this.dataFormat!==""&&(a+=`,
|
|
"dataFormat": `+this.quote(this.dataFormat)),this.isReadOnly&&(a+=`,
|
|
"isReadOnly": `+this.isReadOnly),this.nodeKeyProperty!=="key"&&typeof this.nodeKeyProperty=="string"&&(a+=`,
|
|
"nodeKeyProperty": `+this.quote(this.nodeKeyProperty)),this.copiesArrays&&(a+=`,
|
|
"copiesArrays": true`),this.copiesArrayObjects&&(a+=`,
|
|
"copiesArrayObjects": true`),this.copiesKey||(a+=`,
|
|
"copiesKey": false`),this.nodeCategoryProperty!=="category"&&typeof this.nodeCategoryProperty=="string"&&(a+=`,
|
|
"nodeCategoryProperty": `+this.quote(this.nodeCategoryProperty)),a},wt.gp=function(a){a.name&&(this.name=a.name),a.dataFormat&&(this.dataFormat=a.dataFormat),a.isReadOnly&&(this.isReadOnly=!0),a.nodeKeyProperty&&(this.nodeKeyProperty=a.nodeKeyProperty),a.copiesArrays&&(this.copiesArrays=!0),a.copiesArrayObjects&&(this.copiesArrayObjects=!0),a.copiesKey===!1&&(this.copiesKey=!1),a.nodeCategoryProperty&&(this.nodeCategoryProperty=a.nodeCategoryProperty)};function SS(a,y){y=y.modelData,Te(y)&&(a.dm(y),a.modelData=y)}wt.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": `+uy(this,this.modelData)),a+`,
|
|
"nodeDataArray": `+Uh(this,this.nodeDataArray,!0)},wt.kv=function(a){SS(this,a),a=a.nodeDataArray,Ve(a)&&(this.dm(a),this.nodeDataArray=a)};function xS(a,y){function x(b,z){if((z=z.part)&&(z=z.data,b!==z)){var tt=E.get(b);tt===null?(tt=new _e,tt.add(z),E.add(b,tt)):tt.add(z)}}var E=a.vh;E===null&&(E=new ri,y.changes.each(function(b){if(b.diagram!==null){var z=b.change;z===Uo?(b=b.object.panel)&&(z=b.data)&&x(z,b):(z===ur||z===Ar)&&(b=b.object,(z=b.itemArray)&&x(z,b))}}),a.vh=E)}function wS(a,y){for(var x=new _e,E=0;E<a.nodeDataArray.length;E++){var b=a.nodeDataArray[E];am(a,y,b,b,x)}return x}function am(a,y,x,E,b){if(Array.isArray(x))for(var z=0;z<x.length;z++){var tt=x[z];if(tt===y)return b.add(E),!0;if(am(a,y,tt,E,b))return!0}else if(Te(x)&&Object.getPrototypeOf(x)===Object.prototype)for(z in x){if(tt=x[z],tt===y)return b.add(E),!0;if(am(a,y,tt,E,b))return!0}return!1}wt.Pv=function(a,y){var x=this,E=!1,b=new _e,z=new _e,tt=new _e,ot=this.vh;a.changes.each(function(ut){ut.model===x&&(ut.modelChange==="nodeDataArray"?ut.change===ur?b.add(ut.newValue):ut.change===Ar&&tt.add(ut.oldValue):x.lb(ut.object)?z.add(ut.object):ut.change!==Uo||x.modelData!==ut.object&&ut.propertyName!=="modelData"?ut.object!==null&&(ot&&ot.contains(ut.object)?ot.get(ut.object).each(function(ft){x.lb(ft)&&z.add(ft)}):ut.object instanceof Xn||x.ri()&&x.Jc(ut.object)||wS(x,ut.object).each(function(ft){z.add(ft)})):E=!0)});var rt=this.il;rt.clear(),b.each(function(ut){rt.add(x.wa(ut)),y||z.add(ut)});var at=this.kl;return at.clear(),tt.each(function(ut){at.add(x.wa(ut)),y&&z.add(ut)}),a="",E&&(a+=`,
|
|
"modelData": `+uy(this,this.modelData)),0<rt.count&&(a+=(y?this.Yv:this.Wv)+Uh(this,rt.Fa(),!0)),0<z.count&&(a+=this.jy+Uh(this,z.Fa(),!0)),0<at.count&&(a+=(y?this.Wv:this.Yv)+Uh(this,at.Fa(),!0)),at.clear(),rt.clear(),a},wt.fp=function(a){(a.name!==void 0&&a.name!==this.name||a.dataFormat!==void 0&&a.dataFormat!==this.dataFormat||a.isReadOnly!==void 0&&a.isReadOnly!==this.isReadOnly||a.nodeKeyProperty!==void 0&&a.nodeKeyProperty!==this.nodeKeyProperty||a.copiesArrays!==void 0&&a.copiesArrays!==this.copiesArrays||a.copiesArrayObjects!==void 0&&a.copiesArrayObjects!==this.copiesArrayObjects||a.copiesKey!==void 0&&a.copiesKey!==this.copiesKey||a.nodeCategoryProperty!==void 0&&a.nodeCategoryProperty!==this.nodeCategoryProperty)&&zt("applyIncrementalJson cannot change Model properties"),SS(this,a);var y=a.insertedNodeKeys,x=a.modifiedNodeData,E=new ri;if(Array.isArray(x))for(var b=0;b<x.length;b++){var z=x[b],tt=this.wa(z);tt!=null&&E.set(tt,z)}if(Array.isArray(y))for(b=y.length,z=0;z<b;z++){tt=y[z];var ot=this.hc(tt);ot===null&&(ot=(ot=E.get(tt))?ot:this.copyNodeData({}),this.km(ot,tt),this.xf(ot))}if(Array.isArray(x)){for(y=x.length,E=0;E<y;E++)if(b=x[E],z=this.wa(b),z=this.hc(z),z!==null){for(var rt in b)rt==="__gohashid"||rt===this.nodeKeyProperty||this.Wj()&&rt===this.nodeIsGroupProperty||this.setDataProperty(z,rt,b[rt]);this.lm(b,z)}}if(a=a.removedNodeKeys,Array.isArray(a))for(x=a.length,rt=0;rt<x;rt++)y=this.hc(a[rt]),y!==null&&this.cm(y)},wt.$x=function(a,y){a.change!==ra&&zt("Model.toIncrementalJson argument is not a Transaction ChangedEvent:"+a.toString());var x=a.object;return a.isTransactionFinished&&x instanceof jr?(y===void 0&&(y=ap(this,this)),xS(this,x),a=this.Pv(x,a.propertyName==="FinishedUndo"),this.vh=null,y==="2"?'{ "incremental": 2'+a+"}":'{ "class": '+this.quote(y)+', "incremental": 1'+this.rm()+a+"}"):'{ "incremental": 0 }'},wt.yA=function(a,y){return this.$x(a,y)},wt.np=function(a){return a===void 0&&(a=ap(this,this)),'{ "class": '+this.quote(a)+this.rm()+this.Rv()+"}"},wt.toJSON=function(a){return this.np(a)},wt.Zw=function(a){var y=null;if(typeof a=="string")try{y=Be.JSON.parse(a)}catch(E){}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"))},wt.Ky=function(a){return this.Zw(a)},Xn.constructGraphLinksModel=function(){return new Xn},wt=Xn.prototype,wt.dm=function(a){if(Ve(a))for(var y=a.length,x=0;x<y;x++){var E=a[x];if(Te(E)){var b=x;E=this.dm(E),Array.isArray(a)?a[b]=E:zt("Cannot replace an object in an HTMLCollection or NodeList at "+b)}}else if(Te(a)){for(y in a)if(x=a[y],Te(x)&&(x=this.dm(x),a[y]=x,y==="points"&&Array.isArray(x))){for(b=x.length%2===0,E=0;E<x.length;E++)if(typeof x[E]!="number"){b=!1;break}if(b){for(b=new $e,E=0;E<x.length/2;E++)b.add(new It(x[2*E],x[2*E+1]));b.freeze(),a[y]=b}}return Nx(a)}return a},wt.sm=function(a){return a===void 0?"undefined":a===null?"null":a===!0?"true":a===!1?"false":typeof a=="string"?this.quote(a):typeof a=="number"?a===1/0?"9e9999":a===-1/0?"-9e9999":isNaN(a)?'{"class":"NaN"}':a.toString():a instanceof Date?'{"class":"Date", "value":"'+a.toJSON()+'"}':a instanceof Number?this.sm(a.valueOf()):Ve(a)?Uh(this,a):Te(a)?uy(this,a):typeof a=="function"?"null":a.toString()};function Uh(a,y,x){x===void 0&&(x=!1);var E=y.length;if(0>=E)return"[]";var b=new ci;b.add("["),x&&1<E&&b.add(`
|
|
`);for(var z=0;z<E;z++){var tt=y[z];tt!==void 0&&(0<z&&(b.add(","),x&&b.add(`
|
|
`)),b.add(a.sm(tt)))}return x&&1<E&&b.add(`
|
|
`),b.add("]"),b.toString()}function PS(a,y){return y===void 0||a==="__gohashid"||a[0]==="_"||typeof y=="function"}function Ns(a){return isNaN(a)?"NaN":a===1/0?"9e9999":a===-1/0?"-9e9999":a}function uy(a,y){var x=y;if(x instanceof It)y={class:"go.Point",x:Ns(x.x),y:Ns(x.y)};else if(x instanceof Ee)y={class:"go.Size",width:Ns(x.width),height:Ns(x.height)};else if(x instanceof be)y={class:"go.Rect",x:Ns(x.x),y:Ns(x.y),width:Ns(x.width),height:Ns(x.height)};else if(x instanceof yi)y={class:"go.Margin",top:Ns(x.top),right:Ns(x.right),bottom:Ns(x.bottom),left:Ns(x.left)};else if(x instanceof ni)x.sb()?y={class:"go.Spot",x:Ns(x.x),y:Ns(x.y),offsetX:Ns(x.offsetX),offsetY:Ns(x.offsetY)}:y={class:"go.Spot",enum:x.toString()};else if(x instanceof vo){if(y={class:"go.Brush",type:x.type.name},x.type===qu?y.color=x.color:(x.type===Pu||x.type===Da)&&(y.start=x.start,y.end=x.end,x.type===Da&&(x.startRadius!==0&&(y.startRadius=Ns(x.startRadius)),isNaN(x.endRadius)||(y.endRadius=Ns(x.endRadius)))),x.colorStops!==null){var E={};for(x=x.colorStops.iterator;x.next();)E[x.key]=x.value;y.colorStops=E}}else x instanceof cn?(y={class:"go.Geometry",type:x.type.name},x.startX!==0&&(y.startX=Ns(x.startX)),x.startY!==0&&(y.startY=Ns(x.startY)),x.endX!==0&&(y.endX=Ns(x.endX)),x.endY!==0&&(y.endY=Ns(x.endY)),x.spot1.D(ir)||(y.spot1=x.spot1),x.spot2.D(zs)||(y.spot2=x.spot2),x.type===cn.o&&(y.path=cn.ia(x))):x instanceof De&&(y={class:"go.EnumValue",classType:ap(a,x.classType),name:x.name});E="{",x=!0;for(var b in y){var z=sr(y,b);if(!PS(b,z))if(x?x=!1:E+=",",E+=a.quote(b)+":",b==="points"&&z instanceof $e){var tt="[";for(z=z.iterator;z.next();){var ot=z.value;1<tt.length&&(tt+=","),tt+=a.sm(ot.x),tt+=",",tt+=a.sm(ot.y)}tt+="]",E+=tt}else E+=a.sm(z)}return E+"}"}function bs(a){return typeof a=="number"?a:a==="NaN"?NaN:a==="9e9999"?1/0:a==="-9e9999"?-1/0:parseFloat(a)}function Nx(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 It(bs(a.x),bs(a.y));else if(y==="Size")x=new Ee(bs(a.width),bs(a.height));else if(y==="Rect")x=new be(bs(a.x),bs(a.y),bs(a.width),bs(a.height));else if(y==="Margin")x=new yi(bs(a.top),bs(a.right),bs(a.bottom),bs(a.left));else if(y==="Spot")typeof a.enum=="string"?x=Ic(a.enum):x=new ni(bs(a.x),bs(a.y),bs(a.offsetX),bs(a.offsetY));else if(y==="Brush"){if(x=new vo,x.type=En(vo,a.type),typeof a.color=="string"&&(x.color=a.color),a.start instanceof ni&&(x.start=a.start),a.end instanceof ni&&(x.end=a.end),typeof a.startRadius=="number"&&(x.startRadius=bs(a.startRadius)),typeof a.endRadius=="number"&&(x.endRadius=bs(a.endRadius)),a=a.colorStops,Te(a))for(var E in a)x.addColorStop(parseFloat(E),a[E])}else y==="Geometry"?(x=null,typeof a.path=="string"?x=cn.parse(a.path):x=new cn,x.type=En(cn,a.type),typeof a.startX=="number"&&(x.startX=bs(a.startX)),typeof a.startY=="number"&&(x.startY=bs(a.startY)),typeof a.endX=="number"&&(x.endX=bs(a.endX)),typeof a.endY=="number"&&(x.endY=bs(a.endY)),a.spot1 instanceof ni&&(x.spot1=a.spot1),a.spot2 instanceof ni&&(x.spot2=a.spot2)):y==="EnumValue"&&(E=a.classType,E.indexOf("go.")===0&&(E=E.substr(3)),E=dy(E),typeof E=="function"&&(x=En(E,a.name)));return x}wt.Pe=function(a){return this.Lt.add(a),this},wt.ik=function(a){this.Lt.remove(a)},wt.ds=function(a){this.skipsUndoManager||this.undoManager.Tu(a);for(var y=this.Lt,x=y.length,E=0;E<x;E++)y.M(E)(a)},wt.cb=function(a,y,x,E,b,z,tt){Er(this,"",a,y,x,E,b,z,tt)},wt.g=function(a,y,x,E,b){Er(this,"",Uo,a,this,y,x,E,b)},wt.Fs=function(a,y,x,E,b,z){Er(this,"",Uo,y,a,x,E,b,z)};function Er(a,y,x,E,b,z,tt,ot,rt){ot===void 0&&(ot=null),rt===void 0&&(rt=null);var at=new Wo;at.model=a,at.change=x,at.modelChange=y,at.propertyName=E,at.object=b,at.oldValue=z,at.oldParam=ot,at.newValue=tt,at.newParam=rt,a.ds(at)}Xn.prototype.changeState=function(a,y){if(a!==null&&a.model===this)if(a.change===Uo){var x=a.object,E=a.propertyName,b=a.I(y);E===this.nodeKeyProperty&&this.lb(x)&&(y=a.I(!y),y!==void 0&&this.kb.remove(y),b!==void 0&&this.kb.add(b,x)),Go(x,E,b)}else a.change===ur?(x=a.newParam,a.modelChange==="nodeDataArray"?(a=a.newValue,Te(a)&&typeof x=="number"&&(E=this.wa(a),y?(this.Tc[x]===a&&oi(this.Tc,x),E!==void 0&&this.kb.remove(E)):(this.Tc[x]!==a&&li(this.Tc,x,a),E!==void 0&&this.kb.add(E,a)))):a.modelChange===""?((E=a.object)&&!Ve(E)&&a.propertyName&&(E=sr(a.object,a.propertyName)),Ve(E)&&typeof x=="number"&&(a=a.newValue,y?oi(E,x):li(E,x,a))):zt("unknown ChangedEvent.Insert modelChange: "+a.toString())):a.change===Ar?(x=a.oldParam,a.modelChange==="nodeDataArray"?(a=a.oldValue,Te(a)&&typeof x=="number"&&(E=this.wa(a),y?(this.Tc[x]!==a&&li(this.Tc,x,a),E!==void 0&&this.kb.add(E,a)):(this.Tc[x]===a&&oi(this.Tc,x),E!==void 0&&this.kb.remove(E)))):a.modelChange===""?((E=a.object)&&!Ve(E)&&a.propertyName&&(E=sr(a.object,a.propertyName)),Ve(E)&&typeof x=="number"&&(a=a.oldValue,y?li(E,x,a):oi(E,x))):zt("unknown ChangedEvent.Remove modelChange: "+a.toString())):a.change!==ra&&zt("unknown ChangedEvent: "+a.toString())},Xn.prototype.Ea=function(a){return this.undoManager.Ea(a)},Xn.prototype.eb=function(a){return this.undoManager.eb(a)},Xn.prototype.Kf=function(){return this.undoManager.Kf()},Xn.prototype.commit=function(a,y){y===void 0&&(y="");var x=this.skipsUndoManager;y===null&&(this.skipsUndoManager=!0,y=""),this.undoManager.Ea(y);var E=!1;try{a(this),E=!0}finally{E?this.undoManager.eb(y):this.undoManager.Kf(),this.skipsUndoManager=x}},wt=Xn.prototype,wt.La=function(a,y){y===void 0&&(y=""),Er(this,"SourceChanged",ra,y,a,null,null)},wt.wa=function(a){if(a!==null){var y=this.Th;if(y!==""&&(y=sr(a,y),y!==void 0)){if(Wh(y))return y;zt("Key value for node data "+a+" is not a number or a string: "+y)}}},wt.km=function(a,y){if(a!==null){var x=this.Th;if(x!=="")if(this.lb(a)){var E=sr(a,x);E!==y&&this.hc(y)===null&&(Go(a,x,y),E!==void 0&&this.kb.remove(E),this.kb.add(y,a),Er(this,"nodeKey",Uo,x,a,E,y),typeof x=="string"&&this.La(a,x),this.jp(E,y))}else Go(a,x,y)}};function Wh(a){return typeof a=="number"||typeof a=="string"}wt.lb=function(a){var y=this.wa(a);return y===void 0?!1:this.kb.I(y)===a},wt.hc=function(a){return a===null&&zt("Model.findNodeDataForKey:key must not be null"),a!==void 0&&Wh(a)?this.kb.I(a):null},wt.$u=function(a){if(a!==null){var y=this.Th;if(y!==""){var x=this.wa(a);if(x===void 0||this.kb.contains(x)){var E=this.bl;if(E!==null&&(x=E(this,a),x!=null&&!this.kb.contains(x))){Go(a,y,x);return}if(typeof x=="string"){for(E=2;this.kb.contains(x+E);)E++;Go(a,y,x+E)}else if(x===void 0||typeof x=="number"){for(x=-this.kb.count-1;this.kb.contains(x);)x--;Go(a,y,x)}}}}},wt.xf=function(a){a!==null&&(Co(a),this.lb(a)||CS(this,a,!0))};function CS(a,y,x){var E=a.wa(y);(E===void 0||a.kb.I(E)!==y)&&(a.$u(y),E=a.wa(y),E===void 0&&zt("Model.makeNodeDataKeyUnique failed on "+y+". Data not added to Model."),a.kb.add(E,y),E=null,x&&(E=a.Tc.length,li(a.Tc,E,y)),Er(a,"nodeDataArray",ur,"nodeDataArray",a,null,y,null,E),a.fm(y),a.em(y))}wt.Fy=function(a){if(Ve(a))for(var y=a.length,x=0;x<y;x++)this.xf(a[x]);else for(a=a.iterator;a.next();)this.xf(a.value)},wt.cm=function(a){a!==null&&ES(this,a,!0)};function ES(a,y,x){var E=a.wa(y);if(E!==void 0&&a.kb.remove(E),E=null,x){t:if(x=a.Tc,Array.isArray(x))E=x.indexOf(y);else{E=x.length;for(var b=0;b<E;b++)if(x[b]===y){E=b;break t}E=-1}if(0>E)return;oi(a.Tc,E)}Er(a,"nodeDataArray",Ar,"nodeDataArray",a,y,null,E,null),a.qp(y)}wt.nA=function(a){if(Ve(a))for(var y=a.length,x=0;x<y;x++)this.cm(a[x]);else for(a=a.iterator;a.next();)this.cm(a.value)},wt.$z=function(a){if(a!==this.nodeDataArray&&Ve(a)){var y=this.kl;y.clear(),y.addAll(this.kb.iteratorKeys);var x=this.il;x.clear();for(var E=a.length,b=0;b<E;b++){var z=a[b],tt=this.wa(z);if(tt!==void 0){x.add(tt);var ot=this.hc(tt);ot!==z&&(ot!==null?(this.Do(ot,z),this.lm(z,ot)):(z=this.cloneDeep(z),this.km(z,tt),this.xf(z)))}else tt=this.cloneDeep(z),this.xf(tt),x.add(this.wa(tt))}for(a=y.iterator;a.next();)E=a.value,x.contains(E)||(E=this.hc(E))&&this.cm(E);y.clear(),x.clear()}},wt.jp=function(a,y){y!==void 0&&(a=sp(this,a),a instanceof _e&&this.Vf.add(y,a))},wt.Lv=function(){},wt.fm=function(){},wt.em=function(){},wt.qp=function(){};function Sl(a,y,x){if(y!==void 0){var E=a.Vf.I(y);E===null&&(E=new _e,a.Vf.add(y,E)),E.add(x)}}function xl(a,y,x){if(y!==void 0){var E=a.Vf.I(y);E instanceof _e&&(x==null?a.Vf.remove(y):(E.remove(x),E.count===0&&a.Vf.remove(y)))}}function sp(a,y){return y===void 0?null:(a=a.Vf.I(y),a instanceof _e?a:null)}wt.Qy=function(a){a===void 0?this.Vf.clear():this.Vf.remove(a)},Xn.prototype.copyNodeData=function(a){if(a===null)return null;var y=this.Bk;return a=y!==null?y(a,this):lm(this,a,!0),Te(a)&&xo(a),a};function lm(a,y,x){if(a.copiesArrays&&Array.isArray(y)){var E=[];for(x=0;x<y.length;x++){var b=lm(a,y[x],a.copiesArrayObjects);E.push(b)}return xo(E),E}if(x&&Te(y)){x=(x=y.constructor)?new x:{},b=a.copiesKey||typeof a.nodeKeyProperty!="string"?null:a.nodeKeyProperty;for(E in y)if(E==="__gohashid")x.__gohashid=void 0;else if(E===b)x[b]=void 0;else{var z=sr(y,E),tt=ap(a,z);tt==="GraphObject"||tt==="Diagram"||tt==="Layer"||tt==="RowColumnDefinition"||tt==="AnimationManager"||tt==="Tool"||tt==="CommandHandler"||tt==="Layout"||tt==="InputEvent"||tt==="DiagramEvent"||z instanceof Xn||z instanceof Zo||z instanceof jr||z instanceof Wo||(z=lm(a,z,!1)),Go(x,E,z)}return xo(x),x}return y instanceof It||y instanceof Ee||y instanceof be||y instanceof ni||y instanceof yi?y.copy():y}Xn.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!AS&&a instanceof ee&&(AS=!0,On('Model.setDataProperty is modifying a GraphObject, "'+a.toString()+'"'),On(" Is that really your intent?"));var E=sr(a,y);E!==x&&(Go(a,y,x),this.Fs(a,y,E,x))},wt=Xn.prototype,wt.set=function(a,y,x){this.setDataProperty(a,y,x)},wt.Do=function(a,y){if(y){var x=this.lb(a),E;for(E in y)E==="__gohashid"||x&&E===this.nodeKeyProperty||this.setDataProperty(a,E,y[E])}},wt.Ay=function(a,y){this.ts(a,-1,y)},wt.ts=function(a,y,x){0>y&&(y=a.length),li(a,y,x),Er(this,"",ur,"",a,null,x,null,y)},wt.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];oi(a,y),Er(this,"",Ar,"",a,x,null,y,null)},wt.Ro=function(a){if(a===null)return"";var y=this.lj;if(y===""||(y=sr(a,y),y===void 0))return"";if(typeof y=="string")return y;zt("getCategoryForNodeData found a non-string category for "+a+": "+y)},wt.jm=function(a,y){if(a!==null){var x=this.lj;if(x!=="")if(this.lb(a)){var E=sr(a,x);E===void 0&&(E=""),E!==y&&(Go(a,x,y),Er(this,"nodeCategory",Uo,x,a,E,y))}else Go(a,x,y)}},wt.lm=function(a,y){this.jm(y,this.Ro(a))},wt.Tl=function(){return!1},wt.Wj=function(){return!1},wt.ri=function(){return!1},wt.xs=function(){return!1},wt.Xj=function(){return!1};function hy(){return new Xn}function ap(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 ap(a,y.constructor);return typeof y}function dy(a){return sl[a]?sl[a]:Be.go!==void 0&&Be.go[a]?Be.go[a]:null}function sr(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(E){}return x}function Go(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(E){}}qt.Object.defineProperties(Xn.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,E=0;E<x;E++){var b=a[E];Te(b)||zt("Model.nodeDataArray must only contain Objects, not: "+b),Co(b)}for(this.Tc=a,E=new $e,b=0;b<x;b++){var z=a[b],tt=this.wa(z);tt===void 0||this.kb.I(tt)!==null?E.add(z):this.kb.add(tt,z)}for(E=E.iterator;E.next();)b=E.value,this.$u(b),z=this.wa(b),z!==void 0&&this.kb.add(z,b);for(Er(this,"nodeDataArray",Uo,"nodeDataArray",this,y,a),y=0;y<x;y++)E=a[y],this.fm(E),this.em(E);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"}}}),Xn.prototype.setCategoryForNodeData=Xn.prototype.jm,Xn.prototype.getCategoryForNodeData=Xn.prototype.Ro,Xn.prototype.removeArrayItem=Xn.prototype.ov,Xn.prototype.insertArrayItem=Xn.prototype.ts,Xn.prototype.addArrayItem=Xn.prototype.Ay,Xn.prototype.assignAllDataProperties=Xn.prototype.Do,Xn.prototype.set=Xn.prototype.set,Xn.prototype.clearUnresolvedReferences=Xn.prototype.Qy,Xn.prototype.mergeNodeDataArray=Xn.prototype.$z,Xn.prototype.removeNodeDataCollection=Xn.prototype.nA,Xn.prototype.removeNodeData=Xn.prototype.cm,Xn.prototype.addNodeDataCollection=Xn.prototype.Fy,Xn.prototype.addNodeData=Xn.prototype.xf,Xn.prototype.makeNodeDataKeyUnique=Xn.prototype.$u,Xn.prototype.findNodeDataForKey=Xn.prototype.hc,Xn.prototype.containsNodeData=Xn.prototype.lb,Xn.prototype.setKeyForNodeData=Xn.prototype.km,Xn.prototype.getKeyForNodeData=Xn.prototype.wa,Xn.prototype.updateTargetBindings=Xn.prototype.La,Xn.prototype.commit=Xn.prototype.commit,Xn.prototype.rollbackTransaction=Xn.prototype.Kf,Xn.prototype.commitTransaction=Xn.prototype.eb,Xn.prototype.startTransaction=Xn.prototype.Ea,Xn.prototype.raiseDataChanged=Xn.prototype.Fs,Xn.prototype.raiseChanged=Xn.prototype.g,Xn.prototype.raiseChangedEvent=Xn.prototype.cb,Xn.prototype.removeChangedListener=Xn.prototype.ik,Xn.prototype.addChangedListener=Xn.prototype.Pe,Xn.prototype.writeJsonValue=Xn.prototype.sm,Xn.prototype.replaceJsonObjects=Xn.prototype.dm,Xn.prototype.applyIncrementalJSON=Xn.prototype.Ky,Xn.prototype.applyIncrementalJson=Xn.prototype.Zw,Xn.prototype.toJSON=Xn.prototype.toJSON,Xn.prototype.toJson=Xn.prototype.np,Xn.prototype.toIncrementalJSON=Xn.prototype.yA,Xn.prototype.toIncrementalJson=Xn.prototype.$x,Xn.prototype.toIncrementalData=Xn.prototype.xA,Xn.prototype.clear=Xn.prototype.clear;var AS=!1,sl={};Xn.className="Model",Xn.fromJSON=Xn.fromJson=function(a,y){y===void 0&&(y=null);var x=null;if(typeof a=="string")try{x=Be.JSON.parse(a)}catch(z){}else typeof a=="object"?x=a:zt("Unable to construct a Model from: "+a);if(y===null){a=null;var E=x.class;if(typeof E=="string")try{var b=null;E.indexOf("go.")===0?(E=E.substr(3),b=dy(E)):(b=dy(E),b===null&&(b=Be[E])),typeof b=="function"&&(a=new b)}catch(z){}a===null||a instanceof Xn?y=a:zt("Unable to construct a Model of declared class: "+x.class)}return y===null&&(y=Xn.constructGraphLinksModel()),y.gp(x),y.kv(x),y},Xn.safePropertyValue=sr,Xn.safePropertySet=Go,sl.Brush=vo,sl.ChangedEvent=Wo,sl.Geometry=cn,sl.Margin=yi,sl.Panel=tn,sl.Point=It,sl.Rect=be,sl.Size=Ee,sl.Spot=ni,sl.Transaction=jr,sl.UndoManager=Zo;function cr(a,y,x,E){xo(this),this._isFrozen=!1,a===void 0&&(a=""),y===void 0&&(y=a),x===void 0&&(x=null),this.j=-1,this.xd=null,this.xl=a,this.wl=this.to=0,this.Cr=null,this.wn=!1,this.sl=y,this.Im=x,E===void 0?(this.el=LS,this.wk=null):(this.el=lp,this.wk=E),this.st=new _e}cr.prototype.copy=function(){var a=new cr;return a.xl=this.xl,a.to=this.to,a.wl=this.wl,a.Cr=this.Cr,a.wn=this.wn,a.sl=this.sl,a.Im=this.Im,a.el=this.el,a.wk=this.wk,a},wt=cr.prototype,wt.qb=function(a){a.classType===cr&&(this.mode=a)},wt.toString=function(){return"Binding("+this.targetProperty+":"+this.sourceProperty+(this.Ai!==-1?" "+this.Ai:"")+" "+this.mode.name+")"},wt.freeze=function(){return this._isFrozen=!0,this},wt.ka=function(){return this._isFrozen=!1,this},wt.Kx=function(a){return a===void 0&&(a=null),this.mode=lp,this.backConverter=a,this},wt.cp=function(a){return a===void 0&&(a=""),this.sourceName=a,this.isToModel=!1,this},wt.dA=function(){return this.sourceName=null,this.isToModel=!0,this};function MS(a,y,x){return a=a.sourceName,a===null||a===""?y:a==="/"?x.part:a==="."?x:a===".."?x.panel:y.fb(a)}wt.Mv=function(a,y,x){var E=this.sl;if(x===void 0||E===""||E===x){x=this.xl;var b=this.Im;if(b===null&&x==="")On("Binding error: target property is the empty string: "+this.toString());else{var z=y;if(E!==""&&(z=sr(y,E)),z!==void 0)if(b===null)x!==""&&Go(a,x,z);else try{if(x!==""){var tt=b(z,a);Go(a,x,tt)}else b(z,a)}catch(ot){}}}},wt.sp=function(a,y,x,E){if(this.el===lp){var b=this.xl;if(x===void 0||b===x){x=this.sl;var z=this.wk,tt=a;if(b!==""&&(tt=sr(a,b)),tt!==void 0&&!this.st.contains(a))try{this.st.add(a);var ot=E!==null?E.diagram:null,rt=ot!==null?ot.model:null;if(z===null){if(x!=="")rt!==null?rt.setDataProperty(y,x,tt):Go(y,x,tt);else if(rt!==null&&E!==null&&0<=E.itemIndex&&E.panel!==null&&Array.isArray(E.panel.itemArray)){var at=E.itemIndex,ut=E.panel.itemArray;rt.ov(ut,at),rt.ts(ut,at,tt)}}else try{if(x!==""){var ft=z(tt,y,rt);rt!==null?rt.setDataProperty(y,x,ft):Go(y,x,ft)}else{var vt=z(tt,y,rt);if(vt!==void 0&&rt!==null&&E!==null&&0<=E.itemIndex&&E.panel!==null&&Array.isArray(E.panel.itemArray)){var xt=E.itemIndex,Pt=E.panel.itemArray;rt.ov(Pt,xt),rt.ts(Pt,xt,vt)}}}catch(Mt){}}finally{this.st.remove(a)}}}},qt.Object.defineProperties(cr.prototype,{Ai:{get:function(){return this.j},set:function(a){this._isFrozen&&Fe(this),this.j=a}},targetProperty:{get:function(){return this.xl},set:function(a){this._isFrozen&&Fe(this),this.xl=a}},sourceName:{get:function(){return this.Cr},set:function(a){this._isFrozen&&Fe(this),this.Cr=a,a!==null&&(this.wn=!1)}},isToModel:{get:function(){return this.wn},set:function(a){this._isFrozen&&Fe(this),this.wn=a}},sourceProperty:{get:function(){return this.sl},set:function(a){this._isFrozen&&Fe(this),this.sl=a}},converter:{get:function(){return this.Im},set:function(a){this._isFrozen&&Fe(this),this.Im=a}},backConverter:{get:function(){return this.wk},set:function(a){this._isFrozen&&Fe(this),this.wk=a}},mode:{get:function(){return this.el},set:function(a){this._isFrozen&&Fe(this),this.el=a}}}),cr.prototype.updateSource=cr.prototype.sp,cr.prototype.updateTarget=cr.prototype.Mv,cr.prototype.ofModel=cr.prototype.dA,cr.prototype.ofObject=cr.prototype.cp,cr.prototype.makeTwoWay=cr.prototype.Kx;var bx="Binding",LS=new De(cr,"OneWay",1),lp=new De(cr,"TwoWay",2);cr.className="Binding",cr.parseEnum=function(a,y){return function(x){return x=En(a,x),x===null?y:x}},cr.toString=Xi,cr.OneWay=LS,cr.TwoWay=lp;function Vi(a,y,x){Xn.call(this),this.Vv=`,
|
|
"insertedLinkKeys": `,this.iy=`,
|
|
"modifiedLinkData": `,this.Xv=`,
|
|
"removedLinkKeys": `,this.md=[],this.$f=new _e,this.wb=new ri,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&&(Ve(a)?this.nodeDataArray=a:x=a),x&&(Object.assign(this,x),a=x.Changed)&&(delete this.Changed,this.Pe(a))}re(Vi,Xn),Vi.constructGraphLinksModel=Xn.constructGraphLinksModel,Vi.prototype.cloneProtected=function(a){Xn.prototype.cloneProtected.call(this,a),a.Jh=this.Jh,a.cl=this.cl,a.Ak=this.Ak,a.lf=this.lf,a.mf=this.mf,a.ej=this.ej,a.fj=this.fj,a.dj=this.dj,a.je=this.je,a.jl=this.jl,a.Je=this.Je,a.Lm=this.Lm},wt=Vi.prototype,wt.clear=function(){Xn.prototype.clear.call(this),this.md=[],this.wb.clear(),this.$f.clear()},wt.toString=function(a){if(a===void 0&&(a=0),2<=a)return this.np();var y=(this.name!==""?this.name:"")+" GraphLinksModel";if(0<a){y+=`
|
|
node data:`,a=this.nodeDataArray;var x=a.length,E;for(E=0;E<x;E++){var b=a[E];y+=" "+this.wa(b)+":"+Xi(b)}for(y+=`
|
|
link data:`,a=this.linkDataArray,x=a.length,E=0;E<x;E++)b=a[E],y+=" "+Pa(this,b,!0)+"-->"+Pa(this,b,!1)}return y},wt.Qv=function(a,y){this.linkKeyProperty===""&&zt("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalData() to succeed.");var x=Xn.prototype.Qv.call(this,a,y),E=this,b=new _e,z=new _e,tt=new _e,ot=this.vh;a.changes.each(function(ut){ut.model===E&&(ut.modelChange==="linkDataArray"?ut.change===ur?b.add(ut.newValue):ut.change===Ar&&tt.add(ut.oldValue):E.Jc(ut.object)?z.add(ut.object):ut.object!==null&&(ut.object!==null&&ot&&ot.contains(ut.object)?ot.get(ut.object).each(function(ft){E.Jc(ft)&&z.add(ft)}):ut.object instanceof Xn||E.lb(ut.object)||FS(E,ut.object).each(function(ft){z.add(ft)})))});var rt=this.il;rt.clear(),b.each(function(ut){rt.add(E.Ac(ut)),y||z.add(ut)});var at=this.kl;return at.clear(),tt.each(function(ut){at.add(E.Ac(ut)),y&&z.add(ut)}),a=E.cloneDeep(z.Fa()),0<rt.count&&(x===null&&(x={}),y?x.removedLinkKeys=rt.Fa():x.insertedLinkKeys=rt.Fa()),0<a.length&&(x===null&&(x={}),x.modifiedLinkData=a),0<at.count&&(x===null&&(x={}),y?x.insertedLinkKeys=at.Fa():x.removedLinkKeys=at.Fa()),at.clear(),rt.clear(),x},wt.rm=function(){var a=Xn.prototype.rm.call(this),y="";return this.linkCategoryProperty!=="category"&&typeof this.linkCategoryProperty=="string"&&(y+=`,
|
|
"linkCategoryProperty": `+this.quote(this.linkCategoryProperty)),this.linkKeyProperty!==""&&typeof this.linkKeyProperty=="string"&&(y+=`,
|
|
"linkKeyProperty": `+this.quote(this.linkKeyProperty)),this.linkFromKeyProperty!=="from"&&typeof this.linkFromKeyProperty=="string"&&(y+=`,
|
|
"linkFromKeyProperty": `+this.quote(this.linkFromKeyProperty)),this.linkToKeyProperty!=="to"&&typeof this.linkToKeyProperty=="string"&&(y+=`,
|
|
"linkToKeyProperty": `+this.quote(this.linkToKeyProperty)),this.linkFromPortIdProperty!==""&&typeof this.linkFromPortIdProperty=="string"&&(y+=`,
|
|
"linkFromPortIdProperty": `+this.quote(this.linkFromPortIdProperty)),this.linkToPortIdProperty!==""&&typeof this.linkToPortIdProperty=="string"&&(y+=`,
|
|
"linkToPortIdProperty": `+this.quote(this.linkToPortIdProperty)),this.linkLabelKeysProperty!==""&&typeof this.linkLabelKeysProperty=="string"&&(y+=`,
|
|
"linkLabelKeysProperty": `+this.quote(this.linkLabelKeysProperty)),this.nodeIsGroupProperty!=="isGroup"&&typeof this.nodeIsGroupProperty=="string"&&(y+=`,
|
|
"nodeIsGroupProperty": `+this.quote(this.nodeIsGroupProperty)),this.nodeGroupKeyProperty!=="group"&&typeof this.nodeGroupKeyProperty=="string"&&(y+=`,
|
|
"nodeGroupKeyProperty": `+this.quote(this.nodeGroupKeyProperty)),a+y},wt.gp=function(a){Xn.prototype.gp.call(this,a),a.linkKeyProperty&&(this.linkKeyProperty=a.linkKeyProperty),a.linkFromKeyProperty&&(this.linkFromKeyProperty=a.linkFromKeyProperty),a.linkToKeyProperty&&(this.linkToKeyProperty=a.linkToKeyProperty),a.linkFromPortIdProperty&&(this.linkFromPortIdProperty=a.linkFromPortIdProperty),a.linkToPortIdProperty&&(this.linkToPortIdProperty=a.linkToPortIdProperty),a.linkCategoryProperty&&(this.linkCategoryProperty=a.linkCategoryProperty),a.linkLabelKeysProperty&&(this.linkLabelKeysProperty=a.linkLabelKeysProperty),a.nodeIsGroupProperty&&(this.nodeIsGroupProperty=a.nodeIsGroupProperty),a.nodeGroupKeyProperty&&(this.nodeGroupKeyProperty=a.nodeGroupKeyProperty)},wt.Rv=function(){var a=Xn.prototype.Rv.call(this),y=`,
|
|
"linkDataArray": `+Uh(this,this.linkDataArray,!0);return a+y},wt.kv=function(a){Xn.prototype.kv.call(this,a),a=a.linkDataArray,Array.isArray(a)&&(this.dm(a),this.linkDataArray=a)};function FS(a,y){for(var x=new _e,E=0;E<a.linkDataArray.length;E++){var b=a.linkDataArray[E];am(a,y,b,b,x)}return x}wt.Pv=function(a,y){this.linkKeyProperty===""&&zt("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalJson() to succeed.");var x=Xn.prototype.Pv.call(this,a,y),E=this,b=new _e,z=new _e,tt=new _e,ot=this.vh;a.changes.each(function(ut){ut.model===E&&(ut.modelChange==="linkDataArray"?ut.change===ur?b.add(ut.newValue):ut.change===Ar&&tt.add(ut.oldValue):E.Jc(ut.object)?z.add(ut.object):ut.object!==null&&(ut.object!==null&&ot&&ot.contains(ut.object)?ot.get(ut.object).each(function(ft){E.Jc(ft)&&z.add(ft)}):ut.object instanceof Xn||E.lb(ut.object)||FS(E,ut.object).each(function(ft){z.add(ft)})))});var rt=this.il;rt.clear(),b.each(function(ut){rt.add(E.Ac(ut)),y||z.add(ut)});var at=this.kl;return at.clear(),tt.each(function(ut){at.add(E.Ac(ut)),y&&z.add(ut)}),a=x,0<rt.count&&(a+=(y?this.Xv:this.Vv)+Uh(this,rt.Fa(),!0)),0<z.count&&(a+=this.iy+Uh(this,z.Fa(),!0)),0<at.count&&(a+=(y?this.Vv:this.Xv)+Uh(this,at.Fa(),!0)),at.clear(),rt.clear(),a},wt.fp=function(a){(a.linkCategoryProperty!==void 0&&a.linkCategoryProperty!==this.linkCategoryProperty||a.linkKeyProperty!==void 0&&a.linkKeyProperty!==this.linkKeyProperty||a.linkFromKeyProperty!==void 0&&a.linkFromKeyProperty!==this.linkFromKeyProperty||a.linkToKeyProperty!==void 0&&a.linkToKeyProperty!==this.linkToKeyProperty||a.linkFromPortIdProperty!==void 0&&a.linkFromPortIdProperty!==this.linkFromPortIdProperty||a.linkToPortIdProperty!==void 0&&a.linkToPortIdProperty!==this.linkToPortIdProperty||a.linkLabelKeysProperty!==void 0&&a.linkLabelKeysProperty!==this.linkLabelKeysProperty||a.nodeIsGroupProperty!==void 0&&a.nodeIsGroupProperty!==this.nodeIsGroupProperty||a.nodeGroupKeyProperty!==void 0&&a.nodeGroupKeyProperty!==this.nodeGroupKeyProperty)&&zt("applyIncrementalJson cannot change Model properties"),Xn.prototype.fp.call(this,a);var y=a.insertedLinkKeys;if(Array.isArray(y))for(var x=y.length,E=0;E<x;E++){var b=y[E],z=this.jh(b);z===null&&(z=this.Jo({}),this.Ks(z,b),this.fi(z))}if(y=a.modifiedLinkData,Array.isArray(y)){for(x=y.length,E=0;E<x;E++)if(b=y[E],z=this.Ac(b),z=this.jh(z),z!==null){for(var tt in b)tt!=="__gohashid"&&tt!==this.linkKeyProperty&&this.setDataProperty(z,tt,b[tt]);NS(this,b,z)}}if(a=a.removedLinkKeys,Array.isArray(a))for(tt=a.length,y=0;y<tt;y++)x=this.jh(a[y]),x!==null&&this.bm(x)},Vi.prototype.changeState=function(a,y){if(a!==null&&a.model===this){if(a.change===Uo){var x=a.object,E=a.propertyName;if(E===this.linkKeyProperty&&this.Jc(x)){var b=a.I(y);y=a.I(!y),y!==void 0&&this.wb.remove(y),b!==void 0&&this.wb.add(b,x),Go(x,E,b);return}}else if(a.change===ur){if(x=a.newParam,a.modelChange==="linkDataArray"){a=a.newValue,Te(a)&&typeof x=="number"&&(E=this.Ac(a),y?(this.$f.remove(a),this.md[x]===a&&this.md.splice(x,1),E!==void 0&&this.wb.remove(E)):(this.$f.add(a),this.md[x]!==a&&this.md.splice(x,0,a),E!==void 0&&this.wb.add(E,a)));return}if(a.modelChange==="linkLabelKeys"){E=this.Ef(a.object),Array.isArray(E)&&typeof x=="number"&&(y?(x=E.indexOf(a.newValue),0<=x&&E.splice(x,1)):0>E.indexOf(a.newValue)&&E.splice(x,0,a.newValue));return}}else if(a.change===Ar){if(x=a.oldParam,a.modelChange==="linkDataArray"){a=a.oldValue,Te(a)&&typeof x=="number"&&(E=this.Ac(a),y?(this.$f.add(a),this.md[x]!==a&&this.md.splice(x,0,a),E!==void 0&&this.wb.add(E,a)):(this.$f.remove(a),this.md[x]===a&&this.md.splice(x,1),E!==void 0&&this.wb.remove(E)));return}if(a.modelChange==="linkLabelKeys"){E=this.Ef(a.object),Array.isArray(E)&&typeof x=="number"&&(y?0>E.indexOf(a.newValue)&&E.splice(x,0,a.newValue):(x=E.indexOf(a.newValue),0<=x&&E.splice(x,1)));return}}Xn.prototype.changeState.call(this,a,y)}},wt=Vi.prototype,wt.Vl=function(a){if(a!==void 0){var y=this.Ri;if(y!==null){var x=this.hc(a);x===null&&(x=this.copyNodeData(y),Go(x,this.nodeKeyProperty,a),this.xf(x))}return a}},wt.yx=function(a){return Pa(this,a,!0)},wt.wv=function(a,y){Bg(this,a,y,!0)},wt.Bx=function(a){return Pa(this,a,!1)},wt.Bv=function(a,y){Bg(this,a,y,!1)};function Pa(a,y,x){if(y!==null&&(a=x?a.lf:a.mf,a!==""&&(a=sr(y,a),a!==void 0))){if(Wh(a))return a;zt((x?"FromKey":"ToKey")+" value for link data "+y+" is not a number or a string: "+a)}}function Bg(a,y,x,E){if(x===null&&(x=void 0),y!==null){var b=E?a.lf:a.mf;if(b!=="")if(x=a.Vl(x),a.Jc(y)){var z=sr(y,b);z!==x&&(xl(a,z,y),Go(y,b,x),a.hc(x)===null&&Sl(a,x,y),Er(a,E?"linkFromKey":"linkToKey",Uo,b,y,z,x),typeof b=="string"&&a.La(y,b))}else Go(y,b,x)}}wt.zx=function(a){return um(this,a,!0)},wt.xv=function(a,y){Ng(this,a,y,!0)},wt.Cx=function(a){return um(this,a,!1)},wt.Cv=function(a,y){Ng(this,a,y,!1)};function um(a,y,x){return y===null||(a=x?a.ej:a.fj,a==="")?"":(y=sr(y,a),y===void 0?"":y)}function Ng(a,y,x,E){if(y!==null){var b=E?a.ej:a.fj;if(b!=="")if(a.Jc(y)){var z=sr(y,b);z===void 0&&(z=""),z!==x&&(Go(y,b,x),Er(a,E?"linkFromPortId":"linkToPortId",Uo,b,y,z,x),typeof b=="string"&&a.La(y,b))}else Go(y,b,x)}}wt.Ef=function(a){if(a===null)return hm;var y=this.je;return y===""?hm:(a=sr(a,y),a===void 0?hm:a)},wt.Ls=function(a,y){if(a!==null){var x=this.je;if(x!=="")if(this.Jc(a)){var E=sr(a,x);if(E===void 0&&(E=hm),E!==y){if(Array.isArray(E))for(var b=E.length,z=0;z<b;z++)xl(this,E[z],a);for(Go(a,x,y),b=y.length,z=0;z<b;z++){var tt=y[z];this.hc(tt)===null&&Sl(this,tt,a)}Er(this,"linkLabelKeys",Uo,x,a,E,y),typeof x=="string"&&this.La(a,x)}}else Go(a,x,y)}},wt.Bu=function(a,y){if(y!=null&&a!==null){var x=this.je;if(x!==""){var E=sr(a,x);if(E===void 0)x=[],x.push(y),this.Ls(a,x);else if(Array.isArray(E)){var b=E.indexOf(y);0<=b||(b=E.length,E.push(y),this.Jc(a)&&(this.hc(y)===null&&Sl(this,y,a),Er(this,"linkLabelKeys",ur,x,a,null,y,null,b)))}else zt(x+" property is not an Array; cannot addLabelKeyForLinkData: "+a)}}},wt.Qx=function(a,y){if(y!=null&&a!==null){var x=this.je;if(x!==""){var E=sr(a,x);if(Array.isArray(E)){var b=E.indexOf(y);0>b||(E.splice(b,1),this.Jc(a)&&(xl(this,y,a),Er(this,"linkLabelKeys",Ar,x,a,y,null,b,null)))}else E!==void 0&&zt(x+" property is not an Array; cannot removeLabelKeyforLinkData: "+a)}}},wt.Ac=function(a){if(a!==null){var y=this.Jh;if(y!==""&&(y=sr(a,y),y!==void 0)){if(Wh(y))return y;zt("Key value for link data "+a+" is not a number or a string: "+y)}}},wt.Ks=function(a,y){if(a!==null){var x=this.Jh;if(x!=="")if(this.Jc(a)){var E=sr(a,x);E!==y&&this.jh(y)===null&&(Go(a,x,y),E!==void 0&&this.wb.remove(E),this.wb.add(y,a),Er(this,"linkKey",Uo,x,a,E,y),typeof x=="string"&&this.La(a,x))}else Go(a,x,y)}},wt.jh=function(a){return a===null&&zt("GraphLinksModel.findLinkDataForKey:key must not be null"),a!==void 0&&Wh(a)?this.wb.I(a):null},wt.Bs=function(a){if(a!==null){var y=this.Jh;if(y!==""){var x=this.Ac(a);if(x===void 0||this.wb.contains(x)){var E=this.cl;if(E!==null&&(x=E(this,a),x!=null&&!this.wb.contains(x))){Go(a,y,x);return}if(typeof x=="string"){for(E=2;this.wb.contains(x+E);)E++;Go(a,y,x+E)}else if(x===void 0||typeof x=="number"){for(x=-this.wb.count-1;this.wb.contains(x);)x--;Go(a,y,x)}}}}},wt.Jc=function(a){return a===null?!1:this.$f.contains(a)},wt.fi=function(a){a!==null&&(Co(a),this.Jc(a)||kS(this,a,!0))};function kS(a,y,x){if(a.linkKeyProperty!==""){var E=a.Ac(y);if(E!==void 0&&a.wb.I(E)===y)return;a.Bs(y),E=a.Ac(y),E===void 0&&zt("GraphLinksModel.makeLinkDataKeyUnique failed on "+y+". Data not added to model."),a.wb.add(E,y)}a.$f.add(y),E=null,x&&(E=a.md.length,a.md.splice(E,0,y)),Er(a,"linkDataArray",ur,"linkDataArray",a,null,y,null,E),cy(a,y)}wt.Ey=function(a){if(Array.isArray(a))for(var y=a.length,x=0;x<y;x++)this.fi(a[x]);else for(a=a.iterator;a.next();)this.fi(a.value)},wt.bm=function(a){a!==null&&BS(this,a,!0)};function BS(a,y,x){a.$f.remove(y);var E=a.Ac(y);if(E!==void 0&&a.wb.remove(E),E=null,x){if(E=a.md.indexOf(y),0>E)return;a.md.splice(E,1)}if(Er(a,"linkDataArray",Ar,"linkDataArray",a,y,null,E,null),x=Pa(a,y,!0),xl(a,x,y),x=Pa(a,y,!1),xl(a,x,y),E=a.Ef(y),Array.isArray(E))for(var b=E.length,z=0;z<b;z++)x=E[z],xl(a,x,y)}wt.lA=function(a){if(Array.isArray(a))for(var y=a.length,x=0;x<y;x++)this.bm(a[x]);else for(a=a.iterator;a.next();)this.bm(a.value)},wt.Zz=function(a){if(this.linkKeyProperty===""&&zt("GraphLinksModel.linkKeyProperty must not be an empty string for .mergeLinkDataArray() to succeed."),a!==this.linkDataArray&&Ve(a)){var y=this.kl;y.clear(),y.addAll(this.wb.iteratorKeys);var x=this.il;x.clear();for(var E=a.length,b=0;b<E;b++){var z=a[b],tt=this.Ac(z);if(tt!==void 0){x.add(tt);var ot=this.jh(tt);ot!==z&&(ot!==null?(this.Do(ot,z),NS(this,z,ot)):(z=this.cloneDeep(z),this.Ks(z,tt),this.fi(z)))}else tt=this.cloneDeep(z),this.fi(tt),x.add(this.Ac(tt))}for(a=y.iterator;a.next();)E=a.value,x.contains(E)||(E=this.jh(E))&&this.bm(E);y.clear(),x.clear()}};function cy(a,y){var x=Pa(a,y,!0);x=a.Vl(x),a.hc(x)===null&&Sl(a,x,y),x=Pa(a,y,!1),x=a.Vl(x),a.hc(x)===null&&Sl(a,x,y);var E=a.Ef(y);if(Array.isArray(E))for(var b=E.length,z=0;z<b;z++)x=E[z],a.hc(x)===null&&Sl(a,x,y)}wt.Jo=function(a){if(a===null)return null;var y=this.Ak;return a=y!==null?y(a,this):lm(this,a,!0),Te(a)&&(xo(a),this.lf!==""&&Go(a,this.lf,void 0),this.mf!==""&&Go(a,this.mf,void 0),this.je!==""&&Go(a,this.je,[])),a},wt.Yu=function(a){if(a===null)return!1;var y=this.jl;return y===""?!1:!!sr(a,y)},wt.lh=function(a){if(a!==null){var y=this.Je;if(y!==""&&(y=sr(a,y),y!==void 0)){if(Wh(y))return y;zt("GroupKey value for node data "+a+" is not a number or a string: "+y)}}},wt.mp=function(a,y){if(y===null&&(y=void 0),a!==null){var x=this.Je;if(x!=="")if(this.lb(a)){var E=sr(a,x);E!==y&&(xl(this,E,a),Go(a,x,y),this.hc(y)===null&&Sl(this,y,a),Er(this,"nodeGroupKey",Uo,x,a,E,y),typeof x=="string"&&this.La(a,x))}else Go(a,x,y)}},Vi.prototype.copyNodeData=function(a){return a===null?null:(a=Xn.prototype.copyNodeData.call(this,a),this.Ij||this.Je===""||sr(a,this.Je)===void 0||Go(a,this.Je,void 0),a)},Vi.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){Bg(this,a,x,!0);return}if(y===this.linkToKeyProperty){Bg(this,a,x,!1);return}if(y===this.linkFromPortIdProperty){Ng(this,a,x,!0);return}if(y===this.linkToPortIdProperty){Ng(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 E=sr(a,y);E!==x&&(Go(a,y,x),this.Fs(a,y,E,x))},wt=Vi.prototype,wt.Do=function(a,y){if(y){var x=this.lb(a),E=this.Jc(a),b;for(b in y)b==="__gohashid"||x&&b===this.nodeKeyProperty||x&&b===this.nodeIsGroupProperty&&sr(a,b)===y[b]||E&&b===this.linkKeyProperty||this.setDataProperty(a,b,y[b])}},wt.jp=function(a,y){Xn.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 E=x.value,b=a,z=y;if(Pa(this,E,!0)===b){var tt=this.lf;Go(E,tt,z),Er(this,"linkFromKey",Uo,tt,E,b,z),typeof tt=="string"&&this.La(E,tt)}if(Pa(this,E,!1)===b&&(tt=this.mf,Go(E,tt,z),Er(this,"linkToKey",Uo,tt,E,b,z),typeof tt=="string"&&this.La(E,tt)),tt=this.Ef(E),Array.isArray(tt))for(var ot=tt.length,rt=this.je,at=0;at<ot;at++)tt[at]===b&&(tt[at]=z,Er(this,"linkLabelKeys",ur,rt,E,b,z,at,at))}},wt.qv=function(a,y,x){if(this.lh(a)===y){var E=this.Je;Go(a,E,x),Er(this,"nodeGroupKey",Uo,E,a,y,x),typeof E=="string"&&this.La(a,E)}},wt.Lv=function(){Xn.prototype.Lv.call(this);for(var a=this.linkDataArray,y=a.length,x=0;x<y;x++)cy(this,a[x])},wt.fm=function(a){Xn.prototype.fm.call(this,a),a=this.wa(a);var y=sp(this,a);if(y!==null){var x=Rn();for(y=y.iterator;y.next();){var E=y.value;if(this.lb(E)){if(this.lh(E)===a){var b=this.Je;Er(this,"nodeGroupKey",Uo,b,E,a,a),typeof b=="string"&&this.La(E,b),x.push(E)}}else if(Pa(this,E,!0)===a&&(b=this.lf,Er(this,"linkFromKey",Uo,b,E,a,a),typeof b=="string"&&this.La(E,b),x.push(E)),Pa(this,E,!1)===a&&(b=this.mf,Er(this,"linkToKey",Uo,b,E,a,a),typeof b=="string"&&this.La(E,b),x.push(E)),b=this.Ef(E),Array.isArray(b))for(var z=b.length,tt=this.je,ot=0;ot<z;ot++)b[ot]===a&&(Er(this,"linkLabelKeys",ur,tt,E,a,a,ot,ot),x.push(E))}for(y=0;y<x.length;y++)xl(this,a,x[y]);qn(x)}},wt.em=function(a){Xn.prototype.em.call(this,a);var y=this.lh(a);this.hc(y)===null&&Sl(this,y,a)},wt.qp=function(a){Xn.prototype.qp.call(this,a);var y=this.lh(a);xl(this,y,a)},wt.ps=function(a){if(a===null)return"";var y=this.dj;if(y===""||(y=sr(a,y),y===void 0))return"";if(typeof y=="string")return y;zt("getCategoryForLinkData found a non-string category for "+a+": "+y)},Vi.prototype.getLinkCategoryForData=function(a){return this.ps(a)},Vi.prototype.lp=function(a,y){if(a!==null){var x=this.dj;if(x!=="")if(this.Jc(a)){var E=sr(a,x);E===void 0&&(E=""),E!==y&&(Go(a,x,y),Er(this,"linkCategory",Uo,x,a,E,y),typeof x=="string"&&this.La(a,x))}else Go(a,x,y)}},Vi.prototype.setLinkCategoryForData=function(a,y){this.lp(a,y)},wt=Vi.prototype,wt.lm=function(a,y){Xn.prototype.lm.call(this,a,y),this.mp(y,this.lh(a))};function NS(a,y,x){a.lp(x,a.ps(y)),a.wv(x,a.yx(y)),a.Bv(x,a.Bx(y)),a.Ls(x,a.Ef(y)),a.xv(x,a.zx(y)),a.Cv(x,a.Cx(y))}wt.Wj=function(){return!0},wt.ri=function(){return!0},wt.xs=function(){return!0},wt.Xj=function(){return!0},qt.Object.defineProperties(Vi.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,E=0;E<x;E++){var b=a[E];Te(b)||zt("GraphLinksModel.linkDataArray must only contain Objects, not: "+b),Co(b)}if(this.md=a,this.linkKeyProperty!==""){for(E=new $e,b=0;b<x;b++){var z=a[b],tt=this.Ac(z);tt===void 0||this.wb.I(tt)!==null?E.add(z):this.wb.add(tt,z)}for(E=E.iterator;E.next();)b=E.value,this.Bs(b),z=this.Ac(b),z!==void 0&&this.wb.add(z,b)}for(E=new _e,b=0;b<x;b++)E.add(a[b]);for(this.$f=E,Er(this,"linkDataArray",Uo,"linkDataArray",this,y,a),y=0;y<x;y++)cy(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,E=0;E<x;E++){var b=this.linkDataArray[E],z=this.Ac(b);z===void 0&&(this.Bs(b),z=this.Ac(b)),z!==void 0&&this.wb.add(z,b)}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"}}}),Vi.prototype.setCategoryForLinkData=Vi.prototype.lp,Vi.prototype.getCategoryForLinkData=Vi.prototype.ps,Vi.prototype.assignAllDataProperties=Vi.prototype.Do,Vi.prototype.setGroupKeyForNodeData=Vi.prototype.mp,Vi.prototype.getGroupKeyForNodeData=Vi.prototype.lh,Vi.prototype.isGroupForNodeData=Vi.prototype.Yu,Vi.prototype.copyLinkData=Vi.prototype.Jo,Vi.prototype.mergeLinkDataArray=Vi.prototype.Zz,Vi.prototype.removeLinkDataCollection=Vi.prototype.lA,Vi.prototype.removeLinkData=Vi.prototype.bm,Vi.prototype.addLinkDataCollection=Vi.prototype.Ey,Vi.prototype.addLinkData=Vi.prototype.fi,Vi.prototype.containsLinkData=Vi.prototype.Jc,Vi.prototype.makeLinkDataKeyUnique=Vi.prototype.Bs,Vi.prototype.findLinkDataForKey=Vi.prototype.jh,Vi.prototype.setKeyForLinkData=Vi.prototype.Ks,Vi.prototype.getKeyForLinkData=Vi.prototype.Ac,Vi.prototype.removeLabelKeyForLinkData=Vi.prototype.Qx,Vi.prototype.addLabelKeyForLinkData=Vi.prototype.Bu,Vi.prototype.setLabelKeysForLinkData=Vi.prototype.Ls,Vi.prototype.getLabelKeysForLinkData=Vi.prototype.Ef,Vi.prototype.setToPortIdForLinkData=Vi.prototype.Cv,Vi.prototype.getToPortIdForLinkData=Vi.prototype.Cx,Vi.prototype.setFromPortIdForLinkData=Vi.prototype.xv,Vi.prototype.getFromPortIdForLinkData=Vi.prototype.zx,Vi.prototype.setToKeyForLinkData=Vi.prototype.Bv,Vi.prototype.getToKeyForLinkData=Vi.prototype.Bx,Vi.prototype.setFromKeyForLinkData=Vi.prototype.wv,Vi.prototype.getFromKeyForLinkData=Vi.prototype.yx,Vi.prototype.clear=Vi.prototype.clear;var hm=Object.freeze([]);Vi.className="GraphLinksModel",sl.GraphLinksModel=Vi,Xn.constructGraphLinksModel=Xn.constructGraphLinksModel=function(){return new Vi},Xn.initDiagramModel=hy=function(){return new Vi};function Ds(a,y){Xn.call(this),this.Ke="parent",this.Nm=!1,this.nj="parentLinkCategory",a!==void 0&&(Ve(a)?this.nodeDataArray=a:y=a),y&&(Object.assign(this,y),a=y.Changed)&&(delete this.Changed,this.Pe(a))}re(Ds,Xn),Ds.constructGraphLinksModel=Xn.constructGraphLinksModel,Ds.prototype.cloneProtected=function(a){Xn.prototype.cloneProtected.call(this,a),a.Ke=this.Ke,a.Nm=this.Nm,a.nj=this.nj},wt=Ds.prototype,wt.toString=function(a){if(a===void 0&&(a=0),2<=a)return this.np();var y=(this.name!==""?this.name:"")+" TreeModel";if(0<a){y+=`
|
|
node data:`,a=this.nodeDataArray;for(var x=a.length,E=0;E<x;E++){var b=a[E];y+=" "+this.wa(b)+":"+Xi(b)}}return y},wt.rm=function(){var a=Xn.prototype.rm.call(this),y="";return this.nodeParentKeyProperty!=="parent"&&typeof this.nodeParentKeyProperty=="string"&&(y+=`,
|
|
"nodeParentKeyProperty": `+this.quote(this.nodeParentKeyProperty)),a+y},wt.gp=function(a){Xn.prototype.gp.call(this,a),a.nodeParentKeyProperty&&(this.nodeParentKeyProperty=a.nodeParentKeyProperty)},wt.fp=function(a){a.nodeParentKeyProperty!==void 0&&a.nodeParentKeyProperty!==this.nodeParentKeyProperty&&zt("applyIncrementalJson cannot change Model properties"),Xn.prototype.fp.call(this,a)},wt.Vl=function(a){return a},wt.mh=function(a){if(a!==null){var y=this.Ke;if(y!==""&&(y=sr(a,y),y!==void 0)){if(Wh(y))return y;zt("ParentKey value for node data "+a+" is not a number or a string: "+y)}}},wt.qe=function(a,y){if(y===null&&(y=void 0),a!==null){var x=this.Ke;if(x!=="")if(y=this.Vl(y),this.lb(a)){var E=sr(a,x);E!==y&&(xl(this,E,a),Go(a,x,y),this.hc(y)===null&&Sl(this,y,a),Er(this,"nodeParentKey",Uo,x,a,E,y),typeof x=="string"&&this.La(a,x))}else Go(a,x,y)}},wt.ss=function(a){if(a===null)return"";var y=this.nj;return y===""||(y=sr(a,y),y===void 0)?"":typeof y=="string"?y:(zt("getParentLinkCategoryForNodeData found a non-string category for "+a+": "+y),"")},Ds.prototype.getLinkCategoryForData=function(a){return this.ss(a)},Ds.prototype.Ms=function(a,y){if(a!==null){var x=this.nj;if(x!=="")if(this.lb(a)){var E=sr(a,x);E===void 0&&(E=""),E!==y&&(Go(a,x,y),Er(this,"parentLinkCategory",Uo,x,a,E,y),typeof x=="string"&&this.La(a,x))}else Go(a,x,y)}},Ds.prototype.setLinkCategoryForData=function(a,y){this.Ms(a,y)},Ds.prototype.copyNodeData=function(a){return a===null?null:(a=Xn.prototype.copyNodeData.call(this,a),this.Jj||this.Ke===""||sr(a,this.Ke)===void 0||Go(a,this.Ke,void 0),a)},Ds.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 E=sr(a,y);E!==x&&(Go(a,y,x),this.Fs(a,y,E,x))},wt=Ds.prototype,wt.jp=function(a,y){Xn.prototype.jp.call(this,a,y);for(var x=this.kb.iterator;x.next();)this.qv(x.value,a,y)},wt.qv=function(a,y,x){if(this.mh(a)===y){var E=this.Ke;Go(a,E,x),Er(this,"nodeParentKey",Uo,E,a,y,x),typeof E=="string"&&this.La(a,E)}},wt.fm=function(a){Xn.prototype.fm.call(this,a),a=this.wa(a);var y=sp(this,a);if(y!==null){var x=Rn();for(y=y.iterator;y.next();){var E=y.value;if(this.lb(E)&&this.mh(E)===a){var b=this.Ke;Er(this,"nodeParentKey",Uo,b,E,a,a),typeof b=="string"&&this.La(E,b),x.push(E)}}for(y=0;y<x.length;y++)xl(this,a,x[y]);qn(x)}},wt.em=function(a){Xn.prototype.em.call(this,a);var y=this.mh(a);y=this.Vl(y),this.hc(y)===null&&Sl(this,y,a)},wt.qp=function(a){Xn.prototype.qp.call(this,a);var y=this.mh(a);xl(this,y,a)},wt.lm=function(a,y){Xn.prototype.lm.call(this,a,y),this.Ms(y,this.ss(a)),this.qe(y,this.mh(a))},wt.Tl=function(){return!0},wt.xs=function(){return!0},qt.Object.defineProperties(Ds.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"}}}),Ds.prototype.setParentLinkCategoryForNodeData=Ds.prototype.Ms,Ds.prototype.getParentLinkCategoryForNodeData=Ds.prototype.ss,Ds.prototype.setParentKeyForNodeData=Ds.prototype.qe,Ds.prototype.getParentKeyForNodeData=Ds.prototype.mh,Ds.className="TreeModel",sl.TreeModel=Ds;function Qo(a){Ho.call(this),this.lw=this.Zm=this.lc=0,this.Wp=360,this.kw=al,this.Ti=0,this.Zv=new It,this.Jp=this.me=0,this.Xr=new cp,this.gt=this.mj=0,this.ty=600,this.eo=NaN,this.Cm=1,this.ro=0,this.ul=360,this.Rb=al,this.K=Ts,this.nd=Dg,this.hd=oy,this.tf=6,this.Nn=vm,a&&Object.assign(this,a)}re(Qo,Ho),Qo.prototype.cloneProtected=function(a){Ho.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},Qo.prototype.qb=function(a){a.classType===Qo?a===pm||a===mm||a===gm||a===fm||a===Dg?this.sorting=a:a===Td||a===bg||a===Ts||a===Zh?this.direction=a:a===rh||a===Yh||a===al||a===ll?this.arrangement=a:(a===wc||a===vm)&&(this.nodeDiameterFormula=a):Ho.prototype.qb.call(this,a)},Qo.prototype.createNetwork=function(){return new Tg(this)},Qo.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 $e;y.addAll(a.iterator),a=new $e;var x=new $e,E=this.sort(y),b,z,tt=this.Jp,ot=this.arrangement,rt=this.nodeDiameterFormula,at=this.radius;(!isFinite(at)||0>=at)&&(at=NaN);var ut=this.aspectRatio;(!isFinite(ut)||0>=ut)&&(ut=1);var ft=this.startAngle;isFinite(ft)||(ft=0);var vt=this.sweepAngle;if((!isFinite(vt)||360<vt||1>vt)&&(vt=360),y=this.spacing,isFinite(y)||(y=NaN),ot===ll&&rt===wc?ot=al:ot===ll&&rt!==wc&&(ot=this.arrangement),(this.direction===Td||this.direction===bg)&&this.sorting!==Dg){for(rt=0;!(rt>=E.length)&&(a.add(E.M(rt)),!(rt+1>=E.length));rt+=2)x.add(E.M(rt+1));this.direction===Td?(this.arrangement===ll&&a.reverse(),E=new $e,E.addAll(a),E.addAll(x)):(this.arrangement===ll&&x.reverse(),E=new $e,E.addAll(x),E.addAll(a))}rt=E.length;for(var xt=z=b=0;xt<E.length;xt++){var Pt=ft+vt*z*(this.direction===Ts?1:-1)/rt,Mt=E.M(xt).diameter;isNaN(Mt)&&(Mt=Kh(E.M(xt),Pt)),360>vt&&(xt===0||xt===E.length-1)&&(Mt/=2),b+=Mt,z++}if(isNaN(at)||ot===ll){if(isNaN(y)&&(y=6),ot!==al&&ot!==ll){for(z=-1/0,tt=0;tt<rt;tt++)xt=E.M(tt),b=E.M(tt===rt-1?0:tt+1),isNaN(xt.diameter)&&Kh(xt,0),isNaN(b.diameter)&&Kh(b,0),z=Math.max(z,(xt.diameter+b.diameter)/2);tt=z+y,ot===rh?at=(z+y)/(2*Math.PI/rt):at=dm(this,tt*(360<=vt?rt:rt-1),ut,ft*Math.PI/180,vt*Math.PI/180)}else at=dm(this,b+(360<=vt?rt:rt-1)*(ot!==ll?y:1.6*y),ut,ft*Math.PI/180,vt*Math.PI/180);z=at*ut}else if(z=at*ut,xt=gy(this,at,z,ft*Math.PI/180,vt*Math.PI/180),isNaN(y))(ot===al||ot===ll)&&(y=(xt-b)/(360<=vt?rt:rt-1));else if(ot===al||ot===ll)xt=(xt-b)/(360<=vt?rt:rt-1),xt<y?(at=dm(this,b+y*(360<=vt?rt:rt-1),ut,ft*Math.PI/180,vt*Math.PI/180),z=at*ut):y=xt;else{for(tt=-1/0,b=0;b<rt;b++)Pt=E.M(b),Mt=E.M(b===rt-1?0:b+1),isNaN(Pt.diameter)&&Kh(Pt,0),isNaN(Mt.diameter)&&Kh(Mt,0),tt=Math.max(tt,(Pt.diameter+Mt.diameter)/2);tt+=y,b=dm(this,tt*(360<=vt?rt:rt-1),ut,ft*Math.PI/180,vt*Math.PI/180),b>at?(at=b,z=at*ut):tt=xt/(360<=vt?rt:rt-1)}if(this.kw=ot,this.lc=at,this.Zm=ut,this.lw=ft,this.Wp=vt,this.Ti=y,this.me=z,this.Jp=tt,y=E,E=this.kw,ot=this.lc,at=this.lw,ut=this.Wp,ft=this.Ti,vt=this.me,rt=this.Jp,this.direction!==Td&&this.direction!==bg||E!==ll)if(this.direction===Td||this.direction===bg){switch(tt=0,E){case Yh:tt=180*cm(this,ot,vt,at,rt)/Math.PI;break;case al:rt=y=0,tt=a.first(),tt!==null&&(y=Kh(tt,Math.PI/2)),tt=x.first(),tt!==null&&(rt=Kh(tt,Math.PI/2)),tt=180*cm(this,ot,vt,at,ft+(y+rt)/2)/Math.PI;break;case rh:tt=ut/y.length}if(this.direction===Td){switch(E){case Yh:dp(this,a,at,Zh);break;case al:hp(this,a,at,Zh);break;case rh:up(this,a,ut/2,at,Zh)}switch(E){case Yh:dp(this,x,at+tt,Ts);break;case al:hp(this,x,at+tt,Ts);break;case rh:up(this,x,ut/2,at+tt,Ts)}}else{switch(E){case Yh:dp(this,x,at,Zh);break;case al:hp(this,x,at,Zh);break;case rh:up(this,x,ut/2,at,Zh)}switch(E){case Yh:dp(this,a,at+tt,Ts);break;case al:hp(this,a,at+tt,Ts);break;case rh:up(this,a,ut/2,at+tt,Ts)}}}else switch(E){case Yh:dp(this,y,at,this.direction);break;case al:hp(this,y,at,this.direction);break;case rh:up(this,y,ut,at,this.direction);break;case ll:bS(this,y,ut,at,this.direction)}else bS(this,y,ut,at-ut/2,Ts)}this.updateParts(),this.network=null,this.isValidLayout=!0};function up(a,y,x,E,b){var z=a.Wp,tt=a.lc;a=a.me,E=E*Math.PI/180,x=x*Math.PI/180;for(var ot=y.length,rt=0;rt<ot;rt++){var at=E+(b===Ts?rt*x/(360<=z?ot:ot-1):-(rt*x)/ot),ut=y.M(rt),ft=tt*Math.tan(at)/a;ft=Math.sqrt((tt*tt+a*a*ft*ft)/(1+ft*ft)),ut.centerX=ft*Math.cos(at),ut.centerY=ft*Math.sin(at),ut.actualAngle=180*at/Math.PI}}function hp(a,y,x,E){var b=a.lc,z=a.me,tt=a.Ti;x=x*Math.PI/180;for(var ot=y.length,rt=0;rt<ot;rt++){var at=y.M(rt),ut=y.M(rt===ot-1?0:rt+1),ft=z*Math.sin(x);at.centerX=b*Math.cos(x),at.centerY=ft,at.actualAngle=180*x/Math.PI,isNaN(at.diameter)&&Kh(at,0),isNaN(ut.diameter)&&Kh(ut,0),at=cm(a,b,z,E===Ts?x:-x,(at.diameter+ut.diameter)/2+tt),x+=E===Ts?at:-at}}function dp(a,y,x,E){var b=a.lc,z=a.me,tt=a.Jp;x=x*Math.PI/180;for(var ot=y.length,rt=0;rt<ot;rt++){var at=y.M(rt);at.centerX=b*Math.cos(x),at.centerY=z*Math.sin(x),at.actualAngle=180*x/Math.PI,at=cm(a,b,z,E===Ts?x:-x,tt),x+=E===Ts?at:-at}}function bS(a,y,x,E,b){var z=a.Wp;if(a.mj=0,a.Xr=new cp,360>x){for(z=E+(b===Ts?z:-z);0>z;)z+=360;z%=360,180<z&&(z-=360),z*=Math.PI/180,a.gt=z,TS(a,y,x,E,b)}else DS(a,y,x,E,b);a.Xr.commit(y)}function DS(a,y,x,E,b){var z=a.lc,tt=a.Ti,ot=a.Zm,rt=z*Math.cos(E*Math.PI/180),at=a.me*Math.sin(E*Math.PI/180),ut=y.Fa();if(ut.length===3)ut[0].centerX=z,ut[0].centerY=0,ut[1].centerX=ut[0].centerX-ut[0].width/2-ut[1].width/2-tt,ut[1].y=ut[0].y,ut[2].centerX=(ut[0].centerX+ut[1].centerX)/2,ut[2].y=ut[0].y-ut[2].height-tt;else if(ut.length===4)ut[0].centerX=z,ut[0].centerY=0,ut[2].centerX=-ut[0].centerX,ut[2].centerY=ut[0].centerY,ut[1].centerX=0,ut[1].y=Math.min(ut[0].y,ut[2].y)-ut[1].height-tt,ut[3].centerX=0,ut[3].y=Math.max(ut[0].y+ut[0].height+tt,ut[2].y+ut[2].height+tt);else{z=It.alloc();for(var ft=0;ft<ut.length&&(ut[ft].centerX=rt,ut[ft].centerY=at,!(ft>=ut.length-1));ft++)IS(a,rt,at,ut,ft,b,z)||OS(a,rt,at,ut,ft,b,z),rt=z.x,at=z.y;if(It.free(z),a.mj++,!(23<a.mj)){rt=ut[0].centerX,at=ut[0].centerY,z=ut[ut.length-1].centerX,ft=ut[ut.length-1].centerY;var vt=Math.abs(rt-z)-((ut[0].width+ut[ut.length-1].width)/2+tt),xt=Math.abs(at-ft)-((ut[0].height+ut[ut.length-1].height)/2+tt);tt=0,1>Math.abs(xt)?Math.abs(rt-z)<(ut[0].width+ut[ut.length-1].width)/2&&(tt=0):tt=0<xt?xt:1>Math.abs(vt)?0:vt,rt=Math.abs(z)>Math.abs(ft)?0<z!=at>ft:0<ft!=rt<z,(rt=b===Ts?rt:!rt)&&(tt=-Math.abs(tt),tt=Math.min(tt,-ut[ut.length-1].width),tt=Math.min(tt,-ut[ut.length-1].height)),a.Xr.compare(tt,ut),1<Math.abs(tt)&&(a.lc=8>a.mj?a.lc-tt/(2*Math.PI):5>ut.length&&10<tt?a.lc/2:a.lc-(0<tt?1.7:-2.3),a.me=a.lc*ot,DS(a,y,x,E,b))}}}function TS(a,y,x,E,b){for(var z=a.lc,tt=a.me,ot=a.Zm,rt=z*Math.cos(E*Math.PI/180),at=tt*Math.sin(E*Math.PI/180),ut=It.alloc(),ft=y.Fa(),vt=0;vt<ft.length&&(ft[vt].centerX=rt,ft[vt].centerY=at,!(vt>=ft.length-1));vt++)IS(a,rt,at,ft,vt,b,ut)||OS(a,rt,at,ft,vt,b,ut),rt=ut.x,at=ut.y;if(It.free(ut),a.mj++,!(23<a.mj)){if(rt=Math.atan2(at,rt),rt=b===Ts?a.gt-rt:rt-a.gt,rt=Math.abs(rt)<Math.abs(rt-2*Math.PI)?rt:rt-2*Math.PI,z=rt*(z+tt)/2,tt=a.Xr,Math.abs(z)<Math.abs(tt.Pl))for(tt.Pl=z,tt.mk=[],tt.tm=[],rt=0;rt<ft.length;rt++)tt.mk[rt]=ft[rt].bounds.x,tt.tm[rt]=ft[rt].bounds.y;1<Math.abs(z)&&(a.lc=8>a.mj?a.lc-z/(2*Math.PI):a.lc-(0<z?1.7:-2.3),a.me=a.lc*ot,TS(a,y,x,E,b))}}function IS(a,y,x,E,b,z,tt){var ot=a.lc,rt=a.me,at=0;a=(E[b].width+E[b+1].width)/2+a.Ti;var ut=!1;if(0<=x!=(z===Ts)){if(z=y+a,z>ot){if(z=y-a,z<-ot)return tt.x=z,tt.y=at,!1;ut=!0}}else if(z=y-a,z<-ot){if(z=y+a,z>ot)return tt.x=z,tt.y=at,!1;ut=!0}return at=Math.sqrt(1-Math.min(1,z*z/(ot*ot)))*rt,0>x!==ut&&(at=-at),Math.abs(x-at)>(E[b].height+E[b+1].height)/2?(tt.x=z,tt.y=at,!1):(tt.x=z,tt.y=at,!0)}function OS(a,y,x,E,b,z,tt){var ot=a.lc,rt=a.me,at=0;if(a=(E[b].height+E[b+1].height)/2+a.Ti,E=!1,0<=y!=(z===Ts)){if(z=x-a,z<-rt){if(z=x+a,z>rt){tt.x=at,tt.y=z;return}E=!0}}else if(z=x+a,z>rt){if(z=x-a,z<-rt){tt.x=at,tt.y=z;return}E=!0}at=Math.sqrt(1-Math.min(1,z*z/(rt*rt)))*ot,0>y!==E&&(at=-at),tt.x=at,tt.y=z}Qo.prototype.commitLayout=function(){this.commitNodes(),this.isRouting&&this.commitLinks()},Qo.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 It(0,0):(x.x=this.arrangementOrigin.x+this.lc,x.y=this.arrangementOrigin.y+this.me);for(var E=this.network.vertexes.iterator;E.next();){var b=E.value;b.x+=x.x,b.y+=x.y,b.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))},Qo.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()};function gy(a,y,x,E,b){var z=a.ty;if(.001>Math.abs(a.Zm-1))return E!==void 0&&b!==void 0?b*y:2*Math.PI*y;a=y>x?Math.sqrt(y*y-x*x)/y:Math.sqrt(x*x-y*y)/x;for(var tt=0,ot=E!==void 0&&b!==void 0?b/(z+1):Math.PI/(2*(z+1)),rt=0,at=0;at<=z;at++){E!==void 0&&b!==void 0?rt=E+at*b/z:rt=at*Math.PI/(2*z);var ut=Math.sin(rt);tt+=Math.sqrt(1-a*a*ut*ut)*ot}return E!==void 0&&b!==void 0?(y>x?y:x)*tt:4*(y>x?y:x)*tt}function dm(a,y,x,E,b){return y/(E!==void 0&&b!==void 0?gy(a,1,x,E,b):gy(a,1,x))}function cm(a,y,x,E,b){if(.001>Math.abs(a.Zm-1))return b/y;var z=y>x?Math.sqrt(y*y-x*x)/y:Math.sqrt(x*x-y*y)/x,tt=0;a=2*Math.PI/(700*a.network.vertexes.count),y>x&&(E+=Math.PI/2);for(var ot=0;;ot++){var rt=Math.sin(E+ot*a);if(tt+=(y>x?y:x)*Math.sqrt(1-z*z*rt*rt)*a,tt>=b)return ot*a}}Qo.prototype.sort=function(a){switch(this.sorting){case gm:break;case fm:a.reverse();break;case pm:a.sort(this.comparer);break;case mm:a.sort(this.comparer),a.reverse();break;case Dg:return this.ak(Dx(a));default:zt("Invalid sorting type.")}return a};function Dx(a){for(var y=[],x=0;x<a.length;x++)y.push(0);x=new $e;for(var E=0;E<a.length;E++){var b=-1,z=-1;if(E===0)for(var tt=0;tt<a.length;tt++){var ot=a.M(tt).edgesCount;ot>b&&(b=ot,z=tt)}else for(tt=0;tt<a.length;tt++)ot=y[tt],ot>b&&(b=ot,z=tt);for(x.add(a.M(z)),y[z]=-1,z=a.M(z),tt=z.sourceEdges;tt.next();)b=a.indexOf(tt.value.fromVertex),0>b||0<=y[b]&&y[b]++;for(z=z.destinationEdges;z.next();)b=a.indexOf(z.value.toVertex),0>b||0<=y[b]&&y[b]++}return x}Qo.prototype.ak=function(a){for(var y=[],x=0;x<a.length;x++){var E=a.M(x);y[x]=[];for(var b,z=E.destinationEdges;z.next();)b=a.indexOf(z.value.toVertex),b!==x&&0>y[x].indexOf(b)&&y[x].push(b);for(E=E.sourceEdges;E.next();)b=a.indexOf(E.value.fromVertex),b!==x&&0>y[x].indexOf(b)&&y[x].push(b)}for(z=[],x=0;x<y.length;x++)z[x]=0;x=[];var tt=[],ot=[];E=[],b=new $e;for(var rt=0,at=0;at<y.length;at++){var ut=y[at].length;if(ut===1)E.push(at);else if(ut===0)b.add(a.M(at));else{if(rt===0)x.push(at);else{for(var ft=ut=1/0,vt=-1,xt=[],Pt=0;Pt<x.length;Pt++)0>y[x[Pt]].indexOf(x[Pt===x.length-1?0:Pt+1])&&xt.push(Pt===x.length-1?0:Pt+1);if(xt.length===0)for(Pt=0;Pt<x.length;Pt++)xt.push(Pt);for(Pt=0;Pt<xt.length;Pt++){for(var Mt=xt[Pt],jt=y[at],Tt=0,Vt=0;Vt<tt.length;Vt++){var Yt=z[tt[Vt]],Kt=z[ot[Vt]];if(Yt<Kt){var te=Yt;Yt=Kt}else te=Kt;if(te<Mt&&Mt<=Yt)for(Kt=0;Kt<jt.length;Kt++){var me=jt[Kt];0>x.indexOf(me)||te<z[me]&&z[me]<Yt||te===z[me]||Yt===z[me]||Tt++}else for(Kt=0;Kt<jt.length;Kt++)me=jt[Kt],0>x.indexOf(me)||te<z[me]&&z[me]<Yt&&te!==z[me]&&Yt!==z[me]&&Tt++}for(jt=Tt,Vt=Tt=0;Vt<y[at].length;Vt++)te=x.indexOf(y[at][Vt]),0<=te&&(te=Math.abs(Mt-(te>=Mt?te+1:te)),Tt+=te<x.length+1-te?te:x.length+1-te);for(Vt=0;Vt<tt.length;Vt++)te=z[tt[Vt]],Yt=z[ot[Vt]],te>=Mt&&te++,Yt>=Mt&&Yt++,te>Yt&&(Kt=Yt,Yt=te,te=Kt),Yt-te<(x.length+2)/2==(te<Mt&&Mt<=Yt)&&Tt++;(jt<ut||jt===ut&&Tt<ft)&&(ut=jt,ft=Tt,vt=Mt)}for(x.splice(vt,0,at),ut=0;ut<x.length;ut++)z[x[ut]]=ut;for(ut=0;ut<y[at].length;ut++)ft=y[at][ut],0<=x.indexOf(ft)&&(tt.push(at),ot.push(ft))}rt++}}for(tt=x.length;;){for(z=!0,ot=0;ot<E.length;ot++)if(rt=E[ot],at=y[rt][0],ut=x.indexOf(at),0<=ut){for(vt=ft=0;vt<y[at].length;vt++)xt=x.indexOf(y[at][vt]),0>xt||xt===ut||(Pt=xt>ut?xt-ut:ut-xt,ft+=xt<ut!=Pt>tt-Pt?1:-1);x.splice(0>ft?ut:ut+1,0,rt),E.splice(ot,1),ot--}else z=!1;if(z)break;x.push(E[0]),E.splice(0,1)}for(y=0;y<x.length;y++)b.add(a.M(x[y]));return b},qt.Object.defineProperties(Qo.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!==ll&&a!==al&&a!==Yh&&a!==rh||(this.Rb=a,this.C())}},direction:{get:function(){return this.K},set:function(a){this.K===a||a!==Ts&&a!==Zh&&a!==Td&&a!==bg||(this.K=a,this.C())}},sorting:{get:function(){return this.nd},set:function(a){this.nd===a||a!==gm&&a!==fm&&a!==pm&&!mm&&a!==Dg||(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!==vm&&a!==wc||(this.Nn=a,this.C())}},actualXRadius:{get:function(){return this.lc}},actualYRadius:{get:function(){return this.me}},actualSpacing:{get:function(){return this.Ti}},actualCenter:{get:function(){return this.Zv}}});var al=new De(Qo,"ConstantSpacing",0),Yh=new De(Qo,"ConstantDistance",1),rh=new De(Qo,"ConstantAngle",2),ll=new De(Qo,"Packed",3),Ts=new De(Qo,"Clockwise",4),Zh=new De(Qo,"Counterclockwise",5),Td=new De(Qo,"BidirectionalLeft",6),bg=new De(Qo,"BidirectionalRight",7),gm=new De(Qo,"Forwards",8),fm=new De(Qo,"Reverse",9),pm=new De(Qo,"Ascending",10),mm=new De(Qo,"Descending",11),Dg=new De(Qo,"Optimized",12),vm=new De(Qo,"Pythagorean",13),wc=new De(Qo,"Circular",14);Qo.className="CircularLayout",Qo.ConstantSpacing=al,Qo.ConstantDistance=Yh,Qo.ConstantAngle=rh,Qo.Packed=ll,Qo.Clockwise=Ts,Qo.Counterclockwise=Zh,Qo.BidirectionalLeft=Td,Qo.BidirectionalRight=bg,Qo.Forwards=gm,Qo.Reverse=fm,Qo.Ascending=pm,Qo.Descending=mm,Qo.Optimized=Dg,Qo.Pythagorean=vm,Qo.Circular=wc;function cp(){this.Pl=-1/0,this.tm=this.mk=null}cp.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},cp.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]}},cp.className="VertexArrangement";function Tg(a){Do.call(this,a)}re(Tg,Do),Tg.prototype.createVertex=function(){return new gp(this)},Tg.prototype.createEdge=function(){return new ym(this)},Tg.className="CircularNetwork";function gp(a){Lr.call(this,a),this.u=this.Si=NaN}re(gp,Lr);function Kh(a,y){var x=a.network;if(x===null)return NaN;if(x=x.layout,x===null)return NaN;if(x.arrangement===ll)if(x.nodeDiameterFormula===wc)a.Si=Math.max(a.width,a.height);else{if(x=Math.abs(Math.sin(y)),y=Math.abs(Math.cos(y)),x===0)return a.width;if(y===0)return a.height;a.Si=Math.min(a.height/x,a.width/y)}else a.Si=x.nodeDiameterFormula===wc?Math.max(a.width,a.height):Math.sqrt(a.width*a.width+a.height*a.height);return a.Si}qt.Object.defineProperties(gp.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)}}}),gp.className="CircularVertex";function ym(a){ua.call(this,a)}re(ym,ua),ym.className="CircularEdge";function rs(a){Ho.call(this),this.ah=null,this.An=0,this.$d=new Ee(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)}re(rs,Ho),rs.prototype.cloneProtected=function(a){Ho.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},rs.prototype.createNetwork=function(){return new Pc(this)},rs.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 E=x.iterator;E.next();){this.network=E.value;for(var b=this.network.vertexes.iterator;b.next();){var z=b.value;z.Vd=z.vertexes.count,z.sh=1,z.Hj=null,z.We=null}jS(this,0,a)}this.network=y;var tt=E=x.iterator;E=this.arrangementSpacing;var ot=tt.count,rt=!0;z=b=0;for(var at=Rn(),ut=0;ut<ot+y.vertexes.count+2;ut++)at[ut]=null;ot=0,tt.reset();for(var ft=be.alloc();tt.next();)if(ut=tt.value,this.computeBounds(ut,ft),rt)rt=!1,b=ft.x+ft.width/2,z=ft.y+ft.height/2,at[0]=new It(ft.x+ft.width+E.width,ft.y),at[1]=new It(ft.x,ft.y+ft.height+E.height),ot=2;else{var vt=RS(at,ot,b,z,ft.width,ft.height,E),xt=at[vt],Pt=new It(xt.x+ft.width+E.width,xt.y),Mt=new It(xt.x,xt.y+ft.height+E.height);for(vt+1<ot&&at.splice(vt+1,0,null),at[vt]=Pt,at[vt+1]=Mt,ot++,vt=xt.x-ft.x,xt=xt.y-ft.y,ut=ut.vertexes.iterator;ut.next();)Pt=ut.value,Pt.centerX+=vt,Pt.centerY+=xt}for(be.free(ft),ut=y.vertexes.iterator;ut.next();)tt=ut.value,vt=tt.bounds,2>ot?(b=vt.x+vt.width/2,z=vt.y+vt.height/2,at[0]=new It(vt.x+vt.width+E.width,vt.y),at[1]=new It(vt.x,vt.y+vt.height+E.height),ot=2):(rt=RS(at,ot,b,z,vt.width,vt.height,E),ft=at[rt],xt=new It(ft.x+vt.width+E.width,ft.y),vt=new It(ft.x,ft.y+vt.height+E.height),rt+1<ot&&at.splice(rt+1,0,null),at[rt]=xt,at[rt+1]=vt,ot++,tt.centerX=ft.x+tt.width/2,tt.centerY=ft.y+tt.height/2);for(qn(at),E=x.iterator;E.next();){for(x=E.value,b=x.vertexes.iterator;b.next();)y.dh(b.value);for(x=x.edges.iterator;x.next();)y.Bo(x.value)}}GS(this,a),this.updateParts()}this.dl=a,this.network=null,this.isValidLayout=!0},rs.prototype.needsClusterLayout=function(){if(3>this.network.vertexes.count)return!1;for(var a=0,y=0,x=this.network.vertexes.first().bounds,E=this.network.vertexes.iterator;E.next();){if(E.value.bounds.Yc(x)&&(a++,2<a))return!0;if(10<y)break;y++}return!1},rs.prototype.computeBounds=function(a,y){var x=!0;for(a=a.vertexes.iterator;a.next();){var E=a.value;x?(x=!1,y.set(E.bounds)):y.ed(E.bounds)}return y};function jS(a,y,x){if(Tx(a,y)){var E=a.Zf;a.Zf*=1+1/(y+1);var b=Ix(a,y),z=Math.max(0,Math.max(Math.min(a.network.vertexes.count,x*(y+1)/11),10));for(a.maxIterations+=z,jS(a,y+1,x),GS(a,z),Ox(a,b),y=b.vertexes.Fa(),y.sort(function(tt,ot){return tt===null||ot===null||tt===ot?0:ot.Vd-tt.Vd}),x=0;x<y.length;x++)jx(a,y[x]);a.Zf=E}}function Tx(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,E){return x===null||E===null||x===E?0:E.Vd-x.Vd}),y=a.length-1;0<=y&&1>=a[y].Vd;)y--;return 1<a.length-y}function Ix(a,y){for(var x=a.network,E=new Pc(a),b=0;b<a.ah.length;b++){var z=a.ah[b];if(1<z.Vd){E.dh(z);var tt=new HS;tt.Rs=z.Vd,tt.Ss=z.width,tt.Qs=z.height,tt.Sv=z.focus.x,tt.Tv=z.focus.y,z.We===null&&(z.We=new $e),z.We.add(tt),z.sv=z.We.count-1}else break}for(z=x.edges.iterator;z.next();){var ot=z.value;b=ot.fromVertex,tt=ot.toVertex,b.network===E&&tt.network===E?E.Bo(ot):b.network===E?(ot=b.Hj,ot===null&&(ot=new $e,b.Hj=ot),ot.add(tt),b.Vd--,b.sh+=tt.sh):tt.network===E&&(ot=tt.Hj,ot===null&&(ot=new $e,tt.Hj=ot),ot.add(b),tt.Vd--,tt.sh+=b.sh)}for(b=E.edges.iterator;b.next();)z=b.value,z.length*=Math.max(1,se.sqrt((z.fromVertex.sh+z.toVertex.sh)/(4*y+1)));for(y=E.vertexes.iterator;y.next();){b=y.value;var rt=b.Hj;if(rt!==null&&0<rt.count&&(tt=b.We.M(b.We.count-1).Rs-b.Vd,!(0>=tt))){for(var at=ot=0,ut=rt.count-tt;ut<rt.count;ut++){var ft=rt.M(ut),vt=null;for(z=ft.edges.iterator;z.next();){var xt=z.value;if(xt.Ax(ft)===b){vt=xt;break}}vt!==null&&(at+=vt.length,ot+=ft.width*ft.height)}z=b.centerX,rt=b.centerY,ut=b.width,ft=b.height,vt=b.focus,xt=ut*ft,1>xt&&(xt=1),ot=se.sqrt((ot+xt+at*at*4/(tt*tt))/xt),tt=(ot-1)*ut/2,ot=(ot-1)*ft/2,b.bounds=new be(z-vt.x-tt,rt-vt.y-ot,ut+2*tt,ft+2*ot),b.focus=new It(vt.x+tt,vt.y+ot)}}return a.network=E,x}function Ox(a,y){for(var x=a.network.vertexes.iterator;x.next();){var E=x.value;if(E.network=y,E.We!==null){var b=E.We.M(E.sv);E.Vd=b.Rs;var z=b.Sv,tt=b.Tv;E.bounds=new be(E.centerX-z,E.centerY-tt,b.Ss,b.Qs),E.focus=new It(z,tt),E.sv--}}for(x=a.network.edges.iterator;x.next();)x.value.network=y;a.network=y}function jx(a,y){var x=y.Hj;if(x!==null&&x.count!==0){var E=y.centerX,b=y.centerY,z=y.width,tt=y.height;y.We!==null&&0<y.We.count&&(tt=y.We.M(0),z=tt.Ss,tt=tt.Qs),z=se.sqrt(z*z+tt*tt)/2;for(var ot=!1,rt=tt=0,at=0,ut=y.vertexes.iterator;ut.next();){var ft=ut.value;1>=ft.Vd?rt++:(ot=!0,at++,tt+=Math.atan2(y.centerY-ft.centerY,y.centerX-ft.centerX))}if(rt!==0){for(0<at&&(tt/=at),at=y=0,y=ot?2*Math.PI/(rt+1):2*Math.PI/rt,rt%2===0&&(at=y/2),1<x.count&&x.sort(function(xt,Pt){return xt===null||Pt===null||xt===Pt?0:Pt.width*Pt.height-xt.width*xt.height}),ot=rt%2===0?0:1,x=x.iterator;x.next();)if(rt=x.value,!(1<rt.Vd||a.isFixed(rt))){for(ut=null,ft=rt.edges.iterator;ft.next();){ut=ft.value;break}ft=rt.width;var vt=rt.height;ft=se.sqrt(ft*ft+vt*vt)/2,ut=z+ut.length+ft,ft=tt+(y*(ot/2>>1)+at)*(ot%2===0?1:-1),rt.centerX=E+ut*Math.cos(ft),rt.centerY=b+ut*Math.sin(ft),ot++}}}}function RS(a,y,x,E,b,z,tt){var ot=9e19,rt=-1,at=0;t:for(;at<y;at++){var ut=a[at],ft=ut.x-x,vt=ut.y-E;if(ft=ft*ft+vt*vt,ft<ot){for(vt=at-1;0<=vt;vt--)if(a[vt].y>ut.y&&a[vt].x-ut.x<b+tt.width)continue t;for(vt=at+1;vt<y;vt++)if(a[vt].x>ut.x&&a[vt].y-ut.y<z+tt.height)continue t;rt=at,ot=ft}}return rt}rs.prototype.Cu=function(){if(this.comments)for(var a=this.network.vertexes.iterator;a.next();)this.addComments(a.value)},rs.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 E=this.network.ki(x);E===null&&(E=this.network.Bl(x)),E.charge=this.defaultCommentElectricalCharge,x=null;for(var b=E.destinationEdges;b.next();){var z=b.value;if(z.toVertex===a){x=z;break}}if(x===null){for(b=E.sourceEdges;b.next();)if(z=b.value,z.fromVertex===a){x=z;break}}x===null&&(x=this.network.Zj(a,E,null)),x.length=this.defaultCommentSpringLength}}};function zS(a,y){var x=a.bounds,E=x.x;a=x.y;var b=x.width;x=x.height;var z=y.bounds,tt=z.x;y=z.y;var ot=z.width;return z=z.height,E+b<tt?a>y+z?(x=E+b-tt,a=a-y-z,se.sqrt(x*x+a*a)):a+x<y?(E=E+b-tt,a=a+x-y,se.sqrt(E*E+a*a)):tt-(E+b):E>tt+ot?a>y+z?(x=E-tt-ot,a=a-y-z,se.sqrt(x*x+a*a)):a+x<y?(E=E-tt-ot,a=a+x-y,se.sqrt(E*E+a*a)):E-(tt+ot):a>y+z?a-(y+z):a+x<y?y-(a+x):.1}function GS(a,y){for(a.ah=null,y=a.An+y;a.An<y&&(a.An++,Rx(a)););a.ah=null}function Rx(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 E=x.centerX,b=E,z=x=x.centerY,tt=1;tt<y.length;tt++){var ot=y[tt];ot.forceX=0,ot.forceY=0;var rt=ot.centerX;ot=ot.centerY,E=Math.min(E,rt),b=Math.max(b,rt),x=Math.min(x,ot),z=Math.max(z,ot)}(b=b-E>z-x)?y.sort(function(Mt,jt){return Mt===null||jt===null||Mt===jt?0:Mt.centerX-jt.centerX}):y.sort(function(Mt,jt){return Mt===null||jt===null||Mt===jt?0:Mt.centerY-jt.centerY}),x=a.Zf;var at=E=ot=0;for(z=0;z<y.length;z++){tt=y[z],E=tt.bounds,ot=tt.focus,rt=E.x+ot.x;var ut=E.y+ot.y;E=tt.charge*a.electricalFieldX(rt,ut),at=tt.charge*a.electricalFieldY(rt,ut),E+=tt.mass*a.gravitationalFieldX(rt,ut),at+=tt.mass*a.gravitationalFieldY(rt,ut),tt.forceX+=E,tt.forceY+=at;for(var ft=z+1;ft<y.length;ft++){var vt=y[ft];if(vt!==tt){E=vt.bounds,ot=vt.focus,at=E.x+ot.x;var xt=E.y+ot.y;if(rt-at>x||at-rt>x){if(b)break}else if(ut-xt>x||xt-ut>x){if(!b)break}else{var Pt=zS(tt,vt);1>Pt?(E=a.randomNumberGenerator,E===null&&(a.randomNumberGenerator=E=new Sm),Pt=E.random(),ot=E.random(),rt>at?(E=Math.abs(vt.bounds.right-tt.bounds.x),E=(1+E)*Pt):rt<at?(E=Math.abs(vt.bounds.x-tt.bounds.right),E=-(1+E)*Pt):(E=Math.max(vt.width,tt.width),E=(1+E)*Pt-E/2),ut>xt?(at=Math.abs(vt.bounds.bottom-tt.bounds.y),at=(1+at)*ot):rt<at?(at=Math.abs(vt.bounds.y-tt.bounds.bottom),at=-(1+at)*ot):(at=Math.max(vt.height,tt.height),at=(1+at)*ot-at/2)):(ot=-(tt.charge*vt.charge)/(Pt*Pt),E=(at-rt)/Pt*ot,at=(xt-ut)/Pt*ot),tt.forceX+=E,tt.forceY+=at,vt.forceX-=E,vt.forceY-=at}}}}for(b=a.network.edges.iterator;b.next();)ot=b.value,x=ot.fromVertex,z=ot.toVertex,tt=x.bounds,rt=x.focus,E=tt.x+rt.x,tt=tt.y+rt.y,ut=z.bounds,ft=z.focus,rt=ut.x+ft.x,ut=ut.y+ft.y,ft=zS(x,z),1>ft?(ft=a.randomNumberGenerator,ft===null&&(a.randomNumberGenerator=ft=new Sm),ot=ft.random(),ft=ft.random(),E=(E>rt?1:-1)*(1+(z.width>x.width?z.width:x.width))*ot,at=(tt>ut?1:-1)*(1+(z.height>x.height?z.height:x.height))*ft):(ot=ot.stiffness*(ft-ot.length),E=(rt-E)/ft*ot,at=(ut-tt)/ft*ot),x.forceX+=E,x.forceY+=at,z.forceX-=E,z.forceY-=at;for(b=E=0;b<y.length;b++)x=y[b],a.isFixed(x)?a.moveFixedVertex(x):E=Math.max(E,a.moveVertex(x)||0);return E>a.epsilonDistance*a.epsilonDistance}rs.prototype.moveVertex=function(a){var y=a.forceX,x=a.forceY,E=this.moveLimit;return y<-E?y=-E:y>E&&(y=E),x<-E?x=-E:x>E&&(x=E),a.centerX+=y,a.centerY+=x,y*y+x*x},rs.prototype.moveFixedVertex=function(){},rs.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.isRouting&&this.commitLinks()},rs.prototype.yv=function(){if(this.setsPortSpots)for(var a=this.network.edges.iterator;a.next();){var y=a.value.link;y!==null&&(y.fromSpot=Or,y.toSpot=Or)}},rs.prototype.commitNodes=function(){var a=0,y=0;if(this.arrangesToOrigin){var x=be.alloc();this.computeBounds(this.network,x),y=this.arrangementOrigin,a=y.x-x.x,y=y.y-x.y,be.free(x)}x=be.alloc();for(var E=this.network.vertexes.iterator;E.next();){var b=E.value;(a!==0||y!==0)&&(x.assign(b.bounds),x.x+=a,x.y+=y,b.bounds=x),b.commit()}be.free(x)},rs.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()},rs.prototype.springStiffness=function(a){return a=a.stiffness,isNaN(a)?this.Hk:a},rs.prototype.springLength=function(a){return a=a.length,isNaN(a)?this.Gk:a},rs.prototype.electricalCharge=function(a){return a=a.charge,isNaN(a)?this.Ek:a},rs.prototype.electricalFieldX=function(){return 0},rs.prototype.electricalFieldY=function(){return 0},rs.prototype.gravitationalMass=function(a){return a=a.mass,isNaN(a)?this.Fk:a},rs.prototype.gravitationalFieldX=function(){return 0},rs.prototype.gravitationalFieldY=function(){return 0},rs.prototype.isFixed=function(a){return a.isFixed},qt.Object.defineProperties(rs.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())}}}),rs.className="ForceDirectedLayout";function HS(){this.Tv=this.Sv=this.Qs=this.Ss=this.Rs=0}HS.className="ForceDirectedSubnet";function Pc(a){Do.call(this,a)}re(Pc,Do),Pc.prototype.createVertex=function(){return new fp(this)},Pc.prototype.createEdge=function(){return new pp(this)},Pc.className="ForceDirectedNetwork";function fp(a){Lr.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}re(fp,Lr),qt.Object.defineProperties(fp.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)}}}),fp.className="ForceDirectedVertex";function pp(a){ua.call(this,a),this.j=this.o=NaN}re(pp,ua),qt.Object.defineProperties(pp.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)}}}),pp.className="ForceDirectedEdge";function Sm(){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()}Sm.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},Sm.className="RandomNumberGenerator";function So(a){Ho.call(this),this.kc=this.ie=25,this.K=0,this.Dk=Em,this.Zk=Am,this.Qk=Mm,this.bj=4,this.rk=Lm,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 It,this.He=[],this.He.length=100,this.xw=this.ve=0,a&&Object.assign(this,a)}re(So,Ho),So.prototype.cloneProtected=function(a){Ho.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},So.prototype.qb=function(a){a.classType===So?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):Ho.prototype.qb.call(this,a)},So.prototype.createNetwork=function(){return new Og(this)},So.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!==vp&&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===vp&&this.removeCycles(),a=this.network;for(var y=[],x=a.edges.iterator;x.next();){var E=x.value;E.valid=!1,y.push(E)}for(x=0;x<y.length;x++){E=y[x];var b=E.fromVertex,z=E.toVertex;if(!(E.valid||(b.node===null&&b.data===null||z.node===null&&z.data===null)&&b.layer===z.layer)){var tt=0,ot=0,rt=0,at=0;if(E.link!==null){if(ot=E.link,ot===null)continue;var ut=b.node;if(tt=z.node,ut===null||tt===null)continue;var ft=ot.fromNode;rt=ot.toNode;for(var vt=ot.fromPort;vt!==null&&!vt.Ed();)vt=vt.panel;for(ot=ot.toPort;ot!==null&&!ot.Ed();)ot=ot.panel;if(E.rev){at=ft;var xt=vt;ft=rt,vt=ot,rt=at,ot=xt}var Pt=b.focus;at=z.focus;var Mt=E.rev?z.bounds:b.bounds;xt=It.alloc(),ut!==ft?Mt.w()&&ft.isVisible()?ft.actualBounds.w()?(th(ft,vt,po,xt),xt.x+=ft.actualBounds.x-Mt.x,xt.y+=ft.actualBounds.y-Mt.y):(th(ft,vt,po,xt),xt.w()||xt.assign(Pt)):xt.assign(Pt):Mt.w()?(th(ft,vt,po,xt),xt.w()||xt.assign(Pt)):xt.assign(Pt),ft=E.rev?b.bounds:z.bounds,ut=It.alloc(),tt!==rt?ft.w()&&rt.isVisible()?rt.actualBounds.w()?(th(rt,ot,po,ut),ut.x+=rt.actualBounds.x-ft.x,ut.y+=rt.actualBounds.y-ft.y):(th(rt,ot,po,ut),ut.w()||ut.assign(at)):ut.assign(at):ft.w()?(th(rt,ot,po,ut),ut.w()||ut.assign(at)):ut.assign(at),this.K===90||this.K===270?(tt=Math.round((xt.x-Pt.x)/this.kc),rt=xt.x,ot=Math.round((ut.x-at.x)/this.kc),at=ut.x):(tt=Math.round((xt.y-Pt.y)/this.kc),rt=xt.y,ot=Math.round((ut.y-at.y)/this.kc),at=ut.y),It.free(xt),It.free(ut),E.portFromColOffset=tt,E.portFromPos=rt,E.portToColOffset=ot,E.portToPos=at}else E.portFromColOffset=0,E.portFromPos=0,E.portToColOffset=0,E.portToPos=0;if(xt=b.layer,ut=z.layer,ft=0,Mt=E.link,Mt!==null){var jt=Mt.fromPort,Tt=Mt.toPort;if(jt!==null&&Tt!==null){var Vt=Mt.fromNode;if(vt=Mt.toNode,Vt!==null&&vt!==null){var Yt=Cm(this,!0),Kt=Cm(this,!1),te=this.setsPortSpots?Yt:Mt.computeSpot(!0,jt);Pt=this.setsPortSpots?Kt:Mt.computeSpot(!1,Tt);var me=Mt.isOrthogonal;te.$c()&&te.Hf(Kt)&&Pt.$c()&&Pt.Hf(Yt)?ft=0:(Yt=Mt.getLinkPoint(Vt,jt,te,!0,me,vt,Tt,It.alloc()),Kt=Mt.getLinkDirection(Vt,jt,Yt,te,!0,me,vt,Tt),It.free(Yt),te.ys()||Kt!==JS(this,E,!0)?this.setsPortSpots&&Vt!==null&&Vt.ports.count===1&&E.rev&&(ft+=1):ft+=1,te=Mt.getLinkPoint(vt,Tt,Pt,!1,me,Vt,jt,It.alloc()),Mt=Mt.getLinkDirection(vt,Tt,te,Pt,!1,me,Vt,jt),It.free(te),Pt.ys()||Mt!==JS(this,E,!1)?this.setsPortSpots&&vt!==null&&vt.ports.count===1&&E.rev&&(ft+=2):ft+=2)}}}if(vt=ft,ft=vt===1||vt===3,(vt=vt===2||vt===3)&&(Pt=a.createVertex(),Pt.node=null,Pt.Dj=1,Pt.layer=xt,Pt.near=b,a.dh(Pt),b=a.Zj(b,Pt,E.link),b.valid=!1,b.rev=E.rev,b.portFromColOffset=tt,b.portToColOffset=0,b.portFromPos=rt,b.portToPos=0,b=Pt),Mt=1,ft&&Mt--,xt-ut>Mt&&0<xt){for(E.valid=!1,Pt=a.createVertex(),Pt.node=null,Pt.Dj=2,Pt.layer=xt-1,a.dh(Pt),b=a.Zj(b,Pt,E.link),b.valid=!0,b.rev=E.rev,b.portFromColOffset=vt?0:tt,b.portToColOffset=0,b.portFromPos=vt?0:rt,b.portToPos=0,b=Pt,xt--;xt-ut>Mt&&0<xt;)Pt=a.createVertex(),Pt.node=null,Pt.Dj=3,Pt.layer=xt-1,a.dh(Pt),b=a.Zj(b,Pt,E.link),b.valid=!0,b.rev=E.rev,b.portFromColOffset=0,b.portToColOffset=0,b.portFromPos=0,b.portToPos=0,b=Pt,xt--;b=a.Zj(Pt,z,E.link),b.valid=!ft,ft&&(Pt.near=z),b.rev=E.rev,b.portFromColOffset=0,b.portToColOffset=ot,b.portFromPos=0,b.portToPos=at}else E.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=Qh(this,a),x=0,E=this.tc[a],z=0;z<E;z++)b=y[z],x+=this.nodeMinColumnSpace(b,!0),b.column=x,x+=1,x+=this.nodeMinColumnSpace(b,!1);this.Ra=Math.max(this.Ra,x-1),Xh(this,a,y)}this.reduceCrossings(),this.straightenAndPack(),this.updateParts()}this.network=null,this.isValidLayout=!0},So.prototype.linkMinLength=function(){return 1};function fy(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}So.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},So.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 Ks(a){a.kj===null&&(a.kj=[]);for(var y=0,x=a.network.vertexes.iterator;x.next();){var E=x.value;a.kj[y]=E.layer,y++,a.kj[y]=E.column,y++,a.kj[y]=E.index,y++}return a.kj}function Oa(a,y){var x=0;for(a=a.network.vertexes.iterator;a.next();){var E=a.value;E.layer=y[x],x++,E.column=y[x],x++,E.index=y[x],x++}}function VS(a,y,x){var E=Qh(a,y),b=a.tc[y];(a.Jn===null||a.Jn.length<b*b)&&(a.Jn=[]);for(var z=a.Jn,tt=0;tt<b;tt++){var ot=0,rt=E[tt],at=rt.near;if(at!==null&&at.layer===rt.layer)if(rt=at.index,rt>tt)for(var ut=tt+1;ut<rt;ut++){var ft=E[ut];ft.near===at&&ft.Dj===at.Dj||ot++}else for(ut=tt-1;ut>rt;ut--)ft=E[ut],ft.near===at&&ft.Dj===at.Dj||ot++;var vt;if(0<=x)for(rt=E[tt].sourceEdgesArrayAccess,at=0;at<rt.length;at++){var xt=rt[at];if(xt.valid&&xt.fromVertex.layer!==y)for(ft=xt.fromVertex.index,ut=xt.portToPos,xt=xt.portFromPos,vt=at+1;vt<rt.length;vt++){var Pt=rt[vt];if(Pt.valid&&Pt.fromVertex.layer!==y){var Mt=Pt.fromVertex.index,jt=Pt.portToPos;Pt=Pt.portFromPos,ut<jt&&(ft>Mt||ft===Mt&&xt>Pt)&&ot++,jt<ut&&(Mt>ft||Mt===ft&&Pt>xt)&&ot++}}}if(0>=x){for(rt=E[tt].destinationEdgesArrayAccess,at=0;at<rt.length;at++)if(xt=rt[at],xt.valid&&xt.toVertex.layer!==y)for(ft=xt.toVertex.index,ut=xt.portToPos,xt=xt.portFromPos,vt=at+1;vt<rt.length;vt++)Pt=rt[vt],Pt.valid&&Pt.toVertex.layer!==y&&(Mt=Pt.toVertex.index,jt=Pt.portToPos,Pt=Pt.portFromPos,xt<Pt&&(ft>Mt||ft===Mt&&ut>jt)&&ot++,Pt<xt&&(Mt>ft||Mt===ft&&jt>ut)&&ot++)}for(z[tt*b+tt]=ot,rt=tt+1;rt<b;rt++){var Tt=0,Vt=0;if(0<=x){ot=E[tt].sourceEdgesArrayAccess;var Yt=E[rt].sourceEdgesArrayAccess;for(at=0;at<ot.length;at++)if(xt=ot[at],xt.valid&&xt.fromVertex.layer!==y)for(ft=xt.fromVertex.index,xt=xt.portFromPos,vt=0;vt<Yt.length;vt++)Pt=Yt[vt],Pt.valid&&Pt.fromVertex.layer!==y&&(Mt=Pt.fromVertex.index,Pt=Pt.portFromPos,(ft<Mt||ft===Mt&&xt<Pt)&&Vt++,(Mt<ft||Mt===ft&&Pt<xt)&&Tt++)}if(0>=x){for(ot=E[tt].destinationEdgesArrayAccess,Yt=E[rt].destinationEdgesArrayAccess,at=0;at<ot.length;at++)if(xt=ot[at],xt.valid&&xt.toVertex.layer!==y)for(ft=xt.toVertex.index,ut=xt.portToPos,vt=0;vt<Yt.length;vt++)Pt=Yt[vt],Pt.valid&&Pt.toVertex.layer!==y&&(Mt=Pt.toVertex.index,jt=Pt.portToPos,(ft<Mt||ft===Mt&&ut<jt)&&Vt++,(Mt<ft||Mt===ft&&jt<ut)&&Tt++)}z[tt*b+rt]=Tt,z[rt*b+tt]=Vt}}return Xh(a,y,E),z}So.prototype.countCrossings=function(){for(var a=0,y=0;y<=this.Ia;y++)for(var x=VS(this,y,1),E=this.tc[y],b=0;b<E;b++)for(var z=b;z<E;z++)a+=x[b*E+z];return a};function xm(a){for(var y=0,x=0;x<=a.Ia;x++){for(var E=a,b=x,z=Qh(E,b),tt=E.tc[b],ot=0,rt=0;rt<tt;rt++){var at=z[rt].destinationEdgesArrayAccess;if(at!==null)for(var ut=0;ut<at.length;ut++){var ft=at[ut];if(ft.valid&&ft.toVertex.layer!==b){var vt=ft.fromVertex.column+ft.portFromColOffset,xt=ft.toVertex.column+ft.portToColOffset;ot+=(Math.abs(vt-xt)+1)*fy(ft)}}}Xh(E,b,z),y+=ot}return y}So.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 py(a,y,x){for(var E=Qh(a,y),b=a.tc[y],z=[],tt=0;tt<b;tt++){var ot=E[tt],rt=null;0>=x&&(rt=ot.sourceEdgesArrayAccess);var at=null;0<=x&&(at=ot.destinationEdgesArrayAccess);var ut=0,ft=0,vt=ot.near;if(vt!==null&&vt.layer===ot.layer&&(ut+=vt.column-1,ft++),rt!==null)for(vt=0;vt<rt.length;vt++){ot=rt[vt];var xt=ot.fromVertex;ot.valid&&!ot.rev&&xt.layer!==y&&(ut+=xt.column,ft++)}if(at!==null)for(rt=0;rt<at.length;rt++)ot=at[rt],vt=ot.toVertex,ot.valid&&!ot.rev&&vt.layer!==y&&(ut+=vt.column,ft++);z[tt]=ft===0?-1:ut/ft}return Xh(a,y,E),z}function US(a,y,x){for(var E=Qh(a,y),b=a.tc[y],z=[],tt=0;tt<b;tt++){var ot=E[tt],rt=null;0>=x&&(rt=ot.sourceEdgesArrayAccess);var at=null;0<=x&&(at=ot.destinationEdgesArrayAccess);var ut=0,ft=[],vt=ot.near;if(vt!==null&&vt.layer===ot.layer&&(ft[ut]=vt.column-1,ut++),ot=void 0,rt!==null)for(vt=0;vt<rt.length;vt++){ot=rt[vt];var xt=ot.fromVertex;ot.valid&&!ot.rev&&xt.layer!==y&&(ft[ut]=xt.column+ot.portFromColOffset,ut++)}if(at!==null)for(rt=0;rt<at.length;rt++)ot=at[rt],vt=ot.toVertex,ot.valid&&!ot.rev&&vt.layer!==y&&(ft[ut]=vt.column+ot.portToColOffset,ut++);ut===0?z[tt]=-1:(ft.sort(function(Pt,Mt){return Pt-Mt}),at=ut>>1,z[tt]=ut&1?ft[at]:ft[at-1]+ft[at]>>1)}return Xh(a,y,E),z}function mp(a,y,x,E,b,z){if(y.component===E){if(y.component=x,b)for(var tt=y.destinationEdges;tt.next();){var ot=tt.value,rt=ot.toVertex,at=y.layer-rt.layer;ot=a.linkMinLength(ot),at===ot&&mp(a,rt,x,E,b,z)}if(z)for(tt=y.sourceEdges;tt.next();)ot=tt.value,rt=ot.fromVertex,at=rt.layer-y.layer,ot=a.linkMinLength(ot),at===ot&&mp(a,rt,x,E,b,z)}}function my(a,y,x,E,b,z){if(y.component===E){if(y.component=x,b)for(var tt=y.destinationEdges;tt.next();)my(a,tt.value.toVertex,x,E,b,z);if(z)for(y=y.sourceEdges;y.next();)my(a,y.value.fromVertex,x,E,b,z)}}So.prototype.removeCycles=function(){for(var a=this.network.edges.iterator;a.next();)a.value.rev=!1;switch(this.Dk){default:case Sy:a=this.network;var y=0,x=a.vertexes.count-1,E=[];E.length=x+1;for(var b=a.vertexes.iterator;b.next();)b.value.valid=!0;for(;zx(a)!==null;){for(b=WS(a);b!==null;)E[x]=b,x--,b.valid=!1,b=WS(a);for(b=YS(a);b!==null;)E[y]=b,y++,b.valid=!1,b=YS(a);b=null;for(var z=0,tt=this.network.vertexes.iterator;tt.next();){var ot=tt.value;if(ot.valid){for(var rt=0,at=ot.destinationEdges;at.next();)at.value.toVertex.valid&&rt++;at=0;for(var ut=ot.sourceEdges;ut.next();)ut.value.fromVertex.valid&&at++;(b===null||z<rt-at)&&(b=ot,z=rt-at)}}b!==null&&(E[y]=b,y++,b.valid=!1)}for(y=0;y<a.vertexes.count;y++)E[y].index=y;for(E=a.edges.iterator;E.next();)y=E.value,y.fromVertex.index>y.toVertex.index&&(a.gm(y),y.rev=!0);break;case Em:for(E=this.network.vertexes.iterator;E.next();)a=E.value,a.Ll=-1,a.finish=-1;for(a=this.network.edges.iterator;a.next();)a.value.forest=!1;for(this.Kn=0,E.reset();E.next();)y=E.value,y.sourceEdges.count===0&&vy(this,y);for(E.reset();E.next();)y=E.value,y.Ll===-1&&vy(this,y);for(a.reset();a.next();)E=a.value,E.forest||(y=E.fromVertex,x=y.finish,b=E.toVertex,z=b.finish,b.Ll<y.Ll&&x<z&&(this.network.gm(E),E.rev=!0));break;case vp:for(a=this.network,y=a.vertexes.iterator,E=1/0;y.next();)E=Math.min(E,y.value.layer);if(1/0>E){if(0>E)for(y.reset();y.next();)y.value.layer-=E;for(E=[],y.reset();y.next();)x=y.value,b=E[x.layer],b===void 0?E[x.layer]=[x]:b.push(x);for(x=y=0;x<E.length;x++)if(b=E[x],!b||b.length===0)y++;else if(0<x)for(z=0;z<b.length;z++)b[z].layer-=y;for(E=a.edges.iterator;E.next();)y=E.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 WS(a){for(a=a.vertexes.iterator;a.next();){var y=a.value;if(y.valid){for(var x=!0,E=y.destinationEdges;E.next();)if(E.value.toVertex.valid){x=!1;break}if(x)return y}}return null}function YS(a){for(a=a.vertexes.iterator;a.next();){var y=a.value;if(y.valid){for(var x=!0,E=y.sourceEdges;E.next();)if(E.value.fromVertex.valid){x=!1;break}if(x)return y}}return null}function vy(a,y){y.Ll=a.Kn,a.Kn++;for(var x=y.destinationEdges;x.next();){var E=x.value,b=E.toVertex;b.Ll===-1&&(E.forest=!0,vy(a,b))}y.finish=a.Kn,a.Kn++}So.prototype.assignLayers=function(){switch(this.Zk){case xy:ZS(this);break;case wy:for(var a,y=this.network.vertexes.iterator;y.next();)a=QS(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 Am: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&&XS(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=KS(a,y.value);a.Ia=Math.max(x,a.Ia)}}function KS(a,y){var x=0;if(y.layer===-1){for(var E=y.destinationEdges;E.next();){var b=E.value,z=b.toVertex;b=a.linkMinLength(b),x=Math.max(x,KS(a,z)+b)}y.layer=x}else x=y.layer;return x}function QS(a,y){var x=0;if(y.layer===-1){for(var E=y.sourceEdges;E.next();){var b=E.value,z=b.fromVertex;b=a.linkMinLength(b),x=Math.max(x,QS(a,z)+b)}y.layer=x}else x=y.layer;return x}function XS(a,y){if(!y.valid){y.valid=!0;for(var x=y.destinationEdges;x.next();)XS(a,x.value.toVertex);for(x=a.network.vertexes.iterator;x.next();)x.value.component=-1;for(var E=y.sourceEdgesArrayAccess,b=E.length,z=0;z<b;z++){var tt=E[z],ot=tt.fromVertex,rt=tt.toVertex;tt=a.linkMinLength(tt),ot.layer-rt.layer>tt&&mp(a,ot,0,-1,!0,!1)}for(mp(a,y,1,-1,!0,!0);y.component!==0;){for(z=0,E=1/0,ot=0,rt=null,tt=a.network.vertexes.iterator;tt.next();){var at=tt.value;if(at.component===1){var ut=0,ft=!1,vt=at.sourceEdgesArrayAccess;b=vt.length;for(var xt=0;xt<b;xt++){var Pt=vt[xt],Mt=Pt.fromVertex;ut+=1,Mt.component!==1&&(z+=1,Mt=Mt.layer-at.layer,Pt=a.linkMinLength(Pt),E=Math.min(E,Mt-Pt))}for(vt=at.destinationEdgesArrayAccess,b=vt.length,xt=0;xt<b;xt++)Pt=vt[xt].toVertex,--ut,Pt.component!==1?--z:ft=!0;(rt===null||ut<ot)&&!ft&&(rt=at,ot=ut)}}if(0<z){for(x.reset();x.next();)b=x.value,b.component===1&&(b.layer+=E);y.component=0}else rt.component=0}for(x=a.network.vertexes.iterator;x.next();)x.value.component=-1;for(mp(a,y,1,-1,!0,!1);y.component!==0;){for(E=0,b=1/0,z=0,ot=null,rt=a.network.vertexes.iterator;rt.next();)if(tt=rt.value,tt.component===1){for(at=0,ut=!1,vt=tt.sourceEdgesArrayAccess,ft=vt.length,xt=0;xt<ft;xt++)Pt=vt[xt].fromVertex,at+=1,Pt.component!==1?E+=1:ut=!0;for(vt=tt.destinationEdgesArrayAccess,ft=vt.length,xt=0;xt<ft;xt++)Pt=vt[xt],Mt=Pt.toVertex,--at,Mt.component!==1&&(--E,Mt=tt.layer-Mt.layer,Pt=a.linkMinLength(Pt),b=Math.min(b,Mt-Pt));(ot===null||at>z)&&!ut&&(ot=tt,z=at)}if(0>E){for(x.reset();x.next();)E=x.value,E.component===1&&(E.layer-=b);y.component=0}else ot.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}So.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 Mm: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&&_S(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 E=0;E<y.length-1;E++){var b=y[E],z=y[E+1];b.portFromColOffset>z.portFromColOffset&&(x=!0,y[E]=z,y[E+1]=b)}}for(x=0;x<y.length;x++)E=y[x],E.valid&&(E=E.toVertex,E.index===-1&&qS(a,E))}function _S(a,y){var x=y.layer;y.index=a.tc[x],a.tc[x]++,y=y.sourceEdgesArrayAccess;for(var E=!0;E;)for(E=!1,x=0;x<y.length-1;x++){var b=y[x],z=y[x+1];b.portToColOffset>z.portToColOffset&&(E=!0,y[x]=z,y[x+1]=b)}for(x=0;x<y.length;x++)E=y[x],E.valid&&(E=E.fromVertex,E.index===-1&&_S(a,E))}So.prototype.reduceCrossings=function(){var a=this.countCrossings(),y=Ks(this),x,E;for(x=0;x<this.bj;x++){for(E=0;E<=this.Ia;E++)wm(this,E,1),Ka(this,E,1);var b=this.countCrossings();for(b<a&&(a=b,y=Ks(this)),E=this.Ia;0<=E;E--)wm(this,E,-1),Ka(this,E,-1);b=this.countCrossings(),b<a&&(a=b,y=Ks(this))}for(Oa(this,y),x=0;x<this.bj;x++){for(E=0;E<=this.Ia;E++)wm(this,E,0),Ka(this,E,0);for(b=this.countCrossings(),b<a&&(a=b,y=Ks(this)),E=this.Ia;0<=E;E--)wm(this,E,0),Ka(this,E,0);b=this.countCrossings(),b<a&&(a=b,y=Ks(this))}Oa(this,y);var z,tt,ot;switch(this.rk){case Ey:break;case Ay:for(ot=a+1;(E=this.countCrossings())<ot;)for(ot=E,x=this.Ia;0<=x;x--)for(tt=0;tt<=x;tt++){for(z=!0;z;)for(z=!1,E=x;E>=tt;E--)z=Ka(this,E,-1)||z;for(b=this.countCrossings(),b>=a?Oa(this,y):(a=b,y=Ks(this)),z=!0;z;)for(z=!1,E=x;E>=tt;E--)z=Ka(this,E,1)||z;for(b=this.countCrossings(),b>=a?Oa(this,y):(a=b,y=Ks(this)),z=!0;z;)for(z=!1,E=tt;E<=x;E++)z=Ka(this,E,1)||z;for(b>=a?Oa(this,y):(a=b,y=Ks(this)),z=!0;z;)for(z=!1,E=tt;E<=x;E++)z=Ka(this,E,-1)||z;for(b>=a?Oa(this,y):(a=b,y=Ks(this)),z=!0;z;)for(z=!1,E=x;E>=tt;E--)z=Ka(this,E,0)||z;for(b>=a?Oa(this,y):(a=b,y=Ks(this)),z=!0;z;)for(z=!1,E=tt;E<=x;E++)z=Ka(this,E,0)||z;b>=a?Oa(this,y):(a=b,y=Ks(this))}break;default:case Lm:for(x=this.Ia,tt=0,ot=a+1;(E=this.countCrossings())<ot;){for(ot=E,z=!0;z;)for(z=!1,E=x;E>=tt;E--)z=Ka(this,E,-1)||z;for(b=this.countCrossings(),b>=a?Oa(this,y):(a=b,y=Ks(this)),z=!0;z;)for(z=!1,E=x;E>=tt;E--)z=Ka(this,E,1)||z;for(b=this.countCrossings(),b>=a?Oa(this,y):(a=b,y=Ks(this)),z=!0;z;)for(z=!1,E=tt;E<=x;E++)z=Ka(this,E,1)||z;for(b>=a?Oa(this,y):(a=b,y=Ks(this)),z=!0;z;)for(z=!1,E=tt;E<=x;E++)z=Ka(this,E,-1)||z;for(b>=a?Oa(this,y):(a=b,y=Ks(this)),z=!0;z;)for(z=!1,E=x;E>=tt;E--)z=Ka(this,E,0)||z;for(b>=a?Oa(this,y):(a=b,y=Ks(this)),z=!0;z;)for(z=!1,E=tt;E<=x;E++)z=Ka(this,E,0)||z;b>=a?Oa(this,y):(a=b,y=Ks(this))}}Oa(this,y)};function wm(a,y,x){var E=Qh(a,y),b=a.tc[y],z=US(a,y,x),tt=py(a,y,x);for(x=0;x<b;x++)tt[x]===-1&&(tt[x]=E[x].column),z[x]===-1&&(z[x]=E[x].column);for(var ot=!0,rt;ot;)for(ot=!1,x=0;x<b-1;x++)(z[x+1]<z[x]||z[x+1]===z[x]&&tt[x+1]<tt[x])&&(ot=!0,rt=z[x],z[x]=z[x+1],z[x+1]=rt,rt=tt[x],tt[x]=tt[x+1],tt[x+1]=rt,rt=E[x],E[x]=E[x+1],E[x+1]=rt);for(x=z=0;x<b;x++)rt=E[x],rt.index=x,z+=a.nodeMinColumnSpace(rt,!0),rt.column=z,z+=1,z+=a.nodeMinColumnSpace(rt,!1);Xh(a,y,E)}function Ka(a,y,x){var E=Qh(a,y),b=a.tc[y];x=VS(a,y,x);var z,tt=[];for(z=0;z<b;z++)tt[z]=-1;var ot=[];for(z=0;z<b;z++)ot[z]=-1;for(var rt=!1,at=!0;at;)for(at=!1,z=0;z<b-1;z++){var ut=x[E[z].index*b+E[z+1].index],ft=x[E[z+1].index*b+E[z].index],vt=0,xt=0,Pt=E[z].column,Mt=E[z+1].column,jt=a.nodeMinColumnSpace(E[z],!0),Tt=a.nodeMinColumnSpace(E[z],!1),Vt=a.nodeMinColumnSpace(E[z+1],!0),Yt=a.nodeMinColumnSpace(E[z+1],!1);jt=Pt-jt+Vt,Tt=Mt-Tt+Yt;var Kt=E[z].sourceEdges.iterator;for(Kt.reset();Kt.next();)if(Vt=Kt.value,Yt=Vt.fromVertex,Vt.valid&&Yt.layer===y){for(Vt=0;E[Vt]!==Yt;)Vt++;Vt<z&&(vt+=2*(z-Vt),xt+=2*(z+1-Vt)),Vt===z+1&&(vt+=1),Vt>z+1&&(vt+=4*(Vt-z),xt+=4*(Vt-(z+1)))}for(Kt=E[z].destinationEdges.iterator,Kt.reset();Kt.next();)if(Vt=Kt.value,Yt=Vt.toVertex,Vt.valid&&Yt.layer===y){for(Vt=0;E[Vt]!==Yt;)Vt++;Vt===z+1&&(xt+=1)}for(Kt=E[z+1].sourceEdges.iterator,Kt.reset();Kt.next();)if(Vt=Kt.value,Yt=Vt.fromVertex,Vt.valid&&Yt.layer===y){for(Vt=0;E[Vt]!==Yt;)Vt++;Vt<z&&(vt+=2*(z+1-Vt),xt+=2*(z-Vt)),Vt===z&&(xt+=1),Vt>z+1&&(vt+=4*(Vt-(z+1)),xt+=4*(Vt-z))}for(Kt=E[z+1].destinationEdges.iterator,Kt.reset();Kt.next();)if(Vt=Kt.value,Yt=Vt.toVertex,Vt.valid&&Yt.layer===y){for(Vt=0;E[Vt]!==Yt;)Vt++;Vt===z&&(vt+=1)}Vt=Yt=0,Kt=tt[E[z].index];var te=ot[E[z].index],me=tt[E[z+1].index],Cn=ot[E[z+1].index];Kt!==-1&&(Yt+=Math.abs(Kt-Pt),Vt+=Math.abs(Kt-Tt)),te!==-1&&(Yt+=Math.abs(te-Pt),Vt+=Math.abs(te-Tt)),me!==-1&&(Yt+=Math.abs(me-Mt),Vt+=Math.abs(me-jt)),Cn!==-1&&(Yt+=Math.abs(Cn-Mt),Vt+=Math.abs(Cn-jt)),(xt<vt-.5||xt===vt&&ft<ut-.5||xt===vt&&ft===ut&&Vt<Yt-.5)&&(at=rt=!0,E[z].column=Tt,E[z+1].column=jt,ut=E[z],E[z]=E[z+1],E[z+1]=ut)}for(z=0;z<b;z++)E[z].index=z;return Xh(a,y,E),rt}So.prototype.straightenAndPack=function(){if(this.ve===0){var a=(this.bg&1)!==0,y=(this.bg&Kx)!==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 E,b=this.network.vertexes.iterator;b.next();){var z=b.value;y=z.layer,E=z.column,z=this.nodeMinColumnSpace(z,!1),x[y]=Math.max(x[y],E+z)}for(b.reset();b.next();)z=b.value,y=z.layer,E=z.column,z.column=(8*(this.Ra-x[y])>>1)+8*E;this.Ra*=8}if(this.bg&2)for(x=!0;x;){for(x=!1,y=this.Md+1;y<=this.Ia;y++)x=Ig(this,y,1)||x;for(y=this.Md-1;0<=y;y--)x=Ig(this,y,-1)||x;x=Ig(this,this.Md,0)||x}if(this.bg&4){for(y=this.Md+1;y<=this.Ia;y++)yy(this,y,1);for(y=this.Md-1;0<=y;y--)yy(this,y,-1);yy(this,this.Md,0)}if(a&&($S(this,-1),$S(this,1)),this.bg&2)for(x=!0;x;){for(x=!1,x=Ig(this,this.Md,0)||x,y=this.Md+1;y<=this.Ia;y++)x=Ig(this,y,0)||x;for(y=this.Md-1;0<=y;y--)x=Ig(this,y,0)||x}}else Ux(this)};function Ig(a,y,x){for(var E=!1;Gx(a,y,x);)E=!0;return E}function Gx(a,y,x){var E,b=Qh(a,y),z=a.tc[y],tt=py(a,y,-1);if(0<x)for(E=0;E<z;E++)tt[E]=-1;var ot=py(a,y,1);if(0>x)for(E=0;E<z;E++)ot[E]=-1;for(var rt=!1,at=!0;at;)for(at=!1,E=0;E<z;E++){var ut=b[E].column,ft=a.nodeMinColumnSpace(b[E],!0),vt=a.nodeMinColumnSpace(b[E],!1),xt=0;0>E-1||ut-b[E-1].column-1>ft+a.nodeMinColumnSpace(b[E-1],!1)?xt=ut-1:xt=ut,ft=E+1>=z||b[E+1].column-ut-1>vt+a.nodeMinColumnSpace(b[E+1],!0)?ut+1:ut;var Pt=vt=0,Mt=0;if(0>=x)for(var jt=b[E].sourceEdges.iterator;jt.next();){var Tt=jt.value,Vt=Tt.fromVertex;if(Tt.valid&&Vt.layer!==y){var Yt=fy(Tt),Kt=Tt.portFromColOffset;Tt=Tt.portToColOffset,Vt=Vt.column,vt+=(Math.abs(ut+Tt-(Vt+Kt))+1)*Yt,Pt+=(Math.abs(xt+Tt-(Vt+Kt))+1)*Yt,Mt+=(Math.abs(ft+Tt-(Vt+Kt))+1)*Yt}}if(0<=x)for(jt=b[E].destinationEdges.iterator;jt.next();)Tt=jt.value,Vt=Tt.toVertex,Tt.valid&&Vt.layer!==y&&(Yt=fy(Tt),Kt=Tt.portFromColOffset,Tt=Tt.portToColOffset,Vt=Vt.column,vt+=(Math.abs(ut+Kt-(Vt+Tt))+1)*Yt,Pt+=(Math.abs(xt+Kt-(Vt+Tt))+1)*Yt,Mt+=(Math.abs(ft+Kt-(Vt+Tt))+1)*Yt);Tt=Kt=Yt=0,jt=tt[b[E].index],Vt=ot[b[E].index],jt!==-1&&(Yt+=Math.abs(jt-ut),Kt+=Math.abs(jt-xt),Tt+=Math.abs(jt-ft)),Vt!==-1&&(Yt+=Math.abs(Vt-ut),Kt+=Math.abs(Vt-xt),Tt+=Math.abs(Vt-ft)),Pt<vt||Pt===vt&&Kt<Yt?(at=rt=!0,b[E].column=xt):(Mt<vt||Mt===vt&&Tt<Yt)&&(at=rt=!0,b[E].column=ft)}return Xh(a,y,b),a.normalize(),rt}function yy(a,y,x){var E=Qh(a,y),b=a.tc[y],z=US(a,y,x),tt=[];for(x=0;x<b;x++)tt[x]=z[x];for(z=!0;z;)for(z=!1,x=0;x<b;x++){var ot=E[x].column,rt=a.nodeMinColumnSpace(E[x],!0),at=a.nodeMinColumnSpace(E[x],!1),ut=0;if(tt[x]===-1)if(x===0&&x===b-1)ut=ot;else if(x===0){var ft=E[x+1].column;ft-ot===at+a.nodeMinColumnSpace(E[x+1],!0)?ut=ot-1:ut=ot}else x===b-1?(ft=E[x-1].column,ut=ot-ft===rt+a.nodeMinColumnSpace(E[x-1],!1)?ot+1:ot):(ft=E[x-1].column,rt=ft+a.nodeMinColumnSpace(E[x-1],!1)+rt+1,ft=E[x+1].column,at=ft-a.nodeMinColumnSpace(E[x+1],!0)-at-1,ut=(rt+at)/2|0);else x===0&&x===b-1?ut=tt[x]:x===0?(ft=E[x+1].column,at=ft-a.nodeMinColumnSpace(E[x+1],!0)-at-1,ut=Math.min(tt[x],at)):x===b-1?(ft=E[x-1].column,rt=ft+a.nodeMinColumnSpace(E[x-1],!1)+rt+1,ut=Math.max(tt[x],rt)):(ft=E[x-1].column,rt=ft+a.nodeMinColumnSpace(E[x-1],!1)+rt+1,ft=E[x+1].column,at=ft-a.nodeMinColumnSpace(E[x+1],!0)-at-1,rt<tt[x]&&tt[x]<at?ut=tt[x]:rt>=tt[x]?ut=rt:at<=tt[x]&&(ut=at));ut!==ot&&(z=!0,E[x].column=ut)}Xh(a,y,E),a.normalize()}function Hx(a,y){for(var x=!0,E=a.network.vertexes.iterator;E.next();){var b=E.value,z=a.nodeMinColumnSpace(b,!0),tt=a.nodeMinColumnSpace(b,!1);if(b.column-z<=y&&b.column+tt>=y){x=!1;break}}if(a=!1,x)for(E.reset();E.next();)x=E.value,x.column>y&&(--x.column,a=!0);return a}function Vx(a,y){var x=y+1,E,b=[],z=[];for(E=0;E<=a.Ia;E++)b[E]=!1,z[E]=!1;for(var tt=a.network.vertexes.iterator;tt.next();){E=tt.value;var ot=E.column-a.nodeMinColumnSpace(E,!0),rt=E.column+a.nodeMinColumnSpace(E,!1);ot<=y&&rt>=y&&(b[E.layer]=!0),ot<=x&&rt>=x&&(z[E.layer]=!0)}for(ot=!0,x=!1,E=0;E<=a.Ia;E++)ot=ot&&!(b[E]&&z[E]);if(ot)for(tt.reset();tt.next();)a=tt.value,a.column>y&&(--a.column,x=!0);return x}function $S(a,y){for(var x=0;x<=a.Ra;x++)for(;Hx(a,x););for(a.normalize(),x=0;x<a.Ra;x++)for(;Vx(a,x););a.normalize();var E;if(0<y)for(x=0;x<=a.Ra;x++){var b=Ks(a),z=xm(a);for(E=z+1;z<E;){E=z,tx(a,x,1);var tt=xm(a);tt>z?Oa(a,b):tt<z&&(z=tt,b=Ks(a))}}if(0>y)for(x=a.Ra;0<=x;x--)for(b=Ks(a),z=xm(a),E=z+1;z<E;)E=z,tx(a,x,-1),tt=xm(a),tt>z?Oa(a,b):tt<z&&(z=tt,b=Ks(a));a.normalize()}function tx(a,y,x){a.le=0;for(var E=a.network.vertexes.iterator;E.next();)E.value.component=-1;if(0<x)for(E.reset();E.next();){var b=E.value;b.column-a.nodeMinColumnSpace(b,!0)<=y&&(b.component=a.le)}if(0>x)for(E.reset();E.next();)b=E.value,b.column+a.nodeMinColumnSpace(b,!1)>=y&&(b.component=a.le);for(a.le++,E.reset();E.next();)y=E.value,y.component===-1&&(my(a,y,a.le,-1,!0,!0),a.le++);var z;for(y=[],z=0;z<a.le*a.le;z++)y[z]=!1;for(b=[],z=0;z<(a.Ia+1)*(a.Ra+1);z++)b[z]=-1;for(E.reset();E.next();){z=E.value;for(var tt=z.layer,ot=Math.max(0,z.column-a.nodeMinColumnSpace(z,!0)),rt=Math.min(a.Ra,z.column+a.nodeMinColumnSpace(z,!1));ot<=rt;ot++)b[tt*(a.Ra+1)+ot]=z.component}for(z=0;z<=a.Ia;z++){if(0<x)for(tt=0;tt<a.Ra;tt++)b[z*(a.Ra+1)+tt]!==-1&&b[z*(a.Ra+1)+tt+1]!==-1&&b[z*(a.Ra+1)+tt]!==b[z*(a.Ra+1)+tt+1]&&(y[b[z*(a.Ra+1)+tt]*a.le+b[z*(a.Ra+1)+tt+1]]=!0);if(0>x)for(tt=a.Ra;0<tt;tt--)b[z*(a.Ra+1)+tt]!==-1&&b[z*(a.Ra+1)+tt-1]!==-1&&b[z*(a.Ra+1)+tt]!==b[z*(a.Ra+1)+tt-1]&&(y[b[z*(a.Ra+1)+tt]*a.le+b[z*(a.Ra+1)+tt-1]]=!0)}for(b=[],z=0;z<a.le;z++)b[z]=!0;for(tt=[],tt.push(0);tt.length!==0;)if(rt=tt[tt.length-1],tt.pop(),b[rt])for(b[rt]=!1,z=0;z<a.le;z++)y[rt*a.le+z]&&tt.splice(0,0,z);if(0<x)for(E.reset();E.next();)a=E.value,b[a.component]&&--a.column;if(0>x)for(E.reset();E.next();)x=E.value,b[x.component]&&(x.column+=1)}function Ux(a){for(var y=Rn(),x=a.fl.length,E=0;E<=x;E++)y[E]=[];for(E=a.network.vertexes.iterator;E.next();){var b=E.value;y[x-b.layer][b.index]=b}x=new _e,Wx(y,x);var z=null,tt=null,ot=null,rt=null,at=(a.ve&1)!==0,ut=(a.ve&2)!==0,ft=(a.ve&4)!==0,vt=(a.ve&8)!==0;for(at&&(a.verticalAlignment(y,x,!0),z=Pm(a,y,!0,!1)),y.reverse(),ft&&(a.verticalAlignment(y,x,!1),ot=Pm(a,y,!1,!1)),E=ui(y),b=E.next();!b.done;b=E.next())b.value.reverse();vt&&(a.verticalAlignment(y,x,!1),rt=Pm(a,y,!1,!0)),y.reverse(),ut&&(a.verticalAlignment(y,x,!0),tt=Pm(a,y,!0,!0)),qn(y),a.u(z,tt,ot,rt),a.network.vertexes.each(function(xt){var Pt=Rn();at&&Pt.push(z.get(xt)),ut&&Pt.push(tt.get(xt)),ft&&Pt.push(ot.get(xt)),vt&&Pt.push(rt.get(xt)),Pt.sort(function(jt,Tt){return jt-Tt});var Mt=Pt.length;Mt=(Pt[Math.floor((Mt-1)/2)]+Pt[Math.ceil((Mt-1)/2)])/2,qn(Pt),xt.zc=Mt})}function Wx(a,y){for(var x=a.length,E=1;E<x-1;E++)for(var b=0,z=0,tt=a[E],ot=a[E+1],rt=0;z<ot.length;rt++){var at=ot[rt];t:{if(at.node===null){var ut=My(at);if(0<ut.length){ut=ut[0].node===null;break t}}ut=!1}var ft=ut;if(rt===ot.length-1||ft){for(ut=tt.length-1,ft&&(ut=My(at)[0].index);z<=rt;){if(at=ot[z],!at.bo){ft=[];for(var vt=ui(at.sourceEdgesArrayAccess),xt=vt.next();!xt.done;xt=vt.next())xt=xt.value,xt.valid&&ft.push(xt);at.bo=ft}for(at=ui(at.bo),ft=at.next();!ft.done;ft=at.next())ft=ft.value,vt=ft.fromVertex.index,(vt<b||vt>ut)&&y.add(ft);z++}b=ut}}}So.prototype.verticalAlignment=function(a,y,x){Yx(a),a=ui(a);for(var E=a.next();!E.done;E=a.next()){var b=-1;E=ui(E.value);for(var z=E.next();!z.done;z=E.next()){z=z.value;var tt=x?My(z):Qx(z),ot=tt.length;if(0<ot){tt.sort(function(ft,vt){return ft.vi-vt.vi});var rt=(ot-1)/2;for(ot=Math.floor(rt),rt=Math.ceil(rt);ot<=rt;ot++)if(z.align===z){var at=tt[ot],ut=void 0;ut=x?Fm(at,z):Fm(z,at),!y.contains(ut)&&b<at.vi&&(at.align=z,z.root=at.root,z.align=at.root,b=at.vi)}}}}};function Yx(a){for(var y=0;y<a.length;y++)for(var x=a[y],E=0;E<x.length;E++){var b=x[E];b.root=b,b.align=b,b.Tz=y,b.vi=E}}function Pm(a,y,x,E){for(var b=a.K===90||a.K===270,z=ui(y),tt=z.next();!tt.done;tt=z.next()){var ot=ui(tt.value);for(tt=ot.next();!tt.done;tt=ot.next())tt=tt.value,tt.sd=tt,tt.shift=1/0,tt.zc=NaN,tt.qg=0}for(tt=a.K===90||a.K===270,z=ui(y),ot=z.next();!ot.done;ot=z.next()){ot=ui(ot.value);for(var rt=ot.next();!rt.done;rt=ot.next())if(rt=rt.value,rt.root===rt){for(var at=0,ut=rt;ut.align!==rt;){var ft=ut.align,vt=tt?ut.width:ut.height,xt=tt?ft.width:ft.height;if(x){var Pt=Fm(ut,ft),Mt=Pt.portFromPos,jt=Pt.portToPos;Pt.link!==null&&(ut.node&&ut.node!==Pt.link.fromNode&&(Mt=tt?ut.focusX:ut.focusY),ft.node&&ft.node!==Pt.link.toNode&&(jt=tt?ft.focusX:ft.focusY))}else Pt=Fm(ft,ut),Mt=Pt.portToPos,jt=Pt.portFromPos,Pt.link!==null&&(ut.node&&ut.node!==Pt.link.toNode&&(Mt=tt?ut.focusX:ut.focusY),ft.node&&ft.node!==Pt.link.fromNode&&(jt=tt?ft.focusX:ft.focusY));vt=E?ut.qg+(vt-Mt)-(xt-jt):ut.qg+Mt-jt,ft.qg=vt,at=Math.min(at,vt),ut=ut.align}ut=rt;do ut.qg=ut.qg-at,ut=ut.align;while(ut!==rt)}}for(x=ui(y),tt=x.next();!tt.done;tt=x.next())for(z=ui(tt.value),tt=z.next();!tt.done;tt=z.next())tt=tt.value,tt.root===tt&&ex(a,tt,y);for(x=0;x<y.length;x++)if(!(0>=y[x].length)&&(tt=y[x][0],tt.sd===tt)){tt.sd.shift===1/0&&(tt.sd.shift=0),tt=x,ot=0;do{for(z=y[tt][ot];z.align!==z.root;)z=z.align,tt++,0<z.vi&&(ot=nx(z,y),ot.sd.shift=Math.min(ot.sd.shift,z.sd.shift+z.zc+z.qg-(ot.zc+ot.qg+(b?ot.width:ot.height)+a.columnSpacing)));ot=z.vi+1}while(tt<y.length&&ot<y[tt].length&&z.sd===y[tt][ot].sd)}for(a=new ri,y=ui(y),tt=y.next();!tt.done;tt=y.next())for(x=ui(tt.value),tt=x.next();!tt.done;tt=x.next())tt=tt.value,tt.zc=tt.zc+tt.sd.shift+tt.qg,z=b?tt.width:tt.height,a.add(tt,E?-tt.zc-z:tt.zc);return a}function ex(a,y,x){if(isNaN(y.zc)){y.zc=0;var E=y;do{if(0<E.vi){var b=nx(E,x),z=b.root;ex(a,z,x),y.sd===y&&(y.sd=z.sd);var tt=a.K===90||a.K===270?b.width:b.height;y.sd===z.sd&&(y.zc=Math.max(y.zc,z.zc+b.qg+tt-E.qg+a.columnSpacing))}E=E.align}while(E!==y);for(;E.align!==y;)E=E.align,E.zc=y.zc,E.sd=y.sd}}function nx(a,y){var x=a.Tz;return a=a.vi,1>a&&zt("Could not determine previous vertex in layer"),y[x][a-1]}So.prototype.u=function(a){for(var y=[],x=0;x<arguments.length;++x)y[x]=arguments[x];x=-1;for(var E=Rn(),b=Rn(),z=1/0,tt=0;4>tt;tt++)if(y[tt]){var ot=Zx(this,y[tt],E,b,tt);ot<z&&(x=tt,z=ot)}for(z={},tt=0;4>tt;z={delta:z.delta},tt++)y[tt]&&(z.delta=tt===0||tt===2?E[x]-E[tt]:b[x]-b[tt],z.delta!==0&&y[tt].each(function(rt){return function(at){at.value+=rt.delta}}(z)));qn(E),qn(b)};function Zx(a,y,x,E,b){if(!y||y.count===0)return x[b]=0,E[b]=0,1/0;var z=1/0,tt=-1/0;return y.each(function(ot){var rt=ot.key;ot=ot.value,rt=a.K===90||a.K===270?rt.width:rt.height,ot<z&&(z=ot),ot+rt>tt&&(tt=ot+rt)}),x[b]=z,E[b]=tt,tt-z}So.prototype.commitLayout=function(){if(this.setsPortSpots)for(var a=Cm(this,!0),y=Cm(this,!1),x=this.network.edges.iterator;x.next();){var E=x.value.link;E!==null&&(E.fromSpot=a,E.toSpot=y)}this.commitNodes(),this.Gu(),this.isRouting&&this.commitLinks()};function Cm(a,y){return a.K===270?y?as:qr:a.K===90?y?qr:as:a.K===180?y?Gs:ts:y?ts:Gs}So.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 E=0;E<=this.Ia;E++){var b=x;0>=this.he[E]+this.Ld[E]&&(b=0),0<E&&(y+=b/2),this.K===90||this.K===0?(y+=this.Ld[E],this.Kd[E]=y,y+=this.he[E]):(y+=this.he[E],this.Kd[E]=y,y+=this.Ld[E]),E<this.Ia&&(y+=b/2),this.Ta[E]=y}for(x=y,y=this.arrangementOrigin,E=0;E<=this.Ia;E++)this.K===270?this.Kd[E]=y.y+this.Kd[E]:this.K===90?(this.Kd[E]=y.y+x-this.Kd[E],this.Ta[E]=x-this.Ta[E]):this.K===180?this.Kd[E]=y.x+this.Kd[E]:(this.Kd[E]=y.x+x-this.Kd[E],this.Ta[E]=x-this.Ta[E]);x=this.ve!==0,a.reset(),E=this.K===270||this.K===90;for(var z=1/0,tt=b=1/0,ot=-1/0;a.next();){var rt=a.value,at=rt.layer,ut=rt.column|0;E?(tt=y.x+this.kc*ut,at=this.Kd[at]):(tt=this.Kd[at],at=y.y+this.kc*ut),rt.centerX=tt,rt.centerY=at,x&&isFinite(rt.zc)&&(E?rt.node?rt.x=y.x+rt.zc:rt.centerX=y.x+rt.zc:rt.node?rt.y=y.y+rt.zc:rt.centerY=y.y+rt.zc),z=Math.min(rt.x,z),b=Math.min(rt.y,b),E?(tt=z,ot=Math.max(ot,rt.bounds.right)):(tt=b,ot=Math.max(ot,rt.bounds.bottom))}for(this.xw=ot-tt,z=y.x-z,y=y.y-b,this.Rf=new It(x&&E?0:z,x&&!E?0:y),a.reset();a.next();)x=a.value,x.x+=z,x.y+=y,x.commit()},So.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 E=this.maxLayer;0<=E;E--)this.K===270?E===0?y.push(new be(0,0,x,Math.abs(this.Ta[0]))):y.push(new be(0,this.Ta[E-1],x,Math.abs(this.Ta[E-1]-this.Ta[E]))):this.K===90?E===0?y.push(new be(0,this.Ta[0],x,Math.abs(this.Ta[0]-a))):y.push(new be(0,this.Ta[E],x,Math.abs(this.Ta[E-1]-this.Ta[E]))):this.K===180?E===0?y.push(new be(0,0,Math.abs(this.Ta[0]),x)):y.push(new be(this.Ta[E-1],0,Math.abs(this.Ta[E-1]-this.Ta[E]),x)):E===0?y.push(new be(this.Ta[0],0,Math.abs(this.Ta[0]-a),x)):y.push(new be(this.Ta[E],0,Math.abs(this.Ta[E-1]-this.Ta[E]),x));this.commitLayers(y,this.Rf)},So.prototype.commitLayers=function(){},So.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 E=y,b=E.fromNode,z=E.toNode,tt=E.fromPort,ot=E.toPort;if(b!==null){var rt=b.findVisibleNode();rt!==null&&rt!==b&&(b=rt,tt=rt.port)}z!==null&&(rt=z.findVisibleNode(),rt!==null&&rt!==z&&(z=rt,ot=rt.port));var at=y.computeSpot(!0,tt);rt=y.computeSpot(!1,ot);var ut=x.fromVertex,ft=x.toVertex;if(x.valid)y.curve===wa&&y.pointsCount===4&&(ut.column===ft.column&&this.alignOption===0?(x=y.getLinkPoint(b,tt,at,!0,!1,z,ot),ot=y.getLinkPoint(z,ot,rt,!1,!1,b,tt),x.w()||x.set(b.actualBounds.center),ot.w()||ot.set(z.actualBounds.center),y.Fj(),y.yf(x.x,x.y),y.yf((2*x.x+ot.x)/3,(2*x.y+ot.y)/3),y.yf((x.x+2*ot.x)/3,(x.y+2*ot.y)/3),y.yf(ot.x,ot.y)):(x=E=!1,tt!==null&&at===lr&&(E=!0),ot!==null&&rt===lr&&(x=!0),(E||x)&&(rt=null,E&&(rt=y.getLinkPointFromPoint(b,tt,tt.ga(po),y.i(3),!0),rt.w()||rt.set(b.actualBounds.center),y.L(0,rt.x,rt.y)),b=null,x&&(b=y.getLinkPointFromPoint(z,ot,ot.ga(po),y.i(0),!1),b.w()||b.set(z.actualBounds.center),y.L(3,b.x,b.y)),rt&&(z=y.i(2),y.L(1,(2*rt.x+z.x)/3,(2*rt.y+z.y)/3)),b&&(z=y.i(1),y.L(2,(2*b.x+z.x)/3,(2*b.y+z.y)/3))))),y.zf();else if(ut.layer===ft.layer)y.zf();else{var vt=!1,xt=!1,Pt=this.ie,Mt=y.firstPickIndex+1;if(y.isOrthogonal){xt=!0;var jt=y.pointsCount;4<jt&&y.points.removeRange(2,jt-3)}else if(y.curve===wa)vt=!0,jt=y.pointsCount,4<jt&&y.points.removeRange(2,jt-3),jt===4&&(Mt=2);else{jt=y.pointsCount;var Tt=at===lr,Vt=rt===lr;2<jt&&Tt&&Vt?y.points.removeRange(1,jt-2):3<jt&&Tt&&!Vt?y.points.removeRange(1,jt-3):3<jt&&!Tt&&Vt?y.points.removeRange(2,jt-2):4<jt&&!Tt&&!Vt&&y.points.removeRange(2,jt-3)}if(x.rev){for(;ft!==null&&ut!==ft;){var Yt=jt=null;for(Tt=ft.sourceEdges.iterator;Tt.next()&&(Vt=Tt.value,Vt.link!==x.link||(jt=Vt.fromVertex,Yt=Vt.toVertex,jt.node!==null)););if(jt===null)break;if(jt!==ut){Tt=y.i(Mt-1).x,Vt=y.i(Mt-1).y;var Kt=jt.centerX,te=jt.centerY;if(xt)this.K===180||this.K===0?Mt===y.firstPickIndex+1?(y.m(Mt++,Tt,Vt),y.m(Mt++,Tt,te)):(Yt!==null?Yt.centerY:Vt)!==te&&(Yt=this.Ta[jt.layer-1]+this.Rf.x,y.m(Mt++,Yt,Vt),y.m(Mt++,Yt,te)):Mt===y.firstPickIndex+1?(y.m(Mt++,Tt,Vt),y.m(Mt++,Kt,Vt)):(Yt!==null?Yt.centerX:Tt)!==Kt&&(Yt=this.Ta[jt.layer-1]+this.Rf.y,y.m(Mt++,Tt,Yt),y.m(Mt++,Kt,Yt));else if(Mt===y.firstPickIndex+1){Yt=Math.max(10,this.he[ft.layer]);var me=Math.max(10,this.Ld[ft.layer]);if(vt)this.K===180?Kt<=ft.bounds.x?(ft=ft.bounds.x,y.m(Mt++,ft-Yt,te),y.m(Mt++,ft,te),y.m(Mt++,ft+me,te)):(y.m(Mt++,Kt-Yt,te),y.m(Mt++,Kt,te),y.m(Mt++,Kt+me,te)):this.K===90?te>=ft.bounds.bottom?(ft=ft.bounds.y+ft.bounds.height,y.m(Mt++,Kt,ft+me),y.m(Mt++,Kt,ft),y.m(Mt++,Kt,ft-Yt)):(y.m(Mt++,Kt,te+me),y.m(Mt++,Kt,te),y.m(Mt++,Kt,te-Yt)):this.K===270?te<=ft.bounds.y?(ft=ft.bounds.y,y.m(Mt++,Kt,ft-Yt),y.m(Mt++,Kt,ft),y.m(Mt++,Kt,ft+me)):(y.m(Mt++,Kt,te-Yt),y.m(Mt++,Kt,te),y.m(Mt++,Kt,te+me)):this.K===0&&(Kt>=ft.bounds.right?(ft=ft.bounds.x+ft.bounds.width,y.m(Mt++,ft+me,te),y.m(Mt++,ft,te),y.m(Mt++,ft-Yt,te)):(y.m(Mt++,Kt+me,te),y.m(Mt++,Kt,te),y.m(Mt++,Kt-Yt,te)));else{y.m(Mt++,Tt,Vt);var Cn=0;this.K===180||this.K===0?((this.K===180?Kt>=ft.bounds.right:Kt<=ft.bounds.x)&&(Cn=(this.K===0?-Yt:me)/2),y.m(Mt++,Tt+Cn,te)):((this.K===270?te>=ft.bounds.bottom:te<=ft.bounds.y)&&(Cn=(this.K===90?-Yt:me)/2),y.m(Mt++,Kt,Vt+Cn)),y.m(Mt++,Kt,te)}}else Yt=Math.max(10,this.he[jt.layer]),me=Math.max(10,this.Ld[jt.layer]),vt?this.K===180?(y.m(Mt++,Kt-Yt-Pt,te),y.m(Mt++,Math.min(Kt-Yt+Pt/2,Kt),te),y.m(Mt++,Kt,te),y.m(Mt++,Kt,te),y.m(Mt++,Math.max(Kt+me-Pt/2,Kt),te),y.m(Mt++,Kt+me+Pt,te)):this.K===90?(y.m(Mt++,Kt,te+me+Pt),y.m(Mt++,Kt,Math.max(te+me-Pt/2,te)),y.m(Mt++,Kt,te),y.m(Mt++,Kt,te),y.m(Mt++,Kt,Math.min(te-Yt+Pt/2,te)),y.m(Mt++,Kt,te-Yt-Pt)):this.K===270?(y.m(Mt++,Kt,te-Yt-Pt),y.m(Mt++,Kt,Math.min(te-Yt+Pt/2,te)),y.m(Mt++,Kt,te),y.m(Mt++,Kt,te),y.m(Mt++,Kt,Math.max(te+me-Pt/2,te)),y.m(Mt++,Kt,te+me+Pt)):(y.m(Mt++,Kt+me+Pt,te),y.m(Mt++,Math.max(Kt+me-Pt/2,Kt),te),y.m(Mt++,Kt,te),y.m(Mt++,Kt,te),y.m(Mt++,Math.min(Kt-Yt+Pt/2,Kt),te),y.m(Mt++,Kt-Yt-Pt,te)):y.m(Mt++,Kt,te)}ft=jt}(ot===null||at!==lr||xt)&&(Tt=y.i(Mt-1).x,Vt=y.i(Mt-1).y,Kt=y.i(Mt).x,te=y.i(Mt).y,xt?(Pt=this.Ld[ut.layer],this.K===180||this.K===0?(xt=Vt,xt>=ut.bounds.y&&xt<=ut.bounds.bottom&&(this.K===180?Kt>=ut.bounds.x:Kt<=ut.bounds.right)&&(ft=ut.centerX+(this.K===180?-Pt:Pt),xt<ut.bounds.y+ut.bounds.height/2?xt=ut.bounds.y-this.kc/2:xt=ut.bounds.bottom+this.kc/2,y.m(Mt++,ft,Vt),y.m(Mt++,ft,xt)),y.m(Mt++,Kt,xt)):(xt=Tt,xt>=ut.bounds.x&&xt<=ut.bounds.right&&(this.K===270?te>=ut.bounds.y:te<=ut.bounds.bottom)&&(ft=ut.centerY+(this.K===270?-Pt:Pt),xt<ut.bounds.x+ut.bounds.width/2?xt=ut.bounds.x-this.kc/2:xt=ut.bounds.right+this.kc/2,y.m(Mt++,Tt,ft),y.m(Mt++,xt,ft)),y.m(Mt++,xt,te)),y.m(Mt++,Kt,te)):vt?(Yt=Math.max(10,this.he[ut.layer]),me=Math.max(10,this.Ld[ut.layer]),this.K===180&&Kt>=ut.bounds.x?(ft=ut.bounds.x+ut.bounds.width,y.L(Mt-2,ft,Vt),y.L(Mt-1,ft+me,Vt)):this.K===90&&te<=ut.bounds.bottom?(ft=ut.bounds.y,y.L(Mt-2,Tt,ft),y.L(Mt-1,Tt,ft-Yt)):this.K===270&&te>=ut.bounds.y?(ft=ut.bounds.y+ut.bounds.height,y.L(Mt-2,Tt,ft),y.L(Mt-1,Tt,ft+me)):this.K===0&&Kt<=ut.bounds.right&&(ft=ut.bounds.x,y.L(Mt-2,ft,Vt),y.L(Mt-1,ft-Yt,Vt))):(Yt=Math.max(10,this.he[ut.layer]),me=Math.max(10,this.Ld[ut.layer]),xt=0,this.K===180||this.K===0?((this.K===180?Kt<=ut.bounds.x:Kt>=ut.bounds.right)&&(xt=(this.K===0?me:-Yt)/2),y.m(Mt++,Kt+xt,Vt)):((this.K===270?te<=ut.bounds.y:te>=ut.bounds.bottom)&&(xt=(this.K===90?me:-Yt)/2),y.m(Mt++,Tt,te+xt)),y.m(Mt++,Kt,te)))}else{for(;ut!==null&&ut!==ft;){for(Yt=jt=null,ut=ut.destinationEdges.iterator;ut.next()&&(Tt=ut.value,Tt.link!==x.link||(jt=Tt.toVertex,Yt=Tt.fromVertex,Yt.node!==null&&(Yt=null),jt.node!==null)););if(jt===null)break;jt!==ft&&(Tt=y.i(Mt-1).x,Vt=y.i(Mt-1).y,Kt=jt.centerX,te=jt.centerY,xt?this.K===180||this.K===0?(Yt!==null?Yt.centerY:Vt)!==te&&(Yt=this.Ta[jt.layer]+this.Rf.x,Mt===y.firstPickIndex+1&&(Yt=this.K===0?Math.max(Yt,Tt):Math.min(Yt,Tt)),y.m(Mt++,Yt,Vt),y.m(Mt++,Yt,te)):(Yt!==null?Yt.centerX:Tt)!==Kt&&(Yt=this.Ta[jt.layer]+this.Rf.y,Mt===y.firstPickIndex+1&&(Yt=this.K===90?Math.max(Yt,Vt):Math.min(Yt,Vt)),y.m(Mt++,Tt,Yt),y.m(Mt++,Kt,Yt)):(Yt=Math.max(10,this.he[jt.layer]),me=Math.max(10,this.Ld[jt.layer]),vt?this.K===180?(y.m(Mt++,Kt+me+Pt,te),y.m(Mt++,Math.max(Kt+me-Pt/2,Kt),te),y.m(Mt++,Kt,te),y.m(Mt++,Kt,te),y.m(Mt++,Math.min(Kt-Yt+Pt/2,Kt),te),y.m(Mt++,Kt-Yt-Pt,te)):this.K===90?(y.m(Mt++,Kt,te-Yt-Pt),y.m(Mt++,Kt,Math.min(te-Yt+Pt/2,te)),y.m(Mt++,Kt,te),y.m(Mt++,Kt,te),y.m(Mt++,Kt,Math.max(te+me-Pt/2,te)),y.m(Mt++,Kt,te+me+Pt)):this.K===270?(y.m(Mt++,Kt,te+me+Pt),y.m(Mt++,Kt,Math.max(te+me-Pt/2,te)),y.m(Mt++,Kt,te),y.m(Mt++,Kt,te),y.m(Mt++,Kt,Math.min(te-Yt+Pt/2,te)),y.m(Mt++,Kt,te-Yt-Pt)):(y.m(Mt++,Kt-Yt-Pt,te),y.m(Mt++,Math.min(Kt-Yt+Pt/2,Kt),te),y.m(Mt++,Kt,te),y.m(Mt++,Kt,te),y.m(Mt++,Math.max(Kt+me-Pt/2,Kt),te),y.m(Mt++,Kt+me+Pt,te)):this.K===180?(y.m(Mt++,Kt+me,te),y.m(Mt++,Kt-Yt,te)):this.K===90?(y.m(Mt++,Kt,te-Yt),y.m(Mt++,Kt,te+me)):this.K===270?(y.m(Mt++,Kt,te+me),y.m(Mt++,Kt,te-Yt)):(y.m(Mt++,Kt-Yt,te),y.m(Mt++,Kt+me,te)))),ut=jt}xt&&(Tt=y.i(Mt-1).x,Vt=y.i(Mt-1).y,Kt=y.i(Mt).x,te=y.i(Mt).y,this.K===180||this.K===0?Vt!==te&&(Yt=this.K===0?Math.min(Math.max((Kt+Tt)/2,this.Ta[ft.layer]+this.Rf.x),Kt):Math.max(Math.min((Kt+Tt)/2,this.Ta[ft.layer]+this.Rf.x),Kt),y.m(Mt++,Yt,Vt),y.m(Mt++,Yt,te)):Tt!==Kt&&(Yt=this.K===90?Math.min(Math.max((te+Vt)/2,this.Ta[ft.layer]+this.Rf.y),te):Math.max(Math.min((te+Vt)/2,this.Ta[ft.layer]+this.Rf.y),te),y.m(Mt++,Tt,Yt),y.m(Mt++,Kt,Yt)))}E!==null&&vt&&4<=y.pointsCount&&(tt!==null&&(tt=at===lr?y.getLinkPointFromPoint(b,tt,tt.ga(po),y.i(3),!0):y.i(0),at===lr&&(at=y.i(2),E=y.i(3),this.direction===90||this.direction===270?(y.L(1,(tt.x+at.x)/2,at.y),y.L(2,E.x,(at.y+E.y)/2)):(y.L(1,at.x,(tt.y+at.y)/2),y.L(2,(at.x+E.x)/2,E.y))),tt.w()||tt.set(b.actualBounds.center),y.L(0,tt.x,tt.y)),ot!==null&&(b=rt===lr?y.getLinkPointFromPoint(z,ot,ot.ga(po),y.i(y.pointsCount-4),!1):y.i(y.pointsCount-1),rt===lr&&(ot=y.i(y.pointsCount-3),rt=y.i(y.pointsCount-4),this.direction===90||this.direction===270?(y.L(y.pointsCount-2,(b.x+ot.x)/2,ot.y),y.L(y.pointsCount-2,rt.x,(ot.y+rt.y)/2)):(y.L(y.pointsCount-2,ot.x,(b.y+ot.y)/2),y.L(y.pointsCount-3,(ot.x+rt.x)/2,rt.y))),b.w()||b.set(z.actualBounds.center),y.L(y.pointsCount-1,b.x,b.y))),y.zf(),x.commit()}}}this.avoidOrthogonalOverlaps()},So.prototype.avoidOrthogonalOverlaps=function(){if(!(0>=this.linkSpacing)){for(var a=new $e,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 E=a.value;if(E!==null&&E.isOrthogonal)for(var b=2;b<E.pointsCount-3;b++){var z=E.i(b),tt=E.i(b+1);if(this.B(z.y,tt.y)&&!this.B(z.x,tt.x)){var ot=new Jh;ot.layer=Math.floor(z.y/2);var rt=E.i(0),at=E.i(E.pointsCount-1);if(ot.first=rt.x*rt.x+rt.y,ot.jc=at.x*at.x+at.y,ot.rd=Math.min(z.x,tt.x),ot.Ic=Math.max(z.x,tt.x),ot.index=b,ot.link=E,b+2<E.pointsCount){rt=E.i(b-1),at=E.i(b+2);var ut=0;rt.y<z.y?ut=at.y<z.y?3:z.x<tt.x?2:1:rt.y>z.y&&(ut=at.y>z.y?0:tt.x<z.x?2:1),ot.j=ut}x.push(ot)}}}if(1<x.length)for(x.sort(this.Vx),a=0;a<x.length;){for(z=x[a].layer,E=a+1;E<x.length&&x[E].layer===z;)E++;if(1<E-a)for(z=a;z<E;){for(tt=x[z].Ic,b=a+1;b<E&&x[b].rd<tt;)tt=Math.max(tt,x[b].Ic),b++;if(tt=b-z,1<tt){for(this.zi(x,this.Js,z,z+tt),ut=1,ot=x[z].jc,rt=z;rt<b;rt++)at=x[rt],at.jc!==ot&&(ut++,ot=at.jc);this.zi(x,this.Ux,z,z+tt);var ft=1;for(ot=x[z].first,rt=z;rt<b;rt++)at=x[rt],at.first!==ot&&(ft++,ot=at.first);for(rt=!0,at=ft,ut<ft?(rt=!1,at=ut,ot=x[z].jc,this.zi(x,this.Js,z,z+tt)):ot=x[z].first,ut=0,ft=z;ft<b;ft++){var vt=x[ft];(rt?vt.first:vt.jc)!==ot&&(ut++,ot=rt?vt.first:vt.jc);var xt=vt.link;z=xt.i(vt.index),tt=xt.i(vt.index+1);var Pt=this.linkSpacing*(ut-(at-1)/2);y++,xt.uh(),xt.L(vt.index,z.x,z.y+Pt),xt.L(vt.index+1,tt.x,tt.y+Pt),xt.zf()}}z=b}a=E}}else{for(y=0,x=[],a=a.iterator;a.next();)if(E=a.value,E!==null&&E.isOrthogonal)for(b=2;b<E.pointsCount-3;b++)z=E.i(b),tt=E.i(b+1),this.B(z.x,tt.x)&&!this.B(z.y,tt.y)&&(ot=new Jh,ot.layer=Math.floor(z.x/2),rt=E.i(0),at=E.i(E.pointsCount-1),ot.first=rt.x+rt.y*rt.y,ot.jc=at.x+at.y*at.y,ot.rd=Math.min(z.y,tt.y),ot.Ic=Math.max(z.y,tt.y),ot.index=b,ot.link=E,b+2<E.pointsCount&&(rt=E.i(b-1),at=E.i(b+2),ut=0,rt.x<z.x?ut=at.x<z.x?3:z.y<tt.y?2:1:rt.x>z.x&&(ut=at.x>z.x?0:tt.y<z.y?2:1),ot.j=ut),x.push(ot));if(1<x.length)for(x.sort(this.Vx),a=0;a<x.length;){for(z=x[a].layer,E=a+1;E<x.length&&x[E].layer===z;)E++;if(1<E-a)for(z=a;z<E;){for(tt=x[z].Ic,b=a+1;b<E&&x[b].rd<tt;)tt=Math.max(tt,x[b].Ic),b++;if(tt=b-z,1<tt){for(this.zi(x,this.Js,z,z+tt),ut=1,ot=x[z].jc,rt=z;rt<b;rt++)at=x[rt],at.jc!==ot&&(ut++,ot=at.jc);for(this.zi(x,this.Ux,z,z+tt),ft=1,ot=x[z].first,rt=z;rt<b;rt++)at=x[rt],at.first!==ot&&(ft++,ot=at.first);for(rt=!0,at=ft,ut<ft?(rt=!1,at=ut,ot=x[z].jc,this.zi(x,this.Js,z,z+tt)):ot=x[z].first,ut=0,ft=z;ft<b;ft++)vt=x[ft],(rt?vt.first:vt.jc)!==ot&&(ut++,ot=rt?vt.first:vt.jc),xt=vt.link,z=xt.i(vt.index),tt=xt.i(vt.index+1),Pt=this.linkSpacing*(ut-(at-1)/2),y++,xt.uh(),xt.L(vt.index,z.x+Pt,z.y),xt.L(vt.index+1,tt.x+Pt,tt.y),xt.zf()}z=b}a=E}}}},wt=So.prototype,wt.Vx=function(a,y){return a instanceof Jh&&y instanceof Jh&&a!==y?a.layer<y.layer?-1:a.layer>y.layer?1:a.rd<y.rd?-1:a.rd>y.rd?1:a.Ic<y.Ic?-1:a.Ic>y.Ic?1:0:0},wt.Ux=function(a,y){return a instanceof Jh&&y instanceof Jh&&a!==y?a.first<y.first?-1:a.first>y.first||a.j<y.j?1:a.j>y.j||a.rd<y.rd?-1:a.rd>y.rd?1:a.Ic<y.Ic?-1:a.Ic>y.Ic?1:0:0},wt.Js=function(a,y){return a instanceof Jh&&y instanceof Jh&&a!==y?a.jc<y.jc?-1:a.jc>y.jc||a.j<y.j?1:a.j>y.j||a.rd<y.rd?-1:a.rd>y.rd?1:a.Ic<y.Ic?-1:a.Ic>y.Ic?1:0:0},wt.B=function(a,y){return a-=y,-1<a&&1>a},wt.zi=function(a,y,x,E){var b=a.length,z=E-x;if(!(1>=z))if((0>x||x>=b-1)&&zt("not in range 0 <= from < length: "+x),z===2)E=a[x],b=a[x+1],0<y(E,b)&&(a[x]=b,a[x+1]=E);else if(x===0)if(E>=b)a.sort(y);else for(x=a.slice(0,E),x.sort(y),y=0;y<E;y++)a[y]=x[y];else if(E>=b)for(E=a.slice(x),E.sort(y),y=x;y<b;y++)a[y]=E[y-x];else for(b=a.slice(x,E),b.sort(y),y=x;y<E;y++)a[y]=b[y-x]};function Qh(a,y){var x=a.tc[y];if(x>=a.He.length){for(var E=[],b=0;b<a.He.length;b++)E[b]=a.He[b];a.He=E}for(a.He[x]===void 0||a.He[x]===null?E=[]:(E=a.He[x],a.He[x]=null),a=a.fl[y],y=0;y<a.length;y++)x=a[y],E[x.index]=x;return E}function Xh(a,y,x){a.He[a.tc[y]]=x}qt.Object.defineProperties(So.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!==Sy&&a!==Em&&a!==vp||(this.Dk=a,this.C())}},layeringOption:{get:function(){return this.Zk},set:function(a){this.Zk===a||a!==Am&&a!==xy&&a!==wy||(this.Zk=a,this.C())}},initializeOption:{get:function(){return this.Qk},set:function(a){this.Qk===a||a!==Mm&&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!==Lm&&a!==Ay||(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 Em=new De(So,"CycleDepthFirst",0),Sy=new De(So,"CycleGreedy",1),vp=new De(So,"CycleFromLayers",2),Am=new De(So,"LayerOptimalLinkLength",0),xy=new De(So,"LayerLongestPathSink",1),wy=new De(So,"LayerLongestPathSource",2),Mm=new De(So,"InitDepthFirstOut",0),Py=new De(So,"InitDepthFirstIn",1),Cy=new De(So,"InitNaive",2),Ey=new De(So,"AggressiveNone",0),Lm=new De(So,"AggressiveLess",1),Ay=new De(So,"AggressiveMore",2),Kx=8;So.className="LayeredDigraphLayout",So.CycleDepthFirst=Em,So.CycleGreedy=Sy,So.CycleFromLayers=vp,So.LayerOptimalLinkLength=Am,So.LayerLongestPathSink=xy,So.LayerLongestPathSource=wy,So.InitDepthFirstOut=Mm,So.InitDepthFirstIn=Py,So.InitNaive=Cy,So.AggressiveNone=Ey,So.AggressiveLess=Lm,So.AggressiveMore=Ay,So.PackNone=0,So.PackExpand=1,So.PackStraighten=2,So.PackMedian=4,So.PackAll=15,So.AlignNone=0,So.AlignUpperLeft=1,So.AlignUpperRight=2,So.AlignLowerLeft=4,So.AlignLowerRight=8,So.AlignAll=15;function Jh(){this.index=this.Ic=this.rd=this.jc=this.first=this.layer=0,this.link=null,this.j=0}Jh.className="SegInfo";function Og(a){Do.call(this,a)}re(Og,Do),Og.prototype.createVertex=function(){return new ja(this)},Og.prototype.createEdge=function(){return new yp(this)},Og.className="LayeredDigraphNetwork";function ja(a){Lr.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}re(ja,Lr);function ix(a,y){return a.index-y.index}function Fm(a,y){if(!a.$n){for(var x=[],E=ui(a.destinationEdgesArrayAccess),b=E.next();!b.done;b=E.next())b=b.value,b.valid&&x.push(b);a.$n=x}for(a=ui(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=ui(a.sourceEdgesArrayAccess),E=x.next();!E.done;E=x.next())E=E.value,E.valid&&y.push(E.fromVertex);y.sort(ix),a.co=y}return a.co}function Qx(a){if(!a.ao){for(var y=[],x=ui(a.destinationEdgesArrayAccess),E=x.next();!E.done;E=x.next())E=E.value,E.valid&&y.push(E.toVertex);y.sort(ix),a.ao=y}return a.ao}ja.prototype.Cl=function(a){Lr.prototype.Cl.call(this,a),this.bo=this.co=null},ja.prototype.Kl=function(a){Lr.prototype.Kl.call(this,a),this.bo=this.co=null},ja.prototype.zl=function(a){Lr.prototype.zl.call(this,a),this.$n=this.ao=null},ja.prototype.Jl=function(a){Lr.prototype.Jl.call(this,a),this.$n=this.ao=null},qt.Object.defineProperties(ja.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)}}}),ja.prototype.deleteDestinationEdge=ja.prototype.Jl,ja.prototype.addDestinationEdge=ja.prototype.zl,ja.prototype.deleteSourceEdge=ja.prototype.Kl,ja.prototype.addSourceEdge=ja.prototype.Cl,ja.className="LayeredDigraphVertex";function yp(a){ua.call(this,a),this.j=this.ia=this.Ha=!1,this.V=this.u=NaN,this.F=this.o=0}re(yp,ua),qt.Object.defineProperties(yp.prototype,{fromVertex:{get:function(){return this.kd},set:function(a){this.kd!==a&&(this.kd=a)}},toVertex:{get:function(){return this.qd},set:function(a){this.qd!==a&&(this.qd=a)}},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)}}}),yp.className="LayeredDigraphEdge";function Ri(a){Ho.call(this),this.Ub=new _e,this.Wn=bm,this.ud=nu,this.vo=Tm,this.Bq=jy,this.$v=[],this.td=!0,this.Rb=Im,this.$d=new Ee(10,10).freeze();var y=new Mc(this);this.W=new Qa(y),this.Y=new Qa(y),this.ru=[],a&&Object.assign(this,a)}re(Ri,Ho),Ri.prototype.cloneProtected=function(a){Ho.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)},Ri.prototype.qb=function(a){a.classType===Ri?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):Ho.prototype.qb.call(this,a)},Ri.prototype.createNetwork=function(){return new Mc(this)},Ri.prototype.makeNetwork=function(a){function y(E){if(E instanceof Fn)return!E.isLinkLabel&&E.category!=="Comment";if(E instanceof rn){var b=E.fromNode;return b===null||b.isLinkLabel||b.category==="Comment"?!1:(E=E.toNode,!(E===null||E.isLinkLabel||E.category==="Comment"))}return!1}var x=this.createNetwork();return a instanceof ye?(x.lg(a.nodes,!0,y),x.lg(a.links,!0,y)):a instanceof Ai?x.lg(a.memberParts,!1,y):x.lg(a.iterator,!1,y),x},Ri.prototype.doLayout=function(a){this.network===null&&(this.network=this.makeNetwork(a)),this.arrangement!==Om&&(this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin));var y=this.diagram;if(y===null&&a instanceof ye&&(y=a),this.path===bm&&y!==null?this.ud=y.isTreePathToChildren?nu:Ec:this.ud=this.path===bm?nu: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 _e,y=this.Ub.iterator;y.next();){var x=y.value;x instanceof Fn?(x=this.network.ki(x),x!==null&&a.add(x)):x instanceof Qa&&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=Xx(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 Qa&&sx(this,y);for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof Qa&&ax(this,y);for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof Qa&&lx(this,y);if(this.Cu(),this.layerStyle===jm){for(a=[],y=this.network.vertexes.iterator;y.next();){x=y.value;var E=x.parent;E===null&&(E=x),E=E.angle===0||E.angle===180;var b=a[x.level];b===void 0&&(b=0),a[x.level]=Math.max(b,E?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,E=x.parent,E===null&&(E=x),E.angle===0||E.angle===180?(E.angle===180&&(x.focusX+=a[x.level]-x.width),x.width=a[x.level]):(E.angle===270&&(x.focusY+=a[x.level]-x.height),x.height=a[x.level])}else if(this.layerStyle===Ry)for(a=this.network.vertexes.iterator;a.next();){for(y=a.value,x=y.angle===0||y.angle===180,E=-1,b=0;b<y.children.length;b++){var z=y.children[b];E=Math.max(E,x?z.width:z.height)}if(0<=E)for(b=0;b<y.children.length;b++)z=y.children[b],x?(y.angle===180&&(z.focusX+=E-z.width),z.width=E):(y.angle===270&&(z.focusY+=E-z.height),z.height=E)}for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof Qa&&this.layoutTree(y);this.arrangeTrees(),this.updateParts()}this.network=null,this.Ub=new _e,this.isValidLayout=!0};function Xx(a){var y=new _e;for(a=a.iterator;a.next();){var x=a.value;x.initialized||y.add(x)}return y}Ri.prototype.findRoots=function(){for(var a=this.network.vertexes,y=a.iterator;y.next();){var x=y.value;switch(this.ud){case nu:x.sourceEdges.count===0&&this.Ub.add(x);break;case Ec: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,E=null;for(y=y.iterator;y.next();){var b=y.value;switch(a.ud){case nu:b.sourceEdges.count<x&&(x=b.sourceEdges.count,E=b);break;case Ec:b.destinationEdges.count<x&&(x=b.destinationEdges.count,E=b);break;default:zt("Unhandled path value "+a.ud.toString())}}return E}function Ly(a,y){if(y!==null){switch(a.ud){case nu:if(0<y.destinationEdges.count){for(var x=new $e,E=y.destinationVertexes;E.next();){var b=E.value;rx(a,y,b)&&x.add(b)}0<x.count&&(y.children=x.Fa())}break;case Ec:if(0<y.sourceEdges.count){for(x=new $e,E=y.sourceVertexes;E.next();)b=E.value,rx(a,y,b)&&x.add(b);0<x.count&&(y.children=x.Fa())}break;default:zt("Unhandled path value"+a.ud.toString())}for(x=y.children,E=x.length,b=0;b<E;b++){var z=x[b];z.initialized=!0,z.level=y.level+1,z.parent=y,a.Ub.remove(z)}for(y=0;y<E;y++)Ly(a,x[y])}}function rx(a,y,x){if(x.initialized){if(y===null)var E=!1;else{for(E=y.parent;E!==null&&E!==x;)E=E.parent;E=E===x}if(E||x.level>y.level)return!1;a.removeChild(x.parent,x)}return!0}Ri.prototype.removeChild=function(a,y){if(a!==null&&y!==null){for(var x=a.children,E=0,b=0;b<x.length;b++)x[b]===y&&E++;if(0<E){E=Array(x.length-E);for(var z=b=0;z<x.length;z++)x[z]!==y&&(E[b++]=x[z]);a.children=E}}};function sx(a,y){if(y!==null){a.initializeTreeVertexValues(y),y.alignment===ru&&a.sortTreeVertexChildren(y);for(var x=0,E=y.childrenCount,b=0,z=y.children,tt=z.length,ot=0;ot<tt;ot++){var rt=z[ot];sx(a,rt),x+=rt.descendantCount+1,E=Math.max(E,rt.maxChildrenCount),b=Math.max(b,rt.maxGenerationCount)}y.descendantCount=x,y.maxChildrenCount=E,y.maxGenerationCount=0<E?b+1:0}}function Jx(a,y){switch(a.vo){default:case Tm:return y.parent!==null?y.parent:a.W;case Iy:return y.parent===null?a.W:y.parent.parent===null?a.Y:y.parent;case Ty:return y.parent!==null?y.parent.parent!==null?y.parent.parent:a.Y:a.W;case Dy:var x=!0;if(y.childrenCount===0)x=!1;else for(var E=y.children,b=E.length,z=0;z<b;z++)if(0<E[z].childrenCount){x=!1;break}return x&&y.parent!==null?a.Y:y.parent!==null?y.parent:a.W}}Ri.prototype.initializeTreeVertexValues=function(a){if(a.copyInheritedPropertiesFrom(Jx(this,a)),a.parent!==null&&a.parent.alignment===ru){for(var y=a.angle,x=a.parent.children,E=0;E<x.length&&a!==x[E];)E++;E%2===0?E!==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 ax(a,y){if(y!==null){a.assignTreeVertexValues(y),y=y.children;for(var x=y.length,E=0;E<x;E++)ax(a,y[E])}}Ri.prototype.assignTreeVertexValues=function(){};function lx(a,y){if(y!==null){y.alignment!==ru&&a.sortTreeVertexChildren(y),y=y.children;for(var x=y.length,E=0;E<x;E++)lx(a,y[E])}}Ri.prototype.sortTreeVertexChildren=function(a){switch(a.sorting){case jg:break;case xp:a.children.reverse();break;case wp:a.children.sort(a.comparer);break;case Pp:a.children.sort(a.comparer),a.children.reverse();break;default:zt("Unhandled sorting value "+a.sorting.toString())}},Ri.prototype.Cu=function(){if(this.comments)for(var a=this.network.vertexes.iterator;a.next();)this.addComments(a.value)},Ri.prototype.addComments=function(a){var y=a.angle,x=a.parent,E=0,b=!1;x!==null&&(E=x.angle,b=x.alignment,b=qh(b)),y=y===90||y===270,E=E===90||E===270,x=a.childrenCount===0;var z=0,tt=0,ot=0,rt=a.commentSpacing;if(a.node!==null)for(var at=a.node.Mu();at.next();){var ut=at.value;ut.category==="Comment"&&ut.canLayout()&&(a.comments===null&&(a.comments=[]),a.comments.push(ut),ut.Va(),ut=ut.measuredBounds,y&&!x||!b&&!E&&x||b&&E&&x?(z=Math.max(z,ut.width),tt+=ut.height+Math.abs(ot)):(z+=ut.width+Math.abs(ot),tt=Math.max(tt,ut.height)),ot=rt)}a.comments!==null&&(y&&!x||!b&&!E&&x||b&&E&&x?(z+=Math.abs(a.commentMargin),tt=Math.max(0,tt-a.height)):(tt+=Math.abs(a.commentMargin),z=Math.max(0,z-a.width)),b=be.allocAt(0,0,a.bounds.width+z,a.bounds.height+tt),a.bounds=b,be.free(b))};function qh(a){return a===sh||a===ru||a===ah||a===Au}function Sp(a){return a===sh||a===ru}function Fy(a){var y=a.parent;if(y!==null){var x=y.alignment;if(qh(x)){if(Sp(x)){for(y=y.children,x=0;x<y.length&&a!==y[x];)x++;return x%2===0}if(x===ah)return!0}}return!1}Ri.prototype.layoutComments=function(a){if(a.comments!==null){var y=a.node.measuredBounds,x=a.parent,E=a.angle,b=0,z=!1;x!==null&&(b=x.angle,z=x.alignment,z=qh(z)),E=E===90||E===270,x=b===90||b===270;for(var tt=a.childrenCount===0,ot=Fy(a),rt=0,at=a.comments,ut=at.length,ft=It.alloc(),vt=0;vt<ut;vt++){var xt=at[vt],Pt=xt.measuredBounds;if(E&&!tt||!z&&!x&&tt||z&&x&&tt){if(135<b&&!z||x&&ot)if(0<=a.commentMargin)for(ft.h(a.bounds.x-a.commentMargin-Pt.width,a.bounds.y+rt),xt.move(ft),xt=xt.Sd();xt.next();){var Mt=xt.value;Mt.fromSpot=Gs,Mt.toSpot=ts}else for(ft.h(a.bounds.x+2*a.focus.x-a.commentMargin,a.bounds.y+rt),xt.move(ft),xt=xt.Sd();xt.next();)Mt=xt.value,Mt.fromSpot=ts,Mt.toSpot=Gs;else if(0<=a.commentMargin)for(ft.h(a.bounds.x+2*a.focus.x+a.commentMargin,a.bounds.y+rt),xt.move(ft),xt=xt.Sd();xt.next();)Mt=xt.value,Mt.fromSpot=ts,Mt.toSpot=Gs;else for(ft.h(a.bounds.x+a.commentMargin-Pt.width,a.bounds.y+rt),xt.move(ft),xt=xt.Sd();xt.next();)Mt=xt.value,Mt.fromSpot=Gs,Mt.toSpot=ts;rt=0<=a.commentSpacing?rt+(Pt.height+a.commentSpacing):rt+(a.commentSpacing-Pt.height)}else{if(135<b&&!z||!x&&ot)if(0<=a.commentMargin)for(ft.h(a.bounds.x+rt,a.bounds.y-a.commentMargin-Pt.height),xt.move(ft),xt=xt.Sd();xt.next();)Mt=xt.value,Mt.fromSpot=as,Mt.toSpot=qr;else for(ft.h(a.bounds.x+rt,a.bounds.y+2*a.focus.y-a.commentMargin),xt.move(ft),xt=xt.Sd();xt.next();)Mt=xt.value,Mt.fromSpot=qr,Mt.toSpot=as;else if(0<=a.commentMargin)for(ft.h(a.bounds.x+rt,a.bounds.y+2*a.focus.y+a.commentMargin),xt.move(ft),xt=xt.Sd();xt.next();)Mt=xt.value,Mt.fromSpot=qr,Mt.toSpot=as;else for(ft.h(a.bounds.x+rt,a.bounds.y+a.commentMargin-Pt.height),xt.move(ft),xt=xt.Sd();xt.next();)Mt=xt.value,Mt.fromSpot=as,Mt.toSpot=qr;rt=0<=a.commentSpacing?rt+(Pt.width+a.commentSpacing):rt+(a.commentSpacing-Pt.width)}}if(It.free(ft),y=rt-a.commentSpacing-(E?y.height:y.width),this.ud===nu)for(a=a.destinationEdges;a.next();)b=a.value.link,b===null||b.isAvoiding||(b.fromEndSegmentLength=0<y?y:NaN);else for(a=a.sourceEdges;a.next();)b=a.value.link,b===null||b.isAvoiding||(b.toEndSegmentLength=0<y?y:NaN)}},Ri.prototype.layoutTree=function(a){if(a!==null){for(var y=a.children,x=y.length,E=0;E<x;E++)this.layoutTree(y[E]);switch(a.compaction){case Dm:ux(this,a);break;case Cp:if(a.alignment===ru)ux(this,a);else if(a.childrenCount===0)E=a.parent,x=!1,y=0,E!==null&&(y=E.angle,x=E.alignment,x=qh(x)),E=Fy(a),a.S.h(0,0),a.Da.h(a.width,a.height),a.parent===null||a.comments===null||(y!==180&&y!==270||x)&&!E?a.la.h(0,0):y===180&&!x||(y===90||y===270)&&E?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 b=ul(a);y=b===90||b===270;var z=0,tt=a.children,ot=tt.length;for(x=0;x<ot;x++)E=tt[x],z=Math.max(z,y?E.Da.width:E.Da.height);var rt=a.alignment;E=rt===iu;var at=rt===ou,ut=qh(rt),ft=Math.max(0,a.breadthLimit);x=this.computeLayerSpacing(a);var vt=a.nodeSpacing,xt=this.computeNodeIndent(a),Pt=a.rowSpacing,Mt=0;(E||at||a.hm||a.im&&a.maxGenerationCount===1)&&(Mt=Math.max(0,a.rowIndent)),E=a.width;var jt=a.height,Tt=0,Vt=0,Yt=0,Kt=null,te=null,me=0,Cn=0,Hn=0,In=0,on=0,ze=0,Ei=0,Si=0;if(ut&&!Sp(rt)&&135<b&&tt.reverse(),Sp(rt))if(1<ot)for(var lo=0;lo<ot;lo++)lo%2===0&&lo!==ot-1&&(Si=Math.max(Si,y?tt[lo].Da.width:tt[lo].Da.height));else ot===1&&(Si=y?tt[0].Da.width:tt[0].Da.height);if(ut){switch(rt){case sh:Vt=135>b?hx(this,a,tt,Si,Tt,Vt):dx(this,a,tt,Si,Tt,Vt),Si=Vt.x,Tt=Vt.width,Vt=Vt.height;break;case ah:for(Kt=0;Kt<ot;Kt++)te=tt[Kt],ft=te.Da,Yt=ze===0?0:Pt,y?(te.S.h(z-ft.width,In+Yt),Tt=Math.max(Tt,ft.width),Vt=Math.max(Vt,In+Yt+ft.height),In+=Yt+ft.height):(te.S.h(Hn+Yt,z-ft.height),Tt=Math.max(Tt,Hn+Yt+ft.width),Vt=Math.max(Vt,ft.height),Hn+=Yt+ft.width),ze++;break;case Au:for(Kt=0;Kt<ot;Kt++)te=tt[Kt],z=te.Da,ft=ze===0?0:Pt,y?(te.S.h(vt/2+a.focus.x,In+ft),Tt=Math.max(Tt,z.width),Vt=Math.max(Vt,In+ft+z.height),In+=ft+z.height):(te.S.h(Hn+ft,vt/2+a.focus.y),Tt=Math.max(Tt,Hn+ft+z.width),Vt=Math.max(Vt,z.height),Hn+=ft+z.width),ze++}Kt=_s(this,2),te=_s(this,2),y?(Kt[0].h(0,0),Kt[1].h(0,Vt),te[0].h(Tt,0)):(Kt[0].h(0,0),Kt[1].h(Tt,0),te[0].h(0,Vt)),te[1].h(Tt,Vt)}else for(lo=0;lo<ot;lo++){var ko=tt[lo],Dr=ko.Da;if(y){0<ft&&0<ze&&Hn+vt+Dr.width>ft&&(Hn<z&&Id(a,rt,z-Hn,0,Ei,lo-1),on++,ze=0,Ei=lo,Yt=Vt,Hn=0,In=135<b?-Vt-Pt:Vt+Pt),Bm(this,ko,0,In);var zr=0;if(ze===0)Kt=ko.Yo,te=ko.kp,me=Dr.width,Cn=Dr.height,(Kt===null||te===null||b!==ul(ko))&&(Kt=_s(this,2),te=_s(this,2),Kt[0].h(0,0),Kt[1].h(0,Cn),te[0].h(me,0),te[1].h(me,Cn));else{var ms=Rn();Cn=cx(this,a,ko,Kt,te,me,Cn,ms),zr=Cn.x,Kt=ms[0],te=ms[1],me=Cn.width,Cn=Cn.height,qn(ms),Hn<Dr.width&&0>zr&&(Cc(a,-zr,0,Ei,lo-1),Nm(Kt,-zr,0),Nm(te,-zr,0),zr=0)}ko.S.h(zr,In),Tt=Math.max(Tt,me),Vt=Math.max(Vt,Yt+(on===0?0:Pt)+Dr.height),Hn=me}else 0<ft&&0<ze&&In+vt+Dr.height>ft&&(In<z&&Id(a,rt,0,z-In,Ei,lo-1),on++,ze=0,Ei=lo,Yt=Tt,In=0,Hn=135<b?-Tt-Pt:Tt+Pt),Bm(this,ko,Hn,0),zr=0,ze===0?(Kt=ko.Yo,te=ko.kp,me=Dr.width,Cn=Dr.height,(Kt===null||te===null||b!==ul(ko))&&(Kt=_s(this,2),te=_s(this,2),Kt[0].h(0,0),Kt[1].h(me,0),te[0].h(0,Cn),te[1].h(me,Cn))):(ms=Rn(),Cn=cx(this,a,ko,Kt,te,me,Cn,ms),zr=Cn.x,Kt=ms[0],te=ms[1],me=Cn.width,Cn=Cn.height,qn(ms),In<Dr.height&&0>zr&&(Cc(a,0,-zr,Ei,lo-1),Nm(Kt,0,-zr),Nm(te,0,-zr),zr=0)),ko.S.h(Hn,zr),Vt=Math.max(Vt,Cn),Tt=Math.max(Tt,Yt+(on===0?0:Pt)+Dr.width),In=Cn;ze++}switch(0<on&&(y?(Vt+=Math.max(0,x),Hn<Tt&&Id(a,rt,Tt-Hn,0,Ei,ot-1),0<Mt&&(at||Cc(a,Mt,0,0,ot-1),Tt+=Mt)):(Tt+=Math.max(0,x),In<Vt&&Id(a,rt,0,Vt-In,Ei,ot-1),0<Mt&&(at||Cc(a,0,Mt,0,ot-1),Vt+=Mt))),Mt=at=0,rt){case Rg:y?at+=Tt/2-a.focus.x-xt/2:Mt+=Vt/2-a.focus.y-xt/2;break;case Ac:0<on?y?at+=Tt/2-a.focus.x-xt/2:Mt+=Vt/2-a.focus.y-xt/2:y?(Si=tt[0].S.x+tt[0].la.x,at+=Si+(tt[ot-1].S.x+tt[ot-1].la.x+2*tt[ot-1].focus.x-Si)/2-a.focus.x-xt/2):(Si=tt[0].S.y+tt[0].la.y,Mt+=Si+(tt[ot-1].S.y+tt[ot-1].la.y+2*tt[ot-1].focus.y-Si)/2-a.focus.y-xt/2);break;case iu:y?(at-=xt,Tt+=xt):(Mt-=xt,Vt+=xt);break;case ou:y?(at+=Tt-a.width+xt,Tt+=xt):(Mt+=Vt-a.height+xt,Vt+=xt);break;case sh:y?1<ot?at+=Si+vt/2-a.focus.x:at+=tt[0].focus.x-a.focus.x+tt[0].la.x:1<ot?Mt+=Si+vt/2-a.focus.y:Mt+=tt[0].focus.y-a.focus.y+tt[0].la.y;break;case ah:y?at+=Tt+vt/2-a.focus.x:Mt+=Vt+vt/2-a.focus.y;break;case Au:break;default:Vt=this.customAlignment(a,at,Mt,Tt,Vt),at=Vt[0],Mt=Vt[1],Tt=Vt[2],Vt=Vt[3]}for(xt=0;xt<ot;xt++)Si=tt[xt],y?Si.S.h(Si.S.x+Si.la.x-at,Si.S.y+(135<b?(ut?-Vt:-Si.Da.height)+Si.la.y-x:jt+x+Si.la.y)):Si.S.h(Si.S.x+(135<b?(ut?-Tt:-Si.Da.width)+Si.la.x-x:E+x+Si.la.x),Si.S.y+Si.la.y-Mt);if(ot=tt=0,ut?y?(Tt=ky(a,Tt,at),0>at&&(at=0),135<b&&(Mt+=Vt+x),Vt+=jt+x,rt===Au&&(tt+=vt/2+a.focus.x),ot+=jt+x):(135<b&&(at+=Tt+x),Tt+=E+x,Vt=By(a,Vt,Mt),0>Mt&&(Mt=0),rt===Au&&(ot+=vt/2+a.focus.y),tt+=E+x):y?(a.comments===null?E>Tt&&(Tt=Ny(rt,E-Tt,0),tt=Tt.x,ot=Tt.y,Tt=E,at=0):Tt=ky(a,Tt,at),0>at&&(tt-=at,at=0),135<b&&(Mt+=Vt+x),Vt=Math.max(Math.max(Vt,jt),Vt+jt+x),ot+=jt+x):(135<b&&(at+=Tt+x),Tt=Math.max(Math.max(Tt,E),Tt+E+x),a.comments===null?jt>Vt&&(Vt=Ny(rt,0,jt-Vt),tt=Vt.x,ot=Vt.y,Vt=jt,Mt=0):Vt=By(a,Vt,Mt),0>Mt&&(ot-=Mt,Mt=0),tt+=E+x),0<on)b=_s(this,4),on=_s(this,4),y?(b[2].h(0,jt+x),b[3].h(b[2].x,Vt),on[2].h(Tt,b[2].y),on[3].h(on[2].x,b[3].y)):(b[2].h(E+x,0),b[3].h(Tt,b[2].y),on[2].h(b[2].x,Vt),on[3].h(b[3].x,on[2].y));else{for(b=_s(this,Kt.length+2),on=_s(this,te.length+2),rt=0;rt<Kt.length;rt++)ut=Kt[rt],b[rt+2].h(ut.x+tt,ut.y+ot);for(rt=0;rt<te.length;rt++)ut=te[rt],on[rt+2].h(ut.x+tt,ut.y+ot)}y?(b[0].h(at,0),b[1].h(b[0].x,jt),b[2].y<b[1].y&&(b[2].x>b[0].x?b[2].assign(b[1]):b[1].assign(b[2])),b[3].y<b[2].y&&(b[3].x>b[0].x?b[3].assign(b[2]):b[2].assign(b[3])),on[0].h(at+E,0),on[1].h(on[0].x,jt),on[2].y<on[1].y&&(on[2].x<on[0].x?on[2].assign(on[1]):on[1].assign(on[2])),on[3].y<on[2].y&&(on[3].x<on[0].x?on[3].assign(on[2]):on[2].assign(on[3])),b[2].y-=x/2,on[2].y-=x/2):(b[0].h(0,Mt),b[1].h(E,b[0].y),b[2].x<b[1].x&&(b[2].y>b[0].y?b[2].assign(b[1]):b[1].assign(b[2])),b[3].x<b[2].x&&(b[3].y>b[0].y?b[3].assign(b[2]):b[2].assign(b[3])),on[0].h(0,Mt+jt),on[1].h(E,on[0].y),on[2].x<on[1].x&&(on[2].y<on[0].y?on[2].assign(on[1]):on[1].assign(on[2])),on[3].x<on[2].x&&(on[3].y<on[0].y?on[3].assign(on[2]):on[2].assign(on[3])),b[2].x-=x/2,on[2].x-=x/2),wl(this,Kt),wl(this,te),a.Yo=b,a.kp=on,a.la.h(at,Mt),a.Da.h(Tt,Vt)}break;default:zt("Unhandled compaction value "+a.compaction.toString())}}};function ux(a,y){if(y.childrenCount===0){var x=!1,E=0;y.parent!==null&&(E=y.parent.angle,x=y.parent.alignment,x=qh(x));var b=Fy(y);y.S.h(0,0),y.Da.h(y.width,y.height),y.parent===null||y.comments===null||(E!==180&&E!==270||x)&&!b?y.la.h(0,0):E===180&&!x||(E===90||E===270)&&b?y.la.h(y.width-2*y.focus.x,0):y.la.h(0,y.height-2*y.focus.y)}else{E=ul(y),x=E===90||E===270;var z=0;b=y.children;for(var tt=b.length,ot=0;ot<tt;ot++){var rt=b[ot];z=Math.max(z,x?rt.Da.width:rt.Da.height)}var at=y.alignment,ut=at===iu,ft=at===ou;ot=qh(at);var vt=Math.max(0,y.breadthLimit);rt=a.computeLayerSpacing(y);var xt=y.nodeSpacing,Pt=a.computeNodeIndent(y),Mt=ut||ft?0:Pt/2,jt=y.rowSpacing,Tt=0;(ut||ft||y.hm||y.im&&y.maxGenerationCount===1)&&(Tt=Math.max(0,y.rowIndent)),ut=y.width;var Vt=y.height,Yt=0,Kt=0,te=0,me=0,Cn=0,Hn=0,In=0,on=0,ze=0,Ei=0;if(ot&&!Sp(at)&&135<E&&b.reverse(),Sp(at))if(1<tt)for(var Si=0;Si<tt;Si++){var lo=b[Si],ko=lo.Da;Si%2===0&&Si!==tt-1?ze=Math.max(ze,(x?ko.width:ko.height)+a.computeBusNodeSpacing(lo)-xt):Si%2!==0&&(Ei=Math.max(Ei,(x?ko.width:ko.height)+a.computeBusNodeSpacing(lo)-xt))}else tt===1&&(ze=x?b[0].Da.width:b[0].Da.height);if(ot)switch(at){case sh:case ru:Kt=135>E?hx(a,y,b,ze,Yt,Kt):dx(a,y,b,ze,Yt,Kt),ze=Kt.x,Yt=Kt.width,Kt=Kt.height;break;case ah:for(vt=0;vt<tt;vt++)Mt=b[vt],te=Mt.Da,Ei=In===0?0:jt,x?(Mt.S.h(z-te.width,Cn+Ei),Yt=Math.max(Yt,te.width),Kt=Math.max(Kt,Cn+Ei+te.height),Cn+=Ei+te.height):(Mt.S.h(me+Ei,z-te.height),Yt=Math.max(Yt,me+Ei+te.width),Kt=Math.max(Kt,te.height),me+=Ei+te.width),In++;break;case Au:for(z=0;z<tt;z++)vt=b[z],Mt=vt.Da,te=In===0?0:jt,x?(vt.S.h(xt/2+y.focus.x,Cn+te),Yt=Math.max(Yt,Mt.width),Kt=Math.max(Kt,Cn+te+Mt.height),Cn+=te+Mt.height):(vt.S.h(me+te,xt/2+y.focus.y),Yt=Math.max(Yt,me+te+Mt.width),Kt=Math.max(Kt,Mt.height),me+=te+Mt.width),In++}else for(Ei=0;Ei<tt;Ei++)Si=b[Ei],lo=Si.Da,x?(0<vt&&0<In&&me+xt+lo.width>vt&&(me<z&&Id(y,at,z-me,0,on,Ei-1),Hn++,In=0,on=Ei,te=Kt,me=0,Cn=135<E?-Kt-jt:Kt+jt),ko=In===0?Mt:xt,Bm(a,Si,0,Cn),Si.S.h(me+ko,Cn),Yt=Math.max(Yt,me+ko+lo.width),Kt=Math.max(Kt,te+(Hn===0?0:jt)+lo.height),me+=ko+lo.width):(0<vt&&0<In&&Cn+xt+lo.height>vt&&(Cn<z&&Id(y,at,0,z-Cn,on,Ei-1),Hn++,In=0,on=Ei,te=Yt,Cn=0,me=135<E?-Yt-jt:Yt+jt),ko=In===0?Mt:xt,Bm(a,Si,me,0),Si.S.h(me,Cn+ko),Kt=Math.max(Kt,Cn+ko+lo.height),Yt=Math.max(Yt,te+(Hn===0?0:jt)+lo.width),Cn+=ko+lo.height),In++;switch(0<Hn&&(x?(Kt+=Math.max(0,rt),me<Yt&&Id(y,at,Yt-me,0,on,tt-1),0<Tt&&(ft||Cc(y,Tt,0,0,tt-1),Yt+=Tt)):(Yt+=Math.max(0,rt),Cn<Kt&&Id(y,at,0,Kt-Cn,on,tt-1),0<Tt&&(ft||Cc(y,0,Tt,0,tt-1),Kt+=Tt))),Tt=ft=0,at){case Rg:x?ft+=Yt/2-y.focus.x-Pt/2:Tt+=Kt/2-y.focus.y-Pt/2;break;case Ac:0<Hn?x?ft+=Yt/2-y.focus.x-Pt/2:Tt+=Kt/2-y.focus.y-Pt/2:x?(a=b[0].S.x+b[0].la.x,ft+=a+(b[tt-1].S.x+b[tt-1].la.x+2*b[tt-1].focus.x-a)/2-y.focus.x-Pt/2):(a=b[0].S.y+b[0].la.y,Tt+=a+(b[tt-1].S.y+b[tt-1].la.y+2*b[tt-1].focus.y-a)/2-y.focus.y-Pt/2);break;case iu:x?(ft-=Pt,Yt+=Pt):(Tt-=Pt,Kt+=Pt);break;case ou:x?(ft+=Yt-y.width+Pt,Yt+=Pt):(Tt+=Kt-y.height+Pt,Kt+=Pt);break;case sh:case ru:x?1<tt?ft+=ze+xt/2-y.focus.x:ft+=b[0].focus.x-y.focus.x+b[0].la.x:1<tt?Tt+=ze+xt/2-y.focus.y:Tt+=b[0].focus.y-y.focus.y+b[0].la.y;break;case ah:x?ft+=Yt+xt/2-y.focus.x:Tt+=Kt+xt/2-y.focus.y;break;case Au:break;default:a=a.customAlignment(y,ft,Tt,Yt,Kt),ft=a[0],Tt=a[1],Yt=a[2],Kt=a[3]}for(a=0;a<tt;a++)Pt=b[a],x?Pt.S.h(Pt.S.x+Pt.la.x-ft,Pt.S.y+(135<E?(ot?-Kt:-Pt.Da.height)+Pt.la.y-rt:Vt+rt+Pt.la.y)):Pt.S.h(Pt.S.x+(135<E?(ot?-Yt:-Pt.Da.width)+Pt.la.x-rt:ut+rt+Pt.la.x),Pt.S.y+Pt.la.y-Tt);x?(Yt=ky(y,Yt,ft),0>ft&&(ft=0),135<E&&(Tt+=Kt+rt),Kt=Math.max(Math.max(Kt,Vt),Kt+Vt+rt)):(135<E&&(ft+=Yt+rt),Yt=Math.max(Math.max(Yt,ut),Yt+ut+rt),Kt=By(y,Kt,Tt),0>Tt&&(Tt=0)),y.la.h(ft,Tt),y.Da.h(Yt,Kt)}}Ri.prototype.customAlignment=function(a,y,x,E,b){return[y,x,E,b]};function hx(a,y,x,E,b,z){var tt=x.length;if(tt===0)return new be(E,0,b,z);if(tt===1)return y=x[0],b=y.Da.width,z=y.Da.height,new be(E,0,b,z);for(var ot=y.nodeSpacing,rt=y.rowSpacing,at=ul(y)===90,ut=0,ft=0,vt=0,xt=0;xt<tt;xt++)if(!(xt%2!==0||1<tt&&xt===tt-1)){var Pt=x[xt],Mt=Pt.Da,jt=ut===0?0:rt;if(at){var Tt=a.computeBusNodeSpacing(Pt)-ot;Pt.S.h(E-(Mt.width+Tt),vt+jt),b=Math.max(b,Mt.width+Tt),z=Math.max(z,vt+jt+Mt.height),vt+=jt+Mt.height}else Tt=a.computeBusNodeSpacing(Pt)-ot,Pt.S.h(ft+jt,E-(Mt.height+Tt)),z=Math.max(z,Mt.height+Tt),b=Math.max(b,ft+jt+Mt.width),ft+=jt+Mt.width;ut++}for(ut=0,Pt=ft,xt=vt,at?(ft=E+ot,vt=0):(ft=0,vt=E+ot),Mt=0;Mt<tt;Mt++)if(Mt%2!==0){jt=x[Mt],Tt=jt.Da;var Vt=ut===0?0:rt;if(at){var Yt=a.computeBusNodeSpacing(jt)-ot;jt.S.h(ft+Yt,vt+Vt),b=Math.max(b,ft+Tt.width+Yt),z=Math.max(z,vt+Vt+Tt.height),vt+=Vt+Tt.height}else Yt=a.computeBusNodeSpacing(jt)-ot,jt.S.h(ft+Vt,vt+Yt),b=Math.max(b,ft+Vt+Tt.width),z=Math.max(z,vt+Tt.height+Yt),ft+=Vt+Tt.width;ut++}return 1<tt&&tt%2===1&&(x=x[tt-1],tt=x.Da,a=a.computeBusLastRowSpacing(x,at?Math.max(Math.abs(xt),Math.abs(vt)):Math.max(Math.abs(Pt),Math.abs(ft))),at?(x.S.h(E+ot/2-x.focus.x-x.la.x,z+a),at=E+ot/2-x.focus.x-x.la.x,b=Math.max(b,at+tt.width),0>at&&(b-=at),z=Math.max(z,Math.max(xt,vt)+a+tt.height),0>x.S.x&&(E=km(y,x.S.x,!1,E,ot))):(x.S.h(b+a,E+ot/2-x.focus.y-x.la.y),b=Math.max(b,Math.max(Pt,ft)+a+tt.width),vt=E+ot/2-x.focus.y-x.la.y,z=Math.max(z,vt+tt.height),0>vt&&(z-=vt),0>x.S.y&&(E=km(y,x.S.y,!0,E,ot)))),new be(E,0,b,z)}function dx(a,y,x,E,b,z){var tt=x.length;if(tt===0)return new be(E,0,b,z);if(tt===1)return x=x[0],b=x.Da.width,z=x.Da.height,new be(E,0,b,z);for(var ot=y.nodeSpacing,rt=y.rowSpacing,at=ul(y)===270,ut=0,ft=0,vt=0,xt=0;xt<tt;xt++)if(!(xt%2!==0||1<tt&&xt===tt-1)){var Pt=x[xt],Mt=Pt.Da,jt=ut===0?0:rt;if(at){var Tt=a.computeBusNodeSpacing(Pt)-ot;vt-=jt+Mt.height,Pt.S.h(E-(Mt.width+Tt),vt),b=Math.max(b,Mt.width+Tt),z=Math.max(z,Math.abs(vt))}else Tt=a.computeBusNodeSpacing(Pt)-ot,ft-=jt+Mt.width,Pt.S.h(ft,E-(Mt.height+Tt)),z=Math.max(z,Mt.height+Tt),b=Math.max(b,Math.abs(ft));ut++}for(ut=0,Pt=ft,xt=vt,at?(ft=E+ot,vt=0):(ft=0,vt=E+ot),Mt=0;Mt<tt;Mt++)if(Mt%2!==0){jt=x[Mt],Tt=jt.Da;var Vt=ut===0?0:rt;if(at){var Yt=a.computeBusNodeSpacing(jt)-ot;vt-=Vt+Tt.height,jt.S.h(ft+Yt,vt),b=Math.max(b,ft+Tt.width+Yt),z=Math.max(z,Math.abs(vt))}else Yt=a.computeBusNodeSpacing(jt)-ot,ft-=Vt+Tt.width,jt.S.h(ft,vt+Yt),z=Math.max(z,vt+Tt.height+Yt),b=Math.max(b,Math.abs(ft));ut++}for(1<tt&&tt%2===1&&(rt=x[tt-1],ut=rt.Da,a=a.computeBusLastRowSpacing(rt,at?Math.max(Math.abs(xt),Math.abs(vt)):Math.max(Math.abs(Pt),Math.abs(ft))),at?(rt.S.h(E+ot/2-rt.focus.x-rt.la.x,-z-ut.height-a),ft=E+ot/2-rt.focus.x-rt.la.x,b=Math.max(b,ft+ut.width),0>ft&&(b-=ft),z=Math.max(z,Math.abs(Math.min(xt,vt))+a+ut.height),0>rt.S.x&&(E=km(y,rt.S.x,!1,E,ot))):(rt.S.h(-b-ut.width-a,E+ot/2-rt.focus.y-rt.la.y),b=Math.max(b,Math.abs(Math.min(Pt,ft))+a+ut.width),vt=E+ot/2-rt.focus.y-rt.la.y,z=Math.max(z,vt+ut.height),0>vt&&(z-=vt),0>rt.S.y&&(E=km(y,rt.S.y,!0,E,ot)))),y=0;y<tt;y++)ot=x[y],at?ot.S.h(ot.S.x,ot.S.y+z):ot.S.h(ot.S.x+b,ot.S.y);return new be(E,0,b,z)}Ri.prototype.computeBusNodeSpacing=function(a){return a.parent===null?0:a.parent.nodeSpacing},Ri.prototype.computeBusLastRowSpacing=function(a){return a.parent===null?0:a.parent.rowSpacing};function km(a,y,x,E,b){a=a.children;for(var z=a.length,tt=0;tt<z;tt++)x?a[tt].S.h(a[tt].S.x,a[tt].S.y-y):a[tt].S.h(a[tt].S.x-y,a[tt].S.y);return y=a[z-1],Math.max(E,x?y.la.y+y.focus.y-b/2:y.la.x+y.focus.x-b/2)}function ky(a,y,x){switch(a.alignment){case Ac:case Rg:return x+a.width>y&&(y=x+a.width),0>x&&(y-=x),y;case iu:return a.width>y?a.width:y;case ou:return 2*a.focus.x>y?a.width:y+a.width-2*a.focus.x;case sh:case ru:return Math.max(a.width,Math.max(y,x+a.width)-Math.min(0,x));case ah:return a.width-a.focus.x+a.nodeSpacing/2+y;case Au:return Math.max(a.width,a.focus.x+a.nodeSpacing/2+y);default:return y}}function By(a,y,x){switch(a.alignment){case Ac:case Rg:return x+a.height>y&&(y=x+a.height),0>x&&(y-=x),y;case iu:return a.height>y?a.height:y;case ou:return 2*a.focus.y>y?a.height:y+a.height-2*a.focus.y;case sh:case ru:return Math.max(a.height,Math.max(y,x+a.height)-Math.min(0,x));case ah:return a.height-a.focus.y+a.nodeSpacing/2+y;case Au:return Math.max(a.height,a.focus.y+a.nodeSpacing/2+y);default:return y}}function Ny(a,y,x){switch(a){case Rg:y/=2,x/=2;break;case Ac:y/=2,x/=2;break;case iu:x=y=0;break;case ou:break;default:zt("Unhandled alignment value "+a.toString())}return new It(y,x)}function Id(a,y,x,E,b,z){y=Ny(y,x,E),Cc(a,y.x,y.y,b,z)}function Cc(a,y,x,E,b){if(y!==0||x!==0)for(a=a.children;E<=b;E++){var z=a[E].S;z.x+=y,z.y+=x}}function Bm(a,y,x,E){var b=y.parent;switch(a.ud){case nu:for(a=y.sourceEdges;a.next();)y=a.value,y.fromVertex===b&&y.relativePoint.h(x,E);break;case Ec:for(a=y.destinationEdges;a.next();)y=a.value,y.toVertex===b&&y.relativePoint.h(x,E);break;default:zt("Unhandled path value "+a.ud.toString())}}function Nm(a,y,x){for(var E=0;E<a.length;E++){var b=a[E];b.x+=y,b.y+=x}}function cx(a,y,x,E,b,z,tt,ot){var rt=ul(y),at=rt===90||rt===270,ut=y.nodeSpacing;y=E;var ft=b;E=z;var vt=tt,xt=x.Yo,Pt=x.kp;tt=x.Da;var Mt=at?Math.max(vt,tt.height):Math.max(E,tt.width);if((xt===null||rt!==ul(x))&&(xt=_s(a,2),Pt=_s(a,2),at?(xt[0].h(0,0),xt[1].h(0,tt.height),Pt[0].h(tt.width,0),Pt[1].h(Pt[0].x,xt[1].y)):(xt[0].h(0,0),xt[1].h(tt.width,0),Pt[0].h(0,tt.height),Pt[1].h(xt[1].x,Pt[0].y))),at){if(vt=9999999,!(ft===null||2>ft.length||xt===null||2>xt.length))for(b=x=0;x<ft.length&&b<xt.length;){z=ft[x];var jt=xt[b];rt=jt.x,at=jt.y,rt+=E;var Tt=z;x+1<ft.length&&(Tt=ft[x+1]);var Vt=jt;jt=Vt.x,Vt=Vt.y,b+1<xt.length&&(Vt=xt[b+1],jt=Vt.x,Vt=Vt.y,jt+=E);var Yt=vt;z.y===at?Yt=rt-z.x:z.y>at&&z.y<Vt?Yt=rt+(z.y-at)/(Vt-at)*(jt-rt)-z.x:at>z.y&&at<Tt.y&&(Yt=rt-(z.x+(at-z.y)/(Tt.y-z.y)*(Tt.x-z.x))),Yt<vt&&(vt=Yt),Tt.y<=z.y?x++:Vt<=at?b++:(Tt.y<=Vt&&x++,Vt<=Tt.y&&b++)}if(vt=E-vt,vt+=ut,x=xt,b=vt,y===null||2>y.length||x===null||2>x.length)E=null;else{for(ut=_s(a,y.length+x.length),E=z=rt=0;z<x.length&&x[z].y<y[0].y;)at=x[z++],ut[E++].h(at.x+b,at.y);for(;rt<y.length;)at=y[rt++],ut[E++].h(at.x,at.y);for(rt=y[y.length-1].y;z<x.length&&x[z].y<=rt;)z++;for(;z<x.length&&x[z].y>rt;)at=x[z++],ut[E++].h(at.x+b,at.y);for(x=_s(a,E),rt=0;rt<E;rt++)x[rt].assign(ut[rt]);wl(a,ut),E=x}if(z=Pt,rt=vt,ft===null||2>ft.length||z===null||2>z.length)b=null;else{for(ut=_s(a,ft.length+z.length),b=at=x=0;x<ft.length&&ft[x].y<z[0].y;)Tt=ft[x++],ut[b++].h(Tt.x,Tt.y);for(;at<z.length;)Tt=z[at++],ut[b++].h(Tt.x+rt,Tt.y);for(z=z[z.length-1].y;x<ft.length&&ft[x].y<=z;)x++;for(;x<ft.length&&ft[x].y>z;)rt=ft[x++],ut[b++].h(rt.x,rt.y);for(z=_s(a,b),x=0;x<b;x++)z[x].assign(ut[x]);wl(a,ut),b=z}return z=Math.max(0,vt)+tt.width,tt=Mt,wl(a,y),wl(a,xt),wl(a,ft),wl(a,Pt),ot[0]=E,ot[1]=b,new be(vt,0,z,tt)}if(E=9999999,!(ft===null||2>ft.length||xt===null||2>xt.length))for(b=x=0;x<ft.length&&b<xt.length;)z=ft[x],jt=xt[b],rt=jt.x,at=jt.y,at+=vt,Tt=z,x+1<ft.length&&(Tt=ft[x+1]),Vt=jt,jt=Vt.x,Vt=Vt.y,b+1<xt.length&&(Vt=xt[b+1],jt=Vt.x,Vt=Vt.y,Vt+=vt),Yt=E,z.x===rt?Yt=at-z.y:z.x>rt&&z.x<jt?Yt=at+(z.x-rt)/(jt-rt)*(Vt-at)-z.y:rt>z.x&&rt<Tt.x&&(Yt=at-(z.y+(rt-z.x)/(Tt.x-z.x)*(Tt.y-z.y))),Yt<E&&(E=Yt),Tt.x<=z.x?x++:jt<=rt?b++:(Tt.x<=jt&&x++,jt<=Tt.x&&b++);if(vt-=E,vt+=ut,x=xt,b=vt,y===null||2>y.length||x===null||2>x.length)E=null;else{for(ut=_s(a,y.length+x.length),E=z=rt=0;z<x.length&&x[z].x<y[0].x;)at=x[z++],ut[E++].h(at.x,at.y+b);for(;rt<y.length;)at=y[rt++],ut[E++].h(at.x,at.y);for(rt=y[y.length-1].x;z<x.length&&x[z].x<=rt;)z++;for(;z<x.length&&x[z].x>rt;)at=x[z++],ut[E++].h(at.x,at.y+b);for(x=_s(a,E),rt=0;rt<E;rt++)x[rt].assign(ut[rt]);wl(a,ut),E=x}if(z=Pt,rt=vt,ft===null||2>ft.length||z===null||2>z.length)b=null;else{for(ut=_s(a,ft.length+z.length),b=at=x=0;x<ft.length&&ft[x].x<z[0].x;)Tt=ft[x++],ut[b++].h(Tt.x,Tt.y);for(;at<z.length;)Tt=z[at++],ut[b++].h(Tt.x,Tt.y+rt);for(z=z[z.length-1].x;x<ft.length&&ft[x].x<=z;)x++;for(;x<ft.length&&ft[x].x>z;)rt=ft[x++],ut[b++].h(rt.x,rt.y);for(z=_s(a,b),x=0;x<b;x++)z[x].assign(ut[x]);wl(a,ut),b=z}return z=Mt,tt=Math.max(0,vt)+tt.height,wl(a,y),wl(a,xt),wl(a,ft),wl(a,Pt),ot[0]=E,ot[1]=b,new be(vt,0,z,tt)}function _s(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 It;return a}function wl(a,y){var x=y.length,E=a.ru[x];E===void 0&&(E=[],a.ru[x]=E),E.push(y)}Ri.prototype.arrangeTrees=function(){if(this.Rb===Om)for(var a=this.Ub.iterator;a.next();){var y=a.value;if(y instanceof Qa){var x=y.node;if(x!==null){var E=x.position;x=E.x,E=E.y,isFinite(x)||(x=0),isFinite(E)||(E=0),by(this,y,x,E)}}}else{for(a=[],y=this.Ub.iterator;y.next();)x=y.value,x instanceof Qa&&a.push(x);switch(this.sorting){case jg:break;case xp:a.reverse();break;case wp:a.sort(this.comparer);break;case Pp: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,E=0;E<a.length;E++){var b=a[E];switch(by(this,b,y+b.la.x,x+b.la.y),this.Rb){case Im:x+=b.Da.height+this.$d.height;break;case Oy:y+=b.Da.width+this.$d.width;break;default:zt("Unhandled arrangement value "+this.Rb.toString())}}}};function by(a,y,x,E){if(y!==null){y.x=x,y.y=E,y=y.children;for(var b=y.length,z=0;z<b;z++){var tt=y[z];by(a,tt,x+tt.S.x,E+tt.S.y)}}}Ri.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.Gu(),this.isRouting&&this.commitLinks()},Ri.prototype.commitNodes=function(){for(var a=this.network.vertexes.iterator;a.next();)a.value.commit();for(a.reset();a.next();)this.layoutComments(a.value)},Ri.prototype.Gu=function(){if(this.layerStyle===jm){for(var a=this.$v,y=[],x=null,E=this.network.vertexes.iterator;E.next();){var b=E.value;x===null?x=b.bounds.copy():x.ed(b.bounds);var z=y[b.level];z===void 0?z=this.computeLayerSpacing(b):z=Math.max(z,this.computeLayerSpacing(b)),y[b.level]=z}for(E=0;E<y.length;E++)y[E]===void 0&&(y[E]=0);if(this.angle===90||this.angle===270?(x.Bc(this.nodeSpacing/2,this.layerSpacing),E=new It(-this.nodeSpacing/2,-this.layerSpacing/2)):(x.Bc(this.layerSpacing,this.nodeSpacing/2),E=new It(-this.layerSpacing/2,-this.nodeSpacing/2)),b=[],x=this.angle===90||this.angle===270?x.width:x.height,z=0,this.angle===180||this.angle===270)for(var tt=0;tt<a.length;tt++)z+=a[tt]+y[tt];for(tt=0;tt<a.length;tt++){var ot=a[tt]+y[tt];this.angle===270?(z-=ot,b.push(new be(0,z,x,ot))):this.angle===90?(b.push(new be(0,z,x,ot)),z+=ot):this.angle===180?(z-=ot,b.push(new be(z,0,ot,x))):(b.push(new be(z,0,ot,x)),z+=ot)}this.commitLayers(b,E)}},Ri.prototype.commitLayers=function(){},Ri.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()},Ri.prototype.yv=function(){for(var a=this.Ub.iterator;a.next();){var y=a.value;y instanceof Qa&&gx(this,y)}};function gx(a,y){if(y!==null){a.setPortSpots(y),y=y.children;for(var x=y.length,E=0;E<x;E++)gx(a,y[E])}}Ri.prototype.setPortSpots=function(a){var y=a.alignment;if(qh(y)){var x=this.ud===nu,E=ul(a);switch(E){case 0:var b=ts;break;case 90:b=qr;break;case 180:b=Gs;break;default:b=as}var z=a.children,tt=z.length;switch(y){case sh:case ru:for(y=0;y<tt;y++){var ot=z[y];if(ot=(x?ot.sourceEdges:ot.destinationEdges).first(),ot!==null&&(ot=ot.link,ot!==null)){var rt=E===90||E===270?Gs:as;if(tt===1||y===tt-1&&tt%2===1)switch(E){case 0:rt=Gs;break;case 90:rt=as;break;case 180:rt=ts;break;default:rt=qr}else y%2===0&&(rt=E===90||E===270?ts:qr);x?(a.setsPortSpot&&(ot.fromSpot=b),a.setsChildPortSpot&&(ot.toSpot=rt)):(a.setsPortSpot&&(ot.fromSpot=rt),a.setsChildPortSpot&&(ot.toSpot=b))}}break;case ah:for(E=E===90||E===270?ts:qr,z=x?a.destinationEdges:a.sourceEdges;z.next();)tt=z.value.link,tt!==null&&(x?(a.setsPortSpot&&(tt.fromSpot=b),a.setsChildPortSpot&&(tt.toSpot=E)):(a.setsPortSpot&&(tt.fromSpot=E),a.setsChildPortSpot&&(tt.toSpot=b)));break;case Au:for(E=E===90||E===270?Gs:as,z=x?a.destinationEdges:a.sourceEdges;z.next();)tt=z.value.link,tt!==null&&(x?(a.setsPortSpot&&(tt.fromSpot=b),a.setsChildPortSpot&&(tt.toSpot=E)):(a.setsPortSpot&&(tt.fromSpot=E),a.setsChildPortSpot&&(tt.toSpot=b)))}}else if(x=ul(a),this.ud===nu){for(b=a.destinationEdges;b.next();)if(E=b.value.link,E!==null){if(a.setsPortSpot)if(a.portSpot.Xb())switch(x){case 0:E.fromSpot=ts;break;case 90:E.fromSpot=qr;break;case 180:E.fromSpot=Gs;break;default:E.fromSpot=as}else E.fromSpot=a.portSpot;if(a.setsChildPortSpot)if(a.childPortSpot.Xb())switch(x){case 0:E.toSpot=Gs;break;case 90:E.toSpot=as;break;case 180:E.toSpot=ts;break;default:E.toSpot=qr}else E.toSpot=a.childPortSpot}}else for(b=a.sourceEdges;b.next();)if(E=b.value.link,E!==null){if(a.setsPortSpot)if(a.portSpot.Xb())switch(x){case 0:E.toSpot=ts;break;case 90:E.toSpot=qr;break;case 180:E.toSpot=Gs;break;default:E.toSpot=as}else E.toSpot=a.portSpot;if(a.setsChildPortSpot)if(a.childPortSpot.Xb())switch(x){case 0:E.fromSpot=Gs;break;case 90:E.fromSpot=as;break;case 180:E.fromSpot=ts;break;default:E.fromSpot=qr}else E.fromSpot=a.childPortSpot}};function ul(a){return a=a.angle,45>=a?0:135>=a?90:225>=a?180:315>=a?270:0}Ri.prototype.computeLayerSpacing=function(a){var y=ul(a);y=y===90||y===270;var x=a.layerSpacing;if(0<a.layerSpacingParentOverlap){var E=Math.min(1,a.layerSpacingParentOverlap);x-=y?a.height*E:a.width*E}return x<(y?-a.height:-a.width)&&(x=y?-a.height:-a.width),x},Ri.prototype.computeNodeIndent=function(a){var y=ul(a),x=a.nodeIndent;if(0<a.nodeIndentPastParent){var E=Math.min(1,a.nodeIndentPastParent);x+=y===90||y===270?a.width*E:a.height*E}return x=Math.max(0,x)},qt.Object.defineProperties(Ri.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!==Tm&&a!==Ty&&a!==Dy&&a!==Iy||(this.vo=a,this.C())}},layerStyle:{get:function(){return this.Bq},set:function(a){this.Rb===a||a!==jy&&a!==Ry&&a!==jm||(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!==Im&&a!==Oy&&a!==Om||(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!==jg&&a!==xp&&a!==wp&&!Pp||(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!==Dm&&a!==Cp||(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!==jg&&a!==xp&&a!==wp&&!Pp||(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!==Dm&&a!==Cp||(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 bm=new De(Ri,"PathDefault",-1),nu=new De(Ri,"PathDestination",0),Ec=new De(Ri,"PathSource",1),jg=new De(Ri,"SortingForwards",10),xp=new De(Ri,"SortingReverse",11),wp=new De(Ri,"SortingAscending",12),Pp=new De(Ri,"SortingDescending",13),Rg=new De(Ri,"AlignmentCenterSubtrees",20),Ac=new De(Ri,"AlignmentCenterChildren",21),iu=new De(Ri,"AlignmentStart",22),ou=new De(Ri,"AlignmentEnd",23),sh=new De(Ri,"AlignmentBus",24),ru=new De(Ri,"AlignmentBusBranching",25),ah=new De(Ri,"AlignmentTopLeftBus",26),Au=new De(Ri,"AlignmentBottomRightBus",27),Dm=new De(Ri,"CompactionNone",30),Cp=new De(Ri,"CompactionBlock",31),Tm=new De(Ri,"StyleLayered",40),Dy=new De(Ri,"StyleLastParents",41),Ty=new De(Ri,"StyleAlternating",42),Iy=new De(Ri,"StyleRootOnly",43),Im=new De(Ri,"ArrangementVertical",50),Oy=new De(Ri,"ArrangementHorizontal",51),Om=new De(Ri,"ArrangementFixedRoots",52),jy=new De(Ri,"LayerIndividual",60),Ry=new De(Ri,"LayerSiblings",61),jm=new De(Ri,"LayerUniform",62);Ri.className="TreeLayout",Ri.PathDefault=bm,Ri.PathDestination=nu,Ri.PathSource=Ec,Ri.SortingForwards=jg,Ri.SortingReverse=xp,Ri.SortingAscending=wp,Ri.SortingDescending=Pp,Ri.AlignmentCenterSubtrees=Rg,Ri.AlignmentCenterChildren=Ac,Ri.AlignmentStart=iu,Ri.AlignmentEnd=ou,Ri.AlignmentBus=sh,Ri.AlignmentBusBranching=ru,Ri.AlignmentTopLeftBus=ah,Ri.AlignmentBottomRightBus=Au,Ri.CompactionNone=Dm,Ri.CompactionBlock=Cp,Ri.StyleLayered=Tm,Ri.StyleLastParents=Dy,Ri.StyleAlternating=Ty,Ri.StyleRootOnly=Iy,Ri.ArrangementVertical=Im,Ri.ArrangementHorizontal=Oy,Ri.ArrangementFixedRoots=Om,Ri.LayerIndividual=jy,Ri.LayerSiblings=Ry,Ri.LayerUniform=jm;function Mc(a){Do.call(this,a)}re(Mc,Do),Mc.prototype.createVertex=function(){return new Qa(this)},Mc.prototype.createEdge=function(){return new zg(this)},Mc.className="TreeNetwork";function Qa(a){Lr.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 It(0,0),this.Da=new Ee(0,0),this.la=new It(0,0),this.im=this.hm=this.qA=!1,this.kp=this.Yo=null,this.nd=jg,this.hd=oy,this.Kb=0,this.Jb=Ac,this.Vq=this.Uq=0,this.Wq=20,this.ie=50,this.Aq=0,this.Hp=Cp,this.Ap=0,this.nr=25,this.Gp=this.mr=10,this.Fp=20,this.xr=!0,this.dr=Or,this.wr=!0,this.Dp=Or}re(Qa,Lr),Qa.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)},qt.Object.defineProperties(Qa.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)}}}),Qa.className="TreeVertex";function zg(a){ua.call(this,a),this.$t=new It(0,0)}re(zg,ua),zg.prototype.commit=function(){var a=this.link;if(a!==null&&!a.isAvoiding){var y=this.network.layout,x=null,E=null;switch(y.ud){case nu:x=this.fromVertex,E=this.toVertex;break;case Ec:x=this.toVertex,E=this.fromVertex;break;default:zt("Unhandled path value "+y.ud.toString())}if(x!==null&&E!==null){var b=this.$t;if(b.x!==0||b.y!==0||x.qA){E=x.bounds;var z=ul(x),tt=y.computeLayerSpacing(x),ot=x.rowSpacing;a.vg();var rt=a.curve===wa,at=a.isOrthogonal,ut;if(a.uh(),at||rt){for(ut=2;4<a.pointsCount;)a.pv(2);var ft=a.i(1),vt=a.i(2)}else{for(ut=1;3<a.pointsCount;)a.pv(1);ft=a.i(0),vt=a.i(a.pointsCount-1)}var xt=a.i(a.pointsCount-1);z===0?(x.alignment===ou?(z=E.bottom+b.y,b.y===0&&ft.y>xt.y+x.rowIndent&&(z=Math.min(z,Math.max(ft.y,z-y.computeNodeIndent(x))))):x.alignment===iu?(z=E.top+b.y,b.y===0&&ft.y<xt.y-x.rowIndent&&(z=Math.max(z,Math.min(ft.y,z+y.computeNodeIndent(x))))):z=x.hm||x.im&&x.maxGenerationCount===1?E.top-x.la.y+b.y:E.y+E.height/2+b.y,rt?(a.m(ut,ft.x,z),ut++,a.m(ut,E.right+tt,z),ut++,a.m(ut,E.right+tt+(b.x-ot)/3,z),ut++,a.m(ut,E.right+tt+2*(b.x-ot)/3,z),ut++,a.m(ut,E.right+tt+(b.x-ot),z),ut++,a.m(ut,vt.x,z)):(at&&(a.m(ut,E.right+tt/2,ft.y),ut++),a.m(ut,E.right+tt/2,z),ut++,a.m(ut,E.right+tt+b.x-(at?ot/2:ot),z),ut++,at&&a.m(ut,a.i(ut-1).x,vt.y))):z===90?(x.alignment===ou?(z=E.right+b.x,b.x===0&&ft.x>xt.x+x.rowIndent&&(z=Math.min(z,Math.max(ft.x,z-y.computeNodeIndent(x))))):x.alignment===iu?(z=E.left+b.x,b.x===0&&ft.x<xt.x-x.rowIndent&&(z=Math.max(z,Math.min(ft.x,z+y.computeNodeIndent(x))))):z=x.hm||x.im&&x.maxGenerationCount===1?E.left-x.la.x+b.x:E.x+E.width/2+b.x,rt?(a.m(ut,z,ft.y),ut++,a.m(ut,z,E.bottom+tt),ut++,a.m(ut,z,E.bottom+tt+(b.y-ot)/3),ut++,a.m(ut,z,E.bottom+tt+2*(b.y-ot)/3),ut++,a.m(ut,z,E.bottom+tt+(b.y-ot)),ut++,a.m(ut,z,vt.y)):(at&&(a.m(ut,ft.x,E.bottom+tt/2),ut++),a.m(ut,z,E.bottom+tt/2),ut++,a.m(ut,z,E.bottom+tt+b.y-(at?ot/2:ot)),ut++,at&&a.m(ut,vt.x,a.i(ut-1).y))):z===180?(x.alignment===ou?(z=E.bottom+b.y,b.y===0&&ft.y>xt.y+x.rowIndent&&(z=Math.min(z,Math.max(ft.y,z-y.computeNodeIndent(x))))):x.alignment===iu?(z=E.top+b.y,b.y===0&&ft.y<xt.y-x.rowIndent&&(z=Math.max(z,Math.min(ft.y,z+y.computeNodeIndent(x))))):z=x.hm||x.im&&x.maxGenerationCount===1?E.top-x.la.y+b.y:E.y+E.height/2+b.y,rt?(a.m(ut,ft.x,z),ut++,a.m(ut,E.left-tt,z),ut++,a.m(ut,E.left-tt+(b.x+ot)/3,z),ut++,a.m(ut,E.left-tt+2*(b.x+ot)/3,z),ut++,a.m(ut,E.left-tt+(b.x+ot),z),ut++,a.m(ut,vt.x,z)):(at&&(a.m(ut,E.left-tt/2,ft.y),ut++),a.m(ut,E.left-tt/2,z),ut++,a.m(ut,E.left-tt+b.x+(at?ot/2:ot),z),ut++,at&&a.m(ut,a.i(ut-1).x,vt.y))):z===270?(x.alignment===ou?(z=E.right+b.x,b.x===0&&ft.x>xt.x+x.rowIndent&&(z=Math.min(z,Math.max(ft.x,z-y.computeNodeIndent(x))))):x.alignment===iu?(z=E.left+b.x,b.x===0&&ft.x<xt.x-x.rowIndent&&(z=Math.max(z,Math.min(ft.x,z+y.computeNodeIndent(x))))):z=x.hm||x.im&&x.maxGenerationCount===1?E.left-x.la.x+b.x:E.x+E.width/2+b.x,rt?(a.m(ut,z,ft.y),ut++,a.m(ut,z,E.top-tt),ut++,a.m(ut,z,E.top-tt+(b.y+ot)/3),ut++,a.m(ut,z,E.top-tt+2*(b.y+ot)/3),ut++,a.m(ut,z,E.top-tt+(b.y+ot)),ut++,a.m(ut,z,vt.y)):(at&&(a.m(ut,ft.x,E.top-tt/2),ut++),a.m(ut,z,E.top-tt/2),ut++,a.m(ut,z,E.top-tt+b.y+(at?ot/2:ot)),ut++,at&&a.m(ut,vt.x,a.i(ut-1).y))):zt("Invalid angle "+z),a.zf()}else b=E,a=this.link,E=this.network.layout,y=ul(x),y!==ul(b)&&(tt=E.computeLayerSpacing(x),ot=x.bounds,x=b.bounds,y===0&&x.left-ot.right<tt+1||y===90&&x.top-ot.bottom<tt+1||y===180&&ot.left-x.right<tt+1||y===270&&ot.top-x.bottom<tt+1||(a.vg(),x=a.curve===wa,b=a.isOrthogonal,E=qh(this.fromVertex.alignment),a.uh(),y===0?(y=ot.right+tt/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)):b?E?a.L(3,a.i(2).x,a.i(4).y):a.pointsCount===6&&(a.L(2,y,a.i(2).y),a.L(3,y,a.i(3).y)):a.pointsCount===4?a.m(2,y,a.i(2).y):a.pointsCount===3?a.L(1,y,a.i(2).y):a.pointsCount===2&&a.m(1,y,a.i(1).y)):y===90?(y=ot.bottom+tt/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)):b?E?a.L(3,a.i(2).x,a.i(4).y):a.pointsCount===6&&(a.L(2,a.i(2).x,y),a.L(3,a.i(3).x,y)):a.pointsCount===4?a.m(2,a.i(2).x,y):a.pointsCount===3?a.L(1,a.i(2).x,y):a.pointsCount===2&&a.m(1,a.i(1).x,y)):y===180?(y=ot.left-tt/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)):b?E?a.L(3,a.i(2).x,a.i(4).y):a.pointsCount===6&&(a.L(2,y,a.i(2).y),a.L(3,y,a.i(3).y)):a.pointsCount===4?a.m(2,y,a.i(2).y):a.pointsCount===3?a.L(1,y,a.i(2).y):a.pointsCount===2&&a.m(1,y,a.i(1).y)):y===270&&(y=ot.top-tt/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)):b?E?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()))}}},qt.Object.defineProperties(zg.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)}}}),zg.className="TreeEdge",Vo.prototype.initializeStandardTools=function(){this.gb("Action",new Ha,this.mouseDownTools),this.gb("Relinking",new ma,this.mouseDownTools),this.gb("LinkReshaping",new hr,this.mouseDownTools),this.gb("Rotating",new Es,this.mouseDownTools),this.gb("Resizing",new ss,this.mouseDownTools),this.gb("Linking",new Cs,this.mouseMoveTools),this.gb("Dragging",new Ko,this.mouseMoveTools),this.gb("DragSelecting",new La,this.mouseMoveTools),this.gb("Panning",new ns,this.mouseMoveTools),this.gb("ContextMenu",new As,this.mouseUpTools),this.gb("TextEditing",new Ro,this.mouseUpTools),this.gb("ClickCreating",new Hu,this.mouseUpTools),this.gb("ClickSelecting",new Eh,this.mouseUpTools)},jl("Horizontal",new c0),jl("Spot",new f0),jl("Table",new m0),jl("Viewbox",new S0),jl("TableRow",new v0),jl("TableColumn",new y0),jl("Graduated",new zf),jl("Grid",new Rf),lg.add("GraphLinksModel",Rr),lg.add("TreeModel",Ia);var Rm=Be.go,zy={get licenseKey(){return ye.licenseKey},set licenseKey(a){ye.licenseKey=a},get version(){return ye.version},Group:Ai,EnumValue:De,List:$e,Set:_e,Map:ri,Point:It,Size:Ee,Rect:be,Margin:yi,Spot:ni,Geometry:cn,PathFigure:Br,PathSegment:ro,InputEvent:cs,DiagramEvent:bu,ChangedEvent:Wo,Model:Xn,GraphLinksModel:Vi,TreeModel:Ds,Binding:cr,Transaction:jr,UndoManager:Zo,CommandHandler:Ot,Tool:no,DraggingTool:Ko,DraggingInfo:Su,DraggingOptions:st,LinkingBaseTool:or,LinkingTool:Cs,RelinkingTool:ma,LinkReshapingTool:hr,ResizingTool:ss,RotatingTool:Es,ClickSelectingTool:Eh,ActionTool:Ha,ClickCreatingTool:Hu,HTMLInfo:bl,ContextMenuTool:As,DragSelectingTool:La,PanningTool:ns,TextEditingTool:Ro,ToolManager:Vo,Animation:is,AnimationManager:sa,AnimationTrigger:el,Layer:Hr,Diagram:ye,Palette:gt,Overview:mt,Brush:vo,GraphObject:ee,Panel:tn,RowColumnDefinition:Cr,Shape:Fi,TextBlock:bo,Picture:Ys,Part:ei,Adornment:io,Node:Fn,Link:rn,Placeholder:ks,Layout:Ho,LayoutNetwork:Do,LayoutVertex:Lr,LayoutEdge:ua,GridLayout:Zr,PanelLayout:Mr,CircularLayout:Qo,CircularNetwork:Tg,CircularVertex:gp,CircularEdge:ym,ForceDirectedLayout:rs,ForceDirectedNetwork:Pc,ForceDirectedVertex:fp,ForceDirectedEdge:pp,LayeredDigraphLayout:So,LayeredDigraphNetwork:Og,LayeredDigraphVertex:ja,LayeredDigraphEdge:yp,TreeLayout:Ri,TreeNetwork:Mc,TreeVertex:Qa,TreeEdge:zg};typeof Rm=="object"&&Rm.version&&On("WARNING: a `go` object on the root object is already defined. "+("Debug"in Rm?"debug ":"")+"version: "+Rm.version+", replaced with version: "+zy.version),ye.prototype.go=zy,Be.go=zy,typeof Ye.exports=="object"&&(Ye.exports=typeof Ft.g!="undefined"?Ft.g.go:self.go)}();var ht=typeof Ft.g!="undefined"?Ft.g.go:self.go;const Ht=typeof Ft.g!="undefined"?Ft.g.go:self.go,fe=Ht.Group,Re=Ht.EnumValue,Se=Ht.List,Me=Ht.Set,Jt=Ht.Map,Le=Ht.Point,ce=Ht.Size,ve=Ht.Rect,he=Ht.Margin,Oe=Ht.Spot,je=Ht.Geometry,kt=Ht.PathFigure,et=Ht.PathSegment,nt=Ht.InputEvent,dt=Ht.DiagramEvent,lt=Ht.ChangedEvent,pt=Ht.Model,yt=Ht.GraphLinksModel,At=Ht.TreeModel,Dt=Ht.Binding,Ut=Ht.Transaction,Qt=Ht.UndoManager,$t=Ht.CommandHandler,ne=Ht.Tool,_t=Ht.DraggingTool,Pe=Ht.DraggingInfo,ue=Ht.LinkingBaseTool,pe=Ht.LinkingTool,oe=Ht.RelinkingTool,Ae=Ht.LinkReshapingTool,Ie=Ht.ResizingTool,an=Ht.RotatingTool,Gn=Ht.ClickSelectingTool,bn=Ht.ActionTool,de=Ht.ClickCreatingTool,Wt=Ht.HTMLInfo,xe=Ht.ContextMenuTool,nn=Ht.DragSelectingTool,dn=Ht.PanningTool,ge=Ht.TextEditingTool,we=Ht.ToolManager,Je=Ht.Animation,Bn=Ht.AnimationManager,vn=Ht.AnimationTrigger,zn=Ht.Layer,ae=Ht.Diagram,mn=Ht.Palette,ti=Ht.Overview,Wn=Ht.Brush,ii=Ht.GraphObject,mi=Ht.Panel,yn=Ht.RowColumnDefinition,Ge=Ht.Shape,Ne=Ht.TextBlock,Zn=Ht.TextBlockMetrics,sn=Ht.Picture,We=Ht.Part,en=Ht.Adornment,Nt=Ht.Node,Ct=Ht.Link,St=Ht.Placeholder,Bt=Ht.Layout,Gt=Ht.LayoutNetwork,Lt=Ht.LayoutVertex,ie=Ht.LayoutEdge,Ke=Ht.GridLayout,ln=Ht.PanelLayout,hn=Ht.CircularLayout,Jn=Ht.CircularNetwork,di=Ht.CircularVertex,fi=Ht.CircularEdge,pi=Ht.ForceDirectedLayout,Bi=Ht.ForceDirectedNetwork,qi=Ht.ForceDirectedVertex,Qi=Ht.ForceDirectedEdge,Ao=Ht.LayeredDigraphLayout,Mo=Ht.LayeredDigraphNetwork,Ti=Ht.LayeredDigraphVertex,Ui=Ht.LayeredDigraphEdge,so=Ht.TreeLayout,mo=Ht.TreeNetwork,xi=Ht.TreeVertex,ho=Ht.TreeEdge,pn=Ht.version},24334:function(Ye,jn,Ft){var ht,Ht;(function(fe,Re){Ye.exports=Re(fe)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof Ft.g!="undefined"?Ft.g:this,function(fe){"use strict";fe=fe||{};var Re=fe.Base64,Se="2.6.4",Me="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Jt=function(oe){for(var Ae={},Ie=0,an=oe.length;Ie<an;Ie++)Ae[oe.charAt(Ie)]=Ie;return Ae}(Me),Le=String.fromCharCode,ce=function(oe){if(oe.length<2){var Ae=oe.charCodeAt(0);return Ae<128?oe:Ae<2048?Le(192|Ae>>>6)+Le(128|Ae&63):Le(224|Ae>>>12&15)+Le(128|Ae>>>6&63)+Le(128|Ae&63)}else{var Ae=65536+(oe.charCodeAt(0)-55296)*1024+(oe.charCodeAt(1)-56320);return Le(240|Ae>>>18&7)+Le(128|Ae>>>12&63)+Le(128|Ae>>>6&63)+Le(128|Ae&63)}},ve=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,he=function(oe){return oe.replace(ve,ce)},Oe=function(oe){var Ae=[0,2,1][oe.length%3],Ie=oe.charCodeAt(0)<<16|(oe.length>1?oe.charCodeAt(1):0)<<8|(oe.length>2?oe.charCodeAt(2):0),an=[Me.charAt(Ie>>>18),Me.charAt(Ie>>>12&63),Ae>=2?"=":Me.charAt(Ie>>>6&63),Ae>=1?"=":Me.charAt(Ie&63)];return an.join("")},je=fe.btoa&&typeof fe.btoa=="function"?function(oe){return fe.btoa(oe)}:function(oe){if(oe.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return oe.replace(/[\s\S]{1,3}/g,Oe)},kt=function(oe){return je(he(String(oe)))},et=function(oe){return oe.replace(/[+\/]/g,function(Ae){return Ae=="+"?"-":"_"}).replace(/=/g,"")},nt=function(oe,Ae){return Ae?et(kt(oe)):kt(oe)},dt=function(oe){return nt(oe,!0)},lt;fe.Uint8Array&&(lt=function(oe,Ae){for(var Ie="",an=0,Gn=oe.length;an<Gn;an+=3){var bn=oe[an],de=oe[an+1],Wt=oe[an+2],xe=bn<<16|de<<8|Wt;Ie+=Me.charAt(xe>>>18)+Me.charAt(xe>>>12&63)+(typeof de!="undefined"?Me.charAt(xe>>>6&63):"=")+(typeof Wt!="undefined"?Me.charAt(xe&63):"=")}return Ae?et(Ie):Ie});var pt=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,yt=function(oe){switch(oe.length){case 4:var Ae=(7&oe.charCodeAt(0))<<18|(63&oe.charCodeAt(1))<<12|(63&oe.charCodeAt(2))<<6|63&oe.charCodeAt(3),Ie=Ae-65536;return Le((Ie>>>10)+55296)+Le((Ie&1023)+56320);case 3:return Le((15&oe.charCodeAt(0))<<12|(63&oe.charCodeAt(1))<<6|63&oe.charCodeAt(2));default:return Le((31&oe.charCodeAt(0))<<6|63&oe.charCodeAt(1))}},At=function(oe){return oe.replace(pt,yt)},Dt=function(oe){var Ae=oe.length,Ie=Ae%4,an=(Ae>0?Jt[oe.charAt(0)]<<18:0)|(Ae>1?Jt[oe.charAt(1)]<<12:0)|(Ae>2?Jt[oe.charAt(2)]<<6:0)|(Ae>3?Jt[oe.charAt(3)]:0),Gn=[Le(an>>>16),Le(an>>>8&255),Le(an&255)];return Gn.length-=[0,0,2,1][Ie],Gn.join("")},Ut=fe.atob&&typeof fe.atob=="function"?function(oe){return fe.atob(oe)}:function(oe){return oe.replace(/\S{1,4}/g,Dt)},Qt=function(oe){return Ut(String(oe).replace(/[^A-Za-z0-9\+\/]/g,""))},$t=function(oe){return At(Ut(oe))},ne=function(oe){return String(oe).replace(/[-_]/g,function(Ae){return Ae=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},_t=function(oe){return $t(ne(oe))},Pe;fe.Uint8Array&&(Pe=function(oe){return Uint8Array.from(Qt(ne(oe)),function(Ae){return Ae.charCodeAt(0)})});var ue=function(){var oe=fe.Base64;return fe.Base64=Re,oe};if(fe.Base64={VERSION:Se,atob:Qt,btoa:je,fromBase64:_t,toBase64:nt,utob:he,encode:nt,encodeURI:dt,btou:At,decode:_t,noConflict:ue,fromUint8Array:lt,toUint8Array:Pe},typeof Object.defineProperty=="function"){var pe=function(oe){return{value:oe,enumerable:!1,writable:!0,configurable:!0}};fe.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",pe(function(){return _t(this)})),Object.defineProperty(String.prototype,"toBase64",pe(function(oe){return nt(this,oe)})),Object.defineProperty(String.prototype,"toBase64URI",pe(function(){return nt(this,!0)}))}}return fe.Meteor&&(Base64=fe.Base64),Ye.exports?Ye.exports.Base64=fe.Base64:(ht=[],Ht=function(){return fe.Base64}.apply(jn,ht),Ht!==void 0&&(Ye.exports=Ht)),{Base64:fe.Base64}})},90034:function(Ye,jn,Ft){var ht={"./doc.png":63604,"./docx.png":30045,"./jpg.png":13740,"./md.png":58881,"./pdf.png":28982,"./png.png":2487,"./txt.png":3164,"./xls.png":88745,"./xlsx.png":49321};function Ht(Re){var Se=fe(Re);return Ft(Se)}function fe(Re){if(!Ft.o(ht,Re)){var Se=new Error("Cannot find module '"+Re+"'");throw Se.code="MODULE_NOT_FOUND",Se}return ht[Re]}Ht.keys=function(){return Object.keys(ht)},Ht.resolve=fe,Ye.exports=Ht,Ht.id=90034},32637:function(Ye,jn,Ft){"use strict";Ye.exports=Ft.p+"static/AssistantCode3.a8740efb.jpeg"},93314:function(Ye){"use strict";Ye.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAACaCAYAAADl9acYAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQd4U1Ubfs/NaJtO9kzLahFQEJkiUBBFUFFkCCjiAAVFERT5FREQQQXBBcpysWRP2RtkKRsEOphNodCZdDfjnv85CU2TZt2bhABNDw9PmtzvrO+c957xLQIP0pkz1yrQIEmwwcDzHhTj91klEo7jpcG5zetWUJdmRjmPvTM9GI9JgSGvadOoLE9KJJ5kPp2YXLtZdO1kT8ooz2vigCNelvPYezPEG7z0CDAn4pJqPvJA5A3vdcl/S3LEy3Iee29OeIOX5YDx3nh4VFI5YDxin6DM5YARxKb7g6gcMHd+nMoBc+d57LKGhCQ1ZURBCoVL2nKCO8sBZWW50x1TOWDuLP8FlV4OGEFs8glROWB8wmbPKikHjGf882bucsB4k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IWVtLTgEryOAtpiwSUTWjJhJqi14JKnKCKEFoKgEITLlxDk63laICXIh4Hme0Nw6d3RvzOl/R8AdGoXzom1qQAAAABJRU5ErkJggg=="},73631:function(Ye){"use strict";Ye.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAZxJREFUOBGtlL1Ow0AMgH2XUIkOLFXVASgTsDHxBIAEzAwMPBQjT8AATGVBgEBCYmHmFcICYmBogCbNYSe52HUTVZWwFJ3PP599Z+WMcy6Af5SwYkWnLYifTyBzq5XNK8YNwbbvYP381ZuaVlN1+HJwAc4d1QYaA+gDsHYANrhGHTdCMtSDMILtwSMDn7ZiANPKwyjeQ0Reo4r1gEoEwRkDb7spdPcBeocMk1Cv00oii5L+fgPwcR/zHfb3AJY2sEpUVLOUhB/l+w7I1iS9TYDFrM3AzhqGDstPZ3li2Z12U2WLvk4fGJh+F0elYN8ZrbWiA7igAP4WR6sFzDAKPgPHP0VnlMsFS5IyyIGoeAamCKybYI5UQLWVE2fgGI/s72wqQXRd9jyxiHgGJtihFxGQm8Qd5XvtF3fEQOrQH9mDm1Z9hyJuEphXIq9uSWSQqv8a4RbAUTFdcs7gifwplYGjT3wzbPFz6Q70EZv8WZoxMP66ApMc86inirNBA8njcFIuvOTXhowPyzuQJiukzi3hQgS7b+I9nJtQn/AHsLGsvlcPPWsAAAAASUVORK5CYII="},5623:function(Ye){"use strict";Ye.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAedJREFUOBGtVDtLA0EQ/jY5z7dgEBVJLHyAitpYWQqKjVZa5BfEKpWlWPgrLG0UEdTexkILRUQiSBBBCAhGUINFHia53Dm7ufXcvfgIOHA3O69vvtnbPeY4ThD/KIF/xBJQhg/wbmkZtj0KMKbEGNIweg4xuPmq+DWDKSOfz2/AqaxpOVWzip8HC2xTsydfjoMHhMd2VMDjkSsw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KLvFk516SOQEnfgPdHXJbo0jr4eR9Osqo6H0aygjGsqIHsKQPojS4oBO9ryXkfEVnTKmYUxKBfR77Jmenh3WdWy/Dons8LwdfX3rx8USBkLpxkCIDBgIkQEDITJgIEQGDITIgIEQGTAQIgMGQmTAQIgMGAiRAQMhMmAgRAYMhMiAgRAZMBAiAwZCZMBAiAwYCFG0l195bcdnBgfGxRKrgfzjYG74uqs3MRCyJvWBbO7f+FhXZ+dGPSSK1alTpyemTrxxV6oDWbt2zX0bLu0bFqKYvX785IHT75y5P9WBFCUzdt2VH5W2tjb+E6YUm4XFxakjk8fWtok3kvZA9q/s6nxm8xUbPq2fIorFkcmp5xcWlz6pgaT7PQgC0aH0XbL+mb4P9DASqtvkMd1anT47pENxJhDo7l55oH/DpUM6JKrJq0ePPXN2YfH8H7ROBfKujEz1faB3Uh/nf5NEJsVice7N/Py/p9/K94snG/VT57kXyPvm2tvbX1uxonOuo63d02OiCywsLHQsFoprCoVCVg9DdbR7AzffNDChQyusBvLsC7nsUiGT0yGRFUODWatz2OqTw4GDE1wdyApPvKPDgwP9YpH9QJ7LjUkmc5sOiWLm7R0aHBgVi6wH8vfncyNeMbNPh0Sxsv0GHawHAgcO5sb1pYaEKDb2Vw9IJJCDB3P950QmMpLp0UOiuuh7jxd7VsrwwMBAXg+tSiQQwBmtxYKMMxKqB+LobJdRm6d2yyUWCORyud75s7JbX3anHhJVydu7bqV8L4mVoyTRQEqwmiwtyai+elb43oQi6GoxpxN0QofjXSJ7BgcHJiVh/wemziNQhWOwlgAAAABJRU5ErkJggg=="},88745:function(Ye){"use strict";Ye.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAAFQlJREFUeF7tnXtwFUW+x3+T9/tBCALyBiEkEhJehiAm4RGiF+5a7i6lgCV3191bKMvq6kVx1V1dWW8ZdfXuZYF7d2t1FZeXpYJlQUBAUcI7qIRnAIXEEE7CCQl5J2du9eEezOOc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