You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
NewEduCoderBuild/p__Classrooms__Lists__Exerc...

1179 lines
2.4 MiB

!(function(){var aP=Object.defineProperty,sP=Object.defineProperties;var lP=Object.getOwnPropertyDescriptors;var ev=Object.getOwnPropertySymbols;var Sx=Object.prototype.hasOwnProperty,xx=Object.prototype.propertyIsEnumerable;var yx=(fn,on,we)=>on in fn?aP(fn,on,{enumerable:!0,configurable:!0,writable:!0,value:we}):fn[on]=we,bd=(fn,on)=>{for(var we in on||(on={}))Sx.call(on,we)&&yx(fn,we,on[we]);if(ev)for(var we of ev(on))xx.call(on,we)&&yx(fn,we,on[we]);return fn},Xy=(fn,on)=>sP(fn,lP(on));var Px=(fn,on)=>{var we={};for(var ve in fn)Sx.call(fn,ve)&&on.indexOf(ve)<0&&(we[ve]=fn[ve]);if(fn!=null&&ev)for(var ve of ev(fn))on.indexOf(ve)<0&&xx.call(fn,ve)&&(we[ve]=fn[ve]);return we};(self.webpackChunk=self.webpackChunk||[]).push([[5825],{8336:function(){"use strict"},12469:function(){"use strict"},99587:function(fn,on){"use strict";on.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},98737:function(fn,on){"use strict";on.Z={flex_box_center:"flex_box_center___iyIe6",flex_space_between:"flex_space_between___g2WjG",flex_box_vertical_center:"flex_box_vertical_center___Tde0v",flex_box_center_end:"flex_box_center_end___W1D5W",flex_box_column:"flex_box_column___ZiFvs",bg:"bg___T2R2s",containerTitle:"containerTitle___yARn_",containerDesc:"containerDesc___fKSYF",menus:"menus___e8wtg",listItem:"listItem___s7xhg",info:"info___Hx2bW",title:"title___W7a1R",titleLeft:"titleLeft___C5r0w",titleRight:"titleRight___g5GZv",acitons:"acitons___H0RU0",move:"move___qYkSy",hideHeadCheckbox:"hideHeadCheckbox___Hq5gw",moveCategory:"moveCategory___bZSGQ",tabSearch:"tabSearch___NaKI4",warpModal:"warpModal___HLUgh",modalColumn:"modalColumn___F7R5w",modalRow:"modalRow___L6ghw",sup:"sup___VGKXV",name:"name___QMvgh"}},22982:function(fn,on){"use strict";on.Z={flex_box_center:"flex_box_center___IBr6x",flex_space_between:"flex_space_between___n2Iz0",flex_box_vertical_center:"flex_box_vertical_center___1umwO",flex_box_center_end:"flex_box_center_end___SRZYb",flex_box_column:"flex_box_column___b90Da",form:"form___V3fAH",title_icon:"title_icon____uDZy",title:"title___RxKwK",content:"content___vFT5m",pubColSty:"pubColSty___dfLkL",selectSty:"selectSty____Wuek",borderSty:"borderSty___EuFYV",delSty:"delSty___AdEeI",delBorder:"delBorder___vcTJc",copHover:"copHover___JVVXI",multiple_select:"multiple_select___ZMPhl",work_checkbox_group:"work_checkbox_group___sGLxY"}},19493:function(fn,on){"use strict";on.Z={flex_box_center:"flex_box_center___SF0m3",flex_space_between:"flex_space_between___ChLjp",flex_box_vertical_center:"flex_box_vertical_center____l_EF",flex_box_center_end:"flex_box_center_end___YcZNu",flex_box_column:"flex_box_column___R9dNq",downloadbutton:"downloadbutton___oEXJW",configWorkContainer:"configWorkContainer___CHUrh"}},12327:function(fn,on,we){"use strict";var ve=we(59301),Ye=Object.defineProperty,dt=Object.getOwnPropertySymbols,it=Object.prototype.hasOwnProperty,at=Object.prototype.propertyIsEnumerable,Ze=(nt,De,wt)=>De in nt?Ye(nt,De,{enumerable:!0,configurable:!0,writable:!0,value:wt}):nt[De]=wt,Ue=(nt,De)=>{for(var wt in De||(De={}))it.call(De,wt)&&Ze(nt,wt,De[wt]);if(dt)for(var wt of dt(De))at.call(De,wt)&&Ze(nt,wt,De[wt]);return nt};const xt=nt=>React.createElement("svg",Ue({width:14,height:14,xmlns:"http://www.w3.org/2000/svg"},nt),React.createElement("title",null,"\u7F16\u7EC4 18"),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("circle",{fill:"#FCB041",cx:7,cy:7,r:7}),React.createElement("path",{d:"M7.531 9.638a.616.616 0 1 1-1.231 0v-.02a.616.616 0 1 1 1.231 0v.02Zm0-2.25a.616.616 0 1 1-1.231 0V4.117a.616.616 0 1 1 1.231 0v3.273Z",fill:"#FFF",fillRule:"nonzero"})));on.Z="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48Y2lyY2xlIGZpbGw9IiNGQ0IwNDEiIGN4PSI3IiBjeT0iNyIgcj0iNyIvPjxwYXRoIGQ9Ik03LjUzMSA5LjYzOGEuNjE2LjYxNiAwIDEgMS0xLjIzMSAwdi0uMDJhLjYxNi42MTYgMCAxIDEgMS4yMzEgMHYuMDJabTAtMi4yNWEuNjE2LjYxNiAwIDEgMS0xLjIzMSAwVjQuMTE3YS42MTYuNjE2IDAgMSAxIDEuMjMxIDB2My4yNzNaIiBmaWxsPSIjRkZGIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L2c+PC9zdmc+"},63720:function(){"use strict";function fn(Ee,te,ne,ue){ne===void 0&&(ne=0),ue===void 0&&(ue=1/0),this._name=Ee,this._defaultValue=te,this._minimum=ne,this._maximum=ue}Object.defineProperty(fn.prototype,"name",{get:function(){return this._name},set:function(Ee){if(typeof Ee!="string"||Ee==="")throw new Error("Shape name must be a valid string.");this._name=Ee}}),Object.defineProperty(fn.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(Ee){if(typeof Ee!="number"||isNaN(Ee))throw new Error("The default value must be a real number, not: "+Ee);this._defaultValue=Ee}}),Object.defineProperty(fn.prototype,"minimum",{get:function(){return this._minimum},set:function(Ee){if(typeof Ee!="number"||isNaN(Ee))throw new Error("Minimum must be a real number, not: "+Ee);this._minimum=Ee}}),Object.defineProperty(fn.prototype,"maximum",{get:function(){return this._maximum},set:function(Ee){if(typeof Ee!="number"||isNaN(Ee))throw new Error("Maximum must be a real number, not: "+Ee);this._maximum=Ee}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(Ee,te){var ne=go.Shape._FigureParameters[Ee];return ne?ne[te]:null},go.Shape.setFigureParameter=function(Ee,te,ne){if(!(ne instanceof fn))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+ne);if(ne.defaultValue<ne.minimum||ne.defaultValue>ne.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+ne.defaultValue);var ue=go.Shape._FigureParameters[Ee];ue||(ue=[],go.Shape._FigureParameters[Ee]=ue),ue[te]=ne};var on=[];function we(Ee,te){var ne=on.pop();return ne===void 0?new go.Point(Ee,te):(ne.x=Ee,ne.y=te,ne)}function ve(){var Ee=on.pop();return Ee===void 0?new go.Point:Ee}function Ye(Ee){on.push(Ee)}function dt(Ee,te,ne,ue,se,de,pe,ye,Ce){Ce||(Ce=new go.Point);var ze=Ee-ne,Te=se-pe,Ie=NaN,Oe=NaN;if(ze===0)if(Te===0)Ee===ne&&(Ie=Ee,Oe=te);else{var Re=(de-ye)/Te,rt=de-Re*se;Ie=Ee,Oe=Re*Ie+rt}else if(Te===0){var ot=(te-ue)/ze,Ct=te-ot*Ee;Ie=se,Oe=ot*Ie+Ct}else{var ot=(te-ue)/ze,Re=(de-ye)/Te,Ct=te-ot*Ee,rt=de-Re*se;Ie=(rt-Ct)/(ot-Re),Oe=ot*Ie+Ct}return Ce.x=Ie,Ce.y=Oe,Ce}function it(Ee,te,ne,ue,se,de,pe,ye,Ce,ze,Te,Ie,Oe,Re){var rt=1-Ce,ot=Ce,Ct=Ee*rt+ne*ot,gt=te*rt+ue*ot,kt=ne*rt+se*ot,Lt=ue*rt+de*ot,Ot=se*rt+pe*ot,Nt=de*rt+ye*ot,tn=Ct*rt+kt*ot,st=gt*rt+Lt*ot,He=kt*rt+Ot*ot,Rt=Lt*rt+Nt*ot,Zt=tn*rt+He*ot,_t=st*rt+Rt*ot;ze.x=Ct,ze.y=gt,Te.x=tn,Te.y=st,Ie.x=Zt,Ie.y=_t,Oe.x=He,Oe.y=Rt,Re.x=Ot,Re.y=Nt}var at=new go.Spot(.156,.156),Ze=new go.Spot(.844,.844),Ue=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new fn("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(Ee,te,ne){var ue=Ee?Ee.parameter1:NaN;(isNaN(ue)||ue<0)&&(ue=5),ue=Math.min(ue,te/3),ue=Math.min(ue,ne/3);var se=ue*Ue,de=new go.Geometry().add(new go.PathFigure(ue,0,!0).add(new go.PathSegment(go.PathSegment.Line,te-ue,0)).add(new go.PathSegment(go.PathSegment.Bezier,te,ue,te-se,0,te,se)).add(new go.PathSegment(go.PathSegment.Line,te,ne-ue)).add(new go.PathSegment(go.PathSegment.Bezier,te-ue,ne,te,ne-se,te-se,ne)).add(new go.PathSegment(go.PathSegment.Line,ue,ne)).add(new go.PathSegment(go.PathSegment.Bezier,0,ne-ue,se,ne,0,ne-se)).add(new go.PathSegment(go.PathSegment.Line,0,ue)).add(new go.PathSegment(go.PathSegment.Bezier,ue,0,0,se,se,0).close()));return se>1&&(de.spot1=new go.Spot(0,0,se,se),de.spot2=new go.Spot(1,1,-se,-se)),de}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(Ee,te,ne){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,0,ne).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(Ee,te,ne){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,.5*te,ne).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(Ee,te,ne){return new go.Geometry().add(new go.PathFigure(te,ne).add(new go.PathSegment(go.PathSegment.Line,0,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,te,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(Ee,te,ne){return new go.Geometry().add(new go.PathFigure(te,ne).add(new go.PathSegment(go.PathSegment.Line,0,ne)).add(new go.PathSegment(go.PathSegment.Line,.5*te,0).close())).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",function(Ee,te,ne){return new go.Geometry().add(new go.PathFigure(.5*te,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)).add(new go.PathSegment(go.PathSegment.Line,te,.5*ne).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(Ee,te,ne){var ue=new go.Geometry(go.Geometry.Line);return ue.startX=0,ue.startY=ne/2,ue.endX=te,ue.endY=ne/2,ue}),go.Shape.defineFigureGenerator("LineV",function(Ee,te,ne){var ue=new go.Geometry(go.Geometry.Line);return ue.startX=te/2,ue.startY=0,ue.endX=te/2,ue.endY=ne,ue}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(Ee,te,ne){return new go.Geometry().add(new go.PathFigure(0,ne/2,!1).add(new go.PathSegment(go.PathSegment.Line,te,ne/2)).add(new go.PathSegment(go.PathSegment.Move,te/2,0)).add(new go.PathSegment(go.PathSegment.Line,te/2,ne)))}),go.Shape.defineFigureGenerator("XLine",function(Ee,te,ne){return new go.Geometry().add(new go.PathFigure(0,ne,!1).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,te,ne)))}),go.Shape.defineFigureGenerator("LineRight",function(Ee,te,ne){return new go.Geometry().add(new go.PathFigure(.25*te,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*te,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,.25*te,ne)))}),go.Shape.defineFigureGenerator("LineDown",function(Ee,te,ne){return new go.Geometry().add(new go.PathFigure(0,.25*ne,!1).add(new go.PathSegment(go.PathSegment.Line,.5*te,.75*ne)).add(new go.PathSegment(go.PathSegment.Line,te,.25*ne)))}),go.Shape.defineFigureGenerator("LineLeft",function(Ee,te,ne){return new go.Geometry().add(new go.PathFigure(.75*te,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*te,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,.75*te,ne)))}),go.Shape.defineFigureGenerator("LineUp",function(Ee,te,ne){return new go.Geometry().add(new go.PathFigure(0,.75*ne,!1).add(new go.PathSegment(go.PathSegment.Line,.5*te,.25*ne)).add(new go.PathSegment(go.PathSegment.Line,te,.75*ne)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(Ee,te,ne){var ue=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(ue*te,(1-ue)*ne,!1).add(new go.PathSegment(go.PathSegment.Line,(1-ue)*te,ue*ne)).add(new go.PathSegment(go.PathSegment.Move,ue*te,ue*ne)).add(new go.PathSegment(go.PathSegment.Line,(1-ue)*te,(1-ue)*ne)).add(new go.PathSegment(go.PathSegment.Move,0,ne/2)).add(new go.PathSegment(go.PathSegment.Line,te,ne/2)).add(new go.PathSegment(go.PathSegment.Move,te/2,0)).add(new go.PathSegment(go.PathSegment.Line,te/2,ne)))}),go.Shape.defineFigureGenerator("CircleLine",function(Ee,te,ne){var ue=te/2,se=new go.Geometry().add(new go.PathFigure(te,te/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,ue,ue,ue,ue).close()));return se.spot1=at,se.spot2=Ze,se.defaultStretch=go.GraphObject.Uniform,se}),go.Shape.defineFigureGenerator("Line1",function(Ee,te,ne){var ue=new go.Geometry(go.Geometry.Line);return ue.startX=0,ue.startY=0,ue.endX=te,ue.endY=ne,ue}),go.Shape.defineFigureGenerator("Line2",function(Ee,te,ne){var ue=new go.Geometry(go.Geometry.Line);return ue.startX=te,ue.startY=0,ue.endX=0,ue.endY=ne,ue}),go.Shape.defineFigureGenerator("Curve1",function(Ee,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,te,ne,Ue*te,0,te,(1-Ue)*ne)))}),go.Shape.defineFigureGenerator("Curve2",function(Ee,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,te,ne,0,Ue*ne,(1-Ue)*te,ne)))}),go.Shape.defineFigureGenerator("Curve3",function(Ee,te,ne){return new go.Geometry().add(new go.PathFigure(te,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,ne,te,Ue*ne,Ue*te,ne)))}),go.Shape.defineFigureGenerator("Curve4",function(Ee,te,ne){return new go.Geometry().add(new go.PathFigure(te,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,ne,(1-Ue)*te,0,0,(1-Ue)*ne)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(Ee,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,te,ne)).add(new go.PathSegment(go.PathSegment.Line,0,ne).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(Ee,te,ne){return new go.Geometry().add(new go.PathFigure(te,0,!0).add(new go.PathSegment(go.PathSegment.Line,te,ne)).add(new go.PathSegment(go.PathSegment.Line,0,ne).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(Ee,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,0,ne).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(Ee,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,te,ne).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new fn("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(Ee,te,ne){var ue=Ee?Ee.parameter1:NaN;isNaN(ue)?ue=.1:ue<-1?ue=-1:ue>1&&(ue=1);var se=Math.abs(ue)*te;if(ue===0){var de=new go.Geometry(go.Geometry.Rectangle);return de.startX=0,de.startY=0,de.endX=te,de.endY=ne,de}else{var de=new go.Geometry;return ue>0?de.add(new go.PathFigure(se,0).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,te-se,ne)).add(new go.PathSegment(go.PathSegment.Line,0,ne).close())):de.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,te-se,0)).add(new go.PathSegment(go.PathSegment.Line,te,ne)).add(new go.PathSegment(go.PathSegment.Line,se,ne).close())),se<te/2&&de.setSpots(se/te,0,(te-se)/te,1),de}}),go.Shape.defineFigureGenerator("Parallelogram","Parallelogram1"),go.Shape.setFigureParameter("Parallelogram2",0,new fn("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(Ee,te,ne){var ue=Ee?Ee.parameter1:NaN;isNaN(ue)?ue=10:ue<-te?ue=-te:ue>te&&(ue=te);var se=Math.abs(ue);if(ue===0){var de=new go.Geometry(go.Geometry.Rectangle);return de.startX=0,de.startY=0,de.endX=te,de.endY=ne,de}else{var de=new go.Geometry;return ue>0?de.add(new go.PathFigure(se,0).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,te-se,ne)).add(new go.PathSegment(go.PathSegment.Line,0,ne).close())):de.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,te-se,0)).add(new go.PathSegment(go.PathSegment.Line,te,ne)).add(new go.PathSegment(go.PathSegment.Line,se,ne).close())),se<te/2&&de.setSpots(se/te,0,(te-se)/te,1),de}}),go.Shape.setFigureParameter("Trapezoid1",0,new fn("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(Ee,te,ne){var ue=Ee?Ee.parameter1:NaN;isNaN(ue)?ue=.2:ue<.5?ue=-.5:ue>.5&&(ue=.5);var se=Math.abs(ue)*te;if(ue===0){var de=new go.Geometry(go.Geometry.Rectangle);return de.startX=0,de.startY=0,de.endX=te,de.endY=ne,de}else{var de=new go.Geometry;return ue>0?de.add(new go.PathFigure(se,0).add(new go.PathSegment(go.PathSegment.Line,te-se,0)).add(new go.PathSegment(go.PathSegment.Line,te,ne)).add(new go.PathSegment(go.PathSegment.Line,0,ne).close())):de.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,te-se,ne)).add(new go.PathSegment(go.PathSegment.Line,se,ne).close())),se<te/2&&de.setSpots(se/te,0,(te-se)/te,1),de}}),go.Shape.defineFigureGenerator("Trapezoid","Trapezoid1"),go.Shape.setFigureParameter("Trapezoid2",0,new fn("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(Ee,te,ne){var ue=Ee?Ee.parameter1:NaN;isNaN(ue)?ue=20:ue<-te?ue=-te/2:ue>te&&(ue=te/2);var se=Math.abs(ue);if(ue===0){var de=new go.Geometry(go.Geometry.Rectangle);return de.startX=0,de.startY=0,de.endX=te,de.endY=ne,de}else{var de=new go.Geometry;return ue>0?de.add(new go.PathFigure(se,0).add(new go.PathSegment(go.PathSegment.Line,te-se,0)).add(new go.PathSegment(go.PathSegment.Line,te,ne)).add(new go.PathSegment(go.PathSegment.Line,0,ne).close())):de.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,te-se,ne)).add(new go.PathSegment(go.PathSegment.Line,se,ne).close())),se<te/2&&de.setSpots(se/te,0,(te-se)/te,1),de}}),go.Shape.setFigureParameter("ManualOperation",0,new fn("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(Ee,te,ne){var ue=Ee?Ee.parameter1:NaN;isNaN(ue)?ue=10:ue<-te?ue=-te/2:ue>te&&(ue=te/2);var se=Math.abs(ue);if(ue===0){var de=new go.Geometry(go.Geometry.Rectangle);return de.startX=0,de.startY=0,de.endX=te,de.endY=ne,de}else{var de=new go.Geometry;return ue>0?de.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,te-se,ne)).add(new go.PathSegment(go.PathSegment.Line,se,ne).close())):de.add(new go.PathFigure(se,0).add(new go.PathSegment(go.PathSegment.Line,te-se,0)).add(new go.PathSegment(go.PathSegment.Line,te,ne)).add(new go.PathSegment(go.PathSegment.Line,0,ne).close())),se<te/2&&de.setSpots(se/te,0,(te-se)/te,1),de}});var xt=[];function nt(){var Ee=xt.pop();return Ee===void 0?[]:Ee}function De(Ee){Ee.length=0,xt.push(Ee)}function wt(Ee){for(var te=nt(),ne=.5,ue=.5,se=Math.PI*1.5,de=0,pe=0;pe<Ee;pe++)de=2*Math.PI/Ee*pe+se,te[pe]=new go.Point(ue+ne*Math.cos(de),ue+ne*Math.sin(de));return te.push(te[0]),te}function Ve(Ee){var te=ut(Ee),ne=nt();ne[0]=te[0];for(var ue=1,se=1;ue<te.length;ue+=2,se+=3)ne[se]=te[ue],ne[se+1]=te[ue],ne[se+2]=te[ue+1];return De(te),ne}function ut(Ee){for(var te=wt(Ee),ne=nt(),ue=Math.floor(te.length/2),se=te.length-1,de=Ee%2===0?2:1,pe=0;pe<se;pe++){var ye=te[pe],Ce=te[pe+1],ze=te[(ue+pe-1)%se],Te=te[(ue+pe+de)%se];ne[pe*2]=ye,ne[pe*2+1]=dt(ye.x,ye.y,ze.x,ze.y,Ce.x,Ce.y,Te.x,Te.y,new go.Point)}return ne[ne.length]=ne[0],De(te),ne}go.Shape.defineFigureGenerator("Pentagon",function(Ee,te,ne){var ue=wt(5),se=new go.Geometry,de=new go.PathFigure(ue[0].x*te,ue[0].y*ne,!0);se.add(de);for(var pe=1;pe<5;pe++)de.add(new go.PathSegment(go.PathSegment.Line,ue[pe].x*te,ue[pe].y*ne));return de.add(new go.PathSegment(go.PathSegment.Line,ue[0].x*te,ue[0].y*ne).close()),De(ue),se.spot1=new go.Spot(.2,.22),se.spot2=new go.Spot(.8,.9),se}),go.Shape.defineFigureGenerator("Hexagon",function(Ee,te,ne){var ue=wt(6),se=new go.Geometry,de=new go.PathFigure(ue[0].x*te,ue[0].y*ne,!0);se.add(de);for(var pe=1;pe<6;pe++)de.add(new go.PathSegment(go.PathSegment.Line,ue[pe].x*te,ue[pe].y*ne));return de.add(new go.PathSegment(go.PathSegment.Line,ue[0].x*te,ue[0].y*ne).close()),De(ue),se.spot1=new go.Spot(.07,.25),se.spot2=new go.Spot(.93,.75),se}),go.Shape.defineFigureGenerator("Heptagon",function(Ee,te,ne){var ue=wt(7),se=new go.Geometry,de=new go.PathFigure(ue[0].x*te,ue[0].y*ne,!0);se.add(de);for(var pe=1;pe<7;pe++)de.add(new go.PathSegment(go.PathSegment.Line,ue[pe].x*te,ue[pe].y*ne));return de.add(new go.PathSegment(go.PathSegment.Line,ue[0].x*te,ue[0].y*ne).close()),De(ue),se.spot1=new go.Spot(.2,.15),se.spot2=new go.Spot(.8,.85),se}),go.Shape.defineFigureGenerator("Octagon",function(Ee,te,ne){var ue=wt(8),se=new go.Geometry,de=new go.PathFigure(ue[0].x*te,ue[0].y*ne,!0);se.add(de);for(var pe=1;pe<8;pe++)de.add(new go.PathSegment(go.PathSegment.Line,ue[pe].x*te,ue[pe].y*ne));return de.add(new go.PathSegment(go.PathSegment.Line,ue[0].x*te,ue[0].y*ne).close()),De(ue),se.spot1=new go.Spot(.15,.15),se.spot2=new go.Spot(.85,.85),se}),go.Shape.defineFigureGenerator("Nonagon",function(Ee,te,ne){var ue=wt(9),se=new go.Geometry,de=new go.PathFigure(ue[0].x*te,ue[0].y*ne,!0);se.add(de);for(var pe=1;pe<9;pe++)de.add(new go.PathSegment(go.PathSegment.Line,ue[pe].x*te,ue[pe].y*ne));return de.add(new go.PathSegment(go.PathSegment.Line,ue[0].x*te,ue[0].y*ne).close()),De(ue),se.spot1=new go.Spot(.17,.13),se.spot2=new go.Spot(.82,.82),se}),go.Shape.defineFigureGenerator("Decagon",function(Ee,te,ne){var ue=wt(10),se=new go.Geometry,de=new go.PathFigure(ue[0].x*te,ue[0].y*ne,!0);se.add(de);for(var pe=1;pe<10;pe++)de.add(new go.PathSegment(go.PathSegment.Line,ue[pe].x*te,ue[pe].y*ne));return de.add(new go.PathSegment(go.PathSegment.Line,ue[0].x*te,ue[0].y*ne).close()),De(ue),se.spot1=new go.Spot(.16,.16),se.spot2=new go.Spot(.84,.84),se}),go.Shape.defineFigureGenerator("Dodecagon",function(Ee,te,ne){var ue=wt(12),se=new go.Geometry,de=new go.PathFigure(ue[0].x*te,ue[0].y*ne,!0);se.add(de);for(var pe=1;pe<12;pe++)de.add(new go.PathSegment(go.PathSegment.Line,ue[pe].x*te,ue[pe].y*ne));return de.add(new go.PathSegment(go.PathSegment.Line,ue[0].x*te,ue[0].y*ne).close()),De(ue),se.spot1=new go.Spot(.16,.16),se.spot2=new go.Spot(.84,.84),se}),go.Shape.defineFigureGenerator("FivePointedStar",function(Ee,te,ne){var ue=ut(5),se=new go.Geometry,de=new go.PathFigure(ue[0].x*te,ue[0].y*ne,!0);se.add(de);for(var pe=1;pe<10;pe++)de.add(new go.PathSegment(go.PathSegment.Line,ue[pe].x*te,ue[pe].y*ne));return de.add(new go.PathSegment(go.PathSegment.Line,ue[0].x*te,ue[0].y*ne).close()),De(ue),se.spot1=new go.Spot(.266,.333),se.spot2=new go.Spot(.733,.733),se}),go.Shape.defineFigureGenerator("SixPointedStar",function(Ee,te,ne){var ue=ut(6),se=new go.Geometry,de=new go.PathFigure(ue[0].x*te,ue[0].y*ne,!0);se.add(de);for(var pe=1;pe<12;pe++)de.add(new go.PathSegment(go.PathSegment.Line,ue[pe].x*te,ue[pe].y*ne));return de.add(new go.PathSegment(go.PathSegment.Line,ue[0].x*te,ue[0].y*ne).close()),De(ue),se.spot1=new go.Spot(.17,.25),se.spot2=new go.Spot(.83,.75),se}),go.Shape.defineFigureGenerator("SevenPointedStar",function(Ee,te,ne){var ue=ut(7),se=new go.Geometry,de=new go.PathFigure(ue[0].x*te,ue[0].y*ne,!0);se.add(de);for(var pe=1;pe<14;pe++)de.add(new go.PathSegment(go.PathSegment.Line,ue[pe].x*te,ue[pe].y*ne));return de.add(new go.PathSegment(go.PathSegment.Line,ue[0].x*te,ue[0].y*ne).close()),De(ue),se.spot1=new go.Spot(.222,.277),se.spot2=new go.Spot(.777,.666),se}),go.Shape.defineFigureGenerator("EightPointedStar",function(Ee,te,ne){var ue=ut(8),se=new go.Geometry,de=new go.PathFigure(ue[0].x*te,ue[0].y*ne,!0);se.add(de);for(var pe=1;pe<16;pe++)de.add(new go.PathSegment(go.PathSegment.Line,ue[pe].x*te,ue[pe].y*ne));return de.add(new go.PathSegment(go.PathSegment.Line,ue[0].x*te,ue[0].y*ne).close()),De(ue),se.spot1=new go.Spot(.25,.25),se.spot2=new go.Spot(.75,.75),se}),go.Shape.defineFigureGenerator("NinePointedStar",function(Ee,te,ne){var ue=ut(9),se=new go.Geometry,de=new go.PathFigure(ue[0].x*te,ue[0].y*ne,!0);se.add(de);for(var pe=1;pe<18;pe++)de.add(new go.PathSegment(go.PathSegment.Line,ue[pe].x*te,ue[pe].y*ne));return de.add(new go.PathSegment(go.PathSegment.Line,ue[0].x*te,ue[0].y*ne).close()),De(ue),se.spot1=new go.Spot(.222,.277),se.spot2=new go.Spot(.777,.666),se}),go.Shape.defineFigureGenerator("TenPointedStar",function(Ee,te,ne){var ue=ut(10),se=new go.Geometry,de=new go.PathFigure(ue[0].x*te,ue[0].y*ne,!0);se.add(de);for(var pe=1;pe<20;pe++)de.add(new go.PathSegment(go.PathSegment.Line,ue[pe].x*te,ue[pe].y*ne));return de.add(new go.PathSegment(go.PathSegment.Line,ue[0].x*te,ue[0].y*ne).close()),De(ue),se.spot1=new go.Spot(.281,.261),se.spot2=new go.Spot(.723,.748),se}),go.Shape.defineFigureGenerator("FivePointedBurst",function(Ee,te,ne){var ue=Ve(5),se=new go.Geometry,de=new go.PathFigure(ue[0].x*te,ue[0].y*ne,!0);se.add(de);for(var pe=1;pe<ue.length;pe+=3)de.add(new go.PathSegment(go.PathSegment.Bezier,ue[pe+2].x*te,ue[pe+2].y*ne,ue[pe].x*te,ue[pe].y*ne,ue[pe+1].x*te,ue[pe+1].y*ne));return de.segments.last().close(),De(ue),se.spot1=new go.Spot(.222,.277),se.spot2=new go.Spot(.777,.777),se}),go.Shape.defineFigureGenerator("SixPointedBurst",function(Ee,te,ne){var ue=Ve(6),se=new go.Geometry,de=new go.PathFigure(ue[0].x*te,ue[0].y*ne,!0);se.add(de);for(var pe=1;pe<ue.length;pe+=3)de.add(new go.PathSegment(go.PathSegment.Bezier,ue[pe+2].x*te,ue[pe+2].y*ne,ue[pe].x*te,ue[pe].y*ne,ue[pe+1].x*te,ue[pe+1].y*ne));return de.segments.last().close(),De(ue),se.spot1=new go.Spot(.17,.222),se.spot2=new go.Spot(.833,.777),se}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(Ee,te,ne){var ue=Ve(7),se=new go.Geometry,de=new go.PathFigure(ue[0].x*te,ue[0].y*ne,!0);se.add(de);for(var pe=1;pe<ue.length;pe+=3)de.add(new go.PathSegment(go.PathSegment.Bezier,ue[pe+2].x*te,ue[pe+2].y*ne,ue[pe].x*te,ue[pe].y*ne,ue[pe+1].x*te,ue[pe+1].y*ne));return de.segments.last().close(),De(ue),se.spot1=new go.Spot(.222,.222),se.spot2=new go.Spot(.777,.777),se}),go.Shape.defineFigureGenerator("EightPointedBurst",function(Ee,te,ne){var ue=Ve(8),se=new go.Geometry,de=new go.PathFigure(ue[0].x*te,ue[0].y*ne,!0);se.add(de);for(var pe=1;pe<ue.length;pe+=3)de.add(new go.PathSegment(go.PathSegment.Bezier,ue[pe+2].x*te,ue[pe+2].y*ne,ue[pe].x*te,ue[pe].y*ne,ue[pe+1].x*te,ue[pe+1].y*ne));return de.segments.last().close(),De(ue),se.spot1=new go.Spot(.222,.222),se.spot2=new go.Spot(.777,.777),se}),go.Shape.defineFigureGenerator("NinePointedBurst",function(Ee,te,ne){var ue=Ve(9),se=new go.Geometry,de=new go.PathFigure(ue[0].x*te,ue[0].y*ne,!0);se.add(de);for(var pe=1;pe<ue.length;pe+=3)de.add(new go.PathSegment(go.PathSegment.Bezier,ue[pe+2].x*te,ue[pe+2].y*ne,ue[pe].x*te,ue[pe].y*ne,ue[pe+1].x*te,ue[pe+1].y*ne));return de.segments.last().close(),De(ue),se.spot1=new go.Spot(.222,.222),se.spot2=new go.Spot(.777,.777),se}),go.Shape.defineFigureGenerator("TenPointedBurst",function(Ee,te,ne){var ue=Ve(10),se=new go.Geometry,de=new go.PathFigure(ue[0].x*te,ue[0].y*ne,!0);se.add(de);for(var pe=1;pe<ue.length;pe+=3)de.add(new go.PathSegment(go.PathSegment.Bezier,ue[pe+2].x*te,ue[pe+2].y*ne,ue[pe].x*te,ue[pe].y*ne,ue[pe+1].x*te,ue[pe+1].y*ne));return de.segments.last().close(),De(ue),se.spot1=new go.Spot(.222,.222),se.spot2=new go.Spot(.777,.777),se}),go.Shape.setFigureParameter("FramedRectangle",0,new fn("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new fn("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(Ee,te,ne){var ue=Ee?Ee.parameter1:NaN,se=Ee?Ee.parameter2:NaN;isNaN(ue)&&(ue=8),isNaN(se)&&(se=8);var de=new go.Geometry,pe=new go.PathFigure(0,0,!0);return de.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,te,0)),pe.add(new go.PathSegment(go.PathSegment.Line,te,ne)),pe.add(new go.PathSegment(go.PathSegment.Line,0,ne).close()),ue<te/2&&se<ne/2&&(pe.add(new go.PathSegment(go.PathSegment.Move,ue,se)),pe.add(new go.PathSegment(go.PathSegment.Line,ue,ne-se)),pe.add(new go.PathSegment(go.PathSegment.Line,te-ue,ne-se)),pe.add(new go.PathSegment(go.PathSegment.Line,te-ue,se).close())),de.setSpots(0,0,1,1,ue,se,-ue,-se),de}),go.Shape.setFigureParameter("Ring",0,new fn("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(Ee,te,ne){var ue=Ee?Ee.parameter1:NaN;(isNaN(ue)||ue<0)&&(ue=8);var se=te/2,de=new go.Geometry,pe=new go.PathFigure(te,te/2,!0);de.add(pe),pe.add(new go.PathSegment(go.PathSegment.Arc,0,360,se,se,se,se).close());var ye=Math.max(se-ue,0);return ye>0&&(pe.add(new go.PathSegment(go.PathSegment.Move,te/2+ye,te/2)),pe.add(new go.PathSegment(go.PathSegment.Arc,0,-360,se,se,ye,ye).close())),de.spot1=at,de.spot2=Ze,de.defaultStretch=go.GraphObject.Uniform,de}),go.Shape.defineFigureGenerator("Cloud",function(Ee,te,ne){return new go.Geometry().add(new go.PathFigure(.08034461*te,.1944299*ne,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*te,.05349299*ne,-.09239631*te,.07836421*ne,.1406031*te,-.0542823*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*te,.074219*ne,.2450511*te,-.00697547*ne,.3776197*te,-.01112067*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*te,.07004196*ne,.4539471*te,0,.6066018*te,-.02526587*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*te,.08370865*ne,.6914277*te,-.01904177*ne,.8921095*te,-.01220843*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*te,.3194596*ne,1.036446*te,.04105738*ne,1.020377*te,.3022052*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*te,.562044*ne,1.04448*te,.360238*ne,.992256*te,.5219009*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*te,.8217117*ne,1.032337*te,.5771781*ne,1.018411*te,.8120651*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*te,.9156953*ne,1.028411*te,.9571472*ne,.8556702*te,1.052487*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*te,.9310455*ne,.7431877*te,1.009325*ne,.5624123*te,1.021761*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*te,.9344623*ne,.4820677*te,1.031761*ne,.3030112*te,1.002796*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*te,.870098*ne,.2329994*te,1.01518*ne,.03213784*te,1.01518*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*te,.6545475*ne,-.02812061*te,.9032597*ne,-.01205169*te,.6835638*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*te,.4265613*ne,-.01812061*te,.6089503*ne,-.00606892*te,.4555777*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*te,.1944299*ne,-.01606892*te,.3892545*ne,-.01205169*te,.1944299*ne))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(Ee,te,ne){var ue=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(ue*te,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-ue)*te,0)).add(new go.PathSegment(go.PathSegment.Line,te,ue*ne)).add(new go.PathSegment(go.PathSegment.Line,te,(1-ue)*ne)).add(new go.PathSegment(go.PathSegment.Line,(1-ue)*te,ne)).add(new go.PathSegment(go.PathSegment.Line,ue*te,ne)).add(new go.PathSegment(go.PathSegment.Line,0,(1-ue)*ne)).add(new go.PathSegment(go.PathSegment.Line,0,ue*ne).close())).setSpots(ue/2,ue/2,1-ue/2,1-ue/2)}),go.Shape.setFigureParameter("Pie",0,new fn("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new fn("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(Ee,te,ne){var ue=Ee?Ee.parameter1:NaN,se=Ee?Ee.parameter2:NaN;isNaN(ue)&&(ue=0),isNaN(se)&&(se=315);var de=ue%360;de<0&&(de+=360);var pe=se%360,ye=Math.min(te,ne)/2;return new go.Geometry().add(new go.PathFigure(ye,ye).add(new go.PathSegment(go.PathSegment.Arc,de,pe,ye,ye,ye,ye).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(Ee,te,ne){var ue=Ue/Math.SQRT2*.5,se=Math.SQRT2/2,de=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(te,ne,!0).add(new go.PathSegment(go.PathSegment.Bezier,se*te,de*ne,te,(1-ue)*ne,(se+ue)*te,(de+ue)*ne)).add(new go.PathSegment(go.PathSegment.Line,0,ne).close()))}),go.Shape.setFigureParameter("ThickCross",0,new fn("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(Ee,te,ne){var ue=Ee?Ee.parameter1:NaN;(isNaN(ue)||ue<0)&&(ue=30);var se=Math.min(ue,te)/2,de=te/2,pe=ne/2;return new go.Geometry().add(new go.PathFigure(de-se,0,!0).add(new go.PathSegment(go.PathSegment.Line,de+se,0)).add(new go.PathSegment(go.PathSegment.Line,de+se,pe-se)).add(new go.PathSegment(go.PathSegment.Line,te,pe-se)).add(new go.PathSegment(go.PathSegment.Line,te,pe+se)).add(new go.PathSegment(go.PathSegment.Line,de+se,pe+se)).add(new go.PathSegment(go.PathSegment.Line,de+se,ne)).add(new go.PathSegment(go.PathSegment.Line,de-se,ne)).add(new go.PathSegment(go.PathSegment.Line,de-se,pe+se)).add(new go.PathSegment(go.PathSegment.Line,0,pe+se)).add(new go.PathSegment(go.PathSegment.Line,0,pe-se)).add(new go.PathSegment(go.PathSegment.Line,de-se,pe-se).close()))}),go.Shape.setFigureParameter("ThinCross",0,new fn("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(Ee,te,ne){var ue=Ee?Ee.parameter1:NaN;(isNaN(ue)||ue<0)&&(ue=10);var se=Math.min(ue,te)/2,de=te/2,pe=ne/2;return new go.Geometry().add(new go.PathFigure(de-se,0,!0).add(new go.PathSegment(go.PathSegment.Line,de+se,0)).add(new go.PathSegment(go.PathSegment.Line,de+se,pe-se)).add(new go.PathSegment(go.PathSegment.Line,te,pe-se)).add(new go.PathSegment(go.PathSegment.Line,te,pe+se)).add(new go.PathSegment(go.PathSegment.Line,de+se,pe+se)).add(new go.PathSegment(go.PathSegment.Line,de+se,ne)).add(new go.PathSegment(go.PathSegment.Line,de-se,ne)).add(new go.PathSegment(go.PathSegment.Line,de-se,pe+se)).add(new go.PathSegment(go.PathSegment.Line,0,pe+se)).add(new go.PathSegment(go.PathSegment.Line,0,pe-se)).add(new go.PathSegment(go.PathSegment.Line,de-se,pe-se).close()))}),go.Shape.setFigureParameter("ThickX",0,new fn("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(Ee,te,ne){var ue=Ee?Ee.parameter1:NaN;if((isNaN(ue)||ue<0)&&(ue=30),te===0||ne===0){var se=new go.Geometry(go.Geometry.Rectangle);return se.startX=0,se.startY=0,se.endX=te,se.endY=ne,se}else{var de=te/2,pe=ne/2,ye=Math.atan2(ne,te),Ce=ue-Math.min(Math.cos(ye)*ue/2,de),ze=ue-Math.min(Math.sin(ye)*ue/2,pe),se=new go.Geometry,Te=new go.PathFigure(Ce,0,!0);return se.add(Te),Te.add(new go.PathSegment(go.PathSegment.Line,de,.2*ne)),Te.add(new go.PathSegment(go.PathSegment.Line,te-Ce,0)),Te.add(new go.PathSegment(go.PathSegment.Line,te,ze)),Te.add(new go.PathSegment(go.PathSegment.Line,.8*te,pe)),Te.add(new go.PathSegment(go.PathSegment.Line,te,ne-ze)),Te.add(new go.PathSegment(go.PathSegment.Line,te-Ce,ne)),Te.add(new go.PathSegment(go.PathSegment.Line,de,.8*ne)),Te.add(new go.PathSegment(go.PathSegment.Line,Ce,ne)),Te.add(new go.PathSegment(go.PathSegment.Line,0,ne-ze)),Te.add(new go.PathSegment(go.PathSegment.Line,.2*te,pe)),Te.add(new go.PathSegment(go.PathSegment.Line,0,ze).close()),se}}),go.Shape.setFigureParameter("ThinX",0,new fn("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(Ee,te,ne){var ue=Ee?Ee.parameter1:NaN;(isNaN(ue)||ue<0)&&(ue=10);var se=new go.Geometry,de=new go.PathFigure(.1*te,0,!0);return se.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.5*te,.4*ne)),de.add(new go.PathSegment(go.PathSegment.Line,.9*te,0)),de.add(new go.PathSegment(go.PathSegment.Line,te,.1*ne)),de.add(new go.PathSegment(go.PathSegment.Line,.6*te,.5*ne)),de.add(new go.PathSegment(go.PathSegment.Line,te,.9*ne)),de.add(new go.PathSegment(go.PathSegment.Line,.9*te,ne)),de.add(new go.PathSegment(go.PathSegment.Line,.5*te,.6*ne)),de.add(new go.PathSegment(go.PathSegment.Line,.1*te,ne)),de.add(new go.PathSegment(go.PathSegment.Line,0,.9*ne)),de.add(new go.PathSegment(go.PathSegment.Line,.4*te,.5*ne)),de.add(new go.PathSegment(go.PathSegment.Line,0,.1*ne).close()),se}),go.Shape.setFigureParameter("SquareIBeam",0,new fn("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(Ee,te,ne){var ue=Ee?Ee.parameter1:NaN;isNaN(ue)&&(ue=.2);var se=new go.Geometry,de=new go.PathFigure(0,0,!0);return se.add(de),de.add(new go.PathSegment(go.PathSegment.Line,te,0)),de.add(new go.PathSegment(go.PathSegment.Line,te,ue*ne)),de.add(new go.PathSegment(go.PathSegment.Line,(.5+ue/2)*te,ue*ne)),de.add(new go.PathSegment(go.PathSegment.Line,(.5+ue/2)*te,(1-ue)*ne)),de.add(new go.PathSegment(go.PathSegment.Line,te,(1-ue)*ne)),de.add(new go.PathSegment(go.PathSegment.Line,te,ne)),de.add(new go.PathSegment(go.PathSegment.Line,0,ne)),de.add(new go.PathSegment(go.PathSegment.Line,0,(1-ue)*ne)),de.add(new go.PathSegment(go.PathSegment.Line,(.5-ue/2)*te,(1-ue)*ne)),de.add(new go.PathSegment(go.PathSegment.Line,(.5-ue/2)*te,ue*ne)),de.add(new go.PathSegment(go.PathSegment.Line,0,ue*ne).close()),se}),go.Shape.setFigureParameter("RoundedIBeam",0,new fn("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(Ee,te,ne){var ue=Ee?Ee.parameter1:NaN;isNaN(ue)&&(ue=.5);var se=new go.Geometry,de=new go.PathFigure(0,0,!0);return se.add(de),de.add(new go.PathSegment(go.PathSegment.Line,te,0)),de.add(new go.PathSegment(go.PathSegment.Bezier,te,ne,Math.abs(1-ue)*te,.25*ne,Math.abs(1-ue)*te,.75*ne)),de.add(new go.PathSegment(go.PathSegment.Line,0,ne)),de.add(new go.PathSegment(go.PathSegment.Bezier,0,0,ue*te,.75*ne,ue*te,.25*ne).close()),se}),go.Shape.defineFigureGenerator("HalfEllipse",function(Ee,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ne,Ue*te,0,te,(.5-Ue/2)*ne)).add(new go.PathSegment(go.PathSegment.Bezier,0,ne,te,(.5+Ue/2)*ne,Ue*te,ne).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(Ee,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,ne,te,0,te,ne)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*te,.75*ne,.5*te,.25*ne).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(Ee,te,ne){return new go.Geometry().add(new go.PathFigure(.5*te,ne,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*ne,.1*te,.8*ne,0,.5*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.3*ne,0,0,.45*te,0)).add(new go.PathSegment(go.PathSegment.Bezier,te,.3*ne,.55*te,0,te,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ne,te,.5*ne,.9*te,.8*ne).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(Ee,te,ne){return new go.Geometry().add(new go.PathFigure(.5*te,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*te,.01*ne)).add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ne,.6*te,.2*ne,te,.25*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.55*te,.7*ne,te,.8*ne,.6*te,.8*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.75*te,ne,.5*te,.75*ne,.55*te,.95*ne)).add(new go.PathSegment(go.PathSegment.Line,.25*te,ne)).add(new go.PathSegment(go.PathSegment.Bezier,.45*te,.7*ne,.45*te,.95*ne,.5*te,.75*ne)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ne,.4*te,.8*ne,0,.8*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.49*te,.01*ne,0,.25*ne,.4*te,.2*ne).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(Ee,te,ne){var ue=new go.Geometry,se=new go.PathFigure(.4*te,.6*ne,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,.15*te,ne,.5*te,.75*ne,.45*te,.95*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.85*te,ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.6*te,.6*ne,.55*te,.95*ne,.5*te,.75*ne));var de=.2,pe=.3,ye=0,Ce=de*Ue;return se.add(new go.PathSegment(go.PathSegment.Bezier,(.5+pe)*te,(.5+de+ye)*ne,(.5-de+pe)*te,(.5+Ce+ye)*ne,(.5-Ce+pe)*te,(.5+de+ye)*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+de+pe)*te,(.5+ye)*ne,(.5+Ce+pe)*te,(.5+de+ye)*ne,(.5+de+pe)*te,(.5+Ce+ye)*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.5+pe)*te,(.5-de+ye)*ne,(1-.5+de+pe)*te,(.5-Ce+ye)*ne,(.5+Ce+pe)*te,(.5-de+ye)*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.65*te,.36771243*ne,(.5-Ce+pe)*te,(.5-de+ye)*ne,(.5-de+pe+.05)*te,(.5-Ce+ye-.02)*ne)),de=.2,pe=0,ye=-.3,Ce=de*Ue,se.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+de+pe)*te,(.5+ye)*ne,(.5+Ce+pe)*te,(.5+de+ye)*ne,(.5+de+pe)*te,(.5+Ce+ye)*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.5+pe)*te,(.5-de+ye)*ne,(1-.5+de+pe)*te,(.5-Ce+ye)*ne,(.5+Ce+pe)*te,(.5-de+ye)*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.5-de+pe)*te,(.5+ye)*ne,(.5-Ce+pe)*te,(.5-de+ye)*ne,(.5-de+pe)*te,(.5-Ce+ye)*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.5-Ce+pe)*te,(.5+de+ye)*ne,(.5-de+pe)*te,(.5+Ce+ye)*ne,(.5-Ce+pe)*te,(.5+de+ye)*ne)),de=.2,pe=-.3,ye=0,Ce=de*Ue,se.add(new go.PathSegment(go.PathSegment.Bezier,(.5+pe)*te,(.5-de+ye)*ne,(1-.5+de+pe-.05)*te,(.5-Ce+ye-.02)*ne,(.5+Ce+pe)*te,(.5-de+ye)*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.5-de+pe)*te,(.5+ye)*ne,(.5-Ce+pe)*te,(.5-de+ye)*ne,(.5-de+pe)*te,(.5-Ce+ye)*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.5+pe)*te,(.5+de+ye)*ne,(.5-de+pe)*te,(.5+Ce+ye)*ne,(.5-Ce+pe)*te,(.5+de+ye)*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.4*te,.6*ne,(.5+Ce+pe)*te,(.5+de+ye)*ne,(.5+de+pe)*te,(.5+Ce+ye)*ne).close()),ue.setSpots(.06,.33,.93,.68),ue}),go.Shape.defineFigureGenerator("YinYang",function(Ee,te,ne){var ue=new go.Geometry,se=new go.PathFigure(te*.5,0,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Arc,270,180,te*.5,te*.5,te*.5,te*.5)),se.add(new go.PathSegment(go.PathSegment.Arc,90,-180,te*.5,te*.75,te*.25,te*.25)),se.add(new go.PathSegment(go.PathSegment.Arc,90,180,te*.5,te*.25,te*.25,te*.25));var de=.1,pe=.5,ye=.25;return se.add(new go.PathSegment(go.PathSegment.Move,(pe+de)*te,ye*ne)),se.add(new go.PathSegment(go.PathSegment.Arc,0,-360,te*pe,ne*ye,de*te,de*te).close()),se=new go.PathFigure(te*.5,0,!1),ue.add(se),se.add(new go.PathSegment(go.PathSegment.Arc,270,-180,te*.5,te*.5,te*.5,te*.5)),ye=.75,se=new go.PathFigure((pe+de)*te,ye*ne,!0),ue.add(se),se.add(new go.PathSegment(go.PathSegment.Arc,0,360,te*pe,ne*ye,de*te,de*te).close()),ue.defaultStretch=go.GraphObject.Uniform,ue}),go.Shape.defineFigureGenerator("Peace",function(Ee,te,ne){var ue=.8535533905932737,se=.5*te,de=.5*ne;return new go.Geometry().add(new go.PathFigure(se,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,se,de,se,de)).add(new go.PathSegment(go.PathSegment.Line,se,ne)).add(new go.PathSegment(go.PathSegment.Move,se,de)).add(new go.PathSegment(go.PathSegment.Line,(1-ue)*te,ue*ne)).add(new go.PathSegment(go.PathSegment.Move,se,de)).add(new go.PathSegment(go.PathSegment.Line,ue*te,ue*ne)))}),go.Shape.defineFigureGenerator("NotAllowed",function(Ee,te,ne){var ue=new go.Geometry,se=Ue*.5,de=.5,pe=.5,ye=.5,Ce=new go.PathFigure(pe*te,(ye-de)*ne);ue.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(pe-de)*te,ye*ne,(pe-se)*te,(ye-de)*ne,(pe-de)*te,(ye-se)*ne)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,pe*te,(ye+de)*ne,(pe-de)*te,(ye+se)*ne,(pe-se)*te,(ye+de)*ne)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(pe+de)*te,ye*ne,(pe+se)*te,(ye+de)*ne,(pe+de)*te,(ye+se)*ne)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,pe*te,(ye-de)*ne,(pe+de)*te,(ye-se)*ne,(pe+se)*te,(ye-de)*ne)),de=.4,se=Ue*.4;var ze=ve(),Te=ve(),Ie=ve(),Oe=ve();it(pe,ye-de,pe+se,ye-de,pe+de,ye-se,pe+de,ye,.42,ze,Te,Ie,Oe,Oe);var Re=ve(),rt=ve(),ot=ve();it(pe,ye-de,pe+se,ye-de,pe+de,ye-se,pe+de,ye,.58,Oe,Oe,ot,Re,rt);var Ct=ve(),gt=ve(),kt=ve();it(pe,ye+de,pe-se,ye+de,pe-de,ye+se,pe-de,ye,.42,Ct,gt,kt,Oe,Oe);var Lt=ve(),Ot=ve(),Nt=ve();return it(pe,ye+de,pe-se,ye+de,pe-de,ye+se,pe-de,ye,.58,Oe,Oe,Nt,Lt,Ot),Ce.add(new go.PathSegment(go.PathSegment.Move,Nt.x*te,Nt.y*ne)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(pe-de)*te,ye*ne,Lt.x*te,Lt.y*ne,Ot.x*te,Ot.y*ne)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,pe*te,(ye-de)*ne,(pe-de)*te,(ye-se)*ne,(pe-se)*te,(ye-de)*ne)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,Ie.x*te,Ie.y*ne,ze.x*te,ze.y*ne,Te.x*te,Te.y*ne)),Ce.add(new go.PathSegment(go.PathSegment.Line,Nt.x*te,Nt.y*ne).close()),Ce.add(new go.PathSegment(go.PathSegment.Move,kt.x*te,kt.y*ne)),Ce.add(new go.PathSegment(go.PathSegment.Line,ot.x*te,ot.y*ne)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(pe+de)*te,ye*ne,Re.x*te,Re.y*ne,rt.x*te,rt.y*ne)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,pe*te,(ye+de)*ne,(pe+de)*te,(ye+se)*ne,(pe+se)*te,(ye+de)*ne)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,kt.x*te,kt.y*ne,Ct.x*te,Ct.y*ne,gt.x*te,gt.y*ne).close()),Ye(ze),Ye(Te),Ye(Ie),Ye(Oe),Ye(Re),Ye(rt),Ye(ot),Ye(Ct),Ye(gt),Ye(kt),Ye(Lt),Ye(Ot),Ye(Nt),ue.defaultStretch=go.GraphObject.Uniform,ue}),go.Shape.defineFigureGenerator("Fragile",function(Ee,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*te,0)).add(new go.PathSegment(go.PathSegment.Line,.2*te,.15*ne)).add(new go.PathSegment(go.PathSegment.Line,.3*te,.25*ne)).add(new go.PathSegment(go.PathSegment.Line,.29*te,.33*ne)).add(new go.PathSegment(go.PathSegment.Line,.35*te,.25*ne)).add(new go.PathSegment(go.PathSegment.Line,.3*te,.15*ne)).add(new go.PathSegment(go.PathSegment.Line,.4*te,0)).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*te,.5*ne,te,.25*ne,.75*te,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,.55*te,.9*ne)).add(new go.PathSegment(go.PathSegment.Line,.7*te,.9*ne)).add(new go.PathSegment(go.PathSegment.Line,.7*te,ne)).add(new go.PathSegment(go.PathSegment.Line,.3*te,ne)).add(new go.PathSegment(go.PathSegment.Line,.3*te,.9*ne)).add(new go.PathSegment(go.PathSegment.Line,.45*te,.9*ne)).add(new go.PathSegment(go.PathSegment.Line,.45*te,.5*ne)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*te,.5*ne,0,.25*ne).close()))}),go.Shape.setFigureParameter("HourGlass",0,new fn("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(Ee,te,ne){var ue=Ee?Ee.parameter1:NaN;(isNaN(ue)||ue<0)&&(ue=30),ue>te&&(ue=te);var se=(te-ue)/2,de=se+ue;return new go.Geometry().add(new go.PathFigure(de,.5*ne).add(new go.PathSegment(go.PathSegment.Line,te,ne)).add(new go.PathSegment(go.PathSegment.Line,0,ne)).add(new go.PathSegment(go.PathSegment.Line,se,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,te,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(Ee,te,ne){return new go.Geometry().add(new go.PathFigure(0,.55*ne).add(new go.PathSegment(go.PathSegment.Line,.6*te,0)).add(new go.PathSegment(go.PathSegment.Line,.3*te,.45*ne)).add(new go.PathSegment(go.PathSegment.Line,te,.45*ne)).add(new go.PathSegment(go.PathSegment.Line,.4*te,ne)).add(new go.PathSegment(go.PathSegment.Line,.7*te,.55*ne).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(Ee,te,ne){var ue=new go.Geometry,se=Ue*.4,de=.4,pe=.5,ye=.5,Ce=ve(),ze=ve(),Te=ve(),Ie=ve(),Oe=new go.PathFigure((pe-de)*te,ye*ne,!1);ue.add(Oe),Oe.add(new go.PathSegment(go.PathSegment.Bezier,pe*te,(ye-de)*ne,(pe-de)*te,(ye-se)*ne,(pe-se)*te,(ye-de)*ne)),it(pe,ye-de,pe+se,ye-de,pe+de,ye-se,pe+de,ye,.44,Te,Ie,ze,Ce,Ce),Oe.add(new go.PathSegment(go.PathSegment.Bezier,ze.x*te,ze.y*ne,Te.x*te,Te.y*ne,Ie.x*te,Ie.y*ne));var Re=we(ze.x,ze.y);it(pe,ye-de,pe+se,ye-de,pe+de,ye-se,pe+de,ye,.56,Ce,Ce,ze,Te,Ie);var rt=we(ze.x,ze.y);Oe.add(new go.PathSegment(go.PathSegment.Line,(Re.x*.1+.95*.9)*te,Re.y*.1*ne)),Oe.add(new go.PathSegment(go.PathSegment.Line,.85*te,Re.y*.1*ne)),Oe.add(new go.PathSegment(go.PathSegment.Line,.85*te,0)),Oe.add(new go.PathSegment(go.PathSegment.Line,te,0)),Oe.add(new go.PathSegment(go.PathSegment.Line,te,.15*ne)),Oe.add(new go.PathSegment(go.PathSegment.Line,(rt.x*.1+.9)*te,.15*ne)),Oe.add(new go.PathSegment(go.PathSegment.Line,(rt.x*.1+.9)*te,(rt.y*.1+.05*.9)*ne)),Oe.add(new go.PathSegment(go.PathSegment.Line,rt.x*te,rt.y*ne)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(pe+de)*te,ye*ne,Te.x*te,Te.y*ne,Ie.x*te,Ie.y*ne)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,pe*te,(ye+de)*ne,(pe+de)*te,(ye+se)*ne,(pe+se)*te,(ye+de)*ne)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(pe-de)*te,ye*ne,(pe-se)*te,(ye+de)*ne,(pe-de)*te,(ye+se)*ne)),de=.35,se=Ue*.35;var ot=new go.PathFigure(pe*te,(ye-de)*ne,!1);ue.add(ot),ot.add(new go.PathSegment(go.PathSegment.Bezier,(pe-de)*te,ye*ne,(pe-se)*te,(ye-de)*ne,(pe-de)*te,(ye-se)*ne)),ot.add(new go.PathSegment(go.PathSegment.Bezier,pe*te,(ye+de)*ne,(pe-de)*te,(ye+se)*ne,(pe-se)*te,(ye+de)*ne)),ot.add(new go.PathSegment(go.PathSegment.Bezier,(pe+de)*te,ye*ne,(pe+se)*te,(ye+de)*ne,(pe+de)*te,(ye+se)*ne)),ot.add(new go.PathSegment(go.PathSegment.Bezier,pe*te,(ye-de)*ne,(pe+de)*te,(ye-se)*ne,(pe+se)*te,(ye-de)*ne));var Ct=new go.PathFigure((pe-de)*te,ye*ne,!1);return ue.add(Ct),Ye(Ce),Ye(ze),Ye(Te),Ye(Ie),Ye(Re),Ye(rt),ue.spot1=new go.Spot(.202,.257),ue.spot2=new go.Spot(.792,.739),ue.defaultStretch=go.GraphObject.Uniform,ue}),go.Shape.defineFigureGenerator("GenderFemale",function(Ee,te,ne){var ue=new go.Geometry,se=.375,de=0,pe=-.125,ye=se*Ue,Ce=new go.PathFigure((.525+de)*te,(.5+se+pe)*ne,!1);ue.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+se+de)*te,(.5+pe)*ne,(.5+ye+de)*te,(.5+se+pe)*ne,(.5+se+de)*te,(.5+ye+pe)*ne)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(.5+de)*te,(.5-se+pe)*ne,(1-.5+se+de)*te,(.5-ye+pe)*ne,(.5+ye+de)*te,(.5-se+pe)*ne)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(.5-se+de)*te,(.5+pe)*ne,(.5-ye+de)*te,(.5-se+pe)*ne,(.5-se+de)*te,(.5-ye+pe)*ne)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(.475+de)*te,(.5+se+pe)*ne,(.5-se+de)*te,(.5+ye+pe)*ne,(.5-ye+de)*te,(.5+se+pe)*ne)),Ce.add(new go.PathSegment(go.PathSegment.Line,.475*te,.85*ne)),Ce.add(new go.PathSegment(go.PathSegment.Line,.425*te,.85*ne)),Ce.add(new go.PathSegment(go.PathSegment.Line,.425*te,.9*ne)),Ce.add(new go.PathSegment(go.PathSegment.Line,.475*te,.9*ne)),Ce.add(new go.PathSegment(go.PathSegment.Line,.475*te,ne)),Ce.add(new go.PathSegment(go.PathSegment.Line,.525*te,ne)),Ce.add(new go.PathSegment(go.PathSegment.Line,.525*te,.9*ne)),Ce.add(new go.PathSegment(go.PathSegment.Line,.575*te,.9*ne)),Ce.add(new go.PathSegment(go.PathSegment.Line,.575*te,.85*ne)),Ce.add(new go.PathSegment(go.PathSegment.Line,.525*te,.85*ne).close()),se=.325,de=0,pe=-.125,ye=se*Ue;var Ce=new go.PathFigure((1-.5+se+de)*te,(.5+pe)*ne,!1);ue.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(.5+de)*te,(.5+se+pe)*ne,(.5+se+de)*te,(.5+ye+pe)*ne,(.5+ye+de)*te,(.5+se+pe)*ne)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(.5-se+de)*te,(.5+pe)*ne,(.5-ye+de)*te,(.5+se+pe)*ne,(.5-se+de)*te,(.5+ye+pe)*ne)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(.5+de)*te,(.5-se+pe)*ne,(.5-se+de)*te,(.5-ye+pe)*ne,(.5-ye+de)*te,(.5-se+pe)*ne)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+se+de)*te,(.5+pe)*ne,(.5+ye+de)*te,(.5-se+pe)*ne,(1-.5+se+de)*te,(.5-ye+pe)*ne));var Ce=new go.PathFigure((.525+de)*te,(.5+se+pe)*ne,!1);return ue.add(Ce),ue.spot1=new go.Spot(.232,.136),ue.spot2=new go.Spot(.682,.611),ue.defaultStretch=go.GraphObject.Uniform,ue}),go.Shape.defineFigureGenerator("LogicImplies",function(Ee,te,ne){var ue=Ee?Ee.parameter1:NaN;return isNaN(ue)&&(ue=.2),new go.Geometry().add(new go.PathFigure((1-ue)*te,0,!1).add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,(1-ue)*te,ne)).add(new go.PathSegment(go.PathSegment.Move,0,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,te,.5*ne))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(Ee,te,ne){var ue=Ee?Ee.parameter1:NaN;return isNaN(ue)&&(ue=.2),new go.Geometry().add(new go.PathFigure((1-ue)*te,0,!1).add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,(1-ue)*te,ne)).add(new go.PathSegment(go.PathSegment.Move,0,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)).add(new go.PathSegment(go.PathSegment.Move,ue*te,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,ue*te,ne))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(Ee,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,te,ne)))}),go.Shape.defineFigureGenerator("LogicAnd",function(Ee,te,ne){return new go.Geometry().add(new go.PathFigure(0,ne,!1).add(new go.PathSegment(go.PathSegment.Line,.5*te,0)).add(new go.PathSegment(go.PathSegment.Line,te,ne))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(Ee,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)).add(new go.PathSegment(go.PathSegment.Line,te,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(Ee,te,ne){var ue=new go.Geometry().add(new go.PathFigure(.5*te,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)).add(new go.PathSegment(go.PathSegment.Move,0,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*te,.5*ne,.5*te,.5*ne)));return ue.defaultStretch=go.GraphObject.Uniform,ue}),go.Shape.defineFigureGenerator("LogicTruth",function(Ee,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Move,.5*te,0)).add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(Ee,te,ne){return new go.Geometry().add(new go.PathFigure(0,ne,!1).add(new go.PathSegment(go.PathSegment.Line,te,ne)).add(new go.PathSegment(go.PathSegment.Move,.5*te,ne)).add(new go.PathSegment(go.PathSegment.Line,.5*te,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(Ee,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,0,.5*ne)).add(new go.PathSegment(go.PathSegment.Move,te,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,te,ne)).add(new go.PathSegment(go.PathSegment.Line,0,ne)))}),go.Shape.defineFigureGenerator("LogicForAll",function(Ee,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Move,.25*te,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,.75*te,.5*ne))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(Ee,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)).add(new go.PathSegment(go.PathSegment.Move,0,ne)).add(new go.PathSegment(go.PathSegment.Line,te,ne))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(Ee,te,ne){var ue=.5;return new go.Geometry().add(new go.PathFigure(0,ne,!1).add(new go.PathSegment(go.PathSegment.Line,0,ue*ne)).add(new go.PathSegment(go.PathSegment.Arc,180,180,ue*te,ue*ne,ue*te,ue*ne)).add(new go.PathSegment(go.PathSegment.Line,te,ne))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(Ee,te,ne){var ue=.5;return new go.Geometry().add(new go.PathFigure(te,0,!1).add(new go.PathSegment(go.PathSegment.Line,te,ue*ne)).add(new go.PathSegment(go.PathSegment.Arc,0,180,ue*te,ue*ne,ue*te,ue*ne)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new fn("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new fn("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(Ee,te,ne){var ue=Ee?Ee.parameter1:NaN;isNaN(ue)&&(ue=.3);var se=Ee?Ee.parameter2:NaN;isNaN(se)&&(se=.3);var de=(1-ue)*te,pe=(.5-se/2)*ne,ye=(.5+se/2)*ne,Ce=new go.Geometry,ze=new go.PathFigure(0,pe,!0);Ce.add(ze),ze.add(new go.PathSegment(go.PathSegment.Line,de,pe)),ze.add(new go.PathSegment(go.PathSegment.Line,de,0)),ze.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),ze.add(new go.PathSegment(go.PathSegment.Line,de,ne)),ze.add(new go.PathSegment(go.PathSegment.Line,de,ye)),ze.add(new go.PathSegment(go.PathSegment.Line,0,ye).close()),Ce.spot1=new go.Spot(0,pe/ne);var Te=dt(0,ye/ne,1,ye/ne,de/te,1,1,.5,ve());return Ce.spot2=new go.Spot(Te.x,Te.y),Ye(Te),Ce}),go.Shape.setFigureParameter("Arrow2",0,new fn("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new fn("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(Ee,te,ne){var ue=Ee?Ee.parameter1:NaN;isNaN(ue)&&(ue=30),ue>te&&(ue=te);var se=Ee?Ee.parameter2:NaN;isNaN(se)&&(se=30),se=Math.min(se,ne/2);var de=te-ue,pe=(ne-se)/2,ye=pe+se,Ce=new go.Geometry,ze=new go.PathFigure(0,pe,!0);Ce.add(ze),ze.add(new go.PathSegment(go.PathSegment.Line,de,pe)),ze.add(new go.PathSegment(go.PathSegment.Line,de,0)),ze.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),ze.add(new go.PathSegment(go.PathSegment.Line,de,ne)),ze.add(new go.PathSegment(go.PathSegment.Line,de,ye)),ze.add(new go.PathSegment(go.PathSegment.Line,0,ye).close()),Ce.spot1=new go.Spot(0,pe/ne);var Te=dt(0,ye/ne,1,ye/ne,de/te,1,1,.5,ve());return Ce.spot2=new go.Spot(Te.x,Te.y),Ye(Te),Ce}),go.Shape.defineFigureGenerator("Chevron",function(Ee,te,ne){var ue=new go.Geometry,se=new go.PathFigure(0,0,!0);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ne).close()),ue}),go.Shape.defineFigureGenerator("DoubleArrow",function(Ee,te,ne){var ue=new go.Geometry,se=new go.PathFigure(0,0,!0);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.3*te,.214*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.3*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,1*te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.3*te,1*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.3*te,.786*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,1*ne).close()),ue}),go.Shape.setFigureParameter("DoubleEndArrow",0,new fn("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(Ee,te,ne){var ue=Ee?Ee.parameter1:NaN;isNaN(ue)&&(ue=.3);var se=(.5-ue/2)*ne,de=(.5+ue/2)*ne,pe=new go.Geometry,ye=new go.PathFigure(te,.5*ne,!0);pe.add(ye),ye.add(new go.PathSegment(go.PathSegment.Line,.7*te,ne)),ye.add(new go.PathSegment(go.PathSegment.Line,.7*te,de)),ye.add(new go.PathSegment(go.PathSegment.Line,.3*te,de)),ye.add(new go.PathSegment(go.PathSegment.Line,.3*te,ne)),ye.add(new go.PathSegment(go.PathSegment.Line,0,.5*ne)),ye.add(new go.PathSegment(go.PathSegment.Line,.3*te,0)),ye.add(new go.PathSegment(go.PathSegment.Line,.3*te,se)),ye.add(new go.PathSegment(go.PathSegment.Line,.7*te,se)),ye.add(new go.PathSegment(go.PathSegment.Line,.7*te,0).close());var Ce=dt(0,.5,.3,0,0,se/ne,.1,se/ne,ve());return pe.spot1=new go.Spot(Ce.x,Ce.y),Ce=dt(.7,1,1,.5,0,de/ne,1,de/ne,Ce),pe.spot2=new go.Spot(Ce.x,Ce.y),Ye(Ce),pe}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new fn("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new fn("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(Ee,te,ne){var ue=Ee?Ee.parameter1:NaN;isNaN(ue)&&(ue=40);var se=Ee?Ee.parameter2:NaN;isNaN(se)&&(se=100);var de=(ne-ue)/2,pe=de+ue,ye=(ne-se)/2,Ce=ye+se;(ue>ne||se>ne)&&(se>ue?(ue=ue*ne/se,de=(ne-ue)/2,pe=de+ue,ye=0,Ce=ne):(de=0,pe=ne,ye=0,Ce=ne));var ze=new go.Geometry,Te=new go.PathFigure(te,.5*ne,!0);ze.add(Te),Te.add(new go.PathSegment(go.PathSegment.Line,.7*te,Ce)),Te.add(new go.PathSegment(go.PathSegment.Line,.7*te,pe)),Te.add(new go.PathSegment(go.PathSegment.Line,.3*te,pe)),Te.add(new go.PathSegment(go.PathSegment.Line,.3*te,Ce)),Te.add(new go.PathSegment(go.PathSegment.Line,0,.5*ne)),Te.add(new go.PathSegment(go.PathSegment.Line,.3*te,ye)),Te.add(new go.PathSegment(go.PathSegment.Line,.3*te,de)),Te.add(new go.PathSegment(go.PathSegment.Line,.7*te,de)),Te.add(new go.PathSegment(go.PathSegment.Line,.7*te,ye).close());var Ie=dt(0,.5,.3,ye/ne,0,de/ne,1,de/ne,ve());return ze.spot1=new go.Spot(Ie.x,Ie.y),Ie=dt(.7,Ce/ne,1,.5,0,pe/ne,1,pe/ne,Ie),ze.spot2=new go.Spot(Ie.x,Ie.y),Ye(Ie),ze}),go.Shape.setFigureParameter("IBeamArrow",0,new fn("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(Ee,te,ne){var ue=Ee?Ee.parameter1:NaN;isNaN(ue)&&(ue=.3);var se=(.5-ue/2)*ne,de=(.5+ue/2)*ne,pe=new go.Geometry,ye=new go.PathFigure(te,.5*ne,!0);pe.add(ye),ye.add(new go.PathSegment(go.PathSegment.Line,.7*te,ne)),ye.add(new go.PathSegment(go.PathSegment.Line,.7*te,de)),ye.add(new go.PathSegment(go.PathSegment.Line,.2*te,de)),ye.add(new go.PathSegment(go.PathSegment.Line,.2*te,ne)),ye.add(new go.PathSegment(go.PathSegment.Line,0,ne)),ye.add(new go.PathSegment(go.PathSegment.Line,0,0)),ye.add(new go.PathSegment(go.PathSegment.Line,.2*te,0)),ye.add(new go.PathSegment(go.PathSegment.Line,.2*te,se)),ye.add(new go.PathSegment(go.PathSegment.Line,.7*te,se)),ye.add(new go.PathSegment(go.PathSegment.Line,.7*te,0).close()),pe.spot1=new go.Spot(0,se/ne);var Ce=dt(.7,1,1,.5,0,de/ne,1,de/ne,ve());return pe.spot2=new go.Spot(Ce.x,Ce.y),Ye(Ce),pe}),go.Shape.setFigureParameter("IBeamArrow2",0,new fn("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new fn("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(Ee,te,ne){var ue=Ee?Ee.parameter1:NaN;isNaN(ue)&&(ue=40);var se=Ee?Ee.parameter2:NaN;isNaN(se)&&(se=100);var de=(ne-ue)/2,pe=de+ue,ye=(ne-se)/2,Ce=ye+se;(ue>ne||se>ne)&&(se>ue?(ue=ue*ne/se,de=(ne-ue)/2,pe=de+ue,ye=0,Ce=ne):(de=0,pe=ne,ye=0,Ce=ne));var ze=new go.Geometry,Te=new go.PathFigure(te,.5*ne,!0);ze.add(Te),Te.add(new go.PathSegment(go.PathSegment.Line,.7*te,Ce)),Te.add(new go.PathSegment(go.PathSegment.Line,.7*te,pe)),Te.add(new go.PathSegment(go.PathSegment.Line,.2*te,pe)),Te.add(new go.PathSegment(go.PathSegment.Line,.2*te,Ce)),Te.add(new go.PathSegment(go.PathSegment.Line,0,Ce)),Te.add(new go.PathSegment(go.PathSegment.Line,0,ye)),Te.add(new go.PathSegment(go.PathSegment.Line,.2*te,ye)),Te.add(new go.PathSegment(go.PathSegment.Line,.2*te,de)),Te.add(new go.PathSegment(go.PathSegment.Line,.7*te,de)),Te.add(new go.PathSegment(go.PathSegment.Line,.7*te,ye).close()),ze.spot1=new go.Spot(0,de/ne);var Ie=dt(.7,Ce/ne,1,.5,0,pe/ne,1,pe/ne,ve());return ze.spot2=new go.Spot(Ie.x,Ie.y),Ye(Ie),ze}),go.Shape.setFigureParameter("Pointer",0,new fn("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(Ee,te,ne){var ue=Ee?Ee.parameter1:NaN;isNaN(ue)&&(ue=.1);var se=new go.Geometry,de=new go.PathFigure(te,.5*ne,!0);se.add(de),de.add(new go.PathSegment(go.PathSegment.Line,0,ne)),de.add(new go.PathSegment(go.PathSegment.Line,ue*te,.5*ne)),de.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),se.spot1=new go.Spot(ue,.35);var pe=dt(.2,.65,1,.65,0,1,1,.5,ve());return se.spot2=new go.Spot(pe.x,pe.y),Ye(pe),se}),go.Shape.setFigureParameter("RoundedPointer",0,new fn("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(Ee,te,ne){var ue=Ee?Ee.parameter1:NaN;isNaN(ue)&&(ue=.3);var se=new go.Geometry,de=new go.PathFigure(te,.5*ne,!0);se.add(de),de.add(new go.PathSegment(go.PathSegment.Line,0,ne)),de.add(new go.PathSegment(go.PathSegment.Bezier,0,0,ue*te,.75*ne,ue*te,.25*ne).close()),se.spot1=new go.Spot(ue,.35);var pe=dt(0,.65,1,.65,0,1,1,.5,ve());return se.spot2=new go.Spot(pe.x,pe.y),Ye(pe),se}),go.Shape.setFigureParameter("SplitEndArrow",0,new fn("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(Ee,te,ne){var ue=Ee?Ee.parameter1:NaN;isNaN(ue)&&(ue=.4);var se=(.5-ue/2)*ne,de=(.5+ue/2)*ne,pe=new go.Geometry,ye=new go.PathFigure(te,.5*ne,!0);pe.add(ye),ye.add(new go.PathSegment(go.PathSegment.Line,.7*te,ne)),ye.add(new go.PathSegment(go.PathSegment.Line,.7*te,de)),ye.add(new go.PathSegment(go.PathSegment.Line,0,de)),ye.add(new go.PathSegment(go.PathSegment.Line,.2*te,.5*ne)),ye.add(new go.PathSegment(go.PathSegment.Line,0,se)),ye.add(new go.PathSegment(go.PathSegment.Line,.7*te,se)),ye.add(new go.PathSegment(go.PathSegment.Line,.7*te,0).close()),pe.spot1=new go.Spot(.2,.3);var Ce=dt(.7,1,1,.5,0,de/ne,1,de/ne,ve());return pe.spot2=new go.Spot(Ce.x,Ce.y),Ye(Ce),pe}),go.Shape.setFigureParameter("SplitEndArrow2",0,new fn("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(Ee,te,ne){var ue=Ee?Ee.parameter1:NaN;isNaN(ue)&&(ue=50);var se=(ne-ue)/2,de=se+ue;ue>ne&&(se=0,de=ne);var pe=new go.Geometry,ye=new go.PathFigure(te,.5*ne,!0);pe.add(ye),ye.add(new go.PathSegment(go.PathSegment.Line,.7*te,ne)),ye.add(new go.PathSegment(go.PathSegment.Line,.7*te,de)),ye.add(new go.PathSegment(go.PathSegment.Line,0,de)),ye.add(new go.PathSegment(go.PathSegment.Line,.2*te,.5*ne)),ye.add(new go.PathSegment(go.PathSegment.Line,0,se)),ye.add(new go.PathSegment(go.PathSegment.Line,.7*te,se)),ye.add(new go.PathSegment(go.PathSegment.Line,.7*te,0).close()),pe.spot1=new go.Spot(.2,se/ne);var Ce=dt(.7,1,1,.5,0,de/ne,1,de/ne,ve());return pe.spot2=new go.Spot(Ce.x,Ce.y),Ye(Ce),pe}),go.Shape.setFigureParameter("SquareArrow",0,new fn("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(Ee,te,ne){var ue=Ee?Ee.parameter1:NaN;isNaN(ue)&&(ue=.7);var se=new go.Geometry,de=new go.PathFigure(te,.5*ne,!0);return se.add(de),de.add(new go.PathSegment(go.PathSegment.Line,ue*te,ne)),de.add(new go.PathSegment(go.PathSegment.Line,0,ne)),de.add(new go.PathSegment(go.PathSegment.Line,0,0)),de.add(new go.PathSegment(go.PathSegment.Line,ue*te,0).close()),se.spot1=go.Spot.TopLeft,se.spot2=new go.Spot(ue,1),se}),go.Shape.defineFigureGenerator("Cone1",function(Ee,te,ne){var ue=new go.Geometry,se=Ue*.5,de=Ue*.1,pe=new go.PathFigure(0,.9*ne,!0);return ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),pe.add(new go.PathSegment(go.PathSegment.Line,te,.9*ne)),pe.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ne,te,(.9+de)*ne,(.5+se)*te,ne)),pe.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*ne,(.5-se)*te,ne,0,(.9+de)*ne).close()),ue.spot1=new go.Spot(.25,.5),ue.spot2=new go.Spot(.75,.97),ue}),go.Shape.defineFigureGenerator("Cone2",function(Ee,te,ne){var ue=new go.Geometry,se=new go.PathFigure(0,.9*ne,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,te,.9*ne,(1-.85/.9)*te,ne,.85/.9*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,0,.9*ne).close());var de=new go.PathFigure(0,.9*ne,!1);return ue.add(de),de.add(new go.PathSegment(go.PathSegment.Bezier,te,.9*ne,(1-.85/.9)*te,.8*ne,.85/.9*te,.8*ne)),ue.spot1=new go.Spot(.25,.5),ue.spot2=new go.Spot(.75,.82),ue}),go.Shape.defineFigureGenerator("Cube1",function(Ee,te,ne){var ue=new go.Geometry,se=new go.PathFigure(.5*te,ne,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,.85*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.15*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,0,.15*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.85*ne).close());var de=new go.PathFigure(.5*te,ne,!1);return ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.5*te,.3*ne)),de.add(new go.PathSegment(go.PathSegment.Line,0,.15*ne)),de.add(new go.PathSegment(go.PathSegment.Move,.5*te,.3*ne)),de.add(new go.PathSegment(go.PathSegment.Line,te,.15*ne)),ue.spot1=new go.Spot(0,.3),ue.spot2=new go.Spot(.5,.85),ue}),go.Shape.defineFigureGenerator("Cube2",function(Ee,te,ne){var ue=new go.Geometry,se=new go.PathFigure(0,.3*ne,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.7*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.7*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.3*te,0).close());var de=new go.PathFigure(0,.3*ne,!1);return ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.7*te,.3*ne)),de.add(new go.PathSegment(go.PathSegment.Line,te,0)),de.add(new go.PathSegment(go.PathSegment.Move,.7*te,.3*ne)),de.add(new go.PathSegment(go.PathSegment.Line,.7*te,ne)),ue.spot1=new go.Spot(0,.3),ue.spot2=new go.Spot(.7,1),ue}),go.Shape.defineFigureGenerator("Cylinder1",function(Ee,te,ne){var ue=Ee?Ee.parameter1:NaN;isNaN(ue)&&(ue=5),ue=Math.min(ue,ne/3);var se=new go.Geometry,de=Ue*.5,pe=new go.PathFigure(0,ue,!0);se.add(pe),pe.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,0,0,Ue*ue,(.5-de)*te,0)),pe.add(new go.PathSegment(go.PathSegment.Bezier,1*te,ue,(.5+de)*te,0,1*te,Ue*ue)),pe.add(new go.PathSegment(go.PathSegment.Line,te,ne-ue)),pe.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,1*ne,1*te,ne-Ue*ue,(.5+de)*te,1*ne)),pe.add(new go.PathSegment(go.PathSegment.Bezier,0,ne-ue,(.5-de)*te,1*ne,0,ne-Ue*ue)),pe.add(new go.PathSegment(go.PathSegment.Line,0,ue));var ye=new go.PathFigure(te,ue,!1);return se.add(ye),ye.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,2*ue,1*te,2*ue-Ue*ue,(.5+de)*te,2*ue)),ye.add(new go.PathSegment(go.PathSegment.Bezier,0,ue,(.5-de)*te,2*ue,0,2*ue-Ue*ue)),se.spot1=new go.Spot(0,0,0,2*ue),se.spot2=new go.Spot(1,1),se}),go.Shape.defineFigureGenerator("Cylinder2",function(Ee,te,ne){var ue=Ee?Ee.parameter1:NaN;isNaN(ue)&&(ue=5),ue=Math.min(ue,ne/3);var se=new go.Geometry,de=Ue*.5,pe=new go.PathFigure(0,ne-ue,!0);se.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,0,ue)),pe.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,0,0,Ue*ue,(.5-de)*te,0)),pe.add(new go.PathSegment(go.PathSegment.Bezier,te,ue,(.5+de)*te,0,te,Ue*ue)),pe.add(new go.PathSegment(go.PathSegment.Line,te,ne-ue)),pe.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ne,te,ne-Ue*ue,(.5+de)*te,ne)),pe.add(new go.PathSegment(go.PathSegment.Bezier,0,ne-ue,(.5-de)*te,ne,0,ne-Ue*ue));var ye=new go.PathFigure(0,ne-ue,!1);return se.add(ye),ye.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ne-2*ue,0,ne-ue-Ue*ue,(.5-de)*te,ne-2*ue)),ye.add(new go.PathSegment(go.PathSegment.Bezier,te,ne-ue,(.5+de)*te,ne-2*ue,te,ne-ue-Ue*ue)),se.spot1=new go.Spot(0,0),se.spot2=new go.Spot(1,1,0,-2*ue),se}),go.Shape.defineFigureGenerator("Cylinder3",function(Ee,te,ne){var ue=Ee?Ee.parameter1:NaN;isNaN(ue)&&(ue=5),ue=Math.min(ue,te/3);var se=new go.Geometry,de=Ue*.5,pe=new go.PathFigure(ue,0,!0);se.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,te-ue,0)),pe.add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ne,te-Ue*ue,0,te,(.5-de)*ne)),pe.add(new go.PathSegment(go.PathSegment.Bezier,te-ue,ne,te,(.5+de)*ne,te-Ue*ue,ne)),pe.add(new go.PathSegment(go.PathSegment.Line,ue,ne)),pe.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ne,Ue*ue,ne,0,(.5+de)*ne)),pe.add(new go.PathSegment(go.PathSegment.Bezier,ue,0,0,(.5-de)*ne,Ue*ue,0));var ye=new go.PathFigure(ue,0,!1);return se.add(ye),ye.add(new go.PathSegment(go.PathSegment.Bezier,2*ue,.5*ne,ue+Ue*ue,0,2*ue,(.5-de)*ne)),ye.add(new go.PathSegment(go.PathSegment.Bezier,ue,ne,2*ue,(.5+de)*ne,ue+Ue*ue,ne)),se.spot1=new go.Spot(0,0,2*ue,0),se.spot2=new go.Spot(1,1),se}),go.Shape.defineFigureGenerator("Cylinder4",function(Ee,te,ne){var ue=Ee?Ee.parameter1:NaN;isNaN(ue)&&(ue=5),ue=Math.min(ue,te/3);var se=new go.Geometry,de=Ue*.5,pe=new go.PathFigure(te-ue,0,!0);se.add(pe),pe.add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ne,te-Ue*ue,0,te,(.5-de)*ne)),pe.add(new go.PathSegment(go.PathSegment.Bezier,te-ue,ne,te,(.5+de)*ne,te-Ue*ue,ne)),pe.add(new go.PathSegment(go.PathSegment.Line,ue,ne)),pe.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ne,Ue*ue,ne,0,(.5+de)*ne)),pe.add(new go.PathSegment(go.PathSegment.Bezier,ue,0,0,(.5-de)*ne,Ue*ue,0)),pe.add(new go.PathSegment(go.PathSegment.Line,te-ue,0));var ye=new go.PathFigure(te-ue,0,!1);return se.add(ye),ye.add(new go.PathSegment(go.PathSegment.Bezier,te-2*ue,.5*ne,te-ue-Ue*ue,0,te-2*ue,(.5-de)*ne)),ye.add(new go.PathSegment(go.PathSegment.Bezier,te-ue,ne,te-2*ue,(.5+de)*ne,te-ue-Ue*ue,ne)),se.spot1=new go.Spot(0,0),se.spot2=new go.Spot(1,1,-2*ue,0),se}),go.Shape.defineFigureGenerator("Prism1",function(Ee,te,ne){var ue=new go.Geometry,se=new go.PathFigure(.25*te,.25*ne,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.75*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne).close());var de=new go.PathFigure(.25*te,.25*ne,!1);return ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)),ue.spot1=new go.Spot(.408,.172),ue.spot2=new go.Spot(.833,.662),ue}),go.Shape.defineFigureGenerator("Prism2",function(Ee,te,ne){var ue=new go.Geometry,se=new go.PathFigure(0,.25*ne,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.75*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.25*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.75*te,.75*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne).close());var de=new go.PathFigure(0,ne,!1);return ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.25*te,.5*ne)),de.add(new go.PathSegment(go.PathSegment.Line,te,.25*ne)),de.add(new go.PathSegment(go.PathSegment.Move,0,.25*ne)),de.add(new go.PathSegment(go.PathSegment.Line,.25*te,.5*ne)),ue.spot1=new go.Spot(.25,.5),ue.spot2=new go.Spot(.75,.75),ue}),go.Shape.defineFigureGenerator("Pyramid1",function(Ee,te,ne){var ue=new go.Geometry,se=new go.PathFigure(.5*te,0,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,.75*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.75*ne).close());var de=new go.PathFigure(.5*te,0,!1);return ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)),ue.spot1=new go.Spot(.25,.367),ue.spot2=new go.Spot(.75,.875),ue}),go.Shape.defineFigureGenerator("Pyramid2",function(Ee,te,ne){var ue=new go.Geometry,se=new go.PathFigure(.5*te,0,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,.85*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.85*ne).close());var de=new go.PathFigure(.5*te,0,!1);return ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.5*te,.7*ne)),de.add(new go.PathSegment(go.PathSegment.Line,0,.85*ne)),de.add(new go.PathSegment(go.PathSegment.Move,.5*te,.7*ne)),de.add(new go.PathSegment(go.PathSegment.Line,te,.85*ne)),ue.spot1=new go.Spot(.25,.367),ue.spot2=new go.Spot(.75,.875),ue}),go.Shape.defineFigureGenerator("Actor",function(Ee,te,ne){var ue=new go.Geometry,se=.2,de=.1,pe=Ue*se,ye=Ue*de,Ce=.5,ze=.1,Te=new go.PathFigure(Ce*te,(ze+de)*ne,!0);ue.add(Te),Te.add(new go.PathSegment(go.PathSegment.Bezier,(Ce-se)*te,ze*ne,(Ce-pe)*te,(ze+de)*ne,(Ce-se)*te,(ze+ye)*ne)),Te.add(new go.PathSegment(go.PathSegment.Bezier,Ce*te,(ze-de)*ne,(Ce-se)*te,(ze-ye)*ne,(Ce-pe)*te,(ze-de)*ne)),Te.add(new go.PathSegment(go.PathSegment.Bezier,(Ce+se)*te,ze*ne,(Ce+pe)*te,(ze-de)*ne,(Ce+se)*te,(ze-ye)*ne)),Te.add(new go.PathSegment(go.PathSegment.Bezier,Ce*te,(ze+de)*ne,(Ce+se)*te,(ze+ye)*ne,(Ce+pe)*te,(ze+de)*ne));var Ie=.05,Oe=Ue*Ie;Ce=.05,ze=.25;var Re=new go.PathFigure(.5*te,.2*ne,!0);return ue.add(Re),Re.add(new go.PathSegment(go.PathSegment.Line,.95*te,.2*ne)),Ce=.95,ze=.25,Re.add(new go.PathSegment(go.PathSegment.Bezier,(Ce+Ie)*te,ze*ne,(Ce+Oe)*te,(ze-Ie)*ne,(Ce+Ie)*te,(ze-Oe)*ne)),Re.add(new go.PathSegment(go.PathSegment.Line,te,.6*ne)),Re.add(new go.PathSegment(go.PathSegment.Line,.85*te,.6*ne)),Re.add(new go.PathSegment(go.PathSegment.Line,.85*te,.35*ne)),Ie=.025,Oe=Ue*Ie,Ce=.825,ze=.35,Re.add(new go.PathSegment(go.PathSegment.Bezier,Ce*te,(ze-Ie)*ne,(Ce+Ie)*te,(ze-Oe)*ne,(Ce+Oe)*te,(ze-Ie)*ne)),Re.add(new go.PathSegment(go.PathSegment.Bezier,(Ce-Ie)*te,ze*ne,(Ce-Oe)*te,(ze-Ie)*ne,(Ce-Ie)*te,(ze-Oe)*ne)),Re.add(new go.PathSegment(go.PathSegment.Line,.8*te,ne)),Re.add(new go.PathSegment(go.PathSegment.Line,.55*te,ne)),Re.add(new go.PathSegment(go.PathSegment.Line,.55*te,.7*ne)),Ie=.05,Oe=Ue*Ie,Ce=.5,ze=.7,Re.add(new go.PathSegment(go.PathSegment.Bezier,Ce*te,(ze-Ie)*ne,(Ce+Ie)*te,(ze-Oe)*ne,(Ce+Oe)*te,(ze-Ie)*ne)),Re.add(new go.PathSegment(go.PathSegment.Bezier,(Ce-Ie)*te,ze*ne,(Ce-Oe)*te,(ze-Ie)*ne,(Ce-Ie)*te,(ze-Oe)*ne)),Re.add(new go.PathSegment(go.PathSegment.Line,.45*te,ne)),Re.add(new go.PathSegment(go.PathSegment.Line,.2*te,ne)),Re.add(new go.PathSegment(go.PathSegment.Line,.2*te,.35*ne)),Ie=.025,Oe=Ue*Ie,Ce=.175,ze=.35,Re.add(new go.PathSegment(go.PathSegment.Bezier,Ce*te,(ze-Ie)*ne,(Ce+Ie)*te,(ze-Oe)*ne,(Ce+Oe)*te,(ze-Ie)*ne)),Re.add(new go.PathSegment(go.PathSegment.Bezier,(Ce-Ie)*te,ze*ne,(Ce-Oe)*te,(ze-Ie)*ne,(Ce-Ie)*te,(ze-Oe)*ne)),Re.add(new go.PathSegment(go.PathSegment.Line,.15*te,.6*ne)),Re.add(new go.PathSegment(go.PathSegment.Line,0,.6*ne)),Re.add(new go.PathSegment(go.PathSegment.Line,0,.25*ne)),Ie=.05,Oe=Ue*Ie,Ce=.05,ze=.25,Re.add(new go.PathSegment(go.PathSegment.Bezier,Ce*te,(ze-Ie)*ne,(Ce-Ie)*te,(ze-Oe)*ne,(Ce-Oe)*te,(ze-Ie)*ne)),Re.add(new go.PathSegment(go.PathSegment.Line,.5*te,.2*ne)),ue.spot1=new go.Spot(.2,.2),ue.spot2=new go.Spot(.8,.65),ue}),go.Shape.setFigureParameter("Card",0,new fn("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(Ee,te,ne){var ue=Ee?Ee.parameter1:NaN;isNaN(ue)&&(ue=.2);var se=new go.Geometry,de=new go.PathFigure(te,0,!0);return se.add(de),de.add(new go.PathSegment(go.PathSegment.Line,te,ne)),de.add(new go.PathSegment(go.PathSegment.Line,0,ne)),de.add(new go.PathSegment(go.PathSegment.Line,0,ue*ne)),de.add(new go.PathSegment(go.PathSegment.Line,ue*te,0).close()),se.spot1=new go.Spot(0,ue),se.spot2=go.Spot.BottomRight,se}),go.Shape.defineFigureGenerator("Collate",function(Ee,te,ne){var ue=new go.Geometry,se=new go.PathFigure(.5*te,.5*ne,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ne));var de=new go.PathFigure(.5*te,.5*ne,!0);return ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,te,ne)),de.add(new go.PathSegment(go.PathSegment.Line,0,ne)),de.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ne)),ue.spot1=new go.Spot(.25,0),ue.spot2=new go.Spot(.75,.25),ue}),go.Shape.defineFigureGenerator("CreateRequest",function(Ee,te,ne){var ue=new go.Geometry,se=Ee?Ee.parameter1:NaN;isNaN(se)&&(se=.1);var de=new go.PathFigure(0,0,!0);ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,te,0)),de.add(new go.PathSegment(go.PathSegment.Line,te,ne)),de.add(new go.PathSegment(go.PathSegment.Line,0,ne).close());var pe=new go.PathFigure(0,se*ne,!1);return ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,te,se*ne)),pe.add(new go.PathSegment(go.PathSegment.Move,0,(1-se)*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,te,(1-se)*ne)),ue}),go.Shape.defineFigureGenerator("Database",function(Ee,te,ne){var ue=new go.Geometry,se=Ue*.5,de=Ue*.1,pe=new go.PathFigure(te,.1*ne,!0);ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,te,.9*ne)),pe.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ne,te,(.9+de)*ne,(.5+se)*te,ne)),pe.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*ne,(.5-se)*te,ne,0,(.9+de)*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,0,.1*ne)),pe.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,0,0,(.1-de)*ne,(.5-se)*te,0)),pe.add(new go.PathSegment(go.PathSegment.Bezier,te,.1*ne,(.5+se)*te,0,te,(.1-de)*ne));var ye=new go.PathFigure(te,.1*ne,!1);return ue.add(ye),ye.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.2*ne,te,(.1+de)*ne,(.5+se)*te,.2*ne)),ye.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*ne,(.5-se)*te,.2*ne,0,(.1+de)*ne)),ye.add(new go.PathSegment(go.PathSegment.Move,te,.2*ne)),ye.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.3*ne,te,(.2+de)*ne,(.5+se)*te,.3*ne)),ye.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*ne,(.5-se)*te,.3*ne,0,(.2+de)*ne)),ye.add(new go.PathSegment(go.PathSegment.Move,te,.3*ne)),ye.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.4*ne,te,(.3+de)*ne,(.5+se)*te,.4*ne)),ye.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*ne,(.5-se)*te,.4*ne,0,(.3+de)*ne)),ue.spot1=new go.Spot(0,.4),ue.spot2=new go.Spot(1,.9),ue}),go.Shape.defineFigureGenerator("DataStorage",function(Ee,te,ne){var ue=new go.Geometry,se=new go.PathFigure(0,0,!0);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.75*te,0)),se.add(new go.PathSegment(go.PathSegment.Bezier,.75*te,ne,te,0,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*te,.9*ne,.25*te,.1*ne).close()),ue.spot1=new go.Spot(.226,0),ue.spot2=new go.Spot(.81,1),ue}),go.Shape.defineFigureGenerator("DiskStorage",function(Ee,te,ne){var ue=new go.Geometry,se=Ue*.5,de=Ue*.1,pe=new go.PathFigure(te,.1*ne,!0);ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,te,.9*ne)),pe.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ne,te,(.9+de)*ne,(.5+se)*te,ne)),pe.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*ne,(.5-se)*te,ne,0,(.9+de)*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,0,.1*ne)),pe.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,0,0,(.1-de)*ne,(.5-se)*te,0)),pe.add(new go.PathSegment(go.PathSegment.Bezier,te,.1*ne,(.5+se)*te,0,te,(.1-de)*ne));var ye=new go.PathFigure(te,.1*ne,!1);return ue.add(ye),ye.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.2*ne,te,(.1+de)*ne,(.5+se)*te,.2*ne)),ye.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*ne,(.5-se)*te,.2*ne,0,(.1+de)*ne)),ye.add(new go.PathSegment(go.PathSegment.Move,te,.2*ne)),ye.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.3*ne,te,(.2+de)*ne,(.5+se)*te,.3*ne)),ye.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*ne,(.5-se)*te,.3*ne,0,(.2+de)*ne)),ue.spot1=new go.Spot(0,.3),ue.spot2=new go.Spot(1,.9),ue}),go.Shape.defineFigureGenerator("Display",function(Ee,te,ne){var ue=new go.Geometry,se=new go.PathFigure(.25*te,0,!0);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.75*te,0)),se.add(new go.PathSegment(go.PathSegment.Bezier,.75*te,ne,te,0,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.25*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.5*ne).close()),ue.spot1=new go.Spot(.25,0),ue.spot2=new go.Spot(.75,1),ue}),go.Shape.defineFigureGenerator("DividedEvent",function(Ee,te,ne){var ue=new go.Geometry,se=Ee?Ee.parameter1:NaN;isNaN(se)?se=.2:se<.15&&(se=.15);var de=Ue*.2,pe=new go.PathFigure(0,.2*ne,!0);ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Bezier,.2*te,0,0,(.2-de)*ne,(.2-de)*te,0)),pe.add(new go.PathSegment(go.PathSegment.Line,.8*te,0)),pe.add(new go.PathSegment(go.PathSegment.Bezier,te,.2*ne,(.8+de)*te,0,te,(.2-de)*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,te,.8*ne)),pe.add(new go.PathSegment(go.PathSegment.Bezier,.8*te,ne,te,(.8+de)*ne,(.8+de)*te,ne)),pe.add(new go.PathSegment(go.PathSegment.Line,.2*te,ne)),pe.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*ne,(.2-de)*te,ne,0,(.8+de)*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,0,.2*ne));var ye=new go.PathFigure(0,se*ne,!1);return ue.add(ye),ye.add(new go.PathSegment(go.PathSegment.Line,te,se*ne)),ue}),go.Shape.defineFigureGenerator("DividedProcess",function(Ee,te,ne){var ue=new go.Geometry,se=Ee?Ee.parameter1:NaN;(isNaN(se)||se<.1)&&(se=.1);var de=new go.PathFigure(0,0,!0);ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,te,0)),de.add(new go.PathSegment(go.PathSegment.Line,te,ne)),de.add(new go.PathSegment(go.PathSegment.Line,0,ne).close());var pe=new go.PathFigure(0,se*ne,!1);return ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,te,se*ne)),ue}),go.Shape.defineFigureGenerator("Document",function(Ee,te,ne){var ue=new go.Geometry;ne=ne/.8;var se=new go.PathFigure(0,.7*ne,!0);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.7*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*ne,.5*te,.4*ne,.5*te,ne).close()),ue.spot1=go.Spot.TopLeft,ue.spot2=new go.Spot(1,.6),ue}),go.Shape.defineFigureGenerator("ExternalOrganization",function(Ee,te,ne){var ue=new go.Geometry,se=Ee?Ee.parameter1:NaN;(isNaN(se)||se<.2)&&(se=.2);var de=new go.PathFigure(0,0,!0);ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,te,0)),de.add(new go.PathSegment(go.PathSegment.Line,te,ne)),de.add(new go.PathSegment(go.PathSegment.Line,0,ne).close());var pe=new go.PathFigure(se*te,0,!1);return ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,0,se*ne)),pe.add(new go.PathSegment(go.PathSegment.Move,te,se*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,(1-se)*te,0)),pe.add(new go.PathSegment(go.PathSegment.Move,0,(1-se)*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,se*te,ne)),pe.add(new go.PathSegment(go.PathSegment.Move,(1-se)*te,ne)),pe.add(new go.PathSegment(go.PathSegment.Line,te,(1-se)*ne)),ue}),go.Shape.defineFigureGenerator("ExternalProcess",function(Ee,te,ne){var ue=new go.Geometry,se=new go.PathFigure(.5*te,0,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.5*ne).close());var de=new go.PathFigure(.1*te,.4*ne,!1);return ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.1*te,.6*ne)),de.add(new go.PathSegment(go.PathSegment.Move,.9*te,.6*ne)),de.add(new go.PathSegment(go.PathSegment.Line,.9*te,.4*ne)),de.add(new go.PathSegment(go.PathSegment.Move,.6*te,.1*ne)),de.add(new go.PathSegment(go.PathSegment.Line,.4*te,.1*ne)),de.add(new go.PathSegment(go.PathSegment.Move,.4*te,.9*ne)),de.add(new go.PathSegment(go.PathSegment.Line,.6*te,.9*ne)),ue.spot1=new go.Spot(.25,.25),ue.spot2=new go.Spot(.75,.75),ue}),go.Shape.defineFigureGenerator("File",function(Ee,te,ne){var ue=new go.Geometry,se=new go.PathFigure(0,0,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.75*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.25*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne).close());var de=new go.PathFigure(.75*te,0,!1);return ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.75*te,.25*ne)),de.add(new go.PathSegment(go.PathSegment.Line,te,.25*ne)),ue.spot1=new go.Spot(0,.25),ue.spot2=go.Spot.BottomRight,ue}),go.Shape.defineFigureGenerator("Interrupt",function(Ee,te,ne){var ue=new go.Geometry,se=new go.PathFigure(te,.5*ne,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne));var de=new go.PathFigure(te,.5*ne,!1);ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,te,ne));var pe=new go.PathFigure(te,.5*ne,!1);return ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,te,0)),ue.spot1=new go.Spot(0,.25),ue.spot2=new go.Spot(.5,.75),ue}),go.Shape.defineFigureGenerator("InternalStorage",function(Ee,te,ne){var ue=new go.Geometry,se=Ee?Ee.parameter1:NaN,de=Ee?Ee.parameter2:NaN;isNaN(se)&&(se=.1),isNaN(de)&&(de=.1);var pe=new go.PathFigure(0,0,!0);ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,te,0)),pe.add(new go.PathSegment(go.PathSegment.Line,te,ne)),pe.add(new go.PathSegment(go.PathSegment.Line,0,ne).close());var ye=new go.PathFigure(se*te,0,!1);return ue.add(ye),ye.add(new go.PathSegment(go.PathSegment.Line,se*te,ne)),ye.add(new go.PathSegment(go.PathSegment.Move,0,de*ne)),ye.add(new go.PathSegment(go.PathSegment.Line,te,de*ne)),ue}),go.Shape.defineFigureGenerator("Junction",function(Ee,te,ne){var ue=new go.Geometry,se=1/Math.SQRT2,de=(1-1/Math.SQRT2)/2,pe=Ue*.5,ye=.5,Ce=new go.PathFigure(te,ye*ne,!0);ue.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,ye*te,ne,te,(ye+pe)*ne,(ye+pe)*te,ne)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,0,ye*ne,(ye-pe)*te,ne,0,(ye+pe)*ne)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,ye*te,0,0,(ye-pe)*ne,(ye-pe)*te,0)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,te,ye*ne,(ye+pe)*te,0,te,(ye-pe)*ne));var ze=new go.PathFigure((de+se)*te,(de+se)*ne,!1);return ue.add(ze),ze.add(new go.PathSegment(go.PathSegment.Line,de*te,de*ne)),ze.add(new go.PathSegment(go.PathSegment.Move,de*te,(de+se)*ne)),ze.add(new go.PathSegment(go.PathSegment.Line,(de+se)*te,de*ne)),ue}),go.Shape.defineFigureGenerator("LinedDocument",function(Ee,te,ne){var ue=new go.Geometry;ne=ne/.8;var se=new go.PathFigure(0,.7*ne,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.7*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*ne,.5*te,.4*ne,.5*te,ne).close());var de=new go.PathFigure(.1*te,0,!1);return ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.1*te,.75*ne)),ue.spot1=new go.Spot(.1,0),ue.spot2=new go.Spot(1,.6),ue}),go.Shape.defineFigureGenerator("LoopLimit",function(Ee,te,ne){var ue=new go.Geometry,se=new go.PathFigure(0,ne,!0);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,.25*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.25*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.75*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.25*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne).close()),ue.spot1=new go.Spot(0,.25),ue.spot2=go.Spot.BottomRight,ue}),go.Shape.defineFigureGenerator("MagneticTape",function(Ee,te,ne){var ue=new go.Geometry,se=Ue*.5,de=.5,pe=new go.PathFigure(.5*te,ne,!0);return ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Bezier,0,de*ne,(de-se)*te,ne,0,(de+se)*ne)),pe.add(new go.PathSegment(go.PathSegment.Bezier,de*te,0,0,(de-se)*ne,(de-se)*te,0)),pe.add(new go.PathSegment(go.PathSegment.Bezier,te,de*ne,(de+se)*te,0,te,(de-se)*ne)),pe.add(new go.PathSegment(go.PathSegment.Bezier,(de+.1)*te,.9*ne,te,(de+se)*ne,(de+se)*te,.9*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,te,.9*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,te,ne)),pe.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)),ue.spot1=new go.Spot(.15,.15),ue.spot2=new go.Spot(.85,.8),ue}),go.Shape.defineFigureGenerator("ManualInput",function(Ee,te,ne){var ue=new go.Geometry,se=new go.PathFigure(te,0,!0);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.25*ne).close()),ue.spot1=new go.Spot(0,.25),ue.spot2=go.Spot.BottomRight,ue}),go.Shape.defineFigureGenerator("MessageFromUser",function(Ee,te,ne){var ue=new go.Geometry,se=Ee?Ee.parameter1:NaN;isNaN(se)&&(se=.7);var de=new go.PathFigure(0,0,!0);return ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,te,0)),de.add(new go.PathSegment(go.PathSegment.Line,se*te,.5*ne)),de.add(new go.PathSegment(go.PathSegment.Line,te,ne)),de.add(new go.PathSegment(go.PathSegment.Line,0,ne).close()),ue.spot1=go.Spot.TopLeft,ue}),go.Shape.defineFigureGenerator("MicroformProcessing",function(Ee,te,ne){var ue=new go.Geometry,se=Ee?Ee.parameter1:NaN;isNaN(se)&&(se=.25);var de=new go.PathFigure(0,0,!0);return ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.5*te,se*ne)),de.add(new go.PathSegment(go.PathSegment.Line,te,0)),de.add(new go.PathSegment(go.PathSegment.Line,te,ne)),de.add(new go.PathSegment(go.PathSegment.Line,.5*te,(1-se)*ne)),de.add(new go.PathSegment(go.PathSegment.Line,0,ne).close()),ue}),go.Shape.defineFigureGenerator("MicroformRecording",function(Ee,te,ne){var ue=new go.Geometry,se=new go.PathFigure(0,0,!0);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.75*te,.25*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.15*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.85*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.75*te,.75*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne).close()),ue.spot1=new go.Spot(0,.25),ue.spot2=new go.Spot(1,.75),ue}),go.Shape.defineFigureGenerator("MultiDocument",function(Ee,te,ne){var ue=new go.Geometry;ne=ne/.8;var se=new go.PathFigure(te,0,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.9*te,.44*ne,.96*te,.47*ne,.93*te,.45*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.9*te,.6*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.8*te,.54*ne,.86*te,.57*ne,.83*te,.55*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.8*te,.7*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*ne,.4*te,.4*ne,.4*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.2*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.1*te,.2*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.1*te,.1*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.2*te,.1*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.2*te,0).close());var de=new go.PathFigure(.1*te,.2*ne,!1);return ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.8*te,.2*ne)),de.add(new go.PathSegment(go.PathSegment.Line,.8*te,.54*ne)),de.add(new go.PathSegment(go.PathSegment.Move,.2*te,.1*ne)),de.add(new go.PathSegment(go.PathSegment.Line,.9*te,.1*ne)),de.add(new go.PathSegment(go.PathSegment.Line,.9*te,.44*ne)),ue.spot1=new go.Spot(0,.25),ue.spot2=new go.Spot(.8,.77),ue}),go.Shape.defineFigureGenerator("MultiProcess",function(Ee,te,ne){var ue=new go.Geometry,se=new go.PathFigure(.1*te,.1*ne,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.2*te,.1*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.2*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.9*te,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.9*te,.9*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.8*te,.9*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.8*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.2*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.1*te,.2*ne).close());var de=new go.PathFigure(.2*te,.1*ne,!1);return ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.9*te,.1*ne)),de.add(new go.PathSegment(go.PathSegment.Line,.9*te,.8*ne)),de.add(new go.PathSegment(go.PathSegment.Move,.1*te,.2*ne)),de.add(new go.PathSegment(go.PathSegment.Line,.8*te,.2*ne)),de.add(new go.PathSegment(go.PathSegment.Line,.8*te,.9*ne)),ue.spot1=new go.Spot(0,.2),ue.spot2=new go.Spot(.8,1),ue}),go.Shape.defineFigureGenerator("OfflineStorage",function(Ee,te,ne){var ue=new go.Geometry,se=Ee?Ee.parameter1:NaN;isNaN(se)&&(se=.1);var de=1-se,pe=new go.PathFigure(0,0,!0);ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,te,0)),pe.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne).close());var ye=new go.PathFigure(.5*se*te,se*ne,!1);return ue.add(ye),ye.add(new go.PathSegment(go.PathSegment.Line,(1-.5*se)*te,se*ne)),ue}),go.Shape.defineFigureGenerator("OffPageConnector",function(Ee,te,ne){var ue=new go.Geometry,se=new go.PathFigure(0,0,!0);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.75*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.75*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne).close()),ue.spot1=go.Spot.TopLeft,ue.spot2=new go.Spot(.75,1),ue}),go.Shape.defineFigureGenerator("Or",function(Ee,te,ne){var ue=new go.Geometry,se=Ue*.5,de=.5,pe=new go.PathFigure(te,de*ne,!0);ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Bezier,de*te,ne,te,(de+se)*ne,(de+se)*te,ne)),pe.add(new go.PathSegment(go.PathSegment.Bezier,0,de*ne,(de-se)*te,ne,0,(de+se)*ne)),pe.add(new go.PathSegment(go.PathSegment.Bezier,de*te,0,0,(de-se)*ne,(de-se)*te,0)),pe.add(new go.PathSegment(go.PathSegment.Bezier,te,de*ne,(de+se)*te,0,te,(de-se)*ne));var ye=new go.PathFigure(te,.5*ne,!1);return ue.add(ye),ye.add(new go.PathSegment(go.PathSegment.Line,0,.5*ne)),ye.add(new go.PathSegment(go.PathSegment.Move,.5*te,ne)),ye.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),ue}),go.Shape.defineFigureGenerator("PaperTape",function(Ee,te,ne){var ue=new go.Geometry;ne=ne/.8;var se=new go.PathFigure(0,.7*ne,!0);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,.3*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,te,.3*ne,.5*te,.6*ne,.5*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.7*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*ne,.5*te,.4*ne,.5*te,ne).close()),ue.spot1=new go.Spot(0,.49),ue.spot2=new go.Spot(1,.75),ue}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(Ee,te,ne){var ue=new go.Geometry,se=Ee?Ee.parameter1:NaN,de=Ee?Ee.parameter2:NaN;isNaN(se)&&(se=.1),isNaN(de)&&(de=.3);var pe=new go.PathFigure(0,0,!0);return ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,te,0)),pe.add(new go.PathSegment(go.PathSegment.Line,(1-de)*te,.5*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,te,ne)),pe.add(new go.PathSegment(go.PathSegment.Line,0,ne).close()),ue}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(Ee,te,ne){var ue=new go.Geometry,se=Ee?Ee.parameter1:NaN,de=Ee?Ee.parameter2:NaN;isNaN(se)&&(se=.1),isNaN(de)&&(de=.3);var pe=new go.PathFigure(0,0,!0);return ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,(1-de)*te,0)),pe.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,(1-de)*te,ne)),pe.add(new go.PathSegment(go.PathSegment.Line,0,ne).close()),ue}),go.Shape.defineFigureGenerator("Procedure",function(Ee,te,ne){var ue=new go.Geometry,se=Ee?Ee.parameter1:NaN;isNaN(se)&&(se=.1);var de=new go.PathFigure(0,0,!0);ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,te,0)),de.add(new go.PathSegment(go.PathSegment.Line,te,ne)),de.add(new go.PathSegment(go.PathSegment.Line,0,ne).close());var pe=new go.PathFigure((1-se)*te,0,!1);return ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,(1-se)*te,ne)),pe.add(new go.PathSegment(go.PathSegment.Move,se*te,0)),pe.add(new go.PathSegment(go.PathSegment.Line,se*te,ne)),ue}),go.Shape.defineFigureGenerator("Process",function(Ee,te,ne){var ue=new go.Geometry,se=Ee?Ee.parameter1:NaN;isNaN(se)&&(se=.1);var de=new go.PathFigure(0,0,!0);ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,te,0)),de.add(new go.PathSegment(go.PathSegment.Line,te,ne)),de.add(new go.PathSegment(go.PathSegment.Line,0,ne).close());var pe=new go.PathFigure(se*te,0,!1);return ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,se*te,ne)),ue.spot2=go.Spot.BottomRight,ue}),go.Shape.defineFigureGenerator("Sort",function(Ee,te,ne){var ue=new go.Geometry,se=new go.PathFigure(.5*te,0,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.5*ne).close());var de=new go.PathFigure(0,.5*ne,!1);return ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),ue.spot1=new go.Spot(.25,.25),ue.spot2=new go.Spot(.75,.5),ue}),go.Shape.defineFigureGenerator("Start",function(Ee,te,ne){var ue=new go.Geometry,se=Ee?Ee.parameter1:NaN;isNaN(se)&&(se=.25);var de=new go.PathFigure(se*te,0,!0);ue.add(de),de.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*te,.5*ne,.25*te,.5*ne)),de.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*te,.5*ne,.25*te,.5*ne));var pe=new go.PathFigure(se*te,0,!1);return ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,se*te,ne)),pe.add(new go.PathSegment(go.PathSegment.Move,(1-se)*te,0)),pe.add(new go.PathSegment(go.PathSegment.Line,(1-se)*te,ne)),ue.spot1=new go.Spot(se,0),ue.spot2=new go.Spot(1-se,1),ue}),go.Shape.defineFigureGenerator("Terminator",function(Ee,te,ne){var ue=new go.Geometry,se=new go.PathFigure(.25*te,0,!0);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*te,.5*ne,.25*te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*te,.5*ne,.25*te,.5*ne)),ue.spot1=new go.Spot(.23,0),ue.spot2=new go.Spot(.77,1),ue}),go.Shape.defineFigureGenerator("TransmittalTape",function(Ee,te,ne){var ue=new go.Geometry,se=Ee?Ee.parameter1:NaN;isNaN(se)&&(se=.1);var de=new go.PathFigure(0,0,!0);return ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,te,0)),de.add(new go.PathSegment(go.PathSegment.Line,te,ne)),de.add(new go.PathSegment(go.PathSegment.Line,.75*te,(1-se)*ne)),de.add(new go.PathSegment(go.PathSegment.Line,0,(1-se)*ne).close()),ue.spot1=go.Spot.TopLeft,ue}),go.Shape.defineFigureGenerator("AndGate",function(Ee,te,ne){var ue=new go.Geometry,se=Ue*.5,de=new go.PathFigure(0,0,!0);return ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),de.add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ne,(.5+se)*te,0,te,(.5-se)*ne)),de.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ne,te,(.5+se)*ne,(.5+se)*te,ne)),de.add(new go.PathSegment(go.PathSegment.Line,0,ne).close()),ue.spot1=go.Spot.TopLeft,ue.spot2=new go.Spot(.55,1),ue}),go.Shape.defineFigureGenerator("Buffer",function(Ee,te,ne){var ue=new go.Geometry,se=new go.PathFigure(0,0,!0);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne).close()),ue.spot1=new go.Spot(0,.25),ue.spot2=new go.Spot(.5,.75),ue}),go.Shape.defineFigureGenerator("Clock",function(Ee,te,ne){var ue=new go.Geometry,se=Ue*.5,de=.5,pe=new go.PathFigure(te,de*ne,!0);ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Bezier,de*te,ne,te,(de+se)*ne,(de+se)*te,ne)),pe.add(new go.PathSegment(go.PathSegment.Bezier,0,de*ne,(de-se)*te,ne,0,(de+se)*ne)),pe.add(new go.PathSegment(go.PathSegment.Bezier,de*te,0,0,(de-se)*ne,(de-se)*te,0)),pe.add(new go.PathSegment(go.PathSegment.Bezier,te,de*ne,(de+se)*te,0,te,(de-se)*ne));var ye=new go.PathFigure(te,de*ne,!1);ue.add(ye),ye.add(new go.PathSegment(go.PathSegment.Line,te,de*ne));var Ce=new go.PathFigure(.8*te,.75*ne,!1);return ue.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Line,.8*te,.25*ne)),Ce.add(new go.PathSegment(go.PathSegment.Line,.6*te,.25*ne)),Ce.add(new go.PathSegment(go.PathSegment.Line,.6*te,.75*ne)),Ce.add(new go.PathSegment(go.PathSegment.Line,.4*te,.75*ne)),Ce.add(new go.PathSegment(go.PathSegment.Line,.4*te,.25*ne)),Ce.add(new go.PathSegment(go.PathSegment.Line,.2*te,.25*ne)),Ce.add(new go.PathSegment(go.PathSegment.Line,.2*te,.75*ne)),ue}),go.Shape.defineFigureGenerator("Ground",function(Ee,te,ne){var ue=new go.Geometry,se=new go.PathFigure(.5*te,0,!1);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.4*ne)),se.add(new go.PathSegment(go.PathSegment.Move,.2*te,.6*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.8*te,.6*ne)),se.add(new go.PathSegment(go.PathSegment.Move,.3*te,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.7*te,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Move,.4*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.6*te,ne)),ue}),go.Shape.defineFigureGenerator("Inverter",function(Ee,te,ne){var ue=new go.Geometry,se=Ue*.1,de=.1,pe=.9,ye=.5,Ce=new go.PathFigure(.8*te,.5*ne,!0);ue.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Line,0,ne)),Ce.add(new go.PathSegment(go.PathSegment.Line,0,0)),Ce.add(new go.PathSegment(go.PathSegment.Line,.8*te,.5*ne));var ze=new go.PathFigure((pe+de)*te,ye*ne,!0);return ue.add(ze),ze.add(new go.PathSegment(go.PathSegment.Bezier,pe*te,(ye+de)*ne,(pe+de)*te,(ye+se)*ne,(pe+se)*te,(ye+de)*ne)),ze.add(new go.PathSegment(go.PathSegment.Bezier,(pe-de)*te,ye*ne,(pe-se)*te,(ye+de)*ne,(pe-de)*te,(ye+se)*ne)),ze.add(new go.PathSegment(go.PathSegment.Bezier,pe*te,(ye-de)*ne,(pe-de)*te,(ye-se)*ne,(pe-se)*te,(ye-de)*ne)),ze.add(new go.PathSegment(go.PathSegment.Bezier,(pe+de)*te,ye*ne,(pe+se)*te,(ye-de)*ne,(pe+de)*te,(ye-se)*ne)),ue.spot1=new go.Spot(0,.25),ue.spot2=new go.Spot(.4,.75),ue}),go.Shape.defineFigureGenerator("NandGate",function(Ee,te,ne){var ue=new go.Geometry,se=Ue*.5,de=Ue*.4,pe=Ue*.1,ye=.1,Ce=.9,ze=.5,Te=new go.PathFigure(.8*te,.5*ne,!0);ue.add(Te),Te.add(new go.PathSegment(go.PathSegment.Bezier,.4*te,ne,.8*te,(.5+de)*ne,(.4+se)*te,ne)),Te.add(new go.PathSegment(go.PathSegment.Line,0,ne)),Te.add(new go.PathSegment(go.PathSegment.Line,0,0)),Te.add(new go.PathSegment(go.PathSegment.Line,.4*te,0)),Te.add(new go.PathSegment(go.PathSegment.Bezier,.8*te,.5*ne,(.4+se)*te,0,.8*te,(.5-de)*ne));var Ie=new go.PathFigure((Ce+ye)*te,ze*ne,!0);return ue.add(Ie),Ie.add(new go.PathSegment(go.PathSegment.Bezier,Ce*te,(ze+ye)*ne,(Ce+ye)*te,(ze+pe)*ne,(Ce+pe)*te,(ze+ye)*ne)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,(Ce-ye)*te,ze*ne,(Ce-pe)*te,(ze+ye)*ne,(Ce-ye)*te,(ze+pe)*ne)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,Ce*te,(ze-ye)*ne,(Ce-ye)*te,(ze-pe)*ne,(Ce-pe)*te,(ze-ye)*ne)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,(Ce+ye)*te,ze*ne,(Ce+pe)*te,(ze-ye)*ne,(Ce+ye)*te,(ze-pe)*ne)),ue.spot1=new go.Spot(0,.05),ue.spot2=new go.Spot(.55,.95),ue}),go.Shape.defineFigureGenerator("NorGate",function(Ee,te,ne){var ue=new go.Geometry,se=.5,de=Ue*se,pe=0,ye=.5,Ce=new go.PathFigure(.8*te,.5*ne,!0);ue.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,0,ne,.7*te,(ye+de)*ne,(pe+de)*te,(ye+se)*ne)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*te,.75*ne,.25*te,.25*ne)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,.8*te,.5*ne,(pe+de)*te,(ye-se)*ne,.7*te,(ye-de)*ne)),se=.1,de=Ue*.1,pe=.9,ye=.5;var ze=new go.PathFigure((pe-se)*te,ye*ne,!0);return ue.add(ze),ze.add(new go.PathSegment(go.PathSegment.Bezier,pe*te,(ye-se)*ne,(pe-se)*te,(ye-de)*ne,(pe-de)*te,(ye-se)*ne)),ze.add(new go.PathSegment(go.PathSegment.Bezier,(pe+se)*te,ye*ne,(pe+de)*te,(ye-se)*ne,(pe+se)*te,(ye-de)*ne)),ze.add(new go.PathSegment(go.PathSegment.Bezier,pe*te,(ye+se)*ne,(pe+se)*te,(ye+de)*ne,(pe+de)*te,(ye+se)*ne)),ze.add(new go.PathSegment(go.PathSegment.Bezier,(pe-se)*te,ye*ne,(pe-de)*te,(ye+se)*ne,(pe-se)*te,(ye+de)*ne)),ue.spot1=new go.Spot(.2,.25),ue.spot2=new go.Spot(.6,.75),ue}),go.Shape.defineFigureGenerator("OrGate",function(Ee,te,ne){var ue=new go.Geometry,se=.5,de=Ue*se,pe=0,ye=.5,Ce=new go.PathFigure(0,0,!0);return ue.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ne,(pe+de+de)*te,(ye-se)*ne,.8*te,(ye-de)*ne)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,0,ne,.8*te,(ye+de)*ne,(pe+de+de)*te,(ye+se)*ne)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*te,.75*ne,.25*te,.25*ne).close()),ue.spot1=new go.Spot(.2,.25),ue.spot2=new go.Spot(.75,.75),ue}),go.Shape.defineFigureGenerator("XnorGate",function(Ee,te,ne){var ue=new go.Geometry,se=.5,de=Ue*se,pe=.2,ye=.5,Ce=new go.PathFigure(.1*te,0,!1);ue.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,.1*te,ne,.35*te,.25*ne,.35*te,.75*ne));var ze=new go.PathFigure(.8*te,.5*ne,!0);ue.add(ze),ze.add(new go.PathSegment(go.PathSegment.Bezier,.2*te,ne,.7*te,(ye+de)*ne,(pe+de)*te,(ye+se)*ne)),ze.add(new go.PathSegment(go.PathSegment.Bezier,.2*te,0,.45*te,.75*ne,.45*te,.25*ne)),ze.add(new go.PathSegment(go.PathSegment.Bezier,.8*te,.5*ne,(pe+de)*te,(ye-se)*ne,.7*te,(ye-de)*ne)),se=.1,de=Ue*.1,pe=.9,ye=.5;var Te=new go.PathFigure((pe-se)*te,ye*ne,!0);return ue.add(Te),Te.add(new go.PathSegment(go.PathSegment.Bezier,pe*te,(ye-se)*ne,(pe-se)*te,(ye-de)*ne,(pe-de)*te,(ye-se)*ne)),Te.add(new go.PathSegment(go.PathSegment.Bezier,(pe+se)*te,ye*ne,(pe+de)*te,(ye-se)*ne,(pe+se)*te,(ye-de)*ne)),Te.add(new go.PathSegment(go.PathSegment.Bezier,pe*te,(ye+se)*ne,(pe+se)*te,(ye+de)*ne,(pe+de)*te,(ye+se)*ne)),Te.add(new go.PathSegment(go.PathSegment.Bezier,(pe-se)*te,ye*ne,(pe-de)*te,(ye+se)*ne,(pe-se)*te,(ye+de)*ne)),ue.spot1=new go.Spot(.4,.25),ue.spot2=new go.Spot(.65,.75),ue}),go.Shape.defineFigureGenerator("XorGate",function(Ee,te,ne){var ue=new go.Geometry,se=.5,de=Ue*se,pe=.2,ye=.5,Ce=new go.PathFigure(.1*te,0,!1);ue.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,.1*te,ne,.35*te,.25*ne,.35*te,.75*ne));var ze=new go.PathFigure(.2*te,0,!0);return ue.add(ze),ze.add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ne,(pe+de)*te,(ye-se)*ne,.9*te,(ye-de)*ne)),ze.add(new go.PathSegment(go.PathSegment.Bezier,.2*te,ne,.9*te,(ye+de)*ne,(pe+de)*te,(ye+se)*ne)),ze.add(new go.PathSegment(go.PathSegment.Bezier,.2*te,0,.45*te,.75*ne,.45*te,.25*ne).close()),ue.spot1=new go.Spot(.4,.25),ue.spot2=new go.Spot(.8,.75),ue}),go.Shape.defineFigureGenerator("Capacitor",function(Ee,te,ne){var ue=new go.Geometry,se=new go.PathFigure(0,0,!1);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Move,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),ue}),go.Shape.defineFigureGenerator("Resistor",function(Ee,te,ne){var ue=new go.Geometry,se=new go.PathFigure(0,.5*ne,!1);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.1*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.2*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.3*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.4*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.6*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.7*te,.5*ne)),ue}),go.Shape.defineFigureGenerator("Inductor",function(Ee,te,ne){var ue=new go.Geometry,se=Ue*.1,de=.1,pe=.1,ye=.5,Ce=new go.PathFigure((pe-se*.5)*te,ne,!1);return ue.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(pe+de)*te,0,(pe-se)*te,ne,(pe-de)*te,0)),pe=.3,Ce.add(new go.PathSegment(go.PathSegment.Bezier,pe*te,ne,(pe+de)*te,0,(pe+se)*te,ne)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(pe+de)*te,0,(pe-se)*te,ne,(pe-de)*te,0)),pe=.5,Ce.add(new go.PathSegment(go.PathSegment.Bezier,pe*te,ne,(pe+de)*te,0,(pe+se)*te,ne)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(pe+de)*te,0,(pe-se)*te,ne,(pe-de)*te,0)),pe=.7,Ce.add(new go.PathSegment(go.PathSegment.Bezier,pe*te,ne,(pe+de)*te,0,(pe+se)*te,ne)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(pe+de)*te,0,(pe-se)*te,ne,(pe-de)*te,0)),pe=.9,Ce.add(new go.PathSegment(go.PathSegment.Bezier,(pe+se*.5)*te,ne,(pe+de)*te,0,(pe+se)*te,ne)),ue}),go.Shape.defineFigureGenerator("ACvoltageSource",function(Ee,te,ne){var ue=new go.Geometry,se=Ue*.5,de=.5,pe=.5,ye=.5,Ce=new go.PathFigure((pe-de)*te,ye*ne,!1);return ue.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,pe*te,(ye-de)*ne,(pe-de)*te,(ye-se)*ne,(pe-se)*te,(ye-de)*ne)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(pe+de)*te,ye*ne,(pe+se)*te,(ye-de)*ne,(pe+de)*te,(ye-se)*ne)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,pe*te,(ye+de)*ne,(pe+de)*te,(ye+se)*ne,(pe+se)*te,(ye+de)*ne)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(pe-de)*te,ye*ne,(pe-se)*te,(ye+de)*ne,(pe-de)*te,(ye+se)*ne)),Ce.add(new go.PathSegment(go.PathSegment.Move,(pe-de+.1)*te,ye*ne)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(pe+de-.1)*te,ye*ne,pe*te,(ye-de)*ne,pe*te,(ye+de)*ne)),ue}),go.Shape.defineFigureGenerator("DCvoltageSource",function(Ee,te,ne){var ue=new go.Geometry,se=new go.PathFigure(0,.75*ne,!1);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,.25*ne)),se.add(new go.PathSegment(go.PathSegment.Move,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),ue}),go.Shape.defineFigureGenerator("Diode",function(Ee,te,ne){var ue=new go.Geometry,se=new go.PathFigure(te,0,!1);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),ue.spot1=new go.Spot(0,.25),ue.spot2=new go.Spot(.5,.75),ue}),go.Shape.defineFigureGenerator("Wifi",function(Ee,te,ne){var ue=new go.Geometry,se=te,de=ne;te=te*.38,ne=ne*.6;var pe=Ue*.8,ye=.8,Ce=0,ze=.5,Te=(se-te)/2,Ie=(de-ne)/2,Oe=new go.PathFigure(Ce*te+Te,(ze+ye)*ne+Ie,!0);ue.add(Oe),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(Ce-ye)*te+Te,ze*ne+Ie,(Ce-pe)*te+Te,(ze+ye)*ne+Ie,(Ce-ye)*te+Te,(ze+pe)*ne+Ie)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,Ce*te+Te,(ze-ye)*ne+Ie,(Ce-ye)*te+Te,(ze-pe)*ne+Ie,(Ce-pe)*te+Te,(ze-ye)*ne+Ie)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(Ce-ye+pe*.5)*te+Te,ze*ne+Ie,Ce*te+Te,(ze-ye)*ne+Ie,(Ce-ye+pe*.5)*te+Te,(ze-pe)*ne+Ie)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,Ce*te+Te,(ze+ye)*ne+Ie,(Ce-ye+pe*.5)*te+Te,(ze+pe)*ne+Ie,Ce*te+Te,(ze+ye)*ne+Ie).close()),pe=Ue*.4,ye=.4,Ce=.2,ze=.5;var Re=new go.PathFigure(Ce*te+Te,(ze+ye)*ne+Ie,!0);ue.add(Re),Re.add(new go.PathSegment(go.PathSegment.Bezier,(Ce-ye)*te+Te,ze*ne+Ie,(Ce-pe)*te+Te,(ze+ye)*ne+Ie,(Ce-ye)*te+Te,(ze+pe)*ne+Ie)),Re.add(new go.PathSegment(go.PathSegment.Bezier,Ce*te+Te,(ze-ye)*ne+Ie,(Ce-ye)*te+Te,(ze-pe)*ne+Ie,(Ce-pe)*te+Te,(ze-ye)*ne+Ie)),Re.add(new go.PathSegment(go.PathSegment.Bezier,(Ce-ye+pe*.5)*te+Te,ze*ne+Ie,Ce*te+Te,(ze-ye)*ne+Ie,(Ce-ye+pe*.5)*te+Te,(ze-pe)*ne+Ie)),Re.add(new go.PathSegment(go.PathSegment.Bezier,Ce*te+Te,(ze+ye)*ne+Ie,(Ce-ye+pe*.5)*te+Te,(ze+pe)*ne+Ie,Ce*te+Te,(ze+ye)*ne+Ie).close()),pe=Ue*.2,ye=.2,Ce=.5,ze=.5;var rt=new go.PathFigure((Ce-ye)*te+Te,ze*ne+Ie,!0);ue.add(rt),rt.add(new go.PathSegment(go.PathSegment.Bezier,Ce*te+Te,(ze-ye)*ne+Ie,(Ce-ye)*te+Te,(ze-pe)*ne+Ie,(Ce-pe)*te+Te,(ze-ye)*ne+Ie)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(Ce+ye)*te+Te,ze*ne+Ie,(Ce+pe)*te+Te,(ze-ye)*ne+Ie,(Ce+ye)*te+Te,(ze-pe)*ne+Ie)),rt.add(new go.PathSegment(go.PathSegment.Bezier,Ce*te+Te,(ze+ye)*ne+Ie,(Ce+ye)*te+Te,(ze+pe)*ne+Ie,(Ce+pe)*te+Te,(ze+ye)*ne+Ie)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(Ce-ye)*te+Te,ze*ne+Ie,(Ce-pe)*te+Te,(ze+ye)*ne+Ie,(Ce-ye)*te+Te,(ze+pe)*ne+Ie)),pe=Ue*.4,ye=.4,Ce=.8,ze=.5;var ot=new go.PathFigure(Ce*te+Te,(ze-ye)*ne+Ie,!0);ue.add(ot),ot.add(new go.PathSegment(go.PathSegment.Bezier,(Ce+ye)*te+Te,ze*ne+Ie,(Ce+pe)*te+Te,(ze-ye)*ne+Ie,(Ce+ye)*te+Te,(ze-pe)*ne+Ie)),ot.add(new go.PathSegment(go.PathSegment.Bezier,Ce*te+Te,(ze+ye)*ne+Ie,(Ce+ye)*te+Te,(ze+pe)*ne+Ie,(Ce+pe)*te+Te,(ze+ye)*ne+Ie)),ot.add(new go.PathSegment(go.PathSegment.Bezier,(Ce+ye-pe*.5)*te+Te,ze*ne+Ie,Ce*te+Te,(ze+ye)*ne+Ie,(Ce+ye-pe*.5)*te+Te,(ze+pe)*ne+Ie)),ot.add(new go.PathSegment(go.PathSegment.Bezier,Ce*te+Te,(ze-ye)*ne+Ie,(Ce+ye-pe*.5)*te+Te,(ze-pe)*ne+Ie,Ce*te+Te,(ze-ye)*ne+Ie).close()),pe=Ue*.8,ye=.8,Ce=1,ze=.5;var Ct=new go.PathFigure(Ce*te+Te,(ze-ye)*ne+Ie,!0);return ue.add(Ct),Ct.add(new go.PathSegment(go.PathSegment.Bezier,(Ce+ye)*te+Te,ze*ne+Ie,(Ce+pe)*te+Te,(ze-ye)*ne+Ie,(Ce+ye)*te+Te,(ze-pe)*ne+Ie)),Ct.add(new go.PathSegment(go.PathSegment.Bezier,Ce*te+Te,(ze+ye)*ne+Ie,(Ce+ye)*te+Te,(ze+pe)*ne+Ie,(Ce+pe)*te+Te,(ze+ye)*ne+Ie)),Ct.add(new go.PathSegment(go.PathSegment.Bezier,(Ce+ye-pe*.5)*te+Te,ze*ne+Ie,Ce*te+Te,(ze+ye)*ne+Ie,(Ce+ye-pe*.5)*te+Te,(ze+pe)*ne+Ie)),Ct.add(new go.PathSegment(go.PathSegment.Bezier,Ce*te+Te,(ze-ye)*ne+Ie,(Ce+ye-pe*.5)*te+Te,(ze-pe)*ne+Ie,Ce*te+Te,(ze-ye)*ne+Ie).close()),ue}),go.Shape.defineFigureGenerator("Email",function(Ee,te,ne){var ue=new go.Geometry,se=new go.PathFigure(0,0,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var de=new go.PathFigure(0,0,!1);return ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.5*te,.6*ne)),de.add(new go.PathSegment(go.PathSegment.Line,te,0)),de.add(new go.PathSegment(go.PathSegment.Move,0,ne)),de.add(new go.PathSegment(go.PathSegment.Line,.45*te,.54*ne)),de.add(new go.PathSegment(go.PathSegment.Move,te,ne)),de.add(new go.PathSegment(go.PathSegment.Line,.55*te,.54*ne)),ue}),go.Shape.defineFigureGenerator("Ethernet",function(Ee,te,ne){var ue=new go.Geometry,se=new go.PathFigure(.35*te,0,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.65*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.65*te,.4*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.35*te,.4*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.35*te,0).close());var de=new go.PathFigure(.1*te,ne,!0,!0);ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.4*te,ne)),de.add(new go.PathSegment(go.PathSegment.Line,.4*te,.6*ne)),de.add(new go.PathSegment(go.PathSegment.Line,.1*te,.6*ne)),de.add(new go.PathSegment(go.PathSegment.Line,.1*te,ne).close());var pe=new go.PathFigure(.6*te,ne,!0,!0);ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.9*te,ne)),pe.add(new go.PathSegment(go.PathSegment.Line,.9*te,.6*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,.6*te,.6*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,.6*te,ne).close());var ye=new go.PathFigure(0,.5*ne,!1);return ue.add(ye),ye.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),ye.add(new go.PathSegment(go.PathSegment.Move,.5*te,.5*ne)),ye.add(new go.PathSegment(go.PathSegment.Line,.5*te,.4*ne)),ye.add(new go.PathSegment(go.PathSegment.Move,.75*te,.5*ne)),ye.add(new go.PathSegment(go.PathSegment.Line,.75*te,.6*ne)),ye.add(new go.PathSegment(go.PathSegment.Move,.25*te,.5*ne)),ye.add(new go.PathSegment(go.PathSegment.Line,.25*te,.6*ne)),ue}),go.Shape.defineFigureGenerator("Power",function(Ee,te,ne){var ue=new go.Geometry,se=Ue*.4,de=.4,pe=.5,ye=.5,Ce=ve(),ze=ve(),Te=ve(),Ie=ve();it(pe,ye-de,pe+se,ye-de,pe+de,ye-se,pe+de,ye,.5,Ce,Ce,ze,Te,Ie);var Oe=we(ze.x,ze.y),Re=new go.PathFigure(ze.x*te,ze.y*ne,!0);ue.add(Re),Re.add(new go.PathSegment(go.PathSegment.Bezier,(pe+de)*te,ye*ne,Te.x*te,Te.y*ne,Ie.x*te,Ie.y*ne)),Re.add(new go.PathSegment(go.PathSegment.Bezier,pe*te,(ye+de)*ne,(pe+de)*te,(ye+se)*ne,(pe+se)*te,(ye+de)*ne)),Re.add(new go.PathSegment(go.PathSegment.Bezier,(pe-de)*te,ye*ne,(pe-se)*te,(ye+de)*ne,(pe-de)*te,(ye+se)*ne)),it(pe-de,ye,pe-de,ye-se,pe-se,ye-de,pe,ye-de,.5,Te,Ie,ze,Ce,Ce),Re.add(new go.PathSegment(go.PathSegment.Bezier,ze.x*te,ze.y*ne,Te.x*te,Te.y*ne,Ie.x*te,Ie.y*ne)),se=Ue*.3,de=.3,it(pe-de,ye,pe-de,ye-se,pe-se,ye-de,pe,ye-de,.5,Te,Ie,ze,Ce,Ce),Re.add(new go.PathSegment(go.PathSegment.Line,ze.x*te,ze.y*ne)),Re.add(new go.PathSegment(go.PathSegment.Bezier,(pe-de)*te,ye*ne,Ie.x*te,Ie.y*ne,Te.x*te,Te.y*ne)),Re.add(new go.PathSegment(go.PathSegment.Bezier,pe*te,(ye+de)*ne,(pe-de)*te,(ye+se)*ne,(pe-se)*te,(ye+de)*ne)),Re.add(new go.PathSegment(go.PathSegment.Bezier,(pe+de)*te,ye*ne,(pe+se)*te,(ye+de)*ne,(pe+de)*te,(ye+se)*ne)),it(pe,ye-de,pe+se,ye-de,pe+de,ye-se,pe+de,ye,.5,Ce,Ce,ze,Te,Ie),Re.add(new go.PathSegment(go.PathSegment.Bezier,ze.x*te,ze.y*ne,Ie.x*te,Ie.y*ne,Te.x*te,Te.y*ne).close());var Re=new go.PathFigure(.45*te,0,!0);return ue.add(Re),Re.add(new go.PathSegment(go.PathSegment.Line,.45*te,.5*ne)),Re.add(new go.PathSegment(go.PathSegment.Line,.55*te,.5*ne)),Re.add(new go.PathSegment(go.PathSegment.Line,.55*te,0).close()),Ye(Ce),Ye(ze),Ye(Te),Ye(Ie),Ye(Oe),ue.spot1=new go.Spot(.25,.45),ue.spot2=new go.Spot(.75,.8),ue}),go.Shape.defineFigureGenerator("Fallout",function(Ee,te,ne){var ue=new go.Geometry,se=new go.PathFigure(0,ne/2,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Arc,180,360,te/2,ne/2,te/2,ne/2));function de(pe,ye,Ce){pe.add(new go.PathSegment(go.PathSegment.Move,(.3+ye)*te,(.8+Ce)*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,(.5+ye)*te,(.5+Ce)*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,(.1+ye)*te,(.5+Ce)*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,(.3+ye)*te,(.8+Ce)*ne).close())}return de(se,0,0),de(se,.4,0),de(se,.2,-.3),ue}),go.Shape.defineFigureGenerator("IrritationHazard",function(Ee,te,ne){var ue=new go.Geometry,se=new go.PathFigure(.2*te,0,!0);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.3*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.8*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.2*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.7*te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.8*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.7*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.2*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.3*te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.2*ne).close()),ue.spot1=new go.Spot(.3,.3),ue.spot2=new go.Spot(.7,.7),ue}),go.Shape.defineFigureGenerator("ElectricalHazard",function(Ee,te,ne){var ue=new go.Geometry,se=new go.PathFigure(.37*te,0,!0);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.11*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.77*te,.04*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.33*te,.49*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.37*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.63*te,.86*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.77*te,.91*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.34*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.34*te,.78*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.44*te,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.65*te,.56*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.68*ne).close()),ue}),go.Shape.defineFigureGenerator("FireHazard",function(Ee,te,ne){var ue=new go.Geometry,se=new go.PathFigure(.1*te,ne,!0);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,.29*te,0,-.25*te,.63*ne,.45*te,.44*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.51*te,.42*ne,.48*te,.17*ne,.54*te,.35*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.59*te,.18*ne,.59*te,.29*ne,.58*te,.28*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.75*te,.6*ne,.8*te,.34*ne,.88*te,.43*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.88*te,.31*ne,.87*te,.48*ne,.88*te,.43*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.9*te,ne,1.17*te,.76*ne,.82*te,.8*ne).close()),ue.spot1=new go.Spot(.07,.445),ue.spot2=new go.Spot(.884,.958),ue}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(Ee,te,ne){var ue=new go.Geometry,se=.5,de=0,pe=0,ye=se*Ue,Ce=.4*Math.SQRT2/2+.5,ze=.5-.5*Math.SQRT2/2,Te=1,Ie=.5,Oe=.5,Re=0,rt=new go.PathFigure(Ce*te,(1-ze)*ne,!1);return ue.add(rt),rt.add(new go.PathSegment(go.PathSegment.Bezier,Te*te,Ie*ne,Te*te,.7*ne,Te*te,Ie*ne)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(Oe+de)*te,(Re+de)*ne,(.5+se+de)*te,(.5-ye+de)*ne,(.5+ye+de)*te,(.5-se+de)*ne)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-se+de)*te,(.5+pe)*ne,(.5-ye+de)*te,(.5-se+pe)*ne,(.5-se+de)*te,(.5-ye+pe)*ne)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(.35+de)*te,.9*ne,(.5-se+de)*te,(.5+ye+pe)*ne,(.5-ye+de)*te,.9*ne)),rt.add(new go.PathSegment(go.PathSegment.Move,(.25+de)*te,.8*ne)),rt.add(new go.PathSegment(go.PathSegment.Line,(.35+de)*te,.9*ne)),rt.add(new go.PathSegment(go.PathSegment.Line,(.2+de)*te,.95*ne)),ue}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(Ee,te,ne){var ue=new go.Geometry,se=new go.PathFigure(0,0,!1);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Move,.5*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)),se.add(new go.PathSegment(go.PathSegment.Move,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),ue}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(Ee,te,ne){var ue=new go.Geometry,se=new go.PathFigure(0,0,!1);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Move,0,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Move,0,ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),ue}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(Ee,te,ne){var ue=new go.Geometry,se=new go.PathFigure(0,0,!1);ue.add(se);var de=new go.PathFigure(te,ne,!1);ue.add(de);var pe=new go.PathFigure(0,.5*ne,!1);return ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.5*ne,.2*te,.35*ne,.3*te,.35*ne)),pe.add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ne,.7*te,.65*ne,.8*te,.65*ne)),ue}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(Ee,te,ne){var ue=new go.Geometry,se=new go.PathFigure(0,.5*ne,!0);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne).close()),ue}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(Ee,te,ne){var ue=new go.Geometry,se=new go.PathFigure(0,.2*ne,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,.2*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.8*ne).close());var se=new go.PathFigure(0,.2*ne,!1);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.2*ne)),ue}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(Ee,te,ne){var ue=new go.Geometry,se=new go.PathFigure(.7*te,ne,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.3*te,ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.3*te,0,.6*te,.5*ne,0,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.7*te,0)),se.add(new go.PathSegment(go.PathSegment.Bezier,.7*te,ne,.4*te,.5*ne,te,.5*ne).close());var de=new go.PathFigure(.45*te,.73*ne,!1);return ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.7*te,.73*ne)),de.add(new go.PathSegment(go.PathSegment.Move,.38*te,.5*ne)),de.add(new go.PathSegment(go.PathSegment.Line,.63*te,.5*ne)),de.add(new go.PathSegment(go.PathSegment.Move,.31*te,.27*ne)),de.add(new go.PathSegment(go.PathSegment.Line,.56*te,.27*ne)),ue}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(Ee,te,ne){var ue=new go.Geometry,se=new go.PathFigure(0,0,!1);ue.add(se);var de=new go.PathFigure(.335*te,(1-.555)*ne,!0);ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.335*te,(1-.405)*ne)),de.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*te,(1-.405)*ne)),de.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*te,(1-.555)*ne)),de.add(new go.PathSegment(go.PathSegment.Bezier,te,.68*ne,(1-.12)*te,.46*ne,(1-.02)*te,.54*ne)),de.add(new go.PathSegment(go.PathSegment.Line,te,ne)),de.add(new go.PathSegment(go.PathSegment.Line,0,ne)),de.add(new go.PathSegment(go.PathSegment.Line,0,.68*ne)),de.add(new go.PathSegment(go.PathSegment.Bezier,.335*te,(1-.555)*ne,.02*te,.54*ne,.12*te,.46*ne)),de.add(new go.PathSegment(go.PathSegment.Line,.365*te,(1-.595)*ne));var pe=.5-.285,ye=.5,Ce=pe,ze=Math.PI/4,Te=4*(1-Math.cos(ze))/(3*Math.sin(ze)),Ie=Te*.5,Oe=pe,Re=pe,rt=Te*Oe,ot=Te*Re;de.add(new go.PathSegment(go.PathSegment.Bezier,(ye-Oe)*te,Ce*ne,(ye-(rt+Oe)/2)*te,(Ce+(Re+ot)/2)*ne,(ye-Oe)*te,(Ce+ot)*ne)),de.add(new go.PathSegment(go.PathSegment.Bezier,ye*te,(Ce-Re)*ne,(ye-Oe)*te,(Ce-ot)*ne,(ye-rt)*te,(Ce-Re)*ne)),de.add(new go.PathSegment(go.PathSegment.Bezier,(ye+Oe)*te,Ce*ne,(ye+rt)*te,(Ce-Re)*ne,(ye+Oe)*te,(Ce-ot)*ne)),de.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*te,(1-.595)*ne,(ye+Oe)*te,(Ce+ot)*ne,(ye+(rt+Oe)/2)*te,(Ce+(Re+ot)/2)*ne)),de.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*te,(1-.595)*ne)),de.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*te,(1-.555)*ne)),de.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*te,(1-.405)*ne)),de.add(new go.PathSegment(go.PathSegment.Line,.335*te,(1-.405)*ne));var Ct=new go.PathFigure(.2*te,ne,!1);ue.add(Ct),Ct.add(new go.PathSegment(go.PathSegment.Line,.2*te,.8*ne));var gt=new go.PathFigure(.8*te,ne,!1);return ue.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.8*te,.8*ne)),ue}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(Ee,te,ne){var ue=new go.Geometry,se=new go.PathFigure(.1*te,0,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.9*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.9*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.1*te,ne).close());var de=new go.PathFigure(.2*te,.2*ne,!1);return ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.8*te,.2*ne)),de.add(new go.PathSegment(go.PathSegment.Move,.2*te,.4*ne)),de.add(new go.PathSegment(go.PathSegment.Line,.8*te,.4*ne)),de.add(new go.PathSegment(go.PathSegment.Move,.2*te,.6*ne)),de.add(new go.PathSegment(go.PathSegment.Line,.8*te,.6*ne)),de.add(new go.PathSegment(go.PathSegment.Move,.2*te,.8*ne)),de.add(new go.PathSegment(go.PathSegment.Line,.8*te,.8*ne)),ue}),go.Shape.defineFigureGenerator("BpmnEventError",function(Ee,te,ne){var ue=new go.Geometry,se=new go.PathFigure(0,ne,!0);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.33*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.66*te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.66*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.33*te,.5*ne).close()),ue}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(Ee,te,ne){var ue=new go.Geometry,se=new go.PathFigure(0,0,!1);ue.add(se);var de=new go.PathFigure(te,ne,!1);ue.add(de);var pe=new go.PathFigure(.1*te,ne,!0);return ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),pe.add(new go.PathSegment(go.PathSegment.Line,.9*te,ne)),pe.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ne).close()),ue}),go.Shape.defineFigureGenerator("Caution",function(Ee,te,ne){var ue=new go.Geometry,se=new go.PathFigure(.05*te,ne,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,.1*te,.8*ne,0,ne,0,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.45*te,.1*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.55*te,.1*ne,.5*te,0,.5*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.95*te,.9*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.9*te,ne,te,ne,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.05*te,ne));var de=.05;return se.add(new go.PathSegment(go.PathSegment.Move,(.5-de)*te,.875*ne)),se.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*te,.875*ne,de*te,de*ne)),se.add(new go.PathSegment(go.PathSegment.Move,.5*te,.75*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.325*ne,.575*te,.725*ne,.625*te,.375*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.75*ne,.375*te,.375*ne,.425*te,.725*ne)),ue}),go.Shape.defineFigureGenerator("Recycle",function(Ee,te,ne){var ue=new go.Geometry,se=new go.PathFigure(.45*te,.95*ne,!1);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.2*te,.95*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.185*te,.85*ne,.17*te,.95*ne,.15*te,.9*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.235*te,.75*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.3*te,.625*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.35*te,.65*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.275*te,.45*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.05*te,.45*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.1*te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.05*te,.575*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.1875*te,.95*ne,0,.675*ne,0,.7*ne)),se.add(new go.PathSegment(go.PathSegment.Move,.45*te,.95*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.45*te,.775*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.22*te,.775*ne));var de=new go.PathFigure(.475*te,.2*ne,!1);ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.4*te,.4*ne)),de.add(new go.PathSegment(go.PathSegment.Line,.225*te,.3*ne)),de.add(new go.PathSegment(go.PathSegment.Line,.275*te,.175*ne)),de.add(new go.PathSegment(go.PathSegment.Line,.325*te,.05*ne)),de.add(new go.PathSegment(go.PathSegment.Bezier,.4*te,.05*ne,.35*te,0,.375*te,0)),de.add(new go.PathSegment(go.PathSegment.Line,.575*te,.375*ne)),de.add(new go.PathSegment(go.PathSegment.Line,.525*te,.4*ne)),de.add(new go.PathSegment(go.PathSegment.Line,.75*te,.475*ne)),de.add(new go.PathSegment(go.PathSegment.Line,.85*te,.315*ne)),de.add(new go.PathSegment(go.PathSegment.Line,.8*te,.32*ne)),de.add(new go.PathSegment(go.PathSegment.Line,.65*te,.05*ne)),de.add(new go.PathSegment(go.PathSegment.Bezier,.575*te,0,.65*te,.05*ne,.625*te,0)),de.add(new go.PathSegment(go.PathSegment.Line,.38*te,.0105*ne));var pe=new go.PathFigure(.675*te,.575*ne,!1);return ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.875*te,.525*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,te,.775*ne)),pe.add(new go.PathSegment(go.PathSegment.Bezier,.85*te,.95*ne,te,.8*ne,te,.85*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,.65*te,.95*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,.65*te,ne)),pe.add(new go.PathSegment(go.PathSegment.Line,.55*te,.85*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,.65*te,.725*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,.65*te,.775*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,.7*te,.775*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,te,.775*ne)),pe.add(new go.PathSegment(go.PathSegment.Move,.675*te,.575*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,.775*te,.775*ne)),ue}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(Ee,te,ne){var ue=new go.Geometry,se=.5,de=Ue*.5,pe=new go.PathFigure(te,se*ne,!0);ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Bezier,se*te,ne,te,(se+de)*ne,(se+de)*te,ne)),pe.add(new go.PathSegment(go.PathSegment.Bezier,0,se*ne,(se-de)*te,ne,0,(se+de)*ne)),pe.add(new go.PathSegment(go.PathSegment.Bezier,se*te,0,0,(se-de)*ne,(se-de)*te,0)),pe.add(new go.PathSegment(go.PathSegment.Bezier,te,se*ne,(se+de)*te,0,te,(se-de)*ne));var ye=new go.PathFigure(se*te,0,!1);return ue.add(ye),ye.add(new go.PathSegment(go.PathSegment.Line,se*te,.15*ne)),ye.add(new go.PathSegment(go.PathSegment.Move,se*te,ne)),ye.add(new go.PathSegment(go.PathSegment.Line,se*te,.85*ne)),ye.add(new go.PathSegment(go.PathSegment.Move,0,se*ne)),ye.add(new go.PathSegment(go.PathSegment.Line,.15*te,se*ne)),ye.add(new go.PathSegment(go.PathSegment.Move,te,se*ne)),ye.add(new go.PathSegment(go.PathSegment.Line,.85*te,se*ne)),ye.add(new go.PathSegment(go.PathSegment.Move,se*te,se*ne)),ye.add(new go.PathSegment(go.PathSegment.Line,.58*te,.1*ne)),ye.add(new go.PathSegment(go.PathSegment.Move,se*te,se*ne)),ye.add(new go.PathSegment(go.PathSegment.Line,.78*te,.54*ne)),ue}),go.Shape.defineFigureGenerator("Package",function(Ee,te,ne){var ue=new go.Geometry,se=new go.PathFigure(0,.15*ne,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,.15*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne).close());var de=new go.PathFigure(0,.15*ne,!0);return ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,0,0)),de.add(new go.PathSegment(go.PathSegment.Line,.6*te,0)),de.add(new go.PathSegment(go.PathSegment.Line,.65*te,.15*ne).close()),ue.spot1=new go.Spot(0,.1),ue.spot2=new go.Spot(1,1),ue}),go.Shape.defineFigureGenerator("Class",function(Ee,te,ne){var ue=new go.Geometry,se=new go.PathFigure(0,0,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var de=new go.PathFigure(0,.2*ne,!1);ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,te,.2*ne).close());var pe=new go.PathFigure(0,.5*ne,!1);return ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne).close()),ue}),go.Shape.defineFigureGenerator("Component",function(Ee,te,ne){var ue=new go.Geometry,se=new go.PathFigure(te,ne,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.15*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.15*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne).close());var de=new go.PathFigure(0,.2*ne,!0);ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.45*te,.2*ne)),de.add(new go.PathSegment(go.PathSegment.Line,.45*te,.4*ne)),de.add(new go.PathSegment(go.PathSegment.Line,0,.4*ne)),de.add(new go.PathSegment(go.PathSegment.Line,0,.2*ne).close());var pe=new go.PathFigure(0,.6*ne,!0);return ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.45*te,.6*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,.45*te,.8*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,0,.8*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,0,.6*ne).close()),ue}),go.Shape.defineFigureGenerator("Boat Shipment",function(Ee,te,ne){var ue=new go.Geometry,se=new go.PathFigure(.15*te,.6*ne,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.15*te,.6*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.6*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.15*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.85*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.6*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.85*te,.6*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.15*te,.6*ne));var de=new go.PathFigure(.15*te,.6*ne,!1);return ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.85*te,.6*ne)),ue}),go.Shape.defineFigureGenerator("Customer/Supplier",function(Ee,te,ne){var ue=new go.Geometry,se=new go.PathFigure(te,ne,!0);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.66*te,.33*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.66*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.33*te,.33*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.33*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,0,.33*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne).close()),ue}),go.Shape.defineFigureGenerator("Workcell",function(Ee,te,ne){var ue=new go.Geometry,se=new go.PathFigure(0,ne,!0);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.65*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.65*te,.4*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.35*te,.4*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.35*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne).close()),ue}),go.Shape.defineFigureGenerator("Supermarket",function(Ee,te,ne){var ue=new go.Geometry,se=new go.PathFigure(0,0,!1);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.33*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.33*ne)),se.add(new go.PathSegment(go.PathSegment.Move,te,.33*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.66*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.66*ne)),se.add(new go.PathSegment(go.PathSegment.Move,te,.66*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),ue}),go.Shape.defineFigureGenerator("TruckShipment",function(Ee,te,ne){var ue=new go.Geometry,se=new go.PathFigure(0,0,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.6*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.6*te,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var de=new go.PathFigure(te,.8*ne,!0);ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,te,.4*ne)),de.add(new go.PathSegment(go.PathSegment.Line,.6*te,.4*ne)),de.add(new go.PathSegment(go.PathSegment.Line,.6*te,.8*ne)),de.add(new go.PathSegment(go.PathSegment.Line,te,.8*ne).close());var pe=.1,ye=Ue*.1,Ce=.2,ze=.9,Te=new go.PathFigure((Ce-pe)*te,ze*ne,!0);ue.add(Te),Te.add(new go.PathSegment(go.PathSegment.Bezier,Ce*te,(ze-pe)*ne,(Ce-pe)*te,(ze-ye)*ne,(Ce-ye)*te,(ze-pe)*ne)),Te.add(new go.PathSegment(go.PathSegment.Bezier,(Ce+pe)*te,ze*ne,(Ce+ye)*te,(ze-pe)*ne,(Ce+pe)*te,(ze-ye)*ne)),Te.add(new go.PathSegment(go.PathSegment.Bezier,Ce*te,(ze+pe)*ne,(Ce+pe)*te,(ze+ye)*ne,(Ce+ye)*te,(ze+pe)*ne)),Te.add(new go.PathSegment(go.PathSegment.Bezier,(Ce-pe)*te,ze*ne,(Ce-ye)*te,(ze+pe)*ne,(Ce-pe)*te,(ze+ye)*ne).close()),pe=.1,ye=Ue*.1,Ce=.8,ze=.9;var Ie=new go.PathFigure((Ce-pe)*te,ze*ne,!0);return ue.add(Ie),Ie.add(new go.PathSegment(go.PathSegment.Bezier,Ce*te,(ze-pe)*ne,(Ce-pe)*te,(ze-ye)*ne,(Ce-ye)*te,(ze-pe)*ne)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,(Ce+pe)*te,ze*ne,(Ce+ye)*te,(ze-pe)*ne,(Ce+pe)*te,(ze-ye)*ne)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,Ce*te,(ze+pe)*ne,(Ce+pe)*te,(ze+ye)*ne,(Ce+ye)*te,(ze+pe)*ne)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,(Ce-pe)*te,ze*ne,(Ce-ye)*te,(ze+pe)*ne,(Ce-pe)*te,(ze+ye)*ne).close()),ue}),go.Shape.defineFigureGenerator("KanbanPost",function(Ee,te,ne){var ue=new go.Geometry,se=new go.PathFigure(.2*te,0,!1);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.2*te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.8*te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.8*te,0)),se.add(new go.PathSegment(go.PathSegment.Move,.5*te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.2*te,ne)),se.add(new go.PathSegment(go.PathSegment.Move,.5*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.8*te,ne)),ue}),go.Shape.defineFigureGenerator("Forklift",function(Ee,te,ne){var ue=new go.Geometry,se=new go.PathFigure(0,0,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.4*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,0,0));var de=new go.PathFigure(0,.5*ne,!0);ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,0,.8*ne)),de.add(new go.PathSegment(go.PathSegment.Line,.5*te,.8*ne)),de.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ne)),de.add(new go.PathSegment(go.PathSegment.Line,0,.5*ne));var pe=new go.PathFigure(.5*te,.8*ne,!0);ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.5*te,.1*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,.55*te,.1*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,.55*te,.8*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,.5*te,.8*ne));var ye=new go.PathFigure(.5*te,.7*ne,!1);ue.add(ye),ye.add(new go.PathSegment(go.PathSegment.Line,te,.7*ne));var Ce=.1,ze=Ue*.1,Te=.1,Ie=.9,Oe=new go.PathFigure((Te-Ce)*te,Ie*ne,!0);ue.add(Oe),Oe.add(new go.PathSegment(go.PathSegment.Bezier,Te*te,(Ie-Ce)*ne,(Te-Ce)*te,(Ie-ze)*ne,(Te-ze)*te,(Ie-Ce)*ne)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(Te+Ce)*te,Ie*ne,(Te+ze)*te,(Ie-Ce)*ne,(Te+Ce)*te,(Ie-ze)*ne)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,Te*te,(Ie+Ce)*ne,(Te+Ce)*te,(Ie+ze)*ne,(Te+ze)*te,(Ie+Ce)*ne)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(Te-Ce)*te,Ie*ne,(Te-ze)*te,(Ie+Ce)*ne,(Te-Ce)*te,(Ie+ze)*ne)),Ce=.1,ze=Ue*.1,Te=.4,Ie=.9;var Re=new go.PathFigure((Te-Ce)*te,Ie*ne,!0);return ue.add(Re),Re.add(new go.PathSegment(go.PathSegment.Bezier,Te*te,(Ie-Ce)*ne,(Te-Ce)*te,(Ie-ze)*ne,(Te-ze)*te,(Ie-Ce)*ne)),Re.add(new go.PathSegment(go.PathSegment.Bezier,(Te+Ce)*te,Ie*ne,(Te+ze)*te,(Ie-Ce)*ne,(Te+Ce)*te,(Ie-ze)*ne)),Re.add(new go.PathSegment(go.PathSegment.Bezier,Te*te,(Ie+Ce)*ne,(Te+Ce)*te,(Ie+ze)*ne,(Te+ze)*te,(Ie+Ce)*ne)),Re.add(new go.PathSegment(go.PathSegment.Bezier,(Te-Ce)*te,Ie*ne,(Te-ze)*te,(Ie+Ce)*ne,(Te-Ce)*te,(Ie+ze)*ne)),ue}),go.Shape.defineFigureGenerator("RailShipment",function(Ee,te,ne){var ue=new go.Geometry,se=new go.PathFigure(.1*te,.4*ne,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.45*te,.4*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.45*te,.9*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.1*te,.9*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.1*te,.4*ne).close());var de=new go.PathFigure(.45*te,.7*ne,!1);ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.55*te,.7*ne));var pe=new go.PathFigure(.55*te,.4*ne,!0);ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.9*te,.4*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,.9*te,.9*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,.55*te,.9*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,.55*te,.4*ne).close());var Te=.05,Ie=Ue*.05,Oe=.175,Re=.95,ye=new go.PathFigure((Oe-Te)*te,Re*ne,!0);ue.add(ye),ye.add(new go.PathSegment(go.PathSegment.Bezier,Oe*te,(Re-Te)*ne,(Oe-Te)*te,(Re-Ie)*ne,(Oe-Ie)*te,(Re-Te)*ne)),ye.add(new go.PathSegment(go.PathSegment.Bezier,(Oe+Te)*te,Re*ne,(Oe+Ie)*te,(Re-Te)*ne,(Oe+Te)*te,(Re-Ie)*ne)),ye.add(new go.PathSegment(go.PathSegment.Bezier,Oe*te,(Re+Te)*ne,(Oe+Te)*te,(Re+Ie)*ne,(Oe+Ie)*te,(Re+Te)*ne)),ye.add(new go.PathSegment(go.PathSegment.Bezier,(Oe-Te)*te,Re*ne,(Oe-Ie)*te,(Re+Te)*ne,(Oe-Te)*te,(Re+Ie)*ne));var Te=.05,Ie=Ue*.05,Oe=.375,Re=.95,Ce=new go.PathFigure((Oe-Te)*te,Re*ne,!0);ue.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,Oe*te,(Re-Te)*ne,(Oe-Te)*te,(Re-Ie)*ne,(Oe-Ie)*te,(Re-Te)*ne)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(Oe+Te)*te,Re*ne,(Oe+Ie)*te,(Re-Te)*ne,(Oe+Te)*te,(Re-Ie)*ne)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,Oe*te,(Re+Te)*ne,(Oe+Te)*te,(Re+Ie)*ne,(Oe+Ie)*te,(Re+Te)*ne)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(Oe-Te)*te,Re*ne,(Oe-Ie)*te,(Re+Te)*ne,(Oe-Te)*te,(Re+Ie)*ne));var Te=.05,Ie=Ue*.05,Oe=.625,Re=.95,ze=new go.PathFigure((Oe-Te)*te,Re*ne,!0);ue.add(ze),ze.add(new go.PathSegment(go.PathSegment.Bezier,Oe*te,(Re-Te)*ne,(Oe-Te)*te,(Re-Ie)*ne,(Oe-Ie)*te,(Re-Te)*ne)),ze.add(new go.PathSegment(go.PathSegment.Bezier,(Oe+Te)*te,Re*ne,(Oe+Ie)*te,(Re-Te)*ne,(Oe+Te)*te,(Re-Ie)*ne)),ze.add(new go.PathSegment(go.PathSegment.Bezier,Oe*te,(Re+Te)*ne,(Oe+Te)*te,(Re+Ie)*ne,(Oe+Ie)*te,(Re+Te)*ne)),ze.add(new go.PathSegment(go.PathSegment.Bezier,(Oe-Te)*te,Re*ne,(Oe-Ie)*te,(Re+Te)*ne,(Oe-Te)*te,(Re+Ie)*ne));var Te=.05,Ie=Ue*.05,Oe=.825,Re=.95,rt=new go.PathFigure((Oe-Te)*te,Re*ne,!0);ue.add(rt),rt.add(new go.PathSegment(go.PathSegment.Bezier,Oe*te,(Re-Te)*ne,(Oe-Te)*te,(Re-Ie)*ne,(Oe-Ie)*te,(Re-Te)*ne)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(Oe+Te)*te,Re*ne,(Oe+Ie)*te,(Re-Te)*ne,(Oe+Te)*te,(Re-Ie)*ne)),rt.add(new go.PathSegment(go.PathSegment.Bezier,Oe*te,(Re+Te)*ne,(Oe+Te)*te,(Re+Ie)*ne,(Oe+Ie)*te,(Re+Te)*ne)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(Oe-Te)*te,Re*ne,(Oe-Ie)*te,(Re+Te)*ne,(Oe-Te)*te,(Re+Ie)*ne).close());var ot=new go.PathFigure(0,ne,!1);return ue.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,te,ne).close()),ue}),go.Shape.defineFigureGenerator("Warehouse",function(Ee,te,ne){var ue=new go.Geometry,se=new go.PathFigure(0,0,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var de=new go.PathFigure(0,.2*ne,!1);ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,te,.2*ne).close());var pe=new go.PathFigure(.15*te,ne,!0);ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.15*te,.5*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,.4*te,.5*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,.4*te,ne)),pe.add(new go.PathSegment(go.PathSegment.Line,.15*te,ne).close());var ye=.05,Ce=Ue*.05,ze=.35,Te=.775,Ie=new go.PathFigure((ze-ye)*te,Te*ne,!0);return ue.add(Ie),Ie.add(new go.PathSegment(go.PathSegment.Bezier,ze*te,(Te-ye)*ne,(ze-ye)*te,(Te-Ce)*ne,(ze-Ce)*te,(Te-ye)*ne)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,(ze+ye)*te,Te*ne,(ze+Ce)*te,(Te-ye)*ne,(ze+ye)*te,(Te-Ce)*ne)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,ze*te,(Te+ye)*ne,(ze+ye)*te,(Te+Ce)*ne,(ze+Ce)*te,(Te+ye)*ne)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,(ze-ye)*te,Te*ne,(ze-Ce)*te,(Te+ye)*ne,(ze-ye)*te,(Te+Ce)*ne).close()),ue}),go.Shape.defineFigureGenerator("ControlCenter",function(Ee,te,ne){var ue=new go.Geometry,se=new go.PathFigure(0,ne,!0);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.1*te,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.1*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.9*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.9*te,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Move,.1*te,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.9*te,.8*ne).close()),ue}),go.Shape.defineFigureGenerator("Bluetooth",function(Ee,te,ne){var ue=new go.Geometry,se=new go.PathFigure(0,.75*ne,!1);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,.75*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.25*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.75*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.25*ne)),ue}),go.Shape.defineFigureGenerator("Bookmark",function(Ee,te,ne){var ue=new go.Geometry,se=new go.PathFigure(0,0,!0);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.6*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,0,0)),se.add(new go.PathSegment(go.PathSegment.Move,.2*te,.2*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.8*te,.2*ne)),se.add(new go.PathSegment(go.PathSegment.Move,.2*te,.4*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.8*te,.4*ne)),ue}),go.Shape.defineFigureGenerator("Bookmark",function(Ee,te,ne){var ue=new go.Geometry,se=new go.PathFigure(0,0,!0);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.6*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),se.add(new go.PathSegment(go.PathSegment.Line,0,0)),se.add(new go.PathSegment(go.PathSegment.Move,.2*te,.2*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.8*te,.2*ne)),se.add(new go.PathSegment(go.PathSegment.Move,.2*te,.4*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.8*te,.4*ne)),ue}),go.Shape.defineFigureGenerator("Globe",function(Ee,te,ne){var ue=new go.Geometry,se=new go.PathFigure(.5*te,0,!1);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)),se.add(new go.PathSegment(go.PathSegment.Move,0,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Move,.5*te,0)),se.add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ne,.75*te,0,te,.25*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ne,te,.75*ne,.75*te,ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ne,.25*te,ne,0,.75*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,0,0,.25*ne,.25*te,0)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ne,.15*te,.25*ne,.15*te,.75*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,0,.85*te,.75*ne,.85*te,.25*ne)),se.add(new go.PathSegment(go.PathSegment.Move,.1675*te,.15*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.8325*te,.15*ne,.35*te,.3*ne,.65*te,.3*ne)),se.add(new go.PathSegment(go.PathSegment.Move,.1675*te,.85*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.8325*te,.85*ne,.35*te,.7*ne,.65*te,.7*ne)),ue}),go.Shape.defineFigureGenerator("Wave",function(Ee,te,ne){var ue=new go.Geometry,se=new go.PathFigure(0,.25*ne,!1);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,.3*te,.25*ne,.1*te,0,.2*te,0)),se.add(new go.PathSegment(go.PathSegment.Bezier,.7*te,.25*ne,.425*te,.5*ne,.575*te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,te,.25*ne,.8*te,0,.9*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.75*ne)),se.add(new go.PathSegment(go.PathSegment.Move,0,.25*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.75*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.3*te,.75*ne,.1*te,.5*ne,.2*te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.7*te,.75*ne,.425*te,ne,.575*te,ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,te,.75*ne,.8*te,.5*ne,.9*te,.5*ne)),ue}),go.Shape.defineFigureGenerator("Operator",function(Ee,te,ne){var ue=new go.Geometry,se=.3,de=Ue*.3,pe=.5,ye=.7,Ce=new go.PathFigure((pe-se)*te,ye*ne,!0);ue.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,pe*te,(ye-se)*ne,(pe-se)*te,(ye-de)*ne,(pe-de)*te,(ye-se)*ne)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(pe+se)*te,ye*ne,(pe+de)*te,(ye-se)*ne,(pe+se)*te,(ye-de)*ne)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,pe*te,(ye+se)*ne,(pe+se)*te,(ye+de)*ne,(pe+de)*te,(ye+se)*ne)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(pe-se)*te,ye*ne,(pe-de)*te,(ye+se)*ne,(pe-se)*te,(ye+de)*ne));var ze=new go.PathFigure(0,.7*ne,!1);return ue.add(ze),ze.add(new go.PathSegment(go.PathSegment.Bezier,te,.7*ne,0,0,te,0)),ue}),go.Shape.defineFigureGenerator("TripleFanBlades",function(Ee,te,ne){var ue=new go.Geometry,se=new go.PathFigure(.5*te,0,!0);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.65*ne,.65*te,.3*ne,.65*te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,0,.35*te,.5*ne,.35*te,.3*ne)),se.add(new go.PathSegment(go.PathSegment.Move,.5*te,.65*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,ne,.3*te,.6*ne,.1*te,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.65*ne,.2*te,ne,.35*te,.95*ne)),se.add(new go.PathSegment(go.PathSegment.Move,.5*te,.65*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,te,ne,.7*te,.6*ne,.9*te,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.65*ne,.8*te,ne,.65*te,.95*ne)),ue}),go.Shape.defineFigureGenerator("CentrifugalPump",function(Ee,te,ne){var ue=new go.Geometry,se=new go.PathFigure(te,0,!0);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.4*te,0)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ne,0,.075*ne,0,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.4*te,ne,0,ne,.4*te,ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.8*te,.4*ne,.8*te,ne,.85*te,.6*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.4*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,0)),ue}),go.Shape.defineFigureGenerator("Battery",function(Ee,te,ne){var ue=new go.Geometry,se=new go.PathFigure(0,ne,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,.1*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.1*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Move,.4*te,.1*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.4*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.6*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.6*te,.1*ne));var de=new go.PathFigure(0,.6*ne,!1);return ue.add(de),de.add(new go.PathSegment(go.PathSegment.Move,0,.4*ne)),de.add(new go.PathSegment(go.PathSegment.Line,te,.4*ne)),ue}),go.Shape.defineFigureGenerator("Delete",function(Ee,te,ne){var ue=new go.Geometry,se=.5,de=Ue*.5,pe=.5,ye=.5,Ce=new go.PathFigure((pe-se)*te,ye*ne,!0);ue.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,pe*te,(ye-se)*ne,(pe-se)*te,(ye-de)*ne,(pe-de)*te,(ye-se)*ne)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(pe+se)*te,ye*ne,(pe+de)*te,(ye-se)*ne,(pe+se)*te,(ye-de)*ne)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,pe*te,(ye+se)*ne,(pe+se)*te,(ye+de)*ne,(pe+de)*te,(ye+se)*ne)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(pe-se)*te,ye*ne,(pe-de)*te,(ye+se)*ne,(pe-se)*te,(ye+de)*ne));var ze=new go.PathFigure(.15*te,.5*ne,!1);return ue.add(ze),ze.add(new go.PathSegment(go.PathSegment.Line,.85*te,.5*ne)),ue}),go.Shape.defineFigureGenerator("Flag",function(Ee,te,ne){var ue=new go.Geometry,se=new go.PathFigure(0,.1*ne,!0);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Move,0,.1*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.1*ne,.15*te,0,.35*te,0)),se.add(new go.PathSegment(go.PathSegment.Bezier,te,.1*ne,.65*te,.2*ne,.85*te,.2*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.5*ne,.85*te,.6*ne,.65*te,.6*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ne,.35*te,.4*ne,.15*te,.4*ne).close()),ue}),go.Shape.defineFigureGenerator("Help",function(Ee,te,ne){var ue=new go.Geometry,se=.5,de=Ue*.5,pe=.5,ye=.5,Ce=new go.PathFigure((pe-se)*te,ye*ne,!1);ue.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,pe*te,(ye-se)*ne,(pe-se)*te,(ye-de)*ne,(pe-de)*te,(ye-se)*ne)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(pe+se)*te,ye*ne,(pe+de)*te,(ye-se)*ne,(pe+se)*te,(ye-de)*ne)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,pe*te,(ye+se)*ne,(pe+se)*te,(ye+de)*ne,(pe+de)*te,(ye+se)*ne)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(pe-se)*te,ye*ne,(pe-de)*te,(ye+se)*ne,(pe-se)*te,(ye+de)*ne).close()),se=.05,de=Ue*.05,pe=.5,ye=.8;var ze=new go.PathFigure((pe-se)*te,ye*ne,!1);return ue.add(ze),ze.add(new go.PathSegment(go.PathSegment.Bezier,pe*te,(ye-se)*ne,(pe-se)*te,(ye-de)*ne,(pe-de)*te,(ye-se)*ne)),ze.add(new go.PathSegment(go.PathSegment.Bezier,(pe+se)*te,ye*ne,(pe+de)*te,(ye-se)*ne,(pe+se)*te,(ye-de)*ne)),ze.add(new go.PathSegment(go.PathSegment.Bezier,pe*te,(ye+se)*ne,(pe+se)*te,(ye+de)*ne,(pe+de)*te,(ye+se)*ne)),ze.add(new go.PathSegment(go.PathSegment.Bezier,(pe-se)*te,ye*ne,(pe-de)*te,(ye+se)*ne,(pe-se)*te,(ye+de)*ne).close()),ze.add(new go.PathSegment(go.PathSegment.Move,.5*te,.7*ne)),ze.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ne)),ze.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.2*ne,.75*te,.475*ne,.75*te,.225*ne)),ze.add(new go.PathSegment(go.PathSegment.Bezier,.3*te,.35*ne,.4*te,.2*ne,.3*te,.25*ne)),ue}),go.Shape.defineFigureGenerator("Location",function(Ee,te,ne){return new go.Geometry().add(new go.PathFigure(.5*te,ne,!0).add(new go.PathSegment(go.PathSegment.Line,.75*te,.5*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.5*te,0,.975*te,.025*ne,.5*te,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*te,.5*ne,.5*te,0,.025*te,.025*ne).close()).add(new go.PathSegment(go.PathSegment.Move,.5*te,.2*ne)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*te,.3*ne,.1*te,.1*ne).close()))}),go.Shape.defineFigureGenerator("Lock",function(Ee,te,ne){var ue=new go.Geometry,se=new go.PathFigure(0,.5*ne,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.5*ne));var de=new go.PathFigure(.2*te,.5*ne,!1);return ue.add(de),de.add(new go.PathSegment(go.PathSegment.Move,.2*te,.5*ne)),de.add(new go.PathSegment(go.PathSegment.Line,.2*te,.3*ne)),de.add(new go.PathSegment(go.PathSegment.Bezier,.8*te,.3*ne,.25*te,0,.75*te,0)),de.add(new go.PathSegment(go.PathSegment.Line,.8*te,.5*ne)),de.add(new go.PathSegment(go.PathSegment.Line,.8*te,.3*ne)),ue}),go.Shape.defineFigureGenerator("Unlocked",function(Ee,te,ne){var ue=new go.Geometry,se=new go.PathFigure(0,.5*ne,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.5*ne));var de=new go.PathFigure(.2*te,.5*ne,!1);return ue.add(de),de.add(new go.PathSegment(go.PathSegment.Move,.2*te,.5*ne)),de.add(new go.PathSegment(go.PathSegment.Line,.2*te,.3*ne)),de.add(new go.PathSegment(go.PathSegment.Bezier,.8*te,.3*ne,.25*te,0,.75*te,0)),de.add(new go.PathSegment(go.PathSegment.Line,.8*te,.35*ne)),ue}),go.Shape.defineFigureGenerator("Gear",function(Ee,te,ne){return new go.Geometry().add(new go.PathFigure(.9375*te,.56246875*ne,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*te,.4375*ne)).add(new go.PathSegment(go.PathSegment.Line,.80621875*te,.4375*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.763*te,.3316875*ne,.79840625*te,.39915625*ne,.7834375*te,.3635*ne)).add(new go.PathSegment(go.PathSegment.Line,.8566875*te,.23796875*ne)).add(new go.PathSegment(go.PathSegment.Line,.76825*te,.14959375*ne)).add(new go.PathSegment(go.PathSegment.Line,.67596875*te,.24184375*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*te,.19378125*ne,.64228125*te,.2188125*ne,.603875*te,.2021875*ne)).add(new go.PathSegment(go.PathSegment.Line,.5625*te,.0625*ne)).add(new go.PathSegment(go.PathSegment.Line,.4375*te,.0625*ne)).add(new go.PathSegment(go.PathSegment.Line,.4375*te,.19378125*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*te,.239375*ne,.39759375*te,.20190625*ne,.36053125*te,.2176875*ne)).add(new go.PathSegment(go.PathSegment.Line,.2379375*te,.14959375*ne)).add(new go.PathSegment(go.PathSegment.Line,.14953125*te,.2379375*ne)).add(new go.PathSegment(go.PathSegment.Line,.23934375*te,.3278125*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*te,.4375*ne,.21765625*te,.36059375*ne,.201875*te,.397625*ne)).add(new go.PathSegment(go.PathSegment.Line,.0625*te,.4375*ne)).add(new go.PathSegment(go.PathSegment.Line,.0625*te,.5625*ne)).add(new go.PathSegment(go.PathSegment.Line,.1938125*te,.5625*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*te,.67596875*ne,.20221875*te,.603875*ne,.21884375*te,.64228125*ne)).add(new go.PathSegment(go.PathSegment.Line,.1495625*te,.76825*ne)).add(new go.PathSegment(go.PathSegment.Line,.238*te,.8566875*ne)).add(new go.PathSegment(go.PathSegment.Line,.3316875*te,.76296875*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*te,.80621875*ne,.36353125*te,.78340625*ne,.3991875*te,.79840625*ne)).add(new go.PathSegment(go.PathSegment.Line,.43753125*te,.9375*ne)).add(new go.PathSegment(go.PathSegment.Line,.5625*te,.9375*ne)).add(new go.PathSegment(go.PathSegment.Line,.5625*te,.80621875*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*te,.760625*ne,.602375*te,.79809375*ne,.63946875*te,.78234375*ne)).add(new go.PathSegment(go.PathSegment.Line,.76828125*te,.8566875*ne)).add(new go.PathSegment(go.PathSegment.Line,.85671875*te,.76825*ne)).add(new go.PathSegment(go.PathSegment.Line,.76065625*te,.67221875*ne)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*te,.56246875*ne,.78234375*te,.63940625*ne,.798125*te,.602375*ne)).add(new go.PathSegment(go.PathSegment.Line,.9375*te,.56246875*ne).close()).add(new go.PathSegment(go.PathSegment.Move,.5*te,.6*ne)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*te,.5*ne,.1*te,.1*ne).close()))}),go.Shape.defineFigureGenerator("Hand",function(Ee,te,ne){var ue=new go.Geometry,se=new go.PathFigure(0,.5*ne,!0);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,.1*te,.3*ne,0,.375*ne,.05*te,.325*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.45*te,.075*ne,.3*te,.225*ne,.4*te,.175*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.525*te,.075*ne,.46*te,.05*ne,.525*te,.05*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.3*te,.4*ne,.525*te,.275*ne,.475*te,.325*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.9*te,.4*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.9*te,.55*ne,te,.4*ne,te,.55*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.425*te,.55*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.6*te,.55*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.6*te,.7*ne,.675*te,.55*ne,.675*te,.7*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.4*te,.7*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.575*te,.7*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.575*te,.85*ne,.65*te,.7*ne,.65*te,.85*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.4*te,.85*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.525*te,.85*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.535*te,ne,.61*te,.85*ne,.61*te,ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*ne,.435*te,ne,0,ne).close()),ue}),go.Shape.defineFigureGenerator("Map",function(Ee,te,ne){var ue=new go.Geometry,se=new go.PathFigure(0,.2*ne,!0);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.25*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.2*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.75*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,te,.2*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.75*te,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,.25*te,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne).close()),se.add(new go.PathSegment(go.PathSegment.Move,.25*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.25*te,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Move,.5*te,.2*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)),se.add(new go.PathSegment(go.PathSegment.Move,.75*te,0)),se.add(new go.PathSegment(go.PathSegment.Line,.75*te,.8*ne)),ue}),go.Shape.defineFigureGenerator("Eject",function(Ee,te,ne){var ue=new go.Geometry,se=new go.PathFigure(0,ne,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,ne)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne*.7)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne*.7).close());var de=new go.PathFigure(0,ne*.6,!0);return ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,te,.6*ne)),de.add(new go.PathSegment(go.PathSegment.Line,.5*te,0).close()),ue}),go.Shape.defineFigureGenerator("Pencil",function(Ee,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*te,.1*ne)).add(new go.PathSegment(go.PathSegment.Line,te,.9*ne)).add(new go.PathSegment(go.PathSegment.Line,.9*te,ne)).add(new go.PathSegment(go.PathSegment.Line,.1*te,.2*ne).close()))}),go.Shape.defineFigureGenerator("Building",function(Ee,te,ne){var ue=new go.Geometry,se=new go.PathFigure(te*1,ne*1,!1);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne*.85)),se.add(new go.PathSegment(go.PathSegment.Line,.046*te,ne*.85)),se.add(new go.PathSegment(go.PathSegment.Line,.046*te,ne*.45)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne*.45)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne*.3)),se.add(new go.PathSegment(go.PathSegment.Line,.046*te,ne*.3)),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne*0)),se.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*te,ne*.3)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne*.3)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne*.45)),se.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*te,ne*.45)),se.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*te,ne*.85)),se.add(new go.PathSegment(go.PathSegment.Line,te,ne*.85).close());var de=new go.PathFigure(.126*te,.85*ne,!1);ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.126*te,.45*ne)),de.add(new go.PathSegment(go.PathSegment.Line,.322*te,.45*ne)),de.add(new go.PathSegment(go.PathSegment.Line,.322*te,.85*ne).close());var pe=new go.PathFigure(.402*te,.85*ne,!1);ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.402*te,.45*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,.598*te,.45*ne)),pe.add(new go.PathSegment(go.PathSegment.Line,.598*te,.85*ne).close());var ye=new go.PathFigure(.678*te,.85*ne,!1);ue.add(ye),ye.add(new go.PathSegment(go.PathSegment.Line,.678*te,.45*ne)),ye.add(new go.PathSegment(go.PathSegment.Line,.874*te,.45*ne)),ye.add(new go.PathSegment(go.PathSegment.Line,.874*te,.85*ne).close());var Ce=new go.PathFigure(.5*te,.1*ne,!1);return ue.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*te,.3*ne)),Ce.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*te,.3*ne).close()),ue}),go.Shape.defineFigureGenerator("Staircase",function(Ee,te,ne){var ue=new go.Geometry,se=new go.PathFigure(0,ne*1,!0);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te*.2,ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*.2,ne*.8)),se.add(new go.PathSegment(go.PathSegment.Line,te*.4,ne*.8)),se.add(new go.PathSegment(go.PathSegment.Line,te*.4,ne*.6)),se.add(new go.PathSegment(go.PathSegment.Line,te*.6,ne*.6)),se.add(new go.PathSegment(go.PathSegment.Line,te*.6,ne*.4)),se.add(new go.PathSegment(go.PathSegment.Line,te*.8,ne*.4)),se.add(new go.PathSegment(go.PathSegment.Line,te*.8,ne*.2)),se.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*.2)),se.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*.15)),se.add(new go.PathSegment(go.PathSegment.Line,te*.75,ne*.15)),se.add(new go.PathSegment(go.PathSegment.Line,te*.75,ne*.35)),se.add(new go.PathSegment(go.PathSegment.Line,te*.55,ne*.35)),se.add(new go.PathSegment(go.PathSegment.Line,te*.55,ne*.55)),se.add(new go.PathSegment(go.PathSegment.Line,te*.35,ne*.55)),se.add(new go.PathSegment(go.PathSegment.Line,te*.35,ne*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.15,ne*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.15,ne*.95)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne*.95).close()),ue}),go.Shape.defineFigureGenerator("5Bars",function(Ee,te,ne){var ue=new go.Geometry,se=new go.PathFigure(0,ne*1,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te*.184,ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*.184,ne*(1-.184)).close());var de=new go.PathFigure(te*.204,ne,!0);ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,te*.204,ne*(1-.184))),de.add(new go.PathSegment(go.PathSegment.Line,te*.388,ne*(1-.184*2))),de.add(new go.PathSegment(go.PathSegment.Line,te*.388,ne*1).close());var pe=new go.PathFigure(te*.408,ne,!0);ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,te*.408,ne*(1-.184*2))),pe.add(new go.PathSegment(go.PathSegment.Line,te*.592,ne*(1-.184*3))),pe.add(new go.PathSegment(go.PathSegment.Line,te*.592,ne*1).close());var ye=new go.PathFigure(te*.612,ne,!0);ue.add(ye),ye.add(new go.PathSegment(go.PathSegment.Line,te*.612,ne*(1-.184*3))),ye.add(new go.PathSegment(go.PathSegment.Line,te*.796,ne*(1-.184*4))),ye.add(new go.PathSegment(go.PathSegment.Line,te*.796,ne*1).close());var Ce=new go.PathFigure(te*.816,ne,!0);return ue.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Line,te*.816,ne*(1-.184*4))),Ce.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*(1-.184*5))),Ce.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*1).close()),ue}),go.Shape.defineFigureGenerator("PC",function(Ee,te,ne){var ue=new go.Geometry,se=new go.PathFigure(0,0,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*.3,ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*.3,0).close());var de=new go.PathFigure(te*.055,.07*ne,!0);ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,te*.245,ne*.07)),de.add(new go.PathSegment(go.PathSegment.Line,te*.245,ne*.1)),de.add(new go.PathSegment(go.PathSegment.Line,te*.055,ne*.1).close());var pe=new go.PathFigure(te*.055,.13*ne,!0);ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,te*.245,ne*.13)),pe.add(new go.PathSegment(go.PathSegment.Line,te*.245,ne*.16)),pe.add(new go.PathSegment(go.PathSegment.Line,te*.055,ne*.16).close());var ye=new go.PathFigure(te*.055,.18*ne,!0);ue.add(ye),ye.add(new go.PathSegment(go.PathSegment.Line,te*.245,ne*.18)),ye.add(new go.PathSegment(go.PathSegment.Line,te*.245,ne*.21)),ye.add(new go.PathSegment(go.PathSegment.Line,te*.055,ne*.21).close());var Ce=new go.PathFigure(te*1,0,!0);return ue.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Line,te*.4,0)),Ce.add(new go.PathSegment(go.PathSegment.Line,te*.4,ne*.65)),Ce.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*.65).close()),ue}),go.Shape.defineFigureGenerator("Plane",function(Ee,te,ne){var ue=new go.Geometry,se=new go.PathFigure(.55*te,ne,!0);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.5*te,.6*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.4*te,.7*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.1*te,.475*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.35*te,.525*ne,0,.4*ne,.225*te,.45*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.4*te,.475*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.15*te,.35*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.2*te,.325*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.6*te,.325*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.85*te,.1*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.9*te,.2*ne,.975*te,0,te,.08*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.7*te,.45*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.6*te,.95*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.55*te,ne).close()),ue}),go.Shape.defineFigureGenerator("Key",function(Ee,te,ne){var ue=new go.Geometry,se=new go.PathFigure(te*1,ne*.5,!0);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te*.9,.4*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te*.5,.4*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te*.5,.35*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te*.45,.35*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te*.3,.2*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te*.15,.2*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.35*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,.65*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te*.15,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te*.3,.8*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te*.45,.65*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te*.5,.65*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te*.5,.6*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te*.6,.6*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te*.65,.55*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te*.7,.6*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te*.75,.55*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te*.8,.6*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te*.85,.575*ne)),se.add(new go.PathSegment(go.PathSegment.Line,te*.9,.6*ne).close()),se.add(new go.PathSegment(go.PathSegment.Move,.17*te,.425*ne)),se.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*te,.5*ne,.075*te,.075*ne).close()),ue}),go.Shape.defineFigureGenerator("FilmTape",function(Ee,te,ne){var ue=new go.Geometry,se=new go.PathFigure(0,0,!1);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Arc,270,180,te*0,te*.3,te*.055)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*.08,ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*.08,ne*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*1),ne*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*1),ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*2),ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*2),ne*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*3),ne*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*3),ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*4),ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*4),ne*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*5),ne*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*5),ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*6),ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*6),ne*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*7),ne*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*7),ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*8),ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*8),ne*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*9),ne*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*9),ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*10),ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*10),ne*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*11),ne*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*11),ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*12),ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*12),ne*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*13),ne*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*13),ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*14),ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*14),ne*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*15),ne*.95)),se.add(new go.PathSegment(go.PathSegment.Line,te*(.08+.056*15),ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*1));var de=new go.PathFigure(0,0,!1);ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*0)),de.add(new go.PathSegment(go.PathSegment.Arc,270,-180,te*1,te*.3,te*.055)),de.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*1));var pe=new go.PathFigure(te*.11,ne*.1,!1);ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*1+.028*0),ne*.1)),pe.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*1+.028*0),ne*.8)),pe.add(new go.PathSegment(go.PathSegment.Line,te*.11,ne*.8).close());var ye=new go.PathFigure(te*(.11+.24133333*1+.028*1),ne*.1,!1);ue.add(ye),ye.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*2+.028*1),ne*.1)),ye.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*2+.028*1),ne*.8)),ye.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*1+.028*1),ne*.8).close());var Ce=new go.PathFigure(te*(.11+.24133333*2+.028*2),ne*.1,!1);return ue.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*3+.028*2),ne*.1)),Ce.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*3+.028*2),ne*.8)),Ce.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*2+.028*2),ne*.8).close()),ue}),go.Shape.defineFigureGenerator("FloppyDisk",function(Ee,te,ne){var ue=new go.Geometry,se=8,de=se*Ue,pe=new go.PathFigure(se,0,!1);ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,te*.86,0)),pe.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*.14)),pe.add(new go.PathSegment(go.PathSegment.Line,te,ne-se)),pe.add(new go.PathSegment(go.PathSegment.Bezier,te-se,ne,te,ne-de,te-de,ne)),pe.add(new go.PathSegment(go.PathSegment.Line,se,ne)),pe.add(new go.PathSegment(go.PathSegment.Bezier,0,ne-se,de,ne,0,ne-de)),pe.add(new go.PathSegment(go.PathSegment.Line,0,se)),pe.add(new go.PathSegment(go.PathSegment.Bezier,se,0,0,de,de,0).close());var ye=new go.PathFigure(te*.83,0,!1);ue.add(ye),ye.add(new go.PathSegment(go.PathSegment.Line,te*.83,ne*.3)),ye.add(new go.PathSegment(go.PathSegment.Line,te*.17,ne*.3)),ye.add(new go.PathSegment(go.PathSegment.Line,te*.17,ne*0).close());var Ce=new go.PathFigure(te*.83,ne*1,!1);ue.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Line,te*.83,ne*.5)),Ce.add(new go.PathSegment(go.PathSegment.Line,te*.17,ne*.5)),Ce.add(new go.PathSegment(go.PathSegment.Line,te*.17,ne*1).close());var ze=new go.PathFigure(te*.78,ne*.05,!1);return ue.add(ze),ze.add(new go.PathSegment(go.PathSegment.Line,te*.66,ne*.05)),ze.add(new go.PathSegment(go.PathSegment.Line,te*.66,ne*.25)),ze.add(new go.PathSegment(go.PathSegment.Line,te*.78,ne*.25).close()),ue}),go.Shape.defineFigureGenerator("SpeechBubble",function(Ee,te,ne){var ue=Ee?Ee.parameter1:NaN;(isNaN(ue)||ue<0)&&(ue=15),ue=Math.min(ue,te/3),ue=Math.min(ue,ne/3);var se=ue*Ue,de=ne*.8,pe=new go.Geometry,ye=new go.PathFigure(ue,0,!0);return pe.add(ye),ye.add(new go.PathSegment(go.PathSegment.Line,te-ue,0)),ye.add(new go.PathSegment(go.PathSegment.Bezier,te,ue,te-se,0,te,se)),ye.add(new go.PathSegment(go.PathSegment.Line,te,de-ue)),ye.add(new go.PathSegment(go.PathSegment.Bezier,te-ue,de,te,de-se,te-se,de)),ye.add(new go.PathSegment(go.PathSegment.Line,te*.7,de)),ye.add(new go.PathSegment(go.PathSegment.Line,te*.7,ne)),ye.add(new go.PathSegment(go.PathSegment.Line,te*.55,de)),ye.add(new go.PathSegment(go.PathSegment.Line,ue,de)),ye.add(new go.PathSegment(go.PathSegment.Bezier,0,de-ue,se,de,0,de-se)),ye.add(new go.PathSegment(go.PathSegment.Line,0,ue)),ye.add(new go.PathSegment(go.PathSegment.Bezier,ue,0,0,se,se,0).close()),se>1?(pe.spot1=new go.Spot(0,0,se,se),pe.spot2=new go.Spot(1,.8,-se,-se)):(pe.spot1=go.Spot.TopLeft,pe.spot2=new go.Spot(1,.8)),pe}),go.Shape.defineFigureGenerator("Repeat",function(Ee,te,ne){var ue=new go.Geometry,se=new go.PathFigure(te*0,ne*.45,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te*.25,ne*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*.5,ne*.45)),se.add(new go.PathSegment(go.PathSegment.Line,te*.3,ne*.45)),se.add(new go.PathSegment(go.PathSegment.Line,te*.3,ne*.9)),se.add(new go.PathSegment(go.PathSegment.Line,te*.6,ne*.9)),se.add(new go.PathSegment(go.PathSegment.Line,te*.65,ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*.2,ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*.2,ne*.45).close());var de=new go.PathFigure(te*1,ne*.55,!0);return ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,te*.75,ne*1)),de.add(new go.PathSegment(go.PathSegment.Line,te*.5,ne*.55)),de.add(new go.PathSegment(go.PathSegment.Line,te*.7,ne*.55)),de.add(new go.PathSegment(go.PathSegment.Line,te*.7,ne*.1)),de.add(new go.PathSegment(go.PathSegment.Line,te*.4,ne*.1)),de.add(new go.PathSegment(go.PathSegment.Line,te*.35,ne*0)),de.add(new go.PathSegment(go.PathSegment.Line,te*.8,ne*0)),de.add(new go.PathSegment(go.PathSegment.Line,te*.8,ne*.55).close()),ue}),go.Shape.defineFigureGenerator("Windows",function(Ee,te,ne){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,te,0)).add(new go.PathSegment(go.PathSegment.Line,te,ne)).add(new go.PathSegment(go.PathSegment.Line,0,ne).close()).add(new go.PathSegment(go.PathSegment.Move,.4*te,.4*ne)).add(new go.PathSegment(go.PathSegment.Line,.4*te,.8*ne)).add(new go.PathSegment(go.PathSegment.Line,.9*te,.8*ne)).add(new go.PathSegment(go.PathSegment.Line,.9*te,.4*ne).close()).add(new go.PathSegment(go.PathSegment.Move,.2*te,.1*ne)).add(new go.PathSegment(go.PathSegment.Line,.2*te,.6*ne)).add(new go.PathSegment(go.PathSegment.Line,.7*te,.6*ne)).add(new go.PathSegment(go.PathSegment.Line,.7*te,.1*ne).close()).add(new go.PathSegment(go.PathSegment.Move,.1*te,.6*ne)).add(new go.PathSegment(go.PathSegment.Line,.1*te,.9*ne)).add(new go.PathSegment(go.PathSegment.Line,.5*te,.9*ne)).add(new go.PathSegment(go.PathSegment.Line,.5*te,.6*ne).close()))}),go.Shape.defineFigureGenerator("Terminal",function(Ee,te,ne){var ue=new go.Geometry,se=new go.PathFigure(te*0,ne*.1,!1);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*.1)),se.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*.9)),se.add(new go.PathSegment(go.PathSegment.Line,te*0,ne*.9).close());var de=new go.PathFigure(te*.1,ne*.2,!0);ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,te*.1,ne*.25)),de.add(new go.PathSegment(go.PathSegment.Line,te*.22,ne*.285)),de.add(new go.PathSegment(go.PathSegment.Line,te*.1,ne*.32)),de.add(new go.PathSegment(go.PathSegment.Line,te*.1,ne*.37)),de.add(new go.PathSegment(go.PathSegment.Line,te*.275,ne*.32)),de.add(new go.PathSegment(go.PathSegment.Line,te*.275,ne*.25).close());var pe=new go.PathFigure(te*.28,ne*.37,!0);return ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,te*.45,ne*.37)),pe.add(new go.PathSegment(go.PathSegment.Line,te*.45,ne*.41)),pe.add(new go.PathSegment(go.PathSegment.Line,te*.28,ne*.41).close()),ue}),go.Shape.defineFigureGenerator("Beaker",function(Ee,te,ne){var ue=new go.Geometry,se=15,de=se*Ue,pe=new go.PathFigure(te*.62,ne*.475,!0);return ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,te,ne-se)),pe.add(new go.PathSegment(go.PathSegment.Bezier,te-se,ne,te,ne-de,te-de,ne)),pe.add(new go.PathSegment(go.PathSegment.Line,se,ne)),pe.add(new go.PathSegment(go.PathSegment.Bezier,0,ne-se,de,ne,0,ne-de)),pe.add(new go.PathSegment(go.PathSegment.Line,te*.38,ne*.475)),pe.add(new go.PathSegment(go.PathSegment.Line,te*.38,ne*.03)),pe.add(new go.PathSegment(go.PathSegment.Line,te*.36,ne*0)),pe.add(new go.PathSegment(go.PathSegment.Line,te*.64,ne*0)),pe.add(new go.PathSegment(go.PathSegment.Line,te*.62,ne*.03).close()),de>1?(ue.spot1=new go.Spot(0,0,de,de),ue.spot2=new go.Spot(1,1,-de,-de)):(ue.spot1=go.Spot.TopLeft,ue.spot2=go.Spot.BottomRight),ue}),go.Shape.defineFigureGenerator("Download",function(Ee,te,ne){var ue=new go.Geometry,se=new go.PathFigure(te*0,ne*1,!0);ue.add(se);var de=.1/.3;se.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*(1-de))),se.add(new go.PathSegment(go.PathSegment.Line,te*.8,ne*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*.66,ne*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*.66,ne*.055)),se.add(new go.PathSegment(go.PathSegment.Line,te*.755,ne*.055)),se.add(new go.PathSegment(go.PathSegment.Line,te*.93,ne*(1-de))),se.add(new go.PathSegment(go.PathSegment.Line,te*.64,ne*(1-de))),se.add(new go.PathSegment(go.PathSegment.Line,te*.61,ne*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.5,ne*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.39,ne*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.36,ne*(1-de))),se.add(new go.PathSegment(go.PathSegment.Line,te*.07,ne*(1-de))),se.add(new go.PathSegment(go.PathSegment.Line,te*(1-.755),ne*.055)),se.add(new go.PathSegment(go.PathSegment.Line,te*(1-.66),ne*.055)),se.add(new go.PathSegment(go.PathSegment.Line,te*(1-.66),ne*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*(1-.8),ne*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*0,ne*(1-de)).close());var pe=new go.PathFigure(te*.4,ne*0,!0);return ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,te*.4,ne*.44)),pe.add(new go.PathSegment(go.PathSegment.Line,te*.26,ne*.44)),pe.add(new go.PathSegment(go.PathSegment.Line,te*.5,ne*.66)),pe.add(new go.PathSegment(go.PathSegment.Line,te*(1-.26),ne*.44)),pe.add(new go.PathSegment(go.PathSegment.Line,te*.6,ne*.44)),pe.add(new go.PathSegment(go.PathSegment.Line,te*.6,ne*0).close()),ue}),go.Shape.defineFigureGenerator("Bin",function(Ee,te,ne){var ue=new go.Geometry,se=new go.PathFigure(te*0,ne*1,!0);ue.add(se);var de=.1/.3;return se.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*(1-de))),se.add(new go.PathSegment(go.PathSegment.Line,te*.8,ne*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*.66,ne*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*.66,ne*.055)),se.add(new go.PathSegment(go.PathSegment.Line,te*.755,ne*.055)),se.add(new go.PathSegment(go.PathSegment.Line,te*.93,ne*(1-de))),se.add(new go.PathSegment(go.PathSegment.Line,te*.64,ne*(1-de))),se.add(new go.PathSegment(go.PathSegment.Line,te*.61,ne*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.5,ne*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.39,ne*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.36,ne*(1-de))),se.add(new go.PathSegment(go.PathSegment.Line,te*.07,ne*(1-de))),se.add(new go.PathSegment(go.PathSegment.Line,te*(1-.755),ne*.055)),se.add(new go.PathSegment(go.PathSegment.Line,te*(1-.66),ne*.055)),se.add(new go.PathSegment(go.PathSegment.Line,te*(1-.66),ne*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*(1-.8),ne*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*0,ne*(1-de)).close()),ue}),go.Shape.defineFigureGenerator("Upload",function(Ee,te,ne){var ue=new go.Geometry,se=new go.PathFigure(te*0,ne*1,!0);ue.add(se);var de=.1/.3;se.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*(1-de))),se.add(new go.PathSegment(go.PathSegment.Line,te*.8,ne*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*.66,ne*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*.66,ne*.055)),se.add(new go.PathSegment(go.PathSegment.Line,te*.755,ne*.055)),se.add(new go.PathSegment(go.PathSegment.Line,te*.93,ne*(1-de))),se.add(new go.PathSegment(go.PathSegment.Line,te*.64,ne*(1-de))),se.add(new go.PathSegment(go.PathSegment.Line,te*.61,ne*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.5,ne*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.39,ne*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.36,ne*(1-de))),se.add(new go.PathSegment(go.PathSegment.Line,te*.07,ne*(1-de))),se.add(new go.PathSegment(go.PathSegment.Line,te*(1-.755),ne*.055)),se.add(new go.PathSegment(go.PathSegment.Line,te*(1-.66),ne*.055)),se.add(new go.PathSegment(go.PathSegment.Line,te*(1-.66),ne*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*(1-.8),ne*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*0,ne*(1-de)).close());var pe=new go.PathFigure(te*.5,ne*0,!0);return ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,te*.26,ne*.25)),pe.add(new go.PathSegment(go.PathSegment.Line,te*.4,ne*.25)),pe.add(new go.PathSegment(go.PathSegment.Line,te*.4,ne*.63)),pe.add(new go.PathSegment(go.PathSegment.Line,te*.6,ne*.63)),pe.add(new go.PathSegment(go.PathSegment.Line,te*.6,ne*.25)),pe.add(new go.PathSegment(go.PathSegment.Line,te*.74,ne*.25).close()),ue}),go.Shape.defineFigureGenerator("EmptyDrink",function(Ee,te,ne){var ue=new go.Geometry,se=new go.PathFigure(te*.15,ne*0,!1);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te*.85,ne*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*.7,ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*.3,ne*1).close()),ue}),go.Shape.defineFigureGenerator("Drink",function(Ee,te,ne){var ue=new go.Geometry,se=new go.PathFigure(te*.15,ne*0,!1);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te*.85,ne*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*.7,ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*.3,ne*1).close());var de=new go.PathFigure(te*.235,ne*.28,!0);return ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,te*.765,ne*.28)),de.add(new go.PathSegment(go.PathSegment.Line,te*.655,ne*.97)),de.add(new go.PathSegment(go.PathSegment.Line,te*.345,ne*.97).close()),ue}),go.Shape.defineFigureGenerator("4Arrows",function(Ee,te,ne){var ue=new go.Geometry,se=new go.PathFigure(te*.5,ne*0,!0);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te*.65,ne*.25)),se.add(new go.PathSegment(go.PathSegment.Line,te*.55,ne*.25)),se.add(new go.PathSegment(go.PathSegment.Line,te*.55,ne*.45)),se.add(new go.PathSegment(go.PathSegment.Line,te*.75,ne*.45)),se.add(new go.PathSegment(go.PathSegment.Line,te*.75,ne*.35)),se.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*.5)),se.add(new go.PathSegment(go.PathSegment.Line,te*.75,ne*.65)),se.add(new go.PathSegment(go.PathSegment.Line,te*.75,ne*.55)),se.add(new go.PathSegment(go.PathSegment.Line,te*.55,ne*.55)),se.add(new go.PathSegment(go.PathSegment.Line,te*.55,ne*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.65,ne*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.5,ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*.35,ne*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.45,ne*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.45,ne*.55)),se.add(new go.PathSegment(go.PathSegment.Line,te*.25,ne*.55)),se.add(new go.PathSegment(go.PathSegment.Line,te*.25,ne*.65)),se.add(new go.PathSegment(go.PathSegment.Line,te*0,ne*.5)),se.add(new go.PathSegment(go.PathSegment.Line,te*.25,ne*.35)),se.add(new go.PathSegment(go.PathSegment.Line,te*.25,ne*.45)),se.add(new go.PathSegment(go.PathSegment.Line,te*.45,ne*.45)),se.add(new go.PathSegment(go.PathSegment.Line,te*.45,ne*.25)),se.add(new go.PathSegment(go.PathSegment.Line,te*.35,ne*.25).close()),ue}),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")},43001: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 fn={},on="5.0",we={},ve=null,Ye=!1,dt=!1,it=null,at=!1,Ze=null,Ue=null,xt=0;xt<arguments.length;xt++){var nt=arguments[xt];if(nt!==null)switch(typeof nt){case"number":on=nt.toFixed(1);break;case"string":nt.match(new RegExp("^[0-9]\\.[0-9]+$"))?on=nt:it=nt;break;case"object":typeof nt.is3D!="undefined"?ve=nt:we=nt;break;case"boolean":Ye=nt,dt=!0;break}}ve===null&&(ve={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},we.material_id!==void 0&&!dt&&(Ye=!0)),it!==null&&we.id===void 0&&(we.id=it);var De="",wt="",Ve=!1,ut=null,Ee=null,te=null,ne=!1,ue=null,se=null,de=null,pe=null,ye=null;we.height!==void 0&&(we.height=Math.round(we.height)),we.width!==void 0&&(we.width=Math.round(we.width));var Ce=function(Mt){return parseFloat(Mt)>4?parseFloat(Mt):5};fn.setHTML5Codebase=function(Mt,jt){Ue=Mt,Rt(Mt,jt)},fn.setJavaCodebase=fn.setJavaCodebaseVersion=fn.isCompiledInstalled=fn.setPreCompiledScriptPath=fn.setPreCompiledResourcePath=function(){},fn.setHTML5CodebaseVersion=function(Mt,jt){var an=parseFloat(Mt);if(an!==NaN&&an<5){console.log("The GeoGebra HTML5 codebase version "+an+" is deprecated. Using version latest instead.");return}Ze=Mt,He(Mt,jt)},fn.getHTML5CodebaseVersion=function(){return Ee},fn.getParameters=function(){return we},fn.setFontsCSSURL=function(Mt){pe=Mt},fn.setGiacJSURL=function(Mt){},fn.setJNLPFile=function(Mt){De=Mt},fn.setJNLPBaseDir=function(Mt){},fn.inject=function(){function Mt(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var jt="auto",an=we.id,Dn,Dt=!1,gn=0;gn<arguments.length;gn++){var yt=arguments[gn];typeof yt=="string"?(yt=yt.toLowerCase(),yt.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?jt=yt:an=arguments[gn]):typeof yt=="boolean"?Dt=yt:yt instanceof HTMLElement&&(Dn=yt)}Zn();function Zn(){if(!at){setTimeout(Zn,200);return}jt=tn(jt);var vi=Dn||document.getElementById(an);if(!vi){console.log("possibly bug on ajax loading? ");return}if(fn.removeExistingApplet(vi,!1),we.width===void 0&&vi.clientWidth&&(we.width=vi.clientWidth),we.height===void 0&&vi.clientHeight&&(we.height=vi.clientHeight),!(we.width&&we.height)&&jt==="html5"&&(delete we.width,delete we.height),ut=jt,jt==="screenshot")gt(vi,we);else{var We=!1;we.hasOwnProperty("playButton")&&we.playButton||we.hasOwnProperty("clickToLoad")&&we.clickToLoad?We=!0:we.hasOwnProperty("playButtonAutoDecide")&&we.playButtonAutoDecide&&(We=(!ze()||Mt())&&Te()),We?(ut="screenshot",Lt(vi,we,Dt,jt)):Ct(vi,we,Dt)}}};function ze(){try{return window.self!==window.top}catch(Mt){return!0}}function Te(){return we.hasOwnProperty("screenshotGenerator")&&we.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}fn.getViews=function(){return ve},fn.isJavaInstalled=function(){return!1};var Ie=function(Mt){var jt=function(gn){var yt=JSON.parse(gn),Zn=function(Fe){return Fe.type=="G"||Fe.type=="E"},vi=yt.elements?yt.elements.filter(Zn)[0]:yt;if(!vi||!vi.url){an();return}we.fileName=vi.url,Oe(vi.settings||{}),ve.is3D=!0;var We="https://www.geogebra.org/images/";fn.setPreviewImage(ue||vi.previewUrl,We+"GeoGebra_loading.png",We+"applet_play.png"),Mt()},an=function(){we.onError&&we.onError(),Zt("Error: Fetching material (id "+we.material_id+") failed.",we)},Dn=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",Dt="/materials/"+we.material_id+"?scope=basic";Re("https://"+Dn+"/api/proxy.php?path="+encodeURIComponent(Dt),jt,an)};function Oe(Mt){var jt=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(an){Mt[an]=!!Mt[an]}),jt.forEach(function(an){we[an]===void 0&&Mt[an]!==void 0&&(we[an]=Mt[an])}),we.showToolBarHelp===void 0&&(we.showToolBarHelp=we.showToolBar)}function Re(Mt,jt,an){var Dn=new XMLHttpRequest;Dn.open("GET",Mt),Dn.onload=function(){jt(Dn.responseText)},Dn.onerror=an,Dn.send()}fn.isHTML5Installed=function(){return!0},fn.getLoadedAppletType=function(){return ut},fn.setPreviewImage=function(Mt,jt,an){ue=Mt,se=jt,de=an},fn.removeExistingApplet=function(Mt,jt){var an;typeof Mt=="string"&&(Mt=document.getElementById(Mt)),ut=null;var Dn=null;for(an=0;an<Mt.childNodes.length;an++){var Dt=Mt.childNodes[an],gn=Dt.className;gn==="applet_screenshot"?jt?(Dt.style.display="block",ut="screenshot"):Dt.style.display="none":gn!=="applet_scaler prerender"&&(Mt.removeChild(Dt),Dn=gn&&gn.indexOf("appletParameters")!=-1?Dt.id:null,an--)}var yt=we.id!==void 0?we.id:Dn,Zn=window[yt];Zn&&typeof Zn.getBase64=="function"&&(Zn.remove(),window[yt]=null)},fn.refreshHitPoints=function(){if(Ce(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var Mt=fn.getAppletObject();return Mt&&typeof Mt.recalculateEnvironments=="function"?(Mt.recalculateEnvironments(),!0):!1},fn.startAnimation=function(){var Mt=fn.getAppletObject();return Mt&&typeof Mt.startAnimation=="function"?(Mt.startAnimation(),!0):!1},fn.stopAnimation=function(){var Mt=fn.getAppletObject();return Mt&&typeof Mt.stopAnimation=="function"?(Mt.stopAnimation(),!0):!1},fn.getAppletObject=function(){var Mt=we.id!==void 0?we.id:"ggbApplet";return window[Mt]},fn.resize=function(){};var rt=function(Mt,jt,an){var Dn=document.createElement("param");Dn.setAttribute("name",jt),Dn.setAttribute("value",an),Mt.appendChild(Dn)},ot=function(Mt){return Mt&&Mt!=="false"},Ct=function(Mt,jt,an){Ce(Ee)<=4.2&&(an=!0);var Dn=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==Ee||ggbHTML5LoadedCodebaseIsWebSimple&&!ne)&&(Dn=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Dt=document.createElement("div");Dt.classList.add("appletParameters","notranslate");var gn=jt.width,yt=jt.height;if(jt.disableAutoScale=jt.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():jt.disableAutoScale,jt.width!==void 0)if(Ce(Ee)<=4.4)ot(jt.showToolBar)&&(jt.height-=7),ot(jt.showAlgebraInput)&&(jt.height-=37),jt.width<605&&ot(jt.showToolBar)&&(jt.width=605,gn=605);else{var Zn=100;(ot(jt.showToolBar)||ot(jt.showMenuBar))&&(jt.hasOwnProperty("customToolBar")&&(jt.customToolbar=jt.customToolBar),Zn=ot(jt.showMenuBar)?245:155),gn<Zn&&(jt.width=Zn,gn=Zn)}Dt.style.border="none",Dt.style.display="inline-block";for(var vi in jt)jt.hasOwnProperty(vi)&&vi!=="appletOnLoad"&&Dt.setAttribute("data-param-"+vi,jt[vi]);pe&&Dt.setAttribute("data-param-fontscssurl",pe),fn.resize=function(){GGBAppletUtils.responsiveResize(Mt,jt)},window.addEventListener("resize",function(zt){fn.resize()});var We=typeof jt.appletOnLoad=="function"?jt.appletOnLoad:function(){};if(!an&&jt.width!==void 0){jt.hasOwnProperty("showSplash")||Dt.setAttribute("data-param-showSplash","false");var Fe=Mt.querySelector(".applet_scaler.prerender"),xe=Fe!==null;if(xe)var Ne=Fe.querySelector(".ggb_preview");else{var Ne=Nt(gn,yt,jt.borderColor,!1);Fe=document.createElement("div"),Fe.className="applet_scaler",Fe.style.position="relative",Fe.style.display="block",Fe.style.width=gn+"px",Fe.style.height=yt+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Fe,"66%"),Ce(Ee)>=5?(jt.appletOnLoad=function(zt){var qt=Mt.querySelector(".ggb_preview");qt&&qt.parentNode.removeChild(qt),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(Fe),window.GGBT_wsf_view&&$(window).trigger("resize"),We(zt)},xe||Fe.appendChild(Ne)):Dt.appendChild(Ne),Fe.appendChild(Dt),xe||Mt.appendChild(Fe),setTimeout(function(){fn.resize()},1)}else{var _e=document.createElement("div");_e.className="applet_scaler",_e.style.position="relative",_e.style.display="block",_e.appendChild(Dt),Mt.appendChild(_e),jt.appletOnLoad=function(zt){fn.resize(),We(zt)}}function be(zt,qt){qt&&typeof qt.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(zt,qt.appletOnLoad):renderGGBElement(zt),Zt("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",qt)}function tt(zt,qt){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:zt,params:qt}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(pn){be(pn.article,pn.params)}),html5AppletsToProcess=null)},Ce(Ee)<5&&(zt.className+=" geogebraweb")):be(zt,qt)}if(Dn){scriptLoadStarted=!0;for(var Xt=0;Xt<Dt.childNodes.length;Xt++){var Bt=Dt.childNodes[Xt].tagName;Bt==="TABLE"&&(Dt.removeChild(Dt.childNodes[Xt]),Xt--)}if(ggbHTML5LoadedScript!==null){var nn=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');nn!=null&&nn.parentNode.removeChild(nn)}var Tt=document.createElement("script"),bt=function(){tt(Dt,jt)};Tt.src=wt+te,ggbHTML5LoadedCodebaseIsWebSimple=ne,ggbHTML5LoadedCodebaseVersion=Ee,ggbHTML5LoadedScript=Tt.src,Zt("GeoGebra HTML5 codebase loaded: '"+wt+"'.",jt),!Ue&&(!Ze||Ze=="5.0")?(ne?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),bt()):wt.requirejs?__webpack_require__.e(7963).then(function(){var zt=[__webpack_require__(87963)];bt.apply(null,zt)}.bind(this)).catch(__webpack_require__.oe):(Tt.onload=bt,Mt.appendChild(Tt))}else tt(Dt,jt);jt.height=yt,jt.width=gn},gt=function(Mt,jt,an){var Dn=Nt(jt.width,jt.height,jt.borderColor,an),Dt=document.createElement("div");Dt.style.position="relative",Dt.style.display="block",Dt.style.width=jt.width+"px",Dt.style.height=jt.height+"px",Dt.className="applet_screenshot applet_scaler"+(an?" applet_screenshot_play":""),Dt.appendChild(Dn);var gn=GGBAppletUtils.getScale(jt,Mt,an);an?(Mt.appendChild(Ot()),window.GGBT_wsf_view||(Mt.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Dt,"66%"),Mt.appendChild(Dt),gn!==1&&!isNaN(gn)&&(GGBAppletUtils.scaleElement(Dt,gn),Dt.style.width=jt.width+"px",Dt.style.height=jt.height+"px",Dt.parentNode.style.width=jt.width*gn+"px",Dt.parentNode.style.height=jt.height*gn+"px"),fn.resize=function(){kt(Mt,Dn,Dt,an)},window.addEventListener("resize",function(yt){fn.resize()}),fn.resize()};function kt(Mt,jt,an,Dn){if(Mt.contains(jt)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Mt.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(Mt)}var Dt=GGBAppletUtils.getScale(we,Mt,Dn);an.parentNode!==null&&(!isNaN(Dt)&&Dt!==1?(GGBAppletUtils.scaleElement(an,Dt),an.parentNode.style.width=we.width*Dt+"px",an.parentNode.style.height=we.height*Dt+"px"):(GGBAppletUtils.scaleElement(an,1),an.parentNode.style.width=we.width+"px",an.parentNode.style.height=we.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(Mt),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}fn.onExitFullscreen=function(Mt,jt){jt.appendChild(Mt)};var Lt=function(Mt,jt,an,Dn){gt(Mt,jt,!0);for(var Dt=function(){var Zn=[];for(yt=0;yt<Mt.childNodes.length;yt++)Zn.push(Mt.childNodes[yt]);if(window.GGBT_wsf_view){var vi=window.GGBT_wsf_view.renderFullScreen(Mt,jt.id),We=document.getElementById("fullscreencontainer"),Fe=jQuery(Mt).find(".fullscreencontent");Fe.length>0?(vi.remove(),Fe.attr("id","fullscreencontent").show(),jQuery(We).append(Fe),window.dispatchEvent(new Event("resize"))):Ct(vi,jt,!1),window.GGBT_wsf_view.launchFullScreen(We)}else ut=Dn,Ct(Mt,jt,!1);if(!window.GGBT_wsf_view)for(yt=0;yt<Zn.length;yt++)Mt.removeChild(Zn[yt])},gn=Mt.getElementsByClassName("ggb_preview_play"),yt=0;yt<gn.length;yt++)gn[yt].addEventListener("click",Dt,!1),gn[yt].addEventListener("ontouchstart",Dt,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(Mt),Te()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},Ot=function(){var Mt=document.createElement("div");if(Mt.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var jt='.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");}',an=document.createElement("style");an.styleSheet?an.styleSheet.cssText=jt:an.appendChild(document.createTextNode(jt)),document.getElementsByTagName("head")[0].appendChild(an)}return Mt},Nt=function(Mt,jt,an,Dn){var Dt=document.createElement("div");Dt.className="ggb_preview",Dt.style.position="absolute",Dt.style.zIndex="90",Dt.style.width=Mt-2+"px",Dt.style.height=jt-2+"px",Dt.style.top="0px",Dt.style.left="0px",Dt.style.overflow="hidden",Dt.style.backgroundColor="white";var gn="lightgrey";an!==void 0&&(an==="none"?gn="transparent":gn=an),Dt.style.border="1px solid "+gn;var yt=document.createElement("img");if(yt.style.position="relative",yt.style.zIndex="1000",yt.style.top="-1px",yt.style.left="-1px",ue!==null&&yt.setAttribute("src",ue),yt.style.opacity=.7,se!==null){var Zn,vi,We;if(!Dn){Zn=document.createElement("img"),Zn.style.position="absolute",Zn.style.zIndex="1001",Zn.style.opacity=1,yt.style.opacity=.3,vi=360,vi>Mt/4*3&&(vi=Mt/4*3),We=vi/5.8,Zn.setAttribute("src",se),Zn.setAttribute("width",vi),Zn.setAttribute("height",We);var Fe=(Mt-vi)/2,xe=(jt-We)/2;Zn.style.left=Fe+"px",Zn.style.top=xe+"px",Dt.appendChild(Zn)}}return Dt.appendChild(yt),Dt},tn=function(Mt){return Mt=Mt.toLowerCase(),Mt==="html5"||Mt==="screenshot"?Mt:"html5"},st=["web","webSimple","web3d","tablet","tablet3d","phone"],He=function(Mt,jt){if(Ee=Mt,jt){Rt(Ee,!0);return}var an=!Ye;if(an){var Dn=Ce(Ee);!isNaN(Dn)&&Dn<4.4&&(an=!1)}var Dt,gn;window.location.protocol.substr(0,4)==="http"?Dt=window.location.protocol:Dt="http:";var yt=Ee.indexOf("//");yt>0?gn=Ee:yt===0?gn=Dt+Ee:gn="https://www.geogebra.org/apps/5.2.814.0/";for(var Zn in st)if(Ee.slice(st[Zn].length*-1)===st[Zn]||Ee.slice((st[Zn].length+1)*-1)===st[Zn]+"/"){Rt(gn,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&an&&!ve.is3D&&!ve.AV&&!ve.SV&&!ve.CV&&!ve.EV2&&!ve.CP&&!ve.PC&&!ve.DA&&!ve.FI&&!ve.PV&&!ot(we.showToolBar)&&!ot(we.showMenuBar)&&!ot(we.showAlgebraInput)&&!ot(we.enableRightClick)&&(!we.appName||we.appName=="classic")?gn+="webSimple/":gn+="web3d/",Rt(gn,!1)},Rt=function(Mt,jt){if(Mt.requirejs){wt=Mt;return}Mt.slice(-1)!=="/"&&(Mt+="/"),wt=Mt,jt===null&&(jt=Mt.indexOf("http")===-1),Ve=jt,te="web.nocache.js",ne=!1;var an=wt.split("/");an.length>1&&(!jt&&an[an.length-2]==="webSimple"?(te="webSimple.nocache.js",ne=!0):st.indexOf(an[an.length-2])>=0&&(te=an[an.length-2]+".nocache.js")),an=Mt.split("/"),Ee=an[an.length-3],Ee.substr(0,4)==="test"?Ee=Ee.substr(4,1)+"."+Ee.substr(5,1):(Ee.substr(0,3)==="war"||Ee.substr(0,4)==="beta")&&(Ee="5.0");var Dn=parseFloat(Ee);Dn!==NaN&&Dn<5&&Mt.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Dn+" is deprecated. Using version latest instead."),He("5.0",jt))},Zt=function(Mt,jt){window.console&&window.console.log&&(!jt||typeof jt.showLogging=="undefined"||jt.showLogging&&jt.showLogging!=="false")&&console.log(Mt)};we.material_id!==void 0?Ie(_t):_t();function _t(){var Mt=on;Ze!==null?Mt=Ze:parseFloat(Mt)<5&&(Mt="5.0"),He(Mt,!1),Ue!==null&&Rt(Ue,Ve),at=!0}return fn},GGBAppletUtils=function(){"use strict";function fn(){return window.GGBT_wsf_edit!==void 0}function on(at,Ze){Ze!=1?(at.style.transformOrigin="0% 0% 0px",at.style.webkitTransformOrigin="0% 0% 0px",at.style.transform="scale("+Ze+","+Ze+")",at.style.webkitTransform="scale("+Ze+","+Ze+")",at.style.maxWidth="initial",at.querySelector(".ggb_preview")!==null&&(at.querySelector(".ggb_preview").style.maxWidth="initial"),at.querySelectorAll(".ggb_preview img")[0]!==void 0&&(at.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),at.querySelectorAll(".ggb_preview img")[1]!==void 0&&(at.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(at.style.transform="none",at.style.webkitTransform="none")}function we(at,Ze,Ue,xt,nt,De){var wt=null;if(De!=null&&De!="")for(var Ve=at.parentNode;Ve!=null;)if((" "+Ve.className+" ").indexOf(" "+De+" ")>-1){wt=Ve;break}else Ve=Ve.parentNode;var ut=0,Ee=0,te=0,ne=0,ue=0,se=0,de=0;if(wt)ut=wt.offsetWidth,Ee=Math.max(xt?wt.offsetWidth:0,wt.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(ut=Math.min(window.innerWidth,document.documentElement.clientWidth),Ee=Math.min(window.innerHeight,document.documentElement.clientHeight),te=ut):(ut=window.innerWidth,Ee=window.innerHeight,te=window.innerWidth),at){var pe=at.getBoundingClientRect();pe.left>0&&pe.left<=ut&&(nt===void 0||!nt)&&(document.dir==="rtl"?(ue=ut-pe.width-pe.left,se=te<=480?10:30):(se=pe.left,ue=te<=480?10:30),ne=se+ue)}if(at&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var ye=at.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(ne=40,de=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(ne=0,de=40)}}return at&&((Ue===void 0||!Ue)&&Ze>0&&Ze+ne<ut?ut=Ze:ut-=ne,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Ue===void 0||!Ue)&&(Ee-=de)),{width:ut,height:Ee}}function ve(at,Ze,Ue,xt,nt){if(at.isScreenshoGenerator)return 1;var De=xt!==void 0&&xt,wt=at.noScaleMargin!=null&&at.noScaleMargin,Ve=function(ye){return ye&&ye!=="false"},ut=Ve(at.autoHeight),Ee=we(Ze,at.width,Ue,ut,De&&window.GGBT_wsf_view||wt,nt),te=parseInt(Ee.width),ne=at.width,ue=at.height;if(ne===void 0){var se=Ze.querySelector(".appletParameters");se&&(ne=se.offsetWidth,ue=se.offsetHeight)}var de=te/ne,pe=De?1:Ee.height/ue;return Ue!==void 0&&!Ue&&(de=Math.min(1,de),pe=Math.min(1,pe)),Math.min(de,pe)}function Ye(at,Ze,Ue){var xt=1,nt,De=!1;if(at.hasOwnProperty("allowUpscale")&&(De=at.allowUpscale),at.hasOwnProperty("scale")&&(xt=parseFloat(at.scale),(isNaN(xt)||xt===null||xt===0)&&(xt=1),xt>1&&(De=!0)),Ze&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(De=!0),!(at.hasOwnProperty("disableAutoScale")&&at.disableAutoScale))nt=ve(at,Ze,De,Ue,at.scaleContainerClass);else return xt;return De&&(!at.hasOwnProperty("scale")||xt===1)?nt:Math.min(xt,nt)}function dt(at){var Ze=Math.min(window.innerWidth,document.documentElement.clientWidth),Ue=Math.min(window.innerHeight,document.documentElement.clientHeight),xt=at.getBoundingClientRect(),nt=(Ze-xt.width)/2,De=(Ue-xt.height)/2;De<0&&(De=0),at.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(nt<40?at.style.left="40px":at.style.left=nt+"px",at.style.top=De+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(De<40?at.style.top="40px":at.style.top=De+"px",at.style.left=nt+"px")}function it(at,Ze){var Ue=at.querySelector(".appletParameters");if(Ue){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Ze.id!==Ue.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(at)}if(Ue.parentElement&&/fullscreen/.test(Ue.parentElement.className))return;var xt=Ye(Ze,at);fn()&&Ue.setAttribute("data-param-scale",xt);for(var nt=null,De=0;De<at.childNodes.length;De++)if(at.childNodes[De].className!==void 0&&at.childNodes[De].className.match(/^applet_scaler/)){nt=at.childNodes[De];break}if(nt!==null&&nt.querySelector(".noscale")!==null)return;var wt=Ze.id!==void 0?Ze.id:"ggbApplet",Ve=window[wt];(Ve==null||!Ve.recalculateEnvironments)&&nt!==null&&!nt.className.match(/fullscreen/)&&(nt.parentNode.style.transform="",!isNaN(xt)&&xt!==1?(nt.parentNode.style.width=Ze.width*xt+"px",nt.parentNode.style.height=Ze.height*xt+"px",on(nt,xt)):(on(nt,1),nt.parentNode.style.width=Ze.width+"px",nt.parentNode.style.height=Ze.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&dt(at),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(Ue).parents(".content-added-content"))}}return{responsiveResize:it,isFlexibleWorksheetEditor:fn,positionCenter:dt,getScale:Ye,scaleElement:on}}();__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 fn=n.location.search;return fn.indexOf(J)!=-1||fn.indexOf(K)!=-1}function q(fn,on){}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(fn){var on=s[L].bindings;s[L].bindings=function(){for(var we=on?on():{},ve=fn[webModule.__softPermutationId],Ye=O;Ye<ve.length;Ye++){var dt=ve[Ye];we[dt[O]]=dt[P]}return we}};var t;function u(){return v(),t}function v(){if(!t){var fn=o.createElement(Q);if(fn.id=L,fn.style.cssText=R+S,fn.tabIndex=-1,o.body.appendChild(fn),t=fn.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var on=document.compatMode==U?V:W;t.write(on+X),t.close()}}}function w(fn){function on(ve){function Ye(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var dt=Ye();if(dt){ve();return}function it(){if(!dt){if(!Ye())return;dt=!0,ve(),o.removeEventListener&&o.removeEventListener(Z,it,!1),at&&clearInterval(at)}}o.addEventListener&&o.addEventListener(Z,it,!1);var at=setInterval(function(){it()},$)}function we(ve){var Ye=u(),dt=Ye.body,it=Ye.createElement(_);it.language=ab,it.crossOrigin=W,it.src=ve,webModule.__errFn&&(it.onerror=function(){webModule.__errFn(L,new Error(bb+ve))}),dt.appendChild(it)}on(function(){we(fn)})}webModule.__startLoadingFragment=function(fn){return C(fn)},webModule.__installRunAsyncCode=function(fn){var on=u(),we=on.body,ve=on.createElement(_);ve.language=ab,ve.text=fn,we.appendChild(ve),we.removeChild(ve)};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(fn){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(fn){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(fn){var on=c[fn];return on==null?null:on},r=d,webModule.__errFn=e}function B(){function fn(at){var Ze=at.lastIndexOf(rb);Ze==-1&&(Ze=at.length);var Ue=at.indexOf(sb);Ue==-1&&(Ue=at.length);var xt=at.lastIndexOf(tb,Math.min(Ue,Ze));return xt>=O?at.substring(O,xt+P):W}function on(at){if(!at.match(/^\w+:\/\//)){var Ze=o.createElement(ub);Ze.src=at+vb,at=fn(Ze.src)}return at}function we(){var at=__gwt_getMetaProperty(wb);return at!=null?at:W}function ve(){for(var at=o.getElementsByTagName(_),Ze=O;Ze<at.length;++Ze)if(at[Ze].src.indexOf(xb)!=-1)return fn(at[Ze].src);return W}function Ye(){var at=o.getElementsByTagName(yb);return at.length>O?at[at.length-P].href:W}function dt(){var at=o.location;return at.href==at.protocol+zb+at.host+at.pathname+at.search+at.hash}var it=we();return it==W&&(it=ve()),it==W&&(it=Ye()),it==W&&dt()&&(it=fn(o.location.href)),it=on(it),it}function C(fn){return fn.match(/^\//)||fn.match(/^[a-zA-Z]+:\/\//)?fn:webModule.__moduleBase+fn}function D(){var fn=[],on=O,we=[],ve=[];function Ye(at){var Ze=ve[at](),Ue=we[at];if(Ze in Ue)return Ze;var xt=[];for(var nt in Ue)xt[Ue[nt]]=nt;throw r&&r(at,xt,Ze),null}if(__gwt_isKnownPropertyValue=function(at,Ze){return Ze in we[at]},webModule.__getPropMap=function(){var at={};for(var Ze in we)we.hasOwnProperty(Ze)&&(at[Ze]=Ye(Ze));return at},webModule.__computePropValue=Ye,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var dt;try{dt=Cb;var it=dt.indexOf(Db);it!=-1&&(on=parseInt(dt.substring(it+P),$),dt=dt.substring(O,it))}catch(at){}return webModule.__softPermutationId=on,C(dt+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})()},46699:function(fn,on,we){"use strict";we.d(on,{Ax:function(){return it},Ds:function(){return at},KI:function(){return Ue},SI:function(){return dt},f1:function(){return Ye}});var ve=we(346);function Ye(xt){let nt=!0;if(xt.length>0){for(let De=0;De<xt.length;De++)if(xt[De].compile_success==0||!xt[De].compile_success){nt=!1;break}}else nt=!1;return nt}function dt(xt,nt=""){let De=[];for(let wt=0;wt<xt.length;wt++){let Ve=xt[wt],ut=nt?`${nt}/${Ve.name}`:`${Ve.name}`;De.push({title:Ve.name,type:Ve.type,isLeaf:Ve.type!=="tree",key:ut})}return De}function it(xt,nt,De){for(let wt=0;wt<xt.length;wt++){let Ve=xt[wt];if(Ve.key===nt){Ve.children=De;break}Ve.children&&it(Ve.children,nt,De)}return xt}function at(xt,nt,De){let wt;return function(){let Ve=this,ut=arguments,Ee=function(){wt=null,De||xt.apply(Ve,ut)},te=De&&!wt;clearTimeout(wt),wt=setTimeout(Ee,nt),te&&xt.apply(Ve,ut)}}const Ze=!0,Ue=ve.Z.API_SERVER},54650:function(fn,on,we){"use strict";we.d(on,{Z:function(){return ut}});var ve=we(59301),Ye=we(6767),dt=we(37568),it={codeBox:"codeBox___WpkVl"},at=we(92310),Ze=we.n(at),Ue=Object.defineProperty,xt=(Ee,te,ne)=>te in Ee?Ue(Ee,te,{enumerable:!0,configurable:!0,writable:!0,value:ne}):Ee[te]=ne,nt=(Ee,te,ne)=>xt(Ee,typeof te!="symbol"?te+"":te,ne),De=(Ee,te,ne)=>new Promise((ue,se)=>{var de=Ce=>{try{ye(ne.next(Ce))}catch(ze){se(ze)}},pe=Ce=>{try{ye(ne.throw(Ce))}catch(ze){se(ze)}},ye=Ce=>Ce.done?ue(Ce.value):Promise.resolve(Ce.value).then(de,pe);ye((ne=ne.apply(Ee,te)).next())});class wt extends ve.Component{constructor(te){super(te),nt(this,"canvas"),nt(this,"randomNum",(ne,ue)=>Math.floor(Math.random()*(ue-ne)+ne)),nt(this,"drawPic",()=>{this.randomCode()}),nt(this,"reloadPic",()=>{this.drawPic()}),nt(this,"changeCode",ne=>{console.log(ne.target.value,222),this.setState({value:ne.target.value,showError:!1})}),nt(this,"onVerify",()=>{let ne;return this.state.value.toLowerCase()!==""&&this.state.value.toLowerCase()!==this.state.code.toLowerCase()?(ne=!0,Ye.ZP.error("\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u9A8C\u8BC1\u7801"),this.reloadPic()):this.state.value.toLowerCase()===""?(ne=!0,Ye.ZP.error("\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801")):this.state.value.toLowerCase()===this.state.code.toLowerCase()&&(ne=!1),this.setState({showError:ne}),ne}),this.canvas=ve.createRef(),this.state={value:"",code:"",codeLength:4,fontSizeMin:20,fontSizeMax:22,backgroundColorMin:240,backgroundColorMax:250,colorMin:10,colorMax:20,lineColorMin:40,lineColorMax:180,contentWidth:96,contentHeight:38,showError:!1}}componentDidMount(){this.drawPic()}randomColor(te,ne){const ue=this.randomNum(te,ne),se=this.randomNum(te,ne),de=this.randomNum(te,ne);return`rgb(${ue}, ${se}, ${de})`}drawText(te,ne,ue){te.fillStyle=this.randomColor(this.state.colorMin,this.state.colorMax);const se=this.randomNum(this.state.fontSizeMin,this.state.fontSizeMax);te.font=se+"px SimHei";const de=10,pe=(this.state.contentWidth-40)/(this.state.code.length-1);let ye=de;ue>0&&(ye=de+ue*pe);let Ce=this.randomNum(this.state.fontSizeMax,this.state.contentHeight-5);se>40&&(Ce=40);const ze=this.randomNum(-10,10);te.translate(ye,Ce),te.rotate(ze*Math.PI/180),te.fillText(ne,0,0),te.rotate(-ze*Math.PI/180),te.translate(-ye,-Ce)}drawLine(te){for(let ne=0;ne<1;ne++)te.strokeStyle=this.randomColor(this.state.lineColorMin,this.state.lineColorMax),te.beginPath(),te.moveTo(this.randomNum(0,this.state.contentWidth),this.randomNum(0,this.state.contentHeight)),te.lineTo(this.randomNum(0,this.state.contentWidth),this.randomNum(0,this.state.contentHeight)),te.stroke()}drawDot(te){for(let ne=0;ne<100;ne++)te.fillStyle=this.randomColor(0,255),te.beginPath(),te.arc(this.randomNum(0,this.state.contentWidth),this.randomNum(0,this.state.contentHeight),1,0,2*Math.PI),te.fill()}randomCode(){let te="";const ne="QWERTYUPLKJHGFDSAZXCVBNMqwertyupkjhgfdsazxcvbnm1234567890";for(let ue=0;ue<this.state.codeLength;ue++){const se=Math.floor(Math.random()*57);te+=ne[se]}this.setState({code:te},()=>{const se=this.canvas.current.getContext("2d");se.textBaseline="bottom",se.fillStyle=this.randomColor(this.state.backgroundColorMin,this.state.backgroundColorMax),se.fillRect(0,0,this.state.contentWidth,this.state.contentHeight);for(let de=0;de<this.state.code.length;de++)this.drawText(se,this.state.code[de],de);this.drawLine(se),this.drawDot(se)})}render(){const{className:te,width:ne=300}=this.props;return ve.createElement("div",{className:Ze()(it.codeBox,te),style:{width:ne}},ve.createElement("aside",null,ve.createElement(dt.default,{value:this.state.value,onChange:this.changeCode,placeholder:"\u8BF7\u8F93\u5165\u56FE\u7247\u4E2D\u7684\u9A8C\u8BC1\u7801"})),ve.createElement("div",null,ve.createElement("canvas",{onClick:this.reloadPic,ref:this.canvas,width:"100",height:"30"}),ve.createElement("div",{className:"current",onClick:this.reloadPic},"\u770B\u4E0D\u6E05\uFF1F\u6362\u4E00\u5F20")))}}const Ve=(Ee,te)=>{let ne;Modal.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:React.createElement("div",null,React.createElement("p",null,te),React.createElement(wt,{ref:ue=>ne=ue})),onOk:()=>De(void 0,null,function*(){if(ne.onVerify())return Promise.reject();Ee()})})};var ut=wt},94361:function(fn,on,we){"use strict";we.d(on,{Z:function(){return Ze}});var ve=we(37639),Ye={text:"text___FxbAX",wrap:"wrap___UlBQ1",contact:"contact____pUDq",img:"img___BapAv"},dt=we(32637),it=we(59301),Ze=({type:Ue,style:xt})=>{const nt=it.createElement("div",{className:Ye.wrap,onClick:De=>{De.preventDefault(),De.stopPropagation()}},it.createElement("p",null,Ue==="shixun"||Ue==="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",it.createElement("br",null),"\u6839\u636E\u5E73\u53F0\u4F7F\u7528\u89C4\u5219\uFF0C\u9700\u8981\u6388\u6743\u624D\u80FD\u4F7F\u7528\u3002",Ue==="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"),it.createElement("div",{className:Ye.contact},it.createElement("div",{className:Ye.img},it.createElement("img",{src:dt,width:"124px",height:"124px"})),it.createElement("div",{className:"tc font14 mt10",style:{color:"#777A93"}},"\u626B\u4E00\u626B\uFF0C\u83B7\u53D6\u6388\u6743\u7801")));return it.createElement(ve.Z,{content:nt},it.createElement("span",{className:Ye.text,style:xt},"\u9AD8\u6D88\u8017"))}},9507:function(fn,on,we){"use strict";we.d(on,{Z:function(){return wt}});var ve=we(59301),Ye={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},dt=we(92310),it=we.n(dt),at=we(29787),Ze=we(2859),Ue=we(38986),xt=we(51257),nt=(Ve,ut,Ee)=>new Promise((te,ne)=>{var ue=pe=>{try{de(Ee.next(pe))}catch(ye){ne(ye)}},se=pe=>{try{de(Ee.throw(pe))}catch(ye){ne(ye)}},de=pe=>pe.done?te(pe.value):Promise.resolve(pe.value).then(ue,se);de((Ee=Ee.apply(Ve,ut)).next())}),wt=({data:Ve,className:ut,fullWidth:Ee,style:te={},onClose:ne,onOk:ue,showFullTools:se,noAssociationId:de})=>{const pe=(0,ve.useRef)(null),ye=(0,ve.useRef)(null),Ce=(0,ve.useRef)(null),ze=(0,ve.useRef)(null),[Te,Ie]=(0,ve.useState)(!1),[Oe,Re]=(0,ve.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,ve.useEffect)(()=>(Ce.current||(Ce.current=document.createElement("style"),document.head.appendChild(Ce.current)),Ve!=null&&Ve.visible?(document.body.setAttribute("data-custom","y-hidden"),Ce.current.innerHTML=" html { overflow-y: hidden; }",Ve!=null&&Ve.src&&rt()):(document.body.removeAttribute("data-custom"),Ce.current&&(document.head.removeChild(Ce.current),Ce.current=null)),()=>{document.body.removeAttribute("data-custom"),Ce.current&&(document.head.removeChild(Ce.current),Ce.current=null)}),[Ve==null?void 0:Ve.visible]);const rt=()=>nt(void 0,null,function*(){Ie(!0),Re("\u6B63\u5728\u52A0\u8F7D\u4E2D");const kt=yield(0,xt.ZJ)(Ve==null?void 0:Ve.src);pe.current.src="",pe.current.src=kt,pe.current.onload=function(){gt()},Ie(!1),Re("")}),ot=kt=>nt(void 0,null,function*(){Ie(!0),Re("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Lt=yield(0,Ue.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Ve.title,file:kt.dataUrl}});Lt!=null&&Lt.id&&!de?(yield(0,Ue.ZP)(`/api/attachments/${Ve.id}/add_subitem.json`,{method:"post",body:{subitem_id:Lt==null?void 0:Lt.id,settings:JSON.stringify(kt.state)}})).status===0&&ue():Lt!=null&&Lt.id&&ue(Lt),Ie(!1),Re("")}),Ct=()=>{const kt=document.querySelector('a[href="https://markerjs.com/"]');kt&&kt.parentNode&&(kt.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(Ot=>{const Nt=document.querySelector(Ot.name);Nt&&Nt.setAttribute("title",Ot.title)})},gt=()=>{ye.current=new Ze.hP(pe.current),ye.current.targetRoot=ze.current,ye.current.addEventListener("render",ot),ye.current.addEventListener("beforeclose",ne),se&&(ye.current.availableMarkerTypes=ye.current.ALL_MARKER_TYPES,ye.current.uiStyleSettings.redoButtonVisible=!0,ye.current.uiStyleSettings.notesButtonVisible=!0,ye.current.uiStyleSettings.zoomButtonVisible=!0,ye.current.uiStyleSettings.zoomOutButtonVisible=!0,ye.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=ye.current.uiStyleSettings,ye.current.show(),Ve!=null&&Ve.snapshotData&&ye.current.restoreState(Ve.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Ct()},300)};return ve.createElement(ve.Fragment,null,(Ve==null?void 0:Ve.visible)&&ve.createElement(at.Z,{spinning:Te,tip:Oe,style:{position:"absolute",width:"100vw"}},ve.createElement("div",{ref:ze,className:it()(Ye.imageDimensions,ut,Ee?Ye.fullWidth:""),style:te},ve.createElement("img",{className:Ye.img,ref:pe}))))}},76562:function(fn,on,we){"use strict";var ve=we(59301),Ye=we(77019),dt=we(5269),it=we(20554),at=we(99571),Ze=we(76902),Ue=we(99587),xt=we(48136),nt=we(59301);const De=(0,ve.forwardRef)(({callback:wt,showSaveButton:Ve,value:ut=""},Ee)=>{const te=(0,ve.useRef)(),ne=[{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 "}]}]}],ue=[{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}`}]}]}],se=ye=>{te.current.setValue(te.current.getValue()+" "+ye.value+" ")},de=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:nt.createElement(Ye.Z,{className:Ue.Z.lists,gutter:[10,10]},ne.map((ye,Ce)=>nt.createElement(dt.Z,{flex:"110px",className:Ue.Z.item},nt.createElement("div",null,nt.createElement(Ze.Z,{value:`$$${ye.value}$$`}),ye.name),nt.createElement("div",{className:Ue.Z.children},ye.children.map((ze,Te)=>nt.createElement("div",{key:Te},nt.createElement("h1",null,ze.name),nt.createElement(Ye.Z,{gutter:[10,10]},ze.data.map((Ie,Oe)=>nt.createElement(dt.Z,{key:Oe,onClick:()=>se(Ie),className:Ue.Z.diamond},nt.createElement(Ze.Z,{value:"`$$"+Ie.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:nt.createElement(Ye.Z,{className:Ue.Z.lists,gutter:[10,10]},ue.map((ye,Ce)=>nt.createElement(dt.Z,{flex:"110px",className:Ue.Z.item},nt.createElement("div",null,nt.createElement(Ze.Z,{value:"`$$"+ye.value+"$$`"}),ye.name),nt.createElement("div",{className:Ue.Z.children},ye.children.map((ze,Te)=>nt.createElement("div",{key:Te},ze.name&&nt.createElement("h1",null,ze.name),nt.createElement(Ye.Z,{gutter:[10,10]},ze.data.map((Ie,Oe)=>nt.createElement(dt.Z,{key:Oe,onClick:()=>se(Ie),className:Ue.Z.diamond},nt.createElement(Ze.Z,{value:"`$$"+Ie.value+"$$`"}))))))))))}],pe=()=>{var ye=document.createElement("div");ye.innerHTML=te.current.getValue();var Ce=ye.innerText;return wt&&wt(Ce),Ce};return(0,ve.useImperativeHandle)(Ee,()=>({getData:pe})),nt.createElement("div",{className:Ue.Z.mathWrap},nt.createElement(it.default,{defaultActiveKey:"1",items:de}),nt.createElement("math-field",{locale:"zh_cn",className:Ue.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:te,style:{width:800,marginTop:30,fontSize:18}},ut||""),Ve&&nt.createElement("div",{className:Ue.Z.button},nt.createElement(at.ZP,{size:"large",onClick:pe,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});on.Z=De},28426:function(fn,on,we){"use strict";var ve=we(59301),Ye=we(93314),dt=we(99571),it=Object.defineProperty,at=Object.defineProperties,Ze=Object.getOwnPropertyDescriptors,Ue=Object.getOwnPropertySymbols,xt=Object.prototype.hasOwnProperty,nt=Object.prototype.propertyIsEnumerable,De=(Ee,te,ne)=>te in Ee?it(Ee,te,{enumerable:!0,configurable:!0,writable:!0,value:ne}):Ee[te]=ne,wt=(Ee,te)=>{for(var ne in te||(te={}))xt.call(te,ne)&&De(Ee,ne,te[ne]);if(Ue)for(var ne of Ue(te))nt.call(te,ne)&&De(Ee,ne,te[ne]);return Ee},Ve=(Ee,te)=>at(Ee,Ze(te));const ut=({img:Ee,buttonProps:te={},styles:ne={},customText:ue,ButtonText:se,ButtonClick:de,Buttonclass:pe,ButtonTwo:ye,imgStyles:Ce,loading:ze=!1,className:Te=""})=>ve.createElement("section",{className:`tc animated fadeIn ${Te}`,style:wt({color:"#999",margin:"100px auto",visibility:ze?"hidden":"visible"},ne)},ve.createElement("img",{src:Ee||Ye,style:Ve(wt({},Ce),{pointerEvents:"none",userSelect:"none"})}),ve.createElement("p",{className:"mt20 font14"},ue||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),se&&ve.createElement(dt.ZP,wt({className:pe,onClick:de},te),se),ye&&ye);on.Z=ut},43155:function(fn,on,we){"use strict";we.d(on,{Q:function(){return Ze}});var ve=we(59301),Ye=we(82326),dt=we(47889),it=we(71051),at=we(59301),Ze=(xt=>(xt[xt.Number=1]="Number",xt[xt.Percent=2]="Percent",xt))(Ze||{});const Ue=({value:xt,onChange:nt,disabled:De,hidePercentOption:wt=!1,percentType:Ve="select"})=>{const ut=(0,ve.useMemo)(()=>wt?1:2,[wt]),[Ee,te]=(0,ve.useState)(ut);console.log(Ee);const ne=se=>xt.type===1?`${se}\u5206`:`${se}%`,ue=(0,ve.useCallback)(se=>{if(Ee===1){const de=se.replace("\u5206","");return isNaN(parseInt(de,10))?0:de}else return se.replace("%","")},[Ee]);return(0,ve.useEffect)(()=>{te(xt.type)},[xt]),at.createElement("div",{style:{display:"flex",alignItems:"center"}},Ve=="select"&&at.createElement(Ye.default,{size:"large",onChange:se=>{te(se),nt({type:se,inputValue:se===1?5:20})},value:Ee||ut,style:{width:100},options:wt?[{label:"\u5206\u503C",value:1}]:[{label:"\u767E\u5206\u6BD4",value:2},{label:"\u5206\u503C",value:1}],disabled:De}),Ve=="radio"&&at.createElement(dt.ZP.Group,{size:"large",onChange:se=>{const de=se.target.value;te(de),nt({type:de,inputValue:de===1?5:20})},value:Ee||ut,disabled:De},!wt&&at.createElement(dt.ZP,{value:2,style:{marginRight:"50px"}},"\u767E\u5206\u6BD4\u6263\u5206"),at.createElement(dt.ZP,{value:1},"\u56FA\u5B9A\u5206\u503C")),Ve=="radio"&&at.createElement("div",{style:{marginRight:"10px",color:"#000000"}},xt.type==2?"\u6263\u9664\u8865\u4EA4\u9636\u6BB5\u5F97\u5206\u7684":"\u6263\u9664\u603B\u6210\u7EE9\u7684"),at.createElement(it.Z,{size:"large",disabled:De,value:xt.inputValue,style:{width:"120px"},parser:ue,addonAfter:xt.type===1?"\u5206":"%",max:Ee===2?100:Number.MAX_SAFE_INTEGER,min:0,precision:0,onChange:se=>{nt({type:Ee,inputValue:se})}}),Ve=="radio"&&xt.type==2&&at.createElement("div",{style:{marginLeft:"10px",color:"#000000"}},"\u5206\u6570"))};on.Z=Ue},45677:function(fn,on,we){"use strict";we.d(on,{Z:function(){return pe}});var ve=we(59301),Ye={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},dt=we(99571),it=we(70557),at=we(75975),Ze=we(25399),Ue=we(51257),xt=we(81722),nt=we(28426),De=we(346),wt=we(44203),Ve=we(59301),ut=Object.defineProperty,Ee=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,ue=(ye,Ce,ze)=>Ce in ye?ut(ye,Ce,{enumerable:!0,configurable:!0,writable:!0,value:ze}):ye[Ce]=ze,se=(ye,Ce)=>{for(var ze in Ce||(Ce={}))te.call(Ce,ze)&&ue(ye,ze,Ce[ze]);if(Ee)for(var ze of Ee(Ce))ne.call(Ce,ze)&&ue(ye,ze,Ce[ze]);return ye},de=(ye,Ce,ze)=>new Promise((Te,Ie)=>{var Oe=ot=>{try{rt(ze.next(ot))}catch(Ct){Ie(Ct)}},Re=ot=>{try{rt(ze.throw(ot))}catch(Ct){Ie(Ct)}},rt=ot=>ot.done?Te(ot.value):Promise.resolve(ot.value).then(Oe,Re);rt((ze=ze.apply(ye,Ce)).next())}),pe=({editOffice:ye="view",data:Ce,issaver:ze,onSaver:Te,theme:Ie,type:Oe,filename:Re,monacoEditor:rt,className:ot,style:Ct,close:gt,onClose:kt,hasMask:Lt,disabledDownload:Ot,onImgDimensions:Nt,showNodata:tn,recordInfo:st})=>{const[He,Rt]=(0,ve.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[Zt,_t]=(0,ve.useState)(""),[Mt,jt]=(0,ve.useState)(),an=window.ENV==="build"?"/react/build":"",Dn=location.host.startsWith("localhost")?De.Z.PROXY_SERVER:De.Z.API_SERVER,gn=10*(1024*1024),yt=(0,ve.useRef)();Ce!=null&&Ce.startsWith("/api")&&Oe!=="txt"&&(Ce=De.Z.API_SERVER+Ce);const Zn=Ne=>Ne.substring(Ne.lastIndexOf("/")+1).split(".").pop();Re&&rt&&(rt.filename=Re),(0,ve.useEffect)(()=>{var Ne,_e;const be=(_e=(Ne=document.cookie)==null?void 0:Ne.replace(/\s/g,""))==null?void 0:_e.split(";");be==null||be.map(tt=>{let Xt=tt.split("=");Xt[0]==="_educoder_session"&&_t(Xt[1])})},[]),(0,ve.useEffect)(()=>{Oe==="office"&&(Ce.indexOf("bigfilescdn.")>-1||Ce.indexOf("bigfiles1")>-1?jt({url:Ce,fileType:Zn(Ce),model:Ce.indexOf("model=edit")?"edit":"view"}):We())},[Oe,Ce]);function vi(Ne){return de(this,null,function*(){Ne.data.type==="pdfdata"&&(Te(Ne.data.data),window.removeEventListener("message",vi,!1)),console.log("mess---:",Ne.data)})}const We=()=>de(void 0,null,function*(){console.log("data:",Ce);let Ne=Ce;Ce.startsWith("http")||(Ne=location.origin+Ne);let _e=new URL(Ne).pathname.split("/").pop();const be=yield(0,xt.gJ)({attachment_id:_e});be.url=Dn+be.url,jt(be)}),Fe=()=>{if(Ce.startsWith("http")||Ce.startsWith("blob:")){xe();return}(0,Ue.Sv)(Re||"educoder",Ce,Re)},xe=()=>{st&&(0,wt.fc)({id:st==null?void 0:st.id,watch_type:1,course_id:st==null?void 0:st.course_id}),(0,Ue.Nd)(Re||"educoder",decodeURIComponent(Ce))};return Ve.createElement("div",{style:se({},Ct||{}),className:`${Lt&&Ye.bgBlack} ${Oe?Ye.wrp:"hide"}`},gt&&Ve.createElement("div",{className:Ye.close,ref:yt},!!Nt&&Ve.createElement(Ze.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>yt.current},Ve.createElement("span",{onClick:()=>{kt(),Nt()}},Ve.createElement("i",{className:"icon-yulanpizhu"}))),!Ot&&Ve.createElement(Ze.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>yt.current},Ve.createElement("span",{onClick:xe},Ve.createElement("i",{className:"icon-quxiaozhiding"}))),ze&&Ve.createElement(Ze.Z,{title:"\u4FDD\u5B58pdf\u5E76\u9000\u51FA",getPopupContainer:()=>yt.current},Ve.createElement("span",{className:"",onClick:()=>{const Ne=document.getElementById("pdfiframe");window.addEventListener("message",vi,!1),setTimeout(()=>{Ne.contentWindow.postMessage("getData","*")},300)}},Ve.createElement("i",{className:"icon-baocun"}))),Ve.createElement(Ze.Z,{title:"\u5173\u95ED",getPopupContainer:()=>yt.current},Ve.createElement("span",{className:"",onClick:()=>{kt()}},Ve.createElement("i",{className:"icon-guanbi1"})))),Ve.createElement("div",{className:`${Ye[ot]} ${ot} ${Ye.monaco} ${Oe==="txt"?"show":"hide"}`},Oe==="txt"&&Ve.createElement(Ve.Fragment,null,Ve.createElement(at.ZP,se({},rt)))),Oe==="audio"&&Ve.createElement("audio",{src:`${(Ce==null?void 0:Ce.indexOf("http://"))>-1||(Ce==null?void 0:Ce.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${Ce}`,autoPlay:!0}),Oe==="video"&&Ve.createElement(Ve.Fragment,null,(Ce==null?void 0:Ce.indexOf("http"))>-1?Ve.createElement("video",{controls:!0,src:`${Ce}`,autoPlay:!0}):Ve.createElement("video",{controls:!0,src:`data:video/mp4;base64,${Ce}`,autoPlay:!0})),Oe==="office"&&Mt&&Ve.createElement("iframe",{src:`${an}/office.html?key=${Mt.key}&url=${btoa(Mt.url)}&callbackUrl=${Dn+(Mt.callbackUrl||"")}&fileType=${Mt.fileType}&title=${Mt.title||""}&model=${ye}&officeServer=${De.Z.ONLYOFFICE}&disabledDownload=${!!Ot}`}),Oe==="html"&&Ve.createElement("iframe",{src:Ce+"&disposition=inline"}),Oe==="pdf"&&Ve.createElement("iframe",{id:"pdfiframe",src:`${an}/js/pdfview/index.html?filename=${Re||"educoder.pdf"}&url=${encodeURIComponent(Ce)}&disabledDownload=${!!Ot}&model=${ye}`}),Oe==="image"&&Ve.createElement("img",{src:`${(Ce==null?void 0:Ce.indexOf("http://"))>-1||(Ce==null?void 0:Ce.indexOf("https://"))>-1?"":"data:image/png;base64,"}${Ce}`}),(Oe==="other"||Oe==="download")&&Ve.createElement(Ve.Fragment,null,tn?Ve.createElement(nt.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:Ve.createElement(dt.ZP,{icon:Ve.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:Fe,disabled:Ot},"\u4E0B\u8F7D")}):Ve.createElement(dt.ZP,{type:"primary",size:"middle",onClick:Fe,disabled:Ot},Ve.createElement(it.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")))}},76902:function(fn,on,we){"use strict";we.d(on,{z:function(){return Ie},Z:function(){return Oe}});var ve=we(59301),Ye=we(8944),dt=we(81428),it=we(64018),at=we(79710),Ze=we(346),Ue=we(51257),xt=we(15342),nt=we(1012),De=we(45677),wt=we(59301),ut=({html:Re})=>{const rt=(0,ve.useRef)(null),ot=(0,ve.useRef)(null),Ct=`.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 56px !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,ve.useEffect)(()=>{const gt=rt.current.attachShadow({mode:"open"});ot.current=document.createElement("div"),ot.current.className="markdown-body",ot.current.innerHTML=Re,gt.appendChild(ot.current);const kt=document.createElement("style");return kt.textContent=Ct,gt.appendChild(kt),()=>{gt.innerHTML=""}},[]),(0,ve.useEffect)(()=>{ot.current&&(ot.current.innerHTML=Re)},[Re]),wt.createElement("div",{ref:rt})};function Ee(Re){const rt=["onabort","onanimationend","onanimationiteration","onanimationstart","onauxclick","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextmenu","oncopy","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","ongotpointercapture","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onload","onloadeddata","onloadedmetadata","onloadstart","onlostpointercapture","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","onpaste","onpause","onplay","onplaying","onpointercancel","onpointerdown","onpointerenter","onpointerleave","onpointermove","onpointerout","onpointerover","onpointerup","onprogress","onratechange","onreset","onresize","onscroll","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onsubmit","onsuspend","ontimeupdate","ontoggle","ontouchcancel","ontouchend","ontouchmove","ontouchstart","ontransitionend","onvolumechange","onwaiting","onwheel"],ot=new RegExp(`\\b(${rt.join("|")})\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s>]*)`,"gi");return Re.replace(ot,"").trim()}var te=Object.defineProperty,ne=Object.getOwnPropertySymbols,ue=Object.prototype.hasOwnProperty,se=Object.prototype.propertyIsEnumerable,de=(Re,rt,ot)=>rt in Re?te(Re,rt,{enumerable:!0,configurable:!0,writable:!0,value:ot}):Re[rt]=ot,pe=(Re,rt)=>{for(var ot in rt||(rt={}))ue.call(rt,ot)&&de(Re,ot,rt[ot]);if(ne)for(var ot of ne(rt))se.call(rt,ot)&&de(Re,ot,rt[ot]);return Re};const ye="@\u2581\u2581@",Ce="@\u2581@",ze=/<pre[^>]*>/g;function Te(Re){let rt=document.createElement("div");return rt.innerHTML=Re,rt.childNodes.length===0?"":rt.childNodes[0].nodeValue}const Ie=(Re,rt)=>{Re=Re||"";const ot=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Ct=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,gt=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,kt=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return rt?Re.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(ot,(Lt,Ot,Nt,tn,st,He,Rt)=>{const Zt=Ot||tn||He,_t=Nt||st||Rt||"?";return Ze.Z.API_SERVER+"/api/attachments/"+Zt+_t+"&t="+(0,Ue.Jn)(Zt,Date.now())+(Lt.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(Re=Re.replace(kt,(Lt,Ot,Nt,tn,st,He,Rt)=>{const Zt=Ot||tn||He,_t=Nt||st||Rt||"?";return Ze.Z.API_SERVER+"/attachments/download/"+Zt+_t+"&t="+(0,Ue.Jn)(Zt,Date.now())+(Lt.indexOf(")")>-1?")":"&")}).replace(ot,(Lt,Ot,Nt,tn,st,He,Rt)=>{const Zt=Ot||tn||He,_t=Nt||st||Rt||"?";return Ze.Z.API_SERVER+"/api/attachments/"+Zt+_t+"&t="+(0,Ue.Jn)(Zt,Date.now())+(Lt.indexOf(")")>-1?")":"&")}).replace(Ct,(Lt,Ot,Nt,tn,st)=>{const He=Ot||tn,Rt=Nt||st||"";return'"'+Ze.Z.API_SERVER+"/api/attachments/"+He+Rt+He+Rt+"&t="+(0,Ue.Jn)(He,Date.now())}).replace(gt,(Lt,Ot,Nt,tn,st)=>{const He=Ot||tn,Rt=Nt||st||"";return"("+Ze.Z.API_SERVER+"/files/uploads/"+He+Rt+He+Rt+"&t="+(0,Ue.Jn)(He,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,`
`),Re)};var Oe=({value:Re="",className:rt,showTextOnly:ot,showLines:Ct,style:gt={},stylesPrev:kt={},highlightKeywords:Lt,showProgramFill:Ot,isProgramFill:Nt,disabledFill:tn=!1,programFillValue:st,onFillChange:He=_t=>{},onFillBlur:Rt=()=>{},onFillFocus:Zt=()=>{}})=>{let _t=Ee(String(Re||""));const[Mt,jt]=(0,ve.useState)(""),[an,Dn]=(0,ve.useState)("office"),[Dt,gn]=(0,ve.useState)([]),yt=(0,ve.useRef)("a"+(0,nt.Z)()),Zn={},vi=bt=>/<style[\s\S]*?>/i.test(bt||""),We=(bt,zt,qt)=>{const pn=document.createElement(bt===Ce?"input":"textarea");pn.style.width="100%",pn.style.height=bt===Ce?"40px":"151px",pn.rows=5,pn.spellcheck=!1,pn.name="edu-program-fill",pn.placeholder="\u8BF7\u8F93\u5165",pn.dataset.id=zt;const ei=Object.keys(Zn).length;return Zn[ei]=pn,`<span class="edu-program-fill-wrap ${bt===Ce?"":"show"}" style="width:${bt===Ce?"400px":"100%"}" title=${qt||""}><span>${pn.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function Fe(bt){return bt=bt.replace(/!\[.*?\]\(.*?\)/g,""),bt=bt.replace(/\[.*?\]\(.*?\)/g,""),bt=bt.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),bt=bt.replace(/<embed.*?>/g,""),bt=bt.replace(/<img.*?>/g,""),bt=bt.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),bt=bt.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),bt=bt.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),bt=bt.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),bt}const xe=bt=>!ot&&vi(_t)?bt:bt.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(zt,qt){let pn=qt.replace(/(\n|\r)/g,"").split("}"),ei=[];return pn.map(wn=>{wn!=""&&ei.push(`.${yt.current} ${wn}`)}),`<style>${ei.join("}")}</style>`}),Ne=(0,ve.useMemo)(()=>{try{const pn=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,ei=/\"\/api\/attachments\/|\"\/attachments\/download\//g,wn=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,Fn=/\(\/attachments\/download\//g;_t=_t.replace(Fn,"("+Ze.Z.API_SERVER+"/attachments/download/").replace(pn,"("+Ze.Z.API_SERVER+"/api/attachments/").replace(ei,'"'+Ze.Z.API_SERVER+"/api/attachments/").replace(wn,'"'+Ze.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(pn){}if(Ot){let pn=-1;return _t=_t.replaceAll("<","&lt;").replaceAll(">","&gt;").replace(/(@▁▁@|@▁@)/g,function(ei,wn,Fn){var Ci;return++pn,We(ei,pn,(Ci=st==null?void 0:st[pn])==null?void 0:Ci.value.replaceAll("<","&lt;").replaceAll(">","&gt;"))}),`<pre style="background:#fff;padding:4px">${xe(_t||"")}</pre>`}let bt=xe(_t);bt=(0,dt.ZP)(bt);const zt=(0,dt.ez)();_t.match(/\[TOC\]/)&&(bt=bt.replace("<p>[TOC]</p>",(0,dt.Qv)()),(0,dt.Iy)()),bt=bt.replace(/(__special_katext_id_\d+__)/g,(pn,ei)=>{const{type:wn,expression:Fn}=zt[ei];return(0,xt.renderToString)(Te(Fn)||"",{displayMode:wn==="block",throwOnError:!1,output:"html"})}),bt=bt.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,dt.AL)();const qt=document.createElement("div");if(qt.innerHTML=bt,ot)return qt.innerText;if(Lt){const pn=Lt.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return Xt(qt,pn),qt.innerHTML}return setTimeout(()=>Tt(),500),qt.innerHTML},[_t,Lt]);(0,ve.useEffect)(()=>{Bt.current&&Bt.current.querySelectorAll(["input","textarea"]).forEach(zt=>{zt.oninput=_e,zt.onblur=be,zt.onfocus=tt})},[Dt]),(0,ve.useEffect)(()=>{var bt,zt,qt,pn,ei;if(st!=null&&st.length)try{const wn=Bt.current.querySelectorAll(".edu-program-fill-score"),Fn=Bt.current.querySelectorAll('[name="edu-program-fill"]');for(const[Ci,$n]of Fn.entries())$n.value=((bt=st==null?void 0:st[Ci])==null?void 0:bt.value)||"",((zt=st==null?void 0:st[Ci])==null?void 0:zt.type)==="warning"?$n.className="program-fill-warning":((qt=st==null?void 0:st[Ci])==null?void 0:qt.type)==="success"?$n.className="program-fill-success":$n.className="";for(const[Ci,$n]of wn.entries())$n.innerHTML=(pn=st==null?void 0:st[Ci])!=null&&pn.score?`${(ei=st==null?void 0:st[Ci])==null?void 0:ei.score}\u5206`:"";gn(st)}catch(wn){console.log(wn,"error")}},[st]);const _e=bt=>{Dt[bt.target.dataset.id]=Dt[bt.target.dataset.id]||{},Dt[bt.target.dataset.id].value=bt.target.value,gn([...Dt]),He(Dt,bt.target.dataset.id)},be=bt=>{Dt[bt.target.dataset.id]=Dt[bt.target.dataset.id]||{},Dt[bt.target.dataset.id].value=bt.target.value,gn([...Dt]),Rt(Dt,bt.target.dataset.id)},tt=bt=>{Dt[bt.target.dataset.id]=Dt[bt.target.dataset.id]||{},Dt[bt.target.dataset.id].value=bt.target.value,gn([...Dt]),Zt(Dt,bt.target.dataset.id)};function Xt(bt,zt){return bt.childNodes.forEach(qt=>{var pn;if(qt.childNodes.length>0)Xt(qt,zt);else if(qt.nodeName!=="IMG")if(qt.innerHTML)qt.innerHTML=(pn=qt.innerHTML)==null?void 0:pn.replace(new RegExp(zt,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const ei=document.createElement("span");ei.innerHTML=qt.textContent.replace(new RegExp(zt,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),qt.replaceWith(ei)}})}const Bt=(0,ve.useRef)();dt.jb.WebkitLineClamp=Ct,Ct&&(gt=pe(pe({},gt),dt.jb));function nn(bt){let zt=bt.target;if(zt.tagName.toUpperCase()==="A"){let qt=zt.getAttribute("href");if(qt.indexOf("office")>-1)bt.preventDefault(),jt(qt),Dn("office");else if(qt.indexOf("application/pdf")>-1)bt.preventDefault(),jt(qt),Dn("pdf");else if(qt.indexOf("text/html")>-1)bt.preventDefault(),jt(qt),Dn("html");else if(qt.startsWith("#")){bt.preventDefault();let pn=document.getElementById(qt.replace("#",""));pn&&pn.scrollIntoView(!0)}}}const Tt=()=>{var bt;const zt=(bt=Bt.current)==null?void 0:bt.querySelectorAll("video");zt==null||zt.forEach(qt=>{if(qt.oncontextmenu=()=>!1,qt.src.indexOf(".m3u8")>-1&&!qt.canPlayType("application/vnd.apple.mpegurl")){if(at.ZP.isSupported()){var pn=new at.ZP;pn.loadSource(qt.src),pn.attachMedia(qt)}}})};return(0,ve.useEffect)(()=>{if(Bt.current&&Ne&&Ne.match(ze)&&window.PR.prettyPrint(),Bt.current)return Bt.current.addEventListener("click",nn),()=>{var bt;(bt=Bt.current)==null||bt.removeEventListener("click",nn),(0,dt.AL)(),(0,dt.Iy)()}},[Ne,Bt.current,nn]),(0,ve.useEffect)(()=>{var bt;const zt=qt=>{qt.preventDefault(),qt.clipboardData.setData("text",window.getSelection().toString())};return(bt=Bt.current)==null||bt.addEventListener("copy",zt),()=>{var qt;(qt=Bt.current)==null||qt.removeEventListener("copy",zt)}},[Bt.current]),ve.createElement(ve.Fragment,null,ot&&ve.createElement("div",{ref:Bt},Ne),!ot&&!vi(Ne)&&ve.createElement("div",{ref:Bt,style:pe({},gt),className:`${rt||""} ${tn?"disabled-fill":""} markdown-body ${yt.current}`,dangerouslySetInnerHTML:{__html:Ne}}),!ot&&vi(Ne)&&ve.createElement(ut,{html:Ne}),ve.createElement(De.Z,{close:!0,data:Mt,type:Mt!=null&&Mt.length?an:"",style:pe({},kt),onClose:()=>jt("")}))}},59639:function(fn,on,we){"use strict";we.d(on,{Z:function(){return Te}});var ve=we(59301),Ye=we(9221),dt=Object.defineProperty,it=Object.getOwnPropertySymbols,at=Object.prototype.hasOwnProperty,Ze=Object.prototype.propertyIsEnumerable,Ue=(Ie,Oe,Re)=>Oe in Ie?dt(Ie,Oe,{enumerable:!0,configurable:!0,writable:!0,value:Re}):Ie[Oe]=Re,xt=(Ie,Oe)=>{for(var Re in Oe||(Oe={}))at.call(Oe,Re)&&Ue(Ie,Re,Oe[Re]);if(it)for(var Re of it(Oe))Ze.call(Oe,Re)&&Ue(Ie,Re,Oe[Re]);return Ie},nt=(Ie,Oe)=>{var Re={};for(var rt in Ie)at.call(Ie,rt)&&Oe.indexOf(rt)<0&&(Re[rt]=Ie[rt]);if(Ie!=null&&it)for(var rt of it(Ie))Oe.indexOf(rt)<0&&Ze.call(Ie,rt)&&(Re[rt]=Ie[rt]);return Re};const wt={header:{cell:Ie=>{var Oe=Ie,{onResize:Re,width:rt}=Oe,ot=nt(Oe,["onResize","width"]);return rt?ve.createElement(Ye.Resizable,{width:rt,height:0,handle:ve.createElement("span",{className:"react-resizable-handle",onClick:Ct=>{Ct.stopPropagation()}}),onResize:Re,draggableOpts:{enableUserSelectHack:!1}},ve.createElement("th",xt({},ot))):ve.createElement("th",xt({},ot))}}};var Ve=we(54172),ut=Object.defineProperty,Ee=Object.defineProperties,te=Object.getOwnPropertyDescriptors,ne=Object.getOwnPropertySymbols,ue=Object.prototype.hasOwnProperty,se=Object.prototype.propertyIsEnumerable,de=(Ie,Oe,Re)=>Oe in Ie?ut(Ie,Oe,{enumerable:!0,configurable:!0,writable:!0,value:Re}):Ie[Oe]=Re,pe=(Ie,Oe)=>{for(var Re in Oe||(Oe={}))ue.call(Oe,Re)&&de(Ie,Re,Oe[Re]);if(ne)for(var Re of ne(Oe))se.call(Oe,Re)&&de(Ie,Re,Oe[Re]);return Ie},ye=(Ie,Oe)=>Ee(Ie,te(Oe)),Ce=(Ie,Oe)=>{var Re={};for(var rt in Ie)ue.call(Ie,rt)&&Oe.indexOf(rt)<0&&(Re[rt]=Ie[rt]);if(Ie!=null&&ne)for(var rt of ne(Ie))Oe.indexOf(rt)<0&&se.call(Ie,rt)&&(Re[rt]=Ie[rt]);return Re},Te=Ie=>{var Oe=Ie,{pagination:Re,resColumns:rt,dataSource:ot,onRow:Ct}=Oe,gt=Ce(Oe,["pagination","resColumns","dataSource","onRow"]);const[kt,Lt]=(0,ve.useState)(!1),[Ot,Nt]=(0,ve.useState)([{}]),tn=(0,ve.useRef)(null);(0,ve.useEffect)(()=>{let He=rt;He=He.map((Rt,Zt)=>ye(pe({},Rt),{onHeaderCell:_t=>({width:_t.width,onResize:st(Zt)})})),Nt(He)},[]),(0,ve.useEffect)(()=>{tn.current=Ot},[Ot]);const st=He=>(Rt,{size:Zt})=>{const _t=[...tn.current];_t[He]=ye(pe({},_t[He]),{width:Zt.width}),Nt(_t)};return ve.createElement("div",null,ve.createElement(Ve.default,ye(pe({bordered:!0,components:wt,columns:Ot,dataSource:ot,pagination:Re,loading:kt,onRow:Ct},gt),{rowKey:He=>He.key||He.id})))}},87444:function(fn,on,we){"use strict";we.d(on,{Z:function(){return Oe},P:function(){return ze}});var ve=we(59301),Ye=we(28284),dt=we(62957),it=we(47889),at=we(37568),Ze=we(54172),Ue={brief:"brief___LOzpE",contentTitle:"contentTitle___xkdcN",content:"content___Vtri0",tips:"tips___tuAtH",antdTable:"antdTable___s8T2N",tableCell:"tableCell___kN9Fw",antdModal:"antdModal___WVBk3",orangeColor:"orangeColor___ryB2u"},xt=we(75736),nt=Object.defineProperty,De=Object.defineProperties,wt=Object.getOwnPropertyDescriptors,Ve=Object.getOwnPropertySymbols,ut=Object.prototype.hasOwnProperty,Ee=Object.prototype.propertyIsEnumerable,te=(Re,rt,ot)=>rt in Re?nt(Re,rt,{enumerable:!0,configurable:!0,writable:!0,value:ot}):Re[rt]=ot,ne=(Re,rt)=>{for(var ot in rt||(rt={}))ut.call(rt,ot)&&te(Re,ot,rt[ot]);if(Ve)for(var ot of Ve(rt))Ee.call(rt,ot)&&te(Re,ot,rt[ot]);return Re},ue=(Re,rt)=>De(Re,wt(rt)),se=(Re,rt)=>{var ot={};for(var Ct in Re)ut.call(Re,Ct)&&rt.indexOf(Ct)<0&&(ot[Ct]=Re[Ct]);if(Re!=null&&Ve)for(var Ct of Ve(Re))rt.indexOf(Ct)<0&&Ee.call(Re,Ct)&&(ot[Ct]=Re[Ct]);return ot},de=(Re,rt,ot)=>new Promise((Ct,gt)=>{var kt=Nt=>{try{Ot(ot.next(Nt))}catch(tn){gt(tn)}},Lt=Nt=>{try{Ot(ot.throw(Nt))}catch(tn){gt(tn)}},Ot=Nt=>Nt.done?Ct(Nt.value):Promise.resolve(Nt.value).then(kt,Lt);Ot((ot=ot.apply(Re,rt)).next())});const pe=({studentNames:Re,total:rt})=>{const ot=["","\u4E00","\u4E24","\u4E09"];return rt>3?ve.createElement(ve.Fragment,null,"\u8BFE\u5802\u5185\u6709",ve.createElement("span",{className:Ue.orangeColor},Re==null?void 0:Re.join("\u3001")),"\u7B49",ve.createElement("span",{className:Ue.orangeColor},rt),"\u540D\u5B66\u751F"):ve.createElement(ve.Fragment,null,"\u8BFE\u5802\u5185\u6709",ve.createElement("span",{className:Ue.orangeColor},Re==null?void 0:Re.join("\u3001")),ot[rt],"\u540D\u5B66\u751F")},ye=({used:Re,copy:rt,canNotCopy:ot,studentNames:Ct,studentCount:gt,inPaper:kt,is_random:Lt=!1,position:Ot=""})=>{const Nt=()=>{if(rt>0&&ot>0)return ve.createElement(ve.Fragment,null,"\u5176\u4E2D",ve.createElement("span",{className:Ue.orangeColor},rt),"\u4E2A\u9879\u76EE\u652F\u6301\u590D\u5236\uFF0C",ve.createElement("span",{className:Ue.orangeColor},ot),"\u4E2A\u9879\u76EE\u4E0D\u652F\u6301\u590D\u5236");if(rt>0&&ot===0)return ve.createElement(ve.Fragment,null,"\u5176\u4E2D",ve.createElement("span",{className:Ue.orangeColor},rt),"\u4E2A\u9879\u76EE\u652F\u6301\u590D\u5236");if(rt===0&&ot>0)return ve.createElement(ve.Fragment,null,"\u5176\u4E2D",ve.createElement("span",{className:Ue.orangeColor},ot),"\u4E2A\u9879\u76EE\u4E0D\u652F\u6301\u590D\u5236")},tn=Ot||(kt?"\u8BD5\u5377":"\u8BFE\u7A0B");return ve.createElement("span",null,ve.createElement(pe,{studentNames:Ct,total:gt}),"\u5B66\u4E60\u8FC7",tn,"\u4E2D\u7684",ve.createElement("span",{className:Ue.orangeColor},Re),"\u4E2A\u9879\u76EE\uFF0C",Nt(),"\u3002\u8BF7\u9009\u62E9",Lt?"":"\u662F\u5426\u7EE7\u7EED\u4F7F\u7528\u548C","\u662F\u5426\u590D\u5236\u4E3A\u65B0\u9879\u76EE\u53D1\u9001\u81F3\u8BFE\u5802\u4E2D\uFF1F")},Ce=({onCancel:Re,onOk:rt,visible:ot,inPaper:Ct,renderData:gt,type:kt,isMultipleCourse:Lt=!1})=>{const[Ot]=Ye.default.useForm(),[Nt,tn]=(0,ve.useState)(1),[st,He]=(0,ve.useState)(!1),Rt=(0,ve.useMemo)(()=>(gt==null?void 0:gt.total_num)===1&&(gt==null?void 0:gt.can_copy_num)===1,[gt]),Zt=(0,ve.useMemo)(()=>{var _t;return(_t=gt==null?void 0:gt.course_data_list)==null?void 0:_t.filter(Mt=>Mt.is_show)},[gt]);return ve.createElement(ve.Fragment,null,Rt?ve.createElement(dt.default,{centered:!0,closable:!0,open:ot,destroyOnClose:!0,title:"\u63D0\u793A",className:Ue.antdModal,width:682,confirmLoading:st,onCancel:Re,onOk:()=>de(void 0,null,function*(){var _t;He(!0);let Mt=Nt;if(Lt){const jt=ne({},Ot.getFieldsValue());Mt=(_t=gt==null?void 0:gt.course_data_list)==null?void 0:_t.map(an=>jt[an.id]!==void 0?ue(ne({},an),{is_copy:jt[an.id]}):an)}yield rt(Mt),He(!1)})},ve.createElement("div",{className:Ue.content,style:{marginBottom:20}},Lt?"\u68C0\u6D4B\u5230\u4EE5\u4E0B\u8BFE\u5802\u5DF2\u5728\u6559\u5B66\u8BFE\u5802\u4E2D\u4F7F\u7528\uFF0C\u8BF7\u95EE\u662F\u5426\u590D\u5236\u6210\u65B0\u7684\u5B9E\u8BAD\u53D1\u9001\u81F3\u6559\u5B66\u8BFE\u5802\u4E2D?":ve.createElement(ve.Fragment,null,ve.createElement(pe,{studentNames:gt==null?void 0:gt.student_names,total:gt==null?void 0:gt.student_count}),"\u5B66\u4E60\u8FC7\u8BE5\u5B9E\u8DF5\u9879\u76EE\u3002\u8BE5\u9879\u76EE\u652F\u6301\u590D\u5236\uFF0C\u8BF7\u9009\u62E9\u662F\u5426\u5C06\u8BE5\u9879\u76EE\u590D\u5236\u4E3A\u65B0\u9879\u76EE\u53D1\u9001\u81F3\u8BFE\u5802\u4E2D\uFF1F")),Lt?ve.createElement(Ye.default,{form:Ot,preserve:!1},Zt==null?void 0:Zt.map(_t=>ve.createElement(ve.Fragment,{key:_t.id},ve.createElement("h3",{className:"ml15 mb5"},_t.name),ve.createElement(Ye.default.Item,{name:_t.id,initialValue:1},ve.createElement(it.ZP.Group,{className:Ue.content},ve.createElement(it.ZP,{value:1,style:{color:"#464f66"}},"\u590D\u5236\u5B9E\u8BAD"),ve.createElement(it.ZP,{value:0,style:{color:"#464f66"}},"\u4E0D\u590D\u5236\u5B9E\u8BAD")))))):ve.createElement(it.ZP.Group,{value:Nt,onChange:_t=>tn(_t.target.value),className:Ue.content,style:{marginBottom:30}},ve.createElement(it.ZP,{value:1,style:{color:"#464f66"}},"\u590D\u5236"),ve.createElement(it.ZP,{value:0,style:{color:"#464f66"}},"\u4E0D\u590D\u5236")),ve.createElement("div",null,ve.createElement("div",{className:Ue.content,style:{marginBottom:10}},"* \u8BF4\u660E\uFF1A"),ve.createElement("div",{className:Ue.content,style:{marginBottom:20}},"1\u3001\u590D\u5236\uFF1A\u7CFB\u7EDF\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\u53D1\u9001\u5230\u8BFE\u5802\u4E2D\u4F7F\u7528\uFF08\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF09\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\u3002"),ve.createElement("div",{className:`${Ue.content} ${Ue.orangeColor}`},"2\u3001\u4E0D\u590D\u5236\uFF1A\u5F53\u524D\u9879\u76EE\u4F1A\u88AB\u76F4\u63A5\u53D1\u9001\u5230\u8BFE\u5802\u4E2D\u4F7F\u7528\uFF0C\u6311\u6218\u8FC7\u8BE5\u9879\u76EE\u7684\u5B66\u751F\u518D\u6B21\u8FDB\u5165\u9879\u76EE\u5F00\u542F\u6311\u6218\u65F6\uFF0C\u4F1A\u6E05\u7A7A\u4E4B\u524D\u7684\u6311\u6218\u8BB0\u5F55\u3002"))):ve.createElement(dt.default,{centered:!0,closable:!0,destroyOnClose:!0,open:ot,confirmLoading:st,title:"\u63D0\u793A",width:682,onCancel:Re,onOk:()=>de(void 0,null,function*(){var _t;He(!0);let Mt=0;if(Lt){const jt=ne({},Ot.getFieldsValue());Mt=(_t=gt==null?void 0:gt.course_data_list)==null?void 0:_t.map(an=>jt[an.id]!==void 0?ue(ne({},an),{is_use:jt[an.id]}):an)}yield rt(Mt),He(!1)})},ve.createElement("div",{className:Ue.content},ve.createElement(pe,{studentNames:gt==null?void 0:gt.student_names,total:gt==null?void 0:gt.student_count}),"\u5B66\u4E60\u8FC7\u8BE5\u5B9E\u8DF5\u9879\u76EE\u3002",Lt?ve.createElement(Ye.default,{form:Ot,preserve:!1},ve.createElement("h3",null,"\u5F53\u524D\u5B9E\u8BAD\u4E0D\u53EF\u590D\u5236\uFF0C\u5DF2\u7ECF\u68C0\u6D4B\u5230\u4EE5\u4E0B\u8BFE\u5802\u5B58\u5728\u8BE5\u5B9E\u8BAD\uFF0C\u540C\u4E00\u5B9E\u8BAD\u5728\u8BFE\u5802\u4E2D\u91CD\u590D\u4F7F\u7528\u65F6\uFF0C\u4F1A\u5BFC\u81F4\u6210\u7EE9\u4E92\u76F8\u5F71\u54CD\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u7EE7\u7EED\u4F7F\u7528"),Zt==null?void 0:Zt.map(_t=>ve.createElement(ve.Fragment,{key:_t.id},ve.createElement("h3",{className:"ml15 mb5"},_t.name),ve.createElement(Ye.default.Item,{name:_t.id,initialValue:1},ve.createElement(it.ZP.Group,{className:Ue.content},ve.createElement(it.ZP,{value:1,style:{color:"#464f66"}},"\u7EE7\u7EED\u4F7F\u7528"),ve.createElement(it.ZP,{value:0,style:{color:"#464f66"}},"\u4E0D\u4F7F\u7528")))))):ve.createElement("div",null,"\u8BE5\u9879\u76EE\u4E0D\u652F\u6301\u590D\u5236\uFF0C\u82E5\u786E\u8BA4\u7EE7\u7EED\u53D1\u9001\uFF0C",ve.createElement("span",{className:Ue.orangeColor},"\u5F53\u524D\u9879\u76EE\u4F1A\u88AB\u76F4\u63A5\u53D1\u9001\u5230\u8BFE\u5802\u4E2D\u4F7F\u7528\uFF0C\u6311\u6218\u8FC7\u8BE5\u9879\u76EE\u7684\u5B66\u751F\u518D\u6B21\u8FDB\u5165\u9879\u76EE\u5F00\u542F\u6311\u6218\u65F6\uFF0C\u4F1A\u6E05\u7A7A\u4E4B\u524D\u7684\u6311\u6218\u8BB0\u5F55\u3002"),"\uFF08\u5982\u679C\u4E0D\u60F3\u6E05\u7A7A\u5B66\u751F\u4E4B\u524D\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u5EFA\u8BAE\u53C2\u7167\u8BE5\u5B9E\u8DF5\u9879\u76EE\u7684\u5185\u5BB9\u81EA\u884C\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\uFF0C\u6216\u8005\u5C1D\u8BD5\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u4EBA\u5F00\u653E\u672C\u9879\u76EE\u7684\u590D\u5236\u6743\u9650\uFF09\u3002"))))},ze=function(){const[Re,rt]=(0,ve.useState)(!1),[ot,Ct]=(0,ve.useState)();return[Re,()=>rt(!1),ot,Lt=>de(this,null,function*(){var Ot;const Nt=Lt,{isImportMultipleCourse:tn=!1}=Nt,st=se(Nt,["isImportMultipleCourse"]);console.log(Lt);const He=(Lt==null?void 0:Lt.result)||(yield(0,xt.Tr)(st));return"status"in He?!1:tn?((Ot=He==null?void 0:He.course_data_list)==null?void 0:Ot.some(Zt=>Zt.is_show))?(Ct(He),rt(!0),!0):He.course_data_list||[]:He.student_count===0?!1:(Ct(He),rt(!0),!0)})]},Te=Re=>{const[rt]=Ye.default.useForm(),[ot,Ct]=(0,ve.useState)(!1),{onCancel:gt,onOk:kt,visible:Lt,inPaper:Ot=!1,renderData:Nt,type:tn,isMultipleCourse:st=!1,position:He}=Re;let Rt=(0,ve.useMemo)(()=>Ot?[{title:"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0",dataIndex:"name",width:424,align:"center",ellipsis:!0,className:Ue.tableCell,render(Mt,jt){return ve.createElement("a",{href:`/shixuns/${jt.identifier}/challenges`,target:"_blank"},Mt)}},{title:"\u662F\u5426\u590D\u5236",dataIndex:"is_copy",align:"center",render:(Mt,jt)=>ve.createElement(ve.Fragment,null,ve.createElement(Ye.default.Item,{name:[`${tn==="subject"?jt.stage_shixun_id:jt.shixun_course_id||jt.id}`,"is_copy"],initialValue:1},ve.createElement(it.ZP.Group,null,ve.createElement(it.ZP,{value:1},"\u662F"),ve.createElement(it.ZP,{value:0},"\u5426"))),ve.createElement(Ye.default.Item,{name:[`${tn==="subject"?jt==null?void 0:jt.stage_shixun_id:jt.shixun_course_id||jt.id}`,"is_use"],hidden:!0,initialValue:1},ve.createElement(at.default,{type:"hidden"})))}]:[{title:"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0",dataIndex:"name",width:424,align:"center",ellipsis:!0,className:Ue.tableCell,render(Mt,jt){return ve.createElement("a",{href:`/shixuns/${jt.identifier}/challenges`,target:"_blank"},Mt)}},{title:"\u662F\u5426\u4F7F\u7528",dataIndex:"is_use",align:"center",render:(Mt,jt)=>ve.createElement(Ye.default.Item,{name:[`${tn==="subject"?jt.stage_shixun_id:jt.shixun_course_id||jt.id}`,"is_use"],initialValue:1},ve.createElement(it.ZP.Group,null,ve.createElement(it.ZP,{value:1},"\u662F"),ve.createElement(it.ZP,{value:0},"\u5426")))},{title:"\u662F\u5426\u590D\u5236",dataIndex:"is_copy",align:"center",render:(Mt,jt)=>ve.createElement(Ye.default.Item,{name:[`${tn==="subject"?jt.stage_shixun_id:jt.shixun_course_id||jt.id}`,"is_copy"],initialValue:1},ve.createElement(it.ZP.Group,null,ve.createElement(it.ZP,{value:1},"\u662F"),ve.createElement(it.ZP,{value:0},"\u5426")))}],[Ot]),Zt=(0,ve.useMemo)(()=>Ot?[{title:"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0",dataIndex:"name",width:424,className:Ue.tableCell,align:"center",ellipsis:!0,render:(Mt,jt)=>ve.createElement(ve.Fragment,null,ve.createElement("a",{href:`/shixuns/${jt.identifier}/challenges`,target:"_blank"},Mt),ve.createElement(Ye.default.Item,{name:[`${tn==="subject"?jt==null?void 0:jt.stage_shixun_id:jt.shixun_course_id||jt.id}`,"is_copy"],hidden:!0,initialValue:0},ve.createElement(at.default,{type:"hidden"})),ve.createElement(Ye.default.Item,{name:[`${tn==="subject"?jt==null?void 0:jt.stage_shixun_id:jt.shixun_course_id||jt.id}`,"is_use"],hidden:!0,initialValue:1},ve.createElement(at.default,{type:"hidden"})))}]:[{title:"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0",dataIndex:"name",width:424,className:Ue.tableCell,ellipsis:!0,align:"center",render:(Mt,jt)=>ve.createElement("a",{href:`/shixuns/${jt.identifier}/challenges`,target:"_blank"},Mt)},{title:"\u662F\u5426\u4F7F\u7528",dataIndex:"is_use",align:"center",render:(Mt,jt)=>ve.createElement(ve.Fragment,null,ve.createElement(Ye.default.Item,{name:[`${tn==="subject"?jt==null?void 0:jt.stage_shixun_id:jt.shixun_course_id||jt.id}`,"is_use"],initialValue:0},ve.createElement(it.ZP.Group,null,ve.createElement(it.ZP,{value:1},"\u662F"),ve.createElement(it.ZP,{value:0},"\u5426"))),ve.createElement(Ye.default.Item,{name:[`${tn==="subject"?jt==null?void 0:jt.stage_shixun_id:jt.shixun_course_id||jt.id}`,"is_copy"],hidden:!0,initialValue:0},ve.createElement(at.default,{type:"hidden"})))}],[Ot]);if(st){const Mt={title:"\u8BFE\u5802\u540D\u79F0",ellipsis:!0,dataIndex:"course_name",width:190,align:"center",className:Ue.tableCell,render:(jt,an)=>ve.createElement("a",{href:`/classrooms/${an.course_id}`},jt)};Rt=[Mt,...Rt],Zt=[Mt,...Zt]}const _t=(0,ve.useMemo)(()=>ye({used:Nt==null?void 0:Nt.repeat_shixun_num,copy:Nt==null?void 0:Nt.can_copy_num,canNotCopy:Nt==null?void 0:Nt.no_copy_num,studentNames:Nt==null?void 0:Nt.student_names,studentCount:Nt==null?void 0:Nt.student_count,is_random:Nt==null?void 0:Nt.is_random,inPaper:Ot,position:He}),[Nt,Ot,He]);return ve.createElement(dt.default,{title:"\u63D0\u793A",centered:!0,open:Lt,confirmLoading:ot,onOk:()=>de(void 0,null,function*(){Ct(!0);const Mt=rt.getFieldsValue(),jt=Object.keys(Mt).map(an=>({id:parseInt(an.split("_")[0]),course_id:parseInt(an.split("_")[1]),is_use:Mt[an].is_use,is_copy:Mt[an].is_copy}));yield kt(jt),Ct(!1)}),onCancel:gt,width:880,okText:"\u786E\u8BA4",className:Ue.antdModal,destroyOnClose:!0},ve.createElement(Ye.default,{form:rt,preserve:!1},ve.createElement("div",{className:Ue.brief},_t),ve.createElement("div",{style:{marginBottom:30}},ve.createElement("div",{style:{marginBottom:20}},"* \u8BF4\u660E"),ve.createElement("div",{style:{marginBottom:20}},"1\u3001\u590D\u5236\uFF1A\u7CFB\u7EDF\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\u53D1\u9001\u5230\u8BFE\u5802\u4E2D\u4F7F\u7528\uFF08\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF09\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\u3002"),ve.createElement("div",{className:Ue.orangeColor},"2\u3001\u4E0D\u590D\u5236\uFF1A\u5F53\u524D\u9879\u76EE\u4F1A\u88AB\u76F4\u63A5\u53D1\u9001\u5230\u8BFE\u5802\u4E2D\u4F7F\u7528\uFF0C\u6311\u6218\u8FC7\u8BE5\u9879\u76EE\u7684\u5B66\u751F\u518D\u6B21\u8FDB\u5165\u9879\u76EE\u5F00\u542F\u6311\u6218\u65F6\uFF0C\u4F1A\u6E05\u7A7A\u4E4B\u524D\u7684\u6311\u6218\u8BB0\u5F55\u3002")),(Nt==null?void 0:Nt.can_copy_num)>0&&ve.createElement("div",null,ve.createElement("div",{className:Ue.contentTitle},"\u652F\u6301\u590D\u5236\u7684\u9879\u76EE"),ve.createElement(Ze.default,{columns:Rt,className:Ue.antdTable,dataSource:Nt==null?void 0:Nt.can_copy_list,rowKey:tn==="subject"?"stage_shixun_id":"id",pagination:!1,scroll:{y:240},bordered:!0})),(Nt==null?void 0:Nt.no_copy_num)>0&&ve.createElement("div",null,ve.createElement("div",{className:Ue.contentTitle},"\u4E0D\u652F\u6301\u590D\u5236\u7684\u9879\u76EE"),ve.createElement(Ze.default,{columns:Zt,className:Ue.antdTable,dataSource:Nt==null?void 0:Nt.no_copy_list,rowKey:tn==="subject"?"stage_shixun_id":"id",pagination:!1,scroll:{y:200},bordered:!0})),(Nt==null?void 0:Nt.no_use_list.length)>0&&(Nt==null?void 0:Nt.no_use_list.map(Mt=>ve.createElement("div",{key:tn==="subject"?Mt.stage_shixun_id:Mt.shixun_course_id||Mt.id},ve.createElement(Ye.default.Item,{name:[`${tn==="subject"?Mt==null?void 0:Mt.stage_shixun_id:Mt.shixun_course_id||Mt.id}`,"is_copy"],hidden:!0,initialValue:0},ve.createElement(at.default,{type:"hidden"})),ve.createElement(Ye.default.Item,{name:[`${tn==="subject"?Mt==null?void 0:Mt.stage_shixun_id:Mt.shixun_course_id||Mt.id}`,"is_use"],hidden:!0,initialValue:1},ve.createElement(at.default,{type:"hidden"})))))))};var Oe=Re=>{const{modalType:rt}=Re;return rt==="multiple"?ve.createElement(Te,ne({},Re)):ve.createElement(Ce,ne({},Re))}},3039:function(fn,on,we){"use strict";we.d(on,{Z:function(){return xt}});var ve=we(59301),Ye={flex_box_center:"flex_box_center___rQJfc",flex_space_between:"flex_space_between___MDW24",flex_box_vertical_center:"flex_box_vertical_center___RZbAv",flex_box_center_end:"flex_box_center_end___ILhJA",flex_box_column:"flex_box_column___Fmij7",orangeColor:"orangeColor___U5vU6",redColor:"redColor___qYa6X",statustitle:"statustitle___pTBLm",statusbody:"statusbody___qUPQx",flex:"flex___VtL45"},dt=we(62957),it="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAPCAYAAADUFP50AAAAAXNSR0IArs4c6QAAAUFJREFUOE+V0ktKw1AUxvH/rVqIxT4wkgwEUSmK4APRBfiYCKU7cOZEBOkadAMZiwhuwJETBQciFRTtwJkPBLW2BRGrRanU9kpN2sSYiGaWc/PjuznnCN2Qh8AkPo+AzXxKLLiPhW7ICtDqB4GzQkqM/huGFZgZcDCBBDaaicsTMKbZH2xfwdY5/ICAEGSasC0AwRYblj+gKkENwfy4WS9V4LHsgsk49EZteJKHdBa6w7AybdZzr3D64ILxGKjtNrx9gfsSRBSYtf6xZh1/u+qQClrIhtdFuHmGvhisJcz65RPsZl2Jc/3QE7FhpgDHuT80x2+O9cR1K/GiCDt3rkQ/+Ns43gDFD0YVmHIuQGOOmiGTARhxwkGd1cZ7Vwd0OppWr3911StpcV++Iwn67q/kyBMuHchErcqwFxT1XZXsfQJqo2zI6kdI4QAAAABJRU5ErkJggg==",at="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAAXNSR0IArs4c6QAAAW1JREFUOE+dkj1IQmEUht9z/blp4VQEjS39eW+oSCFCpFCI4BiKFGWWQUSrCjVVg+lQNJZQDZGNTm1B4NTibS3n2lo0wuqEN8i/a0HfeN7v+d73nO+QJEcKAJzQPAwCnSpKNtoqkyRHqgDrtUFAb6Rnedx43KgT6O5P0GQijFiNLe/Sy3/B8g+YTIRRrb5jP32JYNADr8eOldU0RJEqVlm8r1kyuA/AIEB10OWy4vBgA4ryCIdjCJlMDmfn1zAY6EmyGY/UrAwrgGATWKsn4mGEQl4Uiw+YX9hT73aZiEcl8eMbZAGA0AT6/ZPY3Ykiny/A55tA7uoGqdQFBD2VbDbDugoSTTEj3gTGYgG8Vt7UeG63hNkZJ7a2s+gw1XqPnf5REKhkt4kxNakO08ycbOtRC/7FcakCwNTJ0WwmDI+1LUCZZDkSYGa5Eewf0G0KAnprNYtFQHdPbZhNS1cmLafF5bUTJsyBSVMHPm+/ADTrfrtCH68WAAAAAElFTkSuQmCC",Ze=(nt,De,wt)=>new Promise((Ve,ut)=>{var Ee=ue=>{try{ne(wt.next(ue))}catch(se){ut(se)}},te=ue=>{try{ne(wt.throw(ue))}catch(se){ut(se)}},ne=ue=>ue.done?Ve(ue.value):Promise.resolve(ue.value).then(Ee,te);ne((wt=wt.apply(nt,De)).next())}),xt=({type:nt,resdata:De,onok:wt,oktext:Ve,okloading:ut})=>{const[Ee,te]=(0,ve.useState)(!1),{can_copy_list:ne,can_copy_num:ue,challenge_type:se,course_data_list:de,no_copy_list:pe,no_copy_num:ye,no_use_list:Ce,no_use_num:ze,repeat_shixun_num:Te,student_count:Ie,total_num:Oe,use_num:Re}=De;let rt=ue>0||nt==="exercise";(0,ve.useEffect)(()=>{(De==null?void 0:De.student_count)>0&&te(!0)},[De]),console.log("---11",ut),(0,ve.useEffect)(()=>{ut||te(!1)},[ut]);const ot=()=>{if(nt==="exercise"&&se===1)return ve.createElement(ve.Fragment,null,"\u8BFE\u5802\u5185\u6709",ve.createElement("span",{className:Ye.orangeColor},Ie),"\u540D\u5B66\u751F\u5DF2\u5728\u5176\u4ED6\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",ve.createElement("span",{className:Ye.orangeColor},Re),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",ve.createElement("span",{className:Ye.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u4F5C\u7B54\u5DF2\u6311\u6218\u8FC7\u7684\u5B9E\u8BAD\u9898\u3002"));if(nt==="exercise"&&se===2)return ve.createElement(ve.Fragment,null,"\u8BFE\u5802\u5185\u6709",ve.createElement("span",{className:Ye.orangeColor},Ie),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",ve.createElement("span",{className:Ye.orangeColor},Re),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",ve.createElement("span",{className:Ye.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(nt==="shixun"&&se===1)return ve.createElement(ve.Fragment,null,"\u8BFE\u5802\u5185\u6709",ve.createElement("span",{className:Ye.orangeColor},Ie),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u8BE5\u5B9E\u8DF5\u9879\u76EE\uFF0C",ve.createElement("span",{className:Ye.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(nt==="shixun"&&se===2)return ve.createElement(ve.Fragment,null,"\u8BFE\u5802\u5185\u6709",ve.createElement("span",{className:Ye.orangeColor},Ie),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7\u8BE5\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",ve.createElement("span",{className:Ye.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(nt==="subject"&&se===1)return ve.createElement(ve.Fragment,null,"\u8BFE\u5802\u5185\u6709",ve.createElement("span",{className:Ye.orangeColor},Ie),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",ve.createElement("span",{className:Ye.orangeColor},Re),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",ve.createElement("span",{className:Ye.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(nt==="subject"&&se===2)return ve.createElement(ve.Fragment,null,"\u8BFE\u5802\u5185\u6709 ",ve.createElement("span",{className:Ye.orangeColor},Ie)," \u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u6311\u6218\u8FC7\u5176\u4E2D\u7684 ",ve.createElement("span",{className:Ye.orangeColor},Re)," \u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",ve.createElement("span",{className:Ye.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(nt==="exercisepush")return ve.createElement(ve.Fragment,null,"\u8BFE\u5802\u5185\u6709",ve.createElement("span",{className:Ye.orangeColor},Ie),"\u540D\u5B66\u751F\u5DF2\u5728\u5176\u4ED6\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u8BD5\u5377\u4E2D\u7684",ve.createElement("span",{className:Ye.orangeColor},Re),"\u4E2A\u5B9E\u8DF5\u9879\u76EE \uFF0C",ve.createElement("span",{className:Ye.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u5728\u5F53\u524D\u8003\u8BD5\u4E2D\u8FDB\u884C\u4F5C\u7B54\u3002"));if(nt==="shixunpush"&&se===1)return ve.createElement(ve.Fragment,null,"\u8BFE\u5802\u5185\u6709",ve.createElement("span",{className:Ye.orangeColor},Ie),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",ve.createElement("span",{className:Ye.orangeColor},Re),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",ve.createElement("span",{className:Ye.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(nt==="shixunpush"&&se===2)return ve.createElement(ve.Fragment,null,"\u8BFE\u5802\u5185\u6709",ve.createElement("span",{className:Ye.orangeColor},Ie),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7",ve.createElement("span",{className:Ye.orangeColor},Re),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",ve.createElement("span",{className:Ye.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"))},Ct=()=>{if(nt==="exercise"||nt==="subject"||nt==="exercisepush"||nt==="shixunpush")return ve.createElement("div",{style:{marginTop:20}},ye>0&&ve.createElement("div",null,ve.createElement("span",{className:Ye.flex},ve.createElement("img",{src:at,style:{width:14}}),ve.createElement("span",{className:Ye.statustitle},"\u4E0D\u652F\u6301\u590D\u5236\u7684\u5B9E\u8DF5\u9879\u76EE")),ve.createElement("div",{className:Ye.statusbody},nt==="exercise"&&ve.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",ve.createElement("span",{className:Ye.redColor},"\u4EE5\u4E0B\u8BD5\u9898\u5C06\u4E0D\u4F1A\u88AB\u53D1\u9001\u81F3\u8BFE\u5802\u4E2D\u3002"),"\u60A8\u4E5F\u53EF\u4EE5\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8005\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002"),(nt==="subject"||nt==="exercisepush")&&ve.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",rt&&ve.createElement("span",{className:Ye.redColor},"\u4E00\u952E\u590D\u5236\u4E0D\u4F1A\u590D\u5236\u6B64\u90E8\u5206\u9879\u76EE\u3002"),"\u60A8\u53EF\u4EE5\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8005\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002"),nt==="shixunpush"&&ve.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",rt&&ve.createElement("span",{className:Ye.redColor},"\u4E00\u952E\u590D\u5236\u4E0D\u4F1A\u590D\u5236\u6B64\u90E8\u5206\u9879\u76EE\u3002"),"\u5EFA\u8BAE\u60A8\u91CD\u65B0\u9009\u62E9\u5B9E\u8DF5\u9879\u76EE\u518D\u53D1\u5E03\u4F5C\u4E1A\uFF0C\u4E5F\u53EF\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002"),ve.createElement("div",null,pe==null?void 0:pe.map((gt,kt)=>ve.createElement("a",{href:`/shixuns/${gt.identifier}/challenges`,target:"_blank"},"\u300A",gt==null?void 0:gt.name,"\u300B",kt+1!==ye&&"\u3001"))))),ue>0&&ve.createElement("div",{style:{marginTop:20}},ve.createElement("span",{className:Ye.flex},ve.createElement("img",{src:it,style:{width:14}}),ve.createElement("span",{className:Ye.statustitle},"\u652F\u6301\u590D\u5236\u7684\u5B9E\u8DF5\u9879\u76EE")),ve.createElement("div",{className:Ye.statusbody},nt==="exercise"&&ve.createElement("div",{style:{marginBottom:15}},"\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362\u8BD5\u9898\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\u66FF\u6362\u8BD5\u5377\u4E2D\u7684\u539F\u8BD5\u9898\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002"),(nt==="subject"||nt==="exercisepush")&&ve.createElement("div",{style:{marginBottom:15}},"\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u53D1\u9001\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002"),nt==="shixunpush"&&ve.createElement("div",{style:{marginBottom:15}},"\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362\u8BD5\u9898\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\u66FF\u6362\u5F53\u524D\u4F5C\u4E1A\u4E2D\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002"),ve.createElement("div",null,ne==null?void 0:ne.map((gt,kt)=>ve.createElement("a",{href:`/shixuns/${gt.identifier}/challenges`,target:"_blank"},"\u300A",gt==null?void 0:gt.name,"\u300B",kt+1!==ue&&"\u3001"))))));if(nt==="shixun")return ve.createElement("div",{style:{marginTop:20}},ue>0?"\u8BE5\u9879\u76EE\u652F\u6301\u590D\u5236\uFF0C\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u53D1\u9001\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002":"\u8BE5\u9879\u76EE\u4E0D\u652F\u6301\u590D\u5236\uFF0C\u60A8\u53EF\u4EE5\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8005\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002")};return ve.createElement(dt.default,{open:Ee,onCancel:()=>{te(!1)},cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",width:700,centered:!0,cancelButtonProps:{style:{display:!rt&&"none"}},zIndex:1003,confirmLoading:ut,okText:rt?Ve:"\u6211\u77E5\u9053\u4E86",onOk:()=>Ze(void 0,null,function*(){rt?yield wt([...ne,...Ce]):te(!1)})},ve.createElement("div",{style:{maxHeight:600,overflow:"auto"}},ot(),Ct()))}},69221:function(fn,on,we){"use strict";we.d(on,{Z:function(){return at}});var ve=we(59301),Ye={flex_box_center:"flex_box_center___sOi51",flex_space_between:"flex_space_between___pl96A",flex_box_vertical_center:"flex_box_vertical_center___LVWaS",flex_box_center_end:"flex_box_center_end___bFW2z",flex_box_column:"flex_box_column___Iuosg",disabled:"disabled___kyQ47"},dt=we(25399),at=({children:Ze,tips:Ue,title:xt,style:nt})=>{const De=xt||ve.createElement("div",null,ve.createElement("div",null,"\u63D0\u793A\uFF1A"),ve.createElement("div",null,"\u672C\u573A\u8003\u8BD5\u5DF2\u5F00\u542F\u96C6\u4E2D\u9605\u5377\uFF0C\u4E3A\u4E86\u4E0D\u5F71\u54CD\u6210\u7EE9\u8BC4\u5B9A\uFF0C\u4E0D\u53EF\u8FDB\u884C\u6B64\u64CD\u4F5C\u3002"),ve.createElement("div",null,"\uFF08\u5982\u9700\u53D1\u5E03\u65B0\u73ED\u7EA7\u8003\u8BD5\uFF0C\u8BF7\u521B\u5EFA\u65B0\u8BD5\u5377\u540E\u53D1\u5E03\uFF09"));return Ze&&Ue?ve.createElement(dt.Z,{overlayStyle:{maxWidth:"initial"},title:De},ve.createElement("span",{className:Ye.disabled,style:nt},Ze)):Ze&&!Ue?ve.createElement(ve.Fragment,null,Ze):ve.createElement(ve.Fragment,null)}},69720:function(fn,on,we){"use strict";we.d(on,{h:function(){return ye}});var ve=we(59301),Ye=we(82326),dt=we(28284),it=we(99571),at=we(89780),Ze=we.n(at),Ue=we(8336),xt=we(12469),nt=Object.defineProperty,De=Object.defineProperties,wt=Object.getOwnPropertyDescriptors,Ve=Object.getOwnPropertySymbols,ut=Object.prototype.hasOwnProperty,Ee=Object.prototype.propertyIsEnumerable,te=(Ce,ze,Te)=>ze in Ce?nt(Ce,ze,{enumerable:!0,configurable:!0,writable:!0,value:Te}):Ce[ze]=Te,ne=(Ce,ze)=>{for(var Te in ze||(ze={}))ut.call(ze,Te)&&te(Ce,Te,ze[Te]);if(Ve)for(var Te of Ve(ze))Ee.call(ze,Te)&&te(Ce,Te,ze[Te]);return Ce},ue=(Ce,ze)=>De(Ce,wt(ze));const se=Ye.default.Option,de={labelCol:{span:4},wrapperCol:{span:20}},pe={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};on.Z=({callback:Ce,onCancel:ze})=>{const[Te,Ie]=(0,ve.useState)("python");function Oe(rt){Ie(pe[rt][1])}function Re(rt){Ce(rt)}return ve.createElement(dt.default,ue(ne({},de),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:Re,style:{width:500}}),ve.createElement(dt.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},ve.createElement(Ye.default,{getPopupContainer:rt=>rt.parentNode,onChange:Oe},Object.keys(pe).map(rt=>ve.createElement(se,{key:rt,value:rt},pe[rt][0])))),ve.createElement(dt.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},ve.createElement(ye,{mode:Te})),ve.createElement("div",{className:"flex-container flex-end"},ve.createElement(it.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ve.createElement(it.ZP,{type:"ghost",onClick:ze},"\u53D6\u6D88")))};function ye({value:Ce,onChange:ze,mode:Te,options:Ie={}}){const Oe=(0,ve.useRef)(),[Re,rt]=(0,ve.useState)();return(0,ve.useEffect)(()=>{if(Re){let ot=function(Ct){const gt=Ct.getValue();ze&&ze(gt)};return Re.on("change",ot),()=>{Re.off("change",ot)}}},[Re,ze]),(0,ve.useEffect)(()=>{Re&&Re.setOption("mode",Te)},[Re,Te]),(0,ve.useEffect)(()=>{Re&&(Ce!==Re.getValue()||Ce==="")&&setTimeout(()=>{Re.setValue(Ce||"")},300)},[Re,Ce]),(0,ve.useEffect)(()=>{if(Oe.current&&!Re){const ot=Ze().fromTextArea(Oe.current,ne({mode:Te,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},Ie));rt(ot)}},[Oe.current,Re]),ve.createElement("div",{className:"my-codemirror-container"},ve.createElement("textarea",{ref:Oe}))}},39793:function(fn,on,we){"use strict";we.d(on,{Z:function(){return Sr}});var ve=we(59301),Ye=we(89780),dt=we.n(Ye),it=we(76374),at=we(8336),Ze=we(6313),Ue=we(25717),xt=we(99498),nt=we(25419),De=we(67549),wt=we(76902),Ve=({value:Jt="",className:Vt,showTextOnly:It,showLines:Ei,style:Ii={}})=>{const ji=(0,ve.useMemo)(()=>"",[Jt]);return ve.createElement(ve.Fragment,null,ve.createElement("div",{dangerouslySetInnerHTML:{__html:ji}}))},ut=we(59301),Ee=Object.defineProperty,te=Object.defineProperties,ne=Object.getOwnPropertyDescriptors,ue=Object.getOwnPropertySymbols,se=Object.prototype.hasOwnProperty,de=Object.prototype.propertyIsEnumerable,pe=(Jt,Vt,It)=>Vt in Jt?Ee(Jt,Vt,{enumerable:!0,configurable:!0,writable:!0,value:It}):Jt[Vt]=It,ye=(Jt,Vt)=>{for(var It in Vt||(Vt={}))se.call(Vt,It)&&pe(Jt,It,Vt[It]);if(ue)for(var It of ue(Vt))de.call(Vt,It)&&pe(Jt,It,Vt[It]);return Jt},Ce=(Jt,Vt)=>te(Jt,ne(Vt));let ze=[{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 Te({onActionCallback:Jt,title:Vt,icon:It,actionName:Ei,className:Ii="",children:ji}){function Xn(){Jt(Ei)}return ut.createElement("a",{title:Vt,className:Ii,onClick:Xn},ut.createElement("i",{className:`${It}`}),ji)}var Ie=({watch:Jt,showNullButton:Vt,showNullProgramButton:It,onActionCallback:Ei,fullScreen:Ii,insertTemp:ji,hidetoolBar:Xn,extraUse:Ai})=>{const ur=[...ze,{title:`${Jt?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${Jt?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return ut.createElement("ul",{className:"markdown-toolbar-container"},!Xn&&ur.map((Tr,br)=>ut.createElement("li",{key:br},Tr.actionName?ut.createElement(Te,Ce(ye({},Tr),{onActionCallback:Ei})):ut.createElement("span",{className:"v-line"}))),Vt?ut.createElement("li",null,ut.createElement(Te,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Ei},ut.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,It?ut.createElement(ut.Fragment,null,ut.createElement("li",null,ut.createElement(Te,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:Ei},ut.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),ut.createElement("li",null,ut.createElement(Te,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:Ei},ut.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,ji&&ut.createElement("li",null,ut.createElement(Te,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${ji}`,onActionCallback:Ei},ut.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Ai&&ut.createElement("li",null,Ai),ut.createElement("li",{className:"btn-full-screen"},ut.createElement(Te,{icon:`${Ii?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:Ii?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Ei})))},Oe=we(91558),Re=we(28284),rt=we(37568),ot=we(99571),Ct=Object.defineProperty,gt=Object.defineProperties,kt=Object.getOwnPropertyDescriptors,Lt=Object.getOwnPropertySymbols,Ot=Object.prototype.hasOwnProperty,Nt=Object.prototype.propertyIsEnumerable,tn=(Jt,Vt,It)=>Vt in Jt?Ct(Jt,Vt,{enumerable:!0,configurable:!0,writable:!0,value:It}):Jt[Vt]=It,st=(Jt,Vt)=>{for(var It in Vt||(Vt={}))Ot.call(Vt,It)&&tn(Jt,It,Vt[It]);if(Lt)for(var It of Lt(Vt))Nt.call(Vt,It)&&tn(Jt,It,Vt[It]);return Jt},He=(Jt,Vt)=>gt(Jt,kt(Vt));const Rt={labelCol:{span:4},wrapperCol:{span:20}};var Zt=({callback:Jt,onCancel:Vt})=>{function It(Ei){Jt(Ei)}return ve.createElement(Re.default,He(st({},Rt),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:It,style:{width:500}}),ve.createElement(Re.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},ve.createElement(rt.default,null)),ve.createElement(Re.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},ve.createElement(rt.default,null)),ve.createElement("div",{className:"flex-container flex-end"},ve.createElement(ot.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ve.createElement(ot.ZP,{type:"ghost",onClick:Vt},"\u53D6\u6D88")))},_t=we(69720),Mt=we(17077),jt=we(62957),an=we(77019),Dn=we(9507),Dt=we(59301),gn=({callback:Jt,onCancel:Vt})=>{const It=document.createElement("canvas"),Ei=It.getContext("2d");It.width=1e3,It.height=800,Ei.fillStyle="#ffffff",Ei.fillRect(0,0,It.width,It.height);const Ii=It.toDataURL("image/png");return Dt.createElement(jt.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Dt.createElement(an.Z,{style:{height:"100vh"}},Dt.createElement(Dn.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Ii,visible:!0,title:String(Date.now())},onOk:ji=>{Jt({src:ji.url})},onClose:Vt})))},yt=we(12378);function Zn(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(Zn,go.CommandHandler),Zn.prototype.canAlignSelection=function(){var Jt=this.diagram;return!(Jt===null||Jt.isReadOnly||Jt.isModelReadOnly||Jt.selection.count<2)},Zn.prototype.alignLeft=function(){var Jt=this.diagram;Jt.startTransaction("aligning left");var Vt=1/0;Jt.selection.each(function(It){It instanceof go.Link||(Vt=Math.min(It.position.x,Vt))}),Jt.selection.each(function(It){It instanceof go.Link||It.move(new go.Point(Vt,It.position.y))}),Jt.commitTransaction("aligning left")},Zn.prototype.alignRight=function(){var Jt=this.diagram;Jt.startTransaction("aligning right");var Vt=-1/0;Jt.selection.each(function(It){if(!(It instanceof go.Link)){var Ei=It.actualBounds.x+It.actualBounds.width;Vt=Math.max(Ei,Vt)}}),Jt.selection.each(function(It){It instanceof go.Link||It.move(new go.Point(Vt-It.actualBounds.width,It.position.y))}),Jt.commitTransaction("aligning right")},Zn.prototype.alignTop=function(){var Jt=this.diagram;Jt.startTransaction("alignTop");var Vt=1/0;Jt.selection.each(function(It){It instanceof go.Link||(Vt=Math.min(It.position.y,Vt))}),Jt.selection.each(function(It){It instanceof go.Link||It.move(new go.Point(It.position.x,Vt))}),Jt.commitTransaction("alignTop")},Zn.prototype.alignBottom=function(){var Jt=this.diagram;Jt.startTransaction("aligning bottom");var Vt=-1/0;Jt.selection.each(function(It){if(!(It instanceof go.Link)){var Ei=It.actualBounds.y+It.actualBounds.height;Vt=Math.max(Ei,Vt)}}),Jt.selection.each(function(It){It instanceof go.Link||It.move(new go.Point(It.actualBounds.x,Vt-It.actualBounds.height))}),Jt.commitTransaction("aligning bottom")},Zn.prototype.alignCenterX=function(){var Jt=this.diagram,Vt=Jt.selection.first();if(Vt){Jt.startTransaction("aligning Center X");var It=Vt.actualBounds.x+Vt.actualBounds.width/2;Jt.selection.each(function(Ei){Ei instanceof go.Link||Ei.move(new go.Point(It-Ei.actualBounds.width/2,Ei.actualBounds.y))}),Jt.commitTransaction("aligning Center X")}},Zn.prototype.alignCenterY=function(){var Jt=this.diagram,Vt=Jt.selection.first();if(Vt){Jt.startTransaction("aligning Center Y");var It=Vt.actualBounds.y+Vt.actualBounds.height/2;Jt.selection.each(function(Ei){Ei instanceof go.Link||Ei.move(new go.Point(Ei.actualBounds.x,It-Ei.actualBounds.height/2))}),Jt.commitTransaction("aligning Center Y")}},Zn.prototype.alignColumn=function(Jt){var Vt=this.diagram;Vt.startTransaction("align Column"),Jt===void 0&&(Jt=0),Jt=parseFloat(Jt);var It=new Array;Vt.selection.each(function(Ai){Ai instanceof go.Link||It.push(Ai)});for(var Ei=0;Ei<It.length-1;Ei++){var Ii=It[Ei],ji=Ii.actualBounds.y+Ii.actualBounds.height+Jt,Xn=It[Ei+1];Xn.move(new go.Point(Ii.actualBounds.x,ji))}Vt.commitTransaction("align Column")},Zn.prototype.alignRow=function(Jt){Jt===void 0&&(Jt=0),Jt=parseFloat(Jt);var Vt=this.diagram;Vt.startTransaction("align Row");var It=new Array;Vt.selection.each(function(Ai){Ai instanceof go.Link||It.push(Ai)});for(var Ei=0;Ei<It.length-1;Ei++){var Ii=It[Ei],ji=Ii.actualBounds.x+Ii.actualBounds.width+Jt,Xn=It[Ei+1];Xn.move(new go.Point(ji,Ii.actualBounds.y))}Vt.commitTransaction("align Row")},Zn.prototype.canRotate=function(Jt){var Vt=this.diagram;return!(Vt===null||Vt.isReadOnly||Vt.isModelReadOnly||Vt.selection.count<1)},Zn.prototype.rotate=function(Jt){Jt===void 0&&(Jt=90);var Vt=this.diagram;Vt.startTransaction("rotate "+Jt.toString());var Vt=this.diagram;Vt.selection.each(function(It){It instanceof go.Link||It instanceof go.Group||(It.angle+=Jt)}),Vt.commitTransaction("rotate "+Jt.toString())},Zn.prototype.pullToFront=function(){var Jt=this.diagram;Jt.startTransaction("pullToFront");var Vt=new go.Map;Jt.selection.each(function(It){Vt.set(It.layer,0)}),Vt.iteratorKeys.each(function(It){var Ei=0;It.parts.each(function(Ii){if(!Ii.isSelected){var ji=Ii.zOrder;isNaN(ji)?Ii.zOrder=0:Ei=Math.max(Ei,ji)}}),Vt.set(It,Ei)}),Jt.selection.each(function(It){Zn._assignZOrder(It,Vt.get(It.layer)+1)}),Jt.commitTransaction("pullToFront")},Zn.prototype.pushToBack=function(){var Jt=this.diagram;Jt.startTransaction("pushToBack");var Vt=new go.Map;Jt.selection.each(function(It){Vt.set(It.layer,0)}),Vt.iteratorKeys.each(function(It){var Ei=0;It.parts.each(function(Ii){if(!Ii.isSelected){var ji=Ii.zOrder;isNaN(ji)?Ii.zOrder=0:Ei=Math.min(Ei,ji)}}),Vt.set(It,Ei)}),Jt.selection.each(function(It){Zn._assignZOrder(It,Vt.get(It.layer)-1-Zn._findGroupDepth(It))}),Jt.commitTransaction("pushToBack")},Zn._assignZOrder=function(Jt,Vt,It){It===void 0&&(It=Jt),Jt.layer===It.layer&&(Jt.zOrder=Vt),Jt instanceof go.Group&&Jt.memberParts.each(function(Ei){Zn._assignZOrder(Ei,Vt+1,It)})},Zn._findGroupDepth=function(Jt){if(Jt instanceof go.Group){var Vt=0;return Jt.memberParts.each(function(It){Vt=Math.max(Vt,Zn._findGroupDepth(It))}),Vt+1}else return 0},Zn.prototype.doKeyDown=function(){var Jt=this.diagram;if(Jt!==null){var Vt=Jt.lastInput;if(Vt.key==="Up"||Vt.key==="Down"||Vt.key==="Left"||Vt.key==="Right"){var It=this.arrowKeyBehavior;if(It==="none")return;if(It==="select"){this._arrowKeySelect();return}else if(It==="move"){this._arrowKeyMove();return}else if(It==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},Zn.prototype._getAllParts=function(){var Jt=new Array;return this.diagram.nodes.each(function(Vt){Jt.push(Vt)}),this.diagram.parts.each(function(Vt){Jt.push(Vt)}),Jt},Zn.prototype._arrowKeyMove=function(){var Jt=this.diagram,Vt=Jt.lastInput,It=0,Ei=0;if(Vt.control||Vt.meta)It=1,Ei=1;else if(Jt.grid!==null){var Ii=Jt.grid.gridCellSize;Ei=Ii.width,It=Ii.height}Jt.startTransaction("arrowKeyMove"),Jt.selection.each(function(ji){Vt.key==="Up"?ji.move(new go.Point(ji.actualBounds.x,ji.actualBounds.y-It)):Vt.key==="Down"?ji.move(new go.Point(ji.actualBounds.x,ji.actualBounds.y+It)):Vt.key==="Left"?ji.move(new go.Point(ji.actualBounds.x-Ei,ji.actualBounds.y)):Vt.key==="Right"&&ji.move(new go.Point(ji.actualBounds.x+Ei,ji.actualBounds.y))}),Jt.commitTransaction("arrowKeyMove")},Zn.prototype._arrowKeySelect=function(){var Jt=this.diagram,Vt=Jt.lastInput,It=null;Vt.key==="Up"?It=this._findNearestPartTowards(270):Vt.key==="Down"?It=this._findNearestPartTowards(90):Vt.key==="Left"?It=this._findNearestPartTowards(180):Vt.key==="Right"&&(It=this._findNearestPartTowards(0)),It!==null&&(Vt.shift?It.isSelected=!0:Vt.control||Vt.meta?It.isSelected=!It.isSelected:Jt.select(It))},Zn.prototype._findNearestPartTowards=function(Jt){var Vt=this.diagram.selection.first();if(Vt===null)return null;for(var It=Vt.actualBounds.center,Ei=this._getAllParts(),Ii=1/0,ji=Vt,Xn=0;Xn<Ei.length;Xn++){var Ai=Ei[Xn];if(Ai!==Vt&&Ai.canSelect()){var ur=Ai.actualBounds.center,Tr=It.directionPoint(ur),br=this._angleCloseness(Tr,Jt);if(br<=45){var et=It.distanceSquaredPoint(ur);et*=1+Math.sin(br*Math.PI/180),et<Ii&&(Ii=et,ji=Ai)}}}return ji},Zn.prototype._angleCloseness=function(Jt,Vt){return Math.min(Math.abs(Vt-Jt),Math.min(Math.abs(Vt+360-Jt),Math.abs(Vt-360-Jt)))},Zn.prototype._arrowKeyTree=function(){var Jt=this.diagram,Vt=Jt.selection.first();if(Vt instanceof go.Node){var It=Jt.lastInput;if(It.key==="Right"){if(!Vt.isTreeLeaf)if(!Vt.isTreeExpanded)Jt.commandHandler.canExpandTree(Vt)&&Jt.commandHandler.expandTree(Vt);else{var Ei=this._sortTreeChildrenByY(Vt).first();Ei!==null&&Jt.select(Ei)}}else if(It.key==="Left")if(!Vt.isTreeLeaf&&Vt.isTreeExpanded)Jt.commandHandler.canCollapseTree(Vt)&&Jt.commandHandler.collapseTree(Vt);else{var Ii=Vt.findTreeParentNode();Ii!==null&&Jt.select(Ii)}else if(It.key==="Up"){var Ii=Vt.findTreeParentNode();if(Ii!==null){var ji=this._sortTreeChildrenByY(Ii),Xn=ji.indexOf(Vt);if(Xn>0){for(var Ai=ji.elt(Xn-1);Ai!==null&&Ai.isTreeExpanded&&!Ai.isTreeLeaf;){var ur=this._sortTreeChildrenByY(Ai);Ai=ur.last()}Ai!==null&&Jt.select(Ai)}else Jt.select(Ii)}}else if(It.key==="Down")if(Vt.isTreeExpanded&&!Vt.isTreeLeaf){var Ei=this._sortTreeChildrenByY(Vt).first();Ei!==null&&Jt.select(Ei)}else for(;Vt!==null;){var Ii=Vt.findTreeParentNode();if(Ii===null)break;var ji=this._sortTreeChildrenByY(Ii),Xn=ji.indexOf(Vt);if(Xn<ji.length-1){Jt.select(ji.elt(Xn+1));break}else Vt=Ii}var Tr=Jt.selection.first();Tr!==null&&Jt.scrollToRect(Tr.actualBounds)}},Zn.prototype._sortTreeChildrenByY=function(Jt){var Vt=new go.List().addAll(Jt.findTreeChildrenNodes());return Vt.sort(function(It,Ei){var Ii=It.location,ji=Ei.location;return Ii.y<ji.y?-1:Ii.y>ji.y?1:Ii.x<ji.x?-1:Ii.x>ji.x?1:0}),Vt},Zn.prototype.copyToClipboard=function(Jt){go.CommandHandler.prototype.copyToClipboard.call(this,Jt),this._lastPasteOffset.set(this.pasteOffset)},Zn.prototype.pasteFromClipboard=function(){var Jt=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(Jt,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),Jt},Object.defineProperty(Zn.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(Jt){if(Jt!=="move"&&Jt!=="select"&&Jt!=="scroll"&&Jt!=="tree"&&Jt!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+Jt);this._arrowKeyBehavior=Jt}}),Object.defineProperty(Zn.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(Jt){if(!(Jt instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+Jt);this._pasteOffset.set(Jt)}});var vi=Zn,We=we(63720),Fe=we(5269),xe=we(38986),Ne={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},_e=we(48790),be=we(59301),tt=(Jt,Vt,It)=>new Promise((Ei,Ii)=>{var ji=ur=>{try{Ai(It.next(ur))}catch(Tr){Ii(Tr)}},Xn=ur=>{try{Ai(It.throw(ur))}catch(Tr){Ii(Tr)}},Ai=ur=>ur.done?Ei(ur.value):Promise.resolve(ur.value).then(ji,Xn);Ai((It=It.apply(Jt,Vt)).next())});function Xt({onCancel:Jt,callback:Vt}){let It=(0,ve.useRef)(),Ei=(0,ve.useRef)(),Ii=(0,ve.useRef)(),ji=(0,ve.useRef)(!1);const Xn=(0,ve.useRef)(!1),[Ai,ur]=(0,ve.useState)(0);function Tr(){const et=yt.bx.make,Ft={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"};It.current=new yt.S0(Ei.current,{padding:20,grid:et(yt.s_,"Grid",et(yt.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),et(yt.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:ni=>{var Hi=ni.diagram.commandHandler.addTopLevelParts(ni.diagram.selection,!0);Hi||ni.diagram.currentTool.doCancel()},commandHandler:et(vi),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:ni=>{var Hi=ni.subject;Hi.location=Hi.location.copy().snapToGridPoint(ni.diagram.grid.gridOrigin,ni.diagram.grid.gridCellSize),setTimeout(()=>{ni.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:ni=>{var Hi=ni.subject;setTimeout(()=>{ni.diagram.commandHandler.editTextBlock()})},LinkRelinked:ni=>{var Hi=ni.parameter.part;Hi.invalidateConnectedLinks();var Ri=ni.subject;ni.diagram.toolManager.linkingTool.isForwards?Ri.toNode.invalidateConnectedLinks():Ri.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),It.current.nodeTemplate=et(yt.NB,"Auto",{locationSpot:yt.z6.Center,locationObjectName:"SHAPE",desiredSize:new yt.$u(120,60),minSize:new yt.$u(40,40),resizable:!0,resizeCellSize:new yt.$u(10,10),rotatable:!0},new yt.KX("location","loc",yt.E9.parse).makeTwoWay(yt.E9.stringify),new yt.KX("desiredSize","size",yt.$u.parse).makeTwoWay(yt.$u.stringify),et(yt.bn,{name:"SHAPE",fill:Ft.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:yt.z6.AllSides,toSpot:yt.z6.AllSides},new yt.KX("figure"),new yt.KX("fill"),new yt.KX("stroke","borderColor"),new yt.KX("strokeWidth","thickness"),new yt.KX("strokeDashArray","dash")),et(yt.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),et(yt.al,{margin:1,textAlign:"center",overflow:yt.al.OverflowEllipsis,editable:!0},new yt.KX("text").makeTwoWay(),new yt.KX("stroke","color"))),It.current.nodeTemplate.toolTip=et("ToolTip",et(yt.s_,"Vertical",{maxSize:new yt.$u(200,NaN)},et(yt.al,{font:"bold 10pt sans-serif",textAlign:"center"},new yt.KX("text")),et(yt.al,{font:"10pt sans-serif",textAlign:"center"},new yt.KX("text","details"))));function Tn(ni,Hi){var Ri=(Xi,$i)=>{Xi.handled=!0,Xi.diagram.model.commit(Fr=>{var Dr=$i.part.adornedPart,Rr=new yt.E9().setRectSpot(Dr.actualBounds,ni);Rr.subtract(Dr.location),Rr.scale(2,2),Rr.x+=Math.sign(Rr.x)*130,Rr.y+=Math.sign(Rr.y)*130,Rr.add(Dr.location),Rr.snapToGridPoint(Xi.diagram.grid.gridOrigin,Xi.diagram.grid.gridCellSize);var Xr=Fr.copyNodeData(Dr.data);Fr.setGroupKeyForNodeData(Xr,Fr.getGroupKeyForNodeData(Dr.data)),Fr.addNodeData(Xr);var Mn={from:Dr.key,to:Fr.getKeyForNodeData(Xr)};Fr.addLinkData(Mn);var ho=Xi.diagram.findNodeForData(Xr);ho.location=Rr,Xi.diagram.select(ho),setTimeout(()=>{Xi.diagram.commandHandler.editTextBlock()},20)})};return et(yt.bn,{figure:Hi,alignment:ni,alignmentFocus:ni.opposite(),width:ni.equals(yt.z6.Top)||ni.equals(yt.z6.Bottom)?25:18,height:ni.equals(yt.z6.Top)||ni.equals(yt.z6.Bottom)?18:25,fill:"orange",stroke:Ft.white,strokeWidth:4,mouseEnter:(Xi,$i)=>$i.fill="dodgerblue",mouseLeave:(Xi,$i)=>$i.fill="orange",isActionable:!0,click:Ri,contextClick:Ri})}function Yn(ni){return et(yt.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:(Hi,Ri)=>Ri.fill="dodgerblue",mouseLeave:(Hi,Ri)=>Ri.fill="orange",click:(Hi,Ri)=>{Hi.diagram.commandHandler.showContextMenu(Ri.part.adornedPart)}},ni||{})}It.current.nodeTemplate.selectionAdornmentTemplate=et(yt.uz,"Spot",et(yt.Vm,{padding:10}),Tn(yt.z6.Top,"TriangleUp"),Tn(yt.z6.Left,"TriangleLeft"),Tn(yt.z6.Right,"TriangleRight"),Tn(yt.z6.Bottom,"TriangleDown"),Yn({alignment:new yt.z6(.75,0)}));function en(ni,Hi){return(Ri,Xi)=>{Ri.handled=!0,Ri.diagram.model.commit($i=>{$i.set(Xi.part.adornedPart.data,ni,Hi)})}}function Gn(ni,Hi){return Hi||(Hi="color"),et(yt.bn,{width:16,height:16,stroke:"lightgray",fill:ni,margin:1,background:"transparent",mouseEnter:(Ri,Xi)=>Xi.stroke="dodgerblue",mouseLeave:(Ri,Xi)=>Xi.stroke="lightgray",click:en(Hi,ni),contextClick:en(Hi,ni)})}function kn(){return[et("ContextMenuButton",et(yt.s_,"Horizontal",Gn(Ft.white,"fill"),Gn(Ft.beige,"fill"),Gn(Ft.extralightblue,"fill"),Gn(Ft.extralightred,"fill"))),et("ContextMenuButton",et(yt.s_,"Horizontal",Gn(Ft.lightgray,"fill"),Gn(Ft.lightgreen,"fill"),Gn(Ft.lightblue,"fill"),Gn(Ft.lightred,"fill")))]}function _n(){return[et("ContextMenuButton",et(yt.s_,"Horizontal",Gn(Ft.black),Gn(Ft.green),Gn(Ft.blue),Gn(Ft.red))),et("ContextMenuButton",et(yt.s_,"Horizontal",Gn(Ft.white),Gn(Ft.magenta),Gn(Ft.purple),Gn(Ft.orange)))]}function xi(ni,Hi){return Hi||(Hi="thickness"),et(yt.bn,"LineH",{width:16,height:16,strokeWidth:ni,margin:1,background:"transparent",mouseEnter:(Ri,Xi)=>Xi.background="dodgerblue",mouseLeave:(Ri,Xi)=>Xi.background="transparent",click:en(Hi,ni),contextClick:en(Hi,ni)})}function mi(ni,Hi){return Hi||(Hi="dash"),et(yt.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:ni,margin:1,background:"transparent",mouseEnter:(Ri,Xi)=>Xi.background="dodgerblue",mouseLeave:(Ri,Xi)=>Xi.background="transparent",click:en(Hi,ni),contextClick:en(Hi,ni)})}function sn(){return[et("ContextMenuButton",et(yt.s_,"Horizontal",xi(1),xi(2),xi(3),xi(4))),et("ContextMenuButton",et(yt.s_,"Horizontal",mi(null),mi([2,4]),mi([4,4])))]}function ki(ni,Hi){return Hi||(Hi="figure"),et(yt.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:ni,margin:1,background:"transparent",mouseEnter:(Ri,Xi)=>Xi.fill="dodgerblue",mouseLeave:(Ri,Xi)=>Xi.fill="lightgray",click:en(Hi,ni),contextClick:en(Hi,ni)})}It.current.nodeTemplate.contextMenu=et("ContextMenu",et("ContextMenuButton",et(yt.s_,"Horizontal",ki("Rectangle"),ki("RoundedRectangle"),ki("Ellipse"),ki("Diamond"))),et("ContextMenuButton",et(yt.s_,"Horizontal",ki("Parallelogram2"),ki("ManualOperation"),ki("Procedure"),ki("Cylinder1"))),et("ContextMenuButton",et(yt.s_,"Horizontal",ki("Terminator"),ki("CreateRequest"),ki("Document"),ki("TriangleDown"))),kn(),_n(),sn()),It.current.groupTemplate=et(yt.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:yt.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(ni,Hi)=>{var Ri=Hi.addMembers(Hi.diagram.selection,!0);Ri||Hi.diagram.currentTool.doCancel()},avoidable:!1},new yt.KX("location","loc",yt.E9.parse).makeTwoWay(yt.E9.stringify),et(yt.s_,"Auto",{name:"BODY"},et(yt.bn,{parameter1:10,fill:Ft.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:yt.z6.AllSides,toSpot:yt.z6.AllSides},new yt.KX("fill"),new yt.KX("stroke","color"),new yt.KX("strokeWidth","thickness"),new yt.KX("strokeDashArray","dash")),et(yt.Vm,{background:"transparent",margin:20})),et(yt.al,{alignment:yt.z6.Top,alignmentFocus:yt.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new yt.KX("text"),new yt.KX("stroke","color"))),It.current.groupTemplate.selectionAdornmentTemplate=et(yt.uz,"Spot",et(yt.s_,"Auto",et(yt.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),et(yt.Vm,{margin:1.5})),Yn({alignment:yt.z6.TopRight,alignmentFocus:yt.z6.BottomRight})),It.current.groupTemplate.contextMenu=et("ContextMenu",kn(),_n(),sn()),It.current.linkTemplate=et(yt.rU,{layerName:"Foreground",routing:yt.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new yt.KX("fromSpot","fromSpot",yt.z6.parse),new yt.KX("toSpot","toSpot",yt.z6.parse),new yt.KX("fromShortLength","dir",ni=>ni>=1?10:0),new yt.KX("toShortLength","dir",ni=>ni>=1?10:0),new yt.KX("points").makeTwoWay(),et(yt.bn,{strokeWidth:2},new yt.KX("stroke","color"),new yt.KX("strokeWidth","thickness"),new yt.KX("strokeDashArray","dash")),et(yt.bn,{segmentIndex:0,segmentOffset:new yt.E9(15,0),segmentOrientation:yt.rU.OrientAlong,alignmentFocus:yt.z6.Right,figure:"circle",width:10,strokeWidth:0},new yt.KX("fill","color"),new yt.KX("visible","dir",ni=>ni===1)),et(yt.bn,{segmentIndex:-1,segmentOffset:new yt.E9(-10,6),segmentOrientation:yt.rU.OrientPlus90,alignmentFocus:yt.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new yt.KX("fill","color"),new yt.KX("visible","dir",ni=>ni>=1),new yt.KX("width","thickness",ni=>7+3*ni),new yt.KX("height","thickness",ni=>7+3*ni),new yt.KX("segmentOffset","thickness",ni=>new yt.E9(-15,4+1.5*ni))),et(yt.bn,{segmentIndex:0,segmentOffset:new yt.E9(15,-6),segmentOrientation:yt.rU.OrientMinus90,alignmentFocus:yt.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new yt.KX("fill","color"),new yt.KX("visible","dir",ni=>ni===2),new yt.KX("width","thickness",ni=>7+3*ni),new yt.KX("height","thickness",ni=>7+3*ni),new yt.KX("segmentOffset","thickness",ni=>new yt.E9(-15,4+1.5*ni))),et(yt.al,{alignmentFocus:new yt.z6(0,1,-4,0),editable:!0},new yt.KX("text").makeTwoWay(),new yt.KX("stroke","color"))),It.current.linkTemplate.selectionAdornmentTemplate=et(yt.uz,et(yt.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:Cr(2)},new yt.KX("pathPattern","thickness",Cr)),Yn({alignmentFocus:new yt.z6(0,0,-6,-4)}));function Cr(ni){return et(yt.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(ni+4).toString()+" H3"})}function gr(ni){var Hi="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return ni===0?Hi="M0 0 M16 16 M0 8 L16 8":ni===2&&(Hi="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),et(yt.bn,{geometryString:Hi,margin:2,background:"transparent",mouseEnter:(Ri,Xi)=>Xi.background="dodgerblue",mouseLeave:(Ri,Xi)=>Xi.background="transparent",click:en("dir",ni),contextClick:en("dir",ni)})}function dr(ni){var Hi=(Ri,Xi)=>{Ri.handled=!0,Ri.diagram.model.commit($i=>{var Fr=Xi.part.adornedPart;$i.set(Fr.data,ni?"toSpot":"fromSpot",yt.z6.stringify(yt.z6.AllSides)),(ni?Fr.toNode:Fr.fromNode).invalidateConnectedLinks()})};return et(yt.bn,{width:12,height:12,fill:"transparent",mouseEnter:(Ri,Xi)=>Xi.background="dodgerblue",mouseLeave:(Ri,Xi)=>Xi.background="transparent",click:Hi,contextClick:Hi})}function mn(ni,Hi){var Ri=0,Xi=yt.z6.RightSide;ni.equals(yt.z6.Top)?(Ri=270,Xi=yt.z6.TopSide):ni.equals(yt.z6.Left)?(Ri=180,Xi=yt.z6.LeftSide):ni.equals(yt.z6.Bottom)&&(Ri=90,Xi=yt.z6.BottomSide),Hi||(Ri-=180);var $i=(Fr,Dr)=>{Fr.handled=!0,Fr.diagram.model.commit(Rr=>{var Xr=Dr.part.adornedPart;Rr.set(Xr.data,Hi?"toSpot":"fromSpot",yt.z6.stringify(Xi)),(Hi?Xr.toNode:Xr.fromNode).invalidateConnectedLinks()})};return et(yt.bn,{alignment:ni,alignmentFocus:ni.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:Ri,background:"transparent",mouseEnter:(Fr,Dr)=>Dr.background="dodgerblue",mouseLeave:(Fr,Dr)=>Dr.background="transparent",click:$i,contextClick:$i})}It.current.linkTemplate.contextMenu=et("ContextMenu",_n(),sn(),et("ContextMenuButton",et(yt.s_,"Horizontal",gr(0),gr(1),gr(2))),et("ContextMenuButton",et(yt.s_,"Horizontal",et(yt.s_,"Spot",dr(!1),mn(yt.z6.Top,!1),mn(yt.z6.Left,!1),mn(yt.z6.Right,!1),mn(yt.z6.Bottom,!1)),et(yt.s_,"Spot",{margin:new yt.Zt(0,0,0,2)},dr(!0),mn(yt.z6.Top,!0),mn(yt.z6.Left,!0),mn(yt.z6.Right,!0),mn(yt.z6.Bottom,!0)))));const Ir=`{ "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 jr=["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 fo(ni){return console.log("shapeName:",ni),jr.indexOf(ni)>=0}var yn=new yt.YI(Ii.current,{maxSelectionCount:1,linkTemplate:et(yt.rU,{locationSpot:yt.z6.Center,selectionAdornmentTemplate:et(yt.uz,"Link",{locationSpot:yt.z6.Center},et(yt.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),et(yt.bn,{toArrow:"Standard",stroke:null}))},{routing:yt.rU.AvoidsNodes,curve:yt.rU.JumpOver,corner:5,toShortLength:4},new yt.KX("points"),et(yt.bn,{isPanelMain:!0,strokeWidth:2}),et(yt.bn,{toArrow:"Standard",stroke:null})),model:new yt.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...yt.bn.getFigureGenerators().toArray().map(ni=>({text:"\u672A\u547D\u540D",size:"100 100",figure:ni.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return It.current.addDiagramListener("TextEdited",function(ni){var Hi;const Ri=ni.subject.part;var Xi=(Hi=document.activeElement)==null?void 0:Hi.value;typeof Xi=="string"&&Xi.trim()===""&&It.current.model.commit(function($i){$i.set(Ri.data,"text","\u672A\u547D\u540D"),It.current.commandHandler.stopCommand()},"increment")}),yn.nodeTemplate=et(yt.NB,"Auto",{locationSpot:yt.z6.Center},new yt.KX("location","location",yt.E9.parse).makeTwoWay(yt.E9.stringify),et(yt.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 yt.KX("stroke").makeTwoWay(),new yt.KX("fill").makeTwoWay(),new yt.KX("figure")),et(yt.al,{margin:new yt.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new yt.$u(16,16),maxSize:new yt.$u(10,NaN),textAlign:"center",editable:!0},new yt.KX("key").makeTwoWay())),setTimeout(()=>{It.current.grid=et(yt.s_,"Grid",et(yt.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),et(yt.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),It.current.grid.visible=!0,It.current.grid.gridCellStroke="darkgray",It.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=It.current,It.current}const br=()=>tt(this,null,function*(){var et,Ft=It.current.makeImage();const Tn=yield(0,xe.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:Ft.src,file_data:JSON.stringify({login:(et=(0,_e.eY)())==null?void 0:et.login,data:JSON.parse(It.current.model.toJson())})}});Vt({src:Tn.url})});return(0,ve.useEffect)(()=>(setTimeout(()=>{Tr()},500),ur(Ai+1),()=>{It.current=null}),[]),be.createElement("div",{ref:Xn,className:"body-overflow-initial"},be.createElement(jt.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!Ai,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:be.createElement(an.Z,null,be.createElement(Fe.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),be.createElement(Fe.Z,{onClick:()=>{var et,Ft,Tn=It.current.selection.first();if(ji.current=!ji.current,document.activeElement&&Tn){let Yn=(Ft=(et=document.activeElement)==null?void 0:et.value)==null?void 0:Ft.trim();typeof Yn=="string"&&It.current.model.commit(function(en){en.set(Tn.data,"text",Yn||"\u672A\u547D\u540D"),It.current.commandHandler.stopCommand()},"increment")}ur(Ai+1)}},be.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:Jt},be.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative",display:ji.current?"none":"block"},className:Ne.flowChartWrp},be.createElement("div",{style:{display:"flex",height:"100%"}},be.createElement("div",{style:{width:"300px",height:"100%"}},be.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),be.createElement("div",{style:{height:"calc(100% - 50px)"},className:Ne.myPaletteDiv,ref:Ii})),be.createElement("div",{style:{flex:1,position:"relative"}},be.createElement("div",{ref:Ei,style:{height:"80vh"}}))),be.createElement("div",{className:"tr"},be.createElement(ot.ZP,{size:"large",onClick:br,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var Bt=Xt,nn=we(47889),Tt=we(71051);const bt=nn.ZP.Group,zt={margin:"0 8px"};var qt=({callback:Jt,onCancel:Vt})=>{function It(Ei){Jt(Ei)}return ve.createElement(Re.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:It},ve.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},ve.createElement("span",{style:zt},"\u5355\u5143\u683C\u6570\uFF1A"),ve.createElement("span",{style:zt},"\u884C\u6570"),ve.createElement(Re.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},ve.createElement(Tt.Z,null)),ve.createElement("span",{style:zt},"\u5217\u6570"),ve.createElement(Re.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},ve.createElement(Tt.Z,null))),ve.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},ve.createElement("span",{style:zt},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),ve.createElement(Re.default.Item,{name:"align"},ve.createElement(bt,null,ve.createElement(nn.ZP,{value:"default"},ve.createElement("i",{className:"fa fa-align-justify"})),ve.createElement(nn.ZP,{value:"left"},ve.createElement("i",{className:"fa fa-align-left"})),ve.createElement(nn.ZP,{value:"center"},ve.createElement("i",{className:"fa fa-align-center"})),ve.createElement(nn.ZP,{value:"right"},ve.createElement("i",{className:"fa fa-align-right"}))))),ve.createElement("div",{className:"flex-container flex-end"},ve.createElement(ot.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ve.createElement(ot.ZP,{type:"ghost",onClick:Vt},"\u53D6\u6D88")))},pn=we(71411),ei=we(43001),wn=we.n(ei),Ci=(0,ve.forwardRef)(({use3d:Jt,width:Vt,height:It,callback:Ei,showSaveButton:Ii},ji)=>{const Xn=(0,ve.useRef)(),Ai=(0,ve.useRef)(),[ur,Tr]=(0,ve.useState)(!1),br=(0,ve.useRef)({id:Xn,appName:"graphing",width:Vt||1e3,height:It||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,ve.useEffect)(()=>{Ai.current=new(wn())(br.current,!0),window.onload=function(){Ai.current.inject("applet_container")}},[]);const et=()=>{var Ft=window.ggbApplet.getPNGBase64(1,!0,72);return Ei&&Ei(Ft),Ft};return(0,ve.useEffect)(()=>{br.current.appName=ur?"3D":"graphing",Ai.current.inject("applet_container")},[ur]),(0,ve.useEffect)(()=>{Tr(Jt)},[Jt]),(0,ve.useImperativeHandle)(ji,()=>({getImgData:et})),ve.createElement(ve.Fragment,null,ve.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:Xn}),ve.createElement(an.Z,{align:"middle"},ve.createElement(Fe.Z,{flex:1},ve.createElement(pn.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:ur,onChange:Ft=>Tr(Ft)})),ve.createElement(Fe.Z,null,ve.createElement(ot.ZP,{size:"large",onClick:et,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),$n=we(76562),bi=we(6767);const hi="link",Di="upload-image",Gi="add-flowchart",Ji="draw-image",Zr="add-flowchart",qi="code-block",ii="add-table",so="------------",Kr={default:so,left:`:${so}`,center:`:${so}:`,right:`${so}:`};var qr=we(37808);function io(){}let Fo=0;const lo=1e4,Ar="\u2581",ro="@\u2581\u2581@",Le="@\u2581@",xn=`
**\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`,Qn=["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 gi(Jt){return/^\d+$/.test(Jt)?`${Jt}px`:Jt}const ti=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Yi={[ti+"-B"]:"bold",[ti+"-I"]:"italic"},cr={[hi]:"\u6DFB\u52A0\u94FE\u63A5",[qi]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[Di]:"\u6DFB\u52A0\u56FE\u7247",[Ji]:"\u6DFB\u52A0\u753B\u56FE",[Gi]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[ii]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Sr=({defaultValue:Jt="",onChange:Vt,width:It="100%",height:Ei=400,miniToolbar:Ii=!1,isFocus:ji=!1,watch:Xn,insertTemp:Ai,mode:ur="markdown",id:Tr="markdown-editor-id",showResizeBar:br=!1,noStorage:et=!1,showNullButton:Ft=!1,showNullProgramButton:Tn=!1,hidetoolBar:Yn=!1,fullScreen:en=!1,onBlur:Gn,onCMBeforeChange:kn,onFullScreen:_n,className:xi="",disablePaste:mi=!1,disabled:sn=!1,disabledFill:ki=!1,placeholder:Cr="",values:gr="",extraUse:dr})=>{const[mn,Ir]=(0,ve.useState)(null),[jr,fo]=(0,ve.useState)(Jt),[yn,ni]=(0,ve.useState)(Xn),[Hi,Ri]=(0,ve.useState)(en),[Xi,$i]=(0,ve.useState)(""),[Fr,Dr]=(0,ve.useState)(0),[Rr,Xr]=(0,ve.useState)(Ei),[Mn,ho]=(0,ve.useState)(!1),[ln,rr]=(0,ve.useState)(0),[Vr,_r]=(0,ve.useState)(0),Co=(0,ve.useRef)(),Qr=(0,ve.useRef)(),Or=(0,ve.useRef)(),ko=(0,ve.useRef)();(0,ve.useEffect)(()=>{const ke=window.scrollY||window.pageYOffset;fo(gr),mn==null||mn.setValue(gr),window.scrollTo(0,ke)},[gr]),(0,ve.useEffect)(()=>{_n==null||_n(Hi)},[Hi]),(0,ve.useEffect)(()=>{if(Co.current){let ke=function(Je,pt){var Pt;if(mi){pt.preventDefault();return}const $t=pt.clipboardData;if($t){const Qt=$t.types.toString(),dn=$t.items;if(Qt==="Files"||$t.types.indexOf("Files")>-1){if(pt.preventDefault(),ur=="stex")return;try{let Nn=dn[1];((Pt=dn[0])==null?void 0:Pt.kind)==="file"&&(Nn=dn[0]);const jn=Nn.getAsFile(),cn=jn.name.split(".").pop();(0,Mt.I)(jn,qn=>{var ci,vt,Un;qn.id?((ci=jn==null?void 0:jn.type)==null?void 0:ci.indexOf("image"))>-1?ht.replaceSelection(`<img width="100%" src="/api/attachments/${qn.id}?type=${qn.content_type})" alt="" />`):((vt=jn==null?void 0:jn.type)==null?void 0:vt.indexOf("video"))>-1?ht.replaceSelection(`<video width="100%" controls src="/api/attachments/${qn.id}"></video>`):((Un=jn==null?void 0:jn.type)==null?void 0:Un.indexOf("pdf"))>-1?ht.replaceSelection(`<a href="/api/attachments/${qn.id}?type=${jn.type}&disposition=inline" target="_blank">${jn.name}</a>`):Qn.includes(cn)?ht.replaceSelection(`<a href="/api/attachments/${qn.id}?type=office&disposition=inline" target="_blank">${jn.name}</a>`):ht.replaceSelection(`[${jn.name}](/api/attachments/${qn.id}?type=${qn.content_type})`):(qn==null?void 0:qn.status)===401&&(document.location.href="/user/login")})}catch(Nn){bi.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const ht=dt().fromTextArea(Co.current,{mode:ur,lineNumbers:!Ii,lineWrapping:!0,value:Jt,autoCloseTags:!0,autoCloseBrackets:!0});return ht.on("keyup",function(Je,pt){pt.keyCode===8&&(Je.getValue()==""?ht.setOption("placeholder",Cr):ht.setOption("placeholder",null))}),ht.on("keydown",function(Je,pt){if(pt.keyCode===8){var Pt=Cn(Je);Pt&&pt.preventDefault()}}),ji&&ht.focus(),ht.on("paste",ke),sn&&ht.on("beforeChange",function(Je,pt){(pt.origin==="paste"||pt.origin==="+input")&&pt.cancel()}),Ir(ht),()=>{ht.off("paste",ke)}}},[]);const Ht=(0,ve.useCallback)(()=>{if(Qr.current)try{}catch(ke){console.log(ke,"---- to set md editor body height")}},[Rr,Qr,Hi]);(0,ve.useEffect)(()=>{function ke(){let ht=new it.Z(Je=>{for(let pt of Je)(pt.target.offsetHeight>0||pt.target.offsetWidth>0)&&(Ht(),mn.setSize("100%","100%"),mn.refresh())});return ht.observe(Co.current.parentElement),ht}if(mn){const ht=ke();return()=>{var Je,pt;(Je=Co.current)!=null&&Je.parentElement&&ht.unobserve((pt=Co.current)==null?void 0:pt.parentElement)}}},[mn,Ht]),(0,ve.useEffect)(()=>{if(mn){let ke=[];for(const[ht,Je]of Object.entries(Yi)){let pt={[ht]:()=>{Ut(Je)}};ke.push(pt),mn.addKeyMap(pt)}return()=>{for(let ht of ke)mn.removeKeyMap(ht)}}},[mn]),(0,ve.useEffect)(()=>{en!==Hi&&Ri(en)},[en]),(0,qr.Z)(()=>{if(!et&&Fr>0){let ke=new Date().getTime(),ht=window.sessionStorage.getItem(Tr);ke>=Fr+lo&&(!ht||ht!==jr)&&(window.sessionStorage.setItem(Tr,jr),ho(!0))}},lo),(0,ve.useEffect)(()=>{ni(Xn)},[mn,Xn]),(0,ve.useEffect)(()=>{mn&&ji&&mn.focus()},[mn,ji]),(0,ve.useEffect)(()=>{if(yn&&mn){let ke=function(Je){let pt=Je.target;if(ko.current){let Pt=pt.scrollTop/pt.scrollHeight;ko.current.scrollTop=ko.current.scrollHeight*Pt}};const ht=mn.getScrollerElement();return ht.addEventListener("scroll",ke),()=>{ht.removeEventListener("scroll",ke)}}},[mn,yn]),(0,ve.useEffect)(()=>{if(mn&&kn){let ke=function(ht,Je){kn(ht,Je)};return mn.on("beforeChange",ke),()=>{mn.off("beforeChange",ke)}}},[mn,kn]),(0,ve.useEffect)(()=>{if(mn&&Gn){let ke=function(){Gn(mn.getValue())};return mn.on("blur",ke),()=>{mn.off("blur",ke)}}},[mn,Gn]);function Cn(ke,ht){var Je=ke.getDoc(),pt=Je.getCursor(),Pt=Je.getLine(pt.line),$t=Pt.charAt(pt.ch-1),Qt=Pt.lastIndexOf("@\u2581@",pt.ch),dn=Pt.lastIndexOf("@\u2581\u2581@",pt.ch),Nn=Qt>dn?Qt:dn,jn=Qt>dn?3:4;if(ro.indexOf($t)===-1)return null;if(console.log("change1:",ht,ke,Pt,pt,Nn,Qt,dn,$t),Nn>=0&&pt.ch-Nn<5){var cn=Nn+jn;return Je.replaceRange("",{line:pt.line,ch:Nn},{line:pt.line,ch:cn}),{line:pt.line,ch:cn}}return null}(0,ve.useEffect)(()=>{if(mn){let ke=function(ht,Je){const pt=ht.getValue();fo(pt),Dr(new Date().getTime()),ht.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Vt&&(Tn?Vt(pt,Hn(pt)):Vt(pt))};return mn.on("change",ke),()=>{mn.off("change",ke)}}},[mn,Vt]),(0,ve.useEffect)(()=>{if(mn)if(Jt==null)mn.setValue(""),fo("");else{const ke=window.scrollY||window.pageYOffset;Jt!==mn.getValue()&&(mn.setValue(Jt),fo(Jt),mn.setCursor(sn?1:mn.lineCount(),0),window.scrollTo(0,ke))}},[mn,Jt]);const Ut=(0,ve.useCallback)(ke=>{const ht=mn.getCursor(),Je=mn.getSelection();let pt=Je.split(`
`);switch(ke){case"bold":return mn.replaceSelection("**"+Je+"**"),Je===""&&mn.setCursor(ht.line,ht.ch+2),mn.focus();case"italic":return mn.replaceSelection("*"+Je+"*"),Je===""&&mn.setCursor(ht.line,ht.ch+1),mn.focus();case"code":return mn.replaceSelection("`"+Je+"`"),Je===""&&mn.setCursor(ht.line,ht.ch+1),mn.focus();case"inline-latex":return $i("inline-latex"),mn.focus();case"latex":return mn.replaceSelection("```latex\n"+Je+"\n```"),mn.setCursor(ht.line+1,Je.length+1),mn.focus();case"line-break":return mn.replaceSelection(`<br/>
`),mn.focus();case"list-ul":return Je===""?mn.replaceSelection("- "+Je):mn.replaceSelection(pt.map(Pt=>Pt===""?"":`- ${Pt}`).join(`
`)),mn.focus();case"list-ol":return Je===""?mn.replaceSelection("1. "+Je):mn.replaceSelection(pt.map((Pt,$t)=>Pt===""?"":`${$t+1}. ${Pt}`).join(`
`)),mn.focus();case"add-null-ch":return Je===""&&mn.setCursor(ht.line,ht.ch),mn.replaceSelection(Ar),mn.focus();case"add-signal":return Je===""&&mn.setCursor(ht.line,ht.ch),mn.replaceSelection(Le),mn.focus();case"add-multiple":return Je===""&&mn.setCursor(ht.line,ht.ch),mn.replaceSelection(ro),mn.focus();case"inster-template-1":return Je===""&&mn.setCursor(ht.line,ht.ch),mn.replaceSelection(xn),mn.focus();case"eraser":return mn.setValue(""),mn.focus();case"trigger-watch":return ni(!yn),mn.focus();case"trigger-full-screen":return Ri(!Hi),mn.focus();case hi:$i(hi);return;case qi:$i(qi);return;case Di:$i(Di);return;case Ji:$i(Ji);return;case"maths-latex":$i("maths-latex");return;case Gi:$i(Gi);return;case ii:$i(ii);return;default:throw new Error}},[mn,yn,Hi]),je=(0,ve.useCallback)((ke,ht)=>{var Je,pt,Pt,$t,Qt,dn;switch($i(""),Xi){case hi:const{title:ci,link:vt}=ke;return mn.replaceSelection(`[${ci}](${vt})`),mn.focus();case qi:const{language:Un,content:Jn}=ke;return mn.replaceSelection(["```"+Un,Jn,"```"].join(`
`)),mn.focus();case"maths-latex":for(var Nn=atob(ke),jn=new Uint8Array(Nn.length),cn=0;cn<Nn.length;cn++)jn[cn]=Nn.charCodeAt(cn);var qn=new Blob([jn],{type:"image/png"});(0,Mt.I)(qn,pr=>{pr.id?mn.replaceSelection(`![,](/api/attachments/${pr.id}?type=${pr.content_type})`):(pr==null?void 0:pr.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":mn.replaceSelection("`$$"+ke+"$$`");break;case Di:case Ji:case Zr:const{src:In,alt:zn}=ke,oi=ht,Wn=(Pt=(pt=(Je=oi==null?void 0:oi.name)==null?void 0:Je.split("."))==null?void 0:pt.pop)==null?void 0:Pt.call(pt);return(($t=oi==null?void 0:oi.type)==null?void 0:$t.indexOf("image"))>-1||!(oi!=null&&oi.type)?oi!=null&&oi.align||oi!=null&&oi.width?mn.replaceSelection(`<p style="text-align:${oi.align||"initial"}"><img width="${oi.width?oi.width+"%":"initial"}" src="${In}" alt="${zn||""}" /></p>`):mn.replaceSelection(`<img width="100%" src="${In}" alt="${zn||""}" />`):((Qt=oi==null?void 0:oi.type)==null?void 0:Qt.indexOf("video"))>-1?mn.replaceSelection(`<video width="100%" controls src="${In}"></video>`):((dn=oi==null?void 0:oi.type)==null?void 0:dn.indexOf("pdf"))>-1?mn.replaceSelection(`<a href="${In}?type=${oi.type}&disposition=inline" target="_blank">${oi.name}</a>`):Qn.includes(Wn)?mn.replaceSelection(`<a href="${In}?type=office&disposition=inline" target="_blank">${oi.name}</a>`):mn.replaceSelection(`[${oi.name}](${In})`),mn.focus();case ii:const{row:fi,col:pi,align:ai}=ke;let Wi=`
`;for(let pr=0;pr<fi;pr++){let or=[],tr=[];for(let Pi=0;Pi<pi;Pi++)pr===1&&tr.push(Kr[ai]),or.push(" ");pr===1&&(Wi+=`| ${tr.join(" | ")} |
`),Wi+=`| ${or.join(pi===1?"":" | ")} |
`}return mn.replaceSelection(Wi+`
`),mn.focus();default:throw new Error}},[mn,Xi]),ri=(0,ve.useMemo)(()=>{switch(Xi){case hi:return ve.createElement(Zt,{callback:je,onCancel:Si});case qi:return ve.createElement(_t.Z,{callback:je,onCancel:Si});case Di:return ve.createElement(Mt.Z,{callback:je,onCancel:Si});case Gi:return ve.createElement(Bt,{callback:je,onCancel:Si});case ii:return ve.createElement(qt,{callback:je,onCancel:Si});case"maths-latex":return ve.createElement(Ci,{showSaveButton:!0,callback:je});case"inline-latex":return ve.createElement($n.Z,{showSaveButton:!0,callback:je});default:return null}},[Xi]);function Si(){$i("")}(0,ve.useEffect)(()=>{if(Or.current){let ke=function(Qt){Pt=!0,$t=Qt.pageY},ht=function(){Pt=!1},Je=function(Qt){if(Pt){let dn=Qt.pageY-$t;dn<0&&(dn=0),dn>300&&(dn=300);let Nn=Ei+dn+"px";Xr(Nn)}},pt=Or.current,Pt=!1,$t=0;return pt.addEventListener("mousedown",ke),document.addEventListener("mousemove",Je),document.addEventListener("mouseup",ht),()=>{pt.removeEventListener("mousedown",ke),document.removeEventListener("mousemove",Je),document.removeEventListener("mouseup",ht)}}},[mn,Or]),(0,ve.useEffect)(()=>{Xr(Ei)},[Ei]);const $e=gi(It),rn=gi(Rr),Wt={width:$e,height:rn},Kt=(0,ve.useMemo)(()=>{if(Fr){let ke=new Date(Fr),ht=ke.getHours(),Je=ke.getMinutes(),pt=ke.getSeconds();return ht=ht<10?"0"+ht:ht,Je=Je<10?"0"+Je:Je,pt=pt<10?"0"+pt:pt,`${ht}:${Je}:${pt}`}return 0},[Fr]),Hn=ke=>{const ht=[];if(Tn){let Je=-1;ke=ke.replace(/(@▁▁@|@▁@)/g,function(pt,Pt,$t){ht.push({multiLine:pt!==Le})})}return ht};function Bn(){window.sessionStorage.removeItem(Tr),ho(!1),Dr(0)}function un(){ho(!1),Dr(0),mn.setValue(window.sessionStorage.getItem(Tr))}(0,ve.useEffect)(()=>{cr[Xi]&&Xi!==Ji&&Xi!==Gi&&setTimeout(()=>{const ke=document.getElementsByClassName("markdown-popup-form")[0],ht=window.innerWidth/2-ke.offsetWidth/2,Je=window.innerHeight/2-ke.offsetHeight/2;rr(ht),_r(Je)},0)},[Xi]);const On=ke=>{ke.preventDefault();const ht=ke.clientX-ln,Je=ke.clientY-Vr;document.body.onmousemove=pt=>{let Pt=pt.clientX-ht,$t=pt.clientY-Je;const Qt=document.getElementsByClassName("markdown-popup-form")[0],dn=window.innerWidth-Qt.offsetWidth,Nn=window.innerHeight-Qt.offsetHeight;Pt=Math.max(0,Math.min(Pt,dn)),$t=Math.max(0,Math.min($t,Nn)),li(pt.clientX,pt.clientY,ht,Je)&&(rr(Pt),_r($t))},document.body.onmouseup=function(){document.body.onmousemove=null}},li=(ke,ht,Je,pt)=>{const Pt=document.body.clientHeight,$t=document.body.clientWidth;return ke<20&&Je>ke||ke>$t-20&&Je<ke||ht<20&&pt>ht||ht>Pt-20&&pt<ht?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return ve.createElement(ve.Fragment,null,ve.createElement("div",{className:"markdown-editor-wrapper",ref:Qr},ve.createElement("div",{className:`markdown-editor-container ${xi} ${yn?"on-preview":""} ${Ii?"mini":""} ${Hi?"full-screen":""}`,style:Wt},ve.createElement(Ie,{insertTemp:Ai,watch:yn,fullScreen:Hi,showNullButton:Ft,showNullProgramButton:Tn,onActionCallback:Ut,hidetoolBar:Yn,extraUse:dr}),ve.createElement("div",{className:"markdown-editor-body"},ve.createElement("div",{className:"codemirror-container"},ve.createElement("textarea",{ref:Co,placeholder:Cr})),yn?ve.createElement("div",{ref:ko,className:"preview-container"},ur==="stex"&&ve.createElement(Ve,{value:jr}),ur!=="stex"&&ve.createElement(wt.Z,{disabledFill:ki,showProgramFill:Tn,value:jr})):null))),br?ve.createElement("a",{ref:Or,className:"editor-resize"}):null,Xi===Ji&&ve.createElement(gn,{callback:je,onCancel:Si}),Xi===Gi&&ve.createElement(Bt,{callback:je,onCancel:Si}),ve.createElement(Oe.Z,null,cr[Xi]&&Xi!==Ji&&Xi!==Gi?ve.createElement(jt.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:ln,top:Vr},title:ve.createElement("div",{style:{cursor:"move"},onMouseDown:On},cr[Xi]),open:!0,onCancel:Si,footer:null,destroyOnClose:!0,width:Xi===Gi?"1200px":null,height:Xi===Gi?"80vh":null,className:"markdown-popup-form"},ri):null))}},17077:function(fn,on,we){"use strict";we.d(on,{Z:function(){return ze},I:function(){return Ie}});var ve=we(28284),Ye=we(6767),dt=we(37568),it=we(77736),at=we(71051),Ze=we(47889),Ue=we(99571),xt=we(46699),nt=we(59301),De=we(59301),wt=Object.defineProperty,Ve=Object.defineProperties,ut=Object.getOwnPropertyDescriptors,Ee=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,ue=(Oe,Re,rt)=>Re in Oe?wt(Oe,Re,{enumerable:!0,configurable:!0,writable:!0,value:rt}):Oe[Re]=rt,se=(Oe,Re)=>{for(var rt in Re||(Re={}))te.call(Re,rt)&&ue(Oe,rt,Re[rt]);if(Ee)for(var rt of Ee(Re))ne.call(Re,rt)&&ue(Oe,rt,Re[rt]);return Oe},de=(Oe,Re)=>Ve(Oe,ut(Re));const{useForm:pe}=ve.default,ye={width:280,marginRight:10},Ce={labelCol:{span:5},wrapperCol:{span:19}};var ze=({callback:Oe,onCancel:Re})=>{const[rt]=pe();let ot=(0,nt.useRef)();function Ct(Lt){ot.current.width=rt.getFieldValue("width"),ot.current.align=rt.getFieldValue("align"),Oe(Lt,ot.current)}function gt(Lt,Ot){if(Lt.status===-1){Ye.ZP.error(Lt.message);return}rt.setFieldsValue({src:`/api/attachments/${Lt.id}`,type:Ot.type})}function kt(Lt){let Ot=Lt.target.files[0];ot.current=Ot,Ie(Ot,gt)}return De.createElement(ve.default,de(se({form:rt},Ce),{className:"upload-image-panel",onFinish:Ct,style:{width:470,overflow:"hidden"}}),De.createElement(ve.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},De.createElement("div",{className:"flex-container"},De.createElement(ve.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},De.createElement(dt.default,{style:ye})),De.createElement(Te,{onFileChange:kt}))),De.createElement(ve.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},De.createElement(dt.default,{style:{width:264}})),De.createElement(ve.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},De.createElement(it.Z,null,De.createElement(ve.default.Item,{name:"width",style:{margin:0}},De.createElement(at.Z,{style:{width:264}})),De.createElement("span",{className:"ml8"},"%"))),De.createElement(ve.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},De.createElement(Ze.ZP.Group,{name:"align",defaultValue:1,options:[{value:"left",label:"\u5DE6\u5BF9\u9F50"},{value:"center",label:"\u5C45\u4E2D\u5BF9\u9F50"},{value:"right",label:"\u53F3\u5BF9\u9F50"}]})),De.createElement("aside",null,De.createElement(ve.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},De.createElement(Ue.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),De.createElement(Ue.ZP,{type:"default",onClick:Re},"\u53D6\u6D88"))))};function Te({onFileChange:Oe}){return De.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",De.createElement("input",{type:"file",onChange:Oe}))}function Ie(Oe,Re){if(!Oe)throw new String("\u6CA1\u6709\u6587\u4EF6");let rt=new FormData;rt.append("editormd-image-file",Oe),rt.append("file_param_name","editormd-image-file"),rt.append("byxhr","true");var ot=new window.XMLHttpRequest;ot.withCredentials=!0,ot.addEventListener("load",function(Ct){Re(JSON.parse(Ct.target.responseText),Oe)},!1),ot.addEventListener("error",function(Ct){console.error(Ct)},!1),ot.open("POST",`${xt.KI}/api/attachments.json`),ot.send(rt)}},91558:function(fn,on,we){"use strict";we.d(on,{Z:function(){return dt}});var ve=we(59301),Ye=we(4676);class dt extends ve.Component{constructor(at){super(at);const Ze=window.document;this.node=Ze.createElement("div"),Ze.body.appendChild(this.node)}render(){const{children:at}=this.props;return(0,Ye.createPortal)(at,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},75975:function(fn,on,we){"use strict";we.d(on,{SV:function(){return Xt},ZP:function(){return tt}});var ve=we(59301),Ye=we(76374);const dt={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"]},it={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"]},at={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(`
`)}]},Ze={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(`
`)}]},Ue={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 xt=we(53184),nt=we.n(xt),De=Object.defineProperty,wt=Object.defineProperties,Ve=Object.getOwnPropertyDescriptors,ut=Object.getOwnPropertySymbols,Ee=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable,ne=(Bt,nn,Tt)=>nn in Bt?De(Bt,nn,{enumerable:!0,configurable:!0,writable:!0,value:Tt}):Bt[nn]=Tt,ue=(Bt,nn)=>{for(var Tt in nn||(nn={}))Ee.call(nn,Tt)&&ne(Bt,Tt,nn[Tt]);if(ut)for(var Tt of ut(nn))te.call(nn,Tt)&&ne(Bt,Tt,nn[Tt]);return Bt},se=(Bt,nn)=>wt(Bt,Ve(nn)),de=(Bt,nn,Tt)=>new Promise((bt,zt)=>{var qt=wn=>{try{ei(Tt.next(wn))}catch(Fn){zt(Fn)}},pn=wn=>{try{ei(Tt.throw(wn))}catch(Fn){zt(Fn)}},ei=wn=>wn.done?bt(wn.value):Promise.resolve(wn.value).then(qt,pn);ei((Tt=Tt.apply(Bt,nn)).next())});const pe={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"]}},ye=(Bt,nn)=>nn.map(Tt=>({label:Tt,kind:Bt.languages.CompletionItemKind.Keyword,insertText:Tt})),Ce=Bt=>Object.keys(pe.tables).map(nn=>({label:nn,kind:Bt.languages.CompletionItemKind.Variable,insertText:nn})),ze=(Bt,nn)=>{const Tt=pe.tables[Bt];return Tt?Tt.map(bt=>({label:bt,kind:nn.languages.CompletionItemKind.Field,insertText:bt})):[]};function Te(Bt,nn,Tt,bt,zt){let qt=nn.getWordUntilPosition(Tt),pn={startLineNumber:Tt.lineNumber,endLineNumber:Tt.lineNumber,startColumn:qt.startColumn,endColumn:qt.endColumn},ei=bt.map(wn=>({label:wn,kind:Bt.languages.CompletionItemKind.Keyword,insertText:wn,insertTextRules:Bt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:pn}));return zt.map(wn=>{ei.push(se(ue({},wn),{range:pn}))}),ei}var Ie=Bt=>{pe.languages.map(zt=>(Bt.languages.registerDocumentFormattingEditProvider(zt,{provideDocumentFormattingEdits(qt,pn,ei){return de(this,null,function*(){const wn=nt()(qt.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:qt.getFullModelRange(),text:wn}]})}}),zt));const nn=at.quickKey.map(zt=>({label:zt.label,kind:Bt.languages.CompletionItemKind.Method,insertText:zt.content,insertTextRules:Bt.languages.CompletionItemInsertTextRule.InsertAsSnippet})),Tt=Ze.quickKey.map(zt=>({label:zt.label,kind:Bt.languages.CompletionItemKind.Method,insertText:zt.content,insertTextRules:Bt.languages.CompletionItemInsertTextRule.InsertAsSnippet})),bt=it.quickKey.map(zt=>({label:zt.label,kind:Bt.languages.CompletionItemKind.Method,insertText:zt.content,insertTextRules:Bt.languages.CompletionItemInsertTextRule.InsertAsSnippet}));Bt.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(zt,qt){var pn=zt.getWordUntilPosition(qt),ei={startLineNumber:qt.lineNumber,endLineNumber:qt.lineNumber,startColumn:pn.startColumn,endColumn:pn.endColumn},wn=zt.getLineContent(qt.lineNumber).substring(pn.startColumn-2,pn.endColumn);return{suggestions:[...at.keywords.map(Fn=>({label:Fn,kind:Bt.languages.CompletionItemKind.Function,documentation:Fn,insertText:Fn,insertTextRules:Bt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ei})),...at.quickKey.map(Fn=>({label:Fn.label,kind:Bt.languages.CompletionItemKind.Function,documentation:Fn.content,insertText:wn.startsWith("#")?Fn.content.replace(/#/,""):Fn.content,insertTextRules:Bt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ei}))]}}}),Bt.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(zt,qt){var pn=zt.getWordUntilPosition(qt),ei={startLineNumber:qt.lineNumber,endLineNumber:qt.lineNumber,startColumn:pn.startColumn,endColumn:pn.endColumn};return{suggestions:[...dt.keywords.map(wn=>({label:wn,kind:Bt.languages.CompletionItemKind.Function,documentation:wn,insertText:wn,insertTextRules:Bt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ei}))]}}}),Bt.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(zt,qt){var pn=zt.getWordUntilPosition(qt),ei={startLineNumber:qt.lineNumber,endLineNumber:qt.lineNumber,startColumn:pn.startColumn,endColumn:pn.endColumn},wn=zt.getLineContent(qt.lineNumber).substring(pn.startColumn-2,pn.endColumn);return{suggestions:[...it.keywords.map(Fn=>({label:Fn,kind:Bt.languages.CompletionItemKind.Function,documentation:Fn,insertText:Fn,insertTextRules:Bt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ei})),...it.quickKey.map(Fn=>({label:Fn.label,kind:Bt.languages.CompletionItemKind.Function,documentation:Fn.content,insertText:wn.startsWith("#")?Fn.content.replace(/#/,""):Fn.content,insertTextRules:Bt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ei}))]}}}),Bt.languages.registerCompletionItemProvider("scala",{provideCompletionItems:function(zt,qt){var pn=zt.getWordUntilPosition(qt),ei={startLineNumber:qt.lineNumber,endLineNumber:qt.lineNumber,startColumn:pn.startColumn,endColumn:pn.endColumn},wn=zt.getLineContent(qt.lineNumber).substring(pn.startColumn-2,pn.endColumn);return{suggestions:[...Ue.keywords.map(Fn=>({label:Fn,kind:Bt.languages.CompletionItemKind.Function,documentation:Fn,insertText:Fn,insertTextRules:Bt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ei})),...Ue.quickKey.map(Fn=>({label:Fn.label,kind:Bt.languages.CompletionItemKind.Function,documentation:Fn.content,insertText:wn.startsWith("#")?Fn.content.replace(/#/,""):Fn.content,insertTextRules:Bt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ei}))]}}}),Bt.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(zt,qt){var pn=zt.getWordUntilPosition(qt),ei={startLineNumber:qt.lineNumber,endLineNumber:qt.lineNumber,startColumn:pn.startColumn,endColumn:pn.endColumn},wn=zt.getLineContent(qt.lineNumber).substring(pn.startColumn-2,pn.endColumn);return{suggestions:[...Ze.keywords.map(Fn=>({label:Fn,kind:Bt.languages.CompletionItemKind.Function,documentation:Fn,insertText:Fn,insertTextRules:Bt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ei})),...Ze.quickKey.map(Fn=>({label:Fn.label,kind:Bt.languages.CompletionItemKind.Function,documentation:Fn.content,insertText:wn.startsWith("#")?Fn.content.replace(/#/,""):Fn.content,insertTextRules:Bt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ei}))]}}})};const Oe="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var Re=Object.defineProperty,rt=(Bt,nn,Tt)=>nn in Bt?Re(Bt,nn,{enumerable:!0,configurable:!0,writable:!0,value:Tt}):Bt[nn]=Tt,ot=(Bt,nn,Tt)=>rt(Bt,typeof nn!="symbol"?nn+"":nn,Tt);const Ct=class wx{constructor(nn,Tt,bt){this.placeholder=nn,this.editor=Tt,this.monaco=bt,Tt.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return wx.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)}};ot(Ct,"ID","editor.widget.placeholderHint");var kt=Ct,Lt=we(96236),Ot=we(6767),Nt=we(25399),tn=we(89392),st=we(49535),He=we(56102),Rt=Object.defineProperty,Zt=Object.defineProperties,_t=Object.getOwnPropertyDescriptors,Mt=Object.getOwnPropertySymbols,jt=Object.prototype.hasOwnProperty,an=Object.prototype.propertyIsEnumerable,Dn=(Bt,nn,Tt)=>nn in Bt?Rt(Bt,nn,{enumerable:!0,configurable:!0,writable:!0,value:Tt}):Bt[nn]=Tt,Dt=(Bt,nn)=>{for(var Tt in nn||(nn={}))jt.call(nn,Tt)&&Dn(Bt,Tt,nn[Tt]);if(Mt)for(var Tt of Mt(nn))an.call(nn,Tt)&&Dn(Bt,Tt,nn[Tt]);return Bt},gn=(Bt,nn)=>Zt(Bt,_t(nn)),yt=(Bt,nn)=>{var Tt={};for(var bt in Bt)jt.call(Bt,bt)&&nn.indexOf(bt)<0&&(Tt[bt]=Bt[bt]);if(Bt!=null&&Mt)for(var bt of Mt(Bt))nn.indexOf(bt)<0&&an.call(Bt,bt)&&(Tt[bt]=Bt[bt]);return Tt},Zn=(Bt,nn,Tt)=>new Promise((bt,zt)=>{var qt=wn=>{try{ei(Tt.next(wn))}catch(Fn){zt(Fn)}},pn=wn=>{try{ei(Tt.throw(wn))}catch(Fn){zt(Fn)}},ei=wn=>wn.done?bt(wn.value):Promise.resolve(wn.value).then(qt,pn);ei((Tt=Tt.apply(Bt,nn)).next())});function vi(Bt){return/^\d+$/.test(Bt)?`${Bt}px`:Bt}function We(){}let Fe=!1;const xe={"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 Ne(Bt=[]){let nn=Bt;if(Array.isArray(Bt)){for(let Tt=0;Tt<Bt.length;Tt++){let bt=xe[Bt[Tt]];if(bt)return bt}return nn[0]}return xe[nn]||nn}let _e=null;const be=()=>Zn(void 0,null,function*(){try{yield navigator.clipboard.writeText(" "),console.log("\u5185\u5BB9\u5DF2\u81EA\u52A8\u590D\u5236\u5230\u526A\u8D34\u677F:")}catch(Bt){console.error("\u81EA\u52A8\u590D\u5236\u5931\u8D25:",Bt)}});var tt=Bt=>{var nn=Bt,{width:Tt="100%",height:bt="100%",value:zt,language:qt="javascript",style:pn={},options:ei={},overrideServices:wn={},theme:Fn="vs-dark",onEditBlur:Ci,isCopy:$n=!1,onSave:bi,autoHeight:hi=!1,forbidCopy:Di=!1,onChange:Gi=We,editorDidMount:Ji=We,onFocus:Zr=We,onBreakPoint:qi=We,breakPointValue:ii=[],filename:so="educoder.txt",errorLine:Kr,errorContent:qr="",highlightLine:io,openBreakPoint:Fo=!1,placeholder:lo="",showMiniMap:Ar=!0}=nn,ro=yt(nn,["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 Le=(0,ve.useRef)(),xn=(0,ve.useRef)({}),Qn=(0,ve.useRef)(),gi=(0,ve.useRef)(),yi=(0,ve.useRef)([]),ti=(0,ve.useRef)(!1),Yi=(0,ve.useRef)(),cr=(0,ve.useRef)(),Sr=(0,ve.useRef)(!1),[Jt,Vt]=(0,ve.useState)(!1);function It(){let kn;return Le.current&&(kn=new Ye.Z(_n=>{for(let xi of _n)(xi.target.offsetHeight>0||xi.target.offsetWidth>0)&&xn.current.instance.layout()}),kn.observe(Le.current)),kn}function Ei(){Ot.ZP.warning({content:decodeURIComponent(Oe),key:"monaco-editor-tip"})}const Ii=()=>{let kn=xn.current.instance;if(zt!=null&&kn&&Jt){const _n=kn.getModel();_n&&zt!==_n.getValue()&&(Fe=!0,_n.setValue(zt),kn.layout(),Fe=!1)}};(0,ve.useEffect)(()=>{const kn=st.Z.subscribe("formatDocument",_n=>{var xi;let mi=xn.current.instance;(xi=mi==null?void 0:mi.getAction)==null||xi.call(mi,"editor.action.formatDocument").run()});return window.updateMonacoValue=_n=>{Gi(_n)},kn},[]),(0,ve.useEffect)(()=>{var kn;let _n=xn.current.instance;gi.current&&clearTimeout(gi.current),gi.current=setTimeout(()=>{Ii()},500),zt&&(zt!=null&&zt.length)&&((kn=_n==null?void 0:_n.updateOptions)==null||kn.call(_n,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(zt.split(/\r\n|\r|\n/g).length))+3,5)}))},[zt,Jt,xn.current]),(0,ve.useEffect)(()=>{if(Kr&&xn.current&&xn.current.instance){let _n=xn.current.instance;_n.changeViewZones(function(xi){var mi=document.createElement("div");mi.style.padding="10px 20px",mi.style.width="calc(100% - 20px)",mi.className="my-error-line-wrp",mi.innerHTML=qr,xi.addZone({afterLineNumber:Kr||11,heightInLines:3,domNode:mi})});var kn={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}};_n.addOverlayWidget(kn),_n.revealPositionInCenter({lineNumber:20,column:1})}},[Kr,xn.current,Jt]);const ji=(kn="",_n)=>{if(!kn||kn.trim()==="")return!0;const mi=xn.current.instance.getModel().getLineTokens(_n);let sn=!1;for(let ki=0;ki<2;ki++)mi.getStandardTokenType(ki)===1&&(sn=!0);return sn};(0,ve.useEffect)(()=>{var kn;const _n=(kn=xn.current)==null?void 0:kn.instance;if(_n&&Jt&&Di){const xi=_n.onDidBlurEditorWidget(()=>{Sr.current=!1}),mi=_n.onDidFocusEditorText(()=>{Sr.current=!0});return()=>{xi.dispose(),mi.dispose()}}},[xn.current,Jt,Di]),(0,ve.useEffect)(()=>{var kn;if((kn=xn.current)!=null&&kn.instance&&Jt&&Fo){let _n=xn.current.instance,xi=_n.getModel();if(!xi)return;(()=>{var ni;let Hi=[],Ri=[];const Xi=xi.getAllDecorations();for(let Fr of Xi)Fr.options.className==="highlighted-line"&&(Hi.push((ni=Fr==null?void 0:Fr.range)==null?void 0:ni.startLineNumber),Ri.push(Fr==null?void 0:Fr.id));if(io===Hi[0])return;xi.deltaDecorations(Ri,[]);const $i=xi.getLineCount();io&&io<=$i&&(_n.deltaDecorations([],[{range:new _e.Range(io,1,io,xi.getLineMaxColumn(io)),options:{isWholeLine:!0,className:"highlighted-line"}}]),_n.revealLineInCenter(io))})();const sn=(ni=!1)=>{var Hi;let Ri=[],Xi=[];const $i=xi.getAllDecorations();for(let Fr of $i)Fr.options.linesDecorationsClassName==="breakpoints-select"&&(Ri.push((Hi=Fr==null?void 0:Fr.range)==null?void 0:Hi.startLineNumber),Xi.push(Fr==null?void 0:Fr.id));if(ni)return{lines:Ri,ids:Xi};qi(Ri)},ki=ni=>Zn(void 0,null,function*(){let Hi={range:new _e.Range(ni,1,ni,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield xi.deltaDecorations([],[Hi]),sn()}),Cr=ni=>Zn(void 0,null,function*(){let Hi=[];const Ri=_n.getLineDecorations(ni);for(let Xi of Ri)Xi.options.linesDecorationsClassName==="breakpoints-select"&&Hi.push(Xi.id);yield xi.deltaDecorations(Hi,[]),sn()}),gr=ni=>{let Hi=_n.getLineDecorations(ni);for(let Ri of Hi)if(Ri.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,tn.isEqual)(ii,sn(!0).lines)){xi.deltaDecorations(sn(!0).ids,[]);const ni=ii.map(Hi=>({range:new _e.Range(Hi,1,Hi,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));xi.deltaDecorations([],ni)}const dr=_n.onDidChangeModelContent(ni=>{let Hi=_n.getPosition();if(Hi){let Ri=Hi.lineNumber;clearTimeout(cr.current),cr.current=setTimeout(()=>{ji(xi.getLineContent(Ri),Ri)?Cr(Ri):gr(Ri)?(Cr(Ri),ki(Ri)):sn()},100)}}),mn=_n.onMouseDown(ni=>{var Hi,Ri,Xi;if(ni.target.detail&&((Xi=(Ri=(Hi=ni.target)==null?void 0:Hi.element)==null?void 0:Ri.className)!=null&&Xi.includes("line-numbers"))){let $i=ni.target.position.lineNumber;if(ji(xi.getLineContent($i),$i))return;gr($i)?Cr($i):ki($i)}}),Ir=ni=>{let Hi={range:new _e.Range(ni,1,ni,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};yi.current=_n.deltaDecorations(yi.current,[Hi])},jr=()=>{yi.current=_n.deltaDecorations(yi.current,[])},fo=_n.onMouseMove(ni=>{var Hi,Ri,Xi;if(jr(),ni.target.detail&&((Xi=(Ri=(Hi=ni.target)==null?void 0:Hi.element)==null?void 0:Ri.className)!=null&&Xi.includes("line-numbers"))){let $i=ni.target.position.lineNumber;if(ji(xi.getLineContent($i),$i))return;Ir($i)}}),yn=_n.onMouseLeave(()=>{jr()});return()=>{dr.dispose(),mn.dispose(),fo.dispose(),yn.dispose()}}},[xn.current,Jt,ii,io,Fo,qt]),(0,ve.useEffect)(()=>{var kn;(kn=xn.current)!=null&&kn.instance&&Fo&&xn.current.instance.setPosition({lineNumber:0,column:0})},[io]);function Xn(){let kn=xn.current.instance;if(kn){const _n=kn.getSelection(),xi=xn.current.pastePos||{},mi=new _e.Range(xi.startLineNumber||_n.endLineNumber,xi.startColumn||_n.endColumn,xi.endLineNumber||_n.endLineNumber,xi.endColumn||_n.endColumn);setTimeout(()=>{kn.executeEdits("",[{range:mi,text:""}])},300)}}function Ai(kn){(window.navigator.platform.match("Mac")?kn.metaKey:kn.ctrlKey)&&kn.keyCode==83&&(kn.preventDefault(),bi())}const ur=()=>{if(hi&&xn.current.instance){const kn=xn.current.instance.getContentHeight();en(kn<bt?bt:kn)}else en(bt)};function Tr(kn){var _n=document.createEvent("MouseEvents");_n.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),kn.dispatchEvent(_n)}const br=kn=>{if(!Sr.current)return;const{keyCode:_n,ctrlKey:xi,metaKey:mi,target:sn,type:ki}=kn;return(ki==="paste"||(_n===67||_n===86)&&(mi||xi))&&sn.nodeName==="TEXTAREA"&&(Ei(),kn.preventDefault()),!1};function et(kn,_n){var xi=window.URL||window.webkitURL||window,mi=new Blob([_n]),sn=document.createElementNS("http://www.w3.org/1999/xhtml","a");sn.href=xi.createObjectURL(mi),sn.download=kn,Tr(sn)}(0,ve.useEffect)(()=>{ur()},[ur]),(0,ve.useEffect)(()=>{Le.current&&!Jt&&Promise.all([we.e(8909),we.e(6656)]).then(we.bind(we,71448)).then(kn=>{try{_e=kn,xn.current.instance=_e.editor.create(Le.current,{value:zt,language:Ne(qt),theme:Fn,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:Ar||!1}},wn);const _n=xn.current.instance;let sn=[...Lt.BH._menuItems].find(dr=>dr[0]._debugName=="EditorContext")[1],ki=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],Cr=(dr,mn)=>{var Ir,jr;let fo=dr._first;do mn.includes((jr=(Ir=fo.element)==null?void 0:Ir.command)==null?void 0:jr.id)&&dr._remove(fo);while(fo=fo.next)};if(Ji(_n,_e),setTimeout(()=>{ur(),xn.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{et(so||"educoder.txt",_n.getValue())}})},500),xn.current.subscription=_n.onDidChangeModelContent(dr=>{ti.current?clearTimeout(Yi.current):(ur(),Gi(_n.getValue(),dr)),Yi.current=setTimeout(()=>{ti.current=!1},500)}),window.Monaco||Ie(_e,Ne(qt)),Di&&(Cr(sn,ki),Le.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",br),window.removeEventListener("paste",br),window.addEventListener("keydown",br),window.addEventListener("paste",br)),window.Monaco=_e,Ci&&_n.onDidBlurEditorWidget(()=>{Ci(_n.getValue())}),Zr&&_n.onDidFocusEditorText(()=>{Di&&be(),Zr(_n.getValue())}),Di){be();try{_n.onDidPaste(dr=>{const mn=_n.getSelection(),Ir=xn.current.pastePos||{},jr=new _e.Range(Ir.startLineNumber||mn.endLineNumber,Ir.startColumn||mn.endColumn,Ir.endLineNumber||mn.endLineNumber,Ir.endColumn||mn.endColumn);_n.executeEdits("",[{range:dr.range,text:""}])})}catch(dr){}}let gr=It();return lo&&typeof lo=="string"&&new kt(lo,_n,_e),Vt(!0),()=>{const dr=xn.current.instance;dr.dispose();const mn=dr.getModel();mn&&mn.dispose(),xn.current.subscription&&xn.current.subscription.dispose(),gr.unobserve(Le.current)}}catch(_n){}})},[]),(0,ve.useEffect)(()=>{if(xn.current.instance&&Jt)return document.addEventListener("keydown",Ai,!1),()=>{document.removeEventListener("keydown",Ai)}},[bi,Jt]),(0,ve.useEffect)(()=>{let kn=xn.current.instance;if(kn&&Jt){let _n=Ne(qt);_e.editor.setModelLanguage(kn.getModel(),_n)}},[qt,Jt]),(0,ve.useEffect)(()=>{xn.current.instance&&Jt&&_e.editor.setTheme(Fn)},[Fn,Jt]),(0,ve.useEffect)(()=>{let kn=xn.current.instance;Qn.current=ei,kn&&Jt&&(kn.updateOptions(Dt({},ei)),setTimeout(()=>{kn.getModel().updateOptions(Dt({},ei))},200))},[JSON.stringify(ei),Jt]),(0,ve.useEffect)(()=>{let kn=xn.current.instance;kn&&Jt&&kn.layout()},[Tt,bt,Jt]);const[Ft,Tn]=(0,ve.useState)(vi(Tt)),[Yn,en]=(0,ve.useState)(vi(bt)),Gn=gn(Dt({},pn),{width:Ft,height:Yn,position:"relative"});return ve.createElement("div",{className:"my-monaco-editor",ref:Le,style:Gn},$n&&ve.createElement(He.CopyToClipboard,{text:zt,onCopy:()=>Ot.ZP.success("\u590D\u5236\u6210\u529F")},ve.createElement(Nt.Z,{title:"\u590D\u5236\u4EE3\u7801"},ve.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},ve.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function Xt({width:Bt="100%",height:nn="100%",original:Tt,modified:bt,language:zt,options:qt={}}){const pn=(0,ve.useRef)(),[ei,wn]=(0,ve.useState)(null);function Fn(hi){let Di;return pn.current&&(Di=new Ye.Z(Gi=>{for(let Ji of Gi)(Ji.target.offsetHeight>0||Ji.target.offsetWidth>0)&&hi.layout()}),Di.observe(pn.current)),Di}(0,ve.useEffect)(()=>(pn.current&&Promise.all([we.e(8909),we.e(9404)]).then(we.bind(we,2550)).then(hi=>{_e=hi;const Di=_e.editor.createDiffEditor(pn.current,gn(Dt({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},qt),{wordWrap:!0}));wn(Di);let Gi=Fn(Di);return()=>{Di.dispose();const Ji=Di.getModel();Ji&&Ji.dispose(),Gi.unobserve(pn.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,ve.useEffect)(()=>{ei&&ei.setModel({original:_e.editor.createModel(Tt,zt),modified:_e.editor.createModel(bt,zt)})},[Tt,bt,zt,ei]);const Ci=vi(Bt),$n=vi(nn),bi={width:Ci,height:$n};return ve.createElement("div",{className:"my-diff-editor",ref:pn,style:bi})}},10661:function(fn,on,we){"use strict";we.d(on,{Z:function(){return wt}});var ve={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"},Ye=we(29787),dt=we(25399),it=we(92310),at=we.n(it),Ze=we(51257),Ue=we(28426),xt=we(48790),nt=we(59301),wt=({className:Ve,dataSource:ut=[],col:Ee=4,right:te,bottom:ne=23,precision:ue=0,wrapWidth:se=1200,trackEventItems:de,loading:pe,onRemove:ye=()=>{},isCurrent:Ce=!0,showAlias:ze=!1})=>{const Te=Math.floor((se-(Ee-1)*te)/Ee),Ie=[{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 nt.createElement(Ye.Z,{spinning:pe},nt.createElement("div",{className:at()(ve.list,Ve)},!!(ut!=null&&ut.length)&&(ut==null?void 0:ut.map((Oe,Re)=>{var rt;const{name:ot,id:Ct,identifier:gt,featured:kt,school_name:Lt,image_url:Ot,excellent:Nt,is_plan:tn}=Oe;return nt.createElement("div",{key:Ct,className:ve.wrap,style:{width:Te,marginRight:(1+Re)%Ee===0?0:te+ue,marginBottom:ne}},nt.createElement("a",{className:ve.li,onClick:st=>{st.preventDefault(),st.stopPropagation(),de&&(0,Ze.L9)([de]),(0,Ze.xg)(`/paths/${gt}`)}},nt.createElement("div",{className:ve.img},nt.createElement("img",{className:ve.cover,src:`${Ot}`}),Ce&&(0,xt.bg)()&&(Oe==null?void 0:Oe.studying)&&nt.createElement("div",{className:`${ve.movebq} user-path-items`,onClick:st=>{st.stopPropagation(),ye(Oe)}},nt.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),nt.createElement("span",{className:"c-red"},"\u79FB\u9664")),(rt=Oe==null?void 0:Oe.subject_tags)==null?void 0:rt.map((st,He)=>{var Rt,Zt;if(He===0){const Mt=(Rt=Ie.find(jt=>jt.name==st))==null?void 0:Rt.swimg;return nt.createElement("img",{className:ve.sign,src:Mt,style:{left:"-4px"}})}const _t=(Zt=Ie.find(Mt=>Mt.name==st))==null?void 0:Zt.ptimg;return nt.createElement("img",{className:ve.sign,src:_t,style:{left:`${48+52*(He-1)+2*He}px`}})}),nt.createElement("div",{style:{position:"absolute",top:"150px",left:"4px"}},(Oe==null?void 0:Oe.excellent)&&nt.createElement("div",{className:ve.bq},"\u5F00\u653E\u8BFE\u7A0B"))),nt.createElement("div",{className:ve.name},nt.createElement(dt.Z,{title:ze&&(Oe!=null&&Oe.excellent_alias_name)?nt.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${ot}`,nt.createElement("br",null),nt.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${Oe==null?void 0:Oe.excellent_alias_name}`)):ot},nt.createElement("span",{className:ve.e},ze&&(Oe==null?void 0:Oe.excellent_alias_name)||ot))),nt.createElement(dt.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${Lt}`},nt.createElement("div",{className:ve.unit},nt.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),Lt)),nt.createElement("div",{className:ve.tags},nt.createElement("div",null,nt.createElement(dt.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},nt.createElement("span",null,nt.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),nt.createElement("span",null,Oe.stages_count))),nt.createElement(dt.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},nt.createElement("span",null,nt.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),nt.createElement("span",null,Oe.members_count)))))))})),!ut.length&&nt.createElement(Ue.Z,null)))}},9148:function(fn,on,we){"use strict";we.d(on,{jL:function(){return at},w9:function(){return Rt},QD:function(){return Ci},cQ:function(){return Ot.Z},op:function(){return zt},O5:function(){return Qn},_b:function(){return Ji},t7:function(){return se},Gi:function(){return Dn},YG:function(){return jt},qp:function(){return wt},vr:function(){return hi},qE:function(){return ei},Je:function(){return ye},wb:function(){return Lt},cq:function(){return We},tp:function(){return Ee}});var ve=we(59301),Ye={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"},dt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAAA0CAYAAAAkEw66AAAAAXNSR0IArs4c6QAAGNVJREFUeF7VmwmwHVWdxr9zuvvu9+3ZXsxCiNkIQZOwEzMgyADjggsWgzPqOAJaMiCjYiGKqDBQAo4iWGAxA+ooMm7gBhSyhBBRIIBSAQlrHuTt7913t97PmfpOd4cXlLAFGO6rW9237719+/z6+6/nPIHX+XHttddaex38nlW2lLO1svq1wJ4aeFMM9CqFnNKoaYVapDAOicfjGEMKqKk2nrx59Lbt5xx6aPR6DEG8Hj/K3xwY0YtjSx2vYnlspLEsX0BRKUBrINtyX+PZp0r3fR+IIgzFSo9EsahFUfSHWIj7Pa919zvf2vlo+rFXdWivObjHJvR8S6vTJORHckV0+4GBAF4InwQlBCAIkEMXgCLA9Mn9WCef4ft8HWkgVIDn6ckwUA/HQfCzoFX71TsP6n/41aL3moHTWotnJnGysPEFx8ZcAtMqGTjh2NmVTL+iDB6BZurjsRSe2SogjhNwMZIngbZbqgXom8N26/KjV3femB7ebRxfE3DbRnW/k8c3LQvv5yCjOFVVqhgCyNnJmAhoxyOFasz1OeCM2lLTJryI4BQQUn1RAhI24Lc1dBjc2K6Nnv2edfP+sLvIvergxqb0vpHA1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x9bhlF2CO/tanVuzHHfPqmJVOf0nNdr5SFP7D02Eb/3iEfkdtdsbFeCXbtYfXlDGueU85iKZsjXZklnpyZdpGmgWFcS4pGsQnzvuOBG/4CzXFX/Qp+zZi28pPzkZHeNIS337X2+Qp+IckWajb1RsyXWffqOeN8tRH+rKyWOhsSBnYyYziiCAa0k8EQKb2kF01acPc3akXS8IbsW1Onf6AnVib16ewqWz21vq9qu2yNPeqL7thW7xZ65391jcV1jE/1qKFcaeCfDwOYeK9D83nv32/wHzrWgvjJ8Q7AAAAABJRU5ErkJggg==",at=({dataSource:gi=[],img:yi,imgWidth:ti=346,title:Yi,sunTitle:cr,bannerExtraContent:Sr})=>ve.createElement("div",{className:Ye.banner},ve.createElement("div",{className:Ye.content},ve.createElement("aside",null,ve.createElement("p",null,ve.createElement("b",null,Yi),ve.createElement("span",null,cr)),gi.length>0&&ve.createElement("div",{className:Ye.btns},gi.map((Jt,Vt)=>ve.createElement("div",{key:Vt,onClick:Jt.click},Jt.name,Jt.sign?ve.createElement("img",{src:dt,width:39}):null))),Sr),yi&&ve.createElement("img",{style:{marginTop:33,marginRight:38},src:yi,width:ti}))),Ze={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"},Ue=we(92310),xt=we.n(Ue),nt=we(89392),wt=({dataSource:gi=[],value:yi,onChange:ti,onTitleChange:Yi,className:cr,title:Sr,titleWidth:Jt=41,style:Vt={},fontColor:It="#6A7283",showCount:Ei})=>{const[Ii,ji]=(0,ve.useState)(0),[Xn,Ai]=(0,ve.useState)(!1),ur=(0,ve.useRef)(null),Tr=(0,ve.useRef)(null);return(0,ve.useEffect)(()=>{var br;gi.length!==0&&(((br=ur==null?void 0:ur.current)==null?void 0:br.clientHeight)>97?ji(1):ji(0)),gi.length===0&&ji(0),Ai(!1)},[gi]),ve.createElement("div",{className:xt()(Ze.row,cr),style:Vt},ve.createElement("div",{onClick:(0,nt.throttle)(()=>Yi==null?void 0:Yi(),2e3),style:{width:Jt,marginTop:Xn?12:4},className:`${Ze.title} ${Yi?"current":""}`},Sr),ve.createElement("div",{className:Xn?`${Ze.tagsWrap} ${Ze.tagsBorderWrap}`:Ze.tagsWrap},ve.createElement("div",{className:Ze.bar,ref:Tr,style:Ii>0?{height:Ii===1?97:"auto",overflow:Ii===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},ve.createElement("div",{className:Ze.tag,ref:ur},gi==null?void 0:gi.map(br=>ve.createElement("span",{onClick:()=>ti(br.id),key:br.id,style:{color:It},className:yi===br.id?Ze.active:""},ve.createElement("span",{title:br.name,className:Ze.name},br.name),!!Ei&&ve.createElement("span",{className:Ze.num},br.count))))),!!Ii&&ve.createElement(ve.Fragment,null,Ii===1?ve.createElement("div",{onClick:()=>{var br;ji(2),((br=ur==null?void 0:ur.current)==null?void 0:br.clientHeight)>245?Ai(!0):Ai(!1)},className:Ze.action},"\u5C55\u5F00",ve.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):ve.createElement("div",{onClick:()=>{Tr.current.scrollTop=0,ji(1),Ai(!1)},className:Ze.action},"\u6536\u8D77",ve.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},Ve={flex_box_center:"flex_box_center___aK2n3",flex_space_between:"flex_space_between___HX0Oh",flex_box_vertical_center:"flex_box_vertical_center___LJOJr",flex_box_center_end:"flex_box_center_end___SCakF",flex_box_column:"flex_box_column___AYv4m",tabs:"tabs___GTqPV",active:"active___F26E8"},Ee=({dataSource:gi=[],value:yi,onChange:ti,className:Yi,style:cr={}})=>ve.createElement("div",{style:cr,className:xt()(Ve.tabs,Yi)},gi.map(Sr=>ve.createElement("span",{onClick:()=>ti(Sr.id),className:yi===Sr.id?Ve.active:"",key:Sr.id},Sr.name))),te={flex_box_center:"flex_box_center___yX6Oa",flex_space_between:"flex_space_between___t7oqF",flex_box_vertical_center:"flex_box_vertical_center___dEIHy",flex_box_center_end:"flex_box_center_end___taQDF",flex_box_column:"flex_box_column___xY_Lr",input:"input___PW2zI",dropdown:"dropdown___vSy8B",menu:"menu___NiyBu",text:"text___Grueu",b1:"b1___ZKryM",b2:"b2___aKyGa"},ne=we(37568),se=({dataSource:gi=[],value:yi="",onChange:ti,onInputChange:Yi=()=>{},className:cr,style:Sr={},placeholder:Jt,allowClear:Vt=!1})=>{var It;const[Ei,Ii]=(0,ve.useState)(""),[ji,Xn]=(0,ve.useState)("");(0,ve.useEffect)(()=>{var Tr;let br=yi;(Tr=JSON.stringify(yi))!=null&&Tr.includes("{")&&(Ii(yi.id),br=yi.value||"");try{Xn(decodeURIComponent(br||""))}catch(et){Xn(decodeURIComponent(br||""))}},[yi]);const Ai=()=>{ti(encodeURIComponent(ji),Ei||null)},ur=Tr=>{Tr!==Ei&&(Ii(Tr),ti(encodeURIComponent(ji),Tr))};return ve.createElement("div",{className:xt()(te.input,cr),style:Sr},!!gi.length&&ve.createElement("div",{className:te.dropdown},ve.createElement("div",{className:te.text},(It=gi.find(Tr=>Tr.id===Ei))==null?void 0:It.name,ve.createElement("i",{className:"iconfont icon-zhankai4"}),ve.createElement("b",{className:te.b1}),ve.createElement("b",{className:te.b2})),ve.createElement("div",{className:te.menu},gi.map((Tr,br)=>ve.createElement("div",{key:br,onClick:()=>ur(Tr.id)},Tr.name)))),ve.createElement(ne.default,{onPressEnter:Ai,value:ji,onChange:Tr=>{Xn(Tr.target.value),Yi(encodeURIComponent(Tr.target.value),Ei||null)},bordered:!1,placeholder:Jt}),ve.createElement("i",{onClick:Ai,className:"iconfont icon-sousuo9 font14 pl10 current"}))},de={flex_box_center:"flex_box_center___tol8o",flex_space_between:"flex_space_between___Z235C",flex_box_vertical_center:"flex_box_vertical_center___Wq1sZ",flex_box_center_end:"flex_box_center_end___LLxom",flex_box_column:"flex_box_column___DbMSN",quickPager:"quickPager___GM30J",disabled:"disabled___Ozc8I"},ye=({value:gi,onChange:yi,className:ti,total:Yi,pageSize:cr,style:Sr={}})=>{const Jt=gi<2,Vt=gi>=Math.ceil(Yi/cr);return Yi<=cr?ve.createElement(ve.Fragment,null):ve.createElement("div",{className:xt()(de.quickPager,ti),style:Sr},ve.createElement("div",{onClick:()=>{Jt||yi(gi-1,"prev")},className:Jt?de.disabled:""},"\u4E0A\u4E00\u9875"),ve.createElement("div",{onClick:()=>{Vt||yi(gi+1,"next")},className:Vt?de.disabled:""},"\u4E0B\u4E00\u9875"))},Ce={flex_box_center:"flex_box_center___FO7TP",flex_space_between:"flex_space_between___LotYx",flex_box_vertical_center:"flex_box_vertical_center___bWdaw",flex_box_center_end:"flex_box_center_end___mVJ1o",flex_box_column:"flex_box_column___M83Mm",list:"list___oOsiS",wrap:"wrap___G6T7F",lockWrap:"lockWrap___Rl79E",li:"li___oZZ7l",cover:"cover___b2bYW",img:"img___IQX7w",sign:"sign___HkT6C",name:"name___SsJx8",e:"e___TMqq0",tags:"tags___bcjyo",rate:"rate___YACg7"},ze=we(29787),Te=we(25399),Ie=we(58018),Oe=we(346),Re=we(51257),rt=we(96908),ot=we(57177),Ct=we(81378),gt=we(28426),Lt=({className:gi,dataSource:yi=[],col:ti=4,right:Yi,bottom:cr=23,precision:Sr=0,wrapWidth:Jt=1200,trackEventItems:Vt,loading:It})=>{const Ei=Math.floor((Jt-(ti-1)*Yi)/ti);return ve.createElement(ze.Z,{spinning:It},ve.createElement("div",{className:xt()(Ce.list,gi)},!!yi.length&&yi.map((Ii,ji)=>{const{name:Xn,id:Ai,identifier:ur,power:Tr,cover_image_id:br,pic:et}=Ii;return ve.createElement("div",{className:Ce.wrap,key:Ai,style:{width:Ei,marginRight:(1+ji)%ti===0?0:Yi+Sr,marginBottom:cr}},ve.createElement("a",{target:"_blank",href:`/shixuns/${ur}/challenges`,className:Ce.li,onClick:Ft=>{Ft.preventDefault(),Vt&&(0,Re.L9)([Vt]),Tr&&(0,Re.xg)(`/shixuns/${ur}/challenges`)}},ve.createElement("div",{className:Ce.img},ve.createElement("img",{className:Ce.cover,src:`${et}`}),Ii.is_jupyter&&ve.createElement("img",{className:Ce.sign,src:rt}),Ii.is_jupyter_lab&&ve.createElement("img",{className:Ce.sign,src:ot}),Ii.is_unity_3d&&ve.createElement("img",{className:Ce.sign,src:Ct})),ve.createElement("div",{className:Ce.name},ve.createElement(Te.Z,{title:Xn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},ve.createElement("span",{className:Ce.e},Xn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),ve.createElement("div",{className:Ce.tags},ve.createElement(Te.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},ve.createElement("span",null,ve.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),ve.createElement("span",null,Ii.challenges_count))),!!Ii.myshixuns_count&&ve.createElement(Te.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},ve.createElement("span",null,ve.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),ve.createElement("span",null,Ii.myshixuns_count))),ve.createElement(Te.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},ve.createElement("span",null,ve.createElement("span",null,Ii.level))),ve.createElement("div",{className:Ce.rate},ve.createElement(Ie.Z,{allowHalf:!0,disabled:!0,defaultValue:Ii.score_info}),ve.createElement("span",null,"\xA0",Ii.score_info?`${Ii.score_info}\u5206`:"5\u5206")))),!Tr&&ve.createElement("div",{className:Ce.lockWrap},ve.createElement("img",{src:`${Oe.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),ve.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!yi.length&&ve.createElement(gt.Z,null)))},Ot=we(10661),Nt={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"},tn="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/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pxHLQK6jxdupOH2n1GuxpR+S6Yb2332dfk/USPOnA/2qrLr5s16DkFm8EJm84Xq5/wPP7LC5eaaVop+pNEzPlmwJ67wa6lZ5cN4BDQw9l8+StEdNeFsjcLmMz89VQi8qdEdKYlZCzdtOwAm3EHIblfZeabLc1lVTYjccsK/NlEIvrESgxwxQAOCWHv9jz+Aph/cSUWoGd9Ej2mFH3RlkWq03GuOMBm4JLwRh4+z+DbOp3ManhOsvxY4UvpeOSR1TGe1TCK0BiC/OS7APoQwKHqHKtsoPOGQzMA/7sCvp5MRp9aTSNdNRRcvyhSTqJQqN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",st=we(59301),Rt=({className:gi,dataSource:yi=[],col:ti=4,right:Yi,bottom:cr=23,precision:Sr=0,wrapWidth:Jt=1200,trackEventItems:Vt,loading:It,handleVery:Ei=()=>!0})=>{const Ii=Math.floor((Jt-(ti-1)*Yi)/ti);return st.createElement(ze.Z,{spinning:It},st.createElement("div",{className:xt()(Nt.list,gi)},!!yi.length&&yi.map((ji,Xn)=>{const{subject_identifier:Ai,id:ur,identifier:Tr,power:br}=ji,et=ji.is_public!=0&&ji.is_public;return st.createElement("div",{className:Nt.wrap,key:ur,style:{width:Ii,marginRight:(1+Xn)%ti===0?0:Yi+Sr,marginBottom:cr}},st.createElement("a",{className:Nt.li,onClick:Ft=>{Ft.preventDefault(),Ei(ji==null?void 0:ji.first_category_url)&&(Vt&&(0,Re.L9)([Vt]),(0,Re.xg)(ji.first_category_url))}},st.createElement("div",{className:Nt.top},st.createElement(Te.Z,{title:ji.name},st.createElement("div",{className:Nt.name},ji.name)),st.createElement("img",{className:Nt.img,src:Oe.Z.IMG_SERVER+"/images/"+ji.avatar_url}),st.createElement("div",{className:Nt.text,title:ji.creator},ji.creator),Ai&&st.createElement("div",{className:Nt.btns},st.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),st.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),et&&st.createElement("div",{className:Nt.sign},"\u516C\u5F00")),st.createElement("div",{className:Nt.bottom},ji.visits>0&&st.createElement(Te.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},st.createElement("span",null,st.createElement("i",{className:"iconfont icon-liulanyan"}),st.createElement("span",null,ji.visits))),ji.course_members_count>0&&st.createElement(Te.Z,{title:"\u6210\u5458",placement:"bottom"},st.createElement("span",null,st.createElement("i",{className:"iconfont icon-chengyuan"}),ji.course_members_count)),ji.tasks_count>0&&st.createElement(Te.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},st.createElement("span",null,st.createElement("i",{className:"iconfont icon-zuoye"}),ji.tasks_count)),ji.is_end?st.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):st.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!ji.is_accessible&&st.createElement("div",{className:Nt.lockWrap},st.createElement("img",{src:`${Oe.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),st.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!yi.length&&st.createElement(gt.Z,null)))},Zt={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"},_t=we(25690),jt=({dataSource:gi=[],value:yi,onChange:ti,className:Yi,style:cr={},tabBarExtraContent:Sr})=>ve.createElement("div",{className:xt()(Zt.tabs,Yi),style:cr},ve.createElement("div",{className:Zt.tabsWrap},gi.map((Jt,Vt)=>!(Jt!=null&&Jt.hide)&&ve.createElement("aside",{className:Zt.tab,onClick:()=>{ti(Jt.id),Jt.link&&_t.history.push(Jt.link)},key:Vt},ve.createElement("div",{className:yi===Jt.id?Zt.active:""},Jt.name),(Jt==null?void 0:Jt.resetCount)==null&&(Jt==null?void 0:Jt.total)!==void 0&&ve.createElement("span",null,"\uFF08",Jt==null?void 0:Jt.total,"\uFF09"),(Jt==null?void 0:Jt.resetCount)!==void 0&&(Jt==null?void 0:Jt.total)!==void 0&&ve.createElement(Te.Z,{title:(Jt==null?void 0:Jt.tip)!=null?Jt==null?void 0:Jt.tip:""},ve.createElement("span",{style:{color:"#9096A3"}},"\uFF08",ve.createElement("span",{style:{color:"#000"}},Jt==null?void 0:Jt.resetCount),"/",ve.createElement("span",null,Jt==null?void 0:Jt.total),"\uFF09"))))),ve.createElement("div",{className:Zt.tabBar},Sr)),Dn=({className:gi,style:yi={},children:ti})=>ve.createElement("div",{className:xt()(gi),style:yi},ti),Dt={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"},gn=we(75727),yt=we(93041);const Zn=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var We=({sortValue:gi,dropValue:yi,className:ti,onSort:Yi,onDrop:cr,dataSource:Sr=Zn})=>{var Jt;return ve.createElement("div",{className:xt()(Dt.orderWrap,ti)},ve.createElement(gn.Z,{dropdownRender:()=>ve.createElement(yt.default,null,Sr.map((Vt,It)=>ve.createElement(yt.default.Item,{key:It,onClick:()=>cr(Vt.id)},Vt.name)))},ve.createElement("span",{className:Dt.orderTextWrap},(Jt=Sr.find(Vt=>yi===Vt.id))==null?void 0:Jt.name)),ve.createElement("span",{className:Dt.orderIconWrap},ve.createElement("span",{className:Dt.orderAsc},ve.createElement("i",{className:gi==="asc"?`iconfont icon-sanjiaoxing-up font12 ${Dt.cursorPointer} ${Dt.active}`:`iconfont icon-sanjiaoxing-up font12 ${Dt.cursorPointer}`,onClick:()=>Yi(gi==="asc"?"desc":"asc")})),ve.createElement("span",{className:Dt.orderDesc},ve.createElement("i",{className:gi==="desc"?`iconfont icon-sanjiaoxing-down font12 ${Dt.cursorPointer} ${Dt.active}`:`iconfont icon-sanjiaoxing-down font12 ${Dt.cursorPointer}`,onClick:()=>Yi(gi==="asc"?"desc":"asc")}))))},Fe={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"},xe=we(99571),Ne=Object.defineProperty,_e=Object.getOwnPropertySymbols,be=Object.prototype.hasOwnProperty,tt=Object.prototype.propertyIsEnumerable,Xt=(gi,yi,ti)=>yi in gi?Ne(gi,yi,{enumerable:!0,configurable:!0,writable:!0,value:ti}):gi[yi]=ti,Bt=(gi,yi)=>{for(var ti in yi||(yi={}))be.call(yi,ti)&&Xt(gi,ti,yi[ti]);if(_e)for(var ti of _e(yi))tt.call(yi,ti)&&Xt(gi,ti,yi[ti]);return gi},nn=(gi,yi)=>{var ti={};for(var Yi in gi)be.call(gi,Yi)&&yi.indexOf(Yi)<0&&(ti[Yi]=gi[Yi]);if(gi!=null&&_e)for(var Yi of _e(gi))yi.indexOf(Yi)<0&&tt.call(gi,Yi)&&(ti[Yi]=gi[Yi]);return ti},Tt=(gi,yi,ti)=>new Promise((Yi,cr)=>{var Sr=It=>{try{Vt(ti.next(It))}catch(Ei){cr(Ei)}},Jt=It=>{try{Vt(ti.throw(It))}catch(Ei){cr(Ei)}},Vt=It=>It.done?Yi(It.value):Promise.resolve(It.value).then(Sr,Jt);Vt((ti=ti.apply(gi,yi)).next())}),zt=gi=>{var yi=gi,{className:ti,style:Yi,children:cr,loading:Sr=!1,openLoading:Jt,onClick:Vt=()=>{},size:It="middle",shape:Ei="round"}=yi,Ii=nn(yi,["className","style","children","loading","openLoading","onClick","size","shape"]);const[ji,Xn]=(0,ve.useState)(!1);return ve.createElement(xe.ZP,Bt({onClick:(0,nt.throttle)(Ai=>Tt(void 0,null,function*(){Jt&&Xn(!0);try{yield Vt(Ai)}catch(ur){console.log("error",ur)}Jt&&Xn(!1)}),2e3,{leading:!0,trailing:!1}),className:xt()(Fe.btn,Fe[`${It}-${Ei}`],ti),style:Yi,size:It,shape:Ei,loading:ji||Sr},Ii),cr)},qt={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"},ei=({className:gi,style:yi,children:ti=null,onClick:Yi,title:cr})=>ve.createElement("div",{className:xt()(qt.head,gi),style:yi},ve.createElement("span",{className:"primary-hover",onClick:Yi},ve.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),ve.createElement("b",{title:cr},cr),ve.createElement("div",{className:qt.node},ti)),wn={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"},Ci=({confirmShow:gi=!0,confirmTitle:yi,confirmClick:ti,cancelShow:Yi=!0,cancelTitle:cr,cancelClick:Sr,className:Jt,style:Vt,confirmLoading:It=!1})=>ve.createElement("div",{className:xt()(wn.btns,Jt),style:Vt},gi&&ve.createElement(xe.ZP,{loading:It,onClick:ti,type:"primary",className:wn.confirm},yi),Yi&&ve.createElement(xe.ZP,{onClick:Sr,className:wn.cancel},cr)),$n={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"},hi=({className:gi,style:yi={},LeftContent:ti,children:Yi,RightContent:cr})=>ve.createElement("div",{className:xt()($n.fixedBottom,gi),style:yi},ve.createElement("div",{className:$n.wrap},ve.createElement("div",{className:$n.left},ti),ve.createElement("div",{className:$n.center},Yi),ve.createElement("div",{className:$n.right},cr))),Di={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"},Ji=({className:gi,style:yi={},dataSource:ti=[]})=>ve.createElement("div",{className:xt()(Di.crumbs,gi),style:yi},ti.map((Yi,cr)=>cr<ti.length-1?ve.createElement(ve.Fragment,{key:cr},Yi.path||Yi.onClick?ve.createElement("span",{className:Di.hover,onClick:Yi!=null&&Yi.onClick?Yi.onClick:()=>_t.history.push(Yi.path)},Yi.name):ve.createElement("span",null,Yi.name),ve.createElement("span",null,"\xA0",">","\xA0")):ve.createElement("span",{key:cr,style:{color:"#5F6368"}},Yi.name))),Zr=we(11938),qi=Object.defineProperty,ii=Object.defineProperties,so=Object.getOwnPropertyDescriptors,Kr=Object.getOwnPropertySymbols,qr=Object.prototype.hasOwnProperty,io=Object.prototype.propertyIsEnumerable,Fo=(gi,yi,ti)=>yi in gi?qi(gi,yi,{enumerable:!0,configurable:!0,writable:!0,value:ti}):gi[yi]=ti,lo=(gi,yi)=>{for(var ti in yi||(yi={}))qr.call(yi,ti)&&Fo(gi,ti,yi[ti]);if(Kr)for(var ti of Kr(yi))io.call(yi,ti)&&Fo(gi,ti,yi[ti]);return gi},Ar=(gi,yi)=>ii(gi,so(yi)),ro=(gi,yi)=>{var ti={};for(var Yi in gi)qr.call(gi,Yi)&&yi.indexOf(Yi)<0&&(ti[Yi]=gi[Yi]);if(gi!=null&&Kr)for(var Yi of Kr(gi))yi.indexOf(Yi)<0&&io.call(gi,Yi)&&(ti[Yi]=gi[Yi]);return ti};const{Countdown:Le}=Zr.default;var Qn=gi=>{var yi=gi,{onChange:ti}=yi,Yi=ro(yi,["onChange"]);const[cr,Sr]=(0,ve.useState)(null);(0,ve.useEffect)(()=>{typeof cr=="number"&&cr>=0&&ti(cr)},[cr]);const Jt=Vt=>{const It=Math.floor(Vt/1e3);Sr(It)};return ve.createElement(Le,Ar(lo({},Yi),{onChange:Jt}))}},37808:function(fn,on,we){"use strict";we.d(on,{Z:function(){return Ye}});var ve=we(59301);function Ye(dt,it){const at=(0,ve.useRef)();(0,ve.useEffect)(()=>{at.current=dt}),(0,ve.useEffect)(()=>{function Ze(){at.current()}if(it!==null){let Ue=setInterval(Ze,it);return()=>clearInterval(Ue)}},[it])}},95024:function(fn,on,we){"use strict";var ve=we(59301),Ye=we(62957),dt=we(38986),it=we(25690),at=we(59301),Ze=(xt,nt,De)=>new Promise((wt,Ve)=>{var ut=ne=>{try{te(De.next(ne))}catch(ue){Ve(ue)}},Ee=ne=>{try{te(De.throw(ne))}catch(ue){Ve(ue)}},te=ne=>ne.done?wt(ne.value):Promise.resolve(ne.value).then(ut,Ee);te((De=De.apply(xt,nt)).next())});const Ue=({exercise:xt,dispatch:nt,init:De,haveInit:wt=!1})=>{const Ve=(0,it.useParams)(),[ut,Ee]=(0,ve.useState)(!1);let[te,ne]=(0,ve.useState)();const[ue,se]=(0,ve.useState)(!1),[de,pe]=(0,ve.useState)(!1);(0,ve.useEffect)(()=>{xt.actionTabs.key==="\u5355\u4E2A\u52A0\u5165\u8BD5\u5377\u5E93"&&ye()},[xt.actionTabs]);function ye(){return Ze(this,null,function*(){var Ce,ze;let Te=yield(0,dt.ZP)(`/api/courses/${Ve==null?void 0:Ve.coursesId}/exercises/check_exercise_cover.json`,{method:"post",body:{check_ids:xt.actionTabs.selectArrs}});if(((Ce=Te==null?void 0:Te.cover_exercises)==null?void 0:Ce.length)>0)Ee(!0),ne((ze=Te==null?void 0:Te.cover_exercises)==null?void 0:ze[0]);else{let Ie=yield(0,dt.ZP)(`/api/courses/${Ve==null?void 0:Ve.coursesId}/exercises/join_examination_banks.json`,{method:"post",body:{check_ids:xt.actionTabs.selectArrs}});nt({type:"exercise/setActionTabs",payload:{key:""}}),(Ie==null?void 0:Ie.status)===0&&(wt&&De(),Ye.default.confirm({title:"\u63D0\u793A",icon:null,centered:!0,content:"\u52A0\u5165\u6210\u529F\uFF01\u8BD5\u5377\u4E2D\u65B0\u5EFA\u7684\u8BD5\u9898\u5DF2\u4E3A\u60A8\u81EA\u52A8\u540C\u6B65\u81F3\u8BD5\u9898\u5E93~",okText:"\u524D\u5F80\u8BD5\u5377\u5E93",cancelText:"\u7A0D\u540E\u518D\u8BF4",onOk:()=>{it.history.push("/paperlibrary")}}))}})}return at.createElement("div",null,at.createElement(Ye.default,{open:ut,centered:!0,onCancel:Ce=>Ze(void 0,null,function*(){if(Ce.target.outerText==="\u8986\u76D6\u539F\u6765\u7684\u8BD5\u5377"){se(!0);let ze=yield(0,dt.ZP)(`/api/courses/${Ve==null?void 0:Ve.coursesId}/exercises/join_examination_banks.json`,{method:"post",body:{check_ids:xt.actionTabs.selectArrs,update:1}});nt({type:"exercise/setActionTabs",payload:{key:""}}),se(!1),(ze==null?void 0:ze.status)===0&&(wt&&De(),Ee(!1),Ye.default.confirm({title:"\u63D0\u793A",icon:null,centered:!0,content:"\u52A0\u5165\u6210\u529F\uFF01\u8BD5\u5377\u4E2D\u65B0\u5EFA\u7684\u8BD5\u9898\u5DF2\u4E3A\u60A8\u81EA\u52A8\u540C\u6B65\u81F3\u8BD5\u9898\u5E93~",okText:"\u524D\u5F80\u8BD5\u5377\u5E93",cancelText:"\u7A0D\u540E\u518D\u8BF4",onOk:()=>{it.history.push("/paperlibrary")}}))}else Ee(!1)}),cancelButtonProps:{loading:ue},okText:"\u5F62\u6210\u65B0\u8BD5\u5377",cancelText:"\u8986\u76D6\u539F\u6765\u7684\u8BD5\u5377",okButtonProps:{loading:de},onOk:()=>Ze(void 0,null,function*(){pe(!0);let Ce=yield(0,dt.ZP)(`/api/courses/${Ve==null?void 0:Ve.coursesId}/exercises/join_examination_banks.json`,{method:"post",body:{check_ids:xt.actionTabs.selectArrs}});pe(!1),(Ce==null?void 0:Ce.status)===0&&(wt&&De(),nt({type:"exercise/setActionTabs",payload:{key:""}}),Ee(!1),Ye.default.confirm({title:"\u63D0\u793A",icon:null,centered:!0,content:"\u52A0\u5165\u6210\u529F\uFF01\u8BD5\u5377\u4E2D\u65B0\u5EFA\u7684\u8BD5\u9898\u5DF2\u4E3A\u60A8\u81EA\u52A8\u540C\u6B65\u81F3\u8BD5\u9898\u5E93~",okText:"\u524D\u5F80\u8BD5\u5377\u5E93",cancelText:"\u7A0D\u540E\u518D\u8BF4",onOk:()=>{it.history.push("/paperlibrary")}}))}),title:"\u52A0\u5165\u8BD5\u5377\u5E93\u63D0\u793A"},at.createElement("div",null,at.createElement("p",null,"\u8BE5\u8BD5\u5377\u5728\u8BD5\u5377\u5E93\u91CD\u590D\uFF0C\u662F\u5426\u9700\u8981\u8986\u76D6\u539F\u6765\u7684\u8BD5\u5377\uFF1F"),at.createElement("div",null,at.createElement("div",null,"\u8BD5\u5377\uFF1A",te==null?void 0:te.origin_exercise_nam),at.createElement("div",null,"\u539F\u8BD5\u5377\uFF1A",at.createElement("a",{href:`/paperlibrary/see/${te==null?void 0:te.examination_bank_id}?defaultActiveKey=0`,target:"_blank"},te==null?void 0:te.examination_bank_name))))))};on.Z=(0,it.connect)(({exercise:xt})=>({exercise:xt}))(Ue)},50242:function(fn,on,we){"use strict";we.d(on,{Z:function(){return Ie}});var ve=we(59301),Ye=we(62957),dt=we(77019),it=we(5269),at=we(82326),Ze=we(54172),Ue=we(99571),xt=we(9148),nt=we(38986),De={cstuModal:"cstuModal___aIPVR",removeStyle:"removeStyle___wY4gp",bottom:"bottom___a8tK0",yes:"yes___Zhc4z",no:"no___Ngwsa",Onerow:"Onerow___Q59ve",searchMember:"searchMember___Jj460",searchMemberHeader:"searchMemberHeader___SxfUY"},wt=we(25690),Ve=we(96622),ut=we(59301),Ee=Object.defineProperty,te=Object.defineProperties,ne=Object.getOwnPropertyDescriptors,ue=Object.getOwnPropertySymbols,se=Object.prototype.hasOwnProperty,de=Object.prototype.propertyIsEnumerable,pe=(Oe,Re,rt)=>Re in Oe?Ee(Oe,Re,{enumerable:!0,configurable:!0,writable:!0,value:rt}):Oe[Re]=rt,ye=(Oe,Re)=>{for(var rt in Re||(Re={}))se.call(Re,rt)&&pe(Oe,rt,Re[rt]);if(ue)for(var rt of ue(Re))de.call(Re,rt)&&pe(Oe,rt,Re[rt]);return Oe},Ce=(Oe,Re)=>te(Oe,ne(Re)),ze=(Oe,Re,rt)=>new Promise((ot,Ct)=>{var gt=Ot=>{try{Lt(rt.next(Ot))}catch(Nt){Ct(Nt)}},kt=Ot=>{try{Lt(rt.throw(Ot))}catch(Nt){Ct(Nt)}},Lt=Ot=>Ot.done?ot(Ot.value):Promise.resolve(Ot.value).then(gt,kt);Lt((rt=rt.apply(Oe,Re)).next())});const Te=({visible:Oe,setVisible:Re,onK:rt,selectKeys:ot,selectRows:Ct,appointStudent:gt,modalParams:kt,courseId:Lt})=>{const Ot=(0,wt.useParams)(),[Nt,tn]=(0,ve.useState)(!1),[st,He]=(0,ve.useState)(!1),[Rt,Zt]=(0,ve.useState)([]),[_t,Mt]=(0,ve.useState)([]),[jt,an]=(0,ve.useState)([]),[Dn,Dt]=(0,ve.useState)("all"),[gn,yt]=(0,ve.useState)("all");let[Zn,vi]=(0,ve.useState)(!0);const[We,Fe]=(0,ve.useState)([{value:"all",label:"\u5168\u90E8\u5206\u73ED"}]),[xe,Ne]=(0,ve.useState)({page:1,limit:1e4,status:null,course_group_id:null,keywords:"",sort_by:null,direction:null}),_e={selectedRowKeys:_t,columnWidth:40,hideSelectAll:!0,onSelect:(nn,Tt,bt)=>{let zt=!0;for(let qt=0;qt<_t.length;qt++)(nn==null?void 0:nn.user_id)===_t[qt]&&(_t==null||_t.splice(qt,1),jt==null||jt.splice(qt,1),zt=!1);zt&&(_t.push(nn==null?void 0:nn.user_id),jt.push(nn)),Mt([..._t]),an([...jt])},onSelectAll:(nn,Tt,bt)=>{if(nn&&bt.length>0){bt.forEach(zt=>{_t.push(zt.user_id),jt.push(zt)}),Mt([..._t]),an([...jt]);return}if(!nn&&bt.length>0){let zt=[],qt=[];const pn=new Set(bt),ei=new Set(_t),wn=new Set(jt);zt=[...ei].filter(Fn=>[...pn].every(Ci=>Ci.user_id!==Fn)),qt=[...wn].filter(Fn=>[...pn].every(Ci=>Ci.user_id!==Fn.user_id)),Mt([...zt]),an([...qt])}}};(0,ve.useEffect)(()=>{Oe&&ot&&(Mt([...ot]),an(Ct))},[Oe,ot]),(0,ve.useEffect)(()=>{Oe&&(!gt&&kt?xe.status=kt:xe.status=null,Ne(ye({},xe)),tt())},[Oe,gt,kt]);const be=[{title:"\u5E8F\u53F7",dataIndex:"name",key:"name",ellipsis:!0,fixed:"left",width:100,render:(nn,Tt,bt)=>ut.createElement("span",{style:{color:"#333"}},bt+1)},{title:"\u59D3\u540D",dataIndex:"user_name",key:"user_name",ellipsis:!0,render:(nn,Tt,bt)=>ut.createElement("span",null,nn)},{title:"\u5B66\u53F7",dataIndex:"student_id",key:"student_id",ellipsis:!0,render:(nn,Tt,bt)=>ut.createElement("span",{style:{color:"#666"}},nn)},{title:"\u5206\u73ED1",dataIndex:"user_group_name",key:"user_group_name",align:"left",ellipsis:!0,render:(nn,Tt)=>ut.createElement("span",null,nn)},{title:"\u6700\u7EC8\u6210\u7EE9",dataIndex:"score",key:"score",sorter:!0,render:(nn,Tt)=>ut.createElement("span",null,nn||"--")},{title:"\u72B6\u6001",dataIndex:"status_cn",key:"status_cn",align:"center",ellipsis:!0,render:(nn,Tt)=>ut.createElement("span",null,nn)}].filter(nn=>kt===1||kt===2?nn.title!=="\u72B6\u6001":!0),tt=()=>ze(void 0,null,function*(){var nn,Tt,bt;He(!0);const zt=yield(0,nt.ZP)(`/api/exercises/${Ot.categoryId||Lt}/wait_make_up_students.json`,{method:"get",params:Ce(ye({},xe),{keywords:(nn=xe==null?void 0:xe.keywords)==null?void 0:nn.trim()})});if(zt.status===0){const qt=((bt=(Tt=zt==null?void 0:zt.data)==null?void 0:Tt.all_course_groups)==null?void 0:bt.map(pn=>({value:pn==null?void 0:pn.id,label:pn==null?void 0:pn.name})))||[];Fe([{value:"all",label:"\u5168\u90E8\u5206\u73ED"},...qt]),Zt(zt.data)}He(!1)}),Xt=()=>{xe.page=1,xe.status=null,xe.course_group_id=null,xe.keywords="",Dt("all"),yt("all"),Mt([]),an([]),Ne(ye({},xe)),gt&&rt(_t==null?void 0:_t.length,_t,jt)},Bt=()=>{xe.page=1,xe.status=null,xe.course_group_id=null,xe.keywords="",Ne(ye({},xe)),Dt("all"),yt("all"),Mt([]),an([]),Re(!1)};return ut.createElement(Ye.default,{centered:!0,className:De.cstuModal,title:kt===1?"\u7F3A\u8003\u5B66\u751F":kt===2?"\u672A\u53CA\u683C\u5B66\u751F":"\u9009\u62E9\u8865\u8003\u5B66\u751F",open:Oe,width:1200,footer:null,onCancel:()=>{Bt()}},ut.createElement(dt.Z,{style:{marginBottom:"20px",marginTop:"15px",display:"flex",alignItems:"center",justifyContent:"space-between"}},ut.createElement(dt.Z,null,ut.createElement(it.Z,null,ut.createElement(at.default,{size:"large",value:Dn,style:{width:200,marginRight:20},onChange:nn=>{Dt(nn),nn==="all"?xe.course_group_id=null:xe.course_group_id=nn,xe.page=1,Ne(ye({},xe)),tt()},options:We})),gt&&ut.createElement(it.Z,null,ut.createElement(at.default,{size:"large",value:gn,style:{width:200},onChange:nn=>{yt(nn),nn==="all"?xe.status=null:xe.status=nn,xe.page=1,Ne(ye({},xe)),tt()},options:[{value:"all",label:"\u5168\u90E8\u72B6\u6001"},{value:"1",label:"\u7F3A\u8003"},{value:"2",label:"\u672A\u53CA\u683C"},{value:"3",label:"\u53CA\u683C"}]}))),ut.createElement(it.Z,null,ut.createElement(xt.t7,{style:{width:300,marginLeft:15},value:xe.keywords,allowClear:!0,onChange:nn=>{xe.keywords=nn,xe.page=1,Ne(ye({},xe)),tt()},placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D\u6216\u5B66\u53F7\u8FDB\u884C\u641C\u7D22"}))),ut.createElement(dt.Z,{align:"middle",className:"mb30"},ut.createElement(it.Z,{span:14},ut.createElement("div",{className:"flexd-table-header"},ut.createElement(Ze.default,{pagination:!1,dataSource:[],columns:be,rowSelection:gt?_e:null,rowKey:nn=>nn.user_id})),ut.createElement("div",null,ut.createElement(Ze.default,{rowSelection:gt?_e:null,columns:be,showHeader:!1,style:{minHeight:390},scroll:{y:390},rowKey:nn=>nn.user_id,loading:st,dataSource:Rt==null?void 0:Rt.exercise_users,onChange:(nn,Tt,bt)=>{xe.page=nn==null?void 0:nn.current,xe.limit=nn==null?void 0:nn.pageSize,bt!=null&&bt.order?(xe.sort_by=bt==null?void 0:bt.field,xe.direction=(bt==null?void 0:bt.order)==="ascend"?"asc":"desc"):(xe.sort_by=null,xe.direction=null),Ne(ye({},xe)),tt()},pagination:!1}))),ut.createElement(it.Z,{span:1},ut.createElement("img",{src:Ve,style:{marginLeft:10}})),ut.createElement(it.Z,{span:9,style:{display:"flex",justifyContent:"flex-end"}},ut.createElement("div",{className:De.searchMember,style:{width:550}},ut.createElement(dt.Z,{className:De.searchMemberHeader},ut.createElement(it.Z,{className:"ml30",flex:"100px"},"\u59D3\u540D"),ut.createElement(it.Z,{flex:"110px"},"\u5B66\u53F7"),ut.createElement(it.Z,{flex:"120px",style:{marginLeft:5}},"\u5206\u73ED")),ut.createElement("div",{style:{overflow:"auto",height:390}},jt==null?void 0:jt.map((nn,Tt)=>ut.createElement(dt.Z,{key:Tt,align:"middle",style:{height:48,lineHeight:"48px",paddingLeft:30,borderBottom:"1px solid rgba(48,97,208,0.1)"}},ut.createElement(it.Z,{flex:"100px"},nn.user_name),ut.createElement(it.Z,{flex:"110px"},nn.student_id),ut.createElement(it.Z,{flex:"120px",style:{marginLeft:5}},nn.user_group_name),ut.createElement(it.Z,{style:{marginLeft:10}},ut.createElement("i",{className:"iconfont icon-shanchudiao current",onClick:()=>{an(jt.filter(bt=>bt.user_id!=nn.user_id)),Mt(_t.filter(bt=>bt!=nn.user_id))}})))))))),!(kt===1||kt===2)&&ut.createElement("div",{className:De.bottom},ut.createElement(Ue.ZP,{className:De.no,onClick:()=>{Bt()}},"\u53D6\u6D88"),ut.createElement(Ue.ZP,{loading:Nt,type:"primary",onClick:()=>{Xt()}},"\u786E\u5B9A")))};var Ie=(0,wt.connect)(({})=>({}))(Te)},64205:function(fn,on,we){"use strict";var ve=we(59301),Ye=we(28284),dt=we(6767),it=we(62957),at=we(29787),Ze=we(77019),Ue=we(47889),xt=we(16326),nt=we(62673),De=we(61186),wt=we.n(De),Ve=we(38986),ut=we(51257),Ee=we(25690),te=we(12327),ne=we(71037),ue=Object.defineProperty,se=Object.defineProperties,de=Object.getOwnPropertyDescriptors,pe=Object.getOwnPropertySymbols,ye=Object.prototype.hasOwnProperty,Ce=Object.prototype.propertyIsEnumerable,ze=(Ct,gt,kt)=>gt in Ct?ue(Ct,gt,{enumerable:!0,configurable:!0,writable:!0,value:kt}):Ct[gt]=kt,Te=(Ct,gt)=>{for(var kt in gt||(gt={}))ye.call(gt,kt)&&ze(Ct,kt,gt[kt]);if(pe)for(var kt of pe(gt))Ce.call(gt,kt)&&ze(Ct,kt,gt[kt]);return Ct},Ie=(Ct,gt)=>se(Ct,de(gt)),Oe=(Ct,gt,kt)=>new Promise((Lt,Ot)=>{var Nt=He=>{try{st(kt.next(He))}catch(Rt){Ot(Rt)}},tn=He=>{try{st(kt.throw(He))}catch(Rt){Ot(Rt)}},st=He=>He.done?Lt(He.value):Promise.resolve(He.value).then(Nt,tn);st((kt=kt.apply(Ct,gt)).next())});function Re(Ct,gt){const kt=[];for(let Lt=Ct;Lt<gt;Lt++)kt.push(Lt);return kt}const rt=Ct=>{let gt=new Date;const kt=wt()(Ct).format("HH");if(wt()(Ct).isSame(wt()(gt),"day")){const Lt=wt()(gt).format("HH"),Ot=wt()(gt).format("mm");return{disabledHours:()=>Re(0,24).splice(1,Lt*1-1),disabledMinutes:()=>wt()(Ct).isSame(wt()(gt),"hour")&&kt<=Lt?Re(0,60).splice(0,Ot):Re(60,60)}}else if(wt()(Ct).isSame(wt()(),"day")){const Lt=wt()().format("HH"),Ot=wt()().format("mm");return{disabledHours:()=>Re(0,24).splice(0,Lt),disabledMinutes:()=>kt<=Lt?Re(0,Ot):Re(60,60)}}else return!1},ot=({exercise:Ct,dispatch:gt})=>{var kt;const Lt=(0,Ee.useParams)(),[Ot]=Ye.default.useForm(),[Nt,tn]=(0,ve.useState)(1),[st,He]=(0,ve.useState)([]),[Rt,Zt]=(0,ve.useState)(!0),[_t,Mt]=(0,ve.useState)([]),[jt,an]=(0,ve.useState)(!0),[Dn,Dt]=(0,ve.useState)(!1);(0,ve.useEffect)(()=>{Ct.actionTabs.key==="\u6279\u91CF\u7ED3\u675F"&&gn()},[Ct.actionTabs]);const gn=vi=>Oe(void 0,null,function*(){var We,Fe;Zt(!0);const xe=yield gt({type:"exercise/getEndGroups",payload:Ie(Te({},Lt),{check_ids:[...((We=Ct.actionTabs.selectArrs)==null?void 0:We.map(_e=>Number(_e)))||[]]})}),Ne=(Fe=xe==null?void 0:xe.course_info)==null?void 0:Fe.map((_e,be)=>Ie(Te({},_e),{key:_e.course_group_id,title:_e.course_group_name,name:_e.course_group_name,disabled:!!_e.is_published}));xe&&(xe!=null&&xe.course_info)&&(He([...Ne]),Ot.setFieldsValue({end_time:wt()(wt()(new Date((0,ut.qd)("/"))).add(7,"days").format("YYYY-MM-DD HH:mm"))})),Zt(!1)}),yt=()=>Oe(void 0,null,function*(){var vi,We,Fe,xe;const Ne=Te({},Ot.getFieldsValue());if((_t==null?void 0:_t.length)<=0&&st.length>0&&!((vi=Ct.actionTabs)!=null&&vi.unified_setting)){dt.ZP.info("\u73ED\u7EA7\u4E0D\u80FD\u4E3A\u7A7A");return}Dt(!0);const _e={check_ids:[...((We=Ct.actionTabs.selectArrs)==null?void 0:We.map(tt=>Number(tt)))||[]],group_ids:_t};jt||(_e.end_time=wt()(Ne.end_time).format("YYYY-MM-DD HH:mm")),_e.group_ids=_t.map(tt=>tt.course_group_id),(yield(0,Ve.ZP)(`/api/courses/${Lt.coursesId}/exercises/end_exercise.json`,{method:"post",body:_e})).status===0&&(dt.ZP.success("\u64CD\u4F5C\u6210\u529F"),(0,ut.L9)(["\u6559\u5B66\u8BFE\u5802","\u8BD5\u5377","\u6279\u91CF\u7ED3\u675F"]),gt({type:"exercise/setActionTabs",payload:{}}),(Fe=Ct==null?void 0:Ct.actionTabs)!=null&&Fe.cb?(xe=Ct==null?void 0:Ct.actionTabs)==null||xe.cb():gt({type:"classroomList/getClassroomExercisesList",payload:Te({},Ct.actionTabs.params)})),Dt(!1)}),Zn=()=>{tn(1),He([]),Mt([]),an(!0)};return ve.createElement(it.default,{centered:!0,title:"\u7ED3\u675F\u8003\u8BD5",open:Ct.actionTabs.key==="\u6279\u91CF\u7ED3\u675F",okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:yt,width:680,confirmLoading:Dn||Rt,onCancel:()=>{Zn(),gt({type:"exercise/setActionTabs",payload:{}})}},ve.createElement(at.Z,{spinning:Rt},st&&ve.createElement(Ye.default,{form:Ot},ve.createElement("div",{style:{color:"#333333",display:"flex"},className:"font14 mb10"},ve.createElement("img",{style:{marginRight:5,objectFit:"contain"},src:te.Z}),"\u8003\u8BD5\u65F6\u95F4\u7ED3\u675F\u540E\uFF0C\u5B66\u751F\u5C06\u4E0D\u80FD\u518D\u7B54\u9898\u3002"),ve.createElement(Ze.Z,{className:"mt20 mb10"},ve.createElement("span",{className:"mr10"},ve.createElement("span",{style:{color:"red",marginRight:3}},"*"),"\u7ED3\u675F\u65F6\u95F4"),ve.createElement(Ue.ZP.Group,{value:jt,onChange:vi=>{an(vi.target.value),Mt([])}},ve.createElement(Ue.ZP,{value:!0},"\u7ACB\u5373\u7ED3\u675F"),ve.createElement(Ue.ZP,{value:!1},"\u5B9A\u65F6\u7ED3\u675F")),ve.createElement(Ye.default.Item,{name:"end_time",style:{marginTop:-3,visibility:jt?"hidden":"visible"}},ve.createElement(xt.default,{style:{width:170},placeholder:"\u8BF7\u9009\u62E9\u7ED3\u675F\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:wt()((0,ut.U6)(),"HH:mm")},disabledDate:vi=>vi&&vi<wt()().subtract(0,"days"),disabledTime:rt,format:"YYYY-MM-DD HH:mm",allowClear:!1}))),st.length>0&&!((kt=Ct.actionTabs)!=null&&kt.unified_setting)&&ve.createElement(Ze.Z,{style:{marginBottom:"10px"}},ve.createElement("span",{className:"mr10"},ve.createElement("span",{style:{color:"red",marginRight:3}},"*"),"\u9009\u62E9\u73ED\u7EA7:"),ve.createElement("div",null,st.length>0&&ve.createElement("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:"10px"}},ve.createElement("span",{style:{flex:1}},ve.createElement(nt.default,{checked:_t.length===st.length,onChange:vi=>{_t.length===st.length?Mt([]):Mt(st)}},"\u5168\u9009")," "),ve.createElement("span",{style:{width:16}}),ve.createElement("span",{style:{flex:1}},"\u5DF2\u9009\u62E9",_t.length||0,"\u4E2A\u5206\u73ED")),ve.createElement(ne.Z,{data:st,selectedRowKeys:_t,setSelectedRowKeys:Mt}))))))};on.Z=(0,Ee.connect)(({exercise:Ct})=>({exercise:Ct}))(ot)},2773:function(fn,on,we){"use strict";we.d(on,{Z:function(){return Rt}});var ve=we(59301),Ye=we(28284),dt=we(6767),it=we(62957),at=we(29787),Ze=we(77019),Ue=we(47889),xt=we(71051),nt=we(16326),De=we(71411),wt=we(62673),Ve=we(99571),ut=we(61186),Ee=we.n(ut),te=we(38986),ne=we(51257),ue=we(25690),se=we(81722),de=we(12327),pe=we(71037),ye=we(50242),Ce={contentInterval:"contentInterval___wAfD8",numberInput:"numberInput___R9kLf",minorRuleText:"minorRuleText___LjpSg",failedList:"failedList___KYTHd",name:"name___MqNtz",publish:"publish___TPl6Z"},ze=we(3039),Te=we(75736),Ie=we(59301),Oe=Object.defineProperty,Re=Object.defineProperties,rt=Object.getOwnPropertyDescriptors,ot=Object.getOwnPropertySymbols,Ct=Object.prototype.hasOwnProperty,gt=Object.prototype.propertyIsEnumerable,kt=(Zt,_t,Mt)=>_t in Zt?Oe(Zt,_t,{enumerable:!0,configurable:!0,writable:!0,value:Mt}):Zt[_t]=Mt,Lt=(Zt,_t)=>{for(var Mt in _t||(_t={}))Ct.call(_t,Mt)&&kt(Zt,Mt,_t[Mt]);if(ot)for(var Mt of ot(_t))gt.call(_t,Mt)&&kt(Zt,Mt,_t[Mt]);return Zt},Ot=(Zt,_t)=>Re(Zt,rt(_t)),Nt=(Zt,_t,Mt)=>new Promise((jt,an)=>{var Dn=yt=>{try{gn(Mt.next(yt))}catch(Zn){an(Zn)}},Dt=yt=>{try{gn(Mt.throw(yt))}catch(Zn){an(Zn)}},gn=yt=>yt.done?jt(yt.value):Promise.resolve(yt.value).then(Dn,Dt);gn((Mt=Mt.apply(Zt,_t)).next())});function tn(Zt,_t){const Mt=[];for(let jt=Zt;jt<_t;jt++)Mt.push(jt);return Mt}const st=Zt=>{let _t=new Date;const Mt=Ee()(Zt).format("HH");if(Ee()(Zt).isSame(Ee()(_t),"day")){const jt=Ee()(_t).format("HH"),an=Ee()(_t).format("mm");return{disabledHours:()=>tn(0,24).splice(1,jt*1-1),disabledMinutes:()=>(console.log("\u7981\u6B62\u65F6\u95F4\uFF1A",Mt,jt),Ee()(Zt).isSame(Ee()(_t),"hour")&&Mt<=jt?tn(0,60).splice(0,an):tn(60,60))}}else if(Ee()(Zt).isSame(Ee()(),"day")){const jt=Ee()().format("HH"),an=Ee()().format("mm");return{disabledHours:()=>tn(0,24).splice(0,jt),disabledMinutes:()=>Mt<=jt?tn(0,an):tn(60,60)}}else return!1},He=({exercise:Zt,dispatch:_t})=>{var Mt,jt,an,Dn,Dt,gn,yt,Zn,vi,We,Fe,xe,Ne,_e,be,tt,Xt,Bt,nn,Tt,bt,zt;const qt=(0,ue.useParams)(),[pn]=Ye.default.useForm(),[ei,wn]=(0,ve.useState)(1),[Fn,Ci]=(0,ve.useState)([]),[$n,bi]=(0,ve.useState)(!0),[hi,Di]=(0,ve.useState)([]),[Gi,Ji]=(0,ve.useState)(!0),[Zr,qi]=(0,ve.useState)(!1),{workSetting:ii}=Zt,[so,Kr]=(0,ve.useState)(!1),[qr,io]=(0,ve.useState)([]),[Fo,lo]=(0,ve.useState)([]),[Ar,ro]=(0,ve.useState)(!1),[Le,xn]=(0,ve.useState)(!1),[Qn,gi]=(0,ve.useState)(!1),[yi,ti]=(0,ve.useState)(null),[Yi,cr]=(0,ve.useState)(1),[Sr,Jt]=(0,ve.useState)({}),[Vt,It]=(0,ve.useState)({}),[Ei,Ii]=(0,ve.useState)(!1);(0,ve.useEffect)(()=>{var Ft;if(Zt.actionTabs.key==="\u6279\u91CF\u53D1\u5E03"&&(Xn(),br(),Zt.actionTabs.type===2)){const Tn=(Ft=Zt.actionTabs)==null?void 0:Ft.unified_setting;Ji(Tn)}},[Zt.actionTabs]),(0,ve.useEffect)(()=>{var Ft,Tn,Yn,en,Gn,kn,_n;(Ft=ii==null?void 0:ii.exercise)!=null&&Ft.publish_time&&pn.setFieldsValue({publish_time:Ee()((Tn=ii==null?void 0:ii.exercise)==null?void 0:Tn.publish_time)}),(Yn=ii==null?void 0:ii.exercise)!=null&&Yn.end_time&&pn.setFieldsValue({end_time:Ee()((en=ii==null?void 0:ii.exercise)==null?void 0:en.end_time)}),pn.setFieldsValue({exercise_type:(Gn=ii==null?void 0:ii.exercise)==null?void 0:Gn.exercise_type,simulate_exercise_num:(kn=ii==null?void 0:ii.exercise)==null?void 0:kn.simulate_exercise_num}),cr((_n=ii==null?void 0:ii.exercise)==null?void 0:_n.exercise_type)},[Zt]);const ji=Ft=>{var Tn;const Yn=pn.getFieldValue("publish_time");if(!Yn||(Tn=ii==null?void 0:ii.exercise)!=null&&Tn.publish_time)return;let en;Ft===1?en=Ee()(Yn).add(120,"minutes"):en=Ee()(Yn).add(7,"days"),pn.setFieldsValue({end_time:en})},Xn=Ft=>Nt(void 0,null,function*(){var Tn,Yn;bi(!0);const en=yield(0,se.N3)({coursesId:qt.coursesId,check_ids:[...((Tn=Zt.actionTabs.selectArrs)==null?void 0:Tn.map(kn=>Number(kn)))||[]]});console.log(en,"res");const Gn=((Yn=en==null?void 0:en.course_info)==null?void 0:Yn.map((kn,_n)=>Ot(Lt({},kn),{key:kn.course_group_id,title:kn.course_group_name,name:kn.course_group_name,disabled:!!kn.is_published})))||[];if((en==null?void 0:en.status)!==-1){Ci([...Gn]);const kn=Ee()();pn.setFieldsValue({publish_time:kn}),(pn.getFieldValue("exercise_type")||1)===1?pn.setFieldsValue({end_time:Ee()(kn).add(120,"minutes")}):pn.setFieldsValue({end_time:Ee()(kn).add(7,"days")})}bi(!1)});(0,ve.useEffect)(()=>{var Ft,Tn,Yn,en,Gn,kn;if((Ft=ii==null?void 0:ii.exercise)!=null&&Ft.is_appoint_user){const _n=((Yn=(Tn=ii==null?void 0:ii.exercise)==null?void 0:Tn.all_exercise_users)==null?void 0:Yn.map(xi=>xi.user_id))||[];io([..._n])}ro((en=ii==null?void 0:ii.exercise)==null?void 0:en.is_appoint_user),xn((Gn=ii==null?void 0:ii.exercise)==null?void 0:Gn.is_miss_exam_user),gi((kn=ii==null?void 0:ii.exercise)==null?void 0:kn.is_no_passing_user)},[ii]),(0,ve.useEffect)(()=>{var Ft,Tn,Yn,en,Gn,kn,_n,xi;(Tn=(Ft=Zt==null?void 0:Zt.actionTabs)==null?void 0:Ft.selectArrs)!=null&&Tn[0]&&Zt.actionTabs.key==="\u6279\u91CF\u53D1\u5E03"&&_t({type:"exercise/getWorkSetting",payload:{categoryId:(en=(Yn=Zt==null?void 0:Zt.actionTabs)==null?void 0:Yn.selectArrs)==null?void 0:en[0],category:(kn=(Gn=Zt==null?void 0:Zt.actionTabs)==null?void 0:Gn.selectArrs)==null?void 0:kn[0],coursesId:(xi=(_n=Zt==null?void 0:Zt.actionTabs)==null?void 0:_n.params)==null?void 0:xi.id}})},[(Mt=Zt==null?void 0:Zt.actionTabs)==null?void 0:Mt.selectArrs]);const Ai=()=>Nt(void 0,null,function*(){var Ft,Tn,Yn,en,Gn,kn,_n;const xi=Lt({},pn.getFieldsValue()),mi=Ee()(Ee()(xi.publish_time).format("YYYY-MM-DD HH:mm")).valueOf(),sn=Ee()(Ee()(xi.end_time).format("YYYY-MM-DD HH:mm")).valueOf();if(console.log(mi,mi,33),sn<=mi){dt.ZP.info("\u7ED3\u675F\u65F6\u95F4\u4E0D\u5141\u8BB8\u5C0F\u4E8E\u7B49\u4E8E\u5F00\u59CB\u65F6\u95F4");return}if((hi==null?void 0:hi.length)<=0&&!Gi&&Fn.length>0&&!((Ft=ii==null?void 0:ii.exercise)!=null&&Ft.is_make_up_exercise)){dt.ZP.info("\u73ED\u7EA7\u4E0D\u80FD\u4E3A\u7A7A");return}const ki=Fn.map($i=>$i.key),Cr={check_ids:[...((Tn=Zt.actionTabs.selectArrs)==null?void 0:Tn.map($i=>Number($i)))||[]],end_time:Ee()(xi.end_time).format("YYYY-MM-DD HH:mm"),publish_time:Ee()(xi.publish_time).format("YYYY-MM-DD HH:mm"),group_ids:hi.map($i=>$i.course_group_id),unified_setting:!hi.length,exercise_type:xi.exercise_type,simulate_exercise_num:xi.simulate_exercise_num};if(((Yn=Zt.actionTabs.selectArrsAll)==null?void 0:Yn.length)>0&&Zt.actionTabs.type===1&&(Cr.check_ids=[...((Gn=(en=Zt.actionTabs.selectArrsAll)==null?void 0:en.filter($i=>!$i.high_resources_consume||$i.high_resources_consume_permission))==null?void 0:Gn.map($i=>Number($i==null?void 0:$i.id)))||[]]),(kn=ii==null?void 0:ii.exercise)!=null&&kn.is_make_up_exercise){if(Ar&&qr.length<=0||!Ar&&!(Le||Qn)){dt.ZP.error("\u8BF7\u9009\u62E9\u8865\u8003\u5B66\u751F");return}Cr.is_appoint_user=Ar,Cr.is_miss_exam_user=Le,Cr.is_no_passing_user=Qn,Ar?Cr.make_up_exercise_users=qr.map($i=>({user_id:$i})):Cr.make_up_exercise_user=[]}let{is_locked:gr,open_camera:dr,screen_open:mn,login_restrict:Ir,ip_bind:jr,ip_limit:fo,is_random:yn,id:ni,identity_verify:Hi,open_phone_video_recording:Ri}=ii==null?void 0:ii.exercise;if(Zt.actionTabs.key!=="\u6279\u91CF\u53D1\u5E03"||(gr||dr||mn||Ir||jr||fo=="pub"||fo=="inner"||Hi||Ri)&&xi.exercise_type==2){if(_t({type:"exercise/setActionTabs",payload:{}}),Zt.actionTabs.type==2){let $i=it.default.confirm({width:666,centered:!0,okText:"\u7ACB\u5373\u8C03\u6574",cancelText:"\u4E0D\u9700\u8981",title:"\u63D0\u793A",icon:null,content:Ie.createElement("div",null,"\u5F53\u524D\u8003\u8BD5\u6A21\u5F0F\u4E3A\u201C\u6A21\u62DF\u8003\u8BD5\u201D\uFF0C\u60A8\u5DF2\u5F00\u542F",Ie.createElement("span",{style:{color:"#FA6400"}}," ",(0,ne.hi)(ii==null?void 0:ii.exercise)," "),"\u9632\u4F5C\u5F0A\u89C4\u5219\uFF0C\u53EF\u80FD\u4F1A\u5F71\u54CD\u5B66\u751F\u8FDB\u884C\u91CD\u590D\u8003\u8BD5\u3002\u662F\u5426\u9700\u8981\u8FDB\u884C\u8C03\u6574\uFF1F"),onOk:()=>Nt(void 0,null,function*(){var Fr;Ii(!0);let Dr=yield(0,Te.Tr)({exercise_ids:[...((Fr=Zt.actionTabs.selectArrs)==null?void 0:Fr.map(Rr=>Number(Rr)))||[]],course_id:qt.coursesId,type:"exercise"});if((Dr==null?void 0:Dr.student_count)===0){if((yield Tr(Cr))&&Zt.actionTabs.isRouter){$i.destroy(),ue.history.push(`/classrooms/${qt.coursesId}/exercise/${ni}/detail?random=${yn}&tabs=3&childrenTabs=2`);return}_t({type:"exercise/setActionTabs",payload:{key:"\u8C03\u6574tabs\u9009\u4E2D"}})}else It(Cr),Jt(Dr)}),onCancel:()=>{$i.destroy(),Ii(!1),Tr(Cr)}})}else{let $i=it.default.info({width:580,centered:!0,okText:"\u6211\u77E5\u9053\u4E86",title:"\u63D0\u793A",icon:null,content:Ie.createElement("div",null,"\u6A21\u62DF\u8003\u8BD5\u5F00\u542F\u9632\u4F5C\u5F0A\u89C4\u5219\u53EF\u80FD\u4F1A\u5F71\u54CD\u5B66\u751F\u8FDB\u884C\u91CD\u590D\u8003\u8BD5\uFF0C\u53EF\u6839\u636E\u8003\u8BD5\u9700\u8981\u8FDB\u884C\u8C03\u6574\u3002"),onOk:()=>Nt(void 0,null,function*(){var Fr;Ii(!0);let Dr=yield(0,Te.Tr)({exercise_ids:[...((Fr=Zt.actionTabs.selectArrs)==null?void 0:Fr.map(Rr=>Number(Rr)))||[]],course_id:qt.coursesId,type:"exercise"});if((Dr==null?void 0:Dr.student_count)===0){if((yield Tr(Cr))&&Zt.actionTabs.isRouter){ue.history.push(`/classrooms/${qt.coursesId}/exercise/${ni}/detail?random=${yn}&tabs=3&childrenTabs=2`);return}_t({type:"exercise/setActionTabs",payload:{key:"\u8C03\u6574tabs\u9009\u4E2D"}})}else It(Cr),Jt(Dr)})})}return}let Xi=yield(0,Te.Tr)({exercise_ids:[...((_n=Zt.actionTabs.selectArrs)==null?void 0:_n.map($i=>Number($i)))||[]],course_id:qt.coursesId,type:"exercise"});(Xi==null?void 0:Xi.student_count)===0?Tr(Cr):(It(Cr),Jt(Xi))}),ur=()=>{var Ft;let Tn=[...(Ft=Zt.actionTabs.selectArrsAll)==null?void 0:Ft.filter(Yn=>Yn.high_resources_consume&&!Yn.high_resources_consume_permission)];(Tn==null?void 0:Tn.length)>0&&Zt.actionTabs.type===1&&it.default.confirm({centered:!0,icon:null,footer:null,width:560,title:"\u63D0\u793A",closable:!0,content:Ie.createElement("div",null,Ie.createElement("div",{className:Ce.tipcontent},Ie.createElement("div",{style:{color:"#191919"}},"\u60A8\u6709 ",Tn==null?void 0:Tn.length," \u4E2A\u9AD8\u6D88\u8017\u7C7B\u578B\u7684\u5B9E\u9A8C\u53D1\u5E03\u5931\u8D25\uFF0C\u8BF7\u5355\u72EC\u8FDB\u884C\u53D1\u5E03\u3002"),Ie.createElement("div",{className:"mt20 mb20"},Tn==null?void 0:Tn.map(Yn=>Ie.createElement("div",{className:Ce.failedList,key:Yn.id},Ie.createElement("div",{className:Ce.name},Yn==null?void 0:Yn.exercise_name),Ie.createElement("div",{className:Ce.publish,onClick:()=>{(0,ne.xg)(`/classrooms/${qt.coursesId}/exercise/${Yn.id}/detail?random=${Yn.is_random}`)}},"\u53D1\u5E03"))))))})},Tr=Ft=>Nt(void 0,null,function*(){var Tn,Yn,en;if(Zt.actionTabs.type===1){let _n=[...(Tn=Zt.actionTabs.selectArrsAll)==null?void 0:Tn.filter(xi=>xi.high_resources_consume&&!xi.high_resources_consume_permission)];if((_n==null?void 0:_n.length)==Zt.actionTabs.selectArrsAll.length){_t({type:"exercise/setActionTabs",payload:{}}),ur();return}}let Gn=!1;return qi(!0),(yield(0,te.ZP)(`/api/courses/${qt.coursesId}/exercises/publish.json`,{method:"post",body:Ft})).status===0&&((0,ne.L9)(["\u6559\u5B66\u8BFE\u5802","\u8BD5\u5377","\u7ACB\u5373\u53D1\u5E03"]),br(),dt.ZP.success("\u53D1\u5E03\u6210\u529F"),_t({type:"exercise/setActionTabs",payload:{}}),(Yn=Zt==null?void 0:Zt.actionTabs)!=null&&Yn.cb?(en=Zt==null?void 0:Zt.actionTabs)==null||en.cb():_t({type:"classroomList/getClassroomExercisesList",payload:Lt({},Zt.actionTabs.params)}),Gn=!0,Zt.actionTabs.type===1&&ur()),qi(!1),Gn}),br=()=>{wn(1),Ci([]),Di([])},et=(Ft,Tn,Yn)=>{Ft<=0?dt.ZP.info("\u8BF7\u9009\u62E9\u8865\u8003\u5B66\u751F"):(io(Tn),lo(Yn),Kr(!1))};return Ie.createElement(it.default,{centered:!0,title:"\u53D1\u5E03\u8003\u8BD5",open:Zt.actionTabs.key==="\u6279\u91CF\u53D1\u5E03",okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",width:660,onOk:Ai,confirmLoading:Zr||$n,onCancel:()=>{br(),_t({type:"exercise/setActionTabs",payload:{}})}},Ie.createElement(at.Z,{spinning:$n},Fn&&Ie.createElement(Ye.default,{form:pn},!!((jt=Zt==null?void 0:Zt.actionTabs)!=null&&jt.disabled)&&Ie.createElement("div",{style:{color:"#333333",display:"flex"},className:"font14 mb10"},Ie.createElement("img",{style:{marginRight:5,objectFit:"contain"},src:de.Z}),"\u5DF2\u7ECF\u53D1\u5E03\u8FC7\u8003\u8BD5\u7684\u8BD5\u5377\u4E0D\u53EF\u4EE5\u7EDF\u4E00\u53D1\u5E03\u3002"),!((an=ii==null?void 0:ii.exercise)!=null&&an.is_make_up_exercise)&&Ie.createElement(Ie.Fragment,null,Ie.createElement(Ze.Z,null,Ie.createElement("span",{className:"mr10",style:{lineHeight:"32px"}},Ie.createElement("span",{style:{color:"red",marginRight:3}},"*"),"\u8003\u8BD5\u6A21\u5F0F"),Ie.createElement(Ye.default.Item,{name:"exercise_type"},Ie.createElement(Ue.ZP.Group,{disabled:((Dn=ii==null?void 0:ii.exercise)==null?void 0:Dn.exercise_status)>1,onChange:Ft=>{cr(Ft.target.value),ji(Ft.target.value)}},Ie.createElement(Ue.ZP,{value:1},"\u6B63\u5F0F\u8003\u8BD5"),Ie.createElement(Ue.ZP,{value:2},"\u6A21\u62DF\u8003\u8BD5")))),Yi==2&&Ie.createElement(Ze.Z,{className:`${Ce.contentInterval}`},Ie.createElement("span",{className:`${Ce.minorRuleText}`,style:{marginLeft:50}},"\u6BCF\u4E2A\u5B66\u751F\u5141\u8BB8\u8FDB\u884C\u8003\u8BD5"),Ie.createElement(Ye.default.Item,{name:"simulate_exercise_num"},Ie.createElement(xt.Z,{className:Ce.numberInput,style:{width:145},precision:0,size:"middle",disabled:((Dt=ii==null?void 0:ii.exercise)==null?void 0:Dt.exercise_status)>1,min:1,max:999})),Ie.createElement("span",null,"\u6B21",Ie.createElement("span",{style:{color:"#999999"}},"\uFF08\u53EF\u8BBE\u7F6E1~999\u6B21\uFF09")))),Ie.createElement(Ze.Z,null,Ie.createElement("span",{className:"mr10 mt5"},Ie.createElement("span",{style:{color:"red",marginRight:3}},"*"),"\u8003\u8BD5\u65F6\u95F4"),Ie.createElement(Ye.default.Item,{name:"publish_time"},Ie.createElement(nt.default,{style:{width:170},disabledDate:Ft=>Ft&&Ft<=Ee()().subtract(0,"days"),disabledTime:st,placeholder:"\u8BF7\u9009\u62E9\u53D1\u5E03\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:Ee()((0,ne.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",allowClear:!1})),Ie.createElement("span",{className:"mt5 ml5 mr5"},"\u5230"),Ie.createElement(Ye.default.Item,{name:"end_time"},Ie.createElement(nt.default,{style:{width:170},placeholder:"\u8BF7\u9009\u62E9\u7ED3\u675F\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:Ee()((0,ne.U6)(),"HH:mm")},disabledDate:Ft=>Ft&&Ft<Ee()().subtract(0,"days"),disabledTime:st,format:"YYYY-MM-DD HH:mm",allowClear:!1}))),((gn=ii==null?void 0:ii.exercise)==null?void 0:gn.is_make_up_exercise)&&Ie.createElement(Ie.Fragment,null,Ie.createElement(Ze.Z,null,Ie.createElement("span",{style:{marginRight:"20px",fontSize:"14px",color:"3333",fontWeight:600}},"\u5F85\u8865\u8003\u5B66\u751F"),Ie.createElement(De.Z,{checked:Ar,onChange:(Ft,Tn)=>{var Yn,en,Gn,kn,_n;if(ro(Ft),Ft)if((Yn=ii==null?void 0:ii.exercise)!=null&&Yn.is_appoint_user){const xi=(Gn=(en=ii==null?void 0:ii.exercise)==null?void 0:en.all_exercise_users)==null?void 0:Gn.map(mi=>mi.user_id);io([...xi])}else io([]),xn(!1),gi(!1);else xn((kn=ii==null?void 0:ii.exercise)==null?void 0:kn.is_miss_exam_user),gi((_n=ii==null?void 0:ii.exercise)==null?void 0:_n.is_no_passing_user)},disabled:((yt=ii==null?void 0:ii.exercise)==null?void 0:yt.exercise_status)!==1}),Ie.createElement("span",{style:{marginLeft:"10px",fontSize:"14px",color:"3333"}},"\u6307\u5B9A\u5B66\u751F")),!Ar&&Ie.createElement(Ze.Z,{className:"mt20",style:{paddingLeft:"90px"},align:"middle"},Ie.createElement(wt.default,{checked:Le,disabled:((Zn=ii==null?void 0:ii.exercise)==null?void 0:Zn.exercise_status)!==1||((vi=ii==null?void 0:ii.exercise)==null?void 0:vi.miss_exam_count)<=0,onChange:Ft=>{xn(Ft.target.checked)}},Ie.createElement("span",{style:{fontSize:"14px",color:"#333"}},"\u7F3A\u8003")),Ie.createElement("span",{style:{color:"#0152d9",cursor:"pointer",marginRight:"60px"},onClick:()=>{ti(1),ro(!1),Kr(!0)}},"\uFF08",`${(We=ii==null?void 0:ii.exercise)==null?void 0:We.miss_exam_count}\u4EBA`,"\uFF09"),Ie.createElement(wt.default,{checked:Qn,disabled:((Fe=ii==null?void 0:ii.exercise)==null?void 0:Fe.exercise_status)!==1||((xe=ii==null?void 0:ii.exercise)==null?void 0:xe.no_passing_count)<=0,onChange:Ft=>{gi(Ft.target.checked)}},Ie.createElement("span",{style:{fontSize:"14px",color:"#333"}},"\u672A\u53CA\u683C")),Ie.createElement("span",{style:{color:"#0152d9",cursor:"pointer"},onClick:()=>{ti(2),ro(!1),Kr(!0)}},"\uFF08",`${(Ne=ii==null?void 0:ii.exercise)==null?void 0:Ne.no_passing_count}\u4EBA`,"\uFF09")),Ar&&Ie.createElement(Ze.Z,{className:"mt20",style:{paddingLeft:"90px"}},Ie.createElement(Ve.ZP,{type:"primary",ghost:!0,disabled:((_e=ii==null?void 0:ii.exercise)==null?void 0:_e.exercise_status)!==1,onClick:()=>{Kr(!0),ti(void 0)}},Ie.createElement("span",null,Ie.createElement("i",{className:"iconfont icon-tianjia4 mr5",style:{fontSize:"14px"}})),Ie.createElement("span",null,"\u9009\u62E9\u5B66\u751F")),Ie.createElement("span",{style:{color:"#333",display:"inline-block",height:"32px",lineHeight:"32px",marginLeft:"10px"}},"\uFF08\u5DF2\u9009 ",`${qr.length||0} \u4EBA`,"\uFF09"))),Zt.actionTabs.type===2&&!((be=ii==null?void 0:ii.exercise)!=null&&be.is_make_up_exercise)&&Ie.createElement(Ze.Z,{style:{marginBottom:"10px"}},Ie.createElement("span",{className:"mr10"},Ie.createElement("span",{style:{color:"red",marginRight:3}},"*"),"\u9009\u62E9\u73ED\u7EA7"),Ie.createElement(Ue.ZP.Group,{value:Gi,onChange:Ft=>{Ji(Ft.target.value),Di([])}},Ie.createElement(Ue.ZP,{disabled:!!((tt=Zt==null?void 0:Zt.actionTabs)!=null&&tt.disabled)||Fn.some(Ft=>Ft==null?void 0:Ft.is_published)||!((Xt=Zt==null?void 0:Zt.actionTabs)!=null&&Xt.manage_all_group),value:!0},"\u7EDF\u4E00\u53D1\u5E03"),Ie.createElement(Ue.ZP,{disabled:Fn.length<=0,value:!1},"\u5206\u73ED\u53D1\u5E03"))),Fn.length<=0&&Zt.actionTabs.type===2&&!((Bt=ii==null?void 0:ii.exercise)!=null&&Bt.is_make_up_exercise)&&Ie.createElement("span",{style:{marginLeft:"65px",color:"rgba(0, 0, 0, 0.25)"}},'\u8BFE\u5802\u65E0\u5206\u73ED\uFF0C\u4EC5\u652F\u6301\u9009\u62E9\u201C\u7EDF\u4E00\u53D1\u5E03"'),(Zt.actionTabs.type===1||!Gi)&&!((nn=ii==null?void 0:ii.exercise)!=null&&nn.is_make_up_exercise)&&Fn.length>0&&Ie.createElement("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:"10px"}},Ie.createElement("span",{style:{flex:1}},Ie.createElement(wt.default,{checked:hi.length===Fn.length,onChange:Ft=>{hi.length===Fn.length?Di([]):Di(Fn)}},"\u5168\u9009")),Ie.createElement("span",{style:{width:16}}),Ie.createElement("span",{style:{flex:1}},"\u5DF2\u9009\u62E9",hi.length||0,"\u4E2A\u5206\u73ED")),(Zt.actionTabs.type===1||!Gi)&&!((Tt=ii==null?void 0:ii.exercise)!=null&&Tt.is_make_up_exercise)&&Fn.length>0&&Ie.createElement(pe.Z,{data:Fn,selectedRowKeys:hi,setSelectedRowKeys:Di})),Ie.createElement(ye.Z,{visible:so,setVisible:Kr,onK:et,selectKeys:qr,selectRows:Fo,appointStudent:Ar,modalParams:yi,courseId:qt.categoryId||((zt=(bt=Zt==null?void 0:Zt.actionTabs)==null?void 0:bt.selectArrs)==null?void 0:zt[0])})),Ie.createElement(ze.Z,{resdata:Sr,type:"exercisepush",okloading:Zr,oktext:(Sr==null?void 0:Sr.can_copy_num)===0?"\u786E\u5B9A":"\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362",onok:Ft=>Nt(void 0,null,function*(){var Tn,Yn,en;qi(!0);let Gn=yield(0,te.ZP)(`/api/courses/${qt.coursesId}/batch_copy_shixuns.json`,{method:"post",body:{type:"exercise",ids:[...((Tn=Zt.actionTabs.selectArrs)==null?void 0:Tn.map(kn=>Number(kn)))||[]]}});if(qi(!1),(Gn==null?void 0:Gn.status)===0)if(Ei){let kn=yield Tr(Vt);if(it.default.destroyAll(),kn&&Zt.actionTabs.isRouter){ue.history.push(`/classrooms/${qt.coursesId}/exercise/${(Yn=ii==null?void 0:ii.exercise)==null?void 0:Yn.id}/detail?random=${(en=ii==null?void 0:ii.exercise)==null?void 0:en.is_random}&tabs=3&childrenTabs=2`);return}_t({type:"exercise/setActionTabs",payload:{key:"\u8C03\u6574tabs\u9009\u4E2D"}})}else Tr(Vt)})}))};var Rt=(0,ue.connect)(({exercise:Zt})=>({exercise:Zt}))(He)},71037:function(fn,on,we){"use strict";we.d(on,{Z:function(){return De}});var ve=we(59301),Ye=we(37568),dt=we(62673),it=we(77019),at={leftdiv:"leftdiv___iuhY9",listClass:"listClass___o5N53",spantitle:"spantitle___KVMSL",rightdiv:"rightdiv___f2zZr"},Ze="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAbVJREFUOE+Nk79rFUEUhb+zE4OFwUD+CyGKKQQbSaMikQQ7C1tBBIsUQaJvl2Fn/cWDpAiIYJsi7YOIaCUWFoKKRhG0sbEzEImFGnev7G6yyXsxeU5159yZb87l3hG9q2WLiBO79FIwXpLp0s6cwITnQCMWrGDM43jdBckZQ0wTMdrong2R2Bxm0/98sZ8ozdcOEm5hjOC41u9Olc9ZQKySclOVkNhljCmCzjeAJM/4FbW5p+8k5tlggTtarfKxLSM6pHq4BTiL0SboaAOIi284jeP1nti+ApMEvdoEvEPMkOpJDZi1IwzwgqDh/wSsYZwk08ca4O0Qua3zW8OV5crmHg6u22EGbQ2nIbx+1IC6rrK+cYJW9gXEVrbxGUEj5bltQGJvgBapHu0LSGwCyEh1vBsQWwd4TNCDPg6uAOcImuoFlL1dJ9WNPg5uYwwRVM3MzhJmKIpjZK6e9bj4jNNpvL4QFx9wuoDXJ1r5IlH0llTtXgcXwa4SolObnYnwKnbFcfEcdJ+gpW6AtzFynuIop/Fn053u4CA5yzjO4FV9tu0Syl2S38WiSWBgD8AfoEPQ7Fb+LwIiyhxWwe2KAAAAAElFTkSuQmCC",Ue=we(28426),xt=(wt,Ve,ut)=>new Promise((Ee,te)=>{var ne=de=>{try{se(ut.next(de))}catch(pe){te(pe)}},ue=de=>{try{se(ut.throw(de))}catch(pe){te(pe)}},se=de=>de.done?Ee(de.value):Promise.resolve(de.value).then(ne,ue);se((ut=ut.apply(wt,Ve)).next())}),De=({data:wt,value:Ve=[],handleChangePage:ut,setSelectedRowKeys:Ee,selectedRowKeys:te,onChange:ne=()=>{}})=>{const[ue,se]=(0,ve.useState)([]),[de,pe]=(0,ve.useState)([]),[ye,Ce]=(0,ve.useState)([]);let[ze,Te]=(0,ve.useState)(1),[Ie,Oe]=(0,ve.useState)();return(0,ve.useEffect)(()=>{se(wt),pe([]),Ce([])},[wt]),(0,ve.useEffect)(()=>{Ee&&(pe(te),Ce(te))},[te]),ve.createElement("div",{style:{display:"flex",justifyContent:"space-between"}},ve.createElement("div",{className:at.leftdiv},ve.createElement(Ye.default.Search,{size:"middle",onChange:Re=>xt(void 0,null,function*(){se(wt.filter(rt=>{var ot;return(ot=rt==null?void 0:rt.name)==null?void 0:ot.includes(Re.target.value)}))}),placeholder:"\u53EF\u8F93\u5165\u73ED\u7EA7\u540D\u79F0\u67E5\u8BE2"}),ue.length===0&&ve.createElement(Ue.Z,{styles:{margin:"70px auto"},customText:"\u6682\u65E0\u5206\u73ED"}),ve.createElement("div",{style:{height:"85%",overflow:"auto",overflowX:"hidden"}},ve.createElement(dt.default.Group,{value:de.map(Re=>`${Re.course_group_id}`),onChange:Re=>{Ee(ue.filter(rt=>Re.includes(`${rt.course_group_id}`)))},style:{marginTop:"10px",flexDirection:"column"}},ue.map((Re,rt)=>ve.createElement(it.Z,{key:Re.course_group_id,style:{marginTop:"10px",lineHeight:"24px",display:"flex",width:200}},ve.createElement(dt.default,{style:{display:"flex",height:"24px",alignItems:"center"},disabled:Re.is_published,value:`${Re.course_group_id}`},ve.createElement("div",{className:at.listClass},ve.createElement("span",{className:at.spantitle,style:{width:Re.is_published?"108px":"170px"}},Re.name),Re.is_published&&ve.createElement("span",{style:{width:"52px",height:"24px",background:"#B8B8B8",borderRadius:"13px",color:"white",lineHeight:"24px",textAlign:"center",display:"inline-block"}},"\u5DF2\u53D1\u5E03")))))))),ve.createElement("div",{className:at.rightdiv},ve.createElement(Ye.default.Search,{onChange:Re=>{Ce(de.filter(rt=>rt.name.includes(Re.target.value)))},size:"middle",placeholder:"\u53EF\u8F93\u5165\u73ED\u7EA7\u540D\u79F0\u67E5\u8BE2"}),ye.length===0&&ve.createElement(Ue.Z,{styles:{margin:"70px auto"},customText:"\u6682\u672A\u9009\u62E9\u5206\u73ED"}),ye.length>0&&ve.createElement("div",{style:{marginTop:"10px",height:"85%",overflow:"hidden",position:"relative"}},ve.createElement("div",{style:{overflowX:"hidden",overflowY:"scroll",position:"absolute",left:0,top:0,right:-17,bottom:0}},ye.map((Re,rt)=>ve.createElement(it.Z,{justify:"space-between",style:{marginTop:"10px"},key:Re.course_group_id},ve.createElement("div",{style:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",marginRight:"5px",marginLeft:"5px",width:"75%"}},Re.name),ve.createElement("img",{src:Ze,style:{cursor:"pointer",height:"16px",marginRight:17},onClick:()=>{Ee(de.filter(ot=>`${ot.course_group_name}`!=`${Re.course_group_name}`))}})))))))}},74255:function(fn,on,we){"use strict";var ve=we(59301),Ye=we(11938),dt=we(71051),it=we(28284),at=we(62957),Ze=we(29787),Ue=we(54172),xt=we(37568),nt=we(77019),De=we(5269),wt=we(99571),Ve=we(81722),ut=we(61186),Ee=we.n(ut),te=we(25690),ne=we(51257),ue=we(6383),se=we(48790),de=we(45937),pe=we(59301),ye=(Ie,Oe,Re)=>new Promise((rt,ot)=>{var Ct=Lt=>{try{kt(Re.next(Lt))}catch(Ot){ot(Ot)}},gt=Lt=>{try{kt(Re.throw(Lt))}catch(Ot){ot(Ot)}},kt=Lt=>Lt.done?rt(Lt.value):Promise.resolve(Lt.value).then(Ct,gt);kt((Re=Re.apply(Ie,Oe)).next())});const{Countdown:Ce}=Ye.default,ze=({value:Ie,onChange:Oe,MaxMinutes:Re})=>pe.createElement(pe.Fragment,null,pe.createElement("div",{className:"p10 mb20",style:{background:"#F6F7F9"}},"1.\u53EA\u6709\u5F53\u8003\u8BD5\u622A\u6B62\u65F6\u95F4\u665A\u4E8E\u5B66\u751F\u7684\u4EA4\u5377\u622A\u6B62\u65F6\u95F4\u65F6\uFF0C\u624D\u652F\u6301\u5BF9\u5B66\u751F\u8FDB\u884C\u5EF6\u65F6\u64CD\u4F5C\uFF1B",pe.createElement("br",null),"2.\u6BCF\u4E2A\u5B66\u751F\u7684\u6700\u5927\u53EF\u5EF6\u65F6\u65F6\u95F4=\u8003\u8BD5\u622A\u6B62\u65F6\u95F4-\u5B66\u751F\u5F53\u524D\u7684\u4EA4\u5377\u622A\u6B62\u65F6\u95F4\u3002",pe.createElement("br",null)),pe.createElement(dt.Z,{value:Ie,onChange:Oe,min:0,precision:0,max:Re,style:{width:"100%"},placeholder:`\u6700\u5927\u53EF\u5EF6\u957F\u65F6\u95F4\u4E3A${Re}\u5206\u949F\uFF0C\u5728\u5B66\u751F\u5269\u4F59\u65F6\u95F4\u57FA\u7840\u4E0A\u5EF6\u65F6`,addonAfter:"\u5206\u949F"})),Te=({exercise:Ie,successCb:Oe,dispatch:Re})=>{var rt,ot,Ct,gt;const kt=(0,te.useParams)(),[Lt]=it.default.useForm(),Ot=it.default.useWatch("time",Lt),[Nt,tn]=(0,ve.useState)(!1),st=(0,ve.useRef)(),{actionTabs:He}=Ie,[Rt,Zt]=(0,ve.useState)(),[,_t,Mt,jt]=(0,de.U)(Ve.n7,{id:kt.categoryId}),[,an,Dn]=(0,de.U)(Ve.Cd,{});(0,ve.useEffect)(()=>{Ie.actionTabs.key==="student-unlock"&&(tn(!1),Lt.resetFields())},[Ie.actionTabs.key]);const Dt=()=>new Promise(_e=>ye(void 0,null,function*(){var be,tt;return st.current=yield(0,ue.y)({ip_limit:(be=He==null?void 0:He.exerciseParams)==null?void 0:be.ip_limit,ip_bind:(tt=He==null?void 0:He.exerciseParams)==null?void 0:tt.ip_bind_type}),_e()})),gn=()=>ye(void 0,null,function*(){var _e,be,tt,Xt,Bt;yield Lt.validateFields();const nn=Lt.getFieldsValue();if(tn(!0),(((_e=He==null?void 0:He.exerciseParams)==null?void 0:_e.ip_limit)!=="no"||(be=He==null?void 0:He.exerciseParams)!=null&&be.ip_bind_type)&&(yield Dt()),(yield(0,Ve.ZD)((tt=He==null?void 0:He.exerciseParams)==null?void 0:tt.id,{exercise_user_id:(Xt=He==null?void 0:He.exerciseParams)==null?void 0:Xt.exercise_user_id,unlock_key:nn.unlock_key,time:nn.time,ip:st.current})).status===0){if(Oe){Re({type:"exercise/setActionTabs",payload:{}}),Oe();return}const bt=He==null?void 0:He.exerciseParams;(0,ne.nr)({inner_ip:bt.inner_ip,public_ip:bt.public_ip,open_camera:bt.open_camera,ip_limit:bt.ip_limit,ip_bind:bt.ip_bind,ip_bind_type:bt.ip_bind_type,exercise_tips:bt.exercise_tips,exerciseId:bt.id,screen_open:bt.screen_open,screen_num:bt.screen_num,screen_sec:bt.screen_sec,coursesId:kt.coursesId,login:(Bt=(0,se.eY)())==null?void 0:Bt.login,history,identity_verify:bt.identity_verify,open_phone_video_recording:bt.open_phone_video_recording,current_status:bt.current_status}),Re({type:"exercise/setActionTabs",payload:{}})}tn(!1)}),yt=[{title:"IP\u5730\u5740",dataIndex:"ip",key:"ip",render:_e=>pe.createElement("span",{className:_e.indexOf("\u5F02\u5E38")>-1?"c-red":"c-green"},_e)},{title:"\u6D4F\u89C8\u5668",dataIndex:"browser",key:"browser",render:_e=>pe.createElement("span",{className:_e.indexOf("\u5F02\u5E38")>-1?"c-red":"c-green"},_e)},{title:"\u4E0A\u6B21\u767B\u5F55\u65F6\u95F4",dataIndex:"last_login_time",key:"last_login_time"}],Zn=((rt=He==null?void 0:He.exerciseParams)==null?void 0:rt.errorMessage)&&typeof((ot=He==null?void 0:He.exerciseParams)==null?void 0:ot.errorMessage)=="object";(0,ve.useEffect)(()=>{Ie.actionTabs.key==="student-unlock"&&ye(void 0,null,function*(){const _e=yield Dn(kt);yield Mt({}),_e.status||Zt(_e)})},[Ie.actionTabs.key]);const{time:vi,end_time:We}=(Rt==null?void 0:Rt.exercise)||{},Fe=jt!=null&&jt.user_end_time?Ee()(jt==null?void 0:jt.user_end_time).add(1,"minutes"):Ee()(),xe=Ee()(jt==null?void 0:jt.user_total_end_time)>Fe?Math.round(Ee().duration(Ee()(jt==null?void 0:jt.user_total_end_time).diff(Fe.startOf("minute"))).asMinutes()):0,Ne=((jt==null?void 0:jt.student_left_minutes)||0)+(Ot||0);return pe.createElement(pe.Fragment,null,pe.createElement(at.default,{width:514,centered:!0,closable:!!((Ct=He==null?void 0:He.exerciseParams)!=null&&Ct.unlockClose),maskClosable:!1,keyboard:!1,maskStyle:{background:"#000"},title:"\u63D0\u793A",open:Ie.actionTabs.key==="student-unlock",footer:null,onCancel:()=>{Re({type:"exercise/setActionTabs",payload:{}})}},pe.createElement(Ze.Z,{spinning:_t||an},Zn&&pe.createElement("div",{style:{marginBottom:16}},"\u8BE5\u8D26\u53F7\u5DF2\u7ECF\u5B58\u5728\u5F02\u5E38\u60C5\u51B5\uFF0C\u82E5\u975E\u672C\u4EBA\u64CD\u4F5C\uFF0C\u8BF7\u8054\u7CFB\u76D1\u8003\u8001\u5E08\u8BF4\u660E\u60C5\u51B5\u3002 "),!Zn&&pe.createElement("div",{style:{marginBottom:16}},"\u7CFB\u7EDF\u68C0\u6D4B\u5230\u60A8\u5728\u8003\u8BD5\u65F6\u4E2D\u9014\u9000\u51FA\uFF0C\u73B0\u5DF2\u5C06\u8003\u8BD5\u9501\u5B9A\u3002\u5982\u9700\u7EE7\u7EED\u8FDB\u884C\u8003\u8BD5\uFF0C \u8BF7\u5C3D\u5FEB\u8054\u7CFB\u8BFE\u5802\u8001\u5E08\u8FDB\u884C\u89E3\u9501\uFF01"),Zn&&pe.createElement(Ue.default,{className:"mb20",pagination:{hideOnSinglePage:!0},dataSource:[((gt=He==null?void 0:He.exerciseParams)==null?void 0:gt.errorMessage)||{}],columns:yt}),pe.createElement("div",{className:""},pe.createElement(it.default,{form:Lt,layout:"vertical",autoComplete:"off"},pe.createElement(it.default.Item,{label:"\u8003\u8BD5\u89E3\u9501\u7801",name:"unlock_key",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8003\u8BD5\u89E3\u9501\u7801"}]},pe.createElement(xt.default.Password,{autoComplete:"off",placeholder:"\u8BF7\u8F93\u5165\u8003\u8BD5\u89E3\u9501\u7801",visibilityToggle:!1})),vi!==-1?pe.createElement(pe.Fragment,null,pe.createElement(it.default.Item,{name:"time",label:pe.createElement("span",null,"\u5EF6\u957F\u65F6\u95F4\uFF08",pe.createElement("span",{style:{color:"#9096A3"}},"\u5F53\u524D\u8003\u8BD5\u622A\u6B62\u65F6\u95F4",Ee()(jt==null?void 0:jt.user_total_end_time).format("YYYY-MM-DD HH:mm")),"\uFF09")},pe.createElement(ze,{MaxMinutes:xe})),pe.createElement("div",{className:"mb20",style:{color:"#FA6400"}},"\u8BE5\u5B66\u751F\u5269\u4F59\u8003\u8BD5\u65F6\u95F4\uFF1A",pe.createElement("span",{className:"ml5"},_t||an?"--":Ne),"\u5206\u949F",Ne!==0&&(jt==null?void 0:jt.user_end_time)&&pe.createElement("span",null,"\uFF0C\u4EA4\u5377\u622A\u6B62\u65F6\u95F4\uFF1A",pe.createElement("span",{className:"ml5"},Ee()(jt==null?void 0:jt.user_end_time).add(Ot||0,"m").format("YYYY-MM-DD HH:mm:ss"))))):pe.createElement("span",{style:{color:"#F6A53B"}}," \u5F53\u524D\u8003\u8BD5\u672A\u9650\u5236\u8003\u751F\u7B54\u9898\u65F6\u957F\uFF0C\u8003\u8BD5\u622A\u6B62\u65F6\u95F4\u4E3A ",Ee()(We).format("YYYY-MM-DD HH:mm")))),pe.createElement(nt.Z,{justify:"space-between",align:"middle"},pe.createElement(De.Z,null),pe.createElement(De.Z,null,pe.createElement(wt.ZP,{loading:Nt,onClick:gn},"\u8FDB\u5165\u8003\u8BD5"))))))};on.Z=(0,te.connect)(({exercise:Ie})=>({exercise:Ie}))(Te)},75582:function(fn,on,we){"use strict";we.d(on,{w:function(){return Ze}});var ve=we(38986),Ye=we(62957),dt=we(25690),it=we(59301),at=(Ue,xt,nt)=>new Promise((De,wt)=>{var Ve=te=>{try{Ee(nt.next(te))}catch(ne){wt(ne)}},ut=te=>{try{Ee(nt.throw(te))}catch(ne){wt(ne)}},Ee=te=>te.done?De(te.value):Promise.resolve(te.value).then(Ve,ut);Ee((nt=nt.apply(Ue,xt)).next())});const Ze=(Ue,xt,nt="\u6B63\u5728\u8FDB\u5165\u8BC4\u9605\uFF0C\u8BF7\u7A0D\u540E...",De=1,wt=2)=>at(void 0,null,function*(){De===1&&(0,dt.getDvaApp)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:De===1?nt:"\u6B63\u5728\u68C0\u6D4B\u4E2D\uFF0C\u8BF7\u7A0D\u540E..."}});const Ve=yield(0,ve.ZP)(`/api/exercises/${xt}/user_appraise_status.json`,{method:"get",params:{appraise_type:De}});if((Ve==null?void 0:Ve.status)===-1)return(0,dt.getDvaApp)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!1}}),Promise.reject();let ut={status:0};if((Ve==null?void 0:Ve.type)===2&&(ut=yield(0,ve.ZP)(`/api/exercises/${xt}/create_appraise_students.json`,{method:"get"})),(0,dt.getDvaApp)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}}),(ut==null?void 0:ut.status)===-1)return Promise.reject();if((Ve==null?void 0:Ve.type)===2){const Ee=()=>{dt.history.replace(`/classrooms/${Ue}/exercise/${xt}/centralizeReview/${ut==null?void 0:ut.login}`)};if(Ye.default.confirm({centered:!0,width:470,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",keyboard:!1,onOk:Ee,onCancel:()=>{wt===1&&dt.history.replace(`/classrooms/${Ue}/exercise/${xt}/detail`)},content:it.createElement("div",null,it.createElement("div",null,"\u60A8\u5DF2\u6210\u4E3A\u6307\u5B9A\u9605\u5377\u6559\u5E08\uFF0C\u662F\u5426\u73B0\u5728\u524D\u5F80",it.createElement("span",{onClick:Ee,className:"ml5 mr5 c-light-primary current"},"\u96C6\u4E2D\u9605\u5377"),"\u7EE7\u7EED\u8BC4\u9605\uFF1F"),it.createElement("div",{className:"c-grey-999"},"\uFF08\u9605\u5377\u7ED3\u675F\u540E\u6062\u590D\u5B66\u751F\u4E2A\u4EBA\u8BC4\u9605\u529F\u80FD\uFF0C\u5E76\u5C55\u793A\u5B66\u751F\u6210\u7EE9\uFF09"))}),wt!==3)return Promise.reject()}if((Ve==null?void 0:Ve.type)===3&&(Ye.default.info({centered:!0,width:470,okText:"\u786E\u5B9A",keyboard:!1,title:"\u63D0\u793A",onOk:()=>{wt===1&&dt.history.replace(`/classrooms/${Ue}/exercise/${xt}/detail`)},content:it.createElement("div",null,(Ve==null?void 0:Ve.message)||"")}),wt!==3)||(Ve==null?void 0:Ve.type)===4&&(Ye.default.info({centered:!0,width:470,okText:"\u786E\u5B9A",title:"\u63D0\u793A",keyboard:!1,onOk:()=>{wt===1&&dt.history.replace(`/classrooms/${Ue}/exercise/${xt}/detail`)},content:it.createElement("div",null,(Ve==null?void 0:Ve.message)||"")}),wt!==3))return Promise.reject()})},57720:function(fn,on,we){"use strict";we.r(on),we.d(on,{default:function(){return Si}});var ve=we(59301),Ye=we(25690),dt=we(62957),it=we(93041),at=we(6767),Ze=we(458),Ue=we(13747),xt=we(48608),nt=we(99571),De=we(62673),wt=we(61186),Ve=we.n(wt),ut=we(48790),Ee=we(51257),te=we(28426),ne=we(38986),ue=we(20554),se=we(28284),de=we(25399),pe=we(71051),ye=we(82326),Ce=we(37568),ze=we(26724),Te=we.n(ze),Ie=we(59639),Oe=we(98737),Re=we(40197),rt=we(87444),ot=we(22072),Ct=we(94361),gt=we(3039),kt=we(75736),Lt=we(59301),Ot=Object.defineProperty,Nt=Object.defineProperties,tn=Object.getOwnPropertyDescriptors,st=Object.getOwnPropertySymbols,He=Object.prototype.hasOwnProperty,Rt=Object.prototype.propertyIsEnumerable,Zt=($e,rn,Wt)=>rn in $e?Ot($e,rn,{enumerable:!0,configurable:!0,writable:!0,value:Wt}):$e[rn]=Wt,_t=($e,rn)=>{for(var Wt in rn||(rn={}))He.call(rn,Wt)&&Zt($e,Wt,rn[Wt]);if(st)for(var Wt of st(rn))Rt.call(rn,Wt)&&Zt($e,Wt,rn[Wt]);return $e},Mt=($e,rn)=>Nt($e,tn(rn)),jt=($e,rn,Wt)=>new Promise((Kt,Hn)=>{var Bn=li=>{try{On(Wt.next(li))}catch(ke){Hn(ke)}},un=li=>{try{On(Wt.throw(li))}catch(ke){Hn(ke)}},On=li=>li.done?Kt(li.value):Promise.resolve(li.value).then(Bn,un);On((Wt=Wt.apply($e,rn)).next())});const{TabPane:an}=ue.default,Dn=({classroomList:$e,exercise:rn,loading:Wt,dispatch:Kt})=>{var Hn;const Bn=(0,Ye.useParams)(),un=(0,Ye.useLocation)(),[On]=se.default.useForm(),{brankList:li}=rn;let[ke,ht]=(0,ve.useState)(!0),[Je,pt]=(0,ve.useState)(!1);const[Pt,$t]=(0,ve.useState)("myself");let[Qt,dn]=(0,ve.useState)([]),[Nn,jn]=(0,ve.useState)([]),[cn,qn]=(0,ve.useState)(),[ci,vt]=(0,ve.useState)([]);const Un=(0,ve.useRef)(null),[Jn,In]=(0,ve.useState)(!1),[zn,oi]=(0,ve.useState)(""),[Wn,fi]=(0,ve.useState)(""),[pi,ai]=(0,ve.useState)(!1),[Wi,pr]=(0,ve.useState)({}),or=[{title:"\u8BD5\u5377\u540D\u79F0",dataIndex:"name",ellipsis:!0,align:"left",render:(Ln,ir,hr)=>Lt.createElement("div",{style:{display:"flex",alignItems:"center"}},Lt.createElement(de.Z,{title:Ln},Lt.createElement("div",{title:Ln,className:Oe.Z.name},Ln)),(ir==null?void 0:ir.high_resources_consume)&&Lt.createElement(Ct.Z,{type:"shixun",style:{marginLeft:10}}))},{title:"\u65B9\u5411&\u8BFE\u7A0B",dataIndex:"course_list_name",width:180,ellipsis:!0,align:"left",render:Ln=>Lt.createElement(de.Z,{title:Ln},Lt.createElement("span",null,Ln))},{title:"\u7C7B\u578B",dataIndex:"is_random",width:90,align:"left",render:Ln=>Ln?"\u968F\u673A\u7EC4\u5377":"\u4EBA\u5DE5\u7EC4\u5377"},{title:"\u66F4\u65B0\u65F6\u95F4",dataIndex:"updated_at",width:150,align:"left"},{title:"\u8BD5\u9898\u6570",dataIndex:"item_num",width:60,align:"center"},{title:"\u603B\u5206",dataIndex:"total_score",width:60,align:"center"},{title:"\u64CD\u4F5C",dataIndex:"is_random",width:60,align:"center",render:(Ln,ir)=>Lt.createElement("a",{href:Ln?`/randompaper/detail/${ir.id}`:`/paperlibrary/see/${ir.id}?defaultActiveKey=1`,target:"_blank>"},"\u9884\u89C8")}],[tr,Pi]=(0,ve.useState)({page:0,limit:20,group_id:null,object_type:"examination_bank",search:"",filter:"myself"});(0,ve.useEffect)(()=>{rn.actionTabs.key==="\u8BD5\u5377\u9009\u7528"&&(lr(),vt([]),fr())},[rn.actionTabs.key]);const fr=()=>jt(void 0,null,function*(){const Ln=yield Kt({type:"paperlibrary/getTeachGroupData"});jn(Ln)}),nr=Ln=>{const ir=parseInt(Ln);return isNaN(ir)?"":ir},lr=()=>jt(void 0,null,function*(){var Ln,ir;if(ke){++tr.page,ht(!1);const hr=yield Kt({type:"exercise/getBrankList",payload:Mt(_t({},tr),{search:(Ln=tr.search)==null?void 0:Ln.trim()})});Qt=hr!=null&&hr.object_list?[...Qt.concat(hr==null?void 0:hr.object_list)]:Qt,tr.filter==="public"?qn(hr.is_teacher):qn(!0),((ir=hr.object_list)==null?void 0:ir.length)<tr.limit?ht(!1):ht(!0),dn([...Qt])}}),sr=Ln=>{Un.current.scrollTop=0,Qt=[],tr.page=0,tr.group_id=Ln,ke=!0,vt([]),Pi(_t({},tr)),lr()},mr={selectedRowKeys:ci,onChange:Ln=>{vt(Ln)},type:"radio"},En=()=>{Pi(_t({},{page:0,limit:20,group_id:null,object_type:"examination_bank",search:"",filter:"myself"})),dn([]),ht(!0),$t("myself"),Kt({type:"exercise/setActionTabs",payload:{}}),pt(!1)},[Mi,Ti,Vi,Zi]=(0,rt.P)(),Oi=Ln=>jt(void 0,null,function*(){let ir=!1;Qt.forEach(Fi=>{ci.includes(Fi.id)&&(ir=Fi.is_random)});const hr=Ln.map(Fi=>({shixun_id:Fi.id,is_use:Fi.is_use,is_copy:Fi.is_copy}));if(!ir){ai(!0);const Fi=yield Kt({type:"exercise/saveBanks",payload:{course_id:Bn.coursesId,category_id:(Bn==null?void 0:Bn.categoryId)||null,object_type:"examination_bank",bank_id:ci,shixuns_info:hr}});ai(!1),(Fi==null?void 0:Fi.status)===0&&((0,Ee.L9)(["\u6559\u5B66\u8BFE\u5802","\u8BD5\u5377","\u8BD5\u5377\u9009\u7528"]),Kt({type:"classroomList/getClassroomExercisesList",payload:_t({},rn.actionTabs.params)}),Kt({type:"classroomList/getClassroomLeftMenus",payload:{id:Bn.coursesId}}),oi(`/classrooms/${Bn.coursesId}/exercise/${Fi.exercise_id}/detail?random=${Fi.is_random}&tabs=3`),fi(`/classrooms/${Bn.coursesId}/exercise/add/${Fi.exercise_id}?random=${Fi.is_random}&type=2`),In(!0),at.ZP.success("\u751F\u6210\u8BD5\u5377\u6210\u529F"),Ti(),En());return}ai(!0),setTimeout(()=>{ai(!1)},500),Kt({type:"exercise/setActionTabs",payload:{}});let Mr=1,An=dt.default.confirm({icon:null,className:"custom-modal-divider",centered:!0,width:500,maskClosable:!1,keyboard:!1,cancelButtonProps:{disabled:!1},title:"\u914D\u7F6E\u51FA\u5377\u6570\u91CF",content:Lt.createElement("div",{className:Oe.Z.modalColumn},Lt.createElement("div",{className:Oe.Z.modalRow},Lt.createElement("sup",{className:Oe.Z.sup},"*"),Lt.createElement("span",{style:{flexShrink:0}},"\u968F\u673A\u51FA\u5377\u6570\u91CF\uFF1A"),Lt.createElement(pe.Z,{parser:nr,style:{width:120},placeholder:"\u8BF7\u8F93\u5165\u8BD5\u5377\u6570\u91CF",min:1,defaultValue:Mr,onChange:Fi=>{Mr=Fi;const _i=document.getElementById("model_error");Mr<1||Mr>50?_i.style.display="block":_i.style.display="none"}})),Lt.createElement("div",{style:{display:"none",marginLeft:106},id:"model_error",className:"c-red"},"\u8BF7\u8F93\u51651-50\u4E4B\u95F4\u7684\u6574\u6570")),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onCancel:En,onOk:()=>jt(void 0,null,function*(){if(Mr<1||Mr>50){const _i=document.getElementById("model_error");return _i.style.display="block",Promise.reject()}An.update({cancelButtonProps:{disabled:!0}});const Fi=yield Kt({type:"exercise/saveBanks",payload:{course_id:Bn.coursesId,object_type:"examination_bank",bank_id:ci,shixuns_info:hr,num:Mr}});An.update({cancelButtonProps:{disabled:!1}}),Fi&&Fi.status===0?((0,Ee.L9)(["\u6559\u5B66\u8BFE\u5802","\u8BD5\u5377","\u8BD5\u5377\u9009\u7528"]),dt.default.destroyAll(),Kt({type:"classroomList/getClassroomExercisesList",payload:_t({},rn.actionTabs.params)}),En(),Ti(),at.ZP.success("\u751F\u6210\u8BD5\u5377\u6210\u529F")):(En(),Ti())})})});return Lt.createElement(Lt.Fragment,null,Lt.createElement(dt.default,{centered:!0,width:1012,title:"\u9009\u62E9\u8BD5\u5377",maskClosable:!1,destroyOnClose:!0,open:rn.actionTabs.key==="\u8BD5\u5377\u9009\u7528",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",confirmLoading:Je,bodyStyle:{minHeight:200},wrapClassName:Oe.Z.warpModal,onOk:()=>jt(void 0,null,function*(){var Ln;if(!ci.length){at.ZP.error("\u8BF7\u9009\u62E9\u8BD5\u5377");return}pt(!0);let ir=!1,hr=!1;if(Qt.forEach(An=>{ci.includes(An.id)&&An.need_authorize&&(ir=An.need_authorize),ci.includes(An.id)&&(hr=An.is_random)}),ir){(0,Re.rX)(!1,"\u8BE5\u8BD5\u5377\u4E2D\u5305\u542B\u5B9E\u8BAD\u9700\u6388\u6743\u540E\u624D\u53EF\u4F7F\u7528\u3002 \u60A8\u53EF\u4EE5\u5728QQ\u670D\u52A1\u7FA4\u5411\u7BA1\u7406\u5458\u7533\u8BF7\uFF0C\u83B7\u5F97\u7EE7\u7EED\u64CD\u4F5C\u7684\u6743\u9650\u3002");return}let Mr=yield(0,kt.Tr)({id:`${ci[0]}`,course_id:(Ln=$e.detailTopBanner)==null?void 0:Ln.course_id,type:"examination_bank"});pt(!1),(Mr==null?void 0:Mr.student_count)===0?Oi([]):pr(Mr)}),onCancel:En},Lt.createElement(ue.default,{activeKey:Pt,onTabClick:Ln=>jt(void 0,null,function*(){Un.current.scrollTop=0,Qt=[],Pt!==Ln&&vt([]),$t(Ln),tr.page=0,tr.filter=Ln,tr.group_id=null,ke=!0,lr()})},Lt.createElement(an,{tab:Lt.createElement("span",null,"\u6211\u7684\u8BD5\u5377\u5E93"),key:"myself"}),Lt.createElement(an,{tab:Lt.createElement("span",null,"\u6559\u7814\u5171\u4EAB"),key:"teacher"}),Lt.createElement(an,{tab:Lt.createElement("span",null,"\u516C\u5171\u8BD5\u5377\u5E93"),key:"public"})),Lt.createElement("div",{className:Oe.Z.tabSearch},Pt==="teacher"&&Lt.createElement(ye.default,{value:tr.group_id,onChange:sr,size:"middle",style:{width:200,marginRight:30}},Lt.createElement(ye.default.Option,{value:null},"\u5168\u90E8\u6559\u7814\u56E2\u961F"),(Hn=Nn==null?void 0:Nn.groups)==null?void 0:Hn.map(Ln=>Lt.createElement(ye.default.Option,{key:Ln==null?void 0:Ln.group_id,value:Ln==null?void 0:Ln.group_id},Ln==null?void 0:Ln.name))),Lt.createElement(Ce.default.Search,{placeholder:"\u8BF7\u8F93\u5165\u8BD5\u5377\u540D\u79F0\u8FDB\u884C\u641C\u7D22",value:tr.search,onChange:Ln=>{tr.search=Ln.target.value,Pi(_t({},tr))},onSearch:Ln=>{Un.current.scrollTop=0,Qt=[],tr.page=0,ke=!0,vt([]),Ln&&(0,ot.tk)({name:Ln,copywriting:Ln,position:"Exercise"}),lr()}})),Lt.createElement("div",{ref:Un,style:{maxHeight:350,overflowY:"auto",overflowX:"hidden",marginTop:10,paddingBottom:20}},!cn&&Pt==="public"&&Lt.createElement("div",{style:{display:"flex",flexDirection:"column",paddingTop:"30px",alignItems:"center",justifyContent:"center"}},Lt.createElement("span",null,"\u901A\u8FC7\u804C\u4E1A\u8BA4\u8BC1\u7684\u6559\u5E08\u624D\u80FD\u8BBF\u95EE\u516C\u5171\u8BD5\u5377\u5E93\u8D44\u6E90"),Lt.createElement("p",{style:{cursor:"pointer",background:"#ff6800",height:"30px",textAlign:"center",marginTop:"5px",padding:"5px 0px",color:"#fff",width:"80px"},onClick:()=>{window.open("/account/certification")}},"\u7ACB\u5373\u8BA4\u8BC1")),Lt.createElement(Te(),{initialLoad:!1,pageStart:0,loadMore:()=>{lr()},hasMore:ke,useWindow:!1},rn.actionTabs.key==="\u8BD5\u5377\u9009\u7528"&&cn&&Lt.createElement(Ie.Z,{className:Oe.Z.hideHeadCheckbox,pagination:!1,hideSelectAll:!0,dataSource:Qt,onRow:Ln=>({onClick:()=>{vt([Ln==null?void 0:Ln.id])}}),resColumns:or,rowSelection:mr})))),Lt.createElement(dt.default,{title:"\u63D0\u793A",open:Jn,confirmLoading:!1,centered:!0,okText:"\u8BBE\u7F6E\u89C4\u5219",cancelText:"\u4FEE\u6539\u8BD5\u5377",footer:Lt.createElement("div",null,Lt.createElement(nt.ZP,{onClick:()=>{In(!1),Ye.history.push(Wn)}},"\u4FEE\u6539\u8BD5\u5377"),Lt.createElement(nt.ZP,{type:"primary",onClick:()=>{Ye.history.push(zn),In(!1)}},"\u8BBE\u7F6E\u89C4\u5219")),onCancel:()=>{In(!1)}},Lt.createElement("p",null,"\u8BD5\u5377\u521B\u5EFA\u5B8C\u6210\uFF01\u76EE\u524D\u5904\u4E8E\u672A\u53D1\u5E03\u72B6\u6001\uFF0C\u662F\u5426\u8BBE\u7F6E\u8003\u8BD5\u89C4\u5219\uFF1F")),Lt.createElement(gt.Z,{resdata:Wi,type:"exercise",okloading:pi,oktext:(Wi==null?void 0:Wi.can_copy_num)===0?"\u786E\u5B9A":"\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362",onok:Ln=>{Oi(Ln)}}),Lt.createElement(rt.Z,{inPaper:!0,visible:Mi,onCancel:Ti,onOk:Oi,renderData:Vi,modalType:"multiple",type:"examination_bank"}))};var Dt=(0,Ye.connect)(({exercise:$e,loading:rn,classroomList:Wt})=>({exercise:$e,loading:rn,classroomList:Wt}))(Dn),gn=we(2773),yt=we(64205),Zn=Object.defineProperty,vi=Object.getOwnPropertySymbols,We=Object.prototype.hasOwnProperty,Fe=Object.prototype.propertyIsEnumerable,xe=($e,rn,Wt)=>rn in $e?Zn($e,rn,{enumerable:!0,configurable:!0,writable:!0,value:Wt}):$e[rn]=Wt,Ne=($e,rn)=>{for(var Wt in rn||(rn={}))We.call(rn,Wt)&&xe($e,Wt,rn[Wt]);if(vi)for(var Wt of vi(rn))Fe.call(rn,Wt)&&xe($e,Wt,rn[Wt]);return $e},_e=($e,rn,Wt)=>new Promise((Kt,Hn)=>{var Bn=li=>{try{On(Wt.next(li))}catch(ke){Hn(ke)}},un=li=>{try{On(Wt.throw(li))}catch(ke){Hn(ke)}},On=li=>li.done?Kt(li.value):Promise.resolve(li.value).then(Bn,un);On((Wt=Wt.apply($e,rn)).next())});const be=({exercise:$e,dispatch:rn})=>{const Wt=(0,Ye.useParams)();return ve.createElement(dt.default,{centered:!0,title:"\u63D0\u793A",open:$e.actionTabs.key==="\u8BBE\u4E3A\u516C\u5F00",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:()=>_e(void 0,null,function*(){(yield(0,ne.ZP)(`/api/courses/${Wt.coursesId}/exercises/set_public.json`,{method:"post",body:{check_ids:[...$e.actionTabs.selectArrs]}})).status===0&&((0,Ee.L9)(["\u6559\u5B66\u8BFE\u5802","\u8BD5\u5377","\u8BBE\u4E3A\u516C\u5F00"]),at.ZP.success("\u64CD\u4F5C\u6210\u529F"),rn({type:"exercise/setActionTabs",payload:{}}),rn({type:"classroomList/getClassroomExercisesList",payload:Ne({},$e.actionTabs.params)}))}),onCancel:()=>{rn({type:"exercise/setActionTabs",payload:{}})}},ve.createElement("p",null,"\u8BBE\u4E3A\u516C\u5F00\u540E\uFF0C\u975E\u8BFE\u5802\u6210\u5458\u4E5F\u53EF\u4EE5\u8BBF\u95EE\u67E5\u770B",ve.createElement("br",null),"\u662F\u5426\u786E\u8BA4\u8BBE\u4E3A\u516C\u5F00\uFF1F"))};var tt=(0,Ye.connect)(({exercise:$e})=>({exercise:$e}))(be),Xt=we(54650),Bt=Object.defineProperty,nn=Object.getOwnPropertySymbols,Tt=Object.prototype.hasOwnProperty,bt=Object.prototype.propertyIsEnumerable,zt=($e,rn,Wt)=>rn in $e?Bt($e,rn,{enumerable:!0,configurable:!0,writable:!0,value:Wt}):$e[rn]=Wt,qt=($e,rn)=>{for(var Wt in rn||(rn={}))Tt.call(rn,Wt)&&zt($e,Wt,rn[Wt]);if(nn)for(var Wt of nn(rn))bt.call(rn,Wt)&&zt($e,Wt,rn[Wt]);return $e},pn=($e,rn)=>{var Wt={};for(var Kt in $e)Tt.call($e,Kt)&&rn.indexOf(Kt)<0&&(Wt[Kt]=$e[Kt]);if($e!=null&&nn)for(var Kt of nn($e))rn.indexOf(Kt)<0&&bt.call($e,Kt)&&(Wt[Kt]=$e[Kt]);return Wt},ei=($e,rn,Wt)=>new Promise((Kt,Hn)=>{var Bn=li=>{try{On(Wt.next(li))}catch(ke){Hn(ke)}},un=li=>{try{On(Wt.throw(li))}catch(ke){Hn(ke)}},On=li=>li.done?Kt(li.value):Promise.resolve(li.value).then(Bn,un);On((Wt=Wt.apply($e,rn)).next())});const wn=$e=>{var rn=$e,{exercise:Wt,dispatch:Kt,user:Hn}=rn,Bn=pn(rn,["exercise","dispatch","user"]),un,On;const li=(0,Ye.useParams)(),[ke,ht]=(0,ve.useState)(!1),[Je,pt]=(0,ve.useState)(!1),Pt=(0,ve.useRef)(null);(0,ve.useEffect)(()=>{var Qt,dn;if(Wt.actionTabs.key==="\u6279\u91CF\u5220\u9664"){if((0,ut.j5)()){pt(!0);return}const Nn={hasNum:0,noHasNum:0};(dn=(Qt=Wt==null?void 0:Wt.actionTabs)==null?void 0:Qt.selectArrsAll)==null||dn.map(jn=>{var cn;jn.author_login===((cn=Hn.userInfo)==null?void 0:cn.login)?++Nn.hasNum:++Nn.noHasNum}),Nn.noHasNum>0?dt.default.info({title:"\u6743\u9650\u63D0\u793A",className:"custom-modal-divider ",icon:null,content:ve.createElement("div",null,"\u5F53\u524D\u9009\u4E2D\u8D44\u6E90\u4E2D\uFF1A",ve.createElement("span",{className:"c-blue"},Nn.hasNum),"\u4E2A\u7531\u60A8\u672C\u4EBA\u53D1\u5E03\uFF0C",ve.createElement("span",{className:"c-red"},Nn.noHasNum)," \u4E2A\u7531\u5176\u4ED6\u8001\u5E08\u53D1\u5E03\u3002",ve.createElement("br",null),"\u8BFE\u5802\u5185\u53EA\u80FD\u5220\u9664\u672C\u4EBA\u53D1\u5E03\u7684\u8D44\u6E90\uFF0C\u8BF7\u53D6\u6D88\u9009\u4E2D\u5176\u4ED6\u8001\u5E08\u53D1\u5E03\u7684\u8D44\u6E90\u3002"),onOk:()=>{$t()}}):pt(!0)}else pt(!1)},[Wt.actionTabs.key]);const $t=()=>{Kt({type:"exercise/setActionTabs",payload:{}})};return ve.createElement(dt.default,{centered:!0,title:"\u63D0\u793A",open:Je,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",confirmLoading:ke,destroyOnClose:!0,onOk:()=>ei(void 0,null,function*(){var Qt;if((Qt=Pt.current)!=null&&Qt.onVerify())return;ht(!0);const dn=yield(0,ne.ZP)(`/api/courses/${li.coursesId}/exercises/destroys.json`,{method:"post",body:{check_ids:[...Wt.actionTabs.selectArrs]}});ht(!1),dn.status===0&&((0,Ee.L9)(["\u6559\u5B66\u8BFE\u5802","\u8BD5\u5377","\u5220\u9664"]),at.ZP.success("\u5220\u9664\u6210\u529F"),Kt({type:"exercise/setActionTabs",payload:{}}),Kt({type:"classroomList/getClassroomExercisesList",payload:qt({},Wt.actionTabs.params)}),Kt({type:"classroomList/getClassroomLeftMenus",payload:qt({},Wt.actionTabs.params)}))}),onCancel:()=>{Kt({type:"exercise/setActionTabs",payload:{}})}},!((un=Wt==null?void 0:Wt.actionTabs)!=null&&un.status)||!["\u672A\u5F00\u59CB"].includes((On=Wt==null?void 0:Wt.actionTabs)==null?void 0:On.status)?ve.createElement(ve.Fragment,null,ve.createElement("p",{style:{color:"#DD0000"}},"\u5220\u9664\u8003\u8BD5\u5219\u4F1A\u6E05\u9664\u5B66\u751F\u6240\u6709\u7684\u7B54\u9898\u6570\u636E\uFF0C\u4E14\u6570\u636E\u4E0D\u53EF\u6062\u590D\uFF0C\u5982\u786E\u5B9A\u5220\u9664\uFF0C\u8BF7\u8F93\u5165\u4E0B\u65B9\u9A8C\u8BC1\u7801"),ve.createElement(Xt.Z,{ref:Qt=>Pt.current=Qt})):ve.createElement("p",null,"\u5220\u9664\u8BD5\u5377\u4F1A\u540C\u6B65\u5220\u9664\u8BD5\u5377\u4E2D\u7684\u6240\u6709\u8003\u8BD5\uFF0C\u786E\u8BA4\u662F\u5426\u5220\u9664\uFF1F"))};var Fn=(0,Ye.connect)(({exercise:$e,user:rn})=>({exercise:$e,user:rn}))(wn),Ci=Object.getOwnPropertySymbols,$n=Object.prototype.hasOwnProperty,bi=Object.prototype.propertyIsEnumerable,hi=($e,rn)=>{var Wt={};for(var Kt in $e)$n.call($e,Kt)&&rn.indexOf(Kt)<0&&(Wt[Kt]=$e[Kt]);if($e!=null&&Ci)for(var Kt of Ci($e))rn.indexOf(Kt)<0&&bi.call($e,Kt)&&(Wt[Kt]=$e[Kt]);return Wt},Di=($e,rn,Wt)=>new Promise((Kt,Hn)=>{var Bn=li=>{try{On(Wt.next(li))}catch(ke){Hn(ke)}},un=li=>{try{On(Wt.throw(li))}catch(ke){Hn(ke)}},On=li=>li.done?Kt(li.value):Promise.resolve(li.value).then(Bn,un);On((Wt=Wt.apply($e,rn)).next())});const Gi=$e=>{var rn=$e,{exercise:Wt,dispatch:Kt}=rn,Hn=hi(rn,["exercise","dispatch"]);const Bn=(0,Ye.useParams)();return Bn.id=Bn.coursesId,(0,ve.useEffect)(()=>{Wt.actionTabs.key==="\u52A0\u5165\u8BD5\u5377\u5E93"&&new Promise(()=>Di(void 0,null,function*(){(yield(0,ne.ZP)(`/api/courses/${Bn.id}/exercises/join_examination_banks.json`,{method:"post",body:{check_ids:[...Wt.actionTabs.selectArrs]}})).status===0&&((0,Ee.L9)(["\u6559\u5B66\u8BFE\u5802","\u8BD5\u5377","\u52A0\u5165\u8BD5\u5377\u5E93"]),at.ZP.success("\u5DF2\u52A0\u5165\u4E2A\u4EBA\u8BD5\u5377\u5E93\uFF0C\u8BD5\u9898\u540C\u6B65\u52A0\u5165\u81F3\u4E2A\u4EBA\u9898\u5E93")),Kt({type:"exercise/setActionTabs",payload:{}})}))},[Wt.actionTabs.key]),ve.createElement(ve.Fragment,null)};var Ji=(0,Ye.connect)(({exercise:$e})=>({exercise:$e}))(Gi),Zr=we(37639),qi=we(54172),ii={flex_box_center:"flex_box_center___VejG5",flex_space_between:"flex_space_between___RwAiX",flex_box_vertical_center:"flex_box_vertical_center___N5QNs",flex_box_center_end:"flex_box_center_end___SUMZc",flex_box_column:"flex_box_column___ombQA",bg:"bg___i74VI",containerTitle:"containerTitle___eAbbs",containerDesc:"containerDesc___WeE4m",tablestyle:"tablestyle___uKNiL",listItem:"listItem___aJrbL",info:"info___X9HlC",title:"title___ZDroC",titleLeft:"titleLeft___JzNZc",titleRight:"titleRight___RP0gb",flexBox:"flexBox___txRbA",iconV:"iconV___JMCv9",acitons:"acitons___iqFGc",moveCategory:"moveCategory___Rihfv",name:"name___LdzGg",categoryName:"categoryName___Tz45n",schedule:"schedule___a20T3",fnSign:"fnSign___gsn3j",spanSize:"spanSize___jht3F",classromediv:"classromediv___T7h_f",glow:"glow___LU7dg",popover:"popover___Qeg0P",dot:"dot___c9Vwj",moni:"moni___LBVeo",ErrorPushTag:"ErrorPushTag___F0OTF",authorized:"authorized___yQPQx",btn_warp:"btn_warp___u9pTu"},so=Object.defineProperty,Kr=Object.getOwnPropertySymbols,qr=Object.prototype.hasOwnProperty,io=Object.prototype.propertyIsEnumerable,Fo=($e,rn,Wt)=>rn in $e?so($e,rn,{enumerable:!0,configurable:!0,writable:!0,value:Wt}):$e[rn]=Wt,lo=($e,rn)=>{for(var Wt in rn||(rn={}))qr.call(rn,Wt)&&Fo($e,Wt,rn[Wt]);if(Kr)for(var Wt of Kr(rn))io.call(rn,Wt)&&Fo($e,Wt,rn[Wt]);return $e};const Ar=$e=>React.createElement("svg",lo({width:22,height:22,xmlns:"http://www.w3.org/2000/svg"},$e),React.createElement("title",null,"\u7F16\u7EC4 5\u5907\u4EFD 2"),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("path",{d:"M0 0h22v22H0z"}),React.createElement("g",{fill:"#979797",fillRule:"nonzero"},React.createElement("path",{d:"M10.422 5.818h.8v10.4h-.8z"}),React.createElement("path",{d:"M10.743 17.018a.49.49 0 0 1-.38-.197c-.38-.541-1.21-.91-1.993-.91H3.697a.485.485 0 0 1-.475-.493V4.883c0-.173.071-.32.166-.443.214-.222.522-.222.736-.222h4.104c1.139 0 2.301.64 2.823 1.576.143.221.071.541-.166.664a.438.438 0 0 1-.64-.172C9.889 5.67 9.01 5.178 8.228 5.178H4.171v9.723h4.2c1.067 0 2.182.517 2.751 1.28a.493.493 0 0 1-.095.69c-.094.098-.19.147-.284.147Z"}),React.createElement("path",{d:"M11.006 17.018a.469.469 0 0 1-.294-.098.483.483 0 0 1-.098-.69c.588-.763 1.714-1.28 2.84-1.28h3.99V5.203h-3.868c-.857 0-1.885.492-2.252 1.107-.147.222-.44.32-.66.173-.22-.148-.319-.443-.172-.665.612-1.034 2.056-1.6 3.084-1.6h4.234c.098 0 .294 0 .44.148.172.172.172.37.172.468v10.584c0 .271-.22.492-.49.492H13.43c-.808 0-1.64.37-2.056.911a.43.43 0 0 1-.367.197Z"}))));var ro="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjIiIGhlaWdodD0iMjIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMCAwaDIydjIySDB6Ii8+PGcgZmlsbD0iIzk3OTc5NyIgZmlsbC1ydWxlPSJub256ZXJvIj48cGF0aCBkPSJNMTAuNDIyIDUuODE4aC44djEwLjRoLS44eiIvPjxwYXRoIGQ9Ik0xMC43NDMgMTcuMDE4YS40OS40OSAwIDAgMS0uMzgtLjE5N2MtLjM4LS41NDEtMS4yMS0uOTEtMS45OTMtLjkxSDMuNjk3YS40ODUuNDg1IDAgMCAxLS40NzUtLjQ5M1Y0Ljg4M2MwLS4xNzMuMDcxLS4zMi4xNjYtLjQ0My4yMTQtLjIyMi41MjItLjIyMi43MzYtLjIyMmg0LjEwNGMxLjEzOSAwIDIuMzAxLjY0IDIuODIzIDEuNTc2LjE0My4yMjEuMDcxLjU0MS0uMTY2LjY2NGEuNDM4LjQzOCAwIDAgMS0uNjQtLjE3MkM5Ljg4OSA1LjY3IDkuMDEgNS4xNzggOC4yMjggNS4xNzhINC4xNzF2OS43MjNoNC4yYzEuMDY3IDAgMi4xODIuNTE3IDIuNzUxIDEuMjhhLjQ5My40OTMgMCAwIDEtLjA5NS42OWMtLjA5NC4wOTgtLjE5LjE0Ny0uMjg0LjE0N1oiLz48cGF0aCBkPSJNMTEuMDA2IDE3LjAxOGEuNDY5LjQ2OSAwIDAgMS0uMjk0LS4wOTguNDgzLjQ4MyAwIDAgMS0uMDk4LS42OWMuNTg4LS43NjMgMS43MTQtMS4yOCAyLjg0LTEuMjhoMy45OVY1LjIwM2gtMy44NjhjLS44NTcgMC0xLjg4NS40OTItMi4yNTIgMS4xMDctLjE0Ny4yMjItLjQ0LjMyLS42Ni4xNzMtLjIyLS4xNDgtLjMxOS0uNDQzLS4xNzItLjY2NS42MTItMS4wMzQgMi4wNTYtMS42IDMuMDg0LTEuNmg0LjIzNGMuMDk4IDAgLjI5NCAwIC40NC4xNDguMTcyLjE3Mi4xNzIuMzcuMTcyLjQ2OHYxMC41ODRjMCAuMjcxLS4yMi40OTItLjQ5LjQ5MkgxMy40M2MtLjgwOCAwLTEuNjQuMzctMi4wNTYuOTExYS40My40MyAwIDAgMS0uMzY3LjE5N1oiLz48L2c+PC9nPjwvc3ZnPg==",Le=Object.defineProperty,xn=Object.getOwnPropertySymbols,Qn=Object.prototype.hasOwnProperty,gi=Object.prototype.propertyIsEnumerable,yi=($e,rn,Wt)=>rn in $e?Le($e,rn,{enumerable:!0,configurable:!0,writable:!0,value:Wt}):$e[rn]=Wt,ti=($e,rn)=>{for(var Wt in rn||(rn={}))Qn.call(rn,Wt)&&yi($e,Wt,rn[Wt]);if(xn)for(var Wt of xn(rn))gi.call(rn,Wt)&&yi($e,Wt,rn[Wt]);return $e};const Yi=$e=>React.createElement("svg",ti({width:22,height:22,xmlns:"http://www.w3.org/2000/svg"},$e),React.createElement("title",null,"\u7F16\u7EC4 5\u5907\u4EFD"),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("path",{d:"M0 0h22v22H0z"}),React.createElement("g",{fillRule:"nonzero"},React.createElement("path",{fill:"#229BFF",d:"M10.422 5.818h.8v10.4h-.8z"}),React.createElement("path",{d:"M10.743 17.018a.49.49 0 0 1-.38-.197c-.38-.541-1.21-.91-1.993-.91H3.697a.485.485 0 0 1-.475-.493V4.883c0-.173.071-.32.166-.443.214-.222.522-.222.736-.222h4.104c1.139 0 2.301.64 2.823 1.576.143.221.071.541-.166.664a.438.438 0 0 1-.64-.172C9.889 5.67 9.01 5.178 8.228 5.178H4.171v9.723h4.2c1.067 0 2.182.517 2.751 1.28a.493.493 0 0 1-.095.69c-.094.098-.19.147-.284.147Z",fill:"#0152d9"}),React.createElement("path",{d:"M11.006 17.018a.469.469 0 0 1-.294-.098.483.483 0 0 1-.098-.69c.588-.763 1.714-1.28 2.84-1.28h3.99V5.203h-3.868c-.857 0-1.885.492-2.252 1.107-.147.222-.44.32-.66.173-.22-.148-.319-.443-.172-.665.612-1.034 2.056-1.6 3.084-1.6h4.234c.098 0 .294 0 .44.148.172.172.172.37.172.468v10.584c0 .271-.22.492-.49.492H13.43c-.808 0-1.64.37-2.056.911a.43.43 0 0 1-.367.197Z",fill:"#0152d9"}))));var cr="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjIiIGhlaWdodD0iMjIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMCAwaDIydjIySDB6Ii8+PGcgZmlsbC1ydWxlPSJub256ZXJvIj48cGF0aCBmaWxsPSIjMjI5QkZGIiBkPSJNMTAuNDIyIDUuODE4aC44djEwLjRoLS44eiIvPjxwYXRoIGQ9Ik0xMC43NDMgMTcuMDE4YS40OS40OSAwIDAgMS0uMzgtLjE5N2MtLjM4LS41NDEtMS4yMS0uOTEtMS45OTMtLjkxSDMuNjk3YS40ODUuNDg1IDAgMCAxLS40NzUtLjQ5M1Y0Ljg4M2MwLS4xNzMuMDcxLS4zMi4xNjYtLjQ0My4yMTQtLjIyMi41MjItLjIyMi43MzYtLjIyMmg0LjEwNGMxLjEzOSAwIDIuMzAxLjY0IDIuODIzIDEuNTc2LjE0My4yMjEuMDcxLjU0MS0uMTY2LjY2NGEuNDM4LjQzOCAwIDAgMS0uNjQtLjE3MkM5Ljg4OSA1LjY3IDkuMDEgNS4xNzggOC4yMjggNS4xNzhINC4xNzF2OS43MjNoNC4yYzEuMDY3IDAgMi4xODIuNTE3IDIuNzUxIDEuMjhhLjQ5My40OTMgMCAwIDEtLjA5NS42OWMtLjA5NC4wOTgtLjE5LjE0Ny0uMjg0LjE0N1oiIGZpbGw9IiMwMTUyZDkiLz48cGF0aCBkPSJNMTEuMDA2IDE3LjAxOGEuNDY5LjQ2OSAwIDAgMS0uMjk0LS4wOTguNDgzLjQ4MyAwIDAgMS0uMDk4LS42OWMuNTg4LS43NjMgMS43MTQtMS4yOCAyLjg0LTEuMjhoMy45OVY1LjIwM2gtMy44NjhjLS44NTcgMC0xLjg4NS40OTItMi4yNTIgMS4xMDctLjE0Ny4yMjItLjQ0LjMyLS42Ni4xNzMtLjIyLS4xNDgtLjMxOS0uNDQzLS4xNzItLjY2NS42MTItMS4wMzQgMi4wNTYtMS42IDMuMDg0LTEuNmg0LjIzNGMuMDk4IDAgLjI5NCAwIC40NC4xNDguMTcyLjE3Mi4xNzIuMzcuMTcyLjQ2OHYxMC41ODRjMCAuMjcxLS4yMi40OTItLjQ5LjQ5MkgxMy40M2MtLjgwOCAwLTEuNjQuMzctMi4wNTYuOTExYS40My40MyAwIDAgMS0uMzY3LjE5N1oiIGZpbGw9IiMwMTUyZDkiLz48L2c+PC9nPjwvc3ZnPg==",Sr=we(41727),Jt=we(12971),Vt=Object.defineProperty,It=Object.getOwnPropertySymbols,Ei=Object.prototype.hasOwnProperty,Ii=Object.prototype.propertyIsEnumerable,ji=($e,rn,Wt)=>rn in $e?Vt($e,rn,{enumerable:!0,configurable:!0,writable:!0,value:Wt}):$e[rn]=Wt,Xn=($e,rn)=>{for(var Wt in rn||(rn={}))Ei.call(rn,Wt)&&ji($e,Wt,rn[Wt]);if(It)for(var Wt of It(rn))Ii.call(rn,Wt)&&ji($e,Wt,rn[Wt]);return $e};const Ai=$e=>React.createElement("svg",Xn({width:24,height:24,xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},$e),React.createElement("title",null,"3"),React.createElement("defs",null,React.createElement("path",{id:"ErrorPushIcon_svg__a",d:"M0 0h24v24H0z"})),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("mask",{id:"ErrorPushIcon_svg__b",fill:"#fff"},React.createElement("use",{xlinkHref:"#ErrorPushIcon_svg__a"})),React.createElement("use",{fill:"#F4F8FF",opacity:.01,xlinkHref:"#ErrorPushIcon_svg__a"}),React.createElement("g",{mask:"url(#ErrorPushIcon_svg__b)",fillRule:"nonzero"},React.createElement("path",{d:"M7.598 2.582 2.8 3.428A1.701 1.701 0 0 0 1.42 5.396l2.92 16.562a1.695 1.695 0 0 0 1.969 1.38l1.564-.277a1.152 1.152 0 0 1-.276-.749V2.582Z",fill:"#AEF0FF"}),React.createElement("path",{d:"M21.863 1.403H8.755c-.639 0-1.156.518-1.157 1.156v19.752a1.159 1.159 0 0 0 1.157 1.157h13.108a.14.14 0 0 0 .14-.14V1.542a.14.14 0 0 0-.14-.14Zm-3.575 6.67h-6.493V4.928h6.493v3.145Z",fill:"#EF6A6A"}),React.createElement("path",{fill:"#F9DB91",d:"M11.795 4.928h6.493v3.146h-6.493z"}),React.createElement("path",{d:"M21.863 1.073H8.755c-.721 0-1.339.517-1.464 1.228l-4.548.8a2.029 2.029 0 0 0-1.645 2.353l2.92 16.56a2.027 2.027 0 0 0 2.35 1.647l1.392-.246c.273.247.627.383.995.382h13.108c.26 0 .47-.21.47-.47V1.543a.47.47 0 0 0-.47-.47ZM6.253 23.01a1.366 1.366 0 0 1-1.587-1.112L1.746 5.34a1.37 1.37 0 0 1 1.11-1.587l4.412-.777v1.534c-.85.061-1.522.726-1.522 1.535 0 .809.672 1.474 1.522 1.534v1.193c-.85.06-1.522.725-1.522 1.534 0 .81.672 1.475 1.522 1.535v1.192c-.85.06-1.522.726-1.522 1.535 0 .809.672 1.474 1.522 1.535v1.192c-.85.06-1.522.725-1.522 1.534 0 .81.672 1.474 1.522 1.535v1.95c0 .171.03.342.089.505l-1.105.193Zm1.014-17.84v1.746c-.486-.055-.862-.425-.862-.872 0-.448.377-.818.863-.874Zm0 4.261v1.747c-.486-.056-.862-.426-.862-.874 0-.447.377-.818.863-.873Zm0 4.261v1.746c-.486-.056-.862-.426-.862-.873s.377-.818.863-.873Zm0 4.26V19.7c-.486-.056-.862-.426-.862-.873 0-.448.377-.818.863-.874Zm14.406 5.185H8.755a.828.828 0 0 1-.827-.827v-4.226c.274.157.456.431.456.742a.79.79 0 0 1-.121.422.33.33 0 1 0 .56.347c.144-.231.22-.498.22-.77 0-.675-.467-1.25-1.115-1.456v-3.545c.273.156.456.43.456.74 0 .15-.042.297-.121.423a.33.33 0 1 0 .56.347c.144-.231.22-.498.22-.77 0-.675-.467-1.249-1.115-1.456V9.564c.273.156.456.43.456.74 0 .15-.042.296-.121.423a.33.33 0 1 0 .56.347c.144-.231.22-.497.22-.77 0-.674-.467-1.249-1.115-1.456V5.303c.273.156.456.431.456.74 0 .15-.042.297-.121.423a.33.33 0 1 0 .56.347c.144-.23.22-.497.22-.769 0-.675-.467-1.25-1.115-1.457V2.56c0-.456.37-.826.827-.827h12.918v21.406Z",fill:"#512C56"}),React.createElement("path",{d:"M11.565 8.402h6.953a.101.101 0 0 0 .1-.101V4.699a.101.101 0 0 0-.1-.101h-6.953a.101.101 0 0 0-.101.101v3.605a.1.1 0 0 0 .101.098Zm.558-3.144h5.833v2.485h-5.833V5.258Zm5.163 11.89h-4.489a.33.33 0 1 0 0 .659h4.489a.33.33 0 1 0 0-.66Zm0 2.334h-4.489a.33.33 0 0 0 0 .66h4.489a.33.33 0 1 0 0-.66Z",fill:"#512C56"}))));var ur="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHhtbG5zPSJodHRwOi8vd3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AwIC4xMDEuMDk4Wm0uNTU4LTMuMTQ0aDUuODMzdjIuNDg1aC01LjgzM1Y1LjI1OFptNS4xNjMgMTEuODloLTQuNDg5YS4zMy4zMyAwIDEgMCAwIC42NTloNC40ODlhLjMzLjMzIDAgMSAwIDAtLjY2Wm0wIDIuMzM0aC00LjQ4OWEuMzMuMzMgMCAwIDAgMCAuNjZoNC40ODlhLjMzLjMzIDAgMSAwIDAtLjY2WiIgZmlsbD0iIzUxMkM1NiIvPjwvZz48L2c+PC9zdmc+",Tr=we(69221),br=we(75582),et=we(74255),Ft=we(69429),Tn=Object.defineProperty,Yn=Object.getOwnPropertySymbols,en=Object.prototype.hasOwnProperty,Gn=Object.prototype.propertyIsEnumerable,kn=($e,rn,Wt)=>rn in $e?Tn($e,rn,{enumerable:!0,configurable:!0,writable:!0,value:Wt}):$e[rn]=Wt,_n=($e,rn)=>{for(var Wt in rn||(rn={}))en.call(rn,Wt)&&kn($e,Wt,rn[Wt]);if(Yn)for(var Wt of Yn(rn))Gn.call(rn,Wt)&&kn($e,Wt,rn[Wt]);return $e};const xi=$e=>React.createElement("svg",_n({width:18,height:13,xmlns:"http://www.w3.org/2000/svg"},$e),React.createElement("title",null,"\u7F16\u7EC4 3"),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("path",{d:"m2.288 4.95 5.456 1.725 3.085-1.016c.176-.058.176.039.013.167-.686.544-1.286 1.24-1.613 2.076a4.679 4.679 0 0 0 2.414 2.542l-1.313 1.311-2.748.863-5.294-1.763V4.95ZM7.661 0l7.502 2.936-7.502 2.692L.73 3.192V8.14h-.7V2.946L0 2.936 7.661 0Z",fill:"#739EFF"}),React.createElement("g",{fill:"#FF9D18",fillRule:"nonzero"},React.createElement("path",{d:"m11.381 9.3.949-.948a1.305 1.305 0 0 1-.097-.498c0-.762.623-1.385 1.384-1.385.18 0 .346.035.499.097l.713-.713a3.6 3.6 0 0 0-1.212-.215c-1.453 0-2.852.921-3.323 2.216A3.281 3.281 0 0 0 11.381 9.3Z"}),React.createElement("path",{d:"M12.787 7.854v.041l.872-.872h-.042a.833.833 0 0 0-.83.83Zm3.066-1.447.674-.674.738-.738-.394-.395-.795.795-4.629 4.629-1.097 1.097.394.395.664-.665.567-.566.438-.438c.384.147.793.222 1.204.222 1.447 0 2.86-.92 3.33-2.215-.208-.568-.602-1.067-1.094-1.447Zm-2.236 2.831c-.173 0-.346-.035-.498-.097l.464-.464h.041c.457 0 .83-.373.83-.83v-.042l.465-.464c.048.166.083.34.083.513 0 .761-.623 1.384-1.385 1.384Z"}))));var mi="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTMiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJtMi4yODggNC45NSA1LjQ1NiAxLjcyNSAzLjA4NS0xLjAxNmMuMTc2LS4wNTguMTc2LjAzOS4wMTMuMTY3LS42ODYuNTQ0LTEuMjg2IDEuMjQtMS42MTMgMi4wNzZhNC42NzkgNC42NzkgMCAwIDAgMi40MTQgMi41NDJsLTEuMzEzIDEuMzExLTIuNzQ4Ljg2My01LjI5NC0xLjc2M1Y0Ljk1Wk03LjY2MSAwbDcuNTAyIDIuOTM2LTcuNTAyIDIuNjkyTC43MyAzLjE5MlY4LjE0aC0uN1YyLjk0NkwwIDIuOTM2IDcuNjYxIDBaIiBmaWxsPSIjNzM5RUZGIi8+PGcgZmlsbD0iI0ZGOUQxOCIgZmlsbC1ydWxlPSJub256ZXJvIj48cGF0aCBkPSJtMTEuMzgxIDkuMy45NDktLjk0OGExLjMwNSAxLjMwNSAwIDAgMS0uMDk3LS40OThjMC0uNzYyLjYyMy0xLjM4NSAxLjM4NC0xLjM4NS4xOCAwIC4zNDYuMDM1LjQ5OS4wOTdsLjcxMy0uNzEzYTMuNiAzLjYgMCAwIDAtMS4yMTItLjIxNWMtMS40NTMgMC0yLjg1Mi45MjEtMy4zMjMgMi4yMTZBMy4yODEgMy4yODEgMCAwIDAgMTEuMzgxIDkuM1oiLz48cGF0aCBkPSJNMTIuNzg3IDcuODU0di4wNDFsLjg3Mi0uODcyaC0uMDQyYS44MzMuODMzIDAgMCAwLS44My44M1ptMy4wNjYtMS40NDcuNjc0LS42NzQuNzM4LS43MzgtLjM5NC0uMzk1LS43OTUuNzk1LTQuNjI5IDQuNjI5LTEuMDk3IDEuMDk3LjM5NC4zOTUuNjY0LS42NjUuNTY3LS41NjYuNDM4LS40MzhjLjM4NC4xNDcuNzkzLjIyMiAxLjIwNC4yMjIgMS40NDcgMCAyLjg2LS45MiAzLjMzLTIuMjE1LS4yMDgtLjU2OC0uNjAyLTEuMDY3LTEuMDk0LTEuNDQ3Wm0tMi4yMzYgMi44MzFjLS4xNzMgMC0uMzQ2LS4wMzUtLjQ5OC0uMDk3bC40NjQtLjQ2NGguMDQxYy40NTcgMCAuODMtLjM3My44My0uODN2LS4wNDJsLjQ2NS0uNDY0Yy4wNDguMTY2LjA4My4zNC4wODMuNTEzIDAgLjc2MS0uNjIzIDEuMzg0LTEuMzg1IDEuMzg0WiIvPjwvZz48L2c+PC9zdmc+",sn=we(59301),ki=Object.defineProperty,Cr=Object.defineProperties,gr=Object.getOwnPropertyDescriptors,dr=Object.getOwnPropertySymbols,mn=Object.prototype.hasOwnProperty,Ir=Object.prototype.propertyIsEnumerable,jr=($e,rn,Wt)=>rn in $e?ki($e,rn,{enumerable:!0,configurable:!0,writable:!0,value:Wt}):$e[rn]=Wt,fo=($e,rn)=>{for(var Wt in rn||(rn={}))mn.call(rn,Wt)&&jr($e,Wt,rn[Wt]);if(dr)for(var Wt of dr(rn))Ir.call(rn,Wt)&&jr($e,Wt,rn[Wt]);return $e},yn=($e,rn)=>Cr($e,gr(rn)),ni=($e,rn,Wt)=>new Promise((Kt,Hn)=>{var Bn=li=>{try{On(Wt.next(li))}catch(ke){Hn(ke)}},un=li=>{try{On(Wt.throw(li))}catch(ke){Hn(ke)}},On=li=>li.done?Kt(li.value):Promise.resolve(li.value).then(Bn,un);On((Wt=Wt.apply($e,rn)).next())});const Hi=({v:$e,k:rn,match:Wt,selectArrs:Kt,setSelectArrs:Hn,dispatch:Bn,params:un,classroomList:On,batchStatus:li,manageAllGroup:ke,user:ht})=>{var Je,pt,Pt,$t,Qt,dn,Nn,jn,cn,qn,ci,vt,Un,Jn,In,zn,oi,Wn,fi;const[pi,ai]=(0,ve.useState)([]),[Wi,pr]=(0,ve.useState)(!1),or=(0,ve.useRef)(),tr=(0,ve.useRef)(),[Pi,fr]=(0,ve.useState)(!1),[nr,lr]=(0,ve.useState)(!1);var sr=!1;const mr="YYYY-MM-DD",En=Ve()("2020-11-15",mr);function Mi(){return ni(this,null,function*(){console.log(un,222);let An=yield(0,ne.ZP)(`/api/courses/${un==null?void 0:un.coursesId}/exercises/group_use_list.json`,{method:"get",params:yn(fo({},un),{id:$e.id})});ai((An==null?void 0:An.groups)||[])})}const Ti=()=>dt.default.info({title:"\u9898\u5E93\u6539\u7248\u544A\u77E5",content:sn.createElement(sn.Fragment,null,"EduCoder\u5DF2\u5347\u7EA7\u9898\u5E93\u529F\u80FD\uFF0C\u6240\u6709\u8BD5\u9898\u5747\u9700\u5339\u914D\u77E5\u8BC6\u70B9\u3002 \u5F53\u524D\u8BD5\u5377\u6240\u6D89\u53CA\u8BD5\u9898\u5747\u672A\u5339\u914D\u77E5\u8BC6\u70B9\uFF0C\u65E0\u6CD5\u968F\u673A\u62BD\u53D6\uFF0C\u5DF2\u4E0D\u80FD\u6709\u6548\u4F7F\u7528\u3002\u8BF7\u5728\u8BD5\u5377\u5E93\u91CD\u65B0\u7EC4\u5377\u540E\u4F7F\u7528\u3002 \u7531\u6B64\u5E26\u6765\u7684\u4E0D\u4FBF\uFF0C\u656C\u8BF7\u8C05\u89E3\uFF01")});$e!=null&&$e.appraise_label&&(sr=!0);const Vi=(An,Fi=!1)=>{var _i;Ye.history.push(`/classrooms/${un.coursesId}/exercisenotice/${An.id}/users/${(_i=(0,ut.eY)())==null?void 0:_i.login}`)},Zi=[{title:"\u73ED\u7EA7",dataIndex:"name",key:"name"},{title:"\u8003\u8BD5\u72B6\u6001",dataIndex:"exercise_status",key:"exercise_status",width:100,filters:[{text:"\u672A\u5F00\u59CB",value:1},{text:"\u8003\u8BD5\u4E2D",value:2},{text:"\u5DF2\u622A\u6B62",value:3}],onFilter:(An,Fi)=>Fi.exercise_status===An,render:(An,Fi)=>sn.createElement("div",null,An===1&&sn.createElement("span",null,sn.createElement("i",{className:ii.dot,style:{background:"#C3C3C3"}}),"\u672A\u5F00\u59CB"),An===2&&sn.createElement("span",null,sn.createElement("i",{className:ii.dot,style:{background:"#4EACFF"}}),"\u8003\u8BD5\u4E2D"),An===3&&sn.createElement("span",null,sn.createElement("i",{className:ii.dot,style:{background:"#FC2D6B"}}),"\u5DF2\u622A\u6B62"))},{title:"\u5F00\u59CB\u65F6\u95F4",dataIndex:"publish_time",key:"publish_time",sorter:!0,width:170,showSorterTooltip:!1,sortOrder:un.order_by==="publish_time"?un.sort_direction==="desc"?"descend":"ascend":null},{title:"\u622A\u6B62\u65F6\u95F4",dataIndex:"end_time",key:"end_time",sorter:!0,width:170,showSorterTooltip:!1,sortOrder:un.order_by==="end_time"?un.sort_direction==="desc"?"descend":"ascend":null},{title:"\u63D0\u4EA4\u4EBA\u6570",dataIndex:"exercise_answer",key:"exercise_answer",align:"center",width:80,render:(An,Fi)=>Fi.exercise_status===1?"-":sn.createElement("span",null,An,"/",Fi.exercise_users)},{title:"\u5F85\u8BC4\u9605\u8BD5\u5377",dataIndex:"unreview_count",key:"unreview_count",align:"center",width:90,render:(An,Fi)=>Fi.exercise_status===1?"-":An===0?sn.createElement("span",{style:{cursor:"no-drop",color:"#999999"}},An):sn.createElement("a",{onClick:()=>(0,Ee.xg)(`/classrooms/${un==null?void 0:un.coursesId}/exercise/${$e==null?void 0:$e.id}/detail?random=false&exercise_group_id=${Fi.course_group_id}`)},An)},{title:"\u64CD\u4F5C",dataIndex:"action",align:"center",key:"action",width:60,render:(An,Fi)=>Fi.exercise_status===1?sn.createElement("img",{style:{cursor:"not-allowed"},src:ro}):sn.createElement(de.Z,{title:"\u8BC4\u9605"},sn.createElement("a",{onClick:()=>(0,Ee.xg)(`/classrooms/${un==null?void 0:un.coursesId}/exercise/${$e==null?void 0:$e.id}/detail?random=false&exercise_group_id=${Fi.course_group_id}`)},sn.createElement("img",{src:cr})))}],Oi=An=>{if(sr)return sn.createElement("span",{style:{backgroundColor:"#f59a23"},className:"tag-style mr10"},"\u96C6\u4E2D\u9605\u5377");if(An!=null&&An.includes("\u672A\u5F00\u59CB"))return sn.createElement("span",{style:{backgroundColor:"#B8B8B8"},className:"tag-style mr10"},"\u672A\u5F00\u59CB");if(An!=null&&An.includes("\u8003\u8BD5\u4E2D"))return sn.createElement("span",{style:{backgroundColor:"#007AFF"},className:"tag-style mr10"},"\u8003\u8BD5\u4E2D");if(An!=null&&An.includes("\u5DF2\u622A\u6B62"))return sn.createElement("span",{style:{backgroundColor:"#FC2D6B"},className:"tag-style mr10"},"\u5DF2\u622A\u6B62");if(An!=null&&An.includes("\u5BFC\u5165"))return sn.createElement("span",{className:"export mr10"},"\u5BFC\u5165")},Ln=()=>{const An=($e==null?void 0:$e.simulate_exercise_num)-($e==null?void 0:$e.user_simulate_num);return An>=0?An:0},ir=(An=$e)=>{var Fi,_i,Er;if(An!=null&&An.is_encrypt){Bn({type:"classroomList/setActionTabs",payload:{open:"\u89E3\u5C01",id:An==null?void 0:An.id,phone:(Fi=ht==null?void 0:ht.userInfo)==null?void 0:Fi.phone,login:(_i=ht==null?void 0:ht.userInfo)==null?void 0:_i.login}});return}(Er=ht==null?void 0:ht.userInfo)!=null&&Er.phone?Bn({type:"classroomList/setActionTabs",payload:{open:"\u8BD5\u5377\u5C01\u5B58",id:An==null?void 0:An.id}}):Bn({type:"classroomList/setActionTabs",payload:{open:"\u624B\u673A\u53F7\u7ED1\u5B9A"}})},hr=An=>{var Fi,_i,Er;if(((Fi=ht==null?void 0:ht.userInfo)==null?void 0:Fi.login)!==($e==null?void 0:$e.author_login)){at.ZP.warning("\u8BD5\u5377\u5DF2\u5C01\u5B58\uFF0C\u8BF7\u8054\u7CFB\u8BD5\u5377\u6240\u6709\u8005\u8FDB\u884C\u89E3\u5C01~");return}Bn({type:"classroomList/setActionTabs",payload:{open:"\u63D0\u793A",id:$e==null?void 0:$e.id,phone:(_i=ht==null?void 0:ht.userInfo)==null?void 0:_i.phone,login:(Er=ht==null?void 0:ht.userInfo)==null?void 0:Er.login,onFinish:An}})},Mr=An=>ni(void 0,null,function*(){lr(!0);const Fi=yield(0,ne.ZP)(`/api/courses/${un==null?void 0:un.coursesId}/sync_shixuns.json`,{method:"post",body:{exercise_ids:[An]}});(Fi==null?void 0:Fi.status)===0&&(at.ZP.info("\u5B9E\u8BAD\u540C\u6B65\u4E2D\uFF0C\u8BF7\u7A0D\u540E"),fr(!1),Bn({type:"classroomList/getClassroomExercisesList",payload:fo({},un)})),lr(!1)});return sn.createElement("div",{className:ii.listItem,onClick:An=>{const Fi=()=>{(!(0,ut.GJ)()||(0,ut.GJ)()&&tr.current&&!tr.current.contains(An.target))&&(0,Ee.xg)(`/classrooms/${un.coursesId}/exercise/${$e.id}/detail?random=${$e.is_random}`)};if($e!=null&&$e.is_encrypt){hr(Fi);return}Fi()}},(0,ut.GJ)()&&sn.createElement("span",{ref:tr},sn.createElement(De.default,{checked:Kt.includes($e.id),value:$e.id,style:{padding:"10px"},onClick:An=>{An.stopPropagation()},disabled:($e==null?void 0:$e.is_encrypt)||($e==null?void 0:$e.is_make_up_exercise),onChange:An=>{let Fi=Kt.indexOf($e.id);Kt.indexOf($e.id)>-1?Hn(Kt.filter(_i=>_i!==$e.id)):Hn(Kt.concat($e.id))}})),sn.createElement("div",{className:ii.info},sn.createElement("div",{className:ii.title},sn.createElement("div",{className:ii.titleLeft,style:{marginRight:15}},Oi($e==null?void 0:$e.exercise_tips),($e==null?void 0:$e.is_make_up_exercise)&&sn.createElement("img",{src:Sr,width:44,height:24,style:{marginRight:10}}),sn.createElement(de.Z,{title:$e.exercise_name},sn.createElement("span",{className:ii.name},$e.exercise_name)),(0,ut.G5)()&&($e==null?void 0:$e.shixun_change)&&sn.createElement(Zr.Z,{open:Pi,onOpenChange:An=>{fr(An)},placement:"bottomLeft",title:null,content:sn.createElement("div",{style:{width:"310px",color:"#000"},onClick:An=>An.stopPropagation()},sn.createElement("div",null,"\u5B9E\u8BAD\u7BA1\u7406\u5458\u5BF9\u8BD5\u5377\u4E2D\u4F7F\u7528\u7684\u5B9E\u8DF5\u9879\u76EE\u8FDB\u884C\u4E86\u4FEE\u6539\uFF0C\u8BF7\u68C0\u67E5\u540E\uFF0C\u786E\u8BA4\u662F\u5426\u9700\u8981\u540C\u6B65\u5230\u8BD5\u5377\u4E2D"),sn.createElement("div",{className:ii.btn_warp},sn.createElement(nt.ZP,{size:"small",onClick:()=>fr(!1)},"\u5FFD\u7565"),sn.createElement(nt.ZP,{loading:nr,className:"ml20",size:"small",type:"primary",onClick:()=>Mr($e==null?void 0:$e.id)},"\u786E\u8BA4\u540C\u6B65"),sn.createElement(nt.ZP,{className:"ml20",size:"small",type:"primary",onClick:()=>(0,Ee.xg)(`/classrooms/${un.coursesId}/exercise/${$e.id}/detail?random=${$e.is_random}&tabs=2`)},"\u524D\u5F80\u67E5\u770B")))},sn.createElement("i",{className:"iconfont icon-tongzhi1 pl10 current",style:{fontSize:"16px",color:"#F7B500"},onClick:An=>An.stopPropagation()})),($e==null?void 0:$e.high_resources_consume)&&!($e!=null&&$e.high_resources_consume_permission)&&sn.createElement(Ct.Z,{type:"exercise",style:{marginLeft:10}}),($e==null?void 0:$e.high_resources_consume)&&($e==null?void 0:$e.high_resources_consume_permission)&&sn.createElement("span",{className:ii.authorized},"\u5DF2\u6388\u6743"),((Je=$e==null?void 0:$e.exercise_tips)==null?void 0:Je.includes("\u5DF2\u622A\u6B62"))&&((pt=On==null?void 0:On.detailTopBanner)==null?void 0:pt.forbid_end_exercise)&&sn.createElement(de.Z,{title:"\u5DF2\u5BF9\u5B66\u751F\u9690\u85CF"},sn.createElement("img",{src:mi,width:20,className:"ml10"})),!$e.is_public&&(0,ut.GJ)()&&sn.createElement(de.Z,{title:"\u79C1\u6709\u5C5E\u6027\uFF0C\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u80FD\u8BBF\u95EE"},sn.createElement("span",{className:"iconfont icon-suo1 ml10 mr10 c-light-black font12"})),($e==null?void 0:$e.exercise_type)==2&&sn.createElement("span",{style:{flexShrink:0,marginLeft:10,display:"flex",alignItems:"center"},className:ii.moni},sn.createElement("img",{src:Jt,width:18,height:14}),"\u6A21\u62DF\u8003\u8BD5"),((Pt=$e==null?void 0:$e.exercise_tips)==null?void 0:Pt.includes("\u5DF2\u5F00\u542F\u9632\u4F5C\u5F0A"))&&sn.createElement("span",{style:{flexShrink:0,marginLeft:10,display:"flex"},className:"tag-style-fzb iconfont icon-fangzuobi"},"\u5DF2\u5F00\u542F\u9632\u4F5C\u5F0A"),($e==null?void 0:$e.ai_push_wrong_question)&&sn.createElement("span",{className:ii.ErrorPushTag},sn.createElement("img",{src:ur,width:12,className:"mr5"}),"AI\u9519\u9898\u63A8\u9001"),(($t=$e==null?void 0:$e.exercise_tips)==null?void 0:$t.includes("\u5DF2\u622A\u6B62"))&&((Qt=$e==null?void 0:$e.exercise_tips)==null?void 0:Qt.includes("\u672A\u63D0\u4EA4"))&&sn.createElement("span",{style:{flexShrink:0,backgroundColor:"#B8B8B8"},className:"tag-style ml10"},"\u672A\u63D0\u4EA4"),($e==null?void 0:$e.is_encrypt)&&sn.createElement(de.Z,{title:"\u8BD5\u5377\u5DF2\u52A0\u5BC6"}," ",sn.createElement("img",{src:Ft,width:21,className:"ml10",style:{marginTop:"-8px"}})," ")),sn.createElement("div",{className:ii.titleRight,onClick:An=>{An.stopPropagation(),An.preventDefault()}},($e==null?void 0:$e.appraise_setting)&&sn.createElement("span",{className:ii.flexBox,style:{marginRight:"16px"},onClick:()=>ni(void 0,null,function*(){const An=()=>ni(void 0,null,function*(){Bn({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u8FDB\u5165\u8BC4\u9605\uFF0C\u8BF7\u7A0D\u540E..."}});const Fi=yield(0,ne.ZP)(`/api/exercises/${$e.id}/create_appraise_students.json`,{method:"get"});Bn({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}}),(0,Ee.xg)(`/classrooms/${un==null?void 0:un.coursesId}/exercise/${$e.id}/centralizeReview/${Fi==null?void 0:Fi.login}`)});if($e!=null&&$e.is_encrypt){hr(An);return}An()})},sn.createElement("i",{className:"iconfont icon-jizhongyuejuan"}),sn.createElement("div",null,"\u96C6\u4E2D\u9605\u5377")),!($e!=null&&$e.exercise_tips.includes("\u5BFC\u5165"))&&(0,ut.GJ)()&&(!($e!=null&&$e.is_make_up_exercise)||($e==null?void 0:$e.is_make_up_exercise)&&($e==null?void 0:$e.exercise_status)===1&&($e==null?void 0:$e.allow_create_make_up))&&sn.createElement(Tr.Z,{tips:$e==null?void 0:$e.open_appraise},sn.createElement("span",{className:ii.flexBox,style:{marginRight:"16px"},onClick:()=>{const An=()=>{var Fi,_i,Er;if(((Fi=ht==null?void 0:ht.userInfo)==null?void 0:Fi.user_status)===2){(0,Re.Rd)();return}if((0,ut.Rm)()&&!((Er=(_i=On==null?void 0:On.AssistantObject)==null?void 0:_i.exercise)!=null&&Er.can_publish)){at.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}if(($e==null?void 0:$e.exercise_question_count)===0){at.ZP.warning("\u8BD5\u5377\u5185\u6CA1\u6709\u8BD5\u9898\u4E0D\u5141\u8BB8\u53D1\u5E03\u8003\u8BD5");return}let oo=()=>{Bn({type:"exercise/setActionTabs",payload:{key:"\u6279\u91CF\u53D1\u5E03",selectArrs:[$e.id],unified_setting:$e.unified_setting,params:un,disabled:$e.exercise_status!==1,type:2,manage_all_group:ke,isRouter:!0}})};$e!=null&&$e.high_resources_consume&&!($e!=null&&$e.high_resources_consume_permission)?Bn({type:"classroomList/setActionTabs",payload:{key:"\u6388\u6743\u4F7F\u7528",id:un.coursesId,type:"exercise",type_id:$e.id,name:$e.exercise_name,fn:()=>{Bn({type:"classroomList/getClassroomExercisesList",payload:fo({},un)}),oo()}}}):oo()};if($e!=null&&$e.is_encrypt){hr(An);return}An()}},sn.createElement("i",{className:"iconfont icon-yishezhifabushijian1"}),sn.createElement("div",null,"\u53D1\u5E03"))),!($e!=null&&$e.exercise_tips.includes("\u5BFC\u5165"))&&(0,ut.GJ)()&&!(0,Ee._m)()&&$e.assistant_auth&&sn.createElement("span",{className:ii.flexBox,style:{marginRight:"16px"},onClick:An=>{An.stopPropagation();const Fi=()=>{var _i,Er;if((0,ut.Rm)()&&!((Er=(_i=On==null?void 0:On.AssistantObject)==null?void 0:_i.exercise)!=null&&Er.can_preview)){at.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}const oo=Ve()($e.created_at,mr);Ve()(En).diff(Ve()(oo),"days")>0&&($e!=null&&$e.is_random)?Ti():$e!=null&&$e.is_random?(0,Ee.xg)(`/classrooms/${un.coursesId}/exercise/${$e.id}/random/preview?random=${$e.is_random}`):(0,Ee.xg)(`/classrooms/${un.coursesId}/exercise/${$e.id}/detail?random=${$e.is_random}&tabs=2`)};if($e!=null&&$e.is_encrypt){hr(Fi);return}Fi()}},sn.createElement("i",{className:"iconfont icon-yulan3"}),sn.createElement("div",null,"\u9884\u89C8")),(0,ut.RV)()&&sn.createElement("span",{className:ii.flexBox,style:{marginRight:"16px"},onClick:()=>{const An=()=>{(0,Ee.xg)(`/classrooms/${un.coursesId}/exercise/${$e.id}/detail?random=${$e.is_random}`)};if($e!=null&&$e.is_encrypt){hr(An);return}An()}},sn.createElement("i",{className:"iconfont icon-yuyuexiangqing1"}),sn.createElement("div",null,"\u8BE6\u60C5")),(0,ut.GJ)()&&!(0,Ee._m)()&&sn.createElement(Zr.Z,{placement:"bottom",content:sn.createElement("div",{className:ii.popover},!($e!=null&&$e.exercise_tips.includes("\u5BFC\u5165"))&&sn.createElement("p",{onClick:An=>ni(void 0,null,function*(){const Fi=()=>{(0,Ee.xg)(`/classrooms/${un.coursesId}/exercise/${$e.id}/detail?random=${$e.is_random}&tabs=3`)};if($e!=null&&$e.is_encrypt){hr(Fi);return}Fi()})},"\u89C4\u5219\u8BBE\u7F6E"),($e==null?void 0:$e.exercise_tips.includes("\u5BFC\u5165"))&&sn.createElement("p",{onClick:An=>ni(void 0,null,function*(){const Fi=()=>{Bn({type:"classroomList/setActionTabs",payload:{key:"\u8865\u5145\u6210\u7EE9",name:$e==null?void 0:$e.exercise_name,id:$e==null?void 0:$e.id,type:"hack"}})};if($e!=null&&$e.is_encrypt){hr(Fi);return}Fi()})},"\u8865\u5145\u6210\u7EE9"),!($e!=null&&$e.exercise_tips.includes("\u5BFC\u5165"))&&(0,ut.GJ)()&&$e.is_random&&$e.assistant_auth&&sn.createElement("p",{onClick:An=>{An.stopPropagation();const Fi=()=>{const _i=Ve()($e.created_at,mr);Ve()(En).diff(Ve()(_i),"days")>0&&($e!=null&&$e.is_random)?Ti():(0,Ee.xg)(`/classrooms/${un.coursesId}/exercise/${$e.id}/random/edit?type=settings`)};if($e!=null&&$e.is_encrypt){hr(Fi);return}Fi()}},"\u7F16\u8F91\u8003\u8BD5"),sn.createElement("p",{onClick:An=>ni(void 0,null,function*(){const Fi=()=>{var _i;Bn({type:"exercise/setActionTabs",payload:{key:"\u6279\u91CF\u5220\u9664",selectArrs:[$e.id],selectArrsAll:[$e],params:un,status:(_i=$e==null?void 0:$e.exercise_tips)==null?void 0:_i[0]}})};if($e!=null&&$e.is_encrypt){hr(Fi);return}Fi()})},"\u5220\u9664\u8BD5\u5377"),!($e!=null&&$e.exercise_tips.includes("\u5BFC\u5165"))&&sn.createElement("p",{onClick:()=>{const An=()=>{Bn({type:"exercise/setActionTabs",payload:{key:"\u5355\u4E2A\u52A0\u5165\u8BD5\u5377\u5E93",selectArrs:[$e.id],params:un}})};if($e!=null&&$e.is_encrypt){hr(An);return}An()}},"\u52A0\u5165\u8BD5\u5377\u5E93"),((dn=$e==null?void 0:$e.exercise_tips)==null?void 0:dn.includes("\u672A\u5F00\u59CB"))&&($e==null?void 0:$e.author_login)===((Nn=ht==null?void 0:ht.userInfo)==null?void 0:Nn.login)&&sn.createElement("p",{onClick:An=>ni(void 0,null,function*(){ir($e)})}," ",$e!=null&&$e.is_encrypt?"\u89E3\u5C01":"\u52A0\u5BC6\u5C01\u5B58"),!($e!=null&&$e.exercise_tips.includes("\u5BFC\u5165"))&&((0,ut.GJ)()||((cn=(jn=On==null?void 0:On.AssistantObject)==null?void 0:jn.exercise)==null?void 0:cn.can_stop))&&![1,3].includes($e==null?void 0:$e.exercise_status)&&sn.createElement("p",{onClick:An=>ni(void 0,null,function*(){const Fi=()=>{var _i,Er;if((0,ut.Rm)()&&!((Er=(_i=On==null?void 0:On.AssistantObject)==null?void 0:_i.exercise)!=null&&Er.can_stop)){at.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}Bn({type:"exercise/setActionTabs",payload:{key:"\u6279\u91CF\u7ED3\u675F",selectArrs:[$e.id],params:un,unified_setting:$e.unified_setting}})};if($e!=null&&$e.is_encrypt){hr(Fi);return}Fi()})},"\u7ED3\u675F\u8003\u8BD5"))},sn.createElement("span",{onClick:An=>An.stopPropagation(),className:ii.flexBox,style:{cursor:"default"}},sn.createElement("i",{className:"iconfont icon-gengduo4"}),sn.createElement("div",null,"\u66F4\u591A"))),(0,ut.dE)()&&sn.createElement(sn.Fragment,null,!!$e.off_limits&&sn.createElement(de.Z,{title:`\u8FDF\u5230\u8D85\u8FC7${$e==null?void 0:$e.last_times}\u5206\u949F\uFF0C\u7981\u6B62\u8FDB\u5165\u7B54\u9898`},sn.createElement("b",{className:"font16 c-grey-999"},"\u8FDF\u5230\u7981\u6B62\u7B54\u9898")),($e==null?void 0:$e.exercise_type)==1&&!$e.off_limits&&$e.current_status===0&&$e.exercise_status>1&&!((qn=$e.exercise_tips)!=null&&qn.includes("\u5DF2\u622A\u6B62"))&&sn.createElement("a",{className:ii.flexBox,style:{marginRight:"16px"},onClick:An=>{An.stopPropagation(),An.preventDefault(),Vi($e,!0)},href:""},sn.createElement("i",{className:"iconfont icon-jixukaoshi"}),sn.createElement("div",null,($e==null?void 0:$e.screen_used_num)>($e==null?void 0:$e.screen_total_num)&&"\u7533\u8BF7"," \u7EE7\u7EED\u8003\u8BD5")),!((ci=$e.exercise_tips)!=null&&ci.includes("\u5DF2\u622A\u6B62"))&&($e==null?void 0:$e.screen_used_num)>($e==null?void 0:$e.screen_total_num)&&sn.createElement("a",{className:ii.flexBox,style:{marginRight:"16px"},onClick:An=>{An.stopPropagation(),An.preventDefault(),Vi($e,!0)},href:""},sn.createElement("i",{className:"iconfont icon-jixukaoshi"}),sn.createElement("div",null,"\u7533\u8BF7\u7EE7\u7EED\u8003\u8BD5")),!$e.off_limits&&$e.current_status===1&&($e==null?void 0:$e.screen_used_num)<($e==null?void 0:$e.screen_total_num)&&$e.exercise_status>1&&document.domain!="kepukehuan.educoder.net"&&!(($e==null?void 0:$e.exercise_type)==2&&($e==null?void 0:$e.exercise_status)!=3)&&sn.createElement("span",{className:ii.flexBox,style:{marginRight:"16px"},onClick:An=>ni(void 0,null,function*(){var Fi;if(An.stopPropagation(),!($e!=null&&$e.answered_open)){at.ZP.info("\u8001\u5E08\u5DF2\u8BBE\u7F6E\u672C\u8BD5\u5377\u5728\u4EA4\u5377\u540E\u4E0D\u53EF\u67E5\u770B");return}yield(0,br.w)(un.coursesId,$e.id,"\u6B63\u5728\u8FDB\u5165\u67E5\u770B\uFF0C\u8BF7\u7A0D\u540E..."),(0,Ee.xg)(`/classrooms/${un.coursesId}/exercise/${$e.id}/users/${(Fi=(0,ut.eY)())==null?void 0:Fi.login}?check=true`)})},sn.createElement("i",{className:"iconfont icon-chakankaoshi"}),sn.createElement("div",null,"\u67E5\u770B\u8003\u8BD5")),($e==null?void 0:$e.exercise_type)==1&&!$e.off_limits&&$e.current_status===2&&$e.exercise_status>1&&!((vt=$e.exercise_tips)!=null&&vt.includes("\u5DF2\u622A\u6B62"))&&sn.createElement("a",{className:ii.flexBox,style:{marginRight:"16px",color:($e==null?void 0:$e.is_redo)===1&&"red"},onClick:An=>{An.stopPropagation(),An.preventDefault(),Vi($e)},href:""},sn.createElement("i",{className:"iconfont icon-a-kaishijixudajuan"}),sn.createElement("div",null,($e==null?void 0:$e.is_redo)===0?"\u5F00\u59CB\u8003\u8BD5":"\u91CD\u65B0\u8003\u8BD5")),($e==null?void 0:$e.exercise_type)==2&&!$e.off_limits&&$e.exercise_status>1&&!((Un=$e.exercise_tips)!=null&&Un.includes("\u5DF2\u622A\u6B62"))&&sn.createElement(de.Z,{title:sn.createElement("span",null,"\u672C\u6B21\u8003\u8BD5\u53EF\u91CD\u590D\u8003\u8BD5",$e==null?void 0:$e.simulate_exercise_num,"\u6B21\uFF0C\u5269\u4F59",Ln(),"\u6B21")},sn.createElement("a",{className:ii.flexBox,onClick:An=>{Ln()==0&&($e==null?void 0:$e.current_status)!=0||(An.stopPropagation(),An.preventDefault(),Vi($e))},href:""},sn.createElement("i",{className:`iconfont ${($e==null?void 0:$e.current_status)!=0?"icon-a-kaishijixudajuan":"icon-jixukaoshi"}`}),sn.createElement("div",null,($e==null?void 0:$e.current_status)!=0?"\u5F00\u59CB\u8003\u8BD5":"\u7EE7\u7EED\u8003\u8BD5"))),($e==null?void 0:$e.ai_push_wrong_question)&&($e==null?void 0:$e.whole_exercise_status)===3&&!((Jn=$e==null?void 0:$e.exercise_tips)!=null&&Jn.includes("\u672A\u63D0\u4EA4"))&&sn.createElement("span",{className:ii.flexBox,style:{marginRight:"16px"},onClick:An=>ni(void 0,null,function*(){var Fi,_i;if(An.stopPropagation(),($e==null?void 0:$e.wrong_questions_size)===0){at.ZP.warning("\u672C\u6B21\u8003\u8BD5\u4F60\u65E0\u9700\u8FDB\u884C\u9519\u9898\u5DE9\u56FA\uFF5E");return}if(((Fi=$e==null?void 0:$e.progress)==null?void 0:Fi.stat)===1){at.ZP.warning("\u63A8\u8350\u8BD5\u9898\u6B63\u5728\u751F\u6210\u4E2D\uFF0C\u8BF7\u7B49\u5F85\u751F\u6210\u5B8C\u6210\u540E\u518D\u5F00\u59CB\u5DE9\u56FA");return}(0,Ee.xg)(`/classrooms/${un.coursesId}/exercise/${$e.id}/wrongAnswer/${(_i=(0,ut.eY)())==null?void 0:_i.login}`)})},sn.createElement("i",{className:"iconfont icon-cuotigonggu"}),sn.createElement("div",null,"\u9519\u9898\u5DE9\u56FA"))))),(0,ut.GJ)()&&sn.createElement("p",{style:{display:"flex"}},sn.createElement("span",{className:"c-grey-666",style:{display:"inline-block",maxWidth:"90px",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",WebkitLineClamp:1},title:$e.author},$e.author),sn.createElement("span",{className:"ml30 c-grey-666"},"\u521B\u5EFA\u65F6\u95F4\uFF1A",Ve()($e.created_at).format("YYYY-MM-DD HH:mm:ss")),((In=$e==null?void 0:$e.exercise_tips)==null?void 0:In.includes("\u672A\u5F00\u59CB"))&&$e.publish_time&&sn.createElement("span",{className:"ml30 c-grey-666"},"\u5F00\u59CB\u65F6\u95F4\uFF1A",Ve()($e.publish_time).format("YYYY-MM-DD HH:mm:ss")),sn.createElement("span",{className:"ml30 c-grey-666"},"\u7B54\u9898\u65F6\u957F\uFF1A",$e.time===null?"\u4E0D\u9650":`${$e.time}\u5206\u949F`),sn.createElement("span",{className:"ml30 c-grey-666"},"\u7C7B\u578B\uFF1A",$e.is_random?"\u968F\u673A\u7EC4\u5377":"\u4EBA\u5DE5\u7EC4\u5377"),!((zn=$e==null?void 0:$e.exercise_tips)!=null&&zn.includes("\u672A\u5F00\u59CB"))&&!($e!=null&&$e.is_make_up_exercise)&&!($e!=null&&$e.exercise_tips.includes("\u5BFC\u5165"))&&sn.createElement("span",{className:ii.iconV,style:{marginLeft:"auto",textAlign:"end"},onClick:An=>ni(void 0,null,function*(){An.stopPropagation(),An.preventDefault(),Wi||Mi(),pr(!Wi)})},sn.createElement(de.Z,{title:`${Wi?"\u6536\u8D77":"\u5C55\u5F00"}`},sn.createElement("i",{className:`iconfont icon-${Wi?"shouqi":"xiala2"}`})))),(0,ut.dE)()&&sn.createElement("p",{style:{display:"flex"}},sn.createElement("span",{className:"c-grey-333"},$e.author),sn.createElement("span",{className:"ml30 c-grey-999 mr20"},"\u7B54\u9898\u65F6\u957F\uFF1A",$e.time===null?"\u4E0D\u9650":`${$e.time}\u5206\u949F`),!!($e!=null&&$e.exercise_left_time)&&sn.createElement("span",{className:"ml15 c-grey-999"},"\u8003\u8BD5\u5269\u4F59\u65F6\u95F4\uFF1A",$e==null?void 0:$e.exercise_left_time),!!($e!=null&&$e.before_start)&&sn.createElement("span",{className:"ml15 c-grey-999"},"\u8DDD\u79BB\u8003\u8BD5\u5F00\u59CB\u65F6\u95F4\uFF1A",$e==null?void 0:$e.before_start)),(0,ut.GJ)()&&!((oi=$e==null?void 0:$e.exercise_tips)!=null&&oi.includes("\u672A\u5F00\u59CB"))&&sn.createElement("p",null,sn.createElement("span",{style:{letterSpacing:2},className:"c-grey-333 mr15"},"\u63D0\u4EA4\u72B6\u6001\uFF1A"),sn.createElement("span",{className:"c-grey-333 mr20"},"\u672A\u5F00\u59CB ",sn.createElement("span",null,$e==null?void 0:$e.unanswer_users)),sn.createElement("span",{className:"c-grey-333 mr20"},"\u8003\u8BD5\u4E2D ",sn.createElement("span",{style:{color:"rgb(90, 184, 145)"}},$e==null?void 0:$e.answering_users)),sn.createElement("span",{className:"c-grey-333 mr20"},"\u5DF2\u4EA4\u5377 ",sn.createElement("span",{style:{color:"#FC2D6B"}},$e==null?void 0:$e.answer_users)),sn.createElement("span",{className:"c-grey-333"},"\u5DF2\u4EA4\u5377/\u672A\u7B54 ",sn.createElement("span",{style:{color:"#FC2D6B"}},$e==null?void 0:$e.commit_with_no_answers_users))),(0,ut.GJ)()&&!((Wn=$e==null?void 0:$e.exercise_tips)!=null&&Wn.includes("\u672A\u5F00\u59CB"))&&Wi&&pi.length>5&&sn.createElement(qi.default,{scroll:{y:240},pagination:!1,dataSource:pi,onRow:An=>({onClick:Fi=>{Fi.stopPropagation(),Fi.preventDefault()}}),onHeaderRow:(An,Fi)=>({onClick:_i=>{_i.stopPropagation(),_i.preventDefault()}}),rowKey:"course_group_id",style:{marginTop:"10px"},onChange:(An,Fi,_i)=>{_i.field&&(un.order_by=_i.field),_i.order||(un.sort_direction="asc"),_i.order==="ascend"&&(un.sort_direction="asc"),_i.order==="descend"&&(un.sort_direction="desc"),_i.order||(un.sort_direction="asc"),Mi()},columns:Zi}),(0,ut.GJ)()&&!((fi=$e==null?void 0:$e.exercise_tips)!=null&&fi.includes("\u672A\u5F00\u59CB"))&&Wi&&pi.length<6&&pi.length>0&&sn.createElement(qi.default,{rowKey:"course_group_id",pagination:!1,onRow:An=>({onClick:Fi=>{Fi.stopPropagation(),Fi.preventDefault()}}),onHeaderRow:(An,Fi)=>({onClick:_i=>{_i.stopPropagation(),_i.preventDefault()}}),dataSource:pi,style:{marginTop:"10px"},onChange:(An,Fi,_i)=>{_i.field&&(un.order_by=_i.field),_i.order||(un.sort_direction="asc"),_i.order==="ascend"&&(un.sort_direction="asc"),_i.order==="descend"&&(un.sort_direction="desc"),_i.order||(un.sort_direction="asc"),Mi()},columns:Zi}),($e==null?void 0:$e.total)!==void 0&&sn.createElement("p",null,sn.createElement("span",{className:"c-grey-333 mr15"},"\u96C6\u4E2D\u9605\u5377\u603B\u8FDB\u5EA6\uFF1A"),sn.createElement("span",{className:"c-grey-333 mr20"},"\u603B\u8BC4\u6570",sn.createElement("span",null,$e==null?void 0:$e.total)),sn.createElement("span",{className:"c-grey-333 mr20"},"\u5DF2\u8BC4\u9605 ",sn.createElement("span",{style:{color:"#4EACFF"}},$e==null?void 0:$e.finish_total)),sn.createElement("span",{className:"c-grey-333"},"\u5F85\u8BC4\u9605 ",sn.createElement("span",{style:{color:"#FC2D6B"}},$e==null?void 0:$e.unfinished_total)))),sn.createElement(et.Z,{closable:!0,successCb:()=>Vi(or.current)}))};var Ri=(0,Ye.connect)(({classroomList:$e})=>({classroomList:$e}))(Hi),Xi=we(46373),$i=we(11492),Fr=we(19541),Dr=we(95024),Rr=we(87169),Xr=we(98895),Mn=we(93603),ho=we(40746),ln=we(59301),rr=Object.defineProperty,Vr=Object.defineProperties,_r=Object.getOwnPropertyDescriptors,Co=Object.getOwnPropertySymbols,Qr=Object.prototype.hasOwnProperty,Or=Object.prototype.propertyIsEnumerable,ko=($e,rn,Wt)=>rn in $e?rr($e,rn,{enumerable:!0,configurable:!0,writable:!0,value:Wt}):$e[rn]=Wt,Ht=($e,rn)=>{for(var Wt in rn||(rn={}))Qr.call(rn,Wt)&&ko($e,Wt,rn[Wt]);if(Co)for(var Wt of Co(rn))Or.call(rn,Wt)&&ko($e,Wt,rn[Wt]);return $e},Cn=($e,rn)=>Vr($e,_r(rn)),Ut=($e,rn)=>{var Wt={};for(var Kt in $e)Qr.call($e,Kt)&&rn.indexOf(Kt)<0&&(Wt[Kt]=$e[Kt]);if($e!=null&&Co)for(var Kt of Co($e))rn.indexOf(Kt)<0&&Or.call($e,Kt)&&(Wt[Kt]=$e[Kt]);return Wt},je=($e,rn,Wt)=>new Promise((Kt,Hn)=>{var Bn=li=>{try{On(Wt.next(li))}catch(ke){Hn(ke)}},un=li=>{try{On(Wt.throw(li))}catch(ke){Hn(ke)}},On=li=>li.done?Kt(li.value):Promise.resolve(li.value).then(Bn,un);On((Wt=Wt.apply($e,rn)).next())});const ri=$e=>{var rn=$e,{user:Wt,classroomList:Kt,globalSetting:Hn,loading:Bn,dispatch:un,match:On}=rn,li=Ut(rn,["user","classroomList","globalSetting","loading","dispatch","match"]),ke,ht,Je,pt,Pt,$t,Qt,dn,Nn,jn,cn,qn,ci,vt,Un,Jn,In;const zn=(0,Ye.useParams)(),[oi]=(0,Ye.useSearchParams)(),[Wn,fi]=(0,ve.useState)(()=>Cn(Ht({},zn),{limit:20})),pi=(0,Ye.useLocation)(),{detailExerciseList:ai,detailTopBanner:Wi,detailLeftMenus:pr}=Kt,[or,tr]=(0,ve.useState)([]),[Pi,fr]=(0,ve.useState)(!1),[nr,lr]=(0,ve.useState)([]),[sr,mr]=(0,ve.useState)(!1),[En,Mi]=(0,ve.useState)(!1),[Ti,Vi]=(0,ve.useState)(!1),[Zi,Oi]=(0,ve.useState)(!1),[Ln,ir]=(0,ve.useState)("\u6309\u521B\u5EFA\u65F6\u95F4\u964D\u5E8F"),hr=[{name:"\u6309\u521B\u5EFA\u65F6\u95F4\u5347\u5E8F",type:"created_at",direction:"asc"},{name:"\u6309\u521B\u5EFA\u65F6\u95F4\u964D\u5E8F",type:"created_at",direction:"desc"},{name:"\u6309\u8003\u8BD5\u65F6\u957F\u5347\u5E8F",type:"time",direction:"asc"},{name:"\u6309\u8003\u8BD5\u65F6\u957F\u964D\u5E8F",type:"time",direction:"desc"},{name:"\u6309\u8BD5\u5377\u540D\u79F0\u5347\u5E8F",type:"exercise_name",direction:"asc"},{name:"\u6309\u8BD5\u5377\u540D\u79F0\u964D\u5E8F",type:"exercise_name",direction:"desc"}];Wn.type=oi.get("tabs")==="all"?"":oi.get("tabs")||"",Wn.id=Wn.coursesId,(0,ve.useEffect)(()=>{var Ui,eo,co;if((Ui=Wt==null?void 0:Wt.userInfo)!=null&&Ui.login){if((0,ut.GJ)()){const bo=Ee.cX.getItem(`${(eo=Wt==null?void 0:Wt.userInfo)==null?void 0:eo.login}Teacher`,"Exercise");bo&&(Wn.sort_by=bo==null?void 0:bo.type,Wn.sort_direction=bo==null?void 0:bo.direction,ir(bo==null?void 0:bo.name))}un({type:"classroomList/getClassroomExercisesList",payload:Ht(Ht({},Wn),zn)})}else(co=Wt==null?void 0:Wt.userInfo)!=null&&co.username&&un({type:"classroomList/getClassroomExercisesList",payload:Ht(Ht({},Wn),zn)});fr(!1)},[(ke=Wt==null?void 0:Wt.userInfo)==null?void 0:ke.login,pi.pathname]),(0,ve.useEffect)(()=>{Kt.actionTabs.key==="\u76EE\u5F55\u91CD\u547D\u540D\u6210\u529F"&&un({type:"classroomList/getClassroomExercisesList",payload:Ht(Ht({},Wn),zn)})},[Kt.actionTabs.key]),(0,ve.useEffect)(()=>{Kt.actionTabs.key==="\u5728\u7EBF\u8003\u8BD5\u8BBE\u7F6E"&&(mr(!0),Mi(Wi==null?void 0:Wi.show_unstart_exercise),Vi(Wi==null?void 0:Wi.forbid_end_exercise))},[Kt.actionTabs.key]),(0,ve.useEffect)(()=>{tr([])},[ai]);const Mr=(Ui,eo)=>{tr([]),Wn.page=Ui,Wn.limit=eo,un({type:"classroomList/getClassroomExercisesList",payload:Ht(Ht({},Wn),zn)})},An=Ui=>{Wn.type=Ui.key==="all"?"":Ui.key,Wn.page=1,Ye.history.replace(`${pi.pathname}?tabs=${Ui.key}`),Oi(!1),un({type:"classroomList/getClassroomExercisesList",payload:Ht(Ht({},Wn),zn)})};(0,ve.useEffect)(()=>{oi.get("tabs")==="all"&&(Wn.type="",Wn.page=1)},[oi.get("tabs")]),(0,ve.useEffect)(()=>{(0,ut.Rm)()&&un({type:"classroomList/getAssistantPermissions",payload:{course_id:Wn.coursesId}})},[(ht=Wt==null?void 0:Wt.userInfo)==null?void 0:ht.username]),(0,ve.useEffect)(()=>{const Ui=sessionStorage.getItem("illegalEntry");sessionStorage.getItem("illegalEntry")&&(sessionStorage.removeItem("illegalEntry"),dt.default.info({title:"\u63D0\u793A",centered:!0,width:600,content:ln.createElement("div",null,"\u5728\u7EBF\u8003\u8BD5\u7981\u6B62\u4F7F\u7528\u94FE\u63A5\u76F4\u63A5\u8BBF\u95EE\u7B54\u9898\u9875\u9762\uFF0C\u8BF7\u4F7F\u7528\u4E0B\u9762\u4E24\u79CD\u6B63\u5E38\u65B9\u5F0F\u8FDB\u5165\u8003\u8BD5\u7B54\u9898\u9875\u9762\u3002",ln.createElement("br",null),"1\u3001\u5728",ln.createElement("span",{className:"c-red blod"},"\u8003\u8BD5\u5217\u8868"),"\u9875\u9762\u4E2D\uFF0C\u70B9\u51FB\u201C",ln.createElement("span",{className:"c-blue blod"},"\u5F00\u59CB\u8003\u8BD5"),"\u201D\u6216\u201C",ln.createElement("span",{className:"c-blue blod"},"\u7EE7\u7EED\u8003\u8BD5"),"\u201D\u6309\u94AE\u8FDB\u5165\u8003\u8BD5\u7B54\u9898\u9875\u9762\u3002",ln.createElement("br",null),"2\u3001\u5728",ln.createElement("span",{className:"c-red blod"},"\u8003\u8BD5\u8BE6\u60C5"),"\u9875\u9762\u4E2D\uFF0C\u70B9\u51FB\u201C",ln.createElement("span",{className:"c-blue blod"},"\u5F00\u59CB\u8003\u8BD5"),"\u201D\u6216\u201C",ln.createElement("span",{className:"c-blue blod"},"\u7EE7\u7EED\u8003\u8BD5"),"\u201D\u6309\u94AE\u8FDB\u5165\u8003\u8BD5\u7B54\u9898\u9875\u9762\u3002",ln.createElement("br",null),Ui==="allowRouter"&&ln.createElement(ln.Fragment,null,"3\u3001",ln.createElement("span",{className:"c-red blod"},"\u4E25\u7981\u67E5\u770B\u4ED6\u4EBA\u7684\u8BD5\u5377\u3002"))),okText:"\u77E5\u9053\u4E86"}))},[]);const Fi=[{name:"\u5168\u90E8",id:"all",total:(Je=ai.exercises_counts)==null?void 0:Je.exercises_total_counts},{name:"\u672A\u5F00\u59CB",id:1,total:(pt=ai.exercises_counts)==null?void 0:pt.unstart_counts},{name:"\u8003\u8BD5\u4E2D",id:2,total:(Pt=ai.exercises_counts)==null?void 0:Pt.publish_counts},{name:"\u96C6\u4E2D\u9605\u5377",id:4,total:($t=ai.exercises_counts)==null?void 0:$t.appraise_exercise_count},{name:"\u5DF2\u622A\u6B62",id:3,total:(Qt=ai.exercises_counts)==null?void 0:Qt.end_counts}],_i=[{name:"\u6279\u91CF\u53D1\u5E03",icon:ln.createElement("i",{className:"iconfont icon-fabu5"})},{name:"\u6279\u91CF\u7ED3\u675F",icon:ln.createElement("i",{className:"iconfont icon-piliangjiezhi2"})},{name:"\u6279\u91CF\u5220\u9664",icon:ln.createElement("i",{className:"iconfont icon-piliangshanchu2"})},{name:"\u8BBE\u4E3A\u516C\u5F00",icon:ln.createElement("i",{className:"iconfont icon-sheweigongkai2"})},{name:"\u52A0\u5165\u8BD5\u5377\u5E93",icon:ln.createElement("i",{className:"iconfont icon-piliangjiaru font14"})}].filter(Ui=>(0,ut.GJ)()?!0:Ui.name!=="\u6279\u91CF\u5220\u9664").filter(Ui=>Wi.is_public?!0:Ui.name!=="\u8BBE\u4E3A\u516C\u5F00"),Er=()=>dt.default.info({title:"\u9898\u5E93\u6539\u7248\u544A\u77E5",content:ln.createElement(ln.Fragment,null,"EduCoder\u5DF2\u5347\u7EA7\u9898\u5E93\u529F\u80FD\uFF0C\u6240\u6709\u8BD5\u9898\u5747\u9700\u5339\u914D\u77E5\u8BC6\u70B9\u3002 \u5F53\u524D\u8BD5\u5377\u6240\u6D89\u53CA\u8BD5\u9898\u5747\u672A\u5339\u914D\u77E5\u8BC6\u70B9\uFF0C\u65E0\u6CD5\u968F\u673A\u62BD\u53D6\uFF0C\u5DF2\u4E0D\u80FD\u6709\u6548\u4F7F\u7528\u3002\u8BF7\u5728\u8BD5\u5377\u5E93\u91CD\u65B0\u7EC4\u5377\u540E\u4F7F\u7528\u3002 \u7531\u6B64\u5E26\u6765\u7684\u4E0D\u4FBF\uFF0C\u656C\u8BF7\u8C05\u89E3\uFF01")}),oo="YYYY-MM-DD",vo=Ve()("2020-11-15",oo),No=Ui=>{var eo;Wn.sort_by=Ui.type,Wn.sort_direction=Ui.direction,(0,ut.GJ)()&&Ee.cX.setItem(`${(eo=Wt==null?void 0:Wt.userInfo)==null?void 0:eo.login}Teacher`,Ui,"Exercise"),Wn.page=1,un({type:"classroomList/getClassroomExercisesList",payload:Ht({},Wn)}),ir(Ui.name)},$r=()=>ln.createElement(it.default,null,ln.createElement(it.default.Item,{key:1,onClick:()=>{var Ui,eo;if((0,ut.Rm)()&&!((eo=(Ui=Kt==null?void 0:Kt.AssistantObject)==null?void 0:Ui.exercise)!=null&&eo.can_create)){at.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}un({type:"exercise/setActionTabs",payload:{key:"\u8BD5\u5377\u9009\u7528",params:Wn}})}},"\u5FEB\u901F\u9009\u62E9\u8BD5\u5377"),ln.createElement(it.default.Item,{key:2,onClick:()=>{var Ui,eo;if((0,ut.Rm)()&&!((eo=(Ui=Kt==null?void 0:Kt.AssistantObject)==null?void 0:Ui.exercise)!=null&&eo.can_create)){at.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}window.scrollTo(0,0),Ye.history.push(`/classrooms/${Wn.coursesId}/exercise/add?catalogue=${(zn==null?void 0:zn.categoryId)||""}`)}},"\u521B\u5EFA\u65B0\u8BD5\u5377"),ln.createElement(it.default.Item,{key:3,onClick:()=>{var Ui,eo;if((0,ut.Rm)()&&!((eo=(Ui=Kt.AssistantObject)==null?void 0:Ui.practice)!=null&&eo.can_create)){at.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}un({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u5165\u5916\u90E8\u6210\u7EE9",type:"exercise"}})}},"\u5BFC\u5165\u5916\u90E8\u6210\u7EE9")),ea=Ui=>je(void 0,null,function*(){var eo,co,bo,na,Yo,To,Eo,ra;const ca=Ui.name;if(((eo=Wt==null?void 0:Wt.userInfo)==null?void 0:eo.user_status)===2&&Ui.name==="\u6279\u91CF\u53D1\u5E03"){(0,Re.Rd)();return}const Oo=[];if((co=ai.exercises)==null||co.map(Xo=>{if(or.includes(Xo.id)&&Xo.is_random){const po=Ve()(Xo.created_at,oo);Ve()(vo).diff(Ve()(po),"days")>0&&(Xo!=null&&Xo.is_random)&&Oo.push(Xo)}}),or==""){let Xo="\u8BF7\u9009\u62E9\u4F60\u8981\u64CD\u4F5C\u7684\u4EFB\u52A1";ca==="\u52A0\u5165\u8BD5\u5377\u5E93"&&(Xo="\u8BF7\u9009\u62E9\u8981\u52A0\u5165\u8BD5\u5377\u5E93\u7684\u8BD5\u5377"),at.ZP.error(Xo)}else if(Oo.length)Er();else{if(ca==="\u6279\u91CF\u53D1\u5E03"){if((0,ut.Rm)()&&!((na=(bo=Kt==null?void 0:Kt.AssistantObject)==null?void 0:bo.exercise)!=null&&na.can_publish)){at.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}let Xo=!1;ai.exercises.forEach(Jr=>{or.includes(Jr.id)&&Jr.total_num===0&&Jr.is_random&&(Xo=!0)});let po;if(po=(To=(Yo=ai.exercises.filter(Jr=>or.includes(Jr==null?void 0:Jr.id)).filter(Jr=>(Jr==null?void 0:Jr.exercise_question_count)===0))==null?void 0:Yo[0])==null?void 0:To.exercise_name,(po==null?void 0:po.length)>0){at.ZP.warning(`${po}\u8BD5\u5377\u5185\u6CA1\u6709\u8BD5\u9898\u4E0D\u5141\u8BB8\u53D1\u5E03\u8003\u8BD5`);return}if(Xo){at.ZP.warning("\u968F\u673A\u8BD5\u5377\u8FD8\u672A\u5728\u8BE5\u8BFE\u5802\u751F\u6210\u8BD5\u5377\uFF0C\u8BF7\u70B9\u51FB\u7F16\u8F91\u53BB\u8BBE\u7F6E\u51FA\u5377\u6570\u91CF\u5427\u3002");return}let mo=!1;if(ai.exercises.forEach(Jr=>{or.includes(Jr.id)&&Jr.exercise_status!==1&&(mo=!0)}),mo){at.ZP.warning("\u8BD5\u5377\u5DF2\u53D1\u5E03\u8003\u8BD5\u4E0D\u53EF\u6279\u91CF\u53D1\u5E03\u3002");return}}if(ca==="\u52A0\u5165\u8BD5\u5377\u5E93"){const Xo=yield(0,ne.ZP)(`/api/courses/${Wn.id}/exercises/check_exercise_cover.json`,{method:"post",body:{check_ids:[...or]}});if(((Eo=Xo==null?void 0:Xo.cover_exercises)==null?void 0:Eo.length)>0){lr(Xo==null?void 0:Xo.cover_exercises);return}}un({type:"exercise/setActionTabs",payload:{key:ca,selectArrs:or,selectArrsAll:(ra=ai.exercises)==null?void 0:ra.filter(Xo=>or.includes(Xo.id)),params:Wn,type:1}})}});return ln.createElement("section",{className:"minH500"},ln.createElement(Xi.Z,{isLoading:Bn["classroomList/getClassroomExercisesList"],tabDataSource:Fi,isAdmin:(0,ut.GJ)(),dispatch:un,type:ai==null?void 0:ai.main_category_name,isExercise:!0,user:Wt,getDropdownMenu:$r,onTabMenuClick:An,classroomList:Kt,defaultSelectedKeys:[Wn.type||"all"]}),ln.createElement($i.Z,{dataSource:ai.exercises||[],isAdmin:(0,ut.GJ)(),batchStatus:Zi,SortMenuName:Ln,setSortMenuName:ir,SortMenus:hr,onSearch:Ui=>{Wn.search=Ui.trim(),Wn.page=1,un({type:"classroomList/getClassroomExercisesList",payload:Ht({},Wn)})},isShowMode:!0,onModeChange:Ui=>{Wn.is_normal=Ui,Wn.page=1,un({type:"classroomList/getClassroomExercisesList",payload:Ht({},Wn)})},onSort:No,onBatch:Ui=>Oi(Ui)}),ln.createElement(Ze.Z,{loading:Bn["classroomList/getClassroomExercisesList"],active:!0,avatar:{size:40},paragraph:{rows:5},className:"mt30"},(dn=ai.exercises_counts)!=null&&dn.exercises_all_counts?ai.exercises.map(function(Ui,eo){return ln.createElement(Ri,{key:eo,v:Ui,k:eo,match:On,batchStatus:Zi,selectArrs:or,setSelectArrs:tr,dispatch:un,params:Wn,user:Wt,manageAllGroup:ai.manage_all_group})}):ln.createElement(te.Z,null),ln.createElement("aside",{className:"tc mb50 mt30"},((Nn=ai.exercises_counts)==null?void 0:Nn.exercises_all_counts)>0&&ln.createElement(Ue.Z,{showTotal:Ui=>{var eo;return`\u5171 ${(eo=ai==null?void 0:ai.exercises_counts)==null?void 0:eo.exercises_all_counts} \u6761`},showSizeChanger:!0,onChange:Mr,defaultCurrent:Wn.page,current:Wn.page||1,pageSize:Wn.limit||20,total:ai.exercises_counts&&ai.exercises_counts.exercises_all_counts}))),or.length>0&&(0,ut.GJ)()&&ln.createElement(xt.Z,{offsetBottom:0},ln.createElement(Fr.Z,{buttonDataSource:_i,onButtonClick:ea,useBatchStatus:Oi,setSeleArr:tr,catalogue:((cn=(jn=pr==null?void 0:pr.course_modules)==null?void 0:jn.find(Ui=>Ui.type==="exercise"))==null?void 0:cn.second_category)||[],addCatalogue:Ui=>{Ui.preventDefault(),un({type:"classroomList/setActionTabs",payload:{key:"\u6DFB\u52A0\u76EE\u5F55",params:Wn,selectArrs:{category_id:ai==null?void 0:ai.main_category_id,type:"exercise"}}})},allSelect:or.length?or.length===((ci=(qn=ai.exercises)==null?void 0:qn.filter(Ui=>!Ui.is_make_up_exercise))==null?void 0:ci.length):!1,setAllSelect:Ui=>{var eo;Ui.target.checked?tr((eo=ai==null?void 0:ai.exercises)==null?void 0:eo.filter(co=>!co.is_make_up_exercise).map(co=>co.id)):tr([])},selectArrs:or,onMenuClick:Ui=>je(void 0,[Ui],function*({key:eo}){if(or=="")return at.ZP.error("\u8BF7\u9009\u62E9\u4F60\u8981\u64CD\u4F5C\u7684\u4EFB\u52A1"),null;(yield(0,ne.ZP)(`/api/courses/${Wn.id}/exercises/move_to_category.json`,{method:"post",body:{exercise_ids:or,new_category_id:eo}})).status===0&&(at.ZP.success("\u64CD\u4F5C\u6210\u529F"),un({type:"classroomList/getClassroomExercisesList",payload:Ht({},zn)}))})})),ln.createElement(gn.Z,null),ln.createElement(yt.Z,null),ln.createElement(Fn,null),ln.createElement(tt,null),ln.createElement(Xr.Z,{onOk:()=>{un({type:"classroomList/getClassroomExercisesList",payload:Ht({},zn)})}}),ln.createElement(Mn.Z,{onOk:()=>{}}),ln.createElement(Dt,{cb:()=>tr([])}),ln.createElement(Ji,null),ln.createElement(et.Z,null),ln.createElement(dt.default,{title:ln.createElement("span",null,ln.createElement(Rr.Z,{style:{color:"#faad14",fontSize:"18px"}})," \u52A0\u5165\u8BD5\u5377\u5E93\u63D0\u793A"),open:nr.length>0,footer:!1,onCancel:()=>{lr([])}},ln.createElement("div",{style:{height:300,overflow:"auto"}},ln.createElement("div",null,"\u6709",nr==null?void 0:nr.length,"\u5F20\u8BD5\u5377\u5728\u8BD5\u5377\u5E93\u91CD\u590D\uFF0C\u662F\u5426\u9700\u8981\u8986\u76D6\u539F\u6765\u7684\u8BD5\u5377\uFF1F"),nr==null?void 0:nr.map(Ui=>ln.createElement("div",{style:{marginTop:25}},ln.createElement("div",null,"\u8BD5\u5377\uFF1A",Ui==null?void 0:Ui.origin_exercise_nam),ln.createElement("div",null,"\u539F\u8BD5\u5377\uFF1A",ln.createElement("a",{href:`/paperlibrary/see/${Ui==null?void 0:Ui.examination_bank_id}?defaultActiveKey=0`,target:"_blank"},Ui==null?void 0:Ui.examination_bank_name))))),ln.createElement("div",{style:{textAlign:"end"}},ln.createElement(nt.ZP,{style:{height:30},onClick:()=>je(void 0,null,function*(){const Ui=yield(0,ne.ZP)(`/api/courses/${Wn.id}/exercises/join_examination_banks.json`,{method:"post",body:{check_ids:[...or],update:1}});(Ui==null?void 0:Ui.status)===0&&(at.ZP.info("\u8986\u76D6\u6210\u529F"),lr([]))})},"\u8986\u76D6\u539F\u6765\u7684\u8BD5\u5377"),ln.createElement(nt.ZP,{type:"primary",onClick:()=>je(void 0,null,function*(){const Ui=yield(0,ne.ZP)(`/api/courses/${Wn.id}/exercises/join_examination_banks.json`,{method:"post",body:{check_ids:[...or]}});(Ui==null?void 0:Ui.status)===0&&(at.ZP.info("\u5F62\u6210\u6210\u529F"),lr([]))}),style:{marginLeft:10,height:30}},"\u5F62\u6210\u65B0\u8BD5\u5377"))),ln.createElement(dt.default,{title:"\u5728\u7EBF\u8003\u8BD5\u8BBE\u7F6E",open:sr,centered:!0,onOk:()=>je(void 0,null,function*(){let Ui=yield(0,ne.ZP)(`/api/courses/${Wn.coursesId}/update_show_unstart_exercise`,{method:"put",body:{show_unstart_exercise:En,forbid_end_exercise:Ti}});(Ui==null?void 0:Ui.status)===0&&(mr(!1),un({type:"classroomList/setActionTabs",payload:{key:""}}),un({type:"classroomList/getClassroomTopBanner",payload:{id:Wn.coursesId}}),at.ZP.info("\u64CD\u4F5C\u6210\u529F"))}),onCancel:()=>{mr(!1),un({type:"classroomList/setActionTabs",payload:{key:""}})}},ln.createElement(De.default,{checked:En,onChange:Ui=>{Mi(Ui.target.checked)}},"\u5141\u8BB8\u5B66\u751F\u67E5\u770B\u5DF2\u53D1\u5E03\u4F46\u672A\u5F00\u59CB\u7684\u8003\u8BD5",ln.createElement("span",{style:{color:"#666666"}},"\uFF08\u8003\u8BD5\u5F00\u59CB\u4E4B\u540E\u5B66\u751F\u624D\u80FD\u4F5C\u7B54\uFF09")),ln.createElement(De.default,{className:"mt20",checked:Ti,onChange:Ui=>{Vi(Ui.target.checked)}},"\u7981\u6B62\u5B66\u751F\u67E5\u770B\u5DF2\u622A\u6B62\u7684\u8003\u8BD5")),ln.createElement(Dr.Z,null),ln.createElement(ln.Fragment,null,ln.createElement(ho.T$,{onCancel:()=>{un({type:"classroomList/setActionTabs",payload:Cn(Ht({},Kt==null?void 0:Kt.actionTabs),{open:""})})},open:((vt=Kt==null?void 0:Kt.actionTabs)==null?void 0:vt.open)==="\u624B\u673A\u53F7\u7ED1\u5B9A"}),ln.createElement(ho.$i,{onCancel:()=>{un({type:"classroomList/setActionTabs",payload:Cn(Ht({},Kt==null?void 0:Kt.actionTabs),{open:""})})},onFinish:()=>{un({type:"classroomList/getClassroomExercisesList",payload:Ht(Ht({},Wn),zn)})},open:((Un=Kt==null?void 0:Kt.actionTabs)==null?void 0:Un.open)==="\u8BD5\u5377\u5C01\u5B58",Data:Cn(Ht({},Kt==null?void 0:Kt.actionTabs),{type:"exercise"})}),ln.createElement(ho.K1,{onCancel:()=>{un({type:"classroomList/setActionTabs",payload:Cn(Ht({},Kt==null?void 0:Kt.actionTabs),{open:""})})},onFinish:()=>{un({type:"classroomList/getClassroomExercisesList",payload:Ht(Ht({},Wn),zn)})},open:((Jn=Kt==null?void 0:Kt.actionTabs)==null?void 0:Jn.open)==="\u89E3\u5C01",Data:Cn(Ht({},Kt==null?void 0:Kt.actionTabs),{type:"exercise"})}),ln.createElement(ho.O7,{onCancel:()=>{un({type:"classroomList/setActionTabs",payload:Cn(Ht({},Kt==null?void 0:Kt.actionTabs),{open:""})})},onFinish:()=>{un({type:"classroomList/getClassroomExercisesList",payload:Ht(Ht({},Wn),zn)})},open:((In=Kt==null?void 0:Kt.actionTabs)==null?void 0:In.open)==="\u63D0\u793A",Data:Cn(Ht({},Kt==null?void 0:Kt.actionTabs),{type:"exercise"})})))};var Si=(0,Ye.connect)(({user:$e,classroomList:rn,loading:Wt,globalSetting:Kt})=>({user:$e,classroomList:rn,globalSetting:Kt,loading:Wt.effects}))(ri)},48716:function(fn,on,we){"use strict";we.d(on,{Q8:function(){return He},d0:function(){return Rt},w6:function(){return st}});var ve=we(59301),Ye=we(16326),dt=we(82326),it=we(6767),at=we(62957),Ze=we(47889),Ue=we(77019),xt=we(5269),nt=we(25399),De=we(62673),wt=we(99571),Ve=we(61186),ut=we.n(Ve),Ee=we(48790),te=we(38986),ne=we(89392),ue=we.n(ne),se=we(51257),de=we(22982),pe=we(25690),ye=we(43155),Ce=we(40197),ze=we(59229),Te=we(3039),Ie=we(75736),Oe=we(59301),Re=Object.defineProperty,rt=Object.defineProperties,ot=Object.getOwnPropertyDescriptors,Ct=Object.getOwnPropertySymbols,gt=Object.prototype.hasOwnProperty,kt=Object.prototype.propertyIsEnumerable,Lt=(an,Dn,Dt)=>Dn in an?Re(an,Dn,{enumerable:!0,configurable:!0,writable:!0,value:Dt}):an[Dn]=Dt,Ot=(an,Dn)=>{for(var Dt in Dn||(Dn={}))gt.call(Dn,Dt)&&Lt(an,Dt,Dn[Dt]);if(Ct)for(var Dt of Ct(Dn))kt.call(Dn,Dt)&&Lt(an,Dt,Dn[Dt]);return an},Nt=(an,Dn)=>rt(an,ot(Dn)),tn=(an,Dn,Dt)=>new Promise((gn,yt)=>{var Zn=Fe=>{try{We(Dt.next(Fe))}catch(xe){yt(xe)}},vi=Fe=>{try{We(Dt.throw(Fe))}catch(xe){yt(xe)}},We=Fe=>Fe.done?gn(Fe.value):Promise.resolve(Fe.value).then(Zn,vi);We((Dt=Dt.apply(an,Dn)).next())});function st(an,Dn){const Dt=[];for(let gn=an;gn<Dn;gn++)Dt.push(gn);return Dt}const He=(an,Dn,Dt)=>{const gn=an<ut()().startOf("day"),yt=an>ut()(Dn).endOf("day"),Zn=an<ut()(Dt).startOf("day");return Dn?Dt?ut()()<=ut()(Dt)?Zn||yt:gn||yt:an&&gn||yt:Dt&&ut()()<=ut()(Dt)?Zn:gn},Rt=(an,Dn)=>{const Dt=parseInt(ut()(an).format("HH")),gn=parseInt(ut()().format("HH")),yt=parseInt(ut()().format("mm"));if(!an)return{disabledHours:()=>st(0,gn),disabledMinutes:()=>st(0,yt)};if(Dn){const Zn=parseInt(ut()(Dn).format("HH")),vi=parseInt(ut()(Dn).format("mm"));return ut()(an).isSame(ut()(Dn),"day")?{disabledHours:()=>st(0,Zn),disabledMinutes:()=>Dt<=Zn?st(0,vi):[]}:void 0}if(ut()(an).isSame(ut()(),"day"))return{disabledHours:()=>st(0,gn),disabledMinutes:()=>ut()(an).isSame(ut()(),"hour")&&Dt<=gn?st(0,yt):[]}},Zt=(an,Dn)=>an==null?void 0:an.map(Dt=>{var gn;return(gn=Dn==null?void 0:Dn.find(yt=>yt.value===Dt))==null?void 0:gn.id}),{RangePicker:_t}=Ye.default,{Option:Mt}=dt.default,jt=({shixunHomeworks:an,loading:Dn,dispatch:Dt,classroomList:gn,user:yt})=>{var Zn,vi,We,Fe,xe,Ne,_e,be,tt;const Xt=(0,pe.useParams)(),{workSetting:Bt,workList:nn,shixunWorkList:Tt,headerInfo:bt,changeData:zt}=an,[qt,pn]=(0,ve.useState)(!1),[ei,wn]=(0,ve.useState)(!1);let[Fn,Ci]=(0,ve.useState)([]),[$n,bi]=(0,ve.useState)([]),[hi,Di]=(0,ve.useState)({unified_setting:!1,publish_time:"",end_time:"",allow_late:!1,unified_late:!0,late_time:"",late_penalty:0,penalty_type:ye.Q.Percent,challenge_settings:[],work_efficiency:!1,shixun_evaluation:"",answer_open_evaluation:!1,answer_public:!1,score_open:!1,comment_public:!0,total_score:"",eff_score:0,action_analysis:!1,work_end_forbid_evaluate:!1});const[Gi,Ji]=(0,ve.useState)({}),[Zr,qi]=(0,ve.useState)({});(0,ve.useEffect)(()=>()=>{Ci([])},[]),(0,ve.useEffect)(()=>{pn(!(0,Ee.GJ)())},[(0,Ee.GJ)()]);const ii=()=>{Dt({type:"shixunHomeworks/getWorkSetting",payload:Ot({},Xt)})};(0,ve.useEffect)(()=>{if(!(Bt!=null&&Bt.course_id))return;Object.keys(hi).map(function(Qn){hi[Qn]=Bt[Qn]}),(!hi.allow_late||!hi.unified_late)&&(hi.late_penalty=20,hi.penalty_type=ye.Q.Percent),hi.unified_setting||(hi.unified_late=!1,hi.unified_anonymous_comment=!1,hi.unified_anonymous_appeal=!1),Fn=JSON.parse(JSON.stringify(Bt.group_settings.map(Qn=>Nt(Ot({},Qn),{group_name:[Qn.group_name]})).filter(Qn=>Qn.publish_time!==null))),$n=JSON.parse(JSON.stringify(Bt.allow_late_settings.map(Qn=>Nt(Ot({},Qn),{group_name:[Qn.group_name]})).filter(Qn=>Qn.late_time!==null))),Di(Ot({},hi));const xn=(0,se.QE)((Fn==null?void 0:Fn.length)>0?Fn:[]);Ci([...xn]),($n==null?void 0:$n.length)<=0?bi([{penalty_type:ye.Q.Percent,late_penalty:20}]):bi([...$n])},[Bt]);const so=()=>tn(void 0,null,function*(){var xn,Qn;if(((xn=yt==null?void 0:yt.userInfo)==null?void 0:xn.user_status)===2){(0,Ce.Rd)();return}const gi=JSON.parse(JSON.stringify(hi));if(gi.challenge_settings.filter(ti=>!ti.hide),gi.categoryId=Xt.categoryId,(Qn=gi.challenge_settings)!=null&&Qn.every(ti=>!ti.checked)){it.ZP.warning("\u5173\u5361\u4E0D\u80FD\u5168\u90E8\u8BBE\u7F6E\u4E3A\u53EF\u4E0D\u505A");return}if(console.log(Fn),!hi.unified_setting)Fn=Fn==null?void 0:Fn.map(ti=>{var Yi;if(!ti.publish_time||!ti.end_time)throw it.ZP.error("\u8BF7\u628A\u53D1\u5E03\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u53D1\u5E03\u65F6\u95F4\u586B\u5199\u5B8C\u6574");if(!ti.group_name)throw it.ZP.error("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0"),new String("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0");return ti.group_name=typeof(ti==null?void 0:ti.group_name)=="string"?[ti==null?void 0:ti.group_name]:ti==null?void 0:ti.group_name,ti.group_id=(Yi=Bt.group_settings)==null?void 0:Yi.filter(cr=>{var Sr;return(Sr=ti==null?void 0:ti.group_name)==null?void 0:Sr.includes(cr.group_name)}).map(cr=>cr.group_id||cr.id).toString().split(","),ti});else if(!hi.publish_time||!hi.end_time)throw it.ZP.error("\u53D1\u5E03\u622A\u6B62\u65F6\u95F4\u4E0D\u80FD\u4E3A\u7A7A"),new String("\u53D1\u5E03\u622A\u6B62\u65F6\u95F4\u4E0D\u80FD\u4E3A\u7A7A");if(gi.group_settings=Fn,hi.allow_late)if(hi.unified_late){if(hi.late_penalty===null||hi.late_penalty===void 0||hi.late_penalty<0||hi.late_penalty>100)throw it.ZP.error("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100"),new String("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100");if(!hi.late_time)throw it.ZP.error("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574")}else $n=$n==null?void 0:$n.map(ti=>{var Yi,cr;if(ti.late_penalty===null||ti.late_penalty===void 0||ti.late_penalty<0||ti.late_penalty>100)throw it.ZP.error("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100"),new String("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100");if(!ti.late_time)throw it.ZP.error("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574");if(!ti.group_name)throw it.ZP.error("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0"),new String("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0");return ti.group_name=typeof(ti==null?void 0:ti.group_name)=="string"?[ti==null?void 0:ti.group_name]:ti==null?void 0:ti.group_name,ti.group_id=(cr=(Yi=ti==null?void 0:ti.group_name)==null?void 0:Yi.map(Sr=>{var Jt,Vt;let It=(Vt=(Jt=Bt.group_settings)==null?void 0:Jt.filter(Ei=>(Ei==null?void 0:Ei.group_name)===Sr))==null?void 0:Vt[0];return It==null?void 0:It.group_id}))==null?void 0:cr.toString().split(","),ti}),gi.allow_late_settings=$n;let yi=yield(0,Ie.Tr)({homework_common_ids:[parseInt(Xt.categoryId)],course_id:Xt.coursesId,type:"homework_common"});(yi==null?void 0:yi.student_count)===0?Kr(gi):(qi(gi),Ji(yi))}),Kr=xn=>{var Qn;if(xn.total_score===null){it.ZP.warning("\u603B\u5206\u503C\u4E0D\u80FD\u4E3A\u7A7A");return}if(xn!=null&&xn.work_efficiency&&xn.eff_score===null){it.ZP.warning("\u6548\u7387\u5206\u4E0D\u80FD\u4E3A\u7A7A");return}const gi=xn.challenge_settings.reduce((Yi,cr)=>Yi+Number(cr.challenge_score),0);if((gi==null?void 0:gi.toFixed(10))!==((Qn=xn.total_score-xn.eff_score)==null?void 0:Qn.toFixed(10))){it.ZP.warning(`\u6548\u7387\u5206\u52A0\u5173\u5361\u4EFB\u52A1\u603B\u5206\u5FC5\u987B\u7B49\u4E8E\u603B\u5206\u503C\uFF1A${xn.total_score}\u5206`);return}const yi={shixun_evaluation:xn.shixun_evaluation,challenge_settings:xn.challenge_settings};let ti=()=>{var Yi;const cr=()=>tn(void 0,null,function*(){wn(!0),(yield(0,te.ZP)(`/api/homework_commons/${Xt.categoryId}/publish_setting.json`,{method:"post",body:Ot({},xn)})).status===0&&(it.ZP.success("\u66F4\u65B0\u6210\u529F"),ii(),Dt({type:"shixunHomeworks/getShixunWorkHeadInfo",payload:Ot({},Xt)})),wn(!1)});!(0,ne.isEqual)(zt,yi)&&!((Yi=bt==null?void 0:bt.homework_status)!=null&&Yi.includes("\u672A\u53D1\u5E03"))?at.default.confirm({title:"\u66F4\u65B0\u6210\u7EE9",content:"\u60A8\u6539\u52A8\u4E86\u672C\u6B21\u4F5C\u4E1A\u7684\u5173\u5361\u5F97\u5206\u8BBE\u7F6E\uFF0C\u8FD9\u53EF\u80FD\u5BFC\u81F4\u5DF2\u5B8C\u6210\u4F5C\u4E1A\u7684\u5B66\u751F\u7684\u6210\u7EE9\u4EA7\u751F\u9519\u8BEF\u3002\u70B9\u51FB\u201C\u786E\u5B9A\u201D\u6309\u94AE\u5C06\u4FDD\u5B58\u6700\u65B0\u8BBE\u7F6E\u5E76\u6309\u6700\u65B0\u8BBE\u7F6E\u66F4\u65B0\u5168\u73ED\u6210\u7EE9\u3002",okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:cr}):cr()};Bt!=null&&Bt.high_resources_consume&&!(Bt!=null&&Bt.high_resources_consume_permission)?Dt({type:"classroomList/setActionTabs",payload:{key:"\u6388\u6743\u4F7F\u7528",id:Xt.coursesId,type:"shixun",type_id:Xt.categoryId,name:Bt.homework_name,fn:()=>{ti()}}}):ti()},qr=(xn,Qn,gi="group_id")=>{var yi;return Qn?Qn.find(ti=>ti[gi]===xn):(yi=Bt==null?void 0:Bt.group_settings)==null?void 0:yi.find(ti=>ti.group_id[0]===xn)},io=(Bt==null?void 0:Bt.allow_late)||(Bt==null?void 0:Bt.anonymous_comment),Fo=xn=>{var Qn,gi;const yi=qr(xn,Bt==null?void 0:Bt.allow_late_settings,"id"),ti=qr(xn,Bt==null?void 0:Bt.anonymous_comment_settings),Yi=qr(xn);return(Bt==null?void 0:Bt.allow_late)&&yi&&ut()(yi==null?void 0:yi.late_time)<=ut()()||(Bt==null?void 0:Bt.anonymous_comment)&&ti&&(ti==null?void 0:ti.evaluation_start)!==null||((gi=(ut()(Yi==null?void 0:Yi.end_time)<=ut()()&&((Qn=Bt==null?void 0:Bt.allow_late_settings)==null?void 0:Qn.filter(cr=>cr.group_id.includes(xn))))[0])==null?void 0:gi.late_time)!=null},lo=(0,ve.useMemo)(()=>(Bt==null?void 0:Bt.allow_late)||(Bt==null?void 0:Bt.all_group_late),[Bt,bt]),Ar=Bt==null?void 0:Bt.anonymous_comment,ro=xn=>{if(!xn)return!1;const Qn=qr(xn,Bt==null?void 0:Bt.anonymous_comment_settings);return(Bt==null?void 0:Bt.anonymous_comment)&&Qn&&(Qn==null?void 0:Qn.evaluation_start)!==null},Le=(xn,Qn)=>{var gi,yi,ti,Yi,cr;xn!=null&&xn.group_id||(xn.group_id=Zt(xn==null?void 0:xn.group_name,Bt==null?void 0:Bt.group_settings)),Dt({type:"classroomList/setActionTabs",payload:{key:"\u5206\u73ED\u53D1\u5E03-\u53D1\u5E03\u89C4\u5219\u62C6\u5206",data:xn,index:Qn,rangePickerDisabled:(yi=(gi=xn==null?void 0:xn.group_id)==null?void 0:gi[0])!=null&&yi.publish_time?qt||(ut()()<=ut()((Yi=qr((ti=xn==null?void 0:xn.group_id)==null?void 0:ti[0]))==null?void 0:Yi.publish_time)?!1:[!0,Fo((cr=xn==null?void 0:xn.group_id)==null?void 0:cr[0])]):!1,disabledDate:Bt==null?void 0:Bt.course_end_date}})};return Oe.createElement("section",{className:de.Z.form},Oe.createElement("div",{className:de.Z.title},"\u4F5C\u4E1A\u53D1\u5E03",Oe.createElement("span",{className:"c-grey-666 font14",style:{fontWeight:400}},"\uFF08\u4F5C\u4E1A\u4E00\u65E6\u53D1\u5E03\u540E\u4E0D\u53EF\u53D8\u66F4\u8BD5\u9898\u53D1\u5E03\u6A21\u5F0F\uFF09")),Oe.createElement("div",null,Oe.createElement("div",{style:{background:"#F6F7F9",padding:"13px 30px",display:"flex",alignItems:"center"}},Oe.createElement(Ze.ZP.Group,{disabled:qt||!((Zn=bt==null?void 0:bt.homework_status)!=null&&Zn.includes("\u672A\u53D1\u5E03"))||(0,Ee.Rm)()&&!((vi=gn.AssistantObject.practice)!=null&&vi.can_publish),value:hi.unified_setting,onChange:xn=>{var Qn;if(!((Qn=bt==null?void 0:bt.homework_status)!=null&&Qn.includes("\u672A\u53D1\u5E03"))){it.ZP.error("\u5DF2\u53D1\u5E03\uFF0C\u4E0D\u80FD\u518D\u4FEE\u6539\u7EDF\u4E00\u8BBE\u7F6E");return}if(hi.unified_setting=!hi.unified_setting,hi.unified_setting||(hi.unified_late=!1,bi([{late_penalty:5}])),Di(Object.assign({},hi)),hi.unified_setting===!1&&Fn==""){Ci(Fn.concat({}));return}hi.unified_setting&&(Ci([]),bi([{late_penalty:5}]))}},Oe.createElement(Ze.ZP,{value:!0,disabled:qt||!(Bt!=null&&Bt.manage_all_group),style:{marginRight:"50px"}},"\u7EDF\u4E00\u53D1\u5E03"),Oe.createElement(Ze.ZP,{disabled:qt||!((We=Bt==null?void 0:Bt.group_settings)!=null&&We.length),value:!1},"\u5206\u73ED\u53D1\u5E03")),((Fe=Bt==null?void 0:Bt.group_settings)==null?void 0:Fe.length)===0&&Oe.createElement("div",{style:{color:"rgba(0, 0, 0, 0.25)",height:"22px"}},"\uFF08\u672C\u8BFE\u5802\u65E0\u5206\u73ED\uFF0C\u4EC5\u652F\u6301\u9009\u62E9\u201C\u7EDF\u4E00\u53D1\u5E03\u201C\uFF09")),hi.unified_setting&&Oe.createElement("div",{style:{display:"flex",color:"#666666",background:"#F6F7F9",padding:"5px 30px",height:"50px",marginTop:"1px"}},Oe.createElement(Ue.Z,{align:"middle"},Oe.createElement(xt.Z,{style:{marginLeft:"23px"}},"\u53D1\u5E03\u65F6\u95F4"),Oe.createElement(xt.Z,{className:"ml10"},Oe.createElement(Ye.default,{size:"large",disabled:qt||!((xe=bt==null?void 0:bt.homework_status)!=null&&xe.includes("\u672A\u53D1\u5E03")||(Ne=bt==null?void 0:bt.homework_status)!=null&&Ne.includes("\u672A\u5F00\u59CB"))||(0,Ee.Rm)()&&!((_e=gn.AssistantObject.practice)!=null&&_e.can_publish),style:{width:170},placeholder:"\u8BF7\u9009\u62E9\u53D1\u5E03\u65F6\u95F4",showTime:{format:"HH:mm"},allowClear:!1,format:"YYYY-MM-DD HH:mm",disabledDate:xn=>He(xn,Bt==null?void 0:Bt.course_end_date),disabledTime:xn=>Rt(xn),value:hi.publish_time?ut()(hi.publish_time):"",onChange:(xn,Qn)=>{hi.publish_time=Qn,(hi.end_time==""||!hi.end_time)&&hi.unified_setting&&(hi.end_time=ut()(xn).add(7,"days").format("YYYY-MM-DD HH:mm:ss")),Di(Object.assign({},hi))}}))),Oe.createElement(Ue.Z,{align:"middle",className:"pl30"},Oe.createElement(xt.Z,null,"\u622A\u6B62\u65F6\u95F4"),Oe.createElement(xt.Z,{className:"ml10"},Oe.createElement(Ye.default,{size:"large",style:{width:170},allowClear:!1,placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:ut()((0,se.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",disabled:(Bt==null?void 0:Bt.allow_late)&&(Bt==null?void 0:Bt.homework_status.includes("\u5DF2\u622A\u6B62"))||qt||(Bt==null?void 0:Bt.allow_late)&&ut()()>=ut()(Bt==null?void 0:Bt.end_time)||(0,Ee.Rm)()&&!((be=gn.AssistantObject.practice)!=null&&be.can_publish),disabledDate:xn=>He(xn,Bt==null?void 0:Bt.course_end_date,hi.publish_time),disabledTime:xn=>Rt(xn,hi.publish_time),value:hi.end_time?ut()(hi.end_time):"",onChange:(xn,Qn)=>{hi.end_time=Qn,Di(Object.assign({},hi))}})))),!hi.unified_setting&&(Fn==null?void 0:Fn.length)>0&&Oe.createElement(Ue.Z,{style:{display:"flex",color:"#666666",background:"#F6F7F9",padding:"5px 30px",marginTop:"1px"}},Fn&&Fn.map(function(xn,Qn){var gi,yi,ti,Yi,cr,Sr,Jt;return Oe.createElement(xt.Z,{span:24,key:Qn},Oe.createElement(Ue.Z,{gutter:[8,16],style:{display:"flex",alignItems:"center",marginBottom:Qn==(Fn==null?void 0:Fn.length)-1?"0px":"10px"}},Oe.createElement("div",{style:{minWidth:85,marginRight:"15px",textAlign:"right"}},"\u53D1\u5E03\u89C4\u5219",Qn+1),Oe.createElement(dt.default,{disabled:qt||((gi=bt==null?void 0:bt.homework_status)!=null&&gi.includes("\u672A\u53D1\u5E03")&&xn.id||ut()()<ut()(xn==null?void 0:xn.publish_time)?!1:!!(xn!=null&&xn.publish_time))||(0,Ee.Rm)()&&!((yi=gn.AssistantObject.practice)!=null&&yi.can_publish),mode:"multiple",className:de.Z.multiple_select,style:{width:"250px"},value:xn.group_name,placeholder:"\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0",onChange:Vt=>{var It;if((0,Ee.Rm)()&&!((It=gn.AssistantObject.practice)!=null&&It.can_publish)){it.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}Fn[Qn].group_name=Vt,Fn[Qn].group_id=xn.group_id;const Ei=(0,ne.flattenDeep)(Fn.map(ji=>ji.group_name)),Ii=$n.map(ji=>{let Xn=(ji==null?void 0:ji.group_name)||[];return Nt(Ot({},ji),{group_name:(0,ne.remove)(Xn,Ai=>Ei.includes(Ai))})});bi(Ii),Ci(Fn.slice())},maxTagCount:4,maxTagPlaceholder:Vt=>Oe.createElement("div",{style:{cursor:"pointer"},onClick:()=>Le(xn,Qn)},"+",Vt==null?void 0:Vt.length)},Bt.group_settings&&Bt.group_settings.map(function(Vt){if(!Fn.map(Ei=>Ei.group_name).flat().includes(Vt.group_name))return Oe.createElement(Mt,{value:Vt.group_name,key:Vt.id},Vt.group_name)})),Oe.createElement("div",{className:"ml20"},Oe.createElement(_t,{size:"large",ranges:{\u6B64\u523B:[xn.publish_time?ut()(xn.publish_time):ut()(),ut()()]},allowClear:!1,disabled:qt||(ut()()<=ut()((Yi=qr((ti=xn==null?void 0:xn.group_id)==null?void 0:ti[0]))==null?void 0:Yi.publish_time)?!1:[!0,Fo((cr=xn==null?void 0:xn.group_id)==null?void 0:cr[0])]),style:{width:605},placeholder:["\u53D1\u5E03\u65F6\u95F4\uFF08\u5B66\u751F\u6536\u5230\u4F5C\u4E1A\u65F6\u95F4\uFF09","\u622A\u6B62\u65F6\u95F4\uFF08\u5B66\u751F\u201C\u6309\u65F6\u201D\u63D0\u4EA4\u4F5C\u54C1\u65F6\u95F4\u622A\u70B9\uFF09"],disabledDate:Vt=>He(Vt,Bt==null?void 0:Bt.course_end_date),disabledTime:Vt=>Rt(Vt),showTime:{showNow:!0,format:"HH:mm",defaultValue:[ut()((0,se.U6)(),"HH:mm"),ut()((0,se.U6)(),"HH:mm")]},format:"YYYY-MM-DD HH:mm",value:[xn.publish_time?ut()(xn.publish_time):void 0,xn.end_time?ut()(xn.end_time):void 0],onChange:(Vt,It)=>{var Ei;if((0,Ee.Rm)()&&!((Ei=gn.AssistantObject.practice)!=null&&Ei.can_publish)){it.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}Fn[Qn].publish_time=It[0],!xn.end_time&&It[0]?Fn[Qn].end_time=ut()(It[0]).add(7,"days"):Fn[Qn].end_time=It[1],Ci([...Fn])},onCalendarChange:(Vt,It,Ei)=>{if(It!=null&&It[0]&&!It[1]){const Ii=ut()(It[0]).add(7,"days");Fn[Qn].publish_time=It[0],Fn[Qn].end_time=Ii,Ci([...Fn])}}})),!qt&&Oe.createElement("div",{style:{display:"flex",width:"50px"}},((Sr=xn==null?void 0:xn.group_id)==null?void 0:Sr.length)>1&&Oe.createElement(nt.Z,{title:"\u89C4\u5219\u62C6\u5206"},Oe.createElement("i",{className:"iconfont icon-chaifen ml10",style:{cursor:"pointer",color:"#3061d0"},onClick:()=>Le(xn,Qn)})),Fn.length<((Jt=Bt==null?void 0:Bt.group_settings)==null?void 0:Jt.length)&&Oe.createElement("i",{className:"iconfont icon-zengjia1 ml10 mr10",style:{cursor:"pointer",color:"#00B187"},onClick:()=>{var Vt;if((0,Ee.Rm)()&&!((Vt=gn.AssistantObject.practice)!=null&&Vt.can_publish)){it.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}Ci(Fn.concat({}))}}),((xn==null?void 0:xn.publish_time)&&ut()()<ut()(xn==null?void 0:xn.publish_time)||!(xn!=null&&xn.publish_time))&&Qn!=0&&Oe.createElement("i",{className:"iconfont icon-shanjian1",style:{cursor:"pointer",color:"#E30000"},onClick:()=>{const Vt=(0,ne.cloneDeep)($n);Vt.forEach((It,Ei)=>{It.group_name&&(It.group_name=It.group_name.filter(Ii=>{var ji;return!((ji=Fn[Qn].group_name)!=null&&ji.includes(Ii))}))}),Fn=Fn.filter((It,Ei)=>Qn!==Ei),bi(Vt),Ci(Fn.slice()),setTimeout(()=>Ci(Fn.slice()),10)}}))))}))),Oe.createElement(Ue.Z,null,Oe.createElement(xt.Z,null,Oe.createElement("div",{className:de.Z.title,style:{marginTop:"30px"}},"\u8865\u4EA4\u8BBE\u7F6E",Oe.createElement("span",{className:"c-grey-666 font14",style:{fontWeight:400}},"\uFF08\u53EF\u5BF9\u5728\u4F5C\u4E1A\u53D1\u5E03\u65F6\u95F4\u8303\u56F4\u5185\u672A\u5B8C\u6210\u4F5C\u4E1A\u7684\u5B66\u751F\uFF0C\u5EF6\u957F\u65F6\u95F4\u8FDB\u884C\u8865\u4EA4\uFF09"))),Oe.createElement(xt.Z,{span:24,style:{background:"#F6F7F9",padding:"13px 30px",display:"flex",alignItems:"center"}},Oe.createElement(De.default,{checked:hi.allow_late,disabled:qt||lo,onChange:xn=>{var Qn;if((0,Ee.Rm)()&&!((Qn=gn.AssistantObject.practice)!=null&&Qn.can_late)){it.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}xn.target.checked&&at.default.warning({title:"\u5F00\u542F\u8865\u4EA4\u63D0\u793A",centered:!0,width:480,content:Oe.createElement("div",{style:{padding:10,background:"#f5f6f9"}},Oe.createElement("div",null,"1.\u5F00\u542F\u8865\u4EA4\u540E\u4E0D\u53EF\u5173\u95ED\uFF0C\u8865\u4EA4\u65B9\u5F0F\u63D0\u4EA4\u4FDD\u5B58\u540E\u4E0D\u53EF\u4FEE\u6539\uFF1B"),Oe.createElement("div",null,"2.\u8865\u4EA4\u622A\u6B62\u65F6\u95F4\u5FC5\u987B\u665A\u4E8E\u4F5C\u4E1A\u622A\u6B62\u65F6\u95F4\uFF1B"),Oe.createElement("div",null,"3.\u73ED\u7EA7\u9636\u6BB5\u8FDB\u5165\u201C\u8865\u4EA4\u4E2D\u201D\u5219\u4E0D\u53EF\u53D8\u66F4\u4F5C\u4E1A\u622A\u6B62\u65F6\u95F4\u3002"))}),hi.allow_late=!hi.allow_late,$n==""&&bi([{late_penalty:5}]),Di(Object.assign({},hi))}},Oe.createElement("strong",null,"\u5F00\u542F\u8865\u4EA4")))),(hi==null?void 0:hi.allow_late)&&Oe.createElement("div",{style:{background:"#F6F7F9",padding:"10px 30px",marginTop:"1px",color:"#666666"}},Oe.createElement("div",{style:{display:"flex"}},Oe.createElement("div",{style:{width:"110px",textAlign:"right"}},"\u8865\u4EA4\u65B9\u5F0F"),Oe.createElement(Ze.ZP.Group,{style:{marginLeft:"20px"},disabled:qt||(Bt==null?void 0:Bt.anonymous_comment)||(Bt==null?void 0:Bt.allow_late),value:hi.unified_late,onChange:xn=>{var Qn;if((0,Ee.Rm)()&&!((Qn=gn.AssistantObject.practice)!=null&&Qn.can_late)){it.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}hi.unified_late=xn.target.value,$n==""&&!xn.target.value&&bi([{penalty_type:ye.Q.Percent,late_penalty:20}]),Di(Ot({},hi))}},(hi==null?void 0:hi.unified_setting)&&Oe.createElement(Ze.ZP,{value:!0,disabled:!(Bt!=null&&Bt.manage_all_group),style:{marginRight:"50px"}},"\u7EDF\u4E00\u8865\u4EA4"),((tt=Bt==null?void 0:Bt.group_settings)==null?void 0:tt.length)>0&&Oe.createElement(Ze.ZP,{value:!1},"\u5206\u73ED\u8865\u4EA4"))),hi!=null&&hi.unified_late?Oe.createElement(Oe.Fragment,null,Oe.createElement(Ue.Z,{align:"middle",style:{marginTop:"10px"}},Oe.createElement(xt.Z,{style:{width:"110px",textAlign:"right"}},"\u8865\u4EA4\u6263\u5206"),Oe.createElement(xt.Z,{className:"ml20"},Oe.createElement(ye.Z,{disabled:qt||Ar,value:{type:hi.penalty_type,inputValue:hi.late_penalty},onChange:xn=>{var Qn;if((0,Ee.Rm)()&&!((Qn=gn.AssistantObject.practice)!=null&&Qn.can_late)){it.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}Di(Nt(Ot({},hi),{late_penalty:xn.inputValue,penalty_type:xn.type}))}})),Oe.createElement(xt.Z,{flex:"1",className:"ml5"},Oe.createElement("span",{className:"c-grey-c ml10"},hi.penalty_type===ye.Q.Number?"(\u8865\u4EA4\u65F6\u6309\u7167\u5B66\u751F\u603B\u6210\u7EE9\u6263\u5206)":"(\u5B66\u751F\u6700\u7EC8\u5F97\u5206=\u8865\u4EA4\u524D\u5F97\u5206+\u8865\u4EA4\u9636\u6BB5\u589E\u52A0\u7684\u5206\u503C*\uFF08100%-\u767E\u5206\u6BD4%\uFF09)"))),Oe.createElement(Ue.Z,{align:"middle",style:{marginTop:"15px"}},Oe.createElement(xt.Z,{style:{width:"110px",textAlign:"right"}},"\u8865\u4EA4\u622A\u6B62\u65F6\u95F4"),Oe.createElement(xt.Z,{className:"ml20"},Oe.createElement(Ye.default,{size:"large",allowClear:!1,style:{width:170},placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:ut()((0,se.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",disabled:qt||Ar,value:hi.late_time?ut()(hi.late_time):"",disabledDate:xn=>He(xn,Bt==null?void 0:Bt.course_end_date),onChange:(xn,Qn)=>{var gi;if((0,Ee.Rm)()&&!((gi=gn.AssistantObject.practice)!=null&&gi.can_late)){it.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}hi.late_time=Qn,Di(Object.assign({},hi))}})))):$n.map(function(xn,Qn){var gi;return Oe.createElement(xt.Z,{span:24,key:Qn},Oe.createElement(Ue.Z,{style:{display:"flex",alignItems:"center",marginTop:"10px"}},Oe.createElement("div",{style:{width:"85px",marginLeft:"27px",textAlign:"right"}},"\u8865\u4EA4\u89C4\u5219",Qn+1),Oe.createElement(dt.default,{disabled:qt||!((gi=bt==null?void 0:bt.homework_status)!=null&&gi.includes("\u672A\u53D1\u5E03"))&&xn.id||(Bt==null?void 0:Bt.anonymous_comment),mode:"multiple",className:de.Z.multiple_select,style:{width:"212px",marginLeft:"18px"},value:typeof xn.group_name=="string"?[xn.group_name]:xn.group_name,placeholder:"\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0",onChange:yi=>{var ti;if((0,Ee.Rm)()&&!((ti=gn.AssistantObject.practice)!=null&&ti.can_late)){it.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}$n[Qn].group_name=yi,$n[Qn].group_id=xn.group_id,bi($n.slice())}},Bt.group_settings&&Bt.group_settings.map(function(yi){const ti=$n.map(cr=>cr.group_name).flat(),Yi=Fn.map(cr=>cr.group_name).flat();if(hi!=null&&hi.unified_setting){if(!ti.includes(yi.group_name))return Oe.createElement(Mt,{value:yi.group_name,key:yi.id},yi.group_name)}else if(Yi.includes(yi.group_name)&&!ti.includes(yi.group_name))return Oe.createElement(Mt,{value:yi.group_name,key:yi.id},yi.group_name)})),Oe.createElement("div",{className:"ml20 mr10"},"\u8865\u4EA4\u6263\u5206"),Oe.createElement(ye.Z,{disabled:qt||ro(xn.id),value:{type:xn.penalty_type,inputValue:xn.late_penalty},onChange:yi=>{var ti;if((0,Ee.Rm)()&&!((ti=gn.AssistantObject.practice)!=null&&ti.can_late)){it.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}$n[Qn].late_penalty=yi.inputValue,$n[Qn].penalty_type=yi.type,bi([...$n])}}),Oe.createElement("div",{className:"ml20 mr10"},"\u8865\u4EA4\u622A\u6B62\u65F6\u95F4"),Oe.createElement(Ye.default,{size:"large",disabled:qt||ro(xn.id),style:{width:225},showTime:{format:"HH:mm",defaultValue:ut()((0,se.U6)(),"HH:mm")},placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",disabledDate:yi=>He(yi,Bt==null?void 0:Bt.course_end_date),format:"YYYY-MM-DD HH:mm",value:xn!=null&&xn.late_time?ut()(xn.late_time):void 0,onChange:(yi,ti)=>{var Yi;if((0,Ee.Rm)()&&!((Yi=gn.AssistantObject.practice)!=null&&Yi.can_late)){it.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}$n[Qn].late_time=ti,bi([...$n])}}),!qt&&Oe.createElement("div",{style:{display:"flex",width:"50px"}},Oe.createElement("i",{className:"iconfont icon-zengjia1 ml10 mr10",style:{cursor:"pointer",color:"#00B187"},onClick:()=>{var yi;if((0,Ee.Rm)()&&!((yi=gn.AssistantObject.practice)!=null&&yi.can_late)){it.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}bi($n.concat({penalty_type:ye.Q.Percent,late_penalty:20}))}}),Qn>0&&!xn.id&&Oe.createElement("i",{className:"iconfont icon-shanjian1",style:{cursor:"pointer",color:"#E30000"},onClick:()=>{var yi;if((0,Ee.Rm)()&&!((yi=gn.AssistantObject.practice)!=null&&yi.can_late)){it.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}$n=$n.filter((ti,Yi)=>Qn!==Yi),bi($n.slice()),setTimeout(()=>bi($n.slice()),10)}}))))})),!qt&&Oe.createElement(Oe.Fragment,null,Oe.createElement(wt.ZP,{type:"primary",size:"large",loading:ei,style:{width:"138px",marginTop:"30px"},onClick:()=>so()},"\u4FDD\u5B58")),Oe.createElement(ze.Z,{onConfirm:(xn,Qn)=>{Fn.splice(xn,0,...Qn),Fn.splice(xn+Qn.length,1);const gi=(0,se.QE)([...Fn]);Ci([...gi])}}),Oe.createElement(Te.Z,{resdata:Gi,type:"shixun",okloading:ei,oktext:(Gi==null?void 0:Gi.can_copy_num)===0?"\u786E\u5B9A":"\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362",onok:xn=>tn(void 0,null,function*(){wn(!0);let Qn=yield(0,te.ZP)(`/api/courses/${Xt.coursesId}/batch_copy_shixuns.json`,{method:"post",body:{type:"homework_common",ids:[parseInt(Xt.categoryId)]}});wn(!1),(Qn==null?void 0:Qn.status)===0&&Kr(Zr)})}))};on.ZP=(0,pe.connect)(({shixunHomeworks:an,classroomList:Dn,loading:Dt,user:gn})=>({shixunHomeworks:an,classroomList:Dn,loading:Dt.effects,user:gn}))(jt)},93603:function(fn,on,we){"use strict";var ve=we(59301),Ye=we(14566),dt=we(28284),it=we(62957),at=we(6767),Ze=we(54172),Ue=we(25690),xt=we(346),nt=we(19493),De=we(38986),wt=we(61186),Ve=we.n(wt),ut=we(51257),Ee=we(59301),te=Object.defineProperty,ne=Object.getOwnPropertySymbols,ue=Object.prototype.hasOwnProperty,se=Object.prototype.propertyIsEnumerable,de=(Te,Ie,Oe)=>Ie in Te?te(Te,Ie,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):Te[Ie]=Oe,pe=(Te,Ie)=>{for(var Oe in Ie||(Ie={}))ue.call(Ie,Oe)&&de(Te,Oe,Ie[Oe]);if(ne)for(var Oe of ne(Ie))se.call(Ie,Oe)&&de(Te,Oe,Ie[Oe]);return Te},ye=(Te,Ie,Oe)=>new Promise((Re,rt)=>{var ot=kt=>{try{gt(Oe.next(kt))}catch(Lt){rt(Lt)}},Ct=kt=>{try{gt(Oe.throw(kt))}catch(Lt){rt(Lt)}},gt=kt=>kt.done?Re(kt.value):Promise.resolve(kt.value).then(ot,Ct);gt((Oe=Oe.apply(Te,Ie)).next())});const{Dragger:Ce}=Ye.default,ze=({classroomList:Te,dispatch:Ie,onOk:Oe})=>{const Re=(0,Ue.useParams)(),[rt]=dt.default.useForm(),[ot,Ct]=(0,ve.useState)(),[gt,kt]=(0,ve.useState)(!1),Lt={height:100,onRemove:()=>{Ct("")},accept:".xls,.xlsx",multiple:!1,maxCount:1,beforeUpload:Ot=>ye(void 0,null,function*(){return Ct(Ot),!1})};return(0,ve.useEffect)(()=>{rt.setFieldsValue({publish_time:Ve()(Ve()(new Date).add(0,"days").format("YYYY-MM-DD HH:mm")),end_time:Ve()(Ve()(new Date((0,ut.qd)("/"))).add(7,"days").format("YYYY-MM-DD HH:mm"))})},[]),Ee.createElement(it.default,{centered:!0,title:"\u8865\u5145\u6210\u7EE9",open:Te.actionTabs.key==="\u8865\u5145\u6210\u7EE9",okText:"\u786E\u5B9A",width:750,destroyOnClose:!0,cancelText:"\u53D6\u6D88",okButtonProps:{loading:gt},onOk:()=>ye(void 0,null,function*(){rt.submit()}),onCancel:()=>{rt.resetFields(),Ie({type:"classroomList/setActionTabs",payload:{}})}},Ee.createElement(dt.default,{form:rt,onFinish:Ot=>ye(void 0,null,function*(){var Nt,tn,st;if(!(ot!=null&&ot.size)){at.ZP.info("\u8BF7\u4E0A\u4F20\u6587\u4EF6");return}kt(!0);let He=new FormData;He.append("type",Te.actionTabs.type),He.append("file",ot);let Rt;window.location.href.indexOf("exercise")>-1?Rt=`/api/exercises/${Te.actionTabs.id}/supplement_score.json`:Rt=`/api/homework_commons/${Te.actionTabs.id}/supplement_score.json`;let Zt=yield(0,De.ZP)(Rt,{method:"post",body:He},!0);kt(!1),(Zt==null?void 0:Zt.status)===0&&(Oe(),rt.resetFields(),Ie({type:"classroomList/setActionTabs",payload:{}}),((tn=(Nt=Zt==null?void 0:Zt.data)==null?void 0:Nt.fail)==null?void 0:tn.length)>0&&it.default.confirm({title:"\u5BFC\u5165\u5931\u8D25",closable:!0,icon:null,width:610,content:Ee.createElement(Ze.default,{pagination:!1,dataSource:(st=Zt==null?void 0:Zt.data)==null?void 0:st.fail,scroll:{y:400},columns:[{title:"\u59D3\u540D",align:"left",dataIndex:"name"},{title:"\u5B66\u53F7/\u624B\u673A\u53F7/\u90AE\u7BB1",align:"left",dataIndex:"student_id"},{title:"\u5BFC\u5165\u5931\u8D25\u539F\u56E0",align:"left",dataIndex:"message"}]}),okText:"\u4E0B\u8F7D\u5BFC\u5165\u5931\u8D25\u6587\u4EF6",cancelText:"\u53D6\u6D88",onOk:()=>{(0,ut.FH)("",xt.Z.API_SERVER+`/api/courses/get_external_score_fail_data.xlsx?type=${Te.actionTabs.type}`)}}))})},Ee.createElement(dt.default.Item,{label:"\u4F5C\u4E1A\u540D\u79F0",labelCol:{span:3},name:"name"},Te.actionTabs.name),Ee.createElement(dt.default.Item,{style:{marginBottom:0},label:Ee.createElement("div",null,Ee.createElement("span",{style:{color:"#ff4d4f",marginRight:5,fontFamily:"SimSun,sans-serif"}},"*"),Ee.createElement("span",null,"\u5BFC\u5165\u6587\u4EF6")),labelCol:{span:3},rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4F5C\u4E1A\u540D\u79F0"}]},Ee.createElement("div",null,Ee.createElement("a",{download:"\u6A21\u7248.xlsx",className:nt.Z.downloadbutton,href:xt.Z.API_SERVER+`/api/courses/down_external_score_template.json?type=${Te.actionTabs.type}`},"\u4E0B\u8F7D\u6A21\u7248\u8868\u683C"),Ee.createElement("span",{style:{marginLeft:10,color:"#999999"}},"\uFF08\u6839\u636E\u63D0\u793A\u4FE1\u606F\u5B8C\u5584\u8868\u683C\u5185\u5BB9\uFF09")),Ee.createElement(dt.default.Item,{style:{marginBottom:0}},Ee.createElement(Ce,pe({},Lt),Ee.createElement("a",{className:nt.Z.downloadbutton,style:{width:96}},"\u9009\u62E9\u6587\u4EF6"),Ee.createElement("br",null),Ee.createElement("span",{style:{color:"#999999"}},"\u4E0B\u8F7D\u6A21\u677F\u5E76\u5B8C\u5584\u4FE1\u606F\u540E\uFF0C\u53EF\u5C06\u6587\u4EF6\u62D6\u66F3\u81F3\u6B64\u5904\u4E0A\u4F20\u3002\u652F\u6301\u683C\u5F0F\uFF1A.xls\u3001.xlsx"))))))};on.Z=(0,Ue.connect)(({classroomList:Te})=>({classroomList:Te}))(ze)},98895:function(fn,on,we){"use strict";var ve=we(59301),Ye=we(14566),dt=we(28284),it=we(62957),at=we(6767),Ze=we(54172),Ue=we(37568),xt=we(77019),nt=we(5269),De=we(71051),wt=we(16326),Ve=we(25690),ut=we(39793),Ee=we(346),te=we(19493),ne=we(38986),ue=we(48716),se=we(61186),de=we.n(se),pe=we(51257),ye=we(59301),Ce=Object.defineProperty,ze=Object.getOwnPropertySymbols,Te=Object.prototype.hasOwnProperty,Ie=Object.prototype.propertyIsEnumerable,Oe=(gt,kt,Lt)=>kt in gt?Ce(gt,kt,{enumerable:!0,configurable:!0,writable:!0,value:Lt}):gt[kt]=Lt,Re=(gt,kt)=>{for(var Lt in kt||(kt={}))Te.call(kt,Lt)&&Oe(gt,Lt,kt[Lt]);if(ze)for(var Lt of ze(kt))Ie.call(kt,Lt)&&Oe(gt,Lt,kt[Lt]);return gt},rt=(gt,kt,Lt)=>new Promise((Ot,Nt)=>{var tn=Rt=>{try{He(Lt.next(Rt))}catch(Zt){Nt(Zt)}},st=Rt=>{try{He(Lt.throw(Rt))}catch(Zt){Nt(Zt)}},He=Rt=>Rt.done?Ot(Rt.value):Promise.resolve(Rt.value).then(tn,st);He((Lt=Lt.apply(gt,kt)).next())});const{Dragger:ot}=Ye.default,Ct=({classroomList:gt,dispatch:kt,onOk:Lt})=>{const Ot=(0,Ve.useParams)(),[Nt]=dt.default.useForm(),[tn,st]=(0,ve.useState)(),[He,Rt]=(0,ve.useState)(!1),Zt={height:100,onRemove:()=>{st("")},accept:".xls,.xlsx",maxCount:1,multiple:!1,beforeUpload:_t=>rt(void 0,null,function*(){return st(_t),!1})};return(0,ve.useEffect)(()=>{Nt.setFieldsValue({publish_time:de()(de()(new Date).add(0,"days").format("YYYY-MM-DD HH:mm")),end_time:de()(de()(new Date((0,pe.qd)("/"))).add(7,"days").format("YYYY-MM-DD HH:mm"))})},[gt.actionTabs.key==="\u5BFC\u5165\u5916\u90E8\u6210\u7EE9"]),ye.createElement(it.default,{centered:!0,title:"\u5BFC\u5165\u5916\u90E8\u6210\u7EE9",open:gt.actionTabs.key==="\u5BFC\u5165\u5916\u90E8\u6210\u7EE9",okText:"\u786E\u5B9A",width:750,destroyOnClose:!0,cancelText:"\u53D6\u6D88",okButtonProps:{loading:He},onOk:()=>rt(void 0,null,function*(){Nt.submit()}),onCancel:()=>{Nt.resetFields(),kt({type:"classroomList/setActionTabs",payload:{}})}},ye.createElement(dt.default,{form:Nt,colon:!1,onFinish:_t=>rt(void 0,null,function*(){var Mt,jt,an;if(!(tn!=null&&tn.size)){at.ZP.info("\u8BF7\u4E0A\u4F20\u6587\u4EF6");return}Rt(!0);let Dn=new FormData;Dn.append("name",_t.name),Dn.append("type",gt.actionTabs.type),Dn.append("category_id",(Ot==null?void 0:Ot.categoryId)||null),gt.actionTabs.type==="exercise"?(Dn.append("time",_t.time||""),Dn.append("total_score",_t.total_score)):Dn.append("description",_t.description||""),Dn.append("publish_time",de()(_t.publish_time).format("YYYY-MM-DD HH:mm")),Dn.append("end_time",de()(_t.end_time).format("YYYY-MM-DD HH:mm")),Dn.append("file",tn);let Dt=yield(0,ne.ZP)(`/api/courses/${Ot.coursesId}/export_external_score_homework.json`,{method:"post",body:Dn},!0);Rt(!1),(Dt==null?void 0:Dt.status)===0&&(Nt.resetFields(),kt({type:"classroomList/setActionTabs",payload:{}}),Lt(),((jt=(Mt=Dt==null?void 0:Dt.data)==null?void 0:Mt.fail)==null?void 0:jt.length)>0&&it.default.confirm({title:"\u5BFC\u5165\u5931\u8D25",closable:!0,icon:null,width:610,content:ye.createElement(Ze.default,{pagination:!1,dataSource:(an=Dt==null?void 0:Dt.data)==null?void 0:an.fail,scroll:{y:400},columns:[{title:"\u59D3\u540D",align:"left",dataIndex:"name"},{title:"\u5B66\u53F7/\u624B\u673A\u53F7/\u90AE\u7BB1",align:"left",dataIndex:"student_id"},{title:"\u5BFC\u5165\u5931\u8D25\u539F\u56E0",align:"left",dataIndex:"message"}]}),okText:"\u4E0B\u8F7D\u5BFC\u5165\u5931\u8D25\u6587\u4EF6",cancelText:"\u53D6\u6D88",onOk:()=>{(0,pe.FH)("",Ee.Z.API_SERVER+`/api/courses/get_external_score_fail_data.xlsx?type=${gt.actionTabs.type}`)}}))})},ye.createElement(dt.default.Item,{label:gt.actionTabs.type!=="exercise"?"\u4F5C\u4E1A":"\u8BD5\u5377\u540D\u79F0",labelCol:{span:3},name:"name",rules:[{required:!0,message:`\u8BF7\u8F93\u5165${gt.actionTabs.type!=="exercise"?"\u4F5C\u4E1A":"\u8BD5\u5377"}\u540D\u79F0`}]},ye.createElement(Ue.default,{showCount:!0,placeholder:`\u8BF7\u8F93\u5165${gt.actionTabs.type!=="exercise"?"\u4F5C\u4E1A":"\u8BD5\u5377"}\u540D\u79F0`,maxLength:60})),gt.actionTabs.type!=="exercise"&&ye.createElement(dt.default.Item,{label:"\u4F5C\u4E1A\u63CF\u8FF0",labelCol:{span:3},name:"description"},ye.createElement(ut.Z,{watch:!0})),gt.actionTabs.type==="exercise"&&ye.createElement(xt.Z,{style:{marginLeft:6}},ye.createElement(nt.Z,{span:12},ye.createElement(dt.default.Item,{label:"\u8BD5\u5377\u603B\u5206",name:"total_score",rules:[{required:!0,message:"\u8BF7\u586B\u5199\u8BD5\u5377\u603B\u5206"},{pattern:/^(?:[1-9]\d*(?:\.\d+)?|0\.\d*[1-9]\d*)$/,message:"\u8BD5\u5377\u603B\u5206\u5FC5\u987B\u4E3A\u6B63\u6570"}]},ye.createElement(Ue.default,{placeholder:"\u8BF7\u8F93\u5165\u8BD5\u5377\u603B\u5206",style:{width:256},addonAfter:"\u5206"}))),ye.createElement(nt.Z,{span:12},ye.createElement(dt.default.Item,{label:"\u7B54\u9898\u65F6\u957F",labelCol:{span:6},name:"time"},ye.createElement(De.Z,{style:{width:"100%"},addonAfter:"\u5206\u949F",placeholder:"\u8BF7\u8F93\u5165\u7B54\u9898\u65F6\u957F"})))),ye.createElement(xt.Z,{style:{marginLeft:6,marginBottom:12}},ye.createElement(nt.Z,{span:12},ye.createElement(dt.default.Item,{label:"\u5F00\u59CB\u65F6\u95F4",name:"publish_time",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5F00\u59CB\u65F6\u95F4"}]},ye.createElement(wt.default,{placeholder:"\u8BF7\u9009\u62E9\u53D1\u5E03\u65F6\u95F4",showTime:{format:"HH:mm"},style:{width:256},disabledDate:_t=>(0,ue.Q8)(_t),disabledTime:_t=>(0,ue.d0)(_t),allowClear:!1,format:"YYYY-MM-DD HH:mm"}))),ye.createElement(nt.Z,{span:12},ye.createElement(dt.default.Item,{label:"\u7ED3\u675F\u65F6\u95F4",labelCol:{span:6},name:"end_time",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u7ED3\u675F\u65F6\u95F4"}]},ye.createElement(wt.default,{placeholder:"\u8BF7\u9009\u62E9\u53D1\u5E03\u65F6\u95F4",showTime:{format:"HH:mm"},style:{width:"100%"},disabledDate:_t=>(0,ue.Q8)(_t,"",Nt.getFieldValue("publish_time")),disabledTime:_t=>(0,ue.d0)(_t,Nt.getFieldValue("publish_time")),allowClear:!1,format:"YYYY-MM-DD HH:mm"})))),ye.createElement(dt.default.Item,{style:{marginBottom:0},label:ye.createElement("div",null,ye.createElement("span",{style:{color:"#ff4d4f",marginRight:5,fontFamily:"SimSun,sans-serif"}},"*"),ye.createElement("span",null,"\u5BFC\u5165\u6587\u4EF6")),labelCol:{span:3},rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4F5C\u4E1A\u540D\u79F0"}]},ye.createElement("div",null,ye.createElement("a",{download:"\u6A21\u7248.xlsx",className:te.Z.downloadbutton,href:Ee.Z.API_SERVER+`/api/courses/down_external_score_template.json?type=${gt.actionTabs.type}`},"\u4E0B\u8F7D\u6A21\u7248\u8868\u683C"),ye.createElement("span",{style:{marginLeft:10,color:"#999999"}},"\uFF08\u6839\u636E\u63D0\u793A\u4FE1\u606F\u5B8C\u5584\u8868\u683C\u5185\u5BB9\uFF09")),ye.createElement(dt.default.Item,{style:{marginBottom:0}},ye.createElement(ot,Re({},Zt),ye.createElement("a",{className:te.Z.downloadbutton,style:{width:96}},"\u9009\u62E9\u6587\u4EF6"),ye.createElement("br",null),ye.createElement("span",{style:{color:"#999999"}},"\u4E0B\u8F7D\u6A21\u677F\u5E76\u5B8C\u5584\u4FE1\u606F\u540E\uFF0C\u53EF\u5C06\u6587\u4EF6\u62D6\u66F3\u81F3\u6B64\u5904\u4E0A\u4F20\u3002\u652F\u6301\u683C\u5F0F\uFF1A.xls\u3001.xlsx"))))))};on.Z=(0,Ve.connect)(({classroomList:gt})=>({classroomList:gt}))(Ct)},19541:function(fn,on,we){"use strict";we.d(on,{Z:function(){return wt}});var ve=we(59301),Ye=we(93041),dt=we(37568),it=we(62673),at=we(99571),Ze=we(75727),Ue={bottomControlContainer:"bottomControlContainer___woAeo",buttonWrap:"buttonWrap___iRw4K",moveCategory:"moveCategory___oiQqw"},xt=we(48790),nt=we(84105),wt=({buttonDataSource:Ve,onButtonClick:ut,useBatchStatus:Ee,allSelect:te,setAllSelect:ne,selectArrs:ue,onMenuClick:se,setSeleArr:de,catalogue:pe,addCatalogue:ye})=>{const[Ce,ze]=(0,ve.useState)(!1),[Te,Ie]=(0,ve.useState)("");console.log("---",pe);const Oe=ve.createElement("div",{className:Ue.moveCategory,onMouseLeave:Re=>ze(!1)},ve.createElement(Ye.default,{onClick:se,style:{maxHeight:300,width:240,overflow:"auto"}},ve.createElement("li",{className:"ant-menu-item multi-llipsis1e ant-menu-item-only-child"},ve.createElement(dt.default,{onChange:Re=>{Ie(Re.target.value)}})),pe==null?void 0:pe.map(function(Re,rt){var ot;if(!(Te!==""&&Re.category_name.indexOf(Te)<0))return ve.createElement(ve.Fragment,null,ve.createElement(Ye.default.Item,{className:"multi-llipsis1e",key:Re.category_id,title:Re.category_name},Re.category_name),(ot=Re==null?void 0:Re.third_category)==null?void 0:ot.map(Ct=>ve.createElement(Ye.default.Item,{style:{marginLeft:20},className:"multi-llipsis1e",key:Ct.category_id,title:Ct.category_name},Ct.category_name)))}),ye&&ve.createElement("li",{className:"ant-menu-item multi-llipsis1e ant-menu-item-only-child",onClick:ye},"\u65B0\u5EFA\u5B50\u76EE\u5F55...")));return ve.createElement("div",{className:Ue.bottomControlContainer},ve.createElement("div",null,ve.createElement("div",null,ve.createElement(it.default,{checked:te,onChange:ne},"\u5168\u9009\u672C\u9875\uFF08",ue.length,"\uFF09")),(0,xt.GJ)()&&Ve.map(Re=>ve.createElement("div",{key:Re.name},ve.createElement(at.ZP,{type:"primary",icon:Re.icon,className:Ue.buttonWrap,onClick:()=>ut(Re)},Re.name))),(0,xt.GJ)()&&(ye||pe)&&ve.createElement("div",null,ve.createElement(Ze.Z,{open:Ce,placement:"topLeft",autoAdjustOverflow:!1,dropdownRender:()=>Oe,getPopupContainer:Re=>Re.parentNode},ve.createElement("span",{className:"ant-dropdown-link",onMouseEnter:Re=>ze(!0)},ve.createElement(at.ZP,{type:"primary",className:Ue.buttonWrap,icon:ve.createElement("i",{className:"iconfont icon-yidongmulu"})},ve.createElement("span",null,"\u79FB\u52A8\u5230\u76EE\u5F55 ",ve.createElement(nt.Z,null))))))),ve.createElement("div",null,ve.createElement(at.ZP,{type:"primary",ghost:!0,onClick:()=>{Ee(!1),de([])}},"\u53D6\u6D88\u64CD\u4F5C")))}},59229:function(fn,on,we){"use strict";we.d(on,{Z:function(){return ue}});var ve=we(59301),Ye=we(25690),dt=we(16326),it=we(62957),at=we(37568),Ze=we(6767),Ue=we(77019),xt=we(5269),nt={title_tooltip:"title_tooltip___LLdrn",multiple_select:"multiple_select___kDXUm",modal_con:"modal_con___ERnkW"},De=we(61186),wt=we.n(De),Ve=we(51257),ut=we(28426),Ee=we(59301);const{RangePicker:te}=dt.default,ne=({dispatch:se,classroomList:de,onConfirm:pe})=>{const[ye,Ce]=(0,ve.useState)([]),[ze,Te]=(0,ve.useState)([]),[Ie,Oe]=(0,ve.useState)(""),[Re,rt]=(0,ve.useState)([!1,!1]);(0,ve.useEffect)(()=>{var gt,kt,Lt,Ot;if(de.actionTabs.key==="\u5206\u73ED\u53D1\u5E03-\u53D1\u5E03\u89C4\u5219\u62C6\u5206"){console.log((gt=de.actionTabs)==null?void 0:gt.rangePickerDisabled),(kt=de.actionTabs)!=null&&kt.rangePickerDisabled?rt((Lt=de.actionTabs)==null?void 0:Lt.rangePickerDisabled):rt([!1,!1]);let Nt=de.actionTabs.data,tn=(Ot=Nt==null?void 0:Nt.group_name)==null?void 0:Ot.map((st,He)=>{var Rt;return{group_id:Nt==null?void 0:Nt.group_id[He],group_name:Nt==null?void 0:Nt.group_name[He],is_admin:Nt==null?void 0:Nt.is_admin,end_time:Nt==null?void 0:Nt.end_time,publish_time:Array.isArray(Nt==null?void 0:Nt.publish_time)?(Rt=Nt==null?void 0:Nt.publish_time)==null?void 0:Rt[0]:Nt==null?void 0:Nt.publish_time}});tn&&(Ce([...tn]),Te([...tn]))}},[de.actionTabs]);const ot=()=>{se({type:"classroomList/setActionTabs",payload:{}}),Oe("")},Ct=gt=>{if(gt){const kt=ze==null?void 0:ze.filter(Lt=>{var Ot,Nt;return(Nt=(Ot=Lt==null?void 0:Lt.group_name)==null?void 0:Ot.toLowerCase())==null?void 0:Nt.includes(gt==null?void 0:gt.toLowerCase())});Ce(kt)}else Ce(ze)};return Ee.createElement(it.default,{width:980,title:Ee.createElement("div",{style:{fontWeight:"bold",display:"flex"}},Ee.createElement("div",null,"\u5206\u73ED\u53D1\u5E03-\u53D1\u5E03\u89C4\u5219\u62C6\u5206",Ee.createElement("span",{className:nt.title_tooltip},"\uFF08\u5F53\u5206\u73ED\u53D1\u5E03\u65F6\u95F4\u548C\u622A\u6B62\u65F6\u95F4\u4E0D\u76F8\u540C\u65F6\u5019\uFF0C\u73ED\u7EA7\u81EA\u52A8\u62C6\u5206\u51FA\u53BB\u65B0\u8D77\u89C4\u5219\uFF09")),Ee.createElement(at.default.Search,{allowClear:!0,placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u5B57\u8FDB\u884C\u641C\u7D22",style:{width:220,marginLeft:"60px"},value:Ie,onChange:gt=>{Oe(gt.target.value.trim()),Ct(gt.target.value.trim())}})),centered:!0,maskClosable:!1,open:de.actionTabs.key==="\u5206\u73ED\u53D1\u5E03-\u53D1\u5E03\u89C4\u5219\u62C6\u5206",onCancel:()=>ot(),onOk:()=>{var gt;if(ze.some(Lt=>!Lt.end_time||!Lt.publish_time)){Ze.ZP.warning("\u8BF7\u5C06\u5217\u8868\u6570\u636E\u4E2D\u7684\u53D1\u5E03\u65F6\u95F4\u548C\u622A\u6B62\u65F6\u95F4\u8865\u5145\u5B8C\u6574\uFF01");return}pe((gt=de.actionTabs)==null?void 0:gt.index,ze),ot()}},Ee.createElement("div",{className:nt.modal_con},Ee.createElement(Ue.Z,{style:{display:"flex",color:"#666666",padding:"5px",marginTop:"1px"}},(ye==null?void 0:ye.length)>0?ye.map(function(gt,kt){return Ee.createElement(xt.Z,{span:24,key:kt},Ee.createElement(Ue.Z,{gutter:[8,16],style:{display:"flex",alignItems:"center",marginBottom:kt==(ye==null?void 0:ye.length)-1?"0px":"10px"}},Ee.createElement("div",{className:nt.multiple_select,title:gt==null?void 0:gt.group_name},gt==null?void 0:gt.group_name),Ee.createElement("div",{className:"ml20"},Ee.createElement(te,{size:"large",allowClear:!1,disabled:Re,style:{width:600},placeholder:["\u53D1\u5E03\u65F6\u95F4\uFF08\u5B66\u751F\u6536\u5230\u4F5C\u4E1A\u65F6\u95F4\uFF09","\u622A\u6B62\u65F6\u95F4\uFF08\u5B66\u751F\u201C\u6309\u65F6\u201D\u63D0\u4EA4\u4F5C\u54C1\u65F6\u95F4\u622A\u70B9\uFF09"],disabledDate:Lt=>{var Ot;return(0,Ve.Q8)(Lt,(Ot=de.actionTabs)==null?void 0:Ot.disabledDate)},disabledTime:Lt=>(0,Ve.d0)(Lt),showTime:{showNow:!0,format:"HH:mm",defaultValue:[wt()((0,Ve.U6)(),"HH:mm"),wt()((0,Ve.U6)(),"HH:mm")]},format:"YYYY-MM-DD HH:mm",value:(gt==null?void 0:gt.publish_time)&&[wt()(gt==null?void 0:gt.publish_time),gt!=null&&gt.end_time?wt()(gt==null?void 0:gt.end_time):void 0],onChange:(Lt,Ot)=>{ye[kt].publish_time=Ot[0],ye[kt].end_time=Ot[1],Ce([...ye]),ze.forEach(Nt=>{Nt.group_id===(gt==null?void 0:gt.group_id)&&(Nt.publish_time=Ot[0],Nt.end_time=Ot[1])}),Te([...ze])},onCalendarChange:(Lt,Ot,Nt)=>{if(Ot!=null&&Ot[0]&&!Ot[1]){const tn=wt()(Ot[0]).add(7,"days");ye[kt].publish_time=Ot[0],ye[kt].end_time=tn,Ce([...ye]),ze.forEach(st=>{st.group_id===(gt==null?void 0:gt.group_id)&&(st.publish_time=Ot[0],st.end_time=tn)}),Te([...ze])}}})),Re[0]?Ee.createElement("i",{className:"iconfont icon-shanjian1 ml15",style:{color:"#E30000",opacity:"0.2",cursor:"not-allowed"}}):Ee.createElement("i",{className:"iconfont icon-shanjian1 ml15",style:{cursor:"pointer",color:"#E30000"},onClick:()=>{ye.splice(kt,1),Ce([...ye]),ze.forEach((Lt,Ot)=>{Lt.group_id===(gt==null?void 0:gt.group_id)&&ze.splice(Ot,1)}),Te([...ze])}})))}):Ee.createElement(ut.Z,null))))};var ue=(0,Ye.connect)(({classroomList:se})=>({classroomList:se}))(ne)},11492:function(fn,on,we){"use strict";we.d(on,{Z:function(){return se}});var ve=we(59301),Ye=we(93041),dt=we(62673),it=we(99571),at=we(75727),Ze=we(25399),Ue=we(82326),xt=we(37568),nt={searchSortControllerContainer:"searchSortControllerContainer___Xca1m",btn:"btn___sNJPX",btnSort:"btnSort___Fx9OM",tips:"tips___LrmpR"},De=we(48790),wt=we(87395),Ve=we(84105),ut=we(26724),Ee=we.n(ut),te=we(25690),ne=(de,pe,ye)=>new Promise((Ce,ze)=>{var Te=Re=>{try{Oe(ye.next(Re))}catch(rt){ze(rt)}},Ie=Re=>{try{Oe(ye.throw(Re))}catch(rt){ze(rt)}},Oe=Re=>Re.done?Ce(Re.value):Promise.resolve(Re.value).then(Te,Ie);Oe((ye=ye.apply(de,pe)).next())}),se=({isAdmin:de,dataSource:pe,batchStatus:ye,SortMenuName:Ce,setSortMenuName:ze,detailCourseGroupsList:Te,onSearch:Ie,onBoard:Oe,onSort:Re,isboard:rt,dispatch:ot,onBatch:Ct,SortMenus:gt,isShowMode:kt=!1,onModeChange:Lt})=>{const[Ot,Nt]=(0,ve.useState)(!1),[tn,st]=(0,ve.useState)([]),[He,Rt]=(0,ve.useState)(!0);let[Zt,_t]=(0,ve.useState)([]);const[Mt,jt]=(0,ve.useState)(1),[an,Dn]=(0,ve.useState)(!1),Dt=(0,te.useParams)(),gn=We=>{ze(We.name),Re(We)};(0,ve.useEffect)(()=>{rt&&yt()},[rt]);const yt=()=>ne(void 0,null,function*(){var We;if(He&&!an){Dn(!0),jt(Mt+1);const Fe=yield ot({type:"classroomList/getCourseGroupsList",payload:{page:Mt,id:Dt.coursesId,limit:20,nonenavigate:!0}});let xe=[...(Fe==null?void 0:Fe.course_groups)||[]];((We=Fe==null?void 0:Fe.course_groups)==null?void 0:We.length)<20&&(Rt(!1),xe.push({id:0,name:"\u672A\u5206\u73ED"})),Dn(!1),_t([...Zt,...xe])}}),Zn=ve.createElement("section",{className:nt.dropmenu},ve.createElement("div",{style:{maxHeight:200,overflow:"auto"}},ve.createElement(Ee(),{initialLoad:!1,pageStart:1,threshold:20,loadMore:We=>{yt()},hasMore:He,useWindow:!1},ve.createElement(Ye.default,{style:{width:240,zIndex:10}},(Te==null?void 0:Te.group_count)>0&&(Zt==null?void 0:Zt.filter(We=>We.edit_auth||We.name==="\u672A\u5206\u73ED").map(function(We,Fe){return ve.createElement(Ye.default.Item,{key:We.id},ve.createElement(dt.default,{checked:tn.includes(We.id),value:We.id,onChange:xe=>{let Ne=tn.indexOf(We.id);tn.indexOf(We.id)>-1?st(tn.filter(_e=>_e!==We.id)):st(tn.concat(We.id))}},We.name))}))))),ve.createElement("aside",{style:{background:"#fff"}},ve.createElement("div",null,ve.createElement(it.ZP,{type:"link",onClick:()=>{Oe(tn)}},"\u786E\u5B9A"),ve.createElement(it.ZP,{type:"link",onClick:()=>{st([])}},"\u91CD\u7F6E")))),vi=Ce==="\u9ED8\u8BA4\u6392\u5E8F";return ve.createElement("div",{className:nt.searchSortControllerContainer},!!(gt!=null&&gt.length)&&ve.createElement("div",null,ve.createElement(at.Z,{dropdownRender:()=>ve.createElement(Ye.default,{selectedKeys:[Ce]},gt.map(We=>ve.createElement(Ye.default.Item,{key:We.name,onClick:()=>gn(We)},We.name)))},ve.createElement("div",null,ve.createElement("span",{className:`${nt.btn} ${vi?nt.btnSort:""}`},ve.createElement("i",{className:"iconfont icon-paixu font14 mr5"}),Ce)))),vi&&ve.createElement(Ze.Z,{title:"\u4F18\u5148\u6309\u7167\u8C03\u6574\u6392\u5E8F\u7ED3\u679C\u5C55\u793A\uFF0C\u672A\u8BBE\u7F6E\u6392\u5E8F\u65F6\uFF0C\u6309\u7167\u521B\u5EFA\u65F6\u95F4\u964D\u5E8F\u6392\u5217"},ve.createElement("span",{className:nt.tips},ve.createElement("i",{className:"iconfont icon-a-wenhaobeifen2"}))),kt&&ve.createElement(Ue.default,{defaultValue:"",onChange:Lt,style:{width:160,marginLeft:"auto",marginRight:"20px"},options:[{value:"",label:"\u5168\u90E8\u8003\u8BD5\u6A21\u5F0F"},{value:!0,label:"\u6B63\u5F0F\u8003\u8BD5"},{value:!1,label:"\u6A21\u62DF\u8003\u8BD5"}]}),ve.createElement(xt.default.Search,{allowClear:!0,placeholder:"\u8BF7\u8F93\u5165\u540D\u79F0\u8FDB\u884C\u641C\u7D22",onSearch:Ie,style:{width:220,marginLeft:kt?"":"auto"}}),(0,De.eB)()&&rt&&ve.createElement(at.Z,{dropdownRender:()=>Zn,open:Ot,onOpenChange:We=>{Nt(We)}},ve.createElement("a",null,"\u5206\u73ED",Ot?ve.createElement(wt.Z,{style:{marginLeft:6}}):ve.createElement(Ve.Z,{style:{marginLeft:6}}))))}},46373:function(fn,on,we){"use strict";we.d(on,{Z:function(){return Ve}});var ve=we(59301),Ye=we(77019),dt=we(5269),it=we(93041),at=we(75727),Ze=we(6767),Ue=we(25399),xt={tabMenuContainer:"tabMenuContainer___uf5IP",control:"control___GheLs",iconH:"iconH___Wzw_r",selectBtn:"selectBtn___mfEnI",selectBtn1:"selectBtn1___rJF8S"},nt=we(25690),De=we(48790),Ve=({isLoading:ut,addText:Ee,tabDataSource:te,isAdmin:ne,dispatch:ue,classroomList:se,type:de,isExercise:pe,defaultSelectedKeys:ye,onTabMenuClick:Ce,getDropdownMenu:ze,showControlButton:Te,buttonText:Ie,buttonIcon:Oe="icon-tianjiadaohang",extraNode:Re,user:rt,onButtonClick:ot,isModelUser:Ct,menuItemWidth:gt=125})=>{var kt,Lt,Ot,Nt,tn;const st=(0,nt.useParams)();return ve.createElement("div",{className:xt.tabMenuContainer},ve.createElement(Ye.Z,null,ve.createElement(dt.Z,{flex:"1"},ve.createElement(it.default,{onSelect:He=>ut?{}:Ce(He),mode:"horizontal",selectedKeys:ye},te.map(He=>ve.createElement(it.default.Item,{style:{width:gt},key:typeof He.index=="number"?He.index:He.id},ve.createElement("span",{className:"c-grey-666"},He.name),He.total!==void 0&&ne&&ve.createElement("span",{className:"c-grey-999 ml20"},He.total||0))))),ne&&pe&&ve.createElement("i",{className:"iconfont icon-shezhi8",style:{display:"flex",alignItems:"center",cursor:"pointer"},onClick:()=>{ue({type:"classroomList/setActionTabs",payload:{key:"\u5728\u7EBF\u8003\u8BD5\u8BBE\u7F6E"}})}}),ne&&ve.createElement(dt.Z,{className:"mr20 gutter-row",style:{display:"flex",alignItems:"center",color:"#0152d9",paddingBottom:3}},pe&&ve.createElement(at.Z,{className:"mr15",placement:"bottom",arrow:!0,dropdownRender:()=>ve.createElement(it.default,null,ve.createElement(it.default.Item,{key:1,onClick:()=>{var He;if((0,De.Rm)()&&!((He=se.AssistantObject.exercise)!=null&&He.can_download)){Ze.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}ue({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u6210\u7EE9",type:de,exportType:"exercise",category_id:st.categoryId}})}},"\u5B66\u751F\u6210\u7EE9"),ve.createElement(it.default.Item,{key:3,onClick:()=>{var He;if((0,De.Rm)()&&!((He=se.AssistantObject.exercise)!=null&&He.can_download)){Ze.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}nt.history.push(`/classrooms/${st==null?void 0:st.coursesId}/exportlist/exercise_score,export_exercise_users`)}},"\u5386\u53F2\u5BFC\u51FA"))},ve.createElement("div",{className:"c-blue font16 ml20 current",style:{marginTop:2}},ve.createElement("span",{style:{color:"#666666",cursor:"pointer"}},ve.createElement("i",{className:"iconfont icon-xiazai6"})))),ve.createElement("div",{className:xt.control},ve.createElement("div",{className:xt.extra},Re),Te&&(Ie=="\u6DFB\u52A0\u76F4\u64AD"?ve.createElement(at.Z,{menu:{items:(Lt=(kt=[{label:ve.createElement("div",{onClick:()=>{ot("\u5916\u94FE")}},"\u5916\u94FE\u76F4\u64AD"),key:"1",show:!0},Ct&&{label:ve.createElement("div",{onClick:()=>{ot("\u5934\u6B4C")}},"\u5934\u6B4C\u76F4\u64AD"),key:"2",show:!0}])==null?void 0:kt.filter(He=>He==null?void 0:He.show))==null?void 0:Lt.map(He=>({label:He==null?void 0:He.label,key:He==null?void 0:He.key}))}},ve.createElement("span",{className:xt.selectBtn},ve.createElement("span",null,ve.createElement("i",{className:`iconfont ${Oe}`})),ve.createElement("span",null,Ie))):ve.createElement("span",{onClick:ot,style:{cursor:"pointer"},className:xt.selectBtn},ve.createElement("span",null,ve.createElement("i",{className:`iconfont ${Oe}`})),ve.createElement("span",null,Ie))),!!ze&&ve.createElement(at.Z,{disabled:((Ot=rt==null?void 0:rt.userInfo)==null?void 0:Ot.user_status)===2,className:"ml10",dropdownRender:ze},ve.createElement("span",{className:((Nt=rt==null?void 0:rt.userInfo)==null?void 0:Nt.user_status)===2?xt.selectBtn1:xt.selectBtn},ve.createElement("span",null,ve.createElement("i",{className:"iconfont icon-tianjiadaohang"})),ve.createElement(Ue.Z,{title:((tn=rt==null?void 0:rt.userInfo)==null?void 0:tn.user_status)===2&&"\u6559\u5B66\u8BFE\u5802\u8BD5\u7528\u671F\u5DF2\u7ED3\u675F\uFF0C\u5E73\u53F0\u5DF2\u6682\u505C\u63D0\u4F9B\u5728\u7EBF\u8003\u8BD5\u521B\u5EFA\u529F\u80FD"},ve.createElement("span",null,Ee||"\u521B\u5EFA\u8BD5\u5377"))))))))}},40746:function(fn,on,we){"use strict";we.d(on,{$i:function(){return Re},K1:function(){return ot},O7:function(){return Ct},T$:function(){return Oe}});var ve=we(9148),Ye=we(93629),dt=we(81722),it=we(86245),at=we(45937),Ze=we(62957),Ue=we(28284),xt=we(6767),nt=we(37568),De=we(77019),wt=we(5269),Ve=we(59301),ut=we(25690),Ee=we(28209),te=we.n(Ee),ne=we(51257),ue=we(59301),se=Object.defineProperty,de=Object.getOwnPropertySymbols,pe=Object.prototype.hasOwnProperty,ye=Object.prototype.propertyIsEnumerable,Ce=(gt,kt,Lt)=>kt in gt?se(gt,kt,{enumerable:!0,configurable:!0,writable:!0,value:Lt}):gt[kt]=Lt,ze=(gt,kt)=>{for(var Lt in kt||(kt={}))pe.call(kt,Lt)&&Ce(gt,Lt,kt[Lt]);if(de)for(var Lt of de(kt))ye.call(kt,Lt)&&Ce(gt,Lt,kt[Lt]);return gt},Te=(gt,kt,Lt)=>new Promise((Ot,Nt)=>{var tn=Rt=>{try{He(Lt.next(Rt))}catch(Zt){Nt(Zt)}},st=Rt=>{try{He(Lt.throw(Rt))}catch(Zt){Nt(Zt)}},He=Rt=>Rt.done?Ot(Rt.value):Promise.resolve(Rt.value).then(tn,st);He((Lt=Lt.apply(gt,kt)).next())});const Ie=gt=>{const kt=te().enc.Utf8.parse("c03f36595bd5610b");return te().AES.encrypt(gt||"",kt,{iv:kt,mode:te().mode.CBC}).toString()},Oe=({onCancel:gt,open:kt})=>ue.createElement(Ze.default,{title:"\u63D0\u793A",width:619,centered:!0,open:kt,destroyOnClose:!0,okText:"\u7ACB\u5373\u524D\u5F80",cancelText:"\u7A0D\u540E\u518D\u8BF4",onCancel:gt,onOk:()=>{ut.history.push("/account/secure")}},ue.createElement("span",null,"\u52A0\u5BC6\u5C01\u5B58\u4E4B\u540E\uFF0C\u5FD8\u8BB0\u5BC6\u7801\u65F6\u9700\u8981\u4F7F\u7528\u624B\u673A\u53F7\u8FDB\u884C\u5BC6\u7801\u91CD\u7F6E\uFF0C\u8BF7\u5148\u7ED1\u5B9A\u624B\u673A\u53F7\u7801")),Re=({onCancel:gt,onFinish:kt,open:Lt,Data:Ot})=>{const[Nt]=Ue.default.useForm(),[,tn,st]=(0,at.U)((Ot==null?void 0:Ot.type)=="exercise"?dt.yE:Ye.yE,{id:Ot==null?void 0:Ot.id});return(0,Ve.useEffect)(()=>{Lt||Nt.resetFields()},[Lt]),ue.createElement(Ze.default,{title:"\u8BD5\u5377\u52A0\u5BC6\u5C01\u5B58",width:619,centered:!0,open:Lt,destroyOnClose:!0,confirmLoading:tn,onCancel:gt,onOk:()=>{Nt==null||Nt.submit()}},ue.createElement("div",{className:"pt16 pb16 pl12 pr12 rounded-4px flex item-center gap-8px",style:{background:"rgba(233, 127, 55, .06)",color:"#FA6400"}},ue.createElement("i",{className:"iconfont icon-tishi7"}),ue.createElement("span",null,"\u8BD5\u5377\u52A0\u5BC6\u5C01\u5B58\u540E\uFF0C\u6240\u6709\u7528\u6237\u9700\u8981\u8F93\u5165\u5C01\u5B58\u5BC6\u7801\u624D\u80FD\u8FDB\u884C\u67E5\u770B\u3001\u7F16\u8F91\u8BD5\u5377\u7B49\u64CD\u4F5C\uFF01")),ue.createElement(Ue.default,{form:Nt,className:"mt-20px",size:"large",colon:!1,onFinish:He=>Te(void 0,null,function*(){const Rt=yield st({id:Ot==null?void 0:Ot.id,is_encrypt:!0,pwd:Ie(He.pwd),pwd_confirm:Ie(He.pwd_confirm)});Rt.status===0?(xt.ZP.success("\u52A0\u5BC6\u6210\u529F"),kt==null||kt(Rt),gt()):Nt.setFields([{name:"pwd",errors:[Rt==null?void 0:Rt.message]}])})},ue.createElement(Ue.default.Item,{label:"\u5C01\u5B58\u5BC6\u7801",name:"pwd",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5C01\u5B58\u5BC6\u7801"},{pattern:/^(?=.*[A-Za-z])(?=.*\d)[A-Za-z\d]{6,16}$/,message:"\u5BC6\u7801\u5FC5\u987B\u4E3A\u5B57\u6BCD\u548C\u6570\u5B57\u7684\u7EC4\u5408\uFF0C\u4E14\u957F\u5EA6\u4E3A6-16\u4E2A\u5B57\u7B26"}]},ue.createElement(nt.default.Password,{placeholder:"\u8BF7\u8BBE\u7F6E\u5C01\u5B58\u5BC6\u7801\uFF0C\u5FC5\u987B\u4E3A\u5B57\u6BCD\u548C\u6570\u5B57\u7684\u7EC4\u5408\uFF0C\u6700\u5927\u9650\u52366-16\u4E2A\u5B57\u7B26"})),ue.createElement(Ue.default.Item,{label:"\u786E\u8BA4\u5BC6\u7801",name:"pwd_confirm",rules:[{required:!0,message:"\u8BF7\u518D\u6B21\u8F93\u5165\u5C01\u5B58\u5BC6\u7801"},{pattern:/^(?=.*[A-Za-z])(?=.*\d)[A-Za-z\d]{6,16}$/,message:"\u5BC6\u7801\u5FC5\u987B\u4E3A\u5B57\u6BCD\u548C\u6570\u5B57\u7684\u7EC4\u5408\uFF0C\u4E14\u957F\u5EA6\u4E3A6-16\u4E2A\u5B57\u7B26"},({getFieldValue:He})=>({validator(Rt,Zt){return!Zt||He("pwd")===Zt?Promise.resolve():Promise.reject(new Error("\u4E24\u6B21\u8F93\u5165\u7684\u5BC6\u7801\u4E0D\u4E00\u81F4"))}})]},ue.createElement(nt.default.Password,{placeholder:"\u8BF7\u518D\u6B21\u8F93\u5165\u5C01\u5B58\u5BC6\u7801\uFF0C\u5FC5\u987B\u4E3A\u5B57\u6BCD\u548C\u6570\u5B57\u7684\u7EC4\u5408\uFF0C\u6700\u5927\u9650\u52366-16\u4E2A\u5B57\u7B26"}))))},rt=({onCancel:gt,open:kt,Data:Lt})=>{var Ot;const[Nt]=Ue.default.useForm(),[tn]=Ue.default.useForm(),[st,He]=(0,Ve.useState)(!1),[Rt,Zt]=(0,Ve.useState)(0),[,,_t]=(0,at.U)(it.o1,{type:(Lt==null?void 0:Lt.type)=="exercise"?12:11}),[,Mt,jt]=(0,at.U)((Lt==null?void 0:Lt.type)=="exercise"?dt.dp:Ye.dp,{id:Lt==null?void 0:Lt.id}),[,an,Dn]=(0,at.U)((Lt==null?void 0:Lt.type)=="exercise"?dt.Qc:Ye.Qc,{id:Lt==null?void 0:Lt.id});return(0,Ve.useEffect)(()=>{var Dt;Lt!=null&&Lt.phone&&Nt.setFieldsValue({login:(Dt=Lt==null?void 0:Lt.phone)==null?void 0:Dt.replace(/(\d{3})\d{4}(\d{4})/,"$1****$2")})},[Lt==null?void 0:Lt.phone]),(0,Ve.useEffect)(()=>{Rt>0&&setTimeout(()=>{Zt(Rt-1)},1e3)},[Rt]),(0,Ve.useEffect)(()=>{kt||(Nt.resetFields(),tn.resetFields())},[kt]),ue.createElement(ue.Fragment,null,ue.createElement(Ze.default,{title:"\u624B\u673A\u53F7\u7801\u6821\u9A8C",width:619,centered:!0,open:kt,destroyOnClose:!0,confirmLoading:Mt,onCancel:gt,onOk:()=>{Nt==null||Nt.submit()}},ue.createElement("div",{style:{color:"#191919"}},"\u8BF7\u5148\u8FDB\u884C\u624B\u673A\u53F7\u7801\u6821\u9A8C"),ue.createElement(Ue.default,{className:"mt20",initialValues:{phone:(Ot=Lt==null?void 0:Lt.phone)==null?void 0:Ot.replace(/(\d{3})\d{4}(\d{4})/,"$1****$2")},form:Nt,size:"large",colon:!1,onFinish:Dt=>Te(void 0,null,function*(){console.log("allValue",Dt);const gn=yield jt({code:Dt==null?void 0:Dt.code,login:Lt==null?void 0:Lt.phone,id:Lt==null?void 0:Lt.id});gn.status===0?(xt.ZP.success("\u6821\u9A8C\u6210\u529F"),gt==null||gt(),He(!0)):Nt.setFields([{name:"code",errors:[gn==null?void 0:gn.message]}])})},ue.createElement(Ue.default.Item,{label:"\u624B\u673A\u53F7",name:"login",required:!0},ue.createElement(nt.default,{placeholder:"\u8BF7\u8F93\u5165\u624B\u673A\u53F7",disabled:!0})),ue.createElement(De.Z,{wrap:!1,gutter:20},ue.createElement(wt.Z,{flex:1},ue.createElement(Ue.default.Item,{label:"\u9A8C\u8BC1\u7801",name:"code",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801"}]},ue.createElement(nt.default,{placeholder:"\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801"}))),ue.createElement(wt.Z,null,ue.createElement(ve.op,{openLoading:!0,size:"large",disabled:Rt>0,style:{borderRadius:"4px"},onClick:()=>Te(void 0,null,function*(){const Dt=yield _t({type:(Lt==null?void 0:Lt.type)=="exercise"?12:11,login:Lt==null?void 0:Lt.phone,smscode:(0,ne.M)(Lt==null?void 0:Lt.phone)});(Dt==null?void 0:Dt.status)===1&&(xt.ZP.success("\u53D1\u9001\u6210\u529F"),Zt(60))})},Rt===0?"\u83B7\u53D6\u9A8C\u8BC1\u7801":`(${Rt})\u79D2\u53EF\u91CD\u65B0\u83B7\u53D6`))))),ue.createElement(Ze.default,{title:"\u91CD\u7F6E\u5C01\u5B58\u5BC6\u7801",width:619,centered:!0,open:st,destroyOnClose:!0,confirmLoading:an,onCancel:()=>{He(!1)},onOk:()=>{tn==null||tn.submit()}},ue.createElement(Ue.default,{className:"mt20",form:tn,size:"large",colon:!1,onFinish:Dt=>Te(void 0,null,function*(){console.log("allValue",Dt),(yield Dn(ze({id:Lt==null?void 0:Lt.id},Dt))).status===0&&(xt.ZP.success("\u91CD\u7F6E\u6210\u529F"),He(!1))})},ue.createElement(Ue.default.Item,{label:"\u5C01\u5B58\u5BC6\u7801",name:"pwd",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5C01\u5B58\u5BC6\u7801"},{pattern:/^(?=.*[A-Za-z])(?=.*\d)[A-Za-z\d]{6,16}$/,message:"\u5BC6\u7801\u5FC5\u987B\u4E3A\u5B57\u6BCD\u548C\u6570\u5B57\u7684\u7EC4\u5408\uFF0C\u4E14\u957F\u5EA6\u4E3A6-16\u4E2A\u5B57\u7B26"}]},ue.createElement(nt.default.Password,{placeholder:"\u8BF7\u8BBE\u7F6E\u5C01\u5B58\u5BC6\u7801\uFF0C\u5FC5\u987B\u4E3A\u5B57\u6BCD\u548C\u6570\u5B57\u7684\u7EC4\u5408\uFF0C\u6700\u5927\u9650\u52366-16\u4E2A\u5B57\u7B26"})),ue.createElement(Ue.default.Item,{label:"\u786E\u8BA4\u5BC6\u7801",name:"pwd_confirm",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5C01\u5B58\u5BC6\u7801"},{pattern:/^(?=.*[A-Za-z])(?=.*\d)[A-Za-z\d]{6,16}$/,message:"\u5BC6\u7801\u5FC5\u987B\u4E3A\u5B57\u6BCD\u548C\u6570\u5B57\u7684\u7EC4\u5408\uFF0C\u4E14\u957F\u5EA6\u4E3A6-16\u4E2A\u5B57\u7B26"},({getFieldValue:Dt})=>({validator(gn,yt){return!yt||Dt("pwd")===yt?Promise.resolve():Promise.reject(new Error("\u4E24\u6B21\u8F93\u5165\u7684\u5BC6\u7801\u4E0D\u4E00\u81F4"))}})]},ue.createElement(nt.default.Password,{placeholder:"\u8BF7\u518D\u6B21\u8F93\u5165\u5C01\u5B58\u5BC6\u7801\uFF0C\u5FC5\u987B\u4E3A\u5B57\u6BCD\u548C\u6570\u5B57\u7684\u7EC4\u5408\uFF0C\u6700\u5927\u9650\u52366-16\u4E2A\u5B57\u7B26"})))))},ot=({onCancel:gt,onFinish:kt,open:Lt,Data:Ot})=>{const[Nt]=Ue.default.useForm(),[tn,st]=(0,Ve.useState)(!1),[,He,Rt]=(0,at.U)((Ot==null?void 0:Ot.type)=="exercise"?dt.yE:Ye.yE,{id:Ot==null?void 0:Ot.id});return(0,Ve.useEffect)(()=>{Lt||Nt.resetFields()},[Lt]),ue.createElement(ue.Fragment,null,ue.createElement(Ze.default,{title:"\u8BD5\u5377\u89E3\u5C01",width:619,centered:!0,open:Lt,destroyOnClose:!0,confirmLoading:He,onCancel:gt,onOk:()=>{Nt==null||Nt.submit()}},ue.createElement(De.Z,{wrap:!1,align:"top",gutter:16},ue.createElement(wt.Z,{flex:1},ue.createElement(Ue.default,{form:Nt,size:"large",colon:!1,onFinish:Zt=>Te(void 0,null,function*(){const _t=yield Rt({id:Ot==null?void 0:Ot.id,is_encrypt:!1,pwd:Ie(Zt.pwd)});(_t==null?void 0:_t.status)===0?(xt.ZP.success("\u89E3\u5C01\u6210\u529F"),kt==null||kt(_t),gt==null||gt()):Nt.setFields([{name:"pwd",errors:[_t==null?void 0:_t.message]}])})},ue.createElement(Ue.default.Item,{label:"\u5C01\u5B58\u5BC6\u7801",name:"pwd",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5C01\u5B58\u5BC6\u7801"}]},ue.createElement(nt.default.Password,{placeholder:"\u8BF7\u8F93\u5165\u5C01\u5B58\u5BC6\u7801"})))),ue.createElement(wt.Z,null,ue.createElement("a",{style:{lineHeight:"40px",whiteSpace:"nowrap"},onClick:()=>{st(!0),gt==null||gt()}},"\u5FD8\u8BB0\u5BC6\u7801\uFF1F")))),ue.createElement(rt,{onCancel:()=>{st(!1)},open:tn,Data:ze({},Ot)}))},Ct=({onCancel:gt,onFinish:kt,open:Lt,Data:Ot})=>{const[Nt]=Ue.default.useForm(),[tn,st]=(0,Ve.useState)(!1),[,He,Rt]=(0,at.U)((Ot==null?void 0:Ot.type)=="exercise"?dt.yE:Ye.yE,{id:Ot==null?void 0:Ot.id});return(0,Ve.useEffect)(()=>{Lt||Nt.resetFields()},[Lt]),ue.createElement(ue.Fragment,null,ue.createElement(Ze.default,{title:"\u63D0\u793A",width:619,centered:!0,open:Lt,destroyOnClose:!0,confirmLoading:He,onCancel:gt,onOk:()=>{Nt==null||Nt.submit()}},ue.createElement("div",{className:"pt16 pb16 pl12 pr12 rounded-4px flex item-center gap-8px",style:{background:"rgba(233, 127, 55, .06)",color:"#FA6400"}},ue.createElement("i",{className:"iconfont icon-tishi7"}),ue.createElement("span",null,"\u8BD5\u5377\u5DF2\u8FDB\u884C\u52A0\u5BC6\u5C01\u5B58\uFF0C\u5982\u9700\u8FDB\u884C\u64CD\u4F5C\uFF0C\u8BF7\u5148\u8F93\u5165\u5C01\u5B58\u5BC6\u7801\u8FDB\u884C\u89E3\u5C01\uFF01")),ue.createElement(Ue.default,{form:Nt,className:"mt-20px",size:"large",colon:!1,onFinish:Zt=>Te(void 0,null,function*(){const _t=yield Rt({id:Ot==null?void 0:Ot.id,is_encrypt:!1,pwd:Ie(Zt.pwd)});(_t==null?void 0:_t.status)===0?(xt.ZP.success("\u89E3\u5C01\u6210\u529F"),kt==null||kt(_t),gt==null||gt()):Nt.setFields([{name:"pwd",errors:[_t==null?void 0:_t.message]}])})},ue.createElement(De.Z,{wrap:!1,gutter:20},ue.createElement(wt.Z,{flex:1},ue.createElement(Ue.default.Item,{label:"\u5C01\u5B58\u5BC6\u7801",name:"pwd",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5C01\u5B58\u5BC6\u7801"},{pattern:/^(?=.*[A-Za-z])(?=.*\d)[A-Za-z\d]{6,16}$/,message:"\u5BC6\u7801\u5FC5\u987B\u4E3A\u5B57\u6BCD\u548C\u6570\u5B57\u7684\u7EC4\u5408\uFF0C\u4E14\u957F\u5EA6\u4E3A6-16\u4E2A\u5B57\u7B26"}]},ue.createElement(nt.default.Password,{placeholder:"\u8BF7\u8F93\u5165\u5C01\u5B58\u5BC6\u7801"}))),ue.createElement(wt.Z,null,ue.createElement("a",{style:{lineHeight:"40px",whiteSpace:"nowrap"},onClick:()=>{st(!0),gt==null||gt()}},"\u5FD8\u8BB0\u5BC6\u7801\uFF1F"))))),ue.createElement(rt,{onCancel:()=>{st(!1)},open:tn,Data:ze({},Ot)}))}},45937:function(fn,on,we){"use strict";we.d(on,{U:function(){return nt}});var ve=we(59301),Ye=Object.defineProperty,dt=Object.getOwnPropertySymbols,it=Object.prototype.hasOwnProperty,at=Object.prototype.propertyIsEnumerable,Ze=(De,wt,Ve)=>wt in De?Ye(De,wt,{enumerable:!0,configurable:!0,writable:!0,value:Ve}):De[wt]=Ve,Ue=(De,wt)=>{for(var Ve in wt||(wt={}))it.call(wt,Ve)&&Ze(De,Ve,wt[Ve]);if(dt)for(var Ve of dt(wt))at.call(wt,Ve)&&Ze(De,Ve,wt[Ve]);return De},xt=(De,wt,Ve)=>new Promise((ut,Ee)=>{var te=se=>{try{ue(Ve.next(se))}catch(de){Ee(de)}},ne=se=>{try{ue(Ve.throw(se))}catch(de){Ee(de)}},ue=se=>se.done?ut(se.value):Promise.resolve(se.value).then(te,ne);ue((Ve=Ve.apply(De,wt)).next())});function nt(De,wt){const[Ve,ut]=(0,ve.useState)(wt),[Ee,te]=(0,ve.useState)(!1),[ne,ue]=(0,ve.useState)();return[Ve,Ee,(de,pe=!1)=>xt(this,null,function*(){const ye=pe?wt:Ue(Ue({},Ve),de);te(!0),ut(ye);const Ce=yield De(ye);return te(!1),ue(Ce),Ce}),ne,ue]}},81428:function(fn,on,we){"use strict";we.d(on,{AL:function(){return ye},Iy:function(){return wt},Qv:function(){return Ee},ez:function(){return pe},jb:function(){return Ve}});var ve=we(32834),Ye=we.n(ve),dt=we(11690),it=we.n(dt);let at=1;function Ze(Oe,Re){const rt=Oe.match(/^(\s+)(?:```)/);if(rt===null)return Re;const ot=rt[1];return Re.split(`
`).map(Ct=>{const gt=Ct.match(/^\s+/);if(gt===null)return Ct;const[kt]=gt;return kt.length>=ot.length?Ct.slice(ot.length):Ct}).join(`
`)}let Ue=[],xt=["<ul>"];const nt=new(Ye()).Renderer,De=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function wt(){Ue.length=0,xt=["<ul>"]}const Ve={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function ut(Oe,Re,rt,ot){if(Re>=Oe.length||Oe[Re].level<=rt)return Re;var Ct=Oe[Re];ot.push("<li><a href='#"+at+Ct.anchor+"'>"+Ct.text+"</a>"),Re++;var gt=[];return Re=ut(Oe,Re,Ct.level,gt),gt.length>0&&(ot.push("<ul>"),gt.forEach(function(kt){ot.push(kt)}),ot.push("</ul>")),ot.push("</li>"),Re=ut(Oe,Re,rt,ot),Re}function Ee(){return ut(Ue,0,0,xt),xt.push("</ul>"),xt.join("")}const te={heading(Oe){const Re=De.exec(Oe);if(at+=1,Re)return{type:"heading",raw:Re[0],depth:Re[1].length,text:Re[2]}},fences(Oe){const Re=this.rules.block.fences.exec(Oe);if(Re){const rt=Re[0];let ot=Ze(rt,Re[3]||"");const Ct=Re[2]?Re[2].trim():Re[2];if(["latex","katex","math"].indexOf(Ct)>=0){const gt=se(),kt=ot;ot=gt,de[gt]={type:"block",expression:kt}}return{type:"code",raw:rt,lang:Ct,text:ot}}}},ne=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let ue=0;const se=()=>`__special_katext_id_${ue++}__`;let de={};function pe(){return de}function ye(){ue=0,de={}}function Ce(Oe){return Oe=Oe.replace(ne,(Re,rt)=>{const ot=se();return de[ot]={type:"inline",expression:rt},ot}),Oe}const ze=nt.listitem;nt.listitem=function(Oe){return ze(Ce(Oe))};const Te=nt.paragraph;nt.paragraph=function(Oe){return Te(Ce(Oe))};const Ie=nt.tablecell;nt.tablecell=function(Oe,Re){return Ie(Ce(Oe),Re)},nt.code=function(Oe,Re,rt){const ot=(Re||"").match(/\S*/)[0];return ot?["latex","katex","math"].indexOf(ot)>=0?`<p class='editormd-tex'>${Oe}</p>`:`<pre class="prettyprint linenums"><code class="language-${Re}">${rt?Oe:(0,dt.escape)(Oe,!0)}</code></pre>
`:'<pre class="prettyprint linenums"><code>'+(rt?Oe:(0,dt.escape)(Oe,!0))+"</code></pre>"},nt.heading=function(Oe,Re,rt){let ot=this.options.headerPrefix+rt.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return Ue.push({anchor:ot,level:Re,text:Oe}),"<h"+Re+' id="'+at+ot+'">'+Oe+"</h"+Re+">"},Ye().setOptions({silent:!0,gfm:!0,pedantic:!1}),Ye().use({tokenizer:te,renderer:nt}),on.ZP=Ye()},40197:function(fn,on,we){"use strict";we.d(on,{rX:function(){return Ce},pW:function(){return ze},gy:function(){return Te},xY:function(){return ye},O5:function(){return pe},hs:function(){return ne},tJ:function(){return Ee},o1:function(){return te},Rd:function(){return de}});var ve=we(25690),Ye=we(62957),dt=we(37285),it=we(6767),at=we(48790),Ze=we(51257),Ue=we(87169),xt=we(25510),nt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAGQCAIAAAAP3aGbAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAABcRAAAXEQHKJvM/AAAouElEQVR42u3de5gU1Z038HOqqu89PQPMhQHkNqCiCCK5qMRojIkXRNFERDTGNRvik5hNjPtgzEuyJLq6sq/EbEyy+u5jjBEhSEREvKyXQJRVs1FEMARhhhlgLsDAMD3T96o67x8zzPQMPTPVU12XX8/38/D4PDZdVedUd3+py6nf4UIIBgBAgeR0AwAAjEJgAQAZCCwAIAOBBQBkILAAgAwEFgCQgcACADIQWABABgILAMhAYAEAGQgsACADgQUAZCCwAIAMxfhbOedOt7a/nKUmcrbT2aIUxned8Xaa/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023mTdEWfH9xjvZl5whAUAZCCwAIAMBBYAkIHAAgAyEFgAQAYCCwDIsGRYg7NIP99vRd+tKDlg2zutYLxJzk7/Ydv+dOEcKwPBERYAkIHAAgAyEFgAQAYCCwDIQGABABkILAAgowiHNYzk4QJWPEzvwm7mZEVlBZP1Epwd65CTbSMYLBq5giMsACADgQUAZCCwAIAMBBYAkIHAAgAyEFgAQIYlwxpaWlrMLG5yBgrbSvfbVnKASsED25j8iE2u0/jiJsc6uLBWhLPrZBYFVsHnvAEAYDglBABCEFgAQAYCCwDIQGABABlmL7qvWrUqHA5b3cotW7bYszsAwM24FXeIbUPl0XPbahsY76ZtU3W48+64ma0bZ9tnZFtdB9tKoQwEp4QAQAYCCwDIQGABABkILAAgA4EFAGQgsACAjDyGNQAAOAtHWABABgILAMhAYAEAGQgsACADgQUAZCCwAIAMBBYAkIHAAgAyEFgAQAYCCwDIQGABABkILAAgA4EFAGQgsACAjP8Prqme11Be/zoAAAAASUVORK5CYII=",De=we.p+"static/newqrcode.a8740efb.png",wt=we(32637),Ve=we(59301),ut=(Ie,Oe,Re)=>new Promise((rt,ot)=>{var Ct=Lt=>{try{kt(Re.next(Lt))}catch(Ot){ot(Ot)}},gt=Lt=>{try{kt(Re.throw(Lt))}catch(Ot){ot(Ot)}},kt=Lt=>Lt.done?rt(Lt.value):Promise.resolve(Lt.value).then(Ct,gt);kt((Re=Re.apply(Ie,Oe)).next())});const Ee=(Ie,Oe=!1,Re=!1,rt="",ot=!1)=>!!(te(Ie)&&ue(Ie,Oe,Re,rt,ot)),te=Ie=>(0,at.bg)()?!0:(Ie({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1),ne=Ie=>{var Oe,Re,rt;const{user:ot}=(0,ve.getDvaApp)()._store.getState();(0,at.bg)()&&!((Re=(Oe=ot==null?void 0:ot.userInfo)==null?void 0:Oe.course)!=null&&Re.course_public)&&!((rt=ot==null?void 0:ot.userInfo)!=null&&rt.profile_completed)&&Ie({type:"user/showUpdateProfilePanel",payload:{showUpdateProfilePanel:!0,showClosable:!0,backurl:"/account/profile/edit",isCurrentPage:!0}})},ue=(Ie,Oe=!1,Re=!0,rt="",ot=!1)=>{var Ct;const{user:gt}=(0,ve.getDvaApp)()._store.getState();return(Ct=gt.userInfo)!=null&&Ct.profile_completed?!0:(Re?Ie({type:"user/showUpdateProfilePanel",payload:{showUpdateProfilePanel:!0,showClosable:!0,backurl:rt,isCurrentPage:ot}}):Ye.default.confirm({title:"\u63D0\u793A",width:530,centered:!0,content:"\u60A8\u9700\u8981\u53BB\u5B8C\u5584\u60A8\u7684\u4E2A\u4EBA\u8D44\u6599\uFF0C\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD",okText:"\u7ACB\u5373\u5B8C\u5584",cancelText:"\u7A0D\u540E\u5B8C\u5584",onOk:()=>{(0,Ze.xg)("/account/profile/edit"),se()}}),!1)},se=()=>{Ye.default.success({title:"\u63D0\u793A",width:430,closable:!0,centered:!0,content:"\u5DF2\u5B8C\u5584\u4E2A\u4EBA\u8D44\u6599\uFF1F\u8BF7\u5237\u65B0\u9875\u9762",okText:"\u7ACB\u5373\u5237\u65B0",icon:null,onOk:()=>{location.reload()}})},de=()=>{Ye.default.warning({title:"\u63D0\u793A",icon:null,width:400,content:Ve.createElement("div",{style:{textAlign:"center"}},Ve.createElement("div",{style:{color:"#191919",fontSize:14,marginBottom:15,textAlign:"left"}},"\u8001\u5E08\u60A8\u597D\uFF0C\u60A8\u7684\u8BFE\u5802\u8BD5\u7528\u671F\u5DF2\u7ED3\u675F\uFF0C\u76F8\u5173\u529F\u80FD\u88AB\u9650\u5236\u3002 \u5982\u9700\u7EE7\u7EED\u4F7F\u7528\uFF0C\u8BF7\u5C3D\u5FEB\u5BF9\u63A5\u4EBA\u5DE5\u652F\u6301\uFF01"),Ve.createElement("img",{style:{border:"1px solid #D8E3E9",width:190,height:180},src:wt}),Ve.createElement("div",{style:{color:"#666666",fontSize:14,marginTop:15}},"\u6DFB\u52A0\u5BA2\u670D\u4EBA\u5458\u5FAE\u4FE1\uFF0C\u83B7\u5F97\u66F4\u591A\u652F\u6301"))})},pe=()=>{var Ie;const{user:Oe}=(0,ve.getDvaApp)()._store.getState();return(Ie=Oe.userInfo)!=null&&Ie.professional_certification?!0:(Ye.default.confirm({title:"\u63D0\u793A",centered:!0,content:Ve.createElement("div",{className:"tc"},"\u60A8\u9700\u8981\u53BB\u5B8C\u6210\u60A8\u7684\u804C\u4E1A\u8BA4\u8BC1\uFF0C\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD"),okText:"\u7ACB\u5373\u5B8C\u5584",cancelText:"\u7A0D\u540E\u5B8C\u5584",onOk:()=>{(0,Ze.xg)("/account/certification")}}),!1)},ye=()=>(0,at.V9)()?!0:(Ye.default.warning({centered:!0,width:530,title:"\u63D0\u793A",content:Ve.createElement("div",{className:"tc",style:{marginLeft:-38}},Ve.createElement("p",null,"\u626B\u7801\u52A0\u5934\u6B4C\u52A9\u6559\uFF0C\u7533\u8BF7\u64CD\u4F5C\u6743\u9650"),Ve.createElement("img",{src:De,width:200})),okText:"\u6211\u77E5\u9053\u4E86",maskClosable:!0}),!1),Ce=(Ie,Oe)=>Ie?!0:(Ye.default.confirm({centered:!0,zIndex:1e4,width:530,title:"\u63D0\u793A",content:Ve.createElement("div",null,Ve.createElement("p",null,Oe||"\u8BE5\u5B9E\u8DF5\u8D44\u6E90\u9700\u6388\u6743\u540E\u624D\u53EF\u4F7F\u7528\u3002 \u60A8\u53EF\u4EE5\u5728QQ\u670D\u52A1\u7FA4\u5411\u7BA1\u7406\u5458\u7533\u8BF7\uFF0C\u83B7\u5F97\u7EE7\u7EED\u64CD\u4F5C\u7684\u6743\u9650\u3002"),Ve.createElement("div",{style:{marginLeft:"110px"}},Ve.createElement("img",{src:nt,width:200}),Ve.createElement("div",{style:{marginLeft:"35px"}},"\u7FA4\u53F7\uFF1A","714336072"))),okText:"\u7ACB\u5373\u8054\u7CFB",cancelText:"\u53D6\u6D88",onOk:()=>{(0,Ze.xg)("https://qm.qq.com/cgi-bin/qm/qr?k=tIyDPXUtE0yEk-MOJxhH55lTUJS-nYAM&jump_from=webapi")}}),!1),ze=Ie=>{Ye.default.info({title:"\u8054\u7CFB\u5E73\u53F0\u8FD0\u8425",icon:null,width:615,centered:!0,content:Ve.createElement("div",null,Ve.createElement("div",null,Ve.createElement("p",{style:{color:"#191919",fontWeight:400,fontSize:14}},"\u201C\u4FDD\u5B58\u5B9E\u9A8C\u4E34\u65F6\u6570\u636E\u201D\u529F\u80FD\u4E3A\u4ED8\u8D39\u529F\u80FD\uFF0C\u8BF7\u8054\u7CFB\u5E73\u53F0\u8FD0\u8425\u8FDB\u884C\u5F00\u901A\u3002"),Ve.createElement(dt.Z,null),Ve.createElement("p",{style:{color:"#666666",fontSize:12}}," ",Ve.createElement("span",{style:{display:"inline-flex",width:14,height:14,borderRadius:2,background:"#F3F3F3",justifyContent:"center",color:"#666666",fontSize:12,lineHeight:"14px",marginRight:8}},"1")," \u56E0\u5E73\u53F0\u7684\u5B9E\u9A8C\u6570\u636E\u50A8\u5B58\u5BB9\u91CF\u548C\u6210\u672C\u6D88\u8017\u8F83\u5927\uFF0C\u5B9E\u8DF5\u9879\u76EE\u9ED8\u8BA4\u4FDD\u5B58\u5B9E\u9A8C\u73AF\u5883\u4E2D\u4E34\u65F6\u6570\u636E ",Ve.createElement("a",null,Ie),"\u5929\u3002"),Ve.createElement("p",{style:{color:"#666666",fontSize:12}}," ",Ve.createElement("span",{style:{display:"inline-flex",width:14,height:14,borderRadius:2,background:"#F3F3F3",justifyContent:"center",color:"#666666",fontSize:12,lineHeight:"14px",marginRight:8}},"2"),"\u82E5\u60A8\u9700\u8981\u4E2A\u6027\u5316\u7684\u6570\u636E\u4FDD\u5B58\u5468\u671F\u670D\u52A1\uFF0C\u6211\u4EEC\u53EF\u4EE5\u63D0\u4F9B\u76F8\u5173\u6280\u672F\u652F\u6301\uFF0C\u5E76\u6839\u636E\u60A8\u7684\u9700\u6C42\u6536\u53D6\u5B9A\u5236\u8D39\u7528\u3002")),Ve.createElement("div",{style:{textAlign:"center",marginTop:30}},Ve.createElement("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:xt,alt:"\u4E8C\u7EF4\u7801",width:160})))})},Te=(Ie,Oe="")=>{const{shixunsDetail:{detail:Re}}=(0,ve.getDvaApp)()._store.getState();if((Re==null?void 0:Re.public)===2||(Re==null?void 0:Re.public)===1||(Re==null?void 0:Re.shixun_status)===3){let rt="";return(Re==null?void 0:Re.public)===2&&(rt="\u5DF2\u516C\u5F00"),(Re==null?void 0:Re.public)===1&&(rt="\u5F85\u5BA1\u6838"),(Re==null?void 0:Re.shixun_status)===3&&(rt="\u5DF2\u5173\u95ED"),Ye.default.info({centered:!0,icon:Ve.createElement(Ue.Z,{style:{color:"#faad14"}}),width:460,title:"\u63D0\u793A",content:Ve.createElement("div",{className:"tc",style:{marginLeft:-38}},Ve.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",paddingLeft:38,margin:"12px 0"}},Ve.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u7684\u72B6\u6001\u4E3A",rt,"\uFF0C",Oe,"\u3002"),Ve.createElement("p",null,"\u5982\u6709\u9700\u8981\uFF0C\u8BF7\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u8FDB\u884C\u6280\u672F\u652F\u6301\u3002")),Ve.createElement("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:xt,alt:"\u4E8C\u7EF4\u7801",width:160})),okText:"\u6211\u77E5\u9053\u4E86"}),!0}return(Re==null?void 0:Re.shixun_status)===2?(Ye.default.confirm({centered:!0,icon:Ve.createElement(Ue.Z,null),title:"\u63D0\u793A",content:Ve.createElement("div",null,Ve.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u53D1\u5E03\uFF0C",Oe,"\u3002"),Ve.createElement("br",null),Ve.createElement("span",null,"\u5982\u6709\u9700\u8981\uFF0C\u60A8\u53EF\u4EE5\u64A4\u9500\u53D1\u5E03\u540E\uFF0C\u518D\u8FDB\u884C\u64CD\u4F5C\u3002")),okText:"\u64A4\u9500\u53D1\u5E03",cancelText:"\u53D6\u6D88",onOk:()=>{Ye.default.confirm({width:440,centered:!0,icon:Ve.createElement(Ue.Z,{style:{color:"#faad14"}}),title:"\u63D0\u793A",content:"\u64A4\u9500\u53D1\u5E03\u540E\uFF0C\u5B66\u5458\u5C06\u65E0\u6CD5\u8FDB\u884C\u7EC3\u4E60\u3002\u662F\u5426\u786E\u8BA4\u64A4\u9500\u53D1\u5E03\uFF1F",okText:"\u786E\u5B9A\u64A4\u9500\u53D1\u5E03",cancelText:"\u53D6\u6D88",onOk:()=>ut(void 0,null,function*(){(yield Ie({type:"shixunsDetail/cancelRelease",payload:{id:Re==null?void 0:Re.identifier}})).status!==401&&(it.ZP.success("\u64A4\u9500\u53D1\u5E03\u6210\u529F\u3002\u5B9E\u8BAD\u56DE\u5230\u672A\u53D1\u5E03\u7684\u72B6\u6001\u3002"),Ie({type:"shixunsDetail/getShixunsDetail",payload:{id:Re==null?void 0:Re.identifier}}),Ie({type:"practiceSetting/getCommonData",payload:{id:Re==null?void 0:Re.identifier}}))})})}}),!0):!1}},57780:function(fn,on,we){"use strict";we.r(on),we.d(on,{clsx:function(){return Ye}});function ve(dt){var it,at,Ze="";if(typeof dt=="string"||typeof dt=="number")Ze+=dt;else if(typeof dt=="object")if(Array.isArray(dt))for(it=0;it<dt.length;it++)dt[it]&&(at=ve(dt[it]))&&(Ze&&(Ze+=" "),Ze+=at);else for(it in dt)dt[it]&&(Ze&&(Ze+=" "),Ze+=it);return Ze}function Ye(){for(var dt,it,at=0,Ze="";at<arguments.length;)(dt=arguments[at++])&&(it=ve(dt))&&(Ze&&(Ze+=" "),Ze+=it);return Ze}on.default=Ye},99498:function(fn,on,we){(function(ve){ve(we(89780))})(function(ve){ve.defineOption("placeholder","",function(xt,nt,De){var wt=De&&De!=ve.Init;if(nt&&!wt)xt.on("blur",at),xt.on("change",Ze),xt.on("swapDoc",Ze),ve.on(xt.getInputField(),"compositionupdate",xt.state.placeholderCompose=function(){it(xt)}),Ze(xt);else if(!nt&&wt){xt.off("blur",at),xt.off("change",Ze),xt.off("swapDoc",Ze),ve.off(xt.getInputField(),"compositionupdate",xt.state.placeholderCompose),Ye(xt);var Ve=xt.getWrapperElement();Ve.className=Ve.className.replace(" CodeMirror-empty","")}nt&&!xt.hasFocus()&&at(xt)});function Ye(xt){xt.state.placeholder&&(xt.state.placeholder.parentNode.removeChild(xt.state.placeholder),xt.state.placeholder=null)}function dt(xt){Ye(xt);var nt=xt.state.placeholder=document.createElement("pre");nt.style.cssText="height: 0; overflow: visible",nt.style.direction=xt.getOption("direction"),nt.className="CodeMirror-placeholder CodeMirror-line-like";var De=xt.getOption("placeholder");typeof De=="string"&&(De=document.createTextNode(De)),nt.appendChild(De),xt.display.lineSpace.insertBefore(nt,xt.display.lineSpace.firstChild)}function it(xt){setTimeout(function(){var nt=!1,De=xt.getInputField();De.nodeName=="TEXTAREA"?nt=!De.value:xt.lineCount()==1&&(nt=!/[^\u200b]/.test(De.querySelector(".CodeMirror-line").textContent)),nt?dt(xt):Ye(xt)},20)}function at(xt){Ue(xt)&&dt(xt)}function Ze(xt){var nt=xt.getWrapperElement(),De=Ue(xt);nt.className=nt.className.replace(" CodeMirror-empty","")+(De?" CodeMirror-empty":""),De?dt(xt):Ye(xt)}function Ue(xt){return xt.lineCount()===1&&xt.getLine(0)===""}})},25717:function(fn,on,we){(function(ve){ve(we(89780))})(function(ve){var Ye={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},dt=ve.Pos;ve.defineOption("autoCloseBrackets",!1,function(te,ne,ue){ue&&ue!=ve.Init&&(te.removeKeyMap(at),te.state.closeBrackets=null),ne&&(Ze(it(ne,"pairs")),te.state.closeBrackets=ne,te.addKeyMap(at))});function it(te,ne){return ne=="pairs"&&typeof te=="string"?te:typeof te=="object"&&te[ne]!=null?te[ne]:Ye[ne]}var at={Backspace:nt,Enter:De};function Ze(te){for(var ne=0;ne<te.length;ne++){var ue=te.charAt(ne),se="'"+ue+"'";at[se]||(at[se]=Ue(ue))}}Ze(Ye.pairs+"`");function Ue(te){return function(ne){return Ve(ne,te)}}function xt(te){var ne=te.state.closeBrackets;if(!ne||ne.override)return ne;var ue=te.getModeAt(te.getCursor());return ue.closeBrackets||ne}function nt(te){var ne=xt(te);if(!ne||te.getOption("disableInput"))return ve.Pass;for(var ue=it(ne,"pairs"),se=te.listSelections(),de=0;de<se.length;de++){if(!se[de].empty())return ve.Pass;var pe=ut(te,se[de].head);if(!pe||ue.indexOf(pe)%2!=0)return ve.Pass}for(var de=se.length-1;de>=0;de--){var ye=se[de].head;te.replaceRange("",dt(ye.line,ye.ch-1),dt(ye.line,ye.ch+1),"+delete")}}function De(te){var ne=xt(te),ue=ne&&it(ne,"explode");if(!ue||te.getOption("disableInput"))return ve.Pass;for(var se=te.listSelections(),de=0;de<se.length;de++){if(!se[de].empty())return ve.Pass;var pe=ut(te,se[de].head);if(!pe||ue.indexOf(pe)%2!=0)return ve.Pass}te.operation(function(){var ye=te.lineSeparator()||`
`;te.replaceSelection(ye+ye,null),te.execCommand("goCharLeft"),se=te.listSelections();for(var Ce=0;Ce<se.length;Ce++){var ze=se[Ce].head.line;te.indentLine(ze,null,!0),te.indentLine(ze+1,null,!0)}})}function wt(te){var ne=ve.cmpPos(te.anchor,te.head)>0;return{anchor:new dt(te.anchor.line,te.anchor.ch+(ne?-1:1)),head:new dt(te.head.line,te.head.ch+(ne?1:-1))}}function Ve(te,ne){var ue=xt(te);if(!ue||te.getOption("disableInput"))return ve.Pass;var se=it(ue,"pairs"),de=se.indexOf(ne);if(de==-1)return ve.Pass;for(var pe=it(ue,"closeBefore"),ye=it(ue,"triples"),Ce=se.charAt(de+1)==ne,ze=te.listSelections(),Te=de%2==0,Ie,Oe=0;Oe<ze.length;Oe++){var Re=ze[Oe],rt=Re.head,ot,Ct=te.getRange(rt,dt(rt.line,rt.ch+1));if(Te&&!Re.empty())ot="surround";else if((Ce||!Te)&&Ct==ne)Ce&&Ee(te,rt)?ot="both":ye.indexOf(ne)>=0&&te.getRange(rt,dt(rt.line,rt.ch+3))==ne+ne+ne?ot="skipThree":ot="skip";else if(Ce&&rt.ch>1&&ye.indexOf(ne)>=0&&te.getRange(dt(rt.line,rt.ch-2),rt)==ne+ne){if(rt.ch>2&&/\bstring/.test(te.getTokenTypeAt(dt(rt.line,rt.ch-2))))return ve.Pass;ot="addFour"}else if(Ce){var gt=rt.ch==0?" ":te.getRange(dt(rt.line,rt.ch-1),rt);if(!ve.isWordChar(Ct)&&gt!=ne&&!ve.isWordChar(gt))ot="both";else return ve.Pass}else if(Te&&(Ct.length===0||/\s/.test(Ct)||pe.indexOf(Ct)>-1))ot="both";else return ve.Pass;if(!Ie)Ie=ot;else if(Ie!=ot)return ve.Pass}var kt=de%2?se.charAt(de-1):ne,Lt=de%2?ne:se.charAt(de+1);te.operation(function(){if(Ie=="skip")te.execCommand("goCharRight");else if(Ie=="skipThree")for(var Ot=0;Ot<3;Ot++)te.execCommand("goCharRight");else if(Ie=="surround"){for(var Nt=te.getSelections(),Ot=0;Ot<Nt.length;Ot++)Nt[Ot]=kt+Nt[Ot]+Lt;te.replaceSelections(Nt,"around"),Nt=te.listSelections().slice();for(var Ot=0;Ot<Nt.length;Ot++)Nt[Ot]=wt(Nt[Ot]);te.setSelections(Nt)}else Ie=="both"?(te.replaceSelection(kt+Lt,null),te.triggerElectric(kt+Lt),te.execCommand("goCharLeft")):Ie=="addFour"&&(te.replaceSelection(kt+kt+kt+kt,"before"),te.execCommand("goCharRight"))})}function ut(te,ne){var ue=te.getRange(dt(ne.line,ne.ch-1),dt(ne.line,ne.ch+1));return ue.length==2?ue:null}function Ee(te,ne){var ue=te.getTokenAt(dt(ne.line,ne.ch+1));return/\bstring/.test(ue.type)&&ue.start==ne.ch&&(ne.ch==0||!/\bstring/.test(te.getTokenTypeAt(ne)))}})},6313:function(fn,on,we){(function(ve){ve(we(89780),we(32855))})(function(ve){ve.defineOption("autoCloseTags",!1,function(nt,De,wt){if(wt!=ve.Init&&wt&&nt.removeKeyMap("autoCloseTags"),!!De){var Ve={name:"autoCloseTags"};(typeof De!="object"||De.whenClosing!==!1)&&(Ve["'/'"]=function(ut){return Ze(ut)}),(typeof De!="object"||De.whenOpening!==!1)&&(Ve["'>'"]=function(ut){return it(ut)}),nt.addKeyMap(Ve)}});var Ye=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],dt=["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 it(nt){if(nt.getOption("disableInput"))return ve.Pass;for(var De=nt.listSelections(),wt=[],Ve=nt.getOption("autoCloseTags"),ut=0;ut<De.length;ut++){if(!De[ut].empty())return ve.Pass;var Ee=De[ut].head,te=nt.getTokenAt(Ee),ne=ve.innerMode(nt.getMode(),te.state),ue=ne.state,se=ne.mode.xmlCurrentTag&&ne.mode.xmlCurrentTag(ue),de=se&&se.name;if(!de)return ve.Pass;var pe=ne.mode.configuration=="html",ye=typeof Ve=="object"&&Ve.dontCloseTags||pe&&Ye,Ce=typeof Ve=="object"&&Ve.indentTags||pe&&dt;te.end>Ee.ch&&(de=de.slice(0,de.length-te.end+Ee.ch));var ze=de.toLowerCase();if(!de||te.type=="string"&&(te.end!=Ee.ch||!/[\"\']/.test(te.string.charAt(te.string.length-1))||te.string.length==1)||te.type=="tag"&&se.close||te.string.indexOf("/")==Ee.ch-te.start-1||ye&&Ue(ye,ze)>-1||xt(nt,ne.mode.xmlCurrentContext&&ne.mode.xmlCurrentContext(ue)||[],de,Ee,!0))return ve.Pass;var Te=typeof Ve=="object"&&Ve.emptyTags;if(Te&&Ue(Te,de)>-1){wt[ut]={text:"/>",newPos:ve.Pos(Ee.line,Ee.ch+2)};continue}var Ie=Ce&&Ue(Ce,ze)>-1;wt[ut]={indent:Ie,text:">"+(Ie?`
`:"")+"</"+de+">",newPos:Ie?ve.Pos(Ee.line+1,0):ve.Pos(Ee.line,Ee.ch+1)}}for(var Oe=typeof Ve=="object"&&Ve.dontIndentOnAutoClose,ut=De.length-1;ut>=0;ut--){var Re=wt[ut];nt.replaceRange(Re.text,De[ut].head,De[ut].anchor,"+insert");var rt=nt.listSelections().slice(0);rt[ut]={head:Re.newPos,anchor:Re.newPos},nt.setSelections(rt),!Oe&&Re.indent&&(nt.indentLine(Re.newPos.line,null,!0),nt.indentLine(Re.newPos.line+1,null,!0))}}function at(nt,De){for(var wt=nt.listSelections(),Ve=[],ut=De?"/":"</",Ee=nt.getOption("autoCloseTags"),te=typeof Ee=="object"&&Ee.dontIndentOnSlash,ne=0;ne<wt.length;ne++){if(!wt[ne].empty())return ve.Pass;var ue=wt[ne].head,se=nt.getTokenAt(ue),de=ve.innerMode(nt.getMode(),se.state),pe=de.state;if(De&&(se.type=="string"||se.string.charAt(0)!="<"||se.start!=ue.ch-1))return ve.Pass;var ye,Ce=de.mode.name!="xml"&&nt.getMode().name=="htmlmixed";if(Ce&&de.mode.name=="javascript")ye=ut+"script";else if(Ce&&de.mode.name=="css")ye=ut+"style";else{var ze=de.mode.xmlCurrentContext&&de.mode.xmlCurrentContext(pe);if(!ze||ze.length&&xt(nt,ze,ze[ze.length-1],ue))return ve.Pass;ye=ut+ze[ze.length-1]}nt.getLine(ue.line).charAt(se.end)!=">"&&(ye+=">"),Ve[ne]=ye}if(nt.replaceSelections(Ve),wt=nt.listSelections(),!te)for(var ne=0;ne<wt.length;ne++)(ne==wt.length-1||wt[ne].head.line<wt[ne+1].head.line)&&nt.indentLine(wt[ne].head.line)}function Ze(nt){return nt.getOption("disableInput")?ve.Pass:at(nt,!0)}ve.commands.closeTag=function(nt){return at(nt)};function Ue(nt,De){if(nt.indexOf)return nt.indexOf(De);for(var wt=0,Ve=nt.length;wt<Ve;++wt)if(nt[wt]==De)return wt;return-1}function xt(nt,De,wt,Ve,ut){if(!ve.scanForClosingTag)return!1;var Ee=Math.min(nt.lastLine()+1,Ve.line+500),te=ve.scanForClosingTag(nt,Ve,null,Ee);if(!te||te.tag!=wt)return!1;for(var ne=ut?1:0,ue=De.length-1;ue>=0&&De[ue]==wt;ue--)++ne;Ve=te.to;for(var ue=1;ue<ne;ue++){var se=ve.scanForClosingTag(nt,Ve,null,Ee);if(!se||se.tag!=wt)return!1;Ve=se.to}return!0}})},32855:function(fn,on,we){(function(ve){ve(we(89780))})(function(ve){"use strict";var Ye=ve.Pos;function dt(ue,se){return ue.line-se.line||ue.ch-se.ch}var it="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",at=it+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",Ze=new RegExp("<(/?)(["+it+"]["+at+"]*)","g");function Ue(ue,se,de,pe){this.line=se,this.ch=de,this.cm=ue,this.text=ue.getLine(se),this.min=pe?Math.max(pe.from,ue.firstLine()):ue.firstLine(),this.max=pe?Math.min(pe.to-1,ue.lastLine()):ue.lastLine()}function xt(ue,se){var de=ue.cm.getTokenTypeAt(Ye(ue.line,se));return de&&/\btag\b/.test(de)}function nt(ue){if(!(ue.line>=ue.max))return ue.ch=0,ue.text=ue.cm.getLine(++ue.line),!0}function De(ue){if(!(ue.line<=ue.min))return ue.text=ue.cm.getLine(--ue.line),ue.ch=ue.text.length,!0}function wt(ue){for(;;){var se=ue.text.indexOf(">",ue.ch);if(se==-1){if(nt(ue))continue;return}if(!xt(ue,se+1)){ue.ch=se+1;continue}var de=ue.text.lastIndexOf("/",se),pe=de>-1&&!/\S/.test(ue.text.slice(de+1,se));return ue.ch=se+1,pe?"selfClose":"regular"}}function Ve(ue){for(;;){var se=ue.ch?ue.text.lastIndexOf("<",ue.ch-1):-1;if(se==-1){if(De(ue))continue;return}if(!xt(ue,se+1)){ue.ch=se;continue}Ze.lastIndex=se,ue.ch=se;var de=Ze.exec(ue.text);if(de&&de.index==se)return de}}function ut(ue){for(;;){Ze.lastIndex=ue.ch;var se=Ze.exec(ue.text);if(!se){if(nt(ue))continue;return}if(!xt(ue,se.index+1)){ue.ch=se.index+1;continue}return ue.ch=se.index+se[0].length,se}}function Ee(ue){for(;;){var se=ue.ch?ue.text.lastIndexOf(">",ue.ch-1):-1;if(se==-1){if(De(ue))continue;return}if(!xt(ue,se+1)){ue.ch=se;continue}var de=ue.text.lastIndexOf("/",se),pe=de>-1&&!/\S/.test(ue.text.slice(de+1,se));return ue.ch=se+1,pe?"selfClose":"regular"}}function te(ue,se){for(var de=[];;){var pe=ut(ue),ye,Ce=ue.line,ze=ue.ch-(pe?pe[0].length:0);if(!pe||!(ye=wt(ue)))return;if(ye!="selfClose")if(pe[1]){for(var Te=de.length-1;Te>=0;--Te)if(de[Te]==pe[2]){de.length=Te;break}if(Te<0&&(!se||se==pe[2]))return{tag:pe[2],from:Ye(Ce,ze),to:Ye(ue.line,ue.ch)}}else de.push(pe[2])}}function ne(ue,se){for(var de=[];;){var pe=Ee(ue);if(!pe)return;if(pe=="selfClose"){Ve(ue);continue}var ye=ue.line,Ce=ue.ch,ze=Ve(ue);if(!ze)return;if(ze[1])de.push(ze[2]);else{for(var Te=de.length-1;Te>=0;--Te)if(de[Te]==ze[2]){de.length=Te;break}if(Te<0&&(!se||se==ze[2]))return{tag:ze[2],from:Ye(ue.line,ue.ch),to:Ye(ye,Ce)}}}}ve.registerHelper("fold","xml",function(ue,se){for(var de=new Ue(ue,se.line,0);;){var pe=ut(de);if(!pe||de.line!=se.line)return;var ye=wt(de);if(!ye)return;if(!pe[1]&&ye!="selfClose"){var Ce=Ye(de.line,de.ch),ze=te(de,pe[2]);return ze&&dt(ze.from,Ce)>0?{from:Ce,to:ze.from}:null}}}),ve.findMatchingTag=function(ue,se,de){var pe=new Ue(ue,se.line,se.ch,de);if(!(pe.text.indexOf(">")==-1&&pe.text.indexOf("<")==-1)){var ye=wt(pe),Ce=ye&&Ye(pe.line,pe.ch),ze=ye&&Ve(pe);if(!(!ye||!ze||dt(pe,se)>0)){var Te={from:Ye(pe.line,pe.ch),to:Ce,tag:ze[2]};return ye=="selfClose"?{open:Te,close:null,at:"open"}:ze[1]?{open:ne(pe,ze[2]),close:Te,at:"close"}:(pe=new Ue(ue,Ce.line,Ce.ch,de),{open:Te,close:te(pe,ze[2]),at:"open"})}}},ve.findEnclosingTag=function(ue,se,de,pe){for(var ye=new Ue(ue,se.line,se.ch,de);;){var Ce=ne(ye,pe);if(!Ce)break;var ze=new Ue(ue,se.line,se.ch,de),Te=te(ze,Ce.tag);if(Te)return{open:Ce,close:Te}}},ve.scanForClosingTag=function(ue,se,de,pe){var ye=new Ue(ue,se.line,se.ch,pe?{from:0,to:pe}:null);return te(ye,de)}})},89780:function(fn){(function(on,we){fn.exports=we()})(this,function(){"use strict";var on=navigator.userAgent,we=navigator.platform,ve=/gecko\/\d/i.test(on),Ye=/MSIE \d/.test(on),dt=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(on),it=/Edge\/(\d+)/.exec(on),at=Ye||dt||it,Ze=at&&(Ye?document.documentMode||6:+(it||dt)[1]),Ue=!it&&/WebKit\//.test(on),xt=Ue&&/Qt\/\d+\.\d+/.test(on),nt=!it&&/Chrome\//.test(on),De=/Opera\//.test(on),wt=/Apple Computer/.test(navigator.vendor),Ve=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(on),ut=/PhantomJS/.test(on),Ee=!it&&/AppleWebKit/.test(on)&&/Mobile\/\w+/.test(on),te=/Android/.test(on),ne=Ee||te||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(on),ue=Ee||/Mac/.test(we),se=/\bCrOS\b/.test(on),de=/win/i.test(we),pe=De&&on.match(/Version\/(\d*\.\d*)/);pe&&(pe=Number(pe[1])),pe&&pe>=15&&(De=!1,Ue=!0);var ye=ue&&(xt||De&&(pe==null||pe<12.11)),Ce=ve||at&&Ze>=9;function ze(ie){return new RegExp("(^|\\s)"+ie+"(?:$|\\s)\\s*")}var Te=function(ie,ae){var fe=ie.className,ce=ze(ae).exec(fe);if(ce){var me=fe.slice(ce.index+ce[0].length);ie.className=fe.slice(0,ce.index)+(me?ce[1]+me:"")}};function Ie(ie){for(var ae=ie.childNodes.length;ae>0;--ae)ie.removeChild(ie.firstChild);return ie}function Oe(ie,ae){return Ie(ie).appendChild(ae)}function Re(ie,ae,fe,ce){var me=document.createElement(ie);if(fe&&(me.className=fe),ce&&(me.style.cssText=ce),typeof ae=="string")me.appendChild(document.createTextNode(ae));else if(ae)for(var Me=0;Me<ae.length;++Me)me.appendChild(ae[Me]);return me}function rt(ie,ae,fe,ce){var me=Re(ie,ae,fe,ce);return me.setAttribute("role","presentation"),me}var ot;document.createRange?ot=function(ie,ae,fe,ce){var me=document.createRange();return me.setEnd(ce||ie,fe),me.setStart(ie,ae),me}:ot=function(ie,ae,fe){var ce=document.body.createTextRange();try{ce.moveToElementText(ie.parentNode)}catch(me){return ce}return ce.collapse(!0),ce.moveEnd("character",fe),ce.moveStart("character",ae),ce};function Ct(ie,ae){if(ae.nodeType==3&&(ae=ae.parentNode),ie.contains)return ie.contains(ae);do if(ae.nodeType==11&&(ae=ae.host),ae==ie)return!0;while(ae=ae.parentNode)}function gt(){var ie;try{ie=document.activeElement}catch(ae){ie=document.body||null}for(;ie&&ie.shadowRoot&&ie.shadowRoot.activeElement;)ie=ie.shadowRoot.activeElement;return ie}function kt(ie,ae){var fe=ie.className;ze(ae).test(fe)||(ie.className+=(fe?" ":"")+ae)}function Lt(ie,ae){for(var fe=ie.split(" "),ce=0;ce<fe.length;ce++)fe[ce]&&!ze(fe[ce]).test(ae)&&(ae+=" "+fe[ce]);return ae}var Ot=function(ie){ie.select()};Ee?Ot=function(ie){ie.selectionStart=0,ie.selectionEnd=ie.value.length}:at&&(Ot=function(ie){try{ie.select()}catch(ae){}});function Nt(ie){var ae=Array.prototype.slice.call(arguments,1);return function(){return ie.apply(null,ae)}}function tn(ie,ae,fe){ae||(ae={});for(var ce in ie)ie.hasOwnProperty(ce)&&(fe!==!1||!ae.hasOwnProperty(ce))&&(ae[ce]=ie[ce]);return ae}function st(ie,ae,fe,ce,me){ae==null&&(ae=ie.search(/[^\s\u00a0]/),ae==-1&&(ae=ie.length));for(var Me=ce||0,Ge=me||0;;){var qe=ie.indexOf(" ",Me);if(qe<0||qe>=ae)return Ge+(ae-Me);Ge+=qe-Me,Ge+=fe-Ge%fe,Me=qe+1}}var He=function(){this.id=null,this.f=null,this.time=0,this.handler=Nt(this.onTimeout,this)};He.prototype.onTimeout=function(ie){ie.id=0,ie.time<=+new Date?ie.f():setTimeout(ie.handler,ie.time-+new Date)},He.prototype.set=function(ie,ae){this.f=ae;var fe=+new Date+ie;(!this.id||fe<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,ie),this.time=fe)};function Rt(ie,ae){for(var fe=0;fe<ie.length;++fe)if(ie[fe]==ae)return fe;return-1}var Zt=50,_t={toString:function(){return"CodeMirror.Pass"}},Mt={scroll:!1},jt={origin:"*mouse"},an={origin:"+move"};function Dn(ie,ae,fe){for(var ce=0,me=0;;){var Me=ie.indexOf(" ",ce);Me==-1&&(Me=ie.length);var Ge=Me-ce;if(Me==ie.length||me+Ge>=ae)return ce+Math.min(Ge,ae-me);if(me+=Me-ce,me+=fe-me%fe,ce=Me+1,me>=ae)return ce}}var Dt=[""];function gn(ie){for(;Dt.length<=ie;)Dt.push(yt(Dt)+" ");return Dt[ie]}function yt(ie){return ie[ie.length-1]}function Zn(ie,ae){for(var fe=[],ce=0;ce<ie.length;ce++)fe[ce]=ae(ie[ce],ce);return fe}function vi(ie,ae,fe){for(var ce=0,me=fe(ae);ce<ie.length&&fe(ie[ce])<=me;)ce++;ie.splice(ce,0,ae)}function We(){}function Fe(ie,ae){var fe;return Object.create?fe=Object.create(ie):(We.prototype=ie,fe=new We),ae&&tn(ae,fe),fe}var xe=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Ne(ie){return/\w/.test(ie)||ie>"\x80"&&(ie.toUpperCase()!=ie.toLowerCase()||xe.test(ie))}function _e(ie,ae){return ae?ae.source.indexOf("\\w")>-1&&Ne(ie)?!0:ae.test(ie):Ne(ie)}function be(ie){for(var ae in ie)if(ie.hasOwnProperty(ae)&&ie[ae])return!1;return!0}var tt=/[\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 Xt(ie){return ie.charCodeAt(0)>=768&&tt.test(ie)}function Bt(ie,ae,fe){for(;(fe<0?ae>0:ae<ie.length)&&Xt(ie.charAt(ae));)ae+=fe;return ae}function nn(ie,ae,fe){for(var ce=ae>fe?-1:1;;){if(ae==fe)return ae;var me=(ae+fe)/2,Me=ce<0?Math.ceil(me):Math.floor(me);if(Me==ae)return ie(Me)?ae:fe;ie(Me)?fe=Me:ae=Me+ce}}function Tt(ie,ae,fe,ce){if(!ie)return ce(ae,fe,"ltr",0);for(var me=!1,Me=0;Me<ie.length;++Me){var Ge=ie[Me];(Ge.from<fe&&Ge.to>ae||ae==fe&&Ge.to==ae)&&(ce(Math.max(Ge.from,ae),Math.min(Ge.to,fe),Ge.level==1?"rtl":"ltr",Me),me=!0)}me||ce(ae,fe,"ltr")}var bt=null;function zt(ie,ae,fe){var ce;bt=null;for(var me=0;me<ie.length;++me){var Me=ie[me];if(Me.from<ae&&Me.to>ae)return me;Me.to==ae&&(Me.from!=Me.to&&fe=="before"?ce=me:bt=me),Me.from==ae&&(Me.from!=Me.to&&fe!="before"?ce=me:bt=me)}return ce!=null?ce:bt}var qt=function(){var ie="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",ae="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function fe(mt){return mt<=247?ie.charAt(mt):1424<=mt&&mt<=1524?"R":1536<=mt&&mt<=1785?ae.charAt(mt-1536):1774<=mt&&mt<=2220?"r":8192<=mt&&mt<=8203?"w":mt==8204?"b":"L"}var ce=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,me=/[stwN]/,Me=/[LRr]/,Ge=/[Lb1n]/,qe=/[1n]/;function Xe(mt,hn,At){this.level=mt,this.from=hn,this.to=At}return function(mt,hn){var At=hn=="ltr"?"L":"R";if(mt.length==0||hn=="ltr"&&!ce.test(mt))return!1;for(var bn=mt.length,Sn=[],Bi=0;Bi<bn;++Bi)Sn.push(fe(mt.charCodeAt(Bi)));for(var zi=0,Qi=At;zi<bn;++zi){var wr=Sn[zi];wr=="m"?Sn[zi]=Qi:Qi=wr}for(var Hr=0,Nr=At;Hr<bn;++Hr){var Ur=Sn[Hr];Ur=="1"&&Nr=="r"?Sn[Hr]="n":Me.test(Ur)&&(Nr=Ur,Ur=="r"&&(Sn[Hr]="R"))}for(var Lo=1,kr=Sn[0];Lo<bn-1;++Lo){var Uo=Sn[Lo];Uo=="+"&&kr=="1"&&Sn[Lo+1]=="1"?Sn[Lo]="1":Uo==","&&kr==Sn[Lo+1]&&(kr=="1"||kr=="n")&&(Sn[Lo]=kr),kr=Uo}for(var Oa=0;Oa<bn;++Oa){var ms=Sn[Oa];if(ms==",")Sn[Oa]="N";else if(ms=="%"){var _a=void 0;for(_a=Oa+1;_a<bn&&Sn[_a]=="%";++_a);for(var sl=Oa&&Sn[Oa-1]=="!"||_a<bn&&Sn[_a]=="1"?"1":"N",Vs=Oa;Vs<_a;++Vs)Sn[Vs]=sl;Oa=_a-1}}for(var cs=0,xl=At;cs<bn;++cs){var Ts=Sn[cs];xl=="L"&&Ts=="1"?Sn[cs]="L":Me.test(Ts)&&(xl=Ts)}for(var fs=0;fs<bn;++fs)if(me.test(Sn[fs])){var da=void 0;for(da=fs+1;da<bn&&me.test(Sn[da]);++da);for(var Qa=(fs?Sn[fs-1]:At)=="L",ws=(da<bn?Sn[da]:At)=="L",Os=Qa==ws?Qa?"L":"R":At,ou=fs;ou<da;++ou)Sn[ou]=Os;fs=da-1}for(var Ua=[],Ul,ts=0;ts<bn;)if(Ge.test(Sn[ts])){var Bc=ts;for(++ts;ts<bn&&Ge.test(Sn[ts]);++ts);Ua.push(new Xe(0,Bc,ts))}else{var Ol=ts,Pl=Ua.length,ll=hn=="rtl"?1:0;for(++ts;ts<bn&&Sn[ts]!="L";++ts);for(var La=Ol;La<ts;)if(qe.test(Sn[La])){Ol<La&&(Ua.splice(Pl,0,new Xe(1,Ol,La)),Pl+=ll);var Cs=La;for(++La;La<ts&&qe.test(Sn[La]);++La);Ua.splice(Pl,0,new Xe(2,Cs,La)),Pl+=ll,Ol=La}else++La;Ol<ts&&Ua.splice(Pl,0,new Xe(1,Ol,ts))}return hn=="ltr"&&(Ua[0].level==1&&(Ul=mt.match(/^\s+/))&&(Ua[0].from=Ul[0].length,Ua.unshift(new Xe(0,0,Ul[0].length))),yt(Ua).level==1&&(Ul=mt.match(/\s+$/))&&(yt(Ua).to-=Ul[0].length,Ua.push(new Xe(0,bn-Ul[0].length,bn)))),hn=="rtl"?Ua.reverse():Ua}}();function pn(ie,ae){var fe=ie.order;return fe==null&&(fe=ie.order=qt(ie.text,ae)),fe}var ei=[],wn=function(ie,ae,fe){if(ie.addEventListener)ie.addEventListener(ae,fe,!1);else if(ie.attachEvent)ie.attachEvent("on"+ae,fe);else{var ce=ie._handlers||(ie._handlers={});ce[ae]=(ce[ae]||ei).concat(fe)}};function Fn(ie,ae){return ie._handlers&&ie._handlers[ae]||ei}function Ci(ie,ae,fe){if(ie.removeEventListener)ie.removeEventListener(ae,fe,!1);else if(ie.detachEvent)ie.detachEvent("on"+ae,fe);else{var ce=ie._handlers,me=ce&&ce[ae];if(me){var Me=Rt(me,fe);Me>-1&&(ce[ae]=me.slice(0,Me).concat(me.slice(Me+1)))}}}function $n(ie,ae){var fe=Fn(ie,ae);if(fe.length)for(var ce=Array.prototype.slice.call(arguments,2),me=0;me<fe.length;++me)fe[me].apply(null,ce)}function bi(ie,ae,fe){return typeof ae=="string"&&(ae={type:ae,preventDefault:function(){this.defaultPrevented=!0}}),$n(ie,fe||ae.type,ie,ae),qi(ae)||ae.codemirrorIgnore}function hi(ie){var ae=ie._handlers&&ie._handlers.cursorActivity;if(ae)for(var fe=ie.curOp.cursorActivityHandlers||(ie.curOp.cursorActivityHandlers=[]),ce=0;ce<ae.length;++ce)Rt(fe,ae[ce])==-1&&fe.push(ae[ce])}function Di(ie,ae){return Fn(ie,ae).length>0}function Gi(ie){ie.prototype.on=function(ae,fe){wn(this,ae,fe)},ie.prototype.off=function(ae,fe){Ci(this,ae,fe)}}function Ji(ie){ie.preventDefault?ie.preventDefault():ie.returnValue=!1}function Zr(ie){ie.stopPropagation?ie.stopPropagation():ie.cancelBubble=!0}function qi(ie){return ie.defaultPrevented!=null?ie.defaultPrevented:ie.returnValue==!1}function ii(ie){Ji(ie),Zr(ie)}function so(ie){return ie.target||ie.srcElement}function Kr(ie){var ae=ie.which;return ae==null&&(ie.button&1?ae=1:ie.button&2?ae=3:ie.button&4&&(ae=2)),ue&&ie.ctrlKey&&ae==1&&(ae=3),ae}var qr=function(){if(at&&Ze<9)return!1;var ie=Re("div");return"draggable"in ie||"dragDrop"in ie}(),io;function Fo(ie){if(io==null){var ae=Re("span","\u200B");Oe(ie,Re("span",[ae,document.createTextNode("x")])),ie.firstChild.offsetHeight!=0&&(io=ae.offsetWidth<=1&&ae.offsetHeight>2&&!(at&&Ze<8))}var fe=io?Re("span","\u200B"):Re("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return fe.setAttribute("cm-text",""),fe}var lo;function Ar(ie){if(lo!=null)return lo;var ae=Oe(ie,document.createTextNode("A\u062EA")),fe=ot(ae,0,1).getBoundingClientRect(),ce=ot(ae,1,2).getBoundingClientRect();return Ie(ie),!fe||fe.left==fe.right?!1:lo=ce.right-fe.right<3}var ro=`
b`.split(/\n/).length!=3?function(ie){for(var ae=0,fe=[],ce=ie.length;ae<=ce;){var me=ie.indexOf(`
`,ae);me==-1&&(me=ie.length);var Me=ie.slice(ae,ie.charAt(me-1)=="\r"?me-1:me),Ge=Me.indexOf("\r");Ge!=-1?(fe.push(Me.slice(0,Ge)),ae+=Ge+1):(fe.push(Me),ae=me+1)}return fe}:function(ie){return ie.split(/\r\n?|\n/)},Le=window.getSelection?function(ie){try{return ie.selectionStart!=ie.selectionEnd}catch(ae){return!1}}:function(ie){var ae;try{ae=ie.ownerDocument.selection.createRange()}catch(fe){}return!ae||ae.parentElement()!=ie?!1:ae.compareEndPoints("StartToEnd",ae)!=0},xn=function(){var ie=Re("div");return"oncopy"in ie?!0:(ie.setAttribute("oncopy","return;"),typeof ie.oncopy=="function")}(),Qn=null;function gi(ie){if(Qn!=null)return Qn;var ae=Oe(ie,Re("span","x")),fe=ae.getBoundingClientRect(),ce=ot(ae,0,1).getBoundingClientRect();return Qn=Math.abs(fe.left-ce.left)>1}var yi={},ti={};function Yi(ie,ae){arguments.length>2&&(ae.dependencies=Array.prototype.slice.call(arguments,2)),yi[ie]=ae}function cr(ie,ae){ti[ie]=ae}function Sr(ie){if(typeof ie=="string"&&ti.hasOwnProperty(ie))ie=ti[ie];else if(ie&&typeof ie.name=="string"&&ti.hasOwnProperty(ie.name)){var ae=ti[ie.name];typeof ae=="string"&&(ae={name:ae}),ie=Fe(ae,ie),ie.name=ae.name}else{if(typeof ie=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(ie))return Sr("application/xml");if(typeof ie=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(ie))return Sr("application/json")}return typeof ie=="string"?{name:ie}:ie||{name:"null"}}function Jt(ie,ae){ae=Sr(ae);var fe=yi[ae.name];if(!fe)return Jt(ie,"text/plain");var ce=fe(ie,ae);if(Vt.hasOwnProperty(ae.name)){var me=Vt[ae.name];for(var Me in me)me.hasOwnProperty(Me)&&(ce.hasOwnProperty(Me)&&(ce["_"+Me]=ce[Me]),ce[Me]=me[Me])}if(ce.name=ae.name,ae.helperType&&(ce.helperType=ae.helperType),ae.modeProps)for(var Ge in ae.modeProps)ce[Ge]=ae.modeProps[Ge];return ce}var Vt={};function It(ie,ae){var fe=Vt.hasOwnProperty(ie)?Vt[ie]:Vt[ie]={};tn(ae,fe)}function Ei(ie,ae){if(ae===!0)return ae;if(ie.copyState)return ie.copyState(ae);var fe={};for(var ce in ae){var me=ae[ce];me instanceof Array&&(me=me.concat([])),fe[ce]=me}return fe}function Ii(ie,ae){for(var fe;ie.innerMode&&(fe=ie.innerMode(ae),!(!fe||fe.mode==ie));)ae=fe.state,ie=fe.mode;return fe||{mode:ie,state:ae}}function ji(ie,ae,fe){return ie.startState?ie.startState(ae,fe):!0}var Xn=function(ie,ae,fe){this.pos=this.start=0,this.string=ie,this.tabSize=ae||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=fe};Xn.prototype.eol=function(){return this.pos>=this.string.length},Xn.prototype.sol=function(){return this.pos==this.lineStart},Xn.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Xn.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Xn.prototype.eat=function(ie){var ae=this.string.charAt(this.pos),fe;if(typeof ie=="string"?fe=ae==ie:fe=ae&&(ie.test?ie.test(ae):ie(ae)),fe)return++this.pos,ae},Xn.prototype.eatWhile=function(ie){for(var ae=this.pos;this.eat(ie););return this.pos>ae},Xn.prototype.eatSpace=function(){for(var ie=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>ie},Xn.prototype.skipToEnd=function(){this.pos=this.string.length},Xn.prototype.skipTo=function(ie){var ae=this.string.indexOf(ie,this.pos);if(ae>-1)return this.pos=ae,!0},Xn.prototype.backUp=function(ie){this.pos-=ie},Xn.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=st(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?st(this.string,this.lineStart,this.tabSize):0)},Xn.prototype.indentation=function(){return st(this.string,null,this.tabSize)-(this.lineStart?st(this.string,this.lineStart,this.tabSize):0)},Xn.prototype.match=function(ie,ae,fe){if(typeof ie=="string"){var ce=function(Ge){return fe?Ge.toLowerCase():Ge},me=this.string.substr(this.pos,ie.length);if(ce(me)==ce(ie))return ae!==!1&&(this.pos+=ie.length),!0}else{var Me=this.string.slice(this.pos).match(ie);return Me&&Me.index>0?null:(Me&&ae!==!1&&(this.pos+=Me[0].length),Me)}},Xn.prototype.current=function(){return this.string.slice(this.start,this.pos)},Xn.prototype.hideFirstChars=function(ie,ae){this.lineStart+=ie;try{return ae()}finally{this.lineStart-=ie}},Xn.prototype.lookAhead=function(ie){var ae=this.lineOracle;return ae&&ae.lookAhead(ie)},Xn.prototype.baseToken=function(){var ie=this.lineOracle;return ie&&ie.baseToken(this.pos)};function Ai(ie,ae){if(ae-=ie.first,ae<0||ae>=ie.size)throw new Error("There is no line "+(ae+ie.first)+" in the document.");for(var fe=ie;!fe.lines;)for(var ce=0;;++ce){var me=fe.children[ce],Me=me.chunkSize();if(ae<Me){fe=me;break}ae-=Me}return fe.lines[ae]}function ur(ie,ae,fe){var ce=[],me=ae.line;return ie.iter(ae.line,fe.line+1,function(Me){var Ge=Me.text;me==fe.line&&(Ge=Ge.slice(0,fe.ch)),me==ae.line&&(Ge=Ge.slice(ae.ch)),ce.push(Ge),++me}),ce}function Tr(ie,ae,fe){var ce=[];return ie.iter(ae,fe,function(me){ce.push(me.text)}),ce}function br(ie,ae){var fe=ae-ie.height;if(fe)for(var ce=ie;ce;ce=ce.parent)ce.height+=fe}function et(ie){if(ie.parent==null)return null;for(var ae=ie.parent,fe=Rt(ae.lines,ie),ce=ae.parent;ce;ae=ce,ce=ce.parent)for(var me=0;ce.children[me]!=ae;++me)fe+=ce.children[me].chunkSize();return fe+ae.first}function Ft(ie,ae){var fe=ie.first;e:do{for(var ce=0;ce<ie.children.length;++ce){var me=ie.children[ce],Me=me.height;if(ae<Me){ie=me;continue e}ae-=Me,fe+=me.chunkSize()}return fe}while(!ie.lines);for(var Ge=0;Ge<ie.lines.length;++Ge){var qe=ie.lines[Ge],Xe=qe.height;if(ae<Xe)break;ae-=Xe}return fe+Ge}function Tn(ie,ae){return ae>=ie.first&&ae<ie.first+ie.size}function Yn(ie,ae){return String(ie.lineNumberFormatter(ae+ie.firstLineNumber))}function en(ie,ae,fe){if(fe===void 0&&(fe=null),!(this instanceof en))return new en(ie,ae,fe);this.line=ie,this.ch=ae,this.sticky=fe}function Gn(ie,ae){return ie.line-ae.line||ie.ch-ae.ch}function kn(ie,ae){return ie.sticky==ae.sticky&&Gn(ie,ae)==0}function _n(ie){return en(ie.line,ie.ch)}function xi(ie,ae){return Gn(ie,ae)<0?ae:ie}function mi(ie,ae){return Gn(ie,ae)<0?ie:ae}function sn(ie,ae){return Math.max(ie.first,Math.min(ae,ie.first+ie.size-1))}function ki(ie,ae){if(ae.line<ie.first)return en(ie.first,0);var fe=ie.first+ie.size-1;return ae.line>fe?en(fe,Ai(ie,fe).text.length):Cr(ae,Ai(ie,ae.line).text.length)}function Cr(ie,ae){var fe=ie.ch;return fe==null||fe>ae?en(ie.line,ae):fe<0?en(ie.line,0):ie}function gr(ie,ae){for(var fe=[],ce=0;ce<ae.length;ce++)fe[ce]=ki(ie,ae[ce]);return fe}var dr=function(ie,ae){this.state=ie,this.lookAhead=ae},mn=function(ie,ae,fe,ce){this.state=ae,this.doc=ie,this.line=fe,this.maxLookAhead=ce||0,this.baseTokens=null,this.baseTokenPos=1};mn.prototype.lookAhead=function(ie){var ae=this.doc.getLine(this.line+ie);return ae!=null&&ie>this.maxLookAhead&&(this.maxLookAhead=ie),ae},mn.prototype.baseToken=function(ie){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=ie;)this.baseTokenPos+=2;var ae=this.baseTokens[this.baseTokenPos+1];return{type:ae&&ae.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-ie}},mn.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},mn.fromSaved=function(ie,ae,fe){return ae instanceof dr?new mn(ie,Ei(ie.mode,ae.state),fe,ae.lookAhead):new mn(ie,Ei(ie.mode,ae),fe)},mn.prototype.save=function(ie){var ae=ie!==!1?Ei(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new dr(ae,this.maxLookAhead):ae};function Ir(ie,ae,fe,ce){var me=[ie.state.modeGen],Me={};Fr(ie,ae.text,ie.doc.mode,fe,function(mt,hn){return me.push(mt,hn)},Me,ce);for(var Ge=fe.state,qe=function(mt){fe.baseTokens=me;var hn=ie.state.overlays[mt],At=1,bn=0;fe.state=!0,Fr(ie,ae.text,hn.mode,fe,function(Sn,Bi){for(var zi=At;bn<Sn;){var Qi=me[At];Qi>Sn&&me.splice(At,1,Sn,me[At+1],Qi),At+=2,bn=Math.min(Sn,Qi)}if(Bi)if(hn.opaque)me.splice(zi,At-zi,Sn,"overlay "+Bi),At=zi+2;else for(;zi<At;zi+=2){var wr=me[zi+1];me[zi+1]=(wr?wr+" ":"")+"overlay "+Bi}},Me),fe.state=Ge,fe.baseTokens=null,fe.baseTokenPos=1},Xe=0;Xe<ie.state.overlays.length;++Xe)qe(Xe);return{styles:me,classes:Me.bgClass||Me.textClass?Me:null}}function jr(ie,ae,fe){if(!ae.styles||ae.styles[0]!=ie.state.modeGen){var ce=fo(ie,et(ae)),me=ae.text.length>ie.options.maxHighlightLength&&Ei(ie.doc.mode,ce.state),Me=Ir(ie,ae,ce);me&&(ce.state=me),ae.stateAfter=ce.save(!me),ae.styles=Me.styles,Me.classes?ae.styleClasses=Me.classes:ae.styleClasses&&(ae.styleClasses=null),fe===ie.doc.highlightFrontier&&(ie.doc.modeFrontier=Math.max(ie.doc.modeFrontier,++ie.doc.highlightFrontier))}return ae.styles}function fo(ie,ae,fe){var ce=ie.doc,me=ie.display;if(!ce.mode.startState)return new mn(ce,!0,ae);var Me=Dr(ie,ae,fe),Ge=Me>ce.first&&Ai(ce,Me-1).stateAfter,qe=Ge?mn.fromSaved(ce,Ge,Me):new mn(ce,ji(ce.mode),Me);return ce.iter(Me,ae,function(Xe){yn(ie,Xe.text,qe);var mt=qe.line;Xe.stateAfter=mt==ae-1||mt%5==0||mt>=me.viewFrom&&mt<me.viewTo?qe.save():null,qe.nextLine()}),fe&&(ce.modeFrontier=qe.line),qe}function yn(ie,ae,fe,ce){var me=ie.doc.mode,Me=new Xn(ae,ie.options.tabSize,fe);for(Me.start=Me.pos=ce||0,ae==""&&ni(me,fe.state);!Me.eol();)Hi(me,Me,fe.state),Me.start=Me.pos}function ni(ie,ae){if(ie.blankLine)return ie.blankLine(ae);if(ie.innerMode){var fe=Ii(ie,ae);if(fe.mode.blankLine)return fe.mode.blankLine(fe.state)}}function Hi(ie,ae,fe,ce){for(var me=0;me<10;me++){ce&&(ce[0]=Ii(ie,fe).mode);var Me=ie.token(ae,fe);if(ae.pos>ae.start)return Me}throw new Error("Mode "+ie.name+" failed to advance stream.")}var Ri=function(ie,ae,fe){this.start=ie.start,this.end=ie.pos,this.string=ie.current(),this.type=ae||null,this.state=fe};function Xi(ie,ae,fe,ce){var me=ie.doc,Me=me.mode,Ge;ae=ki(me,ae);var qe=Ai(me,ae.line),Xe=fo(ie,ae.line,fe),mt=new Xn(qe.text,ie.options.tabSize,Xe),hn;for(ce&&(hn=[]);(ce||mt.pos<ae.ch)&&!mt.eol();)mt.start=mt.pos,Ge=Hi(Me,mt,Xe.state),ce&&hn.push(new Ri(mt,Ge,Ei(me.mode,Xe.state)));return ce?hn:new Ri(mt,Ge,Xe.state)}function $i(ie,ae){if(ie)for(;;){var fe=ie.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!fe)break;ie=ie.slice(0,fe.index)+ie.slice(fe.index+fe[0].length);var ce=fe[1]?"bgClass":"textClass";ae[ce]==null?ae[ce]=fe[2]:new RegExp("(?:^|\\s)"+fe[2]+"(?:$|\\s)").test(ae[ce])||(ae[ce]+=" "+fe[2])}return ie}function Fr(ie,ae,fe,ce,me,Me,Ge){var qe=fe.flattenSpans;qe==null&&(qe=ie.options.flattenSpans);var Xe=0,mt=null,hn=new Xn(ae,ie.options.tabSize,ce),At,bn=ie.options.addModeClass&&[null];for(ae==""&&$i(ni(fe,ce.state),Me);!hn.eol();){if(hn.pos>ie.options.maxHighlightLength?(qe=!1,Ge&&yn(ie,ae,ce,hn.pos),hn.pos=ae.length,At=null):At=$i(Hi(fe,hn,ce.state,bn),Me),bn){var Sn=bn[0].name;Sn&&(At="m-"+(At?Sn+" "+At:Sn))}if(!qe||mt!=At){for(;Xe<hn.start;)Xe=Math.min(hn.start,Xe+5e3),me(Xe,mt);mt=At}hn.start=hn.pos}for(;Xe<hn.pos;){var Bi=Math.min(hn.pos,Xe+5e3);me(Bi,mt),Xe=Bi}}function Dr(ie,ae,fe){for(var ce,me,Me=ie.doc,Ge=fe?-1:ae-(ie.doc.mode.innerMode?1e3:100),qe=ae;qe>Ge;--qe){if(qe<=Me.first)return Me.first;var Xe=Ai(Me,qe-1),mt=Xe.stateAfter;if(mt&&(!fe||qe+(mt instanceof dr?mt.lookAhead:0)<=Me.modeFrontier))return qe;var hn=st(Xe.text,null,ie.options.tabSize);(me==null||ce>hn)&&(me=qe-1,ce=hn)}return me}function Rr(ie,ae){if(ie.modeFrontier=Math.min(ie.modeFrontier,ae),!(ie.highlightFrontier<ae-10)){for(var fe=ie.first,ce=ae-1;ce>fe;ce--){var me=Ai(ie,ce).stateAfter;if(me&&(!(me instanceof dr)||ce+me.lookAhead<ae)){fe=ce+1;break}}ie.highlightFrontier=Math.min(ie.highlightFrontier,fe)}}var Xr=!1,Mn=!1;function ho(){Xr=!0}function ln(){Mn=!0}function rr(ie,ae,fe){this.marker=ie,this.from=ae,this.to=fe}function Vr(ie,ae){if(ie)for(var fe=0;fe<ie.length;++fe){var ce=ie[fe];if(ce.marker==ae)return ce}}function _r(ie,ae){for(var fe,ce=0;ce<ie.length;++ce)ie[ce]!=ae&&(fe||(fe=[])).push(ie[ce]);return fe}function Co(ie,ae){ie.markedSpans=ie.markedSpans?ie.markedSpans.concat([ae]):[ae],ae.marker.attachLine(ie)}function Qr(ie,ae,fe){var ce;if(ie)for(var me=0;me<ie.length;++me){var Me=ie[me],Ge=Me.marker,qe=Me.from==null||(Ge.inclusiveLeft?Me.from<=ae:Me.from<ae);if(qe||Me.from==ae&&Ge.type=="bookmark"&&(!fe||!Me.marker.insertLeft)){var Xe=Me.to==null||(Ge.inclusiveRight?Me.to>=ae:Me.to>ae);(ce||(ce=[])).push(new rr(Ge,Me.from,Xe?null:Me.to))}}return ce}function Or(ie,ae,fe){var ce;if(ie)for(var me=0;me<ie.length;++me){var Me=ie[me],Ge=Me.marker,qe=Me.to==null||(Ge.inclusiveRight?Me.to>=ae:Me.to>ae);if(qe||Me.from==ae&&Ge.type=="bookmark"&&(!fe||Me.marker.insertLeft)){var Xe=Me.from==null||(Ge.inclusiveLeft?Me.from<=ae:Me.from<ae);(ce||(ce=[])).push(new rr(Ge,Xe?null:Me.from-ae,Me.to==null?null:Me.to-ae))}}return ce}function ko(ie,ae){if(ae.full)return null;var fe=Tn(ie,ae.from.line)&&Ai(ie,ae.from.line).markedSpans,ce=Tn(ie,ae.to.line)&&Ai(ie,ae.to.line).markedSpans;if(!fe&&!ce)return null;var me=ae.from.ch,Me=ae.to.ch,Ge=Gn(ae.from,ae.to)==0,qe=Qr(fe,me,Ge),Xe=Or(ce,Me,Ge),mt=ae.text.length==1,hn=yt(ae.text).length+(mt?me:0);if(qe)for(var At=0;At<qe.length;++At){var bn=qe[At];if(bn.to==null){var Sn=Vr(Xe,bn.marker);Sn?mt&&(bn.to=Sn.to==null?null:Sn.to+hn):bn.to=me}}if(Xe)for(var Bi=0;Bi<Xe.length;++Bi){var zi=Xe[Bi];if(zi.to!=null&&(zi.to+=hn),zi.from==null){var Qi=Vr(qe,zi.marker);Qi||(zi.from=hn,mt&&(qe||(qe=[])).push(zi))}else zi.from+=hn,mt&&(qe||(qe=[])).push(zi)}qe&&(qe=Ht(qe)),Xe&&Xe!=qe&&(Xe=Ht(Xe));var wr=[qe];if(!mt){var Hr=ae.text.length-2,Nr;if(Hr>0&&qe)for(var Ur=0;Ur<qe.length;++Ur)qe[Ur].to==null&&(Nr||(Nr=[])).push(new rr(qe[Ur].marker,null,null));for(var Lo=0;Lo<Hr;++Lo)wr.push(Nr);wr.push(Xe)}return wr}function Ht(ie){for(var ae=0;ae<ie.length;++ae){var fe=ie[ae];fe.from!=null&&fe.from==fe.to&&fe.marker.clearWhenEmpty!==!1&&ie.splice(ae--,1)}return ie.length?ie:null}function Cn(ie,ae,fe){var ce=null;if(ie.iter(ae.line,fe.line+1,function(Sn){if(Sn.markedSpans)for(var Bi=0;Bi<Sn.markedSpans.length;++Bi){var zi=Sn.markedSpans[Bi].marker;zi.readOnly&&(!ce||Rt(ce,zi)==-1)&&(ce||(ce=[])).push(zi)}}),!ce)return null;for(var me=[{from:ae,to:fe}],Me=0;Me<ce.length;++Me)for(var Ge=ce[Me],qe=Ge.find(0),Xe=0;Xe<me.length;++Xe){var mt=me[Xe];if(!(Gn(mt.to,qe.from)<0||Gn(mt.from,qe.to)>0)){var hn=[Xe,1],At=Gn(mt.from,qe.from),bn=Gn(mt.to,qe.to);(At<0||!Ge.inclusiveLeft&&!At)&&hn.push({from:mt.from,to:qe.from}),(bn>0||!Ge.inclusiveRight&&!bn)&&hn.push({from:qe.to,to:mt.to}),me.splice.apply(me,hn),Xe+=hn.length-3}}return me}function Ut(ie){var ae=ie.markedSpans;if(ae){for(var fe=0;fe<ae.length;++fe)ae[fe].marker.detachLine(ie);ie.markedSpans=null}}function je(ie,ae){if(ae){for(var fe=0;fe<ae.length;++fe)ae[fe].marker.attachLine(ie);ie.markedSpans=ae}}function ri(ie){return ie.inclusiveLeft?-1:0}function Si(ie){return ie.inclusiveRight?1:0}function $e(ie,ae){var fe=ie.lines.length-ae.lines.length;if(fe!=0)return fe;var ce=ie.find(),me=ae.find(),Me=Gn(ce.from,me.from)||ri(ie)-ri(ae);if(Me)return-Me;var Ge=Gn(ce.to,me.to)||Si(ie)-Si(ae);return Ge||ae.id-ie.id}function rn(ie,ae){var fe=Mn&&ie.markedSpans,ce;if(fe)for(var me=void 0,Me=0;Me<fe.length;++Me)me=fe[Me],me.marker.collapsed&&(ae?me.from:me.to)==null&&(!ce||$e(ce,me.marker)<0)&&(ce=me.marker);return ce}function Wt(ie){return rn(ie,!0)}function Kt(ie){return rn(ie,!1)}function Hn(ie,ae){var fe=Mn&&ie.markedSpans,ce;if(fe)for(var me=0;me<fe.length;++me){var Me=fe[me];Me.marker.collapsed&&(Me.from==null||Me.from<ae)&&(Me.to==null||Me.to>ae)&&(!ce||$e(ce,Me.marker)<0)&&(ce=Me.marker)}return ce}function Bn(ie,ae,fe,ce,me){var Me=Ai(ie,ae),Ge=Mn&&Me.markedSpans;if(Ge)for(var qe=0;qe<Ge.length;++qe){var Xe=Ge[qe];if(Xe.marker.collapsed){var mt=Xe.marker.find(0),hn=Gn(mt.from,fe)||ri(Xe.marker)-ri(me),At=Gn(mt.to,ce)||Si(Xe.marker)-Si(me);if(!(hn>=0&&At<=0||hn<=0&&At>=0)&&(hn<=0&&(Xe.marker.inclusiveRight&&me.inclusiveLeft?Gn(mt.to,fe)>=0:Gn(mt.to,fe)>0)||hn>=0&&(Xe.marker.inclusiveRight&&me.inclusiveLeft?Gn(mt.from,ce)<=0:Gn(mt.from,ce)<0)))return!0}}}function un(ie){for(var ae;ae=Wt(ie);)ie=ae.find(-1,!0).line;return ie}function On(ie){for(var ae;ae=Kt(ie);)ie=ae.find(1,!0).line;return ie}function li(ie){for(var ae,fe;ae=Kt(ie);)ie=ae.find(1,!0).line,(fe||(fe=[])).push(ie);return fe}function ke(ie,ae){var fe=Ai(ie,ae),ce=un(fe);return fe==ce?ae:et(ce)}function ht(ie,ae){if(ae>ie.lastLine())return ae;var fe=Ai(ie,ae),ce;if(!Je(ie,fe))return ae;for(;ce=Kt(fe);)fe=ce.find(1,!0).line;return et(fe)+1}function Je(ie,ae){var fe=Mn&&ae.markedSpans;if(fe){for(var ce=void 0,me=0;me<fe.length;++me)if(ce=fe[me],!!ce.marker.collapsed){if(ce.from==null)return!0;if(!ce.marker.widgetNode&&ce.from==0&&ce.marker.inclusiveLeft&&pt(ie,ae,ce))return!0}}}function pt(ie,ae,fe){if(fe.to==null){var ce=fe.marker.find(1,!0);return pt(ie,ce.line,Vr(ce.line.markedSpans,fe.marker))}if(fe.marker.inclusiveRight&&fe.to==ae.text.length)return!0;for(var me=void 0,Me=0;Me<ae.markedSpans.length;++Me)if(me=ae.markedSpans[Me],me.marker.collapsed&&!me.marker.widgetNode&&me.from==fe.to&&(me.to==null||me.to!=fe.from)&&(me.marker.inclusiveLeft||fe.marker.inclusiveRight)&&pt(ie,ae,me))return!0}function Pt(ie){ie=un(ie);for(var ae=0,fe=ie.parent,ce=0;ce<fe.lines.length;++ce){var me=fe.lines[ce];if(me==ie)break;ae+=me.height}for(var Me=fe.parent;Me;fe=Me,Me=fe.parent)for(var Ge=0;Ge<Me.children.length;++Ge){var qe=Me.children[Ge];if(qe==fe)break;ae+=qe.height}return ae}function $t(ie){if(ie.height==0)return 0;for(var ae=ie.text.length,fe,ce=ie;fe=Wt(ce);){var me=fe.find(0,!0);ce=me.from.line,ae+=me.from.ch-me.to.ch}for(ce=ie;fe=Kt(ce);){var Me=fe.find(0,!0);ae-=ce.text.length-Me.from.ch,ce=Me.to.line,ae+=ce.text.length-Me.to.ch}return ae}function Qt(ie){var ae=ie.display,fe=ie.doc;ae.maxLine=Ai(fe,fe.first),ae.maxLineLength=$t(ae.maxLine),ae.maxLineChanged=!0,fe.iter(function(ce){var me=$t(ce);me>ae.maxLineLength&&(ae.maxLineLength=me,ae.maxLine=ce)})}var dn=function(ie,ae,fe){this.text=ie,je(this,ae),this.height=fe?fe(this):1};dn.prototype.lineNo=function(){return et(this)},Gi(dn);function Nn(ie,ae,fe,ce){ie.text=ae,ie.stateAfter&&(ie.stateAfter=null),ie.styles&&(ie.styles=null),ie.order!=null&&(ie.order=null),Ut(ie),je(ie,fe);var me=ce?ce(ie):1;me!=ie.height&&br(ie,me)}function jn(ie){ie.parent=null,Ut(ie)}var cn={},qn={};function ci(ie,ae){if(!ie||/^\s*$/.test(ie))return null;var fe=ae.addModeClass?qn:cn;return fe[ie]||(fe[ie]=ie.replace(/\S+/g,"cm-$&"))}function vt(ie,ae){var fe=rt("span",null,null,Ue?"padding-right: .1px":null),ce={pre:rt("pre",[fe],"CodeMirror-line"),content:fe,col:0,pos:0,cm:ie,trailingSpace:!1,splitSpaces:ie.getOption("lineWrapping")};ae.measure={};for(var me=0;me<=(ae.rest?ae.rest.length:0);me++){var Me=me?ae.rest[me-1]:ae.line,Ge=void 0;ce.pos=0,ce.addToken=Jn,Ar(ie.display.measure)&&(Ge=pn(Me,ie.doc.direction))&&(ce.addToken=zn(ce.addToken,Ge)),ce.map=[];var qe=ae!=ie.display.externalMeasured&&et(Me);Wn(Me,ce,jr(ie,Me,qe)),Me.styleClasses&&(Me.styleClasses.bgClass&&(ce.bgClass=Lt(Me.styleClasses.bgClass,ce.bgClass||"")),Me.styleClasses.textClass&&(ce.textClass=Lt(Me.styleClasses.textClass,ce.textClass||""))),ce.map.length==0&&ce.map.push(0,0,ce.content.appendChild(Fo(ie.display.measure))),me==0?(ae.measure.map=ce.map,ae.measure.cache={}):((ae.measure.maps||(ae.measure.maps=[])).push(ce.map),(ae.measure.caches||(ae.measure.caches=[])).push({}))}if(Ue){var Xe=ce.content.lastChild;(/\bcm-tab\b/.test(Xe.className)||Xe.querySelector&&Xe.querySelector(".cm-tab"))&&(ce.content.className="cm-tab-wrap-hack")}return $n(ie,"renderLine",ie,ae.line,ce.pre),ce.pre.className&&(ce.textClass=Lt(ce.pre.className,ce.textClass||"")),ce}function Un(ie){var ae=Re("span","\u2022","cm-invalidchar");return ae.title="\\u"+ie.charCodeAt(0).toString(16),ae.setAttribute("aria-label",ae.title),ae}function Jn(ie,ae,fe,ce,me,Me,Ge){if(ae){var qe=ie.splitSpaces?In(ae,ie.trailingSpace):ae,Xe=ie.cm.state.specialChars,mt=!1,hn;if(!Xe.test(ae))ie.col+=ae.length,hn=document.createTextNode(qe),ie.map.push(ie.pos,ie.pos+ae.length,hn),at&&Ze<9&&(mt=!0),ie.pos+=ae.length;else{hn=document.createDocumentFragment();for(var At=0;;){Xe.lastIndex=At;var bn=Xe.exec(ae),Sn=bn?bn.index-At:ae.length-At;if(Sn){var Bi=document.createTextNode(qe.slice(At,At+Sn));at&&Ze<9?hn.appendChild(Re("span",[Bi])):hn.appendChild(Bi),ie.map.push(ie.pos,ie.pos+Sn,Bi),ie.col+=Sn,ie.pos+=Sn}if(!bn)break;At+=Sn+1;var zi=void 0;if(bn[0]==" "){var Qi=ie.cm.options.tabSize,wr=Qi-ie.col%Qi;zi=hn.appendChild(Re("span",gn(wr),"cm-tab")),zi.setAttribute("role","presentation"),zi.setAttribute("cm-text"," "),ie.col+=wr}else bn[0]=="\r"||bn[0]==`
`?(zi=hn.appendChild(Re("span",bn[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),zi.setAttribute("cm-text",bn[0]),ie.col+=1):(zi=ie.cm.options.specialCharPlaceholder(bn[0]),zi.setAttribute("cm-text",bn[0]),at&&Ze<9?hn.appendChild(Re("span",[zi])):hn.appendChild(zi),ie.col+=1);ie.map.push(ie.pos,ie.pos+1,zi),ie.pos++}}if(ie.trailingSpace=qe.charCodeAt(ae.length-1)==32,fe||ce||me||mt||Me||Ge){var Hr=fe||"";ce&&(Hr+=ce),me&&(Hr+=me);var Nr=Re("span",[hn],Hr,Me);if(Ge)for(var Ur in Ge)Ge.hasOwnProperty(Ur)&&Ur!="style"&&Ur!="class"&&Nr.setAttribute(Ur,Ge[Ur]);return ie.content.appendChild(Nr)}ie.content.appendChild(hn)}}function In(ie,ae){if(ie.length>1&&!/ /.test(ie))return ie;for(var fe=ae,ce="",me=0;me<ie.length;me++){var Me=ie.charAt(me);Me==" "&&fe&&(me==ie.length-1||ie.charCodeAt(me+1)==32)&&(Me="\xA0"),ce+=Me,fe=Me==" "}return ce}function zn(ie,ae){return function(fe,ce,me,Me,Ge,qe,Xe){me=me?me+" cm-force-border":"cm-force-border";for(var mt=fe.pos,hn=mt+ce.length;;){for(var At=void 0,bn=0;bn<ae.length&&(At=ae[bn],!(At.to>mt&&At.from<=mt));bn++);if(At.to>=hn)return ie(fe,ce,me,Me,Ge,qe,Xe);ie(fe,ce.slice(0,At.to-mt),me,Me,null,qe,Xe),Me=null,ce=ce.slice(At.to-mt),mt=At.to}}}function oi(ie,ae,fe,ce){var me=!ce&&fe.widgetNode;me&&ie.map.push(ie.pos,ie.pos+ae,me),!ce&&ie.cm.display.input.needsContentAttribute&&(me||(me=ie.content.appendChild(document.createElement("span"))),me.setAttribute("cm-marker",fe.id)),me&&(ie.cm.display.input.setUneditable(me),ie.content.appendChild(me)),ie.pos+=ae,ie.trailingSpace=!1}function Wn(ie,ae,fe){var ce=ie.markedSpans,me=ie.text,Me=0;if(!ce){for(var Ge=1;Ge<fe.length;Ge+=2)ae.addToken(ae,me.slice(Me,Me=fe[Ge]),ci(fe[Ge+1],ae.cm.options));return}for(var qe=me.length,Xe=0,mt=1,hn="",At,bn,Sn=0,Bi,zi,Qi,wr,Hr;;){if(Sn==Xe){Bi=zi=Qi=bn="",Hr=null,wr=null,Sn=1/0;for(var Nr=[],Ur=void 0,Lo=0;Lo<ce.length;++Lo){var kr=ce[Lo],Uo=kr.marker;if(Uo.type=="bookmark"&&kr.from==Xe&&Uo.widgetNode)Nr.push(Uo);else if(kr.from<=Xe&&(kr.to==null||kr.to>Xe||Uo.collapsed&&kr.to==Xe&&kr.from==Xe)){if(kr.to!=null&&kr.to!=Xe&&Sn>kr.to&&(Sn=kr.to,zi=""),Uo.className&&(Bi+=" "+Uo.className),Uo.css&&(bn=(bn?bn+";":"")+Uo.css),Uo.startStyle&&kr.from==Xe&&(Qi+=" "+Uo.startStyle),Uo.endStyle&&kr.to==Sn&&(Ur||(Ur=[])).push(Uo.endStyle,kr.to),Uo.title&&((Hr||(Hr={})).title=Uo.title),Uo.attributes)for(var Oa in Uo.attributes)(Hr||(Hr={}))[Oa]=Uo.attributes[Oa];Uo.collapsed&&(!wr||$e(wr.marker,Uo)<0)&&(wr=kr)}else kr.from>Xe&&Sn>kr.from&&(Sn=kr.from)}if(Ur)for(var ms=0;ms<Ur.length;ms+=2)Ur[ms+1]==Sn&&(zi+=" "+Ur[ms]);if(!wr||wr.from==Xe)for(var _a=0;_a<Nr.length;++_a)oi(ae,0,Nr[_a]);if(wr&&(wr.from||0)==Xe){if(oi(ae,(wr.to==null?qe+1:wr.to)-Xe,wr.marker,wr.from==null),wr.to==null)return;wr.to==Xe&&(wr=!1)}}if(Xe>=qe)break;for(var sl=Math.min(qe,Sn);;){if(hn){var Vs=Xe+hn.length;if(!wr){var cs=Vs>sl?hn.slice(0,sl-Xe):hn;ae.addToken(ae,cs,At?At+Bi:Bi,Qi,Xe+cs.length==Sn?zi:"",bn,Hr)}if(Vs>=sl){hn=hn.slice(sl-Xe),Xe=sl;break}Xe=Vs,Qi=""}hn=me.slice(Me,Me=fe[mt++]),At=ci(fe[mt++],ae.cm.options)}}}function fi(ie,ae,fe){this.line=ae,this.rest=li(ae),this.size=this.rest?et(yt(this.rest))-fe+1:1,this.node=this.text=null,this.hidden=Je(ie,ae)}function pi(ie,ae,fe){for(var ce=[],me,Me=ae;Me<fe;Me=me){var Ge=new fi(ie.doc,Ai(ie.doc,Me),Me);me=Me+Ge.size,ce.push(Ge)}return ce}var ai=null;function Wi(ie){ai?ai.ops.push(ie):ie.ownsGroup=ai={ops:[ie],delayedCallbacks:[]}}function pr(ie){var ae=ie.delayedCallbacks,fe=0;do{for(;fe<ae.length;fe++)ae[fe].call(null);for(var ce=0;ce<ie.ops.length;ce++){var me=ie.ops[ce];if(me.cursorActivityHandlers)for(;me.cursorActivityCalled<me.cursorActivityHandlers.length;)me.cursorActivityHandlers[me.cursorActivityCalled++].call(null,me.cm)}}while(fe<ae.length)}function or(ie,ae){var fe=ie.ownsGroup;if(fe)try{pr(fe)}finally{ai=null,ae(fe)}}var tr=null;function Pi(ie,ae){var fe=Fn(ie,ae);if(fe.length){var ce=Array.prototype.slice.call(arguments,2),me;ai?me=ai.delayedCallbacks:tr?me=tr:(me=tr=[],setTimeout(fr,0));for(var Me=function(qe){me.push(function(){return fe[qe].apply(null,ce)})},Ge=0;Ge<fe.length;++Ge)Me(Ge)}}function fr(){var ie=tr;tr=null;for(var ae=0;ae<ie.length;++ae)ie[ae]()}function nr(ie,ae,fe,ce){for(var me=0;me<ae.changes.length;me++){var Me=ae.changes[me];Me=="text"?En(ie,ae):Me=="gutter"?Ti(ie,ae,fe,ce):Me=="class"?Mi(ie,ae):Me=="widget"&&Vi(ie,ae,ce)}ae.changes=null}function lr(ie){return ie.node==ie.text&&(ie.node=Re("div",null,null,"position: relative"),ie.text.parentNode&&ie.text.parentNode.replaceChild(ie.node,ie.text),ie.node.appendChild(ie.text),at&&Ze<8&&(ie.node.style.zIndex=2)),ie.node}function sr(ie,ae){var fe=ae.bgClass?ae.bgClass+" "+(ae.line.bgClass||""):ae.line.bgClass;if(fe&&(fe+=" CodeMirror-linebackground"),ae.background)fe?ae.background.className=fe:(ae.background.parentNode.removeChild(ae.background),ae.background=null);else if(fe){var ce=lr(ae);ae.background=ce.insertBefore(Re("div",null,fe),ce.firstChild),ie.display.input.setUneditable(ae.background)}}function mr(ie,ae){var fe=ie.display.externalMeasured;return fe&&fe.line==ae.line?(ie.display.externalMeasured=null,ae.measure=fe.measure,fe.built):vt(ie,ae)}function En(ie,ae){var fe=ae.text.className,ce=mr(ie,ae);ae.text==ae.node&&(ae.node=ce.pre),ae.text.parentNode.replaceChild(ce.pre,ae.text),ae.text=ce.pre,ce.bgClass!=ae.bgClass||ce.textClass!=ae.textClass?(ae.bgClass=ce.bgClass,ae.textClass=ce.textClass,Mi(ie,ae)):fe&&(ae.text.className=fe)}function Mi(ie,ae){sr(ie,ae),ae.line.wrapClass?lr(ae).className=ae.line.wrapClass:ae.node!=ae.text&&(ae.node.className="");var fe=ae.textClass?ae.textClass+" "+(ae.line.textClass||""):ae.line.textClass;ae.text.className=fe||""}function Ti(ie,ae,fe,ce){if(ae.gutter&&(ae.node.removeChild(ae.gutter),ae.gutter=null),ae.gutterBackground&&(ae.node.removeChild(ae.gutterBackground),ae.gutterBackground=null),ae.line.gutterClass){var me=lr(ae);ae.gutterBackground=Re("div",null,"CodeMirror-gutter-background "+ae.line.gutterClass,"left: "+(ie.options.fixedGutter?ce.fixedPos:-ce.gutterTotalWidth)+"px; width: "+ce.gutterTotalWidth+"px"),ie.display.input.setUneditable(ae.gutterBackground),me.insertBefore(ae.gutterBackground,ae.text)}var Me=ae.line.gutterMarkers;if(ie.options.lineNumbers||Me){var Ge=lr(ae),qe=ae.gutter=Re("div",null,"CodeMirror-gutter-wrapper","left: "+(ie.options.fixedGutter?ce.fixedPos:-ce.gutterTotalWidth)+"px");if(ie.display.input.setUneditable(qe),Ge.insertBefore(qe,ae.text),ae.line.gutterClass&&(qe.className+=" "+ae.line.gutterClass),ie.options.lineNumbers&&(!Me||!Me["CodeMirror-linenumbers"])&&(ae.lineNumber=qe.appendChild(Re("div",Yn(ie.options,fe),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+ce.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+ie.display.lineNumInnerWidth+"px"))),Me)for(var Xe=0;Xe<ie.display.gutterSpecs.length;++Xe){var mt=ie.display.gutterSpecs[Xe].className,hn=Me.hasOwnProperty(mt)&&Me[mt];hn&&qe.appendChild(Re("div",[hn],"CodeMirror-gutter-elt","left: "+ce.gutterLeft[mt]+"px; width: "+ce.gutterWidth[mt]+"px"))}}}function Vi(ie,ae,fe){ae.alignable&&(ae.alignable=null);for(var ce=ze("CodeMirror-linewidget"),me=ae.node.firstChild,Me=void 0;me;me=Me)Me=me.nextSibling,ce.test(me.className)&&ae.node.removeChild(me);Oi(ie,ae,fe)}function Zi(ie,ae,fe,ce){var me=mr(ie,ae);return ae.text=ae.node=me.pre,me.bgClass&&(ae.bgClass=me.bgClass),me.textClass&&(ae.textClass=me.textClass),Mi(ie,ae),Ti(ie,ae,fe,ce),Oi(ie,ae,ce),ae.node}function Oi(ie,ae,fe){if(Ln(ie,ae.line,ae,fe,!0),ae.rest)for(var ce=0;ce<ae.rest.length;ce++)Ln(ie,ae.rest[ce],ae,fe,!1)}function Ln(ie,ae,fe,ce,me){if(ae.widgets)for(var Me=lr(fe),Ge=0,qe=ae.widgets;Ge<qe.length;++Ge){var Xe=qe[Ge],mt=Re("div",[Xe.node],"CodeMirror-linewidget"+(Xe.className?" "+Xe.className:""));Xe.handleMouseEvents||mt.setAttribute("cm-ignore-events","true"),ir(Xe,mt,fe,ce),ie.display.input.setUneditable(mt),me&&Xe.above?Me.insertBefore(mt,fe.gutter||fe.text):Me.appendChild(mt),Pi(Xe,"redraw")}}function ir(ie,ae,fe,ce){if(ie.noHScroll){(fe.alignable||(fe.alignable=[])).push(ae);var me=ce.wrapperWidth;ae.style.left=ce.fixedPos+"px",ie.coverGutter||(me-=ce.gutterTotalWidth,ae.style.paddingLeft=ce.gutterTotalWidth+"px"),ae.style.width=me+"px"}ie.coverGutter&&(ae.style.zIndex=5,ae.style.position="relative",ie.noHScroll||(ae.style.marginLeft=-ce.gutterTotalWidth+"px"))}function hr(ie){if(ie.height!=null)return ie.height;var ae=ie.doc.cm;if(!ae)return 0;if(!Ct(document.body,ie.node)){var fe="position: relative;";ie.coverGutter&&(fe+="margin-left: -"+ae.display.gutters.offsetWidth+"px;"),ie.noHScroll&&(fe+="width: "+ae.display.wrapper.clientWidth+"px;"),Oe(ae.display.measure,Re("div",[ie.node],null,fe))}return ie.height=ie.node.parentNode.offsetHeight}function Mr(ie,ae){for(var fe=so(ae);fe!=ie.wrapper;fe=fe.parentNode)if(!fe||fe.nodeType==1&&fe.getAttribute("cm-ignore-events")=="true"||fe.parentNode==ie.sizer&&fe!=ie.mover)return!0}function An(ie){return ie.lineSpace.offsetTop}function Fi(ie){return ie.mover.offsetHeight-ie.lineSpace.offsetHeight}function _i(ie){if(ie.cachedPaddingH)return ie.cachedPaddingH;var ae=Oe(ie.measure,Re("pre","x","CodeMirror-line-like")),fe=window.getComputedStyle?window.getComputedStyle(ae):ae.currentStyle,ce={left:parseInt(fe.paddingLeft),right:parseInt(fe.paddingRight)};return!isNaN(ce.left)&&!isNaN(ce.right)&&(ie.cachedPaddingH=ce),ce}function Er(ie){return Zt-ie.display.nativeBarWidth}function oo(ie){return ie.display.scroller.clientWidth-Er(ie)-ie.display.barWidth}function vo(ie){return ie.display.scroller.clientHeight-Er(ie)-ie.display.barHeight}function No(ie,ae,fe){var ce=ie.options.lineWrapping,me=ce&&oo(ie);if(!ae.measure.heights||ce&&ae.measure.width!=me){var Me=ae.measure.heights=[];if(ce){ae.measure.width=me;for(var Ge=ae.text.firstChild.getClientRects(),qe=0;qe<Ge.length-1;qe++){var Xe=Ge[qe],mt=Ge[qe+1];Math.abs(Xe.bottom-mt.bottom)>2&&Me.push((Xe.bottom+mt.top)/2-fe.top)}}Me.push(fe.bottom-fe.top)}}function $r(ie,ae,fe){if(ie.line==ae)return{map:ie.measure.map,cache:ie.measure.cache};for(var ce=0;ce<ie.rest.length;ce++)if(ie.rest[ce]==ae)return{map:ie.measure.maps[ce],cache:ie.measure.caches[ce]};for(var me=0;me<ie.rest.length;me++)if(et(ie.rest[me])>fe)return{map:ie.measure.maps[me],cache:ie.measure.caches[me],before:!0}}function ea(ie,ae){ae=un(ae);var fe=et(ae),ce=ie.display.externalMeasured=new fi(ie.doc,ae,fe);ce.lineN=fe;var me=ce.built=vt(ie,ce);return ce.text=me.pre,Oe(ie.display.lineMeasure,me.pre),ce}function Ui(ie,ae,fe,ce){return bo(ie,co(ie,ae),fe,ce)}function eo(ie,ae){if(ae>=ie.display.viewFrom&&ae<ie.display.viewTo)return ie.display.view[$a(ie,ae)];var fe=ie.display.externalMeasured;if(fe&&ae>=fe.lineN&&ae<fe.lineN+fe.size)return fe}function co(ie,ae){var fe=et(ae),ce=eo(ie,fe);ce&&!ce.text?ce=null:ce&&ce.changes&&(nr(ie,ce,fe,Na(ie)),ie.curOp.forceUpdate=!0),ce||(ce=ea(ie,ae));var me=$r(ce,ae,fe);return{line:ae,view:ce,rect:null,map:me.map,cache:me.cache,before:me.before,hasHeights:!1}}function bo(ie,ae,fe,ce,me){ae.before&&(fe=-1);var Me=fe+(ce||""),Ge;return ae.cache.hasOwnProperty(Me)?Ge=ae.cache[Me]:(ae.rect||(ae.rect=ae.view.text.getBoundingClientRect()),ae.hasHeights||(No(ie,ae.view,ae.rect),ae.hasHeights=!0),Ge=Eo(ie,ae,fe,ce),Ge.bogus||(ae.cache[Me]=Ge)),{left:Ge.left,right:Ge.right,top:me?Ge.rtop:Ge.top,bottom:me?Ge.rbottom:Ge.bottom}}var na={left:0,right:0,top:0,bottom:0};function Yo(ie,ae,fe){for(var ce,me,Me,Ge,qe,Xe,mt=0;mt<ie.length;mt+=3)if(qe=ie[mt],Xe=ie[mt+1],ae<qe?(me=0,Me=1,Ge="left"):ae<Xe?(me=ae-qe,Me=me+1):(mt==ie.length-3||ae==Xe&&ie[mt+3]>ae)&&(Me=Xe-qe,me=Me-1,ae>=Xe&&(Ge="right")),me!=null){if(ce=ie[mt+2],qe==Xe&&fe==(ce.insertLeft?"left":"right")&&(Ge=fe),fe=="left"&&me==0)for(;mt&&ie[mt-2]==ie[mt-3]&&ie[mt-1].insertLeft;)ce=ie[(mt-=3)+2],Ge="left";if(fe=="right"&&me==Xe-qe)for(;mt<ie.length-3&&ie[mt+3]==ie[mt+4]&&!ie[mt+5].insertLeft;)ce=ie[(mt+=3)+2],Ge="right";break}return{node:ce,start:me,end:Me,collapse:Ge,coverStart:qe,coverEnd:Xe}}function To(ie,ae){var fe=na;if(ae=="left")for(var ce=0;ce<ie.length&&(fe=ie[ce]).left==fe.right;ce++);else for(var me=ie.length-1;me>=0&&(fe=ie[me]).left==fe.right;me--);return fe}function Eo(ie,ae,fe,ce){var me=Yo(ae.map,fe,ce),Me=me.node,Ge=me.start,qe=me.end,Xe=me.collapse,mt;if(Me.nodeType==3){for(var hn=0;hn<4;hn++){for(;Ge&&Xt(ae.line.text.charAt(me.coverStart+Ge));)--Ge;for(;me.coverStart+qe<me.coverEnd&&Xt(ae.line.text.charAt(me.coverStart+qe));)++qe;if(at&&Ze<9&&Ge==0&&qe==me.coverEnd-me.coverStart?mt=Me.parentNode.getBoundingClientRect():mt=To(ot(Me,Ge,qe).getClientRects(),ce),mt.left||mt.right||Ge==0)break;qe=Ge,Ge=Ge-1,Xe="right"}at&&Ze<11&&(mt=ra(ie.display.measure,mt))}else{Ge>0&&(Xe=ce="right");var At;ie.options.lineWrapping&&(At=Me.getClientRects()).length>1?mt=At[ce=="right"?At.length-1:0]:mt=Me.getBoundingClientRect()}if(at&&Ze<9&&!Ge&&(!mt||!mt.left&&!mt.right)){var bn=Me.parentNode.getClientRects()[0];bn?mt={left:bn.left,right:bn.left+Ga(ie.display),top:bn.top,bottom:bn.bottom}:mt=na}for(var Sn=mt.top-ae.rect.top,Bi=mt.bottom-ae.rect.top,zi=(Sn+Bi)/2,Qi=ae.view.measure.heights,wr=0;wr<Qi.length-1&&!(zi<Qi[wr]);wr++);var Hr=wr?Qi[wr-1]:0,Nr=Qi[wr],Ur={left:(Xe=="right"?mt.right:mt.left)-ae.rect.left,right:(Xe=="left"?mt.left:mt.right)-ae.rect.left,top:Hr,bottom:Nr};return!mt.left&&!mt.right&&(Ur.bogus=!0),ie.options.singleCursorHeightPerLine||(Ur.rtop=Sn,Ur.rbottom=Bi),Ur}function ra(ie,ae){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!gi(ie))return ae;var fe=screen.logicalXDPI/screen.deviceXDPI,ce=screen.logicalYDPI/screen.deviceYDPI;return{left:ae.left*fe,right:ae.right*fe,top:ae.top*ce,bottom:ae.bottom*ce}}function ca(ie){if(ie.measure&&(ie.measure.cache={},ie.measure.heights=null,ie.rest))for(var ae=0;ae<ie.rest.length;ae++)ie.measure.caches[ae]={}}function Oo(ie){ie.display.externalMeasure=null,Ie(ie.display.lineMeasure);for(var ae=0;ae<ie.display.view.length;ae++)ca(ie.display.view[ae])}function Xo(ie){Oo(ie),ie.display.cachedCharWidth=ie.display.cachedTextHeight=ie.display.cachedPaddingH=null,ie.options.lineWrapping||(ie.display.maxLineChanged=!0),ie.display.lineNumChars=null}function po(){return nt&&te?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function mo(){return nt&&te?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function Jr(ie){var ae=0;if(ie.widgets)for(var fe=0;fe<ie.widgets.length;++fe)ie.widgets[fe].above&&(ae+=hr(ie.widgets[fe]));return ae}function ta(ie,ae,fe,ce,me){if(!me){var Me=Jr(ae);fe.top+=Me,fe.bottom+=Me}if(ce=="line")return fe;ce||(ce="local");var Ge=Pt(ae);if(ce=="local"?Ge+=An(ie.display):Ge-=ie.display.viewOffset,ce=="page"||ce=="window"){var qe=ie.display.lineSpace.getBoundingClientRect();Ge+=qe.top+(ce=="window"?0:mo());var Xe=qe.left+(ce=="window"?0:po());fe.left+=Xe,fe.right+=Xe}return fe.top+=Ge,fe.bottom+=Ge,fe}function Do(ie,ae,fe){if(fe=="div")return ae;var ce=ae.left,me=ae.top;if(fe=="page")ce-=po(),me-=mo();else if(fe=="local"||!fe){var Me=ie.display.sizer.getBoundingClientRect();ce+=Me.left,me+=Me.top}var Ge=ie.display.lineSpace.getBoundingClientRect();return{left:ce-Ge.left,top:me-Ge.top}}function Aa(ie,ae,fe,ce,me){return ce||(ce=Ai(ie.doc,ae.line)),ta(ie,ce,Ui(ie,ce,ae.ch,me),fe)}function xr(ie,ae,fe,ce,me,Me){ce=ce||Ai(ie.doc,ae.line),me||(me=co(ie,ce));function Ge(Bi,zi){var Qi=bo(ie,me,Bi,zi?"right":"left",Me);return zi?Qi.left=Qi.right:Qi.right=Qi.left,ta(ie,ce,Qi,fe)}var qe=pn(ce,ie.doc.direction),Xe=ae.ch,mt=ae.sticky;if(Xe>=ce.text.length?(Xe=ce.text.length,mt="before"):Xe<=0&&(Xe=0,mt="after"),!qe)return Ge(mt=="before"?Xe-1:Xe,mt=="before");function hn(Bi,zi,Qi){var wr=qe[zi],Hr=wr.level==1;return Ge(Qi?Bi-1:Bi,Hr!=Qi)}var At=zt(qe,Xe,mt),bn=bt,Sn=hn(Xe,At,mt=="before");return bn!=null&&(Sn.other=hn(Xe,bn,mt!="before")),Sn}function er(ie,ae){var fe=0;ae=ki(ie.doc,ae),ie.options.lineWrapping||(fe=Ga(ie.display)*ae.ch);var ce=Ai(ie.doc,ae.line),me=Pt(ce)+An(ie.display);return{left:fe,right:fe,top:me,bottom:me+ce.height}}function Br(ie,ae,fe,ce,me){var Me=en(ie,ae,fe);return Me.xRel=me,ce&&(Me.outside=ce),Me}function vr(ie,ae,fe){var ce=ie.doc;if(fe+=ie.display.viewOffset,fe<0)return Br(ce.first,0,null,-1,-1);var me=Ft(ce,fe),Me=ce.first+ce.size-1;if(me>Me)return Br(ce.first+ce.size-1,Ai(ce,Me).text.length,null,1,1);ae<0&&(ae=0);for(var Ge=Ai(ce,me);;){var qe=Pn(ie,Ge,me,ae,fe),Xe=Hn(Ge,qe.ch+(qe.xRel>0||qe.outside>0?1:0));if(!Xe)return qe;var mt=Xe.find(1);if(mt.line==me)return mt;Ge=Ai(ce,me=mt.line)}}function di(ie,ae,fe,ce){ce-=Jr(ae);var me=ae.text.length,Me=nn(function(Ge){return bo(ie,fe,Ge-1).bottom<=ce},me,0);return me=nn(function(Ge){return bo(ie,fe,Ge).top>ce},Me,me),{begin:Me,end:me}}function Go(ie,ae,fe,ce){fe||(fe=co(ie,ae));var me=ta(ie,ae,bo(ie,fe,ce),"line").top;return di(ie,ae,fe,me)}function St(ie,ae,fe,ce){return ie.bottom<=fe?!1:ie.top>fe?!0:(ce?ie.left:ie.right)>ae}function Pn(ie,ae,fe,ce,me){me-=Pt(ae);var Me=co(ie,ae),Ge=Jr(ae),qe=0,Xe=ae.text.length,mt=!0,hn=pn(ae,ie.doc.direction);if(hn){var At=(ie.options.lineWrapping?za:ja)(ie,ae,fe,Me,hn,ce,me);mt=At.level!=1,qe=mt?At.from:At.to-1,Xe=mt?At.to:At.from-1}var bn=null,Sn=null,Bi=nn(function(Lo){var kr=bo(ie,Me,Lo);return kr.top+=Ge,kr.bottom+=Ge,St(kr,ce,me,!1)?(kr.top<=me&&kr.left<=ce&&(bn=Lo,Sn=kr),!0):!1},qe,Xe),zi,Qi,wr=!1;if(Sn){var Hr=ce-Sn.left<Sn.right-ce,Nr=Hr==mt;Bi=bn+(Nr?0:1),Qi=Nr?"after":"before",zi=Hr?Sn.left:Sn.right}else{!mt&&(Bi==Xe||Bi==qe)&&Bi++,Qi=Bi==0?"after":Bi==ae.text.length?"before":bo(ie,Me,Bi-(mt?1:0)).bottom+Ge<=me==mt?"after":"before";var Ur=xr(ie,en(fe,Bi,Qi),"line",ae,Me);zi=Ur.left,wr=me<Ur.top?-1:me>=Ur.bottom?1:0}return Bi=Bt(ae.text,Bi,1),Br(fe,Bi,Qi,wr,ce-zi)}function ja(ie,ae,fe,ce,me,Me,Ge){var qe=nn(function(At){var bn=me[At],Sn=bn.level!=1;return St(xr(ie,en(fe,Sn?bn.to:bn.from,Sn?"before":"after"),"line",ae,ce),Me,Ge,!0)},0,me.length-1),Xe=me[qe];if(qe>0){var mt=Xe.level!=1,hn=xr(ie,en(fe,mt?Xe.from:Xe.to,mt?"after":"before"),"line",ae,ce);St(hn,Me,Ge,!0)&&hn.top>Ge&&(Xe=me[qe-1])}return Xe}function za(ie,ae,fe,ce,me,Me,Ge){var qe=di(ie,ae,ce,Ge),Xe=qe.begin,mt=qe.end;/\s/.test(ae.text.charAt(mt-1))&&mt--;for(var hn=null,At=null,bn=0;bn<me.length;bn++){var Sn=me[bn];if(!(Sn.from>=mt||Sn.to<=Xe)){var Bi=Sn.level!=1,zi=bo(ie,ce,Bi?Math.min(mt,Sn.to)-1:Math.max(Xe,Sn.from)).right,Qi=zi<Me?Me-zi+1e9:zi-Me;(!hn||At>Qi)&&(hn=Sn,At=Qi)}}return hn||(hn=me[me.length-1]),hn.from<Xe&&(hn={from:Xe,to:hn.to,level:hn.level}),hn.to>mt&&(hn={from:hn.from,to:mt,level:hn.level}),hn}var fa;function ga(ie){if(ie.cachedTextHeight!=null)return ie.cachedTextHeight;if(fa==null){fa=Re("pre",null,"CodeMirror-line-like");for(var ae=0;ae<49;++ae)fa.appendChild(document.createTextNode("x")),fa.appendChild(Re("br"));fa.appendChild(document.createTextNode("x"))}Oe(ie.measure,fa);var fe=fa.offsetHeight/50;return fe>3&&(ie.cachedTextHeight=fe),Ie(ie.measure),fe||1}function Ga(ie){if(ie.cachedCharWidth!=null)return ie.cachedCharWidth;var ae=Re("span","xxxxxxxxxx"),fe=Re("pre",[ae],"CodeMirror-line-like");Oe(ie.measure,fe);var ce=ae.getBoundingClientRect(),me=(ce.right-ce.left)/10;return me>2&&(ie.cachedCharWidth=me),me||10}function Na(ie){for(var ae=ie.display,fe={},ce={},me=ae.gutters.clientLeft,Me=ae.gutters.firstChild,Ge=0;Me;Me=Me.nextSibling,++Ge){var qe=ie.display.gutterSpecs[Ge].className;fe[qe]=Me.offsetLeft+Me.clientLeft+me,ce[qe]=Me.clientWidth}return{fixedPos:Zs(ae),gutterTotalWidth:ae.gutters.offsetWidth,gutterLeft:fe,gutterWidth:ce,wrapperWidth:ae.wrapper.clientWidth}}function Zs(ie){return ie.scroller.getBoundingClientRect().left-ie.sizer.getBoundingClientRect().left}function sa(ie){var ae=ga(ie.display),fe=ie.options.lineWrapping,ce=fe&&Math.max(5,ie.display.scroller.clientWidth/Ga(ie.display)-3);return function(me){if(Je(ie.doc,me))return 0;var Me=0;if(me.widgets)for(var Ge=0;Ge<me.widgets.length;Ge++)me.widgets[Ge].height&&(Me+=me.widgets[Ge].height);return fe?Me+(Math.ceil(me.text.length/ce)||1)*ae:Me+ae}}function Wr(ie){var ae=ie.doc,fe=sa(ie);ae.iter(function(ce){var me=fe(ce);me!=ce.height&&br(ce,me)})}function Va(ie,ae,fe,ce){var me=ie.display;if(!fe&&so(ae).getAttribute("cm-not-content")=="true")return null;var Me,Ge,qe=me.lineSpace.getBoundingClientRect();try{Me=ae.clientX-qe.left,Ge=ae.clientY-qe.top}catch(At){return null}var Xe=vr(ie,Me,Ge),mt;if(ce&&Xe.xRel>0&&(mt=Ai(ie.doc,Xe.line).text).length==Xe.ch){var hn=st(mt,mt.length,ie.options.tabSize)-mt.length;Xe=en(Xe.line,Math.max(0,Math.round((Me-_i(ie.display).left)/Ga(ie.display))-hn))}return Xe}function $a(ie,ae){if(ae>=ie.display.viewTo||(ae-=ie.display.viewFrom,ae<0))return null;for(var fe=ie.display.view,ce=0;ce<fe.length;ce++)if(ae-=fe[ce].size,ae<0)return ce}function la(ie,ae,fe,ce){ae==null&&(ae=ie.doc.first),fe==null&&(fe=ie.doc.first+ie.doc.size),ce||(ce=0);var me=ie.display;if(ce&&fe<me.viewTo&&(me.updateLineNumbers==null||me.updateLineNumbers>ae)&&(me.updateLineNumbers=ae),ie.curOp.viewChanged=!0,ae>=me.viewTo)Mn&&ke(ie.doc,ae)<me.viewTo&&ma(ie);else if(fe<=me.viewFrom)Mn&&ht(ie.doc,fe+ce)>me.viewFrom?ma(ie):(me.viewFrom+=ce,me.viewTo+=ce);else if(ae<=me.viewFrom&&fe>=me.viewTo)ma(ie);else if(ae<=me.viewFrom){var Me=ls(ie,fe,fe+ce,1);Me?(me.view=me.view.slice(Me.index),me.viewFrom=Me.lineN,me.viewTo+=ce):ma(ie)}else if(fe>=me.viewTo){var Ge=ls(ie,ae,ae,-1);Ge?(me.view=me.view.slice(0,Ge.index),me.viewTo=Ge.lineN):ma(ie)}else{var qe=ls(ie,ae,ae,-1),Xe=ls(ie,fe,fe+ce,1);qe&&Xe?(me.view=me.view.slice(0,qe.index).concat(pi(ie,qe.lineN,Xe.lineN)).concat(me.view.slice(Xe.index)),me.viewTo+=ce):ma(ie)}var mt=me.externalMeasured;mt&&(fe<mt.lineN?mt.lineN+=ce:ae<mt.lineN+mt.size&&(me.externalMeasured=null))}function yo(ie,ae,fe){ie.curOp.viewChanged=!0;var ce=ie.display,me=ie.display.externalMeasured;if(me&&ae>=me.lineN&&ae<me.lineN+me.size&&(ce.externalMeasured=null),!(ae<ce.viewFrom||ae>=ce.viewTo)){var Me=ce.view[$a(ie,ae)];if(Me.node!=null){var Ge=Me.changes||(Me.changes=[]);Rt(Ge,fe)==-1&&Ge.push(fe)}}}function ma(ie){ie.display.viewFrom=ie.display.viewTo=ie.doc.first,ie.display.view=[],ie.display.viewOffset=0}function ls(ie,ae,fe,ce){var me=$a(ie,ae),Me,Ge=ie.display.view;if(!Mn||fe==ie.doc.first+ie.doc.size)return{index:me,lineN:fe};for(var qe=ie.display.viewFrom,Xe=0;Xe<me;Xe++)qe+=Ge[Xe].size;if(qe!=ae){if(ce>0){if(me==Ge.length-1)return null;Me=qe+Ge[me].size-ae,me++}else Me=qe-ae;ae+=Me,fe+=Me}for(;ke(ie.doc,fe)!=fe;){if(me==(ce<0?0:Ge.length-1))return null;fe+=ce*Ge[me-(ce<0?1:0)].size,me+=ce}return{index:me,lineN:fe}}function aa(ie,ae,fe){var ce=ie.display,me=ce.view;me.length==0||ae>=ce.viewTo||fe<=ce.viewFrom?(ce.view=pi(ie,ae,fe),ce.viewFrom=ae):(ce.viewFrom>ae?ce.view=pi(ie,ae,ce.viewFrom).concat(ce.view):ce.viewFrom<ae&&(ce.view=ce.view.slice($a(ie,ae))),ce.viewFrom=ae,ce.viewTo<fe?ce.view=ce.view.concat(pi(ie,ce.viewTo,fe)):ce.viewTo>fe&&(ce.view=ce.view.slice(0,$a(ie,fe)))),ce.viewTo=fe}function us(ie){for(var ae=ie.display.view,fe=0,ce=0;ce<ae.length;ce++){var me=ae[ce];!me.hidden&&(!me.node||me.changes)&&++fe}return fe}function Ta(ie){ie.display.input.showSelection(ie.display.input.prepareSelection())}function bl(ie,ae){ae===void 0&&(ae=!0);for(var fe=ie.doc,ce={},me=ce.cursors=document.createDocumentFragment(),Me=ce.selection=document.createDocumentFragment(),Ge=0;Ge<fe.sel.ranges.length;Ge++)if(!(!ae&&Ge==fe.sel.primIndex)){var qe=fe.sel.ranges[Ge];if(!(qe.from().line>=ie.display.viewTo||qe.to().line<ie.display.viewFrom)){var Xe=qe.empty();(Xe||ie.options.showCursorWhenSelecting)&&Wo(ie,qe.head,me),Xe||Io(ie,qe,Me)}}return ce}function Wo(ie,ae,fe){var ce=xr(ie,ae,"div",null,null,!ie.options.singleCursorHeightPerLine),me=fe.appendChild(Re("div","\xA0","CodeMirror-cursor"));if(me.style.left=ce.left+"px",me.style.top=ce.top+"px",me.style.height=Math.max(0,ce.bottom-ce.top)*ie.options.cursorHeight+"px",ce.other){var Me=fe.appendChild(Re("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));Me.style.display="",Me.style.left=ce.other.left+"px",Me.style.top=ce.other.top+"px",Me.style.height=(ce.other.bottom-ce.other.top)*.85+"px"}}function Fa(ie,ae){return ie.top-ae.top||ie.left-ae.left}function Io(ie,ae,fe){var ce=ie.display,me=ie.doc,Me=document.createDocumentFragment(),Ge=_i(ie.display),qe=Ge.left,Xe=Math.max(ce.sizerWidth,oo(ie)-ce.sizer.offsetLeft)-Ge.right,mt=me.direction=="ltr";function hn(Nr,Ur,Lo,kr){Ur<0&&(Ur=0),Ur=Math.round(Ur),kr=Math.round(kr),Me.appendChild(Re("div",null,"CodeMirror-selected","position: absolute; left: "+Nr+`px;
top: `+Ur+"px; width: "+(Lo==null?Xe-Nr:Lo)+`px;
height: `+(kr-Ur)+"px"))}function At(Nr,Ur,Lo){var kr=Ai(me,Nr),Uo=kr.text.length,Oa,ms;function _a(cs,xl){return Aa(ie,en(Nr,cs),"div",kr,xl)}function sl(cs,xl,Ts){var fs=Go(ie,kr,null,cs),da=xl=="ltr"==(Ts=="after")?"left":"right",Qa=Ts=="after"?fs.begin:fs.end-(/\s/.test(kr.text.charAt(fs.end-1))?2:1);return _a(Qa,da)[da]}var Vs=pn(kr,me.direction);return Tt(Vs,Ur||0,Lo==null?Uo:Lo,function(cs,xl,Ts,fs){var da=Ts=="ltr",Qa=_a(cs,da?"left":"right"),ws=_a(xl-1,da?"right":"left"),Os=Ur==null&&cs==0,ou=Lo==null&&xl==Uo,Ua=fs==0,Ul=!Vs||fs==Vs.length-1;if(ws.top-Qa.top<=3){var ts=(mt?Os:ou)&&Ua,Bc=(mt?ou:Os)&&Ul,Ol=ts?qe:(da?Qa:ws).left,Pl=Bc?Xe:(da?ws:Qa).right;hn(Ol,Qa.top,Pl-Ol,Qa.bottom)}else{var ll,La,Cs,Ou;da?(ll=mt&&Os&&Ua?qe:Qa.left,La=mt?Xe:sl(cs,Ts,"before"),Cs=mt?qe:sl(xl,Ts,"after"),Ou=mt&&ou&&Ul?Xe:ws.right):(ll=mt?sl(cs,Ts,"before"):qe,La=!mt&&Os&&Ua?Xe:Qa.right,Cs=!mt&&ou&&Ul?qe:ws.left,Ou=mt?sl(xl,Ts,"after"):Xe),hn(ll,Qa.top,La-ll,Qa.bottom),Qa.bottom<ws.top&&hn(qe,Qa.bottom,null,ws.top),hn(Cs,ws.top,Ou-Cs,ws.bottom)}(!Oa||Fa(Qa,Oa)<0)&&(Oa=Qa),Fa(ws,Oa)<0&&(Oa=ws),(!ms||Fa(Qa,ms)<0)&&(ms=Qa),Fa(ws,ms)<0&&(ms=ws)}),{start:Oa,end:ms}}var bn=ae.from(),Sn=ae.to();if(bn.line==Sn.line)At(bn.line,bn.ch,Sn.ch);else{var Bi=Ai(me,bn.line),zi=Ai(me,Sn.line),Qi=un(Bi)==un(zi),wr=At(bn.line,bn.ch,Qi?Bi.text.length+1:null).end,Hr=At(Sn.line,Qi?0:null,Sn.ch).start;Qi&&(wr.top<Hr.top-2?(hn(wr.right,wr.top,null,wr.bottom),hn(qe,Hr.top,Hr.left,Hr.bottom)):hn(wr.right,wr.top,Hr.left-wr.right,wr.bottom)),wr.bottom<Hr.top&&hn(qe,wr.bottom,null,Hr.top)}fe.appendChild(Me)}function Jo(ie){if(ie.state.focused){var ae=ie.display;clearInterval(ae.blinker);var fe=!0;ae.cursorDiv.style.visibility="",ie.options.cursorBlinkRate>0?ae.blinker=setInterval(function(){ie.hasFocus()||fl(ie),ae.cursorDiv.style.visibility=(fe=!fe)?"":"hidden"},ie.options.cursorBlinkRate):ie.options.cursorBlinkRate<0&&(ae.cursorDiv.style.visibility="hidden")}}function ha(ie){ie.state.focused||(ie.display.input.focus(),Qo(ie))}function va(ie){ie.state.delayingBlurEvent=!0,setTimeout(function(){ie.state.delayingBlurEvent&&(ie.state.delayingBlurEvent=!1,fl(ie))},100)}function Qo(ie,ae){ie.state.delayingBlurEvent&&(ie.state.delayingBlurEvent=!1),ie.options.readOnly!="nocursor"&&(ie.state.focused||($n(ie,"focus",ie,ae),ie.state.focused=!0,kt(ie.display.wrapper,"CodeMirror-focused"),!ie.curOp&&ie.display.selForContextMenu!=ie.doc.sel&&(ie.display.input.reset(),Ue&&setTimeout(function(){return ie.display.input.reset(!0)},20)),ie.display.input.receivedFocus()),Jo(ie))}function fl(ie,ae){ie.state.delayingBlurEvent||(ie.state.focused&&($n(ie,"blur",ie,ae),ie.state.focused=!1,Te(ie.display.wrapper,"CodeMirror-focused")),clearInterval(ie.display.blinker),setTimeout(function(){ie.state.focused||(ie.display.shift=!1)},150))}function Gr(ie){for(var ae=ie.display,fe=ae.lineDiv.offsetTop,ce=0;ce<ae.view.length;ce++){var me=ae.view[ce],Me=ie.options.lineWrapping,Ge=void 0,qe=0;if(!me.hidden){if(at&&Ze<8){var Xe=me.node.offsetTop+me.node.offsetHeight;Ge=Xe-fe,fe=Xe}else{var mt=me.node.getBoundingClientRect();Ge=mt.bottom-mt.top,!Me&&me.text.firstChild&&(qe=me.text.firstChild.getBoundingClientRect().right-mt.left-1)}var hn=me.line.height-Ge;if((hn>.005||hn<-.005)&&(br(me.line,Ge),pu(me.line),me.rest))for(var At=0;At<me.rest.length;At++)pu(me.rest[At]);if(qe>ie.display.sizerWidth){var bn=Math.ceil(qe/Ga(ie.display));bn>ie.display.maxLineLength&&(ie.display.maxLineLength=bn,ie.display.maxLine=me.line,ie.display.maxLineChanged=!0)}}}}function pu(ie){if(ie.widgets)for(var ae=0;ae<ie.widgets.length;++ae){var fe=ie.widgets[ae],ce=fe.node.parentNode;ce&&(fe.height=ce.offsetHeight)}}function Ao(ie,ae,fe){var ce=fe&&fe.top!=null?Math.max(0,fe.top):ie.scroller.scrollTop;ce=Math.floor(ce-An(ie));var me=fe&&fe.bottom!=null?fe.bottom:ce+ie.wrapper.clientHeight,Me=Ft(ae,ce),Ge=Ft(ae,me);if(fe&&fe.ensure){var qe=fe.ensure.from.line,Xe=fe.ensure.to.line;qe<Me?(Me=qe,Ge=Ft(ae,Pt(Ai(ae,qe))+ie.wrapper.clientHeight)):Math.min(Xe,ae.lastLine())>=Ge&&(Me=Ft(ae,Pt(Ai(ae,Xe))-ie.wrapper.clientHeight),Ge=Xe)}return{from:Me,to:Math.max(Ge,Me+1)}}function Gl(ie,ae){if(!bi(ie,"scrollCursorIntoView")){var fe=ie.display,ce=fe.sizer.getBoundingClientRect(),me=null;if(ae.top+ce.top<0?me=!0:ae.bottom+ce.top>(window.innerHeight||document.documentElement.clientHeight)&&(me=!1),me!=null&&!ut){var Me=Re("div","\u200B",null,`position: absolute;
top: `+(ae.top-fe.viewOffset-An(ie.display))+`px;
height: `+(ae.bottom-ae.top+Er(ie)+fe.barHeight)+`px;
left: `+ae.left+"px; width: "+Math.max(2,ae.right-ae.left)+"px;");ie.display.lineSpace.appendChild(Me),Me.scrollIntoView(me),ie.display.lineSpace.removeChild(Me)}}}function Qs(ie,ae,fe,ce){ce==null&&(ce=0);var me;!ie.options.lineWrapping&&ae==fe&&(ae=ae.ch?en(ae.line,ae.sticky=="before"?ae.ch-1:ae.ch,"after"):ae,fe=ae.sticky=="before"?en(ae.line,ae.ch+1,"before"):ae);for(var Me=0;Me<5;Me++){var Ge=!1,qe=xr(ie,ae),Xe=!fe||fe==ae?qe:xr(ie,fe);me={left:Math.min(qe.left,Xe.left),top:Math.min(qe.top,Xe.top)-ce,right:Math.max(qe.left,Xe.left),bottom:Math.max(qe.bottom,Xe.bottom)+ce};var mt=mu(ie,me),hn=ie.doc.scrollTop,At=ie.doc.scrollLeft;if(mt.scrollTop!=null&&(gl(ie,mt.scrollTop),Math.abs(ie.doc.scrollTop-hn)>1&&(Ge=!0)),mt.scrollLeft!=null&&(pl(ie,mt.scrollLeft),Math.abs(ie.doc.scrollLeft-At)>1&&(Ge=!0)),!Ge)break}return me}function Dl(ie,ae){var fe=mu(ie,ae);fe.scrollTop!=null&&gl(ie,fe.scrollTop),fe.scrollLeft!=null&&pl(ie,fe.scrollLeft)}function mu(ie,ae){var fe=ie.display,ce=ga(ie.display);ae.top<0&&(ae.top=0);var me=ie.curOp&&ie.curOp.scrollTop!=null?ie.curOp.scrollTop:fe.scroller.scrollTop,Me=vo(ie),Ge={};ae.bottom-ae.top>Me&&(ae.bottom=ae.top+Me);var qe=ie.doc.height+Fi(fe),Xe=ae.top<ce,mt=ae.bottom>qe-ce;if(ae.top<me)Ge.scrollTop=Xe?0:ae.top;else if(ae.bottom>me+Me){var hn=Math.min(ae.top,(mt?qe:ae.bottom)-Me);hn!=me&&(Ge.scrollTop=hn)}var At=ie.options.fixedGutter?0:fe.gutters.offsetWidth,bn=ie.curOp&&ie.curOp.scrollLeft!=null?ie.curOp.scrollLeft:fe.scroller.scrollLeft-At,Sn=oo(ie)-fe.gutters.offsetWidth,Bi=ae.right-ae.left>Sn;return Bi&&(ae.right=ae.left+Sn),ae.left<10?Ge.scrollLeft=0:ae.left<bn?Ge.scrollLeft=Math.max(0,ae.left+At-(Bi?0:10)):ae.right>Sn+bn-3&&(Ge.scrollLeft=ae.right+(Bi?0:10)-Sn),Ge}function vu(ie,ae){ae!=null&&(Hs(ie),ie.curOp.scrollTop=(ie.curOp.scrollTop==null?ie.doc.scrollTop:ie.curOp.scrollTop)+ae)}function Ws(ie){Hs(ie);var ae=ie.getCursor();ie.curOp.scrollToPos={from:ae,to:ae,margin:ie.options.cursorScrollMargin}}function Vl(ie,ae,fe){(ae!=null||fe!=null)&&Hs(ie),ae!=null&&(ie.curOp.scrollLeft=ae),fe!=null&&(ie.curOp.scrollTop=fe)}function Ko(ie,ae){Hs(ie),ie.curOp.scrollToPos=ae}function Hs(ie){var ae=ie.curOp.scrollToPos;if(ae){ie.curOp.scrollToPos=null;var fe=er(ie,ae.from),ce=er(ie,ae.to);yu(ie,fe,ce,ae.margin)}}function yu(ie,ae,fe,ce){var me=mu(ie,{left:Math.min(ae.left,fe.left),top:Math.min(ae.top,fe.top)-ce,right:Math.max(ae.right,fe.right),bottom:Math.max(ae.bottom,fe.bottom)+ce});Vl(ie,me.scrollLeft,me.scrollTop)}function gl(ie,ae){Math.abs(ie.doc.scrollTop-ae)<2||(ve||fh(ie,{top:ae}),Du(ie,ae,!0),ve&&fh(ie),ns(ie,100))}function Du(ie,ae,fe){ae=Math.max(0,Math.min(ie.display.scroller.scrollHeight-ie.display.scroller.clientHeight,ae)),!(ie.display.scroller.scrollTop==ae&&!fe)&&(ie.doc.scrollTop=ae,ie.display.scrollbars.setScrollTop(ae),ie.display.scroller.scrollTop!=ae&&(ie.display.scroller.scrollTop=ae))}function pl(ie,ae,fe,ce){ae=Math.max(0,Math.min(ae,ie.display.scroller.scrollWidth-ie.display.scroller.clientWidth)),!((fe?ae==ie.doc.scrollLeft:Math.abs(ie.doc.scrollLeft-ae)<2)&&!ce)&&(ie.doc.scrollLeft=ae,rf(ie),ie.display.scroller.scrollLeft!=ae&&(ie.display.scroller.scrollLeft=ae),ie.display.scrollbars.setScrollLeft(ae))}function Bo(ie){var ae=ie.display,fe=ae.gutters.offsetWidth,ce=Math.round(ie.doc.height+Fi(ie.display));return{clientHeight:ae.scroller.clientHeight,viewHeight:ae.wrapper.clientHeight,scrollWidth:ae.scroller.scrollWidth,clientWidth:ae.scroller.clientWidth,viewWidth:ae.wrapper.clientWidth,barLeft:ie.options.fixedGutter?fe:0,docHeight:ce,scrollHeight:ce+Er(ie)+ae.barHeight,nativeBarWidth:ae.nativeBarWidth,gutterWidth:fe}}var Vo=function(ie,ae,fe){this.cm=fe;var ce=this.vert=Re("div",[Re("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),me=this.horiz=Re("div",[Re("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");ce.tabIndex=me.tabIndex=-1,ie(ce),ie(me),wn(ce,"scroll",function(){ce.clientHeight&&ae(ce.scrollTop,"vertical")}),wn(me,"scroll",function(){me.clientWidth&&ae(me.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,at&&Ze<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Vo.prototype.update=function(ie){var ae=ie.scrollWidth>ie.clientWidth+1,fe=ie.scrollHeight>ie.clientHeight+1,ce=ie.nativeBarWidth;if(fe){this.vert.style.display="block",this.vert.style.bottom=ae?ce+"px":"0";var me=ie.viewHeight-(ae?ce:0);this.vert.firstChild.style.height=Math.max(0,ie.scrollHeight-ie.clientHeight+me)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(ae){this.horiz.style.display="block",this.horiz.style.right=fe?ce+"px":"0",this.horiz.style.left=ie.barLeft+"px";var Me=ie.viewWidth-ie.barLeft-(fe?ce:0);this.horiz.firstChild.style.width=Math.max(0,ie.scrollWidth-ie.clientWidth+Me)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&ie.clientHeight>0&&(ce==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:fe?ce:0,bottom:ae?ce:0}},Vo.prototype.setScrollLeft=function(ie){this.horiz.scrollLeft!=ie&&(this.horiz.scrollLeft=ie),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Vo.prototype.setScrollTop=function(ie){this.vert.scrollTop!=ie&&(this.vert.scrollTop=ie),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Vo.prototype.zeroWidthHack=function(){var ie=ue&&!Ve?"12px":"18px";this.horiz.style.height=this.vert.style.width=ie,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new He,this.disableVert=new He},Vo.prototype.enableZeroWidthBar=function(ie,ae,fe){ie.style.pointerEvents="auto";function ce(){var me=ie.getBoundingClientRect(),Me=fe=="vert"?document.elementFromPoint(me.right-1,(me.top+me.bottom)/2):document.elementFromPoint((me.right+me.left)/2,me.bottom-1);Me!=ie?ie.style.pointerEvents="none":ae.set(1e3,ce)}ae.set(1e3,ce)},Vo.prototype.clear=function(){var ie=this.horiz.parentNode;ie.removeChild(this.horiz),ie.removeChild(this.vert)};var Ea=function(){};Ea.prototype.update=function(){return{bottom:0,right:0}},Ea.prototype.setScrollLeft=function(){},Ea.prototype.setScrollTop=function(){},Ea.prototype.clear=function(){};function es(ie,ae){ae||(ae=Bo(ie));var fe=ie.display.barWidth,ce=ie.display.barHeight;Xa(ie,ae);for(var me=0;me<4&&fe!=ie.display.barWidth||ce!=ie.display.barHeight;me++)fe!=ie.display.barWidth&&ie.options.lineWrapping&&Gr(ie),Xa(ie,Bo(ie)),fe=ie.display.barWidth,ce=ie.display.barHeight}function Xa(ie,ae){var fe=ie.display,ce=fe.scrollbars.update(ae);fe.sizer.style.paddingRight=(fe.barWidth=ce.right)+"px",fe.sizer.style.paddingBottom=(fe.barHeight=ce.bottom)+"px",fe.heightForcer.style.borderBottom=ce.bottom+"px solid transparent",ce.right&&ce.bottom?(fe.scrollbarFiller.style.display="block",fe.scrollbarFiller.style.height=ce.bottom+"px",fe.scrollbarFiller.style.width=ce.right+"px"):fe.scrollbarFiller.style.display="",ce.bottom&&ie.options.coverGutterNextToScrollbar&&ie.options.fixedGutter?(fe.gutterFiller.style.display="block",fe.gutterFiller.style.height=ce.bottom+"px",fe.gutterFiller.style.width=ae.gutterWidth+"px"):fe.gutterFiller.style.display=""}var kl={native:Vo,null:Ea};function ml(ie){ie.display.scrollbars&&(ie.display.scrollbars.clear(),ie.display.scrollbars.addClass&&Te(ie.display.wrapper,ie.display.scrollbars.addClass)),ie.display.scrollbars=new kl[ie.options.scrollbarStyle](function(ae){ie.display.wrapper.insertBefore(ae,ie.display.scrollbarFiller),wn(ae,"mousedown",function(){ie.state.focused&&setTimeout(function(){return ie.display.input.focus()},0)}),ae.setAttribute("cm-not-content","true")},function(ae,fe){fe=="horizontal"?pl(ie,ae):gl(ie,ae)},ie),ie.display.scrollbars.addClass&&kt(ie.display.wrapper,ie.display.scrollbars.addClass)}var Ro=0;function So(ie){ie.curOp={cm:ie,viewChanged:!1,startHeight:ie.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Ro},Wi(ie.curOp)}function Ya(ie){var ae=ie.curOp;ae&&or(ae,function(fe){for(var ce=0;ce<fe.ops.length;ce++)fe.ops[ce].cm.curOp=null;iu(fe)})}function iu(ie){for(var ae=ie.ops,fe=0;fe<ae.length;fe++)Dd(ae[fe]);for(var ce=0;ce<ae.length;ce++)dg(ae[ce]);for(var me=0;me<ae.length;me++)tf(ae[me]);for(var Me=0;Me<ae.length;Me++)Za(ae[Me]);for(var Ge=0;Ge<ae.length;Ge++)Xu(ae[Ge])}function Dd(ie){var ae=ie.cm,fe=ae.display;Hp(ae),ie.updateMaxLine&&Qt(ae),ie.mustUpdate=ie.viewChanged||ie.forceUpdate||ie.scrollTop!=null||ie.scrollToPos&&(ie.scrollToPos.from.line<fe.viewFrom||ie.scrollToPos.to.line>=fe.viewTo)||fe.maxLineChanged&&ae.options.lineWrapping,ie.update=ie.mustUpdate&&new Kh(ae,ie.mustUpdate&&{top:ie.scrollTop,ensure:ie.scrollToPos},ie.forceUpdate)}function dg(ie){ie.updatedDisplay=ie.mustUpdate&&nf(ie.cm,ie.update)}function tf(ie){var ae=ie.cm,fe=ae.display;ie.updatedDisplay&&Gr(ae),ie.barMeasure=Bo(ae),fe.maxLineChanged&&!ae.options.lineWrapping&&(ie.adjustWidthTo=Ui(ae,fe.maxLine,fe.maxLine.text.length).left+3,ae.display.sizerWidth=ie.adjustWidthTo,ie.barMeasure.scrollWidth=Math.max(fe.scroller.clientWidth,fe.sizer.offsetLeft+ie.adjustWidthTo+Er(ae)+ae.display.barWidth),ie.maxScrollLeft=Math.max(0,fe.sizer.offsetLeft+ie.adjustWidthTo-oo(ae))),(ie.updatedDisplay||ie.selectionChanged)&&(ie.preparedSelection=fe.input.prepareSelection())}function Za(ie){var ae=ie.cm;ie.adjustWidthTo!=null&&(ae.display.sizer.style.minWidth=ie.adjustWidthTo+"px",ie.maxScrollLeft<ae.doc.scrollLeft&&pl(ae,Math.min(ae.display.scroller.scrollLeft,ie.maxScrollLeft),!0),ae.display.maxLineChanged=!1);var fe=ie.focus&&ie.focus==gt();ie.preparedSelection&&ae.display.input.showSelection(ie.preparedSelection,fe),(ie.updatedDisplay||ie.startHeight!=ae.doc.height)&&es(ae,ie.barMeasure),ie.updatedDisplay&&ph(ae,ie.barMeasure),ie.selectionChanged&&Jo(ae),ae.state.focused&&ie.updateInput&&ae.display.input.reset(ie.typing),fe&&ha(ie.cm)}function Xu(ie){var ae=ie.cm,fe=ae.display,ce=ae.doc;if(ie.updatedDisplay&&Sa(ae,ie.update),fe.wheelStartX!=null&&(ie.scrollTop!=null||ie.scrollLeft!=null||ie.scrollToPos)&&(fe.wheelStartX=fe.wheelStartY=null),ie.scrollTop!=null&&Du(ae,ie.scrollTop,ie.forceScroll),ie.scrollLeft!=null&&pl(ae,ie.scrollLeft,!0,!0),ie.scrollToPos){var me=Qs(ae,ki(ce,ie.scrollToPos.from),ki(ce,ie.scrollToPos.to),ie.scrollToPos.margin);Gl(ae,me)}var Me=ie.maybeHiddenMarkers,Ge=ie.maybeUnhiddenMarkers;if(Me)for(var qe=0;qe<Me.length;++qe)Me[qe].lines.length||$n(Me[qe],"hide");if(Ge)for(var Xe=0;Xe<Ge.length;++Xe)Ge[Xe].lines.length&&$n(Ge[Xe],"unhide");fe.wrapper.offsetHeight&&(ce.scrollTop=ae.display.scroller.scrollTop),ie.changeObjs&&$n(ae,"changes",ae,ie.changeObjs),ie.update&&ie.update.finish()}function to(ie,ae){if(ie.curOp)return ae();So(ie);try{return ae()}finally{Ya(ie)}}function uo(ie,ae){return function(){if(ie.curOp)return ae.apply(ie,arguments);So(ie);try{return ae.apply(ie,arguments)}finally{Ya(ie)}}}function Mo(ie){return function(){if(this.curOp)return ie.apply(this,arguments);So(this);try{return ie.apply(this,arguments)}finally{Ya(this)}}}function ia(ie){return function(){var ae=this.cm;if(!ae||ae.curOp)return ie.apply(this,arguments);So(ae);try{return ie.apply(this,arguments)}finally{Ya(ae)}}}function ns(ie,ae){ie.doc.highlightFrontier<ie.display.viewTo&&ie.state.highlight.set(ae,Nt(hs,ie))}function hs(ie){var ae=ie.doc;if(!(ae.highlightFrontier>=ie.display.viewTo)){var fe=+new Date+ie.options.workTime,ce=fo(ie,ae.highlightFrontier),me=[];ae.iter(ce.line,Math.min(ae.first+ae.size,ie.display.viewTo+500),function(Me){if(ce.line>=ie.display.viewFrom){var Ge=Me.styles,qe=Me.text.length>ie.options.maxHighlightLength?Ei(ae.mode,ce.state):null,Xe=Ir(ie,Me,ce,!0);qe&&(ce.state=qe),Me.styles=Xe.styles;var mt=Me.styleClasses,hn=Xe.classes;hn?Me.styleClasses=hn:mt&&(Me.styleClasses=null);for(var At=!Ge||Ge.length!=Me.styles.length||mt!=hn&&(!mt||!hn||mt.bgClass!=hn.bgClass||mt.textClass!=hn.textClass),bn=0;!At&&bn<Ge.length;++bn)At=Ge[bn]!=Me.styles[bn];At&&me.push(ce.line),Me.stateAfter=ce.save(),ce.nextLine()}else Me.text.length<=ie.options.maxHighlightLength&&yn(ie,Me.text,ce),Me.stateAfter=ce.line%5==0?ce.save():null,ce.nextLine();if(+new Date>fe)return ns(ie,ie.options.workDelay),!0}),ae.highlightFrontier=ce.line,ae.modeFrontier=Math.max(ae.modeFrontier,ce.line),me.length&&to(ie,function(){for(var Me=0;Me<me.length;Me++)yo(ie,me[Me],"text")})}}var Kh=function(ie,ae,fe){var ce=ie.display;this.viewport=ae,this.visible=Ao(ce,ie.doc,ae),this.editorIsHidden=!ce.wrapper.offsetWidth,this.wrapperHeight=ce.wrapper.clientHeight,this.wrapperWidth=ce.wrapper.clientWidth,this.oldDisplayWidth=oo(ie),this.force=fe,this.dims=Na(ie),this.events=[]};Kh.prototype.signal=function(ie,ae){Di(ie,ae)&&this.events.push(arguments)},Kh.prototype.finish=function(){for(var ie=0;ie<this.events.length;ie++)$n.apply(null,this.events[ie])};function Hp(ie){var ae=ie.display;!ae.scrollbarsClipped&&ae.scroller.offsetWidth&&(ae.nativeBarWidth=ae.scroller.offsetWidth-ae.scroller.clientWidth,ae.heightForcer.style.height=Er(ie)+"px",ae.sizer.style.marginBottom=-ae.nativeBarWidth+"px",ae.sizer.style.borderRightWidth=Er(ie)+"px",ae.scrollbarsClipped=!0)}function Gp(ie){if(ie.hasFocus())return null;var ae=gt();if(!ae||!Ct(ie.display.lineDiv,ae))return null;var fe={activeElt:ae};if(window.getSelection){var ce=window.getSelection();ce.anchorNode&&ce.extend&&Ct(ie.display.lineDiv,ce.anchorNode)&&(fe.anchorNode=ce.anchorNode,fe.anchorOffset=ce.anchorOffset,fe.focusNode=ce.focusNode,fe.focusOffset=ce.focusOffset)}return fe}function ol(ie){if(!(!ie||!ie.activeElt||ie.activeElt==gt())&&(ie.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(ie.activeElt.nodeName)&&ie.anchorNode&&Ct(document.body,ie.anchorNode)&&Ct(document.body,ie.focusNode))){var ae=window.getSelection(),fe=document.createRange();fe.setEnd(ie.anchorNode,ie.anchorOffset),fe.collapse(!1),ae.removeAllRanges(),ae.addRange(fe),ae.extend(ie.focusNode,ie.focusOffset)}}function nf(ie,ae){var fe=ie.display,ce=ie.doc;if(ae.editorIsHidden)return ma(ie),!1;if(!ae.force&&ae.visible.from>=fe.viewFrom&&ae.visible.to<=fe.viewTo&&(fe.updateLineNumbers==null||fe.updateLineNumbers>=fe.viewTo)&&fe.renderedView==fe.view&&us(ie)==0)return!1;ss(ie)&&(ma(ie),ae.dims=Na(ie));var me=ce.first+ce.size,Me=Math.max(ae.visible.from-ie.options.viewportMargin,ce.first),Ge=Math.min(me,ae.visible.to+ie.options.viewportMargin);fe.viewFrom<Me&&Me-fe.viewFrom<20&&(Me=Math.max(ce.first,fe.viewFrom)),fe.viewTo>Ge&&fe.viewTo-Ge<20&&(Ge=Math.min(me,fe.viewTo)),Mn&&(Me=ke(ie.doc,Me),Ge=ht(ie.doc,Ge));var qe=Me!=fe.viewFrom||Ge!=fe.viewTo||fe.lastWrapHeight!=ae.wrapperHeight||fe.lastWrapWidth!=ae.wrapperWidth;aa(ie,Me,Ge),fe.viewOffset=Pt(Ai(ie.doc,fe.viewFrom)),ie.display.mover.style.top=fe.viewOffset+"px";var Xe=us(ie);if(!qe&&Xe==0&&!ae.force&&fe.renderedView==fe.view&&(fe.updateLineNumbers==null||fe.updateLineNumbers>=fe.viewTo))return!1;var mt=Gp(ie);return Xe>4&&(fe.lineDiv.style.display="none"),cg(ie,fe.updateLineNumbers,ae.dims),Xe>4&&(fe.lineDiv.style.display=""),fe.renderedView=fe.view,ol(mt),Ie(fe.cursorDiv),Ie(fe.selectionDiv),fe.gutters.style.height=fe.sizer.style.minHeight=0,qe&&(fe.lastWrapHeight=ae.wrapperHeight,fe.lastWrapWidth=ae.wrapperWidth,ns(ie,400)),fe.updateLineNumbers=null,!0}function Sa(ie,ae){for(var fe=ae.viewport,ce=!0;;ce=!1){if(!ce||!ie.options.lineWrapping||ae.oldDisplayWidth==oo(ie)){if(fe&&fe.top!=null&&(fe={top:Math.min(ie.doc.height+Fi(ie.display)-vo(ie),fe.top)}),ae.visible=Ao(ie.display,ie.doc,fe),ae.visible.from>=ie.display.viewFrom&&ae.visible.to<=ie.display.viewTo)break}else ce&&(ae.visible=Ao(ie.display,ie.doc,fe));if(!nf(ie,ae))break;Gr(ie);var me=Bo(ie);Ta(ie),es(ie,me),ph(ie,me),ae.force=!1}ae.signal(ie,"update",ie),(ie.display.viewFrom!=ie.display.reportedViewFrom||ie.display.viewTo!=ie.display.reportedViewTo)&&(ae.signal(ie,"viewportChange",ie,ie.display.viewFrom,ie.display.viewTo),ie.display.reportedViewFrom=ie.display.viewFrom,ie.display.reportedViewTo=ie.display.viewTo)}function fh(ie,ae){var fe=new Kh(ie,ae);if(nf(ie,fe)){Gr(ie),Sa(ie,fe);var ce=Bo(ie);Ta(ie),es(ie,ce),ph(ie,ce),fe.finish()}}function cg(ie,ae,fe){var ce=ie.display,me=ie.options.lineNumbers,Me=ce.lineDiv,Ge=Me.firstChild;function qe(Bi){var zi=Bi.nextSibling;return Ue&&ue&&ie.display.currentWheelTarget==Bi?Bi.style.display="none":Bi.parentNode.removeChild(Bi),zi}for(var Xe=ce.view,mt=ce.viewFrom,hn=0;hn<Xe.length;hn++){var At=Xe[hn];if(!At.hidden)if(!At.node||At.node.parentNode!=Me){var bn=Zi(ie,At,mt,fe);Me.insertBefore(bn,Ge)}else{for(;Ge!=At.node;)Ge=qe(Ge);var Sn=me&&ae!=null&&ae<=mt&&At.lineNumber;At.changes&&(Rt(At.changes,"gutter")>-1&&(Sn=!1),nr(ie,At,mt,fe)),Sn&&(Ie(At.lineNumber),At.lineNumber.appendChild(document.createTextNode(Yn(ie.options,mt)))),Ge=At.node.nextSibling}mt+=At.size}for(;Ge;)Ge=qe(Ge)}function gh(ie){var ae=ie.gutters.offsetWidth;ie.sizer.style.marginLeft=ae+"px"}function ph(ie,ae){ie.display.sizer.style.minHeight=ae.docHeight+"px",ie.display.heightForcer.style.top=ae.docHeight+"px",ie.display.gutters.style.height=ae.docHeight+ie.display.barHeight+Er(ie)+"px"}function rf(ie){var ae=ie.display,fe=ae.view;if(!(!ae.alignWidgets&&(!ae.gutters.firstChild||!ie.options.fixedGutter))){for(var ce=Zs(ae)-ae.scroller.scrollLeft+ie.doc.scrollLeft,me=ae.gutters.offsetWidth,Me=ce+"px",Ge=0;Ge<fe.length;Ge++)if(!fe[Ge].hidden){ie.options.fixedGutter&&(fe[Ge].gutter&&(fe[Ge].gutter.style.left=Me),fe[Ge].gutterBackground&&(fe[Ge].gutterBackground.style.left=Me));var qe=fe[Ge].alignable;if(qe)for(var Xe=0;Xe<qe.length;Xe++)qe[Xe].style.left=Me}ie.options.fixedGutter&&(ae.gutters.style.left=ce+me+"px")}}function ss(ie){if(!ie.options.lineNumbers)return!1;var ae=ie.doc,fe=Yn(ie.options,ae.first+ae.size-1),ce=ie.display;if(fe.length!=ce.lineNumChars){var me=ce.measure.appendChild(Re("div",[Re("div",fe)],"CodeMirror-linenumber CodeMirror-gutter-elt")),Me=me.firstChild.offsetWidth,Ge=me.offsetWidth-Me;return ce.lineGutter.style.width="",ce.lineNumInnerWidth=Math.max(Me,ce.lineGutter.offsetWidth-Ge)+1,ce.lineNumWidth=ce.lineNumInnerWidth+Ge,ce.lineNumChars=ce.lineNumInnerWidth?fe.length:-1,ce.lineGutter.style.width=ce.lineNumWidth+"px",gh(ie.display),!0}return!1}function xs(ie,ae){for(var fe=[],ce=!1,me=0;me<ie.length;me++){var Me=ie[me],Ge=null;if(typeof Me!="string"&&(Ge=Me.style,Me=Me.className),Me=="CodeMirror-linenumbers")if(ae)ce=!0;else continue;fe.push({className:Me,style:Ge})}return ae&&!ce&&fe.push({className:"CodeMirror-linenumbers",style:null}),fe}function _h(ie){var ae=ie.gutters,fe=ie.gutterSpecs;Ie(ae),ie.lineGutter=null;for(var ce=0;ce<fe.length;++ce){var me=fe[ce],Me=me.className,Ge=me.style,qe=ae.appendChild(Re("div",null,"CodeMirror-gutter "+Me));Ge&&(qe.style.cssText=Ge),Me=="CodeMirror-linenumbers"&&(ie.lineGutter=qe,qe.style.width=(ie.lineNumWidth||1)+"px")}ae.style.display=fe.length?"":"none",gh(ie)}function Bl(ie){_h(ie.display),la(ie),rf(ie)}function mh(ie,ae,fe,ce){var me=this;this.input=fe,me.scrollbarFiller=Re("div",null,"CodeMirror-scrollbar-filler"),me.scrollbarFiller.setAttribute("cm-not-content","true"),me.gutterFiller=Re("div",null,"CodeMirror-gutter-filler"),me.gutterFiller.setAttribute("cm-not-content","true"),me.lineDiv=rt("div",null,"CodeMirror-code"),me.selectionDiv=Re("div",null,null,"position: relative; z-index: 1"),me.cursorDiv=Re("div",null,"CodeMirror-cursors"),me.measure=Re("div",null,"CodeMirror-measure"),me.lineMeasure=Re("div",null,"CodeMirror-measure"),me.lineSpace=rt("div",[me.measure,me.lineMeasure,me.selectionDiv,me.cursorDiv,me.lineDiv],null,"position: relative; outline: none");var Me=rt("div",[me.lineSpace],"CodeMirror-lines");me.mover=Re("div",[Me],null,"position: relative"),me.sizer=Re("div",[me.mover],"CodeMirror-sizer"),me.sizerWidth=null,me.heightForcer=Re("div",null,null,"position: absolute; height: "+Zt+"px; width: 1px;"),me.gutters=Re("div",null,"CodeMirror-gutters"),me.lineGutter=null,me.scroller=Re("div",[me.sizer,me.heightForcer,me.gutters],"CodeMirror-scroll"),me.scroller.setAttribute("tabIndex","-1"),me.wrapper=Re("div",[me.scrollbarFiller,me.gutterFiller,me.scroller],"CodeMirror"),at&&Ze<8&&(me.gutters.style.zIndex=-1,me.scroller.style.paddingRight=0),!Ue&&!(ve&&ne)&&(me.scroller.draggable=!0),ie&&(ie.appendChild?ie.appendChild(me.wrapper):ie(me.wrapper)),me.viewFrom=me.viewTo=ae.first,me.reportedViewFrom=me.reportedViewTo=ae.first,me.view=[],me.renderedView=null,me.externalMeasured=null,me.viewOffset=0,me.lastWrapHeight=me.lastWrapWidth=0,me.updateLineNumbers=null,me.nativeBarWidth=me.barHeight=me.barWidth=0,me.scrollbarsClipped=!1,me.lineNumWidth=me.lineNumInnerWidth=me.lineNumChars=null,me.alignWidgets=!1,me.cachedCharWidth=me.cachedTextHeight=me.cachedPaddingH=null,me.maxLine=null,me.maxLineLength=0,me.maxLineChanged=!1,me.wheelDX=me.wheelDY=me.wheelStartX=me.wheelStartY=null,me.shift=!1,me.selForContextMenu=null,me.activeTouch=null,me.gutterSpecs=xs(ce.gutters,ce.lineNumbers),_h(me),fe.init(me)}var vl=0,is=null;at?is=-.53:ve?is=15:nt?is=-.7:wt&&(is=-1/3);function Su(ie){var ae=ie.wheelDeltaX,fe=ie.wheelDeltaY;return ae==null&&ie.detail&&ie.axis==ie.HORIZONTAL_AXIS&&(ae=ie.detail),fe==null&&ie.detail&&ie.axis==ie.VERTICAL_AXIS?fe=ie.detail:fe==null&&(fe=ie.wheelDelta),{x:ae,y:fe}}function Nl(ie){var ae=Su(ie);return ae.x*=is,ae.y*=is,ae}function Ps(ie,ae){var fe=Su(ae),ce=fe.x,me=fe.y,Me=ie.display,Ge=Me.scroller,qe=Ge.scrollWidth>Ge.clientWidth,Xe=Ge.scrollHeight>Ge.clientHeight;if(ce&&qe||me&&Xe){if(me&&ue&&Ue){e:for(var mt=ae.target,hn=Me.view;mt!=Ge;mt=mt.parentNode)for(var At=0;At<hn.length;At++)if(hn[At].node==mt){ie.display.currentWheelTarget=mt;break e}}if(ce&&!ve&&!De&&is!=null){me&&Xe&&gl(ie,Math.max(0,Ge.scrollTop+me*is)),pl(ie,Math.max(0,Ge.scrollLeft+ce*is)),(!me||me&&Xe)&&Ji(ae),Me.wheelStartX=null;return}if(me&&is!=null){var bn=me*is,Sn=ie.doc.scrollTop,Bi=Sn+Me.wrapper.clientHeight;bn<0?Sn=Math.max(0,Sn+bn-50):Bi=Math.min(ie.doc.height,Bi+bn+50),fh(ie,{top:Sn,bottom:Bi})}vl<20&&(Me.wheelStartX==null?(Me.wheelStartX=Ge.scrollLeft,Me.wheelStartY=Ge.scrollTop,Me.wheelDX=ce,Me.wheelDY=me,setTimeout(function(){if(Me.wheelStartX!=null){var zi=Ge.scrollLeft-Me.wheelStartX,Qi=Ge.scrollTop-Me.wheelStartY,wr=Qi&&Me.wheelDY&&Qi/Me.wheelDY||zi&&Me.wheelDX&&zi/Me.wheelDX;Me.wheelStartX=Me.wheelStartY=null,wr&&(is=(is*vl+wr)/(vl+1),++vl)}},200)):(Me.wheelDX+=ce,Me.wheelDY+=me))}}var Yl=function(ie,ae){this.ranges=ie,this.primIndex=ae};Yl.prototype.primary=function(){return this.ranges[this.primIndex]},Yl.prototype.equals=function(ie){if(ie==this)return!0;if(ie.primIndex!=this.primIndex||ie.ranges.length!=this.ranges.length)return!1;for(var ae=0;ae<this.ranges.length;ae++){var fe=this.ranges[ae],ce=ie.ranges[ae];if(!kn(fe.anchor,ce.anchor)||!kn(fe.head,ce.head))return!1}return!0},Yl.prototype.deepCopy=function(){for(var ie=[],ae=0;ae<this.ranges.length;ae++)ie[ae]=new xa(_n(this.ranges[ae].anchor),_n(this.ranges[ae].head));return new Yl(ie,this.primIndex)},Yl.prototype.somethingSelected=function(){for(var ie=0;ie<this.ranges.length;ie++)if(!this.ranges[ie].empty())return!0;return!1},Yl.prototype.contains=function(ie,ae){ae||(ae=ie);for(var fe=0;fe<this.ranges.length;fe++){var ce=this.ranges[fe];if(Gn(ae,ce.from())>=0&&Gn(ie,ce.to())<=0)return fe}return-1};var xa=function(ie,ae){this.anchor=ie,this.head=ae};xa.prototype.from=function(){return mi(this.anchor,this.head)},xa.prototype.to=function(){return xi(this.anchor,this.head)},xa.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function ru(ie,ae,fe){var ce=ie&&ie.options.selectionsMayTouch,me=ae[fe];ae.sort(function(bn,Sn){return Gn(bn.from(),Sn.from())}),fe=Rt(ae,me);for(var Me=1;Me<ae.length;Me++){var Ge=ae[Me],qe=ae[Me-1],Xe=Gn(qe.to(),Ge.from());if(ce&&!Ge.empty()?Xe>0:Xe>=0){var mt=mi(qe.from(),Ge.from()),hn=xi(qe.to(),Ge.to()),At=qe.empty()?Ge.from()==Ge.head:qe.from()==qe.head;Me<=fe&&--fe,ae.splice(--Me,2,new xa(At?hn:mt,At?mt:hn))}}return new Yl(ae,fe)}function Qu(ie,ae){return new Yl([new xa(ie,ae||ie)],0)}function vh(ie){return ie.text?en(ie.from.line+ie.text.length-1,yt(ie.text).length+(ie.text.length==1?ie.from.ch:0)):ie.to}function Uh(ie,ae){if(Gn(ie,ae.from)<0)return ie;if(Gn(ie,ae.to)<=0)return vh(ae);var fe=ie.line+ae.text.length-(ae.to.line-ae.from.line)-1,ce=ie.ch;return ie.line==ae.to.line&&(ce+=vh(ae).ch-ae.to.ch),en(fe,ce)}function dc(ie,ae){for(var fe=[],ce=0;ce<ie.sel.ranges.length;ce++){var me=ie.sel.ranges[ce];fe.push(new xa(Uh(me.anchor,ae),Uh(me.head,ae)))}return ru(ie.cm,fe,ie.sel.primIndex)}function kd(ie,ae,fe){return ie.line==ae.line?en(fe.line,ie.ch-ae.ch+fe.ch):en(fe.line+(ie.line-ae.line),ie.ch)}function cc(ie,ae,fe){for(var ce=[],me=en(ie.first,0),Me=me,Ge=0;Ge<ae.length;Ge++){var qe=ae[Ge],Xe=kd(qe.from,me,Me),mt=kd(vh(qe),me,Me);if(me=qe.to,Me=mt,fe=="around"){var hn=ie.sel.ranges[Ge],At=Gn(hn.head,hn.anchor)<0;ce[Ge]=new xa(At?mt:Xe,At?Xe:mt)}else ce[Ge]=new xa(Xe,Xe)}return new Yl(ce,ie.sel.primIndex)}function _o(ie){ie.doc.mode=Jt(ie.options,ie.doc.modeOption),fc(ie)}function fc(ie){ie.doc.iter(function(ae){ae.stateAfter&&(ae.stateAfter=null),ae.styles&&(ae.styles=null)}),ie.doc.modeFrontier=ie.doc.highlightFrontier=ie.doc.first,ns(ie,100),ie.state.modeGen++,ie.curOp&&la(ie)}function fg(ie,ae){return ae.from.ch==0&&ae.to.ch==0&&yt(ae.text)==""&&(!ie.cm||ie.cm.options.wholeLineUpdateBefore)}function of(ie,ae,fe,ce){function me(Hr){return fe?fe[Hr]:null}function Me(Hr,Nr,Ur){Nn(Hr,Nr,Ur,ce),Pi(Hr,"change",Hr,ae)}function Ge(Hr,Nr){for(var Ur=[],Lo=Hr;Lo<Nr;++Lo)Ur.push(new dn(mt[Lo],me(Lo),ce));return Ur}var qe=ae.from,Xe=ae.to,mt=ae.text,hn=Ai(ie,qe.line),At=Ai(ie,Xe.line),bn=yt(mt),Sn=me(mt.length-1),Bi=Xe.line-qe.line;if(ae.full)ie.insert(0,Ge(0,mt.length)),ie.remove(mt.length,ie.size-mt.length);else if(fg(ie,ae)){var zi=Ge(0,mt.length-1);Me(At,At.text,Sn),Bi&&ie.remove(qe.line,Bi),zi.length&&ie.insert(qe.line,zi)}else if(hn==At)if(mt.length==1)Me(hn,hn.text.slice(0,qe.ch)+bn+hn.text.slice(Xe.ch),Sn);else{var Qi=Ge(1,mt.length-1);Qi.push(new dn(bn+hn.text.slice(Xe.ch),Sn,ce)),Me(hn,hn.text.slice(0,qe.ch)+mt[0],me(0)),ie.insert(qe.line+1,Qi)}else if(mt.length==1)Me(hn,hn.text.slice(0,qe.ch)+mt[0]+At.text.slice(Xe.ch),me(0)),ie.remove(qe.line+1,Bi);else{Me(hn,hn.text.slice(0,qe.ch)+mt[0],me(0)),Me(At,bn+At.text.slice(Xe.ch),Sn);var wr=Ge(1,mt.length-1);Bi>1&&ie.remove(qe.line+1,Bi-1),ie.insert(qe.line+1,wr)}Pi(ie,"change",ie,ae)}function xu(ie,ae,fe){function ce(me,Me,Ge){if(me.linked)for(var qe=0;qe<me.linked.length;++qe){var Xe=me.linked[qe];if(Xe.doc!=Me){var mt=Ge&&Xe.sharedHist;fe&&!mt||(ae(Xe.doc,mt),ce(Xe.doc,me,mt))}}}ce(ie,null,!0)}function af(ie,ae){if(ae.cm)throw new Error("This document is already in use.");ie.doc=ae,ae.cm=ie,Wr(ie),_o(ie),gc(ie),ie.options.lineWrapping||Qt(ie),ie.options.mode=ae.modeOption,la(ie)}function gc(ie){(ie.doc.direction=="rtl"?kt:Te)(ie.display.lineDiv,"CodeMirror-rtl")}function tv(ie){to(ie,function(){gc(ie),la(ie)})}function Bd(ie){this.done=[],this.undone=[],this.undoDepth=1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=ie||1}function sf(ie,ae){var fe={from:_n(ae.from),to:vh(ae),text:ur(ie,ae.from,ae.to)};return yh(ie,fe,ae.from.line,ae.to.line+1),xu(ie,function(ce){return yh(ce,fe,ae.from.line,ae.to.line+1)},!0),fe}function Nd(ie){for(;ie.length;){var ae=yt(ie);if(ae.ranges)ie.pop();else break}}function pc(ie,ae){if(ae)return Nd(ie.done),yt(ie.done);if(ie.done.length&&!yt(ie.done).ranges)return yt(ie.done);if(ie.done.length>1&&!ie.done[ie.done.length-2].ranges)return ie.done.pop(),yt(ie.done)}function mc(ie,ae,fe,ce){var me=ie.history;me.undone.length=0;var Me=+new Date,Ge,qe;if((me.lastOp==ce||me.lastOrigin==ae.origin&&ae.origin&&(ae.origin.charAt(0)=="+"&&me.lastModTime>Me-(ie.cm?ie.cm.options.historyEventDelay:500)||ae.origin.charAt(0)=="*"))&&(Ge=pc(me,me.lastOp==ce)))qe=yt(Ge.changes),Gn(ae.from,ae.to)==0&&Gn(ae.from,qe.to)==0?qe.to=vh(ae):Ge.changes.push(sf(ie,ae));else{var Xe=yt(me.done);for((!Xe||!Xe.ranges)&&Td(ie.sel,me.done),Ge={changes:[sf(ie,ae)],generation:me.generation},me.done.push(Ge);me.done.length>me.undoDepth;)me.done.shift(),me.done[0].ranges||me.done.shift()}me.done.push(fe),me.generation=++me.maxGeneration,me.lastModTime=me.lastSelTime=Me,me.lastOp=me.lastSelOp=ce,me.lastOrigin=me.lastSelOrigin=ae.origin,qe||$n(ie,"historyAdded")}function gg(ie,ae,fe,ce){var me=ae.charAt(0);return me=="*"||me=="+"&&fe.ranges.length==ce.ranges.length&&fe.somethingSelected()==ce.somethingSelected()&&new Date-ie.history.lastSelTime<=(ie.cm?ie.cm.options.historyEventDelay:500)}function vc(ie,ae,fe,ce){var me=ie.history,Me=ce&&ce.origin;fe==me.lastSelOp||Me&&me.lastSelOrigin==Me&&(me.lastModTime==me.lastSelTime&&me.lastOrigin==Me||gg(ie,Me,yt(me.done),ae))?me.done[me.done.length-1]=ae:Td(ae,me.done),me.lastSelTime=+new Date,me.lastSelOrigin=Me,me.lastSelOp=fe,ce&&ce.clearRedo!==!1&&Nd(me.undone)}function Td(ie,ae){var fe=yt(ae);fe&&fe.ranges&&fe.equals(ie)||ae.push(ie)}function yh(ie,ae,fe,ce){var me=ae["spans_"+ie.id],Me=0;ie.iter(Math.max(ie.first,fe),Math.min(ie.first+ie.size,ce),function(Ge){Ge.markedSpans&&((me||(me=ae["spans_"+ie.id]={}))[Me]=Ge.markedSpans),++Me})}function Js(ie){if(!ie)return null;for(var ae,fe=0;fe<ie.length;++fe)ie[fe].marker.explicitlyCleared?ae||(ae=ie.slice(0,fe)):ae&&ae.push(ie[fe]);return ae?ae.length?ae:null:ie}function ku(ie,ae){var fe=ae["spans_"+ie.id];if(!fe)return null;for(var ce=[],me=0;me<ae.text.length;++me)ce.push(Js(fe[me]));return ce}function lf(ie,ae){var fe=ku(ie,ae),ce=ko(ie,ae);if(!fe)return ce;if(!ce)return fe;for(var me=0;me<fe.length;++me){var Me=fe[me],Ge=ce[me];if(Me&&Ge)e:for(var qe=0;qe<Ge.length;++qe){for(var Xe=Ge[qe],mt=0;mt<Me.length;++mt)if(Me[mt].marker==Xe.marker)continue e;Me.push(Xe)}else Ge&&(fe[me]=Ge)}return fe}function Ju(ie,ae,fe){for(var ce=[],me=0;me<ie.length;++me){var Me=ie[me];if(Me.ranges){ce.push(fe?Yl.prototype.deepCopy.call(Me):Me);continue}var Ge=Me.changes,qe=[];ce.push({changes:qe});for(var Xe=0;Xe<Ge.length;++Xe){var mt=Ge[Xe],hn=void 0;if(qe.push({from:mt.from,to:mt.to,text:mt.text}),ae)for(var At in mt)(hn=At.match(/^spans_(\d+)$/))&&Rt(ae,Number(hn[1]))>-1&&(yt(qe)[At]=mt[At],delete mt[At])}}return ce}function uf(ie,ae,fe,ce){if(ce){var me=ie.anchor;if(fe){var Me=Gn(ae,me)<0;Me!=Gn(fe,me)<0?(me=ae,ae=fe):Me!=Gn(ae,fe)<0&&(ae=fe)}return new xa(me,ae)}else return new xa(fe||ae,ae)}function hf(ie,ae,fe,ce,me){me==null&&(me=ie.cm&&(ie.cm.display.shift||ie.extend)),Gs(ie,new Yl([uf(ie.sel.primary(),ae,fe,me)],0),ce)}function Vp(ie,ae,fe){for(var ce=[],me=ie.cm&&(ie.cm.display.shift||ie.extend),Me=0;Me<ie.sel.ranges.length;Me++)ce[Me]=uf(ie.sel.ranges[Me],ae[Me],null,me);var Ge=ru(ie.cm,ce,ie.sel.primIndex);Gs(ie,Ge,fe)}function Sh(ie,ae,fe,ce){var me=ie.sel.ranges.slice(0);me[ae]=fe,Gs(ie,ru(ie.cm,me,ie.sel.primIndex),ce)}function Xh(ie,ae,fe,ce){Gs(ie,Qu(ae,fe),ce)}function Yp(ie,ae,fe){var ce={ranges:ae.ranges,update:function(me){this.ranges=[];for(var Me=0;Me<me.length;Me++)this.ranges[Me]=new xa(ki(ie,me[Me].anchor),ki(ie,me[Me].head))},origin:fe&&fe.origin};return $n(ie,"beforeSelectionChange",ie,ce),ie.cm&&$n(ie.cm,"beforeSelectionChange",ie.cm,ce),ce.ranges!=ae.ranges?ru(ie.cm,ce.ranges,ce.ranges.length-1):ae}function df(ie,ae,fe){var ce=ie.history.done,me=yt(ce);me&&me.ranges?(ce[ce.length-1]=ae,Qh(ie,ae,fe)):Gs(ie,ae,fe)}function Gs(ie,ae,fe){Qh(ie,ae,fe),vc(ie,ie.sel,ie.cm?ie.cm.curOp.id:NaN,fe)}function Qh(ie,ae,fe){(Di(ie,"beforeSelectionChange")||ie.cm&&Di(ie.cm,"beforeSelectionChange"))&&(ae=Yp(ie,ae,fe));var ce=fe&&fe.bias||(Gn(ae.primary().head,ie.sel.primary().head)<0?-1:1);pg(ie,Sc(ie,ae,ce,!0)),!(fe&&fe.scroll===!1)&&ie.cm&&Ws(ie.cm)}function pg(ie,ae){ae.equals(ie.sel)||(ie.sel=ae,ie.cm&&(ie.cm.curOp.updateInput=1,ie.cm.curOp.selectionChanged=!0,hi(ie.cm)),Pi(ie,"cursorActivity",ie))}function yc(ie){pg(ie,Sc(ie,ie.sel,null,!1))}function Sc(ie,ae,fe,ce){for(var me,Me=0;Me<ae.ranges.length;Me++){var Ge=ae.ranges[Me],qe=ae.ranges.length==ie.sel.ranges.length&&ie.sel.ranges[Me],Xe=xc(ie,Ge.anchor,qe&&qe.anchor,fe,ce),mt=xc(ie,Ge.head,qe&&qe.head,fe,ce);(me||Xe!=Ge.anchor||mt!=Ge.head)&&(me||(me=ae.ranges.slice(0,Me)),me[Me]=new xa(Xe,mt))}return me?ru(ie.cm,me,ae.primIndex):ae}function qu(ie,ae,fe,ce,me){var Me=Ai(ie,ae.line);if(Me.markedSpans)for(var Ge=0;Ge<Me.markedSpans.length;++Ge){var qe=Me.markedSpans[Ge],Xe=qe.marker,mt="selectLeft"in Xe?!Xe.selectLeft:Xe.inclusiveLeft,hn="selectRight"in Xe?!Xe.selectRight:Xe.inclusiveRight;if((qe.from==null||(mt?qe.from<=ae.ch:qe.from<ae.ch))&&(qe.to==null||(hn?qe.to>=ae.ch:qe.to>ae.ch))){if(me&&($n(Xe,"beforeCursorEnter"),Xe.explicitlyCleared))if(Me.markedSpans){--Ge;continue}else break;if(!Xe.atomic)continue;if(fe){var At=Xe.find(ce<0?1:-1),bn=void 0;if((ce<0?hn:mt)&&(At=mg(ie,At,-ce,At&&At.line==ae.line?Me:null)),At&&At.line==ae.line&&(bn=Gn(At,fe))&&(ce<0?bn<0:bn>0))return qu(ie,At,ae,ce,me)}var Sn=Xe.find(ce<0?-1:1);return(ce<0?mt:hn)&&(Sn=mg(ie,Sn,ce,Sn.line==ae.line?Me:null)),Sn?qu(ie,Sn,ae,ce,me):null}}return ae}function xc(ie,ae,fe,ce,me){var Me=ce||1,Ge=qu(ie,ae,fe,Me,me)||!me&&qu(ie,ae,fe,Me,!0)||qu(ie,ae,fe,-Me,me)||!me&&qu(ie,ae,fe,-Me,!0);return Ge||(ie.cantEdit=!0,en(ie.first,0))}function mg(ie,ae,fe,ce){return fe<0&&ae.ch==0?ae.line>ie.first?ki(ie,en(ae.line-1)):null:fe>0&&ae.ch==(ce||Ai(ie,ae.line)).text.length?ae.line<ie.first+ie.size-1?en(ae.line+1,0):null:new en(ae.line,ae.ch+fe)}function rs(ie){ie.setSelection(en(ie.firstLine(),0),en(ie.lastLine()),Mt)}function Pc(ie,ae,fe){var ce={canceled:!1,from:ae.from,to:ae.to,text:ae.text,origin:ae.origin,cancel:function(){return ce.canceled=!0}};return fe&&(ce.update=function(me,Me,Ge,qe){me&&(ce.from=ki(ie,me)),Me&&(ce.to=ki(ie,Me)),Ge&&(ce.text=Ge),qe!==void 0&&(ce.origin=qe)}),$n(ie,"beforeChange",ie,ce),ie.cm&&$n(ie.cm,"beforeChange",ie.cm,ce),ce.canceled?(ie.cm&&(ie.cm.curOp.updateInput=2),null):{from:ce.from,to:ce.to,text:ce.text,origin:ce.origin}}function xh(ie,ae,fe){if(ie.cm){if(!ie.cm.curOp)return uo(ie.cm,xh)(ie,ae,fe);if(ie.cm.state.suppressEdits)return}if(!((Di(ie,"beforeChange")||ie.cm&&Di(ie.cm,"beforeChange"))&&(ae=Pc(ie,ae,!0),!ae))){var ce=Xr&&!fe&&Cn(ie,ae.from,ae.to);if(ce)for(var me=ce.length-1;me>=0;--me)Jh(ie,{from:ce[me].from,to:ce[me].to,text:me?[""]:ae.text,origin:ae.origin});else Jh(ie,ae)}}function Jh(ie,ae){if(!(ae.text.length==1&&ae.text[0]==""&&Gn(ae.from,ae.to)==0)){var fe=dc(ie,ae);mc(ie,ae,fe,ie.cm?ie.cm.curOp.id:NaN),Od(ie,ae,fe,ko(ie,ae));var ce=[];xu(ie,function(me,Me){!Me&&Rt(ce,me.history)==-1&&(yg(me.history,ae),ce.push(me.history)),Od(me,ae,null,ko(me,ae))})}}function wc(ie,ae,fe){var ce=ie.cm&&ie.cm.state.suppressEdits;if(!(ce&&!fe)){for(var me=ie.history,Me,Ge=ie.sel,qe=ae=="undo"?me.done:me.undone,Xe=ae=="undo"?me.undone:me.done,mt=0;mt<qe.length&&(Me=qe[mt],!(fe?Me.ranges&&!Me.equals(ie.sel):!Me.ranges));mt++);if(mt!=qe.length){for(me.lastOrigin=me.lastSelOrigin=null;;)if(Me=qe.pop(),Me.ranges){if(Td(Me,Xe),fe&&!Me.equals(ie.sel)){Gs(ie,Me,{clearRedo:!1});return}Ge=Me}else if(ce){qe.push(Me);return}else break;var hn=[];Td(Ge,Xe),Xe.push({changes:hn,generation:me.generation}),me.generation=Me.generation||++me.maxGeneration;for(var At=Di(ie,"beforeChange")||ie.cm&&Di(ie.cm,"beforeChange"),bn=function(zi){var Qi=Me.changes[zi];if(Qi.origin=ae,At&&!Pc(ie,Qi,!1))return qe.length=0,{};hn.push(sf(ie,Qi));var wr=zi?dc(ie,Qi):yt(qe);Od(ie,Qi,wr,lf(ie,Qi)),!zi&&ie.cm&&ie.cm.scrollIntoView({from:Qi.from,to:vh(Qi)});var Hr=[];xu(ie,function(Nr,Ur){!Ur&&Rt(Hr,Nr.history)==-1&&(yg(Nr.history,Qi),Hr.push(Nr.history)),Od(Nr,Qi,null,lf(Nr,Qi))})},Sn=Me.changes.length-1;Sn>=0;--Sn){var Bi=bn(Sn);if(Bi)return Bi.v}}}}function vg(ie,ae){if(ae!=0&&(ie.first+=ae,ie.sel=new Yl(Zn(ie.sel.ranges,function(me){return new xa(en(me.anchor.line+ae,me.anchor.ch),en(me.head.line+ae,me.head.ch))}),ie.sel.primIndex),ie.cm)){la(ie.cm,ie.first,ie.first-ae,ae);for(var fe=ie.cm.display,ce=fe.viewFrom;ce<fe.viewTo;ce++)yo(ie.cm,ce,"gutter")}}function Od(ie,ae,fe,ce){if(ie.cm&&!ie.cm.curOp)return uo(ie.cm,Od)(ie,ae,fe,ce);if(ae.to.line<ie.first){vg(ie,ae.text.length-1-(ae.to.line-ae.from.line));return}if(!(ae.from.line>ie.lastLine())){if(ae.from.line<ie.first){var me=ae.text.length-1-(ie.first-ae.from.line);vg(ie,me),ae={from:en(ie.first,0),to:en(ae.to.line+me,ae.to.ch),text:[yt(ae.text)],origin:ae.origin}}var Me=ie.lastLine();ae.to.line>Me&&(ae={from:ae.from,to:en(Me,Ai(ie,Me).text.length),text:[ae.text[0]],origin:ae.origin}),ae.removed=ur(ie,ae.from,ae.to),fe||(fe=dc(ie,ae)),ie.cm?Kp(ie.cm,ae,ce):of(ie,ae,ce),Qh(ie,fe,Mt),ie.cantEdit&&xc(ie,en(ie.firstLine(),0))&&(ie.cantEdit=!1)}}function Kp(ie,ae,fe){var ce=ie.doc,me=ie.display,Me=ae.from,Ge=ae.to,qe=!1,Xe=Me.line;ie.options.lineWrapping||(Xe=et(un(Ai(ce,Me.line))),ce.iter(Xe,Ge.line+1,function(Sn){if(Sn==me.maxLine)return qe=!0,!0})),ce.sel.contains(ae.from,ae.to)>-1&&hi(ie),of(ce,ae,fe,sa(ie)),ie.options.lineWrapping||(ce.iter(Xe,Me.line+ae.text.length,function(Sn){var Bi=$t(Sn);Bi>me.maxLineLength&&(me.maxLine=Sn,me.maxLineLength=Bi,me.maxLineChanged=!0,qe=!1)}),qe&&(ie.curOp.updateMaxLine=!0)),Rr(ce,Me.line),ns(ie,400);var mt=ae.text.length-(Ge.line-Me.line)-1;ae.full?la(ie):Me.line==Ge.line&&ae.text.length==1&&!fg(ie.doc,ae)?yo(ie,Me.line,"text"):la(ie,Me.line,Ge.line+1,mt);var hn=Di(ie,"changes"),At=Di(ie,"change");if(At||hn){var bn={from:Me,to:Ge,text:ae.text,removed:ae.removed,origin:ae.origin};At&&Pi(ie,"change",ie,bn),hn&&(ie.curOp.changeObjs||(ie.curOp.changeObjs=[])).push(bn)}ie.display.selForContextMenu=null}function qh(ie,ae,fe,ce,me){var Me;ce||(ce=fe),Gn(ce,fe)<0&&(Me=[ce,fe],fe=Me[0],ce=Me[1]),typeof ae=="string"&&(ae=ie.splitLines(ae)),xh(ie,{from:fe,to:ce,text:ae,origin:me})}function Kl(ie,ae,fe,ce){fe<ie.line?ie.line+=ce:ae<ie.line&&(ie.line=ae,ie.ch=0)}function _p(ie,ae,fe,ce){for(var me=0;me<ie.length;++me){var Me=ie[me],Ge=!0;if(Me.ranges){Me.copied||(Me=ie[me]=Me.deepCopy(),Me.copied=!0);for(var qe=0;qe<Me.ranges.length;qe++)Kl(Me.ranges[qe].anchor,ae,fe,ce),Kl(Me.ranges[qe].head,ae,fe,ce);continue}for(var Xe=0;Xe<Me.changes.length;++Xe){var mt=Me.changes[Xe];if(fe<mt.from.line)mt.from=en(mt.from.line+ce,mt.from.ch),mt.to=en(mt.to.line+ce,mt.to.ch);else if(ae<=mt.to.line){Ge=!1;break}}Ge||(ie.splice(0,me+1),me=0)}}function yg(ie,ae){var fe=ae.from.line,ce=ae.to.line,me=ae.text.length-(ce-fe)-1;_p(ie.done,fe,ce,me),_p(ie.undone,fe,ce,me)}function $h(ie,ae,fe,ce){var me=ae,Me=ae;return typeof ae=="number"?Me=Ai(ie,sn(ie,ae)):me=et(ae),me==null?null:(ce(Me,me)&&ie.cm&&yo(ie.cm,me,fe),Me)}function Id(ie){this.lines=ie,this.parent=null;for(var ae=0,fe=0;fe<ie.length;++fe)ie[fe].parent=this,ae+=ie[fe].height;this.height=ae}Id.prototype={chunkSize:function(){return this.lines.length},removeInner:function(ie,ae){for(var fe=ie,ce=ie+ae;fe<ce;++fe){var me=this.lines[fe];this.height-=me.height,jn(me),Pi(me,"delete")}this.lines.splice(ie,ae)},collapse:function(ie){ie.push.apply(ie,this.lines)},insertInner:function(ie,ae,fe){this.height+=fe,this.lines=this.lines.slice(0,ie).concat(ae).concat(this.lines.slice(ie));for(var ce=0;ce<ae.length;++ce)ae[ce].parent=this},iterN:function(ie,ae,fe){for(var ce=ie+ae;ie<ce;++ie)if(fe(this.lines[ie]))return!0}};function Ka(ie){this.children=ie;for(var ae=0,fe=0,ce=0;ce<ie.length;++ce){var me=ie[ce];ae+=me.chunkSize(),fe+=me.height,me.parent=this}this.size=ae,this.height=fe,this.parent=null}Ka.prototype={chunkSize:function(){return this.size},removeInner:function(ie,ae){this.size-=ae;for(var fe=0;fe<this.children.length;++fe){var ce=this.children[fe],me=ce.chunkSize();if(ie<me){var Me=Math.min(ae,me-ie),Ge=ce.height;if(ce.removeInner(ie,Me),this.height-=Ge-ce.height,me==Me&&(this.children.splice(fe--,1),ce.parent=null),(ae-=Me)==0)break;ie=0}else ie-=me}if(this.size-ae<25&&(this.children.length>1||!(this.children[0]instanceof Id))){var qe=[];this.collapse(qe),this.children=[new Id(qe)],this.children[0].parent=this}},collapse:function(ie){for(var ae=0;ae<this.children.length;++ae)this.children[ae].collapse(ie)},insertInner:function(ie,ae,fe){this.size+=ae.length,this.height+=fe;for(var ce=0;ce<this.children.length;++ce){var me=this.children[ce],Me=me.chunkSize();if(ie<=Me){if(me.insertInner(ie,ae,fe),me.lines&&me.lines.length>50){for(var Ge=me.lines.length%25+25,qe=Ge;qe<me.lines.length;){var Xe=new Id(me.lines.slice(qe,qe+=25));me.height-=Xe.height,this.children.splice(++ce,0,Xe),Xe.parent=this}me.lines=me.lines.slice(0,Ge),this.maybeSpill()}break}ie-=Me}},maybeSpill:function(){if(!(this.children.length<=10)){var ie=this;do{var ae=ie.children.splice(ie.children.length-5,5),fe=new Ka(ae);if(ie.parent){ie.size-=fe.size,ie.height-=fe.height;var me=Rt(ie.parent.children,ie);ie.parent.children.splice(me+1,0,fe)}else{var ce=new Ka(ie.children);ce.parent=ie,ie.children=[ce,fe],ie=ce}fe.parent=ie.parent}while(ie.children.length>10);ie.parent.maybeSpill()}},iterN:function(ie,ae,fe){for(var ce=0;ce<this.children.length;++ce){var me=this.children[ce],Me=me.chunkSize();if(ie<Me){var Ge=Math.min(ae,Me-ie);if(me.iterN(ie,Ge,fe))return!0;if((ae-=Ge)==0)break;ie=0}else ie-=Me}}};var $u=function(ie,ae,fe){if(fe)for(var ce in fe)fe.hasOwnProperty(ce)&&(this[ce]=fe[ce]);this.doc=ie,this.node=ae};$u.prototype.clear=function(){var ie=this.doc.cm,ae=this.line.widgets,fe=this.line,ce=et(fe);if(!(ce==null||!ae)){for(var me=0;me<ae.length;++me)ae[me]==this&&ae.splice(me--,1);ae.length||(fe.widgets=null);var Me=hr(this);br(fe,Math.max(0,fe.height-Me)),ie&&(to(ie,function(){Up(ie,fe,-Me),yo(ie,ce,"widget")}),Pi(ie,"lineWidgetCleared",ie,this,ce))}},$u.prototype.changed=function(){var ie=this,ae=this.height,fe=this.doc.cm,ce=this.line;this.height=null;var me=hr(this)-ae;me&&(Je(this.doc,ce)||br(ce,ce.height+me),fe&&to(fe,function(){fe.curOp.forceUpdate=!0,Up(fe,ce,me),Pi(fe,"lineWidgetChanged",fe,ie,et(ce))}))},Gi($u);function Up(ie,ae,fe){Pt(ae)<(ie.curOp&&ie.curOp.scrollTop||ie.doc.scrollTop)&&vu(ie,fe)}function cf(ie,ae,fe,ce){var me=new $u(ie,fe,ce),Me=ie.cm;return Me&&me.noHScroll&&(Me.display.alignWidgets=!0),$h(ie,ae,"widget",function(Ge){var qe=Ge.widgets||(Ge.widgets=[]);if(me.insertAt==null?qe.push(me):qe.splice(Math.min(qe.length-1,Math.max(0,me.insertAt)),0,me),me.line=Ge,Me&&!Je(ie,Ge)){var Xe=Pt(Ge)<ie.scrollTop;br(Ge,Ge.height+hr(me)),Xe&&vu(Me,me.height),Me.curOp.forceUpdate=!0}return!0}),Me&&Pi(Me,"lineWidgetAdded",Me,me,typeof ae=="number"?ae:et(ae)),me}var Xp=0,Yt=function(ie,ae){this.lines=[],this.type=ae,this.doc=ie,this.id=++Xp};Yt.prototype.clear=function(){if(!this.explicitlyCleared){var ie=this.doc.cm,ae=ie&&!ie.curOp;if(ae&&So(ie),Di(this,"clear")){var fe=this.find();fe&&Pi(this,"clear",fe.from,fe.to)}for(var ce=null,me=null,Me=0;Me<this.lines.length;++Me){var Ge=this.lines[Me],qe=Vr(Ge.markedSpans,this);ie&&!this.collapsed?yo(ie,et(Ge),"text"):ie&&(qe.to!=null&&(me=et(Ge)),qe.from!=null&&(ce=et(Ge))),Ge.markedSpans=_r(Ge.markedSpans,qe),qe.from==null&&this.collapsed&&!Je(this.doc,Ge)&&ie&&br(Ge,ga(ie.display))}if(ie&&this.collapsed&&!ie.options.lineWrapping)for(var Xe=0;Xe<this.lines.length;++Xe){var mt=un(this.lines[Xe]),hn=$t(mt);hn>ie.display.maxLineLength&&(ie.display.maxLine=mt,ie.display.maxLineLength=hn,ie.display.maxLineChanged=!0)}ce!=null&&ie&&this.collapsed&&la(ie,ce,me+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,ie&&yc(ie.doc)),ie&&Pi(ie,"markerCleared",ie,this,ce,me),ae&&Ya(ie),this.parent&&this.parent.clear()}},Yt.prototype.find=function(ie,ae){ie==null&&this.type=="bookmark"&&(ie=1);for(var fe,ce,me=0;me<this.lines.length;++me){var Me=this.lines[me],Ge=Vr(Me.markedSpans,this);if(Ge.from!=null&&(fe=en(ae?Me:et(Me),Ge.from),ie==-1))return fe;if(Ge.to!=null&&(ce=en(ae?Me:et(Me),Ge.to),ie==1))return ce}return fe&&{from:fe,to:ce}},Yt.prototype.changed=function(){var ie=this,ae=this.find(-1,!0),fe=this,ce=this.doc.cm;!ae||!ce||to(ce,function(){var me=ae.line,Me=et(ae.line),Ge=eo(ce,Me);if(Ge&&(ca(Ge),ce.curOp.selectionChanged=ce.curOp.forceUpdate=!0),ce.curOp.updateMaxLine=!0,!Je(fe.doc,me)&&fe.height!=null){var qe=fe.height;fe.height=null;var Xe=hr(fe)-qe;Xe&&br(me,me.height+Xe)}Pi(ce,"markerChanged",ce,ie)})},Yt.prototype.attachLine=function(ie){if(!this.lines.length&&this.doc.cm){var ae=this.doc.cm.curOp;(!ae.maybeHiddenMarkers||Rt(ae.maybeHiddenMarkers,this)==-1)&&(ae.maybeUnhiddenMarkers||(ae.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(ie)},Yt.prototype.detachLine=function(ie){if(this.lines.splice(Rt(this.lines,ie),1),!this.lines.length&&this.doc.cm){var ae=this.doc.cm.curOp;(ae.maybeHiddenMarkers||(ae.maybeHiddenMarkers=[])).push(this)}},Gi(Yt);function ed(ie,ae,fe,ce,me){if(ce&&ce.shared)return Qp(ie,ae,fe,ce,me);if(ie.cm&&!ie.cm.curOp)return uo(ie.cm,ed)(ie,ae,fe,ce,me);var Me=new Yt(ie,me),Ge=Gn(ae,fe);if(ce&&tn(ce,Me,!1),Ge>0||Ge==0&&Me.clearWhenEmpty!==!1)return Me;if(Me.replacedWith&&(Me.collapsed=!0,Me.widgetNode=rt("span",[Me.replacedWith],"CodeMirror-widget"),ce.handleMouseEvents||Me.widgetNode.setAttribute("cm-ignore-events","true"),ce.insertLeft&&(Me.widgetNode.insertLeft=!0)),Me.collapsed){if(Bn(ie,ae.line,ae,fe,Me)||ae.line!=fe.line&&Bn(ie,fe.line,ae,fe,Me))throw new Error("Inserting collapsed marker partially overlapping an existing one");ln()}Me.addToHistory&&mc(ie,{from:ae,to:fe,origin:"markText"},ie.sel,NaN);var qe=ae.line,Xe=ie.cm,mt;if(ie.iter(qe,fe.line+1,function(At){Xe&&Me.collapsed&&!Xe.options.lineWrapping&&un(At)==Xe.display.maxLine&&(mt=!0),Me.collapsed&&qe!=ae.line&&br(At,0),Co(At,new rr(Me,qe==ae.line?ae.ch:null,qe==fe.line?fe.ch:null)),++qe}),Me.collapsed&&ie.iter(ae.line,fe.line+1,function(At){Je(ie,At)&&br(At,0)}),Me.clearOnEnter&&wn(Me,"beforeCursorEnter",function(){return Me.clear()}),Me.readOnly&&(ho(),(ie.history.done.length||ie.history.undone.length)&&ie.clearHistory()),Me.collapsed&&(Me.id=++Xp,Me.atomic=!0),Xe){if(mt&&(Xe.curOp.updateMaxLine=!0),Me.collapsed)la(Xe,ae.line,fe.line+1);else if(Me.className||Me.startStyle||Me.endStyle||Me.css||Me.attributes||Me.title)for(var hn=ae.line;hn<=fe.line;hn++)yo(Xe,hn,"text");Me.atomic&&yc(Xe.doc),Pi(Xe,"markerAdded",Xe,Me)}return Me}var Bu=function(ie,ae){this.markers=ie,this.primary=ae;for(var fe=0;fe<ie.length;++fe)ie[fe].parent=this};Bu.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var ie=0;ie<this.markers.length;++ie)this.markers[ie].clear();Pi(this,"clear")}},Bu.prototype.find=function(ie,ae){return this.primary.find(ie,ae)},Gi(Bu);function Qp(ie,ae,fe,ce,me){ce=tn(ce),ce.shared=!1;var Me=[ed(ie,ae,fe,ce,me)],Ge=Me[0],qe=ce.widgetNode;return xu(ie,function(Xe){qe&&(ce.widgetNode=qe.cloneNode(!0)),Me.push(ed(Xe,ki(Xe,ae),ki(Xe,fe),ce,me));for(var mt=0;mt<Xe.linked.length;++mt)if(Xe.linked[mt].isParent)return;Ge=yt(Me)}),new Bu(Me,Ge)}function Sg(ie){return ie.findMarks(en(ie.first,0),ie.clipPos(en(ie.lastLine())),function(ae){return ae.parent})}function Jp(ie,ae){for(var fe=0;fe<ae.length;fe++){var ce=ae[fe],me=ce.find(),Me=ie.clipPos(me.from),Ge=ie.clipPos(me.to);if(Gn(Me,Ge)){var qe=ed(ie,Me,Ge,ce.primary,ce.primary.type);ce.markers.push(qe),qe.parent=ce}}}function xg(ie){for(var ae=function(ce){var me=ie[ce],Me=[me.primary.doc];xu(me.primary.doc,function(Xe){return Me.push(Xe)});for(var Ge=0;Ge<me.markers.length;Ge++){var qe=me.markers[Ge];Rt(Me,qe.doc)==-1&&(qe.parent=null,me.markers.splice(Ge--,1))}},fe=0;fe<ie.length;fe++)ae(fe)}var nv=0,Ns=function(ie,ae,fe,ce,me){if(!(this instanceof Ns))return new Ns(ie,ae,fe,ce,me);fe==null&&(fe=0),Ka.call(this,[new Id([new dn("",null)])]),this.first=fe,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=fe;var Me=en(fe,0);this.sel=Qu(Me),this.history=new Bd(null),this.id=++nv,this.modeOption=ae,this.lineSep=ce,this.direction=me=="rtl"?"rtl":"ltr",this.extend=!1,typeof ie=="string"&&(ie=this.splitLines(ie)),of(this,{from:Me,to:Me,text:ie}),Gs(this,Qu(Me),Mt)};Ns.prototype=Fe(Ka.prototype,{constructor:Ns,iter:function(ie,ae,fe){fe?this.iterN(ie-this.first,ae-ie,fe):this.iterN(this.first,this.first+this.size,ie)},insert:function(ie,ae){for(var fe=0,ce=0;ce<ae.length;++ce)fe+=ae[ce].height;this.insertInner(ie-this.first,ae,fe)},remove:function(ie,ae){this.removeInner(ie-this.first,ae)},getValue:function(ie){var ae=Tr(this,this.first,this.first+this.size);return ie===!1?ae:ae.join(ie||this.lineSeparator())},setValue:ia(function(ie){var ae=en(this.first,0),fe=this.first+this.size-1;xh(this,{from:ae,to:en(fe,Ai(this,fe).text.length),text:this.splitLines(ie),origin:"setValue",full:!0},!0),this.cm&&Vl(this.cm,0,0),Gs(this,Qu(ae),Mt)}),replaceRange:function(ie,ae,fe,ce){ae=ki(this,ae),fe=fe?ki(this,fe):ae,qh(this,ie,ae,fe,ce)},getRange:function(ie,ae,fe){var ce=ur(this,ki(this,ie),ki(this,ae));return fe===!1?ce:ce.join(fe||this.lineSeparator())},getLine:function(ie){var ae=this.getLineHandle(ie);return ae&&ae.text},getLineHandle:function(ie){if(Tn(this,ie))return Ai(this,ie)},getLineNumber:function(ie){return et(ie)},getLineHandleVisualStart:function(ie){return typeof ie=="number"&&(ie=Ai(this,ie)),un(ie)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(ie){return ki(this,ie)},getCursor:function(ie){var ae=this.sel.primary(),fe;return ie==null||ie=="head"?fe=ae.head:ie=="anchor"?fe=ae.anchor:ie=="end"||ie=="to"||ie===!1?fe=ae.to():fe=ae.from(),fe},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:ia(function(ie,ae,fe){Xh(this,ki(this,typeof ie=="number"?en(ie,ae||0):ie),null,fe)}),setSelection:ia(function(ie,ae,fe){Xh(this,ki(this,ie),ki(this,ae||ie),fe)}),extendSelection:ia(function(ie,ae,fe){hf(this,ki(this,ie),ae&&ki(this,ae),fe)}),extendSelections:ia(function(ie,ae){Vp(this,gr(this,ie),ae)}),extendSelectionsBy:ia(function(ie,ae){var fe=Zn(this.sel.ranges,ie);Vp(this,gr(this,fe),ae)}),setSelections:ia(function(ie,ae,fe){if(ie.length){for(var ce=[],me=0;me<ie.length;me++)ce[me]=new xa(ki(this,ie[me].anchor),ki(this,ie[me].head));ae==null&&(ae=Math.min(ie.length-1,this.sel.primIndex)),Gs(this,ru(this.cm,ce,ae),fe)}}),addSelection:ia(function(ie,ae,fe){var ce=this.sel.ranges.slice(0);ce.push(new xa(ki(this,ie),ki(this,ae||ie))),Gs(this,ru(this.cm,ce,ce.length-1),fe)}),getSelection:function(ie){for(var ae=this.sel.ranges,fe,ce=0;ce<ae.length;ce++){var me=ur(this,ae[ce].from(),ae[ce].to());fe=fe?fe.concat(me):me}return ie===!1?fe:fe.join(ie||this.lineSeparator())},getSelections:function(ie){for(var ae=[],fe=this.sel.ranges,ce=0;ce<fe.length;ce++){var me=ur(this,fe[ce].from(),fe[ce].to());ie!==!1&&(me=me.join(ie||this.lineSeparator())),ae[ce]=me}return ae},replaceSelection:function(ie,ae,fe){for(var ce=[],me=0;me<this.sel.ranges.length;me++)ce[me]=ie;this.replaceSelections(ce,ae,fe||"+input")},replaceSelections:ia(function(ie,ae,fe){for(var ce=[],me=this.sel,Me=0;Me<me.ranges.length;Me++){var Ge=me.ranges[Me];ce[Me]={from:Ge.from(),to:Ge.to(),text:this.splitLines(ie[Me]),origin:fe}}for(var qe=ae&&ae!="end"&&cc(this,ce,ae),Xe=ce.length-1;Xe>=0;Xe--)xh(this,ce[Xe]);qe?df(this,qe):this.cm&&Ws(this.cm)}),undo:ia(function(){wc(this,"undo")}),redo:ia(function(){wc(this,"redo")}),undoSelection:ia(function(){wc(this,"undo",!0)}),redoSelection:ia(function(){wc(this,"redo",!0)}),setExtending:function(ie){this.extend=ie},getExtending:function(){return this.extend},historySize:function(){for(var ie=this.history,ae=0,fe=0,ce=0;ce<ie.done.length;ce++)ie.done[ce].ranges||++ae;for(var me=0;me<ie.undone.length;me++)ie.undone[me].ranges||++fe;return{undo:ae,redo:fe}},clearHistory:function(){var ie=this;this.history=new Bd(this.history.maxGeneration),xu(this,function(ae){return ae.history=ie.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(ie){return ie&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(ie){return this.history.generation==(ie||this.cleanGeneration)},getHistory:function(){return{done:Ju(this.history.done),undone:Ju(this.history.undone)}},setHistory:function(ie){var ae=this.history=new Bd(this.history.maxGeneration);ae.done=Ju(ie.done.slice(0),null,!0),ae.undone=Ju(ie.undone.slice(0),null,!0)},setGutterMarker:ia(function(ie,ae,fe){return $h(this,ie,"gutter",function(ce){var me=ce.gutterMarkers||(ce.gutterMarkers={});return me[ae]=fe,!fe&&be(me)&&(ce.gutterMarkers=null),!0})}),clearGutter:ia(function(ie){var ae=this;this.iter(function(fe){fe.gutterMarkers&&fe.gutterMarkers[ie]&&$h(ae,fe,"gutter",function(){return fe.gutterMarkers[ie]=null,be(fe.gutterMarkers)&&(fe.gutterMarkers=null),!0})})}),lineInfo:function(ie){var ae;if(typeof ie=="number"){if(!Tn(this,ie)||(ae=ie,ie=Ai(this,ie),!ie))return null}else if(ae=et(ie),ae==null)return null;return{line:ae,handle:ie,text:ie.text,gutterMarkers:ie.gutterMarkers,textClass:ie.textClass,bgClass:ie.bgClass,wrapClass:ie.wrapClass,widgets:ie.widgets}},addLineClass:ia(function(ie,ae,fe){return $h(this,ie,ae=="gutter"?"gutter":"class",function(ce){var me=ae=="text"?"textClass":ae=="background"?"bgClass":ae=="gutter"?"gutterClass":"wrapClass";if(!ce[me])ce[me]=fe;else{if(ze(fe).test(ce[me]))return!1;ce[me]+=" "+fe}return!0})}),removeLineClass:ia(function(ie,ae,fe){return $h(this,ie,ae=="gutter"?"gutter":"class",function(ce){var me=ae=="text"?"textClass":ae=="background"?"bgClass":ae=="gutter"?"gutterClass":"wrapClass",Me=ce[me];if(Me)if(fe==null)ce[me]=null;else{var Ge=Me.match(ze(fe));if(!Ge)return!1;var qe=Ge.index+Ge[0].length;ce[me]=Me.slice(0,Ge.index)+(!Ge.index||qe==Me.length?"":" ")+Me.slice(qe)||null}else return!1;return!0})}),addLineWidget:ia(function(ie,ae,fe){return cf(this,ie,ae,fe)}),removeLineWidget:function(ie){ie.clear()},markText:function(ie,ae,fe){return ed(this,ki(this,ie),ki(this,ae),fe,fe&&fe.type||"range")},setBookmark:function(ie,ae){var fe={replacedWith:ae&&(ae.nodeType==null?ae.widget:ae),insertLeft:ae&&ae.insertLeft,clearWhenEmpty:!1,shared:ae&&ae.shared,handleMouseEvents:ae&&ae.handleMouseEvents};return ie=ki(this,ie),ed(this,ie,ie,fe,"bookmark")},findMarksAt:function(ie){ie=ki(this,ie);var ae=[],fe=Ai(this,ie.line).markedSpans;if(fe)for(var ce=0;ce<fe.length;++ce){var me=fe[ce];(me.from==null||me.from<=ie.ch)&&(me.to==null||me.to>=ie.ch)&&ae.push(me.marker.parent||me.marker)}return ae},findMarks:function(ie,ae,fe){ie=ki(this,ie),ae=ki(this,ae);var ce=[],me=ie.line;return this.iter(ie.line,ae.line+1,function(Me){var Ge=Me.markedSpans;if(Ge)for(var qe=0;qe<Ge.length;qe++){var Xe=Ge[qe];!(Xe.to!=null&&me==ie.line&&ie.ch>=Xe.to||Xe.from==null&&me!=ie.line||Xe.from!=null&&me==ae.line&&Xe.from>=ae.ch)&&(!fe||fe(Xe.marker))&&ce.push(Xe.marker.parent||Xe.marker)}++me}),ce},getAllMarks:function(){var ie=[];return this.iter(function(ae){var fe=ae.markedSpans;if(fe)for(var ce=0;ce<fe.length;++ce)fe[ce].from!=null&&ie.push(fe[ce].marker)}),ie},posFromIndex:function(ie){var ae,fe=this.first,ce=this.lineSeparator().length;return this.iter(function(me){var Me=me.text.length+ce;if(Me>ie)return ae=ie,!0;ie-=Me,++fe}),ki(this,en(fe,ae))},indexFromPos:function(ie){ie=ki(this,ie);var ae=ie.ch;if(ie.line<this.first||ie.ch<0)return 0;var fe=this.lineSeparator().length;return this.iter(this.first,ie.line,function(ce){ae+=ce.text.length+fe}),ae},copy:function(ie){var ae=new Ns(Tr(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return ae.scrollTop=this.scrollTop,ae.scrollLeft=this.scrollLeft,ae.sel=this.sel,ae.extend=!1,ie&&(ae.history.undoDepth=this.history.undoDepth,ae.setHistory(this.getHistory())),ae},linkedDoc:function(ie){ie||(ie={});var ae=this.first,fe=this.first+this.size;ie.from!=null&&ie.from>ae&&(ae=ie.from),ie.to!=null&&ie.to<fe&&(fe=ie.to);var ce=new Ns(Tr(this,ae,fe),ie.mode||this.modeOption,ae,this.lineSep,this.direction);return ie.sharedHist&&(ce.history=this.history),(this.linked||(this.linked=[])).push({doc:ce,sharedHist:ie.sharedHist}),ce.linked=[{doc:this,isParent:!0,sharedHist:ie.sharedHist}],Jp(ce,Sg(this)),ce},unlinkDoc:function(ie){if(ie instanceof ua&&(ie=ie.doc),this.linked)for(var ae=0;ae<this.linked.length;++ae){var fe=this.linked[ae];if(fe.doc==ie){this.linked.splice(ae,1),ie.unlinkDoc(this),xg(Sg(this));break}}if(ie.history==this.history){var ce=[ie.id];xu(ie,function(me){return ce.push(me.id)},!0),ie.history=new Bd(null),ie.history.done=Ju(this.history.done,ce),ie.history.undone=Ju(this.history.undone,ce)}},iterLinkedDocs:function(ie){xu(this,ie)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(ie){return this.lineSep?ie.split(this.lineSep):ro(ie)},lineSeparator:function(){return this.lineSep||`
`},setDirection:ia(function(ie){ie!="rtl"&&(ie="ltr"),ie!=this.direction&&(this.direction=ie,this.iter(function(ae){return ae.order=null}),this.cm&&tv(this.cm))})}),Ns.prototype.eachLine=Ns.prototype.iter;var Cc=0;function Pg(ie){var ae=this;if(e0(ae),!(bi(ae,ie)||Mr(ae.display,ie))){Ji(ie),at&&(Cc=+new Date);var fe=Va(ae,ie,!0),ce=ie.dataTransfer.files;if(!(!fe||ae.isReadOnly()))if(ce&&ce.length&&window.FileReader&&window.File)for(var me=ce.length,Me=Array(me),Ge=0,qe=function(){++Ge==me&&uo(ae,function(){fe=ki(ae.doc,fe);var Sn={from:fe,to:fe,text:ae.doc.splitLines(Me.filter(function(Bi){return Bi!=null}).join(ae.doc.lineSeparator())),origin:"paste"};xh(ae.doc,Sn),df(ae.doc,Qu(ki(ae.doc,fe),ki(ae.doc,vh(Sn))))})()},Xe=function(Sn,Bi){if(ae.options.allowDropFileTypes&&Rt(ae.options.allowDropFileTypes,Sn.type)==-1){qe();return}var zi=new FileReader;zi.onerror=function(){return qe()},zi.onload=function(){var Qi=zi.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Qi)){qe();return}Me[Bi]=Qi,qe()},zi.readAsText(Sn)},mt=0;mt<ce.length;mt++)Xe(ce[mt],mt);else{if(ae.state.draggingText&&ae.doc.sel.contains(fe)>-1){ae.state.draggingText(ie),setTimeout(function(){return ae.display.input.focus()},20);return}try{var hn=ie.dataTransfer.getData("Text");if(hn){var At;if(ae.state.draggingText&&!ae.state.draggingText.copy&&(At=ae.listSelections()),Qh(ae.doc,Qu(fe,fe)),At)for(var bn=0;bn<At.length;++bn)qh(ae.doc,"",At[bn].anchor,At[bn].head,"drag");ae.replaceSelection(hn,"around","paste"),ae.display.input.focus()}}catch(Sn){}}}}function qp(ie,ae){if(at&&(!ie.state.draggingText||+new Date-Cc<100)){ii(ae);return}if(!(bi(ie,ae)||Mr(ie.display,ae))&&(ae.dataTransfer.setData("Text",ie.getSelection()),ae.dataTransfer.effectAllowed="copyMove",ae.dataTransfer.setDragImage&&!wt)){var fe=Re("img",null,null,"position: fixed; left: 0; top: 0;");fe.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",De&&(fe.width=fe.height=1,ie.display.wrapper.appendChild(fe),fe._top=fe.offsetTop),ae.dataTransfer.setDragImage(fe,0,0),De&&fe.parentNode.removeChild(fe)}}function $p(ie,ae){var fe=Va(ie,ae);if(fe){var ce=document.createDocumentFragment();Wo(ie,fe,ce),ie.display.dragCursor||(ie.display.dragCursor=Re("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),ie.display.lineSpace.insertBefore(ie.display.dragCursor,ie.display.cursorDiv)),Oe(ie.display.dragCursor,ce)}}function e0(ie){ie.display.dragCursor&&(ie.display.lineSpace.removeChild(ie.display.dragCursor),ie.display.dragCursor=null)}function t0(ie){if(document.getElementsByClassName){for(var ae=document.getElementsByClassName("CodeMirror"),fe=[],ce=0;ce<ae.length;ce++){var me=ae[ce].CodeMirror;me&&fe.push(me)}fe.length&&fe[0].operation(function(){for(var Me=0;Me<fe.length;Me++)ie(fe[Me])})}}var wg=!1;function Tl(){wg||(Rd(),wg=!0)}function Rd(){var ie;wn(window,"resize",function(){ie==null&&(ie=setTimeout(function(){ie=null,t0(Cg)},100))}),wn(window,"blur",function(){return t0(fl)})}function Cg(ie){var ae=ie.display;ae.cachedCharWidth=ae.cachedTextHeight=ae.cachedPaddingH=null,ae.scrollbarsClipped=!1,ie.setSize()}for(var Nu={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"},Ec=0;Ec<10;Ec++)Nu[Ec+48]=Nu[Ec+96]=String(Ec);for(var ff=65;ff<=90;ff++)Nu[ff]=String.fromCharCode(ff);for(var Ac=1;Ac<=12;Ac++)Nu[Ac+111]=Nu[Ac+63235]="F"+Ac;var yl={};yl.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"},yl.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"},yl.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"},yl.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"]},yl.default=ue?yl.macDefault:yl.pcDefault;function Eg(ie){var ae=ie.split(/-(?!$)/);ie=ae[ae.length-1];for(var fe,ce,me,Me,Ge=0;Ge<ae.length-1;Ge++){var qe=ae[Ge];if(/^(cmd|meta|m)$/i.test(qe))Me=!0;else if(/^a(lt)?$/i.test(qe))fe=!0;else if(/^(c|ctrl|control)$/i.test(qe))ce=!0;else if(/^s(hift)?$/i.test(qe))me=!0;else throw new Error("Unrecognized modifier name: "+qe)}return fe&&(ie="Alt-"+ie),ce&&(ie="Ctrl-"+ie),Me&&(ie="Cmd-"+ie),me&&(ie="Shift-"+ie),ie}function Ag(ie){var ae={};for(var fe in ie)if(ie.hasOwnProperty(fe)){var ce=ie[fe];if(/^(name|fallthrough|(de|at)tach)$/.test(fe))continue;if(ce=="..."){delete ie[fe];continue}for(var me=Zn(fe.split(" "),Eg),Me=0;Me<me.length;Me++){var Ge=void 0,qe=void 0;Me==me.length-1?(qe=me.join(" "),Ge=ce):(qe=me.slice(0,Me+1).join(" "),Ge="...");var Xe=ae[qe];if(!Xe)ae[qe]=Ge;else if(Xe!=Ge)throw new Error("Inconsistent bindings for "+qe)}delete ie[fe]}for(var mt in ae)ie[mt]=ae[mt];return ie}function _l(ie,ae,fe,ce){ae=td(ae);var me=ae.call?ae.call(ie,ce):ae[ie];if(me===!1)return"nothing";if(me==="...")return"multi";if(me!=null&&fe(me))return"handled";if(ae.fallthrough){if(Object.prototype.toString.call(ae.fallthrough)!="[object Array]")return _l(ie,ae.fallthrough,fe,ce);for(var Me=0;Me<ae.fallthrough.length;Me++){var Ge=_l(ie,ae.fallthrough[Me],fe,ce);if(Ge)return Ge}}}function jd(ie){var ae=typeof ie=="string"?ie:Nu[ie.keyCode];return ae=="Ctrl"||ae=="Alt"||ae=="Shift"||ae=="Mod"}function Fg(ie,ae,fe){var ce=ie;return ae.altKey&&ce!="Alt"&&(ie="Alt-"+ie),(ye?ae.metaKey:ae.ctrlKey)&&ce!="Ctrl"&&(ie="Ctrl-"+ie),(ye?ae.ctrlKey:ae.metaKey)&&ce!="Mod"&&(ie="Cmd-"+ie),!fe&&ae.shiftKey&&ce!="Shift"&&(ie="Shift-"+ie),ie}function n0(ie,ae){if(De&&ie.keyCode==34&&ie.char)return!1;var fe=Nu[ie.keyCode];return fe==null||ie.altGraphKey?!1:(ie.keyCode==3&&ie.code&&(fe=ie.code),Fg(fe,ie,ae))}function td(ie){return typeof ie=="string"?yl[ie]:ie}function Sl(ie,ae){for(var fe=ie.doc.sel.ranges,ce=[],me=0;me<fe.length;me++){for(var Me=ae(fe[me]);ce.length&&Gn(Me.from,yt(ce).to)<=0;){var Ge=ce.pop();if(Gn(Ge.from,Me.from)<0){Me.from=Ge.from;break}}ce.push(Me)}to(ie,function(){for(var qe=ce.length-1;qe>=0;qe--)qh(ie.doc,"",ce[qe].from,ce[qe].to,"+delete");Ws(ie)})}function Mg(ie,ae,fe){var ce=Bt(ie.text,ae+fe,fe);return ce<0||ce>ie.text.length?null:ce}function os(ie,ae,fe){var ce=Mg(ie,ae.ch,fe);return ce==null?null:new en(ae.line,ce,fe<0?"after":"before")}function Fc(ie,ae,fe,ce,me){if(ie){ae.doc.direction=="rtl"&&(me=-me);var Me=pn(fe,ae.doc.direction);if(Me){var Ge=me<0?yt(Me):Me[0],qe=me<0==(Ge.level==1),Xe=qe?"after":"before",mt;if(Ge.level>0||ae.doc.direction=="rtl"){var hn=co(ae,fe);mt=me<0?fe.text.length-1:0;var At=bo(ae,hn,mt).top;mt=nn(function(bn){return bo(ae,hn,bn).top==At},me<0==(Ge.level==1)?Ge.from:Ge.to-1,mt),Xe=="before"&&(mt=Mg(fe,mt,1))}else mt=me<0?Ge.to:Ge.from;return new en(ce,mt,Xe)}}return new en(ce,me<0?fe.text.length:0,me<0?"before":"after")}function gf(ie,ae,fe,ce){var me=pn(ae,ie.doc.direction);if(!me)return os(ae,fe,ce);fe.ch>=ae.text.length?(fe.ch=ae.text.length,fe.sticky="before"):fe.ch<=0&&(fe.ch=0,fe.sticky="after");var Me=zt(me,fe.ch,fe.sticky),Ge=me[Me];if(ie.doc.direction=="ltr"&&Ge.level%2==0&&(ce>0?Ge.to>fe.ch:Ge.from<fe.ch))return os(ae,fe,ce);var qe=function(wr,Hr){return Mg(ae,wr instanceof en?wr.ch:wr,Hr)},Xe,mt=function(wr){return ie.options.lineWrapping?(Xe=Xe||co(ie,ae),Go(ie,ae,Xe,wr)):{begin:0,end:ae.text.length}},hn=mt(fe.sticky=="before"?qe(fe,-1):fe.ch);if(ie.doc.direction=="rtl"||Ge.level==1){var At=Ge.level==1==ce<0,bn=qe(fe,At?1:-1);if(bn!=null&&(At?bn<=Ge.to&&bn<=hn.end:bn>=Ge.from&&bn>=hn.begin)){var Sn=At?"before":"after";return new en(fe.line,bn,Sn)}}var Bi=function(wr,Hr,Nr){for(var Ur=function(Oa,ms){return ms?new en(fe.line,qe(Oa,1),"before"):new en(fe.line,Oa,"after")};wr>=0&&wr<me.length;wr+=Hr){var Lo=me[wr],kr=Hr>0==(Lo.level!=1),Uo=kr?Nr.begin:qe(Nr.end,-1);if(Lo.from<=Uo&&Uo<Lo.to||(Uo=kr?Lo.from:qe(Lo.to,-1),Nr.begin<=Uo&&Uo<Nr.end))return Ur(Uo,kr)}},zi=Bi(Me+ce,ce,hn);if(zi)return zi;var Qi=ce>0?hn.end:qe(hn.begin,-1);return Qi!=null&&!(ce>0&&Qi==ae.text.length)&&(zi=Bi(ce>0?0:me.length-1,ce,mt(Qi)),zi)?zi:null}var Ph={selectAll:rs,singleSelection:function(ie){return ie.setSelection(ie.getCursor("anchor"),ie.getCursor("head"),Mt)},killLine:function(ie){return Sl(ie,function(ae){if(ae.empty()){var fe=Ai(ie.doc,ae.head.line).text.length;return ae.head.ch==fe&&ae.head.line<ie.lastLine()?{from:ae.head,to:en(ae.head.line+1,0)}:{from:ae.head,to:en(ae.head.line,fe)}}else return{from:ae.from(),to:ae.to()}})},deleteLine:function(ie){return Sl(ie,function(ae){return{from:en(ae.from().line,0),to:ki(ie.doc,en(ae.to().line+1,0))}})},delLineLeft:function(ie){return Sl(ie,function(ae){return{from:en(ae.from().line,0),to:ae.from()}})},delWrappedLineLeft:function(ie){return Sl(ie,function(ae){var fe=ie.charCoords(ae.head,"div").top+5,ce=ie.coordsChar({left:0,top:fe},"div");return{from:ce,to:ae.from()}})},delWrappedLineRight:function(ie){return Sl(ie,function(ae){var fe=ie.charCoords(ae.head,"div").top+5,ce=ie.coordsChar({left:ie.display.lineDiv.offsetWidth+100,top:fe},"div");return{from:ae.from(),to:ce}})},undo:function(ie){return ie.undo()},redo:function(ie){return ie.redo()},undoSelection:function(ie){return ie.undoSelection()},redoSelection:function(ie){return ie.redoSelection()},goDocStart:function(ie){return ie.extendSelection(en(ie.firstLine(),0))},goDocEnd:function(ie){return ie.extendSelection(en(ie.lastLine()))},goLineStart:function(ie){return ie.extendSelectionsBy(function(ae){return zd(ie,ae.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(ie){return ie.extendSelectionsBy(function(ae){return Lg(ie,ae.head)},{origin:"+move",bias:1})},goLineEnd:function(ie){return ie.extendSelectionsBy(function(ae){return Zd(ie,ae.head.line)},{origin:"+move",bias:-1})},goLineRight:function(ie){return ie.extendSelectionsBy(function(ae){var fe=ie.cursorCoords(ae.head,"div").top+5;return ie.coordsChar({left:ie.display.lineDiv.offsetWidth+100,top:fe},"div")},an)},goLineLeft:function(ie){return ie.extendSelectionsBy(function(ae){var fe=ie.cursorCoords(ae.head,"div").top+5;return ie.coordsChar({left:0,top:fe},"div")},an)},goLineLeftSmart:function(ie){return ie.extendSelectionsBy(function(ae){var fe=ie.cursorCoords(ae.head,"div").top+5,ce=ie.coordsChar({left:0,top:fe},"div");return ce.ch<ie.getLine(ce.line).search(/\S/)?Lg(ie,ae.head):ce},an)},goLineUp:function(ie){return ie.moveV(-1,"line")},goLineDown:function(ie){return ie.moveV(1,"line")},goPageUp:function(ie){return ie.moveV(-1,"page")},goPageDown:function(ie){return ie.moveV(1,"page")},goCharLeft:function(ie){return ie.moveH(-1,"char")},goCharRight:function(ie){return ie.moveH(1,"char")},goColumnLeft:function(ie){return ie.moveH(-1,"column")},goColumnRight:function(ie){return ie.moveH(1,"column")},goWordLeft:function(ie){return ie.moveH(-1,"word")},goGroupRight:function(ie){return ie.moveH(1,"group")},goGroupLeft:function(ie){return ie.moveH(-1,"group")},goWordRight:function(ie){return ie.moveH(1,"word")},delCharBefore:function(ie){return ie.deleteH(-1,"codepoint")},delCharAfter:function(ie){return ie.deleteH(1,"char")},delWordBefore:function(ie){return ie.deleteH(-1,"word")},delWordAfter:function(ie){return ie.deleteH(1,"word")},delGroupBefore:function(ie){return ie.deleteH(-1,"group")},delGroupAfter:function(ie){return ie.deleteH(1,"group")},indentAuto:function(ie){return ie.indentSelection("smart")},indentMore:function(ie){return ie.indentSelection("add")},indentLess:function(ie){return ie.indentSelection("subtract")},insertTab:function(ie){return ie.replaceSelection(" ")},insertSoftTab:function(ie){for(var ae=[],fe=ie.listSelections(),ce=ie.options.tabSize,me=0;me<fe.length;me++){var Me=fe[me].from(),Ge=st(ie.getLine(Me.line),Me.ch,ce);ae.push(gn(ce-Ge%ce))}ie.replaceSelections(ae)},defaultTab:function(ie){ie.somethingSelected()?ie.indentSelection("add"):ie.execCommand("insertTab")},transposeChars:function(ie){return to(ie,function(){for(var ae=ie.listSelections(),fe=[],ce=0;ce<ae.length;ce++)if(ae[ce].empty()){var me=ae[ce].head,Me=Ai(ie.doc,me.line).text;if(Me){if(me.ch==Me.length&&(me=new en(me.line,me.ch-1)),me.ch>0)me=new en(me.line,me.ch+1),ie.replaceRange(Me.charAt(me.ch-1)+Me.charAt(me.ch-2),en(me.line,me.ch-2),me,"+transpose");else if(me.line>ie.doc.first){var Ge=Ai(ie.doc,me.line-1).text;Ge&&(me=new en(me.line,1),ie.replaceRange(Me.charAt(0)+ie.doc.lineSeparator()+Ge.charAt(Ge.length-1),en(me.line-1,Ge.length-1),me,"+transpose"))}}fe.push(new xa(me,me))}ie.setSelections(fe)})},newlineAndIndent:function(ie){return to(ie,function(){for(var ae=ie.listSelections(),fe=ae.length-1;fe>=0;fe--)ie.replaceRange(ie.doc.lineSeparator(),ae[fe].anchor,ae[fe].head,"+input");ae=ie.listSelections();for(var ce=0;ce<ae.length;ce++)ie.indentLine(ae[ce].from().line,null,!0);Ws(ie)})},openLine:function(ie){return ie.replaceSelection(`
`,"start")},toggleOverwrite:function(ie){return ie.toggleOverwrite()}};function zd(ie,ae){var fe=Ai(ie.doc,ae),ce=un(fe);return ce!=fe&&(ae=et(ce)),Fc(!0,ie,ce,ae,1)}function Zd(ie,ae){var fe=Ai(ie.doc,ae),ce=On(fe);return ce!=fe&&(ae=et(ce)),Fc(!0,ie,fe,ae,-1)}function Lg(ie,ae){var fe=zd(ie,ae.line),ce=Ai(ie.doc,fe.line),me=pn(ce,ie.doc.direction);if(!me||me[0].level==0){var Me=Math.max(fe.ch,ce.text.search(/\S/)),Ge=ae.line==fe.line&&ae.ch<=Me&&ae.ch;return en(fe.line,Ge?0:Me,fe.sticky)}return fe}function Wd(ie,ae,fe){if(typeof ae=="string"&&(ae=Ph[ae],!ae))return!1;ie.display.input.ensurePolled();var ce=ie.display.shift,me=!1;try{ie.isReadOnly()&&(ie.state.suppressEdits=!0),fe&&(ie.display.shift=!1),me=ae(ie)!=_t}finally{ie.display.shift=ce,ie.state.suppressEdits=!1}return me}function bg(ie,ae,fe){for(var ce=0;ce<ie.state.keyMaps.length;ce++){var me=_l(ae,ie.state.keyMaps[ce],fe,ie);if(me)return me}return ie.options.extraKeys&&_l(ae,ie.options.extraKeys,fe,ie)||_l(ae,ie.options.keyMap,fe,ie)}var Tu=new He;function nd(ie,ae,fe,ce){var me=ie.state.keySeq;if(me){if(jd(ae))return"handled";if(/\'$/.test(ae)?ie.state.keySeq=null:Tu.set(50,function(){ie.state.keySeq==me&&(ie.state.keySeq=null,ie.display.input.reset())}),pf(ie,me+" "+ae,fe,ce))return!0}return pf(ie,ae,fe,ce)}function pf(ie,ae,fe,ce){var me=bg(ie,ae,ce);return me=="multi"&&(ie.state.keySeq=ae),me=="handled"&&Pi(ie,"keyHandled",ie,ae,fe),(me=="handled"||me=="multi")&&(Ji(fe),Jo(ie)),!!me}function mf(ie,ae){var fe=n0(ae,!0);return fe?ae.shiftKey&&!ie.state.keySeq?nd(ie,"Shift-"+fe,ae,function(ce){return Wd(ie,ce,!0)})||nd(ie,fe,ae,function(ce){if(typeof ce=="string"?/^go[A-Z]/.test(ce):ce.motion)return Wd(ie,ce)}):nd(ie,fe,ae,function(ce){return Wd(ie,ce)}):!1}function vf(ie,ae,fe){return nd(ie,"'"+fe+"'",ae,function(ce){return Wd(ie,ce,!0)})}var id=null;function Dg(ie){var ae=this;if(!(ie.target&&ie.target!=ae.display.input.getField())&&(ae.curOp.focus=gt(),!bi(ae,ie))){at&&Ze<11&&ie.keyCode==27&&(ie.returnValue=!1);var fe=ie.keyCode;ae.display.shift=fe==16||ie.shiftKey;var ce=mf(ae,ie);De&&(id=ce?fe:null,!ce&&fe==88&&!xn&&(ue?ie.metaKey:ie.ctrlKey)&&ae.replaceSelection("",null,"cut")),ve&&!ue&&!ce&&fe==46&&ie.shiftKey&&!ie.ctrlKey&&document.execCommand&&document.execCommand("cut"),fe==18&&!/\bCodeMirror-crosshair\b/.test(ae.display.lineDiv.className)&&kg(ae)}}function kg(ie){var ae=ie.display.lineDiv;kt(ae,"CodeMirror-crosshair");function fe(ce){(ce.keyCode==18||!ce.altKey)&&(Te(ae,"CodeMirror-crosshair"),Ci(document,"keyup",fe),Ci(document,"mouseover",fe))}wn(document,"keyup",fe),wn(document,"mouseover",fe)}function Bg(ie){ie.keyCode==16&&(this.doc.sel.shift=!1),bi(this,ie)}function Pu(ie){var ae=this;if(!(ie.target&&ie.target!=ae.display.input.getField())&&!(Mr(ae.display,ie)||bi(ae,ie)||ie.ctrlKey&&!ie.altKey||ue&&ie.metaKey)){var fe=ie.keyCode,ce=ie.charCode;if(De&&fe==id){id=null,Ji(ie);return}if(!(De&&(!ie.which||ie.which<10)&&mf(ae,ie))){var me=String.fromCharCode(ce==null?fe:ce);me!="\b"&&(vf(ae,ie,me)||ae.display.input.onKeyPress(ie))}}}var i0=400,Ng=function(ie,ae,fe){this.time=ie,this.pos=ae,this.button=fe};Ng.prototype.compare=function(ie,ae,fe){return this.time+i0>ie&&Gn(ae,this.pos)==0&&fe==this.button};var Hd,rd;function Tg(ie,ae){var fe=+new Date;return rd&&rd.compare(fe,ie,ae)?(Hd=rd=null,"triple"):Hd&&Hd.compare(fe,ie,ae)?(rd=new Ng(fe,ie,ae),Hd=null,"double"):(Hd=new Ng(fe,ie,ae),rd=null,"single")}function wu(ie){var ae=this,fe=ae.display;if(!(bi(ae,ie)||fe.activeTouch&&fe.input.supportsTouch())){if(fe.input.ensurePolled(),fe.shift=ie.shiftKey,Mr(fe,ie)){Ue||(fe.scroller.draggable=!1,setTimeout(function(){return fe.scroller.draggable=!0},100));return}if(!xf(ae,ie)){var ce=Va(ae,ie),me=Kr(ie),Me=ce?Tg(ce,me):"single";window.focus(),me==1&&ae.state.selectingText&&ae.state.selectingText(ie),!(ce&&Og(ae,me,ce,Me,ie))&&(me==1?ce?r0(ae,ce,Me,ie):so(ie)==fe.scroller&&Ji(ie):me==2?(ce&&hf(ae.doc,ce),setTimeout(function(){return fe.input.focus()},20)):me==3&&(Ce?ae.display.input.onContextMenu(ie):va(ae)))}}}function Og(ie,ae,fe,ce,me){var Me="Click";return ce=="double"?Me="Double"+Me:ce=="triple"&&(Me="Triple"+Me),Me=(ae==1?"Left":ae==2?"Middle":"Right")+Me,nd(ie,Fg(Me,me),me,function(Ge){if(typeof Ge=="string"&&(Ge=Ph[Ge]),!Ge)return!1;var qe=!1;try{ie.isReadOnly()&&(ie.state.suppressEdits=!0),qe=Ge(ie,fe)!=_t}finally{ie.state.suppressEdits=!1}return qe})}function yf(ie,ae,fe){var ce=ie.getOption("configureMouse"),me=ce?ce(ie,ae,fe):{};if(me.unit==null){var Me=se?fe.shiftKey&&fe.metaKey:fe.altKey;me.unit=Me?"rectangle":ae=="single"?"char":ae=="double"?"word":"line"}return(me.extend==null||ie.doc.extend)&&(me.extend=ie.doc.extend||fe.shiftKey),me.addNew==null&&(me.addNew=ue?fe.metaKey:fe.ctrlKey),me.moveOnDrag==null&&(me.moveOnDrag=!(ue?fe.altKey:fe.ctrlKey)),me}function r0(ie,ae,fe,ce){at?setTimeout(Nt(ha,ie),0):ie.curOp.focus=gt();var me=yf(ie,fe,ce),Me=ie.doc.sel,Ge;ie.options.dragDrop&&qr&&!ie.isReadOnly()&&fe=="single"&&(Ge=Me.contains(ae))>-1&&(Gn((Ge=Me.ranges[Ge]).from(),ae)<0||ae.xRel>0)&&(Gn(Ge.to(),ae)>0||ae.xRel<0)?Ig(ie,ce,ae,me):iv(ie,ce,ae,me)}function Ig(ie,ae,fe,ce){var me=ie.display,Me=!1,Ge=uo(ie,function(mt){Ue&&(me.scroller.draggable=!1),ie.state.draggingText=!1,Ci(me.wrapper.ownerDocument,"mouseup",Ge),Ci(me.wrapper.ownerDocument,"mousemove",qe),Ci(me.scroller,"dragstart",Xe),Ci(me.scroller,"drop",Ge),Me||(Ji(mt),ce.addNew||hf(ie.doc,fe,null,null,ce.extend),Ue&&!wt||at&&Ze==9?setTimeout(function(){me.wrapper.ownerDocument.body.focus({preventScroll:!0}),me.input.focus()},20):me.input.focus())}),qe=function(mt){Me=Me||Math.abs(ae.clientX-mt.clientX)+Math.abs(ae.clientY-mt.clientY)>=10},Xe=function(){return Me=!0};Ue&&(me.scroller.draggable=!0),ie.state.draggingText=Ge,Ge.copy=!ce.moveOnDrag,me.scroller.dragDrop&&me.scroller.dragDrop(),wn(me.wrapper.ownerDocument,"mouseup",Ge),wn(me.wrapper.ownerDocument,"mousemove",qe),wn(me.scroller,"dragstart",Xe),wn(me.scroller,"drop",Ge),va(ie),setTimeout(function(){return me.input.focus()},20)}function Rg(ie,ae,fe){if(fe=="char")return new xa(ae,ae);if(fe=="word")return ie.findWordAt(ae);if(fe=="line")return new xa(en(ae.line,0),ki(ie.doc,en(ae.line+1,0)));var ce=fe(ie,ae);return new xa(ce.from,ce.to)}function iv(ie,ae,fe,ce){var me=ie.display,Me=ie.doc;Ji(ae);var Ge,qe,Xe=Me.sel,mt=Xe.ranges;if(ce.addNew&&!ce.extend?(qe=Me.sel.contains(fe),qe>-1?Ge=mt[qe]:Ge=new xa(fe,fe)):(Ge=Me.sel.primary(),qe=Me.sel.primIndex),ce.unit=="rectangle")ce.addNew||(Ge=new xa(fe,fe)),fe=Va(ie,ae,!0,!0),qe=-1;else{var hn=Rg(ie,fe,ce.unit);ce.extend?Ge=uf(Ge,hn.anchor,hn.head,ce.extend):Ge=hn}ce.addNew?qe==-1?(qe=mt.length,Gs(Me,ru(ie,mt.concat([Ge]),qe),{scroll:!1,origin:"*mouse"})):mt.length>1&&mt[qe].empty()&&ce.unit=="char"&&!ce.extend?(Gs(Me,ru(ie,mt.slice(0,qe).concat(mt.slice(qe+1)),0),{scroll:!1,origin:"*mouse"}),Xe=Me.sel):Sh(Me,qe,Ge,jt):(qe=0,Gs(Me,new Yl([Ge],0),jt),Xe=Me.sel);var At=fe;function bn(Nr){if(Gn(At,Nr)!=0)if(At=Nr,ce.unit=="rectangle"){for(var Ur=[],Lo=ie.options.tabSize,kr=st(Ai(Me,fe.line).text,fe.ch,Lo),Uo=st(Ai(Me,Nr.line).text,Nr.ch,Lo),Oa=Math.min(kr,Uo),ms=Math.max(kr,Uo),_a=Math.min(fe.line,Nr.line),sl=Math.min(ie.lastLine(),Math.max(fe.line,Nr.line));_a<=sl;_a++){var Vs=Ai(Me,_a).text,cs=Dn(Vs,Oa,Lo);Oa==ms?Ur.push(new xa(en(_a,cs),en(_a,cs))):Vs.length>cs&&Ur.push(new xa(en(_a,cs),en(_a,Dn(Vs,ms,Lo))))}Ur.length||Ur.push(new xa(fe,fe)),Gs(Me,ru(ie,Xe.ranges.slice(0,qe).concat(Ur),qe),{origin:"*mouse",scroll:!1}),ie.scrollIntoView(Nr)}else{var xl=Ge,Ts=Rg(ie,Nr,ce.unit),fs=xl.anchor,da;Gn(Ts.anchor,fs)>0?(da=Ts.head,fs=mi(xl.from(),Ts.anchor)):(da=Ts.anchor,fs=xi(xl.to(),Ts.head));var Qa=Xe.ranges.slice(0);Qa[qe]=o0(ie,new xa(ki(Me,fs),da)),Gs(Me,ru(ie,Qa,qe),jt)}}var Sn=me.wrapper.getBoundingClientRect(),Bi=0;function zi(Nr){var Ur=++Bi,Lo=Va(ie,Nr,!0,ce.unit=="rectangle");if(Lo)if(Gn(Lo,At)!=0){ie.curOp.focus=gt(),bn(Lo);var kr=Ao(me,Me);(Lo.line>=kr.to||Lo.line<kr.from)&&setTimeout(uo(ie,function(){Bi==Ur&&zi(Nr)}),150)}else{var Uo=Nr.clientY<Sn.top?-20:Nr.clientY>Sn.bottom?20:0;Uo&&setTimeout(uo(ie,function(){Bi==Ur&&(me.scroller.scrollTop+=Uo,zi(Nr))}),50)}}function Qi(Nr){ie.state.selectingText=!1,Bi=1/0,Nr&&(Ji(Nr),me.input.focus()),Ci(me.wrapper.ownerDocument,"mousemove",wr),Ci(me.wrapper.ownerDocument,"mouseup",Hr),Me.history.lastSelOrigin=null}var wr=uo(ie,function(Nr){Nr.buttons===0||!Kr(Nr)?Qi(Nr):zi(Nr)}),Hr=uo(ie,Qi);ie.state.selectingText=Hr,wn(me.wrapper.ownerDocument,"mousemove",wr),wn(me.wrapper.ownerDocument,"mouseup",Hr)}function o0(ie,ae){var fe=ae.anchor,ce=ae.head,me=Ai(ie.doc,fe.line);if(Gn(fe,ce)==0&&fe.sticky==ce.sticky)return ae;var Me=pn(me);if(!Me)return ae;var Ge=zt(Me,fe.ch,fe.sticky),qe=Me[Ge];if(qe.from!=fe.ch&&qe.to!=fe.ch)return ae;var Xe=Ge+(qe.from==fe.ch==(qe.level!=1)?0:1);if(Xe==0||Xe==Me.length)return ae;var mt;if(ce.line!=fe.line)mt=(ce.line-fe.line)*(ie.doc.direction=="ltr"?1:-1)>0;else{var hn=zt(Me,ce.ch,ce.sticky),At=hn-Ge||(ce.ch-fe.ch)*(qe.level==1?-1:1);hn==Xe-1||hn==Xe?mt=At<0:mt=At>0}var bn=Me[Xe+(mt?-1:0)],Sn=mt==(bn.level==1),Bi=Sn?bn.from:bn.to,zi=Sn?"after":"before";return fe.ch==Bi&&fe.sticky==zi?ae:new xa(new en(fe.line,Bi,zi),ce)}function Sf(ie,ae,fe,ce){var me,Me;if(ae.touches)me=ae.touches[0].clientX,Me=ae.touches[0].clientY;else try{me=ae.clientX,Me=ae.clientY}catch(bn){return!1}if(me>=Math.floor(ie.display.gutters.getBoundingClientRect().right))return!1;ce&&Ji(ae);var Ge=ie.display,qe=Ge.lineDiv.getBoundingClientRect();if(Me>qe.bottom||!Di(ie,fe))return qi(ae);Me-=qe.top-Ge.viewOffset;for(var Xe=0;Xe<ie.display.gutterSpecs.length;++Xe){var mt=Ge.gutters.childNodes[Xe];if(mt&&mt.getBoundingClientRect().right>=me){var hn=Ft(ie.doc,Me),At=ie.display.gutterSpecs[Xe];return $n(ie,fe,ie,hn,At.className,ae),qi(ae)}}}function xf(ie,ae){return Sf(ie,ae,"gutterClick",!0)}function Pf(ie,ae){Mr(ie.display,ae)||a0(ie,ae)||bi(ie,ae,"contextmenu")||Ce||ie.display.input.onContextMenu(ae)}function a0(ie,ae){return Di(ie,"gutterContextMenu")?Sf(ie,ae,"gutterContextMenu",!1):!1}function wf(ie){ie.display.wrapper.className=ie.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+ie.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Xo(ie)}var wh={toString:function(){return"CodeMirror.Init"}},jg={},Mc={};function s0(ie){var ae=ie.optionHandlers;function fe(ce,me,Me,Ge){ie.defaults[ce]=me,Me&&(ae[ce]=Ge?function(qe,Xe,mt){mt!=wh&&Me(qe,Xe,mt)}:Me)}ie.defineOption=fe,ie.Init=wh,fe("value","",function(ce,me){return ce.setValue(me)},!0),fe("mode",null,function(ce,me){ce.doc.modeOption=me,_o(ce)},!0),fe("indentUnit",2,_o,!0),fe("indentWithTabs",!1),fe("smartIndent",!0),fe("tabSize",4,function(ce){fc(ce),Xo(ce),la(ce)},!0),fe("lineSeparator",null,function(ce,me){if(ce.doc.lineSep=me,!!me){var Me=[],Ge=ce.doc.first;ce.doc.iter(function(Xe){for(var mt=0;;){var hn=Xe.text.indexOf(me,mt);if(hn==-1)break;mt=hn+me.length,Me.push(en(Ge,hn))}Ge++});for(var qe=Me.length-1;qe>=0;qe--)qh(ce.doc,me,Me[qe],en(Me[qe].line,Me[qe].ch+me.length))}}),fe("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(ce,me,Me){ce.state.specialChars=new RegExp(me.source+(me.test(" ")?"":"| "),"g"),Me!=wh&&ce.refresh()}),fe("specialCharPlaceholder",Un,function(ce){return ce.refresh()},!0),fe("electricChars",!0),fe("inputStyle",ne?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),fe("spellcheck",!1,function(ce,me){return ce.getInputField().spellcheck=me},!0),fe("autocorrect",!1,function(ce,me){return ce.getInputField().autocorrect=me},!0),fe("autocapitalize",!1,function(ce,me){return ce.getInputField().autocapitalize=me},!0),fe("rtlMoveVisually",!de),fe("wholeLineUpdateBefore",!0),fe("theme","default",function(ce){wf(ce),Bl(ce)},!0),fe("keyMap","default",function(ce,me,Me){var Ge=td(me),qe=Me!=wh&&td(Me);qe&&qe.detach&&qe.detach(ce,Ge),Ge.attach&&Ge.attach(ce,qe||null)}),fe("extraKeys",null),fe("configureMouse",null),fe("lineWrapping",!1,l0,!0),fe("gutters",[],function(ce,me){ce.display.gutterSpecs=xs(me,ce.options.lineNumbers),Bl(ce)},!0),fe("fixedGutter",!0,function(ce,me){ce.display.gutters.style.left=me?Zs(ce.display)+"px":"0",ce.refresh()},!0),fe("coverGutterNextToScrollbar",!1,function(ce){return es(ce)},!0),fe("scrollbarStyle","native",function(ce){ml(ce),es(ce),ce.display.scrollbars.setScrollTop(ce.doc.scrollTop),ce.display.scrollbars.setScrollLeft(ce.doc.scrollLeft)},!0),fe("lineNumbers",!1,function(ce,me){ce.display.gutterSpecs=xs(ce.options.gutters,me),Bl(ce)},!0),fe("firstLineNumber",1,Bl,!0),fe("lineNumberFormatter",function(ce){return ce},Bl,!0),fe("showCursorWhenSelecting",!1,Ta,!0),fe("resetSelectionOnContextMenu",!0),fe("lineWiseCopyCut",!0),fe("pasteLinesPerSelection",!0),fe("selectionsMayTouch",!1),fe("readOnly",!1,function(ce,me){me=="nocursor"&&(fl(ce),ce.display.input.blur()),ce.display.input.readOnlyChanged(me)}),fe("screenReaderLabel",null,function(ce,me){me=me===""?null:me,ce.display.input.screenReaderLabelChanged(me)}),fe("disableInput",!1,function(ce,me){me||ce.display.input.reset()},!0),fe("dragDrop",!0,Cf),fe("allowDropFileTypes",null),fe("cursorBlinkRate",530),fe("cursorScrollMargin",0),fe("cursorHeight",1,Ta,!0),fe("singleCursorHeightPerLine",!0,Ta,!0),fe("workTime",100),fe("workDelay",100),fe("flattenSpans",!0,fc,!0),fe("addModeClass",!1,fc,!0),fe("pollInterval",100),fe("undoDepth",200,function(ce,me){return ce.doc.history.undoDepth=me}),fe("historyEventDelay",1250),fe("viewportMargin",10,function(ce){return ce.refresh()},!0),fe("maxHighlightLength",1e4,fc,!0),fe("moveInputWithCursor",!0,function(ce,me){me||ce.display.input.resetPosition()}),fe("tabindex",null,function(ce,me){return ce.display.input.getField().tabIndex=me||""}),fe("autofocus",null),fe("direction","ltr",function(ce,me){return ce.doc.setDirection(me)},!0),fe("phrases",null)}function Cf(ie,ae,fe){var ce=fe&&fe!=wh;if(!ae!=!ce){var me=ie.display.dragFunctions,Me=ae?wn:Ci;Me(ie.display.scroller,"dragstart",me.start),Me(ie.display.scroller,"dragenter",me.enter),Me(ie.display.scroller,"dragover",me.over),Me(ie.display.scroller,"dragleave",me.leave),Me(ie.display.scroller,"drop",me.drop)}}function l0(ie){ie.options.lineWrapping?(kt(ie.display.wrapper,"CodeMirror-wrap"),ie.display.sizer.style.minWidth="",ie.display.sizerWidth=null):(Te(ie.display.wrapper,"CodeMirror-wrap"),Qt(ie)),Wr(ie),la(ie),Xo(ie),setTimeout(function(){return es(ie)},100)}function ua(ie,ae){var fe=this;if(!(this instanceof ua))return new ua(ie,ae);this.options=ae=ae?tn(ae):{},tn(jg,ae,!1);var ce=ae.value;typeof ce=="string"?ce=new Ns(ce,ae.mode,null,ae.lineSeparator,ae.direction):ae.mode&&(ce.modeOption=ae.mode),this.doc=ce;var me=new ua.inputStyles[ae.inputStyle](this),Me=this.display=new mh(ie,ce,me,ae);Me.wrapper.CodeMirror=this,wf(this),ae.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),ml(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 He,keySeq:null,specialChars:null},ae.autofocus&&!ne&&Me.input.focus(),at&&Ze<11&&setTimeout(function(){return fe.display.input.reset(!0)},20),Gd(this),Tl(),So(this),this.curOp.forceUpdate=!0,af(this,ce),ae.autofocus&&!ne||this.hasFocus()?setTimeout(function(){fe.hasFocus()&&!fe.state.focused&&Qo(fe)},20):fl(this);for(var Ge in Mc)Mc.hasOwnProperty(Ge)&&Mc[Ge](this,ae[Ge],wh);ss(this),ae.finishInit&&ae.finishInit(this);for(var qe=0;qe<od.length;++qe)od[qe](this);Ya(this),Ue&&ae.lineWrapping&&getComputedStyle(Me.lineDiv).textRendering=="optimizelegibility"&&(Me.lineDiv.style.textRendering="auto")}ua.defaults=jg,ua.optionHandlers=Mc;function Gd(ie){var ae=ie.display;wn(ae.scroller,"mousedown",uo(ie,wu)),at&&Ze<11?wn(ae.scroller,"dblclick",uo(ie,function(Xe){if(!bi(ie,Xe)){var mt=Va(ie,Xe);if(!(!mt||xf(ie,Xe)||Mr(ie.display,Xe))){Ji(Xe);var hn=ie.findWordAt(mt);hf(ie.doc,hn.anchor,hn.head)}}})):wn(ae.scroller,"dblclick",function(Xe){return bi(ie,Xe)||Ji(Xe)}),wn(ae.scroller,"contextmenu",function(Xe){return Pf(ie,Xe)}),wn(ae.input.getField(),"contextmenu",function(Xe){ae.scroller.contains(Xe.target)||Pf(ie,Xe)});var fe,ce={end:0};function me(){ae.activeTouch&&(fe=setTimeout(function(){return ae.activeTouch=null},1e3),ce=ae.activeTouch,ce.end=+new Date)}function Me(Xe){if(Xe.touches.length!=1)return!1;var mt=Xe.touches[0];return mt.radiusX<=1&&mt.radiusY<=1}function Ge(Xe,mt){if(mt.left==null)return!0;var hn=mt.left-Xe.left,At=mt.top-Xe.top;return hn*hn+At*At>20*20}wn(ae.scroller,"touchstart",function(Xe){if(!bi(ie,Xe)&&!Me(Xe)&&!xf(ie,Xe)){ae.input.ensurePolled(),clearTimeout(fe);var mt=+new Date;ae.activeTouch={start:mt,moved:!1,prev:mt-ce.end<=300?ce:null},Xe.touches.length==1&&(ae.activeTouch.left=Xe.touches[0].pageX,ae.activeTouch.top=Xe.touches[0].pageY)}}),wn(ae.scroller,"touchmove",function(){ae.activeTouch&&(ae.activeTouch.moved=!0)}),wn(ae.scroller,"touchend",function(Xe){var mt=ae.activeTouch;if(mt&&!Mr(ae,Xe)&&mt.left!=null&&!mt.moved&&new Date-mt.start<300){var hn=ie.coordsChar(ae.activeTouch,"page"),At;!mt.prev||Ge(mt,mt.prev)?At=new xa(hn,hn):!mt.prev.prev||Ge(mt,mt.prev.prev)?At=ie.findWordAt(hn):At=new xa(en(hn.line,0),ki(ie.doc,en(hn.line+1,0))),ie.setSelection(At.anchor,At.head),ie.focus(),Ji(Xe)}me()}),wn(ae.scroller,"touchcancel",me),wn(ae.scroller,"scroll",function(){ae.scroller.clientHeight&&(gl(ie,ae.scroller.scrollTop),pl(ie,ae.scroller.scrollLeft,!0),$n(ie,"scroll",ie))}),wn(ae.scroller,"mousewheel",function(Xe){return Ps(ie,Xe)}),wn(ae.scroller,"DOMMouseScroll",function(Xe){return Ps(ie,Xe)}),wn(ae.wrapper,"scroll",function(){return ae.wrapper.scrollTop=ae.wrapper.scrollLeft=0}),ae.dragFunctions={enter:function(Xe){bi(ie,Xe)||ii(Xe)},over:function(Xe){bi(ie,Xe)||($p(ie,Xe),ii(Xe))},start:function(Xe){return qp(ie,Xe)},drop:uo(ie,Pg),leave:function(Xe){bi(ie,Xe)||e0(ie)}};var qe=ae.input.getField();wn(qe,"keyup",function(Xe){return Bg.call(ie,Xe)}),wn(qe,"keydown",uo(ie,Dg)),wn(qe,"keypress",uo(ie,Pu)),wn(qe,"focus",function(Xe){return Qo(ie,Xe)}),wn(qe,"blur",function(Xe){return fl(ie,Xe)})}var od=[];ua.defineInitHook=function(ie){return od.push(ie)};function ps(ie,ae,fe,ce){var me=ie.doc,Me;fe==null&&(fe="add"),fe=="smart"&&(me.mode.indent?Me=fo(ie,ae).state:fe="prev");var Ge=ie.options.tabSize,qe=Ai(me,ae),Xe=st(qe.text,null,Ge);qe.stateAfter&&(qe.stateAfter=null);var mt=qe.text.match(/^\s*/)[0],hn;if(!ce&&!/\S/.test(qe.text))hn=0,fe="not";else if(fe=="smart"&&(hn=me.mode.indent(Me,qe.text.slice(mt.length),qe.text),hn==_t||hn>150)){if(!ce)return;fe="prev"}fe=="prev"?ae>me.first?hn=st(Ai(me,ae-1).text,null,Ge):hn=0:fe=="add"?hn=Xe+ie.options.indentUnit:fe=="subtract"?hn=Xe-ie.options.indentUnit:typeof fe=="number"&&(hn=Xe+fe),hn=Math.max(0,hn);var At="",bn=0;if(ie.options.indentWithTabs)for(var Sn=Math.floor(hn/Ge);Sn;--Sn)bn+=Ge,At+=" ";if(bn<hn&&(At+=gn(hn-bn)),At!=mt)return qh(me,At,en(ae,0),en(ae,mt.length),"+input"),qe.stateAfter=null,!0;for(var Bi=0;Bi<me.sel.ranges.length;Bi++){var zi=me.sel.ranges[Bi];if(zi.head.line==ae&&zi.head.ch<mt.length){var Qi=en(ae,mt.length);Sh(me,Bi,new xa(Qi,Qi));break}}}var al=null;function ad(ie){al=ie}function Lc(ie,ae,fe,ce,me){var Me=ie.doc;ie.display.shift=!1,ce||(ce=Me.sel);var Ge=+new Date-200,qe=me=="paste"||ie.state.pasteIncoming>Ge,Xe=ro(ae),mt=null;if(qe&&ce.ranges.length>1)if(al&&al.text.join(`
`)==ae){if(ce.ranges.length%al.text.length==0){mt=[];for(var hn=0;hn<al.text.length;hn++)mt.push(Me.splitLines(al.text[hn]))}}else Xe.length==ce.ranges.length&&ie.options.pasteLinesPerSelection&&(mt=Zn(Xe,function(wr){return[wr]}));for(var At=ie.curOp.updateInput,bn=ce.ranges.length-1;bn>=0;bn--){var Sn=ce.ranges[bn],Bi=Sn.from(),zi=Sn.to();Sn.empty()&&(fe&&fe>0?Bi=en(Bi.line,Bi.ch-fe):ie.state.overwrite&&!qe?zi=en(zi.line,Math.min(Ai(Me,zi.line).text.length,zi.ch+yt(Xe).length)):qe&&al&&al.lineWise&&al.text.join(`
`)==Xe.join(`
`)&&(Bi=zi=en(Bi.line,0)));var Qi={from:Bi,to:zi,text:mt?mt[bn%mt.length]:Xe,origin:me||(qe?"paste":ie.state.cutIncoming>Ge?"cut":"+input")};xh(ie.doc,Qi),Pi(ie,"inputRead",ie,Qi)}ae&&!qe&&Zg(ie,ae),Ws(ie),ie.curOp.updateInput<2&&(ie.curOp.updateInput=At),ie.curOp.typing=!0,ie.state.pasteIncoming=ie.state.cutIncoming=-1}function zg(ie,ae){var fe=ie.clipboardData&&ie.clipboardData.getData("Text");if(fe)return ie.preventDefault(),!ae.isReadOnly()&&!ae.options.disableInput&&to(ae,function(){return Lc(ae,fe,0,null,"paste")}),!0}function Zg(ie,ae){if(!(!ie.options.electricChars||!ie.options.smartIndent))for(var fe=ie.doc.sel,ce=fe.ranges.length-1;ce>=0;ce--){var me=fe.ranges[ce];if(!(me.head.ch>100||ce&&fe.ranges[ce-1].head.line==me.head.line)){var Me=ie.getModeAt(me.head),Ge=!1;if(Me.electricChars){for(var qe=0;qe<Me.electricChars.length;qe++)if(ae.indexOf(Me.electricChars.charAt(qe))>-1){Ge=ps(ie,me.head.line,"smart");break}}else Me.electricInput&&Me.electricInput.test(Ai(ie.doc,me.head.line).text.slice(0,me.head.ch))&&(Ge=ps(ie,me.head.line,"smart"));Ge&&Pi(ie,"electricInput",ie,me.head.line)}}}function Wg(ie){for(var ae=[],fe=[],ce=0;ce<ie.doc.sel.ranges.length;ce++){var me=ie.doc.sel.ranges[ce].head.line,Me={anchor:en(me,0),head:en(me+1,0)};fe.push(Me),ae.push(ie.getRange(Me.anchor,Me.head))}return{text:ae,ranges:fe}}function Hg(ie,ae,fe,ce){ie.setAttribute("autocorrect",fe?"":"off"),ie.setAttribute("autocapitalize",ce?"":"off"),ie.setAttribute("spellcheck",!!ae)}function Gg(){var ie=Re("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),ae=Re("div",[ie],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return Ue?ie.style.width="1000px":ie.setAttribute("wrap","off"),Ee&&(ie.style.border="1px solid black"),Hg(ie),ae}function Ch(ie){var ae=ie.optionHandlers,fe=ie.helpers={};ie.prototype={constructor:ie,focus:function(){window.focus(),this.display.input.focus()},setOption:function(ce,me){var Me=this.options,Ge=Me[ce];Me[ce]==me&&ce!="mode"||(Me[ce]=me,ae.hasOwnProperty(ce)&&uo(this,ae[ce])(this,me,Ge),$n(this,"optionChange",this,ce))},getOption:function(ce){return this.options[ce]},getDoc:function(){return this.doc},addKeyMap:function(ce,me){this.state.keyMaps[me?"push":"unshift"](td(ce))},removeKeyMap:function(ce){for(var me=this.state.keyMaps,Me=0;Me<me.length;++Me)if(me[Me]==ce||me[Me].name==ce)return me.splice(Me,1),!0},addOverlay:Mo(function(ce,me){var Me=ce.token?ce:ie.getMode(this.options,ce);if(Me.startState)throw new Error("Overlays may not be stateful.");vi(this.state.overlays,{mode:Me,modeSpec:ce,opaque:me&&me.opaque,priority:me&&me.priority||0},function(Ge){return Ge.priority}),this.state.modeGen++,la(this)}),removeOverlay:Mo(function(ce){for(var me=this.state.overlays,Me=0;Me<me.length;++Me){var Ge=me[Me].modeSpec;if(Ge==ce||typeof ce=="string"&&Ge.name==ce){me.splice(Me,1),this.state.modeGen++,la(this);return}}}),indentLine:Mo(function(ce,me,Me){typeof me!="string"&&typeof me!="number"&&(me==null?me=this.options.smartIndent?"smart":"prev":me=me?"add":"subtract"),Tn(this.doc,ce)&&ps(this,ce,me,Me)}),indentSelection:Mo(function(ce){for(var me=this.doc.sel.ranges,Me=-1,Ge=0;Ge<me.length;Ge++){var qe=me[Ge];if(qe.empty())qe.head.line>Me&&(ps(this,qe.head.line,ce,!0),Me=qe.head.line,Ge==this.doc.sel.primIndex&&Ws(this));else{var Xe=qe.from(),mt=qe.to(),hn=Math.max(Me,Xe.line);Me=Math.min(this.lastLine(),mt.line-(mt.ch?0:1))+1;for(var At=hn;At<Me;++At)ps(this,At,ce);var bn=this.doc.sel.ranges;Xe.ch==0&&me.length==bn.length&&bn[Ge].from().ch>0&&Sh(this.doc,Ge,new xa(Xe,bn[Ge].to()),Mt)}}}),getTokenAt:function(ce,me){return Xi(this,ce,me)},getLineTokens:function(ce,me){return Xi(this,en(ce),me,!0)},getTokenTypeAt:function(ce){ce=ki(this.doc,ce);var me=jr(this,Ai(this.doc,ce.line)),Me=0,Ge=(me.length-1)/2,qe=ce.ch,Xe;if(qe==0)Xe=me[2];else for(;;){var mt=Me+Ge>>1;if((mt?me[mt*2-1]:0)>=qe)Ge=mt;else if(me[mt*2+1]<qe)Me=mt+1;else{Xe=me[mt*2+2];break}}var hn=Xe?Xe.indexOf("overlay "):-1;return hn<0?Xe:hn==0?null:Xe.slice(0,hn-1)},getModeAt:function(ce){var me=this.doc.mode;return me.innerMode?ie.innerMode(me,this.getTokenAt(ce).state).mode:me},getHelper:function(ce,me){return this.getHelpers(ce,me)[0]},getHelpers:function(ce,me){var Me=[];if(!fe.hasOwnProperty(me))return Me;var Ge=fe[me],qe=this.getModeAt(ce);if(typeof qe[me]=="string")Ge[qe[me]]&&Me.push(Ge[qe[me]]);else if(qe[me])for(var Xe=0;Xe<qe[me].length;Xe++){var mt=Ge[qe[me][Xe]];mt&&Me.push(mt)}else qe.helperType&&Ge[qe.helperType]?Me.push(Ge[qe.helperType]):Ge[qe.name]&&Me.push(Ge[qe.name]);for(var hn=0;hn<Ge._global.length;hn++){var At=Ge._global[hn];At.pred(qe,this)&&Rt(Me,At.val)==-1&&Me.push(At.val)}return Me},getStateAfter:function(ce,me){var Me=this.doc;return ce=sn(Me,ce==null?Me.first+Me.size-1:ce),fo(this,ce+1,me).state},cursorCoords:function(ce,me){var Me,Ge=this.doc.sel.primary();return ce==null?Me=Ge.head:typeof ce=="object"?Me=ki(this.doc,ce):Me=ce?Ge.from():Ge.to(),xr(this,Me,me||"page")},charCoords:function(ce,me){return Aa(this,ki(this.doc,ce),me||"page")},coordsChar:function(ce,me){return ce=Do(this,ce,me||"page"),vr(this,ce.left,ce.top)},lineAtHeight:function(ce,me){return ce=Do(this,{top:ce,left:0},me||"page").top,Ft(this.doc,ce+this.display.viewOffset)},heightAtLine:function(ce,me,Me){var Ge=!1,qe;if(typeof ce=="number"){var Xe=this.doc.first+this.doc.size-1;ce<this.doc.first?ce=this.doc.first:ce>Xe&&(ce=Xe,Ge=!0),qe=Ai(this.doc,ce)}else qe=ce;return ta(this,qe,{top:0,left:0},me||"page",Me||Ge).top+(Ge?this.doc.height-Pt(qe):0)},defaultTextHeight:function(){return ga(this.display)},defaultCharWidth:function(){return Ga(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(ce,me,Me,Ge,qe){var Xe=this.display;ce=xr(this,ki(this.doc,ce));var mt=ce.bottom,hn=ce.left;if(me.style.position="absolute",me.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(me),Xe.sizer.appendChild(me),Ge=="over")mt=ce.top;else if(Ge=="above"||Ge=="near"){var At=Math.max(Xe.wrapper.clientHeight,this.doc.height),bn=Math.max(Xe.sizer.clientWidth,Xe.lineSpace.clientWidth);(Ge=="above"||ce.bottom+me.offsetHeight>At)&&ce.top>me.offsetHeight?mt=ce.top-me.offsetHeight:ce.bottom+me.offsetHeight<=At&&(mt=ce.bottom),hn+me.offsetWidth>bn&&(hn=bn-me.offsetWidth)}me.style.top=mt+"px",me.style.left=me.style.right="",qe=="right"?(hn=Xe.sizer.clientWidth-me.offsetWidth,me.style.right="0px"):(qe=="left"?hn=0:qe=="middle"&&(hn=(Xe.sizer.clientWidth-me.offsetWidth)/2),me.style.left=hn+"px"),Me&&Dl(this,{left:hn,top:mt,right:hn+me.offsetWidth,bottom:mt+me.offsetHeight})},triggerOnKeyDown:Mo(Dg),triggerOnKeyPress:Mo(Pu),triggerOnKeyUp:Bg,triggerOnMouseDown:Mo(wu),execCommand:function(ce){if(Ph.hasOwnProperty(ce))return Ph[ce].call(null,this)},triggerElectric:Mo(function(ce){Zg(this,ce)}),findPosH:function(ce,me,Me,Ge){var qe=1;me<0&&(qe=-1,me=-me);for(var Xe=ki(this.doc,ce),mt=0;mt<me&&(Xe=bc(this.doc,Xe,qe,Me,Ge),!Xe.hitSide);++mt);return Xe},moveH:Mo(function(ce,me){var Me=this;this.extendSelectionsBy(function(Ge){return Me.display.shift||Me.doc.extend||Ge.empty()?bc(Me.doc,Ge.head,ce,me,Me.options.rtlMoveVisually):ce<0?Ge.from():Ge.to()},an)}),deleteH:Mo(function(ce,me){var Me=this.doc.sel,Ge=this.doc;Me.somethingSelected()?Ge.replaceSelection("",null,"+delete"):Sl(this,function(qe){var Xe=bc(Ge,qe.head,ce,me,!1);return ce<0?{from:Xe,to:qe.head}:{from:qe.head,to:Xe}})}),findPosV:function(ce,me,Me,Ge){var qe=1,Xe=Ge;me<0&&(qe=-1,me=-me);for(var mt=ki(this.doc,ce),hn=0;hn<me;++hn){var At=xr(this,mt,"div");if(Xe==null?Xe=At.left:At.left=Xe,mt=Eh(this,At,qe,Me),mt.hitSide)break}return mt},moveV:Mo(function(ce,me){var Me=this,Ge=this.doc,qe=[],Xe=!this.display.shift&&!Ge.extend&&Ge.sel.somethingSelected();if(Ge.extendSelectionsBy(function(hn){if(Xe)return ce<0?hn.from():hn.to();var At=xr(Me,hn.head,"div");hn.goalColumn!=null&&(At.left=hn.goalColumn),qe.push(At.left);var bn=Eh(Me,At,ce,me);return me=="page"&&hn==Ge.sel.primary()&&vu(Me,Aa(Me,bn,"div").top-At.top),bn},an),qe.length)for(var mt=0;mt<Ge.sel.ranges.length;mt++)Ge.sel.ranges[mt].goalColumn=qe[mt]}),findWordAt:function(ce){var me=this.doc,Me=Ai(me,ce.line).text,Ge=ce.ch,qe=ce.ch;if(Me){var Xe=this.getHelper(ce,"wordChars");(ce.sticky=="before"||qe==Me.length)&&Ge?--Ge:++qe;for(var mt=Me.charAt(Ge),hn=_e(mt,Xe)?function(At){return _e(At,Xe)}:/\s/.test(mt)?function(At){return/\s/.test(At)}:function(At){return!/\s/.test(At)&&!_e(At)};Ge>0&&hn(Me.charAt(Ge-1));)--Ge;for(;qe<Me.length&&hn(Me.charAt(qe));)++qe}return new xa(en(ce.line,Ge),en(ce.line,qe))},toggleOverwrite:function(ce){ce!=null&&ce==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?kt(this.display.cursorDiv,"CodeMirror-overwrite"):Te(this.display.cursorDiv,"CodeMirror-overwrite"),$n(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==gt()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Mo(function(ce,me){Vl(this,ce,me)}),getScrollInfo:function(){var ce=this.display.scroller;return{left:ce.scrollLeft,top:ce.scrollTop,height:ce.scrollHeight-Er(this)-this.display.barHeight,width:ce.scrollWidth-Er(this)-this.display.barWidth,clientHeight:vo(this),clientWidth:oo(this)}},scrollIntoView:Mo(function(ce,me){ce==null?(ce={from:this.doc.sel.primary().head,to:null},me==null&&(me=this.options.cursorScrollMargin)):typeof ce=="number"?ce={from:en(ce,0),to:null}:ce.from==null&&(ce={from:ce,to:null}),ce.to||(ce.to=ce.from),ce.margin=me||0,ce.from.line!=null?Ko(this,ce):yu(this,ce.from,ce.to,ce.margin)}),setSize:Mo(function(ce,me){var Me=this,Ge=function(Xe){return typeof Xe=="number"||/^\d+$/.test(String(Xe))?Xe+"px":Xe};ce!=null&&(this.display.wrapper.style.width=Ge(ce)),me!=null&&(this.display.wrapper.style.height=Ge(me)),this.options.lineWrapping&&Oo(this);var qe=this.display.viewFrom;this.doc.iter(qe,this.display.viewTo,function(Xe){if(Xe.widgets){for(var mt=0;mt<Xe.widgets.length;mt++)if(Xe.widgets[mt].noHScroll){yo(Me,qe,"widget");break}}++qe}),this.curOp.forceUpdate=!0,$n(this,"refresh",this)}),operation:function(ce){return to(this,ce)},startOperation:function(){return So(this)},endOperation:function(){return Ya(this)},refresh:Mo(function(){var ce=this.display.cachedTextHeight;la(this),this.curOp.forceUpdate=!0,Xo(this),Vl(this,this.doc.scrollLeft,this.doc.scrollTop),gh(this.display),(ce==null||Math.abs(ce-ga(this.display))>.5||this.options.lineWrapping)&&Wr(this),$n(this,"refresh",this)}),swapDoc:Mo(function(ce){var me=this.doc;return me.cm=null,this.state.selectingText&&this.state.selectingText(),af(this,ce),Xo(this),this.display.input.reset(),Vl(this,ce.scrollLeft,ce.scrollTop),this.curOp.forceScroll=!0,Pi(this,"swapDoc",this,me),me}),phrase:function(ce){var me=this.options.phrases;return me&&Object.prototype.hasOwnProperty.call(me,ce)?me[ce]:ce},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}},Gi(ie),ie.registerHelper=function(ce,me,Me){fe.hasOwnProperty(ce)||(fe[ce]=ie[ce]={_global:[]}),fe[ce][me]=Me},ie.registerGlobalHelper=function(ce,me,Me,Ge){ie.registerHelper(ce,me,Ge),fe[ce]._global.push({pred:Me,val:Ge})}}function bc(ie,ae,fe,ce,me){var Me=ae,Ge=fe,qe=Ai(ie,ae.line),Xe=me&&ie.direction=="rtl"?-fe:fe;function mt(){var Hr=ae.line+Xe;return Hr<ie.first||Hr>=ie.first+ie.size?!1:(ae=new en(Hr,ae.ch,ae.sticky),qe=Ai(ie,Hr))}function hn(Hr){var Nr;if(ce=="codepoint"){var Ur=qe.text.charCodeAt(ae.ch+(ce>0?0:-1));isNaN(Ur)?Nr=null:Nr=new en(ae.line,Math.max(0,Math.min(qe.text.length,ae.ch+fe*(Ur>=55296&&Ur<56320?2:1))),-fe)}else me?Nr=gf(ie.cm,qe,ae,fe):Nr=os(qe,ae,fe);if(Nr==null)if(!Hr&&mt())ae=Fc(me,ie.cm,qe,ae.line,Xe);else return!1;else ae=Nr;return!0}if(ce=="char"||ce=="codepoint")hn();else if(ce=="column")hn(!0);else if(ce=="word"||ce=="group")for(var At=null,bn=ce=="group",Sn=ie.cm&&ie.cm.getHelper(ae,"wordChars"),Bi=!0;!(fe<0&&!hn(!Bi));Bi=!1){var zi=qe.text.charAt(ae.ch)||`
`,Qi=_e(zi,Sn)?"w":bn&&zi==`
`?"n":!bn||/\s/.test(zi)?null:"p";if(bn&&!Bi&&!Qi&&(Qi="s"),At&&At!=Qi){fe<0&&(fe=1,hn(),ae.sticky="after");break}if(Qi&&(At=Qi),fe>0&&!hn(!Bi))break}var wr=xc(ie,ae,Me,Ge,!0);return kn(Me,wr)&&(wr.hitSide=!0),wr}function Eh(ie,ae,fe,ce){var me=ie.doc,Me=ae.left,Ge;if(ce=="page"){var qe=Math.min(ie.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),Xe=Math.max(qe-.5*ga(ie.display),3);Ge=(fe>0?ae.bottom:ae.top)+fe*Xe}else ce=="line"&&(Ge=fe>0?ae.bottom+3:ae.top-3);for(var mt;mt=vr(ie,Me,Ge),!!mt.outside;){if(fe<0?Ge<=0:Ge>=me.height){mt.hitSide=!0;break}Ge+=fe*5}return mt}var Ma=function(ie){this.cm=ie,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new He,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Ma.prototype.init=function(ie){var ae=this,fe=this,ce=fe.cm,me=fe.div=ie.lineDiv;Hg(me,ce.options.spellcheck,ce.options.autocorrect,ce.options.autocapitalize);function Me(qe){for(var Xe=qe.target;Xe;Xe=Xe.parentNode){if(Xe==me)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(Xe.className))break}return!1}wn(me,"paste",function(qe){!Me(qe)||bi(ce,qe)||zg(qe,ce)||Ze<=11&&setTimeout(uo(ce,function(){return ae.updateFromDOM()}),20)}),wn(me,"compositionstart",function(qe){ae.composing={data:qe.data,done:!1}}),wn(me,"compositionupdate",function(qe){ae.composing||(ae.composing={data:qe.data,done:!1})}),wn(me,"compositionend",function(qe){ae.composing&&(qe.data!=ae.composing.data&&ae.readFromDOMSoon(),ae.composing.done=!0)}),wn(me,"touchstart",function(){return fe.forceCompositionEnd()}),wn(me,"input",function(){ae.composing||ae.readFromDOMSoon()});function Ge(qe){if(!(!Me(qe)||bi(ce,qe))){if(ce.somethingSelected())ad({lineWise:!1,text:ce.getSelections()}),qe.type=="cut"&&ce.replaceSelection("",null,"cut");else if(ce.options.lineWiseCopyCut){var Xe=Wg(ce);ad({lineWise:!0,text:Xe.text}),qe.type=="cut"&&ce.operation(function(){ce.setSelections(Xe.ranges,0,Mt),ce.replaceSelection("",null,"cut")})}else return;if(qe.clipboardData){qe.clipboardData.clearData();var mt=al.text.join(`
`);if(qe.clipboardData.setData("Text",mt),qe.clipboardData.getData("Text")==mt){qe.preventDefault();return}}var hn=Gg(),At=hn.firstChild;ce.display.lineSpace.insertBefore(hn,ce.display.lineSpace.firstChild),At.value=al.text.join(`
`);var bn=document.activeElement;Ot(At),setTimeout(function(){ce.display.lineSpace.removeChild(hn),bn.focus(),bn==me&&fe.showPrimarySelection()},50)}}wn(me,"copy",Ge),wn(me,"cut",Ge)},Ma.prototype.screenReaderLabelChanged=function(ie){ie?this.div.setAttribute("aria-label",ie):this.div.removeAttribute("aria-label")},Ma.prototype.prepareSelection=function(){var ie=bl(this.cm,!1);return ie.focus=document.activeElement==this.div,ie},Ma.prototype.showSelection=function(ie,ae){!ie||!this.cm.display.view.length||((ie.focus||ae)&&this.showPrimarySelection(),this.showMultipleSelections(ie))},Ma.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Ma.prototype.showPrimarySelection=function(){var ie=this.getSelection(),ae=this.cm,fe=ae.doc.sel.primary(),ce=fe.from(),me=fe.to();if(ae.display.viewTo==ae.display.viewFrom||ce.line>=ae.display.viewTo||me.line<ae.display.viewFrom){ie.removeAllRanges();return}var Me=Dc(ae,ie.anchorNode,ie.anchorOffset),Ge=Dc(ae,ie.focusNode,ie.focusOffset);if(!(Me&&!Me.bad&&Ge&&!Ge.bad&&Gn(mi(Me,Ge),ce)==0&&Gn(xi(Me,Ge),me)==0)){var qe=ae.display.view,Xe=ce.line>=ae.display.viewFrom&&Ef(ae,ce)||{node:qe[0].measure.map[2],offset:0},mt=me.line<ae.display.viewTo&&Ef(ae,me);if(!mt){var hn=qe[qe.length-1].measure,At=hn.maps?hn.maps[hn.maps.length-1]:hn.map;mt={node:At[At.length-1],offset:At[At.length-2]-At[At.length-3]}}if(!Xe||!mt){ie.removeAllRanges();return}var bn=ie.rangeCount&&ie.getRangeAt(0),Sn;try{Sn=ot(Xe.node,Xe.offset,mt.offset,mt.node)}catch(Bi){}Sn&&(!ve&&ae.state.focused?(ie.collapse(Xe.node,Xe.offset),Sn.collapsed||(ie.removeAllRanges(),ie.addRange(Sn))):(ie.removeAllRanges(),ie.addRange(Sn)),bn&&ie.anchorNode==null?ie.addRange(bn):ve&&this.startGracePeriod()),this.rememberSelection()}},Ma.prototype.startGracePeriod=function(){var ie=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){ie.gracePeriod=!1,ie.selectionChanged()&&ie.cm.operation(function(){return ie.cm.curOp.selectionChanged=!0})},20)},Ma.prototype.showMultipleSelections=function(ie){Oe(this.cm.display.cursorDiv,ie.cursors),Oe(this.cm.display.selectionDiv,ie.selection)},Ma.prototype.rememberSelection=function(){var ie=this.getSelection();this.lastAnchorNode=ie.anchorNode,this.lastAnchorOffset=ie.anchorOffset,this.lastFocusNode=ie.focusNode,this.lastFocusOffset=ie.focusOffset},Ma.prototype.selectionInEditor=function(){var ie=this.getSelection();if(!ie.rangeCount)return!1;var ae=ie.getRangeAt(0).commonAncestorContainer;return Ct(this.div,ae)},Ma.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Ma.prototype.blur=function(){this.div.blur()},Ma.prototype.getField=function(){return this.div},Ma.prototype.supportsTouch=function(){return!0},Ma.prototype.receivedFocus=function(){var ie=this;this.selectionInEditor()?this.pollSelection():to(this.cm,function(){return ie.cm.curOp.selectionChanged=!0});function ae(){ie.cm.state.focused&&(ie.pollSelection(),ie.polling.set(ie.cm.options.pollInterval,ae))}this.polling.set(this.cm.options.pollInterval,ae)},Ma.prototype.selectionChanged=function(){var ie=this.getSelection();return ie.anchorNode!=this.lastAnchorNode||ie.anchorOffset!=this.lastAnchorOffset||ie.focusNode!=this.lastFocusNode||ie.focusOffset!=this.lastFocusOffset},Ma.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var ie=this.getSelection(),ae=this.cm;if(te&&nt&&this.cm.display.gutterSpecs.length&&Vg(ie.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var fe=Dc(ae,ie.anchorNode,ie.anchorOffset),ce=Dc(ae,ie.focusNode,ie.focusOffset);fe&&ce&&to(ae,function(){Gs(ae.doc,Qu(fe,ce),Mt),(fe.bad||ce.bad)&&(ae.curOp.selectionChanged=!0)})}}},Ma.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var ie=this.cm,ae=ie.display,fe=ie.doc.sel.primary(),ce=fe.from(),me=fe.to();if(ce.ch==0&&ce.line>ie.firstLine()&&(ce=en(ce.line-1,Ai(ie.doc,ce.line-1).length)),me.ch==Ai(ie.doc,me.line).text.length&&me.line<ie.lastLine()&&(me=en(me.line+1,0)),ce.line<ae.viewFrom||me.line>ae.viewTo-1)return!1;var Me,Ge,qe;ce.line==ae.viewFrom||(Me=$a(ie,ce.line))==0?(Ge=et(ae.view[0].line),qe=ae.view[0].node):(Ge=et(ae.view[Me].line),qe=ae.view[Me-1].node.nextSibling);var Xe=$a(ie,me.line),mt,hn;if(Xe==ae.view.length-1?(mt=ae.viewTo-1,hn=ae.lineDiv.lastChild):(mt=et(ae.view[Xe+1].line)-1,hn=ae.view[Xe+1].node.previousSibling),!qe)return!1;for(var At=ie.doc.splitLines(Yd(ie,qe,hn,Ge,mt)),bn=ur(ie.doc,en(Ge,0),en(mt,Ai(ie.doc,mt).text.length));At.length>1&&bn.length>1;)if(yt(At)==yt(bn))At.pop(),bn.pop(),mt--;else if(At[0]==bn[0])At.shift(),bn.shift(),Ge++;else break;for(var Sn=0,Bi=0,zi=At[0],Qi=bn[0],wr=Math.min(zi.length,Qi.length);Sn<wr&&zi.charCodeAt(Sn)==Qi.charCodeAt(Sn);)++Sn;for(var Hr=yt(At),Nr=yt(bn),Ur=Math.min(Hr.length-(At.length==1?Sn:0),Nr.length-(bn.length==1?Sn:0));Bi<Ur&&Hr.charCodeAt(Hr.length-Bi-1)==Nr.charCodeAt(Nr.length-Bi-1);)++Bi;if(At.length==1&&bn.length==1&&Ge==ce.line)for(;Sn&&Sn>ce.ch&&Hr.charCodeAt(Hr.length-Bi-1)==Nr.charCodeAt(Nr.length-Bi-1);)Sn--,Bi++;At[At.length-1]=Hr.slice(0,Hr.length-Bi).replace(/^\u200b+/,""),At[0]=At[0].slice(Sn).replace(/\u200b+$/,"");var Lo=en(Ge,Sn),kr=en(mt,bn.length?yt(bn).length-Bi:0);if(At.length>1||At[0]||Gn(Lo,kr))return qh(ie.doc,At,Lo,kr,"+input"),!0},Ma.prototype.ensurePolled=function(){this.forceCompositionEnd()},Ma.prototype.reset=function(){this.forceCompositionEnd()},Ma.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Ma.prototype.readFromDOMSoon=function(){var ie=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(ie.readDOMTimeout=null,ie.composing)if(ie.composing.done)ie.composing=null;else return;ie.updateFromDOM()},80))},Ma.prototype.updateFromDOM=function(){var ie=this;(this.cm.isReadOnly()||!this.pollContent())&&to(this.cm,function(){return la(ie.cm)})},Ma.prototype.setUneditable=function(ie){ie.contentEditable="false"},Ma.prototype.onKeyPress=function(ie){ie.charCode==0||this.composing||(ie.preventDefault(),this.cm.isReadOnly()||uo(this.cm,Lc)(this.cm,String.fromCharCode(ie.charCode==null?ie.keyCode:ie.charCode),0))},Ma.prototype.readOnlyChanged=function(ie){this.div.contentEditable=String(ie!="nocursor")},Ma.prototype.onContextMenu=function(){},Ma.prototype.resetPosition=function(){},Ma.prototype.needsContentAttribute=!0;function Ef(ie,ae){var fe=eo(ie,ae.line);if(!fe||fe.hidden)return null;var ce=Ai(ie.doc,ae.line),me=$r(fe,ce,ae.line),Me=pn(ce,ie.doc.direction),Ge="left";if(Me){var qe=zt(Me,ae.ch);Ge=qe%2?"right":"left"}var Xe=Yo(me.map,ae.ch,Ge);return Xe.offset=Xe.collapse=="right"?Xe.end:Xe.start,Xe}function Vg(ie){for(var ae=ie;ae;ae=ae.parentNode)if(/CodeMirror-gutter-wrapper/.test(ae.className))return!0;return!1}function Vd(ie,ae){return ae&&(ie.bad=!0),ie}function Yd(ie,ae,fe,ce,me){var Me="",Ge=!1,qe=ie.doc.lineSeparator(),Xe=!1;function mt(Sn){return function(Bi){return Bi.id==Sn}}function hn(){Ge&&(Me+=qe,Xe&&(Me+=qe),Ge=Xe=!1)}function At(Sn){Sn&&(hn(),Me+=Sn)}function bn(Sn){if(Sn.nodeType==1){var Bi=Sn.getAttribute("cm-text");if(Bi){At(Bi);return}var zi=Sn.getAttribute("cm-marker"),Qi;if(zi){var wr=ie.findMarks(en(ce,0),en(me+1,0),mt(+zi));wr.length&&(Qi=wr[0].find(0))&&At(ur(ie.doc,Qi.from,Qi.to).join(qe));return}if(Sn.getAttribute("contenteditable")=="false")return;var Hr=/^(pre|div|p|li|table|br)$/i.test(Sn.nodeName);if(!/^br$/i.test(Sn.nodeName)&&Sn.textContent.length==0)return;Hr&&hn();for(var Nr=0;Nr<Sn.childNodes.length;Nr++)bn(Sn.childNodes[Nr]);/^(pre|p)$/i.test(Sn.nodeName)&&(Xe=!0),Hr&&(Ge=!0)}else Sn.nodeType==3&&At(Sn.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;bn(ae),ae!=fe;)ae=ae.nextSibling,Xe=!1;return Me}function Dc(ie,ae,fe){var ce;if(ae==ie.display.lineDiv){if(ce=ie.display.lineDiv.childNodes[fe],!ce)return Vd(ie.clipPos(en(ie.display.viewTo-1)),!0);ae=null,fe=0}else for(ce=ae;;ce=ce.parentNode){if(!ce||ce==ie.display.lineDiv)return null;if(ce.parentNode&&ce.parentNode==ie.display.lineDiv)break}for(var me=0;me<ie.display.view.length;me++){var Me=ie.display.view[me];if(Me.node==ce)return u0(Me,ae,fe)}}function u0(ie,ae,fe){var ce=ie.text.firstChild,me=!1;if(!ae||!Ct(ce,ae))return Vd(en(et(ie.line),0),!0);if(ae==ce&&(me=!0,ae=ce.childNodes[fe],fe=0,!ae)){var Me=ie.rest?yt(ie.rest):ie.line;return Vd(en(et(Me),Me.text.length),me)}var Ge=ae.nodeType==3?ae:null,qe=ae;for(!Ge&&ae.childNodes.length==1&&ae.firstChild.nodeType==3&&(Ge=ae.firstChild,fe&&(fe=Ge.nodeValue.length));qe.parentNode!=ce;)qe=qe.parentNode;var Xe=ie.measure,mt=Xe.maps;function hn(Qi,wr,Hr){for(var Nr=-1;Nr<(mt?mt.length:0);Nr++)for(var Ur=Nr<0?Xe.map:mt[Nr],Lo=0;Lo<Ur.length;Lo+=3){var kr=Ur[Lo+2];if(kr==Qi||kr==wr){var Uo=et(Nr<0?ie.line:ie.rest[Nr]),Oa=Ur[Lo]+Hr;return(Hr<0||kr!=Qi)&&(Oa=Ur[Lo+(Hr?1:0)]),en(Uo,Oa)}}}var At=hn(Ge,qe,fe);if(At)return Vd(At,me);for(var bn=qe.nextSibling,Sn=Ge?Ge.nodeValue.length-fe:0;bn;bn=bn.nextSibling){if(At=hn(bn,bn.firstChild,0),At)return Vd(en(At.line,At.ch-Sn),me);Sn+=bn.textContent.length}for(var Bi=qe.previousSibling,zi=fe;Bi;Bi=Bi.previousSibling){if(At=hn(Bi,Bi.firstChild,-1),At)return Vd(en(At.line,At.ch+zi),me);zi+=Bi.textContent.length}}var ds=function(ie){this.cm=ie,this.prevInput="",this.pollingFast=!1,this.polling=new He,this.hasSelection=!1,this.composing=null};ds.prototype.init=function(ie){var ae=this,fe=this,ce=this.cm;this.createField(ie);var me=this.textarea;ie.wrapper.insertBefore(this.wrapper,ie.wrapper.firstChild),Ee&&(me.style.width="0px"),wn(me,"input",function(){at&&Ze>=9&&ae.hasSelection&&(ae.hasSelection=null),fe.poll()}),wn(me,"paste",function(Ge){bi(ce,Ge)||zg(Ge,ce)||(ce.state.pasteIncoming=+new Date,fe.fastPoll())});function Me(Ge){if(!bi(ce,Ge)){if(ce.somethingSelected())ad({lineWise:!1,text:ce.getSelections()});else if(ce.options.lineWiseCopyCut){var qe=Wg(ce);ad({lineWise:!0,text:qe.text}),Ge.type=="cut"?ce.setSelections(qe.ranges,null,Mt):(fe.prevInput="",me.value=qe.text.join(`
`),Ot(me))}else return;Ge.type=="cut"&&(ce.state.cutIncoming=+new Date)}}wn(me,"cut",Me),wn(me,"copy",Me),wn(ie.scroller,"paste",function(Ge){if(!(Mr(ie,Ge)||bi(ce,Ge))){if(!me.dispatchEvent){ce.state.pasteIncoming=+new Date,fe.focus();return}var qe=new Event("paste");qe.clipboardData=Ge.clipboardData,me.dispatchEvent(qe)}}),wn(ie.lineSpace,"selectstart",function(Ge){Mr(ie,Ge)||Ji(Ge)}),wn(me,"compositionstart",function(){var Ge=ce.getCursor("from");fe.composing&&fe.composing.range.clear(),fe.composing={start:Ge,range:ce.markText(Ge,ce.getCursor("to"),{className:"CodeMirror-composing"})}}),wn(me,"compositionend",function(){fe.composing&&(fe.poll(),fe.composing.range.clear(),fe.composing=null)})},ds.prototype.createField=function(ie){this.wrapper=Gg(),this.textarea=this.wrapper.firstChild},ds.prototype.screenReaderLabelChanged=function(ie){ie?this.textarea.setAttribute("aria-label",ie):this.textarea.removeAttribute("aria-label")},ds.prototype.prepareSelection=function(){var ie=this.cm,ae=ie.display,fe=ie.doc,ce=bl(ie);if(ie.options.moveInputWithCursor){var me=xr(ie,fe.sel.primary().head,"div"),Me=ae.wrapper.getBoundingClientRect(),Ge=ae.lineDiv.getBoundingClientRect();ce.teTop=Math.max(0,Math.min(ae.wrapper.clientHeight-10,me.top+Ge.top-Me.top)),ce.teLeft=Math.max(0,Math.min(ae.wrapper.clientWidth-10,me.left+Ge.left-Me.left))}return ce},ds.prototype.showSelection=function(ie){var ae=this.cm,fe=ae.display;Oe(fe.cursorDiv,ie.cursors),Oe(fe.selectionDiv,ie.selection),ie.teTop!=null&&(this.wrapper.style.top=ie.teTop+"px",this.wrapper.style.left=ie.teLeft+"px")},ds.prototype.reset=function(ie){if(!(this.contextMenuPending||this.composing)){var ae=this.cm;if(ae.somethingSelected()){this.prevInput="";var fe=ae.getSelection();this.textarea.value=fe,ae.state.focused&&Ot(this.textarea),at&&Ze>=9&&(this.hasSelection=fe)}else ie||(this.prevInput=this.textarea.value="",at&&Ze>=9&&(this.hasSelection=null))}},ds.prototype.getField=function(){return this.textarea},ds.prototype.supportsTouch=function(){return!1},ds.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!ne||gt()!=this.textarea))try{this.textarea.focus()}catch(ie){}},ds.prototype.blur=function(){this.textarea.blur()},ds.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},ds.prototype.receivedFocus=function(){this.slowPoll()},ds.prototype.slowPoll=function(){var ie=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){ie.poll(),ie.cm.state.focused&&ie.slowPoll()})},ds.prototype.fastPoll=function(){var ie=!1,ae=this;ae.pollingFast=!0;function fe(){var ce=ae.poll();!ce&&!ie?(ie=!0,ae.polling.set(60,fe)):(ae.pollingFast=!1,ae.slowPoll())}ae.polling.set(20,fe)},ds.prototype.poll=function(){var ie=this,ae=this.cm,fe=this.textarea,ce=this.prevInput;if(this.contextMenuPending||!ae.state.focused||Le(fe)&&!ce&&!this.composing||ae.isReadOnly()||ae.options.disableInput||ae.state.keySeq)return!1;var me=fe.value;if(me==ce&&!ae.somethingSelected())return!1;if(at&&Ze>=9&&this.hasSelection===me||ue&&/[\uf700-\uf7ff]/.test(me))return ae.display.input.reset(),!1;if(ae.doc.sel==ae.display.selForContextMenu){var Me=me.charCodeAt(0);if(Me==8203&&!ce&&(ce="\u200B"),Me==8666)return this.reset(),this.cm.execCommand("undo")}for(var Ge=0,qe=Math.min(ce.length,me.length);Ge<qe&&ce.charCodeAt(Ge)==me.charCodeAt(Ge);)++Ge;return to(ae,function(){Lc(ae,me.slice(Ge),ce.length-Ge,null,ie.composing?"*compose":null),me.length>1e3||me.indexOf(`
`)>-1?fe.value=ie.prevInput="":ie.prevInput=me,ie.composing&&(ie.composing.range.clear(),ie.composing.range=ae.markText(ie.composing.start,ae.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},ds.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},ds.prototype.onKeyPress=function(){at&&Ze>=9&&(this.hasSelection=null),this.fastPoll()},ds.prototype.onContextMenu=function(ie){var ae=this,fe=ae.cm,ce=fe.display,me=ae.textarea;ae.contextMenuPending&&ae.contextMenuPending();var Me=Va(fe,ie),Ge=ce.scroller.scrollTop;if(!Me||De)return;var qe=fe.options.resetSelectionOnContextMenu;qe&&fe.doc.sel.contains(Me)==-1&&uo(fe,Gs)(fe.doc,Qu(Me),Mt);var Xe=me.style.cssText,mt=ae.wrapper.style.cssText,hn=ae.wrapper.offsetParent.getBoundingClientRect();ae.wrapper.style.cssText="position: static",me.style.cssText=`position: absolute; width: 30px; height: 30px;
top: `+(ie.clientY-hn.top-5)+"px; left: "+(ie.clientX-hn.left-5)+`px;
z-index: 1000; background: `+(at?"rgba(255, 255, 255, .05)":"transparent")+`;
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var At;Ue&&(At=window.scrollY),ce.input.focus(),Ue&&window.scrollTo(null,At),ce.input.reset(),fe.somethingSelected()||(me.value=ae.prevInput=" "),ae.contextMenuPending=Sn,ce.selForContextMenu=fe.doc.sel,clearTimeout(ce.detectingSelectAll);function bn(){if(me.selectionStart!=null){var zi=fe.somethingSelected(),Qi="\u200B"+(zi?me.value:"");me.value="\u21DA",me.value=Qi,ae.prevInput=zi?"":"\u200B",me.selectionStart=1,me.selectionEnd=Qi.length,ce.selForContextMenu=fe.doc.sel}}function Sn(){if(ae.contextMenuPending==Sn&&(ae.contextMenuPending=!1,ae.wrapper.style.cssText=mt,me.style.cssText=Xe,at&&Ze<9&&ce.scrollbars.setScrollTop(ce.scroller.scrollTop=Ge),me.selectionStart!=null)){(!at||at&&Ze<9)&&bn();var zi=0,Qi=function(){ce.selForContextMenu==fe.doc.sel&&me.selectionStart==0&&me.selectionEnd>0&&ae.prevInput=="\u200B"?uo(fe,rs)(fe):zi++<10?ce.detectingSelectAll=setTimeout(Qi,500):(ce.selForContextMenu=null,ce.input.reset())};ce.detectingSelectAll=setTimeout(Qi,200)}}if(at&&Ze>=9&&bn(),Ce){ii(ie);var Bi=function(){Ci(window,"mouseup",Bi),setTimeout(Sn,20)};wn(window,"mouseup",Bi)}else setTimeout(Sn,50)},ds.prototype.readOnlyChanged=function(ie){ie||this.reset(),this.textarea.disabled=ie=="nocursor",this.textarea.readOnly=!!ie},ds.prototype.setUneditable=function(){},ds.prototype.needsContentAttribute=!1;function h0(ie,ae){if(ae=ae?tn(ae):{},ae.value=ie.value,!ae.tabindex&&ie.tabIndex&&(ae.tabindex=ie.tabIndex),!ae.placeholder&&ie.placeholder&&(ae.placeholder=ie.placeholder),ae.autofocus==null){var fe=gt();ae.autofocus=fe==ie||ie.getAttribute("autofocus")!=null&&fe==document.body}function ce(){ie.value=qe.getValue()}var me;if(ie.form&&(wn(ie.form,"submit",ce),!ae.leaveSubmitMethodAlone)){var Me=ie.form;me=Me.submit;try{var Ge=Me.submit=function(){ce(),Me.submit=me,Me.submit(),Me.submit=Ge}}catch(Xe){}}ae.finishInit=function(Xe){Xe.save=ce,Xe.getTextArea=function(){return ie},Xe.toTextArea=function(){Xe.toTextArea=isNaN,ce(),ie.parentNode.removeChild(Xe.getWrapperElement()),ie.style.display="",ie.form&&(Ci(ie.form,"submit",ce),!ae.leaveSubmitMethodAlone&&typeof ie.form.submit=="function"&&(ie.form.submit=me))}},ie.style.display="none";var qe=ua(function(Xe){return ie.parentNode.insertBefore(Xe,ie.nextSibling)},ae);return qe}function Kd(ie){ie.off=Ci,ie.on=wn,ie.wheelEventPixels=Nl,ie.Doc=Ns,ie.splitLines=ro,ie.countColumn=st,ie.findColumn=Dn,ie.isWordChar=Ne,ie.Pass=_t,ie.signal=$n,ie.Line=dn,ie.changeEnd=vh,ie.scrollbarModel=kl,ie.Pos=en,ie.cmpPos=Gn,ie.modes=yi,ie.mimeModes=ti,ie.resolveMode=Sr,ie.getMode=Jt,ie.modeExtensions=Vt,ie.extendMode=It,ie.copyState=Ei,ie.startState=ji,ie.innerMode=Ii,ie.commands=Ph,ie.keyMap=yl,ie.keyName=n0,ie.isModifierKey=jd,ie.lookupKey=_l,ie.normalizeKeyMap=Ag,ie.StringStream=Xn,ie.SharedTextMarker=Bu,ie.TextMarker=Yt,ie.LineWidget=$u,ie.e_preventDefault=Ji,ie.e_stopPropagation=Zr,ie.e_stop=ii,ie.addClass=kt,ie.contains=Ct,ie.rmClass=Te,ie.keyNames=Nu}s0(ua),Ch(ua);var eh="iter insert remove copy getEditor constructor".split(" ");for(var kc in Ns.prototype)Ns.prototype.hasOwnProperty(kc)&&Rt(eh,kc)<0&&(ua.prototype[kc]=function(ie){return function(){return ie.apply(this.doc,arguments)}}(Ns.prototype[kc]));return Gi(Ns),ua.inputStyles={textarea:ds,contenteditable:Ma},ua.defineMode=function(ie){!ua.defaults.mode&&ie!="null"&&(ua.defaults.mode=ie),Yi.apply(this,arguments)},ua.defineMIME=cr,ua.defineMode("null",function(){return{token:function(ie){return ie.skipToEnd()}}}),ua.defineMIME("text/plain","null"),ua.defineExtension=function(ie,ae){ua.prototype[ie]=ae},ua.defineDocExtension=function(ie,ae){Ns.prototype[ie]=ae},ua.fromTextArea=h0,Kd(ua),ua.version="5.58.2",ua})},25419:function(fn,on,we){(function(ve){ve(we(89780),we(15525),we(98101))})(function(ve){"use strict";ve.defineMode("markdown",function(Ye,dt){var it=ve.getMode(Ye,"text/html"),at=it.name=="null";function Ze(st){if(ve.findModeByName){var He=ve.findModeByName(st);He&&(st=He.mime||He.mimes[0])}var Rt=ve.getMode(Ye,st);return Rt.name=="null"?null:Rt}dt.highlightFormatting===void 0&&(dt.highlightFormatting=!1),dt.maxBlockquoteDepth===void 0&&(dt.maxBlockquoteDepth=0),dt.taskLists===void 0&&(dt.taskLists=!1),dt.strikethrough===void 0&&(dt.strikethrough=!1),dt.emoji===void 0&&(dt.emoji=!1),dt.fencedCodeBlockHighlighting===void 0&&(dt.fencedCodeBlockHighlighting=!0),dt.fencedCodeBlockDefaultMode===void 0&&(dt.fencedCodeBlockDefaultMode="text/plain"),dt.xml===void 0&&(dt.xml=!0),dt.tokenTypeOverrides===void 0&&(dt.tokenTypeOverrides={});var Ue={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 xt in Ue)Ue.hasOwnProperty(xt)&&dt.tokenTypeOverrides[xt]&&(Ue[xt]=dt.tokenTypeOverrides[xt]);var nt=/^([*\-_])(?:\s*\1){2,}\s*$/,De=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,wt=/^\[(x| )\](?=\s)/i,Ve=dt.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,ut=/^ {0,3}(?:\={1,}|-{2,})\s*$/,Ee=/^[^#!\[\]*_\\<>` "'(~:]+/,te=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,ne=/^\s*\[[^\]]+?\]:.*$/,ue=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,se=" ";function de(st,He,Rt){return He.f=He.inline=Rt,Rt(st,He)}function pe(st,He,Rt){return He.f=He.block=Rt,Rt(st,He)}function ye(st){return!st||!/\S/.test(st.string)}function Ce(st){if(st.linkTitle=!1,st.linkHref=!1,st.linkText=!1,st.em=!1,st.strong=!1,st.strikethrough=!1,st.quote=0,st.indentedCode=!1,st.f==Te){var He=at;if(!He){var Rt=ve.innerMode(it,st.htmlState);He=Rt.mode.name=="xml"&&Rt.state.tagStart===null&&!Rt.state.context&&Rt.state.tokenize.isInText}He&&(st.f=rt,st.block=ze,st.htmlState=null)}return st.trailingSpace=0,st.trailingSpaceNewLine=!1,st.prevLine=st.thisLine,st.thisLine={stream:null},null}function ze(st,He){var Rt=st.column()===He.indentation,Zt=ye(He.prevLine.stream),_t=He.indentedCode,Mt=He.prevLine.hr,jt=He.list!==!1,an=(He.listStack[He.listStack.length-1]||0)+3;He.indentedCode=!1;var Dn=He.indentation;if(He.indentationDiff===null&&(He.indentationDiff=He.indentation,jt)){for(He.list=null;Dn<He.listStack[He.listStack.length-1];)He.listStack.pop(),He.listStack.length?He.indentation=He.listStack[He.listStack.length-1]:He.list=!1;He.list!==!1&&(He.indentationDiff=Dn-He.listStack[He.listStack.length-1])}var Dt=!Zt&&!Mt&&!He.prevLine.header&&(!jt||!_t)&&!He.prevLine.fencedCodeEnd,gn=(He.list===!1||Mt||Zt)&&He.indentation<=an&&st.match(nt),yt=null;if(He.indentationDiff>=4&&(_t||He.prevLine.fencedCodeEnd||He.prevLine.header||Zt))return st.skipToEnd(),He.indentedCode=!0,Ue.code;if(st.eatSpace())return null;if(Rt&&He.indentation<=an&&(yt=st.match(Ve))&&yt[1].length<=6)return He.quote=0,He.header=yt[1].length,He.thisLine.header=!0,dt.highlightFormatting&&(He.formatting="header"),He.f=He.inline,Oe(He);if(He.indentation<=an&&st.eat(">"))return He.quote=Rt?1:He.quote+1,dt.highlightFormatting&&(He.formatting="quote"),st.eatSpace(),Oe(He);if(!gn&&!He.setext&&Rt&&He.indentation<=an&&(yt=st.match(De))){var Zn=yt[1]?"ol":"ul";return He.indentation=Dn+st.current().length,He.list=!0,He.quote=0,He.listStack.push(He.indentation),He.em=!1,He.strong=!1,He.code=!1,He.strikethrough=!1,dt.taskLists&&st.match(wt,!1)&&(He.taskList=!0),He.f=He.inline,dt.highlightFormatting&&(He.formatting=["list","list-"+Zn]),Oe(He)}else{if(Rt&&He.indentation<=an&&(yt=st.match(te,!0)))return He.quote=0,He.fencedEndRE=new RegExp(yt[1]+"+ *$"),He.localMode=dt.fencedCodeBlockHighlighting&&Ze(yt[2]||dt.fencedCodeBlockDefaultMode),He.localMode&&(He.localState=ve.startState(He.localMode)),He.f=He.block=Ie,dt.highlightFormatting&&(He.formatting="code-block"),He.code=-1,Oe(He);if(He.setext||(!Dt||!jt)&&!He.quote&&He.list===!1&&!He.code&&!gn&&!ne.test(st.string)&&(yt=st.lookAhead(1))&&(yt=yt.match(ut)))return He.setext?(He.header=He.setext,He.setext=0,st.skipToEnd(),dt.highlightFormatting&&(He.formatting="header")):(He.header=yt[0].charAt(0)=="="?1:2,He.setext=He.header),He.thisLine.header=!0,He.f=He.inline,Oe(He);if(gn)return st.skipToEnd(),He.hr=!0,He.thisLine.hr=!0,Ue.hr;if(st.peek()==="[")return de(st,He,Lt)}return de(st,He,He.inline)}function Te(st,He){var Rt=it.token(st,He.htmlState);if(!at){var Zt=ve.innerMode(it,He.htmlState);(Zt.mode.name=="xml"&&Zt.state.tagStart===null&&!Zt.state.context&&Zt.state.tokenize.isInText||He.md_inside&&st.current().indexOf(">")>-1)&&(He.f=rt,He.block=ze,He.htmlState=null)}return Rt}function Ie(st,He){var Rt=He.listStack[He.listStack.length-1]||0,Zt=He.indentation<Rt,_t=Rt+3;if(He.fencedEndRE&&He.indentation<=_t&&(Zt||st.match(He.fencedEndRE))){dt.highlightFormatting&&(He.formatting="code-block");var Mt;return Zt||(Mt=Oe(He)),He.localMode=He.localState=null,He.block=ze,He.f=rt,He.fencedEndRE=null,He.code=0,He.thisLine.fencedCodeEnd=!0,Zt?pe(st,He,He.block):Mt}else return He.localMode?He.localMode.token(st,He.localState):(st.skipToEnd(),Ue.code)}function Oe(st){var He=[];if(st.formatting){He.push(Ue.formatting),typeof st.formatting=="string"&&(st.formatting=[st.formatting]);for(var Rt=0;Rt<st.formatting.length;Rt++)He.push(Ue.formatting+"-"+st.formatting[Rt]),st.formatting[Rt]==="header"&&He.push(Ue.formatting+"-"+st.formatting[Rt]+"-"+st.header),st.formatting[Rt]==="quote"&&(!dt.maxBlockquoteDepth||dt.maxBlockquoteDepth>=st.quote?He.push(Ue.formatting+"-"+st.formatting[Rt]+"-"+st.quote):He.push("error"))}if(st.taskOpen)return He.push("meta"),He.length?He.join(" "):null;if(st.taskClosed)return He.push("property"),He.length?He.join(" "):null;if(st.linkHref?He.push(Ue.linkHref,"url"):(st.strong&&He.push(Ue.strong),st.em&&He.push(Ue.em),st.strikethrough&&He.push(Ue.strikethrough),st.emoji&&He.push(Ue.emoji),st.linkText&&He.push(Ue.linkText),st.code&&He.push(Ue.code),st.image&&He.push(Ue.image),st.imageAltText&&He.push(Ue.imageAltText,"link"),st.imageMarker&&He.push(Ue.imageMarker)),st.header&&He.push(Ue.header,Ue.header+"-"+st.header),st.quote&&(He.push(Ue.quote),!dt.maxBlockquoteDepth||dt.maxBlockquoteDepth>=st.quote?He.push(Ue.quote+"-"+st.quote):He.push(Ue.quote+"-"+dt.maxBlockquoteDepth)),st.list!==!1){var Zt=(st.listStack.length-1)%3;Zt?Zt===1?He.push(Ue.list2):He.push(Ue.list3):He.push(Ue.list1)}return st.trailingSpaceNewLine?He.push("trailing-space-new-line"):st.trailingSpace&&He.push("trailing-space-"+(st.trailingSpace%2?"a":"b")),He.length?He.join(" "):null}function Re(st,He){if(st.match(Ee,!0))return Oe(He)}function rt(st,He){var Rt=He.text(st,He);if(typeof Rt!="undefined")return Rt;if(He.list)return He.list=null,Oe(He);if(He.taskList){var Zt=st.match(wt,!0)[1]===" ";return Zt?He.taskOpen=!0:He.taskClosed=!0,dt.highlightFormatting&&(He.formatting="task"),He.taskList=!1,Oe(He)}if(He.taskOpen=!1,He.taskClosed=!1,He.header&&st.match(/^#+$/,!0))return dt.highlightFormatting&&(He.formatting="header"),Oe(He);var _t=st.next();if(He.linkTitle){He.linkTitle=!1;var Mt=_t;_t==="("&&(Mt=")"),Mt=(Mt+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var jt="^\\s*(?:[^"+Mt+"\\\\]+|\\\\\\\\|\\\\.)"+Mt;if(st.match(new RegExp(jt),!0))return Ue.linkHref}if(_t==="`"){var an=He.formatting;dt.highlightFormatting&&(He.formatting="code"),st.eatWhile("`");var Dn=st.current().length;if(He.code==0&&(!He.quote||Dn==1))return He.code=Dn,Oe(He);if(Dn==He.code){var Dt=Oe(He);return He.code=0,Dt}else return He.formatting=an,Oe(He)}else if(He.code)return Oe(He);if(_t==="\\"&&(st.next(),dt.highlightFormatting)){var gn=Oe(He),yt=Ue.formatting+"-escape";return gn?gn+" "+yt:yt}if(_t==="!"&&st.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return He.imageMarker=!0,He.image=!0,dt.highlightFormatting&&(He.formatting="image"),Oe(He);if(_t==="["&&He.imageMarker&&st.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return He.imageMarker=!1,He.imageAltText=!0,dt.highlightFormatting&&(He.formatting="image"),Oe(He);if(_t==="]"&&He.imageAltText){dt.highlightFormatting&&(He.formatting="image");var gn=Oe(He);return He.imageAltText=!1,He.image=!1,He.inline=He.f=Ct,gn}if(_t==="["&&!He.image)return He.linkText&&st.match(/^.*?\]/)||(He.linkText=!0,dt.highlightFormatting&&(He.formatting="link")),Oe(He);if(_t==="]"&&He.linkText){dt.highlightFormatting&&(He.formatting="link");var gn=Oe(He);return He.linkText=!1,He.inline=He.f=st.match(/\(.*?\)| ?\[.*?\]/,!1)?Ct:rt,gn}if(_t==="<"&&st.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){He.f=He.inline=ot,dt.highlightFormatting&&(He.formatting="link");var gn=Oe(He);return gn?gn+=" ":gn="",gn+Ue.linkInline}if(_t==="<"&&st.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){He.f=He.inline=ot,dt.highlightFormatting&&(He.formatting="link");var gn=Oe(He);return gn?gn+=" ":gn="",gn+Ue.linkEmail}if(dt.xml&&_t==="<"&&st.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var Zn=st.string.indexOf(">",st.pos);if(Zn!=-1){var vi=st.string.substring(st.start,Zn);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(vi)&&(He.md_inside=!0)}return st.backUp(1),He.htmlState=ve.startState(it),pe(st,He,Te)}if(dt.xml&&_t==="<"&&st.match(/^\/\w*?>/))return He.md_inside=!1,"tag";if(_t==="*"||_t==="_"){for(var We=1,Fe=st.pos==1?" ":st.string.charAt(st.pos-2);We<3&&st.eat(_t);)We++;var xe=st.peek()||" ",Ne=!/\s/.test(xe)&&(!ue.test(xe)||/\s/.test(Fe)||ue.test(Fe)),_e=!/\s/.test(Fe)&&(!ue.test(Fe)||/\s/.test(xe)||ue.test(xe)),be=null,tt=null;if(We%2&&(!He.em&&Ne&&(_t==="*"||!_e||ue.test(Fe))?be=!0:He.em==_t&&_e&&(_t==="*"||!Ne||ue.test(xe))&&(be=!1)),We>1&&(!He.strong&&Ne&&(_t==="*"||!_e||ue.test(Fe))?tt=!0:He.strong==_t&&_e&&(_t==="*"||!Ne||ue.test(xe))&&(tt=!1)),tt!=null||be!=null){dt.highlightFormatting&&(He.formatting=be==null?"strong":tt==null?"em":"strong em"),be===!0&&(He.em=_t),tt===!0&&(He.strong=_t);var Dt=Oe(He);return be===!1&&(He.em=!1),tt===!1&&(He.strong=!1),Dt}}else if(_t===" "&&(st.eat("*")||st.eat("_"))){if(st.peek()===" ")return Oe(He);st.backUp(1)}if(dt.strikethrough){if(_t==="~"&&st.eatWhile(_t)){if(He.strikethrough){dt.highlightFormatting&&(He.formatting="strikethrough");var Dt=Oe(He);return He.strikethrough=!1,Dt}else if(st.match(/^[^\s]/,!1))return He.strikethrough=!0,dt.highlightFormatting&&(He.formatting="strikethrough"),Oe(He)}else if(_t===" "&&st.match(/^~~/,!0)){if(st.peek()===" ")return Oe(He);st.backUp(2)}}if(dt.emoji&&_t===":"&&st.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){He.emoji=!0,dt.highlightFormatting&&(He.formatting="emoji");var Xt=Oe(He);return He.emoji=!1,Xt}return _t===" "&&(st.match(/^ +$/,!1)?He.trailingSpace++:He.trailingSpace&&(He.trailingSpaceNewLine=!0)),Oe(He)}function ot(st,He){var Rt=st.next();if(Rt===">"){He.f=He.inline=rt,dt.highlightFormatting&&(He.formatting="link");var Zt=Oe(He);return Zt?Zt+=" ":Zt="",Zt+Ue.linkInline}return st.match(/^[^>]+/,!0),Ue.linkInline}function Ct(st,He){if(st.eatSpace())return null;var Rt=st.next();return Rt==="("||Rt==="["?(He.f=He.inline=kt(Rt==="("?")":"]"),dt.highlightFormatting&&(He.formatting="link-string"),He.linkHref=!0,Oe(He)):"error"}var gt={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function kt(st){return function(He,Rt){var Zt=He.next();if(Zt===st){Rt.f=Rt.inline=rt,dt.highlightFormatting&&(Rt.formatting="link-string");var _t=Oe(Rt);return Rt.linkHref=!1,_t}return He.match(gt[st]),Rt.linkHref=!0,Oe(Rt)}}function Lt(st,He){return st.match(/^([^\]\\]|\\.)*\]:/,!1)?(He.f=Ot,st.next(),dt.highlightFormatting&&(He.formatting="link"),He.linkText=!0,Oe(He)):de(st,He,rt)}function Ot(st,He){if(st.match(/^\]:/,!0)){He.f=He.inline=Nt,dt.highlightFormatting&&(He.formatting="link");var Rt=Oe(He);return He.linkText=!1,Rt}return st.match(/^([^\]\\]|\\.)+/,!0),Ue.linkText}function Nt(st,He){return st.eatSpace()?null:(st.match(/^[^\s]+/,!0),st.peek()===void 0?He.linkTitle=!0:st.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),He.f=He.inline=rt,Ue.linkHref+" url")}var tn={startState:function(){return{f:ze,prevLine:{stream:null},thisLine:{stream:null},block:ze,htmlState:null,indentation:0,inline:rt,text:Re,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(st){return{f:st.f,prevLine:st.prevLine,thisLine:st.thisLine,block:st.block,htmlState:st.htmlState&&ve.copyState(it,st.htmlState),indentation:st.indentation,localMode:st.localMode,localState:st.localMode?ve.copyState(st.localMode,st.localState):null,inline:st.inline,text:st.text,formatting:!1,linkText:st.linkText,linkTitle:st.linkTitle,linkHref:st.linkHref,code:st.code,em:st.em,strong:st.strong,strikethrough:st.strikethrough,emoji:st.emoji,header:st.header,setext:st.setext,hr:st.hr,taskList:st.taskList,list:st.list,listStack:st.listStack.slice(0),quote:st.quote,indentedCode:st.indentedCode,trailingSpace:st.trailingSpace,trailingSpaceNewLine:st.trailingSpaceNewLine,md_inside:st.md_inside,fencedEndRE:st.fencedEndRE}},token:function(st,He){if(He.formatting=!1,st!=He.thisLine.stream){if(He.header=0,He.hr=!1,st.match(/^\s*$/,!0))return Ce(He),null;if(He.prevLine=He.thisLine,He.thisLine={stream:st},He.taskList=!1,He.trailingSpace=0,He.trailingSpaceNewLine=!1,!He.localState&&(He.f=He.block,He.f!=Te)){var Rt=st.match(/^\s*/,!0)[0].replace(/\t/g,se).length;if(He.indentation=Rt,He.indentationDiff=null,Rt>0)return null}}return He.f(st,He)},innerMode:function(st){return st.block==Te?{state:st.htmlState,mode:it}:st.localState?{state:st.localState,mode:st.localMode}:{state:st,mode:tn}},indent:function(st,He,Rt){return st.block==Te&&it.indent?it.indent(st.htmlState,He,Rt):st.localState&&st.localMode.indent?st.localMode.indent(st.localState,He,Rt):ve.Pass},blankLine:Ce,getType:Oe,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return tn},"xml"),ve.defineMIME("text/markdown","markdown"),ve.defineMIME("text/x-markdown","markdown")})},98101:function(fn,on,we){(function(ve){ve(we(89780))})(function(ve){"use strict";ve.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 Ye=0;Ye<ve.modeInfo.length;Ye++){var dt=ve.modeInfo[Ye];dt.mimes&&(dt.mime=dt.mimes[0])}ve.findModeByMIME=function(it){it=it.toLowerCase();for(var at=0;at<ve.modeInfo.length;at++){var Ze=ve.modeInfo[at];if(Ze.mime==it)return Ze;if(Ze.mimes){for(var Ue=0;Ue<Ze.mimes.length;Ue++)if(Ze.mimes[Ue]==it)return Ze}}if(/\+xml$/.test(it))return ve.findModeByMIME("application/xml");if(/\+json$/.test(it))return ve.findModeByMIME("application/json")},ve.findModeByExtension=function(it){it=it.toLowerCase();for(var at=0;at<ve.modeInfo.length;at++){var Ze=ve.modeInfo[at];if(Ze.ext){for(var Ue=0;Ue<Ze.ext.length;Ue++)if(Ze.ext[Ue]==it)return Ze}}},ve.findModeByFileName=function(it){for(var at=0;at<ve.modeInfo.length;at++){var Ze=ve.modeInfo[at];if(Ze.file&&Ze.file.test(it))return Ze}var Ue=it.lastIndexOf("."),xt=Ue>-1&&it.substring(Ue+1,it.length);if(xt)return ve.findModeByExtension(xt)},ve.findModeByName=function(it){it=it.toLowerCase();for(var at=0;at<ve.modeInfo.length;at++){var Ze=ve.modeInfo[at];if(Ze.name.toLowerCase()==it)return Ze;if(Ze.alias){for(var Ue=0;Ue<Ze.alias.length;Ue++)if(Ze.alias[Ue].toLowerCase()==it)return Ze}}}})},67549:function(fn,on,we){(function(ve){ve(we(89780))})(function(ve){"use strict";ve.defineMode("stex",function(Ye,dt){"use strict";function it(Ee,te){Ee.cmdState.push(te)}function at(Ee){return Ee.cmdState.length>0?Ee.cmdState[Ee.cmdState.length-1]:null}function Ze(Ee){var te=Ee.cmdState.pop();te&&te.closeBracket()}function Ue(Ee){for(var te=Ee.cmdState,ne=te.length-1;ne>=0;ne--){var ue=te[ne];if(ue.name!="DEFAULT")return ue}return{styleIdentifier:function(){return null}}}function xt(Ee,te,ne){return function(){this.name=Ee,this.bracketNo=0,this.style=te,this.styles=ne,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var nt={};nt.importmodule=xt("importmodule","tag",["string","builtin"]),nt.documentclass=xt("documentclass","tag",["","atom"]),nt.usepackage=xt("usepackage","tag",["atom"]),nt.begin=xt("begin","tag",["atom"]),nt.end=xt("end","tag",["atom"]),nt.label=xt("label","tag",["atom"]),nt.ref=xt("ref","tag",["atom"]),nt.eqref=xt("eqref","tag",["atom"]),nt.cite=xt("cite","tag",["atom"]),nt.bibitem=xt("bibitem","tag",["atom"]),nt.Bibitem=xt("Bibitem","tag",["atom"]),nt.RBibitem=xt("RBibitem","tag",["atom"]),nt.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function De(Ee,te){Ee.f=te}function wt(Ee,te){var ne;if(Ee.match(/^\\[a-zA-Z@]+/)){var ue=Ee.current().slice(1);return ne=nt.hasOwnProperty(ue)?nt[ue]:nt.DEFAULT,ne=new ne,it(te,ne),De(te,ut),ne.style}if(Ee.match(/^\\[$&%#{}_]/)||Ee.match(/^\\[,;!\/\\]/))return"tag";if(Ee.match("\\["))return De(te,function(de,pe){return Ve(de,pe,"\\]")}),"keyword";if(Ee.match("\\("))return De(te,function(de,pe){return Ve(de,pe,"\\)")}),"keyword";if(Ee.match("$$"))return De(te,function(de,pe){return Ve(de,pe,"$$")}),"keyword";if(Ee.match("$"))return De(te,function(de,pe){return Ve(de,pe,"$")}),"keyword";var se=Ee.next();if(se=="%")return Ee.skipToEnd(),"comment";if(se=="}"||se=="]"){if(ne=at(te),ne)ne.closeBracket(se),De(te,ut);else return"error";return"bracket"}else return se=="{"||se=="["?(ne=nt.DEFAULT,ne=new ne,it(te,ne),"bracket"):/\d/.test(se)?(Ee.eatWhile(/[\w.%]/),"atom"):(Ee.eatWhile(/[\w\-_]/),ne=Ue(te),ne.name=="begin"&&(ne.argument=Ee.current()),ne.styleIdentifier())}function Ve(Ee,te,ne){if(Ee.eatSpace())return null;if(ne&&Ee.match(ne))return De(te,wt),"keyword";if(Ee.match(/^\\[a-zA-Z@]+/))return"tag";if(Ee.match(/^[a-zA-Z]+/))return"variable-2";if(Ee.match(/^\\[$&%#{}_]/)||Ee.match(/^\\[,;!\/]/)||Ee.match(/^[\^_&]/))return"tag";if(Ee.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(Ee.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var ue=Ee.next();return ue=="{"||ue=="}"||ue=="["||ue=="]"||ue=="("||ue==")"?"bracket":ue=="%"?(Ee.skipToEnd(),"comment"):"error"}function ut(Ee,te){var ne=Ee.peek(),ue;return ne=="{"||ne=="["?(ue=at(te),ue.openBracket(ne),Ee.eat(ne),De(te,wt),"bracket"):/[ \t\r]/.test(ne)?(Ee.eat(ne),null):(De(te,wt),Ze(te),wt(Ee,te))}return{startState:function(){var Ee=dt.inMathMode?function(te,ne){return Ve(te,ne)}:wt;return{cmdState:[],f:Ee}},copyState:function(Ee){return{cmdState:Ee.cmdState.slice(),f:Ee.f}},token:function(Ee,te){return te.f(Ee,te)},blankLine:function(Ee){Ee.f=wt,Ee.cmdState.length=0},lineComment:"%"}}),ve.defineMIME("text/x-stex","stex"),ve.defineMIME("text/x-latex","stex")})},15525:function(fn,on,we){(function(ve){ve(we(89780))})(function(ve){"use strict";var Ye={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},dt={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};ve.defineMode("xml",function(it,at){var Ze=it.indentUnit,Ue={},xt=at.htmlMode?Ye:dt;for(var nt in xt)Ue[nt]=xt[nt];for(var nt in at)Ue[nt]=at[nt];var De,wt;function Ve(ot,Ct){function gt(Ot){return Ct.tokenize=Ot,Ot(ot,Ct)}var kt=ot.next();if(kt=="<")return ot.eat("!")?ot.eat("[")?ot.match("CDATA[")?gt(te("atom","]]>")):null:ot.match("--")?gt(te("comment","-->")):ot.match("DOCTYPE",!0,!0)?(ot.eatWhile(/[\w\._\-]/),gt(ne(1))):null:ot.eat("?")?(ot.eatWhile(/[\w\._\-]/),Ct.tokenize=te("meta","?>"),"meta"):(De=ot.eat("/")?"closeTag":"openTag",Ct.tokenize=ut,"tag bracket");if(kt=="&"){var Lt;return ot.eat("#")?ot.eat("x")?Lt=ot.eatWhile(/[a-fA-F\d]/)&&ot.eat(";"):Lt=ot.eatWhile(/[\d]/)&&ot.eat(";"):Lt=ot.eatWhile(/[\w\.\-:]/)&&ot.eat(";"),Lt?"atom":"error"}else return ot.eatWhile(/[^&<]/),null}Ve.isInText=!0;function ut(ot,Ct){var gt=ot.next();if(gt==">"||gt=="/"&&ot.eat(">"))return Ct.tokenize=Ve,De=gt==">"?"endTag":"selfcloseTag","tag bracket";if(gt=="=")return De="equals",null;if(gt=="<"){Ct.tokenize=Ve,Ct.state=pe,Ct.tagName=Ct.tagStart=null;var kt=Ct.tokenize(ot,Ct);return kt?kt+" tag error":"tag error"}else return/[\'\"]/.test(gt)?(Ct.tokenize=Ee(gt),Ct.stringStartCol=ot.column(),Ct.tokenize(ot,Ct)):(ot.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function Ee(ot){var Ct=function(gt,kt){for(;!gt.eol();)if(gt.next()==ot){kt.tokenize=ut;break}return"string"};return Ct.isInAttribute=!0,Ct}function te(ot,Ct){return function(gt,kt){for(;!gt.eol();){if(gt.match(Ct)){kt.tokenize=Ve;break}gt.next()}return ot}}function ne(ot){return function(Ct,gt){for(var kt;(kt=Ct.next())!=null;){if(kt=="<")return gt.tokenize=ne(ot+1),gt.tokenize(Ct,gt);if(kt==">")if(ot==1){gt.tokenize=Ve;break}else return gt.tokenize=ne(ot-1),gt.tokenize(Ct,gt)}return"meta"}}function ue(ot,Ct,gt){this.prev=ot.context,this.tagName=Ct,this.indent=ot.indented,this.startOfLine=gt,(Ue.doNotIndent.hasOwnProperty(Ct)||ot.context&&ot.context.noIndent)&&(this.noIndent=!0)}function se(ot){ot.context&&(ot.context=ot.context.prev)}function de(ot,Ct){for(var gt;;){if(!ot.context||(gt=ot.context.tagName,!Ue.contextGrabbers.hasOwnProperty(gt)||!Ue.contextGrabbers[gt].hasOwnProperty(Ct)))return;se(ot)}}function pe(ot,Ct,gt){return ot=="openTag"?(gt.tagStart=Ct.column(),ye):ot=="closeTag"?Ce:pe}function ye(ot,Ct,gt){return ot=="word"?(gt.tagName=Ct.current(),wt="tag",Ie):Ue.allowMissingTagName&&ot=="endTag"?(wt="tag bracket",Ie(ot,Ct,gt)):(wt="error",ye)}function Ce(ot,Ct,gt){if(ot=="word"){var kt=Ct.current();return gt.context&&gt.context.tagName!=kt&&Ue.implicitlyClosed.hasOwnProperty(gt.context.tagName)&&se(gt),gt.context&&gt.context.tagName==kt||Ue.matchClosing===!1?(wt="tag",ze):(wt="tag error",Te)}else return Ue.allowMissingTagName&&ot=="endTag"?(wt="tag bracket",ze(ot,Ct,gt)):(wt="error",Te)}function ze(ot,Ct,gt){return ot!="endTag"?(wt="error",ze):(se(gt),pe)}function Te(ot,Ct,gt){return wt="error",ze(ot,Ct,gt)}function Ie(ot,Ct,gt){if(ot=="word")return wt="attribute",Oe;if(ot=="endTag"||ot=="selfcloseTag"){var kt=gt.tagName,Lt=gt.tagStart;return gt.tagName=gt.tagStart=null,ot=="selfcloseTag"||Ue.autoSelfClosers.hasOwnProperty(kt)?de(gt,kt):(de(gt,kt),gt.context=new ue(gt,kt,Lt==gt.indented)),pe}return wt="error",Ie}function Oe(ot,Ct,gt){return ot=="equals"?Re:(Ue.allowMissing||(wt="error"),Ie(ot,Ct,gt))}function Re(ot,Ct,gt){return ot=="string"?rt:ot=="word"&&Ue.allowUnquoted?(wt="string",Ie):(wt="error",Ie(ot,Ct,gt))}function rt(ot,Ct,gt){return ot=="string"?rt:Ie(ot,Ct,gt)}return{startState:function(ot){var Ct={tokenize:Ve,state:pe,indented:ot||0,tagName:null,tagStart:null,context:null};return ot!=null&&(Ct.baseIndent=ot),Ct},token:function(ot,Ct){if(!Ct.tagName&&ot.sol()&&(Ct.indented=ot.indentation()),ot.eatSpace())return null;De=null;var gt=Ct.tokenize(ot,Ct);return(gt||De)&&gt!="comment"&&(wt=null,Ct.state=Ct.state(De||gt,ot,Ct),wt&&(gt=wt=="error"?gt+" error":wt)),gt},indent:function(ot,Ct,gt){var kt=ot.context;if(ot.tokenize.isInAttribute)return ot.tagStart==ot.indented?ot.stringStartCol+1:ot.indented+Ze;if(kt&&kt.noIndent)return ve.Pass;if(ot.tokenize!=ut&&ot.tokenize!=Ve)return gt?gt.match(/^(\s*)/)[0].length:0;if(ot.tagName)return Ue.multilineTagIndentPastTag!==!1?ot.tagStart+ot.tagName.length+2:ot.tagStart+Ze*(Ue.multilineTagIndentFactor||1);if(Ue.alignCDATA&&/<!\[CDATA\[/.test(Ct))return 0;var Lt=Ct&&/^<(\/)?([\w_:\.-]*)/.exec(Ct);if(Lt&&Lt[1])for(;kt;)if(kt.tagName==Lt[2]){kt=kt.prev;break}else if(Ue.implicitlyClosed.hasOwnProperty(kt.tagName))kt=kt.prev;else break;else if(Lt)for(;kt;){var Ot=Ue.contextGrabbers[kt.tagName];if(Ot&&Ot.hasOwnProperty(Lt[2]))kt=kt.prev;else break}for(;kt&&kt.prev&&!kt.startOfLine;)kt=kt.prev;return kt?kt.indent+Ze:ot.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:Ue.htmlMode?"html":"xml",helperType:Ue.htmlMode?"html":"xml",skipAttribute:function(ot){ot.state==Re&&(ot.state=Ie)},xmlCurrentTag:function(ot){return ot.tagName?{name:ot.tagName,close:ot.type=="closeTag"}:null},xmlCurrentContext:function(ot){for(var Ct=[],gt=ot.context;gt;gt=gt.prev)gt.tagName&&Ct.push(gt.tagName);return Ct.reverse()}}}),ve.defineMIME("text/xml","xml"),ve.defineMIME("application/xml","xml"),ve.mimeModes.hasOwnProperty("text/html")||ve.defineMIME("text/html",{name:"xml",htmlMode:!0})})},12378:function(fn,on,we){"use strict";we.d(on,{$u:function(){return nt},BD:function(){return We},E9:function(){return xt},FF:function(){return io},FJ:function(){return pe},Hn:function(){return de},KX:function(){return Ce},NB:function(){return Tt},S0:function(){return yt},UL:function(){return De},Vk:function(){return se},Vm:function(){return zt},YI:function(){return Zn},ZA:function(){return dt},Zt:function(){return wt},al:function(){return be},bn:function(){return _e},bx:function(){return Fe},g2:function(){return vi},h1:function(){return Re},hD:function(){return Gi},l4:function(){return Ze},rU:function(){return bt},s_:function(){return xe},uz:function(){return nn},z6:function(){return Ve}}),fn=we.hmd(fn),function(){var Le;function xn(a){var y=0;return function(){return y<a.length?{done:!1,value:a[y++]}:{done:!0}}}function Qn(a){var y=typeof Symbol!="undefined"&&Symbol.iterator&&a[Symbol.iterator];return y?y.call(a):{next:xn(a)}}function gi(a){for(var y,x=[];!(y=a.next()).done;)x.push(y.value);return x}var yi=typeof Object.create=="function"?Object.create:function(a){function y(){}return y.prototype=a,new y},ti;if(typeof Object.setPrototypeOf=="function")ti=Object.setPrototypeOf;else{var Yi;e:{var cr={a:!0},Sr={};try{Sr.__proto__=cr,Yi=Sr.a;break e}catch(a){}Yi=!1}ti=Yi?function(a,y){if(a.__proto__=y,a.__proto__!==y)throw new TypeError(a+" is not extensible");return a}:null}var Jt=ti;function Vt(a,y){if(a.prototype=yi(y.prototype),a.prototype.constructor=a,Jt)Jt(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 It=typeof we.g!="undefined"&&we.g!=null?we.g:self,Ei=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},Ii=typeof Object.defineProperties=="function"?Object.defineProperty:function(a,y,x){a!=Array.prototype&&a!=Object.prototype&&(a[y]=x.value)};function ji(a,y){if(y){var x=It;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&&Ii(x,a,{writable:!0,value:y})}}ji("Object.assign",function(a){return a||Ei}),ji("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 Xn=typeof globalThis=="object"&&globalThis||typeof we.g=="object"&&we.g.global===we.g&&we.g||typeof self=="object"&&self.self===self&&self||{};Xn.requestAnimationFrame===void 0&&(Xn.setImmediate===void 0?Xn.requestAnimationFrame=function(a){Xn.setTimeout(a,0)}:Xn.requestAnimationFrame=Xn.setImmediate);function Ai(){}function ur(a,y){var x=-1;return function(){var E=this,b=arguments;x!==-1&&Xn.clearTimeout(x),x=Tr(function(){x=-1,a.apply(E,b)},y)}}function Tr(a,y){return Xn.setTimeout(a,y)}function br(a){return Xn.document.createElement(a)}function et(a){throw Error(a)}function Ft(a,y){a="The object is frozen, so its properties cannot be set: "+a.toString(),y!==void 0&&(a+=" to value: "+y),et(a)}function Tn(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),et(x+" is not in the range "+y+": "+a)}function Yn(a){Xn.console&&Xn.console.log(a)}function en(a){return typeof a=="object"&&a!==null}function Gn(a){return Array.isArray(a)||Xn.NodeList&&a instanceof Xn.NodeList||Xn.HTMLCollection&&a instanceof Xn.HTMLCollection}function kn(a){return Array.prototype.slice.call(a)}function _n(a,y,x){Array.isArray(a)?y>=a.length?a.push(x):a.splice(y,0,x):et("Cannot insert an object into an HTMLCollection or NodeList: "+x+" at "+y)}function xi(a,y){Array.isArray(a)?y>=a.length?a.pop():a.splice(y,1):et("Cannot remove an object from an HTMLCollection or NodeList at "+y)}function mi(){var a=fo.pop();return a===void 0?[]:a}function sn(a){a.length=0,fo.push(a)}function ki(a){if(typeof a=="function"){if(a.className)return a.className;if(a.name)return a.name;var y=a.toString();if(y=y.substring(9,y.indexOf("(")).trim(),y!=="")return a._className=y}else if(en(a)&&a.constructor)return ki(a.constructor);return typeof a}function Cr(a){var y=a;return en(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 gr(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 dr(a,y,x){Object.defineProperty(Ao.prototype,a,{get:y,set:x})}function mn(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="",ee=0;ee<a.length;ee++)x=(x+1)%256,E=(E+y[x])%256,b=y[x],y[x]=y[E],y[E]=b,z+=String.fromCharCode(a.charCodeAt(ee)^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 Ir=Xn.navigator!==void 0&&0<Xn.navigator.userAgent.indexOf("Trident/7"),jr=Xn.navigator!==void 0&&Xn.navigator.platform!==void 0&&Xn.navigator.platform.match(/(iPhone|iPod|iPad|Mac)/i)!==null,fo=[];Object.freeze([]),Ai.className="Util",Ai.Dx="32ab5ff3b26f42dc0ed90f21472913b5",Ai.adym="gojs.net",Ai.vfo="28e645fdb266",Ai.className="Util";function yn(a,y,x){rr(this),this.j=a,this.xa=y,this.o=x}yn.prototype.toString=function(){return"EnumValue."+this.xa};function ni(a,y){return y==null||y===""?null:a[y]}It.Object.defineProperties(yn.prototype,{classType:{get:function(){return this.j}},name:{get:function(){return this.xa}},value:{get:function(){return this.o}}}),yn.className="EnumValue";function Hi(){this.ew=[]}Hi.prototype.toString=function(){return this.ew.join("")},Hi.prototype.add=function(a){a!==""&&this.ew.push(a)},Hi.className="StringBuilder";function Ri(){}Ri.className="PropertyCollection";var Xi={EA:!1,JA:!1,GA:!1,IA:!1,NA:!1,LA:!1,nx:!1,FA:null,trace:function(a){Xn.console&&Xn.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(ee,re){return function(){throw Error("Property "+ee.Zl[re.Tj]+" of "+ee.x+" is read-only.")}}(y,b)})}}}y={Zl:y.Zl,x:y.x}}}};function $i(){}$i.prototype.reset=function(){},$i.prototype.next=function(){return!1},$i.prototype.Ad=function(){return!1},$i.prototype.first=function(){return null},$i.prototype.any=function(){return!1},$i.prototype.all=function(){return!0},$i.prototype.each=function(){return this},$i.prototype.map=function(){return this},$i.prototype.filter=function(){return this},$i.prototype.de=function(){},$i.prototype.toString=function(){return"EmptyIterator"},It.Object.defineProperties($i.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 0}}}),$i.prototype.first=$i.prototype.first,$i.prototype.hasNext=$i.prototype.Ad,$i.prototype.next=$i.prototype.next,$i.prototype.reset=$i.prototype.reset;var Fr=null;$i.className="EmptyIterator",Fr=new $i;function Dr(a){this.key=-1,this.value=a}Dr.prototype.reset=function(){this.key=-1},Dr.prototype.next=function(){return this.key===-1?(this.key=0,!0):!1},Dr.prototype.Ad=function(){return this.next()},Dr.prototype.first=function(){return this.key=0,this.value},Dr.prototype.any=function(a){return this.key=-1,a(this.value)},Dr.prototype.all=function(a){return this.key=-1,a(this.value)},Dr.prototype.each=function(a){return this.key=-1,a(this.value),this},Dr.prototype.map=function(a){return new Dr(a(this.value))},Dr.prototype.filter=function(a){return a(this.value)?new Dr(this.value):Fr},Dr.prototype.de=function(){this.value=null},Dr.prototype.toString=function(){return"SingletonIterator("+this.value+")"},It.Object.defineProperties(Dr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 1}}}),Dr.prototype.first=Dr.prototype.first,Dr.prototype.hasNext=Dr.prototype.Ad,Dr.prototype.next=Dr.prototype.next,Dr.prototype.reset=Dr.prototype.reset,Dr.className="SingletonIterator";function Rr(a){this.Bb=a,this.qf=null,a.Sa=null,this.qa=a.Ja,this.Za=-1}Rr.prototype.reset=function(){var a=this.Bb;a.Sa=null,this.qa=a.Ja,this.Za=-1},Rr.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},Rr.prototype.Ad=function(){return this.next()},Rr.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},Rr.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},Rr.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},Rr.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},Rr.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 ee=y[z];(b===null||b(ee))&&x.push(a(ee))}return a=new Mn,a.s=x,a.xb(),a.iterator},Rr.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 ee=y[z];(b===null||b(ee))&&a(ee)&&x.push(ee)}return a=new Mn,a.s=x,a.xb(),a.iterator},Rr.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.qf=null,this.Bb.Sa=this},Rr.prototype.toString=function(){return"ListIterator@"+this.Za+"/"+this.Bb.count},It.Object.defineProperties(Rr.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}}}),Rr.prototype.first=Rr.prototype.first,Rr.prototype.hasNext=Rr.prototype.Ad,Rr.prototype.next=Rr.prototype.next,Rr.prototype.reset=Rr.prototype.reset,Rr.className="ListIterator";function Xr(a){this.Bb=a,a.Hg=null,this.qa=a.Ja,this.Za=a.s.length}Xr.prototype.reset=function(){var a=this.Bb;a.Hg=null,this.qa=a.Ja,this.Za=a.s.length},Xr.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)},Xr.prototype.Ad=function(){return this.next()},Xr.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},Xr.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},Xr.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},Xr.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},Xr.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 Mn,a.s=x,a.xb(),a.iterator},Xr.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 Mn,a.s=x,a.xb(),a.iterator},Xr.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.Bb.Hg=this},Xr.prototype.toString=function(){return"ListIteratorBackwards("+this.Za+"/"+this.Bb.count+")"},It.Object.defineProperties(Xr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.Bb.s.length}}}),Xr.prototype.first=Xr.prototype.first,Xr.prototype.hasNext=Xr.prototype.Ad,Xr.prototype.next=Xr.prototype.next,Xr.prototype.reset=Xr.prototype.reset,Xr.className="ListIteratorBackwards";function Mn(a){rr(this),this._isFrozen=!1,this.s=[],this.Ja=0,this.Hg=this.Sa=null,typeof a=="string"&&et("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Le=Mn.prototype,Le.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},Le.freeze=function(){return this._isFrozen=!0,this},Le.ka=function(){return this._isFrozen=!1,this},Le.toString=function(){return"List()#"+_r(this)},Le.add=function(a){return a===null?this:(this._isFrozen&&Ft(this,a),this.s.push(a),this.xb(),this)},Le.push=function(a){this.add(a)},Le.addAll=function(a){if(a===null)return this;this._isFrozen&&Ft(this);var y=this.s;if(Gn(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},Le.clear=function(){this._isFrozen&&Ft(this),this.s.length=0,this.xb()},Le.contains=function(a){return a===null?!1:this.s.indexOf(a)!==-1},Le.has=function(a){return this.contains(a)},Le.indexOf=function(a){return a===null?-1:this.s.indexOf(a)},Le.M=function(a){var y=this.s;return(0>a||a>=y.length)&&Tn(a,"0 <= i < length",Mn,"elt:i"),y[a]},Le.get=function(a){return this.M(a)},Le.cd=function(a,y){var x=this.s;(0>a||a>=x.length)&&Tn(a,"0 <= i < length",Mn,"setElt:i"),this._isFrozen&&Ft(this,a),x[a]=y},Le.set=function(a,y){this.cd(a,y)},Le.first=function(){var a=this.s;return a.length===0?null:a[0]},Le.jc=function(){var a=this.s,y=a.length;return 0<y?a[y-1]:null},Le.pop=function(){this._isFrozen&&Ft(this);var a=this.s;return 0<a.length?a.pop():null},Mn.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},Mn.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},Mn.prototype.each=function(a){for(var y=this.s,x=y.length,E=0;E<x;E++)a(y[E]);return this},Mn.prototype.map=function(a){for(var y=new Mn,x=[],E=this.s,b=E.length,z=0;z<b;z++)x.push(a(E[z]));return y.s=x,y.xb(),y},Mn.prototype.filter=function(a){for(var y=new Mn,x=[],E=this.s,b=E.length,z=0;z<b;z++){var ee=E[z];a(ee)&&x.push(ee)}return y.s=x,y.xb(),y},Le=Mn.prototype,Le.Gb=function(a,y){0>a&&Tn(a,">= 0",Mn,"insertAt:i"),this._isFrozen&&Ft(this,a);var x=this.s;a>=x.length?x.push(y):x.splice(a,0,y),this.xb()},Le.remove=function(a){if(a===null)return!1;this._isFrozen&&Ft(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)},Le.delete=function(a){return this.remove(a)},Le.mb=function(a){var y=this.s;(0>a||a>=y.length)&&Tn(a,"0 <= i < length",Mn,"removeAt:i"),this._isFrozen&&Ft(this,a),a===y.length-1?y.pop():y.splice(a,1),this.xb()},Le.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&&Ft(this);for(var b=a,z=y+1;z<E;)x[b++]=x[z++];return x.length=E-(y-a+1),this.xb(),this},Mn.prototype.copy=function(){var a=new Mn,y=this.s;return 0<y.length&&(a.s=Array.prototype.slice.call(y)),a},Le=Mn.prototype,Le.Fa=function(){for(var a=this.s,y=this.count,x=Array(y),E=0;E<y;E++)x[E]=a[E];return x},Le.Iv=function(){for(var a=new ln,y=this.s,x=this.count,E=0;E<x;E++)a.add(y[E]);return a},Le.sort=function(a){return this._isFrozen&&Ft(this),this.s.sort(a),this.xb(),this},Le.zi=function(a,y,x){var E=this.s,b=E.length;y===void 0&&(y=0),x===void 0&&(x=b),this._isFrozen&&Ft(this);var z=x-y;if(1>=z)return this;if((0>y||y>=b-1)&&Tn(y,"0 <= from < length",Mn,"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},Le.reverse=function(){return this._isFrozen&&Ft(this),this.s.reverse(),this.xb(),this},It.Object.defineProperties(Mn.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 Fr;var a=this.Sa;return a!==null?(a.reset(),a):new Rr(this)}},iteratorBackwards:{get:function(){if(0>=this.s.length)return Fr;var a=this.Hg;return a!==null?(a.reset(),a):new Xr(this)}}}),Mn.prototype.reverse=Mn.prototype.reverse,Mn.prototype.sortRange=Mn.prototype.zi,Mn.prototype.sort=Mn.prototype.sort,Mn.prototype.toSet=Mn.prototype.Iv,Mn.prototype.toArray=Mn.prototype.Fa,Mn.prototype.removeRange=Mn.prototype.removeRange,Mn.prototype.removeAt=Mn.prototype.mb,Mn.prototype.delete=Mn.prototype.delete,Mn.prototype.remove=Mn.prototype.remove,Mn.prototype.insertAt=Mn.prototype.Gb,Mn.prototype.pop=Mn.prototype.pop,Mn.prototype.last=Mn.prototype.jc,Mn.prototype.first=Mn.prototype.first,Mn.prototype.set=Mn.prototype.set,Mn.prototype.setElt=Mn.prototype.cd,Mn.prototype.get=Mn.prototype.get,Mn.prototype.elt=Mn.prototype.M,Mn.prototype.indexOf=Mn.prototype.indexOf,Mn.prototype.has=Mn.prototype.has,Mn.prototype.contains=Mn.prototype.contains,Mn.prototype.clear=Mn.prototype.clear,Mn.prototype.addAll=Mn.prototype.addAll,Mn.prototype.push=Mn.prototype.push,Mn.prototype.add=Mn.prototype.add,Mn.prototype.thaw=Mn.prototype.ka,Mn.prototype.freeze=Mn.prototype.freeze,Mn.className="List";function ho(a){this.eg=a,a.Sa=null,this.qa=a.Ja,this.sa=null}ho.prototype.reset=function(){var a=this.eg;a.Sa=null,this.qa=a.Ja,this.sa=null},ho.prototype.next=function(){var a=this.eg;if(a.Ja!==this.qa&&this.key===null)return!1;var y=this.sa;return y=y===null?a.ea:y.va,y!==null?(this.sa=y,this.value=y.value,this.key=y.key,!0):(this.de(),!1)},ho.prototype.Ad=function(){return this.next()},ho.prototype.first=function(){var a=this.eg;if(this.qa=a.Ja,a=a.ea,a!==null){this.sa=a;var y=a.value;return this.key=a.key,this.value=y}return null},ho.prototype.any=function(a){var y=this.eg;for(this.sa=y.Sa=null,y=y.ea;y!==null;){if(a(y.value))return!0;y=y.va}return!1},ho.prototype.all=function(a){var y=this.eg;for(this.sa=y.Sa=null,y=y.ea;y!==null;){if(!a(y.value))return!1;y=y.va}return!0},ho.prototype.each=function(a){var y=this.eg;for(this.sa=y.Sa=null,y=y.ea;y!==null;)a(y.value),y=y.va;return this},ho.prototype.map=function(a){var y=this.eg;y.Sa=null;var x=new Mn;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},ho.prototype.filter=function(a){var y=this.eg;y.Sa=null;var x=new Mn;for(y=y.ea;y!==null;){var E=y.value;a(E)&&x.add(E),y=y.va}return x.iterator},ho.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.eg.Sa=this},ho.prototype.toString=function(){return this.sa!==null?"SetIterator@"+this.sa.value:"SetIterator"},It.Object.defineProperties(ho.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.eg.Sb}}}),ho.prototype.first=ho.prototype.first,ho.prototype.hasNext=ho.prototype.Ad,ho.prototype.next=ho.prototype.next,ho.prototype.reset=ho.prototype.reset,ho.className="SetIterator";function ln(a){rr(this),this._isFrozen=!1,this.Tb={},this.Sb=0,this.Sa=null,this.Ja=0,this.kf=this.ea=null,typeof a=="string"&&et("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Le=ln.prototype,Le.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},Le.freeze=function(){return this._isFrozen=!0,this},Le.ka=function(){return this._isFrozen=!1,this},Le.toString=function(){return"Set()#"+_r(this)},Le.add=function(a){if(a===null)return this;this._isFrozen&&Ft(this,a);var y=a;return en(a)&&(y=Vr(a)),this.Tb[y]===void 0&&(this.Sb++,a=new Ht(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},Le.addAll=function(a){if(a===null)return this;if(this._isFrozen&&Ft(this),Gn(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},Le.contains=function(a){if(a===null)return!1;var y=a;return en(a)&&(y=_r(a),y===void 0)?!1:this.Tb[y]!==void 0},Le.has=function(a){return this.contains(a)},Le.Sy=function(a){if(a===null)return!0;for(a=a.iterator;a.next();)if(!this.contains(a.value))return!1;return!0},Le.Ty=function(a){if(a===null)return!0;for(a=a.iterator;a.next();)if(this.contains(a.value))return!0;return!1},Le.first=function(){var a=this.ea;return a===null?null:a.value},ln.prototype.any=function(a){for(var y=this.ea;y!==null;){if(a(y.value))return!0;y=y.va}return!1},ln.prototype.all=function(a){for(var y=this.ea;y!==null;){if(!a(y.value))return!1;y=y.va}return!0},ln.prototype.each=function(a){for(var y=this.ea;y!==null;)a(y.value),y=y.va;return this},ln.prototype.map=function(a){for(var y=new ln,x=this.ea;x!==null;)y.add(a(x.value)),x=x.va;return y},ln.prototype.filter=function(a){for(var y=new ln,x=this.ea;x!==null;){var E=x.value;a(E)&&y.add(E),x=x.va}return y},Le=ln.prototype,Le.remove=function(a){if(a===null)return!1;this._isFrozen&&Ft(this,a);var y=a;if(en(a)&&(y=_r(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},Le.delete=function(a){return this.remove(a)},Le.hp=function(a){if(a===null)return this;if(this._isFrozen&&Ft(this),Gn(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},Le.pA=function(a){if(a===null||this.count===0)return this;this._isFrozen&&Ft(this);var y=new ln;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},Le.clear=function(){this._isFrozen&&Ft(this),this.Tb={},this.Sb=0,this.Sa!==null&&this.Sa.reset(),this.kf=this.ea=null,this.xb()},ln.prototype.copy=function(){var a=new ln,y=this.Tb,x;for(x in y)a.add(y[x].value);return a},ln.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},ln.prototype.Hv=function(){var a=new Mn,y=this.Tb,x;for(x in y)a.add(y[x].value);return a};function rr(a){a.__gohashid=Co++}function Vr(a){var y=a.__gohashid;return y===void 0&&(y=Co++,a.__gohashid=y),y}function _r(a){return a.__gohashid}It.Object.defineProperties(ln.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.Sb)return Fr;var a=this.Sa;return a!==null?(a.reset(),a):new ho(this)}}}),ln.prototype.toList=ln.prototype.Hv,ln.prototype.toArray=ln.prototype.Fa,ln.prototype.clear=ln.prototype.clear,ln.prototype.retainAll=ln.prototype.pA,ln.prototype.removeAll=ln.prototype.hp,ln.prototype.delete=ln.prototype.delete,ln.prototype.remove=ln.prototype.remove,ln.prototype.first=ln.prototype.first,ln.prototype.containsAny=ln.prototype.Ty,ln.prototype.containsAll=ln.prototype.Sy,ln.prototype.has=ln.prototype.has,ln.prototype.contains=ln.prototype.contains,ln.prototype.addAll=ln.prototype.addAll,ln.prototype.add=ln.prototype.add,ln.prototype.thaw=ln.prototype.ka,ln.prototype.freeze=ln.prototype.freeze;var Co=1;ln.className="Set",ln.uniqueHash=rr,ln.hashIdUnique=Vr,ln.hashId=_r;function Qr(a){this.ma=a,this.qa=a.Ja,this.sa=null}Qr.prototype.reset=function(){this.qa=this.ma.Ja,this.sa=null},Qr.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)},Qr.prototype.Ad=function(){return this.next()},Qr.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},Qr.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},Qr.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},Qr.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},Qr.prototype.map=function(a){var y=this.ma;this.sa=null;var x=new Mn;for(y=y.ea;y!==null;)x.add(a(y.key)),y=y.va;return x.iterator},Qr.prototype.filter=function(a){var y=this.ma;this.sa=null;var x=new Mn;for(y=y.ea;y!==null;){var E=y.key;a(E)&&x.add(E),y=y.va}return x.iterator},Qr.prototype.de=function(){this.value=this.key=null,this.qa=-1},Qr.prototype.toString=function(){return this.sa!==null?"MapKeySetIterator@"+this.sa.value:"MapKeySetIterator"},It.Object.defineProperties(Qr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),Qr.prototype.first=Qr.prototype.first,Qr.prototype.hasNext=Qr.prototype.Ad,Qr.prototype.next=Qr.prototype.next,Qr.prototype.reset=Qr.prototype.reset,Qr.className="MapKeySetIterator";function Or(a){ln.call(this),rr(this),this._isFrozen=!0,this.ma=a}Vt(Or,ln),Le=Or.prototype,Le.freeze=function(){return this},Le.ka=function(){return this},Le.toString=function(){return"MapKeySet("+this.ma.toString()+")"},Le.add=function(){et("This Set is read-only: "+this.toString())},Le.contains=function(a){return this.ma.contains(a)},Le.has=function(a){return this.contains(a)},Le.remove=function(){et("This Set is read-only: "+this.toString())},Le.delete=function(a){return this.remove(a)},Le.clear=function(){et("This Set is read-only: "+this.toString())},Le.first=function(){var a=this.ma.ea;return a!==null?a.key:null},Or.prototype.any=function(a){for(var y=this.ma.ea;y!==null;){if(a(y.key))return!0;y=y.va}return!1},Or.prototype.all=function(a){for(var y=this.ma.ea;y!==null;){if(!a(y.key))return!1;y=y.va}return!0},Or.prototype.each=function(a){for(var y=this.ma.ea;y!==null;)a(y.key),y=y.va;return this},Or.prototype.map=function(a){for(var y=new ln,x=this.ma.ea;x!==null;)y.add(a(x.key)),x=x.va;return y},Or.prototype.filter=function(a){for(var y=new ln,x=this.ma.ea;x!==null;){var E=x.key;a(E)&&y.add(E),x=x.va}return y},Or.prototype.copy=function(){return new Or(this.ma)},Or.prototype.Iv=function(){var a=new ln,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},Or.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},Or.prototype.Hv=function(){var a=new Mn,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},It.Object.defineProperties(Or.prototype,{count:{get:function(){return this.ma.Sb}},size:{get:function(){return this.ma.Sb}},iterator:{get:function(){return 0>=this.ma.Sb?Fr:new Qr(this.ma)}}}),Or.prototype.toList=Or.prototype.Hv,Or.prototype.toArray=Or.prototype.Fa,Or.prototype.toSet=Or.prototype.Iv,Or.prototype.first=Or.prototype.first,Or.prototype.clear=Or.prototype.clear,Or.prototype.delete=Or.prototype.delete,Or.prototype.remove=Or.prototype.remove,Or.prototype.has=Or.prototype.has,Or.prototype.contains=Or.prototype.contains,Or.prototype.add=Or.prototype.add,Or.prototype.thaw=Or.prototype.ka,Or.prototype.freeze=Or.prototype.freeze,Or.className="MapKeySet";function ko(a){this.ma=a,a.jf=null,this.qa=a.Ja,this.sa=null}ko.prototype.reset=function(){var a=this.ma;a.jf=null,this.qa=a.Ja,this.sa=null},ko.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)},ko.prototype.Ad=function(){return this.next()},ko.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},ko.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},ko.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},ko.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},ko.prototype.map=function(a){var y=this.ma;this.sa=y.jf=null;var x=new Mn;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},ko.prototype.filter=function(a){var y=this.ma;this.sa=y.jf=null;var x=new Mn;for(y=y.ea;y!==null;){var E=y.value;a(E)&&x.add(E),y=y.va}return x.iterator},ko.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.jf=this},ko.prototype.toString=function(){return this.sa!==null?"MapValueSetIterator@"+this.sa.value:"MapValueSetIterator"},It.Object.defineProperties(ko.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),ko.prototype.first=ko.prototype.first,ko.prototype.hasNext=ko.prototype.Ad,ko.prototype.next=ko.prototype.next,ko.prototype.reset=ko.prototype.reset,ko.className="MapValueSetIterator";function Ht(a,y){this.key=a,this.value=y,this.ll=this.va=null}Ht.prototype.toString=function(){return"{"+this.key+":"+this.value+"}"},Ht.className="KeyValuePair";function Cn(a){this.ma=a,a.Sa=null,this.qa=a.Ja,this.sa=null}Cn.prototype.reset=function(){var a=this.ma;a.Sa=null,this.qa=a.Ja,this.sa=null},Cn.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)},Cn.prototype.Ad=function(){return this.next()},Cn.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},Cn.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},Cn.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},Cn.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},Cn.prototype.map=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new Mn;for(y=y.ea;y!==null;)x.add(a(y)),y=y.va;return x.iterator},Cn.prototype.filter=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new Mn;for(y=y.ea;y!==null;)a(y)&&x.add(y),y=y.va;return x.iterator},Cn.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.Sa=this},Cn.prototype.toString=function(){return this.sa!==null?"MapIterator@"+this.sa:"MapIterator"},It.Object.defineProperties(Cn.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),Cn.prototype.first=Cn.prototype.first,Cn.prototype.hasNext=Cn.prototype.Ad,Cn.prototype.next=Cn.prototype.next,Cn.prototype.reset=Cn.prototype.reset,Cn.className="MapIterator";function Ut(a){rr(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"&&et("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Le=Ut.prototype,Le.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},Le.freeze=function(){return this._isFrozen=!0,this},Le.ka=function(){return this._isFrozen=!1,this},Le.toString=function(){return"Map()#"+_r(this)},Le.add=function(a,y){this._isFrozen&&Ft(this,a);var x=a;en(a)&&(x=Vr(a));var E=this.Tb[x];return E===void 0?(this.Sb++,a=new Ht(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},Le.set=function(a,y){return this.add(a,y)},Le.addAll=function(a){if(a===null)return this;if(Gn(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 Ut)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},Le.first=function(){return this.ea},Ut.prototype.any=function(a){for(var y=this.ea;y!==null;){if(a(y))return!0;y=y.va}return!1},Ut.prototype.all=function(a){for(var y=this.ea;y!==null;){if(!a(y))return!1;y=y.va}return!0},Ut.prototype.each=function(a){for(var y=this.ea;y!==null;)a(y),y=y.va;return this},Ut.prototype.map=function(a){for(var y=new Ut,x=this.ea;x!==null;)y.add(x.key,a(x)),x=x.va;return y},Ut.prototype.filter=function(a){for(var y=new Ut,x=this.ea;x!==null;)a(x)&&y.add(x.key,x.value),x=x.va;return y},Le=Ut.prototype,Le.contains=function(a){var y=a;return en(a)&&(y=_r(a),y===void 0)?!1:this.Tb[y]!==void 0},Le.has=function(a){return this.contains(a)},Le.I=function(a){var y=a;return en(a)&&(y=_r(a),y===void 0)?null:(a=this.Tb[y],a===void 0?null:a.value)},Le.get=function(a){return this.I(a)},Le.remove=function(a){if(a===null)return!1;this._isFrozen&&Ft(this,a);var y=a;if(en(a)&&(y=_r(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},Le.delete=function(a){return this.remove(a)},Le.clear=function(){this._isFrozen&&Ft(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()},Ut.prototype.copy=function(){var a=new Ut,y=this.Tb,x;for(x in y){var E=y[x];a.add(E.key,E.value)}return a},Ut.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 Ht(b.key,b.value),x++}return y},Ut.prototype.Lf=function(){return new Or(this)},It.Object.defineProperties(Ut.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.count)return Fr;var a=this.Sa;return a!==null?(a.reset(),a):new Cn(this)}},iteratorKeys:{get:function(){return 0>=this.count?Fr:new Qr(this)}},iteratorValues:{get:function(){if(0>=this.count)return Fr;var a=this.jf;return a!==null?(a.reset(),a):new ko(this)}}}),Ut.prototype.toKeySet=Ut.prototype.Lf,Ut.prototype.toArray=Ut.prototype.Fa,Ut.prototype.clear=Ut.prototype.clear,Ut.prototype.delete=Ut.prototype.delete,Ut.prototype.remove=Ut.prototype.remove,Ut.prototype.get=Ut.prototype.get,Ut.prototype.getValue=Ut.prototype.I,Ut.prototype.has=Ut.prototype.has,Ut.prototype.contains=Ut.prototype.contains,Ut.prototype.first=Ut.prototype.first,Ut.prototype.addAll=Ut.prototype.addAll,Ut.prototype.set=Ut.prototype.set,Ut.prototype.add=Ut.prototype.add,Ut.prototype.thaw=Ut.prototype.ka,Ut.prototype.freeze=Ut.prototype.freeze,Ut.className="Map";function je(a,y){a===void 0?this.y=this.x=0:typeof a=="number"&&typeof y=="number"?(this.x=a,this.y=y):et("Invalid arguments to Point constructor: "+a+", "+y),this._isFrozen=!1}var ri,Si,$e,rn,Wt;je.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this},je.prototype.h=function(a,y){return this.x=a,this.y=y,this},je.prototype.sg=function(a,y){return this.x=a,this.y=y,this},je.prototype.set=function(a){return this.x=a.x,this.y=a.y,this},je.prototype.copy=function(){var a=new je;return a.x=this.x,a.y=this.y,a},Le=je.prototype,Le.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Le.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Le.freeze=function(){return this._isFrozen=!0,this},Le.ka=function(){return Object.isFrozen(this)&&et("cannot thaw constant: "+this),this._isFrozen=!1,this};function Kt(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 je(x,b)}return new je}function Hn(a){return a.x.toString()+" "+a.y.toString()}Le.toString=function(){return"Point("+this.x+","+this.y+")"},Le.D=function(a){return a instanceof je?this.x===a.x&&this.y===a.y:!1},Le.hi=function(a,y){return this.x===a&&this.y===y},Le.Xa=function(a){return St.B(this.x,a.x)&&St.B(this.y,a.y)},Le.add=function(a){return this.x+=a.x,this.y+=a.y,this},Le.re=function(a){return this.x-=a.x,this.y-=a.y,this},Le.offset=function(a,y){return this.x+=a,this.y+=y,this},je.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},Le=je.prototype,Le.scale=function(a,y){return this.x*=a,this.y*=y,this},Le.Bf=function(a){var y=a.x-this.x;return a=a.y-this.y,y*y+a*a},Le.zd=function(a,y){return a-=this.x,y-=this.y,a*a+y*y},Le.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},Le.ab=function(a){return Bn(a.x-this.x,a.y-this.y)},Le.direction=function(a,y){return Bn(a-this.x,y-this.y)};function Bn(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}Le.Ry=function(a,y){return St.Fl(a.x,a.y,y.x,y.y,this.x,this.y)},Le.fA=function(a,y,x,E){return St.qh(a,y,x,E,this.x,this.y,this),this},Le.gA=function(a,y){return St.qh(a.x,a.y,y.x,y.y,this.x,this.y,this),this},Le.uA=function(a,y,x,E){return St.No(this.x,this.y,a,y,x,E,this),this},Le.vA=function(a,y){return St.No(this.x,this.y,a.x,a.y,y.width,y.height,this),this},Le.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},Le.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},Le.transform=function(a){return a.Ga(this),this};function un(a,y){return y.Cd(a),a}function On(a,y,x,E,b,z){var ee=b-x,re=z-E,oe=ee*ee+re*re;x-=a,E-=y;var le=-x*ee-E*re;return 0>=le||le>=oe?(ee=b-a,re=z-y,Math.min(x*x+E*E,ee*ee+re*re)):(a=ee*E-re*x,a*a/oe)}function li(a,y,x,E){return a=x-a,y=E-y,a*a+y*y}function ke(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)}Le.w=function(){return isFinite(this.x)&&isFinite(this.y)},je.alloc=function(){var a=ht.pop();return a===void 0?new je:a},je.allocAt=function(a,y){var x=ht.pop();return x===void 0?new je(a,y):(x.x=a,x.y=y,x)},je.free=function(a){ht.push(a)},je.prototype.isReal=je.prototype.w,je.prototype.setSpot=je.prototype.yi,je.prototype.setRectSpot=je.prototype.xi,je.prototype.snapToGridPoint=je.prototype.vA,je.prototype.snapToGrid=je.prototype.uA,je.prototype.projectOntoLineSegmentPoint=je.prototype.gA,je.prototype.projectOntoLineSegment=je.prototype.fA,je.intersectingLineSegments=function(a,y,x,E,b,z,ee,re){return St.Rl(a,y,x,E,b,z,ee,re)},je.prototype.compareWithLineSegmentPoint=je.prototype.Ry,je.compareWithLineSegment=function(a,y,x,E,b,z){return St.Fl(a,y,x,E,b,z)},je.prototype.direction=je.prototype.direction,je.prototype.directionPoint=je.prototype.ab,je.prototype.normalize=je.prototype.normalize,je.prototype.distanceSquared=je.prototype.zd,je.prototype.distanceSquaredPoint=je.prototype.Bf,je.prototype.scale=je.prototype.scale,je.prototype.rotate=je.prototype.rotate,je.prototype.offset=je.prototype.offset,je.prototype.subtract=je.prototype.re,je.prototype.add=je.prototype.add,je.prototype.equalsApprox=je.prototype.Xa,je.prototype.equalTo=je.prototype.hi,je.prototype.equals=je.prototype.D,je.prototype.set=je.prototype.set,je.prototype.setTo=je.prototype.sg;var ht=[];je.className="Point",je.parse=Kt,je.stringify=Hn,je.distanceLineSegmentSquared=On,je.distanceSquared=li,je.direction=ke,je.Origin=ri=new je(0,0).ja(),je.InfiniteTopLeft=Si=new je(-1/0,-1/0).ja(),je.InfiniteBottomRight=$e=new je(1/0,1/0).ja(),je.SixPoint=rn=new je(6,6).ja(),je.NoPoint=Wt=new je(NaN,NaN).ja(),je.parse=Kt,je.stringify=Hn,je.distanceLineSegmentSquared=On,je.distanceSquared=li,je.direction=ke;function Je(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):et("Invalid arguments to Size constructor: "+a+", "+y),this._isFrozen=!1}var pt,Pt,$t,Qt,dn,Nn,jn;Je.prototype.assign=function(a){return this.width=a.width,this.height=a.height,this},Je.prototype.h=function(a,y){return this.width=a,this.height=y,this},Je.prototype.sg=function(a,y){return this.width=a,this.height=y,this},Je.prototype.set=function(a){return this.width=a.width,this.height=a.height,this},Je.prototype.copy=function(){var a=new Je;return a.width=this.width,a.height=this.height,a},Le=Je.prototype,Le.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Le.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Le.freeze=function(){return this._isFrozen=!0,this},Le.ka=function(){return Object.isFrozen(this)&&et("cannot thaw constant: "+this),this._isFrozen=!1,this};function cn(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 Je(x,b)}return new Je}function qn(a){return a.width.toString()+" "+a.height.toString()}Le.toString=function(){return"Size("+this.width+","+this.height+")"},Le.D=function(a){return a instanceof Je?this.width===a.width&&this.height===a.height:!1},Le.hi=function(a,y){return this.width===a&&this.height===y},Le.Xa=function(a){return St.B(this.width,a.width)&&St.B(this.height,a.height)},Le.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},Le.w=function(){return isFinite(this.width)&&isFinite(this.height)},Je.alloc=function(){var a=ci.pop();return a===void 0?new Je:a},Je.free=function(a){ci.push(a)},Je.prototype.isReal=Je.prototype.w,Je.prototype.inflate=Je.prototype.Bc,Je.prototype.equalsApprox=Je.prototype.Xa,Je.prototype.equalTo=Je.prototype.hi,Je.prototype.equals=Je.prototype.D,Je.prototype.set=Je.prototype.set,Je.prototype.setTo=Je.prototype.sg;var ci=[];Je.className="Size",Je.parse=cn,Je.stringify=qn,Je.ZeroSize=pt=new Je(0,0).ja(),Je.OneSize=Pt=new Je(1,1).ja(),Je.SixSize=$t=new Je(6,6).ja(),Je.EightSize=Qt=new Je(8,8).ja(),Je.TenSize=dn=new Je(10,10).ja(),Je.InfiniteSize=Nn=new Je(1/0,1/0).ja(),Je.NoSize=jn=new Je(NaN,NaN).ja(),Je.parse=cn,Je.stringify=qn;function vt(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 je?(x=a.x,a=a.y,y instanceof je?(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 Je?(this.x=x,this.y=a,this.width=y.width,this.height=y.height):et("Incorrect second argument supplied to Rect constructor "+y)):et("Invalid arguments to Rect constructor: "+a+", "+y+", "+x+", "+E),this._isFrozen=!1}Le=vt.prototype,Le.assign=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},Le.h=function(a,y,x,E){return this.x=a,this.y=y,this.width=x,this.height=E,this};function Un(a,y,x){a.width=y,a.height=x}Le.sg=function(a,y,x,E){return this.x=a,this.y=y,this.width=x,this.height=E,this},Le.set=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},Le.dd=function(a){return this.x=a.x,this.y=a.y,this},Le.tA=function(a){return this.width=a.width,this.height=a.height,this},vt.prototype.copy=function(){var a=new vt;return a.x=this.x,a.y=this.y,a.width=this.width,a.height=this.height,a},Le=vt.prototype,Le.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Le.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Le.freeze=function(){return this._isFrozen=!0,this},Le.ka=function(){return Object.isFrozen(this)&&et("cannot thaw constant: "+this),this._isFrozen=!1,this};function Jn(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 ee=0;a[y]==="";)y++;return(E=a[y++])&&(ee=parseFloat(E)),new vt(x,b,z,ee)}return new vt}function In(a){return a.x.toString()+" "+a.y.toString()+" "+a.width.toString()+" "+a.height.toString()}Le.toString=function(){return"Rect("+this.x+","+this.y+","+this.width+","+this.height+")"},Le.D=function(a){return a instanceof vt?this.x===a.x&&this.y===a.y&&this.width===a.width&&this.height===a.height:!1},Le.hi=function(a,y,x,E){return this.x===a&&this.y===y&&this.width===x&&this.height===E},Le.Xa=function(a){return St.B(this.x,a.x)&&St.B(this.y,a.y)&&St.B(this.width,a.width)&&St.B(this.height,a.height)};function zn(a,y){return St.$(a.x,y.x)&&St.$(a.y,y.y)&&St.$(a.width,y.width)&&St.$(a.height,y.height)}Le.ca=function(a){return this.x<=a.x&&this.x+this.width>=a.x&&this.y<=a.y&&this.y+this.height>=a.y},Le.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},Le.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},Le.offset=function(a,y){return this.x+=a,this.y+=y,this},Le.Bc=function(a,y){return oi(this,y,a,y,a)},Le.Co=function(a){return oi(this,a.top,a.right,a.bottom,a.left)},Le.Fv=function(a){return oi(this,-a.top,-a.right,-a.bottom,-a.left)},Le.Hz=function(a,y,x,E){return oi(this,a,y,x,E)};function oi(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}Le.Ex=function(a){return Wn(this,a.x,a.y,a.width,a.height)},Le.Uu=function(a,y,x,E){return Wn(this,a,y,x,E)};function Wn(a,y,x,E,b){var z=Math.max(a.x,y),ee=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=ee,a.width=Math.max(0,y-z),a.height=Math.max(0,x-ee),a}Le.Yc=function(a){return this.Vu(a.x,a.y,a.width,a.height)},Le.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 fi(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))}Le.Ye=function(a){return pi(this,a.x,a.y,0,0)},Le.ed=function(a){return pi(this,a.x,a.y,a.width,a.height)},Le.Kv=function(a,y,x,E){return x===void 0&&(x=0),E===void 0&&(E=0),pi(this,a,y,x,E)};function pi(a,y,x,E,b){var z=Math.min(a.x,y),ee=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=ee,a.width=y-z,a.height=x-ee,a}Le.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 ai(a,y,x,E,b,z,ee,re){return ee===void 0&&(ee=0),re===void 0&&(re=0),a<=b&&b+ee<=a+x&&y<=z&&z+re<=y+E}function Wi(a,y,x,E,b,z,ee,re){return a>ee+b||b>x+a?!1:!(y>re+z||z>E+y)}Le.w=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},Le.Mz=function(){return this.width===0&&this.height===0},vt.alloc=function(){var a=tr.pop();return a===void 0?new vt:a},vt.allocAt=function(a,y,x,E){var b=tr.pop();return b===void 0?new vt(a,y,x,E):b.h(a,y,x,E)},vt.free=function(a){tr.push(a)},It.Object.defineProperties(vt.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 je(this.x,this.y)},set:function(a){this.x=a.x,this.y=a.y}},size:{get:function(){return new Je(this.width,this.height)},set:function(a){this.width=a.width,this.height=a.height}},center:{get:function(){return new je(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}}}),vt.prototype.isEmpty=vt.prototype.Mz,vt.prototype.isReal=vt.prototype.w,vt.intersectsLineSegment=function(a,y,x,E,b,z,ee,re){return St.Fx(a,y,x,E,b,z,ee,re)},vt.prototype.setSpot=vt.prototype.yi,vt.prototype.union=vt.prototype.Kv,vt.prototype.unionRect=vt.prototype.ed,vt.prototype.unionPoint=vt.prototype.Ye,vt.prototype.intersects=vt.prototype.Vu,vt.prototype.intersectsRect=vt.prototype.Yc,vt.prototype.intersect=vt.prototype.Uu,vt.prototype.intersectRect=vt.prototype.Ex,vt.prototype.grow=vt.prototype.Hz,vt.prototype.subtractMargin=vt.prototype.Fv,vt.prototype.addMargin=vt.prototype.Co,vt.prototype.inflate=vt.prototype.Bc,vt.prototype.offset=vt.prototype.offset,vt.prototype.contains=vt.prototype.contains,vt.prototype.containsRect=vt.prototype.Re,vt.prototype.containsPoint=vt.prototype.ca,vt.prototype.equalsApprox=vt.prototype.Xa,vt.prototype.equalTo=vt.prototype.hi,vt.prototype.equals=vt.prototype.D,vt.prototype.setSize=vt.prototype.tA,vt.prototype.setPoint=vt.prototype.dd,vt.prototype.set=vt.prototype.set,vt.prototype.setTo=vt.prototype.sg;var pr=null,or=null,tr=[];vt.className="Rect",vt.parse=Jn,vt.stringify=In,vt.contains=ai,vt.intersects=Wi,vt.ZeroRect=pr=new vt(0,0,0,0).ja(),vt.NoRect=or=new vt(NaN,NaN,NaN,NaN).ja(),vt.parse=Jn,vt.stringify=In,vt.contains=ai,vt.intersects=Wi;function Pi(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):et("Invalid arguments to Margin constructor: "+a+", "+y+", "+x+", "+E),this._isFrozen=!1}Pi.prototype.assign=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},Pi.prototype.sg=function(a,y,x,E){return this.top=a,this.right=y,this.bottom=x,this.left=E,this},Pi.prototype.set=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},Pi.prototype.copy=function(){var a=new Pi;return a.top=this.top,a.right=this.right,a.bottom=this.bottom,a.left=this.left,a},Le=Pi.prototype,Le.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Le.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Le.freeze=function(){return this._isFrozen=!0,this},Le.ka=function(){return Object.isFrozen(this)&&et("cannot thaw constant: "+this),this._isFrozen=!1,this};function fr(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 Pi;for(var b=NaN;a[y]==="";)y++;if((E=a[y++])&&(b=parseFloat(E)),isNaN(b))return new Pi(x);for(var z=NaN;a[y]==="";)y++;if((E=a[y++])&&(z=parseFloat(E)),isNaN(z))return new Pi(x,b);for(var ee=NaN;a[y]==="";)y++;return(E=a[y++])&&(ee=parseFloat(E)),isNaN(ee)?new Pi(x,b):new Pi(x,b,z,ee)}return new Pi}function nr(a){return a.top.toString()+" "+a.right.toString()+" "+a.bottom.toString()+" "+a.left.toString()}Le.toString=function(){return"Margin("+this.top+","+this.right+","+this.bottom+","+this.left+")"},Le.D=function(a){return a instanceof Pi?this.top===a.top&&this.right===a.right&&this.bottom===a.bottom&&this.left===a.left:!1},Le.hi=function(a,y,x,E){return this.top===a&&this.right===y&&this.bottom===x&&this.left===E},Le.Xa=function(a){return St.B(this.top,a.top)&&St.B(this.right,a.right)&&St.B(this.bottom,a.bottom)&&St.B(this.left,a.left)},Le.w=function(){return isFinite(this.top)&&isFinite(this.right)&&isFinite(this.bottom)&&isFinite(this.left)},Pi.alloc=function(){var a=mr.pop();return a===void 0?new Pi:a},Pi.free=function(a){mr.push(a)},Pi.prototype.isReal=Pi.prototype.w,Pi.prototype.equalsApprox=Pi.prototype.Xa,Pi.prototype.equalTo=Pi.prototype.hi,Pi.prototype.equals=Pi.prototype.D,Pi.prototype.set=Pi.prototype.set,Pi.prototype.setTo=Pi.prototype.sg;var lr=null,sr=null,mr=[];Pi.className="Margin",Pi.parse=fr,Pi.stringify=nr,Pi.ZeroMargin=lr=new Pi(0,0,0,0).ja(),Pi.TwoMargin=sr=new Pi(2,2,2,2).ja(),Pi.parse=fr,Pi.stringify=nr;function En(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 Mi,Ti,Vi,Zi,Oi,Ln,ir,hr,Mr,An,Fi,_i,Er,oo,vo,No,$r,ea,Ui,eo,co,bo,na,Yo,To,Eo,ra,ca,Oo,Xo,po,mo,Jr,ta,Do,Aa;En.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},En.prototype.sg=function(a,y,x,E){return this.x=a,this.y=y,this.offsetX=x,this.offsetY=E,this},En.prototype.set=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},En.prototype.copy=function(){var a=new En;return a.x=this.x,a.y=this.y,a.offsetX=this.offsetX,a.offsetY=this.offsetY,a},Le=En.prototype,Le.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Le.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Le.freeze=function(){return this._isFrozen=!0,this},Le.ka=function(){return Object.isFrozen(this)&&et("cannot thaw constant: "+this),this._isFrozen=!1,this};function xr(a,y){return a.x=NaN,a.y=NaN,a.offsetX=y,a}function er(a){if(typeof a=="string"){if(a=a.trim(),a==="None")return Mi;if(a==="TopLeft")return Ti;if(a==="Top"||a==="TopCenter"||a==="MiddleTop")return Vi;if(a==="TopRight")return Zi;if(a==="Left"||a==="LeftCenter"||a==="MiddleLeft")return Oi;if(a==="Center")return Ln;if(a==="Right"||a==="RightCenter"||a==="MiddleRight")return ir;if(a==="BottomLeft")return hr;if(a==="Bottom"||a==="BottomCenter"||a==="MiddleBottom")return Mr;if(a==="BottomRight")return An;if(a==="TopSide")return Fi;if(a==="LeftSide")return _i;if(a==="RightSide")return Er;if(a==="BottomSide")return oo;if(a==="TopBottomSides")return vo;if(a==="LeftRightSides")return No;if(a==="TopLeftSides")return $r;if(a==="TopRightSides")return ea;if(a==="BottomLeftSides")return Ui;if(a==="BottomRightSides")return eo;if(a==="NotTopSide")return co;if(a==="NotLeftSide")return bo;if(a==="NotRightSide")return na;if(a==="NotBottomSide")return Yo;if(a==="AllSides")return To;if(a==="Default")return Eo;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 ee=0;a[y]==="";)y++;return E=a[y++],E!==void 0&&0<E.length&&(ee=parseFloat(E)),new En(x,b,z,ee)}return new En}function Br(a){return a.sb()?a.x.toString()+" "+a.y.toString()+" "+a.offsetX.toString()+" "+a.offsetY.toString():a.toString()}Le.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(Mi)?"None":this.D(Ti)?"TopLeft":this.D(Vi)?"Top":this.D(Zi)?"TopRight":this.D(Oi)?"Left":this.D(Ln)?"Center":this.D(ir)?"Right":this.D(hr)?"BottomLeft":this.D(Mr)?"Bottom":this.D(An)?"BottomRight":this.D(Fi)?"TopSide":this.D(_i)?"LeftSide":this.D(Er)?"RightSide":this.D(oo)?"BottomSide":this.D(vo)?"TopBottomSides":this.D(No)?"LeftRightSides":this.D($r)?"TopLeftSides":this.D(ea)?"TopRightSides":this.D(Ui)?"BottomLeftSides":this.D(eo)?"BottomRightSides":this.D(co)?"NotTopSide":this.D(bo)?"NotLeftSide":this.D(na)?"NotRightSide":this.D(Yo)?"NotBottomSide":this.D(To)?"AllSides":this.D(Eo)?"Default":"None"},Le.D=function(a){return a instanceof En?(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},Le.gv=function(){return new En(.5-(this.x-.5),.5-(this.y-.5),-this.offsetX,-this.offsetY)},Le.Hf=function(a){if(!this.$c())return!1;if(!a.$c())if(a.D(ra))a=_i;else if(a.D(ca))a=Er;else if(a.D(Oo))a=Fi;else if(a.D(Xo))a=oo;else return!1;return a=a.offsetY,(this.offsetY&a)===a},Le.sb=function(){return!isNaN(this.x)&&!isNaN(this.y)},Le.Mc=function(){return isNaN(this.x)||isNaN(this.y)},Le.$c=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===1&&this.offsetY!==0},Le.ys=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===0&&this.offsetY===0},Le.Xb=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===-1&&this.offsetY===0},En.alloc=function(){var a=vr.pop();return a===void 0?new En:a},En.free=function(a){vr.push(a)},En.prototype.isDefault=En.prototype.Xb,En.prototype.isNone=En.prototype.ys,En.prototype.isSide=En.prototype.$c,En.prototype.isNoSpot=En.prototype.Mc,En.prototype.isSpot=En.prototype.sb,En.prototype.includesSide=En.prototype.Hf,En.prototype.opposite=En.prototype.gv,En.prototype.equals=En.prototype.D,En.prototype.set=En.prototype.set,En.prototype.setTo=En.prototype.sg;var vr=[];En.className="Spot",En.parse=er,En.stringify=Br,En.None=Mi=xr(new En(0,0,0,0),0).ja(),En.Default=Eo=xr(new En(0,0,-1,0),-1).ja(),En.TopLeft=Ti=new En(0,0,0,0).ja(),En.TopCenter=Vi=new En(.5,0,0,0).ja(),En.TopRight=Zi=new En(1,0,0,0).ja(),En.LeftCenter=Oi=new En(0,.5,0,0).ja(),En.Center=Ln=new En(.5,.5,0,0).ja(),En.RightCenter=ir=new En(1,.5,0,0).ja(),En.BottomLeft=hr=new En(0,1,0,0).ja(),En.BottomCenter=Mr=new En(.5,1,0,0).ja(),En.BottomRight=An=new En(1,1,0,0).ja(),En.MiddleTop=po=Vi,En.MiddleLeft=mo=Oi,En.MiddleRight=Jr=ir,En.MiddleBottom=ta=Mr,En.Top=Oo=Vi,En.Left=ra=Oi,En.Right=ca=ir,En.Bottom=Xo=Mr,En.TopSide=Fi=xr(new En(0,0,1,1),1).ja(),En.LeftSide=_i=xr(new En(0,0,1,2),1).ja(),En.RightSide=Er=xr(new En(0,0,1,4),1).ja(),En.BottomSide=oo=xr(new En(0,0,1,8),1).ja(),En.TopBottomSides=vo=xr(new En(0,0,1,9),1).ja(),En.LeftRightSides=No=xr(new En(0,0,1,6),1).ja(),En.TopLeftSides=$r=xr(new En(0,0,1,3),1).ja(),En.TopRightSides=ea=xr(new En(0,0,1,5),1).ja(),En.BottomLeftSides=Ui=xr(new En(0,0,1,10),1).ja(),En.BottomRightSides=eo=xr(new En(0,0,1,12),1).ja(),En.NotTopSide=co=xr(new En(0,0,1,14),1).ja(),En.NotLeftSide=bo=xr(new En(0,0,1,13),1).ja(),En.NotRightSide=na=xr(new En(0,0,1,11),1).ja(),En.NotBottomSide=Yo=xr(new En(0,0,1,7),1).ja(),En.AllSides=To=xr(new En(0,0,1,15),1).ja(),Do=new En(.156,.156).ja(),Aa=new En(.844,.844).ja(),En.parse=er,En.stringify=Br;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,ee=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*ee+this.m21*a+this.dx,this.dy=this.m12*ee+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,ee=this.m12*-E+this.m22*a;return this.m11=this.m11*a+this.m21*E,this.m12=b,this.m21=z,this.m22=ee,this.translate(-y,-x),this},Le=di.prototype,Le.translate=function(a,y){return this.dx+=this.m11*a+this.m21*y,this.dy+=this.m12*a+this.m22*y,this},Le.scale=function(a,y){return y===void 0&&(y=a),this.m11*=a,this.m12*=a,this.m21*=y,this.m22*=y,this},Le.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)},Le.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))},Le.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))},Le.pp=function(a){var y=a.x,x=a.y,E=y+a.width,b=x+a.height,z=this.m11,ee=this.m12,re=this.m21,oe=this.m22,le=this.dx,he=this.dy,ge=y*z+x*re+le,Se=y*ee+x*oe+he,Pe=E*z+x*re+le,Ae=E*ee+x*oe+he;return x=y*z+b*re+le,y=y*ee+b*oe+he,z=E*z+b*re+le,E=E*ee+b*oe+he,b=Math.min(ge,Pe),ge=Math.max(ge,Pe),Pe=Math.min(Se,Ae),Se=Math.max(Se,Ae),b=Math.min(b,x),ge=Math.max(ge,x),Pe=Math.min(Pe,y),Se=Math.max(Se,y),b=Math.min(b,z),ge=Math.max(ge,z),Pe=Math.min(Pe,E),Se=Math.max(Se,E),a.h(b,Pe,ge-b,Se-Pe),a},di.alloc=function(){var a=Go.pop();return a===void 0?new di:a},di.free=function(a){Go.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 Go=[];di.className="Transform",di.xF="54a702f3e53909c447824c6706603faf4c";var St={AA:"7da71ca0ad381e90",wg:(Math.sqrt(2)-1)/3*4,Uv:null,sqrt:function(a){if(0>=a)return 0;var y=St.Uv;if(y===null){y=[];for(var x=0;2e3>=x;x++)y[x]=Math.sqrt(x);St.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,ee){if(0>=b&&(b=1e-6),a<x)var re=a,oe=x;else re=x,oe=a;if(y<E)var le=y,he=E;else le=E,he=y;if(a===x)return le<=ee&&ee<=he&&a-b<=z&&z<=a+b;if(y===E)return re<=z&&z<=oe&&y-b<=ee&&ee<=y+b;if(oe+=b,re-=b,re<=z&&z<=oe&&(he+=b,le-=b,le<=ee&&ee<=he))if(oe-re>he-le)if(a-x>b||x-a>b){if(z=(E-y)/(x-a)*(z-a)+y,z-b<=ee&&ee<=z+b)return!0}else return!0;else if(y-E>b||E-y>b){if(ee=(x-a)/(E-y)*(ee-y)+a,ee-b<=z&&z<=ee+b)return!0}else return!0;return!1},cs:function(a,y,x,E,b,z,ee,re,oe,le,he,ge){if(St.Yb(a,y,ee,re,ge,x,E)&&St.Yb(a,y,ee,re,ge,b,z))return St.Yb(a,y,ee,re,ge,le,he);var Se=(a+x)/2,Pe=(y+E)/2,Ae=(x+b)/2,Be=(E+z)/2;b=(b+ee)/2,z=(z+re)/2,E=(Se+Ae)/2,x=(Pe+Be)/2,Ae=(Ae+b)/2,Be=(Be+z)/2;var Qe=(E+Ae)/2,Ke=(x+Be)/2;return St.cs(a,y,Se,Pe,E,x,Qe,Ke,oe,le,he,ge)||St.cs(Qe,Ke,Ae,Be,b,z,ee,re,oe,le,he,ge)},ax:function(a,y,x,E,b,z,ee,re,oe){var le=(x+b)/2,he=(E+z)/2;return oe.h((((a+x)/2+le)/2+(le+(b+ee)/2)/2)/2,(((y+E)/2+he)/2+(he+(z+re)/2)/2)/2),oe},My:function(a,y,x,E,b,z,ee,re){var oe=(x+b)/2,le=(E+z)/2;return ke(((a+x)/2+oe)/2,((y+E)/2+le)/2,(oe+(b+ee)/2)/2,(le+(z+re)/2)/2)},Dl:function(a,y,x,E,b,z,ee,re,oe,le){if(St.Yb(a,y,ee,re,oe,x,E)&&St.Yb(a,y,ee,re,oe,b,z))pi(le,a,y,0,0),pi(le,ee,re,0,0);else{var he=(a+x)/2,ge=(y+E)/2,Se=(x+b)/2,Pe=(E+z)/2;b=(b+ee)/2,z=(z+re)/2,E=(he+Se)/2,x=(ge+Pe)/2,Se=(Se+b)/2,Pe=(Pe+z)/2;var Ae=(E+Se)/2,Be=(x+Pe)/2;St.Dl(a,y,he,ge,E,x,Ae,Be,oe,le),St.Dl(Ae,Be,Se,Pe,b,z,ee,re,oe,le)}return le},Qe:function(a,y,x,E,b,z,ee,re,oe,le){if(St.Yb(a,y,ee,re,oe,x,E)&&St.Yb(a,y,ee,re,oe,b,z))le.length===0&&(le.push(a),le.push(y)),le.push(ee),le.push(re);else{var he=(a+x)/2,ge=(y+E)/2,Se=(x+b)/2,Pe=(E+z)/2;b=(b+ee)/2,z=(z+re)/2,E=(he+Se)/2,x=(ge+Pe)/2,Se=(Se+b)/2,Pe=(Pe+z)/2;var Ae=(E+Se)/2,Be=(x+Pe)/2;St.Qe(a,y,he,ge,E,x,Ae,Be,oe,le),St.Qe(Ae,Be,Se,Pe,b,z,ee,re,oe,le)}return le},jv:function(a,y,x,E,b,z,ee,re,oe,le){if(St.Yb(a,y,b,z,le,x,E))return St.Yb(a,y,b,z,le,re,oe);var he=(a+x)/2,ge=(y+E)/2;x=(x+b)/2,E=(E+z)/2;var Se=(he+x)/2,Pe=(ge+E)/2;return St.jv(a,y,he,ge,Se,Pe,ee,re,oe,le)||St.jv(Se,Pe,x,E,b,z,ee,re,oe,le)},OA:function(a,y,x,E,b,z,ee){return ee.h(((a+x)/2+(x+b)/2)/2,((y+E)/2+(E+z)/2)/2),ee},iv:function(a,y,x,E,b,z,ee,re){if(St.Yb(a,y,b,z,ee,x,E))pi(re,a,y,0,0),pi(re,b,z,0,0);else{var oe=(a+x)/2,le=(y+E)/2;x=(x+b)/2,E=(E+z)/2;var he=(oe+x)/2,ge=(le+E)/2;St.iv(a,y,oe,le,he,ge,ee,re),St.iv(he,ge,x,E,b,z,ee,re)}return re},ep:function(a,y,x,E,b,z,ee,re){if(St.Yb(a,y,b,z,ee,x,E))re.length===0&&(re.push(a),re.push(y)),re.push(b),re.push(z);else{var oe=(a+x)/2,le=(y+E)/2;x=(x+b)/2,E=(E+z)/2;var he=(oe+x)/2,ge=(le+E)/2;St.ep(a,y,oe,le,he,ge,ee,re),St.ep(he,ge,x,E,b,z,ee,re)}return re},Eo:function(a,y,x,E,b,z,ee,re,oe,le,he,ge,Se,Pe){if(St.Yb(a,y,ee,re,Se,x,E)&&St.Yb(a,y,ee,re,Se,b,z))return!St.Rl(a,y,ee,re,oe,le,he,ge)||(Se=(a-ee)*(le-ge)-(y-re)*(oe-he),Se===0)?!1:(Pe.h(((a*re-y*ee)*(oe-he)-(a-ee)*(oe*ge-le*he))/Se,((a*re-y*ee)*(le-ge)-(y-re)*(oe*ge-le*he))/Se),!0);var Ae=(a+x)/2,Be=(y+E)/2,Qe=(x+b)/2,Ke=(E+z)/2;b=(b+ee)/2,z=(z+re)/2,E=(Ae+Qe)/2,x=(Be+Ke)/2,Qe=(Qe+b)/2,Ke=(Ke+z)/2;var lt=(E+Qe)/2,ct=(x+Ke)/2,ft=1/0,Et=!1,Gt=0,si=0;return St.Eo(a,y,Ae,Be,E,x,lt,ct,oe,le,he,ge,Se,Pe)&&(a=(Pe.x-oe)*(Pe.x-oe)+(Pe.y-le)*(Pe.y-le),a<ft&&(ft=a,Et=!0,Gt=Pe.x,si=Pe.y)),St.Eo(lt,ct,Qe,Ke,b,z,ee,re,oe,le,he,ge,Se,Pe)&&(Pe.x-oe)*(Pe.x-oe)+(Pe.y-le)*(Pe.y-le)<ft&&(Et=!0,Gt=Pe.x,si=Pe.y),Et&&(Pe.x=Gt,Pe.y=si),Et},Fo:function(a,y,x,E,b,z,ee,re,oe,le,he,ge,Se){var Pe=0;if(St.Yb(a,y,ee,re,Se,x,E)&&St.Yb(a,y,ee,re,Se,b,z)){if(Se=(a-ee)*(le-ge)-(y-re)*(oe-he),Se===0)return Pe;var Ae=((a*re-y*ee)*(oe-he)-(a-ee)*(oe*ge-le*he))/Se,Be=((a*re-y*ee)*(le-ge)-(y-re)*(oe*ge-le*he))/Se;if(Ae>=he)return Pe;if((oe>he?oe-he:he-oe)<(le>ge?le-ge:ge-le)){if(y<re?(oe=y,a=re):(oe=re,a=y),Be<oe||Be>a)return Pe}else if(a<ee?(oe=a,a=ee):oe=ee,Ae<oe||Ae>a)return Pe;0<Se?Pe++:0>Se&&Pe--}else{Ae=(a+x)/2,Be=(y+E)/2;var Qe=(x+b)/2,Ke=(E+z)/2;b=(b+ee)/2,z=(z+re)/2,E=(Ae+Qe)/2,x=(Be+Ke)/2,Qe=(Qe+b)/2,Ke=(Ke+z)/2;var lt=(E+Qe)/2,ct=(x+Ke)/2;Pe+=St.Fo(a,y,Ae,Be,E,x,lt,ct,oe,le,he,ge,Se),Pe+=St.Fo(lt,ct,Qe,Ke,b,z,ee,re,oe,le,he,ge,Se)}return Pe},qh:function(a,y,x,E,b,z,ee){return St.$(a,x)?(y<E?(x=y,y=E):x=E,z<x?(ee.h(a,x),!1):z>y?(ee.h(a,y),!1):(ee.h(a,z),!0)):St.$(y,E)?(a<x?(E=a,a=x):E=x,b<E?(ee.h(E,y),!1):b>a?(ee.h(a,y),!1):(ee.h(b,y),!0)):(b=((a-b)*(a-x)+(y-z)*(y-E))/((x-a)*(x-a)+(E-y)*(E-y)),-5e-6>b?(ee.h(a,y),!1):1.000005<b?(ee.h(x,E),!1):(ee.h(a+b*(x-a),y+b*(E-y)),!0))},Ve:function(a,y,x,E,b,z,ee,re,oe){return St.B(a,x)&&St.B(y,E)?(oe.h(a,y),!1):St.$(b,ee)?St.$(a,x)?(St.qh(a,y,x,E,b,z,oe),!1):St.qh(a,y,x,E,b,(E-y)/(x-a)*(b-a)+y,oe):(re=(re-z)/(ee-b),St.$(a,x)?(x=re*(a-b)+z,y<E?(b=y,y=E):b=E,x<b?(oe.h(a,b),!1):x>y?(oe.h(a,y),!1):(oe.h(a,x),!0)):(ee=(E-y)/(x-a),St.$(re,ee)?(St.qh(a,y,x,E,b,z,oe),!1):(b=(ee*a-re*b+z-y)/(ee-re),St.$(ee,0)?(a<x?(E=a,a=x):E=x,b<E?(oe.h(E,y),!1):b>a?(oe.h(a,y),!1):(oe.h(b,y),!0)):St.qh(a,y,x,E,b,ee*(b-a)+y,oe))))},MA:function(a,y,x,E,b){return St.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,ee,re,oe,le){function he(Qe,Ke){var lt=(Qe-a)*(Qe-a)+(Ke-y)*(Ke-y);lt<ge&&(ge=lt,oe.h(Qe,Ke))}var ge=1/0;he(oe.x,oe.y);var Se=0,Pe=0,Ae=0,Be=0;if(b<ee?(Se=b,Pe=ee):(Se=ee,Pe=b),z<re?(Ae=b,Be=ee):(Ae=ee,Be=b),Se=(Pe-Se)/2+le,le=(Be-Ae)/2+le,b=(b+ee)/2,z=(z+re)/2,Se===0||le===0)return oe;if(.5>(x>a?x-a:a-x)){if(Se=1-(x-b)*(x-b)/(Se*Se),0>Se)return oe;Se=Math.sqrt(Se),E=-le*Se+z,he(x,le*Se+z),he(x,E)}else{if(x=(E-y)/(x-a),E=1/(Se*Se)+x*x/(le*le),re=2*x*(y-x*a)/(le*le)-2*x*z/(le*le)-2*b/(Se*Se),Se=re*re-4*E*(2*x*a*z/(le*le)-2*y*z/(le*le)+z*z/(le*le)+b*b/(Se*Se)-1+(y-x*a)*(y-x*a)/(le*le)),0>Se)return oe;Se=Math.sqrt(Se),le=(-re+Se)/(2*E),he(le,x*le-x*a+y),Se=(-re-Se)/(2*E),he(Se,x*Se-x*a+y)}return oe},Ff:function(a,y,x,E,b,z,ee,re,oe){var le=1e21,he=a,ge=y;if(St.Ve(a,y,a,E,b,z,ee,re,oe)){var Se=(oe.x-b)*(oe.x-b)+(oe.y-z)*(oe.y-z);Se<le&&(le=Se,he=oe.x,ge=oe.y)}return St.Ve(x,y,x,E,b,z,ee,re,oe)&&(Se=(oe.x-b)*(oe.x-b)+(oe.y-z)*(oe.y-z),Se<le&&(le=Se,he=oe.x,ge=oe.y)),St.Ve(a,y,x,y,b,z,ee,re,oe)&&(y=(oe.x-b)*(oe.x-b)+(oe.y-z)*(oe.y-z),y<le&&(le=y,he=oe.x,ge=oe.y)),St.Ve(a,E,x,E,b,z,ee,re,oe)&&(a=(oe.x-b)*(oe.x-b)+(oe.y-z)*(oe.y-z),a<le&&(le=a,he=oe.x,ge=oe.y)),oe.h(he,ge),1e21>le},us:function(a,y,x){return St.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,ee,re){var oe=a+x,le=y+E;return b===ee?(z<re?(ee=z,z=re):ee=re,a<=b&&b<=oe&&ee<=le&&z>=y):z===re?(b<ee?(re=b,b=ee):re=ee,y<=z&&z<=le&&re<=oe&&b>=a):!!(ai(a,y,x,E,b,z)||ai(a,y,x,E,ee,re)||St.Rl(a,y,oe,y,b,z,ee,re)||St.Rl(oe,y,oe,le,b,z,ee,re)||St.Rl(oe,le,a,le,b,z,ee,re)||St.Rl(a,le,a,y,b,z,ee,re))},Rl:function(a,y,x,E,b,z,ee,re){return a===x&&y===E&&b===ee&&z===re?a===b&&y===z:0>=St.Fl(a,y,x,E,b,z)*St.Fl(a,y,x,E,ee,re)&&0>=St.Fl(b,z,ee,re,a,y)*St.Fl(b,z,ee,re,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 ee=Math.PI;z||(E*=ee/180,b*=ee/180);var re=E>b?-1:1;z=[];var oe=ee/2,le=E;if(E=Math.min(2*ee,Math.abs(b-E)),1e-5>E)return oe=le+re*Math.min(E,oe),re=a+x*Math.cos(le),le=y+x*Math.sin(le),a+=x*Math.cos(oe),y+=x*Math.sin(oe),x=(re+a)/2,oe=(le+y)/2,z.push([re,le,x,oe,x,oe,a,y]),z;for(;1e-5<E;)b=le+re*Math.min(E,oe),z.push(St.Vy(x,le,b,a,y)),E-=Math.abs(b-le),le=b;return z},Vy:function(a,y,x,E,b){var z=(x-y)/2,ee=a*Math.cos(z),re=a*Math.sin(z),oe=-re,le=ee*ee+oe*oe,he=le+ee*ee+oe*re;return le=4/3*(Math.sqrt(2*le*he)-he)/(ee*re-oe*ee),re=ee-le*oe,ee=oe+le*ee,oe=-ee,le=z+y,z=Math.cos(le),le=Math.sin(le),[E+a*Math.cos(y),b+a*Math.sin(y),E+re*z-ee*le,b+re*le+ee*z,E+re*z-oe*le,b+re*le+oe*z,E+a*Math.cos(x),b+a*Math.sin(x)]},No:function(a,y,x,E,b,z,ee){x=Math.floor((a-x)/b)*b+x,E=Math.floor((y-E)/z)*z+E;var re=x;return x+b-a<b/2&&(re=x+b),a=E,E+z-y<z/2&&(a=E+z),ee.h(re,a),ee},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 ee=1,re=0;else ee=0,re=1;var oe=ee===0?a:y,le=ee===0?x:E;return(ee===0?b:z)&&(le=-le),ee=re,x=ee===0?x:E,(ee===0?b:z)&&(x=-x),St.az(oe,ee===0?a:y,le,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 ee=y*E,re=-z+ee,oe=-z+Math.sqrt(a*a+ee*ee);y=re;for(var le=0;9999999999>le&&(y=.5*(re+oe),!(y===re||y===oe));++le){var he=a/(y+b),ge=ee/(y+z);if(he=he*he+ge*ge-1,0<he)re=y;else if(0>he)oe=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 Ri,um:new Ri,Mf:new Ri,Nf:0,vm:100};St.za=St.AA;function Pn(a){rr(this),this.l=2,a===void 0&&(a=Pn.o),this.na=a,this.Ec=this.Dc=this.pd=this.od=0,a===Pn.o?this.ee=new Mn:(Pn.V===null&&(Pn.V=new Mn().freeze()),this.ee=Pn.V),this.aq=this.ee.Ja,this.Ip=new vt().freeze(),this.ym=this.tk=null,this.zm=NaN,this.fg=Ti,this.gg=An,this.Rk=this.Sk=NaN,this.Uf=bn}Pn.prototype.copy=function(){var a=new Pn;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===Pn.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},Pn.prototype.ja=function(){return this.freeze(),Object.freeze(this),this},Pn.prototype.freeze=function(){if(this._isFrozen=!0,this.type!==Pn.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},Pn.prototype.ka=function(){if(Object.isFrozen(this)&&et("cannot thaw constant: "+this),this._isFrozen=!1,this.type!==Pn.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},Pn.prototype.Xa=function(a){if(!(a instanceof Pn))return!1;if(this.type!==a.type)return this.type===Pn.j&&a.type===Pn.o?ja(this,a):a.type===Pn.j&&this.type===Pn.o?ja(a,this):!1;if(this.type===Pn.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 St.B(this.startX,a.startX)&&St.B(this.startY,a.startY)&&St.B(this.endX,a.endX)&&St.B(this.endY,a.endY)};function ja(a,y){return a.type!==Pn.j||y.type!==Pn.o?!1:!!(y.figures.count===1&&(y=y.figures.M(0),y.segments.count===1&&St.B(a.startX,y.startX)&&St.B(a.startY,y.startY)&&(y=y.segments.M(0),y.type===yo&&St.B(a.endX,y.endX)&&St.B(a.endY,y.endY))))}Pn.ia=function(a){return a.toString()},Pn.prototype.qb=function(a){a.classType===Pn&&(this.type=a)},Pn.prototype.toString=function(a){switch(a===void 0&&(a=-1),this.type){case Pn.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 Pn.u:var y=new vt(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 Pn.F:if(y=new vt(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 Pn.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()}},Pn.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},Pn.parse=function(a,y){function x(){return Be>=ft-1?!0:le[Be+1].match(Et)!==null}function E(){return Be++,le[Be]}function b(yr){var ar=parseFloat(E()),ao=parseFloat(E());Qe===Qe.toLowerCase()&&(ar=ct.x+ar,ao=ct.y+ao),yr.h(ar,ao)}function z(){return b(ct),ct}function ee(){return b(lt),lt}function re(){var yr=Ke.toLowerCase();return yr!=="c"&&yr!=="s"&&yr!=="q"&&yr!=="t"?ct:new je(2*ct.x-lt.x,2*ct.y-lt.y)}y===void 0&&(y=!1);var oe=/([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])/gm;a=a.replace(/,/gm," "),a=a.replace(oe,"$1 $2"),a=a.replace(oe,"$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 le=a.split(" ");for(a=0;a<le.length;a++){var he=le[a];if(he.match(/(\.[0-9]*)(\.)/gm)!==null){oe=mi();for(var ge="",Se=!1,Pe=0;Pe<he.length;Pe++){var Ae=he[Pe];Ae!=="."||Se?Ae==="."?(oe.push(ge),ge="."):ge+=Ae:(Se=!0,ge+=Ae)}for(oe.push(ge),le.splice(a,1),he=0;he<oe.length;he++)le.splice(a+he,0,oe[he]);a+=oe.length-1,sn(oe)}}var Be=-1,Qe="",Ke="";oe=new je(0,0);var lt=new je(0,0),ct=new je(0,0),ft=le.length;a=N1(null),Se=ge=he=!1,Pe=!0,Ae=null;for(var Et=/[UuBbMmZzLlHhVvCcSsQqTtAaFfXx]/;!(Be>=ft-1);)if(Ke=Qe,Qe=E(),Qe!=="")switch(Qe.toUpperCase()){case"X":Pe=!0,ge=he=!1;break;case"M":for(Ae=z(),a.mc===null||Pe===!0?(jf(a,Ae.x,Ae.y,he,!ge,Se),Pe=!1):a.moveTo(Ae.x,Ae.y),oe.assign(ct);!x();)Ae=z(),a.lineTo(Ae.x,Ae.y);break;case"L":for(;!x();)Ae=z(),a.lineTo(Ae.x,Ae.y);break;case"H":for(;!x();)ct=new je((Qe===Qe.toLowerCase()?ct.x:0)+parseFloat(E()),ct.y),a.lineTo(ct.x,ct.y);break;case"V":for(;!x();)ct=new je(ct.x,(Qe===Qe.toLowerCase()?ct.y:0)+parseFloat(E())),a.lineTo(ct.x,ct.y);break;case"C":for(;!x();){Ae=new je,b(Ae);var Gt=ee(),si=z();Lh(a,Ae.x,Ae.y,Gt.x,Gt.y,si.x,si.y)}break;case"S":for(;!x();)Ae=re(),Gt=ee(),si=z(),Lh(a,Ae.x,Ae.y,Gt.x,Gt.y,si.x,si.y);break;case"Q":for(;!x();)Ae=ee(),Gt=z(),Z0(a,Ae.x,Ae.y,Gt.x,Gt.y);break;case"T":for(;!x();)lt=Ae=re(),Gt=z(),Z0(a,Ae.x,Ae.y,Gt.x,Gt.y);break;case"B":for(;!x();){Ae=parseFloat(E()),Gt=parseFloat(E()),si=parseFloat(E());var Li=parseFloat(E()),wi=parseFloat(E()),Vn=wi,vn=!1;x()||(Vn=parseFloat(E()),x()||(vn=parseFloat(E())!==0)),Qe===Qe.toLowerCase()&&(si+=ct.x,Li+=ct.y),a.arcTo(Ae,Gt,si,Li,wi,Vn,vn)}break;case"A":for(;!x();)Ae=Math.abs(parseFloat(E())),Gt=Math.abs(parseFloat(E())),si=parseFloat(E()),wi=Li=!1,vn=Vn=0,Vn=E(),Vn.length===1?(Li=!!parseFloat(Vn),wi=!!parseFloat(E()),Vn=parseFloat(E())):Vn.length===2?(Li=!!parseFloat(Vn[0]),wi=!!parseFloat(Vn[1]),Vn=parseFloat(E())):(Li=!!parseFloat(Vn[0]),wi=!!parseFloat(Vn[1]),Vn=parseFloat(Vn.slice(2))),vn=parseFloat(E()),Qe===Qe.toLowerCase()&&(Vn=ct.x+Vn,vn=ct.y+vn),ct.h(Vn,vn),bx(a,Ae,Gt,si,Li,wi,Vn,vn);break;case"Z":Lx(a),ct.assign(oe);break;case"F":for(Ae="",Gt=1;le[Be+Gt];)if(le[Be+Gt]==="0")Se=!0,Gt++;else if(le[Be+Gt].match(/[Uu]/)!==null)Gt++;else if(le[Be+Gt].match(Et)===null)Gt++;else{Ae=le[Be+Gt];break}Ae.match(/[Mm]/)?he=!0:0<a.mc.segments.length&&(a.mc.isFilled=!0);break;case"U":for(Ae="",Gt=1;le[Be+Gt];)if(le[Be+Gt].match(/[Ff]/)!==null)Gt++;else if(le[Be+Gt].match(Et)===null)Gt++;else{Ae=le[Be+Gt];break}Ae.match(/[Mm]/)?ge=!0:a.mc.isShadowed=!1}if(oe=a.os,W0=a,y)for(y=oe.figures.iterator;y.next();)y.value.isFilled=!0;return oe},Pn.Ha=function(a,y){for(var x=a.length,E=je.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}je.free(E)},Pn.prototype.Zu=function(){if(this._isInvalidBounds)return!0;if(this.type===Pn.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},Pn.prototype.computeBounds=function(){if(this._isInvalidBounds=!1,this.ym=this.tk=null,this.zm=NaN,this.type===Pn.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 ee=E[z];ee._isInvalidBounds=!1,ee.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),za(this,a,!1),pi(a,0,0,0,0),a.freeze()},Pn.prototype.ix=function(){var a=new vt;return za(this,a,!0),a};function za(a,y,x){switch(a.type){case Pn.j:case Pn.u:case Pn.F:x?y.h(a.od,a.pd,0,0):pi(y,a.od,a.pd,0,0),pi(y,a.Dc,a.Ec,0,0);break;case Pn.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):pi(y,z.startX,z.startY,0,0);for(var ee=z.segments.s,re=ee.length,oe=z.startX,le=z.startY,he=0;he<re;he++){var ge=ee[he];switch(ge.type){case yo:case la:oe=ge.endX,le=ge.endY,pi(y,oe,le,0,0);break;case ma:St.Dl(oe,le,ge.point1X,ge.point1Y,ge.point2X,ge.point2Y,ge.endX,ge.endY,.5,y),oe=ge.endX,le=ge.endY;break;case ls:St.iv(oe,le,ge.point1X,ge.point1Y,ge.endX,ge.endY,.5,y),oe=ge.endX,le=ge.endY;break;case aa:case us:var Se=ge.type===aa?Va(ge,z):$a(ge,z,oe,le),Pe=Se.length;if(Pe===0){oe=ge.type===aa?ge.centerX:ge.endX,le=ge.type===aa?ge.centerY:ge.endY,pi(y,oe,le,0,0);break}ge=null;for(var Ae=0;Ae<Pe;Ae++)ge=Se[Ae],St.Dl(ge[0],ge[1],ge[2],ge[3],ge[4],ge[5],ge[6],ge[7],.5,y);ge!==null&&(oe=ge[6],le=ge[7]);break;default:et("Unknown Segment type: "+ge.type)}}}break;default:et("Unknown Geometry type: "+a.type)}}Pn.prototype.normalize=function(){this._isFrozen&&Ft(this);var a=this.ix();return this.offset(-a.x,-a.y),new je(-a.x,-a.y)},Pn.prototype.offset=function(a,y){return this._isFrozen&&Ft(this),this.transform(1,0,0,1,a,y),this},Pn.prototype.scale=function(a,y){return this._isFrozen&&Ft(this),this.transform(a,0,0,y,0,0),this},Pn.prototype.rotate=function(a,y,x){this._isFrozen&&Ft(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},Le=Pn.prototype,Le.transform=function(a,y,x,E,b,z){switch(this.type){case Pn.j:case Pn.u:case Pn.F:var ee=this.od,re=this.pd;this.od=ee*a+re*x+b,this.pd=ee*y+re*E+z,ee=this.Dc,re=this.Ec,this.Dc=ee*a+re*x+b,this.Ec=ee*y+re*E+z;break;case Pn.o:for(var oe=this.figures.s,le=oe.length,he=0;he<le;he++){var ge=oe[he];ee=ge.startX,re=ge.startY,ge.startX=ee*a+re*x+b,ge.startY=ee*y+re*E+z,ge=ge.segments.s;for(var Se=ge.length,Pe=0;Pe<Se;Pe++){var Ae=ge[Pe];switch(Ae.type){case yo:case la:ee=Ae.endX,re=Ae.endY,Ae.endX=ee*a+re*x+b,Ae.endY=ee*y+re*E+z;break;case ma:ee=Ae.point1X,re=Ae.point1Y,Ae.point1X=ee*a+re*x+b,Ae.point1Y=ee*y+re*E+z,ee=Ae.point2X,re=Ae.point2Y,Ae.point2X=ee*a+re*x+b,Ae.point2Y=ee*y+re*E+z,ee=Ae.endX,re=Ae.endY,Ae.endX=ee*a+re*x+b,Ae.endY=ee*y+re*E+z;break;case ls:ee=Ae.point1X,re=Ae.point1Y,Ae.point1X=ee*a+re*x+b,Ae.point1Y=ee*y+re*E+z,ee=Ae.endX,re=Ae.endY,Ae.endX=ee*a+re*x+b,Ae.endY=ee*y+re*E+z;break;case aa:ee=Ae.centerX,re=Ae.centerY,Ae.centerX=ee*a+re*x+b,Ae.centerY=ee*y+re*E+z,y!==0&&(ee=180*Math.atan2(y,a)/Math.PI,0>ee&&(ee+=360),Ae.startAngle+=ee),0>a&&(Ae.startAngle=180-Ae.startAngle,Ae.sweepAngle=-Ae.sweepAngle),0>E&&(Ae.startAngle=-Ae.startAngle,Ae.sweepAngle=-Ae.sweepAngle),Ae.radiusX*=Math.sqrt(a*a+x*x),Ae.radiusY!==void 0&&(Ae.radiusY*=Math.sqrt(y*y+E*E));break;case us:if(ee=Ae.endX,re=Ae.endY,Ae.endX=ee*a+re*x+b,Ae.endY=ee*y+re*E+z,Ae.radiusX===0||Ae.radiusY===0)break;y!==0&&(ee=180*Math.atan2(y,a)/Math.PI,0>ee&&(ee+=360),Ae.xAxisRotation+=ee),0>a&&(Ae.xAxisRotation=180-Ae.xAxisRotation,Ae.isClockwiseArc=!Ae.isClockwiseArc),0>E&&(Ae.xAxisRotation=-Ae.xAxisRotation,Ae.isClockwiseArc=!Ae.isClockwiseArc),Ae.radiusX*=Math.sqrt(a*a+x*x),Ae.radiusY*=Math.sqrt(y*y+E*E);break;default:et("Unknown Segment type: "+Ae.type)}}}}return this._isInvalidBounds=!0,this},Le.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 Pn.j:return St.Yb(x,E,b,z,y,a.x,a.y);case Pn.u:var ee=vt.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=ee.ca(a),vt.free(ee),a;case Pn.F:ee=Math.min(x,b)-y;var re=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:(ee=a.x-(ee+x),re=a.y-(re+y),1>=ee*ee/(x*x)+re*re/(y*y));case Pn.o:return fa(this,a,y,!0,!1);default:return!1}};function fa(a,y,x,E,b){var z=y.x;y=y.y;for(var ee=a.bounds.x-20,re=0,oe,le,he,ge,Se=a.figures.s,Pe=Se.length,Ae=0;Ae<Pe;Ae++){var Be=Se[Ae],Qe=!Be.isEvenOdd;if(Be.isFilled){if(E&&Be.ca(z,y,x))return!0;var Ke=Be.segments;oe=Be.startX,le=Be.startY;for(var lt=oe,ct=le,ft=Ke.s,Et=0;Et<=Ke.length;Et++){var Gt=void 0;if(Et!==Ke.length){Gt=ft[Et];var si=Gt.type;a=Gt.endX,ge=Gt.endY}else si=yo,a=lt,ge=ct;switch(si){case la:if(lt=ga(z,y,ee,y,oe,le,lt,ct),isNaN(lt))return!0;re+=lt,lt=a,ct=ge;break;case yo:if(oe=ga(z,y,ee,y,oe,le,a,ge),isNaN(oe))return!0;re+=oe;break;case ma:he=St.Fo(oe,le,Gt.point1X,Gt.point1Y,Gt.point2X,Gt.point2Y,a,ge,ee,y,z,y,.5),re+=he;break;case ls:he=St.Fo(oe,le,(oe+2*Gt.point1X)/3,(le+2*Gt.point1Y)/3,(2*Gt.point1X+a)/3,(2*Gt.point1Y+ge)/3,a,ge,ee,y,z,y,.5),re+=he;break;case aa:case us:si=Gt.type===aa?Va(Gt,Be):$a(Gt,Be,oe,le);var Li=si.length;if(Li===0){if(oe=ga(z,y,ee,y,oe,le,Gt.type===aa?Gt.centerX:Gt.endX,Gt.type===aa?Gt.centerY:Gt.endY),isNaN(oe))return!0;re+=oe;break}Gt=null;for(var wi=0;wi<Li;wi++){if(Gt=si[wi],wi===0){if(he=ga(z,y,ee,y,oe,le,Gt[0],Gt[1]),isNaN(he))return!0;re+=he}he=St.Fo(Gt[0],Gt[1],Gt[2],Gt[3],Gt[4],Gt[5],Gt[6],Gt[7],ee,y,z,y,.5),re+=he}Gt!==null&&(a=Gt[6],ge=Gt[7]);break;default:et("Unknown Segment type: "+Gt.type)}oe=a,le=ge}if(Qe){if(re!==0)return!0}else if(re%2!==0)return!0;re=0}else if(Be.ca(z,y,b?x:x+2))return!0}return!1}function ga(a,y,x,E,b,z,ee,re){if(St.Yb(b,z,ee,re,.05,a,y))return NaN;var oe=(a-x)*(z-re);if(oe===0)return 0;var le=((a*E-y*x)*(b-ee)-(a-x)*(b*re-z*ee))/oe;if(y=(a*E-y*x)*(z-re)/oe,le>=a)return 0;if((b>ee?b-ee:ee-b)<(z>re?z-re:re-z)){if(z<re){if(y<z||y>re)return 0}else if(y<re||y>z)return 0}else if(b<ee){if(le<b||le>ee)return 0}else if(le<ee||le>b)return 0;return 0<oe?1:-1}function Ga(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}Le.Pu=function(a,y){if(0>a?a=0:1<a&&(a=1),y===void 0&&(y=new je),this.type===Pn.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,ee=0,re=0;re<b;re++){var oe=E[re],le=oe.length;for(a=0;a<le;a++){var he=oe[a];if(ee+he>=z)return E=z-ee,E=he===0?0:E/he,x=x[re],re=x[2*a],b=x[2*a+1],y.h(re+(x[2*a+2]-re)*E,b+(x[2*a+3]-b)*E),y;ee+=he}}return y},Le.wx=function(a){if(0>a?a=0:1<a&&(a=1),this.type===Pn.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,ee=0;ee<E;ee++){var re=x[ee],oe=re.length;for(a=0;a<oe;a++){var le=re[a];if(z+le>=b)return b=y[ee],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+=le}}return NaN},Le.Qu=function(a,y){if(0>a?a=0:1<a&&(a=1),y===void 0&&(y=[]),y.length=3,this.type===Pn.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,ee=0,re=0;re<b;re++){var oe=E[re],le=oe.length;for(a=0;a<le;a++){var he=oe[a];if(ee+he>=z)return E=z-ee,E=he===0?0:E/he,he=x[re],x=he[2*a],re=he[2*a+1],b=he[2*a+2],a=he[2*a+3],y[0]=x+(b-x)*E,y[1]=re+(a-re)*E,y[2]=1>Math.abs(b-x)&&1>Math.abs(a-re)?0:1>Math.abs(b-x)?0<=a-re?90:270:1>Math.abs(a-re)?0<=b-x?0:180:180*Math.atan2(a-re,b-x)/Math.PI,y;ee+=he}}return y},Le.xx=function(a){if(this.type===Pn.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 ee=x;E=b}else ee=b,E=x;return a<=ee?ee===x?0:1:a>=E?E===x?0:1:Math.abs(a-x)/(E-ee)}if(x===b)return y<E?ee=y:(ee=E,E=y),z<=ee?ee===y?0:1:z>=E?E===y?0:1:Math.abs(z-y)/(E-ee);ee=(E-y)*(E-y)+(b-x)*(b-x);var re=je.alloc();return St.qh(y,x,E,b,z,a,re),a=re.x,z=re.y,je.free(re),Math.sqrt(((a-y)*(a-y)+(z-x)*(z-x))/ee)}}else if(this.type===Pn.u){ee=this.startX,re=this.startY;var oe=this.endX;if(b=this.endY,ee!==oe||re!==b){y=oe-ee,x=b-re,z=2*y+2*x,E=a.x,a=a.y,E=Math.min(Math.max(E,ee),oe),a=Math.min(Math.max(a,re),b),ee=Math.abs(E-ee),oe=Math.abs(E-oe),re=Math.abs(a-re),b=Math.abs(a-b);var le=Math.min(ee,oe,re,b);if(le===re)return E/z;if(le===oe)return(y+a)/z;if(le===b)return(2*y+x-E)/z;if(le===ee)return(2*y+2*x-a)/z}}else{y=this.flattenedSegments,x=this.flattenedLengths,z=this.flattenedTotalLength,E=je.alloc(),b=1/0,re=ee=0,oe=y.length;for(var he=le=0,ge=0;ge<oe;ge++)for(var Se=y[ge],Pe=x[ge],Ae=Se.length,Be=0;Be<Ae;Be+=2){var Qe=Se[Be],Ke=Se[Be+1];if(Be!==0){St.qh(le,he,Qe,Ke,a.x,a.y,E);var lt=(E.x-a.x)*(E.x-a.x)+(E.y-a.y)*(E.y-a.y);lt<b&&(b=lt,ee=re,ee+=Math.sqrt((E.x-le)*(E.x-le)+(E.y-he)*(E.y-he))),re+=Pe[(Be-2)/2]}le=Qe,he=Ke}return je.free(E),a=ee/z,0>a?0:1<a?1:a}return 0};function Na(a){if(a.tk===null){var y=a.tk=[],x=a.ym=[],E=[],b=[];if(a.type===Pn.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===Pn.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===Pn.F){var z=new sa;z.startX=a.endX,z.startY=(a.startY+a.endY)/2;var ee=new Wr(aa);if(ee.startAngle=0,ee.sweepAngle=360,ee.centerX=(a.startX+a.endX)/2,ee.centerY=(a.startY+a.endY)/2,ee.radiusX=Math.abs(a.startX-a.endX)/2,ee.radiusY=Math.abs(a.startY-a.endY)/2,z.add(ee),a=Va(ee,z),b=a.length,b===0)E.push(ee.centerX),E.push(ee.centerY);else{ee=z.startX,z=z.startY;for(var re=0;re<b;re++){var oe=a[re];St.Qe(ee,z,oe[2],oe[3],oe[4],oe[5],oe[6],oe[7],.5,E),ee=oe[6],z=oe[7]}}y.push(E),x.push(Zs(E))}else for(a=a.figures.iterator;a.next();){b=a.value,E=[],E.push(b.startX),E.push(b.startY),ee=b.startX,z=b.startY,re=ee,oe=z;for(var le=b.segments.s,he=le.length,ge=0;ge<he;ge++){var Se=le[ge];switch(Se.type){case la:4<=E.length&&(y.push(E),x.push(Zs(E))),E=[],E.push(Se.endX),E.push(Se.endY),ee=Se.endX,z=Se.endY,re=ee,oe=z;break;case yo:E.push(Se.endX),E.push(Se.endY),ee=Se.endX,z=Se.endY;break;case ma:St.Qe(ee,z,Se.point1X,Se.point1Y,Se.point2X,Se.point2Y,Se.endX,Se.endY,.5,E),ee=Se.endX,z=Se.endY;break;case ls:St.ep(ee,z,Se.point1X,Se.point1Y,Se.endX,Se.endY,.5,E),ee=Se.endX,z=Se.endY;break;case aa:var Pe=Va(Se,b),Ae=Pe.length;if(Ae===0){E.push(Se.centerX),E.push(Se.centerY),ee=Se.centerX,z=Se.centerY;break}for(var Be=0;Be<Ae;Be++){var Qe=Pe[Be];St.Qe(ee,z,Qe[2],Qe[3],Qe[4],Qe[5],Qe[6],Qe[7],.5,E),ee=Qe[6],z=Qe[7]}break;case us:if(Pe=$a(Se,b,ee,z),Ae=Pe.length,Be=Se.endX,Qe=Se.endY,Ae===0){E.push(Be),E.push(Qe),ee=Be,z=Qe;break}for(Be=0;Be<Ae;Be++)Qe=Pe[Be],St.Qe(ee,z,Qe[2],Qe[3],Qe[4],Qe[5],Qe[6],Qe[7],.5,E),ee=Qe[6],z=Qe[7];break;default:et("Segment not of valid type: "+Se.type)}Se.isClosed&&(E.push(re),E.push(oe))}4<=E.length&&(y.push(E),x.push(Zs(E)))}}}function Zs(a){for(var y=[],x=0,E=0,b=a.length,z=0;z<b;z+=2){var ee=a[z],re=a[z+1];z!==0&&y.push(Math.sqrt(li(x,E,ee,re))),x=ee,E=re}return y}Le.add=function(a){return this.ee.add(a),this},Le.pm=function(a,y,x,E,b,z,ee,re){return this._isFrozen&&Ft(this),this.fg=new En(a,y,b,z).freeze(),this.gg=new En(x,E,ee,re).freeze(),this},It.Object.defineProperties(Pn.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 Na(this),this.tk}},flattenedLengths:{get:function(){return Na(this),this.ym}},flattenedTotalLength:{get:function(){var a=this.zm;if(isNaN(a)){if(this.type===Pn.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===Pn.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,ee=0;ee<z;ee++)a+=b[ee]}this.zm=a}return a}},type:{get:function(){return this.na},set:function(a){this.na!==a&&(this._isFrozen&&Ft(this,a),this.na=a,a===Pn.o?this.ee=new Mn:(Pn.V===null&&(Pn.V=new Mn().freeze()),this.ee=Pn.V),this._isInvalidBounds=!0)}},startX:{get:function(){return this.od},set:function(a){this.od!==a&&(this._isFrozen&&Ft(this,a),this.od=a,this._isInvalidBounds=!0)}},startY:{get:function(){return this.pd},set:function(a){this.pd!==a&&(this._isFrozen&&Ft(this,a),this.pd=a,this._isInvalidBounds=!0)}},endX:{get:function(){return this.Dc},set:function(a){this.Dc!==a&&(this._isFrozen&&Ft(this,a),this.Dc=a,this._isInvalidBounds=!0)}},endY:{get:function(){return this.Ec},set:function(a){this.Ec!==a&&(this._isFrozen&&Ft(this,a),this.Ec=a,this._isInvalidBounds=!0)}},figures:{get:function(){return this.ee},set:function(a){this.ee!==a&&(this._isFrozen&&Ft(this,a),this.ee=a,this._isInvalidBounds=!0)}},spot1:{get:function(){return this.fg},set:function(a){this._isFrozen&&Ft(this,a),this.fg=a.J()}},spot2:{get:function(){return this.gg},set:function(a){this._isFrozen&&Ft(this,a),this.gg=a.J()}},defaultStretch:{get:function(){return this.Uf},set:function(a){this._isFrozen&&Ft(this,a),this.Uf=a}},bounds:{get:function(){return this.Zu()&&this.computeBounds(),this.Ip}}}),Pn.prototype.setSpots=Pn.prototype.pm,Pn.prototype.add=Pn.prototype.add,Pn.prototype.getFractionForPoint=Pn.prototype.xx,Pn.prototype.getPointAndAngleAlongPath=Pn.prototype.Qu,Pn.prototype.getAngleAlongPath=Pn.prototype.wx,Pn.prototype.getPointAlongPath=Pn.prototype.Pu,Pn.prototype.containsPoint=Pn.prototype.ca,Pn.prototype.transform=Pn.prototype.transform,Pn.prototype.rotate=Pn.prototype.rotate,Pn.prototype.scale=Pn.prototype.scale,Pn.prototype.offset=Pn.prototype.offset,Pn.prototype.normalize=Pn.prototype.normalize,Pn.prototype.computeBoundsWithoutOrigin=Pn.prototype.ix,Pn.prototype.equalsApprox=Pn.prototype.Xa,Pn.className="Geometry",Pn.j=new yn(Pn,"Line",0),Pn.u=new yn(Pn,"Rectangle",1),Pn.F=new yn(Pn,"Ellipse",2),Pn.o=new yn(Pn,"Path",3),Pn.V=null,Pn.hb="UuBbMmZzLlHhVvCcSsQqTtAaFfXx",Pn.className="Geometry",Pn.stringify=Pn.ia,Pn.fillPath=Pn.nb,Pn.parse=Pn.parse,Pn.Line=Pn.j,Pn.Rectangle=Pn.u,Pn.Ellipse=Pn.F,Pn.Path=Pn.o;function sa(a,y,x,E,b){rr(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 Mn,this.sr=this.pl.Ja,this.fw=null}sa.prototype.copy=function(){var a=new sa;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},Le=sa.prototype,Le.Xa=function(a){if(!(a instanceof sa&&St.B(this.startX,a.startX)&&St.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},Le.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},Le.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},Le.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},Le.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},Le.add=function(a){return this.pl.add(a),this},Le.ca=function(a,y,x){for(var E=this.startX,b=this.startY,z=E,ee=b,re=this.segments.s,oe=re.length,le=0;le<oe;le++){var he=re[le];switch(he.type){case la:z=he.endX,ee=he.endY,E=he.endX,b=he.endY;break;case yo:if(St.Yb(E,b,he.endX,he.endY,x,a,y))return!0;E=he.endX,b=he.endY;break;case ma:if(St.cs(E,b,he.point1X,he.point1Y,he.point2X,he.point2Y,he.endX,he.endY,.5,a,y,x))return!0;E=he.endX,b=he.endY;break;case ls:if(St.jv(E,b,he.point1X,he.point1Y,he.endX,he.endY,.5,a,y,x))return!0;E=he.endX,b=he.endY;break;case aa:case us:var ge=he.type===aa?Va(he,this):$a(he,this,E,b),Se=ge.length,Pe=he.type===aa?he.centerX:he.endX,Ae=he.type===aa?he.centerY:he.endY;if(Se===0){if(St.Yb(E,b,Pe,Ae,x,a,y))return!0;E=Pe,b=Ae;break}for(Pe=null,Ae=0;Ae<Se;Ae++)if(Pe=ge[Ae],Ae===0&&St.Yb(E,b,Pe[0],Pe[1],x,a,y)||St.cs(Pe[0],Pe[1],Pe[2],Pe[3],Pe[4],Pe[5],Pe[6],Pe[7],.5,a,y,x))return!0;Pe!==null&&(E=Pe[6],b=Pe[7]);break;default:et("Unknown Segment type: "+he.type)}if(he.isClosed&&(E!==z||b!==ee)&&St.Yb(E,b,z,ee,x,a,y))return!0}return!1},It.Object.defineProperties(sa.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&&Ft(this,a),this.l=a?this.l|4:this.l&-5}},isShadowed:{get:function(){return(this.l&8)!==0},set:function(a){this._isFrozen&&Ft(this,a),this.l=a?this.l|8:this.l&-9}},isEvenOdd:{get:function(){return(this.l&16)!==0},set:function(a){this._isFrozen&&Ft(this,a),this.l=a?this.l|16:this.l&-17}},startX:{get:function(){return this.od},set:function(a){this._isFrozen&&Ft(this,a),this.od=a,this._isInvalidBounds=!0}},startY:{get:function(){return this.pd},set:function(a){this._isFrozen&&Ft(this,a),this.pd=a,this._isInvalidBounds=!0}},segments:{get:function(){return this.pl},set:function(a){this._isFrozen&&Ft(this,a),this.pl=a,this._isInvalidBounds=!0}}}),sa.prototype.add=sa.prototype.add,sa.prototype.equalsApprox=sa.prototype.Xa,sa.className="PathFigure";function Wr(a,y,x,E,b,z,ee,re){rr(this),a===void 0&&(a=yo),this.na=a,this.l=2,y!==void 0?this.Dc=y:this.Dc=0,x!==void 0?this.Ec=x:this.Ec=0,E===void 0&&(E=0),b===void 0&&(b=0),z===void 0&&(z=0),ee===void 0&&(ee=0),a===us?(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 ee=="boolean"?ee&&(this.isLargeArc=!0):typeof ee=="number"&&ee&&(this.isLargeArc=!0),re&&(this.isClockwiseArc=!0)):(this.Ne=E,this.Vh=b,a===aa&&(z=Math.max(z,0)),this.Wh=z,typeof ee=="number"?(a===aa&&(ee=Math.max(ee,0)),this.Pg=ee):this.Pg=0),this.ae=null}Wr.prototype.copy=function(){var a=new Wr;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},Le=Wr.prototype,Le.Xa=function(a){if(!(a instanceof Wr)||this.type!==a.type||this.isClosed!==a.isClosed)return!1;switch(this.type){case la:case yo:return St.B(this.endX,a.endX)&&St.B(this.endY,a.endY);case ma:return St.B(this.endX,a.endX)&&St.B(this.endY,a.endY)&&St.B(this.point1X,a.point1X)&&St.B(this.point1Y,a.point1Y)&&St.B(this.point2X,a.point2X)&&St.B(this.point2Y,a.point2Y);case ls:return St.B(this.endX,a.endX)&&St.B(this.endY,a.endY)&&St.B(this.point1X,a.point1X)&&St.B(this.point1Y,a.point1Y);case aa:return St.B(this.startAngle,a.startAngle)&&St.B(this.sweepAngle,a.sweepAngle)&&St.B(this.centerX,a.centerX)&&St.B(this.centerY,a.centerY)&&St.B(this.radiusX,a.radiusX)&&St.B(this.radiusY,a.radiusY);case us:return this.isClockwiseArc===a.isClockwiseArc&&this.isLargeArc===a.isLargeArc&&St.B(this.xAxisRotation,a.xAxisRotation)&&St.B(this.endX,a.endX)&&St.B(this.endY,a.endY)&&St.B(this.radiusX,a.radiusX)&&St.B(this.radiusY,a.radiusY);default:return!1}},Le.qb=function(a){a.classType===Wr&&(this.type=a)},Le.toString=function(a){switch(a===void 0&&(a=-1),this.type){case la:a=0>a?"M"+this.endX.toString()+" "+this.endY.toString():"M"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case yo:a=0>a?"L"+this.endX.toString()+" "+this.endY.toString():"L"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case ma: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 ls: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 aa: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 us: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":"")},Le.freeze=function(){return this._isFrozen=!0,this},Le.ka=function(){return this._isFrozen=!1,this},Le.close=function(){return this.isClosed=!0,this};function Va(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=St.jx(0,0,x<E?x:E,a.startAngle,a.startAngle+a.sweepAngle,!1);if(x!==E){var ee=di.alloc();ee.reset(),x<E?ee.scale(1,E/x):ee.scale(x/E,1),Pn.Ha(z,ee),di.free(ee)}for(x=z.length,E=0;E<x;E++)ee=z[E],ee[0]+=y,ee[1]+=b,ee[2]+=y,ee[3]+=b,ee[4]+=y,ee[5]+=b,ee[6]+=y,ee[7]+=b;return a.ae=z,a.ae}function $a(a,y,x,E){function b(Be,Qe,Ke,lt){return(Be*lt<Qe*Ke?-1:1)*Math.acos((Be*Ke+Qe*lt)/(Math.sqrt(Be*Be+Qe*Qe)*Math.sqrt(Ke*Ke+lt*lt)))}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 ee=Math.PI/180*a.Ne,re=a.isLargeArc,oe=a.isClockwiseArc,le=a.Dc,he=a.Ec,ge=Math.cos(ee),Se=Math.sin(ee),Pe=ge*(x-le)/2+Se*(E-he)/2;ee=-Se*(x-le)/2+ge*(E-he)/2;var Ae=Pe*Pe/(y*y)+ee*ee/(z*z);return 1<Ae&&(y*=Math.sqrt(Ae),z*=Math.sqrt(Ae)),Ae=(re===oe?-1:1)*Math.sqrt((y*y*z*z-y*y*ee*ee-z*z*Pe*Pe)/(y*y*ee*ee+z*z*Pe*Pe)),isNaN(Ae)&&(Ae=0),re=Ae*y*ee/z,Ae=Ae*-z*Pe/y,isNaN(re)&&(re=0),isNaN(Ae)&&(Ae=0),x=(x+le)/2+ge*re-Se*Ae,E=(E+he)/2+Se*re+ge*Ae,he=b(1,0,(Pe-re)/y,(ee-Ae)/z),ge=(Pe-re)/y,le=(ee-Ae)/z,Pe=(-Pe-re)/y,re=(-ee-Ae)/z,ee=b(ge,le,Pe,re),Pe=(ge*Pe+le*re)/(Math.sqrt(ge*ge+le*le)*Math.sqrt(Pe*Pe+re*re)),-1>=Pe?ee=Math.PI:1<=Pe&&(ee=0),!oe&&0<ee&&(ee-=2*Math.PI),oe&&0>ee&&(ee+=2*Math.PI),oe=y>z?1:y/z,Pe=y>z?z/y:1,y=St.jx(0,0,y>z?y:z,he,he+ee,!0),z=di.alloc(),z.reset(),z.translate(x,E),z.rotate(a.Ne,0,0),z.scale(oe,Pe),Pn.Ha(y,z),di.free(z),a.ae=y,a.ae}It.Object.defineProperties(Wr.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&&Ft(this,a),this.na=a,this._isInvalidBounds=!0}},endX:{get:function(){return this.Dc},set:function(a){this._isFrozen&&Ft(this,a),this.Dc=a,this._isInvalidBounds=!0}},endY:{get:function(){return this.Ec},set:function(a){this._isFrozen&&Ft(this,a),this.Ec=a,this._isInvalidBounds=!0}},point1X:{get:function(){return this.Ne},set:function(a){this._isFrozen&&Ft(this,a),this.Ne=a,this._isInvalidBounds=!0}},point1Y:{get:function(){return this.Vh},set:function(a){this._isFrozen&&Ft(this,a),this.Vh=a,this._isInvalidBounds=!0}},point2X:{get:function(){return this.Wh},set:function(a){this._isFrozen&&Ft(this,a),this.Wh=a,this._isInvalidBounds=!0}},point2Y:{get:function(){return this.Pg},set:function(a){this._isFrozen&&Ft(this,a),this.Pg=a,this._isInvalidBounds=!0}},centerX:{get:function(){return this.Ne},set:function(a){this._isFrozen&&Ft(this,a),this.Ne=a,this._isInvalidBounds=!0}},centerY:{get:function(){return this.Vh},set:function(a){this._isFrozen&&Ft(this,a),this.Vh=a,this._isInvalidBounds=!0}},radiusX:{get:function(){return this.Wh},set:function(a){0>a&&Tn(a,">= zero",Wr,"radiusX"),this._isFrozen&&Ft(this,a),this.Wh=a,this._isInvalidBounds=!0}},radiusY:{get:function(){return this.Pg},set:function(a){0>a&&Tn(a,">= zero",Wr,"radiusY"),this._isFrozen&&Ft(this,a),this.Pg=a,this._isInvalidBounds=!0}},startAngle:{get:function(){return this.Dc},set:function(a){this._isFrozen&&Ft(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&&Ft(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&&Ft(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&&Ft(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&&Ft(this,a),a%=360,0>a&&(a+=360),this.Ne=a,this._isInvalidBounds=!0}}}),Wr.prototype.equalsApprox=Wr.prototype.Xa;var la=new yn(Wr,"Move",0),yo=new yn(Wr,"Line",1),ma=new yn(Wr,"Bezier",2),ls=new yn(Wr,"QuadraticBezier",3),aa=new yn(Wr,"Arc",4),us=new yn(Wr,"SvgArc",4);Wr.className="PathSegment",Wr.Move=la,Wr.Line=yo,Wr.Bezier=ma,Wr.QuadraticBezier=ls,Wr.Arc=aa,Wr.SvgArc=us;function Ta(){this.H=null,this.xu=new je(0,0).freeze(),this.mt=new je(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}Ta.prototype.copy=function(){var a=new Ta;return this.clone(a)},Ta.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},Ta.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},Ta.prototype.So=function(a,y){var x=this.diagram;return x===null||Fg(x,a,y),y},Ta.prototype.Bz=function(a,y){var x=this.diagram;return x===null||(Fg(x,a,y),y.assign(x.Ps(y))),y},It.Object.defineProperties(Ta.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}}}),Ta.prototype.getMultiTouchDocumentPoint=Ta.prototype.Bz,Ta.prototype.getMultiTouchViewPoint=Ta.prototype.So,Ta.className="InputEvent";function bl(){this.H=null,this.xa="",this.ar=this.Lr=null}bl.prototype.copy=function(){var a=new bl;return a.H=this.H,a.xa=this.xa,a.Lr=this.Lr,a.ar=this.ar,a},bl.prototype.toString=function(){var a="*"+this.name;return this.subject!==null&&(a+=":"+this.subject.toString()),this.parameter!==null&&(a+="("+this.parameter.toString()+")"),a},It.Object.defineProperties(bl.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}}}),bl.className="DiagramEvent";function Wo(){this.Fm=Io,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=en(y)&&typeof y.J=="function"?y.J():y,y=this.Rn,a.Rn=en(y)&&typeof y.J=="function"?y.J():y,y=this.Mn,a.Mn=en(y)&&typeof y.J=="function"?y.J():y,y=this.Ln,a.Ln=en(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===Fa?a+"* ":this.change===Io?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===Fa?this.oldValue!==null&&(a+=" "+this.oldValue):(this.object!==null&&(a+=Cr(this.object)),this.oldValue!==null&&(a+=" old: "+Cr(this.oldValue)),this.oldParam!==null&&(a+=" "+this.oldParam),this.newValue!==null&&(a+=" new: "+Cr(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))},It.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===Fa&&(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 Fa=new yn(Wo,"Transaction",-1),Io=new yn(Wo,"Property",0),Jo=new yn(Wo,"Insert",1),ha=new yn(Wo,"Remove",2);Wo.className="ChangedEvent",Wo.Transaction=Fa,Wo.Property=Io,Wo.Insert=Jo,Wo.Remove=ha;function va(){this.o=new Mn().freeze(),this.xa="",this.j=!1}va.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},va.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()},va.prototype.canUndo=function(){return this.isComplete},va.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()}},va.prototype.canRedo=function(){return this.isComplete},va.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()}},va.prototype.ak=function(){if(this.isComplete){var a=this.changes;a.ka();for(var y=new Ut,x=0;x<a.count;x++){var E=a.M(x);if(E!==null&&E.change===Io&&E.object){var b=y.get(E.object);b||(b=new Ut,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()}},It.Object.defineProperties(va.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}}}),va.prototype.optimize=va.prototype.ak,va.prototype.redo=va.prototype.redo,va.prototype.canRedo=va.prototype.canRedo,va.prototype.undo=va.prototype.undo,va.prototype.canUndo=va.prototype.canUndo,va.prototype.clear=va.prototype.clear,va.className="Transaction";function Qo(){this.Pt=new ln,this.Jd=!1,this.u=new Mn().freeze(),this.Ce=-1,this.o=999,this.Fe=!1,this.Np=null,this.bi=0,this.j=!1,this.Ie=new Mn().freeze(),this.hl=new Mn,this.tt=!0,this.Dt=this.rq=this.Gt=this.Ft=!1}Qo.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},Qo.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},Qo.prototype.copyProperties=function(a){this.isEnabled=a.isEnabled,this.maxHistoryLength=a.maxHistoryLength,this.checksTransactionLevel=a.checksTransactionLevel},Le=Qo.prototype,Le.Xw=function(a){this.Pt.add(a)},Le.Rx=function(a){this.Pt.remove(a)},Le.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},Le.eb=function(a){return a===void 0&&(a=""),fl(this,!0,a)},Le.Kf=function(){return fl(this,!1,"")};function fl(a,y,x){if(a.isUndoingRedoing)return!1;a.checksTransactionLevel&&1>a.transactionLevel&&Yn("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 ee=a.Ie.count;0<ee&&(x===""&&(x=a.Ie.M(0)),a.Ie.ka(),a.Ie.mb(ee-1),a.Ie.freeze()),ee=a.hl.count,0<ee&&(z=a.hl.M(ee-1),a.hl.mb(ee-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}Le.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()}},Qo.prototype.canUndo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var a=this.transactionToUndo;return!!(a!==null&&a.canUndo())},Qo.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){Yn("undo error: "+y.toString())}finally{this.Ob("FinishedUndo","Undo",a),this.Fe=!1}}},Qo.prototype.canRedo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var a=this.transactionToRedo;return!!(a!==null&&a.canRedo())},Qo.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){Yn("redo error: "+y.toString())}finally{this.Ob("FinishedRedo","Redo",a),this.Fe=!1}}},Qo.prototype.Ob=function(a,y,x){x===void 0&&(x=null);var E=new Wo;for(E.change=Fa,E.propertyName=a,E.object=x,E.oldValue=y,a=this.models;a.next();)y=a.value,E.model=y,y.ds(E)},Qo.prototype.Tu=function(a){if(this.isEnabled&&!this.isUndoingRedoing&&!this.skipsEvent(a)){var y=this.currentTransaction;y===null&&(this.Np=y=new va);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||Yn("Change not within a transaction: "+x.toString()))}},Qo.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},It.Object.defineProperties(Qo.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}}}),Qo.prototype.handleChanged=Qo.prototype.Tu,Qo.prototype.redo=Qo.prototype.redo,Qo.prototype.undo=Qo.prototype.undo,Qo.prototype.canUndo=Qo.prototype.canUndo,Qo.prototype.discardHistoryAfterIndex=Qo.prototype.lx,Qo.prototype.rollbackTransaction=Qo.prototype.Kf,Qo.prototype.commitTransaction=Qo.prototype.eb,Qo.prototype.startTransaction=Qo.prototype.Ea,Qo.prototype.removeModel=Qo.prototype.Rx,Qo.prototype.addModel=Qo.prototype.Xw,Qo.prototype.clear=Qo.prototype.clear,Qo.className="UndoManager";function Gr(){rr(this),this.H=Bu,this.xa="",this.Jd=!0,this.nb=!1,this.wm=null,this.yy=new Ta,this.Zr=-1}Gr.prototype.toString=function(){return this.name!==""?this.name+" Tool":ki(this.constructor)},Gr.prototype.updateAdornments=function(){},Gr.prototype.canStart=function(){return this.isEnabled},Gr.prototype.doStart=function(){},Gr.prototype.doActivate=function(){this.isActive=!0},Gr.prototype.doDeactivate=function(){this.isActive=!1},Gr.prototype.doStop=function(){},Gr.prototype.doCancel=function(){this.transactionResult=null,this.stopTool()},Gr.prototype.stopTool=function(){var a=this.diagram;a.currentTool===this&&(a.currentTool=null,a.currentCursor="")},Gr.prototype.doMouseDown=function(){!this.isActive&&this.canStart()&&this.doActivate()},Gr.prototype.doMouseMove=function(){},Gr.prototype.doMouseUp=function(){this.stopTool()},Gr.prototype.doMouseWheel=function(){},Gr.prototype.canStartMultiTouch=function(){return!0},Gr.prototype.standardPinchZoomStart=function(){var a=this.diagram,y=a.lastInput,x=y.So(0,je.allocAt(NaN,NaN)),E=y.So(1,je.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}je.free(x),je.free(E)},Gr.prototype.standardPinchZoomMove=function(){var a=this.diagram,y=a.lastInput,x=y.So(0,je.allocAt(NaN,NaN)),E=y.So(1,je.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 je((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 ee=a.commandHandler;if(z!==a.scale&&ee.canResetZoom(z)){var re=a.zoomPoint;a.zoomPoint=b,ee.resetZoom(z),a.zoomPoint=re}y.bubbles=!1}je.free(x),je.free(E)},Gr.prototype.doKeyDown=function(){this.diagram.lastInput.key==="Esc"&&this.doCancel()},Gr.prototype.doKeyUp=function(){},Gr.prototype.Ea=function(a){return a===void 0&&(a=this.name),this.transactionResult=null,this.diagram.Ea(a)},Gr.prototype.stopTransaction=function(){var a=this.diagram;return this.transactionResult===null?a.Kf():a.eb(this.transactionResult)},Gr.prototype.standardMouseSelect=function(){var a=this.diagram;if(a.allowSelect){var y=a.lastInput,x=a.Ol(y.documentPoint,!1);if(x!==null){if(jr?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||(jr?y.meta:y.control)||y.shift||a.clearSelection()}},Gr.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,pu(a,E,x),E.handled};function pu(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)}}}Gr.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,ee=z;for(a.Ck=E,this.doCurrentObjectChanged(z,E),y.handled=!1;z!==null;){var re=z.mouseLeave;if(re!==null&&(E===z||E!==null&&E.rg(z)||(re(y,z,E),b=!0,y.handled)))break;z=z.panel}for(z=ee,y.handled=!1;E!==null&&(ee=E.mouseEnter,!(ee!==null&&(z===E||z!==null&&z.rg(E)||(ee(y,E,z),b=!0,y.handled))));)E=E.panel;E=a.Ck}if(E!==null){for(z=E,ee="";z!==null&&(ee=z.cursor,ee==="");)z=z.panel;for(a.currentCursor=ee,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}},Gr.prototype.doUpdateCursor=function(){var a=this.diagram;a&&(a.currentCursor="")},Gr.prototype.doCurrentObjectChanged=function(){},Gr.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===Dl&&!y.shift||b===Qs&&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===Dl&&y.shift||b===Qs&&!y.control){E=a.position.copy();var z=y.event;b=z.deltaMode;var ee=z.deltaX;z=z.deltaY;var re="pixel";if(ee===0&&z===0||y.shift)!y.shift&&a.allowVerticalScroll?(x=3*x*a.scrollVerticalLineChange,a.scroll(re,0<x?"up":"down",Math.abs(x))):y.shift&&a.allowHorizontalScroll&&(x=3*x*a.scrollHorizontalLineChange,a.scroll(re,0<x?"left":"right",Math.abs(x)));else{switch(b){case 0:re="pixel";break;case 1:re="line";break;case 2:re="page"}ee!==0&&a.allowHorizontalScroll&&(ee*=a.scrollHorizontalLineChange/16,a.scroll(re,0<ee?"right":"left",Math.abs(ee))),z!==0&&a.allowVerticalScroll&&(z*=a.scrollVerticalLineChange/16,a.scroll(re,0<z?"down":"up",Math.abs(z)))}this.doWheelChange(a,E,y)}}},Gr.prototype.doWheelChange=function(a,y,x){a.position.D(y)&&x.event.wheelDeltaX===0||(x.bubbles=!1)},Gr.prototype.standardWaitAfter=function(a,y){y===void 0&&(y=this.diagram.lastInput),this.cancelWaitAfter();var x=this,E=y.clone(this.yy);this.Zr=Tr(function(){x.doWaitAfter(E)},a)},Gr.prototype.cancelWaitAfter=function(){this.Zr!==-1&&Xn.clearTimeout(this.Zr),this.Zr=-1},Gr.prototype.doWaitAfter=function(){},Gr.prototype.findToolHandleAt=function(a,y){return a=this.diagram.ic(a,function(x){for(;x!==null&&!(x.panel instanceof no);)x=x.panel;return x}),a===null?null:a.part.category===y?a:null},Gr.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},It.Object.defineProperties(Gr.prototype,{diagram:{get:function(){return this.H},set:function(a){a instanceof Yt&&(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}}}),Gr.prototype.startTransaction=Gr.prototype.Ea,Gr.className="Tool";function Ao(){Gr.call(this),this.name="ToolManager",this.hb=new Mn,this.ob=new Mn,this.Hb=new Mn,this.F=this.V=850,this.o=new Je(2,2).ja(),this.Ha=5e3,this.ia=Qs,this.u=vu,this.Mp=this.j=null,this.zj=-1}Vt(Ao,Gr),Ao.prototype.initializeStandardTools=function(){},Ao.prototype.updateAdornments=function(a){var y=this.currentToolTip;if(y instanceof no&&this.Mp===a){var x=y.adornedObject;(a!==null?x.part===a:x===null)?this.showToolTip(y,x):this.hideToolTip()}},Ao.prototype.doMouseDown=function(){var a=this.diagram,y=a.lastInput;if(y.isTouchEvent&&this.gestureBehavior===Ws&&(y.bubbles=!1),y.isMultiTouch){if(this.cancelWaitAfter(),this.gestureBehavior===Vl){y.bubbles=!0;return}if(this.gestureBehavior===Ws)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===Qs?this.mouseWheelBehavior=Dl:this.mouseWheelBehavior===Dl&&(this.mouseWheelBehavior=Qs)),this.doActivate(),this.standardWaitAfter(this.holdDelay,y)},Ao.prototype.doMouseMove=function(){var a=this.diagram,y=a.lastInput;if(y.isMultiTouch){if(this.gestureBehavior===Vl){y.bubbles=!0;return}if(this.gestureBehavior===Ws)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}}Gl(this,a),a=y.event,a===null||a.type!=="pointermove"&&a.cancelable||(y.bubbles=!0)};function Gl(a,y){a.standardMouseOver(),a.isBeyondDragSize()&&a.standardWaitAfter(a.isActive?a.holdDelay:a.hoverDelay,y.lastInput)}Ao.prototype.doCurrentObjectChanged=function(a,y){a=this.currentToolTip,a===null||y!==null&&a instanceof no&&(y===a||y.rg(a))||this.hideToolTip()},Ao.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()))},Ao.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)},Ao.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 no)||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()},Ao.prototype.showToolTip=function(a,y){var x=this.diagram;if(a!==this.currentToolTip&&this.hideToolTip(),a instanceof no){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 Su&&a!==this.currentToolTip&&a.show(y,x,this);if(this.currentToolTip=a,this.zj!==-1&&(Xn.clearTimeout(this.zj),this.zj=-1),a=this.toolTipDuration,0<a&&a!==1/0){var b=this;this.zj=Tr(function(){b.hideToolTip()},a)}},Ao.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}},Ao.prototype.hideToolTip=function(){this.zj!==-1&&(Xn.clearTimeout(this.zj),this.zj=-1);var a=this.diagram,y=this.currentToolTip;y!==null&&(y instanceof no?(a.remove(y),this.Mp!==null&&this.Mp.Jf(y.category),y.data=null,y.adornedObject=null):y instanceof Su&&y.hide!==null&&y.hide(a,this),this.currentToolTip=null)},Ao.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()},Ao.prototype.doMouseWheel=function(){this.standardMouseWheel()},Ao.prototype.doKeyDown=function(){var a=this.diagram;a.commandHandler!==null&&a.commandHandler.doKeyDown()},Ao.prototype.doKeyUp=function(){var a=this.diagram;a.commandHandler!==null&&a.commandHandler.doKeyUp()},Ao.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},Ao.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},Ao.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)},It.Object.defineProperties(Ao.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 no?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}}}),Ao.prototype.replaceStandardTool=Ao.prototype.gb;var Qs=new yn(Ao,"WheelScroll",0),Dl=new yn(Ao,"WheelZoom",1),mu=new yn(Ao,"WheelNone",2),vu=new yn(Ao,"GestureZoom",3),Ws=new yn(Ao,"GestureCancel",4),Vl=new yn(Ao,"GestureNone",5);Ao.className="ToolManager",Ao.WheelScroll=Qs,Ao.WheelZoom=Dl,Ao.WheelNone=mu,Ao.GestureZoom=vu,Ao.GestureCancel=Ws,Ao.GestureNone=Vl;function Ko(){Gr.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 je(NaN,NaN),this.Fr=new je,this.hb=!0,this.Ik=100,this.Cg=[],this.te=new ln().freeze(),this.ia=new ae,this.Bn=null,this.F="copy",this.Oc="",this.Pc="no-drop"}var Hs;Vt(Ko,Gr),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,(jr?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),Za=null,this.isActive=!0,this.tl.set(a.position),yu(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&&Ns(a),vf(a,this.draggedParts),this.Ea("Drag"),this.startPoint=a.firstInput.documentPoint,a.isMouseCaptured=!0,a.allowDragOut&&(this.isDragOutStarted=!0,this.Ym=!1,Za=this,Xu=this.diagram,this.doSimulatedDragOut()))};function yu(a,y){if(a.dragsLink){var x=a.diagram;x.allowRelink&&(x.model.Wj()&&y.count===1&&y.first()instanceof Kn?(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 ol,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 eh(ri):this.isGridSnapEnabled?new eh(new je(Math.round(1e3*a.x)/1e3,Math.round(1e3*a.y)/1e3)):new eh(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(),gl(this),id(a,this.draggedParts),this.draggedParts=this.currentPart=this.Bn=null,this.Ym=this.isDragOutStarted=!1,0<Hs.count){for(var y=Hs,x=y.length,E=0;E<x;E++){var b=y.M(E);Vo(b),Bo(b),gl(b),b.diagram.ug()}y.clear()}Vo(this),this.tl.h(NaN,NaN),Xu!==null&&(Xu.currentCursor=""),Za=Xu=null,Bo(this),a.isMouseCaptured=!1,a.currentCursor="",a.Ns=!1,this.stopTransaction(),Cc(a,!0)},Ko.prototype.stopTransaction=function(){var a=this.diagram,y=Gr.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y};function gl(a){var y=a.diagram,x=y.skipsUndoManager;y.skipsUndoManager=!0,kl(a,y.lastInput,null),y.skipsUndoManager=x,a.Cg.length=0}function Du(){var a=Za;Bo(a),es(a);var y=a.diagram;a.tl.w()&&(y.position=a.tl),y.ug()}Ko.prototype.doCancel=function(){Bo(this),es(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 pl(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")):es(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 Ut,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 Kn&&E.canCopy()&&x.add(E,a.Pd());a.copiedParts=x,yu(a,x.Lf()),a.draggedLink!==null&&(x=a.draggedLink,y=x.routeBounds,kh(x,a.startPoint.x-(y.x+y.width/2),a.startPoint.y-(y.y+y.height/2))),a.doUpdateCursor(null)}}}function Bo(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 Kn&&(x.value.point=new je(0,0));a.doUpdateCursor(null)}y.skipsUndoManager=!1,y.partManager.addsToTemporaryLayer=!1,a.startPoint=y.firstInput.documentPoint}function Vo(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 Ea(a,y,x){var E=a.diagram,b=a.startPoint,z=je.alloc();z.assign(E.lastInput.documentPoint),a.moveParts(y,z.re(b),x),je.free(z),E.Gf("temporaryPixelRatio")===!0&&E.Yh===null&&30<E.$w&&(Ns(E),E.hk())}Ko.prototype.moveParts=function(a,y,x){x===void 0&&(x=!1);var E=this.diagram;E!==null&&nd(E,a,y,this.dragOptions,x)};function es(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 Kn&&E.suspendsRouting){var b=x.value.point;a.draggedParts.add(E,a.Pd()),kh(E,-b.x,-b.y)}y.bd()}}function Xa(a,y){var x=a.diagram;a.dragsLink&&(a.draggedLink!==null&&(a.draggedLink.fromNode=null,a.draggedLink.toNode=null),So(a,!1));var E=a.findDragOverObject(y),b=x.lastInput;b.targetObject=E,a.doUpdateCursor(E);var z=x.skipsUndoManager,ee=!1;try{if(x.skipsUndoManager=!0,ee=kl(a,b,E),!a.isActive&&Za===null)return;var re=E!==null?E.part:null;if(re===null||x.handlesDragDropForTopLevelParts&&re.isTopLevel&&!(re instanceof Pr)){var oe=x.mouseDragOver;oe!==null&&(oe(b),ee=!0)}if(!a.isActive&&Za===null||(a.doDragOver(y,E),!a.isActive&&Za===null))return}finally{x.skipsUndoManager=z,ee&&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 Nu(this.diagram,a,null,function(x){return x===null?x=!0:(x=x.part,x=!!(x===null||x instanceof no||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 kl(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 ee=0;ee<b;ee++){var re=a.Cg[ee],oe=re.mouseDragLeave;if(oe!==null&&(oe(y,re,x),E=!0,y.handled))break}if(a.Cg.length=0,!a.isActive&&Za===null||x===null)return E;for(y.handled=!1,b=x;b!==null;)a.Cg.push(b),b=ml(b);for(b=a.Cg.length,x=0;x<b&&(ee=a.Cg[x],re=ee.mouseDragEnter,re===null||(re(y,ee,z),E=!0,!y.handled));x++);return E}function ml(a){var y=a.panel;return y!==null?y:a instanceof Ki&&!(a instanceof Pr)&&(a=a.containingGroup,a!==null&&a.handlesDragDropForMembers)?a:null}function Ro(a,y,x){var E=a.Oe;if(E===null)return null;var b=a.diagram.og(y,E.portGravity,function(le){return E.findValidLinkablePort(le,x)});a=je.alloc();var z=1/0,ee=null;for(b=b.iterator;b.next();){var re=b.value;if(re.part!==null){var oe=re.ga(Ln,a);oe=y.Bf(oe),oe<z&&(ee=re,z=oe)}}return je.free(a),ee}function So(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,ee=null;x.fromNode===null&&(z=Ro(a,x.i(0),!1),z!==null&&(ee=z.part));var re=null,oe=null;x.toNode===null&&(re=Ro(a,x.i(x.pointsCount-1),!0),re!==null&&(oe=re.part)),b.isValidLink(ee,z,oe,re)?y?(x.defaultFromPoint=x.i(0),x.defaultToPoint=x.i(x.pointsCount-1),x.suspendsRouting=!1,x.fromNode=ee,z!==null&&(x.fromPortId=z.portId),x.toNode=oe,re!==null&&(x.toPortId=re.portId),x.fromPort!==E.Mx&&E.R("LinkRelinked",x,E.Mx),x.toPort!==E.Nx&&E.R("LinkRelinked",x,E.Nx)):nf(b,ee,z,oe,re):nf(b,null,null,null,null)}}}}Ko.prototype.doDragOver=function(){};function Ya(a,y){var x=a.diagram;a.dragsLink&&So(a,!0),gl(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 ee=z.mouseDrop;if(ee!==null&&(ee(b,z),b.handled))break;iu(a,b,z),z=ml(z)}}else z=x.mouseDrop,z!==null&&z(b);if(a.isActive||Za!==null){for(b=(a.copiedParts||a.draggedParts).iterator;b.next();)z=b.key,z instanceof ui&&z.linksConnected.each(function(re){re.suspendsRouting=!1});if(a.doDropOnto(y,E),a.isActive||Za!==null){for(a=vt.alloc(),y=x.selection.iterator;y.next();)E=y.value,E instanceof ui&&Dd(x,E,a);vt.free(a)}}}function iu(a,y,x){a=a.diagram,x=x.part,!a.handlesDragDropForTopLevelParts||!x.isTopLevel||x instanceof Pr||(x=a.mouseDrop,x!==null&&x(y))}function Dd(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 Kn},!0,function(b){return b instanceof Kn},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()?(pl(this,!1),vf(a,this.copiedParts),Ea(this,this.copiedParts,!1),id(a,this.copiedParts)):this.mayMove()?(Bo(this),Ea(this,this.draggedParts,!0)):this.mayDragOut()?(pl(this,!1),Ea(this,this.copiedParts,!1)):Bo(this),Xa(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?(Bo(this),pl(this,!0),vf(a,this.copiedParts),Ea(this,this.copiedParts,!1),id(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,Bo(this),this.mayMove()&&(Ea(this,this.draggedParts,!0),Xa(this,a.lastInput.documentPoint))),this.Ym=!0,Ya(this,a.lastInput.documentPoint),this.isActive){var E=x?this.copiedParts.Lf():this.draggedParts.Lf();this.copiedParts=null,y&&dg(this),a.Ya(),id(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(Za===null)return!1;var E=Za.diagram;x instanceof Yt||(x=null);var b=Xu;return x!==b&&(b!==null&&b!==E&&(b.ug(),Za.isDragOutStarted=!1,b=b.toolManager.findTool("Dragging"),b!==null&&b.doSimulatedDragLeave()),Xu=x,x!==null&&x!==E&&(Du(),b=x.toolManager.findTool("Dragging"),b!==null&&(Hs.contains(b)||Hs.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(Za===null)return!1;var E=Xu,b=Za.diagram;if(x===null)return Za.doCancel(),!0;if(x!==E){var z=E.toolManager.findTool("Dragging");if(E!==null&&E!==b&&z!==null)return E.ug(),Za.isDragOutStarted=!1,z.doSimulatedDragLeave(),!1;Xu=x,E=x.toolManager.findTool("Dragging"),E!==null&&(Du(),Hs.contains(E)||Hs.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 je),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=Za,a!==null&&(x=a.mayCopy(),a.transactionResult=x?"Copy":"Move",a.stopTool()),!0):!1};function dg(a){if(a.draggedParts!==null)for(var y=a.draggedParts.iterator;y.next();){var x=y.key;x instanceof ui&&(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||(jr?!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 Za},Ko.prototype.mayDragIn=function(){var a=this.diagram;if(!a.allowDrop||a.isReadOnly||a.isModelReadOnly||!a.allowInsert)return!1;var y=Za;return!(y===null||y.diagram.model.dataFormat!==a.model.dataFormat)},Ko.prototype.doSimulatedDragEnter=function(){if(this.mayDragIn()){var a=this.diagram;a.animationManager.Cc(),Sl(a),a.animationManager.Cc(),a=Za,a!==null&&(a.diagram.Ns=!1),this.doUpdateCursor(null)}},Ko.prototype.doSimulatedDragLeave=function(){var a=Za;a!==null&&a.doSimulatedDragOut(),this.doCancel()},Ko.prototype.doSimulatedDragOver=function(){var a=this.diagram;a.animationManager.Dm=!0;var y=Za;if(y!==null&&y.draggedParts!==null){if(!this.mayDragIn())return;tf(this,y.draggedParts.Lf(),!1,a.firstInput),Ea(this,this.copiedParts,!1),Xa(this,a.lastInput.documentPoint)}a.animationManager.Dm=!1},Ko.prototype.doSimulatedDrop=function(){var a=this.diagram,y=Za;if(y!==null){var x=y.diagram;if(y.Ym=!0,Bo(this),!this.mayDragIn())return;a.animationManager.Dm=!0,a.R("ChangingSelection",a.selection),this.Ea("Drop"),tf(this,y.draggedParts.Lf(),!0,a.lastInput),Ea(this,this.copiedParts,!1);var E=new ln;this.copiedParts!==null&&(a.clearSelection(!0),this.copiedParts.iteratorKeys.each(function(b){b.isSelected=!0,E.add(b)})),Ya(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 tf(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=vt.alloc();b=E=1/0;for(var ee=-1/0,re=-1/0,oe=y.iterator;oe.next();){var le=oe.value;if(le.isVisible()){var he=le.location;le=he.x,he=he.y,isNaN(le)||isNaN(he)||(le<E&&(E=le),he<b&&(b=he),le>ee&&(ee=le),he>re&&(re=he))}}for(E===1/0?z.h(0,0,0,0):z.h(E,b,ee-E,re-b),E=z.x+z.width/2,b=z.y+z.height/2,vt.free(z),z=a.Fr,ee=new Ut,re=je.alloc(),oe=y.iterator;oe.next();)le=oe.value,le instanceof Kn&&le.canCopy()&&(he=x.I(le),he!==null&&(he.points=le.points,kh(he,z.x-E,z.y-b),he.suspendsRouting=!0,ee.add(he,a.Pd())));for(y=y.iterator;y.next();)le=y.value,le.Zc()&&le.canCopy()&&(oe=x.I(le),oe!==null&&(le=le.location,re.h(z.x-(E-le.x),z.y-(b-le.y)),oe.location=re,oe.Va(),ee.add(oe,a.Pd(re))));je.free(re),a.copiedParts=ee,yu(a,ee.Lf()),a.draggedLink!==null&&(x=a.draggedLink,y=x.routeBounds,kh(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 je},It.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 Za=null,Xu=null;Ko.className="DraggingTool",Hs=new Mn,dr("draggingTool",function(){return this.findTool("Dragging")},function(a){this.gb("Dragging",a,this.mouseMoveTools)}),Ao.prototype.doCancel=function(){Za!==null&&Za.doCancel(),Gr.prototype.doCancel.call(this)};function to(){Gr.call(this),this.te=100,this.Ha=!1,this.u="pointer";var a=new Kn,y=new Lr;y.isPanelMain=!0,y.stroke="blue",a.add(y),y=new Lr,y.toArrow="Standard",y.fill="blue",y.stroke="blue",a.add(y),a.layerName="Tool",this.Ci=a,a=new ui,y=new Lr,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=Pt,a.add(y),a.selectable=!1,a.layerName="Tool",this.Bi=a,this.j=y,a=new ui,y=new Lr,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=Pt,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 Ut,this.Of=this.gj=this.Pf=null}Vt(to,Gr),to.prototype.doStop=function(){this.diagram.ug(),this.originalToPort=this.originalToNode=this.originalFromPort=this.originalFromNode=this.originalLink=null,this.validPortsCache.clear(),this.targetPort=null},to.prototype.copyPortProperties=function(a,y,x,E,b){if(a!==null&&y!==null&&x!==null&&E!==null){var z=y.Df(),ee=Je.alloc();ee.width=y.naturalBounds.width*z,ee.height=y.naturalBounds.height*z,E.desiredSize=ee,Je.free(ee),b?(E.toSpot=y.toSpot,E.toEndSegmentLength=y.toEndSegmentLength):(E.fromSpot=y.fromSpot,E.fromEndSegmentLength=y.fromEndSegmentLength),x.locationSpot=Ln,z=je.alloc(),x.location=y.ga(Ln,z),je.free(z),E.angle=y.li(),this.portTargeted!==null&&this.portTargeted(a,y,x,E,b)}},to.prototype.setNoTargetPortProperties=function(a,y,x){y!==null&&(y.desiredSize=Pt,y.fromSpot=Mi,y.toSpot=Mi),a!==null&&(a.location=this.diagram.lastInput.documentPoint),this.portTargeted!==null&&this.portTargeted(null,null,a,y,x)},to.prototype.doMouseDown=function(){this.isActive&&this.doMouseMove()},to.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram;if(this.targetPort=this.findTargetPort(this.isForwards),this.targetPort!==null&&this.targetPort.part instanceof ui){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)}},to.prototype.findValidLinkablePort=function(a,y){if(a===null)return null;var x=a.part;if(!(x instanceof ui))return null;for(;a!==null;){var E=y?a.toLinkable:a.fromLinkable;if(E===!0&&(a.portId!==null||a instanceof ui)&&(y?this.isValidTo(x,a):this.isValidFrom(x,a)))return a;if(E===!1)break;a=a.panel}return null},to.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(ge){return b.findValidLinkablePort(ge,a)},null,!0);for(E=1/0,y=null,z=z.iterator;z.next();){var ee=z.value,re=ee.part;if(re instanceof ui){var oe=ee.ga(Ln,je.alloc()),le=x.x-oe.x,he=x.y-oe.y;je.free(oe),oe=le*le+he*he,oe<E&&(le=this.validPortsCache.I(ee),le!==null?le&&(y=ee,E=oe):a&&this.isValidLink(this.originalFromNode,this.originalFromPort,re,ee)||!a&&this.isValidLink(re,ee,this.originalToNode,this.originalToPort)?(this.validPortsCache.add(ee,!0),y=ee,E=oe):this.validPortsCache.add(ee,!1))}}return y!==null&&(x=y.part,x instanceof ui&&(x.layer===null||x.layer.allowLink))?y:null},to.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},to.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},to.prototype.isInSameNode=function(a,y){return a===null||y===null?!1:a===y?!0:(a=a.part,y=y.part,a!==null&&a===y)},to.prototype.isLinked=function(a,y){if(a===null||y===null)return!1;var x=a.part;if(!(x instanceof ui))return!1;a=a.portId,a===null&&(a="");var E=y.part;if(!(E instanceof ui))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},to.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)},to.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 ln;return E.add(a),uo(this,x,y,E)};function uo(a,y,x,E){if(y===x)return!0;var b=y.fromNode;return b!==null&&b.isLinkLabel&&(E.add(b),uo(a,b.labeledLink,x,E))?!0:(y=y.toNode,!!(y!==null&&y.isLinkLabel&&(E.add(y),uo(a,y.labeledLink,x,E))))}to.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===Hg){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!Mo(this,a,y,x,!0)}if(E===Gg){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!Mo(this,a,y,x,!0)}if(E===zg)return a===y?a=!0:(E=new ln,E.add(y),a=ia(this,E,a,y,x)),!a;if(E===Zg)return!Mo(this,a,y,x,!1);if(E===Wg)return a===y?a=!0:(E=new ln,E.add(y),a=ns(this,E,a,y,x)),!a}return!0};function Mo(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 ee=z.value;if(ee!==E&&(!b||ee.isTreeLink)&&ee.toNode===y&&(ee=ee.fromNode,ee!==y&&Mo(a,ee,x,E,b)))return!0}return!1}function ia(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 ee=z.value;if(ee!==b&&ee.toNode===x&&(ee=ee.fromNode,ee!==x&&ia(a,y,ee,E,b)))return!0}return!1}function ns(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 ee=z.value;if(ee!==b){var re=ee.fromNode;if(ee=ee.toNode,re=re===x?ee:re,re!==x&&ns(a,y,re,E,b))return!0}}return!1}It.Object.defineProperties(to.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}}}),to.className="LinkingBaseTool";function hs(){to.call(this),this.name="Linking",this.V={},this.F=null,this.K=Kh,this.Xd=null}Vt(hs,to),hs.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},hs.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 ui)))return null;var x=this.direction;if(x===Kh||x===Hp){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===Kh||x===Gp)&&(y=this.findValidLinkablePort(y,!0),y!==null||this.startObject===a&&(y=a.port,this.findValidLinkablePort(y,!0)))?(this.isForwards=!1,y):null},hs.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 ui&&(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 ui&&(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)},hs.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()},hs.prototype.doStop=function(){to.prototype.doStop.call(this),this.startObject=null},hs.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram,y=this.transactionResult=null,x=null,E=null,b=null,z=null;try{var ee=this.targetPort=this.findTargetPort(this.isForwards);if(ee!==null){var re=ee.part;re instanceof ui&&(this.isForwards?(this.originalFromNode!==null&&(y=this.originalFromNode,x=this.originalFromPort),E=re,b=ee):(y=re,x=ee,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?(ee===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)}}},hs.prototype.isNewTreeLink=function(){var a=this.archetypeLinkData;if(a===null)return!0;if(a instanceof Kn)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)},hs.prototype.insertLink=function(a,y,x,E){return this.diagram.partManager.insertLink(a,y,x,E)},hs.prototype.doNoLink=function(){},It.Object.defineProperties(hs.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 Kh=new yn(hs,"Either",0),Hp=new yn(hs,"ForwardsOnly",0),Gp=new yn(hs,"BackwardsOnly",0);hs.className="LinkingTool",hs.Either=Kh,hs.ForwardsOnly=Hp,hs.BackwardsOnly=Gp;function ol(){to.call(this),this.name="Relinking";var a=new Lr;a.figure="Diamond",a.desiredSize=Qt,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=0,this.V=a,a=new Lr,a.figure="Diamond",a.desiredSize=Qt,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=-1,this.Xd=a,this.F=null,this.Ew=new vt}Vt(ol,to),ol.prototype.updateAdornments=function(a){if(a!==null&&a instanceof Kn){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)}},ol.prototype.makeAdornment=function(a,y){var x=new no;return x.type=Rn.Link,y=y?this.toHandleArchetype:this.fromHandleArchetype,y!==null&&x.add(y.copy()),x.adornedObject=a,x},ol.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},ol.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 no&&x.adornedPart instanceof Kn))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=pt),this.temporaryFromNode!==null&&(this.temporaryFromNode.location=this.originalLink.i(0))),this.originalLink.toNode===null&&(this.temporaryToPort!==null&&(this.temporaryToPort.desiredSize=pt),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},ol.prototype.copyLinkProperties=function(a,y){if(a!==null&&y!==null){y.adjusting=a.adjusting,y.corner=a.corner;var x=a.curve;(x===Wf||x===Bh)&&(x=Fs),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}},ol.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()},ol.prototype.doStop=function(){to.prototype.doStop.call(this),this.handle=null},ol.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 ee=this.targetPort.part;ee instanceof ui&&(this.isForwards?(E=ee,b=this.targetPort):(y=ee,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()}}},ol.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},ol.prototype.doNoRelink=function(){};function nf(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)}It.Object.defineProperties(ol.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 no))throw Error("new handle is not in an Adornment: "+a);this.F=a}}}),ol.className="RelinkingTool",dr("linkingTool",function(){return this.findTool("Linking")},function(a){this.gb("Linking",a,this.mouseMoveTools)}),dr("relinkingTool",function(){return this.findTool("Relinking")},function(a){this.gb("Relinking",a,this.mouseDownTools)});function Sa(){Gr.call(this),this.name="LinkReshaping";var a=new Lr;a.figure="Rectangle",a.desiredSize=$t,a.fill="lightblue",a.stroke="dodgerblue",this.o=a,a=new Lr,a.figure="Diamond",a.desiredSize=Qt,a.fill="lightblue",a.stroke="dodgerblue",a.cursor="move",this.u=a,this.F=3,this.Ts=this.j=null,this.Fw=new je,this.Yq=new Mn}Vt(Sa,Gr),Sa.prototype.Ru=function(a){return a&&a.reshapingBehavior.value!==0?a.reshapingBehavior:cg},Sa.prototype.om=function(a,y){a.reshapingBehavior=y},Sa.prototype.updateAdornments=function(a){if(a!==null&&a instanceof Kn){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)}},Sa.prototype.makeAdornment=function(a){var y=a.part,x=y.pointsCount,E=y.isOrthogonal,b=null;if(y.points!==null&&1<x){b=new no,b.type=Rn.Link,x=y.firstPickIndex;var z=y.lastPickIndex,ee=E?1:0;if(y.resegmentable&&y.computeCurve()!==hl)for(var re=x+ee;re<z-ee;re++){var oe=this.makeResegmentHandle(a,re);oe!==null&&(oe.segmentIndex=re,oe.segmentFraction=.5,oe.fromMaxLinks=999,b.add(oe))}for(ee=x+1;ee<z;ee++)if(re=this.makeHandle(a,ee),re!==null){if(re.segmentIndex=ee,ee!==x)if(ee===x+1&&E){oe=y.i(x);var le=y.i(x+1);St.B(oe.x,le.x)&&St.B(oe.y,le.y)&&(le=y.i(x-1)),St.B(oe.x,le.x)?(this.om(re,ph),re.cursor="n-resize"):St.B(oe.y,le.y)&&(this.om(re,gh),re.cursor="w-resize")}else ee===z-1&&E?(oe=y.i(z-1),le=y.i(z),St.B(oe.x,le.x)&&St.B(oe.y,le.y)&&(oe=y.i(z+1)),St.B(oe.x,le.x)?(this.om(re,ph),re.cursor="n-resize"):St.B(oe.y,le.y)&&(this.om(re,gh),re.cursor="w-resize")):ee!==z&&(this.om(re,rf),re.cursor="move");b.add(re)}b.adornedObject=a}return b},Sa.prototype.makeHandle=function(){var a=this.handleArchetype;return a===null?null:a.copy()},Sa.prototype.makeResegmentHandle=function(){var a=this.midHandleArchetype;return a===null?null:a.copy()},Sa.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},Sa.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 Kn){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}}},Sa.prototype.doDeactivate=function(){this.stopTransaction(),this.Ts=this.handle=null,this.isActive=this.diagram.isMouseCaptured=!1},Sa.prototype.stopTransaction=function(){var a=this.diagram,y=Gr.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},Sa.prototype.doCancel=function(){var a=this.adornedLink;a!==null&&(a.points=this.Yq),this.stopTool()},Sa.prototype.getResegmentingPoint=function(){return this.handle.ga(Ln)},Sa.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeReshape(a.lastInput.documentPoint),this.reshape(a))},Sa.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 ee=y.i(x-2);if(Math.abs(E.x-b.x)<this.resegmentingDistance&&Math.abs(E.y-b.y)<this.resegmentingDistance&&(fh(this,ee,E,b,z,!0)||fh(this,ee,E,b,z,!1))){var re=y.points.copy();fh(this,ee,E,b,z,!0)?(re.cd(x-2,new je(ee.x,(z.y+ee.y)/2)),re.cd(x+1,new je(z.x,(z.y+ee.y)/2))):(re.cd(x-2,new je((z.x+ee.x)/2,ee.y)),re.cd(x+1,new je((z.x+ee.x)/2,z.y))),re.mb(x),re.mb(x-1),y.points=re,y.Wb()}else ee=y.i(x+2),Math.abs(b.x-z.x)<this.resegmentingDistance&&Math.abs(b.y-z.y)<this.resegmentingDistance&&(fh(this,E,b,z,ee,!0)||fh(this,E,b,z,ee,!1))&&(re=y.points.copy(),fh(this,E,b,z,ee,!0)?(re.cd(x-1,new je(E.x,(E.y+ee.y)/2)),re.cd(x+2,new je(ee.x,(E.y+ee.y)/2))):(re.cd(x-1,new je((E.x+ee.x)/2,E.y)),re.cd(x+2,new je((E.x+ee.x)/2,ee.y))),re.mb(x+1),re.mb(x),y.points=re,y.Wb())}}else ee=je.alloc(),St.qh(E.x,E.y,z.x,z.y,b.x,b.y,ee)&&ee.Bf(b)<this.resegmentingDistance*this.resegmentingDistance&&(E=y.points.copy(),E.mb(x),y.points=E,y.Wb()),je.free(ee)}a.Ya(),this.transactionResult=this.name,a.R("LinkReshaped",this.adornedLink,this.Yq)}this.stopTool()};function fh(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}Sa.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===ph?(y.L(x,y.i(x-1).x,a.y),y.L(x+1,y.i(x+2).x,a.y)):E===gh&&(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===ph?(y.L(x-1,y.i(x-2).x,a.y),y.L(x,y.i(x+1).x,a.y)):E===gh&&(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),ee=y.i(E+1);St.B(z.x,b.x)&&St.B(b.y,ee.y)?(St.B(z.x,y.i(E-2).x)&&!St.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),St.B(ee.y,y.i(E+2).y)&&!St.B(ee.x,y.i(E+2).x)?y.m(E+1,ee.x,a.y):y.L(E+1,ee.x,a.y)):St.B(z.y,b.y)&&St.B(b.x,ee.x)?(St.B(z.y,y.i(E-2).y)&&!St.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),St.B(ee.x,y.i(E+2).x)&&!St.B(ee.y,y.i(E+2).y)?y.m(E+1,a.x,ee.y):y.L(E+1,a.x,ee.y)):St.B(z.x,b.x)&&St.B(b.x,ee.x)?(St.B(z.x,y.i(E-2).x)&&!St.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),St.B(ee.x,y.i(E+2).x)&&!St.B(ee.y,y.i(E+2).y)?y.m(E+1,a.x,ee.y):y.L(E+1,a.x,ee.y)):St.B(z.y,b.y)&&St.B(b.y,ee.y)&&(St.B(z.y,y.i(E-2).y)&&!St.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),St.B(ee.y,y.i(E+2).y)&&!St.B(ee.x,y.i(E+2).x)?y.m(E+1,ee.x,a.y):y.L(E+1,ee.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(Ln,je.alloc()),E=y.getLinkPointFromPoint(E,b,z,a,!0,je.alloc()),y.L(0,E.x,E.y),je.free(z),je.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(Ln,je.alloc()),a=y.getLinkPointFromPoint(E,b,x,a,!1,je.alloc()),y.L(y.pointsCount-1,a.x,a.y),je.free(x),je.free(a));y.zf()},Sa.prototype.computeReshape=function(a){var y=this.adornedLink,x=this.handle.segmentIndex;switch(this.Ru(this.handle)){case rf:return a;case ph:return new je(y.i(x).x,a.y);case gh:return new je(a.x,y.i(x).y);default:case cg:return y.i(x)}},It.Object.defineProperties(Sa.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 no))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}}}),Sa.prototype.setReshapingBehavior=Sa.prototype.om,Sa.prototype.getReshapingBehavior=Sa.prototype.Ru;var cg=new yn(Sa,"None",0),gh=new yn(Sa,"Horizontal",1),ph=new yn(Sa,"Vertical",2),rf=new yn(Sa,"All",3);Sa.className="LinkReshapingTool",Sa.None=cg,Sa.Horizontal=gh,Sa.Vertical=ph,Sa.All=rf,dr("linkReshapingTool",function(){return this.findTool("LinkReshaping")},function(a){this.gb("LinkReshaping",a,this.mouseDownTools)});function ss(){Gr.call(this),this.name="Resizing",this.o=new Je(1,1).freeze(),this.j=new Je(9999,9999).freeze(),this.yg=new Je(NaN,NaN).freeze(),this.V=!1,this.ia=!0,this.ue=null;var a=new Lr;a.alignmentFocus=Ln,a.figure="Rectangle",a.desiredSize=$t,a.fill="lightblue",a.stroke="dodgerblue",a.strokeWidth=1,a.cursor="pointer",this.F=a,this.u=null,this.Xq=new je,this.Dw=new Je,this.Tn=new je,this.rt=new Je(0,0),this.qt=new Je(1/0,1/0),this.pt=new Je(1,1)}Vt(ss,Gr),ss.prototype.updateAdornments=function(a){if(!(a===null||a instanceof Kn)){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(),ud(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 no,y.type=Rn.Spot,y.locationSpot=Ln;var x=new As;x.isPanelMain=!0,y.add(x),y.add(this.makeHandle(a,Ti)),y.add(this.makeHandle(a,Zi)),y.add(this.makeHandle(a,An)),y.add(this.makeHandle(a,hr)),y.add(this.makeHandle(a,po)),y.add(this.makeHandle(a,Jr)),y.add(this.makeHandle(a,ta)),y.add(this.makeHandle(a,mo))}else if(Rl(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")))e:{var x=a.alignment;if(x.Mc()&&(x=Ln),0>=x.x)y=0>=x.y?y+225:1<=x.y?y+135:y+180;else if(1<=x.x)0>=x.y?y+=315:1<=x.y&&(y+=45);else if(0>=x.y)y+=270;else if(1<=x.y)y+=90;else break e;0>y?y+=360:360<=y&&(y-=360),a.cursor=22.5>y?"e-resize":67.5>y?"se-resize":112.5>y?"s-resize":157.5>y?"sw-resize":202.5>y?"w-resize":247.5>y?"nw-resize":292.5>y?"n-resize":337.5>y?"ne-resize":"e-resize"}else if(a instanceof Rn)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=Gr.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,je.alloc()),z=this.computeReshape();y=this.computeResize(b,this.handle.alignment,y,x,E,z),this.resize(y),a.bd(),je.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,je.alloc()),z=this.computeReshape();y=this.computeResize(b,this.handle.alignment,y,x,E,z),this.resize(y),je.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 Pr){var E=new Mn;if(E.add(a),!this.dragsMembers&&a.placeholder===null){var b=new ae;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=Ln);var ee=this.adornedObject.naturalBounds,re=ee.x,oe=ee.y,le=ee.x+ee.width,he=ee.y+ee.height,ge=1;if(!z){ge=ee.width;var Se=ee.height;0>=ge&&(ge=1),0>=Se&&(Se=1),ge=Se/ge}return Se=je.alloc(),St.No(a.x,a.y,re,oe,b.width,b.height,Se),a=ee.copy(),0>=y.x?0>=y.y?(a.x=Math.max(Se.x,le-E.width),a.x=Math.min(a.x,le-x.width),a.width=Math.max(le-a.x,x.width),a.y=Math.max(Se.y,he-E.height),a.y=Math.min(a.y,he-x.height),a.height=Math.max(he-a.y,x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(ge*a.width,E.height),x.height),a.width=a.height/ge):(a.width=Math.max(Math.min(a.height/ge,E.width),x.width),a.height=ge*a.width),a.x=le-a.width,a.y=he-a.height)):1<=y.y?(a.x=Math.max(Se.x,le-E.width),a.x=Math.min(a.x,le-x.width),a.width=Math.max(le-a.x,x.width),a.height=Math.max(Math.min(Se.y-oe,E.height),x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(ge*a.width,E.height),x.height),a.width=a.height/ge):(a.width=Math.max(Math.min(a.height/ge,E.width),x.width),a.height=ge*a.width),a.x=le-a.width)):(a.x=Math.max(Se.x,le-E.width),a.x=Math.min(a.x,le-x.width),a.width=le-a.x,z||(a.height=Math.max(Math.min(ge*a.width,E.height),x.height),a.width=a.height/ge,a.y=oe+.5*(he-oe-a.height))):1<=y.x?0>=y.y?(a.width=Math.max(Math.min(Se.x-re,E.width),x.width),a.y=Math.max(Se.y,he-E.height),a.y=Math.min(a.y,he-x.height),a.height=Math.max(he-a.y,x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(ge*a.width,E.height),x.height),a.width=a.height/ge):(a.width=Math.max(Math.min(a.height/ge,E.width),x.width),a.height=ge*a.width),a.y=he-a.height)):1<=y.y?(a.width=Math.max(Math.min(Se.x-re,E.width),x.width),a.height=Math.max(Math.min(Se.y-oe,E.height),x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(ge*a.width,E.height),x.height),a.width=a.height/ge):(a.width=Math.max(Math.min(a.height/ge,E.width),x.width),a.height=ge*a.width))):(a.width=Math.max(Math.min(Se.x-re,E.width),x.width),z||(a.height=Math.max(Math.min(ge*a.width,E.height),x.height),a.width=a.height/ge,a.y=oe+.5*(he-oe-a.height))):0>=y.y?(a.y=Math.max(Se.y,he-E.height),a.y=Math.min(a.y,he-x.height),a.height=he-a.y,z||(a.width=Math.max(Math.min(a.height/ge,E.width),x.width),a.height=ge*a.width,a.x=re+.5*(le-re-a.width))):1<=y.y&&(a.height=Math.max(Math.min(Se.y-oe,E.height),x.height),z||(a.width=Math.max(Math.min(a.height/ge,E.width),x.width),a.height=ge*a.width,a.x=re+.5*(le-re-a.width))),je.free(Se),a},ss.prototype.computeReshape=function(){var a=Sn;return this.adornedObject instanceof Lr&&(a=Fv(this.adornedObject)),!(a===Bi||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 Je(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},It.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 no))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 no)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",dr("resizingTool",function(){return this.findTool("Resizing")},function(a){this.gb("Resizing",a,this.mouseDownTools)});function xs(){Gr.call(this),this.name="Rotating",this.ia=45,this.V=2,this.Tn=new je,this.ue=null;var a=new Lr;a.figure="Ellipse",a.desiredSize=Qt,a.fill="lightblue",a.stroke="dodgerblue",a.strokeWidth=1,a.cursor="pointer",this.o=a,this.j=null,this.Cw=0,this.kr=new je(NaN,NaN),this.u=0,this.F=50}Vt(xs,Gr),xs.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)}},xs.prototype.makeAdornment=function(a){var y=a.part.rotateAdornmentTemplate;if(y===null){y=new no,y.type=Rn.Position,y.locationSpot=Ln;var x=this.handleArchetype;x!==null&&y.add(x.copy())}else if(Rl(y),y=y.copy(),y===null)return null;return y.adornedObject=a,y},xs.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},xs.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)},xs.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(Ln)},xs.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)},xs.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.kr=new je(NaN,NaN),this.isActive=a.isMouseCaptured=!1},xs.prototype.stopTransaction=function(){var a=this.diagram,y=Gr.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},xs.prototype.doCancel=function(){this.diagram.delaysLayout=!1,this.rotate(this.originalAngle),this.stopTool()},xs.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeRotate(a.lastInput.documentPoint),this.rotate(a))},xs.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()},xs.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()}},xs.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},It.Object.defineProperties(xs.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 no))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 no)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}}}),xs.className="RotatingTool",dr("rotatingTool",function(){return this.findTool("Rotating")},function(a){this.gb("Rotating",a,this.mouseDownTools)});function _h(){Gr.call(this),this.name="ClickSelecting"}Vt(_h,Gr),_h.prototype.canStart=function(){return!(!this.isEnabled||this.isBeyondDragSize())},_h.prototype.doMouseUp=function(){this.isActive&&(this.standardMouseSelect(),!this.standardMouseClick()&&this.diagram.lastInput.isTouchEvent&&this.diagram.toolManager.doToolTip()),this.stopTool()},_h.className="ClickSelectingTool";function Bl(){Gr.call(this),this.name="Action",this.pk=null}Vt(Bl,Gr),Bl.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},Bl.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()},Bl.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))}},Bl.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()},Bl.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())},Bl.prototype.doStop=function(){this.pk=null},Bl.className="ActionTool";function mh(){Gr.call(this),this.name="ClickCreating",this.Ri=null,this.o=!0,this.j=!1,this.mw=new je(0,0)}Vt(mh,Gr),mh.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)},mh.prototype.doMouseUp=function(){var a=this.diagram;this.isActive&&this.insertPart(a.lastInput.documentPoint),this.stopTool()},mh.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 Ki)x.Zc()&&(Rl(x),E=x.copy(),E!==null&&y.add(E));else if(x!==null){var b=y.model.copyNodeData(x);en(b)&&(y.model.xf(b),E=y.Lc(b))}if(E!==null){var z=je.allocAt(a.x,a.y);this.isGridSnapEnabled&&mf(this.diagram,E,a,z),E.location=z,y.allowSelect&&(y.clearSelection(!0),E.isSelected=!0),je.free(z)}y.Ya(),this.transactionResult=this.name,y.R("PartCreated",E)}finally{this.stopTransaction(),y.R("ChangedSelection",y.selection)}return E},It.Object.defineProperties(mh.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}}}),mh.className="ClickCreatingTool";function vl(){Gr.call(this),this.name="DragSelecting",this.Ik=175,this.o=!1;var a=new Ki;a.layerName="Tool",a.selectable=!1;var y=new Lr;y.name="SHAPE",y.figure="Rectangle",y.fill=null,y.stroke="magenta",a.add(y),this.j=a}Vt(vl,Gr),vl.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))},vl.prototype.doActivate=function(){var a=this.diagram;this.isActive=!0,a.isMouseCaptured=!0,a.skipsUndoManager=!0,a.add(this.box),this.doMouseMove()},vl.prototype.doDeactivate=function(){var a=this.diagram;a.ug(),a.remove(this.box),a.skipsUndoManager=!1,this.isActive=a.isMouseCaptured=!1},vl.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=Je.alloc().h(y.width,y.height);x.desiredSize=E,this.box.mm(y.x,y.y,!1),Je.free(E),(a.allowHorizontalScroll||a.allowVerticalScroll)&&a.gs(a.lastInput.viewPoint)}},vl.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()},vl.prototype.computeBoxBounds=function(){var a=this.diagram;return new vt(a.firstInput.documentPoint,a.lastInput.documentPoint)},vl.prototype.selectInRect=function(a){var y=this.diagram,x=y.lastInput;if(a=y.ux(a,this.isPartialInclusion),jr?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 Mn,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)}},It.Object.defineProperties(vl.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}}}),vl.className="DragSelectingTool";function is(){Gr.call(this),this.name="Panning",this.Xt=new je,this.xy=new je,this.xg=!1;var a=this;this.Kw=function(){var y=a.diagram;y!==null&&y.removeEventListener(Xn.document,"scroll",a.Kw,!1),a.stopTool()}}Vt(is,Gr),is.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())},is.prototype.doActivate=function(){var a=this.diagram;this.xg?(a.lastInput.bubbles=!0,a.addEventListener(Xn.document,"scroll",this.Kw,!1)):(a.currentCursor="move",a.isMouseCaptured=!0,this.Xt.assign(a.position)),this.isActive=!0},is.prototype.doDeactivate=function(){var a=this.diagram;a.currentCursor="",this.isActive=a.isMouseCaptured=!1},is.prototype.doCancel=function(){var a=this.diagram;a.position=this.Xt,a.isMouseCaptured=!1,this.stopTool()},is.prototype.doMouseMove=function(){this.move()},is.prototype.doMouseUp=function(){this.move(),this.stopTool()},is.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)}},It.Object.defineProperties(is.prototype,{bubbles:{get:function(){return this.xg},set:function(a){this.xg=a}},originalPosition:{get:function(){return this.Xt}}}),is.className="PanningTool",dr("clickCreatingTool",function(){return this.findTool("ClickCreating")},function(a){this.gb("ClickCreating",a,this.mouseUpTools)}),dr("clickSelectingTool",function(){return this.findTool("ClickSelecting")},function(a){this.gb("ClickSelecting",a,this.mouseUpTools)}),dr("panningTool",function(){return this.findTool("Panning")},function(a){this.gb("Panning",a,this.mouseMoveTools)}),dr("dragSelectingTool",function(){return this.findTool("DragSelecting")},function(a){this.gb("DragSelecting",a,this.mouseMoveTools)}),dr("actionTool",function(){return this.findTool("Action")},function(a){this.gb("Action",a,this.mouseDownTools)});function Su(){this.F=this.u=this.j=this.o=null}It.Object.defineProperties(Su.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}}}),Su.className="HTMLInfo";function Nl(a,y,x){this.text=a,this.hx=y,this.visible=x}Nl.className="ContextMenuButtonInfo";function Ps(){Gr.call(this),this.name="ContextMenu",this.o=this.ht=this.j=null,this.yw=new je,this.jt=null,this.Et=!1;var a=this;this.tu=function(){a.stopTool()}}Vt(Ps,Gr);function Yl(a){var y=new Su;y.show=function(b,z,ee){ee.showDefaultContextMenu()},y.hide=function(b,z){z.hideDefaultContextMenu()},Uh=y,a.tu=function(){a.stopTool()},y=br("div");var x=br("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=br("style");Xn.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",xa,!1),E.addEventListener(y,"selectstart",xa,!1),E.addEventListener(x,"contextmenu",xa,!1)),y.className="goCXforeground",x.className="goCXbackground",Xn.document.body&&(Xn.document.body.appendChild(y),Xn.document.body.appendChild(x)),cc=y,kd=x,dc=!0}function xa(a){return a.preventDefault(),!1}Ps.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)},Ps.prototype.doStart=function(){this.yw.set(this.diagram.firstInput.documentPoint)},Ps.prototype.doStop=function(){this.hideContextMenu(),this.currentObject=null},Ps.prototype.findObjectWithContextMenu=function(a){a===void 0&&(a=null);var y=this.diagram,x=y.lastInput,E=null;if(a instanceof Yt||(a instanceof At?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},Ps.prototype.doActivate=function(){},Ps.prototype.doMouseDown=function(){if(Gr.prototype.doMouseDown.call(this),this.isActive&&this.currentContextMenu instanceof no){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.canStart()&&(a.doActivate(),a.doMouseDown(),a.doDeactivate())}this.diagram.toolManager.mouseDownTools.contains(this)&&ru(this)},Ps.prototype.doMouseUp=function(){if(this.isActive&&this.currentContextMenu instanceof no){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.canStart()&&(a.doActivate(),a.doCancel(),a.doDeactivate())}ru(this)};function ru(a){var y=a.diagram;if(a.isActive){var x=a.currentContextMenu;if(x!==null){var E=null;x instanceof Su||(E=y.ic(y.lastInput.documentPoint,null,null),E!==null&&E.rg(x)&&a.standardMouseClick(null,null)),a.maybeStopTool(E)}}else a.canStart()&&(Qu(a,!0),a.isActive||a.stopTool())}Ps.prototype.maybeStopTool=function(){this.stopTool(),this.canStart()&&(this.diagram.currentTool=this,this.doMouseUp())};function Qu(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=Uh,x===null&&(x=a.findObjectWithContextMenu()),x!==null){var E=x.contextMenu;E!==null?(a.currentObject=x instanceof At?x:null,a.showContextMenu(E,a.currentObject)):y!==null&&a.showContextMenu(y,a.currentObject)}else y!==null&&a.showContextMenu(y,null);a.currentContextMenu instanceof no&&!a.currentContextMenu.visible&&a.stopTool()}}Ps.prototype.doMouseMove=function(){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.doMouseMove(),this.isActive&&this.diagram.toolManager.doMouseMove()},Ps.prototype.showContextMenu=function(a,y){var x=this.diagram;if(a!==this.currentContextMenu&&this.hideContextMenu(),a instanceof no){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 Su&&a.show(y,x,this);this.currentContextMenu=a},Ps.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}},Ps.prototype.hideContextMenu=function(){var a=this.diagram,y=this.currentContextMenu;y!==null&&(y instanceof no?(a.remove(y),this.ht!==null&&this.ht.Jf(y.category),y.data=null,y.adornedObject=null):y instanceof Su&&(y.hide!==null?y.hide(a,this):y.mainElement!==null&&(y.mainElement.style.display="none")),this.currentContextMenu=null,this.standardMouseOver())};function vh(a){var y=new Mn;return y.add(new Nl("Copy",function(x){x.commandHandler.copySelection()},function(x){return x.commandHandler.canCopySelection()})),y.add(new Nl("Cut",function(x){x.commandHandler.cutSelection()},function(x){return x.commandHandler.canCutSelection()})),y.add(new Nl("Delete",function(x){x.commandHandler.deleteSelection()},function(x){return x.commandHandler.canDeleteSelection()})),y.add(new Nl("Paste",function(x){x.commandHandler.pasteSelection(a.mouseDownPoint)},function(x){return x.commandHandler.canPasteSelection(a.mouseDownPoint)})),y.add(new Nl("Select All",function(x){x.commandHandler.selectAll()},function(x){return x.commandHandler.canSelectAll()})),y.add(new Nl("Undo",function(x){x.commandHandler.undo()},function(x){return x.commandHandler.canUndo()})),y.add(new Nl("Redo",function(x){x.commandHandler.redo()},function(x){return x.commandHandler.canRedo()})),y.add(new Nl("Scroll To Part",function(x){x.commandHandler.scrollToPart()},function(x){return x.commandHandler.canScrollToPart()})),y.add(new Nl("Zoom To Fit",function(x){x.commandHandler.zoomToFit()},function(x){return x.commandHandler.canZoomToFit()})),y.add(new Nl("Reset Zoom",function(x){x.commandHandler.resetZoom()},function(x){return x.commandHandler.canResetZoom()})),y.add(new Nl("Group Selection",function(x){x.commandHandler.groupSelection()},function(x){return x.commandHandler.canGroupSelection()})),y.add(new Nl("Ungroup Selection",function(x){x.commandHandler.ungroupSelection()},function(x){return x.commandHandler.canUngroupSelection()})),y.add(new Nl("Edit Text",function(x){x.commandHandler.editTextBlock()},function(x){return x.commandHandler.canEditTextBlock()})),y}Ps.prototype.showDefaultContextMenu=function(){var a=this.diagram;this.jt===null&&(this.jt=vh(this)),cc.innerHTML="",kd.addEventListener("pointerdown",this.tu,!1);var y=this,x=br("ul");x.className="goCXul",cc.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=br("li"),z.className="goCXli";var ee=br("a");ee.className="goCXa",ee.href="#",ee.ky=b.hx,ee.addEventListener("pointerdown",function(re){return this.ky(a),y.stopTool(),re.preventDefault(),!1},!1),ee.textContent=b.text,z.appendChild(ee),x.appendChild(z)}}cc.style.display="block",kd.style.display="block"},Ps.prototype.hideDefaultContextMenu=function(){if(this.currentContextMenu!==null&&this.currentContextMenu===Uh){cc.style.display="none",kd.style.display="none";var a=this.diagram;a!==null&&a.removeEventListener(kd,"pointerdown",this.tu,!1),this.currentContextMenu=null}},It.Object.defineProperties(Ps.prototype,{currentContextMenu:{get:function(){return this.j},set:function(a){this.j=a,this.ht=a instanceof no?a.adornedPart:null}},defaultTouchContextMenu:{get:function(){return dc===!1&&Uh===null&&ua&&Yl(this),Uh},set:function(a){a===null&&(dc=!0),Uh=a}},currentObject:{get:function(){return this.o},set:function(a){this.o=a}},mouseDownPoint:{get:function(){return this.yw}}});var Uh=null,dc=!1,kd=null,cc=null;Ps.className="ContextMenuTool",dr("contextMenuTool",function(){return this.findTool("ContextMenu")},function(a){this.gb("ContextMenu",a,this.mouseUpTools)});function _o(){Gr.call(this),this.name="TextEditing",this.Zh=new zo,this.ia=null,this.V=Bd,this.vj=null,this.qa=Nd,this.u=1,this.F=!0,this.o=null,this.j=new Su,this.kt=null,fc(this,this.j)}Vt(_o,Gr);function fc(a,y){if(ua){var x=br("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(gc)):b==="Tab"?(a.acceptText(af),E.preventDefault()):b==="Escape"&&(a.doCancel(),a.diagram!==null&&a.diagram.doFocus())}},!1),x.addEventListener("focus",function(){if(a.currentTextEditor!==null&&a.state!==Nd){var E=a.kt;a.qa===pc&&(a.qa=mc),typeof E.select=="function"&&a.selectsTextOnActivate&&(E.select(),E.setSelectionRange(0,9999))}},!1),x.addEventListener("blur",function(){if(a.currentTextEditor!==null&&a.state!==Nd){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 zo&&z instanceof _o)if(z.state===vc)x.style.border="3px solid red",x.focus();else{var ee=E.ga(Ln),re=b.position,oe=b.scale,le=E.Df()*oe;le<z.minimumEditorScale&&(le=z.minimumEditorScale);var he=E.naturalBounds.width*le+6,ge=E.naturalBounds.height*le+2,Se=(ee.x-re.x)*oe;ee=(ee.y-re.y)*oe,re=E.verticalAlignment,oe=(E.lineHeight+E.spacingAbove+E.spacingBelow)*E.lineCount*le,ge=re.y*ge-re.y*oe+re.offsetY-(.5*ge-.5*oe)-oe/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*le+"%",x.style.lineHeight="normal",x.style.width=he+"px",x.style.left=(Se-he/2|0)-1+"px",x.style.top=(ee+ge|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=le,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)}}}_o.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a===null||a.isReadOnly||yh&&yh!==this&&(yh.acceptText(xu),yh&&yh!==this)||!a.lastInput.left||this.isBeyondDragSize())return!1;var y=a.ic(a.lastInput.documentPoint);return y!==null&&y instanceof zo&&y.editable&&y.part.canEdit()?(y=y.part,!(y===null||this.starting===Bd&&!y.isSelected||this.starting===sf&&2>a.lastInput.clickCount)):!1},_o.prototype.doStart=function(){yh=this,this.textBlock!==null&&this.doActivate()},_o.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 zo&&(this.textBlock=y,y.part!==null)){a.animationManager.Cc(),this.isActive=!0,this.qa=pc;var x=this.defaultTextEditor;y.textEditor!==null&&(x=y.textEditor),this.Zh=this.textBlock.copy();var E=new vt(this.textBlock.ga(Ti),this.textBlock.ga(An));a.tv(E),x.show(y,a,this),this.currentTextEditor=x}}}},_o.prototype.doCancel=function(){this.stopTool()},_o.prototype.doMouseUp=function(){this.canStart()&&this.doActivate()},_o.prototype.doMouseDown=function(){this.isActive&&this.acceptText(xu)},_o.prototype.acceptText=function(a){switch(a){case xu:this.qa===Td?this.currentTextEditor instanceof HTMLElement&&this.currentTextEditor.focus():(this.qa===pc||this.qa===vc||this.qa===mc)&&(this.qa=gg,fg(this));break;case of:case gc:case af:(gc!==a||this.textBlock.isMultiline!==!0)&&(this.qa===pc||this.qa===vc||this.qa===mc)&&(this.qa=gg,fg(this))}};function fg(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=Td,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=vc,a.doError(b,z))}}_o.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)},_o.prototype.doSuccess=function(a,y){var x=this.textBlock;x.textEdited!==null&&x.textEdited(x,a,y)},_o.prototype.doDeactivate=function(){var a=this.diagram;a!==null&&(this.qa=Nd,this.currentTextEditor!==null&&this.currentTextEditor.hide(a,this),this.textBlock=null,this.isActive=!1)},_o.prototype.doStop=function(){yh=null},_o.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)))},_o.prototype.Lx=function(a){var y=this.Zh;return y.text=a,y.measure(this.textBlock.Ih,1/0),y},It.Object.defineProperties(_o.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)}}}),_o.prototype.measureTemporaryTextBlock=_o.prototype.Lx;var of=new yn(_o,"LostFocus",0),xu=new yn(_o,"MouseDown",1),af=new yn(_o,"Tab",2),gc=new yn(_o,"Enter",3),tv=new yn(_o,"SingleClick",0),Bd=new yn(_o,"SingleClickSelected",1),sf=new yn(_o,"DoubleClick",2),Nd=new yn(_o,"StateNone",0),pc=new yn(_o,"StateActive",1),mc=new yn(_o,"StateEditing",2),gg=new yn(_o,"StateValidating",3),vc=new yn(_o,"StateInvalid",4),Td=new yn(_o,"StateValidated",5),yh=null;_o.className="TextEditingTool",_o.LostFocus=of,_o.MouseDown=xu,_o.Tab=af,_o.Enter=gc,_o.SingleClick=tv,_o.SingleClickSelected=Bd,_o.DoubleClick=sf,_o.StateNone=Nd,_o.StateActive=pc,_o.StateEditing=mc,_o.StateValidating=gg,_o.StateInvalid=vc,_o.StateValidated=Td,dr("textEditingTool",function(){return this.findTool("TextEditing")},function(a){this.gb("TextEditing",a,this.mouseUpTools)});function Js(a){Sc||(pg(),Sc=!0),this.H=Bu,this.Ok=this.zb=this.vq=this.bc=!1,this.Qw=!0,this.Pk=qu,this.Dm=!1,this.Gh=this.Jd=!0,this.Dg=600,this.cw=this.Ow=!1,this.Zd=new ln,this.ce=new rs,this.ce.Yd=this,this.Ei=new ln,this.pu=new ln,this.Sr=new ln,this.pr=new ln,a&&Object.assign(this,a)}Js.prototype.Xe=function(a){this.H=a},Js.prototype.canStart=function(){return!0};function ku(a,y){a.Jd&&a.canStart(y)&&(a.Zd.add(y),a.defaultAnimation.isAnimating&&a.Cc(),os(a.H),a.zb=!0)}function lf(a){if(a.Jd&&a.zb){var y=a.ce,x=a.H,E=a.Zd.contains("Model");E&&(a.Ok=!0,a.Pk===qu?(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===mg&&y.vc.clear(),a.Qw=!!(a.Pk===xc&&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(),Pc(y,x),a.Ok=!1,x.N()):(a.Zd.clear(),x.kg=!1,E=y.vc.get(x),x.autoScale!==ps&&E!==null&&(delete E.start.scale,delete E.end.scale),Xn.requestAnimationFrame(function(){a.zb===!1||y.bc||(x.Gf("temporaryPixelRatio")&&Ns(x),Pg(x),a.zb=!1,y.start(),y.bc&&(Sh(a),x.Ya(),vg(y,0),Sl(x,!0),Xh(a),x.R("AnimationStarting",a)))}))}}function Ju(a){return a.Zd.contains("Trigger")&&a.Zd.count===1}function uf(a,y,x,E){a.isTicking||Ju(a)||y instanceof Kn&&(y.fromNode!==null||y.toNode!==null)||a.ce.add(y,"position",x,E,!1)}Le=Js.prototype,Le.fv=function(a){return this.ce.fv(a)},Le.Xu=function(a){return this.ce.Xu(a)};function hf(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 ee=z.value;if(ee.bc!==!1){e:if(0<ee.yl.count)var re=!0;else{for(re=ee.vc.iterator;re.next();){var oe=re.key;if(oe instanceof At&&oe.diagram!==null||oe instanceof Yt){re=!0;break e}}re=!1}re?wc(ee,!1):ee.Xk=!0}}b.pu.clear(),b.bc!==!1&&(Sh(b),Sl(b.H),Xh(b)),Xn.requestAnimationFrame(x)}}var E=a.Ei,b=a;a.bc?a.Sr.add(y):(a.bc=!0,E.add(y),Xn.requestAnimationFrame(function(){x()}))}function Vp(a){for(a=a.Ei.iterator;a.next();)a.value.Xk=!1}function Sh(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 Xh(a){var y=a.H;y.skipsUndoManager=a.Ow,y.skipsModelSourceBindings=a.cw,a.vq=!1}Le.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(),Pc(y,null),a===!0)for(a=this.Ei.Fa(),y=0;y<a.length;y++)a[y].Ml(!0)}else y.vc.clear(),Pc(y,this.H)},Le.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))},Le.Cj=function(a,y){this.zb&&(this.Zd.contains("Expand Tree")||this.Zd.contains("Expand SubGraph"))&&(this.ce.Cj(a,y),Gs(this,a))},Le.Aj=function(a,y){this.zb&&(this.Zd.contains("Collapse Tree")||this.Zd.contains("Collapse SubGraph"))&&(this.ce.Aj(a,y),xh(this.ce,y,"position",y.position,y.position),Gs(this,a))};function Yp(a,y,x){!a.zb||y.D(x)||Ju(a)||(a.H.pi||(y=x.copy()),xh(a.ce,a.H,"position",y,x))}function df(a,y,x){y.fd&&(y.Tg=x,a.pr.add(y))}function Gs(a,y){for(y=y.findLinksConnected();y.next();){var x=y.value;x.fd&&(x.Tg=x.points.copy(),a.pr.add(x))}}function Qh(a,y,x,E,b){a===null&&(a=[0,0,0,0]),y===null&&(y=[0,0,0,0]);var z=a[0],ee=a[1],re=a[2];a=a[3];var oe=y[0],le=y[1],he=y[2];return y=y[3],re===0||re===100?(z=oe,ee=le):(he===0||he===100)&&(oe=z,le=ee),180<Math.abs(oe-z)&&(oe>z?z+=360:oe+=360),z=b(x,z,oe-z,E)%360,ee=b(x,ee,le-ee,E),re=b(x,re,he-re,E),x=b(x,a,y-a,E),"hsla("+z+", "+ee+"%, "+re+"%, "+x+")"}function pg(){function a(x,E,b,z,ee,re){x.position=new je(z(ee,E.x,b.x-E.x,re),z(ee,E.y,b.y-E.y,re))}var y=new Ut;y.add("position:diagram",a),y.add("position",a),y.add("position:part",function(x,E,b,z,ee,re){ee<re?x.mm(z(ee,E.x,b.x-E.x,re),z(ee,E.y,b.y-E.y,re),!1):x.position=new je(z(ee,E.x,b.x-E.x,re),z(ee,E.y,b.y-E.y,re))}),y.add("location",function(x,E,b,z,ee,re){ee<re?x.mm(z(ee,E.x,b.x-E.x,re),z(ee,E.y,b.y-E.y,re),!0):x.location=new je(z(ee,E.x,b.x-E.x,re),z(ee,E.y,b.y-E.y,re))}),y.add("position:placeholder",function(x,E,b,z,ee,re){ee<re?x.mm(z(ee,E.x,b.x-E.x,re),z(ee,E.y,b.y-E.y,re),!1):x.position=new je(z(ee,E.x,b.x-E.x,re),z(ee,E.y,b.y-E.y,re))}),y.add("position:nodeCollapse",function(x,E,b,z,ee,re){var oe=x.actualBounds,le=b.actualBounds;b=le.x+le.width/2-oe.width/2,oe=le.y+le.height/2-oe.height/2,ee<re?x.mm(z(ee,E.x,b-E.x,re),z(ee,E.y,oe-E.y,re),!1):x.position=new je(z(ee,E.x,b-E.x,re),z(ee,E.y,oe-E.y,re))}),y.add("desiredSize",function(x,E,b,z,ee,re){x.desiredSize=new vt(z(ee,E.width,b.width-E.width,re),z(ee,E.height,b.height-E.height,re))}),y.add("width",function(x,E,b,z,ee,re){x.width=z(ee,E,b-E,re)}),y.add("height",function(x,E,b,z,ee,re){x.height=z(ee,E,b-E,re)}),y.add("fill",function(x,E,b,z,ee,re){x.fill=Qh(E,b,ee,re,z)}),y.add("stroke",function(x,E,b,z,ee,re){x.stroke=Qh(E,b,ee,re,z)}),y.add("strokeWidth",function(x,E,b,z,ee,re){x.strokeWidth=z(ee,E,b-E,re)}),y.add("strokeDashOffset",function(x,E,b,z,ee,re){x.strokeDashOffset=z(ee,E,b-E,re)}),y.add("background",function(x,E,b,z,ee,re){x.background=Qh(E,b,ee,re,z)}),y.add("areaBackground",function(x,E,b,z,ee,re){x.areaBackground=Qh(E,b,ee,re,z)}),y.add("opacity",function(x,E,b,z,ee,re){x.opacity=z(ee,E,b-E,re)}),y.add("scale",function(x,E,b,z,ee,re){x.scale=z(ee,E,b-E,re)}),y.add("angle",function(x,E,b,z,ee,re){x.angle=z(ee,E,b-E,re)}),yc=y}It.Object.defineProperties(Js.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&&Tn(a,">= 1",Js,"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}}}),Js.prototype.stopAnimation=Js.prototype.Cc;var yc=null,Sc=!1,qu=new yn(Js,"Default",1),xc=new yn(Js,"AnimateLocations",2),mg=new yn(Js,"None",3);Js.className="AnimationManager",Js.defineAnimationEffect=function(a,y){Sc||(pg(),Sc=!0),yc.add(a,y)},Js.Default=qu,Js.AnimateLocations=xc,Js.None=mg;function rs(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=Od,this.Wk=this.ho=!1,this.cu=1,this.au=0,this.Gd=this.Dg=NaN,this.gw=0,this.dn=null,this.o=ri,this.vc=new Ut,this.Tt=new Ut,this.yl=new ln,this.Ut=new ln,this.dw=Ch,a&&Object.assign(this,a)}rs.prototype.suspend=function(){this.Xk=!0},rs.prototype.advanceTo=function(a,y){y&&(this.Xk=!1),this.ho&&a>=this.Gd&&(this.Wk=!0,a-=this.Gd),this.gw=a,wc(this,!0),Sh(this.Yd),Sl(this.H),Xh(this.Yd),this.H.redraw()};function Pc(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}Le=rs.prototype,Le.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 Yt?a=x:x instanceof At&&(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===qu&&this===y.defaultAnimation&&(this.Lp=Kp,this.Gd=isNaN(this.Dg)?y.duration===600?900:y.duration:this.Dg),this.dw=a.scrollMode,this.isViewportUnconstrained&&(a.sj=bc),Sh(y),this.yl.each(function(E){E.data=null,a.add(E)}),Xh(y),this.bc=!0,this.Qd=+new Date,this.cn=this.Qd+this.Gd,hf(y,this),this)},Le.Iy=function(a,y){return a.Zc()?(this.yl.add(a),this.H=y,this):this},Le.add=function(a,y,x,E,b){if(y==="position"&&x.Xa(E))return this;if(this.H===null&&(a instanceof Yt?this.H=a:a instanceof At&&a.diagram!==null&&(this.H=a.diagram)),a instanceof Ki){if(!a.isAnimated)return this;y==="position"&&(y="position:part")}return xh(this,a,y,x,E,b),this};function xh(a,y,x,E,b,z){var ee=a.vc;if(y instanceof Yt&&x==="position"&&(x="position:diagram"),(x==="fill"||x==="stroke"||x==="background"||x==="areaBackground")&&(nh(E),lv(),E=[ul.j,ul.u,ul.o,ul.F],nh(b),lv(),b=[ul.j,ul.u,ul.o,ul.F]),ee.contains(y)){var re=ee.I(y),oe=re.start,le=re.end;oe[x]===void 0&&(oe[x]=Jh(E)),le[x]=Jh(b)}else oe={},le={},oe[x]=Jh(E),le[x]=Jh(b),re=oe.position,y instanceof At&&re instanceof je&&!re.w()&&y.diagram.animationManager.Zd.contains("Expand SubGraph")&&re.assign(le.position),re=new qh(oe,le,z),ee.add(y,re);ee=oe[x],ee instanceof je&&!ee.w()&&ee.assign(a.o),z&&x.indexOf("position:")===0&&y instanceof Ki?re.Ku.location=Jh(y.location):z&&(re.Ku[x]=Jh(E))}function Jh(a){return a instanceof je||a instanceof Je?a.copy():a}Le.fv=function(a){return this.bc?(a=this.vc.I(a),a!==null&&a.nv):!1},Le.Xu=function(a){return this.bc?(a=this.vc.I(a),a!==null&&(a.start.position||a.start.location)):!1};function wc(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),Sh(x),vg(a,b),Sl(a.H,!0),Xh(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 vg(a,y){for(var x=a.Gd,E=a.vc.iterator,b=a.Wk;E.next();){var z=E.key;if(!(z instanceof At&&z.diagram===null)){var ee=E.value,re=b?ee.end:ee.start;ee=b?ee.start:ee.end;var oe=yc,le;for(le in ee)le==="position"&&(ee["position:placeholder"]||ee["position:nodeCollapse"])||oe.get(le)===null||oe.get(le)(z,re[le],ee[le],a.Lp,y,x,a)}}}Le.stop=function(){return this.bc?(this.Ml(!0),this):this},Le.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,Sh(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=yc;E.next();){var ee=E.key,re=E.value,oe=b?re.end:re.start,le=b?re.start:re.end,he=re.Ku,ge;for(ge in le)if(z.get(ge)!==null){var Se=ge;!re.Hu||Se!=="position:nodeCollapse"&&Se!=="position:placeholder"||(Se="position"),z.get(Se)(ee,oe[ge],he[ge]!==void 0?he[ge]:re.Hu?oe[ge]:le[ge],this.Lp,this.Gd,this.Gd,this)}re.Hu&&he.location!==void 0&&ee instanceof Ki&&(ee.location=he.location),re.nv&&ee instanceof Ki&&ee.Zb(!1)}if(y.As.clear(),Cc(y,!1),y.Ya(),y.N(),Sl(y,!0),x.defaultAnimation===this){for(ge=x.pr.iterator;ge.next();)b=ge.value,b.Tg!==null&&(b.points=b.Tg,b.Tg=null);x.pr.clear()}Sl(y,!0),this.isViewportUnconstrained&&(y.scrollMode=this.dw),Xh(x),this.au++,!a&&this.cu>this.au?(this.Wk=!1,this.start()):(this.dn&&this.dn(this),Pc(this,null),x.Ml(this),y.$b())}},Le.Cj=function(a,y){var x=y.actualBounds,E=null;if(y instanceof Pr&&(E=y.placeholder),E!==null?(x=E.ga(Ti),E=E.padding,x.x+=E.left,x.y+=E.top,this.add(a,"position",x,a.position,!1)):this.add(a,"position",new je(x.x+x.width/2,x.y+x.height/2),a.position,!1),this.add(a,"scale",.01,a.scale,!1),a instanceof Pr)for(a=a.memberParts;a.next();)E=a.value,E instanceof ui&&this.Cj(E,y)},Le.Aj=function(a,y){if(a.isVisible()){var x=null;if(y instanceof Pr&&(x=y.placeholder),x!==null){var E=x.ga(Ti);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 Pr)for(a=a.memberParts;a.next();)E=a.value,E instanceof ui&&this.Aj(E,y)}},Le.Ez=function(a){var y=this.Tt.get(a);return y===null&&(y={},this.Tt.add(a,y)),y},It.Object.defineProperties(rs.prototype,{duration:{get:function(){return this.Dg},set:function(a){1>a&&Tn(a,">= 1",rs,"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:et("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}}}),rs.prototype.getTemporaryState=rs.prototype.Ez,rs.prototype.stop=rs.prototype.stop,rs.prototype.add=rs.prototype.add,rs.prototype.addTemporaryPart=rs.prototype.Iy;function Od(a,y,x,E){return a/=E/2,1>a?x/2*a*a+y:-x/2*(--a*(a-2)-1)+y}function Kp(a,y,x,E){return a===E?y+x:x*(-Math.pow(2,-10*a/E)+1)+y}rs.className="Animation",rs.EaseLinear=function(a,y,x,E){return x*a/E+y},rs.EaseInOutQuad=Od,rs.EaseInQuad=function(a,y,x,E){return x*(a/=E)*a+y},rs.EaseOutQuad=function(a,y,x,E){return-x*(a/=E)*(a-2)+y},rs.EaseInExpo=function(a,y,x,E){return a===0?y:x*Math.pow(2,10*(a/E-1))+y},rs.EaseOutExpo=Kp;function qh(a,y,x){this.start=a,this.end=y,this.Ku={},this.Hu=x,this.nv=!1}qh.className="AnimationState";function Kl(a,y,x){this.xd=null,this.rf=a,this.so=x||yg,this.uk=null,y!==void 0&&(this.uk=y,x===void 0&&(this.so=$h))}Kl.prototype.copy=function(){var a=new Kl(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 _p(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))}It.Object.defineProperties(Kl.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 yg=new yn(Kl,"Default",1),$h=new yn(Kl,"Immediate",2),Id=new yn(Kl,"Bundled",3);Kl.className="AnimationTrigger",Kl.Default=yg,Kl.Immediate=$h,Kl.Bundled=Id;function Ka(a){rr(this),this.H=null,this.Pa=new Mn,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)}Le=Ka.prototype,Le.clear=function(){for(var a=this.Pa,y=0;y<a.length;y++){var x=a.s[y];x.Ig=null,fs(x)}a.clear(),this.Zq.length=0},Le.Xe=function(a){this.H=a},Le.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,ee=0,re=this.Pa.iterator;re.next();){var oe=re.value;oe instanceof Pr?b++:oe instanceof ui?E++:oe instanceof Kn?z++:oe instanceof no?ee++:x++}if(re="",0<x&&(re+=x+" Parts "),0<E&&(re+=E+" Nodes "),0<b&&(re+=b+" Groups "),0<z&&(re+=z+" Links "),0<ee&&(re+=ee+" Adornments "),1<a)for(a=this.Pa.iterator;a.next();)x=a.value,re+=`
`+x.toString(),E=x.data,E!==null&&_r(E)&&(re+=" #"+_r(E)),x instanceof ui?re+=" "+Cr(E):x instanceof Kn&&(re+=" "+Cr(x.fromNode)+" "+Cr(x.toNode));return y+" "+this.Pa.count+": "+re},Le.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=je.alloc(),z=this.Pa.s,ee=z.length;ee--;){var re=z[ee];if((E!==!0||ud(re)!==!1)&&re.isVisible()&&(b.assign(a),un(b,re.oe),re=re.ic(b,y,x),re!==null&&(y!==null&&(re=y(re)),re!==null&&(x===null||x(re)))))return je.free(b),re}return je.free(b),null},Le.ji=function(a,y,x,E){if(y===void 0&&(y=null),x===void 0&&(x=null),E instanceof Mn||E instanceof ln||(E=new ln),this.Uh===!1)return E;var b=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(b=!0);for(var z=je.alloc(),ee=this.Pa.s,re=ee.length;re--;){var oe=ee[re];if((b!==!0||ud(oe)!==!1)&&oe.isVisible()){z.assign(a),un(z,oe.oe);var le=oe;oe.ji(z,y,x,E)&&(y!==null&&(le=y(le)),le===null||x!==null&&!x(le)||E.add(le))}}return je.free(z),E},Le.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 Mn||b instanceof ln||(b=new ln),this.Uh===!1)return b;var z=!1;this.diagram!==null&&this.diagram.viewportBounds.Re(a)&&(z=!0);for(var ee=this.Pa.s,re=ee.length;re--;){var oe=ee[re];if((z!==!0||ud(oe)!==!1)&&oe.isVisible()){var le=oe;oe.Cf(a,y,x,E,b)&&(y!==null&&(le=y(le)),le===null||x!==null&&!x(le)||b.add(le))}}return b},Le.Nu=function(a,y,x,E,b,z,ee){if(this.Uh===!1)return b;for(var re=this.Pa.s,oe=re.length;oe--;){var le=re[oe];if((ee!==!0||ud(le)!==!1)&&z(le)&&le.isVisible()){var he=le;le.Cf(a,y,x,E,b)&&(y!==null&&(he=y(he)),he===null||x!==null&&!x(he)||b.add(he))}}return b},Le.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 Mn||b instanceof ln)&&(z=b),b=!0),z instanceof Mn||z instanceof ln||(z=new ln),this.Uh===!1)return z;var ee=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(ee=!0);for(var re=je.alloc(),oe=je.alloc(),le=this.Pa.s,he=le.length;he--;){var ge=le[he];if((ee!==!0||ud(ge)!==!1)&&ge.isVisible()){re.assign(a),un(re,ge.oe),oe.h(a.x+y,a.y),un(oe,ge.oe);var Se=ge;ge.og(re,oe,x,E,b,z)&&(x!==null&&(Se=x(Se)),Se===null||E!==null&&!E(Se)||z.add(Se))}}return je.free(re),je.free(oe),z},Le.Fd=function(a,y){if(this.visible){var x=this.Pa.s,E=x.length;if(E!==0){a=mi();for(var b=mi(),z=0;z<E;z++){var ee=x[z];if(ee.vw=z,ee instanceof Kn){if(ee.fd===!1)continue}else if(ee instanceof no&&ee.adornedPart!==null)continue;var re=ee.actualBounds;ee.isVisible()&&fi(re,y)?(ee.Fd(!0),a.push(ee)):(ee.Fd(!1),ee.adornments!==null&&0<ee.adornments.count&&b.push(ee))}for(y=0;y<a.length;y++)for(x=a[y],Rv(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++)Rv(b[y]);sn(a),sn(b)}}};function $u(a,y){var x=1;return a.pb!==1&&(x=y.globalAlpha,y.globalAlpha=x*a.pb),x}Le.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=$u(this,a);var z=this.Zq;z.length=0;for(var ee=y.scale,re=vt.alloc(),oe=0;oe<E;oe++)this.Oj(a,x[oe],y,z,ee,re,!0);if(vt.free(re),a.isTemporary)for(y=0;y<E;y++)x[y].Gj();a.globalAlpha=b}}};function Up(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 ee=$u(a,y),re=a.Zq;re.length=0;for(var oe=x.scale,le=vt.alloc(),he=0;he<z;he++){var ge=b[he];E.contains(ge)&&a.Oj(y,ge,x,re,oe,le,!1)}vt.free(le),y.globalAlpha=ee}}}Le.Oj=function(a,y,x,E,b,z,ee){if(ee&&!ud(y))a.Hs(y);else{if(E!==null&&y instanceof Kn&&(y.isOrthogonal&&E.push(y),y.fd===!1)){a.Hs(y);return}for(ee=!1,E=y.containingGroup;E!==null;)ee?E.tb!==null&&z.Ex(E.tb):E.tb!==null&&(ee=!0,z.assign(E.tb)),E=E.containingGroup;var re=y.actualBounds;if(E=!1,ee&&y.isVisible()){if(!z.Yc(re)){a.Hs(y);return}E=!z.Re(re)}E&&(a.save(),a instanceof qs?a.bk=z.copy():(a.beginPath(),a.rect(z.x,z.y,z.width,z.height),a.clip())),re.width*b>x.Oq||re.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&&(da(y,a,y.areaBackground,!0,!0,z,b),a.fillRect(b.x,b.y,b.width,b.height)),y.areaBackground===null&&y.background===null&&(da(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),da(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))}},Le.g=function(a,y,x,E,b){var z=this.diagram;z!==null&&z.cb(Io,a,this,y,x,E,b)},Le.oi=function(a,y,x){var E=this.Pa;if(y.Ig=this,this===null&&fs(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)),cf(this,a,y),a},Le.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,fs(y),a};function cf(a,y,x){if(y=Xp(a,y,x),x instanceof Pr&&x!==null&&isNaN(x.zOrder)){if(x.memberParts.count!==0){for(var E=-1,b=a.Pa.s,z=b.length,ee=0;ee<z;ee++){var re=b[ee];if(re===x&&(y=ee,0<=E)||0>E&&re.containingGroup===x&&(E=ee,0<=y))break}!(0>E)&&E<y&&(b=a.Pa,b.mb(y),b.Gb(E,x))}y=x.containingGroup,y!==null&&cf(a,-1,y)}x.svg!==null&&x.svg.remove()}function Xp(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,ee=NaN;0<=z&&(ee=a.M(z).zOrder,!!isNaN(ee));)z--;for(var re=y+1,oe=NaN;re<b&&(oe=a.M(re).zOrder,!!isNaN(oe));)re++;if(!isNaN(ee)&&ee>E)for(;;){if(z===-1||ee<=E){if(z++,z===y)break;return a.mb(y),a.Gb(z,x),z}for(ee=NaN;0<=--z&&(ee=a.M(z).zOrder,isNaN(ee)););}else if(!isNaN(oe)&&oe<E)for(;;){if(re===b||oe>=E){if(re--,re===y)break;return a.mb(y),a.Gb(re,x),re}for(oe=NaN;++re<b&&(oe=a.M(re).zOrder,isNaN(oe)););}return y}It.Object.defineProperties(Ka.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===""&&et("Cannot rename default Layer to: "+a),x=x.layers;x.next();)x.value.name===a&&et("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)&&Tn(a,"0 <= value <= 1",Ka,"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))}}}),Ka.prototype.findObjectsNear=Ka.prototype.og,Ka.prototype.findObjectsIn=Ka.prototype.Cf,Ka.prototype.findObjectsAt=Ka.prototype.ji,Ka.prototype.findObjectAt=Ka.prototype.ic,Ka.className="Layer";function Yt(a,y){if(u0||(ds(),u0=!0),rr(this),Bu=this,this.vb=!0,this.Ka=null,this.ya=this.Aa=0,this.ta=null,ua){var x=this,E=function(){x.removeEventListener(Xn.document,"DOMContentLoaded",E,!1),x.setRTL()};Xn.document.body!==null?this.setRTL():x.addEventListener(Xn.document,"DOMContentLoaded",E,!1)}this.ol=null,Cf.add("Model",Po);var b=this;return this.Hb=function(z){var ee=b.partManager;if(z.model===ee.diagram.model&&ee.diagram.aa){ee.diagram.aa=!1;try{var re=z.change;z.modelChange===""&&re===Io&&ee.updateDataBindings(z.object,z.propertyName)}finally{ee.diagram.aa=!0}}},this.Oc=function(z){b.partManager.doModelChanged(z)},this.hu=this.ku=null,Qp(this),this.model=cy(),this.Wg=!0,qp(this),this.layout=new $o,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 h0,a!==void 0&&(typeof a=="string"||Xn.Element&&a instanceof Element?xg(this,a):y=a),this.vb=!1,y&&this.nm(y),this}var ed,Bu;function Qp(a){a.Yd=new Js,a.Yd.Xe(a),a.Db=17,a.Gw=!1,a.tn=!1,a.bu="default",a.Wa=new Mn,a.pj=new Ut,a.nl="default",a.Tx(),a.Sx(),a.pb=1,a.pa=new je(NaN,NaN).freeze(),a.du=new je(NaN,NaN),a.Ca=1,a.Pp=1,a.zt=new je(NaN,NaN).freeze(),a.At=NaN,a.Ot=1e-4,a.Mt=100,a.Ab=new di,a.zu=new je(NaN,NaN).freeze(),a.ut=new vt(NaN,NaN,NaN,NaN).freeze(),a.rj=new Pi(0,0,0,0).freeze(),a.sj=Ch,a.nu=!1,a.Zt=null,a.fu=null,a.yh=ps,a.zk=Eo,a.Fg=ps,a.pq=Eo,a.yt=Ti,a.Bt=Ti,a.Fc=!0,a.pn=!1,a.De=new ln,a.Eh=new Ut,a.Xm=!0,a.vp=250,a.vk=-1,a.xp=new Pi(16,16,16,16).freeze(),a.kg=!1,a.Jk=!1,a.fn=!0,a.bq=new Ta,a.bq.diagram=a,a.Qg=new Ta,a.Qg.diagram=a,a.cj=new Ta,a.cj.diagram=a,a.zg=null,a.pf=null,a.qu=!1,iv(a),a.ai=new ln,a.Ht=!0,a.uu=Eh,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 Ut,a.Xn=new Mn,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 Pi(5).freeze(),a.Hw=new ln().freeze(),a.Nt=999999999,a.nw=new ln().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 ln,a.ow=new ln,a.Xh=null,a.aw=new Je(8,8),a.bw=999,a.Bw=1,a.Jw=0,a.fc={scale:1,position:new je,bounds:new vt,Py:new Je,bA:new Je,Oz:!1},a.fc.canvasSize=a.fc.Py,a.fc.newCanvasSize=a.fc.bA,a.fc.isScroll=!1,a.Rw=new vt(NaN,NaN,NaN,NaN).freeze(),a.wo=new Je(NaN,NaN).freeze(),a.Sp=new vt(NaN,NaN,NaN,NaN).freeze(),a.It=!1,a.Lg=new Ut;var y=new ui,x=new zo;x.bind(new Pa("text","",Cr)),y.add(x),a.ny=y,a.Lg.add("",y),y=new ui,x=new zo,x.stroke="brown",x.bind(new Pa("text","",Cr)),y.add(x),a.Lg.add("Comment",y),y=new ui,y.selectable=!1,y.avoidable=!1,x=new Lr,x.figure="Ellipse",x.fill="black",x.stroke=null,x.desiredSize=new Je(3,3).ja(),y.add(x),a.Lg.add("LinkLabel",y),a.Yi=new Ut,y=new Pr,y.selectionObjectName="GROUPPANEL",y.type=Rn.Vertical,x=new zo,x.font="bold 12pt sans-serif",x.bind(new Pa("text","",Cr)),y.add(x),x=new Rn(Rn.Auto),x.name="GROUPPANEL";var E=new Lr;E.figure="Rectangle",E.fill="rgba(128,128,128,0.2)",E.stroke="black",x.add(E),E=new As,E.padding=new Pi(5,5,5,5).ja(),x.add(E),y.add(x),a.ly=y,a.Yi.add("",y),a.Kh=new Ut,y=new Kn,x=new Lr,x.isPanelMain=!0,y.add(x),x=new Lr,x.toArrow="Standard",x.fill="black",x.stroke=null,x.strokeWidth=0,y.add(x),a.my=y,a.Kh.add("",y),y=new Kn,x=new Lr,x.isPanelMain=!0,x.stroke="brown",y.add(x),a.Kh.add("Comment",y),y=new no,y.type=Rn.Auto,x=new Lr,x.fill=null,x.stroke="dodgerblue",x.strokeWidth=3,y.add(x),x=new As,x.margin=new Pi(1.5,1.5,1.5,1.5).ja(),y.add(x),a.St=y,a.wt=y,y=new no,y.type=Rn.Link,x=new Lr,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 Po,a.toolManager=new Ao,a.toolManager.initializeStandardTools(),a.defaultTool=a.toolManager,a.currentTool=a.defaultTool,a.nt=null,a.Wm=new ae,a.Vt=null,a.Wt=null,a.Mr=!1,a.commandHandler=Jp(),a.eq=null,a.fq=Wt,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 je,a.zy=500,a.wp=new je,a.wq=!1}Yt.prototype.clear=function(){this.animationManager.Cc(),this.model.clear(),Gd=null,od="",Sg(this,!1),this.Xn.clear(),If(),this.Og.clear(),this.Xh=null,this.Ya(),this.Va(),this.N()};function Sg(a,y){a.animationManager.Cc(!0),a.Hw=new ln().freeze(),a.nw=new ln().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=[],ee=a.Wa.length;if(y){for(y=0;y<ee;y++)for(var re=a.Wa.s[y].parts;re.next();){var oe=re.value;oe!==b&&oe.data===null&&z.push(oe)}for(y=0;y<z.length;y++)a.remove(z[y])}for(y=0;y<ee;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(),If(),a.Og.clear(),fo=[],b!==null&&(a.add(b),a.partManager.parts.remove(b)),E&&(a.skipsUndoManager=x),z}function Jp(){return null}Yt.prototype.reset=function(){this.clear(),this.vb=!0,Qp(this),wu(this),this.Wg=!0,qp(this),this.layout=new $o,this.Wg=!1,this.model=cy(),this.model.undoManager=new Qo,this.vb=this.rn=!1,this.N()},Yt.prototype.setRTL=function(a){a=a===void 0?this.div:a,a===null&&(a=Xn.document.body);var y=br("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},Yt.prototype.setScrollWidth=function(a){a=a===void 0?this.div:a,a===null&&(a=Xn.document.body);var y=0;if(ua){var x=l0;y=ed,x===null&&(x=l0=br("p"),x.style.width="100%",x.style.height="200px",x.style.boxSizing="content-box",y=ed=br("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||jr||(y=11)}this.Db=y,this.Gw=!0},Yt.prototype.qb=function(a){a.classType===Yt&&(this.autoScale=a)},Yt.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 xg(a,y){if(ua){if(y!=null||et("Diagram setup requires an argument DIV."),a.Ka!==null&&et("Diagram has already completed setup."),typeof y=="string"?a.Ka=Xn.document.getElementById(y):y instanceof HTMLDivElement?a.Ka=y:et("No DIV or DIV id supplied: "+y),a.Ka===null&&et("Invalid DIV id; could not get element with id: "+y),a.Ka.H!==void 0&&et("Invalid div id; div already has a Diagram associated with it."),!a.ol&&Xn.ResizeObserver){var x=ur(function(){a.$b()},250);a.ol=new Xn.ResizeObserver(function(){x()}),a.ol.observe(a.Ka)}Xn.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=Xn.go;var b=new Il(a);if(b.style!==void 0&&(b.style.position="absolute",b.style.top="0px",b.style.left="0px",Xn.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),Lg(a,a.Aa,a.ya),a.Ka.insertBefore(b.Oa,a.Ka.firstChild),b=new Il(null),b.width=1,b.height=1,a.jw=b,a.oy=b.context,ua){b=br("div");var z=br("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=e0,b.addEventListener("pointerdown",t0),b.H=a,b.uy=!0,b.vy=!0,a.ku=b,a.hu=z}a.hk=ur(function(){a.Yh=null,a.N()},300),a.Ov=ur(function(){Pg(a)},250),a.preventDefault=function(ee){return ee.preventDefault(),!1},a.$j=function(ee){if(a.isEnabled){var re=yl(a,ee,!0);re.bubbles=!0;var oe=0,le=0;re.delta=0,ee.deltaX!==void 0?(ee.deltaX!==0&&(oe=0<ee.deltaX?1:-1),ee.deltaY!==0&&(le=0<ee.deltaY?1:-1),re.delta=Math.abs(ee.deltaX)>Math.abs(ee.deltaY)?-oe:-le):ee.wheelDeltaX!==void 0?(ee.wheelDeltaX!==0&&(oe=0<ee.wheelDeltaX?-1:1),ee.wheelDeltaY!==0&&(le=0<ee.wheelDeltaY?-1:1),re.delta=Math.abs(ee.wheelDeltaX)>Math.abs(ee.wheelDeltaY)?-oe:-le):ee.wheelDelta!==void 0&&ee.wheelDelta!==0&&(re.delta=0<ee.wheelDelta?1:-1),a.doMouseWheel(),_l(re,ee)}},a.aA=function(ee){a.isEnabled&&(a.Vk=!1,yl(a,ee,!0),ee=a.currentTool,ee.cancelWaitAfter(),ee.standardMouseOver())},a.ui=function(ee){if(a.isEnabled){a.Vk=!0;var re=a.Yt;re[ee.pointerId]===void 0&&(re[ee.pointerId]=ee),re=a.oj;var oe=!1;if(re[0]===null||re[0].pointerId!==ee.pointerId&&re[0].pointerType===ee.pointerType)if(re[1]!==null&&re[1].pointerId===ee.pointerId)re[1]=ee,oe=!0;else if(re[0]===null)re[0]=ee;else if(re[1]===null)re[1]=ee,oe=!0;else{ee.preventDefault();return}else re[0]=ee;(re=ee.pointerType==="touch"||ee.pointerType==="pen")&&(a.qu=!1,a.wq=!0);var le=oe;oe=Ag(a,ee,!0,!1,!0,le),jd(a,ee,oe),oe.targetDiagram=Eg(ee,ee.target),oe.targetObject=null,le||oe.clone(a.bq),le=a.uw,re=re?25:10,ee.timeStamp-a.tw<a.zy&&!(Math.abs(le.x-ee.screenX)>re||Math.abs(le.y-ee.screenY)>re)?a.yq++:a.yq=1,oe.clickCount=a.yq,a.tw=ee.timeStamp,a.uw.sg(ee.screenX,ee.screenY),a.doMouseDown(),ee.button===1?ee.preventDefault():_l(oe,ee)}},a.dk=function(ee){if(a.isEnabled){a.Vk=!0;var re=a.oj;if(re[0]===null||re[0].pointerId!==ee.pointerId&&re[0].pointerType===ee.pointerType){if(re[1]!==null&&re[1].pointerId===ee.pointerId){re[1]=ee;return}if(re[0]===null)re[0]=ee;else return}else re[0]=ee;if(re[0].pointerId===ee.pointerId){re=Ag(a,ee,!1,!1,!1,re[1]!==null);var oe=Xn.document.elementFromPoint(ee.clientX,ee.clientY)||null;oe!==null&&oe.shadowRoot!==void 0&&oe.shadowRoot!==null&&(oe=oe.shadowRoot.elementFromPoint(ee.clientX,ee.clientY));var le=a,he=ee;oe&&oe.H&&(he=ee,le=oe.H),re.targetDiagram=le,jd(a,he,re),re.targetObject=null,a.doMouseMove(),_l(re,ee)}}},a.fk=function(ee){if(a.isEnabled){a.Vk=!0;var re=ee.pointerType==="touch"||ee.pointerType==="pen",oe=a.Yt;if(re&&a.qu)delete oe[ee.pointerId],ee.preventDefault();else if(oe=a.oj,oe[0]===null||oe[0].pointerId!==ee.pointerId&&oe[0].pointerType===ee.pointerType)oe[1]!==null&&oe[1].pointerId===ee.pointerId&&(oe[1]=null);else{oe[0]=null,oe=Ag(a,ee,!1,!0,!0,!1);var le=Xn.document.elementFromPoint(ee.clientX,ee.clientY)||null;le!==null&&le.shadowRoot!==void 0&&le.shadowRoot!==null&&(le=le.shadowRoot.elementFromPoint(ee.clientX,ee.clientY)),le!==null&&le.H instanceof Yt&&le.H!==a&&jd(le.H,ee,oe),le===null&&(le=ee.target),jd(a,ee,oe),oe.clickCount=a.yq,oe.targetDiagram=Eg(ee,le),oe.targetObject=null,a.doMouseUp(),_l(oe,ee),re&&(a.wq=!1)}}},a.ek=function(ee){if(a.isEnabled){a.Vk=!1;var re=a.Yt;re[ee.pointerId]&&delete re[ee.pointerId],re=a.oj,re[0]!==null&&re[0].pointerId===ee.pointerId&&(re[0]=null),re[1]!==null&&re[1].pointerId===ee.pointerId&&(re[1]=null),ee.pointerType!=="touch"&&ee.pointerType!=="pen"&&(ee=a.currentTool,ee.cancelWaitAfter(),ee.standardMouseOver())}},a.ck=function(ee){var re=a.oj;re[0]!==null&&re[0].pointerId===ee.pointerId?(re[0]=null,a.wq=!1):re[1]!==null&&re[1].pointerId===ee.pointerId&&(re[1]=null)},a.Vp=E.Z["d"+kc[1]+kc[2]+"wI"+Yd.slice(1,5)]["b"+zx.slice(1,y)](E.Z,Dc,y,y),E.Vc(!0),nv(a),a.nl==="svg"&&(y=a.pj.get("svg"),a.Ka.appendChild(y.Oa),a.ib=y.context)}}Yt.prototype.addEventListener=function(a,y,x,E){a.addEventListener(y,x,{capture:E,passive:!1})},Yt.prototype.removeEventListener=function(a,y,x,E){a.removeEventListener(y,x,{capture:E})};function nv(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(Xn,"resize",a.Ov,!1)}function Ns(a){30<a.Sq&&(a.Yh=1)}function Cc(a,y){a.Yh!==null&&(a.Yh=null,y&&a.hk(),Xi&&Xi.nx||(a.Sq=0,a.zw=[0,0,0,0,0],a.Tq=0))}Yt.prototype.computePixelRatio=function(){return this.Yh!==null?this.Yh:Xn.devicePixelRatio||1},Yt.prototype.doMouseMove=function(){this.currentTool.doMouseMove()},Yt.prototype.doMouseDown=function(){this.currentTool.doMouseDown()},Yt.prototype.doMouseUp=function(){this.currentTool.doMouseUp()},Yt.prototype.doMouseWheel=function(){this.currentTool.doMouseWheel()},Yt.prototype.doKeyDown=function(){this.currentTool.doKeyDown()},Yt.prototype.doKeyUp=function(){this.currentTool.doKeyUp()},Yt.prototype.doFocus=function(){this.focus()},Yt.prototype.focus=function(){if(this.ta)if(this.scrollsPageOnFocus)this.ta.focus();else{var a=Xn.scrollX||Xn.pageXOffset,y=Xn.scrollY||Xn.pageYOffset;this.ta.focus(),Xn.scrollTo(a,y)}},Yt.prototype.Oy=function(){this.H.R("GainedFocus")},Yt.prototype.Ny=function(){this.H.R("LostFocus")};function Pg(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===ps&&(a.Jk=!0,y.C()),a.ld||a.$b())}}}function qp(a){var y=new Ka;y.name="Background",a.Al(y),y=new Ka,y.name="",a.Al(y),y=new Ka,y.name="Foreground",a.Al(y),y=new Ka,y.name="Adornment",y.isTemporary=!0,y.isInDocumentBounds=!1,a.Al(y),y=new Ka,y.name="Tool",y.isTemporary=!0,y.isInDocumentBounds=!0,a.Al(y),y=new Ka,y.name="Grid",y.allowSelect=!1,y.pickable=!1,y.isTemporary=!0,y.isInDocumentBounds=!1,a.Ww(y,a.Qj("Background"))}function $p(a){var y=new Rn(Rn.Grid);y.name="GRID";var x=new Lr;return x.figure="LineH",x.stroke="lightgray",x.strokeWidth=.5,x.interval=1,y.add(x),x=new Lr,x.figure="LineH",x.stroke="gray",x.strokeWidth=.5,x.interval=5,y.add(x),x=new Lr,x.figure="LineH",x.stroke="gray",x.strokeWidth=1,x.interval=10,y.add(x),x=new Lr,x.figure="LineV",x.stroke="lightgray",x.strokeWidth=.5,x.interval=1,y.add(x),x=new Lr,x.figure="LineV",x.stroke="gray",x.strokeWidth=.5,x.interval=5,y.add(x),x=new Lr,x.figure="LineV",x.stroke="gray",x.strokeWidth=1,x.interval=10,y.add(x),x=new Ki,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 e0(){this.H.gu?this.H.gu=!1:this.H.isEnabled?this.H.kx(this):Wd(this.H)}function t0(a){this.H.isEnabled?(this.H.lu=a.target.scrollTop,this.H.ju=a.target.scrollLeft):Wd(this.H)}Yt.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,ee=E.x-z.left,re=E.y-z.top,oe=E.width+z.left+z.right,le=E.height+z.top+z.bottom,he=E.right+z.right;z=E.bottom+z.bottom;var ge=b.x;E=b.y;var Se=b.width,Pe=b.height,Ae=b.right,Be=b.bottom;b=this.scale;var Qe=a.scrollLeft;if(this.tn)switch(this.bu){case"negative":Qe=Qe+a.scrollWidth-a.clientWidth;break;case"reverse":Qe=a.scrollWidth-Qe-a.clientWidth}var Ke=Qe;Se<oe||Pe<le?(Qe=je.allocAt(this.position.x,this.position.y),this.allowHorizontalScroll&&this.ju!==Ke&&(Qe.x=Ke/b+ee,this.ju=Ke),this.allowVerticalScroll&&this.lu!==a.scrollTop&&(Qe.y=a.scrollTop/b+re,this.lu=a.scrollTop),this.position=Qe,je.free(Qe),this.Ee=this.qr=!1):(Qe=je.alloc(),a.uy&&this.allowHorizontalScroll&&(ee<ge&&(this.position=Qe.h(Ke+ee,this.position.y)),he>Ae&&(this.position=Qe.h(-(y.scrollWidth-this.Aa)+Ke-this.Aa/b+he,this.position.y))),a.vy&&this.allowVerticalScroll&&(re<E&&(this.position=Qe.h(this.position.x,a.scrollTop+re)),z>Be&&(this.position=Qe.h(this.position.x,-(y.scrollHeight-this.ya)+a.scrollTop-this.ya/b+z))),je.free(Qe),this.vd=!0,this.Ee=this.qr=!1,E=this.documentBounds,b=this.viewportBounds,he=E.right,Ae=b.right,z=E.bottom,Be=b.bottom,ee=E.x,ge=b.x,re=E.y,E=b.y,Se>=oe&&ee>=ge&&he<=Ae&&(x.style.width="1px"),Pe>=le&&re>=E&&z<=Be&&(x.style.height="1px"))}},Yt.prototype.computeBounds=function(a){return a===void 0&&(a=new vt),os(this),wg(this,a)};function wg(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 ee=E[z];if(ee.visible&&ee.isInDocumentBounds){ee=ee.Pa.s;for(var re=ee.length,oe=0;oe<re;oe++){var le=ee[oe];le.isInDocumentBounds&&le.isVisible()&&(le=le.actualBounds,le.w()&&(x?(x=!1,y.assign(le)):y.ed(le)))}}}return x&&y.h(0,0,0,0),y.Co(a.yb),y}Yt.prototype.computePartsBounds=function(a,y){y===void 0&&(y=!1);var x=null;if(Gn(a))for(var E=0;E<a.length;E++){var b=a[E];!y&&b instanceof Kn||(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 Kn||(E.Va(),x===null?x=E.actualBounds.copy():x.ed(E.actualBounds));return x===null?new vt(NaN,NaN,0,0):x};function Tl(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=je.alloc(),x.xi(a.documentBounds,a.initialDocumentSpot);var E=a.viewportBounds;E=vt.allocAt(0,0,E.width,E.height);var b=je.alloc();b.xi(E,a.initialViewportSpot),b.h(x.x-b.x,x.y-b.y),a.position=b,vt.free(E),je.free(b),je.free(x)}x=a.yh,y&&a.Fg!==ps&&(x=a.Fg);var z=x!==ps?Rd(a,x):a.scale;x=a.pa.x,E=a.pa.y,b=a.Aa/z;var ee=a.ya/z,re=a.zk,oe=a.pq;y&&!re.sb()&&(oe.sb()||oe.Xb())&&(re=oe.Xb()?Ln:oe),Cg(a,a.documentBounds,b,ee,re,y),y=a.scale,a.scale=z,a.vb=!1,z=a.viewportBounds,St.B(z.x,x)&&St.B(z.y,E)&&St.B(z.width,b)&&St.B(z.height,ee)||a.onViewportBoundsChanged(new vt(x,E,b,ee),z,y,!1)}}function Rd(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),ee=a.ya+(a.Be?a.Db:0),re=z/b,oe=ee/E;return y===al?(y=Math.min(oe,re),y>x&&(y=x),y<a.minScale&&(y=a.minScale),y>a.maxScale&&(y=a.maxScale),y):y===ad?(y=oe>re?(ee-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}Yt.prototype.zoomToFit=function(){var a=this.sj;this.sj=Ch,this.scale=Rd(this,al),a!==Ch&&(Tl(this,!1),Cg(this,this.documentBounds,this.Aa/this.Ca,this.ya/this.Ca,this.zk,!1)),this.sj=a},Le=Yt.prototype,Le.BA=function(a,y){y===void 0&&(y=al);var x=a.width,E=a.height;if(!(x===0||E===0||isNaN(x)&&isNaN(E))){var b=1;if(y===al||y===ad)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===ad?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 je(a.x,a.y)}},Le.Jy=function(a,y){this.Va();var x=this.documentBounds,E=this.viewportBounds;this.position=new je(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))},Le.zz=function(a){if(a instanceof At){this.eq=a;var y=je.alloc();this.fq=this.op(a.ga(Ti,y)),je.free(y)}else this.eq=null,this.fq=Wt};function Cg(a,y,x,E,b,z){var ee=je.allocAt(a.pa.x,a.pa.y),re=ee.x,oe=ee.y;if(a.eq!==null){var le=je.alloc();le=a.eq.ga(Ti,le),re=le.x-a.fq.x/a.scale,oe=le.y-a.fq.y/a.scale,b=Mi,je.free(le)}(z||a.scrollMode===Ch)&&(b.sb()&&(x>y.width&&(re=y.x+(b.x*y.width+b.offsetX)-(b.x*x-b.offsetX)),E>y.height&&(oe=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?(re=Math.min(re+x/2,y.right+Math.max(z,b.right)-x/2),re=Math.max(re,y.left-Math.max(z,b.left)+x/2),re-=x/2):re>y.left?re=y.left:re<y.right-x&&(re=y.right-x),x=E-y.height,E<y.height+b.top+b.bottom?(oe=Math.min(oe+E/2,y.bottom+Math.max(x,b.bottom)-E/2),oe=Math.max(oe,y.top-Math.max(x,b.top)+E/2),oe-=E/2):oe>y.top?oe=y.top:oe<y.bottom-E&&(oe=y.bottom-E)),ee.x=isFinite(re)?re:-a.yb.left,ee.y=isFinite(oe)?oe:-a.yb.top,a.positionComputation!==null&&(y=a.positionComputation(a,ee),ee.x=y.x,ee.y=y.y),Yp(a.Yd,a.pa,ee),a.pa.h(ee.x,ee.y),wu(a),je.free(ee)}Le.Ol=function(a,y){if(y===void 0&&(y=!0),y){if(a=Nu(this,a,function(x){return x.part},function(x){return x.canSelect()}),a instanceof Ki)return a}else if(a=Nu(this,a,function(x){return x.part}),a instanceof Ki)return a;return null},Le.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 Nu(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}Le.lz=function(a,y,x){return y===void 0&&(y=!0),Ec(this,a,function(E){return E.part},y?function(E){return E instanceof Ki&&E.canSelect()}:null,x)};function Ec(a,y,x,E,b){for(x===void 0&&(x=null),E===void 0&&(E=null),b instanceof Mn||b instanceof ln||(b=new ln),os(a),a=a.Wa.iteratorBackwards;a.next();){var z=a.value;z.visible&&!z.isTemporary&&z.ji(y,x,E,b)}return b}Le.ji=function(a,y,x,E){y===void 0&&(y=null),x===void 0&&(x=null),E instanceof Mn||E instanceof ln||(E=new ln),os(this);for(var b=this.Wa.iteratorBackwards;b.next();){var z=b.value;z.visible&&z.ji(a,y,x,E)}return E},Le.ux=function(a,y,x,E){return y===void 0&&(y=!1),x===void 0&&(x=!0),ff(this,a,function(b){return b instanceof Ki&&(!x||b.canSelect())},y,E)},Le.Cf=function(a,y,x,E,b){y===void 0&&(y=null),x===void 0&&(x=null),E===void 0&&(E=!1),b instanceof Mn||b instanceof ln||(b=new ln),os(this);for(var z=this.Wa.iteratorBackwards;z.next();){var ee=z.value;ee.visible&&ee.Cf(a,y,x,E,b)}return b},Le.Nu=function(a,y,x,E,b,z){var ee=new ln;os(this);for(var re=this.Wa.iteratorBackwards;re.next();){var oe=re.value;oe.visible&&oe.Nu(a,y,x,E,ee,b,z)}return ee};function ff(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 Mn||b instanceof ln||(b=new ln),os(a),a=a.Wa.iteratorBackwards;a.next();){var ee=a.value;ee.visible&&!ee.isTemporary&&ee.Cf(y,z,x,E,b)}return b}Le.mz=function(a,y,x,E,b){return x===void 0&&(x=!0),E===void 0&&(E=!0),Ac(this,a,y,function(z){return z instanceof Ki&&(!E||z.canSelect())},x,b)},Le.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 Mn||b instanceof ln)&&(z=b),b=!0),z instanceof Mn||z instanceof ln||(z=new ln),os(this);for(var ee=this.Wa.iteratorBackwards;ee.next();){var re=ee.value;re.visible&&re.og(a,y,x,E,b,z)}return z};function Ac(a,y,x,E,b,z){var ee=null;for(ee===void 0&&(ee=null),E===void 0&&(E=null),b===void 0&&(b=!0),b!==!1&&b!==!0&&((b instanceof Mn||b instanceof ln)&&(z=b),b=!0),z instanceof Mn||z instanceof ln||(z=new ln),os(a),a=a.Wa.iteratorBackwards;a.next();){var re=a.value;re.visible&&!re.isTemporary&&re.og(y,x,ee,E,b,z)}return z}Yt.prototype.acceptEvent=function(a){return yl(this,a,a instanceof MouseEvent)};function yl(a,y,x){var E=a.Qg;return a.Qg=a.cj,a.cj=E,E.diagram=a,E.event=y,x?jd(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),jr&&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=Eg(y,y.target),E.targetObject=null,E}function Eg(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 Ag(a,y,x,E,b,z){var ee=a.Qg;return a.Qg=a.cj,a.cj=ee,ee.diagram=a,ee.clickCount=1,a=ee.delta=0,y.ctrlKey&&(a+=1),y.altKey&&(a+=2),y.shiftKey&&(a+=4),y.metaKey&&(a+=8),ee.modifiers=a,ee.event=y,ee.timestamp=y.timeStamp,ee.button=y.button,ee.buttons=y.buttons,jr&&y.button===0&&y.ctrlKey&&(ee.button=2),ee.down=x,ee.up=E,ee.handled=!1,ee.bubbles=b,ee.isMultiTouch=z,ee}function _l(a,y){return a.bubbles?!0:(y.stopPropagation!==void 0&&y.stopPropagation(),y.cancelable!==!1&&y.preventDefault(),y.cancelBubble=!0,!1)}Yt.prototype.Qz=function(a){var y=this.H;if(!this.H.isEnabled)return!1;var x=yl(y,a,!1);switch(x.key=String.fromCharCode(a.which),x.down=!0,a.which){case 8:x.key="Backspace";break;case 33:x.key="PageUp";break;case 34:x.key="PageDown";break;case 35:x.key="End";break;case 36:x.key="Home";break;case 37:x.key="Left";break;case 38:x.key="Up";break;case 39:x.key="Right";break;case 40:x.key="Down";break;case 45:x.key="Insert";break;case 46:x.key="Del";break;case 48:x.key="0";break;case 187:case 61:case 107:x.key="Add";break;case 189:case 173:case 109:x.key="Subtract";break;case 27:x.key="Esc"}return y.doKeyDown(),_l(x,a)},Yt.prototype.Rz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=yl(y,a,!1);switch(x.key=String.fromCharCode(a.which),x.up=!0,a.which){case 8:x.key="Backspace";break;case 33:x.key="PageUp";break;case 34:x.key="PageDown";break;case 35:x.key="End";break;case 36:x.key="Home";break;case 37:x.key="Left";break;case 38:x.key="Up";break;case 39:x.key="Right";break;case 40:x.key="Down";break;case 45:x.key="Insert";break;case 46:x.key="Del"}return y.doKeyUp(),_l(x,a)},Yt.prototype.bz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=yl(y,a,!0);return y.mouseEnter!==null&&y.mouseEnter(x),y.currentTool.standardMouseOver(),_l(x,a)},Yt.prototype.cz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=yl(y,a,!0);return y.mouseLeave!==null&&y.mouseLeave(x),_l(x,a)},Yt.prototype.getMouse=function(a){var y=this.ta;if(y===null)return new je(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?un(new je(y,a),this.Ab):new je(y,a)};function jd(a,y,x){var E=a.ta,b=a.Aa,z=a.ya,ee=0,re=0;E!==null&&(E=E.getBoundingClientRect(),ee=y.clientX-b/E.width*E.left,re=y.clientY-z/E.height*E.top),x.viewPoint.h(ee,re),a.Ab!==null?(y=je.allocAt(ee,re),a.Ab.Cd(y),x.documentPoint.assign(y),je.free(y)):x.documentPoint.h(ee,re)}function Fg(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))}}Yt.prototype.Ya=function(){this.Zi||(this.Zi=!0,this.$b(!1))};function n0(a){a.ld||os(a),a.Va()}Yt.prototype.redraw=function(){this.vb||this.ld||(this.N(),this.bd())},Le=Yt.prototype,Le.Pz=function(){return this.kg},Le.Xy=function(a){a===void 0&&(a=null);var y=this.animationManager,x=y.isEnabled;y.Cc(),y.isEnabled=!1,Sl(this),this.hf=!1,this.du=new je(NaN,NaN),y.isEnabled=x,this.ld=!0;var E=this;a!==null&&Tr(function(){E.ld=!1,ku(y,"Model"),a(E)},1)},Le.$b=function(a){if(a===void 0&&(a=!1),this.kg!==!0&&!(this.vb||a===!1&&this.ld)){this.kg=!0;var y=this;Xn.requestAnimationFrame(function(){y.kg&&y.bd()})}},Le.bd=function(){(!this.fn||this.kg)&&(this.fn&&(this.fn=!1),Sl(this))};function td(a,y,x){!a.Ee||a.vb||a.animationManager.defaultAnimation.isAnimating||Wd(a)||(y&&os(a),x&&Tl(a,!1))}function Sl(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,ee=0;ee<z;ee++){var re=b[ee];La(re,!1),re.v()}E.clear()}E=a.ow,0<E.count&&(E.each(function(oe){oe.Nv()}),E.clear()),b=E=!1,x.defaultAnimation.isAnimating&&(b=!0,E=a.skipsUndoManager,a.skipsUndoManager=!0),x.zb||Pg(a),td(a,!1,!0),a.fe!==null&&(a.fe.visible&&!a.mq&&(Pu(a),a.mq=!0),!a.fe.visible&&a.mq&&(a.mq=!1)),os(a),z=!1,(!a.hf||a.xh)&&(a.hf?Ig(a,!a.Jk):(a.Ea("Initial Layout"),x.isEnabled===!1&&x.Cc(),Ig(a,!1)),z=!0),a.Jk=!1,os(a),a.ou||n0(a),td(a,!0,!1),ee=!1,z?(x=vt.alloc(),x.assign(a.viewportBounds),a.hf||(ee=a.hf=!0,a.skipsUndoManager||(a.undoManager.isPendingClear=!0),a.undoManager.isPendingUnmodified=!0,Mg(a)),a.R("LayoutCompleted"),td(a,!0,!1),vt.free(x)):x.Ok&&x.Qw&&(a.Fg!==ps?a.scale=Rd(a,a.Fg):a.yh!==ps?a.scale=Rd(a,a.yh):(x=a.initialScale,isFinite(x)&&0<x&&(a.scale=x)),Tl(a,!0)),z&&ee&&a.eb("Initial Layout"),os(a),y||a.gc(a.ib),b&&(a.skipsUndoManager=E),a.ld=!1}}function Mg(a){if(a.Fg!==ps)a.scale=Rd(a,a.Fg);else if(a.yh!==ps)a.scale=Rd(a,a.yh);else{var y=a.initialScale;isFinite(y)&&0<y&&(a.scale=y)}Tl(a,!0),y=a.Wa.s,a.Fd(y,y.length,a,a.viewportBounds),a.R("InitialLayoutCompleted"),a.du.assign(a.pa),Pu(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 ln,a.Nv(x,a.De)}a.nodes.each(function(E){E instanceof Pr&&E.U&65536&&(E.U=E.U^65536)})}}Le.Nv=function(a,y){for(a.reset();a.next();){var x=a.value;!x.Zc()||x instanceof Pr||(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))}for(a.reset();a.next();)x=a.value,x instanceof Pr&&x.isVisible()&&Fc(this,x);for(a.reset();a.next();)x=a.value,x instanceof Kn&&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 no&&x.isVisible()&&(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))};function Fc(a,y){for(var x=mi(),E=mi(),b=y.memberParts;b.next();){var z=b.value;z.isVisible()&&(z instanceof Pr?(ll(z)||Cs(z)||ld(z))&&Fc(a,z):z instanceof Kn?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(sn(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();sn(E)}Le.Fd=function(a,y,x,E){if(this.vd||this.animationManager.isAnimating)for(var b=0;b<y;b++)a[b].Fd(x,E)},Le.gc=function(a){if(this.Ka!==null){if(this.ta===null&&et("No canvas specified"),this.nl==="svg"){if(this.Ka!==null){var y=this.animationManager;if(!y.zb&&(!y.isAnimating||y.isTicking)){Zd(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,ee=Math.round(y.y*b)/b,re=this.Ab;for(re.reset(),b!==1&&re.scale(b),y.x===0&&y.y===0||re.translate(-z,-ee),a.ti=null,Jy(a,re.m11,re.m12,re.m21,re.m22,re.dx,re.dy),this.pb!==1&&(a.globalAlpha=this.pb),Ph(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?Kd(this.Yf,this)&&(a=this.Vp()):a=!0,a&&(di.prototype.Cd=di.prototype.Eu),this.Fc=this.vd=!1}}}}else e:if(z=this.animationManager,!z.zb&&(!z.isAnimating||z.isTicking)&&(x=new Date,Zd(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 e;z=this.Ab,z.reset(),ee=this.Mb,re=this.pa;var oe=this.Ca,le=Math.round(re.x*oe)/oe,he=Math.round(re.y*oe)/oe;for(oe!==1&&z.scale(oe),re.x===0&&re.y===0||z.translate(-le,-he),a.setTransform(ee,0,0,ee,0,0),a.clearRect(0,0,this.Aa,this.ya),this.pb!==1&&(a.globalAlpha=this.pb),Ph(this,a),re=0;re<b;re++)a.setTransform(ee,0,0,ee,0,0),a.transform(z.m11,z.m12,z.m21,z.m22,z.dx,z.dy),a.yc(),y[re].gc(a,this);if(y=!1,this.Yf?Kd(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=Xi&&Xi.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 gf(a,y,x,E,b,z,ee,re,oe,le){if(a.Ka!==null){a.ta===null&&et("No canvas specified"),ee===void 0&&(ee=null),re===void 0&&(re=null),oe===void 0&&(oe=!1),le===void 0&&(le=!1),Zd(a),a.ib.Vc(!0),a.vd=!0,a.$i=!0;var he=a.Ca;a.Ca=b;var ge=a.Wa.s,Se=ge.length;try{var Pe=new vt(z.x,z.y,E.width/b,E.height/b),Ae=Pe.copy();Ae.Co(x),Pu(a,Ae),os(a),a.Fd(ge,Se,a,Pe),y.setTransform(1,0,0,1,0,0),y.clearRect(0,0,E.width,E.height),re!==null&&re!==""&&(y.fillStyle=re,y.ox(0,0,E.width,E.height));var Be=a.Mb;y.scale(Be,Be);var Qe=di.alloc();Qe.reset(),Qe.translate(x.left,x.top),Qe.scale(b),z.x===0&&z.y===0||Qe.translate(-z.x,-z.y),y.setTransform(Qe.m11,Qe.m12,Qe.m21,Qe.m22,Qe.dx,Qe.dy),y.yc(),y instanceof qs&&Jy(y,Qe.m11,Qe.m12,Qe.m21,Qe.m22,Qe.dx,Qe.dy),di.free(Qe),Ph(a,y),y.globalAlpha=a.pb;var Ke=a.Qj("Grid");if(ee){var lt=new ln,ct=ee.iterator;for(ct.reset();ct.next();){var ft=ct.value;ft instanceof Ki&&(le||ft.layer!==Ke)&&(ft.Gj(),lt.add(ft))}for(le=0;le<Se;le++)Up(ge[le],y,a,lt,oe);lt.each(function(Gt){return Gt.Gj()})}else for(lt=0;lt<Se;lt++){var Et=ge[lt];Et===Ke?le&&Et.gc(y,a,!0):Et.gc(y,a,oe)}a.$i=!1,a.Yf&&Kd(a.Yf,a)&&a.Vp()}finally{a.Ca=he,a.ib.Vc(!0),a.vd=!0,a.Fd(ge,Se,a,a.viewportBounds),Pu(a),a.ib instanceof qs&&(a.ib.Nj.PA(),a.redraw())}}}Le.Gf=function(a){return this.Rg[a]},Le.Xx=function(a,y){a==="minDrawingLength"&&(this.Oq=y),this.Rg[a]=y,this.redraw()},Le.Tx=function(){this.Rg=new Ri,this.Rg.drawShadows=!0,this.Rg.textGreeking=!0,this.Rg.viewportOptimizations=!(jr||Ir),this.Rg.temporaryPixelRatio=!0,this.Rg.pictureRatioOptimization=!0,this.Oq=this.Rg.minDrawingLength=1};function Ph(a,y){a=a.Rg,a!==null&&(a.imageSmoothingEnabled!==void 0&&y.Wx(!!a.imageSmoothingEnabled),a=a.defaultFont,a!=null&&(y.font=a))}Le.Ql=function(a){return this.on[a]},Le.sA=function(a,y){this.on[a]=y},Le.Sx=function(){this.on=new Ri,this.on.extraTouchArea=10,this.on.extraTouchThreshold=10,this.on.hasGestureZoom=!0},Le.set=function(a){return Object.assign(this,a),this},Le.Du=function(a){return this.nm(a)},Le.nm=function(a){return zd(this,a),this};function zd(a,y){var x=a instanceof Rn,E=a instanceof Yt,b;for(b in y){b===""&&et("Setting properties requires non-empty property names");var z=a,ee=b;if(x||E){var re=b.indexOf(".");if(0<re){var oe=b.substring(0,re);x?z=a.fb(oe):(z=a[oe],z==null&&(z=a.toolManager[oe])),en(z)?ee=b.substr(re+1):et("Unable to find object named: "+oe+" in "+a.toString()+" when trying to set property: "+b)}}if(ee[0]!=="_"&&!gr(z,ee))if(E&&ee==="ModelChanged"){a.Yw(y[ee]);continue}else if(E&&ee==="Changed"){a.Pe(y[ee]);continue}else if(E&&gr(a.toolManager,ee))z=a.toolManager;else if(E&&o0(a,ee)){a.Bj(ee,y[ee]);continue}else if(a instanceof Ni&&ee==="Changed"){a.Pe(y[ee]);continue}else et('Trying to set undefined property "'+ee+'" on object: '+z.toString());z[ee]=y[b],ee[0]==="_"&&z instanceof At&&z.Vw(ee)}}Le.bx=function(){if(this.Eh.count!==0&&!(1<this.undoManager.transactionLevel)){for(;0<this.Eh.count;){var a=this.Eh;for(this.Eh=new Ut,a=a.iterator;a.next();){var y=a.key;y.Xo(a.value),y.qc()}}this.N()}},Le.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")},Yt.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!==bc&&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=vt.alloc(),Og(this,this.computeBounds(E)),vt.free(E)),E=this.ta,E===null||E instanceof Cu)))){var ee=this.Mb;b=this.Aa*ee;var re=this.ya*ee,oe=this.scale*ee;z=Math.round(Math.round(y.x*oe)-Math.round(a.x*oe)),y=Math.round(Math.round(y.y*oe)-Math.round(a.y*oe)),oe=this.jw,a=this.oy,oe.width!==b&&(oe.width=b),oe.height!==re&&(oe.height=re),a.clearRect(0,0,b,re),oe=190*ee;var le=70*ee,he=Math.max(z,0),ge=Math.max(y,0),Se=Math.floor(b-he),Pe=Math.floor(re-ge);a.drawImage(E.Oa,he,ge,Se,Pe,0,0,Se,Pe),Kd(this.Yf,this)&&a.clearRect(0,0,oe,le),E=mi(),a=mi(),Pe=Math.abs(z),Se=Math.abs(y);var Ae=he===0?0:b-Pe;he=je.allocAt(Ae,0),Pe=je.allocAt(Pe+Ae,re),a.push(new vt(Math.min(he.x,Pe.x),Math.min(he.y,Pe.y),Math.abs(he.x-Pe.x),Math.abs(he.y-Pe.y)));var Be=this.Ab;if(Be.reset(),Be.scale(ee,ee),this.Ca!==1&&Be.scale(this.Ca),ee=this.pa,(ee.x!==0||ee.y!==0)&&isFinite(ee.x)&&isFinite(ee.y)&&Be.translate(-ee.x,-ee.y),un(he,Be),un(Pe,Be),E.push(new vt(Math.min(he.x,Pe.x),Math.min(he.y,Pe.y),Math.abs(he.x-Pe.x),Math.abs(he.y-Pe.y))),Ae=ge===0?0:re-Se,he.h(0,Ae),Pe.h(b,Se+Ae),a.push(new vt(Math.min(he.x,Pe.x),Math.min(he.y,Pe.y),Math.abs(he.x-Pe.x),Math.abs(he.y-Pe.y))),un(he,Be),un(Pe,Be),E.push(new vt(Math.min(he.x,Pe.x),Math.min(he.y,Pe.y),Math.abs(he.x-Pe.x),Math.abs(he.y-Pe.y))),Kd(this.Yf,this)&&(b=0<z?0:-z,re=0<y?0:-y,he.h(b,re),Pe.h(oe+b,le+re),a.push(new vt(Math.min(he.x,Pe.x),Math.min(he.y,Pe.y),Math.abs(he.x-Pe.x),Math.abs(he.y-Pe.y))),un(he,Be),un(Pe,Be),E.push(new vt(Math.min(he.x,Pe.x),Math.min(he.y,Pe.y),Math.abs(he.x-Pe.x),Math.abs(he.y-Pe.y)))),je.free(he),je.free(Pe),td(this,!1,!0),this.Ka===null&&et("No div specified"),this.ta===null&&et("No canvas specified"),!this.animationManager.zb&&(b=this.ib,this.Fc)){for(Zd(this),re=this.Mb,b.setTransform(1,0,0,1,0,0),b.clearRect(0,0,this.Aa*re,this.ya*re),b.drawImage(this.jw.Oa,0<z?0:Math.round(-z),0<y?0:Math.round(-y)),z=this.pa,ee=this.Ca,oe=Math.round(z.x*ee)/ee,le=Math.round(z.y*ee)/ee,y=this.Ab,y.reset(),ee!==1&&y.scale(ee),z.x===0&&z.y===0||y.translate(-oe,-le),b.save(),b.beginPath(),z=a.length,ee=0;ee<z;ee++)oe=a[ee],oe.width!==0&&oe.height!==0&&b.rect(Math.floor(oe.x),Math.floor(oe.y),Math.ceil(oe.width),Math.ceil(oe.height));for(b.clip(),b.setTransform(re,0,0,re,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),Ph(this,b),b.globalAlpha=this.pb,re=0;re<z;re++)if(ee=y[re],oe=E,ee.visible&&ee.pb!==0){le=$u(ee,b),ge=ee.Zq,ge.length=0,he=this.scale,Se=vt.alloc(),Pe=ee.Pa.s,Be=Pe.length,Ae=oe.length;for(var Qe=0;Qe<Be;Qe++){var Ke=Pe[Qe],lt=$d(Ke,Ke.actualBounds);e:{for(var ct=2/he,ft=4/he,Et=0;Et<Ae;Et++){var Gt=oe[Et];if(Gt.width!==0&&Gt.height!==0&&lt.Vu(Gt.x-ct,Gt.y-ct,Gt.width+ft,Gt.height+ft)){lt=!0;break e}}lt=!1}lt&&ee.Oj(b,Ke,this,ge,he,Se,!0)}vt.free(Se),b.globalAlpha=le}b.restore(),b.Vc(!0),this.Yf&&Kd(this.Yf,this)&&this.Vp(),this.Fc=this.vd=!1,this.hk()}sn(E),sn(a),this.ld=!1}}else this.bd();x&&(Ns(this),this.bd(),Cc(this,!0))}else x?(Ns(this),this.bd(),Cc(this,!0)):this.bd()}};function Zd(a){a.pn!==!1&&(a.pn=!1,Lg(a,a.Aa,a.ya))}function Lg(a,y,x){wu(a);var E=a.Mb;a.ta.resize(y*E,x*E,y,x)&&(a.Fc=!0,a.ib.Vc(!0))}function Wd(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,ee=a.gf?a.Db:0,re=a.Be?a.Db:0,oe=b.clientWidth||x+ee,le=b.clientHeight||E+re,he=a.viewportBounds;b=he.x;var ge=he.y,Se=he.width,Pe=he.height;if((oe!==x+ee||le!==E+re)&&(a.gf=!1,a.Be=!1,re=ee=0,a.Aa=oe,a.ya=le,z=a.pn=!0,wu(a)),!a.hf||!a.viewportBounds.w())return!0;var Ae=a.ku,Be=a.hu;if(a.Ee=!1,!(z||a.gf||a.Be||a.mn||a.nn))return!0;var Qe=a.documentBounds,Ke=0,lt=0,ct=0,ft=0,Et=he.width,Gt=he.height,si=a.rj;a.contentAlignment.sb()?(Qe.width>Et&&(Ke=si.left,lt=si.right),Qe.height>Gt&&(ct=si.top,ft=si.bottom)):(Ke=si.left,lt=si.right,ct=si.top,ft=si.bottom);var Li=Qe.width+Ke+lt,wi=Qe.height+ct+ft;si=a.scale;var Vn=Li>oe/si,vn=wi>le/si;if(!(z||a.gf||a.Be||Vn||vn))return!0;Ke=Qe.x-Ke,oe=he.x,lt=Qe.right+lt,le=he.right+ee,ct=Qe.y-ct;var yr=he.y;Qe=Qe.bottom+ft,he=he.bottom+re;var ar="1px";if(ft="1px",a.scrollMode===Ch&&(Vn||vn)&&(Vn&&a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(Vn=1,Ke+1<oe&&(Vn=Math.max((oe-Ke)*si+a.Aa,Vn)),lt>le+1&&(Vn=Math.max((lt-le)*si+a.Aa,Vn)),Et+ee+1<Li&&(Vn=Math.max((Li-Et)*si+a.Aa,Vn)),ar=Vn.toString()+"px"),vn&&a.hasVerticalScrollbar&&a.allowVerticalScroll&&(Vn=1,ct+1<yr&&(Vn=Math.max((yr-ct)*si+a.ya,Vn)),Qe>he+1&&(Vn=Math.max((Qe-he)*si+a.ya,Vn)),Gt+re+1<wi&&(Vn=Math.max((wi-Gt)*si+a.ya,Vn)),ft=Vn.toString()+"px")),Vn=ar!=="1px",vn=ft!=="1px",Vn&&vn||!Vn&&!vn||(vn&&(le-=a.Db),Vn&&(he-=a.Db),Li<Et+ee||!a.hasHorizontalScrollbar||!a.allowHorizontalScroll||(ee=1,Ke+1<oe&&(ee=Math.max((oe-Ke)*si+a.Aa,ee)),lt>le+1&&(ee=Math.max((lt-le)*si+a.Aa,ee)),Et+1<Li&&(ee=Math.max((Li-Et)*si+a.Aa,ee)),ar=ee.toString()+"px"),Vn=ar!=="1px",ee=a.ya,Vn!==a.Be&&(ee=Vn?a.ya-a.Db:a.ya+a.Db),wi<Gt+re||!a.hasVerticalScrollbar||!a.allowVerticalScroll||(re=1,ct+1<yr&&(re=Math.max((yr-ct)*si+ee,re)),Qe>he+1&&(re=Math.max((Qe-he)*si+ee,re)),Gt+1<wi&&(re=Math.max((wi-Gt)*si+ee,re)),ft=re.toString()+"px"),vn=ft!=="1px"),a.qr&&Vn===a.Be&&vn===a.gf)return x===a.Aa&&E===a.ya||a.bd(),!1;if(Vn!==a.Be&&(ar==="1px"?a.ya=a.ya+a.Db:a.ya=Math.max(a.ya-a.Db,1),z=!0),a.Be=Vn,Be.style.width=ar,vn!==a.gf&&(ft==="1px"?a.Aa=a.Aa+a.Db:a.Aa=Math.max(a.Aa-a.Db,1),z=!0,a.tn&&(re=je.alloc(),vn?(y.style.left=a.Db+"px",a.position=re.h(a.pa.x+a.Db/a.scale,a.pa.y)):(y.style.left="0px",a.position=re.h(a.pa.x-a.Db/a.scale,a.pa.y)),je.free(re))),z&&wu(a),a.gf=vn,Be.style.height=ft,a.gu=!0,z&&(a.pn=!0),y=Ae.scrollLeft,a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(Et+1<Li?y=(a.position.x-Ke)*si:Ke+1<oe?y=Ae.scrollWidth-Ae.clientWidth:lt>le+1&&(y=a.position.x*si)),a.tn)switch(a.bu){case"negative":y=-(Ae.scrollWidth-y-Ae.clientWidth);break;case"reverse":y=Ae.scrollWidth-y-Ae.clientWidth}return Ae.scrollLeft=y,a.hasVerticalScrollbar&&a.allowVerticalScroll&&(Gt+1<wi?Ae.scrollTop=(a.position.y-ct)*si:ct+1<yr?Ae.scrollTop=Ae.scrollHeight-Ae.clientHeight:Qe>he+1&&(Ae.scrollTop=a.position.y*si)),oe=a.Aa,le=a.ya,Ae.style.width=oe+(a.gf?a.Db:0)+"px",Ae.style.height=le+(a.Be?a.Db:0)+"px",x!==oe||E!==le||a.animationManager.zb?(x=vt.allocAt(b,ge,Se,Pe),a.onViewportBoundsChanged(x,a.viewportBounds,si,z),vt.free(x),!1):!0}Le=Yt.prototype,Le.add=function(a){var y=a.diagram;if(y!==this&&(y!==null&&et("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&&et('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(Jo,"parts",y,null,a,null,x),y.isTemporary||this.Ya(),a.C(1),x=a.layerChanged,x!==null&&x(a,null,y)}},Le.oi=function(a){this.partManager.oi(a);var y=this;Qd(a,function(x){Hd(y,x)}),(a instanceof no||a instanceof Pr&&a.placeholder!==null)&&a.v(),a.data!==null&&Qd(a,function(x){uy(y.partManager,x)}),Cs(a)!==!0&&ld(a)!==!0||this.De.add(a),Z1(a,!0,this),H1(a)?(a.actualBounds.w()&&this.N($d(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N($d(a,a.actualBounds)),this.$b()},Le.pc=function(a){a.Ej(),this.partManager.pc(a);var y=this;a.data!==null&&Qd(a,function(x){hy(y.partManager,x,y)}),this.De.remove(a),H1(a)?(a.actualBounds.w()&&this.N($d(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N($d(a,a.actualBounds)),this.$b()},Le.remove=function(a){bg(this,a,!0)};function bg(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(ha,"parts",E,y,null,x,null),a=y.layerChanged,a!==null&&a(y,E,null))}Le.Is=function(a,y){if(y===void 0&&(y=!1),Gn(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 ln,x.addAll(a),a=x.iterator;a.next();)x=a.value,y&&!x.canDelete()||this.remove(x)},Le.Kj=function(a,y,x){return x===void 0&&(x=!1),this.partManager.Kj(a,y,x)},Yt.prototype.moveParts=function(a,y,x,E){if(x===void 0&&(x=!1),E===void 0&&(E=pf(this)),this.toolManager!==null){var b=new Ut;if(a!==null)if(Gn(a))for(var z=0;z<a.length;z++)Tu(this,b,a[z],x,E);else for(a=a.iterator;a.next();)Tu(this,b,a.value,x,E);else{for(a=this.parts;a.next();)Tu(this,b,a.value,x,E);for(a=this.nodes;a.next();)Tu(this,b,a.value,x,E);for(a=this.links;a.next();)Tu(this,b,a.value,x,E)}nd(this,b,y,E,x)}};function Tu(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=pf(a)),x instanceof ui){if(y.add(x,a.Pd(b,x,x.location)),x instanceof Pr&&(x.placeholder!==null||b.dragsMembers))for(z=x.memberParts;z.next();)Tu(a,y,z.value,E,b,b.groupsAlwaysMove);for(z=x.linksConnected;z.next();){var ee=z.value;if(!y.contains(ee)){var re=ee.fromNode,oe=ee.toNode;re!==null&&y.contains(re)&&oe!==null&&y.contains(oe)&&Tu(a,y,ee,E,b)}}if(b.dragsTree)for(x=x.Ou();x.next();)Tu(a,y,x.value,E,b)}else if(x instanceof Kn)for(y.add(x,a.Pd(b,x)),x=x.labelNodes;x.next();)Tu(a,y,x.value,E,b);else x instanceof no||y.add(x,a.Pd(b,x,x.location))}function nd(a,y,x,E,b){if(y!==null&&y.count!==0){var z=je.alloc(),ee=je.alloc();ee.assign(x),isNaN(ee.x)&&(ee.x=0),isNaN(ee.y)&&(ee.y=0),(x=a.Mr)||vf(a,y);for(var re=mi(),oe=mi(),le=y.iterator,he=je.alloc();le.next();){var ge=le.key,Se=le.value;if(ge.Zc()){var Pe=Dg(a,ge,y);Pe!==null?re.push(new ie(ge,Se,Pe)):(!b||ge.canMove())&&(Pe=Se.point,z.assign(Pe),a.computeMove(ge,z.add(ee),E,he),ge.location=he,Se.shifted===void 0&&(Se.shifted=new je),Se.shifted.assign(he.re(Pe)))}else le.key instanceof Kn&&oe.push(le.sa)}for(je.free(he),b=re.length,le=0;le<b;le++)ge=re[le],z.assign(ge.info.point),ge.Su.shifted===void 0&&(ge.Su.shifted=new je),ge.node.location=z.add(ge.Su.shifted);for(b=je.alloc(),le=je.alloc(),ge=oe.length,Se=0;Se<ge;Se++){var Ae=oe[Se];if(Pe=Ae.key,Pe instanceof Kn)if(Pe.suspendsRouting){Pe.Tg=null,he=Pe.fromNode;var Be=Pe.toNode;if(a.draggedLink!==null&&E.dragsLink)if(Be=Ae.value.point,Pe.dragComputation===null)y.add(Pe,a.Pd(E,Pe,ee)),kh(Pe,ee.x-Be.x,ee.y-Be.y);else{Ae=je.allocAt(0,0),(he=Pe.i(0))&&he.w()&&Ae.assign(he);var Qe=he=je.alloc().assign(Ae).add(ee);E.isGridSnapEnabled&&(E.isGridSnapRealtime||a.lastInput.up)&&(Qe=je.alloc(),mf(a,Pe,he,Qe,E)),he.assign(Pe.dragComputation(Pe,he,Qe)).re(Ae),y.add(Pe,a.Pd(E,Pe,he)),kh(Pe,he.x-Be.x,he.y-Be.y),je.free(Ae),je.free(he),Qe!==he&&je.free(Qe)}else he!==null&&(b.assign(he.location),Qe=y.I(he),Qe!==null&&b.re(Qe.point)),Be!==null&&(le.assign(Be.location),Qe=y.I(Be),Qe!==null&&le.re(Qe.point)),he!==null&&Be!==null?b.Xa(le)?(he=Ae.value.point,Be=z,Be.assign(b),Be.re(he),y.add(Pe,a.Pd(E,Pe,b)),kh(Pe,Be.x,Be.y)):(Pe.suspendsRouting=!1,Pe.bb()):(Ae=Ae.value.point,he=he!==null?b:Be!==null?le:ee,y.add(Pe,a.Pd(E,Pe,he)),kh(Pe,he.x-Ae.x,he.y-Ae.y))}else(Pe.fromNode===null||Pe.toNode===null)&&(he=Ae.value.point,y.add(Pe,a.Pd(E,Pe,ee)),kh(Pe,ee.x-he.x,ee.y-he.y))}je.free(z),je.free(ee),je.free(b),je.free(le),sn(re),sn(oe),x||(os(a),id(a,y))}}Yt.prototype.computeMove=function(a,y,x,E){if(E===void 0&&(E=new je),E.assign(y),a===null)return E;var b=y,z=x.isGridSnapEnabled;z&&(x.isGridSnapRealtime||this.lastInput.up)&&(b=je.alloc(),mf(this,a,y,b,x)),x=a.dragComputation!==null?a.dragComputation(a,y,b):b;var ee=a.minLocation,re=ee.x;isNaN(re)&&(re=z?Math.round(1e3*a.location.x)/1e3:a.location.x),ee=ee.y,isNaN(ee)&&(ee=z?Math.round(1e3*a.location.y)/1e3:a.location.y);var oe=a.maxLocation,le=oe.x;return isNaN(le)&&(le=z?Math.round(1e3*a.location.x)/1e3:a.location.x),oe=oe.y,isNaN(oe)&&(oe=z?Math.round(1e3*a.location.y)/1e3:a.location.y),E.h(Math.max(re,Math.min(x.x,le)),Math.max(ee,Math.min(x.y,oe))),b!==y&&je.free(b),E};function pf(a){var y=a.toolManager.findTool("Dragging");return y!==null?y.dragOptions:a.Wm}function mf(a,y,x,E,b){if(b===void 0&&(b=pf(a)),E.assign(x),y!==null){var z=a.grid;y=b.gridSnapCellSize,a=y.width,y=y.height;var ee=b.gridSnapOrigin,re=ee.x;if(ee=ee.y,b=b.gridSnapCellSpot,z!==null){var oe=z.gridCellSize;isNaN(a)&&(a=oe.width),isNaN(y)&&(y=oe.height),z=z.gridOrigin,isNaN(re)&&(re=z.x),isNaN(ee)&&(ee=z.y)}z=je.allocAt(0,0),z.yi(0,0,a,y,b),St.No(x.x,x.y,re+z.x,ee+z.y,a,y,E),je.free(z)}}function vf(a,y){if(y!==null)for(a.Mr=!0,a=y.iterator;a.next();)y=a.key,y instanceof Kn&&(y.suspendsRouting=!0)}function id(a,y){if(y!==null){for(y=y.iterator;y.next();){var x=y.key;x instanceof Kn&&(x.suspendsRouting=!1,Xv(x)&&x.bb())}a.Mr=!1}}function Dg(a,y,x){return y=y.containingGroup,y!==null&&(a=Dg(a,y,x),a!==null||(a=x.I(y),a!==null))?a:null}Le=Yt.prototype,Le.Pd=function(a,y,x){if(x===void 0)return new eh(ri);var E=a.isGridSnapEnabled;return a.groupsSnapMembers||y.containingGroup===null||(E=!1),E?new eh(new je(Math.round(1e3*x.x)/1e3,Math.round(1e3*x.y)/1e3)):new eh(x.copy())};function kg(a,y,x){if(y.diagram!==null&&y.diagram!==a&&et("Cannot share a Layer with another Diagram: "+y+" of "+y.diagram),x===null?y.diagram!==null&&et("Cannot add an existing Layer to this Diagram again: "+y):(x.diagram!==a&&et("Existing Layer must be in this Diagram: "+x+" not in "+x.diagram),y===x&&et("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&&et("Cannot add Layer with the name '"+y+"'; a Layer with the same name is already present in this Diagram.")}}Le.Al=function(a){kg(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(Jo,"layers",this,null,a,null,x+1),this.N(),this.Ya(),this},Le.Ww=function(a,y){kg(this,a,y),a.Xe(this);var x=this.Wa,E=x.indexOf(a);0<=E&&(x.remove(a),this.cc!==null&&this.cb(ha,"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(Jo,"layers",this,null,a,null,z),this.N(),0>E&&this.Ya(),this},Le.Cy=function(a,y){kg(this,a,y),a.Xe(this);var x=this.Wa,E=x.indexOf(a);0<=E&&(x.remove(a),this.cc!==null&&this.cb(ha,"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(Jo,"layers",this,null,a,null,z+1),this.N(),0>E&&this.Ya(),this},Le.kA=function(a){if(a.diagram!==this&&et("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(ha,"layers",this,a,null,x,null),this.N(),this.Ya()}}},Le.Qj=function(a){for(var y=this.layers;y.next();){var x=y.value;if(x.name===a)return x}return null},Le.Yw=function(a){return this.pf===null&&(this.pf=new Mn),this.pf.add(a),this.model.Pe(a),this},Le.mA=function(a){this.pf!==null&&(this.pf.remove(a),this.pf.count===0&&(this.pf=null)),this.model.ik(a)},Le.Pe=function(a){return this.zg===null&&(this.zg=new Mn),this.zg.add(a),this},Le.ik=function(a){this.zg!==null&&(this.zg.remove(a),this.zg.count===0&&(this.zg=null))},Le.ds=function(a){if(this.skipsUndoManager||this.model.skipsUndoManager||this.model.undoManager.Tu(a),a.change!==Fa&&(this.isModified=!0),this.zg!==null)for(var y=this.zg,x=y.length,E=0;E<x;E++)y.M(E)(a)},Le.cb=function(a,y,x,E,b,z,ee){z===void 0&&(z=null),ee===void 0&&(ee=null);var re=new Wo;re.diagram=this,re.change=a,re.propertyName=y,re.object=x,re.oldValue=E,re.oldParam=z,re.newValue=b,re.newParam=ee,this.ds(re)},Le.g=function(a,y,x,E,b){this.cb(Io,a,this,y,x,E,b)},Yt.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===Io){var b=a.object;if(qo(b,a.propertyName,a.I(y)),b instanceof At){var z=b.part;z!==null&&z.Wb()}this.isModified=!0}else if(E===Jo){var ee=a.object,re=a.newParam,oe=a.newValue;if(ee instanceof Rn)if(typeof re=="number"&&oe instanceof At){y?ee.pc(re):ee.Gb(re,oe);var le=ee.part;le!==null&&le.Wb()}else typeof re=="number"&&oe instanceof ba&&(oe.isRow?f1(ee,re,y?void 0:oe):g1(ee,re,y?void 0:oe));else if(ee instanceof Ka){var he=a.oldParam===!0;typeof re=="number"&&oe instanceof Ki&&(y?(oe.isSelected=!1,oe.isHighlighted=!1,oe.Wb(),ee.pc(he?re:-1,oe,he)):ee.oi(re,oe,he))}else ee instanceof Yt?typeof re=="number"&&oe instanceof Ka&&(y?this.Wa.mb(re):(oe.Xe(this),this.Wa.Gb(re,oe))):et("unknown ChangedEvent.Insert object: "+a.toString());this.isModified=!0}else if(E===ha){var ge=a.object,Se=a.oldParam,Pe=a.oldValue;if(ge instanceof Rn)typeof Se=="number"&&Pe instanceof At?y?ge.Gb(Se,Pe):ge.pc(Se):typeof Se=="number"&&Pe instanceof ba&&(Pe.isRow?f1(ge,Se,y?Pe:void 0):g1(ge,Se,y?Pe:void 0));else if(ge instanceof Ka){var Ae=a.newParam===!0;typeof Se=="number"&&Pe instanceof Ki&&(y?0>ge.Pa.indexOf(Pe)&&ge.oi(Se,Pe,Ae):(Pe.isSelected=!1,Pe.isHighlighted=!1,Pe.Wb(),ge.pc(Ae?Se:-1,Pe,Ae)))}else ge instanceof Yt?typeof Se=="number"&&Pe instanceof Ka&&(y?(Pe.Xe(this),this.Wa.Gb(Se,Pe)):this.Wa.mb(Se)):et("unknown ChangedEvent.Remove object: "+a.toString());this.isModified=!0}else E!==Fa&&et("unknown ChangedEvent: "+a.toString())}finally{this.skipsModelSourceBindings=x}}},Yt.prototype.Ea=function(a){return this.undoManager.Ea(a)},Yt.prototype.eb=function(a){return this.undoManager.eb(a)},Yt.prototype.Kf=function(){return this.undoManager.Kf()},Yt.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}},Yt.prototype.updateAllTargetBindings=function(a){this.partManager.updateAllTargetBindings(a)},Yt.prototype.rp=function(){this.partManager.rp()};function Bg(a,y,x){var E=a.animationManager;if(a.vb||a.ld)a.Ca=x,wu(a),a.N(),a.Ee=!0,E.zb&&(Ju(E)||E.ce.add(E.H,"scale",y,a.Ca));else if(a.ta===null)a.Ca=x,wu(a);else{a.vb=!0;var b=a.viewportBounds.copy(),z=a.Aa,ee=a.ya,re=a.zoomPoint.x,oe=a.zoomPoint.y,le=a.contentAlignment;isNaN(re)&&(le.$c()?le.Hf(_i)?re=0:le.Hf(Er)&&(re=z-1):re=le.sb()?le.x*(z-1):z/2),isNaN(oe)&&(le.$c()?le.Hf(Fi)?oe=0:le.Hf(oo)&&(oe=ee-1):oe=le.sb()?le.y*(ee-1):ee/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=je.allocAt(a.pa.x+re/y-re/x,a.pa.y+oe/y-oe/x),a.position=z,je.free(z),a.Ca=x,wu(a),a.vb=!1,a.onViewportBoundsChanged(b,a.viewportBounds,y,!1),Tl(a,!1),E.zb&&(Ju(E)||E.ce.add(E.H,"scale",y,a.Ca))}}Yt.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!==ps||a.width===y.width&&a.height===y.height||b.C(),b=this.currentTool,this.Vk===!0&&b instanceof Ao&&(this.lastInput.documentPoint=this.Ps(this.lastInput.viewPoint),Gl(b,this)),this.vb||this.invalidateViewport(a,y),Pu(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 Pu(a,y){var x=a.fe;if(x!==null&&x.visible){for(var E=Je.alloc(),b=1,z=1,ee=x.O.s,re=ee.length,oe=0;oe<re;oe++){var le=ee[oe],he=Math.abs(le.interval);2>he||(vv(le.figure)?z=z*he/St.vx(z,he):b=b*he/St.vx(b,he))}if(ee=x.gridCellSize,E.h(z*ee.width,b*ee.height),y!==void 0)b=y.width,z=y.height,a=y.x,ee=y.y;else{if(y=vt.alloc(),a=a.viewportBounds,y.h(a.x,a.y,a.width,a.height),!y.w()){vt.free(y);return}b=y.width,z=y.height,a=y.x,ee=y.y,vt.free(y)}x.width=b+2*E.width,x.height=z+2*E.height,y=je.alloc(),St.No(a,ee,0,0,E.width,E.height,y),y.offset(-E.width,-E.height),Je.free(E),x.part.location=y,je.free(y)}}Yt.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)}},Yt.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))},Yt.prototype.rA=function(a){if(this.R("ChangingSelection",this.selection),this.clearSelection(!0),Gn(a))for(var y=a.length,x=0;x<y;x++){var E=a[x];E instanceof Ki||et("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 Ki||et("Diagram.selectCollection given something that is not a Part: "+y),y.isSelected=!0;this.R("ChangedSelection",this.selection)},Yt.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()}},Le=Yt.prototype,Le.Iz=function(a){a!==null&&a.diagram===this&&(!a.isHighlighted||1<this.highlighteds.count)&&(this.clearHighlighteds(),a.isHighlighted=!0)},Le.Jz=function(a){a=new ln().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 Ki||et("Diagram.highlightCollection given something that is not a Part: "+y),y.isHighlighted=!0},Le.scroll=function(a,y,x){x===void 0&&(x=1);var E=y==="up"||y==="down",b=0,z=je.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)),je.free(z);return}et("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):et("scrolling direction must be 'up', 'down', 'left', or 'right', not: "+y),je.free(z)},Le.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)},Le.es=function(a){var y=this.viewportBounds;a=a.center,a.x-=y.width/2,a.y-=y.height/2,this.position=a},Le.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)},Le.zA=function(a){var y=this.Ab,x=a.x,E=a.y,b=x+a.width,z=E+a.height,ee=y.m11,re=y.m12,oe=y.m21,le=y.m22,he=y.dx,ge=y.dy,Se=x*ee+E*oe+he;y=x*re+E*le+ge;var Pe=b*ee+E*oe+he;return a=b*re+E*le+ge,E=x*ee+z*oe+he,x=x*re+z*le+ge,ee=b*ee+z*oe+he,b=b*re+z*le+ge,z=Math.min(Se,Pe),Se=Math.max(Se,Pe),Pe=Math.min(y,a),y=Math.max(y,a),z=Math.min(z,E),Se=Math.max(Se,E),Pe=Math.min(Pe,x),y=Math.max(y,x),z=Math.min(z,ee),Se=Math.max(Se,ee),Pe=Math.min(Pe,b),y=Math.max(y,b),new vt(z,Pe,Se-z,y-Pe)},Le.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),un(a.copy(),this.Ab)};function i0(a){var y=a.isModified;a.Tw!==y&&(a.Tw=y,a.R("Modified"))}function Ng(a){return a=Cf.get(a),a!==null?new a:new Po}Yt.prototype.doModelChanged=function(a){var y=this;if(a.model===this.model){var x=a.change,E=a.propertyName;if(x===Fa&&E[0]==="S")if(E==="StartingFirstTransaction"){var b=this;a=this.toolManager,a.mouseDownTools.each(function(oe){return oe.diagram=b}),a.mouseMoveTools.each(function(oe){return oe.diagram=b}),a.mouseUpTools.each(function(oe){return oe.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===Fa){(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||lf(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 ee=a.isTransactionFinished;if(ee&&(i0(this),this.As.clear(),Vp(this.animationManager)),!this.Rt&&ee&&this.lastInput.targetDiagram){this.Rt=!0;var re=this;Tr(function(){re.currentTool.standardMouseOver(),re.Rt=!1},10)}}}finally{this.aa=!0}}}};function Hd(a,y){y=y.O.s;for(var x=y.length,E=0;E<x;E++)rd(a,y[E])}function rd(a,y){if(y instanceof Rs){var x=y.element;if(x!==null&&x instanceof HTMLImageElement){x.Bg instanceof ln&&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 Tg(a,y){if(y instanceof Rs){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 ln&&x.Bg.remove(a),If(E));break}}}}}Yt.prototype.Wd=function(){this.partManager.Wd()},Yt.prototype.Aj=function(a,y){this.Yd.Aj(a,y)},Yt.prototype.Cj=function(a,y){this.Yd.Cj(a,y)},Yt.prototype.findPartForKey=function(a){return this.partManager.findPartForKey(a)},Yt.prototype.Vb=function(a){return this.partManager.Vb(a)},Yt.prototype.findLinkForKey=function(a){return this.partManager.findLinkForKey(a)},Le=Yt.prototype,Le.Lc=function(a){return this.partManager.Lc(a)},Le.ii=function(a){return this.partManager.ii(a)},Le.Kc=function(a){return this.partManager.Kc(a)},Le.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:gi(Qn(y)))},Le.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:gi(Qn(y)))};function wu(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 Og(a,y){a.Zi=!1;var x=a.Sp;x.D(y)||(x=x.copy(),a.Sp.assign(y),Tl(a,!1),a.R("DocumentBoundsChanged",void 0,x),a.Ee=!0,a.N())}Le.Va=function(){if(this.Zi){var a=vt.alloc();Og(this,this.computeBounds(a)),vt.free(a)}},Le.rz=function(){for(var a=new ln,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},Le.qz=function(){return this.ai.iterator},Le.Uz=function(a){os(this),a&&yf(this,!0),this.ld?Ig(this,!1):(this.Jk=!0,Sl(this))};function yf(a,y){for(var x=a.ai.iterator;x.next();)r0(a,x.value,y);a.layout&&(y?a.layout.isValidLayout=!1:a.layout.C())}function r0(a,y,x){if(y!==null){for(var E=y.gl.iterator;E.next();)r0(a,E.value,x);y.layout!==null&&(x?y.layout.isValidLayout=!1:y.layout.C())}}function Ig(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||ku(z,"Layout")),a.xh=!1;for(var ee=a.ai.iterator;ee.next();)Rg(a,ee.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||lf(z),a.aa=x}}}function Rg(a,y,x,E){if(y!==null){for(var b=y.gl.iterator;b.next();)Rg(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),Fc(a,y),b.isValidLayout=!0):a.xh=!0)}}Le.yz=function(){for(var a=new Mn,y=this.nodes;y.next();){var x=y.value;x.isTopLevel&&x.kh()===null&&a.add(x)}return a.iterator};function iv(a){function y(b){var z=b.toLowerCase(),ee=new Mn;x.add(b,ee),x.add(z,ee),E.add(b,b),E.add(z,b)}var x=new Ut,E=new Ut;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 o0(a,y){var x=a.hw.I(y);return x!==null?x:a.hw.I(y.toLowerCase())}function Sf(a,y){var x=a.iw.I(y);if(x!==null||(x=a.iw.I(y.toLowerCase()),x!==null))return x;et("Unknown DiagramEvent name: "+y)}Le.Bj=function(a,y){return a=Sf(this,a),a!==null&&a.add(y),this},Le.am=function(a,y){a=Sf(this,a),a!==null&&a.remove(y)},Le.R=function(a,y,x){var E=Sf(this,a),b=new bl;if(b.diagram=this,a=o0(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 xf(a){if(a.animationManager.isTicking)return!1;var y=a.currentTool;return y===a.toolManager.findTool("Dragging")?!a.Mr||y.isComplexRoutingRealtime:!0}Le.Yj=function(a,y){return Pf(this,!1,null,y||null).Yj(a.x,a.y,a.width,a.height)},Yt.prototype.computeOccupiedArea=function(a){return this.isVirtualized?this.viewportBounds.copy():this.Zi?wg(this,a):a.assign(this.documentBounds)};function Pf(a,y,x,E){var b=a.Xh;if(b===null&&(a.Xh=b=new cp(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=a0(a,x)),x===null){y=vt.alloc(),a.computeOccupiedArea(y),y.Bc(100,100),b.initialize(y);for(var z=a.nodes;z.next();){var ee=z.value,re=ee.layer;re!==null&&re.visible&&!re.isTemporary&&wf(a,ee,E,y)}vt.free(y)}else{for(0<x.memberParts.count&&(y=a.computePartsBounds(x.memberParts,!1),y.Bc(20,20),b.initialize(y)),y=vt.alloc(),z=x.memberParts;z.next();)ee=z.value,ee instanceof ui&&wf(a,ee,E,y);vt.free(y)}b.group=x,b.Yx=E,b.vs=!1}else y&&sS(b);return b}function a0(a,y){return y.avoidable&&!y.isLinkLabel?y:y.containingGroup!==null?a0(a,y.containingGroup):null}function wf(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(Hf(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(Nh,x,y+1);else for(var ee=x;ee<=y;ee++)z[ee]=Nh}else if(y instanceof Pr)for(y=y.memberParts;y.next();)b=y.value,b instanceof ui&&wf(a,b,x,E)}}function wh(a,y){a.Xh===null||a.Xh.vs||y!==void 0&&(!y.avoidable||y.isLinkLabel)||(a.Xh.vs=!0)}Yt.prototype.gs=function(a){this.wp.assign(a),this.computeAutoScrollPosition(this.wp).Xa(this.position)?this.ug():jg(this)};function jg(a){a.vk===-1&&(a.vk=Tr(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=vt.alloc(),a.computeBounds(y),y.ed(a.documentBounds),Og(a,y),vt.free(y),a.Fc=!0,a.bd(),jg(a))}},a.vp))}Yt.prototype.ug=function(){this.vk!==-1&&(Xn.clearTimeout(this.vk),this.vk=-1)},Yt.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=vt.allocAt(0,0,E.width*b,E.height*b);var z=je.allocAt(0,0);if(a.x>=E.x&&a.x<E.x+x.left&&this.allowHorizontalScroll){var ee=Math.max(this.scrollHorizontalLineChange,1);ee|=0,z.x-=ee,a.x<E.x+x.left/2&&(z.x-=ee),a.x<E.x+x.left/4&&(z.x-=4*ee)}else a.x<=E.x+E.width&&a.x>E.x+E.width-x.right&&this.allowHorizontalScroll&&(ee=Math.max(this.scrollHorizontalLineChange,1),ee|=0,z.x+=ee,a.x>E.x+E.width-x.right/2&&(z.x+=ee),a.x>E.x+E.width-x.right/4&&(z.x+=4*ee));return a.y>=E.y&&a.y<E.y+x.top&&this.allowVerticalScroll?(ee=Math.max(this.scrollVerticalLineChange,1),ee|=0,z.y-=ee,a.y<E.y+x.top/2&&(z.y-=ee),a.y<E.y+x.top/4&&(z.y-=4*ee)):a.y<=E.y+E.height&&a.y>E.y+E.height-x.bottom&&this.allowVerticalScroll&&(ee=Math.max(this.scrollVerticalLineChange,1),ee|=0,z.y+=ee,a.y>E.y+E.height-x.bottom/2&&(z.y+=ee),a.y>E.y+E.height-x.bottom/4&&(z.y+=4*ee)),z.Xa(ri)||(y=new je(y.x+z.x/b,y.y+z.y/b)),vt.free(E),je.free(z),y},Le=Yt.prototype,Le.Cs=function(){return null},Le.av=function(){return null},Le.bs=function(a,y){this.pj.add(a,y)},Le.Fu=function(a){(this.Pw=a)||this.nodes.each(function(y){y instanceof Pr&&(y.$p=null)})};function Mc(a,y,x){function E(){var he=+new Date;for(z=!0,ee.reset();ee.next();)if(!ee.value[0].al){z=!1;break}z||he-le>oe?y(x,b,re):Xn.requestAnimationFrame(E)}for(var b=x.callback,z=!0,ee=a.Og.iterator;ee.next();)if(!ee.value[0].al){z=!1;break}if(typeof b!="function"||z)return y(x,b,a);var re=a,oe=x.callbackTimeout||300,le=+new Date;return Xn.requestAnimationFrame(function(){E()}),null}Le.Wz=function(a){return ua?(a===void 0&&(a={}),a.returnType="Image",this.Jx(a)):null},Le.Jx=function(a){return a===void 0&&(a={}),Mc(this,this.Xz,a)},Le.Xz=function(a,y,x){var E=s0(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 Yd+"data":b=E.getImageData(0,0,x.width,x.height);break;case Yd:E=(a.document||document).createElement("img"),E.src=x.toDataURL(a.type,a.details),b=E;break;case"blob":return typeof y!="function"&&et('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 s0(a,y,x,E){if(a.animationManager.Cc(),a.bd(),a.ta===null)return null;typeof y!="object"&&et("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 ee=y.maxSize;y.maxSize===void 0&&(ee=x==="SVG"?new Je(1/0,1/0):new Je(2e3,2e3));var re=y.position||null,oe=y.parts||null,le=y.padding===void 0?1:y.padding,he=y.background||null,ge=y.omitTemporary;ge===void 0&&(ge=!0);var Se=y.document||document,Pe=y.elementFinished||null,Ae=y.showTemporary;Ae===void 0&&(Ae=!ge),y=y.showGrid,y===void 0&&(y=Ae),b!==null&&isNaN(b.width)&&isNaN(b.height)&&(b=null),typeof le=="number"?le=new Pi(le):le instanceof Pi||et("MakeImage padding must be a Margin or a number."),le.left=Math.max(le.left,0),le.right=Math.max(le.right,0),le.top=Math.max(le.top,0),le.bottom=Math.max(le.bottom,0),a.ib.Vc(!0),ge=new Il(null,Se,void 0,!0);var Be=ge.context;if(!(b||z||oe||re))return ge.width=a.Aa+Math.ceil(le.left+le.right),ge.height=a.ya+Math.ceil(le.top+le.bottom),x==="SVG"?E===null?null:(E.resize(ge.width,ge.height,ge.width,ge.height),E.ownerDocument=Se,E.hs=Pe,gf(a,E.context,le,new Je(ge.width,ge.height),a.Ca,a.pa,oe,he,Ae,y),E.context):(a.Xm=!1,gf(a,Be,le,new Je(ge.width,ge.height),a.Ca,a.pa,oe,he,Ae,y),a.Xm=!0,ge.context);var Qe=a.Pp,Ke=a.documentBounds.copy();if(Ke.Fv(a.yb),Ae)for(var lt=a.Wa.s,ct=lt.length,ft=0;ft<ct;ft++){var Et=lt[ft];if(Et.visible&&Et.isTemporary){Et=Et.Pa.s;for(var Gt=Et.length,si=0;si<Gt;si++){var Li=Et[si];Li.isInDocumentBounds&&Li.isVisible()&&(Li=Li.actualBounds,Li.w()&&Ke.ed(Li))}}}if(lt=new je(Ke.x,Ke.y),oe!==null){for(ct=new vt(0,0,0,0),ft=!0,Et=oe.iterator,Et.reset();Et.next();)Gt=Et.value,Gt instanceof Ki&&(si=Gt.layer,si!==null&&!si.visible||si!==null&&!Ae&&si.isTemporary||!Gt.isVisible()||(Gt=Gt.actualBounds,Gt.w()&&(ft?(ft=!1,ct.assign(Gt)):ct.ed(Gt))));Ke.width=ct.width,Ke.height=ct.height,lt.x=ct.x,lt.y=ct.y}return re!==null&&re.w()&&(lt=re,z||(z=Qe)),ct=re=0,le!==null&&(re=le.left+le.right,ct=le.top+le.bottom),ft=Et=0,b!==null&&(Et=b.width,ft=b.height,isFinite(Et)&&(Et=Math.max(0,Et-re)),isFinite(ft)&&(ft=Math.max(0,ft-ct))),b!==null&&z!==null?(z==="NaN"&&(z=Qe),b.w()?(b=Et,Ke=ft):isNaN(ft)?(b=Et,Ke=Ke.height*z):(b=Ke.width*z,Ke=ft)):b!==null?b.w()?(z=Math.min(Et/Ke.width,ft/Ke.height),b=Et,Ke=ft):isNaN(ft)?(z=Et/Ke.width,b=Et,Ke=Ke.height*z):(z=ft/Ke.height,b=Ke.width*z,Ke=ft):z!==null?z==="NaN"&&ee.w()?(z=Math.min((ee.width-re)/Ke.width,(ee.height-ct)/Ke.height),z>Qe?(z=Qe,b=Ke.width,Ke=Ke.height):(b=ee.width,Ke=ee.height)):(b=Ke.width*z,Ke=Ke.height*z):(z=Qe,b=Ke.width,Ke=Ke.height),le!==null?(b+=re,Ke+=ct):le=new Pi(0),ee!==null&&(Qe=ee.width,ee=ee.height,isNaN(Qe)&&(Qe=2e3),isNaN(ee)&&(ee=2e3),isFinite(Qe)&&(b=Math.min(b,Qe)),isFinite(ee)&&(Ke=Math.min(Ke,ee))),ge.width=Math.ceil(b),ge.height=Math.ceil(Ke),x==="SVG"?E===null?null:(E.resize(ge.width,ge.height,ge.width,ge.height),E.ownerDocument=Se,E.hs=Pe,gf(a,E.context,le,new Je(Math.ceil(b),Math.ceil(Ke)),z,lt,oe,he,Ae,y),E.context):(a.Xm=!1,gf(a,Be,le,new Je(Math.ceil(b),Math.ceil(Ke)),z,lt,oe,he,Ae,y),a.Xm=!0,ge.context)}It.Object.defineProperties(Yt.prototype,{renderer:{get:function(){return this.nl},set:function(a){this instanceof me||(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 Cu(this,Xn.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 Cu(this,Xn.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(Xn,"resize",this.Ov,!1),this.removeEventListener(Xn,"wheel",this.$j,!0),Bu===this&&(Bu=null)):this.ui===null&&(this.hf=!1),this.Ka=null,a!==null&&((y=a.H)&&(y.div=null),xg(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)&&Tn(a,"0 <= value <= 1",Yt,"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),Tl(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),Tl(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),Tl(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),Tl(this,!1))}},scrollHorizontalLineChange:{get:function(){return this.iu},set:function(a){var y=this.iu;y!==a&&(0>a&&Tn(a,">= 0",Yt,"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&&Tn(a,">= 0",Yt,"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 Tn(a,">= 0",Yt,"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||i0(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&&et("Do not replace a Diagram.model while a transaction is in progress."),this.animationManager.Cc(!0);var x=Sg(this,!0);this.hf=!1,this.fn=!0,this.Ce=-2,this.kg=!1;var E=this.vb;this.vb=!0,ku(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=Ng(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(Xn,"pointermove",this.dk,!0),this.addEventListener(Xn,"pointerdown",this.ui,!0),this.addEventListener(Xn,"pointerup",this.fk,!0),this.addEventListener(Xn,"pointerout",this.ek,!0),this.addEventListener(Xn,"pointercancel",this.ck,!0),this.removeEventListener(y,"wheel",this.$j,!1),this.addEventListener(Xn,"wheel",this.$j,!0),this.addEventListener(Xn,"selectstart",this.preventDefault,!1)):(this.removeEventListener(Xn,"pointermove",this.dk,!0),this.removeEventListener(Xn,"pointerdown",this.ui,!0),this.removeEventListener(Xn,"pointerup",this.fk,!0),this.removeEventListener(Xn,"pointerout",this.ek,!0),this.removeEventListener(Xn,"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(Xn,"wheel",this.$j,!0),this.removeEventListener(Xn,"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=je.alloc().assign(this.pa);if(!y.D(a)){var x=this.viewportBounds.copy();this.pa.assign(a),Yp(this.animationManager,y,this.pa),this.vb||this.ta===null&&!this.wo.w()?wu(this):(this.vb=!0,a=this.scale,Cg(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)}je.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=$p(this)),this.fe},set:function(a){var y=this.fe;if(y!==a){y===null&&(y=this.fe=$p(this)),a.type!==Rn.Grid&&et("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),Pu(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),wu(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||et("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 Pi(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===Ch&&Tl(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,Tl(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,Bg(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&&Bg(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!==ps&&Tl(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()||et("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()||et("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)):Tn(a,"> 0",Yt,"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)):Tn(a,"> 0",Yt,"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),Tl(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 Pi(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&&et("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();)np(a.value)}},treeCollapsePolicy:{get:function(){return this.uu},set:function(a){var y=this.uu;y!==a&&(a!==Eh&&a!==Ma&&a!==Ef&&et("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 Je(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 Pi(a));var y=this.xp;y.D(a)||(this.xp=a=a.J(),this.Ya(),this.g("autoScrollRegion",y,a))}}}),It.Object.defineProperties(Yt,{licenseKey:{get:function(){return Vg.jc()},set:function(a){Vg.add(a.replace(/\s/g,""))}},version:{get:function(){return Vd}}}),Yt.prototype.makeImageData=Yt.prototype.Jx,Yt.prototype.makeImage=Yt.prototype.Wz,Yt.prototype.cacheGroupExternalLinks=Yt.prototype.Fu,Yt.prototype.addRenderer=Yt.prototype.bs,Yt.prototype.makeSVG=Yt.prototype.av,Yt.prototype.makeSvg=Yt.prototype.Cs,Yt.prototype.stopAutoScroll=Yt.prototype.ug,Yt.prototype.doAutoScroll=Yt.prototype.gs,Yt.prototype.isUnoccupied=Yt.prototype.Yj,Yt.prototype.raiseDiagramEvent=Yt.prototype.R,Yt.prototype.removeDiagramListener=Yt.prototype.am,Yt.prototype.addDiagramListener=Yt.prototype.Bj,Yt.prototype.findTreeRoots=Yt.prototype.yz,Yt.prototype.layoutDiagram=Yt.prototype.Uz,Yt.prototype.findTopLevelGroups=Yt.prototype.qz,Yt.prototype.findTopLevelNodesAndLinks=Yt.prototype.rz,Yt.prototype.ensureBounds=Yt.prototype.Va,Yt.prototype.findLinksByExample=Yt.prototype.ls,Yt.prototype.findNodesByExample=Yt.prototype.ms,Yt.prototype.findLinkForData=Yt.prototype.Kc,Yt.prototype.findNodeForData=Yt.prototype.ii,Yt.prototype.findPartForData=Yt.prototype.Lc,Yt.prototype.findLinkForKey=Yt.prototype.findLinkForKey,Yt.prototype.findNodeForKey=Yt.prototype.Vb,Yt.prototype.findPartForKey=Yt.prototype.findPartForKey,Yt.prototype.rebuildParts=Yt.prototype.Wd,Yt.prototype.transformViewToDoc=Yt.prototype.Ps,Yt.prototype.transformRectDocToView=Yt.prototype.zA,Yt.prototype.transformDocToView=Yt.prototype.op,Yt.prototype.centerRect=Yt.prototype.es,Yt.prototype.scrollToRect=Yt.prototype.tv,Yt.prototype.scroll=Yt.prototype.scroll,Yt.prototype.highlightCollection=Yt.prototype.Jz,Yt.prototype.highlight=Yt.prototype.Iz,Yt.prototype.selectCollection=Yt.prototype.rA,Yt.prototype.select=Yt.prototype.select,Yt.prototype.updateAllRelationshipsFromData=Yt.prototype.rp,Yt.prototype.updateAllTargetBindings=Yt.prototype.updateAllTargetBindings,Yt.prototype.commit=Yt.prototype.commit,Yt.prototype.rollbackTransaction=Yt.prototype.Kf,Yt.prototype.commitTransaction=Yt.prototype.eb,Yt.prototype.startTransaction=Yt.prototype.Ea,Yt.prototype.raiseChanged=Yt.prototype.g,Yt.prototype.raiseChangedEvent=Yt.prototype.cb,Yt.prototype.removeChangedListener=Yt.prototype.ik,Yt.prototype.addChangedListener=Yt.prototype.Pe,Yt.prototype.removeModelChangedListener=Yt.prototype.mA,Yt.prototype.addModelChangedListener=Yt.prototype.Yw,Yt.prototype.findLayer=Yt.prototype.Qj,Yt.prototype.removeLayer=Yt.prototype.kA,Yt.prototype.addLayerAfter=Yt.prototype.Cy,Yt.prototype.addLayerBefore=Yt.prototype.Ww,Yt.prototype.addLayer=Yt.prototype.Al,Yt.prototype.moveParts=Yt.prototype.moveParts,Yt.prototype.copyParts=Yt.prototype.Kj,Yt.prototype.removeParts=Yt.prototype.Is,Yt.prototype.remove=Yt.prototype.remove,Yt.prototype.add=Yt.prototype.add,Yt.prototype.clearDelayedGeometries=Yt.prototype.bx,Yt.prototype.setProperties=Yt.prototype.nm,Yt.prototype.attach=Yt.prototype.Du,Yt.prototype.set=Yt.prototype.set,Yt.prototype.resetInputOptions=Yt.prototype.Sx,Yt.prototype.setInputOption=Yt.prototype.sA,Yt.prototype.getInputOption=Yt.prototype.Ql,Yt.prototype.resetRenderingHints=Yt.prototype.Tx,Yt.prototype.setRenderingHint=Yt.prototype.Xx,Yt.prototype.getRenderingHint=Yt.prototype.Gf,Yt.prototype.maybeUpdate=Yt.prototype.bd,Yt.prototype.requestUpdate=Yt.prototype.$b,Yt.prototype.delayInitialization=Yt.prototype.Xy,Yt.prototype.isUpdateRequested=Yt.prototype.Pz,Yt.prototype.invalidateDocumentBounds=Yt.prototype.Ya,Yt.prototype.findObjectsNear=Yt.prototype.og,Yt.prototype.findPartsNear=Yt.prototype.mz,Yt.prototype.findObjectsIn=Yt.prototype.Cf,Yt.prototype.findPartsIn=Yt.prototype.ux,Yt.prototype.findObjectsAt=Yt.prototype.ji,Yt.prototype.findPartsAt=Yt.prototype.lz,Yt.prototype.findObjectAt=Yt.prototype.ic,Yt.prototype.findPartAt=Yt.prototype.Ol,Yt.prototype.focusObject=Yt.prototype.zz,Yt.prototype.alignDocument=Yt.prototype.Jy,Yt.prototype.zoomToRect=Yt.prototype.BA,Yt.prototype.zoomToFit=Yt.prototype.zoomToFit,Yt.prototype.diagramScroll=Yt.prototype.kx,Yt.prototype.focus=Yt.prototype.focus;var Cf=new Ut,l0=null,ua=Xn.document!==void 0,Gd=null,od="",ps=new yn(Yt,"None",0),al=new yn(Yt,"Uniform",1),ad=new yn(Yt,"UniformToFill",2),Lc=new yn(Yt,"CycleAll",10),zg=new yn(Yt,"CycleNotDirected",11),Zg=new yn(Yt,"CycleNotDirectedFast",12),Wg=new yn(Yt,"CycleNotUndirected",13),Hg=new yn(Yt,"CycleDestinationTree",14),Gg=new yn(Yt,"CycleSourceTree",15),Ch=new yn(Yt,"DocumentScroll",1),bc=new yn(Yt,"InfiniteScroll",2),Eh=new yn(Yt,"TreeParentCollapsed",21),Ma=new yn(Yt,"AllParentsCollapsed",22),Ef=new yn(Yt,"AnyParentsCollapsed",23),Vg=new Mn,Vd="2.3.10",Yd="image",Dc=null,u0=!1;function ds(){if(ua){var a=Xn.document.createElement("canvas"),y=a.getContext("2d"),x=mn("7ca11abfd022028846");y[x]=mn("398c3597c01238");for(var E=["5da73c80a36455d7038e4972187c3cae51fd22",Ai.Dx+"4ae6247590da4bb21c324ba3a84e385776",di.xF+"fb236cdfda5de14c134ba1a95a2d4c7cc6f93c1387",St.za],b=1;5>b;b++)y[mn("7ca11abfd7330390")](mn(E[b-1]),10,15*b);for(y[x]=mn("39f046ebb36e4b"),x=1;5>x;x++)y[mn("7ca11abfd7330390")](mn(E[x-1]),10,15*x);(E.length!==4||E[0][0]!=="5"||E[3][0]!=="7")&&(di.prototype.Cd=di.prototype.Eu),Dc=a}}Yt.className="Diagram",Yt.fromDiv=function(a){var y=a;return typeof a=="string"&&(y=Xn.document.getElementById(a)),y instanceof HTMLDivElement&&y.H instanceof Yt?y.H:null},Yt.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},Yt.useDOM=function(a){ua=a?Xn.document!==void 0:!1},Yt.isUsingDOM=function(){return ua},Yt.None=ps,Yt.Uniform=al,Yt.UniformToFill=ad,Yt.CycleAll=Lc,Yt.CycleNotDirected=zg,Yt.CycleNotDirectedFast=Zg,Yt.CycleNotUndirected=Wg,Yt.CycleDestinationTree=Hg,Yt.CycleSourceTree=Gg,Yt.DocumentScroll=Ch,Yt.InfiniteScroll=bc,Yt.TreeParentCollapsed=Eh,Yt.AllParentsCollapsed=Ma,Yt.AnyParentsCollapsed=Ef;function h0(){this.wy=null,this.j="zz@orderNum",this._tk==="63ad05bbe23a1786468a4c741b6d2"?this.Rc=this.j=!0:this.Rc=null}function Kd(a,y){if(y.ib.setTransform(y.Mb,0,0,y.Mb,0,0),y.ib.yc(),a.Rc===null)e:{y="f";var x=Xn[mn("76a715b2f73f148a")][mn("72ba13b5")]||"";if(a.Rc=!0,ua){var E=Yt[mn("76a115b6ed251eaf4692")];if(E)for(var b=Vg.iterator;b.next()&&(E=b.value,E=mn(E).split(mn("39e9")),!(6>E.length));){var z=mn(E[1]).split(".");if(E[4]!=="7da71ca0")break;var ee=mn(Ai[mn("6cae19")]).split(".");if(z[0]>ee[0]||z[0]===ee[0]&&z[1]>=ee[1]){var re=Xn[mn("74a900bae4370f8b51")][mn("6fbb13a1c2311e8a57")].toLowerCase();if(ee=re[mn("73a612b6fb191d")](mn("3aad1ab6e022098b4dc4")),z=mn(E[2]),-1<ee&&(re=re[mn("73a612b6fb191d")](z.toLowerCase()+"/"),a.Rc=!(-1<re&&re<ee),!a.Rc))break;for(ee=x[mn("76ad18b4f73e")],re=x[mn("73a612b6fb191d")](mn("35e7"))+2;re<ee;re++)y+=x[re];if(ee=y[mn("73a612b6fb191d")](z),0>ee&&z!==mn("7da71ca0ad381e90")&&(ee=y[mn("73a612b6fb191d")](mn("76a715b2ef3e149757"))),0>ee&&(ee=y[mn("73a612b6fb191d")](mn("76a715b2ef3e149757"))),0>ee&&(ee=y[mn("73a612b6fb191d")](mn("2bfa41fdb3784bca12"))),0>ee&&(ee=x[mn("73a612b6fb191d")](mn("7baa19a6f76c1988428554"))),a.Rc=!(0<=ee&&ee<y[mn("73a612b6fb191d")](mn("35"))||y[mn("73a612b6fb191d")](mn("35"))===-1),!a.Rc||x[mn("73a612b6fb191d")](mn("7fb002b6ed25128b4da25b2e"))&&(a.Rc=!(-1<x[mn("73a612b6fb191d")](z)),!a.Rc)||(ee=Xn[mn("76a715b2f73f148a")][mn("69ad17a1e03e")],re=ee[mn("73a612b6fb191d")](mn("7fb002b6ed25128b4da25b2e")),-1<re&&(a.Rc=!(ee[mn("73a612b6fb191d")](z)>re),!a.Rc)))break;if(z[0]==="#"){ee=Xn.document.createElement("div");for(var oe=E[0].replace(/[A-Za-z]/g,"");4>oe.length;)oe+="9";if(re=oe,oe=oe.substr(oe.length-4),E="",E+=["gsh","gsf"][parseInt(oe.substr(0,1),10)%2],E+=["Header","Background","Display","Feedback"][parseInt(oe.substr(0,1),10)%4],ee[mn("79a417a0f0181a8946")]=E,Xn.document[mn("78a712aa")]){Xn.document[mn("78a712aa")][mn("7bb806b6ed32388c4a875b")](ee),oe=Xn.getComputedStyle(ee).getPropertyValue(mn("78a704b7e62456904c9b12701b6532a8"));var le=Xn.getComputedStyle(ee).getPropertyValue(mn("75b817b0ea2202"));if(Xn.document[mn("78a712aa")][mn("68ad1bbcf533388c4a875b")](ee),oe){if(ee=Xn[mn("77a902b0eb1b1e804a8a")],le==="0."+parseInt(re,10)%100||oe.indexOf(parseInt(z[1]+z[2],16))!==-1&&oe.indexOf(parseInt(z[3]+z[4],16))!==-1){a.Rc=!1;break}else if(ee&&ee(mn("32ae19a1e0331fc94084537c067a67fa59f1386b89d006")).matches)for(E="."+E,z=0;z<document.styleSheets.length;z++){ee=document.styleSheets[z].rules||document.styleSheets[z].cssRules;for(var he in ee)if(E===ee[he].selectorText){a.Rc=!1;break e}}}}else a.Rc=null,a.Rc=!1}}}else{for(he=x[mn("76ad18b4f73e")],b=x[mn("73a612b6fb191d")](mn("35e7"))+2;b<he;b++)y+=x[b];x=y[mn("73a612b6fb191d")](mn("7da71ca0ad381e90")),a.Rc=!(0<=x&&x<y[mn("73a612b6fb191d")](mn("35")))}}}return 0<a.Rc&&a!==a.wy}h0.className="DiagramHelper";function eh(a){this.j=a===void 0?new je:a,this.o=new je}It.Object.defineProperties(eh.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 kc="DraggingInfo";eh.className="DraggingInfo";function ie(a,y,x){this.node=a,this.info=y,this.Su=x}ie.className="DraggingNodeInfoPair";function ae(){this.reset()}ae.prototype.reset=function(){this.isGridSnapEnabled=!1,this.isGridSnapRealtime=!0,this.gridSnapCellSize=new Je(NaN,NaN).freeze(),this.gridSnapCellSpot=Ti,this.gridSnapOrigin=new je(NaN,NaN).freeze(),this.groupsSnapMembers=this.dragsTree=this.dragsLink=!1,this.dragsMembers=this.groupsAlwaysMove=!0},ae.className="DraggingOptions";function fe(a,y){if(typeof a=="string"||Xn.Element&&a instanceof Element)var x=Yt.call(this,a)||this;else x=Yt.call(this)||this,y=a;return ce(x),y&&x.nm(y),x}Vt(fe,Yt);function ce(a){a.allowDragOut=!0,a.allowMove=!1,a.isReadOnly=!0,a.contentAlignment=Vi,a.layout=new Ja}fe.prototype.reset=function(){Yt.prototype.reset.call(this),ce(this)},fe.className="Palette";function me(a,y){if(typeof a=="string"||Xn.Element&&a instanceof Element)var x=Yt.call(this,a)||this;else x=Yt.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 Ki;var b=new Lr;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 Pi(0,0,0,0),x.pa.h(0,0),x.toolManager.gb("Dragging",new qe,x.toolManager.mouseMoveTools),x.click=function(){var z=E.observed;if(z!==null){var ee=z.viewportBounds,re=E.lastInput.documentPoint;z.position=new je(re.x-ee.width/2,re.y-ee.height/2)}},x.Pf=function(){E.Ya(),Ge(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&&Ge(E)},x.autoScale=al,x.vb=!1,y&&Object.assign(x,y),x}Vt(me,Yt),me.prototype.computePixelRatio=function(){return 1},me.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(Zd(this),this.ql===null){var x=new Il(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),Me(this)}finally{this.ta=a,this.ib=y}}}Yt.prototype.redraw.call(this)},me.prototype.gc=function(){if(this.Ka===null&&et("No div specified"),this.ta===null&&et("No canvas specified"),!(this.ta instanceof Cu)&&(Rv(this.box),this.Fc)){var a=this.observed;if(a!==null&&!a.animationManager.defaultAnimation.isAnimating&&a.pi){Zd(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?Me(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 Me(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=vt.alloc().assign(a.viewportBounds).ed(y.viewportBounds),Pu(y,b),vt.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 ee=0;ee<z;ee++){var re=y[ee],oe=a;if(re.visible&&re.opacity!==0){var le=re.diagram.grid.part;if(!x&&re.isTemporary)E&&le.layer===re&&(re=$u(re,b),le.gc(b,oe),b.globalAlpha=re);else{for(var he=$u(re,b),ge=oe.scale,Se=vt.alloc(),Pe=re.Pa.s,Ae=Pe.length,Be=0;Be<Ae;Be++){var Qe=Pe[Be];(E||Qe!==le)&&re.Oj(b,Qe,oe,null,ge,Se,!1)}vt.free(Se),b.globalAlpha=he}}}}}function Ge(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=Je.alloc();b.h(x.width,x.height),E.desiredSize=b,Je.free(b),a=2/a.scale,E instanceof Lr&&(E.strokeWidth=a),y.location=new je(x.x-a/2,x.y-a/2),y.isSelected=!0}}}me.prototype.computeBounds=function(){var a=this.observed;if(a===null)return pr;var y=a.documentBounds.copy();return y.ed(a.viewportBounds),y},me.prototype.invalidateViewport=function(){this.Fc!==!0&&(this.Fc=!0,this.$b())},me.prototype.onViewportBoundsChanged=function(a,y,x,E){this.vb||(this.vd=!0,this.N(),this.Ee=!0,this.Ya(),Ge(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))},It.Object.defineProperties(me.prototype,{observed:{get:function(){return this.V},set:function(a){var y=this.V;if(a instanceof me&&et("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),Ge(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),Ge(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)}}}),me.className="Overview";function qe(){Ko.call(this),this.j=null}Vt(qe,Ko),qe.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 je(x.width/2,x.height/2),a=a.firstInput.documentPoint,y.position=new je(a.x-this.j.x,a.y-this.j.y)),!0)},qe.prototype.doActivate=function(){this.j=null,Ko.prototype.doActivate.call(this)},qe.prototype.doUpdateCursor=function(){var a=this.diagram,y=a.box;y!==null&&y.cursor&&(a.currentCursor=y.cursor)},qe.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 je(E.x-x.x,E.y-x.y)}a=a.lastInput.documentPoint,y.position=new je(a.x-this.j.x,a.y-this.j.y)}}},qe.className="OverviewDraggingTool";function Xe(){rr(this),this.H=Bu,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=pr,this.hb=!0,this.cg=null,this.ob=200}Xe.prototype.toString=function(){return"CommandHandler"},Xe.prototype.Xe=function(a){this.H=a},Xe.prototype.doKeyDown=function(){var a=this.diagram,y=a.lastInput,x=jr?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()},Xe.prototype.doKeyUp=function(){this.diagram.lastInput.bubbles=!0},Xe.prototype.stopCommand=function(){var a=this.diagram,y=a.currentTool;y instanceof Ao&&a.allowSelect&&a.clearSelection(),y!==null&&y.doCancel()},Xe.prototype.canStopCommand=function(){return!0},Xe.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=""}},Xe.prototype.canSelectAll=function(){return this.diagram.allowSelect},Xe.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 ln,x=a.selection.iterator;x.next();)hd(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=""}},Xe.prototype.canDeleteSelection=function(){var a=this.diagram;return!(a.isReadOnly||a.isModelReadOnly||!a.allowDelete||a.selection.count===0)},Xe.prototype.copySelection=function(){var a=this.diagram,y=new ln;for(a=a.selection.iterator;a.next();)hd(y,a.value,!0,this.copiesTree?1/0:0,this.copiesConnectedLinks,function(x){return x.canCopy()});this.copyToClipboard(y)},Xe.prototype.canCopySelection=function(){var a=this.diagram;return!!(a.allowCopy&&a.allowClipboard&&a.selection.count!==0)},Xe.prototype.cutSelection=function(){this.copySelection(),this.deleteSelection()},Xe.prototype.canCutSelection=function(){var a=this.diagram;return!!(!a.isReadOnly&&!a.isModelReadOnly&&a.allowCopy&&a.allowDelete&&a.allowClipboard&&a.selection.count!==0)},Xe.prototype.copyToClipboard=function(a){var y=this.diagram,x=null;if(a===null)Gd=null,od="";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 Mn,x.addAll(z),Gd=x,od=y.model.dataFormat}}y.R("ClipboardChanged",x)},Xe.prototype.pasteFromClipboard=function(){var a=new ln,y=Gd;if(y===null)return a;var x=this.diagram;if(od!==x.model.dataFormat)return a;var E=x.model,b=!1,z=!1,ee=null;try{E.Tl()&&(b=E.Jj,E.Jj=this.copiesParentKey),E.Wj()&&(z=E.Ij,E.Ij=this.copiesGroupKey),ee=x.Kj(y,x,!1)}finally{for(E.Tl()&&(E.Jj=b),E.Wj()&&(E.Ij=z),y=ee.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},Xe.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);nd(y,z,new je(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=""}},Xe.prototype.canPasteSelection=function(){var a=this.diagram;return!(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowClipboard||Gd===null||Gd.count===0||od!==a.model.dataFormat)},Xe.prototype.undo=function(){this.diagram.undoManager.undo()},Xe.prototype.canUndo=function(){var a=this.diagram;return a.isReadOnly||a.isModelReadOnly?!1:a.allowUndo&&a.undoManager.canUndo()},Xe.prototype.redo=function(){this.diagram.undoManager.redo()},Xe.prototype.canRedo=function(){var a=this.diagram;return a.isReadOnly||a.isModelReadOnly?!1:a.allowUndo&&a.undoManager.canRedo()},Xe.prototype.decreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;y.autoScale===ps&&(a=y.scale*a,a<y.minScale||a>y.maxScale||(y.scale=a))},Xe.prototype.canDecreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;return y.autoScale!==ps?!1:(a=y.scale*a,a<y.minScale||a>y.maxScale?!1:y.allowZoom)},Xe.prototype.increaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;y.autoScale===ps&&(a=y.scale*a,a<y.minScale||a>y.maxScale||(y.scale=a))},Xe.prototype.canIncreaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;return y.autoScale!==ps?!1:(a=y.scale*a,a<y.minScale||a>y.maxScale?!1:y.allowZoom)},Xe.prototype.resetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;a<y.minScale||a>y.maxScale||(y.scale=a)},Xe.prototype.canResetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;return a<y.minScale||a>y.maxScale?!1:y.allowZoom},Xe.prototype.zoomToFit=function(){var a=this.diagram,y=a.animationManager;y.Cc(),a.redraw();var x=a.position,E=a.scale;ku(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=pr):(this.Jt=E,this.sw=x.copy(),a.zoomToFit(),this.Au=a.scale,this.yu=a.documentBounds.copy()),lf(y)},Xe.prototype.canZoomToFit=function(){return this.diagram.allowZoom},Xe.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(oe){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;ku(x,"Scroll To Part");var E=this.scrollToPartPause;if(0<E){var b=mt(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 oe=b.pop();0<b.length&&oe instanceof ui&&oe.isTreeExpanded&&(!(oe instanceof Pr)||oe.isSubGraphExpanded);)oe=b.pop();0<b.length?(oe instanceof Ki&&y.tv(oe.actualBounds),oe instanceof ui&&!oe.isTreeExpanded&&(oe.isTreeExpanded=!0),oe instanceof Pr&&!oe.isSubGraphExpanded&&(oe.isSubGraphExpanded=!0)):(oe instanceof Ki&&y.es(oe.actualBounds),y.am("LayoutCompleted",ee)),y.eb("Scroll To Part")},ee=function(){Tr(z,(x.isEnabled?x.duration:0)+E)};y.Bj("LayoutCompleted",ee),z()}}else{var re=y.position.copy();y.es(a.actualBounds),re.Xa(y.position)&&x.Cc()}}};function mt(a,y,x){if(y.isVisible())return x;if(y instanceof no)mt(a,y.adornedPart,x);else if(y instanceof Kn){var E=y.fromNode;E!==null&&mt(a,E,x),y=y.toNode,y!==null&&mt(a,y,x)}else y instanceof ui&&(E=y.labeledLink,E!==null&&mt(a,E,x),E=y.pg(),E!==null&&(E.isTreeExpanded||E.wasTreeExpanded||x.push(E),mt(a,E,x))),y=y.containingGroup,y!==null&&(y.isSubGraphExpanded||y.wasSubGraphExpanded||x.push(y),mt(a,y,x));return x}Xe.prototype.canScrollToPart=function(a){return a===void 0&&(a=null),a!==null&&!(a instanceof Ki)?!1:(a=this.diagram,a.selection.count===0&&a.highlighteds.count===0?!1:a.allowHorizontalScroll&&a.allowVerticalScroll)},Xe.prototype.collapseTree=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Collapse Tree"),ku(y.animationManager,"Collapse Tree");var x=new Mn;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 ui&&b.isTreeExpanded&&(b.collapseTree(),x.add(b))}y.R("TreeCollapsed",x)}finally{y.eb("Collapse Tree")}},Xe.prototype.canCollapseTree=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null){if(!(a instanceof ui&&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 ui&&y.isTreeExpanded&&0<y.Qo().count)return!0;return!1},Xe.prototype.expandTree=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Expand Tree"),ku(y.animationManager,"Expand Tree");var x=new Mn;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 ui&&!b.isTreeExpanded&&(b.expandTree(),x.add(b))}y.R("TreeExpanded",x)}finally{y.eb("Expand Tree")}},Xe.prototype.canExpandTree=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null){if(!(a instanceof ui)||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 ui&&!y.isTreeExpanded&&0<y.Qo().count)return!0;return!1},Xe.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 Mn,z=a.selection.iterator;z.next();){var ee=z.value;ee.Zc()&&ee.canGroup()&&b.add(ee)}for(var re=new Mn,oe=b.iterator;oe.next();){var le=oe.value;z=!1;for(var he=b.iterator;he.next();)if(le.Td(he.value)){z=!0;break}z||re.add(le)}if(0<re.count){var ge=re.first().containingGroup;if(ge!==null)for(;ge!==null;){b=!1;for(var Se=re.iterator;Se.next();)if(!Se.value.Td(ge)){b=!0;break}if(b)ge=ge.containingGroup;else break}if(x instanceof Pr)Rl(x),E=x.copy(),E!==null&&a.add(E);else if(y.Yu(x)){var Pe=y.copyNodeData(x);en(Pe)&&(y.xf(Pe),E=a.ii(Pe))}if(E!==null){ge!==null&&this.isValidMember(ge,E)&&(E.containingGroup=ge);for(var Ae=re.iterator;Ae.next();){var Be=Ae.value;this.isValidMember(E,Be)&&(Be.containingGroup=E)}a.clearSelection(!0),E.isSelected=!0}}a.R("SelectionGrouped",E)}finally{a.eb("Group"),a.R("ChangedSelection",a.selection),a.currentCursor=""}}}},Xe.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 hn(a){var y=mi();for(a=a.iterator;a.next();){var x=a.value;x instanceof Kn||y.push(x)}a=new ln,x=y.length;for(var E=0;E<x;E++){for(var b=y[E],z=!0,ee=0;ee<x;ee++)if(b.Td(y[ee])){z=!1;break}z&&a.add(b)}return sn(y),a}Xe.prototype.isValidMember=function(a,y){if(y===null||a===y||y instanceof Kn)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},Xe.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 Mn;if(a!==null)E.add(a);else for(var b=y.selection.iterator;b.next();){var z=b.value;z instanceof Pr&&z.canUngroup()&&E.add(z)}var ee=new Mn;if(0<E.count){y.clearSelection(!0);for(var re=E.iterator;re.next();){var oe=re.value;oe.expandSubGraph();var le=oe.containingGroup,he=le!==null&&le.data!==null?x.wa(le.data):void 0;ee.addAll(oe.memberParts);for(var ge=ee.iterator;ge.next();){var Se=ge.value;if(Se.isSelected=!0,!(Se instanceof Kn)){var Pe=Se.data;Pe!==null?x.mp(Pe,he):Se.containingGroup=le}}y.remove(oe)}}y.R("SelectionUngrouped",E,ee)}finally{y.eb("Ungroup"),y.R("ChangedSelection",y.selection),y.currentCursor=""}},Xe.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 Pr))return!1;if(a.canUngroup())return!0}else for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof Pr&&y.canUngroup())return!0;return!1},Xe.prototype.addTopLevelParts=function(a,y){var x=!0;for(a=hn(a).iterator;a.next();){var E=a.value;E.containingGroup!==null&&(!y||this.isValidMember(null,E)?E.containingGroup=null:x=!1)}return x},Xe.prototype.collapseSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Collapse SubGraph"),ku(y.animationManager,"Collapse SubGraph");var x=new Mn;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 Pr&&b.isSubGraphExpanded&&(b.collapseSubGraph(),x.add(b))}y.R("SubGraphCollapsed",x)}finally{y.eb("Collapse SubGraph")}},Xe.prototype.canCollapseSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null)return!!(a instanceof Pr&&a.isSubGraphExpanded);for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof Pr&&y.isSubGraphExpanded)return!0;return!1},Xe.prototype.expandSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Expand SubGraph"),ku(y.animationManager,"Expand SubGraph");var x=new Mn;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 Pr&&!b.isSubGraphExpanded&&(b.expandSubGraph(),x.add(b))}y.R("SubGraphExpanded",x)}finally{y.eb("Expand SubGraph")}},Xe.prototype.canExpandSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null)return a instanceof Pr&&!a.isSubGraphExpanded;for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof Pr&&!y.isSubGraphExpanded)return!0;return!1},Xe.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 zo&&z.editable})}a!==null&&(y.currentTool=null,x.textBlock=a,y.currentTool=x)}},Xe.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 zo))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 zo&&x.editable}),a!==null))return!0;return!1},Xe.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 At?b=a.ga(Ln):y.viewportBounds.ca(E.documentPoint)||(b=y.viewportBounds,b=new je(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,Qu(x,!1,a)}},Xe.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)},Xe.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 Ut,a===null)return E;for(var z=a.iterator;z.next();)Tu(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 Kn&&(y=a.fromNode,y===null||E.contains(y)?(y=a.toNode,y===null||E.contains(y)||E.remove(a)):E.remove(a));return E},It.Object.defineProperties(Xe.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||et("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}}}),Xe.className="CommandHandler",Jp=function(){return new Xe};function At(){rr(this),this.l=30723,this.pb=1,this.bn="",this.Ma=this.Me=null,this.pa=new je(NaN,NaN).freeze(),this.jd=jn,this.Ab=new di,this.wh=new di,this.Lb=null,this.Ca=this.Kk=1,this.Kb=0,this.Kg=lr,this.uc=new vt(NaN,NaN,NaN,NaN).freeze(),this.Ib=new vt(NaN,NaN,NaN,NaN).freeze(),this.dc=new vt(0,0,NaN,NaN).freeze(),this.ba=this.Yn=this.Zn=null,this.sk=this.Jb=Eo,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 bn,Sn,Bi,zi,Qi,wr,Hr,Nr,Ur,Lo;At.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=kn(this.Dh)),this.tb!==null&&(a.tb=this.tb.copy())},At.prototype.Vw=function(a){var y=this.Dh;if(Gn(y)){for(var x=0;x<y.length;x++)if(y[x]===a)return}else this.Dh=y=[];y.push(a)},At.prototype.Af=function(a){a.Zn=null,a.Ng=null,a.v()},At.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},At.prototype.copy=function(){return this.clone()},Le=At.prototype,Le.qb=function(a){a.classType===Kn?a.name.indexOf("Orient")===0?this.segmentOrientation=a:et("Unknown Link enum value for GraphObject.segmentOrientation property: "+a):a.classType===At&&(this.stretch=a)},Le.toString=function(){return ki(this.constructor)+"#"+_r(this)},Le.th=function(){this.A!==null&&(this.A.nc=!0)};function kr(a){a.A===null?a.A=new Nc:a.A.nc&&(a.A=a.A.copy())}Le.Xc=function(){if(this.ba===null){var a=new Yg;a.Xi=Mi,a.yj=Mi,a.Vi=10,a.wj=10,a.Wi=0,a.xj=0,this.ba=a}},Le.cb=function(a,y,x,E,b,z,ee){var re=this.part;if(re!==null&&(re.gk(a,y,x,E,b,z,ee),x===this&&a===Io&&ts(this)&&Uo(this,re,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 Ut),ee=z.undoManager.transactionLevel===0,a.startCondition===$h?ee=!0:a.startCondition===Id&&(ee=!1),ee?(z=new rs,_p(a,z),ee=this.jo.get(a),ee!==null&&ee.stop(),this.jo.add(a,z),z.vu=this,z.Nw=a,z.add(this,y,E,b),z.start()):(ku(z.animationManager,"Trigger"),z.animationManager.defaultAnimation.add(this,y,E,b)))),this instanceof Rn&&x===re&&(re.l&16777216)!==0&&re.data!==null))for(x=this.O.s,E=x.length,b=0;b<E;b++)re=x[b],re instanceof Rn&&Qd(re,function(oe){oe.data!==null&&oe.l&16777216&&oe.La(y)})};function Uo(a,y,x){var E=a.ih();if(E!==null)for(var b=a.localBindings.iterator;b.next();){var z=b.value,ee=null;if(z.sourceName!==null){if(ee=bS(z,E,a),ee===null)continue;z.sp(a,ee,x,null)}else if(z.isToModel){var re=y.diagram;re===null||re.skipsModelSourceBindings||z.sp(a,re.model.modelData,x,E)}else{if(re=E.data,re===null)continue;var oe=y.diagram;oe===null||oe.skipsModelSourceBindings||z.sp(a,re,x,E)}ee===a&&(re=E.ks(z.Ai),re!==null&&z.Mv(re,ee,x))}}Le.ks=function(a){return this.bindingId===a?this:null},Le.g=function(a,y,x){this.cb(Io,a,this,y,x)},Le.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 Oa(a,y,x,E){return a.pickable===!1?!1:(E.multiply(a.transform),x?a.Yc(y,E):a.fh(y,E))}Le.tx=function(a,y,x){if(this.pickable===!1)return!1;var E=this.naturalBounds;return y=a.Bf(y),x?On(a.x,a.y,0,0,0,E.height)<=y||On(a.x,a.y,0,E.height,E.width,E.height)<=y||On(a.x,a.y,E.width,E.height,E.width,0)<=y||On(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},Le.se=function(){return!0},Le.ca=function(a){var y=je.alloc();y.assign(a),this.transform.Ga(y);var x=this.actualBounds;if(!x.w())return je.free(y),!1;var E=this.diagram;if(E!==null&&E.wq){var b=E.Ql("extraTouchThreshold"),z=E.Ql("extraTouchArea"),ee=z/2,re=this.naturalBounds;E=this.Df()*E.scale;var oe=1/E;if(re.width*E<b&&re.height*E<b)return a=ai(x.x-ee*oe,x.y-ee*oe,x.width+z*oe,x.height+z*oe,y.x,y.y),je.free(y),a}return b=!1,(this instanceof no||this instanceof Lr?ai(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)),je.free(y),b},Le.gh=function(a){var y=this.naturalBounds;return ai(0,0,y.width,y.height,a.x,a.y)},Le.Re=function(a){if(this.angle===0)return this.actualBounds.Re(a);var y=this.naturalBounds;y=vt.allocAt(0,0,y.width,y.height);var x=this.transform,E=!1,b=je.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)))),je.free(b),vt.free(y),E},Le.fh=function(a,y){if(y===void 0)return a.Re(this.actualBounds);var x=this.naturalBounds,E=!1,b=je.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)))),je.free(b),E},Le.Yc=function(a,y){if(y===void 0&&(y=this.transform,this.angle===0))return a.Yc(this.actualBounds);var x=this.naturalBounds,E=je.allocAt(0,0),b=je.allocAt(0,x.height),z=je.allocAt(x.width,x.height),ee=je.allocAt(x.width,0),re=!1;if(a.ca(y.Ga(E))||a.ca(y.Ga(b))||a.ca(y.Ga(z))||a.ca(y.Ga(ee)))re=!0;else{x=vt.allocAt(0,0,x.width,x.height);var oe=je.allocAt(a.x,a.y);x.ca(y.Cd(oe))?re=!0:(oe.h(a.x,a.bottom),x.ca(y.Cd(oe))?re=!0:(oe.h(a.right,a.bottom),x.ca(y.Cd(oe))?re=!0:(oe.h(a.right,a.y),x.ca(y.Cd(oe))&&(re=!0)))),je.free(oe),vt.free(x),!re&&(St.us(a,E,b)||St.us(a,b,z)||St.us(a,z,ee)||St.us(a,ee,E))&&(re=!0)}return je.free(E),je.free(b),je.free(z),je.free(ee),re},Le.ga=function(a,y){if(y===void 0&&(y=new je),a instanceof En){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},Le.mi=function(a){a===void 0&&(a=new vt);var y=this.naturalBounds,x=this.oe,E=je.allocAt(0,0).transform(x);return a.h(E.x,E.y,0,0),E.h(y.width,0).transform(x),pi(a,E.x,E.y,0,0),E.h(y.width,y.height).transform(x),pi(a,E.x,E.y,0,0),E.h(0,y.height).transform(x),pi(a,E.x,E.y,0,0),je.free(E),a},Le.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},Le.Df=function(){if(!(this.l&4096))return this.Kk;var a=this.Ca;return this.panel!==null?a*this.panel.Df():a},Le.qs=function(a,y){return y===void 0&&(y=new je),y.assign(a),this.oe.Cd(y),y},Le.rs=function(a,y,x){return this.Sj(a.x,a.y,y.x,y.y,x)},Le.Sj=function(a,y,x,E,b){var z=this.transform,ee=1/(z.m11*z.m22-z.m12*z.m21),re=z.m22*ee,oe=-z.m12*ee,le=-z.m21*ee,he=z.m11*ee,ge=ee*(z.m21*z.dy-z.m22*z.dx),Se=ee*(z.m12*z.dx-z.m11*z.dy);return this.areaBackground!==null?(z=this.actualBounds,St.Ff(z.left,z.top,z.right,z.bottom,a,y,x,E,b)):(ee=a*re+y*le+ge,a=a*oe+y*he+Se,y=x*re+E*le+ge,x=x*oe+E*he+Se,b.h(0,0),E=this.naturalBounds,x=St.Ff(0,0,E.width,E.height,ee,a,y,x,b),b.transform(z),x)},At.prototype.measure=function(a,y,x,E){if(ll(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 ee=this.kq();z===90||z===270?(a=isFinite(b.height)?b.height+ee:a,y=isFinite(b.width)?b.width+ee:y):(a=isFinite(b.width)?b.width+ee:a,y=isFinite(b.height)?b.height+ee:y),b=x||0,ee=E||0;var re=this instanceof Rn;switch(Os(this,!0)){case Sn:ee=b=0,re&&(y=a=1/0);break;case bn:isFinite(a)&&a>x&&(b=a),isFinite(y)&&y>E&&(ee=y);break;case zi:isFinite(a)&&a>x&&(b=a),ee=0,re&&(y=1/0);break;case Qi:isFinite(y)&&y>E&&(ee=y),b=0,re&&(a=1/0)}re=this.maxSize;var oe=this.minSize;b>re.width&&oe.width<re.width&&(b=re.width),ee>re.height&&oe.height<re.height&&(ee=re.height),x=Math.max(b,oe.width),E=Math.max(ee,oe.height),re.width<x&&(x=Math.min(oe.width,x)),re.height<E&&(E=Math.min(oe.height,E)),a=Math.min(re.width,a),y=Math.min(re.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()||et("Non-real measuredBounds has been set. Object "+this+", measuredBounds: "+this.uc.toString()),La(this,!1)}},At.prototype.Wl=function(){},At.prototype.Dd=function(){return!1},At.prototype.arrange=function(a,y,x,E,b){this.Uk();var z=vt.alloc();z.assign(this.Ib),this.Ib.ka(),Cs(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&&Mh(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 zo&&(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()||et("Non-real actualBounds has been set. Object "+this+", actualBounds: "+this.Ib.toString()),this.Xl(z,this.Ib),Ou(this,!1),vt.free(z)},Le=At.prototype,Le.eh=function(){};function ms(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 ee=x.top+x.bottom;switch(x=z.width+y,z=z.height+ee,E+=y,b+=ee,y=Os(a,!0),x===E&&z===b&&(y=Sn),y){case Sn:(x>E||z>b)&&(La(a,!0),a.measure(x>E?E:x,z>b?b:z,0,0));break;case bn:La(a,!0),a.measure(E,b,0,0);break;case zi:La(a,!0),a.measure(E,z,0,0);break;case Qi:La(a,!0),a.measure(x,b,0,0)}}}Le.Xl=function(a,y){var x=this.part;x!==null&&x.diagram!==null&&(x.selectionObject!==this&&x.resizeObject!==this&&x.rotateObject!==this||Zv(x,!0),this.N(),zn(a,y)||(x.oh(),this.Pn(x)))},Le.Pn=function(a){this.portId!==null&&(Zv(a,!0),a instanceof ui&&K1(a,this))},Le.gc=function(a,y){if(!xl(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 Rn&&Mh(this),ee=this.Ib;if(z){var re=this.Ib,oe=this.dc,le=this.areaBackground,he=this.Ma;le===null&&he===null||a.yc(),le!==null&&(da(this,a,le,!0,!0,oe,re),le instanceof xo&&le.type===Cl?(a.beginPath(),a.rect(re.x,re.y,re.width,re.height),a.ng(le)):a.fillRect(re.x,re.y,re.width,re.height)),he!==null&&(da(this,a,he,!0,!1,oe,re),he instanceof xo&&he.type===Cl?(a.beginPath(),a.rect(re.x,re.y,re.width,re.height),a.ng(he)):a.fillRect(re.x,re.y,re.width,re.height)),this.hh(a,y)}if(!z&&(z||ee.width!==0&&ee.height!==0&&!isNaN(ee.x)&&!isNaN(ee.y))){z=this.transform,re=this.panel,this.l&4096&&Qa(this),le=this.part,oe=!1;var ge=0;le&&y.Gf("drawShadows")&&(oe=le.isShadowed)&&(he=le.shadowOffset,ge=Math.max(he.y,he.x)*y.scale*y.Mb),he=this.Dd();var Se;if(!(Se=y.$i||!he)){var Pe=this.naturalBounds;Se=this.wh;var Ae=Se.m11,Be=Se.m21,Qe=Se.dx,Ke=Se.m12,lt=Se.m22,ct=Se.dy,ft,Et=ft=0;Se=ft*Ae+Et*Be+Qe;var Gt=ft*Ke+Et*lt+ct;ft=Pe.width+ge,Et=0;var si=ft*Ae+Et*Be+Qe;ft=ft*Ke+Et*lt+ct,Et=Math.min(Se,si);var Li=Math.min(Gt,ft),wi=Math.max(Se+0,si)-Et,Vn=Math.max(Gt+0,ft)-Li;Se=Et,Gt=Li,ft=Pe.width+ge,Et=Pe.height+ge,si=ft*Ae+Et*Be+Qe,ft=ft*Ke+Et*lt+ct,Et=Math.min(Se,si),Li=Math.min(Gt,ft),wi=Math.max(Se+wi,si)-Et,Vn=Math.max(Gt+Vn,ft)-Li,Se=Et,Gt=Li,ft=0,Et=Pe.height+ge,si=ft*Ae+Et*Be+Qe,ft=ft*Ke+Et*lt+ct,Et=Math.min(Se,si),Li=Math.min(Gt,ft),wi=Math.max(Se+wi,si)-Et,Vn=Math.max(Gt+Vn,ft)-Li,Se=Et,Gt=Li,ge=y.viewportBounds,Pe=ge.x,Ae=ge.y,Se=!(Se>ge.width+Pe||Pe>wi+Se||Gt>ge.height+Ae||Ae>Vn+Gt)}if(Se){if(Se=(this.l&256)!==0,a.clipInsteadOfFill&&(Se=!1),this instanceof zo&&(a.font=this.font),Se){if(Gt=re.se()?re.naturalBounds:re.actualBounds,wi=Math.max(ee.x,Gt.x),Vn=Math.max(ee.y,Gt.y),ge=Math.min(ee.right,Gt.right)-wi,Pe=Math.min(ee.bottom,Gt.bottom)-Vn,Ae=this.tb,Ae!==null&&(wi=Ae.x,Vn=Ae.y,ge=Ae.width,Pe=Ae.height),wi>ee.width+ee.x||ee.x>Gt.width+Gt.x){x!==1&&(a.globalAlpha=E),this.filter!==""&&(a.filter=b);return}a.save(),a.beginPath(),a.rect(wi,Vn,ge,Pe),a.clip()}if(he){if(!le.isVisible()){x!==1&&(a.globalAlpha=E),this.filter!==""&&(a.filter=b);return}oe&&(Gt=le.shadowOffset,a.Ev(Gt.x*y.scale*this.scale*y.Mb,Gt.y*y.scale*this.scale*y.Mb,le.shadowBlur),th(a),a.shadowColor=le.shadowColor)}oe&&this.shadowVisible===!0?th(a):oe&&this.shadowVisible===!1&&Iu(a),le=this.naturalBounds,this.areaBackground!==null&&(a.yc(),sl(this,a,le,ee)),a.transform(z.m11,z.m12,z.m21,z.m22,z.dx,z.dy),oe&&_a(this,re)&&this.shadowVisible===null&&Iu(a),this.Ma!==null&&(a.yc(),Vs(this,a,le,ee)),oe&&(this.Ma!==null||this.areaBackground!==null||_a(this,re))?(Ul(this,!0),this.shadowVisible===null&&Iu(a)):Ul(this,!1),this.hh(a,y),oe&&this.l&512&&th(a),he&&oe&&Iu(a),Se&&(a.restore(),a.Vc(this instanceof Rn)),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 _a(a,y){return y===null?!1:(Mh(y)&&(y=y.panel),(y.l&512)!==0||(y.type===Rn.Auto||y.type===Rn.Spot)&&y.Pb()!==a)}Le.Dv=function(){};function sl(a,y,x,E){da(a,y,a.areaBackground,!0,!0,x,E),a.areaBackground instanceof xo&&a.areaBackground.type===Cl?(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 Vs(a,y,x,E){var b=a.kq(),z=x.x,ee=x.y,re=x.width+b,oe=x.height+b;da(a,y,a.Ma,!0,!1,x,E),a.Ma instanceof xo&&a.Ma.type===Cl?(y.beginPath(),y.rect(z-b/2,ee-b/2,re,oe),y.ng(a.Ma)):y.fillRect(z-b/2,ee-b/2,re,oe)}function cs(a,y,x){for(var E=y.O.s,b=E.length,z=-1,ee=0;ee<b;ee++)if(E[ee]===a){z=ee;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===Rn.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 xl(a,y,x){if(!(y instanceof qs))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&&cs(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),th(y),y.shadowColor=a.shadowColor}a instanceof zo&&(y.font=a.font),y.yd=null;var ee=a.transform;z=a instanceof Rn;var re=a instanceof Rn?Mh(a):!1;a.l&4096&&Qa(a);var oe=a.Ib;if(y.rb.ha=[1,0,0,1,0,0],y.o=!1,b&&(y.o=!0,z&&re?(Kg(y,1,0,0,1,0,0),a.svg=y.ad):z?(Kg(y,ee.m11,ee.m12,ee.m21,ee.m22,ee.dx,ee.dy),a.svg=y.ad):Kg(y,1,0,0,1,0,0)),b=a.naturalBounds,a.areaBackground!==null){var le=ee.copy().Vj();y.rb.ha=[le.m11,le.m12,le.m21,le.m22,le.dx,le.dy],sl(a,y,b,oe),y.rb.ha=[1,0,0,1,0,0],y.yd.gd=y.ad,y.yd.prepend(y.ad)}return z||(y.rb.ha=[ee.m11,ee.m12,ee.m21,ee.m22,ee.dx,ee.dy]),a.background!==null&&(z?(re&&(y.rb.ha=[ee.m11,ee.m12,ee.m21,ee.m22,ee.dx,ee.dy]),Vs(a,y,b,oe),re&&(y.rb.ha=[1,0,0,1,0,0])):(y.rb.ha=[ee.m11,ee.m12,ee.m21,ee.m22,ee.dx,ee.dy],Vs(a,y,b,oe)),y.yd.Ma=y.ad,y.yd.prepend(y.ad)),ee=y.yd,b=a.part,re=!1,b&&x.Gf("drawShadows")&&(re=b.isShadowed),y.clipInsteadOfFill&&(re=!1),a.Dd()&&re&&th(y),re&&a.shadowVisible===!0?th(y):re&&a.shadowVisible===!1&&Iu(y),b=a.panel,re&&_a(a,b)&&a.shadowVisible===null&&Iu(y),y.Il&&(le=x.computePixelRatio(),le="drop-shadow("+y.shadowOffsetX/le+"px "+y.shadowOffsetY/le+"px "+y.shadowBlur/le/2+"px "+y.shadowColor+")",a.background!==null&&ee.Ma.setAttributeNS(null,"filter",le),a.areaBackground!==null&&ee.gd.setAttributeNS(null,"filter",le)),re&&(a.Ma!==null||a.areaBackground!==null||_a(a,b))?(Ul(a,!0),a.shadowVisible===null&&Iu(y)):Ul(a,!1),b=re,a.hh(y,x),z&&y.nh.pop(),y.o&&y.nh.pop(),ee=y.Gv.hs,re=z?a.svg:y.yd,le=a.svg,!z&&le!==null&&re!==le&&le.parentNode===a.panel.svg?(a.svg.replaceWith(re),a.svg=re,re!==null&&a.$o(y,E,oe,re),Ts(y,le),!0):(a.svg=re,ee!==null&&re===null&&(c0(y),y.nh.pop()),re===null||(a.$o(y,E,oe,re),y.Il&&(x=x.computePixelRatio(),a.Dv(re,"drop-shadow("+y.shadowOffsetX/x+"px "+y.shadowOffsetY/x+"px "+y.shadowBlur/x/2+"px "+y.shadowColor+")")),b&&a.l&512&&th(y),a.Dd()&&Iu(y),x=a.Dd()?a.opacity*y.globalAlpha:a.opacity,x!==1&&re.setAttributeNS(null,"opacity",x.toString()),a.filter!==""&&re.setAttributeNS(null,"filter",a.filter),a.Dd()?(y.ti?y.ti.after(re):y.Nj.prepend(re),y.ti=re):E!==null&&cs(a,E,re),ee!==null&&ee(a,re)),!0)}Le.$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 ee=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,ee=z.width,x=z.height),z=E.getAttribute("clip-path");var re=null;z!==null&&(re=a.svg.getElementById(z.split("#")[1].slice(0,-1))),re===null?(z="CLIP"+Co++,re=a.Ud("clipPath",{id:z}),y=a.Ud("rect",{x:y,y:b,width:ee,height:x}),this instanceof Rn&&(b=this.transform.copy().Vj(),y.setAttribute("transform","matrix("+b.m11+", "+b.m12+", "+b.m21+", "+b.m22+", "+b.dx+", "+b.dy+")")),re.appendChild(y),a.svg.appendChild(re),E.setAttributeNS(null,"clip-path","url(#"+z+")")):(a=re.firstElementChild,a.setAttribute("x",y.toString()),a.setAttribute("y",b.toString()),a.setAttribute("width",ee.toString()),a.setAttribute("height",x.toString()))}else E.removeAttributeNS(null,"clip-path"),Ts(a,E)};function Ts(a,y){y=y.getAttribute("clip-path"),y!==null&&(a=a.svg.getElementById(y.split("#")[1].slice(0,-1)),a!==null&&a.remove())}function fs(a){if(a.svg!==null){var y=a.svg.innerHTML.match(/url\(#((CLIP|GRAD).+?)\)/g),x=a.svg.ownerDocument;if(y!==null){y=Qn(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()}}Le.hh=function(){},Le.lv=function(){this.Uc=!0},Le.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 Rn?Mh(this):!1;if(!(this instanceof Rn&&b))if(this instanceof Rs){var z=this.bt;a.rb.ha=[E.m11,E.m12,E.m21,E.m22,E.dx,E.dy],z!==null&&qy(a,z[0],z[1],z[2],z[3],z[4],z[5],z[6],z[7]),x?y.lastElementChild.setAttributeNS(null,"transform",$y(a)):y.setAttributeNS(null,"transform",$y(a))}else if(!x||this instanceof Rn)y.setAttributeNS(null,"transform","matrix("+E.m11+", "+E.m12+", "+E.m21+", "+E.m22+", "+E.dx+", "+E.dy+")");else if(this instanceof Lr){z=y.getElementsByTagName("path");for(var ee=0;ee<z.length;ee++)z[ee].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):(ee=E.copy().Vj(),a.rb.ha=[ee.m11,ee.m12,ee.m21,ee.m22,ee.dx,ee.dy],sl(this,a,this.naturalBounds,this.actualBounds),a.rb.ha=[1,0,0,1,0,0],y.gd?(ee=y.gd.getAttribute("filter"),ee!==null&&a.ad.setAttribute("filter",ee),y.gd.replaceWith(a.ad)):y.prepend(a.ad),y.gd=a.ad),z&&f0(a,z)),(this.background!==null||y.Ma!==void 0)&&(z=y.Ma,this.background===null?(f0(a,y.Ma),y.Ma.remove(),y.Ma=void 0):((b||x&&!(this instanceof Rn))&&(a.rb.ha=[E.m11,E.m12,E.m21,E.m22,E.dx,E.dy]),Vs(this,a,this.naturalBounds,this.actualBounds),y.Ma?(f0(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&&f0(a,z)),this.$o(a,this.panel,this.actualBounds,y),!0},Le.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 da(a,y,x,E,b,z,ee){if(x!==null){var re=1,oe=1;if(typeof x=="string")E?y.fillStyle=x:y.strokeStyle=x;else if(x.type===Fh)E?y.fillStyle=x.color:y.strokeStyle=x.color;else{var le=a.kq();if(re=z.width,oe=z.height,b?(re=ee.width,oe=ee.height):E||(re+=le,oe+=le),(z=y instanceof Xd)&&x.xe&&(x.type===kf||x.yk===re&&x.ft===oe))var he=x.xe;else{var ge=0,Se=0,Pe=0,Ae=0,Be=0,Qe=0;if(Qe=Be=0,b?(Be=ee.x,Qe=ee.y):E||(Be-=le/2,Qe-=le/2),ge=x.start.x*re+x.start.offsetX,Se=x.start.y*oe+x.start.offsetY,Pe=x.end.x*re+x.end.offsetX,Ae=x.end.y*oe+x.end.offsetY,ge+=Be,Pe+=Be,Se+=Qe,Ae+=Qe,x.type===ih)he=y.createLinearGradient(ge,Se,Pe,Ae);else if(x.type===Cl)Qe=isNaN(x.endRadius)?Math.max(re,oe)/2:x.endRadius,isNaN(x.startRadius)?(Be=0,Qe=Math.max(re,oe)/2):Be=x.startRadius,he=y.createRadialGradient(ge,Se,Be,Pe,Ae,Qe);else if(x.type===kf)try{he=y.createPattern(x.pattern,"repeat")}catch(lt){he=null}if(x.type!==kf&&(b=x.colorStops,b!==null))for(b=b.iterator;b.next();)he.addColorStop(b.key,b.value);if(z&&(x.xe=he,he!==null&&(x.yk=re,x.ft=oe),he===null&&x.type===kf&&x.yk!==-1)){x.yk=-1;var Ke=a.diagram;Ke!==null&&x.yk===-1&&Tr(function(){Ke.redraw()},600)}}E?y.fillStyle=he:y.strokeStyle=he}}}Le.rg=function(a){if(a instanceof Rn)e:{if(this!==a&&a!==null)for(var y=this.panel;y!==null;){if(y===a){a=!0;break e}y=y.panel}a=!1}else a=!1;return a},Le.Ed=function(){if(!this.visible)return!1;var a=this.panel;return a!==null?a.Ed():!0},Le.If=function(){for(var a=this instanceof Rn?this:this.panel;a!==null&&a.isEnabled;)a=a.panel;return a===null};function Qa(a){if(a.l&2048){var y=a.Ab;if(y.reset(),!a.Ib.w()||!a.uc.w()){Ol(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)}Ol(a,!1),Pl(a,!0)}a.l&4096&&(y=a.panel,y===null?(a.wh.set(a.Ab),a.Kk=a.scale,Pl(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,Pl(a,!1)))}Le.no=function(a,y,x,E,b){if(this.Ca!==1&&a.scale(this.Ca),this.Kb!==0){var z=je.alloc();z.yi(y,x,E,b,Ln),a.rotate(this.Kb,z.x,z.y),je.free(z)}},Le.v=function(a){if(!ll(this)){a===void 0&&(a=!1),La(this,!0),Ou(this,!0);var y=this.panel;y===null||a||y.v()}},Le.Uj=function(){ll(this)||(La(this,!0),Ou(this,!0))};function ws(a){if(!Cs(a)){var y=a.panel;y!==null?y.v():a.Dd()&&(y=a.diagram,y!==null&&(y.De.add(a),a instanceof ui&&a.Bd(),y.$b())),Ou(a,!0)}}Le.Uk=function(){!(this.l&2048)&&(Ol(this,!0),Pl(this,!0))},Le.Wu=function(){Pl(this,!0)},Le.N=function(){var a=this.part;a!==null&&a.N()};function Os(a,y){var x=a.stretch,E=a.panel;return E!==null&&E.type===Rn.Table?ou(a,E.Fb(a.row),E.Eb(a.column),y):E!==null&&E.type===Rn.Auto&&E.Pb()===a?Ua(a,bn,y):x===wr?E!==null?E.type===Rn.Spot&&E.Pb()===a?Ua(a,bn,y):(x=E.defaultStretch,x===wr?Ua(a,Sn,y):Ua(a,x,y)):Ua(a,Sn,y):Ua(a,x,y)}function ou(a,y,x,E){var b=a.stretch;if(b!==wr)return Ua(a,b,E);var z=b=null;switch(y.stretch){case Qi:z=!0;break;case bn:z=!0}switch(x.stretch){case zi:b=!0;break;case bn:b=!0}return y=a.panel.defaultStretch,b===null&&(b=y===zi||y===bn),z===null&&(z=y===Qi||y===bn),b===!0&&z===!0?Ua(a,bn,E):b===!0?Ua(a,zi,E):z===!0?Ua(a,Qi,E):Ua(a,Sn,E)}function Ua(a,y,x){if(x)return y;if(y===Sn||(x=a.desiredSize,x.w()))return Sn;if(a=a.angle,!isNaN(x.width))if(a!==90&&a!==270){if(y===zi)return Sn;if(y===bn)return Qi}else{if(y===Qi)return Sn;if(y===bn)return zi}if(!isNaN(x.height))if(a!==90&&a!==270){if(y===Qi)return Sn;if(y===bn)return zi}else{if(y===zi)return Sn;if(y===bn)return Qi}return y}function Ul(a,y){a.l=y?a.l|512:a.l&-513}function ts(a){return(a.l&1024)!==0}function Bc(a,y){a.l=y?a.l|1024:a.l&-1025}function Ol(a,y){a.l=y?a.l|2048:a.l&-2049}function Pl(a,y){a.l=y?a.l|4096:a.l&-4097}function ll(a){return(a.l&8192)!==0}function La(a,y){a.l=y?a.l|8192:a.l&-8193}function Cs(a){return(a.l&16384)!==0}function Ou(a,y){a.l=y?a.l|16384:a.l&-16385}Le.Gj=function(){this.svg=null},Le.wi=function(a){this.Me=a,this.svg!==null&&this.svg.remove()},Le.Av=function(){},Le.zv=function(a){return this.pa=a,ws(this),!0},Le.mm=function(a,y){(this.pa.x!==a||this.pa.y!==y)&&(this.pa.h(a,y),this.Uk())},Le.kq=function(){return 0};function _d(a){var y=a.part;if(y instanceof ui&&(a.portId!==null||a===y.port)){var x=y.diagram;x===null||x.undoManager.isUndoingRedoing||K1(y,a)}}function Qy(a){var y=a.diagram;y===null||y.undoManager.isUndoingRedoing||(a instanceof Rn?a instanceof ui?a.Bd():a.qm(a,function(x){_d(x)}):_d(a))}Le.bind=function(a,y,x,E){var b=null;return typeof a=="string"?b=new Pa(a,y,x,E):b=a,b.xd=this,a=this.ih(),a!==null&&p1(a)&&et("Cannot add a Binding to a template that has already been copied: "+b),this.localBindings===null&&(this.localBindings=new Mn),this.localBindings.add(b),this},Le.set=function(a){return Object.assign(this,a),this},Le.Du=function(a){return rv(this,a),this},Le.apply=function(a){return a(this),this},Le.nm=function(a){return zd(this,a),this},Le.pz=function(){return this.ih()},Le.ih=function(){for(var a=this instanceof Rn?this:this.panel;a!==null;){if(a.allBindings!==null)return a;a=a.panel}return null},Le.Jv=function(a){return a.xd=this,this.animationTriggers===null&&(this.animationTriggers=new Ut),this.animationTriggers.add(a.propertyName,a),this};function wl(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=Af.I(a);typeof z=="function"?(x=kn(arguments),E=z(x),en(E)||et('GraphObject.make invoked object builder "'+a+'", but it did not return an Object')):b=Xn.go[a]}if(E===null&&(b!=null&&b.constructor||et("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 Yt&&1<x.length){z=E;var ee=x[1];(typeof ee=="string"||ee instanceof HTMLDivElement)&&(xg(z,ee),b++)}for(;b<x.length;b++)z=x[b],z===void 0?et("Undefined value at argument "+b+" for object being constructed by GraphObject.make: "+E):rv(E,z);return E}function rv(a,y){if(typeof y=="string")if(a instanceof zo)a.text=y;else if(a instanceof Lr)a.figure=y;else if(a instanceof Rs)a.source=y;else if(a instanceof Rn)y=Xl.I(y),y!==null&&(a.type=y);else if(a instanceof xo){var x=ni(xo,y);x!==null?a.type=x:et("Unknown Brush type as an argument to GraphObject.make: "+y)}else a instanceof Pn?(y=ni(Pn,y),y!==null&&(a.type=y)):a instanceof Wr&&(y=ni(Wr,y),y!==null&&(a.type=y));else if(y instanceof At)a instanceof Rn||et("A GraphObject can only be added to a Panel, not to: "+a),a.add(y);else if(y instanceof ba){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 ba?b0(E,y):et("A RowColumnDefinition can only be added to an object that implements getRowDefinition/getColumnDefinition, not to: "+a)}else if(y instanceof yn)typeof a.qb=="function"&&a.qb(y);else if(y instanceof ka)a.type=y;else if(y instanceof Pa)a instanceof At||a instanceof ba?a.bind(y):et("A Binding can only be applied to a GraphObject or RowColumnDefinition, not to: "+a);else if(y instanceof Kl)a instanceof At?a.Jv(y):et("An AnimationTrigger can only be applied to a GraphObject, not to: "+a);else if(y instanceof sa)a instanceof Pn&&a.type===Pn.o?a.figures.add(y):et("A PathFigure can only be added to a Path Geometry, not to: "+a);else if(y instanceof Wr)a instanceof sa?a.segments.add(y):et("A PathSegment can only be added to a PathFigure, not to: "+a);else if(y instanceof $o)a instanceof Yt||a instanceof Pr?a.layout=y:et("A Layout can only be assigned to a Diagram or a Group, not to: "+a);else if(Array.isArray(y))for(x=0;x<y.length;x++)rv(a,y[x]);else if(typeof y=="object"&&y!==null)if(a instanceof xo){x=new Ri;for(var b in y)E=parseFloat(b),isNaN(E)?x[b]=y[b]:a.addColorStop(E,y[b]);zd(a,x)}else if(a instanceof ba){y.row!==void 0?(b=y.row,(b==null||b===1/0||isNaN(b)||0>b)&&et("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)&&et("Must specify non-negative integer column for RowColumnDefinition "+y+", not: "+b),a.isRow=!1,a.index=b),b=new Ri;for(x in y)x!=="row"&&x!=="column"&&(b[x]=y[x]);zd(a,b)}else zd(a,y);else et('Unknown initializer "'+y+'" for object being constructed by GraphObject.make: '+a)}function Ah(a,y){Af.add(a,y)}function d0(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}It.Object.defineProperties(At.prototype,{bindingId:{get:function(){return this.A!==null?this.A.zp:-1},set:function(a){this.bindingId!==a&&(this.A===null&&(this.A=new Nc),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 Nc),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 Nc),this.A.wm=a)}},shadowVisible:{get:function(){return this.A!==null?this.A.Ci:null},set:function(a){var y=this.shadowVisible;y!==a&&(kr(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&&(kr(this),this.A.Hb=a,this.g("enabledChanged",y,a))}},segmentOrientation:{get:function(){return this.Ua!==null?this.Ua.rr:Fs},set:function(a){var y=this.segmentOrientation;y!==a&&(this.Ua===null&&(this.Ua=new sd),this.Ua.rr=a,this.v(),this.g("segmentOrientation",y,a),a===Fs&&(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 sd),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 sd),this.Ua.o=a,this.v(),this.g("segmentFraction",y,a))}},segmentOffset:{get:function(){return this.Ua!==null?this.Ua.F:ri},set:function(a){var y=this.segmentOffset;y.D(a)||(a=a.J(),this.Ua===null&&(this.Ua=new sd),this.Ua.F=a,this.v(),this.g("segmentOffset",y,a))}},stretch:{get:function(){return this.A!==null?this.A.hg:wr},set:function(a){var y=this.stretch;y!==a&&(kr(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&&(kr(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)&&Tn(a,"0 <= value <= 1",At,"opacity"),this.pb=a,this.g("opacity",y,a),a=this.diagram,y=this.part,a!==null&&y!==null&&a.N($d(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($d(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(),Qy(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&&Oc(a,"GraphObject.areaBackground"),a instanceof xo&&a.freeze(),kr(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&&Oc(a,"GraphObject.background"),a instanceof xo&&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 Ki)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 je(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&&et("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,Qy(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 Lr&&this.qc(),this.g("desiredSize",E,a),ts(this)&&(a=this.part,a!==null&&(Uo(this,a,"width"),Uo(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 Je(a,this.jd.height).freeze(),this.v(),this instanceof Lr&&this.qc(),this.g("desiredSize",y,a),ts(this)&&(a=this.part,a!==null&&Uo(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 Je(this.jd.width,a).freeze(),this.v(),this instanceof Lr&&this.qc(),this.g("desiredSize",y,a),ts(this)&&(a=this.part,a!==null&&Uo(this,a,"height")))}},minSize:{get:function(){return this.A!==null?this.A.u:pt},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(),kr(this),this.A.u=a,this.v(),this.g("minSize",y,a))}},maxSize:{get:function(){return this.A!==null?this.A.o:Nn},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(),kr(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 Pi(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&&Qa(this),this.Ab}},oe:{get:function(){return this.l&4096&&Qa(this),this.wh}},animationTriggers:{get:function(){return this.A!==null?this.A.hb:null},set:function(a){this.animationTriggers!==a&&(kr(this),this.A.hb=a)}},reshapingBehavior:{get:function(){return this.A!==null?this.A.Pf:Sn},set:function(a){this.reshapingBehavior!==a&&(kr(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()&&et("GraphObject.alignment for "+this+" must be a real Spot or Spot.Default, not: "+a),this.Jb=a=a.J(),ws(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&&Tn(a,">= 0",At,"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&&Tn(a,">= 1",At,"columnSpan"),kr(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&&Tn(a,">= 0",At,"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&&Tn(a,">= 1",At,"rowSpan"),kr(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&&(kr(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 ui||et("Cannot set portID on a Link: "+a),y!==null&&x!==null&&Vv(x,this),this.Yn=a,a!==null&&x!==null&&(x.Te=!0,X1(x,this)),this.g("portId",y,a)}}},toSpot:{get:function(){return this.ba!==null?this.ba.yj:Mi},set:function(a){var y=this.toSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.yj=a,this.g("toSpot",y,a),_d(this))}},toEndSegmentLength:{get:function(){return this.ba!==null?this.ba.wj:10},set:function(a){var y=this.toEndSegmentLength;y!==a&&(0>a&&Tn(a,">= 0",At,"toEndSegmentLength"),this.Xc(),this.ba.wj=a,this.g("toEndSegmentLength",y,a),_d(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),_d(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&&Tn(a,">= 0",At,"toMaxLinks"),this.Xc(),this.ba.Ur=a,this.g("toMaxLinks",y,a))}},fromSpot:{get:function(){return this.ba!==null?this.ba.Xi:Mi},set:function(a){var y=this.fromSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.Xi=a,this.g("fromSpot",y,a),_d(this))}},fromEndSegmentLength:{get:function(){return this.ba!==null?this.ba.Vi:10},set:function(a){var y=this.fromEndSegmentLength;y!==a&&(0>a&&Tn(a,">= 0",At,"fromEndSegmentLength"),this.Xc(),this.ba.Vi=a,this.g("fromEndSegmentLength",y,a),_d(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),_d(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&&Tn(a,">= 0",At,"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&&(kr(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&&(kr(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&&(kr(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&&(kr(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&&(kr(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&&(kr(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&&(kr(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&&(kr(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&&(kr(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&&(kr(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&&(kr(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&&(kr(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&&(kr(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&&(kr(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&&(kr(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&&(kr(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&&(kr(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&&(kr(this),this.A.Ch=a,this.g("contextMenu",y,a))}}}),At.prototype.trigger=At.prototype.Jv,At.prototype.findBindingPanel=At.prototype.ih,At.prototype.findTemplateBinder=At.prototype.pz,At.prototype.setProperties=At.prototype.nm,At.prototype.apply=At.prototype.apply,At.prototype.attach=At.prototype.Du,At.prototype.set=At.prototype.set,At.prototype.isEnabledObject=At.prototype.If,At.prototype.isVisibleObject=At.prototype.Ed,At.prototype.isContainedBy=At.prototype.rg,At.prototype.getNearestIntersectionPoint=At.prototype.rs,At.prototype.getLocalPoint=At.prototype.qs,At.prototype.getDocumentScale=At.prototype.Df,At.prototype.getDocumentAngle=At.prototype.li,At.prototype.getDocumentBounds=At.prototype.mi,At.prototype.getDocumentPoint=At.prototype.ga,At.prototype.intersectsRect=At.prototype.Yc,At.prototype.containedInRect=At.prototype.fh,At.prototype.containsRect=At.prototype.Re,At.prototype.containsPoint=At.prototype.ca,At.prototype.raiseChanged=At.prototype.g,At.prototype.raiseChangedEvent=At.prototype.cb,At.prototype.addCopyProperty=At.prototype.Vw;var Af=null;At.className="GraphObject",Af=new Ut,Ah("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=wl(Rn,Rn.Auto,{isActionable:!0,enabledChanged:function(x,E){if(x instanceof Rn){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"},wl(Lr,{name:"ButtonBorder",figure:"RoundedRectangle",spot1:new En(0,0,2.76142374915397,2.761423749153969),spot2:new En(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 Rn&&(x=E.fb("ButtonBorder"),x instanceof Lr)){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 Rn&&(x=E.fb("ButtonBorder"),x instanceof Lr&&(x.fill=E._buttonFillNormal,x.stroke=E._buttonStrokeNormal))},y.actionDown=function(x,E){if(E.If()&&E instanceof Rn&&E._buttonFillPressed!==null&&x.button===0){var b=E.fb("ButtonBorder");if(b instanceof Lr){x=x.diagram;var z=x.skipsUndoManager;x.skipsUndoManager=!0;var ee=E._buttonFillPressed;E._buttonFillOver=b.fill,b.fill=ee,ee=E._buttonStrokePressed,E._buttonStrokeOver=b.stroke,b.stroke=ee,x.skipsUndoManager=z}}},y.actionUp=function(x,E){if(E.If()&&E instanceof Rn&&E._buttonFillPressed!==null&&x.button===0){var b=E.fb("ButtonBorder");if(b instanceof Lr){var z=x.diagram,ee=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=ee}}},y.actionCancel=function(x,E){if(E.If()&&E instanceof Rn&&E._buttonFillPressed!==null){var b=E.fb("ButtonBorder");if(b instanceof Lr){var z=x.diagram,ee=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=ee}}},y.actionMove=function(x,E){if(E.If()&&E instanceof Rn&&E._buttonFillPressed!==null){var b=x.diagram;if(b.firstInput.button===0&&(b.currentTool.standardMouseOver(),a(x,E)&&(x=E.fb("ButtonBorder"),x instanceof Lr))){var z=b.skipsUndoManager;b.skipsUndoManager=!0;var ee=E._buttonFillPressed;x.fill!==ee&&(x.fill=ee),ee=E._buttonStrokePressed,x.stroke!==ee&&(x.stroke=ee),b.skipsUndoManager=z}}},y}),Ah("TreeExpanderButton",function(){var a=wl("Button",{_treeExpandedFigure:"MinusLine",_treeCollapsedFigure:"PlusLine"},wl(Lr,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:Qt},new Pa("figure","isTreeExpanded",function(y,x){return x=x.panel,y?x._treeExpandedFigure:x._treeCollapsedFigure}).cp()),{visible:!1},new Pa("visible","isTreeLeaf",function(y){return!y}).cp());return a.click=function(y,x){if(x=x.part,x instanceof no&&(x=x.adornedPart),x instanceof ui){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}),Ah("SubGraphExpanderButton",function(){var a=wl("Button",{_subGraphExpandedFigure:"MinusLine",_subGraphCollapsedFigure:"PlusLine"},wl(Lr,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:Qt},new Pa("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 no&&(x=x.adornedPart),x instanceof Pr){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}),Ah("ToolTip",function(){return wl(no,Rn.Auto,{isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new je(0,3),shadowBlur:5},wl(Lr,{name:"Border",figure:"RoundedRectangle",parameter1:1,parameter2:1,fill:"#F5F5F5",stroke:"#F0F0F0",spot1:new En(0,0,4,6),spot2:new En(1,1,-4,-4)}))}),Ah("ContextMenu",function(){return wl(no,Rn.Vertical,{background:"#F5F5F5",isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new je(0,3),shadowBlur:5},new Pa("background","",function(a){return a.adornedPart!==null&&a.placeholder!==null?null:"#F5F5F5"}))}),Ah("ContextMenuButton",function(){var a=wl("Button");a.stretch=zi;var y=a.fb("ButtonBorder");return y instanceof Lr&&(y.figure="Rectangle",y.strokeWidth=0,y.spot1=new En(0,0,2,3),y.spot2=new En(1,1,-2,-2)),a}),Ah("PanelExpanderButton",function(a){var y=d0(a,"COLLAPSIBLE"),x=wl("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},wl(Lr,{name:"ButtonIcon",strokeWidth:2},new Pa("geometryString","visible",function(E){return E?x._buttonExpandedFigure:x._buttonCollapsedFigure}).cp(y)));return a=x.fb("ButtonBorder"),a instanceof Lr&&(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 ee=b.ih();ee===null&&(ee=b.part),ee!==null&&(b=ee.fb(y),b!==null&&(E.handled=!0,z.Ea("Collapse/Expand Panel"),b.visible=!b.visible,z.eb("Collapse/Expand Panel")))}},x}),Ah("CheckBoxButton",function(a){var y=d0(a);return a=wl("Button",{desiredSize:new Je(14,14)},wl(Lr,{name:"ButtonIcon",geometryString:"M0 0 M0 8.85 L4.9 13.75 16.2 2.45 M16.2 16.2",strokeWidth:2,stretch:bn,geometryStretch:Bi,visible:!1},y!==""?new Pa("visible",y).Kx():[])),a.click=function(x,E){if(E instanceof Rn){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}),Ah("CheckBox",function(a){a=d0(a),a=wl("CheckBoxButton",a,{name:"Button",isActionable:!1,margin:new Pi(0,1,0,0)});var y=wl(Rn,"Horizontal",a,{isActionable:!0,cursor:a.cursor,margin:new Pi(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}),At.None=Sn=new yn(At,"None",0),At.Default=wr=new yn(At,"Default",0),At.Vertical=Qi=new yn(At,"Vertical",4),At.Horizontal=zi=new yn(At,"Horizontal",5),At.Fill=bn=new yn(At,"Fill",3),At.Uniform=Bi=new yn(At,"Uniform",1),At.UniformToFill=Hr=new yn(At,"UniformToFill",2),At.FlipVertical=Nr=new yn(At,"FlipVertical",1),At.FlipHorizontal=Ur=new yn(At,"FlipHorizontal",2),At.FlipBoth=Lo=new yn(At,"FlipBoth",3),At.make=wl,At.getBuilders=function(){var a=new Ut,y;for(y in Af)if(y!==y.toLowerCase()){var x=Af.I(y);typeof x=="function"&&a.add(y,x)}return a.freeze(),a},At.defineBuilder=Ah,At.build=function(a,y,x){for(var E=[],b=2;b<arguments.length;++b)E[b-2]=arguments[b];if(b=Af.I(a),typeof b=="function"&&(E=b([a].concat(E)),E instanceof At))return y&&E.set(y),E;et('GraphObject.build invoked object builder "'+a+'", but it did not return an Object')},At.takeBuilderArgument=d0;function Nc(){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=pt,this.o=Nn,this.hg=wr,this.ob=this.Bi=1,this.Pf=Sn,this.Pc=this.Ci=this.gd=null,this.Oc="category"}Nc.prototype.copy=function(){var a=new Nc;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 sd(){this.u=-1/0,this.o=0,this.F=ri,this.rr=Fs,this.j=this.V="None"}sd.prototype.copy=function(){var a=new sd;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},sd.className="LinkElementSettings";function Yg(){this.yj=this.Xi=Eo,this.xj=this.Wi=this.wj=this.Vi=NaN,this.Tr=this.hq=null,this.Ur=this.iq=1/0}Yg.prototype.copy=function(){var a=new Yg;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},Yg.className="LinkSettings";function Ud(){this.ha=[1,0,0,1,0,0]}Ud.prototype.copy=function(){var a=new Ud;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},Ud.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},Ud.prototype.scale=function(a,y){this.ha[0]*=a,this.ha[1]*=a,this.ha[2]*=y,this.ha[3]*=y},Ud.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,ee=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]=ee,this.translate(-y,-x)}},Ud.className="STransform";function Tc(a){this.type=a,this.r2=this.y2=this.x2=this.r1=this.y1=this.x1=0,this.gx=[],this.pattern=null}Tc.prototype.addColorStop=function(a,y){this.gx.push({offset:a,color:y})},Tc.className="SGradient";function Cu(a,y,x){this.ownerDocument=a=y===void 0?Xn.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 qs(this,x)}Cu.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},Cu.prototype.Ud=function(a,y,x){if(a=this.ownerDocument.createElementNS(this.cA,a),en(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},Cu.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},Cu.prototype.focus=function(){this.Oa.focus()},Cu.prototype.mx=function(){this.ownerDocument=null},It.Object.defineProperties(Cu.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}}}),Cu.className="SVGSurface";function qs(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 Ud,this.j=c0(this),this.Nj=c0(this,"gojs-diagram"),this.Hl=this.ti=null;var x=Co++,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 Jy(a,y,x,E,b,z,ee){a.Nj===void 0?Kg(a,y,x,E,b,z,ee):a.Nj.setAttribute("transform","matrix("+y+", "+x+", "+E+", "+b+", "+z+", "+ee+")")}Le=qs.prototype,Le.arc=function(a,y,x,E,b,z,ee,re){var oe=2*Math.PI,le=oe-1e-6,he=x*Math.cos(E),ge=x*Math.sin(E),Se=a+he,Pe=y+ge,Ae=z?0:1;E=z?E-b:b-E,(1e-6<Math.abs(ee-Se)||1e-6<Math.abs(re-Pe))&&this.path.push(["L",Se,+Pe]),0>E&&(E=E%oe+oe),E>le?(this.path.push(["A",x,x,0,1,Ae,a-he,y-ge]),this.path.push(["A",x,x,0,1,Ae,Se,Pe])):1e-6<E&&this.path.push(["A",x,x,0,+(E>=Math.PI),Ae,a+x*Math.cos(b),y+x*Math.sin(b)])},Le.beginPath=function(){this.path=[],this.Yl={stroke:"none",fill:"none"}},Le.Se=function(a){this.addPath(this.path,this.rb,a||0)},Le.bezierCurveTo=function(a,y,x,E,b,z){this.path.push(["C",a,y,x,E,b,z])},Le.clearRect=function(){},Le.clip=function(){this.Yl.clipPath=!0},Le.closePath=function(){this.path.push(["z"])},Le.createLinearGradient=function(a,y,x,E){var b=new Tc("linear");return b.x1=a,b.y1=y,b.x2=x,b.y2=E,b},Le.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"+Co++,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(Yd,b)),this.svg.appendChild(a),x[y]=E,"url(#"+E+")"},Le.createRadialGradient=function(a,y,x,E,b,z){var ee=new Tc("radial");return ee.x1=a,ee.y1=y,ee.r1=x,ee.x2=E,ee.y2=b,ee.r2=z,ee};function qy(a,y,x,E,b,z,ee,re,oe){E=re/E,b=oe/b,z===0&&ee===0||a.rb.translate(z,ee),E===1&&b===1||a.rb.scale(E,b),y===0&&x===0||a.rb.translate(-y,-x)}Le.drawImage=function(a,y,x,E,b,z,ee,re,oe){var le="";a instanceof HTMLCanvasElement&&(le=a.toDataURL()),a instanceof HTMLImageElement&&(le=a.getAttribute("src"));var he=a instanceof HTMLImageElement?a.naturalWidth:a.width;a=a instanceof HTMLImageElement?a.naturalHeight:a.height,E===void 0&&(z=y,ee=x,re=E=he,oe=b=a),E=E||0,b=b||0,re=re||0,oe=oe||0,qy(this,y,x,E,b,z||0,ee||0,re,oe),z={x:0,y:0,width:he||E,height:a||b,href:le},St.$(E,re)&&St.$(b,oe)?le.toLowerCase().indexOf(".svg")===-1&&le.toLowerCase().indexOf("data:image/svg")===-1&&(z.preserveAspectRatio="xMidYMid slice"):z.preserveAspectRatio="none",(y!==0||x!==0||E!==he||b!==a)&&(E+=y,b+=x,z["clip-path"]="path('M "+y+","+x+" L "+E+" "+x+" L "+E+" "+b+" L "+y+" "+b+" z')"),Ff(this,Yd,z,this.rb),this.addElement(Yd,z)},Le.fill=function(a){a&&(this.Yl["fill-rule"]="evenodd"),ov(this,this.Yl)},Le.ng=function(a,y){this.clipInsteadOfFill?this.clip():this.fill(y)},Le.fillRect=function(a,y,x,E){a=[a,y,x,E],a={x:a[0],y:a[1],width:a[2],height:a[3]},Ff(this,"fill",a,this.rb),this.addElement("rect",a)},Le.ox=function(a,y,x,E){a={x:a,y,width:x,height:E},Ff(this,"fill",a,this.rb),ov(this,a),this.svg.prepend(this.Ud("rect",a))},Le.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},Ff(this,"fill",y,this.rb),this.addElement("text",y,a[0])},Le.lineTo=function(a,y){this.path.push(["L",a,y])},Le.moveTo=function(a,y){this.path.push(["M",a,y])},Le.quadraticCurveTo=function(a,y,x,E){this.path.push(["Q",a,y,x,E])},Le.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"])},Le.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},Le.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())},Le.setTransform=function(a,y,x,E,b,z){a===1&&y===0&&x===0&&E===1&&b===0&&z===0||Kg(this,a,y,x,E,b,z)};function $y(a){return a=a.rb.ha,"matrix("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+", "+a[4]+", "+a[5]+")"}Le.scale=function(a,y){this.rb.scale(a,y)},Le.translate=function(a,y){this.rb.translate(a,y)},Le.transform=function(){},Le.yc=function(){},Le.stroke=function(){t1(this,this.Yl)},Le.jk=function(){this.clipInsteadOfFill||this.stroke()},Le.Ud=function(a,y,x){return this.Gv.Ud(a,y,x)},Le.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 Ff(a,y,x,E){y==="fill"?ov(a,x):y==="stroke"&&t1(a,x),E!==null&&(a=E.ha,x.transform="matrix("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+", "+a[4]+", "+a[5]+")")}function ov(a,y){a.fillStyle instanceof Tc?y.fill=av(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 e1(a,y,x){x=x?"fill":"stroke",a.fillStyle instanceof Tc?y.setAttributeNS(null,"fill",av(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 t1(a,y){if(a.strokeStyle instanceof Tc)y.stroke=av(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 av(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"+Co++,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=[],ee=0;ee<y;ee++){var re=b[ee],oe=re.color;re={offset:re.offset,"stop-color":oe},/^rgba\(/.test(oe)&&(oe=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(oe),re["stop-color"]="rgb("+oe[1]+","+oe[2]+","+oe[3]+")",re["stop-opacity"]=oe[4]),z.push(re)}for(z.sort(function(le,he){return le.offset>he.offset?1:-1}),b=0;b<y;b++)x.appendChild(a.Ud("stop",z[b]));return a.svg.appendChild(x),"url(#"+E+")"}Le.addPath=function(a,y,x){for(var E=[],b=0;b<a.length;b++){var z=kn(a[b]),ee=[z.shift()];if(ee[0]==="A")ee.push(z.shift()+","+z.shift(),z.shift(),z.shift()+","+z.shift(),z.shift()+","+z.shift());else for(;z.length;)ee.push(z.shift()+","+z.shift());E.push(ee.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,Ff(this,"",a,y),this.Hl!==null)if(y=this.Hl,y.nodeName!=="g")for(var re in a)re!=="transform"&&y.setAttributeNS(null,re,a[re]);else{re=y.getElementsByTagName("path");for(var oe in a)oe!=="transform"&&re[x].setAttributeNS(null,oe,a[oe])}else this.addElement("path",a)};function Kg(a,y,x,E,b,z,ee){var re=new Ud;re.ha=[y,x,E,b,z,ee],y={},Ff(a,"g",y,re),re=a.addElement("g",y),a.nh.push(re)}function c0(a,y){var x={};return y&&(x.class=y),y=a.addElement("g",x),a.nh.push(y),y}Le.Ev=function(a,y,x){this.Ar=a,this.Br=y,this.Vg=x};function Iu(a){a.Il=!1,a.shadowOffsetX=0,a.shadowOffsetY=0,a.shadowBlur=0}function th(a){a.Il=!0,a.shadowOffsetX=a.Ar,a.shadowOffsetY=a.Br,a.shadowBlur=a.Vg}Le.js=function(a,y){this.Ct=!0,this.Yg=a,this.uj=y},Le.fs=function(){this.Ct=!1},Le.Vc=function(){},Le.Wx=function(){},qs.prototype.rotate=function(a){this.rb.rotate(57.2958*a,0,0)},qs.prototype.getImageData=function(){return null},qs.prototype.measureText=function(){return null};function f0(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()))}qs.prototype.Hs=function(a){a.svg!==null&&a.svg.parentNode===this.Nj&&a.svg.remove()},qs.className="SVGContext",Yt.prototype.Cs=function(a){this.pj.contains("SVG")||this.bs("SVG",new Cu(this,Xn.document));var y=new Cu(this,Xn.document,!0);a===void 0&&(a=new Ri);var x=this;return Mc(this,function(E,b){return E=s0(x,E,"SVG",y),E=E!==null?E.svg:null,typeof b=="function"?(b(E),null):E},a)},Yt.prototype.makeSvg=Yt.prototype.Cs,Yt.prototype.av=function(a){return this.Cs(a)},Yt.prototype.makeSVG=Yt.prototype.av;function Il(a,y,x,E){this.ownerDocument=y=y===void 0?Xn.document:y,this.hs=null,y=y.createElement("canvas"),y.tabIndex=0,this.Oa=y,this.context=new Xd(y,x,E),y.H=a}Il.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},Il.prototype.toDataURL=function(a,y){return this.Oa.toDataURL(a,y)},Il.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},Il.prototype.focus=function(){this.Oa.focus()},Il.prototype.mx=function(){this.ownerDocument=this.Oa.H=null},It.Object.defineProperties(Il.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}}}),Il.className="CanvasSurface";function Xd(a,y,x){this.Z=a.getContext?a.getContext("2d",y):null,this.Z===null&&et("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}Le=Xd.prototype,Le.Wx=function(a){this.Z.imageSmoothingEnabled=a},Le.arc=function(a,y,x,E,b,z){this.Z.arc(a,y,x,E,b,z)},Le.beginPath=function(){this.Z.beginPath()},Le.Se=function(){},Le.bezierCurveTo=function(a,y,x,E,b,z){this.Z.bezierCurveTo(a,y,x,E,b,z)},Le.clearRect=function(a,y,x,E){this.yc(),this.Z.clearRect(a,y,x,E)},Le.clip=function(){this.Z.clip()},Le.closePath=function(){this.Z.closePath()},Le.createLinearGradient=function(a,y,x,E){return this.Z.createLinearGradient(a,y,x,E)},Le.createPattern=function(a,y){return this.Z.createPattern(a,y)},Le.createRadialGradient=function(a,y,x,E,b,z){return this.Z.createRadialGradient(a,y,x,E,b,z)},Le.drawImage=function(a,y,x,E,b,z,ee,re,oe){E===void 0?this.Z.drawImage(a,y,x):this.Z.drawImage(a,y,x,E,b,z,ee,re,oe)},Le.fill=function(a){this.Z.fill(a?"evenodd":"nonzero")},Le.fillRect=function(a,y,x,E){this.Z.fillRect(a,y,x,E)},Le.ox=function(a,y,x,E){this.Z.fillRect(a,y,x,E)},Le.fillText=function(a,y,x){this.Z.fillText(a,y,x)},Le.getImageData=function(a,y,x,E){return this.Z.getImageData(a,y,x,E)},Le.lineTo=function(a,y){this.Z.lineTo(a,y)},Le.measureText=function(a){return this.Z.measureText(a)},Le.moveTo=function(a,y){this.Z.moveTo(a,y)},Le.quadraticCurveTo=function(a,y,x,E){this.Z.quadraticCurveTo(a,y,x,E)},Le.rect=function(a,y,x,E){this.Z.rect(a,y,x,E)},Le.restore=function(){this.Z.restore()},Le.save=function(){this.yc(),this.Z.save()},Xd.prototype.rotate=function(a){this.El.rotate(57.2958*a,0,0)},Le=Xd.prototype,Le.setTransform=function(a,y,x,E,b,z){this.El.setTransform(a,y,x,E,b,z)},Le.scale=function(a,y){this.El.scale(a,y)},Le.translate=function(a,y){this.El.translate(a,y)},Le.stroke=function(){this.Z.stroke()},Le.transform=function(a,y,x,E,b,z){if(a!==1||y!==0||x!==0||E!==1||b!==0||z!==0){var ee=this.El,re=ee.m11*a+ee.m21*y;a=ee.m12*a+ee.m22*y,y=ee.m11*x+ee.m21*E,x=ee.m12*x+ee.m22*E,ee.dx=ee.m11*b+ee.m21*z+ee.dx,ee.dy=ee.m12*b+ee.m22*z+ee.dy,ee.m11=re,ee.m12=a,ee.m21=y,ee.m22=x}},Le.yc=function(){var a=this.El;this.Z.setTransform(a.m11,a.m12,a.m21,a.m22,a.dx,a.dy)},Le.ng=function(a,y){if(a instanceof xo&&a.type===Cl){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)},Le.jk=function(){this.Hm||this.stroke()},Le.Ev=function(a,y,x){this.Ar=a,this.Br=y,this.Vg=x},Le.js=function(a,y){var x=this.Z;x.setLineDash!==void 0&&(x.setLineDash(a),x.lineDashOffset=y)},Le.fs=function(){var a=this.Z;a.setLineDash!==void 0&&(a.setLineDash(Cx),a.lineDashOffset=0)},Le.Vc=function(a){a&&(this.dt=""),this.ct=this.et=""},Le.Hs=function(){},It.Object.defineProperties(Xd.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 Cx=Object.freeze([]);Xd.className="CanvasSurfaceContext";function _g(){this.F=this.o=this.u=this.j=0}_g.className="ColorNumbers";function xo(a,y){Df||(cv(),Df=!0),rr(this),this._isFrozen=!1,a===void 0?(this.na=Fh,this.xk="black"):typeof a=="string"?(this.na=Fh,this.xk=a):(this.na=a,this.xk="black"),a=this.na,a===ih?(this.Qd=Vi,this.Lk=Mr):this.Lk=a===Cl?this.Qd=Ln:this.Qd=Mi,this.Gr=0,this.Xp=NaN,this.xe=this.cr=this.we=null,this.ft=this.yk=0,y&&Object.assign(this,y)}xo.prototype.copy=function(){var a=new xo;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},Le=xo.prototype,Le.freeze=function(){return this._isFrozen=!0,this.we!==null&&this.we.freeze(),this},Le.ka=function(){return Object.isFrozen(this)&&et("cannot thaw constant: "+this),this._isFrozen=!1,this.we!==null&&this.we.ka(),this},Le.qb=function(a){a.classType===xo&&(this.type=a)},Le.toString=function(){var a="Brush(";if(this.type===Fh)a+=this.color;else if(a=this.type===ih?a+"Linear ":this.type===Cl?a+"Radial ":this.type===kf?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+")"},Le.addColorStop=function(a,y){return this._isFrozen&&Ft(this),(typeof a!="number"||!isFinite(a)||1<a||0>a)&&Tn(a,"0 <= loc <= 1",xo,"addColorStop:loc"),this.we===null&&(this.we=new Ut),this.we.add(a,y),this.na===Fh&&(this.type=ih),this.xe=null,this},Le.Vz=function(a,y){if(this._isFrozen&&Ft(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?Bf:y,this.type===Fh)nh(this.color),this.color=Lf(a,y);else if((this.type===ih||this.type===Cl)&&this.colorStops!==null)for(var x=this.colorStops.iterator;x.next();)nh(x.value),this.addColorStop(x.key,Lf(a,y));return this};function n1(a,y,x){return y=y===void 0||typeof y!="number"?.2:y,x=x===void 0?Bf:x,nh(a),Lf(y,x)}Le.Wy=function(a,y){if(this._isFrozen&&Ft(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?Bf:y,this.type===Fh)nh(this.color),this.color=Lf(-a,y);else if((this.type===ih||this.type===Cl)&&this.colorStops!==null)for(var x=this.colorStops.iterator;x.next();)nh(x.value),this.addColorStop(x.key,Lf(-a,y));return this};function i1(a,y,x){return y=y===void 0||typeof y!="number"?.2:y,x=x===void 0?Bf:x,nh(a),Lf(-y,x)}function sv(a,y,x){nh(a),a=Ho.j;var E=Ho.u,b=Ho.o,z=Ho.F;return nh(y),x===void 0&&(x=.5),"rgba("+Math.round((Ho.j-a)*x+a)+", "+Math.round((Ho.u-E)*x+E)+", "+Math.round((Ho.o-b)*x+b)+", "+Math.round((Ho.F-z)*x+z)+")"}Le.Gx=function(){if(this.type===Fh)return Mf(this.color);if((this.type===ih||this.type===Cl)&&this.colorStops!==null){var a=this.colorStops;if(this.type===Cl)return Mf(a.first().value);if(a.get(.5)!==null)return Mf(a.get(.5));if(a.count===2)return a=a.Fa(),Mf(sv(a[0].value,a[1].value));for(var y=a.iterator,x=-1,E=-1,b=1,z=1;y.next();){var ee=y.key,re=Math.abs(.5-y.key);b>z&&re<b?(x=ee,b=re):z>=b&&re<z&&(E=ee,z=re)}return x>E&&(z=x,x=E,E=z,z=b),b=E-x,Mf(sv(a.get(x),a.get(E),1-z/b))}return!1};function Mf(a){return a?a instanceof xo?a.Gx():(nh(a),128>(299*Ho.j+587*Ho.u+114*Ho.o)/1e3):!1}function Lf(a,y){switch(y){case Bf:y=100*uv(Ho.j);var x=100*uv(Ho.u),E=100*uv(Ho.o);return Es.j=.4124564*y+.3575761*x+.1804375*E,Es.u=.2126729*y+.7151522*x+.072175*E,Es.o=.0193339*y+.119192*x+.9503041*E,Es.F=Ho.F,y=dv(Es.j/bf[0]),x=dv(Es.u/bf[1]),E=dv(Es.o/bf[2]),Ru.j=116*x-16,Ru.u=500*(y-x),Ru.o=200*(x-E),Ru.F=Es.F,Ru.j=Math.min(100,Math.max(0,Ru.j+100*a)),a=(Ru.j+16)/116,y=a-Ru.o/200,Es.j=bf[0]*r1(Ru.u/500+a),Es.u=bf[1]*(Ru.j>g0*fv?Math.pow(a,3):Ru.j/g0),Es.o=bf[2]*r1(y),Es.F=Ru.F,a=-.969266*Es.j+1.8760108*Es.u+.041556*Es.o,y=.0556434*Es.j+-.2040259*Es.u+1.0572252*Es.o,Ho.j=255*hv((3.2404542*Es.j+-1.5371385*Es.u+-.4985314*Es.o)/100),Ho.u=255*hv(a/100),Ho.o=255*hv(y/100),Ho.F=Es.F,Ho.j=Math.round(Ho.j),255<Ho.j?Ho.j=255:0>Ho.j&&(Ho.j=0),Ho.u=Math.round(Ho.u),255<Ho.u?Ho.u=255:0>Ho.u&&(Ho.u=0),Ho.o=Math.round(Ho.o),255<Ho.o?Ho.o=255:0>Ho.o&&(Ho.o=0),"rgba("+Ho.j+", "+Ho.u+", "+Ho.o+", "+Ho.F+")";case o1:return lv(),ul.o=Math.min(100,Math.max(0,ul.o+100*a)),"hsla("+ul.j+", "+ul.u+"%, "+ul.o+"%, "+ul.F+")";default:et("Unknown color space: "+y)}}function nh(a){Df||(cv(),Df=!0);var y=gv;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,Ho.j=a[0],Ho.u=a[1],Ho.o=a[2],Ho.F=a[3]/255):(y.fillStyle="#FFFFFF",y.fillStyle=a,Ho.j=0,Ho.u=0,Ho.o=0,Ho.F=1)}}function lv(){var a=Ho.j/255,y=Ho.u/255,x=Ho.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 ee=a=0;else{switch(E){case a:ee=(y-x)/z%6;break;case y:ee=(x-a)/z+2;break;case x:ee=(a-y)/z+4}ee*=60,0>ee&&(ee+=360),a=z/(1-Math.abs(2*b-1))}ul.j=Math.round(ee),ul.u=Math.round(100*a),ul.o=Math.round(100*b),ul.F=Ho.F}function uv(a){return a/=255,.04045>=a?a/12.92:Math.pow((a+.055)/1.055,2.4)}function hv(a){return .0031308>=a?12.92*a:1.055*Math.pow(a,1/2.4)-.055}function dv(a){return a>fv?Math.pow(a,1/3):(g0*a+16)/116}function r1(a){var y=a*a*a;return y>fv?y:(116*a-16)/g0}function Oc(a,y){typeof a!="string"&&(a instanceof xo||et("Value for "+y+" must be a color string or a Brush, not "+a))}function cv(){gv=ua?new Il(null,void 0,{willReadFrequently:!0}).context:null}It.Object.defineProperties(xo.prototype,{type:{get:function(){return this.na},set:function(a){this._isFrozen&&Ft(this,a),this.na=a,this.start.Mc()&&(a===ih?this.start=Vi:a===Cl&&(this.start=Ln)),this.end.Mc()&&(a===ih?this.end=Mr:a===Cl&&(this.end=Ln)),this.xe=null}},color:{get:function(){return this.xk},set:function(a){this._isFrozen&&Ft(this,a),this.xk=a,this.xe=null}},start:{get:function(){return this.Qd},set:function(a){this._isFrozen&&Ft(this,a),this.Qd=a.J(),this.xe=null}},end:{get:function(){return this.Lk},set:function(a){this._isFrozen&&Ft(this,a),this.Lk=a.J(),this.xe=null}},startRadius:{get:function(){return this.Gr},set:function(a){this._isFrozen&&Ft(this,a),0>a&&Tn(a,">= zero",xo,"startRadius"),this.Gr=a,this.xe=null}},endRadius:{get:function(){return this.Xp},set:function(a){this._isFrozen&&Ft(this,a),0>a&&Tn(a,">= zero",xo,"endRadius"),this.Xp=a,this.xe=null}},colorStops:{get:function(){return this.we},set:function(a){this._isFrozen&&Ft(this,a),this.we=a,this.xe=null}},pattern:{get:function(){return this.cr},set:function(a){this._isFrozen&&Ft(this,a),this.cr=a,this.xe=null}}}),xo.prototype.isDark=xo.prototype.Gx,xo.prototype.darkenBy=xo.prototype.Wy,xo.prototype.lightenBy=xo.prototype.Vz,xo.prototype.addColorStop=xo.prototype.addColorStop;var fv=216/24389,g0=24389/27,bf=[95.047,100,108.883],gv=null,Ho=new _g,ul=new _g,Es=new _g,Ru=new _g,Df=!1;xo.className="Brush";var Fh;xo.Solid=Fh=new yn(xo,"Solid",0);var ih;xo.Linear=ih=new yn(xo,"Linear",1);var Cl;xo.Radial=Cl=new yn(xo,"Radial",2);var kf;xo.Pattern=kf=new yn(xo,"Pattern",4);var Bf;xo.Lab=Bf=new yn(xo,"Lab",5);var o1;xo.HSL=o1=new yn(xo,"HSL",6),xo.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},xo.isValidColor=function(a){if(a==="black")return!0;if(a==="")return!1;Df||(cv(),Df=!0);var y=gv;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)},xo.lighten=function(a){return n1(a)},xo.lightenBy=n1,xo.darken=function(a){return i1(a)},xo.darkenBy=i1,xo.mix=sv,xo.isDark=Mf;function ka(){this.xa="Base"}ka.prototype.measure=function(){},ka.prototype.Yz=function(a,y,x,E,b){a.measure(y,x,E,b)},ka.prototype.arrange=function(){},ka.prototype.Ly=function(a,y,x,E,b,z){a.arrange(y,x,E,b,z)},ka.prototype.iA=function(a){a.Uj()},ka.prototype.gc=function(){},It.Object.defineProperties(ka.prototype,{name:{get:function(){return this.xa},set:function(a){this.xa=a}},classType:{get:function(){return Rn}}}),ka.prototype.remeasureObject=ka.prototype.iA,ka.prototype.arrangeElement=ka.prototype.Ly,ka.prototype.measureElement=ka.prototype.Yz,ka.className="PanelLayout";function p0(){this.xa="Base"}Vt(p0,ka),p0.prototype.measure=function(a,y,x,E,b,z,ee){var re=E.length;a=rh(a);for(var oe=0;oe<re;oe++){var le=E[oe];if(le.visible||le===a){var he=le.margin,ge=he.right+he.left;he=he.top+he.bottom,le.measure(y,x,z,ee);var Se=le.measuredBounds;ge=Math.max(Se.width+ge,0),he=Math.max(Se.height+he,0),Se=le.position.x;var Pe=le.position.y;isFinite(Se)||(Se=0),isFinite(Pe)||(Pe=0),le instanceof Lr&&le.isGeometryPositioned&&(le=le.strokeWidth/2,Se-=le,Pe-=le),pi(b,Se,Pe,ge,he)}}},p0.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],ee=z.measuredBounds,re=z.margin,oe=z.position.x,le=z.position.y;if(oe=isNaN(oe)?-a:oe-a,le=isNaN(le)?-x:le-x,z instanceof Lr&&z.isGeometryPositioned){var he=z.strokeWidth/2;oe-=he,le-=he}z.visible&&z.arrange(oe+re.left,le+re.top,ee.width,ee.height)}};function m0(){this.xa="Base"}Vt(m0,ka),m0.prototype.measure=function(a,y,x,E,b,z,ee){var re=E.length;y=mi(),z=rh(a);for(var oe=0;oe<re;oe++){var le=E[oe];if(le.visible||le===z){var he=Os(le,!1);if(he!==Sn&&he!==zi)y.push(le);else{le.measure(1/0,x,0,ee),he=le.margin,le=le.measuredBounds;var ge=Math.max(le.height+he.top+he.bottom,0);b.width+=Math.max(le.width+he.right+he.left,0),b.height=Math.max(b.height,ge)}}}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++)oe=y[a],(oe.visible||oe===z)&&(he=oe.margin,re=he.right+he.left,he=he.top+he.bottom,oe.measure(1/0,x,0,ee),oe=oe.measuredBounds,he=Math.max(oe.height+he,0),b.width+=Math.max(oe.width+re,0),b.height=Math.max(b.height,he));sn(y)},m0.prototype.arrange=function(a,y,x){for(var E=y.length,b=a.padding,z=b.top,ee=a.isOpposite,re=ee?x.width:b.left,oe=0;oe<E;oe++){var le=z,he=y[oe];if(he.visible){var ge=he.measuredBounds,Se=he.margin,Pe=Se.top+Se.bottom,Ae=z+b.bottom,Be=ge.height,Qe=Os(he,!1);(isNaN(he.desiredSize.height)&&Qe===bn||Qe===Qi)&&(Be=Math.max(x.height-Pe-Ae,0)),Pe=Be+Pe+Ae,Ae=he.alignment,Ae.Xb()&&(Ae=a.defaultAlignment),Ae.sb()||(Ae=Ln),ee&&(re-=ge.width+Se.left+Se.right),he.arrange(re+Ae.offsetX+Se.left,le+Ae.offsetY+Se.top+(x.height*Ae.y-Pe*Ae.y),ge.width,Be),ee||(re+=ge.width+Se.left+Se.right)}}};function v0(){this.xa="Base"}Vt(v0,ka),v0.prototype.measure=function(a,y,x,E,b,z){var ee=E.length;x=mi();for(var re=rh(a),oe=0;oe<ee;oe++){var le=E[oe];if(le.visible||le===re){var he=Os(le,!1);if(he!==Sn&&he!==Qi)x.push(le);else{var ge=le.margin;he=ge.right+ge.left,ge=ge.top+ge.bottom,le.measure(y,1/0,z,0),le=le.measuredBounds,Un(b,Math.max(b.width,Math.max(le.width+he,0)),b.height+Math.max(le.height+ge,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++)oe=x[a],(oe.visible||oe===re)&&(le=oe.margin,ee=le.right+le.left,le=le.top+le.bottom,oe.measure(y,1/0,z,0),oe=oe.measuredBounds,le=Math.max(oe.height+le,0),b.width=Math.max(b.width,Math.max(oe.width+ee,0)),b.height+=le);sn(x)}},v0.prototype.arrange=function(a,y,x){for(var E=y.length,b=a.padding,z=b.left,ee=a.isOpposite,re=ee?x.height:b.top,oe=0;oe<E;oe++){var le=z,he=y[oe];if(he.visible){var ge=he.measuredBounds,Se=he.margin,Pe=Se.left+Se.right,Ae=z+b.right,Be=ge.width,Qe=Os(he,!1);(isNaN(he.desiredSize.width)&&Qe===bn||Qe===zi)&&(Be=Math.max(x.width-Pe-Ae,0)),Pe=Be+Pe+Ae,Ae=he.alignment,Ae.Xb()&&(Ae=a.defaultAlignment),Ae.sb()||(Ae=Ln),ee&&(re-=ge.height+Se.bottom+Se.top),he.arrange(le+Ae.offsetX+Se.left+(x.width*Ae.x-Pe*Ae.x),re+Ae.offsetY+Se.top,Be,ge.height),ee||(re+=ge.height+Se.bottom+Se.top)}}};function y0(){this.xa="Base"}Vt(y0,ka),y0.prototype.measure=function(a,y,x,E,b,z,ee){var re=E.length,oe=a.Pb(),le=oe.margin,he=le.right+le.left,ge=le.top+le.bottom;oe.measure(y,x,z,ee);var Se=oe.measuredBounds;z=Se.width,ee=Se.height;var Pe=Math.max(z+he,0),Ae=Math.max(ee+ge,0),Be=a.isClipping,Qe=vt.allocAt(-le.left,-le.top,Pe,Ae),Ke=vt.allocAt(0,0,z,ee);pv(oe,Ke,!0),z=Ke.width,ee=Ke.height;for(var lt=!0,ct=rh(a),ft=0;ft<re;ft++){var Et=E[ft];Se=y;var Gt=x;if(Et!==oe&&(Et.visible||Et===ct)){le=Et.margin;var si=le.left,Li=le.top;switch(Pe=le.right+le.left,Ae=le.top+le.bottom,le=Os(Et,!1),le){case bn:Se=z,Gt=ee,Li=si=Ae=Pe=0;break;case zi:Se=z,si=Pe=0;break;case Qi:Gt=ee,Li=Ae=0}Et.measure(Se,Gt,0,0),Se=Et.measuredBounds,Pe=Math.max(Se.width+Pe,0),Ae=Math.max(Se.height+Ae,0),le=Et.alignment,le.Xb()&&(le=a.defaultAlignment),le.sb()||(le=Ln);var wi=Et.alignmentFocus;if(wi.Xb()&&(wi=Ln),Gt=null,Et instanceof Rn&&Et.$e!==""&&(Gt=Et.fb(Et.$e),Gt===Et&&(Gt=null)),si=Ke.x-si,Li=Ke.y-Li,Gt!==null){for(Et.arrange(0,0,Se.width,Se.height),Se=Gt.actualBounds,Se=je.allocAt(Se.x+(wi.x*Se.width-wi.offsetX),Se.y+(wi.y*Se.height-wi.offsetY)),Gt=Gt.panel;Gt!==Et;)Gt.transform.Ga(Se),Gt=Gt.panel;si+=le.x*z+le.offsetX-Se.x,Li+=le.y*ee+le.offsetY-Se.y,je.free(Se)}else si+=le.x*z+le.offsetX-(wi.x*Se.width+wi.offsetX),Li+=le.y*ee+le.offsetY-(wi.y*Se.height+wi.offsetY);lt?(lt=!1,b.h(si,Li,Pe,Ae)):pi(b,si,Li,Pe,Ae)}}switch(lt?b.assign(Qe):Be?b.Uu(Ke.x,Ke.y,Ke.width,Ke.height):pi(b,Qe.x,Qe.y,Qe.width,Qe.height),vt.free(Qe),vt.free(Ke),le=oe.stretch,le===wr&&(le=Os(oe,!1)),le){case Sn:return;case bn:if(!isFinite(y)&&!isFinite(x))return;break;case zi:if(!isFinite(y))return;break;case Qi:if(!isFinite(x))return}for(Se=oe.measuredBounds,z=Se.width,ee=Se.height,Pe=Math.max(z+he,0),Ae=Math.max(ee+ge,0),le=oe.margin,Ke=vt.allocAt(-le.left,-le.top,Pe,Ae),pv(oe,Ke,!0),z=Ke.width,ee=Ke.height,y=0;y<re;y++)x=E[y],x===oe||!x.visible&&x!==ct||(le=x.margin,Pe=le.right+le.left,Ae=le.top+le.bottom,Se=x.measuredBounds,Pe=Math.max(Se.width+Pe,0),Ae=Math.max(Se.height+Ae,0),he=x.alignment,he.Xb()&&(he=a.defaultAlignment),he.sb()||(he=Ln),x=x.alignmentFocus,x.Xb()&&(x=Ln),lt?(lt=!1,b.h(he.x*z+he.offsetX-(x.x*Se.width+x.offsetX)-le.left,he.y*ee+he.offsetY-(x.y*Se.height+x.offsetY)-le.top,Pe,Ae)):pi(b,he.x*z+he.offsetX-(x.x*Se.width+x.offsetX)-le.left,he.y*ee+he.offsetY-(x.y*Se.height+x.offsetY)-le.top,Pe,Ae));lt?b.assign(Qe):Be?b.Uu(Ke.x,Ke.y,Ke.width,Ke.height):pi(b,Qe.x,Qe.y,Qe.width,Qe.height),vt.free(Ke)},y0.prototype.arrange=function(a,y,x){var E=y.length,b=a.Pb(),z=b.measuredBounds,ee=z.width,re=z.height,oe=a.padding;z=oe.left,oe=oe.top;var le=z-x.x,he=oe-x.y;for(b.arrange(le,he,ee,re),ee=vt.allocAt(0,0,ee,re),pv(b,ee,!1),re=0;re<E;re++){var ge=y[re];if(ge!==b){le=ge.measuredBounds;var Se=le.width,Pe=le.height;he=ge.alignment,he.Xb()&&(he=a.defaultAlignment),he.sb()||(he=Ln);var Ae=ge.alignmentFocus;if(Ae.Xb()&&(Ae=Ln),le=null,ge instanceof Rn&&ge.$e!==""&&(le=ge.fb(ge.$e),le===ge&&(le=null)),le!==null){var Be=le.actualBounds;for(Ae=je.allocAt(Be.x+(Ae.x*Be.width-Ae.offsetX),Be.y+(Ae.y*Be.height-Ae.offsetY)),le=le.panel;le!==ge;)le.transform.Ga(Ae),le=le.panel;le=he.x*ee.width+he.offsetX-Ae.x,he=he.y*ee.height+he.offsetY-Ae.y,je.free(Ae)}else le=he.x*ee.width+he.offsetX-(Ae.x*Se+Ae.offsetX),he=he.y*ee.height+he.offsetY-(Ae.y*Pe+Ae.offsetY);le+=ee.x-x.x,he+=ee.y-x.y,ge.visible&&ge.arrange(z+le,oe+he,Se,Pe)}}vt.free(ee)};function pv(a,y,x){var E=null;if(a instanceof Rn&&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 S0(){this.xa="Base"}Vt(S0,ka),S0.prototype.measure=function(a,y,x,E,b,z,ee){var re=E.length,oe=a.Pb(),le=oe.margin,he=y,ge=x,Se=le.right+le.left,Pe=le.top+le.bottom;oe.measure(y,x,z,ee),le=oe.measuredBounds;var Ae=0,Be=null;oe instanceof Lr&&(Be=oe,Ae=Be.strokeWidth*Be.scale);var Qe=Math.max(le.width+Se,0);le=Math.max(le.height+Pe,0);var Ke=Sv(oe),lt=Ke.x*Qe+Ke.offsetX;Ke=Ke.y*le+Ke.offsetY;var ct=xv(oe),ft=ct.x*Qe+ct.offsetX;for(ct=ct.y*le+ct.offsetY,isFinite(y)&&(he=Math.max(Math.abs(lt-ft)-Ae,0)),isFinite(x)&&(ge=Math.max(Math.abs(Ke-ct)-Ae,0)),Ae=Je.alloc(),Ae.h(0,0),a=rh(a),ct=0;ct<re;ct++)Ke=E[ct],Ke===oe||!Ke.visible&&Ke!==a||(le=Ke.margin,Qe=le.right+le.left,lt=le.top+le.bottom,Ke.measure(he,ge,0,0),le=Ke.measuredBounds,Qe=Math.max(le.width+Qe,0),le=Math.max(le.height+lt,0),Ae.h(Math.max(Qe,Ae.width),Math.max(le,Ae.height)));if(re===1)b.width=Qe,b.height=le,Je.free(Ae);else{switch(Ke=Sv(oe),ct=xv(oe),re=E=0,ct.x!==Ke.x&&ct.y!==Ke.y&&(E=Ae.width/Math.abs(ct.x-Ke.x),re=Ae.height/Math.abs(ct.y-Ke.y)),Je.free(Ae),Ae=0,Be!==null&&(Ae=Be.strokeWidth*Be.scale,Fv(Be)===Bi&&(E=re=Math.max(E,re))),E+=Math.abs(Ke.offsetX)+Math.abs(ct.offsetX)+Ae,re+=Math.abs(Ke.offsetY)+Math.abs(ct.offsetY)+Ae,Be=oe.stretch,Be===wr&&(Be=Os(oe,!1)),Be){case Sn:ee=z=0;break;case bn:isFinite(y)&&(E=y),isFinite(x)&&(re=x);break;case zi:isFinite(y)&&(E=y),ee=0;break;case Qi:z=0,isFinite(x)&&(re=x)}oe.Uj(),oe.measure(E,re,z,ee),b.width=oe.measuredBounds.width+Se,b.height=oe.measuredBounds.height+Pe}},S0.prototype.arrange=function(a,y){var x=y.length,E=a.Pb(),b=E.measuredBounds,z=vt.alloc();z.h(0,0,1,1);var ee=E.margin,re=ee.left;ee=ee.top;var oe=a.padding,le=oe.left;oe=oe.top,E.arrange(le+re,oe+ee,b.width,b.height);var he=Sv(E),ge=xv(E),Se=he.y*b.height+he.offsetY,Pe=ge.x*b.width+ge.offsetX;for(ge=ge.y*b.height+ge.offsetY,z.x=he.x*b.width+he.offsetX,z.y=Se,pi(z,Pe,ge,0,0),z.x+=re+le,z.y+=ee+oe,b=0;b<x;b++)re=y[b],re!==E&&(le=re.measuredBounds,ee=re.margin,oe=Math.max(le.width+ee.right+ee.left,0),he=Math.max(le.height+ee.top+ee.bottom,0),Se=re.alignment,Se.Xb()&&(Se=a.defaultAlignment),Se.sb()||(Se=Ln),oe=z.width*Se.x+Se.offsetX-oe*Se.x+ee.left+z.x,ee=z.height*Se.y+Se.offsetY-he*Se.y+ee.top+z.y,re.visible&&(ai(z.x,z.y,z.width,z.height,oe,ee,le.width,le.height)?re.arrange(oe,ee,le.width,le.height):re.arrange(oe,ee,le.width,le.height,new vt(z.x,z.y,z.width,z.height))));vt.free(z)};function x0(){this.xa="Base",this.name="Table"}Vt(x0,ka),x0.prototype.measure=function(a,y,x,E,b){for(var z=E.length,ee=mi(),re=mi(),oe=0;oe<z;oe++){var le=E[oe],he=le instanceof Rn?le:null;if(he!==null&&Mh(he)&&le.visible){re.push(he);for(var ge=he.O.s,Se=ge.length,Pe=0;Pe<Se;Pe++){var Ae=ge[Pe];he.type===Rn.TableRow?Ae.row=le.row:he.type===Rn.TableColumn&&(Ae.column=le.column),ee.push(Ae)}}else ee.push(le)}z=ee.length,z===0&&(a.Fb(0),a.Eb(0));for(var Be=[],Qe=0;Qe<z;Qe++){var Ke=ee[Qe];Ke.visible&&(La(Ke,!0),Ou(Ke,!0),Be[Ke.row]||(Be[Ke.row]=[]),Be[Ke.row][Ke.column]||(Be[Ke.row][Ke.column]=[]),Be[Ke.row][Ke.column].push(Ke))}sn(ee);var lt=mi(),ct=mi(),ft=mi(),Et={count:0},Gt={count:0},si=y,Li=x,wi=a.rowDefs,Vn=a.colDefs,vn=null;z=wi.length;for(var yr=0;yr<z;yr++)vn=wi[yr],vn!==void 0&&(vn.actual=0);z=Vn.length;for(var ar=0;ar<z;ar++)vn=Vn[ar],vn!==void 0&&(vn.actual=0);for(var ao=Be.length,jo=0,Ia=0;Ia<ao;Ia++)Be[Ia]&&(jo=Math.max(jo,Be[Ia].length));var Ha=Math.min(a.topIndex,ao-1),vs=Math.min(a.leftIndex,jo-1),Ra=0;ao=Be.length;for(var Rh=rh(a),wa=0;wa<ao;wa++)if(Be[wa]){jo=Be[wa].length;var hu=a.Fb(wa);hu.actual=0;for(var ys=hu.oc=0;ys<jo;ys++)if(Be[wa][ys]){var jh=a.Eb(ys);lt[ys]===void 0&&(jh.actual=0,jh.oc=0,lt[ys]=!0);for(var cl=Be[wa][ys],Zl=cl.length,tl=0;tl<Zl;tl++){var Ks=cl[tl];if(Ks.visible||Ks===Rh){var Pd=1<Ks.rowSpan||1<Ks.columnSpan;Pd&&(wa<Ha||ys<vs||ct.push(Ks));var du=Ks.margin,tg=du.right+du.left,nl=du.top+du.bottom,Ss=ou(Ks,hu,jh,!1),Tp=Ks.desiredSize,_c=!isNaN(Tp.height),Fu=!isNaN(Tp.width)&&_c;if(Pd||Ss===Sn||Fu||wa<Ha||ys<vs||(Et[ys]!==void 0||Ss!==bn&&Ss!==zi||(Et[ys]=-1,Et.count++),Gt[wa]!==void 0||Ss!==bn&&Ss!==Qi||(Gt[wa]=-1,Gt.count++),ft.push(Ks)),Ks.measure(1/0,1/0,0,0),!(wa<Ha||ys<vs)){var _s=Ks.measuredBounds,rc=Math.max(_s.width+tg,0),il=Math.max(_s.height+nl,0);if(Ks.rowSpan===1&&(Ss===Sn||Ss===zi)){vn=a.Fb(wa);var wd=vn.Wc();Ra=Math.max(il-vn.actual,0),Ra+wd>Li&&(Ra=Math.max(Li-wd,0));var Gm=vn.oa===0;vn.oc=vn.oc+Ra,vn.actual=vn.oa+Ra,Li=Math.max(Li-(Ra+(Gm?wd:0)),0)}if(Ks.columnSpan===1&&(Ss===Sn||Ss===Qi)){vn=a.Eb(ys);var Op=vn.Wc();Ra=Math.max(rc-vn.actual,0),Ra+Op>si&&(Ra=Math.max(si-Op,0));var Hy=vn.oa===0;vn.oc=vn.oc+Ra,vn.actual=vn.oa+Ra,si=Math.max(si-(Ra+(Hy?Op:0)),0)}Pd&&Ks.Uj()}}}}}sn(lt);var Ku=0,sh=0;z=a.columnCount;for(var Uc=0;Uc<z;Uc++){var Cd=Vn[Uc];Cd!==void 0&&(Ku+=isNaN(Cd.Hc)?Cd.oc:Cd.Hc,Cd.oc!==0&&(Ku+=Cd.Wc()))}z=a.rowCount;for(var ng=0;ng<z;ng++){var Ed=wi[ng];Ed!==void 0&&(sh+=isNaN(Ed.Hc)?Ed.oc:Ed.Hc,Ed.oc!==0&&(sh+=Ed.Wc()))}si=Math.max(y-Ku,0);var _u=Li=Math.max(x-sh,0),zh=si;z=ft.length;for(var Us=0;Us<z;Us++){var Mu=ft[Us],Vm=a.Fb(Mu.row),lh=a.Eb(Mu.column),ig=Mu.measuredBounds,cu=Mu.margin,oc=cu.right+cu.left,Lu=cu.top+cu.bottom;Et[Mu.column]=lh.oc===0&&Et[Mu.column]!==void 0?Math.max(ig.width+oc,Et[Mu.column]):null,Gt[Mu.row]=Vm.oc===0&&Gt[Mu.row]!==void 0?Math.max(ig.height+Lu,Gt[Mu.row]):null}var Xc=0,rg=0,tu;for(tu in Gt)tu!=="count"&&(Xc+=Gt[tu]);for(tu in Et)tu!=="count"&&(rg+=Et[tu]);for(var qa=Je.alloc(),Ip=0;Ip<z;Ip++){var ks=ft[Ip];if(ks.visible||ks===Rh){var Ca=a.Fb(ks.row),Bs=a.Eb(ks.column),uh=0;isFinite(Bs.width)?uh=Bs.width:(isFinite(si)&&Et[ks.column]!==null?rg===0?uh=Bs.actual+si:uh=Et[ks.column]/rg*zh:Et[ks.column]!==null?uh=si:uh=Bs.actual||si,uh=Math.max(0,uh-Bs.Wc()));var Zh=0;switch(isFinite(Ca.height)?Zh=Ca.height:(isFinite(Li)&&Gt[ks.row]!==null?Xc===0?Zh=Ca.actual+Li:Zh=Gt[ks.row]/Xc*_u:Gt[ks.row]!==null?Zh=Li:Zh=Ca.actual||Li,Zh=Math.max(0,Zh-Ca.Wc())),qa.h(Math.max(Bs.minimum,Math.min(uh,Bs.maximum)),Math.max(Ca.minimum,Math.min(Zh,Ca.maximum))),Ss=ou(ks,Ca,Bs,!1),Ss){case zi:qa.height=Math.max(qa.height,Ca.actual+Li);break;case Qi:qa.width=Math.max(qa.width,Bs.actual+si)}var ac=ks.margin,Gy=ac.right+ac.left,Ym=ac.top+ac.bottom;ks.Uj(),ks.measure(qa.width,qa.height,Bs.minimum,Ca.minimum);var og=ks.measuredBounds,sc=Math.max(og.width+Gy,0),Qc=Math.max(og.height+Ym,0);isFinite(si)&&(sc=Math.min(sc,qa.width)),isFinite(Li)&&(Qc=Math.min(Qc,qa.height));var Xs=0;Xs=Ca.actual,Ca.actual=Math.max(Ca.actual,Qc),Ca.oc=Math.max(Ca.oc,Qc),Ra=Ca.actual-Xs,Li=Math.max(Li-Ra,0),Gt[ks.row]===null&&(_u=Math.max(_u-Ra,0)),Xs=Bs.actual,Bs.actual=Math.max(Bs.actual,sc),Bs.oc=Math.max(Bs.oc,sc),Ra=Bs.actual-Xs,si=Math.max(si-Ra,0),Et[ks.column]===null&&(zh=Math.max(zh-Ra,0))}}sn(ft);var hh=Je.alloc(),fu=mi(),Ll=mi();if(z=ct.length,z!==0){for(var Ad=0;Ad<ao;Ad++)if(Be[Ad]){jo=Be[Ad].length;var ag=a.Fb(Ad);fu[Ad]=ag.actual;for(var Fd=0;Fd<jo;Fd++)if(Be[Ad][Fd]){var Km=a.Eb(Fd);Ll[Fd]=Km.actual}}}for(var sg=0;sg<z;sg++){var pa=ct[sg];if(pa.visible||pa===Rh){var nu=a.Fb(pa.row),Wl=a.Eb(pa.column);switch(qa.h(Math.max(Wl.minimum,Math.min(y,Wl.maximum)),Math.max(nu.minimum,Math.min(x,nu.maximum))),Ss=ou(pa,nu,Wl,!1),Ss){case bn:Ll[Wl.index]!==0&&(qa.width=Math.min(qa.width,Ll[Wl.index])),fu[nu.index]!==0&&(qa.height=Math.min(qa.height,fu[nu.index]));break;case zi:Ll[Wl.index]!==0&&(qa.width=Math.min(qa.width,Ll[Wl.index]));break;case Qi:fu[nu.index]!==0&&(qa.height=Math.min(qa.height,fu[nu.index]))}isFinite(Wl.width)&&(qa.width=Wl.width),isFinite(nu.height)&&(qa.height=nu.height),hh.h(0,0);for(var _m=Wl.minimum,rl=nu.minimum,Wh=1;Wh<pa.rowSpan&&!(pa.row+Wh>=a.rowCount);Wh++)vn=a.Fb(pa.row+Wh),Ra=0,Ra=Ss===bn||Ss===Qi?Math.max(vn.minimum,fu[pa.row+Wh]===0?vn.maximum:Math.min(fu[pa.row+Wh],vn.maximum)):Math.max(vn.minimum,isNaN(vn.Hc)?vn.maximum:Math.min(vn.Hc,vn.maximum)),hh.height+=Ra,rl+=vn.minimum;for(var Hl=1;Hl<pa.columnSpan&&!(pa.column+Hl>=a.columnCount);Hl++)vn=a.Eb(pa.column+Hl),Ra=0,Ra=Ss===bn||Ss===zi?Math.max(vn.minimum,Ll[pa.column+Hl]===0?vn.maximum:Math.min(Ll[pa.column+Hl],vn.maximum)):Math.max(vn.minimum,isNaN(vn.Hc)?vn.maximum:Math.min(vn.Hc,vn.maximum)),hh.width+=Ra,_m+=vn.minimum;qa.width+=hh.width,qa.height+=hh.height;var lg=pa.margin,Md=lg.right+lg.left,Rp=lg.top+lg.bottom;pa.measure(qa.width,qa.height,_m,rl);for(var ug=pa.measuredBounds,bu=Math.max(ug.width+Md,0),lc=Math.max(ug.height+Rp,0),Ld=0,hg=0;hg<pa.rowSpan&&!(pa.row+hg>=a.rowCount);hg++)vn=a.Fb(pa.row+hg),Ld+=vn.total||0;if(Ld<lc){var Hh=lc-Ld,Uu=lc-Ld;if(pa.spanAllocation!==null)for(var Gh=pa.spanAllocation,dh=0;dh<pa.rowSpan&&!(0>=Hh)&&!(pa.row+dh>=a.rowCount);dh++){vn=a.Fb(pa.row+dh);var Vh=vn.oa||0,uc=Gh(pa,vn,Uu);vn.actual=Math.min(vn.maximum,Vh+uc),vn.oa!==Vh&&(Hh-=vn.oa-Vh)}for(;0<Hh;){var gu=vn.oa||0;if(isNaN(vn.height)&&vn.maximum>gu&&(vn.actual=Math.min(vn.maximum,gu+Hh),vn.oa!==gu&&(Hh-=vn.oa-gu)),vn.index===0)break;vn=a.Fb(vn.index-1)}}for(var Jc=0,Yh=0;Yh<pa.columnSpan&&!(pa.column+Yh>=a.columnCount);Yh++)vn=a.Eb(pa.column+Yh),Jc+=vn.total||0;if(Jc<bu){var qc=bu-Jc,Vy=bu-Jc;if(pa.spanAllocation!==null)for(var ch=pa.spanAllocation,hc=0;hc<pa.columnSpan&&!(0>=qc)&&!(pa.column+hc>=a.columnCount);hc++){vn=a.Eb(pa.column+hc);var jp=vn.oa||0,Yy=ch(pa,vn,Vy);vn.actual=Math.min(vn.maximum,jp+Yy),vn.oa!==jp&&(qc-=vn.oa-jp)}for(;0<qc;){var Um=vn.oa||0;if(isNaN(vn.width)&&vn.maximum>Um&&(vn.actual=Math.min(vn.maximum,Um+qc),vn.oa!==Um&&(qc-=vn.oa-Um)),vn.index===0)break;vn=a.Eb(vn.index-1)}}}}sn(ct),Je.free(hh),Je.free(qa),fu!==void 0&&sn(fu),Ll!==void 0&&sn(Ll);var $c=0,ef=0,Xm=a.desiredSize,vx=a.maxSize;Ss=Os(a,!0);var zp=sh=Ku=0,Zp=0;z=a.columnCount;for(var Qm=0;Qm<z;Qm++)Vn[Qm]!==void 0&&(vn=a.Eb(Qm),isFinite(vn.width)?(zp+=vn.width,zp+=vn.Wc()):D0(vn)===Jg?(zp+=vn.oa,zp+=vn.Wc()):vn.oa!==0&&(Ku+=vn.oa,Ku+=vn.Wc()));isFinite(Xm.width)?$c=Math.min(Xm.width,vx.width):$c=Ss!==Sn&&isFinite(y)?y:Ku,$c=Math.max($c,a.minSize.width),$c=Math.max($c-zp,0);for(var rP=Ku===0?1:Math.max($c/Ku,1),Jm=0;Jm<z;Jm++)Vn[Jm]!==void 0&&(vn=a.Eb(Jm),isFinite(vn.width)||D0(vn)===Jg||(vn.actual=vn.oa*rP),vn.position=b.width,vn.oa!==0&&(b.width+=vn.oa,b.width+=vn.Wc()));z=a.rowCount;for(var qm=0;qm<z;qm++)wi[qm]!==void 0&&(vn=a.Fb(qm),isFinite(vn.height)?(Zp+=vn.height,Zp+=vn.Wc()):D0(vn)===Jg?(Zp+=vn.oa,Zp+=vn.Wc()):vn.oa!==0&&(sh+=vn.oa,sh+=vn.Wc()));isFinite(Xm.height)?ef=Math.min(Xm.height,vx.height):ef=Ss!==Sn&&isFinite(x)?x:sh,ef=Math.max(ef,a.minSize.height),ef=Math.max(ef-Zp,0);for(var oP=sh===0?1:Math.max(ef/sh,1),$m=0;$m<z;$m++)wi[$m]!==void 0&&(vn=a.Fb($m),isFinite(vn.height)||D0(vn)===Jg||(vn.actual=vn.oa*oP),vn.position=b.height,vn.oa!==0&&(b.height+=vn.oa,b.height+=vn.Wc()));z=re.length;for(var Ky=0;Ky<z;Ky++){var Wp=re[Ky],_y=0,Uy=0;Wp.type===Rn.TableRow?(_y=b.width,vn=a.Fb(Wp.row),Uy=vn.actual):(vn=a.Eb(Wp.column),_y=vn.actual,Uy=b.height),Wp.measuredBounds.h(0,0,_y,Uy),La(Wp,!1)}sn(re),a.inRowsCols=Be},x0.prototype.arrange=function(a,y,x){var E=y.length,b=a.padding,z=b.left;b=b.top;var ee=a.inRowsCols;if(ee!==null){for(var re,oe,le=ee.length,he=0,ge=0;ge<le;ge++)ee[ge]&&(he=Math.max(he,ee[ge].length));oe=a.rowDefs,re=a.colDefs;var Se=ge=0,Pe=Math.min(a.topIndex,le-1);if(0<oe.length){for(;Pe!==le&&(oe[Pe]===void 0||oe[Pe].oa===0);)Pe++;Pe=Math.max(Math.min(Pe,le-1),0),ge=-oe[Pe].position}var Ae=Math.min(a.leftIndex,he-1);if(0<re.length){for(;Ae!==he&&(re[Ae]===void 0||re[Ae].oa===0);)Ae++;Ae=Math.max(Math.min(Ae,he-1),0),Se=-re[Ae].position}for(var Be=0,Qe=0;Be!==le&&oe[Be]===void 0;)Be++;for(;Qe!==le&&re[Qe]===void 0;)Qe++;he=a.part,a.Fb(Be),a.Eb(Qe);for(var Ke=0;Ke<y.length;Ke++){var lt=y[Ke];if(lt instanceof Rn&&lt.visible&&Mh(lt)){if(lt.type===Rn.TableRow){re=a.Fb(lt.row);var ct=a.Eb(Qe)}else re=a.Fb(Be),ct=a.Eb(lt.column);oe=re.position+ge+b,re.oa!==0&&(oe+=re.Io(Math.max(Be,Pe))),re=ct.position+Se+z,ct.oa!==0&&(re+=ct.Io(Math.max(Qe,Ae))),ct=lt.measuredBounds,lt.Uk(),lt.actualBounds.ka();var ft=lt.actualBounds,Et=vt.allocAt(ft.x,ft.y,ft.width,ft.height);ft.x=lt.type===Rn.TableRow?z:re,ft.y=lt.type===Rn.TableColumn?b:oe,ft.width=ct.width,ft.height=ct.height,lt.actualBounds.freeze(),Ou(lt,!1),zn(Et,ft)||he===null||(he.oh(),lt.Pn(he)),vt.free(Et)}}for(Ke=Je.alloc(),lt=0;lt<le;lt++)if(ee[lt]){for(he=ee[lt].length,ct=a.Fb(lt),oe=ct.position+ge+b,ct.oa!==0&&(oe+=ct.Io(Math.max(Be,Pe))),ft=0;ft<he;ft++)if(ee[lt][ft]){Et=a.Eb(ft),re=Et.position+Se+z,Et.oa!==0&&(re+=Et.Io(Math.max(Qe,Ae)));for(var Gt=ee[lt][ft],si=Gt.length,Li=0;Li<si;Li++){var wi=Gt[Li],Vn=wi.measuredBounds;Ke.h(0,0);for(var vn=1;vn<wi.rowSpan&&!(lt+vn>=a.rowCount);vn++){var yr=a.Fb(lt+vn);yr.oa!==0&&(Ke.height+=yr.total)}for(vn=1;vn<wi.columnSpan&&!(ft+vn>=a.columnCount);vn++)yr=a.Eb(ft+vn),yr.oa!==0&&(Ke.width+=yr.total);var ar=Et.oa+Ke.width,ao=ct.oa+Ke.height;vn=re,yr=oe;var jo=ar,Ia=ao,Ha=re,vs=oe,Ra=ar,Rh=ao;re+ar>x.width&&(Ra=Math.max(x.width-re,0)),oe+ao>x.height&&(Rh=Math.max(x.height-oe,0));var wa=wi.alignment;if(wa.Xb()){wa=a.defaultAlignment,wa.sb()||(wa=Ln);var hu=wa.x,ys=wa.y,jh=wa.offsetX;wa=wa.offsetY;var cl=Et.alignment,Zl=ct.alignment;cl.sb()&&(hu=cl.x,jh=cl.offsetX),Zl.sb()&&(ys=Zl.y,wa=Zl.offsetY)}else hu=wa.x,ys=wa.y,jh=wa.offsetX,wa=wa.offsetY;(isNaN(hu)||isNaN(ys))&&(ys=hu=.5,wa=jh=0),cl=Vn.width,Zl=Vn.height;var tl=wi.margin,Ks=tl.left+tl.right,Pd=tl.top+tl.bottom,du=ou(wi,ct,Et,!1);!isNaN(wi.desiredSize.width)||du!==bn&&du!==zi||(cl=Math.max(ar-Ks,0)),!isNaN(wi.desiredSize.height)||du!==bn&&du!==Qi||(Zl=Math.max(ao-Pd,0)),ar=wi.maxSize,ao=wi.minSize,cl=Math.min(ar.width,cl),Zl=Math.min(ar.height,Zl),cl=Math.max(ao.width,cl),Zl=Math.max(ao.height,Zl),ar=Zl+Pd,vn+=jo*hu-(cl+Ks)*hu+jh+tl.left,yr+=Ia*ys-ar*ys+wa+tl.top,wi.visible&&(ai(Ha,vs,Ra,Rh,vn,yr,Vn.width,Vn.height)?wi.arrange(vn,yr,cl,Zl):wi.arrange(vn,yr,cl,Zl,new vt(Ha,vs,Ra,Rh)))}}}for(Je.free(Ke),a=0;a<E;a++)x=y[a],z=x instanceof Rn?x:null,z!==null&&Mh(z)&&(z=x.actualBounds,x.naturalBounds.ka(),x.naturalBounds.h(0,0,z.width,z.height),x.naturalBounds.freeze())}};function P0(){this.xa="Base"}Vt(P0,ka),P0.prototype.measure=function(){},P0.prototype.arrange=function(){};function w0(){this.xa="Base"}Vt(w0,ka),w0.prototype.measure=function(){},w0.prototype.arrange=function(){};function C0(){this.xa="Base"}Vt(C0,ka),C0.prototype.measure=function(a,y,x,E,b,z,ee){1<E.length&&et("Viewbox Panel cannot contain more than one GraphObject."),E=E[0],E.Ca=1,E.Uj(),E.measure(1/0,1/0,z,ee);var re=E.measuredBounds,oe=E.margin,le=oe.right+oe.left;if(oe=oe.top+oe.bottom,isFinite(y)||isFinite(x)){var he=E.scale,ge=re.width;re=re.height;var Se=Math.max(y-le,0),Pe=Math.max(x-oe,0),Ae=1;a.viewboxStretch===Bi?ge!==0&&re!==0&&(Ae=Math.min(Se/ge,Pe/re)):ge!==0&&re!==0&&(Ae=Math.max(Se/ge,Pe/re)),Ae===0&&(Ae=1e-4),E.Ca*=Ae,he!==E.scale&&(La(E,!0),E.measure(1/0,1/0,z,ee))}re=E.measuredBounds,b.width=isFinite(y)?y:Math.max(re.width+le,0),b.height=isFinite(x)?x:Math.max(re.height+oe,0)},C0.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 ee=y.alignment;ee.Xb()&&(ee=a.defaultAlignment),ee.sb()||(ee=Ln),y.arrange(x.width*ee.x-z*ee.x+ee.offsetX,x.height*ee.y-b*ee.y+ee.offsetY,E.width,E.height)};function Ug(){this.xa="Base"}Vt(Ug,ka),Ug.prototype.measure=function(){},Ug.prototype.arrange=function(){},Ug.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,ee=a.actualBounds,re=z.width,oe=z.height,le=Math.ceil(re/b),he=Math.ceil(oe/E),ge=a.gridOrigin,Se=ge.x;ge=ge.y,y.save(),y.beginPath(),y.rect(0,0,re,oe),y.clip(),y.Se();for(var Pe=[],Ae=a.O.s,Be=Ae.length,Qe=0;Qe<Be;Qe++){var Ke=Ae[Qe],lt=[];if(Pe.push(lt),Ke.visible){var ct=Ke.interval;if(!(0>ct)){Ke=vv(Ke.figure);for(var ft=0;ft<Be;ft++)if(ft!==Qe){var Et=Ae[ft];Et.visible&&vv(Et.figure)===Ke&&(Et=Et.interval,Et>ct&&lt.push(Et))}}}}for(Ae=a.O.s,Be=Ae.length,Qe=0;Qe<Be;Qe++){var Gt=Ae[Qe];if(Gt.visible&&(lt=Gt.interval||1,Ke=Math.abs(lt),!(2>b*Ke*x))){if(ct=Gt.segmentIndex,(!isFinite(ct)||isNaN(ct))&&(ct=0),0>ct&&(ct=Ke-Math.min(-ct,Ke)),ct=Math.round(ct%Ke),Ke=Gt.opacity,ft=1,Ke!==1){if(Ke===0)continue;ft=y.globalAlpha,y.globalAlpha=ft*Ke}Et=Pe[Qe];var si=!1,Li=Gt.strokeDashArray;if(Li!==null&&(si=!0,y.js(Li,Gt.strokeDashOffset)),Gt.figure==="LineV"&&Gt.stroke!==null&&0<Gt.strokeWidth){for(y.lineWidth=Gt.strokeWidth,da(a,y,Gt.stroke,!1,!1,z,ee),y.beginPath(),Li=Gt=Math.floor((Se-b)/b);Li<=Gt+le;Li++){var wi=Li*b+Se;0<=wi&&wi<=re&&E0(Li,lt,ct,Et)&&(y.moveTo(wi,0),y.lineTo(wi,oe))}y.stroke(),y.Se()}else if(Gt.figure==="LineH"&&Gt.stroke!==null&&0<Gt.strokeWidth){for(y.lineWidth=Gt.strokeWidth,da(a,y,Gt.stroke,!1,!1,z,ee),y.beginPath(),Li=Gt=Math.floor((ge-E)/E);Li<=Gt+he;Li++)wi=Li*E+ge,0<=wi&&wi<=oe&&E0(Li,lt,ct,Et)&&(y.moveTo(0,wi),y.lineTo(re,wi));y.stroke(),y.Se()}else if(Gt.figure==="BarV"&&Gt.fill!==null)for(da(a,y,Gt.fill,!0,!1,z,ee),Gt=Gt.width,isNaN(Gt)&&(Gt=b),wi=Li=Math.floor((Se-b)/b);wi<=Li+le;wi++){var Vn=wi*b+Se;0<=Vn+Gt&&Vn<=re&&E0(wi,lt,ct,Et)&&y.fillRect(Vn,0,Gt,oe)}else if(Gt.figure==="BarH"&&Gt.fill!==null)for(da(a,y,Gt.fill,!0,!1,z,ee),Gt=Gt.height,isNaN(Gt)&&(Gt=E),wi=Li=Math.floor((ge-E)/E);wi<=Li+he;wi++)Vn=wi*E+ge,0<=Vn+Gt&&Vn<=oe&&E0(wi,lt,ct,Et)&&y.fillRect(0,Vn,re,Gt);si&&y.fs(),Ke!==1&&(y.globalAlpha=ft)}}y.restore(),y.Vc(!1)};function E0(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 A0(){this.xa="Base"}Vt(A0,ka),A0.prototype.measure=function(a,y,x,E,b){var z=E.length;if(a instanceof no||a instanceof Kn){var ee=null,re=null;if(a instanceof Kn&&(ee=a),a instanceof no&&(re=a,ee=re.adornedPart,a.j===null&&(a.j=[])),ee instanceof Kn){var oe=ee;if(z===0)Un(a.naturalBounds,0,0),a.measuredBounds.h(0,0,0,0);else{var le=a instanceof no?null:ee.path;y=ee.routeBounds,x=a.jg,x.h(0,0,y.width,y.height);var he=oe.points,ge=ee.pointsCount;re!==null?re.Ul(!1):ee!==null&&ee.Ul(!1),re=y.width;var Se=y.height,Pe=a.j;if(Pe.length=0,le!==null){a1(a,re,Se,le);var Ae=le.measuredBounds;x.ed(Ae),Pe.push(Ae)}Ae=di.alloc();for(var Be=je.alloc(),Qe=je.alloc(),Ke=0;Ke<z;Ke++){var lt=E[Ke];if(lt!==le)if(lt.isPanelMain&&lt instanceof Lr){a1(a,re,Se,lt);var ct=lt.measuredBounds;x.ed(ct),Pe.push(ct)}else if(2>ge)lt.measure(1/0,1/0,0,0),ct=lt.measuredBounds,x.ed(ct),Pe.push(ct);else{var ft=lt.segmentIndex,Et=lt.segmentFraction,Gt=lt.alignmentFocus;Gt.Mc()&&(Gt=Ln);var si=lt.segmentOrientation,Li=lt.segmentOffset;if(isNaN(ft)){var wi=oe.ua;ct=mi(),wi.Qu(Et,ct);var Vn=je.allocAt(ct[0],ct[1]);if(Vn.add(oe.i(0)),wi.type===Pn.j?Vn.offset(-wi.startX,-wi.startY):(wi=wi.figures.first(),wi!==null&&Vn.offset(-wi.startX,-wi.startY)),wi=ct[2],si!==Fs){var vn=oe.computeAngle(lt,si,wi);lt.Kb=vn}vn=Vn.x-y.x;var yr=Vn.y-y.y;je.free(Vn),sn(ct)}else if(ft<-ge||ft>=ge)ct=je.alloc(),oe.vg(),oe.computeMidPoint(ct),wi=oe.midAngle,si!==Fs&&(vn=oe.computeAngle(lt,si,wi),lt.Kb=vn),vn=ct.x-y.x,yr=ct.y-y.y,je.free(ct);else{if(vn=0,0<=ft?(yr=he.M(ft),ct=ft<ge-1?he.M(ft+1):yr):(vn=ge+ft,yr=he.M(vn),ct=0<vn?he.M(vn-1):yr),yr.Xa(ct)){0<=ft?(wi=0<ft?he.M(ft-1):yr,vn=ft<ge-2?he.M(ft+2):ct):(wi=vn<ge-1?he.M(vn+1):yr,vn=1<vn?he.M(vn-2):ct),Vn=wi.Bf(yr);var ar=ct.Bf(vn);wi=Vn>ar+10?0<=ft?wi.ab(yr):yr.ab(wi):ar>Vn+10?0<=ft?ct.ab(vn):vn.ab(ct):0<=ft?wi.ab(vn):vn.ab(wi)}else wi=0<=ft?yr.ab(ct):ct.ab(yr);si!==Fs&&(vn=oe.computeAngle(lt,si,wi),lt.Kb=vn),vn=yr.x+(ct.x-yr.x)*Et-y.x,yr=yr.y+(ct.y-yr.y)*Et-y.y}lt.measure(1/0,1/0,0,0),ct=lt.measuredBounds,Vn=lt.naturalBounds;var ao=0;lt instanceof Lr&&(ao=lt.strokeWidth),ar=Vn.width+ao;var jo=Vn.height+ao;Ae.reset(),Ae.translate(-ct.x,-ct.y),Ae.scale(lt.scale,lt.scale),Ae.rotate(si===Fs?lt.angle:wi,ar/2,jo/2),si!==sp&&si!==up||Ae.rotate(90,ar/2,jo/2),si!==lp&&si!==hp||Ae.rotate(-90,ar/2,jo/2),si===tm&&(45<wi&&135>wi||225<wi&&315>wi)&&Ae.rotate(-wi,ar/2,jo/2),Vn=new vt(0,0,ar,jo),Be.xi(Vn,Gt),Ae.Ga(Be),Gt=-Be.x+ao/2*lt.scale,lt=-Be.y+ao/2*lt.scale,Qe.assign(Li),ao=isNaN(Li.x);var Ia=isNaN(Li.y);if(ao||Ia){ar=ar/2+3,jo=jo/2+3;var Ha=45<=wi&&135>=wi,vs=225<=wi&&315>=wi;si===Fs&&(Ha||vs)?(Qe.x=Ia?ar:Li.y,Qe.y=ao?jo:Li.x,Ha?0<=ft||isNaN(ft)&&.5>Et||!ao||(Qe.y=-jo):vs&&((0<=ft||isNaN(ft)&&.5>Et)&&ao&&(Qe.y=-jo),Ia&&(Qe.x=-ar))):(ao&&(Qe.x=0<=ft||isNaN(ft)&&.5>Et?ar:-ar),Ia&&(Qe.y=-jo),Qe.rotate(wi))}else Qe.rotate(wi);vn+=Qe.x,yr+=Qe.y,Vn.set(ct),Vn.h(vn+Gt,yr+lt,ct.width,ct.height),Pe.push(Vn),x.ed(Vn)}}if(ee!==null)for(E=ee.labelNodes;E.next();)E.value.measure(1/0,1/0);a.jg=x,a.position.h(y.x+x.x,y.y+x.y),Un(b,x.width||0,x.height||0),di.free(Ae),je.free(Be),je.free(Qe)}}}},A0.prototype.arrange=function(a,y){var x=y.length;if(a instanceof no||a instanceof Kn){var E=a,b=null;a instanceof no&&(b=a,E=b.adornedPart);var z=a instanceof no?null:E.path,ee=a.j;if(ee.length!==0){var re=0;if(z!==null&&re<ee.length){var oe=ee[re];re++,z.arrange(oe.x-a.jg.x,oe.y-a.jg.y,oe.width,oe.height)}for(oe=0;oe<x;oe++){var le=y[oe];if(le!==z&&re<ee.length){var he=ee[re];re++,le.arrange(he.x-a.jg.x,he.y-a.jg.y,he.width,he.height)}}}if(y=E.points,x=y.count,2<=x&&a instanceof Kn)for(z=a.labelNodes;z.next();){var ge=a;ee=z.value,re=ee.segmentIndex,oe=ee.segmentFraction;var Se=ee.alignmentFocus;if(le=ee.segmentOrientation,he=ee.segmentOffset,isNaN(re)){var Pe=ge.ua,Ae=mi();Pe.Qu(oe,Ae);var Be=je.allocAt(Ae[0],Ae[1]);Be.add(ge.i(0)),Pe.type===Pn.j||(Pe=Pe.figures.first()),Be.offset(-Pe.startX,-Pe.startY),Pe=Ae[2],le!==Fs&&(ge=ge.computeAngle(ee,le,Pe),ee.angle=ge),ge=Be.x;var Qe=Be.y;je.free(Be),sn(Ae)}else if(re<-x||re>=x)Ae=je.alloc(),Pe=ge,Qe=Ae,Pe.vg(),Pe.computeMidPoint(Qe),Pe=ge.midAngle,le!==Fs&&(ge=ge.computeAngle(ee,le,Pe),ee.angle=ge),ge=Ae.x,Qe=Ae.y,je.free(Ae);else{if(Be=0,0<=re?(Ae=y.s[re],Qe=re<x-1?y.s[re+1]:Ae):(Be=x+re,Ae=y.s[Be],Qe=0<Be?y.s[Be-1]:Ae),Ae.Xa(Qe)){0<=re?(Pe=0<re?y.s[re-1]:Ae,Be=re<x-2?y.s[re+2]:Qe):(Pe=Be<x-1?y.s[Be+1]:Ae,Be=1<Be?y.s[Be-2]:Qe);var Ke=Pe.Bf(Ae),lt=Qe.Bf(Be);Pe=Ke>lt+10?0<=re?Pe.ab(Ae):Ae.ab(Pe):lt>Ke+10?0<=re?Qe.ab(Be):Be.ab(Qe):0<=re?Pe.ab(Be):Be.ab(Pe)}else Pe=0<=re?Ae.ab(Qe):Qe.ab(Ae);le!==Fs&&(ge=ge.computeAngle(ee,le,Pe),ee.angle=ge),ge=Ae.x+(Qe.x-Ae.x)*oe,Qe=Ae.y+(Qe.y-Ae.y)*oe}if(Se.ys())ee.location=new je(ge,Qe);else{Se.Mc()&&(Se=Ln),Ae=di.alloc(),Ae.reset(),Ae.scale(ee.scale,ee.scale),Ae.rotate(ee.angle,0,0);var ct=ee.naturalBounds;Be=vt.allocAt(0,0,ct.width,ct.height),Ke=je.alloc(),Ke.xi(Be,Se),Ae.Ga(Ke),Se=-Ke.x,lt=-Ke.y;var ft=ct.width,Et=ct.height;ct=je.alloc(),ct.assign(he);var Gt=isNaN(he.x),si=isNaN(he.y);if(Gt||si){ft=ft/2+3,Et=Et/2+3;var Li=45<=Pe&&135>=Pe,wi=225<=Pe&&315>=Pe;le===Fs&&(Li||wi)?(ct.x=si?ft:he.y,ct.y=Gt?Et:he.x,Li?0<=re||isNaN(re)&&.5>oe||!Gt||(ct.y=-Et):wi&&((0<=re||isNaN(re)&&.5>oe)&&Gt&&(ct.y=-Et),si&&(ct.x=-ft))):(Gt&&(ct.x=0<=re||isNaN(re)&&.5>oe?ft:-ft),si&&(ct.y=-Et),ct.rotate(Pe))}else ct.rotate(Pe);ge+=ct.x,Qe+=ct.y,Ae.pp(Be),Se+=Be.x,lt+=Be.y,re=je.allocAt(ge+Se,Qe+lt),ee.move(re),je.free(re),je.free(ct),je.free(Ke),vt.free(Be),di.free(Ae)}}b!==null?b.Ul(!1):E.Ul(!1),E=O1(a),a.location.h(a.position.x+E.x,a.position.y+E.y),je.free(E)}};function a1(a,y,x,E){if(ll(E)!==!1){var b=E.strokeWidth;b===0&&a instanceof no&&a.type===Rn.Link&&a.adornedObject instanceof Lr&&(b=a.adornedObject.strokeWidth),b*=E.Ca,a instanceof Kn&&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 no&&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),La(E,!1)}}function Xg(){this.xa="Base"}Vt(Xg,ka),Xg.prototype.measure=function(a,y,x,E,b,z,ee){var re=a.Pb();a.graduatedBounds=[];var oe=re.margin,le=oe.right+oe.left,he=oe.top+oe.bottom;re.measure(y,x,z,ee);var ge=re.measuredBounds,Se=new vt(-oe.left,-oe.top,Math.max(ge.width+le,0),Math.max(ge.height+he,0));a.graduatedBounds.push(Se),b.assign(Se);for(var Pe=re.geometry,Ae=re.strokeWidth,Be=Pe.flattenedSegments,Qe=Pe.flattenedLengths,Ke=Pe.flattenedTotalLength,lt=Be.length,ct=0,ft=0,Et=mi(),Gt=0;Gt<lt;Gt++){var si=Be[Gt],Li=[];ft=ct=0;for(var wi=si.length,Vn=0;Vn<wi;Vn+=2){var vn=si[Vn],yr=si[Vn+1];if(Vn!==0){var ar=180*Math.atan2(yr-ft,vn-ct)/Math.PI;0>ar&&(ar+=360),Li.push(ar)}ct=vn,ft=yr}Et.push(Li)}if(a.graduatedIntervals===null){for(var ao=[],jo=a.O.s,Ia=jo.length,Ha=0;Ha<Ia;Ha++){var vs=jo[Ha],Ra=[];if(ao.push(Ra),vs.visible){var Rh=vs.interval;if(!(0>Rh)){for(var wa=0;wa<Ia;wa++)if(wa!==Ha){var hu=jo[wa];if(hu.visible&&vs.constructor===hu.constructor){var ys=hu.interval;ys>Rh&&Ra.push(ys)}}}}}a.graduatedIntervals=ao}var jh=a.graduatedIntervals,cl=a.O.s,Zl=cl.length,tl=0,Ks=0,Pd=Ke;a.graduatedMarks=[];for(var du,tg=0;tg<Zl;tg++){var nl=cl[tg];if(du=[],nl.visible&&nl!==re){var Ss=Math.abs(nl.interval),Tp=a.graduatedTickUnit;if(!(2>Tp*Ss*Ke/a.graduatedRange&&nl.graduatedSkip===null)){var _c=Qe[0][0],Fu=0,_s=0;Ks=Ke*nl.graduatedStart-1e-4,Pd=Ke*nl.graduatedEnd+1e-4;var rc=Tp*Ss,il=a.graduatedTickBase;if(il<a.graduatedMin){var wd=(a.graduatedMin-il)/rc;wd=wd%1===0?wd:Math.floor(wd+1),il+=wd*rc}else il>a.graduatedMin+rc&&(il-=Math.floor((il-a.graduatedMin)/rc)*rc);for(var Gm=jh[tg],Op=il,Hy=1e-6*a.graduatedMax,Ku=1;il<=a.graduatedMax+Hy;Ku++){e:{for(var sh=Gm.length,Uc=0;Uc<sh;Uc++){var Cd=(il-a.graduatedTickBase)%(Gm[Uc]*a.graduatedTickUnit),ng=1e-6*a.graduatedTickUnit;if(Cd<ng&&Cd>-ng){var Ed=!1;break e}}Ed=!0}if(Ed&&(il>a.graduatedMax&&(il=a.graduatedMax),nl.graduatedSkip===null||nl instanceof zo&&!nl.graduatedSkip(il,nl)||nl instanceof Lr&&!nl.graduatedSkip(il,nl))&&(tl=(il-a.graduatedMin)*Ke/a.graduatedRange,tl>Ke&&(tl=Ke),Ks<=tl&&tl<=Pd)){for(var _u=Et[Fu][_s],zh=Qe[Fu][_s];Fu<Qe.length;){for(;tl>_c&&_s<Qe[Fu].length-1;)_s++,_u=Et[Fu][_s],zh=Qe[Fu][_s],_c+=zh;if(tl<=_c)break;Fu++,_s=0,_u=Et[Fu][_s],zh=Qe[Fu][_s],_c+=zh}var Us=Be[Fu],Mu=Us[2*_s],Vm=Us[2*_s+1],lh=(tl-(_c-zh))/zh,ig=new je(Mu+(Us[2*_s+2]-Mu)*lh+Ae/2-Pe.bounds.x,Vm+(Us[2*_s+3]-Vm)*lh+Ae/2-Pe.bounds.y);ig.scale(re.scale,re.scale);e:{var cu=_u,oc=Et[Fu];if(!(.5005>lh&&.4995<lh)){var Lu=cu;if(.5>lh?0<_s?Lu=oc[_s-1]:St.$(Us[0],Us[Us.length-2])&&St.$(Us[1],Us[Us.length-1])&&(Lu=oc[oc.length-1]):.5<lh&&(_s+1<oc.length?Lu=oc[_s+1]:St.$(Us[0],Us[Us.length-2])&&St.$(Us[1],Us[Us.length-1])&&(Lu=oc[0])),cu!==Lu){var Xc=Math.abs(cu-Lu);if(180<Xc&&(cu<Lu?cu+=360:Lu+=360,Xc=Math.abs(cu-Lu)),5e-4>lh||.9995<lh){_u=(cu+Lu)/2%360;break e}if(10>Xc){var rg=1-Math.abs(.5-lh);_u=(cu*rg+Lu*(1-rg))%360;break e}}}_u=cu}if(nl instanceof zo){var tu="";nl.graduatedFunction!==null?(tu=nl.graduatedFunction(il,nl),tu=tu!=null?tu.toString():""):tu=(+il.toFixed(2)).toString(),tu!==""&&du.push({$l:ig,angle:_u,text:tu})}else du.push({$l:ig,angle:_u})}il=Op+Ku*rc}}}a.graduatedMarks.push(du)}sn(Et);var qa=a.graduatedMarks;if(qa!==null)for(var Ip=E.length,ks=0;ks<Ip;ks++){var Ca=E[ks],Bs=qa[ks];if(Ca.visible&&Ca!==re&&Bs.length!==0){if(Ca instanceof Lr){var uh=a,Zh=b,ac=Ca.alignmentFocus;ac.Mc()&&(ac=Vi);var Gy=Ca.angle;Ca.Kb=0,Ca.measure(1/0,1/0,0,0),Ca.Kb=Gy;var Ym=Ca.measuredBounds,og=Ym.width,sc=Ym.height,Qc=vt.allocAt(0,0,og,sc),Xs=je.alloc();Xs.xi(Qc,ac),vt.free(Qc);for(var hh=-Xs.x,fu=-Xs.y,Ll=new vt,Ad=Bs.length,ag=0;ag<Ad;ag++)for(var Fd=Bs[ag],Km=Fd.$l.x,sg=Fd.$l.y,pa=Fd.angle,nu=0;4>nu;nu++){switch(nu){case 0:Xs.h(hh,fu);break;case 1:Xs.h(hh+og,fu);break;case 2:Xs.h(hh,fu+sc);break;case 3:Xs.h(hh+og,fu+sc)}Xs.rotate(pa+Ca.angle),Xs.offset(Km,sg),ag===0&&nu===0?Ll.h(Xs.x,Xs.y,0,0):Ll.Ye(Xs),Xs.offset(-Km,-sg),Xs.rotate(-pa-Ca.angle)}je.free(Xs),uh.graduatedBounds!==null&&uh.graduatedBounds.push(Ll),pi(Zh,Ll.x,Ll.y,Ll.width,Ll.height)}else if(Ca instanceof zo){var Wl=a,_m=b;Wl.temporaryTextBlock===null&&(Wl.temporaryTextBlock=new zo);var rl=Wl.temporaryTextBlock;P1(rl,Ca);var Wh=Ca.alignmentFocus;Wh.Mc()&&(Wh=Vi);for(var Hl=Ca.segmentOrientation,lg=Ca.segmentOffset,Md=new vt,Rp=0,ug=0,bu=0,lc=0,Ld=0,hg=Bs.length,Hh=0;Hh<hg;Hh++){var Uu=Bs[Hh];Rp=Uu.$l.x,ug=Uu.$l.y,bu=Uu.angle,Ld=lc=Ca.angle,Hl!==Fs&&(Ld=Hl===ap||Hl===em?bu+Ca.angle:bu,lc=Kn.computeAngle(Hl,Ld)),rl.Kb=lc,rl.text=Uu.text||"",rl.measure(1/0,1/0,0,0);var Gh=rl.measuredBounds,dh=rl.naturalBounds,Vh=dh.width,uc=dh.height,gu=di.alloc();gu.reset(),gu.translate(-Gh.x,-Gh.y),gu.scale(rl.scale,rl.scale),gu.rotate(Ld,Vh/2,uc/2),Hl!==sp&&Hl!==up||gu.rotate(90,Vh/2,uc/2),Hl!==lp&&Hl!==hp||gu.rotate(-90,Vh/2,uc/2),Hl===tm&&(45<bu&&135>bu||225<bu&&315>bu)&&gu.rotate(-bu,Vh/2,uc/2);var Jc=vt.allocAt(0,0,Vh,uc),Yh=je.alloc();Yh.xi(Jc,Wh),gu.Ga(Yh);var qc=-Yh.x,Vy=-Yh.y,ch=je.alloc();ch.assign(lg),isNaN(ch.x)&&(ch.x=Vh/2+3),isNaN(ch.y)&&(ch.y=-(uc/2+3)),ch.rotate(bu),Rp+=ch.x+qc,ug+=ch.y+Vy;var hc=new vt(Rp,ug,Gh.width,Gh.height),jp=new vt(Gh.x,Gh.y,Gh.width,Gh.height),Yy=new vt(dh.x,dh.y,dh.width,dh.height);Uu.Sz=lc,Uu.lineCount=rl.lineCount,Uu.lines=[rl.Cb,rl.Ih,rl.df,rl.Le,rl.Qc,rl.Qb,rl.ze],Uu.actualBounds=hc,Uu.measuredBounds=jp,Uu.naturalBounds=Yy,Hh===0?Md.assign(hc):Md.ed(hc),je.free(ch),je.free(Yh),vt.free(Jc),di.free(gu)}Wl.graduatedBounds!==null&&Wl.graduatedBounds.push(Md),pi(_m,Md.x,Md.y,Md.width,Md.height)}La(Ca,!1)}}},Xg.prototype.arrange=function(a,y,x){if(a.graduatedBounds!==null){var E=a.Pb(),b=a.graduatedMarks;if(b!==null){var z=a.graduatedBounds,ee=0,re=z[ee];ee++,E!==null&&E.arrange(re.x-x.x,re.y-x.y,re.width,re.height);for(var oe=y.length,le=0;le<oe;le++){var he=y[le];re=b[le],he.visible&&he!==E&&re.length!==0&&(re=z[ee],ee++,he.arrange(re.x-x.x,re.y-x.y,re.width,re.height))}a.graduatedBounds=null}}},Xg.prototype.gc=function(a,y,x){var E=x.$i;x.$i=!0;var b=a.naturalBounds,z=b.width,ee=b.height;b=y instanceof qs,y.save(),y.beginPath(),y.rect(-1,-1,z+1,ee+1),y.clip(),y.Se(),z=a.Pb(),z.gc(y,x),ee=a.Df()*x.scale,0>=ee&&(ee=1);for(var re=z.actualBounds,oe=a.O.s,le=a.graduatedMarks,he=oe.length,ge=0;ge<he;ge++){var Se=oe[ge],Pe=le[ge],Ae=Pe.length;if(Se.visible&&Se!==z&&Pe.length!==0){if(Se instanceof Lr){if(!(2>a.graduatedTickUnit*Se.interval*z.geometry.flattenedTotalLength/a.graduatedRange*ee&&Se.graduatedSkip===null)){var Be=Se.measuredBounds,Qe=Se.strokeWidth*Se.scale,Ke=Se.alignmentFocus;Ke.Mc()&&(Ke=Vi);for(var lt=0;lt<Ae;lt++){var ct=Pe[lt].$l,ft=Pe[lt].angle,Et=Ke,Gt=Se.Ab;Gt.reset(),Gt.translate(ct.x+re.x,ct.y+re.y),Gt.rotate(ft+Se.angle,0,0),Gt.translate(-Be.width*Et.x+Et.offsetX+Qe/2,-Be.height*Et.y+Et.offsetY+Qe/2),Gt.scale(Se.scale,Se.scale),Ol(Se,!1),Se.wh.set(Se.Ab),Se.Kk=Se.scale,Pl(Se,!1),Se.gc(y,x),b&&(a.svg.appendChild(Se.svg),Se.svg=null),Se.Ab.reset()}}}else if(Se instanceof zo)for(a.temporaryTextBlock===null&&(a.temporaryTextBlock=new zo),Be=a.temporaryTextBlock,P1(Be,Se),Qe=0;Qe<Ae;Qe++)Ke=Pe[Qe],Ke.actualBounds&&Ke.measuredBounds&&Ke.naturalBounds&&(Be.ec=Ke.text||"",Be.Kb=Ke.Sz||0,Be.Gc=Ke.lineCount||0,lt=Ke.lines,lt!==void 0&&(Be.Cb=lt[0],Be.Ih=lt[1],Be.df=lt[2],Be.Le=lt[3],Be.Qc=lt[4],Be.Qb=lt[5],Be.ze=lt[6]),Ke.naturalBounds&&(Be.dc=Ke.naturalBounds),Ke.actualBounds&&(lt=Ke.actualBounds,Be.arrange(lt.x,lt.y,lt.width,lt.height)),lt=Ke.actualBounds,Be.arrange(lt.x,lt.y,lt.width,lt.height),ct=Ke.measuredBounds,Ke=Ke.naturalBounds,ft=Be.Ab,ft.reset(),ft.translate(lt.x+re.x,lt.y+re.y),ft.translate(-ct.x,-ct.y),Be.no(ft,Ke.x,Ke.y,Ke.width,Ke.height),Ol(Be,!1),Be.wh.set(Be.Ab),Be.Kk=Be.scale,Pl(Be,!1),Be.Ng=Se.part,Be.Me=Se.panel,Be.gc(y,x),Be.Me=null,Be.Ng=null,b&&(a.svg.appendChild(Be.svg),Be.svg=null))}}x.$i=E,y.restore(),y.Vc(!0)};function Rn(a,y){if(At.call(this),this.na=null,a===void 0)this.na=Rn.Position;else if(typeof a=="string"){var x=Xl.I(a);x!==null&&(this.na=x)}else a instanceof ka?this.na=a:a&&(this.na=Rn.Position,y=a);this.na===null&&et("Panel type not specified or PanelLayout not loaded: "+a),this.l=this.l|4194304|(this.na===Rn.Grid?1048576:0),this.O=new Mn,this.yb=lr,this.Tm=Eo,this.Uf=wr,this.$g=null,this.$e="",this.jg=new vt(NaN,NaN,NaN,NaN),this.T=this.F=null,this.xo=Bi,this.jn=dn,this.kn=ri,this.ub=this.ra=null,this.zn=NaN,this.ge=this.Hh=null,y&&Object.assign(this,y)}Vt(Rn,At),Rn.prototype.cloneProtected=function(a){At.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},Rn.prototype.Af=function(a){At.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},Rn.prototype.copy=function(){var a=At.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,ee=z.count;if(z.Gb(ee,b),z=a.part,z!==null){z.Rh=null,b.portId!==null&&z instanceof ui&&(z.Te=!0);var re=a.diagram;re!==null&&re.undoManager.isUndoingRedoing||z.cb(Jo,"elements",a,null,b,null,ee)}}return a}return null},Le=Rn.prototype,Le.toString=function(){return"Panel("+this.type.name+")#"+_r(this)},Le.Pn=function(a){At.prototype.Pn.call(this,a);for(var y=this.O.s,x=y.length,E=0;E<x;E++)y[E].Pn(a)},Le.hh=function(a,y){if(this.na===Rn.Grid)a.yc(),this.na.gc(this,a,y);else if(this.na===Rn.Graduated)a.yc(),this.na.gc(this,a,y);else{if(this.na===Rn.Table)if(a.yc(),a instanceof qs){var x=a.yd;a.yd=c0(a,"gojs-ts"),mv(this,a),a.nh.pop(),a.yd=x}else mv(this,a);(x=this.isClipping&&this.na===Rn.Spot)&&a.save();for(var E=this.Pb(),b=this.O.s,z=b.length,ee=0;ee<z;ee++){var re=b[ee];x&&re===E&&(a.clipInsteadOfFill=!0),re.gc(a,y),x&&re===E&&(a.clipInsteadOfFill=!1)}x&&(a.restore(),a.Vc(!0))}};function mv(a,y){y.lineCap="butt";var x=0<a.rowCount?a.rowDefs:null,E=0<a.columnCount?a.colDefs:null;x!==null&&F0(a,y,!0,x,!0),E!==null&&F0(a,y,!1,E,!0),x!==null&&s1(a,y,!0,x),E!==null&&s1(a,y,!1,E),x!==null&&F0(a,y,!0,x,!1),E!==null&&F0(a,y,!1,E,!1)}function s1(a,y,x,E){for(var b=E.length,z=a.actualBounds,ee=a.naturalBounds,re=!0,oe=0;oe<b;oe++){var le=E[oe];if(le!==void 0&&le.actual!==0)if(re)re=!1;else{if(x){if(le.position>ee.height)continue}else if(le.position>ee.width)continue;var he=le.separatorStrokeWidth;isNaN(he)&&(he=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var ge=le.separatorStroke;if(ge===null&&(ge=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),he!==0&&ge!==null){da(a,y,ge,!1,!1,ee,z),ge=!1;var Se=le.separatorDashArray;Se===null&&(Se=x?a.defaultRowSeparatorDashArray:a.defaultColumnSeparatorDashArray),Se!==null&&(ge=!0,y.js(Se,0)),y.beginPath(),Se=le.position+he,x?Se>ee.height&&(he-=Se-ee.height):Se>ee.width&&(he-=Se-ee.width),le=le.position+he/2,y.lineWidth=he,he=a.yb,x?(le+=he.top,Se=ee.width-he.right,y.moveTo(he.left,le),y.lineTo(Se,le)):(le+=he.left,Se=ee.height-he.bottom,y.moveTo(le,he.top),y.lineTo(le,Se)),y.stroke(),y.Se(),ge&&y.fs()}}}}function F0(a,y,x,E,b){for(var z=E.length,ee=a.actualBounds,re=a.naturalBounds,oe=l1(a,!0),le=l1(a,!1),he=0;he<z;he++){var ge=E[he];if(ge!==void 0&&ge.background!==null&&ge.coversSeparators!==b&&ge.actual!==0){var Se=x?ee.height:ee.width;if(!(ge.position>Se)){var Pe=ge.Wc(),Ae=ge.separatorStrokeWidth;isNaN(Ae)&&(Ae=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var Be=ge.separatorStroke;Be===null&&(Be=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),(Be===null||ge.index===(x?oe:le))&&(Ae=0),Pe-=Ae,Ae=ge.position+Ae,Pe+=ge.actual,Ae+Pe>Se&&(Pe=Se-Ae),0>=Pe||(Se=a.yb,da(a,y,ge.background,!0,!1,re,ee),x?y.fillRect(Se.left,Ae+Se.top,ee.width-(Se.left+Se.right),Pe):y.fillRect(Ae+Se.left,Se.top,Pe,ee.height-(Se.top+Se.bottom)))}}}}function l1(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 vv(a){return a==="LineV"||a==="BarV"}Le.lv=function(){for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].lv();this.Uc=!0},Le.kk=function(a,y,x){if(!At.prototype.kk.call(this,a,y,x))return!1;if(this.type===Rn.Table)x=this.svg.getElementsByClassName("gojs-ts"),x=x.length!==0?x[0]:null,x!==null&&(x.innerHTML=""),a.yd=x,mv(this,a),a.yd=null;else if(this.na===Rn.Grid||this.na===Rn.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},Le.nk=function(){return!0},Le.$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,ee=0;ee<y.length;ee++)if(y[ee].Ed()){var re=y[ee].actualBounds;b=ee===0?re.x:Math.min(re.x,b),z=ee===0?re.y:Math.min(re.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 At.prototype.$o.call(this,a,y,x,E)},Le.Sj=function(a,y,x,E,b){var z=this.se(),ee=this.transform,re=1/(ee.m11*ee.m22-ee.m12*ee.m21),oe=ee.m22*re,le=-ee.m12*re,he=-ee.m21*re,ge=ee.m11*re,Se=re*(ee.m21*ee.dy-ee.m22*ee.dx),Pe=re*(ee.m12*ee.dx-ee.m11*ee.dy);if(this.areaBackground!==null)return ee=this.actualBounds,St.Ff(ee.left,ee.top,ee.right,ee.bottom,a,y,x,E,b);if(this.background!==null)return z=a*oe+y*he+Se,re=a*le+y*ge+Pe,a=x*oe+E*he+Se,oe=x*le+E*ge+Pe,b.h(0,0),x=this.naturalBounds,z=St.Ff(0,0,x.width,x.height,z,re,a,oe,b),b.transform(ee),z;z||(oe=1,he=le=0,ge=1,Pe=Se=0),re=a*oe+y*he+Se,a=a*le+y*ge+Pe,oe=x*oe+E*he+Se,x=x*le+E*ge+Pe,b.h(oe,x),E=(oe-re)*(oe-re)+(x-a)*(x-a),le=!1,ge=this.O.s,Pe=ge.length,he=je.alloc(),Se=null,y=1/0;var Ae=null,Be=this.isClipping&&this.na===Rn.Spot;Be&&(Ae=je.alloc(),Se=this.Pb(),(le=Se.Sj(re,a,oe,x,Ae))&&(y=(re-Ae.x)*(re-Ae.x)+(a-Ae.y)*(a-Ae.y)));for(var Qe=0;Qe<Pe;Qe++){var Ke=ge[Qe];Ke.visible&&Ke!==Se&&Ke.Sj(re,a,oe,x,he)&&(le=!0,Ke=(re-he.x)*(re-he.x)+(a-he.y)*(a-he.y),Ke<E&&(E=Ke,b.set(he)))}return Be&&(y>E&&b.set(Ae),je.free(Ae)),je.free(he),z&&b.transform(ee),le},Le.Gj=function(){for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Gj();At.prototype.Gj.call(this)},Le.v=function(a){if(!ll(this)){At.prototype.v.call(this,a),a=null,(this.na===Rn.Auto||this.na===Rn.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=Os(b,!1);(b instanceof As||b instanceof Rn||b instanceof zo||z!==Sn)&&b.v(!0)}}}},Le.Uj=function(){if(!ll(this)){La(this,!0),Ou(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Uj()}},Le.Uk=function(){if(!(this.l&2048)){Ol(this,!0),Pl(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Wu()}},Le.Wu=function(){Pl(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Wu()},Le.Wl=function(a,y,x,E){var b=this.jg;b.h(0,0,0,0);var z=this.desiredSize,ee=this.minSize;x===void 0&&(x=ee.width,E=ee.height),x=Math.max(x,ee.width),E=Math.max(E,ee.height);var re=this.maxSize;isNaN(z.width)||(a=Math.min(z.width,re.width)),isNaN(z.height)||(y=Math.min(z.height,re.height)),a=Math.max(x,a),y=Math.max(E,y);var oe=this.yb;a=Math.max(a-oe.left-oe.right,0),y=Math.max(y-oe.top-oe.bottom,0);var le=this.O.s;le.length!==0&&this.na.measure(this,a,y,le,b,x,E),a=b.width+oe.left+oe.right,oe=b.height+oe.top+oe.bottom,isFinite(z.width)&&(a=z.width),isFinite(z.height)&&(oe=z.height),a=Math.min(re.width,a),oe=Math.min(re.height,oe),a=Math.max(ee.width,a),oe=Math.max(ee.height,oe),a=Math.max(x,a),oe=Math.max(E,oe),Un(b,a,oe),Un(this.naturalBounds,a,oe),this.Ge(0,0,a,oe)},Le.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 rh(a){return a.part!==null?a.part.locationObject:null}Le.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=Os(this,!0);var z=this.measuredBounds;y=z.width,z=z.height;var ee=this.Kg,re=ee.left+ee.right;switch(ee=ee.top+ee.bottom,y===x&&z===E&&(a=Sn),a){case Sn:(y>x||z>E)&&(this.v(),this.measure(y>x?x:y,z>E?E:z,0,0));break;case bn:this.v(!0),this.measure(x+re,E+ee,0,0);break;case zi:this.v(!0),this.measure(x+re,z+ee,0,0);break;case Qi:this.v(!0),this.measure(y+re,E+ee,0,0)}}this.na.arrange(this,b,this.jg)}},Le.gh=function(a){var y=this.naturalBounds,x=rh(this);if(ai(0,0,y.width,y.height,a.x,a.y)){y=this.O.s;for(var E=y.length,b=je.allocAt(0,0);E--;){var z=y[E];if((z.visible||z===x)&&(un(b.set(a),z.transform),z.ca(b)))return je.free(b),!0}return je.free(b),!(this.Ma===null&&this.areaBackground===null)}return!1},Le.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},Le.qm=function(a,y){if(y(this,a),a instanceof Rn){a=a.O.s;for(var x=a.length,E=0;E<x;E++)this.qm(a[E],y)}};function Qd(a,y){u1(a,a,y)}function u1(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 Rn&&u1(a,z,x)}}function Ex(a,y){h1(a,a,y)}function h1(a,y,x){if(x(y),y instanceof Rn){y=y.O.s;for(var E=y.length,b=0;b<E;b++)h1(a,y[b],x)}}Le.Nl=function(a){return d1(this,this,a)};function d1(a,y,x){if(x(y))return y;if(y instanceof Rn){y=y.O.s;for(var E=y.length,b=0;b<E;b++){var z=d1(a,y[b],x);if(z!==null)return z}}return null}Le.fb=function(a){if(this.name===a)return this;var y=this.O.s,x=y.length;this.Hh===null&&this.itemTemplateMap===null||(x=Qg(this));for(var E=0;E<x;E++){var b=y[E];if(b instanceof Rn){var z=b.fb(a);if(z!==null)return z}if(b.name===a)return b}return null};function c1(a){a=a.O.s;for(var y=a.length,x=0,E=0;E<y;E++){var b=a[E];b instanceof Rn?x=Math.max(x,c1(b)):b instanceof Lr&&(x=Math.max(x,b.ig/2*b.strokeMiterLimit*b.Df()))}return x}Le.se=function(){return!(this.type===Rn.TableRow||this.type===Rn.TableColumn)};function Mh(a){return a.type===Rn.TableRow||a.type===Rn.TableColumn}Le.ic=function(a,y,x){if(this.pickable===!1||(y===void 0&&(y=null),x===void 0&&(x=null),Cs(this)))return null;var E=this.naturalBounds,b=1/this.Df(),z=this.se(),ee=z?a:un(je.allocAt(a.x,a.y),this.transform),re=this.diagram,oe=10,le=5;if(re!==null&&(oe=re.Ql("extraTouchArea"),le=oe/2),ai(-(le*b),-(le*b),E.width+oe*b,E.height+oe*b,ee.x,ee.y)){if(!this.isAtomic){b=this.O.s;var he=b.length;if(re=je.alloc(),le=(oe=this.isClipping&&this.na===Rn.Spot)?this.Pb():null,oe&&(le.se()?un(re.set(a),le.transform):re.set(a),!le.ca(re)))return je.free(re),z||je.free(ee),null;for(var ge=rh(this);he--;){var Se=b[he];if((Se.visible||Se===ge)&&(Se.se()?un(re.set(a),Se.transform):re.set(a),!oe||Se!==le)){var Pe=null;if(Se instanceof Rn?Pe=Se.ic(re,y,x):Se.pickable===!0&&Se.ca(re)&&(Pe=Se),Pe!==null&&(y!==null&&(Pe=y(Pe)),Pe!==null&&(x===null||x(Pe))))return je.free(re),z||je.free(ee),Pe}}je.free(re)}return this.background===null&&this.areaBackground===null?(z||je.free(ee),null):(a=ai(0,0,E.width,E.height,ee.x,ee.y)?this:null,z||je.free(ee),a)}return z||je.free(ee),null},Le.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(),ee=z?a:un(je.allocAt(a.x,a.y),this.transform);if(b=ai(0,0,b.width,b.height,ee.x,ee.y),Mh(this)||b){if(!this.isAtomic){for(var re=this.O.s,oe=re.length,le=je.alloc(),he=rh(this);oe--;){var ge=re[oe];if(ge.visible||ge===he){ge.se()?un(le.set(a),ge.transform):le.set(a);var Se=ge;ge=ge instanceof Rn?ge:null,(ge!==null?ge.ji(le,y,x,E):Se.ca(le))&&Se.pickable!==!1&&(y!==null&&(Se=y(Se)),Se===null||x!==null&&!x(Se)||E.add(Se))}}je.free(le)}return z||je.free(ee),b&&(this.background!==null||this.areaBackground!==null)}return z||je.free(ee),!1},Le.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 ee=z;if(z===void 0&&(ee=di.alloc(),ee.reset()),ee.multiply(this.transform),this.fh(a,ee))return yv(this,y,x,b),z===void 0&&di.free(ee),!0;if(this.Yc(a,ee)){if(!this.isAtomic)for(var re=rh(this),oe=this.O.s,le=oe.length;le--;){var he=oe[le];if(he.visible||he===re){var ge=he.actualBounds,Se=this.naturalBounds;ge.x>Se.width||ge.y>Se.height||0>ge.x+ge.width||0>ge.y+ge.height||(ge=he,he=he instanceof Rn?he:null,Se=di.alloc(),Se.set(ee),(he!==null?he.Cf(a,y,x,E,b,Se):Oa(ge,a,E,Se))&&(y!==null&&(ge=y(ge)),ge===null||x!==null&&!x(ge)||b.add(ge)),di.free(Se))}}return z===void 0&&di.free(ee),E}return z===void 0&&di.free(ee),!1};function yv(a,y,x,E){for(var b=a.O.s,z=b.length;z--;){var ee=b[z];if(ee.visible){var re=ee.actualBounds,oe=a.naturalBounds;re.x>oe.width||re.y>oe.height||0>re.x+re.width||0>re.y+re.height||(ee instanceof Rn&&yv(ee,y,x,E),y!==null&&(ee=y(ee)),ee===null||x!==null&&!x(ee)||E.add(ee))}}}Le.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 ee=this.naturalBounds,re=this.se(),oe=re?a:un(je.allocAt(a.x,a.y),this.transform),le=re?y:un(je.allocAt(y.x,y.y),this.transform),he=oe.Bf(le),ge=0<oe.x&&oe.x<ee.width&&0<oe.y&&oe.y<ee.height||On(oe.x,oe.y,0,0,0,ee.height)<=he||On(oe.x,oe.y,0,ee.height,ee.width,ee.height)<=he||On(oe.x,oe.y,ee.width,ee.height,ee.width,0)<=he||On(oe.x,oe.y,ee.width,0,0,0)<=he;if(ee=oe.zd(0,0)<=he&&oe.zd(0,ee.height)<=he&&oe.zd(ee.width,0)<=he&&oe.zd(ee.width,ee.height)<=he,re||(je.free(oe),je.free(le)),ge){if(!this.isAtomic){oe=je.alloc(),le=je.alloc(),he=rh(this);for(var Se=this.O.s,Pe=Se.length;Pe--;){var Ae=Se[Pe];if(Ae.visible||Ae===he){var Be=Ae.actualBounds,Qe=this.naturalBounds;(!re||!(Be.x>Qe.width||Be.y>Qe.height||0>Be.x+Be.width||0>Be.y+Be.height))&&(Ae.se()?(Be=Ae.transform,un(oe.set(a),Be),un(le.set(y),Be)):(oe.set(a),le.set(y)),Be=Ae,Ae=Ae instanceof Rn?Ae:null,(Ae!==null?Ae.og(oe,le,x,E,b,z):Be.tx(oe,le,b))&&(x!==null&&(Be=x(Be)),Be===null||E!==null&&!E(Be)||z.add(Be)))}}je.free(oe),je.free(le)}return b?ge:ee}return!1};function Sv(a){var y=null;return a instanceof Lr&&(y=a.spot1,y===Eo&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot1)),y===null&&(y=Ti),y}function xv(a){var y=null;return a instanceof Lr&&(y=a.spot2,y===Eo&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot2)),y===null&&(y=An),y}Le.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},Le.M=function(a){return this.O.M(a)},Le.Gb=function(a,y){y instanceof Ki&&et("Cannot add a Part to a Panel: "+y+"; use a Panel instead"),(this===y||this.rg(y))&&(this===y&&et("Cannot make a Panel contain itself: "+this.toString()),et("Cannot make a Panel indirectly contain itself: "+this.toString()+" already contains "+y.toString()));var x=y.panel;if(x!==null&&x!==this&&et("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!==Rn.Grid||y instanceof Lr||et("Can only add Shapes to a Grid Panel, not: "+y),this.na!==Rn.Graduated||y instanceof Lr||y instanceof zo||et("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 Ut),this.ge.add(E,y))}var b=this.O;if(E=-1,x===this){for(var z=-1,ee=this.O.s,re=ee.length,oe=0;oe<re;oe++)if(ee[oe]===y){z=oe;break}if(z!==-1){if(z===a||z+1>=b.count&&a>=b.count)return;b.mb(z),E=z}else et("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),ll(this)||this.v(),y.v(!1),y.portId!==null?this.Te=!0:y instanceof Rn&&y.Te===!0&&(this.Te=!0),this.graduatedIntervals=null,this.If()||L0(this,y,!1),x=this.part,x!==null&&(x.Rh=null,x.ag=NaN,this.Te&&x instanceof ui&&(x.Te=!0),x.Te&&x instanceof ui&&(x.wc=null),b=this.diagram,b!==null&&b.undoManager.isUndoingRedoing||(E!==-1&&x.cb(ha,"elements",this,y,null,E,null),x.cb(Jo,"elements",this,null,y,null,a)))};function Pv(a,y){a.l=y?a.l|16777216:a.l&-16777217}Le.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)},Le.mb=function(a){0<=a&&this.pc(a,!0)},Le.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),La(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 ui&&(E instanceof Rn?E.qm(E,function(ee,re){Vv(z,re,y)}):Vv(z,E,y)),x=this.diagram,x!==null&&x.undoManager.isUndoingRedoing||z.cb(ha,"elements",this,E,null,a,null))},Le.Fb=function(a){0>a&&Tn(a,">= 0",Rn,"getRowDefinition:idx"),a=Math.round(a);var y=this.rowDefs;if(y[a]===void 0){var x=new ba;x.wi(this),x.isRow=!0,x.index=a,y[a]=x,this.cb(Jo,"rowdefs",this,null,x,null,a)}return y[a]},Le.oA=function(a){if(0>a&&Tn(a,">= 0",Rn,"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(ha,"rowdefs",this,x,null,a,null),this.v()}}};function f1(a,y,x){var E=a.rowDefs;if(!(0>y)){if(E[y]=x instanceof ba?x:void 0,!x)for(y=E.length-1;0<=y&&E[y--]===void 0;)E.length--;a.v()}}Le.Eb=function(a){0>a&&Tn(a,">= 0",Rn,"getColumnDefinition:idx"),a=Math.round(a);var y=this.colDefs;if(y[a]===void 0){var x=new ba;x.wi(this),x.isRow=!1,x.index=a,y[a]=x,this.cb(Jo,"coldefs",this,null,x,null,a)}return y[a]},Le.jA=function(a){if(0>a&&Tn(a,">= 0",Rn,"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(ha,"coldefs",this,x,null,a,null),this.v()}}};function g1(a,y,x){var E=a.colDefs;if(!(0>y)){if(E[y]=x instanceof ba?x:void 0,!x)for(y=E.length-1;0<=y&&E[y--]===void 0;)E.length--;a.v()}}Le.Gy=function(a){var y=null;return a.isRow?y=this.Fb(a.index):a.isRow||(y=this.Eb(a.index)),y&&b0(y,a),this},Le.Hy=function(a,y){return(a=this.Fb(a))&&b0(a,new ba(y)),this},Le.By=function(a,y){return(a=this.Eb(a))&&b0(a,new ba(y)),this},Le.nz=function(a){if(0>a||this.type!==Rn.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},Le.fz=function(a){if(0>a||this.type!==Rn.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},Le.Fz=function(a,y){if(y===void 0&&(y=new je(NaN,NaN)),this.type!==Rn.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)},Le.Gz=function(a){if(this.type!==Rn.Graduated)return NaN;var y=this.Pb();return y.transform.Cd(a),y.geometry.xx(a)*this.graduatedRange+this.graduatedMin};function p1(a){return a=a.allBindings,a!==null&&a._isFrozen}function Rl(a){var y=a.allBindings;if(y===null)a.data!==null&&et("Template cannot have .data be non-null: "+a),a.allBindings=y=new Mn;else if(y._isFrozen)return;var x=new Mn;Pv(a,!1),a.qm(a,function(le,he){he.th();var ge=he.localBindings;if(ge!==null)for(Bc(he,!1),ge=ge.iterator;ge.next();){var Se=ge.value;Se.mode===yp&&Bc(he,!0);var Pe=Se.sourceName;Pe!==null&&(Pe==="/"&&Pv(le,!0),Pe=bS(Se,le,he),Pe!==null&&(x.add(Pe),Pe.srcBindings===null&&(Pe.srcBindings=new Mn),Pe.srcBindings.add(Se))),y.add(Se)}if(he instanceof Rn&&he.type===Rn.Table){if(0<he.rowCount){for(le=he.rowDefs,ge=le.length,Se=0;Se<ge;Se++)if(Pe=le[Se],Pe!==void 0&&Pe.be!==null)for(var Ae=Pe.be.iterator;Ae.next();){var Be=Ae.value;Be.xd=Pe,Be.to=2,Be.wl=Pe.index,y.add(Be)}}if(0<he.columnCount){for(he=he.colDefs,le=he.length,ge=0;ge<le;ge++)if(Se=he[ge],Se!==void 0&&Se.be!==null)for(Pe=Se.be.iterator;Pe.next();)Ae=Pe.value,Ae.xd=Se,Ae.to=1,Ae.wl=Se.index,y.add(Ae)}}});for(var E=x.iterator;E.next();){var b=E.value;if(b.srcBindings!==null){Bc(b,!0);for(var z=b.srcBindings.iterator;z.next();){var ee=z.value;b.localBindings===null&&(b.localBindings=new Mn),b.localBindings.add(ee)}}b.srcBindings=null}for(E=y.iterator;E.next();)if(b=E.value,z=b.xd,z!==null){b.xd=null;var re=b.targetProperty,oe=re.indexOf(".");0<oe&&z instanceof Rn&&(ee=re.substring(0,oe),re=re.substr(oe+1),oe=z.fb(ee),oe!==null?(z=oe,b.targetProperty=re):Yn('Warning: unable to find GraphObject named "'+ee+'" for Binding: '+b.toString())),z instanceof ba?(ee=_r(z.panel),b.Ai=ee===void 0?-1:ee,z.panel.bindingId=b.Ai):z instanceof At?(ee=_r(z),b.Ai=ee===void 0?-1:ee,z.bindingId=b.Ai):et("Unknown type of binding target: "+z)}y.freeze(),a instanceof Ki&&a.Zc()&&a.Va()}Le.Uy=function(a){a===void 0&&(a=!1);var y=this.copy();return Ex(y,function(x){x instanceof Rn&&(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&&Rl(y),y},Le.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,ee=x.Ai;if(ee!==-1){if(z=this.ks(ee),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 Rn))continue;b===1?z=z.Eb(x.wl):b===2&&(z=z.Fb(x.wl))}z!==void 0&&x.Mv(z,E)}}},Le.sx=function(a){return a==null||this.ge===null?null:this.ge.I(a)};function Ax(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 Rn&&z.data!==null));)b++,z=a[b];if(x-b!==E)return!0;if(z===null)return 0<E;for(var ee=0;b<x&&ee<E;){if(z=a[b],!(z instanceof Rn)||z.data!==y[ee])return!0;b++,ee++}return!1}function Qg(a){if(a.type===Rn.Spot||a.type===Rn.Auto)return Math.min(a.O.length,1);if(a.type===Rn.Link){a=a.O;for(var y=a.length,x=0;x<y;x++){var E=a.M(x);if(!(E instanceof Lr&&E.isPanelMain))break}return x}return a.type===Rn.Table&&0<a.O.length&&(a=a.O.M(0),a.isPanelMain&&a instanceof Rn&&Mh(a))?1:0}Le.mv=function(){for(var a=Qg(this);this.O.length>a;)this.pc(this.O.length-1,!1);m1(this,this.itemArray)};function m1(a,y){var x=Qg(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++)M0(a,y[E],E,!0)}else{E=x;for(var b=0;b<y.length;b++,E++){var z=y[b],ee=E<a.O.length?a.O.M(E):null;if(ee instanceof Rn){if(ee.data!==z){var re=Cv(a,ee.data),oe=Cv(a,z),le=oe!==re;le||(re=Ev(a,re),le=Ev(a,oe)!==re),le?(a.pc(E,!1),M0(a,z,b,!1)):ee.data=z}}else M0(a,z,b,!1)}for(;E<a.O.length;)a.pc(E,!1);a.$g=null,wv(a,x,0),ll(a)||a.v(),a.graduatedIntervals=null,a.If()||L0(a,a,!1),y=a.part,y!==null&&(y.Rh=null,y.ag=NaN,a.Te&&y instanceof ui&&(y.Te=!0),y.Te&&y instanceof ui&&(y.wc=null))}}function M0(a,y,x,E){if(!(y==null||0>x)){var b=Cv(a,y);if(b=Ev(a,b),b!==null){if(Rl(b),b=b.copy(),b.l&16777216){var z=a.ih();z!==null&&Pv(z,!0)}typeof y=="object"&&(a.ge===null&&(a.ge=new Ut),a.ge.add(y,b)),z=x+Qg(a),a.Gb(z,b),E&&(b.ub=y,wv(a,z,x),b.ub=null),b.data=y}}}function wv(a,y,x){for(a=a.O;y<a.length;){var E=a.M(y);if(E instanceof Rn){var b=y,z=x;E.type===Rn.TableRow?E.row=b:E.type===Rn.TableColumn&&(E.column=b),E.itemIndex=z}y++,x++}}function Cv(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=ya(y,a)}else return"";if(a===void 0)return"";if(typeof a=="string")return a;et("Panel.getCategoryForItemData found a non-string category for "+y+": "+a)}function Ev(a,y){var x=a.itemTemplateMap,E=null;return x!==null&&(E=x.I(y)),E===null&&(x!==null&&(E=x.I("")),E===null&&(v1||(v1=!0,Yn('No item template Panel found for category "'+y+'" on '+a),Yn(" Using default item template."),a=new Rn,y=new zo,y.bind(new Pa("text","",Cr)),a.add(y),y1=a),E=y1)),E}function L0(a,y,x){var E=y.enabledChanged;if(E!==null&&E(y,x),y instanceof Rn){y=y.O.s,E=y.length;for(var b=0;b<E;b++){var z=y[b];x&&z instanceof Rn&&!z.isEnabled||L0(a,z,x)}}}function Eu(a,y){y.name=a,Xl.add(a,y)}It.Object.defineProperties(Rn.prototype,{type:{get:function(){return this.na},set:function(a){var y=this.na;y!==a&&(this.na=a,this.isAtomic=this.na===Rn.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&&Tn(a,">= 0",Rn,"padding"),a=new Pi(a)):(0>a.left&&Tn(a.left,">= 0",Rn,"padding:value.left"),0>a.right&&Tn(a.right,">= 0",Rn,"padding:value.right"),0>a.top&&Tn(a.top,">= 0",Rn,"padding:value.top"),0>a.bottom&&Tn(a.bottom,">= 0",Rn,"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:lr},set:function(a){typeof a=="number"&&(a=new Pi(a));var y=this.defaultSeparatorPadding;y.D(a)||(a=a.J(),this.T===null&&(this.T=new El),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 xo)&&(a instanceof xo&&a.freeze(),this.T===null&&(this.T=new El),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 El),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)||et("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 El),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 xo)&&(a instanceof xo&&a.freeze(),this.T===null&&(this.T=new El),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 El),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)||et("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 El),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 El),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||et("Invalid Panel.gridCellSize: "+a),this.jn=a.J();var x=this.diagram;x!==null&&this===x.grid&&Pu(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()||et("Invalid Panel.gridOrigin: "+a),this.kn=a.J();var x=this.diagram;x!==null&&this===x.grid&&Pu(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 oh),this.ra.lq=a,this.v(),this.g("graduatedMin",y,a),ts(this)&&(a=this.part,a!==null&&Uo(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 oh),this.ra.F=a,this.v(),this.g("graduatedMax",y,a),ts(this)&&(a=this.part,a!==null&&Uo(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 oh),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 oh),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 oh,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 oh,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 oh,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 oh,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 El),this.T.Pc}},rowCount:{get:function(){return this.T===null?0:this.rowDefs.length}},colDefs:{get:function(){return this.T===null&&(this.T=new El),this.T.Oc}},columnCount:{get:function(){return this.T===null?0:this.colDefs.length}},rowSizing:{get:function(){return this.T!==null?this.T.ob:k0},set:function(a){var y=this.rowSizing;y!==a&&(this.T===null&&(this.T=new El),this.T.ob=a,this.v(),this.g("rowSizing",y,a))}},columnSizing:{get:function(){return this.T!==null?this.T.j:k0},set:function(a){var y=this.columnSizing;y!==a&&(this.T===null&&(this.T=new El),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)&&et("Panel.topIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new El),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)&&et("Panel.leftIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new El),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 Ki&&!(this instanceof no);Rl(this),this.ub=a;var E=this.diagram;E!==null&&(x?(x=E.partManager,this instanceof Kn?(y!==null&&x.bf.remove(y),a!==null&&x.bf.add(a,this)):this instanceof Ki&&(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 Nc),this.A.nb=a)}},itemArray:{get:function(){return this.Hh},set:function(a){var y=this.Hh;if(y!==a||a!==null&&Ax(this,a)){var x=this.diagram;y!==a&&(x!==null&&y!==null&&hy(x.partManager,this,x),this.Hh=a,x!==null&&a!==null&&uy(x.partManager,this)),this.g("itemArray",y,a),x!==null&&x.undoManager.isUndoingRedoing||m1(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 Ut}var y=this.itemTemplateMap.I("");y!==a&&((a instanceof Ki||a.isPanelMain)&&et("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(););kr(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&&(kr(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 Pr&&(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&&L0(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))}}}),It.Object.defineProperties(Rn,{Position:{get:function(){return Xl.I("Position")}},Horizontal:{get:function(){return Xl.I("Horizontal")}},Vertical:{get:function(){return Xl.I("Vertical")}},Spot:{get:function(){return Xl.I("Spot")}},Auto:{get:function(){return Xl.I("Auto")}},Table:{get:function(){return Xl.I("Table")}},Viewbox:{get:function(){return Xl.I("Viewbox")}},TableRow:{get:function(){return Xl.I("TableRow")}},TableColumn:{get:function(){return Xl.I("TableColumn")}},Link:{get:function(){return Xl.I("Link")}},Grid:{get:function(){return Xl.I("Grid")}},Graduated:{get:function(){return Xl.I("Graduated")}}}),Rn.prototype.rebuildItemElements=Rn.prototype.mv,Rn.prototype.findItemPanelForData=Rn.prototype.sx,Rn.prototype.updateTargetBindings=Rn.prototype.La,Rn.prototype.copyTemplate=Rn.prototype.Uy,Rn.prototype.graduatedValueForPoint=Rn.prototype.Gz,Rn.prototype.graduatedPointForValue=Rn.prototype.Fz,Rn.prototype.findColumnForLocalX=Rn.prototype.fz,Rn.prototype.findRowForLocalY=Rn.prototype.nz,Rn.prototype.addColumnDefinition=Rn.prototype.By,Rn.prototype.addRowDefinition=Rn.prototype.Hy,Rn.prototype.addRowColumnDefinition=Rn.prototype.Gy,Rn.prototype.removeColumnDefinition=Rn.prototype.jA,Rn.prototype.getColumnDefinition=Rn.prototype.Eb,Rn.prototype.removeRowDefinition=Rn.prototype.oA,Rn.prototype.getRowDefinition=Rn.prototype.Fb,Rn.prototype.removeAt=Rn.prototype.mb,Rn.prototype.remove=Rn.prototype.remove,Rn.prototype.insertAt=Rn.prototype.Gb,Rn.prototype.elt=Rn.prototype.M,Rn.prototype.add=Rn.prototype.add,Rn.prototype.findObject=Rn.prototype.fb,Rn.prototype.findInVisualTree=Rn.prototype.Nl,Rn.prototype.walkVisualTreeFrom=Rn.prototype.qm,Rn.prototype.findMainElement=Rn.prototype.Pb;var v1=!1,y1=null,Xl=new Ut;Rn.className="Panel",Rn.definePanelLayout=Eu,Eu("Position",new p0),Eu("Vertical",new v0),Eu("Auto",new S0),Eu("Link",new A0);function oh(){this.lq=0,this.F=100,this.ia=10,this.V=0,this.Zh=this.o=this.j=this.u=null}oh.prototype.copy=function(){var a=new oh;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},oh.className="GradPanelSettings";function El(){this.Pc=[],this.Oc=[],this.j=this.ob=k0,this.hb=this.Hb=0,this.Qp=lr,this.Ha=1,this.V=this.ia=null,this.F=1,this.nb=this.o=this.u=null}El.prototype.copy=function(a){for(var y=new El,x=this.Pc,E=x.length,b=y.Pc,z=0;z<E;z++)if(x[z]!==void 0){var ee=x[z].copy();ee.wi(a),b[z]=ee}for(x=this.Oc,E=x.length,b=y.Oc,z=0;z<E;z++)x[z]!==void 0&&(ee=x[z].copy(),ee.wi(a),b[z]=ee);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},El.className="TablePanelSettings";function ba(a){rr(this),this.Me=null,this.uq=!0,this.Za=0,this.Hc=NaN,this.jj=0,this.hj=1/0,this.Jb=Eo,this.pa=this.oc=this.oa=0,this.be=null,this.oo=Av,this.hg=wr,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))}ba.prototype.copy=function(){var a=new ba;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=kn(this.separatorDashArray)),a.Ma=this.Ma,a.Pm=this.Pm,a.be=this.be,a};function b0(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=kn(y.separatorDashArray)),a.background=y.background,a.coversSeparators=y.coversSeparators,a.be=y.be}Le=ba.prototype,Le.qb=function(a){a.classType===ba&&(this.sizing=a)},Le.toString=function(){return"RowColumnDefinition "+(this.isRow?"(Row ":"(Column ")+this.index+") #"+_r(this)},Le.wi=function(a){this.Me=a},Le.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)},Le.Wc=function(){var a=0,y=this.Me,x=0,E=this.isRow;if(y!==null&&y.type===Rn.Table)for(var b=E?y.rowDefs.length:y.colDefs.length,z=0;z<b;z++){var ee=E?y.rowDefs[z]:y.colDefs[z];if(ee!==void 0&&ee.oa!==0){x=ee.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)},Le.Ob=function(a,y,x){var E=this.Me;if(E!==null&&(E.cb(Io,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 D0(a){if(a.sizing===Av){var y=a.Me;return a.isRow?y.rowSizing:y.columnSizing}return a.sizing}Le.bind=function(a,y,x,E){var b=null;return typeof a=="string"?b=new Pa(a,y,x,E):b=a,b.xd=this,a=this.panel,a!==null&&(y=a.ih(),y!==null&&p1(y)&&et("Cannot add a Binding to a RowColumnDefinition that is already frozen: "+b+" on "+a)),this.be===null&&(this.be=new Mn),this.be.add(b),this},It.Object.defineProperties(ba.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&&Tn(a,">= 0",ba,"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&&Tn(a,">= 0",ba,"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))&&Tn(a,">= 0",ba,"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&&Tn(a,">= 0",ba,"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 Pi(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&&Oc(a,"RowColumnDefinition.separatorStroke"),a instanceof xo&&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)||et("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&&Oc(a,"RowColumnDefinition.background"),a instanceof xo&&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}}}),ba.prototype.computeEffectiveSpacing=ba.prototype.Wc,ba.prototype.computeEffectiveSpacingTop=ba.prototype.Io;var Av=new yn(ba,"Default",0),Jg=new yn(ba,"None",1),k0=new yn(ba,"ProportionalExtra",2);ba.className="RowColumnDefinition",ba.Default=Av,ba.None=Jg,ba.ProportionalExtra=k0;function Lr(a,y){At.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)}Vt(Lr,At),Lr.prototype.cloneProtected=function(a){At.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=kn(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 Jd(a){a.Na===null?a.Na=new Lv:a.Na.nc&&(a.Na=a.Na.copy())}Le=Lr.prototype,Le.th=function(){At.prototype.th.call(this),this.Na!==null&&(this.Na.nc=!0)},Le.qb=function(a){a===Sn||a===Bi||a===Hr||a===wr?this.geometryStretch=a:At.prototype.qb.call(this,a)},Le.toString=function(){return"Shape("+(this.figure!=="None"?this.figure:this.toArrow!=="None"?this.toArrow:this.fromArrow)+")#"+_r(this)};function Nf(a,y,x,E){var b=x.length;if(!(4>b)){var z=E.measuredBounds,ee=Math.max(1,z.width);z=z.height;for(var re=x[0],oe=x[1],le,he,ge,Se,Pe,Ae,Be=0,Qe=mi(),Ke=2;Ke<b;Ke+=2)le=x[Ke],he=x[Ke+1],ge=le-re,re=he-oe,ge===0&&(ge=.001),Se=re/ge,Pe=Math.atan2(re,ge),Ae=Math.sqrt(ge*ge+re*re),Qe.push([ge,Pe,Se,Ae]),Be+=Ae,re=le,oe=he;re=x[0],oe=x[1],ge=E.measuredBounds.width,E instanceof Lr&&(ge-=E.strokeWidth),1>ge&&(ge=1),b=x=ge,le=ee/2,he=le!==0,Ke=0,Ae=Qe[Ke],ge=Ae[0],Pe=Ae[1],Se=Ae[2],Ae=Ae[3];for(var lt=0;.1<=Be;){if(lt===0&&(he?(b=x,b-=le,Be-=le,he=!1):b=x,b===0&&(b=1)),b>Be){sn(Qe);return}b>Ae?(lt=b-Ae,b=Ae):lt=0;var ct=Math.sqrt(b*b/(1+Se*Se));if(0>ge&&(ct=-ct),re+=ct,oe+=Se*ct,a.translate(re,oe),a.rotate(Pe),a.translate(-(ee/2),-(z/2)),lt===0&&E.hh(a,y),a.translate(ee/2,z/2),a.rotate(-Pe),a.translate(-re,-oe),Be-=b,Ae-=b,lt!==0){if(Ke++,Ke===Qe.length){sn(Qe);return}Ae=Qe[Ke],ge=Ae[0],Pe=Ae[1],Se=Ae[2],Ae=Ae[3],b=lt}}sn(Qe)}}Le.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,ee=this.naturalBounds;E!==null&&da(this,a,E,!0,!1,ee,z);var re=this.part,oe=this.ig;if(x===null||oe!==0||re===null||!this.isPanelMain&&re.Pb()!==this||(oe=re.type===Rn.Link&&re instanceof no&&re.category==="Selection"&&re.adornedObject instanceof Lr&&re.adornedPart.Pb()===re.adornedObject?re.adornedObject.strokeWidth:0),oe===0&&(x=null),x!==null&&oe!==0&&(da(this,a,x,!1,!1,ee,z),a.lineWidth=oe,a.lineJoin=this.strokeJoin,a.lineCap=this.strokeCap,a.miterLimit=this.strokeMiterLimit),z=!1,re&&y.Gf("drawShadows")&&(z=re.isShadowed),a.Il===!1&&(z=!1),re=!0,x===null||E!==null&&E!=="transparent"||(re=!1),ee=!1,oe=this.strokeDashArray,oe!==null&&(ee=!0,a.js(oe,this.strokeDashOffset)),b.type===Pn.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===Pn.u){var le=b.startX;oe=b.startY;var he=b.endX,ge=b.endY;b=Math.min(le,he);var Se=Math.min(oe,ge);le=Math.abs(he-le),oe=Math.abs(ge-oe),a.beginPath(),a.rect(b,Se,le,oe),E!==null&&a.ng(E),x!==null&&(re&&z&&Iu(a),a.jk(),re&&z&&th(a)),a.Se()}else if(b.type===Pn.F)le=b.startX,oe=b.startY,he=b.endX,ge=b.endY,b=Math.abs(he-le)/2,Se=Math.abs(ge-oe)/2,le=Math.min(le,he)+b,oe=Math.min(oe,ge)+Se,a.beginPath(),a.moveTo(le,oe-Se),a.bezierCurveTo(le+St.wg*b,oe-Se,le+b,oe-St.wg*Se,le+b,oe),a.bezierCurveTo(le+b,oe+St.wg*Se,le+St.wg*b,oe+Se,le,oe+Se),a.bezierCurveTo(le-St.wg*b,oe+Se,le-b,oe+St.wg*Se,le-b,oe),a.bezierCurveTo(le-b,oe-St.wg*Se,le-St.wg*b,oe-Se,le,oe-Se),a.closePath(),E!==null&&a.ng(E),x!==null&&(re&&z&&Iu(a),a.jk(),re&&z&&th(a)),a.Se();else if(b.type===Pn.o)for(b=b.figures,oe=b.length,Se=0;Se<oe;Se++){le=b.s[Se],a.beginPath(),a.moveTo(le.startX,le.startY),he=le.segments.s,ge=he.length;for(var Pe=null,Ae=0;Ae<ge;Ae++){var Be=he[Ae];switch(Be.type){case la:a.moveTo(Be.endX,Be.endY);break;case yo:a.lineTo(Be.endX,Be.endY);break;case ma:a.bezierCurveTo(Be.point1X,Be.point1Y,Be.point2X,Be.point2Y,Be.endX,Be.endY);break;case ls:a.quadraticCurveTo(Be.point1X,Be.point1Y,Be.endX,Be.endY);break;case aa:if(Be.radiusX===Be.radiusY){var Qe=Math.PI/180;a.arc(Be.point1X,Be.point1Y,Be.radiusX,Be.startAngle*Qe,(Be.startAngle+Be.sweepAngle)*Qe,0>Be.sweepAngle,Pe!==null?Pe.endX:le.startX,Pe!==null?Pe.endY:le.startY)}else if(Pe=Va(Be,le),Qe=Pe.length,Qe===0)a.lineTo(Be.centerX,Be.centerY);else for(var Ke=0;Ke<Qe;Ke++){var lt=Pe[Ke];Ke===0&&a.lineTo(lt[0],lt[1]),a.bezierCurveTo(lt[2],lt[3],lt[4],lt[5],lt[6],lt[7])}break;case us:if(Ke=Qe=0,Pe!==null&&Pe.type===aa){if(Pe=Va(Pe,le),lt=Pe.length,lt===0){a.lineTo(Be.endX,Be.endY);break}Pe=Pe[lt-1]||null,Pe!==null&&(Qe=Pe[6],Ke=Pe[7])}else Qe=Pe!==null?Pe.endX:le.startX,Ke=Pe!==null?Pe.endY:le.startY;if(Pe=$a(Be,le,Qe,Ke),Qe=Pe.length,Qe===0){a.lineTo(Be.endX,Be.endY);break}for(Ke=0;Ke<Qe;Ke++)lt=Pe[Ke],a.bezierCurveTo(lt[2],lt[3],lt[4],lt[5],lt[6],lt[7]);break;default:et("Segment not of valid type: "+Be.type)}Be.isClosed&&a.closePath(),Pe=Be}he=le.isFilled,z?le.isShadowed?(he===!0&&E!=="transparent"&&E!==null&&a.ng(E,le.isEvenOdd),x!==null&&(he&&re&&Iu(a),a.jk(),he&&re&&th(a))):(Iu(a),he&&E!=="transparent"&&E!==null&&a.ng(E,le.isEvenOdd),x!==null&&a.jk(),th(a)):(he&&E!==null&&a.ng(E,le.isEvenOdd),x!==null&&a.jk()),a.Se(Se)}if(ee&&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=mi(),z.type===Pn.j)E.push(z.startX),E.push(z.startY),E.push(z.endX),E.push(z.endY),Nf(a,y,E,x);else if(z.type===Pn.o)for(z=z.figures.iterator;z.next();){for(re=z.value,E.length=0,E.push(re.startX),E.push(re.startY),ee=re.startX,b=re.startY,oe=ee,Se=b,le=re.segments.s,he=le.length,ge=0;ge<he;ge++){switch(Ae=le[ge],Ae.type){case la:Nf(a,y,E,x),E.length=0,E.push(Ae.endX),E.push(Ae.endY),ee=Ae.endX,b=Ae.endY,oe=ee,Se=b;break;case yo:E.push(Ae.endX),E.push(Ae.endY),ee=Ae.endX,b=Ae.endY;break;case ma:St.Qe(ee,b,Ae.point1X,Ae.point1Y,Ae.point2X,Ae.point2Y,Ae.endX,Ae.endY,.5,E),ee=Ae.endX,b=Ae.endY;break;case ls:St.ep(ee,b,Ae.point1X,Ae.point1Y,Ae.endX,Ae.endY,.5,E),ee=Ae.endX,b=Ae.endY;break;case aa:if(Be=Va(Ae,re),Pe=Be.length,Pe===0){E.push(Ae.centerX),E.push(Ae.centerY),ee=Ae.centerX,b=Ae.centerY;break}for(Qe=0;Qe<Pe;Qe++)Ke=Be[Qe],St.Qe(ee,b,Ke[2],Ke[3],Ke[4],Ke[5],Ke[6],Ke[7],.5,E),ee=Ke[6],b=Ke[7];break;case us:if(Be=$a(Ae,re,ee,b),Pe=Be.length,Pe===0){E.push(Ae.endX),E.push(Ae.endY),ee=Ae.endX,b=Ae.endY;break}for(Qe=0;Qe<Pe;Qe++)Ke=Be[Qe],St.Qe(ee,b,Ke[2],Ke[3],Ke[4],Ke[5],Ke[6],Ke[7],.5,E),ee=Ke[6],b=Ke[7];break;default:et("Segment not of valid type: "+Ae.type)}Ae.isClosed&&(E.push(oe),E.push(Se),Nf(a,y,E,x))}Nf(a,y,E,x)}else if(z.type===Pn.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),Nf(a,y,E,x);else if(z.type===Pn.F){if(b=new sa,b.startX=z.endX,b.startY=(z.startY+z.endY)/2,ee=new Wr(aa),ee.startAngle=0,ee.sweepAngle=360,ee.centerX=(z.startX+z.endX)/2,ee.centerY=(z.startY+z.endY)/2,ee.radiusX=Math.abs(z.startX-z.endX)/2,ee.radiusY=Math.abs(z.startY-z.endY)/2,b.add(ee),z=Va(ee,b),re=z.length,re===0)E.push(ee.centerX),E.push(ee.centerY);else for(ee=b.startX,b=b.startY,oe=0;oe<re;oe++)Se=z[oe],St.Qe(ee,b,Se[2],Se[3],Se[4],Se[5],Se[6],Se[7],.5,E),ee=Se[6],b=Se[7];Nf(a,y,E,x)}sn(E),a.restore(),a.Vc(!1)}}}},Le.kk=function(a,y,x){return!At.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)},Le.nk=function(a){return this.geometry!==null&&1<this.geometry.figures.length||this.pathPattern!==null?!0:At.prototype.nk.call(this,a)},Le.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)}},Le.ga=function(a,y){if(y===void 0&&(y=new je),a instanceof En){a.Mc()&&et("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},Le.mi=function(a){a===void 0&&(a=new vt);var y=this.naturalBounds,x=this.oe;y=vt.allocAt(y.x,y.y,y.width,y.height);var E=this.strokeWidth;return y.Bc(E/2,E/2),E=je.allocAt(y.x,y.y).transform(x),a.h(E.x,E.y,0,0),E.h(y.right,y.y).transform(x),pi(a,E.x,E.y,0,0),E.h(y.right,y.bottom).transform(x),pi(a,E.x,E.y,0,0),E.h(y.x,y.bottom).transform(x),pi(a,E.x,E.y,0,0),vt.free(y),je.free(E),a},Le.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!==Pn.j||y||(b+=2);var z=vt.alloc();if(z.assign(E),z.Bc(b+2,b+2),!z.ca(a))return vt.free(z),!1;if(E=b+1e-4,x.type===Pn.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:(vt.free(z),St.Yb(x.startX,x.startY,x.endX,x.endY,b,a.x,a.y));if(x.type===Pn.u){y=x.startX;var ee=x.startY,re=x.endX;if(x=x.endY,z.x=Math.min(y,re),z.y=Math.min(ee,x),z.width=Math.abs(re-y),z.height=Math.abs(x-ee),this.fill===null){if(z.Bc(-E,-E),z.ca(a))return vt.free(z),!1;z.Bc(E,E)}return this.stroke!==null&&z.Bc(b,b),a=z.ca(a),vt.free(z),a}if(x.type===Pn.F){ee=x.startX,b=x.startY,re=x.endX;var oe=x.endY;if(x=Math.min(ee,re),y=Math.min(b,oe),ee=Math.abs(re-ee)/2,b=Math.abs(oe-b)/2,x=a.x-(x+ee),y=a.y-(y+b),this.fill===null){if(ee-=E,b-=E,0>=ee||0>=b||1>=x*x/(ee*ee)+y*y/(b*b))return vt.free(z),!1;ee+=E,b+=E}return this.stroke!==null&&(ee+=E,b+=E),vt.free(z),0>=ee||0>=b?!1:1>=x*x/(ee*ee)+y*y/(b*b)}if(x.type===Pn.o)return vt.free(z),this.fill===null?Ga(x,a.x,a.y,b):fa(x,a,b,1<this.strokeWidth,y);et("Unknown Geometry type: "+x.type)},Le.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 ee=this.geometry.bounds;else{var re=this.figure,oe=Mv[re];if(oe===void 0){var le=St.Ze[re];typeof le=="string"&&(le=St.Ze[le]),typeof le=="function"?(oe=le(null,100,100),Mv[re]=oe):et("Unsupported Figure: "+re)}ee=oe.bounds}re=ee.width,oe=ee.height,le=ee.width;var he=ee.height;switch(Os(this,!0)){case Sn:E=x=0;break;case bn:le=Math.max(a-z,0),he=Math.max(y-z,0);break;case zi:le=Math.max(a-z,0),E=0;break;case Qi:x=0,he=Math.max(y-z,0)}isFinite(b.width)&&(le=b.width),isFinite(b.height)&&(he=b.height);var ge=this.maxSize,Se=this.minSize;switch(x=Math.max(x-z,Se.width),E=Math.max(E-z,Se.height),le=Math.min(ge.width,le),he=Math.min(ge.height,he),le=isFinite(le)?Math.max(x,le):Math.max(re,x),he=isFinite(he)?Math.max(E,he):Math.max(oe,E),x=Fv(this),x){case Sn:break;case bn:re=le,oe=he;break;case Bi:x=Math.min(le/re,he/oe),isFinite(x)||(x=1),re*=x,oe*=x;break;default:et(x+" is not a valid geometryStretch.")}this.Rd!==null?(re===0&&(re=.001),oe===0&&(oe=.001),x=this.Rd!==null?this.Rd:this.ua,ee=x.bounds,E=re/ee.width,ee=oe/ee.height,isFinite(E)||(E=1),isFinite(ee)||(ee=1),this.ua=E===1&&ee===1?x:x.copy().scale(E,ee)):this.ua!==null&&St.$(this.ua.Sk,a-z)&&St.$(this.ua.Rk,y-z)||(this.ua=Lr.makeGeometry(this,re,oe)),ee=this.ua.bounds,a===1/0||y===1/0?this.Ge(ee.x-z/2,ee.y-z/2,a===0&&re===0?0:ee.width+z,y===0&&oe===0?0:ee.height+z):this.Ge(-(z/2),-(z/2),le+z,he+z),b.w()?(le=b.width,he=b.height,le=Math.min(ge.width,le),he=Math.min(ge.height,he),le=Math.max(Se.width,le),he=Math.max(Se.height,he),this.dc.h(0,0,le,he)):this.dc.assign(ee)};function Fv(a){var y=a.geometryStretch;return a.Rd!==null?y===wr?bn:y:y===wr?Mv[a.figure].defaultStretch:y}Le.eh=function(a,y,x,E){ms(this,a,y,x,E)},Le.rs=function(a,y,x){return this.Sj(a.x,a.y,y.x,y.y,x)},Le.Sj=function(a,y,x,E,b){var z=this.transform,ee=1/(z.m11*z.m22-z.m12*z.m21),re=z.m22*ee,oe=-z.m12*ee,le=-z.m21*ee,he=z.m11*ee,ge=ee*(z.m21*z.dy-z.m22*z.dx),Se=ee*(z.m12*z.dx-z.m11*z.dy);z=a*re+y*le+ge,ee=a*oe+y*he+Se,re=x*re+E*le+ge,oe=x*oe+E*he+Se,ge=this.ig/2,le=this.ua,le===null&&(this.measure(1/0,1/0),le=this.ua);var Pe=le.bounds;if(he=!1,le.type===Pn.j)if(1.5>=this.strokeWidth)he=St.Ve(le.startX,le.startY,le.endX,le.endY,z,ee,re,oe,b);else{if(le.startX===le.endX?(E=ge,he=0):(y=(le.endY-le.startY)/(le.endX-le.startX),he=ge/Math.sqrt(1+y*y),E=he*y),y=mi(),a=new je,St.Ve(le.startX+E,le.startY+he,le.endX+E,le.endY+he,z,ee,re,oe,a)&&y.push(a),a=new je,St.Ve(le.startX-E,le.startY-he,le.endX-E,le.endY-he,z,ee,re,oe,a)&&y.push(a),a=new je,St.Ve(le.startX+E,le.startY+he,le.startX-E,le.startY-he,z,ee,re,oe,a)&&y.push(a),a=new je,St.Ve(le.endX+E,le.endY+he,le.endX-E,le.endY-he,z,ee,re,oe,a)&&y.push(a),re=y.length,re===0)return sn(y),!1;for(he=!0,oe=1/0,E=0;E<re;E++)a=y[E],x=(a.x-z)*(a.x-z)+(a.y-ee)*(a.y-ee),x<oe&&(oe=x,b.x=a.x,b.y=a.y);sn(y)}else if(le.type===Pn.u)he=St.Ff(Pe.x-ge,Pe.y-ge,Pe.x+Pe.width+ge,Pe.y+Pe.height+ge,z,ee,re,oe,b);else if(le.type===Pn.F){y=vt.allocAt(Pe.x,Pe.y,Pe.width,Pe.height).Bc(ge,ge);e:if(y.width===0)he=St.Ve(y.x,y.y,y.x,y.y+y.height,z,ee,re,oe,b);else if(y.height===0)he=St.Ve(y.x,y.y,y.x+y.width,y.y,z,ee,re,oe,b);else{if(a=y.width/2,le=y.height/2,E=y.x+a,he=y.y+le,x=9999,z!==re&&(x=(ee-oe)/(z-re)),9999>Math.abs(x)){if(oe=ee-he-x*(z-E),0>a*a*x*x+le*le-oe*oe){b.x=NaN,b.y=NaN,he=!1;break e}ge=Math.sqrt(a*a*x*x+le*le-oe*oe),re=(-(a*a*x*oe)+a*le*ge)/(le*le+a*a*x*x)+E,a=(-(a*a*x*oe)-a*le*ge)/(le*le+a*a*x*x)+E,le=x*(re-E)+oe+he,oe=x*(a-E)+oe+he,Math.abs((z-re)*(z-re))+Math.abs((ee-le)*(ee-le))<Math.abs((z-a)*(z-a))+Math.abs((ee-oe)*(ee-oe))?(b.x=re,b.y=le):(b.x=a,b.y=oe)}else{if(re=le*le,oe=z-E,re-=re/(a*a)*oe*oe,0>re){b.x=NaN,b.y=NaN,he=!1;break e}oe=Math.sqrt(re),re=he+oe,oe=he-oe,Math.abs(re-ee)<Math.abs(oe-ee)?(b.x=z,b.y=re):(b.x=z,b.y=oe)}he=!0}vt.free(y)}else if(le.type===Pn.o){Se=je.alloc();var Ae=re-z,Be=oe-ee,Qe=Ae*Ae+Be*Be,Ke=z,lt=ee;if(0<Qe&&Pe.contains(Ke,lt)&&(Se.x=Ke,Se.y=lt,this.ca(Se)))for(Ae!==0&&.5>Math.abs(Ae)?(Be*=.5/Ae,Ae=.5):Be!==0&&.5>Math.abs(Be)&&(Ae*=.5/Be,Be=.5),Ke-=Ae,lt-=Be;Pe.contains(Ke,lt);)Ke-=Ae,lt-=Be;for(b.x=re,b.y=oe,Be=0;Be<le.figures.count;Be++){var ct=le.figures.s[Be],ft=ct.isFilled?Ke:z,Et=ct.isFilled?lt:ee,Gt=ct.segments;Pe=ct.startX,Ae=ct.startY;for(var si=Pe,Li=Ae,wi=0;wi<Gt.count;wi++){var Vn=Gt.s[wi],vn=Vn.type,yr=Vn.endX,ar=Vn.endY,ao=!1;switch(vn){case la:si=yr,Li=ar;break;case yo:ao=N0(Pe,Ae,yr,ar,ft,Et,re,oe,Se);break;case ma:ao=St.Eo(Pe,Ae,Vn.point1X,Vn.point1Y,Vn.point2X,Vn.point2Y,yr,ar,ft,Et,re,oe,.6,Se);break;case ls:ao=St.Eo(Pe,Ae,Pe+2/3*(Vn.point1X-Pe),Ae+2/3*(Vn.point1Y-Ae),yr+2/3*(Vn.point1X-yr),ar+2/3*(Vn.point1Y-ar),yr,ar,ft,Et,re,oe,.6,Se);break;case aa:case us:vn=Vn.type===aa?Va(Vn,ct):$a(Vn,ct,Pe,Ae);var jo=vn.length;if(jo===0){ao=N0(Pe,Ae,Vn.type===aa?Vn.centerX:Vn.endX,Vn.type===aa?Vn.centerY:Vn.endY,ft,Et,re,oe,Se);break}for(ar=null,yr=0;yr<jo;yr++){if(ar=vn[yr],yr===0&&N0(Pe,Ae,ar[0],ar[1],ft,Et,re,oe,Se)){var Ia=B0(ft,Et,Se,Qe,b);Ia<Qe&&(Qe=Ia,he=!0)}St.Eo(ar[0],ar[1],ar[2],ar[3],ar[4],ar[5],ar[6],ar[7],ft,Et,re,oe,.6,Se)&&(Ia=B0(ft,Et,Se,Qe,b),Ia<Qe&&(Qe=Ia,he=!0))}yr=ar[6],ar=ar[7];break;default:et("Unknown Segment type: "+vn)}Pe=yr,Ae=ar,ao&&(ao=B0(ft,Et,Se,Qe,b),ao<Qe&&(Qe=ao,he=!0)),Vn.isClosed&&(yr=si,ar=Li,N0(Pe,Ae,yr,ar,ft,Et,re,oe,Se)&&(Vn=B0(ft,Et,Se,Qe,b),Vn<Qe&&(Qe=Vn,he=!0)))}}z=x-a,ee=E-y,re=Math.sqrt(z*z+ee*ee),re!==0&&(z/=re,ee/=re),b.x-=z*ge,b.y-=ee*ge,je.free(Se)}else et("Unknown Geometry type: "+le.type);return he?(this.transform.Ga(b),!0):!1};function B0(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 N0(a,y,x,E,b,z,ee,re,oe){if(St.$(a,x)&&St.$(y,E)||St.$(b,ee)&&St.$(z,re))return!1;var le=!1,he=(b-ee)*(y-E)-(z-re)*(a-x);return he===0?!1:(oe.x=((b*re-z*ee)*(a-x)-(b-ee)*(a*E-y*x))/he,oe.y=((b*re-z*ee)*(y-E)-(z-re)*(a*E-y*x))/he,(a>x?a-x:x-a)<(y>E?y-E:E-y)?(a=y<E?y:E,y=y<E?E:y,(oe.y>a||St.$(oe.y,a))&&(oe.y<y||St.$(oe.y,y))&&(le=!0)):(y=a<x?a:x,a=a<x?x:a,(oe.x>y||St.$(oe.x,y))&&(oe.x<a||St.$(oe.x,a))&&(le=!0)),le)}Le.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=je.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)))),je.free(z),b},Le.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 ee=je.alloc();if(ee.h(E,z),x.Ga(ee),this.gh(ee,!0)||(ee.h(b,z),x.Ga(ee),this.gh(ee,!0))||(ee.h(E,a),x.Ga(ee),this.gh(ee,!0))||(ee.h(b,a),x.Ga(ee),this.gh(ee,!0)))return je.free(ee),!0;var re=je.alloc(),oe=je.alloc();return x.set(y),x.bv(this.transform),x.Vj(),re.x=b,re.y=z,re.transform(x),ee.x=E,ee.y=z,ee.transform(x),y=!1,qd(this,ee,re,oe)?y=!0:(ee.x=b,ee.y=a,ee.transform(x),qd(this,ee,re,oe)?y=!0:(re.x=E,re.y=a,re.transform(x),qd(this,ee,re,oe)?y=!0:(ee.x=E,ee.y=z,ee.transform(x),qd(this,ee,re,oe)&&(y=!0)))),je.free(ee),di.free(x),je.free(re),je.free(oe),y};function qd(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)}Le.tx=function(a,y,x){function E(Qe,Ke){for(var lt=Qe.length,ct=0;ct<lt;ct+=2)if(Ke.zd(Qe[ct],Qe[ct+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 ee=y.bounds,re=ee.x,oe=ee.y,le=ee.x+ee.width;if(ee=ee.y+ee.height,li(a.x,a.y,re,oe)<=b&&li(a.x,a.y,le,oe)<=b&&li(a.x,a.y,re,ee)<=b&&li(a.x,a.y,le,ee)<=b)return!0}if(re=y.startX,oe=y.startY,le=y.endX,ee=y.endY,y.type===Pn.j){if(x=(re-le)*(a.x-le)+(oe-ee)*(a.y-ee),On(a.x,a.y,re,oe,le,ee)<=(0<=(le-re)*(a.x-re)+(ee-oe)*(a.y-oe)&&0<=x?b:z))return!0}else{if(y.type===Pn.u)return y=!1,x&&(y=On(a.x,a.y,re,oe,re,ee)<=b||On(a.x,a.y,re,oe,le,oe)<=b||On(a.x,a.y,le,oe,le,ee)<=b||On(a.x,a.y,re,ee,le,ee)<=b),y;if(y.type===Pn.F){y=a.x-(re+le)/2,z=a.y-(oe+ee)/2;var he=Math.abs(le-re)/2,ge=Math.abs(ee-oe)/2;if(he===0||ge===0)return On(a.x,a.y,re,oe,le,ee)<=b;if(x){if(a=St.$y(he,ge,y,z),a*a<=b)return!0}else return!(li(y,z,-he,0)>=b||li(y,z,0,-ge)>=b||li(y,z,0,ge)>=b||li(y,z,he,0)>=b)}else if(y.type===Pn.o){if(le=y.bounds,z=le.x,re=le.y,oe=le.x+le.width,le=le.y+le.height,a.x>oe&&a.x<z&&a.y>le&&a.y<re&&On(a.x,a.y,z,re,z,le)>b&&On(a.x,a.y,z,re,oe,re)>b&&On(a.x,a.y,oe,le,z,le)>b&&On(a.x,a.y,oe,le,oe,re)>b)return!1;if(z=Math.sqrt(b),x){if(this.fill===null?Ga(y,a.x,a.y,z):fa(y,a,z,!0,!1))return!0}else{for(x=y.figures,y=0;y<x.count;y++){if(z=x.s[y],ee=z.startX,he=z.startY,a.zd(ee,he)>b)return!1;for(re=z.segments.s,oe=re.length,le=0;le<oe;le++)switch(ge=re[le],ge.type){case la:case yo:if(ee=ge.endX,he=ge.endY,a.zd(ee,he)>b)return!1;break;case ma:var Se=mi();if(St.Qe(ee,he,ge.point1X,ge.point1Y,ge.point2X,ge.point2Y,ge.endX,ge.endY,.8,Se),ee=E(Se,a),sn(Se),ee||(ee=ge.endX,he=ge.endY,a.zd(ee,he)>b))return!1;break;case ls:if(Se=mi(),St.ep(ee,he,ge.point1X,ge.point1Y,ge.endX,ge.endY,.8,Se),ee=E(Se,a),sn(Se),ee||(ee=ge.endX,he=ge.endY,a.zd(ee,he)>b))return!1;break;case aa:case us:Se=ge.type===aa?Va(ge,z):$a(ge,z,ee,he);var Pe=Se.length;if(Pe===0){if(ee=ge.type===aa?ge.centerX:ge.endX,he=ge.type===aa?ge.centerY:ge.endY,a.zd(ee,he)>b)return!1;break}ge=null;for(var Ae=mi(),Be=0;Be<Pe;Be++)if(ge=Se[Be],Ae.length=0,St.Qe(ge[0],ge[1],ge[2],ge[3],ge[4],ge[5],ge[6],ge[7],.8,Ae),E(Ae,a))return sn(Ae),!1;sn(Ae),ge!==null&&(ee=ge[6],he=ge[7]);break;default:et("Unknown Segment type: "+ge.type)}}return!0}}}return!1},Le.qc=function(){this.ua=null},Le.kq=function(){return this.ig};function S1(a){var y=a.diagram;y!==null&&y.undoManager.isUndoingRedoing||(a.segmentOrientation=ap,a.toArrow!=="None"?(a.segmentIndex=-1,a.alignmentFocus=Jr):a.fromArrow!=="None"&&(a.segmentIndex=0,a.alignmentFocus=new En(1-Jr.x,Jr.y)))}Lr.makeGeometry=function(a,y,x){if(a.toArrow!=="None")var E=ju[a.toArrow];else a.fromArrow!=="None"?E=ju[a.fromArrow]:(E=St.Ze[a.figure],typeof E=="string"&&(E=St.Ze[E]),E===void 0&&et("Unknown Shape.figure: "+a.figure),E=E(a,y,x),E.Sk=y,E.Rk=x);if(E===null){var b=St.Ze.Rectangle;typeof b=="function"&&(E=b(a,y,x))}return E};function x1(a){var y=ju[a];if(y===void 0){var x=a.toLowerCase();if(x==="none")return"None";if(y=ju[x],y===void 0){var E=null,b;for(b in St.um)if(b.toLowerCase()===x){E=b;break}if(E!==null)return a=Pn.parse(St.um[E],!1),ju[E]=a,x!==E&&(ju[x]=E),E}}return typeof y=="string"?y:y instanceof Pn?a:null}It.Object.defineProperties(Lr.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),ts(this)&&(a=this.part,a!==null&&Uo(this,a,"geometryString"))}}},geometryString:{get:function(){return this.geometry===null?"":this.geometry.toString()},set:function(a){a=Pn.parse(a);var y=a.normalize();this.geometry=a,this.position=a=je.allocAt(-y.x,-y.y),je.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&&Oc(a,"Shape.fill"),a instanceof xo&&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&&Oc(a,"Shape.stroke"),a instanceof xo&&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 Tn(a,"value >= 0",Lr,"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"?Tn(a,'"butt", "round", or "square"',Lr,"strokeCap"):(Jd(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"?Tn(a,'"miter", "bevel", or "round"',Lr,"strokeJoin"):(Jd(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){Jd(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)||et("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&&(Jd(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=St.Ze[a];typeof x=="function"?x=a:(x=St.Ze[a.toLowerCase()])||et("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=x1(a);x===null?et("Unknown Shape.toArrow: "+a):y!==x&&(this.Ua===null&&(this.Ua=new sd),this.Ua.V=x,this.Rd=null,this.qc(),this.v(),S1(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=x1(a);x===null?et("Unknown Shape.fromArrow: "+a):y!==x&&(this.Ua===null&&(this.Ua=new sd),this.Ua.j=x,this.Rd=null,this.qc(),this.v(),S1(this),this.g("fromArrow",y,x))}}},spot1:{get:function(){return this.Na!==null?this.Na.fg:Eo},set:function(a){var y=this.spot1;y.D(a)||(a=a.J(),Jd(this),this.Na.fg=a,this.v(),this.g("spot1",y,a))}},spot2:{get:function(){return this.Na!==null?this.Na.gg:Eo},set:function(a){var y=this.spot2;y.D(a)||(a=a.J(),Jd(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&&(Jd(this),this.Na.br=a,this.N(),this.g("pathPattern",y,a))}},geometryStretch:{get:function(){return this.Na!==null?this.Na.jq:wr},set:function(a){var y=this.geometryStretch;y!==a&&(Jd(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 zu),this.fa.Tk=a;var x=this.diagram;x!==null&&this.panel===x.grid&&Pu(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 zu),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 zu),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 zu),this.fa.o=a,this.v(),this.g("graduatedSkip",y,a))}}}),Lr.prototype.intersectsRect=Lr.prototype.Yc,Lr.prototype.containedInRect=Lr.prototype.fh,Lr.prototype.getNearestIntersectionPoint=Lr.prototype.rs,Lr.prototype.getDocumentBounds=Lr.prototype.mi,Lr.prototype.getDocumentPoint=Lr.prototype.ga;var ju=new Ri,Mv=new Ri;Lr.className="Shape",Lr.getFigureGenerators=function(){var a=new Ut,y;for(y in St.Ze)y!==y.toLowerCase()&&a.add(y,St.Ze[y]);return a.freeze(),a},Lr.defineFigureGenerator=function(a,y){var x=a.toLowerCase(),E=St.Ze;E[a]=y,E[x]=a},Lr.getArrowheadGeometries=function(){var a=new Ut;for(E in St.um)if(ju[E]===void 0){var y=Pn.parse(St.um[E],!1);ju[E]=y,y=E.toLowerCase(),y!==E&&(ju[y]=E)}for(var x in ju)if(x!==x.toLowerCase()){var E=ju[x];E instanceof Pn&&a.add(x,E)}return a.freeze(),a},Lr.defineArrowheadGeometry=function(a,y){var x=null;typeof y=="string"?x=Pn.parse(y,!1):x=y,y=a.toLowerCase(),y!=="none"&&a!==y||et("Shape.defineArrowheadGeometry name must not be empty or None or all-lower-case: "+a);var E=ju;E[a]=x,E[y]=a};function Lv(){this.nc=!1,this.Hr="butt",this.Ir="miter",this.Jr=10,this.uj=0,this.br=null,this.jq=wr,this.gg=this.fg=Eo}Lv.prototype.copy=function(){var a=new Lv;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 zo(a,y){return At.call(this),j0||(Is=ua?new Il(null).context:null,j0=!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}Vt(zo,At),zo.prototype.cloneProtected=function(a){At.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 Au(a){a.da===null?a.da=new Ov:a.da.nc&&(a.da=a.da.copy())}Le=zo.prototype,Le.th=function(){At.prototype.th.call(this),this.da!==null&&(this.da.nc=!0)};function P1(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}Le.qb=function(a){a.classType===zo?this.wrap=a:At.prototype.qb.call(this,a)},Le.toString=function(){return 22<this.ec.length?'TextBlock("'+this.ec.substring(0,20)+'"...)':'TextBlock("'+this.ec+'")'},Le.v=function(){At.prototype.v.call(this)},Le.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,ee=$g(this),re=a.textAlign=this.textAlign,oe=y.tn;re==="start"?re=oe?"right":"left":re==="end"&&(re=oe?"left":"right"),oe=this.isUnderline;var le=this.isStrikethrough;da(this,a,this.xc,!0,!1,x,E),(oe||le)&&da(this,a,this.xc,!1,!1,x,E),E=0,x=!1;var he=this.oe,ge=he.dx-(ee*he.m21+he.dx);he=he.dy-(ee*he.m22+he.dy);var Se=y.scale;switch(8>(ge*ge+he*he)*Se*Se&&(x=!0),y.ib!==a&&(x=!1),y.ib instanceof qs&&(x=!1),y.Gf("textGreeking")===!1&&(x=!1),y=this.spacingAbove,ge=this.spacingBelow,this.flip){case Ur:a.translate(b,0),a.scale(-1,1);break;case Nr:a.translate(0,z),a.scale(1,-1);break;case Lo:a.translate(b,z),a.scale(-1,-1)}if(a.yc(),he=this.Gc,Se=(y+ee+ge)*he,z>Se&&(E=this.verticalAlignment,E=E.y*z-E.y*Se+E.offsetY),he===1&&this.ze!==null)ge=this.Cb,ge>b&&(ge=b),this.Oj(this.ze,a,0,E+y,b,ee,ge,x,re,oe,le);else if(this.Qc!==null&&this.Qb!==null)for(Se=0;Se<he;Se++){var Pe=this.Qc[Se];Pe>b&&(Pe=b),E+=y,this.Oj(this.Qb[Se],a,0,E,b,ee,Pe,x,re,oe,le),E+=ee+ge}switch(this.flip){case Ur:a.scale(-1,1),a.translate(-b,0);break;case Nr:a.scale(1,-1),a.translate(0,-z);break;case Lo:a.scale(-1,-1),a.translate(-b,-z)}}},Le.Oj=function(a,y,x,E,b,z,ee,re,oe,le,he){var ge=0;if(re)oe==="left"?ge=0:oe==="right"?ge=b-ee:oe==="center"&&(ge=(b-ee)/2),y.fillRect(x+ge,E+.25*z,ee,1);else{if(oe==="left"?ge=0:oe==="right"?ge=b:oe==="center"&&(ge=b/2),b=T0!==null?T0(this,z):.75*z,y.fillText(a,x+ge,E+b),a=z/20|0,a===0&&(a=1),oe==="right"?ge-=ee:oe==="center"&&(ge-=ee/2),le){re=O0!==null?O0(this,z):.8*z,oe=x+ge,le=E+re,b=x+ge+ee,re=E+re;var Se=a;y.beginPath(),y.lineWidth=Se,y.moveTo(oe,le),y.lineTo(b,re),y.stroke(),y.Se(),y instanceof qs&&y.ad.classList.add("gojs-td")}he&&(he=E+z-z/2.2|0,a%2!==0&&(he+=.5),E=x+ge,z=he,x=x+ge+ee,ee=he,ge=a,y.beginPath(),y.lineWidth=ge,y.moveTo(E,z),y.lineTo(x,ee),y.stroke(),y.Se(),y instanceof qs&&y.ad.classList.add("gojs-td"))}},Le.kk=function(a,y,x){if(!At.prototype.kk.call(this,a,y,x))return!1;if(da(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++)e1(a,y[x],!1)}else y=this.svg,y.innerHTML=this.text,e1(a,y,!0);return!0},Le.nk=function(a){return 1<this.lineCount||this.isUnderline||this.isStrikethrough?!0:At.prototype.nk.call(this,a)},Le.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)}},Le.Wl=function(a,y,x,E){var b=this.Gc;this.Ih=a,this.l&=-16777217;var z=this.Ae;Is!==null&&L1!==z&&(L1=Is.font=z),this.Cb=this.Le=0,this.ze=this.Qb=this.Qc=this.df=null;var ee;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 re=ee=0,oe=!1;!oe;){var le=z.indexOf(`
`,re);le===-1&&(le=z.length,oe=!0),re=z.substr(re,le-re),this.formatting===ep&&(re=re.trim()),ee=Math.max(ee,Ql(re)),re=le+1}z=ee}else ee=z.indexOf(`
`,0),0<=ee&&(z=z.substr(0,ee)),z=Ql(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)),ee=C1(this,z),isNaN(this.desiredSize.height)?ee=Math.min(ee,y/this.scale):ee=this.desiredSize.height,oe=ee,this.Cb!==0&&this.Qc!==null&&this.Qb!==null&&this.overflow===I0&&(y=this.Ae,y=this.overflow===I0?w1(y):0,le=this.spacingAbove+this.spacingBelow,le=Math.max(0,$g(this)+le),oe=Math.min(this.maxLines-1,Math.max(Math.floor(oe/le+.01)-1,0)),!(oe+1>=this.Qb.length))){for(this.l|=16777216,le=this.Qb[oe],y=Math.max(1,a-y);Ql(le)>y&&1<le.length;)le=le.substr(0,le.length-1);le+=tp,y=Ql(le),this.Qb[oe]=le,this.Qb=this.Qb.slice(0,oe+1),this.Qc[oe]=y,this.Qc=this.Qc.slice(0,oe+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===E1||isNaN(this.desiredSize.width))&&(z=isNaN(a)?this.Cb:Math.min(a,this.Cb)),z=Math.max(x,z),ee=Math.max(E,ee),Un(this.dc,z,ee),this.Ge(0,0,z,ee),this.svg!==null&&b!==this.Gc&&(this.Uc=!0)},Le.eh=function(a,y,x,E){ms(this,a,y,x,E)};function qg(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 bv(a,y,x,E){var b=a.formatting===ep;b&&(y=y.trim());var z=0,ee=a.Ae,re=a.spacingAbove+a.spacingBelow;re=Math.max(0,$g(a)+re);var oe=a.overflow===I0?w1(ee):0;if(a.Gc>=a.maxLines)E!==null&&E.h(0,re);else if(ee=y,a.wrap===Dv){a.Le=1;var le=Ql(y);if(oe===0||le<=x)a.Cb=Math.max(a.Cb,le),qg(a,y,a.Cb),E!==null&&E.h(le,re);else{for(z=Tf(a,ee),ee=ee.substr(z.length),y=Tf(a,ee),le=Ql(z+y);0<y.length&&le<=x;)z+=y,ee=ee.substr(y.length),y=Tf(a,ee),le=z+y,b&&(le=le.trim()),le=Ql(le);for(b&&(y=y.trim()),z+=y,x=Math.max(1,x-oe);Ql(z)>x&&1<z.length;)z=z.substr(0,z.length-1);a.l|=16777216,z+=tp;var he=Ql(z);a.Cb=he,qg(a,z,he),E!==null&&E.h(he,re)}}else{for(oe=0,ee.length===0&&(oe=1,qg(a,ee,0));0<ee.length;){for(y=Tf(a,ee),ee=ee.substr(y.length);Ql(y)>x;){var ge=1;for(le=Ql(y.substr(0,ge)),he=0;le<=x;)ge++,he=le,le=Ql(y.substr(0,ge));if(ge===1){var Se=le;z=Math.max(z,le)}else Se=he,z=Math.max(z,he);if(ge--,1>ge&&(ge=1),qg(a,y.substr(0,ge),Se),oe++,y=y.substr(ge),a.Gc+oe>a.maxLines)break}for(he=Tf(a,ee),le=Ql(y+he);0<he.length&&le<=x;)y+=he,ee=ee.substr(he.length),he=Tf(a,ee),le=y+he,b&&(le=le.trim()),le=Ql(le);if(b&&(y=y.trim()),y!==""&&(y[y.length-1]==="\xAD"&&(y=y.substring(0,y.length-1)+"\u2010"),he.length===0?(ge=le,z=Math.max(z,le)):(ge=he=Ql(y),z=Math.max(z,he)),qg(a,y,ge),oe++,a.Gc+oe>a.maxLines))break}a.Le=Math.min(a.maxLines,oe),a.Cb=Math.max(a.Cb,z),E!==null&&E.h(a.Cb,re*a.Le)}}function Tf(a,y){if(a.wrap===A1)return y.substr(0,1);for(var x=y.length,E=0,b=Fx;E<x&&!b.test(y.charAt(E));)E++;for(a.formatting===F1&&(x=Math.min(x,E+1));E<x&&b.test(y.charAt(E));)E++;return E>=y.length?y:y.substr(0,E)}function Ql(a){return Is===null?8*a.length:Is.measureText(a).width}function $g(a){if(a.df!==null)return a.df;var y=a.Ae;if(Is===null){var x=16;return a.df=x}return Nv[y]!==void 0&&5e3>M1?x=Nv[y]:(x=1.3*Is.measureText("M").width,Nv[y]=x,M1++),a.df=x}function w1(a){if(Is===null)return 6;if(R0[a]!==void 0&&5e3>Tv)var y=R0[a];else y=Is.measureText(tp).width,R0[a]=y,Tv++;return y}function C1(a,y){var x=a.ec.replace(/\r\n/g,`
`).replace(/\r/g,`
`),E=a.spacingAbove+a.spacingBelow;if(E=Math.max(0,$g(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,ee,re=!1;!re;){if(ee=x.indexOf(`
`,z),ee===-1&&(ee=x.length,re=!0),z<=ee){if(z=x.substr(z,ee-z),a.wrap!==Dv){a.Le=0;var oe=Je.alloc();bv(a,z,y,oe),b+=oe.height,Je.free(oe),a.Gc+=a.Le}else bv(a,z,y,null),b+=E,a.Gc++;a.Gc===a.maxLines&&(re=!0)}z=ee+1}return a.Lq=b}It.Object.defineProperties(zo.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"||(Au(this),this.da.Or=a,this.N(),this.g("textAlign",y,a))}},flip:{get:function(){return this.da!==null?this.da.Xf:Sn},set:function(a){var y=this.flip;y!==a&&(Au(this),this.da.Xf=a,this.N(),this.g("flip",y,a))}},verticalAlignment:{get:function(){return this.da!==null?this.da.Yr:Oo},set:function(a){var y=this.verticalAlignment;y.D(a)||(a=a.J(),Au(this),this.da.Yr=a,ws(this),this.g("verticalAlignment",y,a))}},naturalBounds:{get:function(){if(!this.dc.w()){var a=Je.alloc();bv(this,this.ec,999999,a);var y=a.width;Je.free(a),a=C1(this,y);var x=this.desiredSize;isNaN(x.width)||(y=x.width),isNaN(x.height)||(a=x.height),Un(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&&(Au(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&&(Au(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&&Oc(a,"TextBlock.stroke"),a instanceof xo&&a.freeze(),this.xc=a,this.N(),this.g("stroke",y,a))}},lineCount:{get:function(){return this.Gc}},lineHeight:{get:function(){return $g(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&&(Au(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&&(Au(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 zu),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 zu),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 zu),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 zu),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 zu),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&&(Au(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&&(Au(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&&(Au(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&&(Au(this),this.da.Er=a,this.v(),this.g("spacingBelow",y,a))}},formatting:{get:function(){return this.da!==null?this.da.gq:ep},set:function(a){var y=this.formatting;y!==a&&(Au(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&&Tn(a,"> 0",zo,"maxLines"),Au(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 T0=null,O0=null,Dv=new yn(zo,"None",0),E1=new yn(zo,"WrapFit",1),kv=new yn(zo,"WrapDesiredSize",2),A1=new yn(zo,"WrapBreakAll",3),Bv=new yn(zo,"OverflowClip",0),I0=new yn(zo,"OverflowEllipsis",1),ep=new yn(zo,"FormatTrim",0),F1=new yn(zo,"FormatNone",0),Fx=/[ \u200b\u00ad]/,Nv=new Ri,M1=0,R0=new Ri,Tv=0,tp="...",L1="",Is=null,j0=!1;zo.className="TextBlock";function Ov(){this.nc=!1,this.Hd=null,this.Xf=Sn,this.gq=ep,this.Jq=1/0,this.$q=Bv,this.Er=this.Dr=0,this.Or="start",this.vj=this.Qr=this.Pr=null,this.Yr=Oo,this.$r=kv}Ov.prototype.copy=function(){var a=new Ov;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},zo.getEllipsis=function(){return tp},zo.setEllipsis=function(a){tp=a,R0=new Ri,Tv=0},zo.getBaseline=function(){return T0},zo.setBaseline=function(a){T0=a},zo.getUnderline=function(){return O0},zo.setUnderline=function(a){O0=a},zo.isValidFont=function(a){if(j0||(Is=ua?new Il(null).context:null,j0=!0),Is===null)return!0;var y=Is.font;if(a===y||a==="10px sans-serif")return!0;Is.font="10px sans-serif",Is.font=a;var x=Is.font;if(x!=="10px sans-serif")return Is.font=y,!0;Is.font="19px serif";var E=Is.font;return Is.font=a,x=Is.font,Is.font=y,x!==E},zo.FormatNone=F1,zo.FormatTrim=ep,zo.None=Dv,zo.OverflowClip=Bv,zo.OverflowEllipsis=I0,zo.WrapBreakAll=A1,zo.WrapDesiredSize=kv,zo.WrapFit=E1;function zu(){this.Tk=1,this.u=0,this.j=1,this.o=this.F=null}zu.prototype.copy=function(){var a=new zu;return a.Tk=this.Tk,a.u=this.u,a.j=this.j,a.F=this.F,a.o=this.o,a},zu.className="GradElementSettings";function Rs(a,y){At.call(this),this.Eg=null,this.qo="",this.Xg=or,this.Nk=bn,this.Zg=this.Hd=null,this.Mk=Ln,this.Xf=Sn,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 Of;Vt(Rs,At),Rs.prototype.cloneProtected=function(a){At.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},Rs.prototype.qb=function(a){a===Sn||a===Bi||a===Hr?this.imageStretch=a:At.prototype.qb.call(this,a)},Rs.prototype.toString=function(){return"Picture("+this.source+")#"+_r(this)};function If(a){a===void 0&&(a=""),a!==""?Of[a]&&(delete Of[a],z0--):(Of=new Ri,z0=0)}function b1(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")||"",ee=b.Og.I(z);if(ee!==null)for(var re=ee.length,oe=0;oe<re;oe++)z=ee[oe],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()||(La(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")||"",ee=b.Og.I(z);if(ee!==null){b=ee.length,z=mi();for(var re=0;re<b;re++)z.push(ee[re]);if(y.hn)for(re=0;re<b;re++)ee=z[re],ee.Hd!==null&&ee.Hd(ee,x);sn(z)}}y.Bg.clear()}},y.addEventListener("load",y.Fq),y.addEventListener("error",y.Yp),y.qy=!0)}Rs.prototype.hA=function(){if(this.source!==""){If(this.source);var a=this.source;this.source="",this.source=a}},Rs.prototype.redraw=function(){this.N(),this.Uc=!0},Rs.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 Xd)){var b=a instanceof qs;E=this.naturalBounds;var z=0,ee=0,re=this.qn,oe=re?+x.width:x.naturalWidth;if(re=re?+x.height:x.naturalHeight,oe===void 0&&x.videoWidth&&(oe=x.videoWidth),re===void 0&&x.videoHeight&&(re=x.videoHeight),oe=oe||E.width,re=re||E.height,oe!==0&&re!==0){var le=oe,he=re;this.sourceRect.w()&&(z=this.Xg.x,ee=this.Xg.y,oe=this.Xg.width,re=this.Xg.height);var ge=oe,Se=re,Pe=this.Nk,Ae=this.Mk;switch(Pe){case Sn:if(this.sourceRect.w())break;ge>=E.width&&(z=z+Ae.offsetX+(ge*Ae.x-E.width*Ae.x)),Se>=E.height&&(ee=ee+Ae.offsetY+(Se*Ae.y-E.height*Ae.y)),oe=Math.min(E.width,ge),re=Math.min(E.height,Se);break;case bn:ge=E.width,Se=E.height;break;case Bi:case Hr:Pe===Bi?(Pe=Math.min(E.height/Se,E.width/ge),ge*=Pe,Se*=Pe):Pe===Hr&&(Pe=Math.max(E.height/Se,E.width/ge),ge*=Pe,Se*=Pe,ge>=E.width&&(z=(z+Ae.offsetX+(ge*Ae.x-E.width*Ae.x)/ge)*oe),Se>=E.height&&(ee=(ee+Ae.offsetY+(Se*Ae.y-E.height*Ae.y)/Se)*re),oe*=1/(ge/E.width),re*=1/(Se/E.height),ge=E.width,Se=E.height)}Pe=this.Df()*y.scale;var Be=ge*Pe*Se*Pe,Qe=oe*re/Be,Ke=x.__goCache;Pe=null;var lt=Mx;if(!b){if(x.sq&&Ke!==void 0&&4<Be&&Qe>lt*lt)for(Ke.gi===null&&(k1(Ke,4,le,he,x),k1(Ke,16,le,he,x)),b=Ke.gi,le=b.length,he=0;he<le&&b[he].ratio*b[he].ratio<Qe;he++)Pe=b[he];if(!y.Xm){if(this.vl===null)if(this.Eg===null)this.vl=!1;else{b=new Il(null).context;try{b.drawImage(this.Eg,0,0)}catch(ct){this.en=!1}try{b.getImageData(0,0,1,1).data[3]&&(this.vl=!1),this.vl=!1}catch(ct){this.vl=!0}}if(this.vl)return}}switch(b=ge<E.width?Ae.offsetX+(E.width*Ae.x-ge*Ae.x):0,Ae=Se<E.height?Ae.offsetY+(E.height*Ae.y-Se*Ae.y):0,this.flip){case Ur:a.translate(Math.min(E.width,ge),0),a.scale(-1,1);break;case Nr:a.translate(0,Math.min(E.height,Se)),a.scale(1,-1);break;case Lo:a.translate(Math.min(E.width,ge),Math.min(E.height,Se)),a.scale(-1,-1)}if(a.yc(),y.Gf("pictureRatioOptimization")&&!y.$i&&Ke!==void 0&&Pe!==null&&Pe.ratio!==1){a.save(),y=Pe.ratio;try{a.drawImage(Pe.source,z/y,ee/y,Math.min(Pe.source.width,oe/y),Math.min(Pe.source.height,re/y),b,Ae,Math.min(E.width,ge),Math.min(E.height,Se)),a instanceof qs&&(this.bt=[z/y,ee/y,Math.min(Pe.source.width,oe/y),Math.min(Pe.source.height,re/y),b,Ae,Math.min(E.width,ge),Math.min(E.height,Se)])}catch(ct){this.en=!1}a.restore()}else try{a.drawImage(x,z,ee,oe,re,b,Ae,Math.min(E.width,ge),Math.min(E.height,Se)),a instanceof qs&&(this.bt=[z,ee,oe,re,b,Ae,Math.min(E.width,ge),Math.min(E.height,Se)])}catch(ct){this.en=!1}switch(this.flip){case Ur:a.scale(-1,1),a.translate(-Math.min(E.width,ge),0);break;case Nr:a.scale(1,-1),a.translate(0,-Math.min(E.height,Se));break;case Lo:a.scale(-1,-1),a.translate(-Math.min(E.width,ge),-Math.min(E.height,Se))}}}}},Rs.prototype.Wl=function(a,y,x,E){var b=this.desiredSize,z=Os(this,!0),ee=this.Eg,re=this.qn,oe=0,le=0;(re||!this.al&&ee&&ee.complete)&&(this.al=!0),ee===null?(isFinite(b.width)||(a=0),isFinite(b.height)||(y=0)):(oe=re?+ee.width:ee.naturalWidth,le=re?+ee.height:ee.naturalHeight),isFinite(b.width)||z===bn||z===zi?(isFinite(a)||(this.sourceRect.w()?a=this.sourceRect.width:ee!==null&&(a=oe)),x=0):ee!==null&&this.al!==!1&&(a=this.sourceRect.w()?this.sourceRect.width:oe),isFinite(b.height)||z===bn||z===Qi?(isFinite(y)||(this.sourceRect.w()?y=this.sourceRect.height:ee!==null&&(y=le)),E=0):ee!==null&&this.al!==!1&&(y=this.sourceRect.w()?this.sourceRect.height:le),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),ee===null||ee.complete||(isFinite(a)||(a=0),isFinite(y)||(y=0)),Un(this.dc,a,y),this.Ge(0,0,a,y)},Rs.prototype.eh=function(a,y,x,E){ms(this,a,y,x,E)},It.Object.defineProperties(Rs.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||et("Picture.element must be an instance of Image, Canvas, or Video, not: "+a);var E=this.diagram;E!==null&&Tg(E,this),this.Eg=a,a!==null&&x&&a.Bg===void 0&&(a.Bg=new ln),E!==null&&x&&rd(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()||(La(this,!1),this.v())):x&&b1(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=Of;if(ua){var E=null;if(x[a]!==void 0)E=x[a];else if(a!==""){30<z0&&(If(),x=Of),E=br("img"),E.hn=!0,b1(this,E);var b=this.rl;b!==null&&(E.crossOrigin=b(this)),E.src=a,x[a]=E,z0++}this.element=E,E!==null&&E.__goCache===void 0&&(E.__goCache=new D1),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}}}),Rs.prototype.redraw=Rs.prototype.redraw,Rs.prototype.reloadSource=Rs.prototype.hA;var z0=0,Mx=4;Rs.className="Picture",Of=new Ri,Rs.clearCache=If;function D1(){this.gi=null}function k1(a,y,x,E,b){a.gi===null&&(a.gi=[]);var z=new Il(null),ee=z.context,re=1/y;z.width=x/y,z.height=E/y,z.width!==0&&z.height!==0&&(y=new B1(z.Oa,y),x=1,0<a.gi.length&&(x=a.gi[a.gi.length-1],b=x.source,x=x.ratio),ee.setTransform(re*x,0,0,re*x,0,0),ee.yc(),ee.drawImage(b,0,0),a.gi.push(y))}D1.className="PictureCacheArray";function B1(a,y){this.source=a,this.ratio=y}B1.className="PictureCacheInstance";function Rf(){this.os=new Pn,this.mc=null}Rf.prototype.reset=function(a){a!==null?(a.ka(),this.os=a,a.figures.clear()):this.os=new Pn,this.mc=null};function jf(a,y,x,E,b,z){a.mc=new sa,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 Lx(a){var y=a.mc.segments.length;0<y&&a.mc.segments.M(y-1).close()}Rf.prototype.moveTo=function(a,y,x){x===void 0&&(x=!1);var E=new Wr(la);E.endX=a,E.endY=y,x&&E.close(),this.mc.segments.add(E)},Rf.prototype.lineTo=function(a,y,x){x===void 0&&(x=!1);var E=new Wr(yo);E.endX=a,E.endY=y,x&&E.close(),this.mc.segments.add(E)};function Lh(a,y,x,E,b,z,ee){var re;re===void 0&&(re=!1);var oe=new Wr(ma);oe.point1X=y,oe.point1Y=x,oe.point2X=E,oe.point2Y=b,oe.endX=z,oe.endY=ee,re&&oe.close(),a.mc.segments.add(oe)}function Z0(a,y,x,E,b){var z;z===void 0&&(z=!1);var ee=new Wr(ls);ee.point1X=y,ee.point1Y=x,ee.endX=E,ee.endY=b,z&&ee.close(),a.mc.segments.add(ee)}Rf.prototype.arcTo=function(a,y,x,E,b,z,ee){z===void 0&&(z=0),ee===void 0&&(ee=!1);var re=new Wr(aa);re.startAngle=a,re.sweepAngle=y,re.centerX=x,re.centerY=E,re.radiusX=b,re.radiusY=z!==0?z:b,ee&&re.close(),this.mc.segments.add(re)};function bx(a,y,x,E,b,z,ee,re){var oe;oe===void 0&&(oe=!1),y=new Wr(us,ee,re,y,x,E,b,z),oe&&y.close(),a.mc.segments.add(y)}function N1(a){var y=W0;return y!==null?(W0=null,y.reset(a),y):(y=new Rf,y.reset(a),y)}var W0=null;Rf.className="StreamGeometryContext";function gs(a,y){var x=a.toLowerCase(),E=St.Ze;E[a]=y,E[x]=a}gs("Rectangle",function(a,y,x){a="r"+y+","+x;var E=St.Mf[a];return E!==void 0||(E=new Pn(Pn.u),E.endX=y,E.endY=x,St.Nf<St.vm&&(St.Mf[a]=E,St.Nf++)),E}),gs("Square",function(a,y,x){a="s"+y+","+x;var E=St.Mf[a];return E!==void 0||(E=new Pn(Pn.u),E.endX=y,E.endY=x,E.defaultStretch=Bi,St.Nf<St.vm&&(St.Mf[a]=E,St.Nf++)),E}),gs("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=St.Mf[E];if(b!==void 0)return b;var z=a*St.wg;return b=new Pn().add(new sa(a,0,!0).add(new Wr(yo,y-a,0)).add(new Wr(ma,y,a,y-z,0,y,z)).add(new Wr(yo,y,x-a)).add(new Wr(ma,y-a,x,y,x-z,y-z,x)).add(new Wr(yo,a,x)).add(new Wr(ma,0,x-a,z,x,0,x-z)).add(new Wr(yo,0,a)).add(new Wr(ma,a,0,0,z,z,0).close())),1<z&&(b.spot1=new En(0,0,z,z),b.spot2=new En(1,1,-z,-z)),St.Nf<St.vm&&(St.Mf[E]=b,St.Nf++),b}),gs("Border","RoundedRectangle"),gs("Ellipse",function(a,y,x){a="e"+y+","+x;var E=St.Mf[a];return E!==void 0||(E=new Pn(Pn.F),E.endX=y,E.endY=x,E.spot1=Do,E.spot2=Aa,St.Nf<St.vm&&(St.Mf[a]=E,St.Nf++)),E}),gs("Circle",function(a,y,x){a="c"+y+","+x;var E=St.Mf[a];return E!==void 0||(E=new Pn(Pn.F),E.endX=y,E.endY=x,E.spot1=Do,E.spot2=Aa,E.defaultStretch=Bi,St.Nf<St.vm&&(St.Mf[a]=E,St.Nf++)),E}),gs("TriangleRight",function(a,y,x){return new Pn().add(new sa(0,0).add(new Wr(yo,y,.5*x)).add(new Wr(yo,0,x).close())).pm(0,.25,.5,.75)}),gs("TriangleDown",function(a,y,x){return new Pn().add(new sa(0,0).add(new Wr(yo,y,0)).add(new Wr(yo,.5*y,x).close())).pm(.25,0,.75,.5)}),gs("TriangleLeft",function(a,y,x){return new Pn().add(new sa(y,x).add(new Wr(yo,0,.5*x)).add(new Wr(yo,y,0).close())).pm(.5,.25,1,.75)}),gs("TriangleUp",function(a,y,x){return new Pn().add(new sa(y,x).add(new Wr(yo,0,x)).add(new Wr(yo,.5*y,0).close())).pm(.25,.5,.75,1)}),gs("Triangle","TriangleUp"),gs("Diamond",function(a,y,x){return new Pn().add(new sa(.5*y,0).add(new Wr(yo,0,.5*x)).add(new Wr(yo,.5*y,x)).add(new Wr(yo,y,.5*x).close())).pm(.25,.25,.75,.75)}),gs("LineH",function(a,y,x){return a=new Pn(Pn.j),a.startX=0,a.startY=x/2,a.endX=y,a.endY=x/2,a}),gs("LineV",function(a,y,x){return a=new Pn(Pn.j),a.startX=y/2,a.startY=0,a.endX=y/2,a.endY=x,a}),gs("None","Rectangle"),gs("BarH","Rectangle"),gs("BarV","Rectangle"),gs("MinusLine","LineH"),gs("PlusLine",function(a,y,x){return new Pn().add(new sa(0,x/2,!1).add(new Wr(yo,y,x/2)).add(new Wr(la,y/2,0)).add(new Wr(yo,y/2,x)))}),gs("XLine",function(a,y,x){return new Pn().add(new sa(0,x,!1).add(new Wr(yo,y,0)).add(new Wr(la,0,0)).add(new Wr(yo,y,x)))}),gs("LineRight",function(a,y,x){return new Pn().add(new sa(.25*y,0,!1).add(new Wr(yo,.75*y,.5*x)).add(new Wr(yo,.25*y,x)))}),gs("LineDown",function(a,y,x){return new Pn().add(new sa(0,.25*x,!1).add(new Wr(yo,.5*y,.75*x)).add(new Wr(yo,y,.25*x)))}),gs("LineLeft",function(a,y,x){return new Pn().add(new sa(.75*y,0,!1).add(new Wr(yo,.25*y,.5*x)).add(new Wr(yo,.75*y,x)))}),gs("LineUp",function(a,y,x){return new Pn().add(new sa(0,.75*x,!1).add(new Wr(yo,.5*y,.25*x)).add(new Wr(yo,y,.75*x)))}),St.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 Iv(){this.nc=!1,this.tr=this.Kp=this.zq=null,this.vr="",this.fr=this.oq=this.ur=null,this.hr="",this.gr=jn,this.ir=null,this.jr="",this.lr=Eo,this.Gq="",this.Hq=Ti,this.Pq=Si,this.Kq=$e,this.Up=null,this.Cq=127,this.zr=rn,this.yr="gray",this.Vg=4}Iv.prototype.copy=function(){var a=new Iv;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 Ki(a,y){a===void 0||a instanceof ka||typeof a=="string"?Rn.call(this,a):(Rn.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 je(NaN,NaN).freeze(),this.nf=null,this.Ao=NaN,this.vw=-1,this.py=new vt,this.Rh=null,this.ag=NaN,y&&Object.assign(this,y)}Vt(Ki,Rn),Ki.prototype.cloneProtected=function(a){Rn.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},Le=Ki.prototype,Le.Af=function(a){Rn.prototype.Af.call(this,a),a.oh(),a.Ug=null,a.nf=null,a.Rh=null},Le.toString=function(){var a=ki(this.constructor)+"#"+_r(this);return this.data!==null&&(a+="("+Cr(this.data)+")"),a};function js(a){a.P===null?a.P=new Iv:a.P.nc&&(a.P=a.P.copy())}Le.th=function(){Rn.prototype.th.call(this),this.P!==null&&(this.P.nc=!0)},Le.gk=function(a,y,x,E,b,z,ee){var re=this.diagram;re!==null&&(a===Jo&&y==="elements"?b instanceof Rn?Qd(b,function(oe){uy(re.partManager,oe),Hd(re,oe)}):rd(re,b):a===ha&&y==="elements"&&(b instanceof Rn?Qd(b,function(oe){hy(re.partManager,oe,re)}):Tg(re,b)),re.cb(a,y,x,E,b,z,ee))},Le.La=function(a){if(Rn.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 Rn&&Qd(b,function(z){z.data!==null&&z.La()})}for(y=this.adornments;y.next();)y.value.La(a)}},Ki.prototype.updateRelationshipsFromData=function(){var a;this.data!==null&&((a=this.diagram)===null||a===void 0||a.partManager.updateRelationshipsFromData(this))},Ki.prototype.Pj=function(a){var y=this.Qf;return y===null?null:y.I(a)},Ki.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 Ut),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)))}}},Ki.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)}},Ki.prototype.Ej=function(){var a=this.Qf;if(a!==null){var y=mi();for(a=a.iterator;a.next();)y.push(a.key);a=y.length;for(var x=0;x<a;x++)this.Jf(y[x]);sn(y)}},Ki.prototype.updateAdornments=function(){var a=this.diagram;if(a!==null){for(var y=this.adornments;y.next();){var x=y.value;x.v(),x.placeholder&&x.placeholder.v()}e:{if(this.isSelected&&this.selectionAdorned&&(y=this.selectionObject,y!==null&&this.actualBounds.w()&&this.isVisible()&&y.Ed()&&y.actualBounds.w())){if(x=this.Pj("Selection"),x===null){if(x=this.selectionAdornmentTemplate,x===null&&(x=this.ph()?a.linkSelectionAdornmentTemplate:this instanceof Pr?a.groupSelectionAdornmentTemplate:a.nodeSelectionAdornmentTemplate),!(x instanceof no))break e;Rl(x),x=x.copy(),x!==null&&(this.ph()&&this.selectionObject===this.path&&(x.type=Rn.Link),x.adornedObject=y)}if(x!==null){x.type===Rn.Link&&x.v(),this.bh("Selection",x);break e}}this.Jf("Selection")}for(Dx(this,a),y=this.adornments;y.next();)y.value.La()}},Ki.prototype.Wb=function(){var a=this.diagram;a!==null&&(a.vd=!0,!(this.G&16384)&&(this.G|=16384))};function Rv(a){a.G&16384&&(a.updateAdornments(),a.G&=-16385)}function Dx(a,y){y.toolManager.mouseDownTools.each(function(x){x.isEnabled&&x.updateAdornments(a)}),y.toolManager.updateAdornments(a)}function H0(a){if(ld(a)===!1){zv(a,!0),a.Uk();var y=a.diagram;y!==null&&(y.De.add(a),y.$b())}}function T1(a){if(a.G|=2097152,ld(a)!==!1){var y=a.position,x=a.location;x.w()&&y.w()||R1(a,y,x),x=a.Ib;var E=vt.alloc().assign(x);x.ka(),x.x=y.x,x.y=y.y,x.freeze(),a.Xl(E,x),vt.free(E),zv(a,!1)}}Ki.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)},Ki.prototype.no=function(a,y,x,E,b){if(this.Ca!==1&&a.scale(this.Ca),this.Kb!==0){var z=Ln;this.locationSpot.sb()&&(z=this.locationSpot);var ee=je.alloc();if(this.locationObject!==this)for(y=this.locationObject,x=y.naturalBounds,ee.yi(x.x,x.y,x.width,x.height,z),y.Lb!==null&&y.Lb.Ga(ee),ee.offset(-y.measuredBounds.x,-y.measuredBounds.y),z=y.panel;z!==null&&z!==this;)z.Lb!==null&&z.Lb.Ga(ee),ee.offset(-z.measuredBounds.x,-z.measuredBounds.y),z=z.panel;else ee.yi(y,x,E,b,z);a.rotate(this.Kb,ee.x,ee.y),je.free(ee)}},Ki.prototype.move=function(a,y){y===!0?this.location=a:this.position=a},Ki.prototype.moveTo=function(a,y,x){a=je.allocAt(a,y),this.move(a,x),je.free(a)},Ki.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())},Ki.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())},Ki.prototype.fb=function(a){if(this.name===a)return this;var y=this.Rh;if(y===null&&(this.Rh=y=new Ut),y.I(a)!==null)return y.I(a);var x=Rn.prototype.fb.call(this,a);return x!==null?(y.set(a,x),x):(y.set(a,null),null)};function bh(a,y,x,E){E===void 0&&(E=new je),x=x.Mc()?Ln: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}Ki.prototype.mi=function(a){return a===void 0&&(a=new vt),a.assign(this.actualBounds)},Ki.prototype.Va=function(){this.measure(1/0,1/0),this.arrange()};function O1(a){var y=je.alloc(),x=a.locationObject,E=x.naturalBounds,b=x instanceof Lr?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 $d(a,y){var x=a.py;isNaN(a.ag)&&(a.ag=c1(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 ee=a.shadowBlur;return a=a.shadowOffset,z+=ee,y+=ee,E-=ee/2,b-=ee/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}Ki.prototype.arrange=function(){if(Cs(this)===!1)T1(this);else{Ou(this,!1);var a=this.Ib,y=vt.alloc();y.assign(a);var x=ud(this);this.eh(0,0,this.uc.width,this.uc.height);var E=this.position;R1(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()||St.B(y.width,a.width)&&St.B(y.height,a.height)||0<=this.vw&&this.C(16),vt.free(y),zv(this,!1)}},Le=Ki.prototype,Le.Xl=function(a,y){var x=this.diagram;if(x!==null){var E=!1;if(x.Zi===!1&&a.w()){var b=vt.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),vt.free(b)}!(this.G&65536)&&a.D(y)||Z1(this,E,x),x.N(),!a.w()&&!y.w()||zn(a,y)||(this instanceof ui&&!x.undoManager.isUndoingRedoing&&this.Bd(),this.oh())}},Le.zv=function(a,y,x){if(this.ph()||!a.w())return!1;var E=this.diagram;return E!==null&&I1(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 je(E.x+(a.x-y),E.y+(a.y-x)),this.g("location",E,this.ke.copy())),ld(this)===!1&&Cs(this)===!1&&(H0(this),T1(this)),!0};function I1(a,y,x,E,b){y===null||a instanceof no||(y=y.animationManager,y.zb&&uf(y,a,new je(E,b),x))}Le.mm=function(a,y,x){var E=this.ke,b=this.pa;if(x){if(E.x===a&&E.y===y)return;ld(this)||Cs(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)}H0(this)},Le.Av=function(){this.G&=-2097153,H0(this)};function R1(a,y,x){var E=O1(a),b=a.diagram,z=x.w(),ee=y.w();z&&ee?a.G&2097152?j1(a,y,x,b,E):z1(a,y,x,b,E):z?j1(a,y,x,b,E):ee&&z1(a,y,x,b,E),a.G|=2097152,je.free(E),a.Uk()}function j1(a,y,x,E,b){var z=y.x,ee=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 no||uf(x,a,new je(z,ee),y),E||y.x===z&&y.y===ee||a.g("position",new je(z,ee),y.copy()))}function z1(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 Z1(a,y,x){Zv(a,!1),a instanceof ui&&wh(x,a),a.layer.isTemporary||y||x.Ya(),y=a.Ib;var E=x.viewportBounds;E.w()?ud(a)?(fi(y,E)||a.Fd(!1),a.updateAdornments()):a.isVisible()&&y.Yc(E)?(a.Fd(!0),a.updateAdornments()):a.Wb():x.vd=!0}Le.si=function(){return!0},Le.Zc=function(){return!0},Le.ph=function(){return!1},Le.Dd=function(){return!0};function jv(a,y,x,E){y.constructor===a.constructor||G1||(G1=!0,Yn('Should not change the class of the Part when changing category from "'+x+'" to "'+E+'"'),Yn(" Old class: "+ki(a.constructor)+", new class: "+ki(y.constructor)+", part: "+a.toString())),a.Ej();var b=a.data;x=a.layerName;var z=a.isSelected,ee=a.isHighlighted,re=!0,oe=!0,le=!1;a instanceof ui&&(re=a.isTreeLeaf,oe=a.isTreeExpanded,le=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=ee?a.G|524288:a.G&-524289,a instanceof ui&&(a.U=re?a.U|4:a.U&-5,a.U=oe?a.U|1:a.U&-2,a.U=le?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)}Ki.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},Ki.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},Ki.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},Ki.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},Ki.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},Ki.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},Ki.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},Ki.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},Ki.prototype.canSelect=function(){if(!this.selectable)return!1;var a=this.layer;return a===null?!0:a.allowSelect?(a=a.diagram,a===null?!0:!!a.allowSelect):!1};function ld(a){return(a.G&32768)!==0}function zv(a,y){a.G=y?a.G|32768:a.G&-32769}function Zv(a,y){a.G=y?a.G|65536:a.G&-65537}function ud(a){return(a.G&131072)!==0}Le=Ki.prototype,Le.Fd=function(a){this.G=a?this.G|131072:this.G&-131073};function G0(a,y){a.G=y?a.G|1048576:a.G&-1048577}Le.oh=function(){var a=this.containingGroup;a!==null&&(a.v(),a.placeholder!==null&&a.placeholder.v(),a.Bd())},Le.N=function(){var a=this.diagram;a!==null&&!Cs(this)&&!ld(this)&&this.isVisible()&&this.Ib.w()&&a.N($d(this,this.Ib))},Le.v=function(){Rn.prototype.v.call(this);var a=this.diagram;a!==null&&(a.De.add(this),this instanceof ui&&this.labeledLink!==null&&ws(this.labeledLink),a.$b(!0))},Le.Vo=function(a){a||(a=this.Ah,a!==null&&Kv(a,this))},Le.Wo=function(a){a||(a=this.Ah,a!==null&&_v(a,this))},Le.Lj=function(){var a=this.data;if(a!==null){var y=this.diagram;y!==null&&(y=y.model,y!==null&&y.cm(a))}},Le.oz=function(){return Wv(this,this)};function Wv(a,y){var x=y.containingGroup;return x!==null?1+Wv(a,x):y instanceof ui&&(y=y.labeledLink,y!==null)?Wv(a,y):0}Le.sz=function(){return W1(this,this)};function W1(a,y){var x=y.containingGroup;return x!==null||y instanceof ui&&(x=y.labeledLink,x!==null)?W1(a,x):y}Le.Td=function(a){return a instanceof Pr?Hv(this,this,a):!1};function Hv(a,y,x){if(y===x||x===null)return!1;var E=y.containingGroup;return E===null||E!==x&&!Hv(a,E,x)?y instanceof ui&&(y=y.labeledLink,y!==null)?Hv(a,y,x):!1:!0}Le.px=function(a){if(a===null)return null;if(this===a)return this.containingGroup;for(var y=this;y!==null;){if(y instanceof Pr&&G0(y,!0),y instanceof ui){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 ui&&(a=y.labeledLink,a!==null&&(y=a)),y=y.containingGroup}for(y=this;y!==null;)y instanceof Pr&&G0(y,!1),y instanceof ui&&(a=y.labeledLink,a!==null&&(y=a)),y=y.containingGroup;return x},Ki.prototype.canLayout=function(){if(!this.isLayoutPositioned||!this.isVisible())return!1;var a=this.layer;return!(a!==null&&a.isTemporary||this instanceof ui&&this.isLinkLabel)},Ki.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 ui&&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 H1(a){return a.isVisible()?(a=a.layer,!(a!==null&&a.isTemporary)):!1}function hd(a,y,x,E,b,z){if(z===void 0&&(z=null),!(a.contains(y)||z!==null&&!z(y)||y instanceof no)){if(a.add(y),y instanceof ui){if(x&&y instanceof Pr)for(var ee=y.memberParts;ee.next();)hd(a,ee.value,x,E,b,z);if(b!==!1)for(ee=y.linksConnected;ee.next();){var re=ee.value;if(!a.contains(re)){var oe=re.fromNode,le=re.toNode;oe=oe===null||a.contains(oe),le=le===null||a.contains(le),(b?oe&&le:oe||le)&&hd(a,re,x,E,b,z)}}if(1<E)for(y=y.Ou();y.next();)hd(a,y.value,x,E-1,b,z)}else if(y instanceof Kn)for(y=y.labelNodes;y.next();)hd(a,y.value,x,E,b,z)}}It.Object.defineProperties(Ki.prototype,{key:{get:function(){var a=this.diagram;if(a!==null)return a.model.wa(this.data)}},adornments:{get:function(){return this.Qf===null?Fr: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(ha,"parts",y,this,null,E,!0),E=a.oi(99999999,this,!0),y.visible!==a.visible&&this.Zb(a.visible),0<=E&&x.cb(Jo,"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&&(js(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&&cf(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 no?this.type!==Rn.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:Si},set:function(a){var y=this.minLocation;y.D(a)||(a=a.J(),js(this),this.P.Pq=a,this.g("minLocation",y,a))}},maxLocation:{get:function(){return this.P!==null?this.P.Kq:$e},set:function(a){var y=this.maxLocation;y.D(a)||(a=a.J(),js(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&&(js(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:Ti},set:function(a){var y=this.locationSpot;y.D(a)||(a=a.J(),js(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,Cs(this)===!1&&(H0(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)),I1(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 no)){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 no?this instanceof no&&(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&&(Rl(x),x=x.copy(),x!==null&&jv(this,x,y,a))):(z!==null&&z.jm(E,a),x=gS(x.partManager,E,a),x!==null&&(Rl(x),x=x.copy(),x===null||x instanceof Kn||(E=this.location.copy(),jv(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){jv(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&&(js(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&&(js(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&&(js(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 Kn?(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&&(js(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&&(js(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&&(js(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:jn},set:function(a){var y=this.resizeCellSize;y.D(a)||(a=a.J(),js(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&&(js(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&&(js(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:Eo},set:function(a){var y=this.rotationSpot;y.D(a)||(a=a.J(),js(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&&et("Cannot make a Group a member of itself: "+this.toString()),et("Cannot make a Group indirectly contain itself: "+this.toString()+" already contains "+a.toString())),this.C(2);var x=this.diagram;if(y!==null?_v(y,this):this instanceof Pr&&x!==null&&x.ai.remove(this),this.Ah=a,a!==null?Kv(a,this):this instanceof Pr&&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 Pr){for(x=new ln,hd(x,this,!0,0,!0),x=x.iterator;x.next();)if(E=x.value,E instanceof ui)for(E=E.linksConnected;E.next();)zf(E.value)}if(this instanceof ui){for(x=this.linksConnected;x.next();)zf(x.value);x=this.labeledLink,x!==null&&zf(x)}this.g("containingGroup",y,a),a!==null&&(y=a.layer,y!==null&&cf(y,-1,a))}}else et("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&&(js(this),this.P.Kp=a,this.g("containingGroupChanged",y,a))}},isTopLevel:{get:function(){return!(this.containingGroup!==null||this instanceof ui&&this.labeledLink!==null)}},layoutConditions:{get:function(){return this.P!==null?this.P.Cq:127},set:function(a){var y=this.layoutConditions;y!==a&&(js(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&&(js(this),this.P.Up=a,this.g("dragComputation",y,a))}},shadowOffset:{get:function(){return this.P!==null?this.P.zr:rn},set:function(a){var y=this.shadowOffset;y.D(a)||(a=a.J(),js(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&&(js(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&&(js(this),this.P.Vg=a,this.N(),this.g("shadowBlur",y,a))}}}),Ki.prototype.invalidateLayout=Ki.prototype.C,Ki.prototype.findCommonContainingGroup=Ki.prototype.px,Ki.prototype.isMemberOf=Ki.prototype.Td,Ki.prototype.findTopLevelPart=Ki.prototype.sz,Ki.prototype.findSubGraphLevel=Ki.prototype.oz,Ki.prototype.ensureBounds=Ki.prototype.Va,Ki.prototype.getDocumentBounds=Ki.prototype.mi,Ki.prototype.findObject=Ki.prototype.fb,Ki.prototype.moveTo=Ki.prototype.moveTo,Ki.prototype.invalidateAdornments=Ki.prototype.Wb,Ki.prototype.clearAdornments=Ki.prototype.Ej,Ki.prototype.removeAdornment=Ki.prototype.Jf,Ki.prototype.addAdornment=Ki.prototype.bh,Ki.prototype.findAdornment=Ki.prototype.Pj,Ki.prototype.updateTargetBindings=Ki.prototype.La;var G1=!1;Ki.className="Part",Ki.LayoutNone=0,Ki.LayoutAdded=1,Ki.LayoutRemoved=2,Ki.LayoutShown=4,Ki.LayoutHidden=8,Ki.LayoutNodeSized=16,Ki.LayoutGroupLayout=32,Ki.LayoutNodeReplaced=64,Ki.LayoutStandard=127,Ki.LayoutAll=16777215;function no(a,y){a===void 0||a instanceof ka||typeof a=="string"?Ki.call(this,a):(Ki.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)}Vt(no,Ki),no.prototype.toString=function(){var a=this.adornedPart;return"Adornment("+this.category+")"+(a!==null?a.toString():"")},no.prototype.updateRelationshipsFromData=function(){},no.prototype.Ul=function(a){var y=this.adornedObject,x=y==null?void 0:y.part;if(x instanceof Kn&&y instanceof Lr){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 Lr&&(b.ua=a)}}},no.prototype.si=function(){var a=this.ue;return a===null?!0:(a=a.part,a===null||!Cs(a))},no.prototype.Zc=function(){return!1},no.prototype.gk=function(a,y,x,E,b,z,ee){if(a===Jo&&y==="elements"){if(b instanceof As)this.$a===null&&(this.$a=b);else if(b instanceof Rn){var re=b.Nl(function(oe){return oe instanceof As});re instanceof As&&this.$a===null&&(this.$a=re)}}else a===ha&&y==="elements"&&this.$a!==null&&(E===this.$a?this.$a=null:E instanceof Rn&&this.$a.rg(E)&&(this.$a=null));Ki.prototype.gk.call(this,a,y,x,E,b,z,ee)},no.prototype.updateAdornments=function(){},no.prototype.Lj=function(){},It.Object.defineProperties(no.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}}}),no.className="Adornment";function Gv(){this.nc=!1,this.Vr=this.gj=this.Eq=this.Dq=null,this.yp=sr,this.er=K0,this.Kr=this.ij=this.Nq=this.Mq=null}Gv.prototype.copy=function(){var a=new Gv;return a.Dq=this.Dq,a.Eq=this.Eq,a.gj=this.gj,a.Vr=this.Vr,a.yp=this.yp.J(),a.er=this.er,a.Mq=this.Mq,a.Nq=this.Nq,a.ij=this.ij,a.Kr=this.Kr,a};function ui(a,y){a===void 0||a instanceof ka||typeof a=="string"?Ki.call(this,a):(Ki.call(this),a&&(y=a)),this.U=13,this.Ba=null,this.jb=new Mn,this.wc=this.af=this.Yk=null,this.ci=!1,y&&Object.assign(this,y)}Vt(ui,Ki),ui.prototype.cloneProtected=function(a){Ki.prototype.cloneProtected.call(this,a),a.U=this.U,this.Ba!==null&&(a.Ba=this.Ba.nc?this.Ba:this.Ba.copy())},Le=ui.prototype,Le.Af=function(a){Ki.prototype.Af.call(this,a),a.Bd(),a.af=this.af,a.wc=null};function Dh(a){a.Ba===null?a.Ba=new Gv:a.Ba.nc&&(a.Ba=a.Ba.copy())}Le.th=function(){Ki.prototype.th.call(this),this.Ba!==null&&(this.Ba.nc=!0)};function V1(a,y){y!==null&&(a.af===null&&(a.af=new ln),a.af.add(y))}function Y1(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}Le.Lz=function(a,y,x){y==null&&(y=""),x==null&&(x=""),a=Y1(this,a,y,x),a!==null&&a.Sl()},Le.gk=function(a,y,x,E,b,z,ee){a===Jo&&y==="elements"?this.wc=null:a===ha&&y==="elements"&&(this.wc=null),Ki.prototype.gk.call(this,a,y,x,E,b,z,ee)},Le.Bd=function(a){for(var y=this.linksConnected;y.next();){var x=y.value;a!==void 0&&a.contains(x)||($s(x.fromPort),$s(x.toPort),x.bb())}};function K1(a,y){for(a=a.linksConnected;a.next();){var x=a.value;(x.fromPort===y||x.toPort===y)&&($s(x.fromPort),$s(x.toPort),x.bb())}}function $s(a){if(a!==null){var y=a.Zn;y!==null&&y.Sl(),a=a.part,y=a.containingGroup,y===null||a.isVisible()||$s(y.port)}}Le.si=function(){return!0},ui.prototype.getAvoidableRect=function(a){return a.set(this.actualBounds),a.Co(this.avoidableMargin),a},ui.prototype.findVisibleNode=function(){for(var a=this;a!==null&&!a.isVisible();)a=a.containingGroup;return a},ui.prototype.isVisible=function(){if(!Ki.prototype.isVisible.call(this))return!1;var a=!0,y=Eh,x=this.diagram;if(x!==null&&(a=x.isTreePathToChildren,y=x.treeCollapsePolicy),y===Eh){if(a=this.pg(),a!==null&&!a.isTreeExpanded)return!1}else if(y===Ma){if(a=a?this.Oo():this.Po(),0<a.count&&a.all(function(E){return!E.isTreeExpanded}))return!1}else if(y===Ef&&(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},ui.prototype.Zb=function(a){Ki.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)}},ui.prototype.qx=function(){var a=new ln,y=new ln;return _1(this,this,a,y),y.iterator};function _1(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(ee){ee.isTreeLink?(b?ee.fromNode===y:ee.toNode===y)&&_1(a,b?ee.toNode:ee.fromNode,x,E):E.add(ee)})}}ui.prototype.findLinksConnected=function(a){if(a===void 0&&(a=null),a===null)return this.jb.iterator;var y=new Rr(this.jb),x=this;return y.predicate=function(E){return E.fromNode===x&&E.fromPortId===a||E.toNode===x&&E.toPortId===a},y},Le=ui.prototype,Le.Mo=function(a){a===void 0&&(a=null);var y=new Rr(this.jb),x=this;return y.predicate=function(E){return E.fromNode!==x?!1:a===null?!0:E.fromPortId===a},y},Le.Sd=function(a){a===void 0&&(a=null);var y=new Rr(this.jb),x=this;return y.predicate=function(E){return E.toNode!==x?!1:a===null?!0:E.toPortId===a},y},Le.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 ln,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 ln,y.add(x),y.add(b)):x=b)}return y!==null?y.iterator:x!==null?new Dr(x):Fr},Le.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 ln,y.add(x),y.add(b)):x=b)}return y!==null?y.iterator:x!==null?new Dr(x):Fr},Le.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 ln,y.add(x),y.add(b)):x=b)}return y!==null?y.iterator:x!==null?new Dr(x):Fr},Le.jz=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null);var E=new Rr(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},Le.kz=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null);var E=new Rr(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 V0(a,y,x){$s(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,ee=a.diagram;ee!==null&&(z=ee.aa,ee.aa=!0),b(a,y,x),ee!==null&&(ee.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 Y0(a,y,x){$s(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 ee=!0;b!==null&&(ee=b.aa,b.aa=!0),z(a,y,x),b!==null&&(b.aa=ee)}}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)):np(y)))}function np(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}}}ui.prototype.updateRelationshipsFromData=function(){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)},Le=ui.prototype,Le.Vo=function(a){Ki.prototype.Vo.call(this,a),a||(np(this),a=this.Yk,a!==null&&nS(a,this))},Le.Wo=function(a){Ki.prototype.Wo.call(this,a),a||(a=this.Yk,a!==null&&a.wd!==null&&(a.wd.remove(this),a.v()))},Le.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,Ki.prototype.Lj.call(this)},Le.ns=function(a){if(this.wc===null){if(a===""&&this.Te===!1)return this;U1(this)}var y=this.wc.I(a);return y!==null||a!==""&&(y=this.wc.I(""),y!==null)?y:this};function U1(a){a.wc===null?a.wc=new Ut:a.wc.clear(),a.qm(a,function(y,x){X1(y,x)}),a.wc.count===0&&a.wc.add("",a)}function X1(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=mi()),x.push(E);if(x!==null){for(a=0;a<x.length;a++)y.remove(x[a]);sn(x)}}}Le.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},Le.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}},Le.gz=function(a){if(a===null)return null;if(this===a)return this;for(var y=this;y!==null;)G0(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;)G0(y,!1),y=y.pg();return x},Le.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},Le.pg=function(){var a=this.ci;if(a===null)return null;if(a instanceof ui)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},Le.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 ln;return a(this,y),y},Le.uz=function(){return Q1(this,this)};function Q1(a,y){return y=y.pg(),y===null?0:1+Q1(a,y)}Le.Qo=function(){var a=!0,y=this.diagram;y!==null&&(a=y.isTreePathToChildren),y=new Rr(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},Le.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 Mn,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 Mn,y.add(x),y.add(a)):x=a);return y!==null?y.iterator:x!==null?new Dr(x):Fr},Le.wz=function(a){a===void 0&&(a=1/0);var y=new ln;return hd(y,this,!1,a,!0),y},ui.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 ln;x.add(this),J1(this,x,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===Eh),y.Ue=!1}};function J1(a,y,x,E,b,z,ee){if(1<E)for(var re=x?a.Mo():a.Sd();re.next();){var oe=re.value;oe.isTreeLink&&(oe=oe.To(a),oe===null||oe===a||y.contains(oe)||(y.add(oe),J1(oe,y,x,E-1,b,z,ee)))}else q1(a,y,x,b,z,ee)}function q1(a,y,x,E,b,z){for(var ee=b===a?!0:a.isTreeExpanded,re=x?a.Mo():a.Sd(),oe={};re.next();){var le=re.value;if(le.isTreeLink&&(le=le.To(a),le!==null&&le!==a)){var he=y.contains(le);if(he||y.add(le),ee){var ge=x?le.Oo():le.Po();oe.uv=a,ge.all(function(Se){return function(Pe){return Pe===Se.uv||!Pe.isTreeExpanded}}(oe))&&E.Aj(le,b),le.oh(),le.Zb(!1)}le.isTreeExpanded&&(le.wasTreeExpanded=le.isTreeExpanded,he||q1(le,y,x,E,b,z))}oe={uv:oe.uv}}a.isTreeExpanded=!1}ui.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 ln;x.add(this),$1(this,x,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===Eh),y.Ue=!1}};function $1(a,y,x,E,b,z,ee){for(var re=z===a?!1:a.isTreeExpanded,oe=x?a.Mo():a.Sd(),le={};oe.next();){var he=oe.value;if(he.isTreeLink&&(re||he.fd||he.bb(),he=he.To(a),he!==null&&he!==a&&!y.contains(he))){if(y.add(he),!re){he.Zb(!0),he.oh();var ge=x?he.Oo():he.Po();le.vv=a,ge.all(function(Se){return function(Pe){return Pe===Se.vv||!Pe.isTreeExpanded}}(le))&&b.Cj(he,z)}(2<E||he.wasTreeExpanded)&&(he.wasTreeExpanded=!1,$1(he,y,x,E-1,b,z,ee))}le={vv:le.vv}}a.isTreeExpanded=!0}It.Object.defineProperties(ui.prototype,{portSpreading:{get:function(){return this.Ba!==null?this.Ba.er:K0},set:function(a){var y=this.portSpreading;y!==a&&(Dh(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&&wh(x,this),this.g("avoidable",y,a)}}},avoidableMargin:{get:function(){return this.Ba!==null?this.Ba.yp:sr},set:function(a){typeof a=="number"&&(a=new Pi(a));var y=this.avoidableMargin;if(!y.D(a)){a=a.J(),Dh(this),this.Ba.yp=a;var x=this.diagram;x!==null&&wh(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&&(Dh(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&&(Dh(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&&(Dh(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 ee=z.wa(E);ee!==void 0&&z.Qx(b,ee)}}this.containingGroup=null}this.Yk=a,a!==null&&(nS(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),ws(this),this.g("labeledLink",y,a)}}},port:{get:function(){return this.ns("")}},ports:{get:function(){return this.wc===null&&U1(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&&(Dh(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))}}}),ui.prototype.expandTree=ui.prototype.expandTree,ui.prototype.collapseTree=ui.prototype.collapseTree,ui.prototype.findTreeParts=ui.prototype.wz,ui.prototype.findTreeChildrenNodes=ui.prototype.Ou,ui.prototype.findTreeChildrenLinks=ui.prototype.Qo,ui.prototype.findTreeLevel=ui.prototype.uz,ui.prototype.findTreeParentChain=ui.prototype.vz,ui.prototype.findTreeParentNode=ui.prototype.pg,ui.prototype.findTreeParentLink=ui.prototype.kh,ui.prototype.findCommonTreeParent=ui.prototype.gz,ui.prototype.findTreeRoot=ui.prototype.xz,ui.prototype.isInTreeOf=ui.prototype.Nz,ui.prototype.findPort=ui.prototype.ns,ui.prototype.findLinksTo=ui.prototype.kz,ui.prototype.findLinksBetween=ui.prototype.jz,ui.prototype.findNodesInto=ui.prototype.Oo,ui.prototype.findNodesOutOf=ui.prototype.Po,ui.prototype.findNodesConnected=ui.prototype.Mu,ui.prototype.findLinksInto=ui.prototype.Sd,ui.prototype.findLinksOutOf=ui.prototype.Mo,ui.prototype.findExternalTreeLinksConnected=ui.prototype.qx,ui.prototype.invalidateConnectedLinks=ui.prototype.Bd,ui.prototype.invalidateLinkBundle=ui.prototype.Lz;var kx=new yn(ui,"SpreadingNone",10),K0=new yn(ui,"SpreadingEvenly",11),Yv=new yn(ui,"SpreadingPacked",12);ui.className="Node",ui.SpreadingNone=kx,ui.SpreadingEvenly=K0,ui.SpreadingPacked=Yv;function Pr(a,y){a===void 0||a instanceof ka||typeof a=="string"?ui.call(this,a):(ui.call(this),a&&(y=a)),this.U|=4608,this.Gn=new ln,this.$a=null,this.Sc=new $o,this.Sc.group=this,this.gl=new ln,this.tb=this.$p=null,y&&Object.assign(this,y)}Vt(Pr,ui),Pr.prototype.cloneProtected=function(a){ui.prototype.cloneProtected.call(this,a),this.U=this.U&-32769;var y=a.Nl(function(x){return x instanceof As});y instanceof As?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())},Le=Pr.prototype,Le.Af=function(a){ui.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 ui)x.Bd(y);else if(x instanceof Kn)for(x=x.labelNodes;x.next();)x.value.Bd(y)}},Le.gk=function(a,y,x,E,b,z,ee){if(a===Jo&&y==="elements"){if(b instanceof As)this.$a===null?this.$a=b:this.$a!==b&&et("Cannot insert a second Placeholder into the visual tree of a Group.");else if(b instanceof Rn){var re=b.Nl(function(oe){return oe instanceof As});re instanceof As&&(this.$a===null?this.$a=re:this.$a!==re&&et("Cannot insert a second Placeholder into the visual tree of a Group."))}}else a===ha&&y==="elements"&&this.$a!==null&&(E===this.$a?this.$a=null:E instanceof Rn&&this.$a.rg(E)&&(this.$a=null));ui.prototype.gk.call(this,a,y,x,E,b,z,ee)},Le.Xl=function(a,y){ui.prototype.Xl.call(this,a,y),this.isClipping&&this.type!==Rn.Spot&&this.isSubGraphExpanded&&(a=this.resizeObject,a instanceof Rn&&(a=a.Pb()),this.tb===null&&(this.tb=new vt),a.mi(this.tb),a instanceof Lr&&this.tb.Bc(-a.strokeWidth,-a.strokeWidth))},Le.eh=function(a,y,x,E){this.nf=this.$a,ui.prototype.eh.call(this,a,y,x,E)},Le.Va=function(){var a=this;a.isSubGraphExpanded&&this.memberParts.each(function(y){!a.computesBoundsIncludingLinks&&y instanceof Kn||y.Va()}),ui.prototype.Va.call(this)},Le.si=function(){if(!ui.prototype.si.call(this))return!1;for(var a=this.memberParts;a.next();){var y=a.value;if(y instanceof ui){if(y.isVisible()&&Cs(y))return!1}else if(y instanceof Kn&&y.isVisible()&&Cs(y)&&y.fromNode!==this&&y.toNode!==this)return!1}return!0};function Kv(a,y){if(a.Gn.add(y)){y instanceof Pr&&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 Kn&&!a.computesBoundsIncludingLinks||(y=a.$a,y===null&&(y=a),y.v())}function _v(a,y){if(a.Gn.remove(y)){y instanceof Pr&&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 Kn&&!a.computesBoundsIncludingLinks||(y=a.$a,y===null&&(y=a),y.v())}Le.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)}ui.prototype.Lj.call(this)},Pr.prototype.canAddMembers=function(a){var y=this.diagram;if(y===null)return!1;for(y=y.commandHandler,a=hn(a).iterator;a.next();)if(!y.isValidMember(this,a.value))return!1;return!0},Pr.prototype.addMembers=function(a,y){var x=this.diagram;if(x===null)return!1;x=x.commandHandler;var E=!0;for(a=hn(a).iterator;a.next();){var b=a.value;!y||x.isValidMember(this,b)?b.containingGroup=this:E=!1}return E},Pr.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))},Le=Pr.prototype,Le.Bd=function(a){var y=(this.U&65536)!==0;if(ui.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()?($s(x.fromPort),$s(x.toPort),x.bb()):(E=x.toNode,E!==null&&E!==this&&E.Td(this)&&!E.isVisible()&&($s(x.fromPort),$s(x.toPort),x.bb()))}}},Le.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 ln,E=y.iterator;E.next();){var b=E.value;if(b instanceof ui)for(b=b.linksConnected;b.next();){var z=b.value;y.contains(z)||x.add(z)}}return a&&(this.$p=x),x.iterator},Le.iz=function(){var a=this.Rj();a.add(this);for(var y=new ln,x=a.iterator;x.next();){var E=x.value;if(E instanceof ui)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},Le.hz=function(){function a(x,E){x!==null&&(E.add(x),a(x.containingGroup,E))}var y=new ln;return a(this,y),y},Le.Rj=function(){var a=new ln;return hd(a,this,!0,0,!0),a.remove(this),a},Le.Zb=function(a){ui.prototype.Zb.call(this,a);for(var y=this.memberParts;y.next();)y.value.Zb(a)},Pr.prototype.collapseSubGraph=function(){var a=this.diagram;if(a!==null&&!a.Ue){a.Ue=!0;var y=this.Rj();eS(this,y,a,this),a.Ue=!1}};function eS(a,y,x,E){for(var b=a.memberParts;b.next();){var z=b.value;if(z.Zb(!1),z instanceof Pr&&z.isSubGraphExpanded&&(z.wasSubGraphExpanded=z.isSubGraphExpanded,eS(z,y,x,E)),z instanceof ui)z.Bd(y),x.Aj(z,E);else if(z instanceof Kn)for(z=z.labelNodes;z.next();)z.value.Bd(y)}a.isSubGraphExpanded=!1}Pr.prototype.expandSubGraph=function(){var a=this.diagram;if(a!==null&&!a.Ue){a.Ue=!0;var y=this.Rj();tS(this,y,a,this),a.Ue=!1}};function tS(a,y,x,E){for(var b=a.memberParts;b.next();){var z=b.value;if(z.Zb(!0),z instanceof Pr&&z.wasSubGraphExpanded&&(z.wasSubGraphExpanded=!1,tS(z,y,x,E)),z instanceof ui)z.Bd(y),x.Cj(z,E);else if(z instanceof Kn)for(z=z.labelNodes;z.next();)z.value.Bd(y)}a.isSubGraphExpanded=!0}Pr.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=je.alloc(),ui.prototype.move.call(this,a,y),a=new ln,y=this.Rj().iterator;y.next();)b=y.value,b instanceof Kn&&(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 ui&&b.isLinkLabel)){var ee=b.position,re=b.location;ee.w()?(z.x=ee.x+E,z.y=ee.y+x,b.position=z):re.w()&&(z.x=re.x+E,z.y=re.y+x,b.location=z)}for(y.reset();y.next();)b=y.value,b instanceof Kn&&(b.suspendsRouting=a.contains(b),b.fd||b.fromNode!==this&&b.toNode!==this)&&(ee=b.position,z.x=ee.x+E,z.y=ee.y+x,z.w()?b.move(z):b.bb(),Xv(b)&&b.bb());je.free(z)}},It.Object.defineProperties(Pr.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&&et("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&&(Dh(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&&(Dh(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&&(Dh(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&&(Dh(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)}}}),Pr.prototype.expandSubGraph=Pr.prototype.expandSubGraph,Pr.prototype.collapseSubGraph=Pr.prototype.collapseSubGraph,Pr.prototype.findSubGraphParts=Pr.prototype.Rj,Pr.prototype.findContainingGroupChain=Pr.prototype.hz,Pr.prototype.findExternalNodesConnected=Pr.prototype.iz,Pr.prototype.findExternalLinksConnected=Pr.prototype.Lu,Pr.prototype.ensureBounds=Pr.prototype.Va,Pr.className="Group";function As(a){At.call(this),this.yb=lr,this.ko=new vt(NaN,NaN,NaN,NaN),a&&Object.assign(this,a)}Vt(As,At),As.prototype.cloneProtected=function(a){At.prototype.cloneProtected.call(this,a),a.yb=this.yb.J(),a.ko=this.ko.copy()},As.prototype.gh=function(a){if(this.background===null&&this.areaBackground===null)return!1;var y=this.naturalBounds;return ai(0,0,y.width,y.height,a.x,a.y)},As.prototype.Wl=function(){var a=this.part;if(a!==null&&(a instanceof Pr||a instanceof no)||et("Placeholder is not inside a Group or Adornment."),a instanceof Pr){var y=this.computeBorder(this.ko),x=this.minSize,E=this.dc;for(Un(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=je.alloc(),x.xi(y,a.locationSpot),x.D(a.location)||(a.location=x),je.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 ee=0;z instanceof Lr&&(ee=z.strokeWidth);var re=z.Df(),oe=z.naturalBounds,le=(oe.width+ee)*re;ee=(oe.height+ee)*re,a.type!==Rn.Link&&(re=z.ga(a.category==="Selection"?Ti:a.locationSpot,je.alloc()),a.location=re,je.free(re)),isNaN(le)||isNaN(ee)?(a=z.ga(Ti,je.alloc()),le=vt.allocAt(a.x,a.y,0,0),le.Ye(z.ga(An,a)),le.Ye(z.ga(Zi,a)),le.Ye(z.ga(hr,a)),Un(y,le.width+E||0,le.height+b||0),this.Ge(-x.left,-x.top,y.width,y.height),je.free(a),vt.free(le)):(Un(y,le+E||0,ee+b||0),this.Ge(-x.left,-x.top,y.width,y.height))}},As.prototype.eh=function(a,y,x,E){this.actualBounds.h(a,y,x,E)},As.prototype.computeBorder=function(a){var y=this.part,x=y.diagram,E=x===null||!x.animationManager.isAnimating;if(x!==null&&y instanceof Pr&&!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=vt.alloc(),b=this.computeMemberBounds(x);var z=this.yb;return y instanceof Pr&&!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)),vt.free(x),E&&y instanceof Pr&&y.computesBoundsIncludingLocation&&y.location.w()&&a.Ye(y.location),a},As.prototype.computeMemberBounds=function(a){if(!(this.part instanceof Pr))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,ee=y.memberParts;ee.next();){var re=ee.value;if(re.isVisible()){if(re instanceof Kn&&(!y.computesBoundsIncludingLinks||ll(re)||re.fromNode===y||re.toNode===y))continue;re=re.actualBounds,re.left<x&&(x=re.left),re.top<E&&(E=re.top),re.right>b&&(b=re.right),re.bottom>z&&(z=re.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},It.Object.defineProperties(As.prototype,{padding:{get:function(){return this.yb},set:function(a){typeof a=="number"&&(a=new Pi(a));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.g("padding",y,a),this.v())}}}),As.className="Placeholder";function Kn(a){Ki.call(this,Rn.Link),this.Qa=8,this.ef=null,this.ff="",this.uf=this.gn=null,this.vf="",this.uo=null,this.qk=Fs,this.Om=0,this.Qm=Fs,this.Rm=NaN,this.qj=qv,this.po=.5,this.wd=null,this.Nb=new Mn().freeze(),this.Tg=this.Mg=null,this.ml=new vt,this.ua=new Pn,this.u=this.o=this.Sf=this.Wf=null,this.su=new je,this.cq=this.Mw=this.Lw=null,this.vt=NaN,this.ba=null,this.j=[],a&&Object.assign(this,a)}Vt(Kn,Ki),Kn.prototype.cloneProtected=function(a){Ki.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())},Le=Kn.prototype,Le.Af=function(a){Ki.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&&$s(y),a=a.toPort,a!==null&&$s(a)},Le.qb=function(a){a.classType===Kn?(a.value&2)===2?this.routing=a:a===hl||a===Bh||a===Wf?this.curve=a:a===op||a===q0||a===$0?this.adjusting=a:a!==qv&&a!==Fs&&et("Unknown Link enum value for a Link property: "+a):Ki.prototype.qb.call(this,a)},Le.Xc=function(){this.ba===null&&(this.ba=new Yg)},Le.si=function(){var a=this.fromNode;if(a!==null){var y=a.findVisibleNode();if(y!==null&&(a=y),Cs(a)||ld(a))return!1}return a=this.toNode,!(a!==null&&(y=a.findVisibleNode(),y!==null&&(a=y),Cs(a)||ld(a)))},Le.zv=function(){return!1},Le.Av=function(){},Le.Zc=function(){return!1},Kn.prototype.computeAngle=function(a,y,x){return Kn.computeAngle(y,x)},Kn.computeAngle=function(a,y){switch(a){default:case Fs:a=0;break;case ap:a=y;break;case sp:a=y+90;break;case lp:a=y-90;break;case $v:a=y+180;break;case em:a=St.bp(y),90<a&&270>a&&(a-=180);break;case up:a=St.bp(y+90),90<a&&270>a&&(a-=180);break;case hp:a=St.bp(y-90),90<a&&270>a&&(a-=180);break;case tm:if(a=St.bp(y),45<a&&135>a||225<a&&315>a)return 0;90<a&&270>a&&(a-=180)}return St.bp(a)};function zf(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&&_v(x,a),a.Ah=y,y!==null&&Kv(y,a);var b=a.containingGroupChanged;if(b!==null){var z=!0,ee=a.diagram;ee!==null&&(z=ee.aa,ee.aa=!0),b(a,x,y),ee!==null&&(ee.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}Le=Kn.prototype,Le.oh=function(){var a=this.containingGroup;a!==null&&this.fromNode!==a&&this.toNode!==a&&a.computesBoundsIncludingLinks&&Ki.prototype.oh.call(this)},Le.To=function(a){var y=this.fromNode;return a===y?this.toNode:y},Le.Cz=function(a){var y=this.fromPort;return a===y?this.toPort:y};function nS(a,y){a.wd===null&&(a.wd=new ln),a.wd.add(y),a.v()}Le.Vo=function(a){if(Ki.prototype.Vo.call(this,a),ec(this)&&this.Xo(this.actualBounds),!a){a=this.ef;var y=null;a!==null&&(y=this.fromPort,V0(a,this,y));var x=this.uf;if(x!==null){var E=this.toPort;x===a&&E===y||V0(x,this,E)}ip(this)}},Le.Wo=function(a){if(Ki.prototype.Wo.call(this,a),ec(this)&&this.Xo(this.actualBounds),!a){a=this.ef;var y=null;a!==null&&(y=this.fromPort,Y0(a,this,y));var x=this.uf;if(x!==null){var E=this.toPort;x===a&&E===y||Y0(x,this,E)}rp(this)}},Le.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))},Kn.prototype.updateRelationshipsFromData=function(){if(this.data!==null){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)}},Kn.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?Ki.prototype.move.call(this,a,!1):(a=je.allocAt(x.x+E,x.y+b),Ki.prototype.move.call(this,a,!1),je.free(a)),kh(this,E,b),a=this.labelNodes;a.next();)y=a.value,x=y.position,y.moveTo(x.x+E,x.y+b)},Kn.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},Kn.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},Kn.prototype.computeMidPoint=function(a){var y=this.pointsCount;if(y===0)return a.assign(Wt),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()===hl))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()===hl){if(y===3){x=this.i(0),E=this.i(1);var b=this.i(2);return St.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),St.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 ee=this.flattenedLengths;for(x=this.flattenedTotalLength,b=z=E=0;E<x/2&&z<y&&(b=ee[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},Kn.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()===hl))return this.ua.wx(.5);if(this.computeCurve()===hl&&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),St.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)},Le=Kn.prototype,Le.i=function(a){return this.Nb.s[a]},Le.dd=function(a,y){this.Nb.cd(a,y)},Le.L=function(a,y,x){this.Nb.cd(a,new je(y,x))},Le.Kz=function(a,y){this.Nb.Gb(a,y)},Le.m=function(a,y,x){this.Nb.Gb(a,new je(y,x))},Le.ne=function(a){this.Nb.add(a)},Le.yf=function(a,y){this.Nb.add(new je(a,y))},Le.pv=function(a){this.Nb.mb(a)},Le.Fj=function(){this.Nb.clear()};function kh(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 Mn,z=a.Nb.iterator;z.next();){var ee=z.value;b.add(new je(ee.x+y,ee.y+x).freeze())}b.freeze(),z=a.Nb,a.Nb=b,ee=a.diagram,isNaN(y)||isNaN(x)||ee!==null&&ee.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),ws(a)),E?_0(a):(a.defaultFromPoint&&(a.defaultFromPoint=a.i(0)),a.defaultToPoint&&(a.defaultToPoint=a.i(a.pointsCount-1))),ee!==null&&ee.animationManager.zb&&df(ee.animationManager,a,b),a.g("points",z,b)}}Le.uh=function(){this.Mg===null&&(this.Mg=this.Nb,this.Nb=this.Nb.copy())},Le.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,ee=0;ee<z;ee++){var re=b[ee];x=Math.min(re.x,x),E=Math.min(re.y,E)}re=ee=1/0;for(var oe=y.s,le=oe.length,he=0;he<le;he++){var ge=oe[he];ee=Math.min(ge.x,ee),re=Math.min(ge.y,re),ge.freeze()}if(y.freeze(),le===z){for(z=0;z<le;z++)if(he=b[z],ge=oe[z],he.x-x!==ge.x-ee||he.y-E!==ge.y-re){this.qc();break}}else this.qc();this.Mg=null,x=this.diagram,x!==null&&x.animationManager.zb&&df(x.animationManager,this,y),_0(this),this.g("points",a,y)}},Le.rv=function(){this.Mg!==null&&(this.Nb=this.Mg,this.Mg=null)};function _0(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),J0(a,!1))}Le.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())}},Le.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()}}},Kn.prototype.computePoints=function(){if(this.diagram===null)return!1;var a=this.fromNode,y=null;if(a===null?(jc||(jc=new ui,jc.desiredSize=pt,jc.Va()),this.defaultFromPoint&&(jc.location=this.defaultFromPoint,jc.Va(),y=a=jc)):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?(zc||(zc=new ui,zc.desiredSize=pt,zc.Va()),this.defaultToPoint&&(zc.location=this.defaultToPoint,zc.Va(),b=E=zc)):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,ee=this.computeSpot(!0,y);x=this.computeSpot(!1,b);var re=Zf(ee),oe=Zf(x),le=y===b&&y!==null,he=this.isOrthogonal,ge=this.curve===hl;this.Wf=le&&!he?ge=!0:!1;var Se=this.computeAdjusting()===Fs||le;if(!he&&!le&&re&&oe){if(re=!1,!Se&&3<=z&&(Se=this.getLinkPoint(a,y,ee,!0,!1,E,b),oe=this.getLinkPoint(E,b,x,!1,!1,a,y),re=this.adjustPoints(0,Se,z-1,oe))&&(Se=this.getLinkPoint(a,y,ee,!0,!1,E,b),oe=this.getLinkPoint(E,b,x,!1,!1,a,y),this.adjustPoints(0,Se,z-1,oe)),!re)if(this.Fj(),ge){z=this.getLinkPoint(a,y,ee,!0,!1,E,b),Se=this.getLinkPoint(E,b,x,!1,!1,a,y),re=Se.x-z.x,oe=Se.y-z.y,le=this.computeCurviness(),ge=he=0;var Pe=z.x+re/3,Ae=z.y+oe/3,Be=Pe,Qe=Ae;St.B(oe,0)?Qe=0<re?Qe-le:Qe+le:(he=-re/oe,ge=Math.sqrt(le*le/(he*he+1)),0>le&&(ge=-ge),Be=(0>oe?-1:1)*ge+Pe,Qe=he*(Be-Pe)+Ae),Pe=z.x+2*re/3,Ae=z.y+2*oe/3;var Ke=Pe,lt=Ae;St.B(oe,0)?lt=0<re?lt-le:lt+le:(Ke=(0>oe?-1:1)*ge+Pe,lt=he*(Ke-Pe)+Ae),this.Fj(),this.ne(z),this.yf(Be,Qe),this.yf(Ke,lt),this.ne(Se),this.dd(0,this.getLinkPoint(a,y,ee,!0,!1,E,b)),this.dd(3,this.getLinkPoint(E,b,x,!1,!1,a,y))}else z=E,Se=b,E=this.getLinkPoint(a,y,ee,!0,!1,z,Se),b=this.getLinkPoint(z,Se,x,!1,!1,a,y),this.hasCurviness()?(Se=b.x-E.x,x=b.y-E.y,ee=this.computeCurviness(),a=E.x+Se/2,y=E.y+x/2,z=a,re=y,St.B(x,0)?re=0<Se?re-ee:re+ee:(Se=-Se/x,z=Math.sqrt(ee*ee/(Se*Se+1)),0>ee&&(z=-z),z=(0>x?-1:1)*z+a,re=Se*(z-a)+y),this.ne(E),this.yf(z,re),this.ne(b)):(this.ne(E),this.ne(b),re=vt.alloc(),y.mi(re),oe=re.ca(b),Se.mi(re),le=re.ca(E),(oe||le)&&(ee=y.ga(X0(ee),new je),this.dd(0,this.getLinkPointFromPoint(a,y,ee,b,!0,ee)),x=Se.ga(X0(x),new je),this.dd(1,this.getLinkPointFromPoint(z,Se,x,E,!1,x))),vt.free(re))}else{ge=this.isAvoiding,Se&&(he&&ge||le)&&this.Fj();var ct=le?this.computeCurviness():0;ge=this.getLinkPoint(a,y,ee,!0,he,E,b),Pe=Be=Ae=0,(he||!re||le)&&(Qe=this.computeEndSegmentLength(a,y,ee,!0),Pe=this.getLinkDirection(a,y,ge,ee,!0,he,E,b),le&&(re||ee.D(x)||!he&&ee.x+x.x===1&&ee.y+x.y===1)&&(Pe-=he?90:30,0>ct&&(Pe-=180)),0>Pe?Pe+=360:360<=Pe&&(Pe-=360),le&&(Qe+=Math.abs(ct)*(he?1:2)),Pe===0?Ae=Qe:Pe===90?Be=Qe:Pe===180?Ae=-Qe:Pe===270?Be=-Qe:(Ae=Qe*Math.cos(Pe*Math.PI/180),Be=Qe*Math.sin(Pe*Math.PI/180)),ee.Mc()&&le&&(Qe=y.ga(Ln,je.alloc()),Ke=je.allocAt(Qe.x+1e3*Ae,Qe.y+1e3*Be),this.getLinkPointFromPoint(a,y,Qe,Ke,!0,ge),je.free(Qe),je.free(Ke))),Qe=this.getLinkPoint(E,b,x,!1,he,a,y);var ft=lt=Ke=0;if(he||!oe||le){var Et=this.computeEndSegmentLength(E,b,x,!1);ft=this.getLinkDirection(E,b,Qe,x,!1,he,a,y),le&&(oe||ee.D(x)||!he&&ee.x+x.x===1&&ee.y+x.y===1)&&(ft+=he?0:30,0>ct&&(ft+=180)),0>ft?ft+=360:360<=ft&&(ft-=360),le&&(Et+=Math.abs(ct)*(he?1:2)),ft===0?Ke=Et:ft===90?lt=Et:ft===180?Ke=-Et:ft===270?lt=-Et:(Ke=Et*Math.cos(ft*Math.PI/180),lt=Et*Math.sin(ft*Math.PI/180)),x.Mc()&&le&&(x=b.ga(Ln,je.alloc()),ee=je.allocAt(x.x+1e3*Ke,x.y+1e3*lt),this.getLinkPointFromPoint(E,b,x,ee,!1,Qe),je.free(x),je.free(ee))}x=ge,(he||!re||le)&&(x=new je(ge.x+Ae,ge.y+Be)),ee=Qe,(he||!oe||le)&&(ee=new je(Qe.x+Ke,Qe.y+lt)),!Se&&!he&&re&&3<z&&this.adjustPoints(0,ge,z-2,ee)?this.dd(z-1,Qe):!Se&&!he&&oe&&3<z&&this.adjustPoints(1,x,z-1,Qe)?this.dd(0,ge):!Se&&(he?6<=z:4<z)&&this.adjustPoints(1,x,z-2,ee)?(this.dd(0,ge),this.dd(z-1,Qe)):(this.Fj(),this.ne(ge),(he||!re||le)&&this.ne(x),he&&this.addOrthoPoints(x,Pe,ee,ft,a,E),(he||!oe||le)&&this.ne(ee),this.ne(Qe))}return!0};function Uv(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}Kn.prototype.getLinkPointFromPoint=function(a,y,x,E,b,z){if(z===void 0&&(z=new je),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 ee=x.x;x=x.y}else{a=b.oe,b=1/(a.m11*a.m22-a.m12*a.m21),ee=a.m22*b;var re=-a.m12*b,oe=-a.m21*b,le=a.m11*b,he=b*(a.m21*a.dy-a.m22*a.dx),ge=b*(a.m12*a.dx-a.m11*a.dy);b=E.x*ee+E.y*oe+he,E=E.x*re+E.y*le+ge,ee=x.x*ee+x.y*oe+he,x=x.x*re+x.y*le+ge}return y.Sj(b,E,ee,x,z),a!==null&&z.transform(a),z};function U0(a,y){var x=y.Zn;return x===null&&(x=new Zc,x.port=y,x.node=y.part,y.Zn=x),hS(x,a)}Kn.prototype.getLinkPoint=function(a,y,x,E,b,z,ee,re){if(re===void 0&&(re=new je),x.sb()&&!Zf(x))return y.ga(x,re),re;if(x.$c()){var oe=U0(this,y);if(oe!==null){if(re.assign(oe.Zo),b&&this.routing===rS){var le=U0(this,ee);if(le!==null&&oe.Gl<le.Gl){oe=je.alloc(),le=je.alloc();var he=new vt(y.ga(Ti,oe),y.ga(An,le)),ge=this.computeSpot(!E,ee);a=this.getLinkPoint(z,ee,ge,!E,b,a,y,le),(x.Hf(_i)||x.Hf(Er))&&a.y>=he.y&&a.y<=he.y+he.height?re.y=a.y:(x.Hf(Fi)||x.Hf(oo))&&a.x>=he.x&&a.x<=he.x+he.width&&(re.x=a.x),je.free(oe),je.free(le)}}return re}}return x=y.ga(X0(x),je.alloc()),this.pointsCount>(b?6:2)?(ee=E?this.i(1):this.i(this.pointsCount-2),b&&(ee=Uv(x,ee.copy()))):(oe=this.computeSpot(!E,ee),z=je.alloc(),ee=ee.ga(X0(oe),z),b&&(ee=Uv(x,ee)),je.free(z)),this.getLinkPointFromPoint(a,y,x,ee,E,re),je.free(x),re},Kn.prototype.getLinkDirection=function(a,y,x,E,b,z,ee,re){e:if(E.sb())var oe=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()&&(oe=U0(this,y),oe!==null))switch(oe.Nc){case 1:oe=270;break e;case 2:oe=180;break e;default:case 4:oe=0;break e;case 8:oe=90;break e}oe=y.ga(Ln,je.alloc()),this.pointsCount>(z?6:2)?(re=b?this.i(1):this.i(this.pointsCount-2),re=z?Uv(oe,re.copy()):x):(x=je.alloc(),re=re.ga(Ln,x),je.free(x)),x=Math.abs(re.x-oe.x)>Math.abs(re.y-oe.y)?re.x>=oe.x?0:180:re.y>=oe.y?90:270,je.free(oe),oe=x}return E.Mc()&&ee.Td(a)&&(oe+=180,360<=oe&&(oe-=360)),Zf(E)||(a=y.li(),a===0)||(45<=a&&135>a?oe+=90:135<=a&&225>a?oe+=180:225<=a&&315>a&&(oe+=270),360<=oe&&(oe-=360)),oe},Kn.prototype.computeEndSegmentLength=function(a,y,x,E){return y!==null&&x.$c()&&(a=U0(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)},Kn.prototype.computeSpot=function(a,y){return y===void 0&&(y=null),a?(a=y||this.fromPort,a===null?a=Ln:(y=this.fromSpot,y.Xb()&&(y=a.fromSpot),a=y===Eo?Mi:y)):(a=y||this.toPort,a===null?a=Ln:(y=this.toSpot,y.Xb()&&(y=a.toSpot),a=y===Eo?Mi:y)),a};function Zf(a){return a===Mi||a.x===.5&&a.y===.5}function X0(a){return a.x===.5&&a.y===.5?a:Ln}Kn.prototype.computeOtherPoint=function(a,y){return this.computeAdjusting()!==Fs&&4<this.pointsCount?this.computeMidPoint(new je):(a=y.Zn,a=a!==null?hS(a,this):null,a!==null?a.Zo:y.ga(Ln))},Kn.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},Kn.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 ee=z;if(z===void 0&&(ee=di.alloc(),ee.reset()),ee.multiply(this.transform),this.fh(a,ee))return yv(this,y,x,b),z===void 0&&di.free(ee),!0;if(this.Yc(a,ee)){var re=!1;if(!this.isAtomic)for(var oe=this.O.s,le=oe.length;le--;){var he=oe[le];if(he.visible||he===this.locationObject){var ge=he.actualBounds,Se=this.naturalBounds;if(!(ge.x>Se.width||ge.y>Se.height||0>ge.x+ge.width||0>ge.y+ge.height)){if(ge=di.alloc(),ge.set(ee),he instanceof Rn)re=he.Cf(a,y,x,E,b,ge);else if(this.path===he){if(he instanceof Lr)if(re=a,Se=E,he.pickable===!1)re=!1;else if(ge.multiply(he.transform),Se)e:{var Pe=re,Ae=ge;if(he.fh(Pe,Ae))re=!0;else{if(Ae===void 0&&(Ae=he.transform,Pe.Re(he.actualBounds))){re=!0;break e}re=Pe.left,Se=Pe.right;var Be=Pe.top;Pe=Pe.bottom;var Qe=je.alloc(),Ke=je.alloc(),lt=je.alloc(),ct=di.alloc();ct.set(Ae),ct.bv(he.transform),ct.Vj(),Ke.x=Se,Ke.y=Be,Ke.transform(ct),Qe.x=re,Qe.y=Be,Qe.transform(ct),Ae=!1,qd(he,Qe,Ke,lt)?Ae=!0:(Qe.x=Se,Qe.y=Pe,Qe.transform(ct),qd(he,Qe,Ke,lt)?Ae=!0:(Ke.x=re,Ke.y=Pe,Ke.transform(ct),qd(he,Qe,Ke,lt)?Ae=!0:(Qe.x=re,Qe.y=Be,Qe.transform(ct),qd(he,Qe,Ke,lt)&&(Ae=!0)))),di.free(ct),je.free(Qe),je.free(Ke),je.free(lt),re=Ae}}else re=he.fh(re,ge)}else re=Oa(he,a,E,ge);re&&(Se=he,y!==null&&(Se=y(he)),Se&&(x===null||x(Se))&&b.add(Se)),di.free(ge)}}}return z===void 0&&di.free(ee),re||this.background!==null||this.areaBackground!==null}return z===void 0&&di.free(ee),!1},Kn.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?hl:this.curve},Kn.prototype.computeCorner=function(){if(this.curve===hl)return 0;var a=this.corner;return(isNaN(a)||0>a)&&(a=10),a},Kn.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},Kn.prototype.computeSpacing=function(){if(!this.isVisible())return 0;var a=aS;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,ee=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===ap||E===em||E===$v?a=Math.max(a,b):E===lp||E===hp||E===sp||E===up?a=Math.max(a,ee):(y=y.ga(Ln).ab(x.ga(Ln))/180*Math.PI,a=Math.max(a,Math.abs(Math.sin(y)*ee)+Math.abs(Math.cos(y)*b)+1)),this.curve===hl&&(a*=1.333)}}return a},Kn.prototype.arrangeBundledLinks=function(a,y){if(y)for(y=0;y<a.length;y++){var x=a[y];x.computeAdjusting()===Fs&&x.bb()}},Kn.prototype.computeCurviness=function(){var a=this.curviness;if(isNaN(a)){a=oS;var y=this.Sf;if(y!==null){for(var x=mi(),E=0,b=y.links,z=0;z<b.length;z++){var ee=b[z].computeSpacing();x.push(ee),E+=ee}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),sn(x)}}return a},Kn.prototype.computeThickness=function(){if(!this.isVisible())return 0;var a=this.path;return a!==null?Math.max(a.strokeWidth,1):1},Kn.prototype.hasCurviness=function(){return!isNaN(this.curviness)||this.Sf!==null},Kn.prototype.adjustPoints=function(a,y,x,E){var b=this.computeAdjusting();if(this.isOrthogonal){if(b===q0)return!1;b===$0&&(b=op)}switch(b){case q0:var z=this.i(a),ee=this.i(x);if(!z.Xa(y)||!ee.Xa(E)){b=z.x,z=z.y;var re=ee.x-b,oe=ee.y-z,le=Math.sqrt(re*re+oe*oe);if(!St.$(le,0)){if(St.$(re,0))var he=0>oe?-Math.PI/2:Math.PI/2;else he=Math.atan(oe/Math.abs(re)),0>re&&(he=Math.PI-he);ee=y.x;var ge=y.y;re=E.x-ee;var Se=E.y-ge;for(oe=Math.sqrt(re*re+Se*Se),St.$(re,0)?Se=0>Se?-Math.PI/2:Math.PI/2:(Se=Math.atan(Se/Math.abs(re)),0>re&&(Se=Math.PI-Se)),le=oe/le,he=Se-he,this.dd(a,y),a+=1;a<x;a++)y=this.i(a),re=y.x-b,oe=y.y-z,y=Math.sqrt(re*re+oe*oe),St.$(y,0)||(St.$(re,0)?oe=0>oe?-Math.PI/2:Math.PI/2:(oe=Math.atan(oe/Math.abs(re)),0>re&&(oe=Math.PI-oe)),re=oe+he,y*=le,this.L(a,ee+y*Math.cos(re),ge+y*Math.sin(re)));this.dd(x,E)}}return!0;case $0:if(z=this.i(a),ge=this.i(x),!z.Xa(y)||!ge.Xa(E)){b=z.x,z=z.y,ee=ge.x,ge=ge.y,le=(ee-b)*(ee-b)+(ge-z)*(ge-z),re=y.x,he=y.y,oe=E.x,Se=E.y;var Pe=1;if(oe-re!==0){var Ae=(Se-he)/(oe-re);Pe=Math.sqrt(1+1/(Ae*Ae))}else Ae=9e9;for(this.dd(a,y),a+=1;a<x;a++){y=this.i(a);var Be=y.x,Qe=y.y,Ke=.5;le!==0&&(Ke=((b-Be)*(b-ee)+(z-Qe)*(z-ge))/le);var lt=b+Ke*(ee-b),ct=z+Ke*(ge-z);y=Math.sqrt((Be-lt)*(Be-lt)+(Qe-ct)*(Qe-ct)),Qe<Ae*(Be-lt)+ct&&(y=-y),0<Ae&&(y=-y),Be=re+Ke*(oe-re),Ke=he+Ke*(Se-he),Ae!==0?(y=Be+y/Pe,this.L(a,y,Ke-(y-Be)/Ae)):this.L(a,Be,Ke+y)}this.dd(x,E)}return!0;case op:e:{if(this.isOrthogonal&&(b=this.i(a),z=this.i(a+1),ee=this.i(a+2),re=z.x,he=z.y,ge=re,le=he,St.B(b.y,z.y)?St.B(z.x,ee.x)?he=y.y:St.B(z.y,ee.y)&&(re=y.x):St.B(b.x,z.x)&&(St.B(z.y,ee.y)?re=y.x:St.B(z.x,ee.x)&&(he=y.y)),this.L(a+1,re,he),b=this.i(x),z=this.i(x-1),ee=this.i(x-2),re=z.x,he=z.y,oe=re,Se=he,St.B(b.y,z.y)?St.B(z.x,ee.x)?he=E.y:St.B(z.y,ee.y)&&(re=E.x):St.B(b.x,z.x)&&(St.B(z.y,ee.y)?re=E.x:St.B(z.x,ee.x)&&(he=E.y)),this.L(x-1,re,he),Xv(this))){this.L(a+1,ge,le),this.L(x-1,oe,Se),x=!1;break e}this.dd(a,y),this.dd(x,E),x=!0}return x;default:return!1}},Kn.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 ee=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 re=b.actualBounds.copy(),oe=z.actualBounds.copy();if(re.w()&&oe.w()){re.Bc(dp,dp),oe.Bc(dp,dp),re.Ye(a),oe.Ye(x);var le=je.alloc(),he=je.alloc();y===0?x.x>a.x||E===270&&x.y<a.y&&oe.right>a.x||E===90&&x.y>a.y&&oe.right>a.x?(le.h(x.x,a.y),he.h(x.x,(a.y+x.y)/2),E===180?(le.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1),he.x=le.x,he.y=x.y):E===270&&x.y<a.y||E===90&&x.y>a.y?(le.x=a.x<oe.left?this.computeMidOrthoPosition(a.x,a.y,oe.left,x.y,!1):a.x<oe.right&&(E===270&&a.y<oe.top||E===90&&a.y>oe.bottom)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):oe.right,he.x=le.x,he.y=x.y):E===0&&a.x<oe.left&&a.y>oe.top&&a.y<oe.bottom&&(le.x=a.x,le.y=a.y<x.y?Math.min(x.y,oe.top):Math.max(x.y,oe.bottom),he.y=le.y)):(le.h(a.x,x.y),he.h((a.x+x.x)/2,x.y),(E===180||E===90&&x.y<re.top||E===270&&x.y>re.bottom)&&(E===180&&(oe.ca(a)||re.ca(x))?le.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):x.y<a.y&&(E===180||E===90)?le.y=this.computeMidOrthoPosition(a.x,re.top,x.x,Math.max(x.y,oe.bottom),!0):x.y>a.y&&(E===180||E===270)&&(le.y=this.computeMidOrthoPosition(a.x,re.bottom,x.x,Math.min(x.y,oe.top),!0)),he.x=x.x,he.y=le.y),le.y>re.top&&le.y<re.bottom&&(x.x>=re.left&&x.x<=a.x||a.x<=oe.right&&a.x>=x.x?(E===90||E===270)&&(le.h(Math.max((a.x+x.x)/2,a.x),a.y),he.h(le.x,x.y)):(le.y=E===270||(E===0||E===180)&&x.y<a.y?Math.min(x.y,E===0?re.top:Math.min(re.top,oe.top)):Math.max(x.y,E===0?re.bottom:Math.max(re.bottom,oe.bottom)),he.x=x.x,he.y=le.y))):y===180?x.x<a.x||E===270&&x.y<a.y&&oe.left<a.x||E===90&&x.y>a.y&&oe.left<a.x?(le.h(x.x,a.y),he.h(x.x,(a.y+x.y)/2),E===0?(le.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1),he.x=le.x,he.y=x.y):E===270&&x.y<a.y||E===90&&x.y>a.y?(le.x=a.x>oe.right?this.computeMidOrthoPosition(a.x,a.y,oe.right,x.y,!1):a.x>oe.left&&(E===270&&a.y<oe.top||E===90&&a.y>oe.bottom)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):oe.left,he.x=le.x,he.y=x.y):E===180&&a.x>oe.right&&a.y>oe.top&&a.y<oe.bottom&&(le.x=a.x,le.y=a.y<x.y?Math.min(x.y,oe.top):Math.max(x.y,oe.bottom),he.y=le.y)):(le.h(a.x,x.y),he.h((a.x+x.x)/2,x.y),(E===0||E===90&&x.y<re.top||E===270&&x.y>re.bottom)&&(E===0&&(oe.ca(a)||re.ca(x))?le.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):x.y<a.y&&(E===0||E===90)?le.y=this.computeMidOrthoPosition(a.x,re.top,x.x,Math.max(x.y,oe.bottom),!0):x.y>a.y&&(E===0||E===270)&&(le.y=this.computeMidOrthoPosition(a.x,re.bottom,x.x,Math.min(x.y,oe.top),!0)),he.x=x.x,he.y=le.y),le.y>re.top&&le.y<re.bottom&&(x.x<=re.right&&x.x>=a.x||a.x>=oe.left&&a.x<=x.x?(E===90||E===270)&&(le.h(Math.min((a.x+x.x)/2,a.x),a.y),he.h(le.x,x.y)):(le.y=E===270||(E===0||E===180)&&x.y<a.y?Math.min(x.y,E===180?re.top:Math.min(re.top,oe.top)):Math.max(x.y,E===180?re.bottom:Math.max(re.bottom,oe.bottom)),he.x=x.x,he.y=le.y))):y===90?x.y>a.y||E===180&&x.x<a.x&&oe.bottom>a.y||E===0&&x.x>a.x&&oe.bottom>a.y?(le.h(a.x,x.y),he.h((a.x+x.x)/2,x.y),E===270?(le.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0),he.x=x.x,he.y=le.y):E===180&&x.x<a.x||E===0&&x.x>a.x?(le.y=a.y<oe.top?this.computeMidOrthoPosition(a.x,a.y,x.x,oe.top,!0):a.y<oe.bottom&&(E===180&&a.x<oe.left||E===0&&a.x>oe.right)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):oe.bottom,he.x=x.x,he.y=le.y):E===90&&a.y<oe.top&&a.x>oe.left&&a.x<oe.right&&(le.x=a.x<x.x?Math.min(x.x,oe.left):Math.max(x.x,oe.right),le.y=a.y,he.x=le.x)):(le.h(x.x,a.y),he.h(x.x,(a.y+x.y)/2),(E===270||E===0&&x.x<re.left||E===180&&x.x>re.right)&&(E===270&&(oe.ca(a)||re.ca(x))?le.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):x.x<a.x&&(E===270||E===0)?le.x=this.computeMidOrthoPosition(re.left,a.y,Math.max(x.x,oe.right),x.y,!1):x.x>a.x&&(E===270||E===180)&&(le.x=this.computeMidOrthoPosition(re.right,a.y,Math.min(x.x,oe.left),x.y,!1)),he.x=le.x,he.y=x.y),le.x>re.left&&le.x<re.right&&(x.y>=re.top&&x.y<=a.y||a.y<=oe.bottom&&a.y>=x.y?(E===0||E===180)&&(le.h(a.x,Math.max((a.y+x.y)/2,a.y)),he.h(x.x,le.y)):(le.x=E===180||(E===90||E===270)&&x.x<a.x?Math.min(x.x,E===90?re.left:Math.min(re.left,oe.left)):Math.max(x.x,E===90?re.right:Math.max(re.right,oe.right)),he.x=le.x,he.y=x.y))):x.y<a.y||E===180&&x.x<a.x&&oe.top<a.y||E===0&&x.x>a.x&&oe.top<a.y?(le.h(a.x,x.y),he.h((a.x+x.x)/2,x.y),E===90?(le.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0),he.x=x.x,he.y=le.y):E===180&&x.x<a.x||E===0&&x.x>=a.x?(le.y=a.y>oe.bottom?this.computeMidOrthoPosition(a.x,a.y,x.x,oe.bottom,!0):a.y>oe.top&&(E===180&&a.x<oe.left||E===0&&a.x>oe.right)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):oe.top,he.x=x.x,he.y=le.y):E===270&&a.y>oe.bottom&&a.x>oe.left&&a.x<oe.right&&(le.x=a.x<x.x?Math.min(x.x,oe.left):Math.max(x.x,oe.right),le.y=a.y,he.x=le.x)):(le.h(x.x,a.y),he.h(x.x,(a.y+x.y)/2),(E===90||E===0&&x.x<re.left||E===180&&x.x>re.right)&&(E===90&&(oe.ca(a)||re.ca(x))?le.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):x.x<a.x&&(E===90||E===0)?le.x=this.computeMidOrthoPosition(re.left,a.y,Math.max(x.x,oe.right),x.y,!1):x.x>a.x&&(E===90||E===180)&&(le.x=this.computeMidOrthoPosition(re.right,a.y,Math.min(x.x,oe.left),x.y,!1)),he.x=le.x,he.y=x.y),le.x>re.left&&le.x<re.right&&(x.y<=re.bottom&&x.y>=a.y||a.y>=oe.top&&a.y<=x.y?(E===0||E===180)&&(le.h(a.x,Math.min((a.y+x.y)/2,a.y)),he.h(x.x,le.y)):(le.x=E===180||(E===90||E===270)&&x.x<a.x?Math.min(x.x,E===270?re.left:Math.min(re.left,oe.left)):Math.max(x.x,E===270?re.right:Math.max(re.right,oe.right)),he.x=le.x,he.y=x.y)));var ge=x;if(this.isAvoiding){var Se=this.diagram;if(Se===null||b===z||this.layer.isTemporary||!xf(Se)||re.ca(ge)&&!z.Td(b)||oe.ca(a)&&!b.Td(z))y=!1;else{var Pe=Pf(Se,!0,this.containingGroup,null);if(this.segmentIndex!==17&&Pe.Yj(Math.min(a.x,le.x),Math.min(a.y,le.y),Math.abs(a.x-le.x),Math.abs(a.y-le.y))&&Pe.Yj(Math.min(le.x,he.x),Math.min(le.y,he.y),Math.abs(le.x-he.x),Math.abs(le.y-he.y))&&Pe.Yj(Math.min(he.x,ge.x),Math.min(he.y,ge.y),Math.abs(he.x-ge.x),Math.abs(he.y-ge.y)))y=!1;else{b=a,z=ge;var Ae=x=null;if(Se.isVirtualized){Se=Pe.bounds.copy(),Se.Bc(-Pe.Ho,-Pe.Go);var Be=je.alloc();Hf(Pe,a.x,a.y)||(St.Ff(Se.x,Se.y,Se.x+Se.width,Se.y+Se.height,a.x,a.y,le.x,le.y,Be)?(x=a=Be.copy(),y=Be.ab(le)):St.Ff(Se.x,Se.y,Se.x+Se.width,Se.y+Se.height,le.x,le.y,he.x,he.y,Be)?(x=a=Be.copy(),y=Be.ab(he)):St.Ff(Se.x,Se.y,Se.x+Se.width,Se.y+Se.height,he.x,he.y,ge.x,ge.y,Be)&&(x=a=Be.copy(),y=Be.ab(ge))),Hf(Pe,ge.x,ge.y)||(St.Ff(Se.x,Se.y,Se.x+Se.width,Se.y+Se.height,ge.x,ge.y,he.x,he.y,Be)?(Ae=ge=Be.copy(),E=he.ab(Be)):St.Ff(Se.x,Se.y,Se.x+Se.width,Se.y+Se.height,he.x,he.y,le.x,le.y,Be)?(Ae=ge=Be.copy(),E=le.ab(Be)):St.Ff(Se.x,Se.y,Se.x+Se.width,Se.y+Se.height,le.x,le.y,a.x,a.y,Be)&&(Ae=ge=Be.copy(),E=a.ab(Be))),je.free(Be)}re=re.copy().ed(oe),re.Bc(Pe.Ho*Pe.Os,Pe.Go*Pe.Os),lS(Pe,a,y,ge,E,re,!0),oe=Zu(Pe,ge.x,ge.y),!Pe.abort&&oe>=Gf&&(sS(Pe),re.Bc(Pe.Ho*Pe.Hx,Pe.Go*Pe.Ix),lS(Pe,a,y,ge,E,re,!1),oe=Zu(Pe,ge.x,ge.y)),!Pe.abort&&oe<Gf&&Zu(Pe,ge.x,ge.y)!==Nh?(Qv(this,Pe,ge.x,ge.y,E,!0,ee),re=this.i(2),4>this.pointsCount?(y===0||y===180?(re.x=a.x,re.y=ge.y):(re.x=ge.x,re.y=a.y),this.L(2,re.x,re.y),this.m(3,re.x,re.y)):(ee=this.i(3),y===0||y===180?St.B(re.x,ee.x)?(re=y===0?Math.max(re.x,a.x):Math.min(re.x,a.x),this.L(2,re,a.y),this.L(3,re,ee.y)):St.B(re.y,ee.y)?(Math.abs(a.y-re.y)<=Pe.Go/2&&(this.L(2,re.x,a.y),this.L(3,ee.x,a.y)),this.m(2,re.x,a.y)):this.L(2,a.x,re.y):(y===90||y===270)&&(St.B(re.y,ee.y)?(re=y===90?Math.max(re.y,a.y):Math.min(re.y,a.y),this.L(2,a.x,re),this.L(3,ee.x,re)):St.B(re.x,ee.x)?(Math.abs(a.x-re.x)<=Pe.Ho/2&&(this.L(2,a.x,re.y),this.L(3,a.x,ee.y)),this.m(2,a.x,re.y)):this.L(2,re.x,a.y))),x!==null&&(a=this.i(1),ee=this.i(2),a.x!==ee.x&&a.y!==ee.y?y===0||y===180?this.m(2,a.x,ee.y):this.m(2,ee.x,a.y):y===0||y===180?this.m(2,b.x,x.y):this.m(2,x.x,b.y)),Ae!==null&&(E===0||E===180?this.yf(z.x,Ae.y):this.yf(Ae.x,z.y)),y=!0):y=!1}}}else y=!1;y||(this.ne(le.copy()),this.ne(he.copy())),je.free(le),je.free(he)}},Kn.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 Xv(a){if(a.diagram===null||!a.isAvoiding||!xf(a.diagram))return!1;var y=a.points.s,x=y.length;if(4>x)return!1;a=Pf(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,ee){var re=y.Ho,oe=y.Go,le=Zu(y,x,E),he=x,ge=E;for(b===0?he+=re:b===90?ge+=oe:b===180?he-=re:ge-=oe,b!==ee&&le>tc&&Zu(y,he,ge)!==le-1&&(Zu(y,x-re,E)===le-1?(b=180,he=x-re,ge=E):Zu(y,x+re,E)===le-1?(b=0,he=x+re,ge=E):Zu(y,x,E-oe)===le-1?(b=270,he=x,ge=E-oe):Zu(y,x,E+oe)===le-1&&(b=90,he=x,ge=E+oe));le>tc&&Zu(y,he,ge)===le-1;)x=he,E=ge,b===0?he+=re:b===90?ge+=oe:b===180?he-=re:ge-=oe,--le;z?le>tc&&(b===180||b===0?x=Math.floor(x/re)*re+re/2:(b===90||b===270)&&(E=Math.floor(E/oe)*oe+oe/2)):(x=Math.floor(x/re)*re+re/2,E=Math.floor(E/oe)*oe+oe/2),le>tc&&(z=b,ee=x,he=E,b===0?(z=90,he+=oe):b===90?(z=180,ee-=re):b===180?(z=270,he-=oe):b===270&&(z=0,ee+=re),Zu(y,ee,he)===le-1?Qv(a,y,ee,he,z,!1,z):(ee=x,he=E,b===0?(z=270,he-=oe):b===90?(z=0,ee+=re):b===180?(z=90,he+=oe):b===270&&(z=180,ee-=re),Zu(y,ee,he)===le-1&&Qv(a,y,ee,he,z,!1,z))),a.yf(x,E)}Kn.prototype.ez=function(a){var y=a.x;a=a.y;for(var x=this.i(0),E=this.i(1),b=On(y,a,x.x,x.y,E.x,E.y),z=0,ee=1;ee<this.pointsCount-1;ee++){x=this.i(ee+1);var re=On(y,a,E.x,E.y,x.x,x.y);E=x,re<b&&(z=ee,b=re)}return z},Kn.prototype.qc=function(){this.lk=!1,this.v()},Kn.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 Lr&&(b.ua=this.ua)}}},Kn.prototype.makeGeometry=function(){var a=this.ua,y=this.pointsCount,x=!1,E=this.diagram;E!==null&&ec(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 ee=this.computeCurve();if(ee===hl&&3<=y&&!St.$(this.smoothness,0))if(y===3){var re=this.i(1);E=Math.min(b.x,re.x);var oe=Math.min(b.y,re.y);re=this.i(2),E=Math.min(E,re.x),oe=Math.min(oe,re.y)}else{if(this.isOrthogonal)for(oe=0;oe<y;oe++)re=E[oe],z.x=Math.min(re.x,z.x),z.y=Math.min(re.y,z.y);else for(E=3;E<y;E+=3)E+3>=y&&(E=y-1),oe=this.i(E),z.x=Math.min(oe.x,z.x),z.y=Math.min(oe.y,z.y);E=z.x,oe=z.y}else{for(oe=0;oe<y;oe++)re=E[oe],z.x=Math.min(re.x,z.x),z.y=Math.min(re.y,z.y);E=z.x,oe=z.y}if(E-=this.su.x,oe-=this.su.y,b.x-=E,b.y-=oe,y!==2||ec(this)){if(a.type=Pn.o,re=N1(a),this.computeShortLength(!0)!==0&&(b=Ic(this,b,!0,z)),jf(re,b.x,b.y,!1),ee===hl&&3<=y&&!St.$(this.smoothness,0))if(y===3)x=this.i(1),y=x.x-E,x=x.y-oe,b=this.i(2).copy(),b.x-=E,b.y-=oe,this.computeShortLength(!1)!==0&&(b=Ic(this,b,!1,z)),Lh(re,y,x,y,x,b.x,b.y);else if(this.isOrthogonal){y=je.allocAt(E,oe),x=je.alloc(),x.assign(this.i(1)),z=je.allocAt(E,oe),b=je.allocAt(E,oe),ee=this.i(0);for(var le,he=this.smoothness/3,ge=1;ge<this.pointsCount-1;ge++){le=this.i(ge);var Se=ee,Pe=le,Ae=this.i(Jv(this,le,ge,!1));if((!St.$(Se.x,Pe.x)||!St.$(Pe.x,Ae.x))&&(!St.$(Se.y,Pe.y)||!St.$(Pe.y,Ae.y))){var Be=he;isNaN(Be)&&(Be=this.smoothness/3);var Qe=Se.x;Se=Se.y;var Ke=Pe.x;Pe=Pe.y;var lt=Ae.x;Ae=Ae.y;var ct=Be*Q0(Qe,Se,Ke,Pe);Be*=Q0(Ke,Pe,lt,Ae),St.$(Se,Pe)&&St.$(Ke,lt)&&(Ke>Qe?Ae>Pe?(z.x=Ke-ct,z.y=Pe-ct,b.x=Ke+Be,b.y=Pe+Be):(z.x=Ke-ct,z.y=Pe+ct,b.x=Ke+Be,b.y=Pe-Be):Ae>Pe?(z.x=Ke+ct,z.y=Pe-ct,b.x=Ke-Be,b.y=Pe+Be):(z.x=Ke+ct,z.y=Pe+ct,b.x=Ke-Be,b.y=Pe-Be)),St.$(Qe,Ke)&&St.$(Pe,Ae)&&(Pe>Se?(lt>Ke?(z.x=Ke-ct,z.y=Pe-ct,b.x=Ke+Be):(z.x=Ke+ct,z.y=Pe-ct,b.x=Ke-Be),b.y=Pe+Be):(lt>Ke?(z.x=Ke-ct,z.y=Pe+ct,b.x=Ke+Be):(z.x=Ke+ct,z.y=Pe+ct,b.x=Ke-Be),b.y=Pe-Be)),(St.$(Qe,Ke)&&St.$(Ke,lt)||St.$(Se,Pe)&&St.$(Pe,Ae))&&(Qe=.5*(Qe+lt),Se=.5*(Se+Ae),z.x=Qe,z.y=Se,b.x=Qe,b.y=Se),(ge===1||ge===2&&St.$(ee.x,this.i(0).x)&&St.$(ee.y,this.i(0).y))&&(x.x=.5*(ee.x+le.x),x.y=.5*(ee.y+le.y)),Lh(re,x.x-E,x.y-oe,z.x-E,z.y-oe,le.x-E,le.y-oe),y.set(z),x.set(b),ee=le}}le=ee.x,ee=ee.y,he=this.i(this.pointsCount-1),this.computeShortLength(!1)!==0&&(he=Ic(this,he.copy(),!1,ri)),le=.5*(le+he.x),ee=.5*(ee+he.y),Lh(re,b.x-E,b.y-oe,le-E,ee-oe,he.x-E,he.y-oe),je.free(y),je.free(x),je.free(z),je.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),ee=this.i(x),x===y-1&&this.computeShortLength(!1)!==0&&(ee=Ic(this,ee.copy(),!1,ri)),Lh(re,z.x-E,z.y-oe,b.x-E,b.y-oe,ee.x-E,ee.y-oe);else{for(z=je.alloc(),z.assign(this.i(0)),b=je.alloc(),b.assign(z),ee=this.computeCorner(),ge=1,le=0;ge<y;){if(ge=Jv(this,z,ge,1<ge),he=this.i(ge),ge>=y-1){if(!z.D(he))this.computeShortLength(!1)!==0&&(he=Ic(this,he.copy(),!1,ri)),Rc(this,re,-E,-oe,z,he,x);else if(le===0)for(ge=1;ge<y;)b.assign(z),he=this.i(ge++),Rc(this,re,-E,-oe,z,he,x),z.assign(he);break}if(le=Jv(this,he,ge+1,ge<y-3),ge=-E,Qe=-oe,Se=he,Ke=this.i(le),Be=x,St.B(z.y,Se.y)&&St.B(Se.x,Ke.x))if(Ae=Math.min(ee,Math.abs(Se.x-b.x)/2),Ae=ct=Math.min(Ae,Math.abs(Ke.y-Se.y)/2),St.B(Ae,0))Rc(this,re,ge,Qe,z,Se,Be),z.assign(Se);else{var ft=Se.x,Et=Se.y;Pe=ft,lt=Et,Se.x>z.x?ft=Se.x-Ae:ft=Se.x+Ae,Ke.y>Se.y?lt=Se.y+ct:lt=Se.y-ct,Ke=je.allocAt(ft,Et),Rc(this,re,ge,Qe,z,Ke,Be),je.free(Ke),Z0(re,Se.x+ge,Se.y+Qe,Pe+ge,lt+Qe),z.h(Pe,lt)}else St.B(z.x,Se.x)&&St.B(Se.y,Ke.y)?(Ae=Math.min(ee,Math.abs(Se.y-b.y)/2),Ae=ct=Math.min(Ae,Math.abs(Ke.x-Se.x)/2),St.B(ct,0)?(Rc(this,re,ge,Qe,z,Se,Be),z.assign(Se)):(ft=Se.x,Et=Se.y,Pe=ft,lt=Et,Se.y>z.y?Et=Se.y-Ae:Et=Se.y+Ae,Ke.x>Se.x?Pe=Se.x+ct:Pe=Se.x-ct,Ke=je.allocAt(ft,Et),Rc(this,re,ge,Qe,z,Ke,Be),je.free(Ke),Z0(re,Se.x+ge,Se.y+Qe,Pe+ge,lt+Qe),z.h(Pe,lt))):(Rc(this,re,ge,Qe,z,Se,Be),z.assign(Se));b.assign(he),ge=le}je.free(z)}W0=re}else re=this.i(1).copy(),re.x-=E,re.y-=oe,this.computeShortLength(!0)!==0&&(b=Ic(this,b,!0,z)),this.computeShortLength(!1)!==0&&(re=Ic(this,re,!1,z)),a.type=Pn.j,a.startX=b.x,a.startY=b.y,a.endX=re.x,a.endY=re.y;return this.lk=!0,a};function Q0(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),St.$(a,0)?y:St.$(y,0)?a:Math.sqrt(a*a+y*y)))}function Ic(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=Q0(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=Q0(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 Jv(a,y,x,E){for(var b=a.pointsCount,z=y;St.$(y.x,z.x)&&St.$(y.y,z.y);){if(x>=b)return b-1;z=a.i(x++)}if(!St.$(y.x,z.x)&&!St.$(y.y,z.y))return x-1;for(var ee=z;St.$(y.x,z.x)&&St.$(z.x,ee.x)&&(!E||(y.y>=z.y?z.y>=ee.y:z.y<=ee.y))||St.$(y.y,z.y)&&St.$(z.y,ee.y)&&(!E||(y.x>=z.x?z.x>=ee.x:z.x<=ee.x));){if(x>=b)return b-1;ee=a.i(x++)}return x-2}Kn.prototype.computeJumpLength=function(){return 10};function Rc(a,y,x,E,b,z,ee){if(!ee&&ec(a)){ee=a.computeJumpLength();var re=ee/2,oe=[],le=0;if(a.isVisible()&&(le=Bx(a,b,z,oe)),0<le){if(St.B(b.y,z.y))if(b.x<z.x)for(var he=0;he<le;){var ge=Math.max(b.x,Math.min(oe[he++]-re,z.x-ee));y.lineTo(ge+x,z.y+E);for(var Se=ge+x,Pe=Math.min(ge+ee,z.x);he<le&&(ge=oe[he],ge<Pe+ee);)he++,Pe=Math.min(ge+re,z.x);ge=z.y-ee+E,Pe+=x;var Ae=z.y+E;a.curve===Bh?jf(y,Pe,Ae,!1):Lh(y,Se,ge,Pe,ge,Pe,Ae)}else for(--le;0<=le;){for(he=Math.min(b.x,Math.max(oe[le--]+re,z.x+ee)),y.lineTo(he+x,z.y+E),Se=he+x,ge=Math.max(he-ee,z.x);0<=le&&(he=oe[le],he>ge-ee);)le--,ge=Math.max(he-re,z.x);he=z.y-ee+E,ge+=x,Pe=z.y+E,a.curve===Bh?jf(y,ge,Pe,!1):Lh(y,Se,he,ge,he,ge,Pe)}else if(St.B(b.x,z.x))if(b.y<z.y)for(he=0;he<le;){for(ge=Math.max(b.y,Math.min(oe[he++]-re,z.y-ee)),y.lineTo(z.x+x,ge+E),Se=ge+E,ge=Math.min(ge+ee,z.y);he<le&&(Pe=oe[he],Pe<ge+ee);)he++,ge=Math.min(Pe+re,z.y);Pe=z.x-ee+x,Ae=z.x+x,ge+=E,a.curve===Bh?jf(y,Ae,ge,!1):Lh(y,Pe,Se,Pe,ge,Ae,ge)}else for(--le;0<=le;){for(he=Math.min(b.y,Math.max(oe[le--]+re,z.y+ee)),y.lineTo(z.x+x,he+E),Se=he+E,he=Math.max(he-ee,z.y);0<=le&&(ge=oe[le],ge>he-ee);)le--,he=Math.max(ge-re,z.y);ge=z.x-ee+x,Pe=z.x+x,he+=E,a.curve===Bh?jf(y,Pe,he,!1):Lh(y,ge,Se,ge,he,Pe,he)}}}y.lineTo(z.x+x,z.y+E)}function Bx(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 ee=z.length,re=0;re<ee;re++){var oe=z[re];if(oe instanceof Kn){if(oe===a)return 0<E.length&&E.sort(function(he,ge){return he-ge}),E.length;if(oe.isVisible()&&ec(oe)){var le=oe.routeBounds;le.w()&&a.routeBounds.Yc(le)&&!a.usesSamePort(oe)&&(le=oe.path,le!==null&&le.Ed()&&Nx(y,x,E,oe))}}}}}return 0<E.length&&E.sort(function(he,ge){return he-ge}),E.length}function Nx(a,y,x,E){for(var b=St.B(a.y,y.y),z=E.pointsCount,ee=E.i(0),re=je.alloc(),oe=1;oe<z;oe++){var le=E.i(oe);if(oe<z-1){var he=E.i(oe+1);if(ee.y===le.y&&le.y===he.y){if(le.x>ee.x&&he.x>=le.x||le.x<ee.x&&he.x<=le.x)continue}else if(ee.x===le.x&&le.x===he.x&&(le.y>ee.y&&he.y>=le.y||le.y<ee.y&&he.y<=le.y))continue}e:{he=a.x;var ge=a.y,Se=y.x,Pe=y.y,Ae=ee.x;ee=ee.y;var Be=le.x,Qe=le.y;if(St.B(he,Se)){if(!St.B(ge,Pe)&&St.B(ee,Qe)&&Math.min(ge,Pe)<ee&&Math.max(ge,Pe)>ee&&Math.min(Ae,Be)<he&&Math.max(Ae,Be)>he&&!St.B(Ae,Be)){re.x=he,re.y=ee,he=!0;break e}}else if(St.B(ge,Pe)&&St.B(Ae,Be)&&Math.min(he,Se)<Ae&&Math.max(he,Se)>Ae&&Math.min(ee,Qe)<ge&&Math.max(ee,Qe)>ge&&!St.B(ee,Qe)){re.x=Ae,re.y=ge,he=!0;break e}re.x=0,re.y=0,he=!1}he&&(b?x.push(re.x):x.push(re.y)),ee=le}je.free(re)}function ec(a){return a=a.curve,a===Wf||a===Bh}function J0(a,y){(y||ec(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()))}Kn.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 ee=b.length,re=0;re<ee;re++){var oe=b[re];oe instanceof Kn&&(oe===this?z=!0:z&&iS(this,oe,a))}}else if(E)for(z=b.Pa.s,b=z.length,ee=0;ee<b;ee++)re=z[ee],re instanceof Kn&&iS(this,re,a)}}}}};function iS(a,y,x){if(y!==null&&y.lk&&y.fd&&ec(y)){var E=y.routeBounds;E.w()&&(a.routeBounds.Yc(E)||x.Yc(E))&&(a.usesSamePort(y)||y.qc())}}Kn.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},Kn.prototype.isVisible=function(){if(!Ki.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},Kn.prototype.Zb=function(a){if(Ki.prototype.Zb.call(this,a),a&&J0(this,!1),this.Sf!==null&&this.Sf.Sl(),this.wd!==null)for(var y=this.wd.iterator;y.next();)y.value.Zb(a)},Kn.prototype.computeAdjusting=function(){return this.isAvoiding&&this.diagram!==null&&this.diagram.animationManager.defaultAnimation.isAnimating?op:this.qk};function ip(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,ee=y.jb.s,re=ee.length,oe=0;oe<re;oe++){var le=ee[oe];(le.ef===y&&le.ff===E&&le.uf===x&&le.vf===b||le.ef===x&&le.ff===b&&le.uf===y&&le.vf===E)&&(z===null?z=le:(a===null&&(a=[],a.push(z)),a.push(le)))}if(a!==null){for(z=Y1(y,x,E,b),z===null&&(z=new nm(y,E,x,b),V1(y,z),V1(x,z)),z.links=a,y=0;y<a.length;y++)a[y].Sf=z;z.Sl()}}}}function rp(a){var y=a.Sf;y!==null&&isNaN(a.curviness)&&(a.Sf=null,a=y.links.indexOf(a),0<=a&&(xi(y.links,a),y.Sl()))}Kn.prototype.ph=function(){return!0},It.Object.defineProperties(Kn.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&&Y0(y,this,x),rp(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 ee=!0;E!==null&&(ee=E.aa,E.aa=!0),z(this,x,b),E!==null&&(E.aa=ee)}a!==null&&(this.uf!==a&&V0(a,this,b),ip(this),this.C(1)),this.g("fromNode",y,a),zf(this)}}},fromPortId:{get:function(){return this.ff},set:function(a){var y=this.ff;if(y!==a){var x=this.fromPort;x!==null&&$s(x),rp(this),this.ff=a;var E=this.fromPort;E!==null&&$s(E);var b=this.diagram;if(b!==null){var z=this.data,ee=b.model;z!==null&&ee.ri()&&ee.xv(z,a)}x!==E&&(this.Wf=null,this.bb(),z=this.fromPortChanged,z!==null&&(ee=!0,b!==null&&(ee=b.aa,b.aa=!0),z(this,x,E),b!==null&&(b.aa=ee))),ip(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&&Y0(y,this,x),rp(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 ee=!0;E!==null&&(ee=E.aa,E.aa=!0),z(this,x,b),E!==null&&(E.aa=ee)}a!==null&&(this.ef!==a&&V0(a,this,b),ip(this),this.C(1)),this.g("toNode",y,a),zf(this)}}},toPortId:{get:function(){return this.vf},set:function(a){var y=this.vf;if(y!==a){var x=this.toPort;x!==null&&$s(x),rp(this),this.vf=a;var E=this.toPort;E!==null&&$s(E);var b=this.diagram;if(b!==null){var z=this.data,ee=b.model;z!==null&&ee.ri()&&ee.Cv(z,a)}x!==E&&(this.Wf=null,this.bb(),z=this.toPortChanged,z!==null&&(ee=!0,b!==null&&(ee=b.aa,b.aa=!0),z(this,x,E),b!==null&&(b.aa=ee))),ip(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:Eo},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&&$s(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&&Tn(a,">= 0",Kn,"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:Eo},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&&$s(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&&Tn(a,">= 0",Kn,"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?Fr: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&&np(this.fromNode),this.toNode!==null&&np(this.toNode))}},path:{get:function(){var a=this.Pb();return a instanceof Lr?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()===hl&&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),St.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 ee=this.i(z-2);z+3>=E&&(z=E-1);var re=this.i(z-1),oe=this.i(z);St.Dl(b.x,b.y,ee.x,ee.y,re.x,re.y,oe.x,oe.y,.5,a),y=Math.min(oe.x,y),x=Math.min(oe.y,x),b=oe}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 je)}},midAngle:{get:function(){return this.vg(),this.computeMidAngle()}},flattenedLengths:{get:function(){if(this.cq===null){this.fd||_0(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);St.$(E.x,b.x)?(E=b.y-E.y,0>E&&(E=-E)):St.$(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 Mn,E=0;E<a.length/2;E++)b=new je(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(!en(z)||typeof z.x!="number"||isNaN(z.x)||typeof z.y!="number"||isNaN(z.y)){E=!1;break}}if(E)for(x=new Mn,E=0;E<a.length;E++)b=a[E],x.add(new je(b.x,b.y).freeze())}}else if(a instanceof Mn)for(x=a.copy(),a=x.iterator;a.next();)a.value.freeze();else et("Link.points value is not an instance of List or Array: "+a);x.freeze(),this.Nb=x,this.qc(),_0(this),a=this.diagram,a!==null&&(a.pi||a.undoManager.isUndoingRedoing||a.As.add(this),a.animationManager.zb&&df(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||!Zf(this.computeSpot(!0))?1:0}},lastPickIndex:{get:function(){var a=this.pointsCount;return a===0?0:2>=a?a-1:this.isOrthogonal||!Zf(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(),J0(this,y===Bh||y===Wf||a===Bh||a===Wf),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(),J0(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)}}}),Kn.prototype.invalidateOtherJumpOvers=Kn.prototype.Xo,Kn.prototype.findClosestSegment=Kn.prototype.ez,Kn.prototype.updateRoute=Kn.prototype.vg,Kn.prototype.invalidateRoute=Kn.prototype.bb,Kn.prototype.rollbackRoute=Kn.prototype.rv,Kn.prototype.commitRoute=Kn.prototype.zf,Kn.prototype.startRoute=Kn.prototype.uh,Kn.prototype.clearPoints=Kn.prototype.Fj,Kn.prototype.removePoint=Kn.prototype.pv,Kn.prototype.addPointAt=Kn.prototype.yf,Kn.prototype.addPoint=Kn.prototype.ne,Kn.prototype.insertPointAt=Kn.prototype.m,Kn.prototype.insertPoint=Kn.prototype.Kz,Kn.prototype.setPointAt=Kn.prototype.L,Kn.prototype.setPoint=Kn.prototype.dd,Kn.prototype.getPoint=Kn.prototype.i,Kn.prototype.getOtherPort=Kn.prototype.Cz,Kn.prototype.getOtherNode=Kn.prototype.To;var jc=null,zc=null,qv=new yn(Kn,"Normal",1),Tx=new yn(Kn,"Orthogonal",2),Ox=new yn(Kn,"AvoidsNodes",6),rS=new yn(Kn,"AvoidsNodesStraight",7),Fs=new yn(Kn,"None",0),hl=new yn(Kn,"Bezier",9),Bh=new yn(Kn,"JumpGap",10),Wf=new yn(Kn,"JumpOver",11),op=new yn(Kn,"End",17),q0=new yn(Kn,"Scale",18),$0=new yn(Kn,"Stretch",19),ap=new yn(Kn,"OrientAlong",21),sp=new yn(Kn,"OrientPlus90",22),lp=new yn(Kn,"OrientMinus90",23),$v=new yn(Kn,"OrientOpposite",24),em=new yn(Kn,"OrientUpright",25),up=new yn(Kn,"OrientPlus90Upright",26),hp=new yn(Kn,"OrientMinus90Upright",27),tm=new yn(Kn,"OrientUpright45",28),oS=16,aS=14,dp=8;Kn.className="Link",Kn.Normal=qv,Kn.Orthogonal=Tx,Kn.AvoidsNodes=Ox,Kn.AvoidsNodesStraight=rS,Kn.None=Fs,Kn.Bezier=hl,Kn.JumpGap=Bh,Kn.JumpOver=Wf,Kn.End=op,Kn.Scale=q0,Kn.Stretch=$0,Kn.OrientAlong=ap,Kn.OrientPlus90=sp,Kn.OrientMinus90=lp,Kn.OrientOpposite=$v,Kn.OrientUpright=em,Kn.OrientPlus90Upright=up,Kn.OrientMinus90Upright=hp,Kn.OrientUpright45=tm,Kn.EndSegmentStep=8,Kn.CurvinessStart=oS,Kn.SpacingMin=aS,Kn.OrthoShortCut=dp;function nm(a,y,x,E){rr(this),this.Fe=this.qq=!1,this.Ds=a,this.Ox=y,this.cv=x,this.Px=E,this.links=[]}nm.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},nm.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))}},nm.className="LinkBundle";function cp(a){rr(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}cp.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=ey,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 Hf(a,y,x){return a.Nd<=y&&y<=a.En&&a.Od<=x&&x<=a.Fn}function Zu(a,y,x){return Hf(a,y,x)?(y-=a.Nd,y/=a.rc,x-=a.Od,x/=a.sc,a.ac[y|0][x|0]):ey}function sS(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]>=tc&&(x[E]=ey)}cp.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]===Nh)return!1}return!0};function Wu(a,y,x,E,b,z,ee,re,oe){if(!(y<z||y>ee||x<re||x>oe)){var le=y|0,he=x|0,ge=a.ac[le][he];if(ge>=tc&&ge<Gf)for(b?he+=E:le+=E,ge+=1;z<=le&&le<=ee&&re<=he&&he<=oe&&!(ge>=a.ac[le][he]);)a.ac[le][he]=ge,ge+=1,b?he+=E:le+=E;if(le=b?he:le,b)if(0<E)for(x+=E;x<le;x+=E)Wu(a,y,x,1,!b,z,ee,re,oe),Wu(a,y,x,-1,!b,z,ee,re,oe);else for(x+=E;x>le;x+=E)Wu(a,y,x,1,!b,z,ee,re,oe),Wu(a,y,x,-1,!b,z,ee,re,oe);else if(0<E)for(y+=E;y<le;y+=E)Wu(a,y,x,1,!b,z,ee,re,oe),Wu(a,y,x,-1,!b,z,ee,re,oe);else for(y+=E;y>le;y+=E)Wu(a,y,x,1,!b,z,ee,re,oe),Wu(a,y,x,-1,!b,z,ee,re,oe)}}function im(a,y,x,E,b,z,ee,re,oe){y|=0,x|=0;var le=Nh,he=tc;for(a.ac[y][x]=he;le===Nh&&y>z&&y<ee&&x>re&&x<oe;)he+=1,a.ac[y][x]=he,b?x+=E:y+=E,le=a.ac[y][x]}function rm(a,y,x,E,b,z,ee,re,oe){y|=0,x|=0;var le=Nh,he=Gf;for(a.ac[y][x]=he;le===Nh&&y>z&&y<ee&&x>re&&x<oe;)a.ac[y][x]=he,b?x+=E:y+=E,le=a.ac[y][x]}function lS(a,y,x,E,b,z,ee){if(a.ac!==null){a.abort=!1;var re=y.x,oe=y.y;if(Hf(a,re,oe)){re-=a.Nd,re/=a.rc,oe-=a.Od,oe/=a.sc;var le=E.x,he=E.y;if(Hf(a,le,he))if(le-=a.Nd,le/=a.rc,he-=a.Od,he/=a.sc,1>=Math.abs(re-le)&&1>=Math.abs(oe-he))a.abort=!0;else{var ge=z.x;E=z.y,y=z.x+z.width;var Se=z.y+z.height;ge-=a.Nd,ge/=a.rc,E-=a.Od,E/=a.sc,y-=a.Nd,y/=a.rc,Se-=a.Od,Se/=a.sc,z=Math.max(0,Math.min(a.di,ge|0)),y=Math.min(a.di,Math.max(0,y|0)),ge=Math.max(0,Math.min(a.ei,E|0)),Se=Math.min(a.ei,Math.max(0,Se|0)),E=a.ac,re|=0,oe|=0,le|=0,he|=0;var Pe=x===0||x===90?1:-1;if(x=x===90||x===270,E[re][oe]===Nh?(im(a,re,oe,Pe,x,z,y,ge,Se),im(a,re,oe,1,!x,z,y,ge,Se),im(a,re,oe,-1,!x,z,y,ge,Se)):im(a,re,oe,Pe,x,re,oe,re,oe),E[le][he]===Nh?(rm(a,le,he,b===0||b===90?1:-1,b===90||b===270,z,y,ge,Se),rm(a,le,he,1,!(b===90||b===270),z,y,ge,Se),rm(a,le,he,-1,!(b===90||b===270),z,y,ge,Se)):rm(a,le,he,Pe,x,le,he,le,he),x=mi(),ee&&uS(a,le,he,b,re,oe,x))for((x[0]!==le||x[1]!==he)&&(x.unshift(he),x.unshift(le)),(x[x.length-2]!==re||x[x.length-1]!==oe)&&(x.push(re),x.push(oe)),a=tc,b=x[x.length-2],ee=x[x.length-1],E[b][ee]=a++,z=x.length-4;0<=z;z-=2)for(b=x[z+2],ee=x[z+3],y=x[z],le=x[z+1];y>b?b++:y<b?b--:le>ee?ee++:le<ee&&ee--,E[b][ee]=a++,b!==y||ee!==le;);else Wu(a,re,oe,1,!1,z,y,ge,Se),Wu(a,re,oe,-1,!1,z,y,ge,Se),Wu(a,re,oe,1,!0,z,y,ge,Se),Wu(a,re,oe,-1,!0,z,y,ge,Se);sn(x)}}}}function uS(a,y,x,E,b,z,ee){for(var re=a.ac,oe=y,le=x;;){if(oe===b&&le===z)return!0;var he=oe,ge=le;if(E===0)if(he<b)he++;else break;else if(E===90)if(ge<z)ge++;else break;else if(E===180)if(he>b)he--;else break;else if(ge>z)ge--;else break;var Se=re[he][ge];if(Se===0||Se===ty)break;oe=he,le=ge}for(;;){if(he=E,ge=oe,Se=le,E===0?Se<z?(he=90,Se++):Se>z&&(he=270,Se--):E===90?ge<b?(he=0,ge++):ge>b&&(he=180,ge--):E===180?Se<z?(he=90,Se++):Se>z&&(he=270,Se--):ge<b?(he=0,ge++):ge>b&&(he=180,ge--),ge=re[ge][Se],he!==E&&ge!==0&&ge!==ty){if(ee.push(oe),ee.push(le),uS(a,oe,le,he,b,z,ee))return!0;ee.pop(),ee.pop()}if(re[oe][le]=ty,E===0){if(oe===y)return!1;oe--}else if(E===90){if(le===x)return!1;le--}else if(E===180){if(oe===y)return!1;oe++}else{if(le===x)return!1;le++}}}It.Object.defineProperties(cp.prototype,{bounds:{get:function(){return new vt(this.Nd,this.Od,this.En-this.Nd,this.Fn-this.Od)}},Ho:{get:function(){return this.rc},set:function(a){0<a&&a!==this.rc&&(this.rc=a,this.initialize(this.bounds))}},Go:{get:function(){return this.sc},set:function(a){0<a&&a!==this.sc&&(this.sc=a,this.initialize(this.bounds))}}});var Nh=0,tc=1,Gf=999999,ey=Gf+1,ty=Gf+2;cp.className="PositionArray";function Zc(){rr(this),this.port=this.node=null,this.pe=[],this.ap=!1}Zc.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 Ix(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}Zc.prototype.Sl=function(){this.pe.length=0};function hS(a,y){var x=a.pe;if(x.length===0){e:if(!a.ap){x=a.ap,a.ap=!0;var E=null,b=a.node,z=b instanceof Pr?b:null;if(z===null||z.isSubGraphExpanded)var ee=b.isTreeExpanded?b.findLinksConnected(a.port.portId):b.qx();else{if(!z.actualBounds.w()){a.ap=x;break e}E=z,ee=E.Lu()}z=a.pe.length=0;var re=a.port.ga(Ti,je.alloc()),oe=a.port.ga(An,je.alloc());for(b=vt.allocAt(re.x,re.y,0,0),b.Ye(oe),je.free(re),je.free(oe),re=je.allocAt(b.x+b.width/2,b.y+b.height/2),oe=a.port.li(),ee=ee.iterator;ee.next();){var le=ee.value;if(le.isVisible()&&le.fromPort!==le.toPort){var he=le.fromPort===a.port||le.fromNode!==null&&le.fromNode.Td(E),ge=le.computeSpot(he,a.port);if(ge.$c()&&(he=he?le.toPort:le.fromPort,he!==null)){var Se=he.part;if(Se!==null){var Pe=Se.findVisibleNode();Pe!==null&&Pe!==Se&&(Se=Pe,he=Se.port),he=le.computeOtherPoint(Se,he),Se=re.ab(he),Se-=oe,0>Se?Se+=360:360<=Se&&(Se-=360),ge=Ix(b,ge,Se,le.isOrthogonal),ge===0?(ge=4,180<Se&&(Se-=360)):ge===90?(ge=8,270<Se&&(Se-=360)):ge===180?ge=2:(ge=1,90>Se&&(Se+=360)),Pe=a.pe[z],Pe===void 0?(Pe=new ny(le,Se,ge),a.pe[z]=Pe):(Pe.link=le,Pe.angle=Se,Pe.Nc=ge),Pe.hv.set(he),z++}}}}for(je.free(re),a.pe.sort(Zc.prototype.j),oe=a.pe.length,E=-1,z=re=0;z<oe;z++)ee=a.pe[z],ee!==void 0&&(ee.Nc!==E&&(E=ee.Nc,re=0),ee.Uo=re,re++);for(E=-1,re=0,z=oe-1;0<=z;z--)oe=a.pe[z],oe!==void 0&&(oe.Nc!==E&&(E=oe.Nc,re=oe.Uo+1),oe.Gl=re);if(z=a.pe,ge=a.port,E=a.node.portSpreading,re=je.alloc(),oe=je.alloc(),ee=je.alloc(),le=je.alloc(),ge.ga(Ti,re),ge.ga(Zi,oe),ge.ga(An,ee),ge.ga(hr,le),Pe=Se=he=ge=0,E===Yv)for(var Ae=0;Ae<z.length;Ae++){var Be=z[Ae];if(Be!==null){var Qe=Be.link.computeThickness();switch(Be.Nc){case 8:Se+=Qe;break;case 2:Pe+=Qe;break;case 1:ge+=Qe;break;default:case 4:he+=Qe}}}var Ke=Ae=0,lt=1,ct=Be=0;for(Qe=0;Qe<z.length;Qe++){var ft=z[Qe];if(ft!==null){if(Ae!==ft.Nc){switch(Ae=ft.Nc,Ae){case 8:var Et=ee;Ke=le;break;case 2:Et=le,Ke=re;break;case 1:Et=re,Ke=oe;break;default:case 4:Et=oe,Ke=ee}switch(Be=Ke.x-Et.x,ct=Ke.y-Et.y,Ae){case 8:Se>Math.abs(Be)?(lt=Math.abs(Be)/Se,Se=Math.abs(Be)):lt=1;break;case 2:Pe>Math.abs(ct)?(lt=Math.abs(ct)/Pe,Pe=Math.abs(ct)):lt=1;break;case 1:ge>Math.abs(Be)?(lt=Math.abs(Be)/ge,ge=Math.abs(Be)):lt=1;break;default:case 4:he>Math.abs(ct)?(lt=Math.abs(ct)/he,he=Math.abs(ct)):lt=1}Ke=0}var Gt=ft.Zo;if(E===Yv){switch(ft=ft.link.computeThickness(),ft*=lt,Gt.set(Et),Ae){case 8:Gt.x=Et.x+Be/2+Se/2-Ke-ft/2;break;case 2:Gt.y=Et.y+ct/2+Pe/2-Ke-ft/2;break;case 1:Gt.x=Et.x+Be/2-ge/2+Ke+ft/2;break;default:case 4:Gt.y=Et.y+ct/2-he/2+Ke+ft/2}Ke+=ft}else{var si=.5;E===K0&&(si=(ft.Uo+1)/(ft.Gl+1)),Gt.x=Et.x+Be*si,Gt.y=Et.y+ct*si}}}for(je.free(re),je.free(oe),je.free(ee),je.free(le),Et=a.pe,z=0;z<Et.length;z++)E=Et[z],E!==null&&(E.Ju=a.computeEndSegmentLength(E));a.ap=x,vt.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}Zc.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},Zc.prototype.computeEndSegmentLength=function(a){var y=a.link,x=y.computeEndSegmentLength(this.node,this.port,Mi,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)},Zc.className="Knot";function ny(a,y,x){this.link=a,this.angle=y,this.Nc=x,this.hv=new je,this.Gl=this.Uo=0,this.Zo=new je,this.Ju=0}ny.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()},ny.className="LinkInfo";function $o(a){rr(this),this.o=this.H=null,this.Gh=this.sn=!0,this.yn=!1,this.Am=new je(0,0).freeze(),this.vn=!0,this.Em=this.un=null,this.xn=!1,this.j=null,a&&Object.assign(this,a)}$o.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},$o.prototype.copy=function(){var a=new this.constructor;return this.cloneProtected(a),a},$o.prototype.qb=function(){},$o.prototype.toString=function(){var a=ki(this.constructor);return a+="(",this.group!==null&&(a+=" in "+this.group),this.diagram!==null&&(a+=" for "+this.diagram),a+")"},$o.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())}}},$o.prototype.createNetwork=function(){return new Zo(this)},$o.prototype.makeNetwork=function(a){var y=this.createNetwork();return a instanceof Yt?(y.lg(a.nodes,!0),y.lg(a.links,!0)):a instanceof Pr?y.lg(a.memberParts):y.lg(a.iterator),y},$o.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")}},$o.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()}},$o.prototype.doLayout=function(a){var y=new ln;a instanceof Yt?(dd(this,y,a.nodes,!0,this.rh,!0,!1,!0),dd(this,y,a.parts,!0,this.rh,!0,!1,!0)):a instanceof Pr?dd(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},$o.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,ee=0;for(a=a.iterator;a.next();){var re=a.value;fp(re);var oe=re.measuredBounds,le=oe.width;oe=oe.height,re.moveTo(E,b),re instanceof Pr&&(re.rh=!1),E+=Math.max(le,50)+20,ee=Math.max(ee,Math.max(oe,50)),z>=y-1?(z=0,E=x,b+=ee+20,ee=0):z++}},$o.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,ee=this.network.vertexes.iterator;ee.next();){var re=ee.value.node;if(!(re===null||re instanceof Kn)&&(fp(re),this.rh(re))){var oe=re.measuredBounds,le=oe.width;oe=oe.height,re.moveTo(x,E),re instanceof Pr&&(re.rh=!1),x+=Math.max(le,50)+20,z=Math.max(z,Math.max(oe,50)),b>=a-1?(b=0,x=y,E+=z+20,z=0):b++}}},$o.prototype.rh=function(a){return!!(!a.location.w()||a instanceof Pr&&a.rh)};function dd(a,y,x,E,b,z,ee,re){for(x=x.iterator;x.next();){var oe=x.value;E&&!oe.isTopLevel||b!==null&&!b(oe)||!oe.canLayout()||(z&&oe instanceof ui?oe.isLinkLabel||(oe instanceof Pr&&oe.layout===null?dd(a,y,oe.memberParts,!1,b,z,ee,re):(fp(oe),y.add(oe))):ee&&oe instanceof Kn?y.add(oe):!re||!oe.Zc()||oe instanceof ui||(fp(oe),y.add(oe)))}}function fp(a){var y=a.actualBounds;(y.width===0||y.height===0||isNaN(y.width)||isNaN(y.height))&&a.Va()}$o.prototype.ni=function(a,y){var x=this.boundsComputation;return x!==null?(y||(y=new vt),x(a,this,y)):y?(y.set(a.actualBounds),y):a.actualBounds},$o.prototype.ex=function(a){var y=new ln;return a instanceof Yt?(dd(this,y,a.nodes,!0,null,!0,!0,!0),dd(this,y,a.links,!0,null,!0,!0,!0),dd(this,y,a.parts,!0,null,!0,!0,!0)):a instanceof Pr?dd(this,y,a.memberParts,!1,null,!0,!0,!0):dd(this,y,a.iterator,!1,null,!0,!0,!0),y},$o.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(Ti),(isNaN(x.x)||isNaN(x.y))&&x.set(a),a=y.padding,x.x+=a.left,x.y+=a.top),x}return a},It.Object.defineProperties($o.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())}}}),$o.prototype.collectParts=$o.prototype.ex,$o.prototype.getLayoutBounds=$o.prototype.ni,$o.prototype.invalidateLayout=$o.prototype.C,$o.className="Layout";function Zo(a){rr(this),this.Sc=a,this.wf=new ln,this.ye=new ln,this.Es=new Ut,this.zs=new Ut}Zo.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 ln,this.ye=new ln,this.Es=new Ut,this.zs=new Ut},Zo.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},Zo.prototype.createVertex=function(){return new Ba(this)},Zo.prototype.createEdge=function(){return new el(this)},Zo.prototype.lg=function(a,y,x){if(a!==null){for(y===void 0&&(y=!1),x===void 0&&(x=null),x===null&&(x=function(ee){if(ee instanceof ui)return!ee.isLinkLabel;if(ee instanceof Kn){var re=ee.fromNode;return re===null||re.isLinkLabel?!1:(ee=ee.toNode,!(ee===null||ee.isLinkLabel))}return!1}),a=a.iterator;a.next();){var E=a.value;if(E instanceof ui&&(!y||E.isTopLevel)&&E.canLayout()&&x(E)){if(E instanceof Pr&&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 Kn&&(!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))}}},Zo.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},Le=Zo.prototype,Le.dh=function(a){if(a!==null){this.wf.add(a);var y=a.node;y!==null&&this.Es.add(y,a),a.network=this}},Le.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},Le.Iu=function(a){if(a!==null&&dS(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 dS(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}Le.Zy=function(a){a!==null&&(a=this.ki(a),a!==null&&this.Iu(a))},Le.ki=function(a){return a===null?null:this.Es.I(a)},Le.Bo=function(a){if(a!==null){iy(this,a);var y=a.toVertex;y!==null&&y.Cl(a),y=a.fromVertex,y!==null&&y.zl(a)}};function iy(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}}Le.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},Le.Mj=function(a){if(a!==null){var y=a.toVertex;y!==null&&y.Kl(a),y=a.fromVertex,y!==null&&y.Jl(a),ry(this,a)}};function ry(a,y){y!==null&&a.ye.remove(y)&&(y=y.link,y!==null&&a.zs.remove(y))}Le.Yy=function(a){a!==null&&(a=this.Lo(a),a!==null&&this.Mj(a))},Le.Lo=function(a){return a===null?null:this.zs.I(a)},Le.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},Le.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))}},Le.Ko=function(){for(var a=mi(),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]);sn(a)},Zo.prototype.deleteArtificialVertexes=function(){for(var a=mi(),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=mi(),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]);sn(a),sn(y)};function Rx(a){for(var y=mi(),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]);sn(y)}Zo.prototype.Zx=function(a){a===void 0&&(a=!0),a&&(this.deleteArtificialVertexes(),Rx(this),this.Ko()),a=new Mn;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),oy(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 oy(a,y,x){if(x!==null&&x.network!==y){dS(a,x),y.dh(x);for(var E=x.sourceEdges;E.next();){var b=E.value;b.network!==y&&(ry(a,b),iy(y,b),oy(a,y,b.fromVertex))}for(E=x.destinationEdges;E.next();)x=E.value,x.network!==y&&(ry(a,x),iy(y,x),oy(a,y,x.toVertex))}}Zo.prototype.dz=function(){for(var a=new ln,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},It.Object.defineProperties(Zo.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}}}),Zo.prototype.findAllParts=Zo.prototype.dz,Zo.prototype.splitIntoSubNetworks=Zo.prototype.Zx,Zo.prototype.deleteSelfEdges=Zo.prototype.Ko,Zo.prototype.reverseEdge=Zo.prototype.gm,Zo.prototype.linkVertexes=Zo.prototype.Zj,Zo.prototype.findEdge=Zo.prototype.Lo,Zo.prototype.deleteLink=Zo.prototype.Yy,Zo.prototype.deleteEdge=Zo.prototype.Mj,Zo.prototype.addLink=Zo.prototype.Dy,Zo.prototype.addEdge=Zo.prototype.Bo,Zo.prototype.findVertex=Zo.prototype.ki,Zo.prototype.deleteNode=Zo.prototype.Zy,Zo.prototype.deleteVertex=Zo.prototype.Iu,Zo.prototype.addNode=Zo.prototype.Bl,Zo.prototype.addVertex=Zo.prototype.dh,Zo.prototype.addParts=Zo.prototype.lg,Zo.className="LayoutNetwork";function Ba(a){rr(this),this.ob=a,this.j=new vt(0,0,10,10).freeze(),this.o=new je(5,5).freeze(),this.Sh=this.ub=null,this.tg=new Mn,this.mg=new Mn}Ba.prototype.clear=function(){this.Sh=this.ub=null,this.tg=new Mn,this.mg=new Mn},Ba.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutVertex#"+_r(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},Ba.prototype.commit=function(){var a=this.ub;if(a!==null){var y=this.bounds,x=a.bounds;en(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 Pr)){x=vt.alloc(),a.Va();var E=this.network.layout.ni(a,x),b=a.locationObject.ga(Ln);if(E.w()&&b.w()){a.moveTo(y.x+this.focusX-(b.x-E.x),y.y+this.focusY-(b.y-E.y)),vt.free(x);return}vt.free(x)}a.moveTo(y.x,y.y)}},Ba.prototype.Cl=function(a){a!==null&&(this.tg.contains(a)||this.tg.add(a))},Ba.prototype.Kl=function(a){a!==null&&this.tg.remove(a)},Ba.prototype.zl=function(a){a!==null&&(this.mg.contains(a)||this.mg.add(a))},Ba.prototype.Jl=function(a){a!==null&&this.mg.remove(a)};function ay(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}It.Object.defineProperties(Ba.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=vt.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),vt.free(x),!(a instanceof Pr)&&(a=a.locationObject.ga(Ln),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 ln,y=this.sourceEdges;y.next();)a.add(y.value.fromVertex);return a.iterator}},destinationVertexes:{get:function(){for(var a=new ln,y=this.destinationEdges;y.next();)a.add(y.value.toVertex);return a.iterator}},vertexes:{get:function(){for(var a=new ln,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 Mn,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}}}),Ba.prototype.deleteDestinationEdge=Ba.prototype.Jl,Ba.prototype.addDestinationEdge=Ba.prototype.zl,Ba.prototype.deleteSourceEdge=Ba.prototype.Kl,Ba.prototype.addSourceEdge=Ba.prototype.Cl,Ba.className="LayoutVertex",Ba.standardComparer=ay,Ba.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 el(a){rr(this),this.nb=a,this.qd=this.kd=this.$k=this.ub=null}el.prototype.clear=function(){this.qd=this.kd=this.$k=this.ub=null},el.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutEdge#"+_r(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},el.prototype.gm=function(){var a=this.kd;this.kd=this.qd,this.qd=a},el.prototype.commit=function(){},el.prototype.Ax=function(a){return this.qd===a?this.kd:this.kd===a?this.qd:null},It.Object.defineProperties(el.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)}}}),el.prototype.getOtherVertex=el.prototype.Ax,el.className="LayoutEdge";function Ja(a){$o.call(this),this.isViewportSized=!0,this.yo=this.zo=NaN,this.yg=new Je(NaN,NaN).freeze(),this.tf=new Je(10,10).freeze(),this.Jb=gp,this.Rb=am,this.nd=pp,this.hd=cS,a&&Object.assign(this,a)}Vt(Ja,$o),Ja.prototype.cloneProtected=function(a){$o.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},Ja.prototype.qb=function(a){a.classType===Ja?a===pp||a===lm||a===sy||a===sm?this.sorting=a:a===am||a===au?this.arrangement=a:a===gp||a===om?this.alignment=a:et("Unknown enum value: "+a):$o.prototype.qb.call(this,a)},Ja.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 Pr)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 sm:b.reverse();break;case pp:b.sort(this.comparer);break;case lm:b.sort(this.comparer),b.reverse()}var z=this.wrappingColumn;isNaN(z)&&(z=0);var ee=this.wrappingWidth;switch(isNaN(ee)&&a!==null?(y=a.padding,ee=Math.max(a.viewportBounds.width-y.left-y.right,0)):ee=Math.max(this.wrappingWidth,0),0>=z&&0>=ee&&(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 om:var re=y,oe=x,le=vt.alloc(),he=Math.max(this.cellSize.width,1);if(!isFinite(he))for(var ge=he=0;ge<b.length;ge++){var Se=this.ni(b[ge],le);he=Math.max(he,Se.width)}if(he=Math.max(he+re,1),ge=Math.max(this.cellSize.height,1),!isFinite(ge))for(Se=ge=0;Se<b.length;Se++){var Pe=this.ni(b[Se],le);ge=Math.max(ge,Pe.height)}ge=Math.max(ge+oe,1),Se=this.arrangement;for(var Ae=Pe=this.arrangementOrigin.x,Be=this.arrangementOrigin.y,Qe=0,Ke=0,lt=0;lt<b.length;lt++){var ct=b[lt],ft=this.ni(ct,le),Et=Math.ceil((ft.width+re)/he)*he,Gt=Math.ceil((ft.height+oe)/ge)*ge;switch(Se){case au:var si=Math.abs(Ae-ft.width);break;default:si=Ae+ft.width}switch((0<z&&Qe>z-1||0<ee&&0<Qe&&si-Pe>ee)&&(E.push(new vt(0,Be,ee+re,Ke)),Qe=0,Ae=Pe,Be+=Ke,Ke=0),Ke=Math.max(Ke,Gt),Se){case au:ft=-ft.width;break;default:ft=0}switch(ct.moveTo(Ae+ft,Be),Se){case au:Ae-=Et;break;default:Ae+=Et}Qe++}E.push(new vt(0,Be,ee+re,Ke)),vt.free(le);break;case gp:for(oe=ee,he=z,ge=y,Se=x,ee=vt.alloc(),Pe=Math.max(this.cellSize.width,1),z=Be=le=0,re=je.alloc(),Ae=0;Ae<b.length;Ae++)Ke=b[Ae],Qe=this.ni(Ke,ee),Ke=bh(Ke,Ke.locationObject,Ke.locationSpot,re),le=Math.max(le,Ke.x),Be=Math.max(Be,Qe.width-Ke.x),z=Math.max(z,Ke.y);switch(Ae=this.arrangement,Ae){case au:le+=ge;break;default:Be+=ge}Pe=isFinite(Pe)?Math.max(Pe+ge,1):Math.max(le+Be,1);var Li=Ke=this.arrangementOrigin.x;for(lt=this.arrangementOrigin.y,Be=0,oe>=le&&(oe-=le),le=ct=0,Et=Math.max(this.cellSize.height,1),ft=z=0,Gt=!0,Qe=je.alloc(),si=0;si<b.length;si++){var wi=b[si],Vn=this.ni(wi,ee),vn=bh(wi,wi.locationObject,wi.locationSpot,re);if(0<Be)switch(Ae){case au:Li=(Li-Ke-(Vn.width-vn.x))/Pe,Li=St.$(Math.round(Li),Li)?Math.round(Li):Math.floor(Li),Li=Li*Pe+Ke;break;default:Li=(Li-Ke+vn.x)/Pe,Li=St.$(Math.round(Li),Li)?Math.round(Li):Math.ceil(Li),Li=Li*Pe+Ke}else switch(Ae){case au:ct=Li+vn.x+Vn.width;break;default:ct=Li-vn.x}switch(Ae){case au:var yr=-(Li+vn.x)+ct;break;default:yr=Li+Vn.width-vn.x-ct}if(0<he&&Be>he-1||0<oe&&0<Be&&yr>oe){for(E.push(new vt(0,Gt?lt-z:lt,oe+ge,ft+z+Se)),Li=0;Li<Be&&si!==Be;Li++){yr=b[si-Be+Li];var ar=bh(yr,yr.locationObject,yr.locationSpot,Qe);yr.moveTo(yr.position.x,yr.position.y+z-ar.y)}ft+=Se,lt=Gt?lt+ft:lt+(ft+z),Be=ft=z=0,Li=Ke,Gt=!1}switch(Li===Ke&&(le=Ae===au?Math.max(le,Vn.width-vn.x):Math.min(le,-vn.x)),z=Math.max(z,vn.y),ft=Math.max(ft,Vn.height-vn.y),isFinite(Et)&&(ft=Math.max(ft,Math.max(Vn.height,Et)-vn.y)),Gt?wi.moveTo(Li-vn.x,lt-vn.y):wi.moveTo(Li-vn.x,lt),Ae){case au:Li-=vn.x+ge;break;default:Li+=Vn.width-vn.x+ge}Be++}if(E.push(new vt(0,lt,oe+ge,(Gt?ft:ft+z)+Se)),b.length!==Be)for(oe=0;oe<Be;oe++)he=b[b.length-Be+oe],ge=bh(he,he.locationObject,he.locationSpot,re),he.moveTo(he.position.x,he.position.y+z-ge.y);if(je.free(re),je.free(Qe),Ae===au)for(b=0;b<E.length;b++)z=E[b],z.width+=le,z.x-=le;else for(b=0;b<E.length;b++)z=E[b],z.x>le&&(z.width+=z.x-le,z.x=le);vt.free(ee)}for(re=z=ee=b=0;re<E.length;re++)oe=E[re],b=Math.min(b,oe.x),ee=Math.min(ee,oe.y),z=Math.max(z,oe.x+oe.width);this.arrangement===au?this.commitLayers(E,new je(b+y/2-(z+b),ee-x/2)):this.commitLayers(E,new je(b-y/2,ee-x/2)),a!==null&&a.eb("Layout"),this.isValidLayout=!0}},Ja.prototype.commitLayers=function(){};function cS(a,y){return a=a.text,y=y.text,a<y?-1:a>y?1:0}It.Object.defineProperties(Ja.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!==gp&&a!==om||(this.Jb=a,this.C())}},arrangement:{get:function(){return this.Rb},set:function(a){this.Rb===a||a!==am&&a!==au||(this.Rb=a,this.C())}},sorting:{get:function(){return this.nd},set:function(a){this.nd===a||a!==sy&&a!==sm&&a!==pp&&a!==lm||(this.nd=a,this.C())}},comparer:{get:function(){return this.hd},set:function(a){this.hd!==a&&(this.hd=a,this.C())}}});var om=new yn(Ja,"Position",0),gp=new yn(Ja,"Location",1),am=new yn(Ja,"LeftToRight",2),au=new yn(Ja,"RightToLeft",3),sy=new yn(Ja,"Forward",4),sm=new yn(Ja,"Reverse",5),pp=new yn(Ja,"Ascending",6),lm=new yn(Ja,"Descending",7);Ja.className="GridLayout",Ja.standardComparer=cS,Ja.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},Ja.Position=om,Ja.Location=gp,Ja.LeftToRight=am,Ja.RightToLeft=au,Ja.Forward=sy,Ja.Reverse=sm,Ja.Ascending=pp,Ja.Descending=lm;function Po(){this.On=new ln,this.Dn=new ln,this.Pa=new ln,this.cf=new Ut,this.bf=new Ut,this.aj=new Ut,this.H=null,this.tp=!1}Le=Po.prototype,Le.clear=function(){this.On.clear(),this.Dn.clear(),this.Pa.clear(),this.cf.clear(),this.bf.clear(),this.aj.clear()},Le.Xe=function(a){this.H=a},Le.oi=function(a){if(a instanceof ui){if(this.On.add(a),a instanceof Pr){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 Kn?this.Dn.add(a):a instanceof no||this.Pa.add(a);y=a.data,y===null||a instanceof no||(a instanceof Kn?this.bf.add(y,a):this.cf.add(y,a))},Le.pc=function(a){if(a.Ej(),a instanceof ui){if(this.On.remove(a),a instanceof Pr){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 Kn?this.Dn.remove(a):a instanceof no||this.Pa.remove(a);y=a.data,y===null||a instanceof no||(a instanceof Kn?this.bf.remove(y):this.cf.remove(y))},Le.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 Pr)&&et('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 Pr||et('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 Kn||et('Invalid link template in Diagram.linkTemplateMap: template for "'+E+'" must be a Link, not a normal Node or simple Part: '+x);for(y=mi(),x=a.selection.iterator;x.next();)(E=x.value.data)&&y.push(E);for(x=mi(),a=a.highlighteds.iterator;a.next();)(E=a.value.data)&&x.push(E);for(a=mi(),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]);sn(y),sn(x),sn(a)}},Po.prototype.addAllModeledParts=function(){this.addModeledParts(this.diagram.model.nodeDataArray)},Po.prototype.addModeledParts=function(a,y){var x=this,E=this.diagram.model;a.forEach(function(b){E.lb(b)&&fS(x,b,!1)}),a.forEach(function(b){E.lb(b)&&x.resolveReferencesForData(b)}),y!==!1&&yf(this.diagram,!1)};function fS(a,y,x){if(y!=null&&!a.diagram.undoManager.isUndoingRedoing&&!a.cf.contains(y)){x===void 0&&(x=!0);e:{if(y!=null&&!a.H.undoManager.isUndoingRedoing&&!a.cf.contains(y)){var E=a.Ro(y),b=gS(a,y,E);if(b!==null&&(Rl(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 e}}E=null}E!==null&&x&&a.resolveReferencesForData(y)}}Po.prototype.insertLink=function(){return null},Po.prototype.resolveReferencesForData=function(){},Po.prototype.Ro=function(a){return this.H.model.Ro(a)};function gS(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&&(vS||(vS=!0,Yn('No Group template found for category "'+x+'"'),Yn(" Using default group template")),y=a.ly))):(y=a.nodeTemplateMap.I(x),y===null&&(y=a.nodeTemplateMap.I(""),y===null&&(mS||(mS=!0,Yn('No Node template found for category "'+x+'"'),Yn(" Using default node template")),y=a.ny))),y}Po.prototype.getLinkCategoryForData=function(){return""},Po.prototype.setLinkCategoryForData=function(){},Po.prototype.setFromNodeForLink=function(){},Po.prototype.setToNodeForLink=function(){},Po.prototype.findLinkTemplateForCategory=function(a){var y=this.H,x=y.linkTemplateMap.I(a);return x===null&&(x=y.linkTemplateMap.I(""),x===null&&(yS||(yS=!0,Yn('No Link template found for category "'+a+'"'),Yn(" Using default link template")),x=y.my)),x},Po.prototype.removeAllModeledParts=function(){this.Gs(this.diagram.model.nodeDataArray)},Po.prototype.Gs=function(a){var y=this;a.forEach(function(x){y.ip(x)})},Po.prototype.ip=function(a){a=this.Lc(a),a!==null&&(bg(this.diagram,a,!1),this.unresolveReferencesForPart(a))},Po.prototype.unresolveReferencesForPart=function(){},Po.prototype.removeDataForLink=function(){},Po.prototype.findPartForKey=function(a){return a==null?null:(a=this.H.model.hc(a),a!==null?this.cf.I(a):null)},Po.prototype.Vb=function(a){return a==null||(a=this.H.model.hc(a),a===null)?null:(a=this.cf.I(a),a instanceof ui?a:null)},Po.prototype.findLinkForKey=function(){return null},Le=Po.prototype,Le.Lc=function(a){if(a===null)return null;var y=this.cf.I(a);return y!==null?y:y=this.bf.I(a)},Le.ii=function(a){return a===null?null:(a=this.cf.I(a),a instanceof ui?a:null)},Le.Kc=function(a){return a===null?null:this.bf.I(a)},Le.ms=function(a){for(var y=0;y<arguments.length;++y);y=new ln;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 ee=arguments[z];if(en(ee)&&ly(this,b,ee)){y.add(E);break}}}return y.iterator},Le.ls=function(a){for(var y=0;y<arguments.length;++y);y=new ln;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 ee=arguments[z];if(en(ee)&&ly(this,b,ee)){y.add(E);break}}}return y.iterator};function ly(a,y,x){for(var E in x){var b=y[E],z=x[E];if(Gn(z)){if(!Gn(b)||b.length<z.length)return!1;for(var ee=0;ee<b.length;ee++){var re=z[ee];if(re!==void 0&&!pS(a,b[ee],re))return!1}}else if(!pS(a,b,z))return!1}return!0}function pS(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(en(y)&&en(x)){if(!ly(a,y,x))return!1}else if(y!==x)return!1;return!0}Po.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===Io){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===Jo){var ee=a.newValue;E==="nodeDataArray"&&en(ee)&&fS(this,ee),y.isModified=!0}else if(x===ha){var re=a.oldValue;E==="nodeDataArray"&&en(re)&&this.ip(re),y.isModified=!0}else x===Fa&&(E==="SourceChanged"?a.object!==null?this.updateDataBindings(a.object,a.propertyName):(this.rp(),this.updateAllTargetBindings()):E==="ModelDisplaced"&&this.Wd());else if(x===Io){var oe=a.propertyName,le=a.object;le===y.model?(oe==="nodeKeyProperty"||oe==="nodeCategoryProperty")&&(y.undoManager.isUndoingRedoing||this.Wd()):this.updateDataBindings(le,oe),y.isModified=!0}else if(x===Jo||x===ha){var he=a.change===Jo,ge=he?a.newParam:a.oldParam,Se=he?a.newValue:a.oldValue,Pe=this.aj.I(a.object);if(Array.isArray(Pe))for(a=0;a<Pe.length;a++){var Ae=Pe[a];if(he)M0(Ae,Se,ge,!0);else if(!(0>ge)){var Be=ge+Qg(Ae);Ae.pc(Be,!0),wv(Ae,Be,ge)}}y.isModified=!0}}finally{y.aa=!0}}}}},Po.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)},Po.prototype.rp=function(){for(var a=this.H.model,y=new ln,x=a.nodeDataArray,E=0;E<x.length;E++)y.add(x[E]);var b=[];for(this.nodes.each(function(ee){ee.data===null||y.contains(ee.data)||b.push(ee.data)}),this.parts.each(function(ee){ee.data===null||y.contains(ee.data)||b.push(ee.data)}),b.forEach(function(ee){MS(a,ee,!1)}),E=0;E<x.length;E++){var z=x[E];this.Lc(z)===null&&FS(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()},Po.prototype.refreshDataBoundLinks=function(){},Po.prototype.updateRelationshipsFromData=function(){},Po.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 ee=b[z].sx(a);ee!==null&&(x===null&&(x=mi()),x.push(ee))}if(x!==null)break}if(x!==null){for(E=0;E<x.length;E++)x[E].La(y);sn(x)}}a===this.diagram.model.modelData&&this.updateAllTargetBindings(y)}};function uy(a,y){var x=y.Hh;if(Gn(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 hy(a,y,x){Qd(y,function(ee){ee=ee.O.s;for(var re=ee.length,oe=0;oe<re;oe++)Tg(x,ee[oe])});var E=y.Hh;if(Gn(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}}}}Po.prototype.Kj=function(a,y,x){x===void 0&&(x=!1);var E=new Ut;if(Gn(a))for(var b=0;b<a.length;b++)um(this,a[b],y,E,x);else for(a=a.iterator;a.next();)um(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 ln;for(var z=new Ut,ee=E.iterator;ee.next();){var re=ee.value;if(re instanceof Kn)a||re.fromNode!==null&&re.toNode!==null||b.add(re);else if(re instanceof ui&&re.data!==null&&x.Tl()){var oe=re;re=ee.key;var le=re.pg();le!==null&&(le=E.I(le),le!==null?(x.qe(oe.data,x.wa(le.data)),oe=y.Kc(oe.data),re=re.kh(),re!==null&&oe!==null&&z.add(re,oe)):x.qe(oe.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 he=new Ut;E.each(function(ge){ge.key.data!==null&&he.add(ge.key.data,ge.value.data)}),x(he,y,this.H.model)}for(y=E.iterator;y.next();)y.value.La();return E};function um(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 Ki))return null;if(z.isSelected=!1,z.isHighlighted=!1,E.add(y,z),y instanceof ui){for(var ee=y.linksConnected;ee.next();){var re=ee.value;if(re.fromNode===y){var oe=E.I(re);oe!==null&&(oe.fromNode=z)}re.toNode===y&&(re=E.I(re),re!==null&&(re.toNode=z))}if(y instanceof Pr&&z instanceof Pr)for(y=y.memberParts;y.next();)ee=um(a,y.value,x,E,b),ee instanceof Kn||ee===null||(ee.containingGroup=z)}else if(y instanceof Kn&&z instanceof Kn)for(ee=y.fromNode,ee!==null&&(ee=E.I(ee),ee!==null&&(z.fromNode=ee)),ee=y.toNode,ee!==null&&(ee=E.I(ee),ee!==null&&(z.toNode=ee)),y=y.labelNodes;y.next();)ee=um(a,y.value,x,E,b),ee!==null&&ee instanceof ui&&(ee.labeledLink=z);return z}Po.prototype.copyPartData=function(a,y){var x=null,E=a.data;if(E!==null&&y!==null){var b=y.model;a instanceof Kn||(E=b.copyNodeData(E),en(E)&&(b.xf(E),x=y.Lc(E)))}else Rl(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 Kn||(b=y.copyNodeData(E)),en(b)&&(x.data=b)));return x},It.Object.defineProperties(Po.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}}}),Po.prototype.updateAllRelationshipsFromData=Po.prototype.rp,Po.prototype.findLinksByExample=Po.prototype.ls,Po.prototype.findNodesByExample=Po.prototype.ms,Po.prototype.findLinkForData=Po.prototype.Kc,Po.prototype.findNodeForData=Po.prototype.ii,Po.prototype.findPartForData=Po.prototype.Lc,Po.prototype.findNodeForKey=Po.prototype.Vb,Po.prototype.removeModeledPart=Po.prototype.ip,Po.prototype.removeModeledParts=Po.prototype.Gs,Po.prototype.rebuildParts=Po.prototype.Wd;var mS=!1,vS=!1,yS=!1;Po.className="PartManager";function Wa(a){Po.apply(this,arguments)}Vt(Wa,Po),Wa.prototype.addAllModeledParts=function(){var a=this.diagram.model;this.addModeledParts(a.nodeDataArray),SS(this,a.linkDataArray)},Wa.prototype.addModeledParts=function(a){for(Po.prototype.addModeledParts.call(this,a,!1),a=this.links.iterator;a.next();)zf(a.value);yf(this.diagram,!1)};function SS(a,y){y.forEach(function(x){xS(a,x)}),yf(a.diagram,!1)}function xS(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){Rl(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=fm(x,y,!0);z!==""&&(b.fromPortId=z),z=dl(x,y,!0),z!==void 0&&(z=a.Vb(z),z instanceof ui&&(b.fromNode=z)),z=fm(x,y,!1),z!==""&&(b.toPortId=z),z=dl(x,y,!1),z!==void 0&&(z=a.Vb(z),z instanceof ui&&(b.toNode=z)),x=x.Ef(y),Array.isArray(x)&&x.forEach(function(ee){ee=a.Vb(ee),ee!==null&&(ee.labeledLink=b)}),a.tp&&(b.Jg="Tool"),a.diagram.add(b),b.ub=null,b.data=y,a.diagram.skipsModelSourceBindings=E}}}}Wa.prototype.removeAllModeledParts=function(){var a=this.diagram.model;PS(this,a.linkDataArray),this.Gs(a.nodeDataArray)};function PS(a,y){y.forEach(function(x){a.ip(x)})}Wa.prototype.getLinkCategoryForData=function(a){return this.diagram.model.ps(a)},Wa.prototype.setLinkCategoryForData=function(a,y){return this.diagram.model.lp(a,y)},Wa.prototype.setFromNodeForLink=function(a,y){var x=this.diagram.model;x.wv(a.data,x.wa(y!==null?y.data:null))},Wa.prototype.setToNodeForLink=function(a,y){var x=this.diagram.model;x.Bv(a.data,x.wa(y!==null?y.data:null))},Wa.prototype.removeDataForLink=function(a){this.diagram.model.bm(a.data)},Wa.prototype.findPartForKey=function(a){var y=Po.prototype.findPartForKey.call(this,a);return y===null&&(a=this.diagram.model.jh(a),a!==null)?this.bf.I(a):y},Wa.prototype.findLinkForKey=function(a){return a==null?null:(a=this.diagram.model.jh(a),a!==null?this.bf.I(a):null)},Wa.prototype.doModelChanged=function(a){var y=this;if(Po.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===Io){if(b==="linkFromKey"){var z=this.Kc(a.object);if(z!==null){var ee=this.Vb(a.newValue);z.fromNode=ee}}else if(b==="linkToKey"){var re=this.Kc(a.object);if(re!==null){var oe=this.Vb(a.newValue);re.toNode=oe}}else if(b==="linkFromPortId"){var le=this.Kc(a.object);if(le!==null){var he=a.newValue;typeof he=="string"&&(le.fromPortId=he)}}else if(b==="linkToPortId"){var ge=this.Kc(a.object);if(ge!==null){var Se=a.newValue;typeof Se=="string"&&(ge.toPortId=Se)}}else if(b==="nodeGroupKey"){var Pe=this.Lc(a.object);if(Pe!==null){var Ae=a.newValue;if(Ae!==void 0){var Be=this.Vb(Ae);Be instanceof Pr?Pe.containingGroup=Be:Pe.containingGroup=null}else Pe.containingGroup=null}}else if(b==="linkLabelKeys"){var Qe=this.Kc(a.object);if(Qe!==null){var Ke=a.oldValue,lt=a.newValue;Array.isArray(Ke)&&Ke.forEach(function(vn){0<=lt.indexOf(vn)||(vn=y.Vb(vn),vn!==null&&(vn.labeledLink=null))}),Array.isArray(lt)&&lt.forEach(function(vn){vn=y.Vb(vn),vn!==null&&(vn.labeledLink=Qe)})}}else if(b==="linkCategory"){var ct=this.Kc(a.object),ft=a.newValue;ct!==null&&typeof ft=="string"&&(ct.category=ft)}else b==="linkDataArray"&&(PS(this,a.oldValue),SS(this,a.newValue));x.isModified=!0}else if(E===Jo){var Et=a.newValue;if(b==="linkDataArray"&&typeof Et=="object"&&Et!==null)xS(this,Et);else if(b==="linkLabelKeys"&&fd(Et)){var Gt=this.Kc(a.object),si=this.Vb(Et);Gt!==null&&si!==null&&(si.labeledLink=Gt)}x.isModified=!0}else if(E===ha){var Li=a.oldValue;if(b==="linkDataArray"&&typeof Li=="object"&&Li!==null)this.ip(Li);else if(b==="linkLabelKeys"&&fd(Li)){var wi=this.Vb(Li);wi!==null&&(wi.labeledLink=null)}x.isModified=!0}}else if(E===Io){var Vn=a.propertyName;a.object!==x.model||Vn!=="linkFromKeyProperty"&&Vn!=="linkToKeyProperty"&&Vn!=="linkFromPortIdProperty"&&Vn!=="linkToPortIdProperty"&&Vn!=="linkLabelKeysProperty"&&Vn!=="nodeIsGroupProperty"&&Vn!=="nodeGroupKeyProperty"&&Vn!=="linkCategoryProperty"||x.undoManager.isUndoingRedoing||this.Wd(),x.isModified=!0}}finally{x.aa=!0}}}}},Wa.prototype.refreshDataBoundLinks=function(){var a=this,y=this.diagram.model,x=new ln,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){NS(y,z,!1)}),E.forEach(function(z){a.Kc(z)===null&&BS(y,z,!1)})},Wa.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 Kn){var b=dl(E,y,!0);if(b=x.Vb(b),a.fromNode=b,b=dl(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 ln().addAll(y);var ee=new ln;a.labelNodes.each(function(re){re.data!==null&&(re=E.wa(re.data),re!==void 0&&ee.add(re))}),y=ee.copy(),y.hp(b),b=b.copy(),b.hp(ee),(0<y.count||0<b.count)&&(y.each(function(re){re=x.Vb(re),re!==null&&re.labeledLink===a&&(re.labeledLink=null)}),b.each(function(re){re=x.Vb(re),re!==null&&re.labeledLink!==a&&(re.labeledLink=a)}))}}else!(a instanceof no)&&(y=E.lh(y),y=x.findPartForKey(y),y===null||y instanceof Pr)&&(a.containingGroup=y)}}},Wa.prototype.resolveReferencesForData=function(a){var y=this.diagram.model,x=y.wa(a);if(x!==void 0){var E=mp(y,x),b=this.Lc(a);if(E!==null&&b!==null){E=E.iterator;for(var z={};E.next();){var ee=E.value;y.lb(ee)?b instanceof Pr&&y.lh(ee)===x&&(ee=this.Lc(ee),ee!==null&&(ee.containingGroup=b)):(z.link=this.Kc(ee),z.link!==null&&b instanceof ui&&(dl(y,ee,!0)===x&&(z.link.fromNode=b),dl(y,ee,!1)===x&&(z.link.toNode=b),ee=y.Ef(ee),Array.isArray(ee)&&ee.some(function(re){return function(oe){return oe===x?(b.labeledLink=re.link,!0):!1}}(z)))),z={link:z.link}}lu(y,x)}a=y.lh(a),a!==void 0&&(a=this.Vb(a),a instanceof Pr&&(b.containingGroup=a))}},Wa.prototype.unresolveReferencesForPart=function(a){var y=this.diagram.model;if(a instanceof ui){var x=y.wa(a.data);if(x!==void 0){for(var E=a.linksConnected;E.next();)su(y,x,E.value.data);if(a.isLinkLabel&&(E=a.labeledLink,E!==null&&su(y,x,E.data)),a instanceof Pr)for(a=a.memberParts;a.next();)E=a.value.data,y.lb(E)&&su(y,x,E)}}},Wa.prototype.copyPartData=function(a,y){var x=Po.prototype.copyPartData.call(this,a,y);if(a instanceof Kn)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},Wa.prototype.insertLink=function(a,y,x,E){var b=this.diagram,z=b.model,ee=b.toolManager.findTool("Linking"),re="";if(a!==null&&(y===null&&(y=a),re=y.portId,re===null&&(re="")),y="",x!==null&&(E===null&&(E=x),y=E.portId,y===null&&(y="")),E=ee.archetypeLinkData,E instanceof Kn){if(Rl(E),z=E.copy(),z!==null)return z.fromNode=a,z.fromPortId=re,z.toNode=x,z.toPortId=y,b.add(z),a=ee.archetypeLabelNodeData,a instanceof ui&&(Rl(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&&Yf(z,E,z.wa(a.data),!0),Kf(z,E,re,!0),x!==null&&Yf(z,E,z.wa(x.data),!1),Kf(z,E,y,!1),z.fi(E),a=ee.archetypeLabelNodeData,a===null||a instanceof ui||(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},Wa.prototype.findLinkForKey=Wa.prototype.findLinkForKey,Wa.prototype.findPartForKey=Wa.prototype.findPartForKey,Wa.prototype.removeAllModeledParts=Wa.prototype.removeAllModeledParts,Wa.prototype.addModeledParts=Wa.prototype.addModeledParts,Wa.prototype.addAllModeledParts=Wa.prototype.addAllModeledParts,Wa.className="GraphLinksPartManager";function Al(){Po.apply(this,arguments),this.Sg=null}Vt(Al,Po);function hm(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||!Mo(E,b,z,null,!0))&&(y=a.getLinkCategoryForData(x.data),E=a.findLinkTemplateForCategory(y),E!==null&&(Rl(E),E=E.copy(),E!==null))){var ee=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=ee}}}Al.prototype.getLinkCategoryForData=function(a){return this.diagram.model.ss(a)},Al.prototype.setLinkCategoryForData=function(a,y){this.diagram.model.Ms(a,y)},Al.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}},Al.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))},Al.prototype.removeDataForLink=function(a){this.diagram.model.qe(a.data,void 0)},Al.prototype.findLinkForKey=function(a){return a==null?null:(a=this.diagram.model.hc(a),a!==null?this.bf.I(a):null)},Al.prototype.doModelChanged=function(a){if(Po.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===Io){if(E==="nodeParentKey"){var b=a.object,z=this.Vb(a.newValue),ee=this.ii(b);if(this.Sg!==null)z!==null&&(this.Sg.data=b,this.Sg.category=this.getLinkCategoryForData(b));else if(ee!==null){var re=ee.kh();re!==null?z===null?y.remove(re):y.isTreePathToChildren?re.fromNode=z:re.toNode=z:hm(this,z,ee)}}else if(E==="parentLinkCategory"){var oe=this.ii(a.object),le=a.newValue;if(oe!==null&&typeof le=="string"){var he=oe.kh();he!==null&&(he.category=le)}}y.isModified=!0}}else if(x===Io){var ge=a.propertyName;a.object===y.model&&ge==="nodeParentKeyProperty"&&(y.undoManager.isUndoingRedoing||this.Wd()),y.isModified=!0}}finally{y.aa=!0}}}}},Al.prototype.updateRelationshipsFromData=function(a){var y=a.data;if(y!==null){var x=a.diagram;if(x!==null){var E=x.model;a instanceof ui&&(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:hm(this,y,a):E!==null&&bg(x,E,!1)))}}},Al.prototype.updateDataBindings=function(a,y){Po.prototype.updateDataBindings.call(this,a,y),typeof y=="string"&&this.Lc(a)!==null&&(a=this.Kc(a),a!==null&&a.La(y))},Al.prototype.resolveReferencesForData=function(a){var y=this.diagram.model,x=y.wa(a);if(x!==void 0){var E=mp(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 ui&&y.mh(z)===x&&hm(this,b,this.ii(z))}lu(y,x)}a=y.mh(a),a!==void 0&&b instanceof ui&&(a=this.Vb(a),hm(this,a,b))}},Al.prototype.unresolveReferencesForPart=function(a){var y=this.diagram.model;if(a instanceof ui){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(ha,"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)&&su(y,x,b)}},Al.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},Al.prototype.findLinkForKey=Al.prototype.findLinkForKey,Al.className="TreePartManager";function Ni(a,y){this.kl=new ln,this.il=new ln,this.Wv=`,
"insertedNodeKeys": `,this.jy=`,
"modifiedNodeData": `,this.Yv=`,
"removedNodeKeys": `,this.vh=null,rr(this),this.Sm=this.xa="",this.Gg=!1,this.j={},this.Tc=[],this.kb=new Ut,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 Ut,this.Lt=new Mn,this.Wg=!1,this.o=null,this.undoManager=new Qo,a!==void 0&&(Gn(a)?this.nodeDataArray=a:y=a),y&&(Object.assign(this,y),a=y.Changed)&&(delete this.Changed,this.Pe(a))}Ni.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},Ni.prototype.copy=function(){var a=new this.constructor;return this.cloneProtected(a),a},Ni.prototype.clear=function(){this.Tc=[],this.kb.clear(),this.Vf.clear(),this.undoManager.clear()},Ni.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)+":"+Cr(b)}}return y},Ni.prototype.xA=function(a){a.change!==Fa&&et("Model.toIncrementalData argument is not a Transaction ChangedEvent:"+a.toString());var y=a.object;return a.isTransactionFinished&&y instanceof va?(CS(this,y),a=this.Qv(y,a.propertyName==="FinishedUndo"),this.vh=null,a):null},Ni.prototype.Qv=function(a,y){var x=this,E=!1,b=new ln,z=new ln,ee=new ln,re=this.vh;a.changes.each(function(ge){ge.model===x&&(ge.modelChange==="nodeDataArray"?ge.change===Jo?b.add(ge.newValue):ge.change===ha&&ee.add(ge.oldValue):x.lb(ge.object)?z.add(ge.object):ge.change!==Io||x.modelData!==ge.object&&ge.propertyName!=="modelData"?ge.object!==null&&(re&&re.contains(ge.object)?re.get(ge.object).each(function(Se){x.lb(Se)&&z.add(Se)}):ge.object instanceof Ni||x.ri()&&x.Jc(ge.object)||ES(x,ge.object).each(function(Se){z.add(Se)})):E=!0)});var oe=this.il;oe.clear(),b.each(function(ge){oe.add(x.wa(ge)),y||z.add(ge)});var le=this.kl;le.clear(),ee.each(function(ge){le.add(x.wa(ge)),y&&z.add(ge)}),a=x.cloneDeep(z.Fa());var he=null;return E&&(he===null&&(he={}),he.modelData=this.cloneDeep(this.modelData)),0<oe.count&&(he===null&&(he={}),y?he.removedNodeKeys=oe.Fa():he.insertedNodeKeys=oe.Fa()),0<a.length&&(he===null&&(he={}),he.modifiedNodeData=a),0<le.count&&(he===null&&(he={}),y?he.insertedNodeKeys=le.Fa():he.removedNodeKeys=le.Fa()),le.clear(),oe.clear(),he},Ni.prototype.cloneDeep=function(a){return Vf(this,a,!0)};function Vf(a,y,x,E,b,z){function ee(ge,Se){re?(ge.__gohashid===void 0&&z.push(ge),E.set(ge,Se)):(ge=Co++,E.set(ge,Se),b.set(ge,y))}if(!en(y))return y;z||(z=[]);var re=Object.isExtensible(y);if(E||(E=new Ut),re){var oe=E.get(y);if(oe)return oe}else for(b||(b=new Ut),oe=b.iterator;oe.next();){var le=oe.key;if(oe.value===y&&(le=E.get(le)))return le}if(Array.isArray(y)){oe=[],ee(y,oe);for(var he=0;he<y.length;he++)oe.push(Vf(a,y[he],!1,E,b,z))}else if(y instanceof je||y instanceof Je||y instanceof vt||y instanceof Pi||y instanceof En)oe=y.copy(),ee(y,oe);else{if(y instanceof xo||y instanceof Pn||y instanceof yn)return y;if(y instanceof Mn)oe=new Mn().addAll(Vf(a,y.Fa(),!1,E,b,z)),ee(y,oe);else if(y instanceof ln)oe=new ln().addAll(Vf(a,y.Fa(),!1,E,b,z)),ee(y,oe);else if(y instanceof Ut)oe=new Ut().addAll(Vf(a,y.Fa(),!1,E,b,z)),ee(y,oe);else if(y instanceof Date)oe=new Date(y.getTime()),ee(y,oe);else if(y instanceof RegExp)oe=new RegExp(y),ee(y,oe),oe.lastIndex=y.lastIndex;else if(typeof y.copy=="function")oe=y.copy(),ee(y,oe);else for(he in oe={},ee(y,oe),y)he!=="__gohashid"&&(oe[he]=Vf(a,y[he],!1,E,b,z))}return x&&z.forEach(function(ge){delete ge.__gohashid}),oe}Le=Ni.prototype,Le.quote=function(a){return JSON.stringify(a).replace(/[\u007F-\uFFFF]/g,function(y){return"\\u"+("0000"+y.charCodeAt(0).toString(16)).substr(-4)})},Le.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},Le.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 wS(a,y){y=y.modelData,en(y)&&(a.dm(y),a.modelData=y)}Le.Rv=function(){var a=this.modelData,y=!1,x;for(x in a)if(!AS(x,a[x])){y=!0;break}return a="",y&&(a=`,
"modelData": `+dy(this,this.modelData)),a+`,
"nodeDataArray": `+cd(this,this.nodeDataArray,!0)},Le.kv=function(a){wS(this,a),a=a.nodeDataArray,Gn(a)&&(this.dm(a),this.nodeDataArray=a)};function CS(a,y){function x(b,z){if((z=z.part)&&(z=z.data,b!==z)){var ee=E.get(b);ee===null?(ee=new ln,ee.add(z),E.add(b,ee)):ee.add(z)}}var E=a.vh;E===null&&(E=new Ut,y.changes.each(function(b){if(b.diagram!==null){var z=b.change;z===Io?(b=b.object.panel)&&(z=b.data)&&x(z,b):(z===Jo||z===ha)&&(b=b.object,(z=b.itemArray)&&x(z,b))}}),a.vh=E)}function ES(a,y){for(var x=new ln,E=0;E<a.nodeDataArray.length;E++){var b=a.nodeDataArray[E];dm(a,y,b,b,x)}return x}function dm(a,y,x,E,b){if(Array.isArray(x))for(var z=0;z<x.length;z++){var ee=x[z];if(ee===y)return b.add(E),!0;if(dm(a,y,ee,E,b))return!0}else if(en(x)&&Object.getPrototypeOf(x)===Object.prototype)for(z in x){if(ee=x[z],ee===y)return b.add(E),!0;if(dm(a,y,ee,E,b))return!0}return!1}Le.Pv=function(a,y){var x=this,E=!1,b=new ln,z=new ln,ee=new ln,re=this.vh;a.changes.each(function(he){he.model===x&&(he.modelChange==="nodeDataArray"?he.change===Jo?b.add(he.newValue):he.change===ha&&ee.add(he.oldValue):x.lb(he.object)?z.add(he.object):he.change!==Io||x.modelData!==he.object&&he.propertyName!=="modelData"?he.object!==null&&(re&&re.contains(he.object)?re.get(he.object).each(function(ge){x.lb(ge)&&z.add(ge)}):he.object instanceof Ni||x.ri()&&x.Jc(he.object)||ES(x,he.object).each(function(ge){z.add(ge)})):E=!0)});var oe=this.il;oe.clear(),b.each(function(he){oe.add(x.wa(he)),y||z.add(he)});var le=this.kl;return le.clear(),ee.each(function(he){le.add(x.wa(he)),y&&z.add(he)}),a="",E&&(a+=`,
"modelData": `+dy(this,this.modelData)),0<oe.count&&(a+=(y?this.Yv:this.Wv)+cd(this,oe.Fa(),!0)),0<z.count&&(a+=this.jy+cd(this,z.Fa(),!0)),0<le.count&&(a+=(y?this.Wv:this.Yv)+cd(this,le.Fa(),!0)),le.clear(),oe.clear(),a},Le.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)&&et("applyIncrementalJson cannot change Model properties"),wS(this,a);var y=a.insertedNodeKeys,x=a.modifiedNodeData,E=new Ut;if(Array.isArray(x))for(var b=0;b<x.length;b++){var z=x[b],ee=this.wa(z);ee!=null&&E.set(ee,z)}if(Array.isArray(y))for(b=y.length,z=0;z<b;z++){ee=y[z];var re=this.hc(ee);re===null&&(re=(re=E.get(ee))?re:this.copyNodeData({}),this.km(re,ee),this.xf(re))}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 oe in b)oe==="__gohashid"||oe===this.nodeKeyProperty||this.Wj()&&oe===this.nodeIsGroupProperty||this.setDataProperty(z,oe,b[oe]);this.lm(b,z)}}if(a=a.removedNodeKeys,Array.isArray(a))for(x=a.length,oe=0;oe<x;oe++)y=this.hc(a[oe]),y!==null&&this.cm(y)},Le.$x=function(a,y){a.change!==Fa&&et("Model.toIncrementalJson argument is not a Transaction ChangedEvent:"+a.toString());var x=a.object;return a.isTransactionFinished&&x instanceof va?(y===void 0&&(y=vp(this,this)),CS(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 }'},Le.yA=function(a,y){return this.$x(a,y)},Le.np=function(a){return a===void 0&&(a=vp(this,this)),'{ "class": '+this.quote(a)+this.rm()+this.Rv()+"}"},Le.toJSON=function(a){return this.np(a)},Le.Zw=function(a){var y=null;if(typeof a=="string")try{y=Xn.JSON.parse(a)}catch(E){}else typeof a=="object"?y=a:et("Unable to modify a Model from: "+a);var x=y.incremental;typeof x!="number"&&et("Unable to apply non-incremental changes to Model: "+a),x!==0&&(this.Ea("applyIncrementalJson"),this.fp(y),this.eb("applyIncrementalJson"))},Le.Ky=function(a){return this.Zw(a)},Ni.constructGraphLinksModel=function(){return new Ni},Le=Ni.prototype,Le.dm=function(a){if(Gn(a))for(var y=a.length,x=0;x<y;x++){var E=a[x];if(en(E)){var b=x;E=this.dm(E),Array.isArray(a)?a[b]=E:et("Cannot replace an object in an HTMLCollection or NodeList at "+b)}}else if(en(a)){for(y in a)if(x=a[y],en(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 Mn,E=0;E<x.length/2;E++)b.add(new je(x[2*E],x[2*E+1]));b.freeze(),a[y]=b}}return jx(a)}return a},Le.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()):Gn(a)?cd(this,a):en(a)?dy(this,a):typeof a=="function"?"null":a.toString()};function cd(a,y,x){x===void 0&&(x=!1);var E=y.length;if(0>=E)return"[]";var b=new Hi;b.add("["),x&&1<E&&b.add(`
`);for(var z=0;z<E;z++){var ee=y[z];ee!==void 0&&(0<z&&(b.add(","),x&&b.add(`
`)),b.add(a.sm(ee)))}return x&&1<E&&b.add(`
`),b.add("]"),b.toString()}function AS(a,y){return y===void 0||a==="__gohashid"||a[0]==="_"||typeof y=="function"}function Ms(a){return isNaN(a)?"NaN":a===1/0?"9e9999":a===-1/0?"-9e9999":a}function dy(a,y){var x=y;if(x instanceof je)y={class:"go.Point",x:Ms(x.x),y:Ms(x.y)};else if(x instanceof Je)y={class:"go.Size",width:Ms(x.width),height:Ms(x.height)};else if(x instanceof vt)y={class:"go.Rect",x:Ms(x.x),y:Ms(x.y),width:Ms(x.width),height:Ms(x.height)};else if(x instanceof Pi)y={class:"go.Margin",top:Ms(x.top),right:Ms(x.right),bottom:Ms(x.bottom),left:Ms(x.left)};else if(x instanceof En)x.sb()?y={class:"go.Spot",x:Ms(x.x),y:Ms(x.y),offsetX:Ms(x.offsetX),offsetY:Ms(x.offsetY)}:y={class:"go.Spot",enum:x.toString()};else if(x instanceof xo){if(y={class:"go.Brush",type:x.type.name},x.type===Fh?y.color=x.color:(x.type===ih||x.type===Cl)&&(y.start=x.start,y.end=x.end,x.type===Cl&&(x.startRadius!==0&&(y.startRadius=Ms(x.startRadius)),isNaN(x.endRadius)||(y.endRadius=Ms(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 Pn?(y={class:"go.Geometry",type:x.type.name},x.startX!==0&&(y.startX=Ms(x.startX)),x.startY!==0&&(y.startY=Ms(x.startY)),x.endX!==0&&(y.endX=Ms(x.endX)),x.endY!==0&&(y.endY=Ms(x.endY)),x.spot1.D(Ti)||(y.spot1=x.spot1),x.spot2.D(An)||(y.spot2=x.spot2),x.type===Pn.o&&(y.path=Pn.ia(x))):x instanceof yn&&(y={class:"go.EnumValue",classType:vp(a,x.classType),name:x.name});E="{",x=!0;for(var b in y){var z=ya(y,b);if(!AS(b,z))if(x?x=!1:E+=",",E+=a.quote(b)+":",b==="points"&&z instanceof Mn){var ee="[";for(z=z.iterator;z.next();){var re=z.value;1<ee.length&&(ee+=","),ee+=a.sm(re.x),ee+=",",ee+=a.sm(re.y)}ee+="]",E+=ee}else E+=a.sm(z)}return E+"}"}function Ls(a){return typeof a=="number"?a:a==="NaN"?NaN:a==="9e9999"?1/0:a==="-9e9999"?-1/0:parseFloat(a)}function jx(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 je(Ls(a.x),Ls(a.y));else if(y==="Size")x=new Je(Ls(a.width),Ls(a.height));else if(y==="Rect")x=new vt(Ls(a.x),Ls(a.y),Ls(a.width),Ls(a.height));else if(y==="Margin")x=new Pi(Ls(a.top),Ls(a.right),Ls(a.bottom),Ls(a.left));else if(y==="Spot")typeof a.enum=="string"?x=er(a.enum):x=new En(Ls(a.x),Ls(a.y),Ls(a.offsetX),Ls(a.offsetY));else if(y==="Brush"){if(x=new xo,x.type=ni(xo,a.type),typeof a.color=="string"&&(x.color=a.color),a.start instanceof En&&(x.start=a.start),a.end instanceof En&&(x.end=a.end),typeof a.startRadius=="number"&&(x.startRadius=Ls(a.startRadius)),typeof a.endRadius=="number"&&(x.endRadius=Ls(a.endRadius)),a=a.colorStops,en(a))for(var E in a)x.addColorStop(parseFloat(E),a[E])}else y==="Geometry"?(x=null,typeof a.path=="string"?x=Pn.parse(a.path):x=new Pn,x.type=ni(Pn,a.type),typeof a.startX=="number"&&(x.startX=Ls(a.startX)),typeof a.startY=="number"&&(x.startY=Ls(a.startY)),typeof a.endX=="number"&&(x.endX=Ls(a.endX)),typeof a.endY=="number"&&(x.endY=Ls(a.endY)),a.spot1 instanceof En&&(x.spot1=a.spot1),a.spot2 instanceof En&&(x.spot2=a.spot2)):y==="EnumValue"&&(E=a.classType,E.indexOf("go.")===0&&(E=E.substr(3)),E=fy(E),typeof E=="function"&&(x=ni(E,a.name)));return x}Le.Pe=function(a){return this.Lt.add(a),this},Le.ik=function(a){this.Lt.remove(a)},Le.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)},Le.cb=function(a,y,x,E,b,z,ee){Da(this,"",a,y,x,E,b,z,ee)},Le.g=function(a,y,x,E,b){Da(this,"",Io,a,this,y,x,E,b)},Le.Fs=function(a,y,x,E,b,z){Da(this,"",Io,y,a,x,E,b,z)};function Da(a,y,x,E,b,z,ee,re,oe){re===void 0&&(re=null),oe===void 0&&(oe=null);var le=new Wo;le.model=a,le.change=x,le.modelChange=y,le.propertyName=E,le.object=b,le.oldValue=z,le.oldParam=re,le.newValue=ee,le.newParam=oe,a.ds(le)}Ni.prototype.changeState=function(a,y){if(a!==null&&a.model===this)if(a.change===Io){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)),qo(x,E,b)}else a.change===Jo?(x=a.newParam,a.modelChange==="nodeDataArray"?(a=a.newValue,en(a)&&typeof x=="number"&&(E=this.wa(a),y?(this.Tc[x]===a&&xi(this.Tc,x),E!==void 0&&this.kb.remove(E)):(this.Tc[x]!==a&&_n(this.Tc,x,a),E!==void 0&&this.kb.add(E,a)))):a.modelChange===""?((E=a.object)&&!Gn(E)&&a.propertyName&&(E=ya(a.object,a.propertyName)),Gn(E)&&typeof x=="number"&&(a=a.newValue,y?xi(E,x):_n(E,x,a))):et("unknown ChangedEvent.Insert modelChange: "+a.toString())):a.change===ha?(x=a.oldParam,a.modelChange==="nodeDataArray"?(a=a.oldValue,en(a)&&typeof x=="number"&&(E=this.wa(a),y?(this.Tc[x]!==a&&_n(this.Tc,x,a),E!==void 0&&this.kb.add(E,a)):(this.Tc[x]===a&&xi(this.Tc,x),E!==void 0&&this.kb.remove(E)))):a.modelChange===""?((E=a.object)&&!Gn(E)&&a.propertyName&&(E=ya(a.object,a.propertyName)),Gn(E)&&typeof x=="number"&&(a=a.oldValue,y?_n(E,x,a):xi(E,x))):et("unknown ChangedEvent.Remove modelChange: "+a.toString())):a.change!==Fa&&et("unknown ChangedEvent: "+a.toString())},Ni.prototype.Ea=function(a){return this.undoManager.Ea(a)},Ni.prototype.eb=function(a){return this.undoManager.eb(a)},Ni.prototype.Kf=function(){return this.undoManager.Kf()},Ni.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}},Le=Ni.prototype,Le.La=function(a,y){y===void 0&&(y=""),Da(this,"SourceChanged",Fa,y,a,null,null)},Le.wa=function(a){if(a!==null){var y=this.Th;if(y!==""&&(y=ya(a,y),y!==void 0)){if(fd(y))return y;et("Key value for node data "+a+" is not a number or a string: "+y)}}},Le.km=function(a,y){if(a!==null){var x=this.Th;if(x!=="")if(this.lb(a)){var E=ya(a,x);E!==y&&this.hc(y)===null&&(qo(a,x,y),E!==void 0&&this.kb.remove(E),this.kb.add(y,a),Da(this,"nodeKey",Io,x,a,E,y),typeof x=="string"&&this.La(a,x),this.jp(E,y))}else qo(a,x,y)}};function fd(a){return typeof a=="number"||typeof a=="string"}Le.lb=function(a){var y=this.wa(a);return y===void 0?!1:this.kb.I(y)===a},Le.hc=function(a){return a===null&&et("Model.findNodeDataForKey:key must not be null"),a!==void 0&&fd(a)?this.kb.I(a):null},Le.$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))){qo(a,y,x);return}if(typeof x=="string"){for(E=2;this.kb.contains(x+E);)E++;qo(a,y,x+E)}else if(x===void 0||typeof x=="number"){for(x=-this.kb.count-1;this.kb.contains(x);)x--;qo(a,y,x)}}}}},Le.xf=function(a){a!==null&&(Vr(a),this.lb(a)||FS(this,a,!0))};function FS(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&&et("Model.makeNodeDataKeyUnique failed on "+y+". Data not added to Model."),a.kb.add(E,y),E=null,x&&(E=a.Tc.length,_n(a.Tc,E,y)),Da(a,"nodeDataArray",Jo,"nodeDataArray",a,null,y,null,E),a.fm(y),a.em(y))}Le.Fy=function(a){if(Gn(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)},Le.cm=function(a){a!==null&&MS(this,a,!0)};function MS(a,y,x){var E=a.wa(y);if(E!==void 0&&a.kb.remove(E),E=null,x){e: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 e}E=-1}if(0>E)return;xi(a.Tc,E)}Da(a,"nodeDataArray",ha,"nodeDataArray",a,y,null,E,null),a.qp(y)}Le.nA=function(a){if(Gn(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)},Le.$z=function(a){if(a!==this.nodeDataArray&&Gn(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],ee=this.wa(z);if(ee!==void 0){x.add(ee);var re=this.hc(ee);re!==z&&(re!==null?(this.Do(re,z),this.lm(z,re)):(z=this.cloneDeep(z),this.km(z,ee),this.xf(z)))}else ee=this.cloneDeep(z),this.xf(ee),x.add(this.wa(ee))}for(a=y.iterator;a.next();)E=a.value,x.contains(E)||(E=this.hc(E))&&this.cm(E);y.clear(),x.clear()}},Le.jp=function(a,y){y!==void 0&&(a=mp(this,a),a instanceof ln&&this.Vf.add(y,a))},Le.Lv=function(){},Le.fm=function(){},Le.em=function(){},Le.qp=function(){};function su(a,y,x){if(y!==void 0){var E=a.Vf.I(y);E===null&&(E=new ln,a.Vf.add(y,E)),E.add(x)}}function lu(a,y,x){if(y!==void 0){var E=a.Vf.I(y);E instanceof ln&&(x==null?a.Vf.remove(y):(E.remove(x),E.count===0&&a.Vf.remove(y)))}}function mp(a,y){return y===void 0?null:(a=a.Vf.I(y),a instanceof ln?a:null)}Le.Qy=function(a){a===void 0?this.Vf.clear():this.Vf.remove(a)},Ni.prototype.copyNodeData=function(a){if(a===null)return null;var y=this.Bk;return a=y!==null?y(a,this):cm(this,a,!0),en(a)&&rr(a),a};function cm(a,y,x){if(a.copiesArrays&&Array.isArray(y)){var E=[];for(x=0;x<y.length;x++){var b=cm(a,y[x],a.copiesArrayObjects);E.push(b)}return rr(E),E}if(x&&en(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=ya(y,E),ee=vp(a,z);ee==="GraphObject"||ee==="Diagram"||ee==="Layer"||ee==="RowColumnDefinition"||ee==="AnimationManager"||ee==="Tool"||ee==="CommandHandler"||ee==="Layout"||ee==="InputEvent"||ee==="DiagramEvent"||z instanceof Ni||z instanceof Qo||z instanceof va||z instanceof Wo||(z=cm(a,z,!1)),qo(x,E,z)}return rr(x),x}return y instanceof je||y instanceof Je||y instanceof vt||y instanceof En||y instanceof Pi?y.copy():y}Ni.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!LS&&a instanceof At&&(LS=!0,Yn('Model.setDataProperty is modifying a GraphObject, "'+a.toString()+'"'),Yn(" Is that really your intent?"));var E=ya(a,y);E!==x&&(qo(a,y,x),this.Fs(a,y,E,x))},Le=Ni.prototype,Le.set=function(a,y,x){this.setDataProperty(a,y,x)},Le.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])}},Le.Ay=function(a,y){this.ts(a,-1,y)},Le.ts=function(a,y,x){0>y&&(y=a.length),_n(a,y,x),Da(this,"",Jo,"",a,null,x,null,y)},Le.ov=function(a,y){y===void 0&&(y=-1),a===this.Tc&&et("Model.removeArrayItem should not be called on the Model.nodeDataArray"),y===-1&&(y=a.length-1);var x=a[y];xi(a,y),Da(this,"",ha,"",a,x,null,y,null)},Le.Ro=function(a){if(a===null)return"";var y=this.lj;if(y===""||(y=ya(a,y),y===void 0))return"";if(typeof y=="string")return y;et("getCategoryForNodeData found a non-string category for "+a+": "+y)},Le.jm=function(a,y){if(a!==null){var x=this.lj;if(x!=="")if(this.lb(a)){var E=ya(a,x);E===void 0&&(E=""),E!==y&&(qo(a,x,y),Da(this,"nodeCategory",Io,x,a,E,y))}else qo(a,x,y)}},Le.lm=function(a,y){this.jm(y,this.Ro(a))},Le.Tl=function(){return!1},Le.Wj=function(){return!1},Le.ri=function(){return!1},Le.xs=function(){return!1},Le.Xj=function(){return!1};function cy(){return new Ni}function vp(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 vp(a,y.constructor);return typeof y}function fy(a){return Jl[a]?Jl[a]:Xn.go!==void 0&&Xn.go[a]?Xn.go[a]:null}function ya(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 qo(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){}}It.Object.defineProperties(Ni.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===""&&et("Model.nodeKeyProperty may not be the empty string"),0<this.kb.count&&et("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];en(b)||et("Model.nodeDataArray must only contain Objects, not: "+b),Vr(b)}for(this.Tc=a,E=new Mn,b=0;b<x;b++){var z=a[b],ee=this.wa(z);ee===void 0||this.kb.I(ee)!==null?E.add(z):this.kb.add(ee,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(Da(this,"nodeDataArray",Io,"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"}}}),Ni.prototype.setCategoryForNodeData=Ni.prototype.jm,Ni.prototype.getCategoryForNodeData=Ni.prototype.Ro,Ni.prototype.removeArrayItem=Ni.prototype.ov,Ni.prototype.insertArrayItem=Ni.prototype.ts,Ni.prototype.addArrayItem=Ni.prototype.Ay,Ni.prototype.assignAllDataProperties=Ni.prototype.Do,Ni.prototype.set=Ni.prototype.set,Ni.prototype.clearUnresolvedReferences=Ni.prototype.Qy,Ni.prototype.mergeNodeDataArray=Ni.prototype.$z,Ni.prototype.removeNodeDataCollection=Ni.prototype.nA,Ni.prototype.removeNodeData=Ni.prototype.cm,Ni.prototype.addNodeDataCollection=Ni.prototype.Fy,Ni.prototype.addNodeData=Ni.prototype.xf,Ni.prototype.makeNodeDataKeyUnique=Ni.prototype.$u,Ni.prototype.findNodeDataForKey=Ni.prototype.hc,Ni.prototype.containsNodeData=Ni.prototype.lb,Ni.prototype.setKeyForNodeData=Ni.prototype.km,Ni.prototype.getKeyForNodeData=Ni.prototype.wa,Ni.prototype.updateTargetBindings=Ni.prototype.La,Ni.prototype.commit=Ni.prototype.commit,Ni.prototype.rollbackTransaction=Ni.prototype.Kf,Ni.prototype.commitTransaction=Ni.prototype.eb,Ni.prototype.startTransaction=Ni.prototype.Ea,Ni.prototype.raiseDataChanged=Ni.prototype.Fs,Ni.prototype.raiseChanged=Ni.prototype.g,Ni.prototype.raiseChangedEvent=Ni.prototype.cb,Ni.prototype.removeChangedListener=Ni.prototype.ik,Ni.prototype.addChangedListener=Ni.prototype.Pe,Ni.prototype.writeJsonValue=Ni.prototype.sm,Ni.prototype.replaceJsonObjects=Ni.prototype.dm,Ni.prototype.applyIncrementalJSON=Ni.prototype.Ky,Ni.prototype.applyIncrementalJson=Ni.prototype.Zw,Ni.prototype.toJSON=Ni.prototype.toJSON,Ni.prototype.toJson=Ni.prototype.np,Ni.prototype.toIncrementalJSON=Ni.prototype.yA,Ni.prototype.toIncrementalJson=Ni.prototype.$x,Ni.prototype.toIncrementalData=Ni.prototype.xA,Ni.prototype.clear=Ni.prototype.clear;var LS=!1,Jl={};Ni.className="Model",Ni.fromJSON=Ni.fromJson=function(a,y){y===void 0&&(y=null);var x=null;if(typeof a=="string")try{x=Xn.JSON.parse(a)}catch(z){}else typeof a=="object"?x=a:et("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=fy(E)):(b=fy(E),b===null&&(b=Xn[E])),typeof b=="function"&&(a=new b)}catch(z){}a===null||a instanceof Ni?y=a:et("Unable to construct a Model of declared class: "+x.class)}return y===null&&(y=Ni.constructGraphLinksModel()),y.gp(x),y.kv(x),y},Ni.safePropertyValue=ya,Ni.safePropertySet=qo,Jl.Brush=xo,Jl.ChangedEvent=Wo,Jl.Geometry=Pn,Jl.Margin=Pi,Jl.Panel=Rn,Jl.Point=je,Jl.Rect=vt,Jl.Size=Je,Jl.Spot=En,Jl.Transaction=va,Jl.UndoManager=Qo;function Pa(a,y,x,E){rr(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=DS,this.wk=null):(this.el=yp,this.wk=E),this.st=new ln}Pa.prototype.copy=function(){var a=new Pa;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},Le=Pa.prototype,Le.qb=function(a){a.classType===Pa&&(this.mode=a)},Le.toString=function(){return"Binding("+this.targetProperty+":"+this.sourceProperty+(this.Ai!==-1?" "+this.Ai:"")+" "+this.mode.name+")"},Le.freeze=function(){return this._isFrozen=!0,this},Le.ka=function(){return this._isFrozen=!1,this},Le.Kx=function(a){return a===void 0&&(a=null),this.mode=yp,this.backConverter=a,this},Le.cp=function(a){return a===void 0&&(a=""),this.sourceName=a,this.isToModel=!1,this},Le.dA=function(){return this.sourceName=null,this.isToModel=!0,this};function bS(a,y,x){return a=a.sourceName,a===null||a===""?y:a==="/"?x.part:a==="."?x:a===".."?x.panel:y.fb(a)}Le.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==="")Yn("Binding error: target property is the empty string: "+this.toString());else{var z=y;if(E!==""&&(z=ya(y,E)),z!==void 0)if(b===null)x!==""&&qo(a,x,z);else try{if(x!==""){var ee=b(z,a);qo(a,x,ee)}else b(z,a)}catch(re){}}}},Le.sp=function(a,y,x,E){if(this.el===yp){var b=this.xl;if(x===void 0||b===x){x=this.sl;var z=this.wk,ee=a;if(b!==""&&(ee=ya(a,b)),ee!==void 0&&!this.st.contains(a))try{this.st.add(a);var re=E!==null?E.diagram:null,oe=re!==null?re.model:null;if(z===null){if(x!=="")oe!==null?oe.setDataProperty(y,x,ee):qo(y,x,ee);else if(oe!==null&&E!==null&&0<=E.itemIndex&&E.panel!==null&&Array.isArray(E.panel.itemArray)){var le=E.itemIndex,he=E.panel.itemArray;oe.ov(he,le),oe.ts(he,le,ee)}}else try{if(x!==""){var ge=z(ee,y,oe);oe!==null?oe.setDataProperty(y,x,ge):qo(y,x,ge)}else{var Se=z(ee,y,oe);if(Se!==void 0&&oe!==null&&E!==null&&0<=E.itemIndex&&E.panel!==null&&Array.isArray(E.panel.itemArray)){var Pe=E.itemIndex,Ae=E.panel.itemArray;oe.ov(Ae,Pe),oe.ts(Ae,Pe,Se)}}}catch(Be){}}finally{this.st.remove(a)}}}},It.Object.defineProperties(Pa.prototype,{Ai:{get:function(){return this.j},set:function(a){this._isFrozen&&Ft(this),this.j=a}},targetProperty:{get:function(){return this.xl},set:function(a){this._isFrozen&&Ft(this),this.xl=a}},sourceName:{get:function(){return this.Cr},set:function(a){this._isFrozen&&Ft(this),this.Cr=a,a!==null&&(this.wn=!1)}},isToModel:{get:function(){return this.wn},set:function(a){this._isFrozen&&Ft(this),this.wn=a}},sourceProperty:{get:function(){return this.sl},set:function(a){this._isFrozen&&Ft(this),this.sl=a}},converter:{get:function(){return this.Im},set:function(a){this._isFrozen&&Ft(this),this.Im=a}},backConverter:{get:function(){return this.wk},set:function(a){this._isFrozen&&Ft(this),this.wk=a}},mode:{get:function(){return this.el},set:function(a){this._isFrozen&&Ft(this),this.el=a}}}),Pa.prototype.updateSource=Pa.prototype.sp,Pa.prototype.updateTarget=Pa.prototype.Mv,Pa.prototype.ofModel=Pa.prototype.dA,Pa.prototype.ofObject=Pa.prototype.cp,Pa.prototype.makeTwoWay=Pa.prototype.Kx;var zx="Binding",DS=new yn(Pa,"OneWay",1),yp=new yn(Pa,"TwoWay",2);Pa.className="Binding",Pa.parseEnum=function(a,y){return function(x){return x=ni(a,x),x===null?y:x}},Pa.toString=Cr,Pa.OneWay=DS,Pa.TwoWay=yp;function Yr(a,y,x){Ni.call(this),this.Vv=`,
"insertedLinkKeys": `,this.iy=`,
"modifiedLinkData": `,this.Xv=`,
"removedLinkKeys": `,this.md=[],this.$f=new ln,this.wb=new Ut,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&&(Gn(a)?this.nodeDataArray=a:x=a),x&&(Object.assign(this,x),a=x.Changed)&&(delete this.Changed,this.Pe(a))}Vt(Yr,Ni),Yr.constructGraphLinksModel=Ni.constructGraphLinksModel,Yr.prototype.cloneProtected=function(a){Ni.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},Le=Yr.prototype,Le.clear=function(){Ni.prototype.clear.call(this),this.md=[],this.wb.clear(),this.$f.clear()},Le.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)+":"+Cr(b)}for(y+=`
link data:`,a=this.linkDataArray,x=a.length,E=0;E<x;E++)b=a[E],y+=" "+dl(this,b,!0)+"-->"+dl(this,b,!1)}return y},Le.Qv=function(a,y){this.linkKeyProperty===""&&et("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalData() to succeed.");var x=Ni.prototype.Qv.call(this,a,y),E=this,b=new ln,z=new ln,ee=new ln,re=this.vh;a.changes.each(function(he){he.model===E&&(he.modelChange==="linkDataArray"?he.change===Jo?b.add(he.newValue):he.change===ha&&ee.add(he.oldValue):E.Jc(he.object)?z.add(he.object):he.object!==null&&(he.object!==null&&re&&re.contains(he.object)?re.get(he.object).each(function(ge){E.Jc(ge)&&z.add(ge)}):he.object instanceof Ni||E.lb(he.object)||kS(E,he.object).each(function(ge){z.add(ge)})))});var oe=this.il;oe.clear(),b.each(function(he){oe.add(E.Ac(he)),y||z.add(he)});var le=this.kl;return le.clear(),ee.each(function(he){le.add(E.Ac(he)),y&&z.add(he)}),a=E.cloneDeep(z.Fa()),0<oe.count&&(x===null&&(x={}),y?x.removedLinkKeys=oe.Fa():x.insertedLinkKeys=oe.Fa()),0<a.length&&(x===null&&(x={}),x.modifiedLinkData=a),0<le.count&&(x===null&&(x={}),y?x.insertedLinkKeys=le.Fa():x.removedLinkKeys=le.Fa()),le.clear(),oe.clear(),x},Le.rm=function(){var a=Ni.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},Le.gp=function(a){Ni.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)},Le.Rv=function(){var a=Ni.prototype.Rv.call(this),y=`,
"linkDataArray": `+cd(this,this.linkDataArray,!0);return a+y},Le.kv=function(a){Ni.prototype.kv.call(this,a),a=a.linkDataArray,Array.isArray(a)&&(this.dm(a),this.linkDataArray=a)};function kS(a,y){for(var x=new ln,E=0;E<a.linkDataArray.length;E++){var b=a.linkDataArray[E];dm(a,y,b,b,x)}return x}Le.Pv=function(a,y){this.linkKeyProperty===""&&et("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalJson() to succeed.");var x=Ni.prototype.Pv.call(this,a,y),E=this,b=new ln,z=new ln,ee=new ln,re=this.vh;a.changes.each(function(he){he.model===E&&(he.modelChange==="linkDataArray"?he.change===Jo?b.add(he.newValue):he.change===ha&&ee.add(he.oldValue):E.Jc(he.object)?z.add(he.object):he.object!==null&&(he.object!==null&&re&&re.contains(he.object)?re.get(he.object).each(function(ge){E.Jc(ge)&&z.add(ge)}):he.object instanceof Ni||E.lb(he.object)||kS(E,he.object).each(function(ge){z.add(ge)})))});var oe=this.il;oe.clear(),b.each(function(he){oe.add(E.Ac(he)),y||z.add(he)});var le=this.kl;return le.clear(),ee.each(function(he){le.add(E.Ac(he)),y&&z.add(he)}),a=x,0<oe.count&&(a+=(y?this.Xv:this.Vv)+cd(this,oe.Fa(),!0)),0<z.count&&(a+=this.iy+cd(this,z.Fa(),!0)),0<le.count&&(a+=(y?this.Vv:this.Xv)+cd(this,le.Fa(),!0)),le.clear(),oe.clear(),a},Le.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)&&et("applyIncrementalJson cannot change Model properties"),Ni.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 ee in b)ee!=="__gohashid"&&ee!==this.linkKeyProperty&&this.setDataProperty(z,ee,b[ee]);TS(this,b,z)}}if(a=a.removedLinkKeys,Array.isArray(a))for(ee=a.length,y=0;y<ee;y++)x=this.jh(a[y]),x!==null&&this.bm(x)},Yr.prototype.changeState=function(a,y){if(a!==null&&a.model===this){if(a.change===Io){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),qo(x,E,b);return}}else if(a.change===Jo){if(x=a.newParam,a.modelChange==="linkDataArray"){a=a.newValue,en(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===ha){if(x=a.oldParam,a.modelChange==="linkDataArray"){a=a.oldValue,en(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}}Ni.prototype.changeState.call(this,a,y)}},Le=Yr.prototype,Le.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),qo(x,this.nodeKeyProperty,a),this.xf(x))}return a}},Le.yx=function(a){return dl(this,a,!0)},Le.wv=function(a,y){Yf(this,a,y,!0)},Le.Bx=function(a){return dl(this,a,!1)},Le.Bv=function(a,y){Yf(this,a,y,!1)};function dl(a,y,x){if(y!==null&&(a=x?a.lf:a.mf,a!==""&&(a=ya(y,a),a!==void 0))){if(fd(a))return a;et((x?"FromKey":"ToKey")+" value for link data "+y+" is not a number or a string: "+a)}}function Yf(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=ya(y,b);z!==x&&(lu(a,z,y),qo(y,b,x),a.hc(x)===null&&su(a,x,y),Da(a,E?"linkFromKey":"linkToKey",Io,b,y,z,x),typeof b=="string"&&a.La(y,b))}else qo(y,b,x)}}Le.zx=function(a){return fm(this,a,!0)},Le.xv=function(a,y){Kf(this,a,y,!0)},Le.Cx=function(a){return fm(this,a,!1)},Le.Cv=function(a,y){Kf(this,a,y,!1)};function fm(a,y,x){return y===null||(a=x?a.ej:a.fj,a==="")?"":(y=ya(y,a),y===void 0?"":y)}function Kf(a,y,x,E){if(y!==null){var b=E?a.ej:a.fj;if(b!=="")if(a.Jc(y)){var z=ya(y,b);z===void 0&&(z=""),z!==x&&(qo(y,b,x),Da(a,E?"linkFromPortId":"linkToPortId",Io,b,y,z,x),typeof b=="string"&&a.La(y,b))}else qo(y,b,x)}}Le.Ef=function(a){if(a===null)return gm;var y=this.je;return y===""?gm:(a=ya(a,y),a===void 0?gm:a)},Le.Ls=function(a,y){if(a!==null){var x=this.je;if(x!=="")if(this.Jc(a)){var E=ya(a,x);if(E===void 0&&(E=gm),E!==y){if(Array.isArray(E))for(var b=E.length,z=0;z<b;z++)lu(this,E[z],a);for(qo(a,x,y),b=y.length,z=0;z<b;z++){var ee=y[z];this.hc(ee)===null&&su(this,ee,a)}Da(this,"linkLabelKeys",Io,x,a,E,y),typeof x=="string"&&this.La(a,x)}}else qo(a,x,y)}},Le.Bu=function(a,y){if(y!=null&&a!==null){var x=this.je;if(x!==""){var E=ya(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&&su(this,y,a),Da(this,"linkLabelKeys",Jo,x,a,null,y,null,b)))}else et(x+" property is not an Array; cannot addLabelKeyForLinkData: "+a)}}},Le.Qx=function(a,y){if(y!=null&&a!==null){var x=this.je;if(x!==""){var E=ya(a,x);if(Array.isArray(E)){var b=E.indexOf(y);0>b||(E.splice(b,1),this.Jc(a)&&(lu(this,y,a),Da(this,"linkLabelKeys",ha,x,a,y,null,b,null)))}else E!==void 0&&et(x+" property is not an Array; cannot removeLabelKeyforLinkData: "+a)}}},Le.Ac=function(a){if(a!==null){var y=this.Jh;if(y!==""&&(y=ya(a,y),y!==void 0)){if(fd(y))return y;et("Key value for link data "+a+" is not a number or a string: "+y)}}},Le.Ks=function(a,y){if(a!==null){var x=this.Jh;if(x!=="")if(this.Jc(a)){var E=ya(a,x);E!==y&&this.jh(y)===null&&(qo(a,x,y),E!==void 0&&this.wb.remove(E),this.wb.add(y,a),Da(this,"linkKey",Io,x,a,E,y),typeof x=="string"&&this.La(a,x))}else qo(a,x,y)}},Le.jh=function(a){return a===null&&et("GraphLinksModel.findLinkDataForKey:key must not be null"),a!==void 0&&fd(a)?this.wb.I(a):null},Le.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))){qo(a,y,x);return}if(typeof x=="string"){for(E=2;this.wb.contains(x+E);)E++;qo(a,y,x+E)}else if(x===void 0||typeof x=="number"){for(x=-this.wb.count-1;this.wb.contains(x);)x--;qo(a,y,x)}}}}},Le.Jc=function(a){return a===null?!1:this.$f.contains(a)},Le.fi=function(a){a!==null&&(Vr(a),this.Jc(a)||BS(this,a,!0))};function BS(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&&et("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)),Da(a,"linkDataArray",Jo,"linkDataArray",a,null,y,null,E),gy(a,y)}Le.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)},Le.bm=function(a){a!==null&&NS(this,a,!0)};function NS(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(Da(a,"linkDataArray",ha,"linkDataArray",a,y,null,E,null),x=dl(a,y,!0),lu(a,x,y),x=dl(a,y,!1),lu(a,x,y),E=a.Ef(y),Array.isArray(E))for(var b=E.length,z=0;z<b;z++)x=E[z],lu(a,x,y)}Le.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)},Le.Zz=function(a){if(this.linkKeyProperty===""&&et("GraphLinksModel.linkKeyProperty must not be an empty string for .mergeLinkDataArray() to succeed."),a!==this.linkDataArray&&Gn(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],ee=this.Ac(z);if(ee!==void 0){x.add(ee);var re=this.jh(ee);re!==z&&(re!==null?(this.Do(re,z),TS(this,z,re)):(z=this.cloneDeep(z),this.Ks(z,ee),this.fi(z)))}else ee=this.cloneDeep(z),this.fi(ee),x.add(this.Ac(ee))}for(a=y.iterator;a.next();)E=a.value,x.contains(E)||(E=this.jh(E))&&this.bm(E);y.clear(),x.clear()}};function gy(a,y){var x=dl(a,y,!0);x=a.Vl(x),a.hc(x)===null&&su(a,x,y),x=dl(a,y,!1),x=a.Vl(x),a.hc(x)===null&&su(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&&su(a,x,y)}Le.Jo=function(a){if(a===null)return null;var y=this.Ak;return a=y!==null?y(a,this):cm(this,a,!0),en(a)&&(rr(a),this.lf!==""&&qo(a,this.lf,void 0),this.mf!==""&&qo(a,this.mf,void 0),this.je!==""&&qo(a,this.je,[])),a},Le.Yu=function(a){if(a===null)return!1;var y=this.jl;return y===""?!1:!!ya(a,y)},Le.lh=function(a){if(a!==null){var y=this.Je;if(y!==""&&(y=ya(a,y),y!==void 0)){if(fd(y))return y;et("GroupKey value for node data "+a+" is not a number or a string: "+y)}}},Le.mp=function(a,y){if(y===null&&(y=void 0),a!==null){var x=this.Je;if(x!=="")if(this.lb(a)){var E=ya(a,x);E!==y&&(lu(this,E,a),qo(a,x,y),this.hc(y)===null&&su(this,y,a),Da(this,"nodeGroupKey",Io,x,a,E,y),typeof x=="string"&&this.La(a,x))}else qo(a,x,y)}},Yr.prototype.copyNodeData=function(a){return a===null?null:(a=Ni.prototype.copyNodeData.call(this,a),this.Ij||this.Je===""||ya(a,this.Je)===void 0||qo(a,this.Je,void 0),a)},Yr.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){Yf(this,a,x,!0);return}if(y===this.linkToKeyProperty){Yf(this,a,x,!1);return}if(y===this.linkFromPortIdProperty){Kf(this,a,x,!0);return}if(y===this.linkToPortIdProperty){Kf(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=ya(a,y);E!==x&&(qo(a,y,x),this.Fs(a,y,E,x))},Le=Yr.prototype,Le.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&&ya(a,b)===y[b]||E&&b===this.linkKeyProperty||this.setDataProperty(a,b,y[b])}},Le.jp=function(a,y){Ni.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(dl(this,E,!0)===b){var ee=this.lf;qo(E,ee,z),Da(this,"linkFromKey",Io,ee,E,b,z),typeof ee=="string"&&this.La(E,ee)}if(dl(this,E,!1)===b&&(ee=this.mf,qo(E,ee,z),Da(this,"linkToKey",Io,ee,E,b,z),typeof ee=="string"&&this.La(E,ee)),ee=this.Ef(E),Array.isArray(ee))for(var re=ee.length,oe=this.je,le=0;le<re;le++)ee[le]===b&&(ee[le]=z,Da(this,"linkLabelKeys",Jo,oe,E,b,z,le,le))}},Le.qv=function(a,y,x){if(this.lh(a)===y){var E=this.Je;qo(a,E,x),Da(this,"nodeGroupKey",Io,E,a,y,x),typeof E=="string"&&this.La(a,E)}},Le.Lv=function(){Ni.prototype.Lv.call(this);for(var a=this.linkDataArray,y=a.length,x=0;x<y;x++)gy(this,a[x])},Le.fm=function(a){Ni.prototype.fm.call(this,a),a=this.wa(a);var y=mp(this,a);if(y!==null){var x=mi();for(y=y.iterator;y.next();){var E=y.value;if(this.lb(E)){if(this.lh(E)===a){var b=this.Je;Da(this,"nodeGroupKey",Io,b,E,a,a),typeof b=="string"&&this.La(E,b),x.push(E)}}else if(dl(this,E,!0)===a&&(b=this.lf,Da(this,"linkFromKey",Io,b,E,a,a),typeof b=="string"&&this.La(E,b),x.push(E)),dl(this,E,!1)===a&&(b=this.mf,Da(this,"linkToKey",Io,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,ee=this.je,re=0;re<z;re++)b[re]===a&&(Da(this,"linkLabelKeys",Jo,ee,E,a,a,re,re),x.push(E))}for(y=0;y<x.length;y++)lu(this,a,x[y]);sn(x)}},Le.em=function(a){Ni.prototype.em.call(this,a);var y=this.lh(a);this.hc(y)===null&&su(this,y,a)},Le.qp=function(a){Ni.prototype.qp.call(this,a);var y=this.lh(a);lu(this,y,a)},Le.ps=function(a){if(a===null)return"";var y=this.dj;if(y===""||(y=ya(a,y),y===void 0))return"";if(typeof y=="string")return y;et("getCategoryForLinkData found a non-string category for "+a+": "+y)},Yr.prototype.getLinkCategoryForData=function(a){return this.ps(a)},Yr.prototype.lp=function(a,y){if(a!==null){var x=this.dj;if(x!=="")if(this.Jc(a)){var E=ya(a,x);E===void 0&&(E=""),E!==y&&(qo(a,x,y),Da(this,"linkCategory",Io,x,a,E,y),typeof x=="string"&&this.La(a,x))}else qo(a,x,y)}},Yr.prototype.setLinkCategoryForData=function(a,y){this.lp(a,y)},Le=Yr.prototype,Le.lm=function(a,y){Ni.prototype.lm.call(this,a,y),this.mp(y,this.lh(a))};function TS(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))}Le.Wj=function(){return!0},Le.ri=function(){return!0},Le.xs=function(){return!0},Le.Xj=function(){return!0},It.Object.defineProperties(Yr.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];en(b)||et("GraphLinksModel.linkDataArray must only contain Objects, not: "+b),Vr(b)}if(this.md=a,this.linkKeyProperty!==""){for(E=new Mn,b=0;b<x;b++){var z=a[b],ee=this.Ac(z);ee===void 0||this.wb.I(ee)!==null?E.add(z):this.wb.add(ee,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 ln,b=0;b<x;b++)E.add(a[b]);for(this.$f=E,Da(this,"linkDataArray",Io,"linkDataArray",this,y,a),y=0;y<x;y++)gy(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"}}}),Yr.prototype.setCategoryForLinkData=Yr.prototype.lp,Yr.prototype.getCategoryForLinkData=Yr.prototype.ps,Yr.prototype.assignAllDataProperties=Yr.prototype.Do,Yr.prototype.setGroupKeyForNodeData=Yr.prototype.mp,Yr.prototype.getGroupKeyForNodeData=Yr.prototype.lh,Yr.prototype.isGroupForNodeData=Yr.prototype.Yu,Yr.prototype.copyLinkData=Yr.prototype.Jo,Yr.prototype.mergeLinkDataArray=Yr.prototype.Zz,Yr.prototype.removeLinkDataCollection=Yr.prototype.lA,Yr.prototype.removeLinkData=Yr.prototype.bm,Yr.prototype.addLinkDataCollection=Yr.prototype.Ey,Yr.prototype.addLinkData=Yr.prototype.fi,Yr.prototype.containsLinkData=Yr.prototype.Jc,Yr.prototype.makeLinkDataKeyUnique=Yr.prototype.Bs,Yr.prototype.findLinkDataForKey=Yr.prototype.jh,Yr.prototype.setKeyForLinkData=Yr.prototype.Ks,Yr.prototype.getKeyForLinkData=Yr.prototype.Ac,Yr.prototype.removeLabelKeyForLinkData=Yr.prototype.Qx,Yr.prototype.addLabelKeyForLinkData=Yr.prototype.Bu,Yr.prototype.setLabelKeysForLinkData=Yr.prototype.Ls,Yr.prototype.getLabelKeysForLinkData=Yr.prototype.Ef,Yr.prototype.setToPortIdForLinkData=Yr.prototype.Cv,Yr.prototype.getToPortIdForLinkData=Yr.prototype.Cx,Yr.prototype.setFromPortIdForLinkData=Yr.prototype.xv,Yr.prototype.getFromPortIdForLinkData=Yr.prototype.zx,Yr.prototype.setToKeyForLinkData=Yr.prototype.Bv,Yr.prototype.getToKeyForLinkData=Yr.prototype.Bx,Yr.prototype.setFromKeyForLinkData=Yr.prototype.wv,Yr.prototype.getFromKeyForLinkData=Yr.prototype.yx,Yr.prototype.clear=Yr.prototype.clear;var gm=Object.freeze([]);Yr.className="GraphLinksModel",Jl.GraphLinksModel=Yr,Ni.constructGraphLinksModel=Ni.constructGraphLinksModel=function(){return new Yr},Ni.initDiagramModel=cy=function(){return new Yr};function bs(a,y){Ni.call(this),this.Ke="parent",this.Nm=!1,this.nj="parentLinkCategory",a!==void 0&&(Gn(a)?this.nodeDataArray=a:y=a),y&&(Object.assign(this,y),a=y.Changed)&&(delete this.Changed,this.Pe(a))}Vt(bs,Ni),bs.constructGraphLinksModel=Ni.constructGraphLinksModel,bs.prototype.cloneProtected=function(a){Ni.prototype.cloneProtected.call(this,a),a.Ke=this.Ke,a.Nm=this.Nm,a.nj=this.nj},Le=bs.prototype,Le.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)+":"+Cr(b)}}return y},Le.rm=function(){var a=Ni.prototype.rm.call(this),y="";return this.nodeParentKeyProperty!=="parent"&&typeof this.nodeParentKeyProperty=="string"&&(y+=`,
"nodeParentKeyProperty": `+this.quote(this.nodeParentKeyProperty)),a+y},Le.gp=function(a){Ni.prototype.gp.call(this,a),a.nodeParentKeyProperty&&(this.nodeParentKeyProperty=a.nodeParentKeyProperty)},Le.fp=function(a){a.nodeParentKeyProperty!==void 0&&a.nodeParentKeyProperty!==this.nodeParentKeyProperty&&et("applyIncrementalJson cannot change Model properties"),Ni.prototype.fp.call(this,a)},Le.Vl=function(a){return a},Le.mh=function(a){if(a!==null){var y=this.Ke;if(y!==""&&(y=ya(a,y),y!==void 0)){if(fd(y))return y;et("ParentKey value for node data "+a+" is not a number or a string: "+y)}}},Le.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=ya(a,x);E!==y&&(lu(this,E,a),qo(a,x,y),this.hc(y)===null&&su(this,y,a),Da(this,"nodeParentKey",Io,x,a,E,y),typeof x=="string"&&this.La(a,x))}else qo(a,x,y)}},Le.ss=function(a){if(a===null)return"";var y=this.nj;return y===""||(y=ya(a,y),y===void 0)?"":typeof y=="string"?y:(et("getParentLinkCategoryForNodeData found a non-string category for "+a+": "+y),"")},bs.prototype.getLinkCategoryForData=function(a){return this.ss(a)},bs.prototype.Ms=function(a,y){if(a!==null){var x=this.nj;if(x!=="")if(this.lb(a)){var E=ya(a,x);E===void 0&&(E=""),E!==y&&(qo(a,x,y),Da(this,"parentLinkCategory",Io,x,a,E,y),typeof x=="string"&&this.La(a,x))}else qo(a,x,y)}},bs.prototype.setLinkCategoryForData=function(a,y){this.Ms(a,y)},bs.prototype.copyNodeData=function(a){return a===null?null:(a=Ni.prototype.copyNodeData.call(this,a),this.Jj||this.Ke===""||ya(a,this.Ke)===void 0||qo(a,this.Ke,void 0),a)},bs.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=ya(a,y);E!==x&&(qo(a,y,x),this.Fs(a,y,E,x))},Le=bs.prototype,Le.jp=function(a,y){Ni.prototype.jp.call(this,a,y);for(var x=this.kb.iterator;x.next();)this.qv(x.value,a,y)},Le.qv=function(a,y,x){if(this.mh(a)===y){var E=this.Ke;qo(a,E,x),Da(this,"nodeParentKey",Io,E,a,y,x),typeof E=="string"&&this.La(a,E)}},Le.fm=function(a){Ni.prototype.fm.call(this,a),a=this.wa(a);var y=mp(this,a);if(y!==null){var x=mi();for(y=y.iterator;y.next();){var E=y.value;if(this.lb(E)&&this.mh(E)===a){var b=this.Ke;Da(this,"nodeParentKey",Io,b,E,a,a),typeof b=="string"&&this.La(E,b),x.push(E)}}for(y=0;y<x.length;y++)lu(this,a,x[y]);sn(x)}},Le.em=function(a){Ni.prototype.em.call(this,a);var y=this.mh(a);y=this.Vl(y),this.hc(y)===null&&su(this,y,a)},Le.qp=function(a){Ni.prototype.qp.call(this,a);var y=this.mh(a);lu(this,y,a)},Le.lm=function(a,y){Ni.prototype.lm.call(this,a,y),this.Ms(y,this.ss(a)),this.qe(y,this.mh(a))},Le.Tl=function(){return!0},Le.xs=function(){return!0},It.Object.defineProperties(bs.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"}}}),bs.prototype.setParentLinkCategoryForNodeData=bs.prototype.Ms,bs.prototype.getParentLinkCategoryForNodeData=bs.prototype.ss,bs.prototype.setParentKeyForNodeData=bs.prototype.qe,bs.prototype.getParentKeyForNodeData=bs.prototype.mh,bs.className="TreeModel",Jl.TreeModel=bs;function oa(a){$o.call(this),this.lw=this.Zm=this.lc=0,this.Wp=360,this.kw=ql,this.Ti=0,this.Zv=new je,this.Jp=this.me=0,this.Xr=new wp,this.gt=this.mj=0,this.ty=600,this.eo=NaN,this.Cm=1,this.ro=0,this.ul=360,this.Rb=ql,this.K=Ds,this.nd=Uf,this.hd=ay,this.tf=6,this.Nn=Pm,a&&Object.assign(this,a)}Vt(oa,$o),oa.prototype.cloneProtected=function(a){$o.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},oa.prototype.qb=function(a){a.classType===oa?a===Sm||a===xm||a===vm||a===ym||a===Uf?this.sorting=a:a===nc||a===_f||a===Ds||a===pd?this.direction=a:a===Th||a===gd||a===ql||a===$l?this.arrangement=a:(a===Wc||a===Pm)&&(this.nodeDiameterFormula=a):$o.prototype.qb.call(this,a)},oa.prototype.createNetwork=function(){return new Xf(this)},oa.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 Mn;y.addAll(a.iterator),a=new Mn;var x=new Mn,E=this.sort(y),b,z,ee=this.Jp,re=this.arrangement,oe=this.nodeDiameterFormula,le=this.radius;(!isFinite(le)||0>=le)&&(le=NaN);var he=this.aspectRatio;(!isFinite(he)||0>=he)&&(he=1);var ge=this.startAngle;isFinite(ge)||(ge=0);var Se=this.sweepAngle;if((!isFinite(Se)||360<Se||1>Se)&&(Se=360),y=this.spacing,isFinite(y)||(y=NaN),re===$l&&oe===Wc?re=ql:re===$l&&oe!==Wc&&(re=this.arrangement),(this.direction===nc||this.direction===_f)&&this.sorting!==Uf){for(oe=0;!(oe>=E.length)&&(a.add(E.M(oe)),!(oe+1>=E.length));oe+=2)x.add(E.M(oe+1));this.direction===nc?(this.arrangement===$l&&a.reverse(),E=new Mn,E.addAll(a),E.addAll(x)):(this.arrangement===$l&&x.reverse(),E=new Mn,E.addAll(x),E.addAll(a))}oe=E.length;for(var Pe=z=b=0;Pe<E.length;Pe++){var Ae=ge+Se*z*(this.direction===Ds?1:-1)/oe,Be=E.M(Pe).diameter;isNaN(Be)&&(Be=md(E.M(Pe),Ae)),360>Se&&(Pe===0||Pe===E.length-1)&&(Be/=2),b+=Be,z++}if(isNaN(le)||re===$l){if(isNaN(y)&&(y=6),re!==ql&&re!==$l){for(z=-1/0,ee=0;ee<oe;ee++)Pe=E.M(ee),b=E.M(ee===oe-1?0:ee+1),isNaN(Pe.diameter)&&md(Pe,0),isNaN(b.diameter)&&md(b,0),z=Math.max(z,(Pe.diameter+b.diameter)/2);ee=z+y,re===Th?le=(z+y)/(2*Math.PI/oe):le=pm(this,ee*(360<=Se?oe:oe-1),he,ge*Math.PI/180,Se*Math.PI/180)}else le=pm(this,b+(360<=Se?oe:oe-1)*(re!==$l?y:1.6*y),he,ge*Math.PI/180,Se*Math.PI/180);z=le*he}else if(z=le*he,Pe=py(this,le,z,ge*Math.PI/180,Se*Math.PI/180),isNaN(y))(re===ql||re===$l)&&(y=(Pe-b)/(360<=Se?oe:oe-1));else if(re===ql||re===$l)Pe=(Pe-b)/(360<=Se?oe:oe-1),Pe<y?(le=pm(this,b+y*(360<=Se?oe:oe-1),he,ge*Math.PI/180,Se*Math.PI/180),z=le*he):y=Pe;else{for(ee=-1/0,b=0;b<oe;b++)Ae=E.M(b),Be=E.M(b===oe-1?0:b+1),isNaN(Ae.diameter)&&md(Ae,0),isNaN(Be.diameter)&&md(Be,0),ee=Math.max(ee,(Ae.diameter+Be.diameter)/2);ee+=y,b=pm(this,ee*(360<=Se?oe:oe-1),he,ge*Math.PI/180,Se*Math.PI/180),b>le?(le=b,z=le*he):ee=Pe/(360<=Se?oe:oe-1)}if(this.kw=re,this.lc=le,this.Zm=he,this.lw=ge,this.Wp=Se,this.Ti=y,this.me=z,this.Jp=ee,y=E,E=this.kw,re=this.lc,le=this.lw,he=this.Wp,ge=this.Ti,Se=this.me,oe=this.Jp,this.direction!==nc&&this.direction!==_f||E!==$l)if(this.direction===nc||this.direction===_f){switch(ee=0,E){case gd:ee=180*mm(this,re,Se,le,oe)/Math.PI;break;case ql:oe=y=0,ee=a.first(),ee!==null&&(y=md(ee,Math.PI/2)),ee=x.first(),ee!==null&&(oe=md(ee,Math.PI/2)),ee=180*mm(this,re,Se,le,ge+(y+oe)/2)/Math.PI;break;case Th:ee=he/y.length}if(this.direction===nc){switch(E){case gd:Pp(this,a,le,pd);break;case ql:xp(this,a,le,pd);break;case Th:Sp(this,a,he/2,le,pd)}switch(E){case gd:Pp(this,x,le+ee,Ds);break;case ql:xp(this,x,le+ee,Ds);break;case Th:Sp(this,x,he/2,le+ee,Ds)}}else{switch(E){case gd:Pp(this,x,le,pd);break;case ql:xp(this,x,le,pd);break;case Th:Sp(this,x,he/2,le,pd)}switch(E){case gd:Pp(this,a,le+ee,Ds);break;case ql:xp(this,a,le+ee,Ds);break;case Th:Sp(this,a,he/2,le+ee,Ds)}}}else switch(E){case gd:Pp(this,y,le,this.direction);break;case ql:xp(this,y,le,this.direction);break;case Th:Sp(this,y,he,le,this.direction);break;case $l:OS(this,y,he,le,this.direction)}else OS(this,y,he,le-he/2,Ds)}this.updateParts(),this.network=null,this.isValidLayout=!0};function Sp(a,y,x,E,b){var z=a.Wp,ee=a.lc;a=a.me,E=E*Math.PI/180,x=x*Math.PI/180;for(var re=y.length,oe=0;oe<re;oe++){var le=E+(b===Ds?oe*x/(360<=z?re:re-1):-(oe*x)/re),he=y.M(oe),ge=ee*Math.tan(le)/a;ge=Math.sqrt((ee*ee+a*a*ge*ge)/(1+ge*ge)),he.centerX=ge*Math.cos(le),he.centerY=ge*Math.sin(le),he.actualAngle=180*le/Math.PI}}function xp(a,y,x,E){var b=a.lc,z=a.me,ee=a.Ti;x=x*Math.PI/180;for(var re=y.length,oe=0;oe<re;oe++){var le=y.M(oe),he=y.M(oe===re-1?0:oe+1),ge=z*Math.sin(x);le.centerX=b*Math.cos(x),le.centerY=ge,le.actualAngle=180*x/Math.PI,isNaN(le.diameter)&&md(le,0),isNaN(he.diameter)&&md(he,0),le=mm(a,b,z,E===Ds?x:-x,(le.diameter+he.diameter)/2+ee),x+=E===Ds?le:-le}}function Pp(a,y,x,E){var b=a.lc,z=a.me,ee=a.Jp;x=x*Math.PI/180;for(var re=y.length,oe=0;oe<re;oe++){var le=y.M(oe);le.centerX=b*Math.cos(x),le.centerY=z*Math.sin(x),le.actualAngle=180*x/Math.PI,le=mm(a,b,z,E===Ds?x:-x,ee),x+=E===Ds?le:-le}}function OS(a,y,x,E,b){var z=a.Wp;if(a.mj=0,a.Xr=new wp,360>x){for(z=E+(b===Ds?z:-z);0>z;)z+=360;z%=360,180<z&&(z-=360),z*=Math.PI/180,a.gt=z,RS(a,y,x,E,b)}else IS(a,y,x,E,b);a.Xr.commit(y)}function IS(a,y,x,E,b){var z=a.lc,ee=a.Ti,re=a.Zm,oe=z*Math.cos(E*Math.PI/180),le=a.me*Math.sin(E*Math.PI/180),he=y.Fa();if(he.length===3)he[0].centerX=z,he[0].centerY=0,he[1].centerX=he[0].centerX-he[0].width/2-he[1].width/2-ee,he[1].y=he[0].y,he[2].centerX=(he[0].centerX+he[1].centerX)/2,he[2].y=he[0].y-he[2].height-ee;else if(he.length===4)he[0].centerX=z,he[0].centerY=0,he[2].centerX=-he[0].centerX,he[2].centerY=he[0].centerY,he[1].centerX=0,he[1].y=Math.min(he[0].y,he[2].y)-he[1].height-ee,he[3].centerX=0,he[3].y=Math.max(he[0].y+he[0].height+ee,he[2].y+he[2].height+ee);else{z=je.alloc();for(var ge=0;ge<he.length&&(he[ge].centerX=oe,he[ge].centerY=le,!(ge>=he.length-1));ge++)jS(a,oe,le,he,ge,b,z)||zS(a,oe,le,he,ge,b,z),oe=z.x,le=z.y;if(je.free(z),a.mj++,!(23<a.mj)){oe=he[0].centerX,le=he[0].centerY,z=he[he.length-1].centerX,ge=he[he.length-1].centerY;var Se=Math.abs(oe-z)-((he[0].width+he[he.length-1].width)/2+ee),Pe=Math.abs(le-ge)-((he[0].height+he[he.length-1].height)/2+ee);ee=0,1>Math.abs(Pe)?Math.abs(oe-z)<(he[0].width+he[he.length-1].width)/2&&(ee=0):ee=0<Pe?Pe:1>Math.abs(Se)?0:Se,oe=Math.abs(z)>Math.abs(ge)?0<z!=le>ge:0<ge!=oe<z,(oe=b===Ds?oe:!oe)&&(ee=-Math.abs(ee),ee=Math.min(ee,-he[he.length-1].width),ee=Math.min(ee,-he[he.length-1].height)),a.Xr.compare(ee,he),1<Math.abs(ee)&&(a.lc=8>a.mj?a.lc-ee/(2*Math.PI):5>he.length&&10<ee?a.lc/2:a.lc-(0<ee?1.7:-2.3),a.me=a.lc*re,IS(a,y,x,E,b))}}}function RS(a,y,x,E,b){for(var z=a.lc,ee=a.me,re=a.Zm,oe=z*Math.cos(E*Math.PI/180),le=ee*Math.sin(E*Math.PI/180),he=je.alloc(),ge=y.Fa(),Se=0;Se<ge.length&&(ge[Se].centerX=oe,ge[Se].centerY=le,!(Se>=ge.length-1));Se++)jS(a,oe,le,ge,Se,b,he)||zS(a,oe,le,ge,Se,b,he),oe=he.x,le=he.y;if(je.free(he),a.mj++,!(23<a.mj)){if(oe=Math.atan2(le,oe),oe=b===Ds?a.gt-oe:oe-a.gt,oe=Math.abs(oe)<Math.abs(oe-2*Math.PI)?oe:oe-2*Math.PI,z=oe*(z+ee)/2,ee=a.Xr,Math.abs(z)<Math.abs(ee.Pl))for(ee.Pl=z,ee.mk=[],ee.tm=[],oe=0;oe<ge.length;oe++)ee.mk[oe]=ge[oe].bounds.x,ee.tm[oe]=ge[oe].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*re,RS(a,y,x,E,b))}}function jS(a,y,x,E,b,z,ee){var re=a.lc,oe=a.me,le=0;a=(E[b].width+E[b+1].width)/2+a.Ti;var he=!1;if(0<=x!=(z===Ds)){if(z=y+a,z>re){if(z=y-a,z<-re)return ee.x=z,ee.y=le,!1;he=!0}}else if(z=y-a,z<-re){if(z=y+a,z>re)return ee.x=z,ee.y=le,!1;he=!0}return le=Math.sqrt(1-Math.min(1,z*z/(re*re)))*oe,0>x!==he&&(le=-le),Math.abs(x-le)>(E[b].height+E[b+1].height)/2?(ee.x=z,ee.y=le,!1):(ee.x=z,ee.y=le,!0)}function zS(a,y,x,E,b,z,ee){var re=a.lc,oe=a.me,le=0;if(a=(E[b].height+E[b+1].height)/2+a.Ti,E=!1,0<=y!=(z===Ds)){if(z=x-a,z<-oe){if(z=x+a,z>oe){ee.x=le,ee.y=z;return}E=!0}}else if(z=x+a,z>oe){if(z=x-a,z<-oe){ee.x=le,ee.y=z;return}E=!0}le=Math.sqrt(1-Math.min(1,z*z/(oe*oe)))*re,0>y!==E&&(le=-le),ee.x=le,ee.y=z}oa.prototype.commitLayout=function(){this.commitNodes(),this.isRouting&&this.commitLinks()},oa.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 je(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))},oa.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()};function py(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 ee=0,re=E!==void 0&&b!==void 0?b/(z+1):Math.PI/(2*(z+1)),oe=0,le=0;le<=z;le++){E!==void 0&&b!==void 0?oe=E+le*b/z:oe=le*Math.PI/(2*z);var he=Math.sin(oe);ee+=Math.sqrt(1-a*a*he*he)*re}return E!==void 0&&b!==void 0?(y>x?y:x)*ee:4*(y>x?y:x)*ee}function pm(a,y,x,E,b){return y/(E!==void 0&&b!==void 0?py(a,1,x,E,b):py(a,1,x))}function mm(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,ee=0;a=2*Math.PI/(700*a.network.vertexes.count),y>x&&(E+=Math.PI/2);for(var re=0;;re++){var oe=Math.sin(E+re*a);if(ee+=(y>x?y:x)*Math.sqrt(1-z*z*oe*oe)*a,ee>=b)return re*a}}oa.prototype.sort=function(a){switch(this.sorting){case vm:break;case ym:a.reverse();break;case Sm:a.sort(this.comparer);break;case xm:a.sort(this.comparer),a.reverse();break;case Uf:return this.ak(Zx(a));default:et("Invalid sorting type.")}return a};function Zx(a){for(var y=[],x=0;x<a.length;x++)y.push(0);x=new Mn;for(var E=0;E<a.length;E++){var b=-1,z=-1;if(E===0)for(var ee=0;ee<a.length;ee++){var re=a.M(ee).edgesCount;re>b&&(b=re,z=ee)}else for(ee=0;ee<a.length;ee++)re=y[ee],re>b&&(b=re,z=ee);for(x.add(a.M(z)),y[z]=-1,z=a.M(z),ee=z.sourceEdges;ee.next();)b=a.indexOf(ee.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}oa.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 ee=[],re=[];E=[],b=new Mn;for(var oe=0,le=0;le<y.length;le++){var he=y[le].length;if(he===1)E.push(le);else if(he===0)b.add(a.M(le));else{if(oe===0)x.push(le);else{for(var ge=he=1/0,Se=-1,Pe=[],Ae=0;Ae<x.length;Ae++)0>y[x[Ae]].indexOf(x[Ae===x.length-1?0:Ae+1])&&Pe.push(Ae===x.length-1?0:Ae+1);if(Pe.length===0)for(Ae=0;Ae<x.length;Ae++)Pe.push(Ae);for(Ae=0;Ae<Pe.length;Ae++){for(var Be=Pe[Ae],Qe=y[le],Ke=0,lt=0;lt<ee.length;lt++){var ct=z[ee[lt]],ft=z[re[lt]];if(ct<ft){var Et=ct;ct=ft}else Et=ft;if(Et<Be&&Be<=ct)for(ft=0;ft<Qe.length;ft++){var Gt=Qe[ft];0>x.indexOf(Gt)||Et<z[Gt]&&z[Gt]<ct||Et===z[Gt]||ct===z[Gt]||Ke++}else for(ft=0;ft<Qe.length;ft++)Gt=Qe[ft],0>x.indexOf(Gt)||Et<z[Gt]&&z[Gt]<ct&&Et!==z[Gt]&&ct!==z[Gt]&&Ke++}for(Qe=Ke,lt=Ke=0;lt<y[le].length;lt++)Et=x.indexOf(y[le][lt]),0<=Et&&(Et=Math.abs(Be-(Et>=Be?Et+1:Et)),Ke+=Et<x.length+1-Et?Et:x.length+1-Et);for(lt=0;lt<ee.length;lt++)Et=z[ee[lt]],ct=z[re[lt]],Et>=Be&&Et++,ct>=Be&&ct++,Et>ct&&(ft=ct,ct=Et,Et=ft),ct-Et<(x.length+2)/2==(Et<Be&&Be<=ct)&&Ke++;(Qe<he||Qe===he&&Ke<ge)&&(he=Qe,ge=Ke,Se=Be)}for(x.splice(Se,0,le),he=0;he<x.length;he++)z[x[he]]=he;for(he=0;he<y[le].length;he++)ge=y[le][he],0<=x.indexOf(ge)&&(ee.push(le),re.push(ge))}oe++}}for(ee=x.length;;){for(z=!0,re=0;re<E.length;re++)if(oe=E[re],le=y[oe][0],he=x.indexOf(le),0<=he){for(Se=ge=0;Se<y[le].length;Se++)Pe=x.indexOf(y[le][Se]),0>Pe||Pe===he||(Ae=Pe>he?Pe-he:he-Pe,ge+=Pe<he!=Ae>ee-Ae?1:-1);x.splice(0>ge?he:he+1,0,oe),E.splice(re,1),re--}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},It.Object.defineProperties(oa.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!==$l&&a!==ql&&a!==gd&&a!==Th||(this.Rb=a,this.C())}},direction:{get:function(){return this.K},set:function(a){this.K===a||a!==Ds&&a!==pd&&a!==nc&&a!==_f||(this.K=a,this.C())}},sorting:{get:function(){return this.nd},set:function(a){this.nd===a||a!==vm&&a!==ym&&a!==Sm&&!xm&&a!==Uf||(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!==Pm&&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 ql=new yn(oa,"ConstantSpacing",0),gd=new yn(oa,"ConstantDistance",1),Th=new yn(oa,"ConstantAngle",2),$l=new yn(oa,"Packed",3),Ds=new yn(oa,"Clockwise",4),pd=new yn(oa,"Counterclockwise",5),nc=new yn(oa,"BidirectionalLeft",6),_f=new yn(oa,"BidirectionalRight",7),vm=new yn(oa,"Forwards",8),ym=new yn(oa,"Reverse",9),Sm=new yn(oa,"Ascending",10),xm=new yn(oa,"Descending",11),Uf=new yn(oa,"Optimized",12),Pm=new yn(oa,"Pythagorean",13),Wc=new yn(oa,"Circular",14);oa.className="CircularLayout",oa.ConstantSpacing=ql,oa.ConstantDistance=gd,oa.ConstantAngle=Th,oa.Packed=$l,oa.Clockwise=Ds,oa.Counterclockwise=pd,oa.BidirectionalLeft=nc,oa.BidirectionalRight=_f,oa.Forwards=vm,oa.Reverse=ym,oa.Ascending=Sm,oa.Descending=xm,oa.Optimized=Uf,oa.Pythagorean=Pm,oa.Circular=Wc;function wp(){this.Pl=-1/0,this.tm=this.mk=null}wp.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},wp.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]}},wp.className="VertexArrangement";function Xf(a){Zo.call(this,a)}Vt(Xf,Zo),Xf.prototype.createVertex=function(){return new Cp(this)},Xf.prototype.createEdge=function(){return new wm(this)},Xf.className="CircularNetwork";function Cp(a){Ba.call(this,a),this.u=this.Si=NaN}Vt(Cp,Ba);function md(a,y){var x=a.network;if(x===null)return NaN;if(x=x.layout,x===null)return NaN;if(x.arrangement===$l)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}It.Object.defineProperties(Cp.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)}}}),Cp.className="CircularVertex";function wm(a){el.call(this,a)}Vt(wm,el),wm.className="CircularEdge";function as(a){$o.call(this),this.ah=null,this.An=0,this.$d=new Je(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)}Vt(as,$o),as.prototype.cloneProtected=function(a){$o.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},as.prototype.createNetwork=function(){return new Hc(this)},as.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}ZS(this,0,a)}this.network=y;var ee=E=x.iterator;E=this.arrangementSpacing;var re=ee.count,oe=!0;z=b=0;for(var le=mi(),he=0;he<re+y.vertexes.count+2;he++)le[he]=null;re=0,ee.reset();for(var ge=vt.alloc();ee.next();)if(he=ee.value,this.computeBounds(he,ge),oe)oe=!1,b=ge.x+ge.width/2,z=ge.y+ge.height/2,le[0]=new je(ge.x+ge.width+E.width,ge.y),le[1]=new je(ge.x,ge.y+ge.height+E.height),re=2;else{var Se=WS(le,re,b,z,ge.width,ge.height,E),Pe=le[Se],Ae=new je(Pe.x+ge.width+E.width,Pe.y),Be=new je(Pe.x,Pe.y+ge.height+E.height);for(Se+1<re&&le.splice(Se+1,0,null),le[Se]=Ae,le[Se+1]=Be,re++,Se=Pe.x-ge.x,Pe=Pe.y-ge.y,he=he.vertexes.iterator;he.next();)Ae=he.value,Ae.centerX+=Se,Ae.centerY+=Pe}for(vt.free(ge),he=y.vertexes.iterator;he.next();)ee=he.value,Se=ee.bounds,2>re?(b=Se.x+Se.width/2,z=Se.y+Se.height/2,le[0]=new je(Se.x+Se.width+E.width,Se.y),le[1]=new je(Se.x,Se.y+Se.height+E.height),re=2):(oe=WS(le,re,b,z,Se.width,Se.height,E),ge=le[oe],Pe=new je(ge.x+Se.width+E.width,ge.y),Se=new je(ge.x,ge.y+Se.height+E.height),oe+1<re&&le.splice(oe+1,0,null),le[oe]=Pe,le[oe+1]=Se,re++,ee.centerX=ge.x+ee.width/2,ee.centerY=ge.y+ee.height/2);for(sn(le),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},as.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},as.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 ZS(a,y,x){if(Wx(a,y)){var E=a.Zf;a.Zf*=1+1/(y+1);var b=Hx(a,y),z=Math.max(0,Math.max(Math.min(a.network.vertexes.count,x*(y+1)/11),10));for(a.maxIterations+=z,ZS(a,y+1,x),GS(a,z),Gx(a,b),y=b.vertexes.Fa(),y.sort(function(ee,re){return ee===null||re===null||ee===re?0:re.Vd-ee.Vd}),x=0;x<y.length;x++)Vx(a,y[x]);a.Zf=E}}function Wx(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 Hx(a,y){for(var x=a.network,E=new Hc(a),b=0;b<a.ah.length;b++){var z=a.ah[b];if(1<z.Vd){E.dh(z);var ee=new VS;ee.Rs=z.Vd,ee.Ss=z.width,ee.Qs=z.height,ee.Sv=z.focus.x,ee.Tv=z.focus.y,z.We===null&&(z.We=new Mn),z.We.add(ee),z.sv=z.We.count-1}else break}for(z=x.edges.iterator;z.next();){var re=z.value;b=re.fromVertex,ee=re.toVertex,b.network===E&&ee.network===E?E.Bo(re):b.network===E?(re=b.Hj,re===null&&(re=new Mn,b.Hj=re),re.add(ee),b.Vd--,b.sh+=ee.sh):ee.network===E&&(re=ee.Hj,re===null&&(re=new Mn,ee.Hj=re),re.add(b),ee.Vd--,ee.sh+=b.sh)}for(b=E.edges.iterator;b.next();)z=b.value,z.length*=Math.max(1,St.sqrt((z.fromVertex.sh+z.toVertex.sh)/(4*y+1)));for(y=E.vertexes.iterator;y.next();){b=y.value;var oe=b.Hj;if(oe!==null&&0<oe.count&&(ee=b.We.M(b.We.count-1).Rs-b.Vd,!(0>=ee))){for(var le=re=0,he=oe.count-ee;he<oe.count;he++){var ge=oe.M(he),Se=null;for(z=ge.edges.iterator;z.next();){var Pe=z.value;if(Pe.Ax(ge)===b){Se=Pe;break}}Se!==null&&(le+=Se.length,re+=ge.width*ge.height)}z=b.centerX,oe=b.centerY,he=b.width,ge=b.height,Se=b.focus,Pe=he*ge,1>Pe&&(Pe=1),re=St.sqrt((re+Pe+le*le*4/(ee*ee))/Pe),ee=(re-1)*he/2,re=(re-1)*ge/2,b.bounds=new vt(z-Se.x-ee,oe-Se.y-re,he+2*ee,ge+2*re),b.focus=new je(Se.x+ee,Se.y+re)}}return a.network=E,x}function Gx(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,ee=b.Tv;E.bounds=new vt(E.centerX-z,E.centerY-ee,b.Ss,b.Qs),E.focus=new je(z,ee),E.sv--}}for(x=a.network.edges.iterator;x.next();)x.value.network=y;a.network=y}function Vx(a,y){var x=y.Hj;if(x!==null&&x.count!==0){var E=y.centerX,b=y.centerY,z=y.width,ee=y.height;y.We!==null&&0<y.We.count&&(ee=y.We.M(0),z=ee.Ss,ee=ee.Qs),z=St.sqrt(z*z+ee*ee)/2;for(var re=!1,oe=ee=0,le=0,he=y.vertexes.iterator;he.next();){var ge=he.value;1>=ge.Vd?oe++:(re=!0,le++,ee+=Math.atan2(y.centerY-ge.centerY,y.centerX-ge.centerX))}if(oe!==0){for(0<le&&(ee/=le),le=y=0,y=re?2*Math.PI/(oe+1):2*Math.PI/oe,oe%2===0&&(le=y/2),1<x.count&&x.sort(function(Pe,Ae){return Pe===null||Ae===null||Pe===Ae?0:Ae.width*Ae.height-Pe.width*Pe.height}),re=oe%2===0?0:1,x=x.iterator;x.next();)if(oe=x.value,!(1<oe.Vd||a.isFixed(oe))){for(he=null,ge=oe.edges.iterator;ge.next();){he=ge.value;break}ge=oe.width;var Se=oe.height;ge=St.sqrt(ge*ge+Se*Se)/2,he=z+he.length+ge,ge=ee+(y*(re/2>>1)+le)*(re%2===0?1:-1),oe.centerX=E+he*Math.cos(ge),oe.centerY=b+he*Math.sin(ge),re++}}}}function WS(a,y,x,E,b,z,ee){var re=9e19,oe=-1,le=0;e:for(;le<y;le++){var he=a[le],ge=he.x-x,Se=he.y-E;if(ge=ge*ge+Se*Se,ge<re){for(Se=le-1;0<=Se;Se--)if(a[Se].y>he.y&&a[Se].x-he.x<b+ee.width)continue e;for(Se=le+1;Se<y;Se++)if(a[Se].x>he.x&&a[Se].y-he.y<z+ee.height)continue e;oe=le,re=ge}}return oe}as.prototype.Cu=function(){if(this.comments)for(var a=this.network.vertexes.iterator;a.next();)this.addComments(a.value)},as.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 HS(a,y){var x=a.bounds,E=x.x;a=x.y;var b=x.width;x=x.height;var z=y.bounds,ee=z.x;y=z.y;var re=z.width;return z=z.height,E+b<ee?a>y+z?(x=E+b-ee,a=a-y-z,St.sqrt(x*x+a*a)):a+x<y?(E=E+b-ee,a=a+x-y,St.sqrt(E*E+a*a)):ee-(E+b):E>ee+re?a>y+z?(x=E-ee-re,a=a-y-z,St.sqrt(x*x+a*a)):a+x<y?(E=E-ee-re,a=a+x-y,St.sqrt(E*E+a*a)):E-(ee+re):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++,Yx(a)););a.ah=null}function Yx(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,ee=1;ee<y.length;ee++){var re=y[ee];re.forceX=0,re.forceY=0;var oe=re.centerX;re=re.centerY,E=Math.min(E,oe),b=Math.max(b,oe),x=Math.min(x,re),z=Math.max(z,re)}(b=b-E>z-x)?y.sort(function(Be,Qe){return Be===null||Qe===null||Be===Qe?0:Be.centerX-Qe.centerX}):y.sort(function(Be,Qe){return Be===null||Qe===null||Be===Qe?0:Be.centerY-Qe.centerY}),x=a.Zf;var le=E=re=0;for(z=0;z<y.length;z++){ee=y[z],E=ee.bounds,re=ee.focus,oe=E.x+re.x;var he=E.y+re.y;E=ee.charge*a.electricalFieldX(oe,he),le=ee.charge*a.electricalFieldY(oe,he),E+=ee.mass*a.gravitationalFieldX(oe,he),le+=ee.mass*a.gravitationalFieldY(oe,he),ee.forceX+=E,ee.forceY+=le;for(var ge=z+1;ge<y.length;ge++){var Se=y[ge];if(Se!==ee){E=Se.bounds,re=Se.focus,le=E.x+re.x;var Pe=E.y+re.y;if(oe-le>x||le-oe>x){if(b)break}else if(he-Pe>x||Pe-he>x){if(!b)break}else{var Ae=HS(ee,Se);1>Ae?(E=a.randomNumberGenerator,E===null&&(a.randomNumberGenerator=E=new Cm),Ae=E.random(),re=E.random(),oe>le?(E=Math.abs(Se.bounds.right-ee.bounds.x),E=(1+E)*Ae):oe<le?(E=Math.abs(Se.bounds.x-ee.bounds.right),E=-(1+E)*Ae):(E=Math.max(Se.width,ee.width),E=(1+E)*Ae-E/2),he>Pe?(le=Math.abs(Se.bounds.bottom-ee.bounds.y),le=(1+le)*re):oe<le?(le=Math.abs(Se.bounds.y-ee.bounds.bottom),le=-(1+le)*re):(le=Math.max(Se.height,ee.height),le=(1+le)*re-le/2)):(re=-(ee.charge*Se.charge)/(Ae*Ae),E=(le-oe)/Ae*re,le=(Pe-he)/Ae*re),ee.forceX+=E,ee.forceY+=le,Se.forceX-=E,Se.forceY-=le}}}}for(b=a.network.edges.iterator;b.next();)re=b.value,x=re.fromVertex,z=re.toVertex,ee=x.bounds,oe=x.focus,E=ee.x+oe.x,ee=ee.y+oe.y,he=z.bounds,ge=z.focus,oe=he.x+ge.x,he=he.y+ge.y,ge=HS(x,z),1>ge?(ge=a.randomNumberGenerator,ge===null&&(a.randomNumberGenerator=ge=new Cm),re=ge.random(),ge=ge.random(),E=(E>oe?1:-1)*(1+(z.width>x.width?z.width:x.width))*re,le=(ee>he?1:-1)*(1+(z.height>x.height?z.height:x.height))*ge):(re=re.stiffness*(ge-re.length),E=(oe-E)/ge*re,le=(he-ee)/ge*re),x.forceX+=E,x.forceY+=le,z.forceX-=E,z.forceY-=le;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}as.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},as.prototype.moveFixedVertex=function(){},as.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.isRouting&&this.commitLinks()},as.prototype.yv=function(){if(this.setsPortSpots)for(var a=this.network.edges.iterator;a.next();){var y=a.value.link;y!==null&&(y.fromSpot=Eo,y.toSpot=Eo)}},as.prototype.commitNodes=function(){var a=0,y=0;if(this.arrangesToOrigin){var x=vt.alloc();this.computeBounds(this.network,x),y=this.arrangementOrigin,a=y.x-x.x,y=y.y-x.y,vt.free(x)}x=vt.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()}vt.free(x)},as.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()},as.prototype.springStiffness=function(a){return a=a.stiffness,isNaN(a)?this.Hk:a},as.prototype.springLength=function(a){return a=a.length,isNaN(a)?this.Gk:a},as.prototype.electricalCharge=function(a){return a=a.charge,isNaN(a)?this.Ek:a},as.prototype.electricalFieldX=function(){return 0},as.prototype.electricalFieldY=function(){return 0},as.prototype.gravitationalMass=function(a){return a=a.mass,isNaN(a)?this.Fk:a},as.prototype.gravitationalFieldX=function(){return 0},as.prototype.gravitationalFieldY=function(){return 0},as.prototype.isFixed=function(a){return a.isFixed},It.Object.defineProperties(as.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"&&et('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())}}}),as.className="ForceDirectedLayout";function VS(){this.Tv=this.Sv=this.Qs=this.Ss=this.Rs=0}VS.className="ForceDirectedSubnet";function Hc(a){Zo.call(this,a)}Vt(Hc,Zo),Hc.prototype.createVertex=function(){return new Ep(this)},Hc.prototype.createEdge=function(){return new Ap(this)},Hc.className="ForceDirectedNetwork";function Ep(a){Ba.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}Vt(Ep,Ba),It.Object.defineProperties(Ep.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)}}}),Ep.className="ForceDirectedVertex";function Ap(a){el.call(this,a),this.j=this.o=NaN}Vt(Ap,el),It.Object.defineProperties(Ap.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)}}}),Ap.className="ForceDirectedEdge";function Cm(){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()}Cm.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},Cm.className="RandomNumberGenerator";function wo(a){$o.call(this),this.kc=this.ie=25,this.K=0,this.Dk=Lm,this.Zk=bm,this.Qk=Dm,this.bj=4,this.rk=km,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 je,this.He=[],this.He.length=100,this.xw=this.ve=0,a&&Object.assign(this,a)}Vt(wo,$o),wo.prototype.cloneProtected=function(a){$o.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},wo.prototype.qb=function(a){a.classType===wo?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:et("Unknown enum value: "+a):$o.prototype.qb.call(this,a)},wo.prototype.createNetwork=function(){return new Jf(this)},wo.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!==Mp&&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===Mp&&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 ee=0,re=0,oe=0,le=0;if(E.link!==null){if(re=E.link,re===null)continue;var he=b.node;if(ee=z.node,he===null||ee===null)continue;var ge=re.fromNode;oe=re.toNode;for(var Se=re.fromPort;Se!==null&&!Se.Ed();)Se=Se.panel;for(re=re.toPort;re!==null&&!re.Ed();)re=re.panel;if(E.rev){le=ge;var Pe=Se;ge=oe,Se=re,oe=le,re=Pe}var Ae=b.focus;le=z.focus;var Be=E.rev?z.bounds:b.bounds;Pe=je.alloc(),he!==ge?Be.w()&&ge.isVisible()?ge.actualBounds.w()?(bh(ge,Se,Ln,Pe),Pe.x+=ge.actualBounds.x-Be.x,Pe.y+=ge.actualBounds.y-Be.y):(bh(ge,Se,Ln,Pe),Pe.w()||Pe.assign(Ae)):Pe.assign(Ae):Be.w()?(bh(ge,Se,Ln,Pe),Pe.w()||Pe.assign(Ae)):Pe.assign(Ae),ge=E.rev?b.bounds:z.bounds,he=je.alloc(),ee!==oe?ge.w()&&oe.isVisible()?oe.actualBounds.w()?(bh(oe,re,Ln,he),he.x+=oe.actualBounds.x-ge.x,he.y+=oe.actualBounds.y-ge.y):(bh(oe,re,Ln,he),he.w()||he.assign(le)):he.assign(le):ge.w()?(bh(oe,re,Ln,he),he.w()||he.assign(le)):he.assign(le),this.K===90||this.K===270?(ee=Math.round((Pe.x-Ae.x)/this.kc),oe=Pe.x,re=Math.round((he.x-le.x)/this.kc),le=he.x):(ee=Math.round((Pe.y-Ae.y)/this.kc),oe=Pe.y,re=Math.round((he.y-le.y)/this.kc),le=he.y),je.free(Pe),je.free(he),E.portFromColOffset=ee,E.portFromPos=oe,E.portToColOffset=re,E.portToPos=le}else E.portFromColOffset=0,E.portFromPos=0,E.portToColOffset=0,E.portToPos=0;if(Pe=b.layer,he=z.layer,ge=0,Be=E.link,Be!==null){var Qe=Be.fromPort,Ke=Be.toPort;if(Qe!==null&&Ke!==null){var lt=Be.fromNode;if(Se=Be.toNode,lt!==null&&Se!==null){var ct=Mm(this,!0),ft=Mm(this,!1),Et=this.setsPortSpots?ct:Be.computeSpot(!0,Qe);Ae=this.setsPortSpots?ft:Be.computeSpot(!1,Ke);var Gt=Be.isOrthogonal;Et.$c()&&Et.Hf(ft)&&Ae.$c()&&Ae.Hf(ct)?ge=0:(ct=Be.getLinkPoint(lt,Qe,Et,!0,Gt,Se,Ke,je.alloc()),ft=Be.getLinkDirection(lt,Qe,ct,Et,!0,Gt,Se,Ke),je.free(ct),Et.ys()||ft!==$S(this,E,!0)?this.setsPortSpots&&lt!==null&&lt.ports.count===1&&E.rev&&(ge+=1):ge+=1,Et=Be.getLinkPoint(Se,Ke,Ae,!1,Gt,lt,Qe,je.alloc()),Be=Be.getLinkDirection(Se,Ke,Et,Ae,!1,Gt,lt,Qe),je.free(Et),Ae.ys()||Be!==$S(this,E,!1)?this.setsPortSpots&&Se!==null&&Se.ports.count===1&&E.rev&&(ge+=2):ge+=2)}}}if(Se=ge,ge=Se===1||Se===3,(Se=Se===2||Se===3)&&(Ae=a.createVertex(),Ae.node=null,Ae.Dj=1,Ae.layer=Pe,Ae.near=b,a.dh(Ae),b=a.Zj(b,Ae,E.link),b.valid=!1,b.rev=E.rev,b.portFromColOffset=ee,b.portToColOffset=0,b.portFromPos=oe,b.portToPos=0,b=Ae),Be=1,ge&&Be--,Pe-he>Be&&0<Pe){for(E.valid=!1,Ae=a.createVertex(),Ae.node=null,Ae.Dj=2,Ae.layer=Pe-1,a.dh(Ae),b=a.Zj(b,Ae,E.link),b.valid=!0,b.rev=E.rev,b.portFromColOffset=Se?0:ee,b.portToColOffset=0,b.portFromPos=Se?0:oe,b.portToPos=0,b=Ae,Pe--;Pe-he>Be&&0<Pe;)Ae=a.createVertex(),Ae.node=null,Ae.Dj=3,Ae.layer=Pe-1,a.dh(Ae),b=a.Zj(b,Ae,E.link),b.valid=!0,b.rev=E.rev,b.portFromColOffset=0,b.portToColOffset=0,b.portFromPos=0,b.portToPos=0,b=Ae,Pe--;b=a.Zj(Ae,z,E.link),b.valid=!ge,ge&&(Ae.near=z),b.rev=E.rev,b.portFromColOffset=0,b.portToColOffset=re,b.portFromPos=0,b.portToPos=le}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=vd(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),yd(this,a,y)}this.reduceCrossings(),this.straightenAndPack(),this.updateParts()}this.network=null,this.isValidLayout=!0},wo.prototype.linkMinLength=function(){return 1};function my(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}wo.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},wo.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 zs(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 Fl(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 YS(a,y,x){var E=vd(a,y),b=a.tc[y];(a.Jn===null||a.Jn.length<b*b)&&(a.Jn=[]);for(var z=a.Jn,ee=0;ee<b;ee++){var re=0,oe=E[ee],le=oe.near;if(le!==null&&le.layer===oe.layer)if(oe=le.index,oe>ee)for(var he=ee+1;he<oe;he++){var ge=E[he];ge.near===le&&ge.Dj===le.Dj||re++}else for(he=ee-1;he>oe;he--)ge=E[he],ge.near===le&&ge.Dj===le.Dj||re++;var Se;if(0<=x)for(oe=E[ee].sourceEdgesArrayAccess,le=0;le<oe.length;le++){var Pe=oe[le];if(Pe.valid&&Pe.fromVertex.layer!==y)for(ge=Pe.fromVertex.index,he=Pe.portToPos,Pe=Pe.portFromPos,Se=le+1;Se<oe.length;Se++){var Ae=oe[Se];if(Ae.valid&&Ae.fromVertex.layer!==y){var Be=Ae.fromVertex.index,Qe=Ae.portToPos;Ae=Ae.portFromPos,he<Qe&&(ge>Be||ge===Be&&Pe>Ae)&&re++,Qe<he&&(Be>ge||Be===ge&&Ae>Pe)&&re++}}}if(0>=x){for(oe=E[ee].destinationEdgesArrayAccess,le=0;le<oe.length;le++)if(Pe=oe[le],Pe.valid&&Pe.toVertex.layer!==y)for(ge=Pe.toVertex.index,he=Pe.portToPos,Pe=Pe.portFromPos,Se=le+1;Se<oe.length;Se++)Ae=oe[Se],Ae.valid&&Ae.toVertex.layer!==y&&(Be=Ae.toVertex.index,Qe=Ae.portToPos,Ae=Ae.portFromPos,Pe<Ae&&(ge>Be||ge===Be&&he>Qe)&&re++,Ae<Pe&&(Be>ge||Be===ge&&Qe>he)&&re++)}for(z[ee*b+ee]=re,oe=ee+1;oe<b;oe++){var Ke=0,lt=0;if(0<=x){re=E[ee].sourceEdgesArrayAccess;var ct=E[oe].sourceEdgesArrayAccess;for(le=0;le<re.length;le++)if(Pe=re[le],Pe.valid&&Pe.fromVertex.layer!==y)for(ge=Pe.fromVertex.index,Pe=Pe.portFromPos,Se=0;Se<ct.length;Se++)Ae=ct[Se],Ae.valid&&Ae.fromVertex.layer!==y&&(Be=Ae.fromVertex.index,Ae=Ae.portFromPos,(ge<Be||ge===Be&&Pe<Ae)&&lt++,(Be<ge||Be===ge&&Ae<Pe)&&Ke++)}if(0>=x){for(re=E[ee].destinationEdgesArrayAccess,ct=E[oe].destinationEdgesArrayAccess,le=0;le<re.length;le++)if(Pe=re[le],Pe.valid&&Pe.toVertex.layer!==y)for(ge=Pe.toVertex.index,he=Pe.portToPos,Se=0;Se<ct.length;Se++)Ae=ct[Se],Ae.valid&&Ae.toVertex.layer!==y&&(Be=Ae.toVertex.index,Qe=Ae.portToPos,(ge<Be||ge===Be&&he<Qe)&&lt++,(Be<ge||Be===ge&&Qe<he)&&Ke++)}z[ee*b+oe]=Ke,z[oe*b+ee]=lt}}return yd(a,y,E),z}wo.prototype.countCrossings=function(){for(var a=0,y=0;y<=this.Ia;y++)for(var x=YS(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 Em(a){for(var y=0,x=0;x<=a.Ia;x++){for(var E=a,b=x,z=vd(E,b),ee=E.tc[b],re=0,oe=0;oe<ee;oe++){var le=z[oe].destinationEdgesArrayAccess;if(le!==null)for(var he=0;he<le.length;he++){var ge=le[he];if(ge.valid&&ge.toVertex.layer!==b){var Se=ge.fromVertex.column+ge.portFromColOffset,Pe=ge.toVertex.column+ge.portToColOffset;re+=(Math.abs(Se-Pe)+1)*my(ge)}}}yd(E,b,z),y+=re}return y}wo.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 vy(a,y,x){for(var E=vd(a,y),b=a.tc[y],z=[],ee=0;ee<b;ee++){var re=E[ee],oe=null;0>=x&&(oe=re.sourceEdgesArrayAccess);var le=null;0<=x&&(le=re.destinationEdgesArrayAccess);var he=0,ge=0,Se=re.near;if(Se!==null&&Se.layer===re.layer&&(he+=Se.column-1,ge++),oe!==null)for(Se=0;Se<oe.length;Se++){re=oe[Se];var Pe=re.fromVertex;re.valid&&!re.rev&&Pe.layer!==y&&(he+=Pe.column,ge++)}if(le!==null)for(oe=0;oe<le.length;oe++)re=le[oe],Se=re.toVertex,re.valid&&!re.rev&&Se.layer!==y&&(he+=Se.column,ge++);z[ee]=ge===0?-1:he/ge}return yd(a,y,E),z}function KS(a,y,x){for(var E=vd(a,y),b=a.tc[y],z=[],ee=0;ee<b;ee++){var re=E[ee],oe=null;0>=x&&(oe=re.sourceEdgesArrayAccess);var le=null;0<=x&&(le=re.destinationEdgesArrayAccess);var he=0,ge=[],Se=re.near;if(Se!==null&&Se.layer===re.layer&&(ge[he]=Se.column-1,he++),re=void 0,oe!==null)for(Se=0;Se<oe.length;Se++){re=oe[Se];var Pe=re.fromVertex;re.valid&&!re.rev&&Pe.layer!==y&&(ge[he]=Pe.column+re.portFromColOffset,he++)}if(le!==null)for(oe=0;oe<le.length;oe++)re=le[oe],Se=re.toVertex,re.valid&&!re.rev&&Se.layer!==y&&(ge[he]=Se.column+re.portToColOffset,he++);he===0?z[ee]=-1:(ge.sort(function(Ae,Be){return Ae-Be}),le=he>>1,z[ee]=he&1?ge[le]:ge[le-1]+ge[le]>>1)}return yd(a,y,E),z}function Fp(a,y,x,E,b,z){if(y.component===E){if(y.component=x,b)for(var ee=y.destinationEdges;ee.next();){var re=ee.value,oe=re.toVertex,le=y.layer-oe.layer;re=a.linkMinLength(re),le===re&&Fp(a,oe,x,E,b,z)}if(z)for(ee=y.sourceEdges;ee.next();)re=ee.value,oe=re.fromVertex,le=oe.layer-y.layer,re=a.linkMinLength(re),le===re&&Fp(a,oe,x,E,b,z)}}function yy(a,y,x,E,b,z){if(y.component===E){if(y.component=x,b)for(var ee=y.destinationEdges;ee.next();)yy(a,ee.value.toVertex,x,E,b,z);if(z)for(y=y.sourceEdges;y.next();)yy(a,y.value.fromVertex,x,E,b,z)}}wo.prototype.removeCycles=function(){for(var a=this.network.edges.iterator;a.next();)a.value.rev=!1;switch(this.Dk){default:case Py: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(;Kx(a)!==null;){for(b=_S(a);b!==null;)E[x]=b,x--,b.valid=!1,b=_S(a);for(b=US(a);b!==null;)E[y]=b,y++,b.valid=!1,b=US(a);b=null;for(var z=0,ee=this.network.vertexes.iterator;ee.next();){var re=ee.value;if(re.valid){for(var oe=0,le=re.destinationEdges;le.next();)le.value.toVertex.valid&&oe++;le=0;for(var he=re.sourceEdges;he.next();)he.value.fromVertex.valid&&le++;(b===null||z<oe-le)&&(b=re,z=oe-le)}}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 Lm: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&&Sy(this,y);for(E.reset();E.next();)y=E.value,y.Ll===-1&&Sy(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 Mp: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 Kx(a){for(a=a.vertexes.iterator;a.next();){var y=a.value;if(y.valid)return y}return null}function _S(a){for(a=a.vertexes.iterator;a.next();){var y=a.value;if(y.valid){for(var x=!0,E=y.destinationEdges;E.next();)if(E.value.toVertex.valid){x=!1;break}if(x)return y}}return null}function US(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 Sy(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,Sy(a,b))}y.finish=a.Kn,a.Kn++}wo.prototype.assignLayers=function(){switch(this.Zk){case wy:XS(this);break;case Cy:for(var a,y=this.network.vertexes.iterator;y.next();)a=JS(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 bm:for(XS(this),y=this.network.vertexes.iterator;y.next();)y.value.valid=!1;for(y.reset();y.next();)a=y.value,a.sourceEdges.count===0&&qS(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 XS(a){for(var y=a.network.vertexes.iterator;y.next();){var x=QS(a,y.value);a.Ia=Math.max(x,a.Ia)}}function QS(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,QS(a,z)+b)}y.layer=x}else x=y.layer;return x}function JS(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,JS(a,z)+b)}y.layer=x}else x=y.layer;return x}function qS(a,y){if(!y.valid){y.valid=!0;for(var x=y.destinationEdges;x.next();)qS(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 ee=E[z],re=ee.fromVertex,oe=ee.toVertex;ee=a.linkMinLength(ee),re.layer-oe.layer>ee&&Fp(a,re,0,-1,!0,!1)}for(Fp(a,y,1,-1,!0,!0);y.component!==0;){for(z=0,E=1/0,re=0,oe=null,ee=a.network.vertexes.iterator;ee.next();){var le=ee.value;if(le.component===1){var he=0,ge=!1,Se=le.sourceEdgesArrayAccess;b=Se.length;for(var Pe=0;Pe<b;Pe++){var Ae=Se[Pe],Be=Ae.fromVertex;he+=1,Be.component!==1&&(z+=1,Be=Be.layer-le.layer,Ae=a.linkMinLength(Ae),E=Math.min(E,Be-Ae))}for(Se=le.destinationEdgesArrayAccess,b=Se.length,Pe=0;Pe<b;Pe++)Ae=Se[Pe].toVertex,--he,Ae.component!==1?--z:ge=!0;(oe===null||he<re)&&!ge&&(oe=le,re=he)}}if(0<z){for(x.reset();x.next();)b=x.value,b.component===1&&(b.layer+=E);y.component=0}else oe.component=0}for(x=a.network.vertexes.iterator;x.next();)x.value.component=-1;for(Fp(a,y,1,-1,!0,!1);y.component!==0;){for(E=0,b=1/0,z=0,re=null,oe=a.network.vertexes.iterator;oe.next();)if(ee=oe.value,ee.component===1){for(le=0,he=!1,Se=ee.sourceEdgesArrayAccess,ge=Se.length,Pe=0;Pe<ge;Pe++)Ae=Se[Pe].fromVertex,le+=1,Ae.component!==1?E+=1:he=!0;for(Se=ee.destinationEdgesArrayAccess,ge=Se.length,Pe=0;Pe<ge;Pe++)Ae=Se[Pe],Be=Ae.toVertex,--le,Be.component!==1&&(--E,Be=ee.layer-Be.layer,Ae=a.linkMinLength(Ae),b=Math.min(b,Be-Ae));(re===null||le>z)&&!he&&(re=ee,z=le)}if(0>E){for(x.reset();x.next();)E=x.value,E.component===1&&(E.layer-=b);y.component=0}else re.component=0}}}function $S(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}wo.prototype.initializeIndices=function(){switch(this.Qk){default:case Ay: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 Dm: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&&ex(this,x);break;case Ey: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&&tx(this,x)}};function ex(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&&ex(a,E))}function tx(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&&tx(a,E))}wo.prototype.reduceCrossings=function(){var a=this.countCrossings(),y=zs(this),x,E;for(x=0;x<this.bj;x++){for(E=0;E<=this.Ia;E++)Am(this,E,1),jl(this,E,1);var b=this.countCrossings();for(b<a&&(a=b,y=zs(this)),E=this.Ia;0<=E;E--)Am(this,E,-1),jl(this,E,-1);b=this.countCrossings(),b<a&&(a=b,y=zs(this))}for(Fl(this,y),x=0;x<this.bj;x++){for(E=0;E<=this.Ia;E++)Am(this,E,0),jl(this,E,0);for(b=this.countCrossings(),b<a&&(a=b,y=zs(this)),E=this.Ia;0<=E;E--)Am(this,E,0),jl(this,E,0);b=this.countCrossings(),b<a&&(a=b,y=zs(this))}Fl(this,y);var z,ee,re;switch(this.rk){case Fy:break;case My:for(re=a+1;(E=this.countCrossings())<re;)for(re=E,x=this.Ia;0<=x;x--)for(ee=0;ee<=x;ee++){for(z=!0;z;)for(z=!1,E=x;E>=ee;E--)z=jl(this,E,-1)||z;for(b=this.countCrossings(),b>=a?Fl(this,y):(a=b,y=zs(this)),z=!0;z;)for(z=!1,E=x;E>=ee;E--)z=jl(this,E,1)||z;for(b=this.countCrossings(),b>=a?Fl(this,y):(a=b,y=zs(this)),z=!0;z;)for(z=!1,E=ee;E<=x;E++)z=jl(this,E,1)||z;for(b>=a?Fl(this,y):(a=b,y=zs(this)),z=!0;z;)for(z=!1,E=ee;E<=x;E++)z=jl(this,E,-1)||z;for(b>=a?Fl(this,y):(a=b,y=zs(this)),z=!0;z;)for(z=!1,E=x;E>=ee;E--)z=jl(this,E,0)||z;for(b>=a?Fl(this,y):(a=b,y=zs(this)),z=!0;z;)for(z=!1,E=ee;E<=x;E++)z=jl(this,E,0)||z;b>=a?Fl(this,y):(a=b,y=zs(this))}break;default:case km:for(x=this.Ia,ee=0,re=a+1;(E=this.countCrossings())<re;){for(re=E,z=!0;z;)for(z=!1,E=x;E>=ee;E--)z=jl(this,E,-1)||z;for(b=this.countCrossings(),b>=a?Fl(this,y):(a=b,y=zs(this)),z=!0;z;)for(z=!1,E=x;E>=ee;E--)z=jl(this,E,1)||z;for(b=this.countCrossings(),b>=a?Fl(this,y):(a=b,y=zs(this)),z=!0;z;)for(z=!1,E=ee;E<=x;E++)z=jl(this,E,1)||z;for(b>=a?Fl(this,y):(a=b,y=zs(this)),z=!0;z;)for(z=!1,E=ee;E<=x;E++)z=jl(this,E,-1)||z;for(b>=a?Fl(this,y):(a=b,y=zs(this)),z=!0;z;)for(z=!1,E=x;E>=ee;E--)z=jl(this,E,0)||z;for(b>=a?Fl(this,y):(a=b,y=zs(this)),z=!0;z;)for(z=!1,E=ee;E<=x;E++)z=jl(this,E,0)||z;b>=a?Fl(this,y):(a=b,y=zs(this))}}Fl(this,y)};function Am(a,y,x){var E=vd(a,y),b=a.tc[y],z=KS(a,y,x),ee=vy(a,y,x);for(x=0;x<b;x++)ee[x]===-1&&(ee[x]=E[x].column),z[x]===-1&&(z[x]=E[x].column);for(var re=!0,oe;re;)for(re=!1,x=0;x<b-1;x++)(z[x+1]<z[x]||z[x+1]===z[x]&&ee[x+1]<ee[x])&&(re=!0,oe=z[x],z[x]=z[x+1],z[x+1]=oe,oe=ee[x],ee[x]=ee[x+1],ee[x+1]=oe,oe=E[x],E[x]=E[x+1],E[x+1]=oe);for(x=z=0;x<b;x++)oe=E[x],oe.index=x,z+=a.nodeMinColumnSpace(oe,!0),oe.column=z,z+=1,z+=a.nodeMinColumnSpace(oe,!1);yd(a,y,E)}function jl(a,y,x){var E=vd(a,y),b=a.tc[y];x=YS(a,y,x);var z,ee=[];for(z=0;z<b;z++)ee[z]=-1;var re=[];for(z=0;z<b;z++)re[z]=-1;for(var oe=!1,le=!0;le;)for(le=!1,z=0;z<b-1;z++){var he=x[E[z].index*b+E[z+1].index],ge=x[E[z+1].index*b+E[z].index],Se=0,Pe=0,Ae=E[z].column,Be=E[z+1].column,Qe=a.nodeMinColumnSpace(E[z],!0),Ke=a.nodeMinColumnSpace(E[z],!1),lt=a.nodeMinColumnSpace(E[z+1],!0),ct=a.nodeMinColumnSpace(E[z+1],!1);Qe=Ae-Qe+lt,Ke=Be-Ke+ct;var ft=E[z].sourceEdges.iterator;for(ft.reset();ft.next();)if(lt=ft.value,ct=lt.fromVertex,lt.valid&&ct.layer===y){for(lt=0;E[lt]!==ct;)lt++;lt<z&&(Se+=2*(z-lt),Pe+=2*(z+1-lt)),lt===z+1&&(Se+=1),lt>z+1&&(Se+=4*(lt-z),Pe+=4*(lt-(z+1)))}for(ft=E[z].destinationEdges.iterator,ft.reset();ft.next();)if(lt=ft.value,ct=lt.toVertex,lt.valid&&ct.layer===y){for(lt=0;E[lt]!==ct;)lt++;lt===z+1&&(Pe+=1)}for(ft=E[z+1].sourceEdges.iterator,ft.reset();ft.next();)if(lt=ft.value,ct=lt.fromVertex,lt.valid&&ct.layer===y){for(lt=0;E[lt]!==ct;)lt++;lt<z&&(Se+=2*(z+1-lt),Pe+=2*(z-lt)),lt===z&&(Pe+=1),lt>z+1&&(Se+=4*(lt-(z+1)),Pe+=4*(lt-z))}for(ft=E[z+1].destinationEdges.iterator,ft.reset();ft.next();)if(lt=ft.value,ct=lt.toVertex,lt.valid&&ct.layer===y){for(lt=0;E[lt]!==ct;)lt++;lt===z&&(Se+=1)}lt=ct=0,ft=ee[E[z].index];var Et=re[E[z].index],Gt=ee[E[z+1].index],si=re[E[z+1].index];ft!==-1&&(ct+=Math.abs(ft-Ae),lt+=Math.abs(ft-Ke)),Et!==-1&&(ct+=Math.abs(Et-Ae),lt+=Math.abs(Et-Ke)),Gt!==-1&&(ct+=Math.abs(Gt-Be),lt+=Math.abs(Gt-Qe)),si!==-1&&(ct+=Math.abs(si-Be),lt+=Math.abs(si-Qe)),(Pe<Se-.5||Pe===Se&&ge<he-.5||Pe===Se&&ge===he&&lt<ct-.5)&&(le=oe=!0,E[z].column=Ke,E[z+1].column=Qe,he=E[z],E[z]=E[z+1],E[z+1]=he)}for(z=0;z<b;z++)E[z].index=z;return yd(a,y,E),oe}wo.prototype.straightenAndPack=function(){if(this.ve===0){var a=(this.bg&1)!==0,y=(this.bg&eP)!==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=Qf(this,y,1)||x;for(y=this.Md-1;0<=y;y--)x=Qf(this,y,-1)||x;x=Qf(this,this.Md,0)||x}if(this.bg&4){for(y=this.Md+1;y<=this.Ia;y++)xy(this,y,1);for(y=this.Md-1;0<=y;y--)xy(this,y,-1);xy(this,this.Md,0)}if(a&&(nx(this,-1),nx(this,1)),this.bg&2)for(x=!0;x;){for(x=!1,x=Qf(this,this.Md,0)||x,y=this.Md+1;y<=this.Ia;y++)x=Qf(this,y,0)||x;for(y=this.Md-1;0<=y;y--)x=Qf(this,y,0)||x}}else Qx(this)};function Qf(a,y,x){for(var E=!1;_x(a,y,x);)E=!0;return E}function _x(a,y,x){var E,b=vd(a,y),z=a.tc[y],ee=vy(a,y,-1);if(0<x)for(E=0;E<z;E++)ee[E]=-1;var re=vy(a,y,1);if(0>x)for(E=0;E<z;E++)re[E]=-1;for(var oe=!1,le=!0;le;)for(le=!1,E=0;E<z;E++){var he=b[E].column,ge=a.nodeMinColumnSpace(b[E],!0),Se=a.nodeMinColumnSpace(b[E],!1),Pe=0;0>E-1||he-b[E-1].column-1>ge+a.nodeMinColumnSpace(b[E-1],!1)?Pe=he-1:Pe=he,ge=E+1>=z||b[E+1].column-he-1>Se+a.nodeMinColumnSpace(b[E+1],!0)?he+1:he;var Ae=Se=0,Be=0;if(0>=x)for(var Qe=b[E].sourceEdges.iterator;Qe.next();){var Ke=Qe.value,lt=Ke.fromVertex;if(Ke.valid&&lt.layer!==y){var ct=my(Ke),ft=Ke.portFromColOffset;Ke=Ke.portToColOffset,lt=lt.column,Se+=(Math.abs(he+Ke-(lt+ft))+1)*ct,Ae+=(Math.abs(Pe+Ke-(lt+ft))+1)*ct,Be+=(Math.abs(ge+Ke-(lt+ft))+1)*ct}}if(0<=x)for(Qe=b[E].destinationEdges.iterator;Qe.next();)Ke=Qe.value,lt=Ke.toVertex,Ke.valid&&lt.layer!==y&&(ct=my(Ke),ft=Ke.portFromColOffset,Ke=Ke.portToColOffset,lt=lt.column,Se+=(Math.abs(he+ft-(lt+Ke))+1)*ct,Ae+=(Math.abs(Pe+ft-(lt+Ke))+1)*ct,Be+=(Math.abs(ge+ft-(lt+Ke))+1)*ct);Ke=ft=ct=0,Qe=ee[b[E].index],lt=re[b[E].index],Qe!==-1&&(ct+=Math.abs(Qe-he),ft+=Math.abs(Qe-Pe),Ke+=Math.abs(Qe-ge)),lt!==-1&&(ct+=Math.abs(lt-he),ft+=Math.abs(lt-Pe),Ke+=Math.abs(lt-ge)),Ae<Se||Ae===Se&&ft<ct?(le=oe=!0,b[E].column=Pe):(Be<Se||Be===Se&&Ke<ct)&&(le=oe=!0,b[E].column=ge)}return yd(a,y,b),a.normalize(),oe}function xy(a,y,x){var E=vd(a,y),b=a.tc[y],z=KS(a,y,x),ee=[];for(x=0;x<b;x++)ee[x]=z[x];for(z=!0;z;)for(z=!1,x=0;x<b;x++){var re=E[x].column,oe=a.nodeMinColumnSpace(E[x],!0),le=a.nodeMinColumnSpace(E[x],!1),he=0;if(ee[x]===-1)if(x===0&&x===b-1)he=re;else if(x===0){var ge=E[x+1].column;ge-re===le+a.nodeMinColumnSpace(E[x+1],!0)?he=re-1:he=re}else x===b-1?(ge=E[x-1].column,he=re-ge===oe+a.nodeMinColumnSpace(E[x-1],!1)?re+1:re):(ge=E[x-1].column,oe=ge+a.nodeMinColumnSpace(E[x-1],!1)+oe+1,ge=E[x+1].column,le=ge-a.nodeMinColumnSpace(E[x+1],!0)-le-1,he=(oe+le)/2|0);else x===0&&x===b-1?he=ee[x]:x===0?(ge=E[x+1].column,le=ge-a.nodeMinColumnSpace(E[x+1],!0)-le-1,he=Math.min(ee[x],le)):x===b-1?(ge=E[x-1].column,oe=ge+a.nodeMinColumnSpace(E[x-1],!1)+oe+1,he=Math.max(ee[x],oe)):(ge=E[x-1].column,oe=ge+a.nodeMinColumnSpace(E[x-1],!1)+oe+1,ge=E[x+1].column,le=ge-a.nodeMinColumnSpace(E[x+1],!0)-le-1,oe<ee[x]&&ee[x]<le?he=ee[x]:oe>=ee[x]?he=oe:le<=ee[x]&&(he=le));he!==re&&(z=!0,E[x].column=he)}yd(a,y,E),a.normalize()}function Ux(a,y){for(var x=!0,E=a.network.vertexes.iterator;E.next();){var b=E.value,z=a.nodeMinColumnSpace(b,!0),ee=a.nodeMinColumnSpace(b,!1);if(b.column-z<=y&&b.column+ee>=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 Xx(a,y){var x=y+1,E,b=[],z=[];for(E=0;E<=a.Ia;E++)b[E]=!1,z[E]=!1;for(var ee=a.network.vertexes.iterator;ee.next();){E=ee.value;var re=E.column-a.nodeMinColumnSpace(E,!0),oe=E.column+a.nodeMinColumnSpace(E,!1);re<=y&&oe>=y&&(b[E.layer]=!0),re<=x&&oe>=x&&(z[E.layer]=!0)}for(re=!0,x=!1,E=0;E<=a.Ia;E++)re=re&&!(b[E]&&z[E]);if(re)for(ee.reset();ee.next();)a=ee.value,a.column>y&&(--a.column,x=!0);return x}function nx(a,y){for(var x=0;x<=a.Ra;x++)for(;Ux(a,x););for(a.normalize(),x=0;x<a.Ra;x++)for(;Xx(a,x););a.normalize();var E;if(0<y)for(x=0;x<=a.Ra;x++){var b=zs(a),z=Em(a);for(E=z+1;z<E;){E=z,ix(a,x,1);var ee=Em(a);ee>z?Fl(a,b):ee<z&&(z=ee,b=zs(a))}}if(0>y)for(x=a.Ra;0<=x;x--)for(b=zs(a),z=Em(a),E=z+1;z<E;)E=z,ix(a,x,-1),ee=Em(a),ee>z?Fl(a,b):ee<z&&(z=ee,b=zs(a));a.normalize()}function ix(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&&(yy(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 ee=z.layer,re=Math.max(0,z.column-a.nodeMinColumnSpace(z,!0)),oe=Math.min(a.Ra,z.column+a.nodeMinColumnSpace(z,!1));re<=oe;re++)b[ee*(a.Ra+1)+re]=z.component}for(z=0;z<=a.Ia;z++){if(0<x)for(ee=0;ee<a.Ra;ee++)b[z*(a.Ra+1)+ee]!==-1&&b[z*(a.Ra+1)+ee+1]!==-1&&b[z*(a.Ra+1)+ee]!==b[z*(a.Ra+1)+ee+1]&&(y[b[z*(a.Ra+1)+ee]*a.le+b[z*(a.Ra+1)+ee+1]]=!0);if(0>x)for(ee=a.Ra;0<ee;ee--)b[z*(a.Ra+1)+ee]!==-1&&b[z*(a.Ra+1)+ee-1]!==-1&&b[z*(a.Ra+1)+ee]!==b[z*(a.Ra+1)+ee-1]&&(y[b[z*(a.Ra+1)+ee]*a.le+b[z*(a.Ra+1)+ee-1]]=!0)}for(b=[],z=0;z<a.le;z++)b[z]=!0;for(ee=[],ee.push(0);ee.length!==0;)if(oe=ee[ee.length-1],ee.pop(),b[oe])for(b[oe]=!1,z=0;z<a.le;z++)y[oe*a.le+z]&&ee.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 Qx(a){for(var y=mi(),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 ln,Jx(y,x);var z=null,ee=null,re=null,oe=null,le=(a.ve&1)!==0,he=(a.ve&2)!==0,ge=(a.ve&4)!==0,Se=(a.ve&8)!==0;for(le&&(a.verticalAlignment(y,x,!0),z=Fm(a,y,!0,!1)),y.reverse(),ge&&(a.verticalAlignment(y,x,!1),re=Fm(a,y,!1,!1)),E=Qn(y),b=E.next();!b.done;b=E.next())b.value.reverse();Se&&(a.verticalAlignment(y,x,!1),oe=Fm(a,y,!1,!0)),y.reverse(),he&&(a.verticalAlignment(y,x,!0),ee=Fm(a,y,!0,!0)),sn(y),a.u(z,ee,re,oe),a.network.vertexes.each(function(Pe){var Ae=mi();le&&Ae.push(z.get(Pe)),he&&Ae.push(ee.get(Pe)),ge&&Ae.push(re.get(Pe)),Se&&Ae.push(oe.get(Pe)),Ae.sort(function(Qe,Ke){return Qe-Ke});var Be=Ae.length;Be=(Ae[Math.floor((Be-1)/2)]+Ae[Math.ceil((Be-1)/2)])/2,sn(Ae),Pe.zc=Be})}function Jx(a,y){for(var x=a.length,E=1;E<x-1;E++)for(var b=0,z=0,ee=a[E],re=a[E+1],oe=0;z<re.length;oe++){var le=re[oe];e:{if(le.node===null){var he=Ly(le);if(0<he.length){he=he[0].node===null;break e}}he=!1}var ge=he;if(oe===re.length-1||ge){for(he=ee.length-1,ge&&(he=Ly(le)[0].index);z<=oe;){if(le=re[z],!le.bo){ge=[];for(var Se=Qn(le.sourceEdgesArrayAccess),Pe=Se.next();!Pe.done;Pe=Se.next())Pe=Pe.value,Pe.valid&&ge.push(Pe);le.bo=ge}for(le=Qn(le.bo),ge=le.next();!ge.done;ge=le.next())ge=ge.value,Se=ge.fromVertex.index,(Se<b||Se>he)&&y.add(ge);z++}b=he}}}wo.prototype.verticalAlignment=function(a,y,x){qx(a),a=Qn(a);for(var E=a.next();!E.done;E=a.next()){var b=-1;E=Qn(E.value);for(var z=E.next();!z.done;z=E.next()){z=z.value;var ee=x?Ly(z):tP(z),re=ee.length;if(0<re){ee.sort(function(ge,Se){return ge.vi-Se.vi});var oe=(re-1)/2;for(re=Math.floor(oe),oe=Math.ceil(oe);re<=oe;re++)if(z.align===z){var le=ee[re],he=void 0;he=x?Bm(le,z):Bm(z,le),!y.contains(he)&&b<le.vi&&(le.align=z,z.root=le.root,z.align=le.root,b=le.vi)}}}}};function qx(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 Fm(a,y,x,E){for(var b=a.K===90||a.K===270,z=Qn(y),ee=z.next();!ee.done;ee=z.next()){var re=Qn(ee.value);for(ee=re.next();!ee.done;ee=re.next())ee=ee.value,ee.sd=ee,ee.shift=1/0,ee.zc=NaN,ee.qg=0}for(ee=a.K===90||a.K===270,z=Qn(y),re=z.next();!re.done;re=z.next()){re=Qn(re.value);for(var oe=re.next();!oe.done;oe=re.next())if(oe=oe.value,oe.root===oe){for(var le=0,he=oe;he.align!==oe;){var ge=he.align,Se=ee?he.width:he.height,Pe=ee?ge.width:ge.height;if(x){var Ae=Bm(he,ge),Be=Ae.portFromPos,Qe=Ae.portToPos;Ae.link!==null&&(he.node&&he.node!==Ae.link.fromNode&&(Be=ee?he.focusX:he.focusY),ge.node&&ge.node!==Ae.link.toNode&&(Qe=ee?ge.focusX:ge.focusY))}else Ae=Bm(ge,he),Be=Ae.portToPos,Qe=Ae.portFromPos,Ae.link!==null&&(he.node&&he.node!==Ae.link.toNode&&(Be=ee?he.focusX:he.focusY),ge.node&&ge.node!==Ae.link.fromNode&&(Qe=ee?ge.focusX:ge.focusY));Se=E?he.qg+(Se-Be)-(Pe-Qe):he.qg+Be-Qe,ge.qg=Se,le=Math.min(le,Se),he=he.align}he=oe;do he.qg=he.qg-le,he=he.align;while(he!==oe)}}for(x=Qn(y),ee=x.next();!ee.done;ee=x.next())for(z=Qn(ee.value),ee=z.next();!ee.done;ee=z.next())ee=ee.value,ee.root===ee&&rx(a,ee,y);for(x=0;x<y.length;x++)if(!(0>=y[x].length)&&(ee=y[x][0],ee.sd===ee)){ee.sd.shift===1/0&&(ee.sd.shift=0),ee=x,re=0;do{for(z=y[ee][re];z.align!==z.root;)z=z.align,ee++,0<z.vi&&(re=ox(z,y),re.sd.shift=Math.min(re.sd.shift,z.sd.shift+z.zc+z.qg-(re.zc+re.qg+(b?re.width:re.height)+a.columnSpacing)));re=z.vi+1}while(ee<y.length&&re<y[ee].length&&z.sd===y[ee][re].sd)}for(a=new Ut,y=Qn(y),ee=y.next();!ee.done;ee=y.next())for(x=Qn(ee.value),ee=x.next();!ee.done;ee=x.next())ee=ee.value,ee.zc=ee.zc+ee.sd.shift+ee.qg,z=b?ee.width:ee.height,a.add(ee,E?-ee.zc-z:ee.zc);return a}function rx(a,y,x){if(isNaN(y.zc)){y.zc=0;var E=y;do{if(0<E.vi){var b=ox(E,x),z=b.root;rx(a,z,x),y.sd===y&&(y.sd=z.sd);var ee=a.K===90||a.K===270?b.width:b.height;y.sd===z.sd&&(y.zc=Math.max(y.zc,z.zc+b.qg+ee-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 ox(a,y){var x=a.Tz;return a=a.vi,1>a&&et("Could not determine previous vertex in layer"),y[x][a-1]}wo.prototype.u=function(a){for(var y=[],x=0;x<arguments.length;++x)y[x]=arguments[x];x=-1;for(var E=mi(),b=mi(),z=1/0,ee=0;4>ee;ee++)if(y[ee]){var re=$x(this,y[ee],E,b,ee);re<z&&(x=ee,z=re)}for(z={},ee=0;4>ee;z={delta:z.delta},ee++)y[ee]&&(z.delta=ee===0||ee===2?E[x]-E[ee]:b[x]-b[ee],z.delta!==0&&y[ee].each(function(oe){return function(le){le.value+=oe.delta}}(z)));sn(E),sn(b)};function $x(a,y,x,E,b){if(!y||y.count===0)return x[b]=0,E[b]=0,1/0;var z=1/0,ee=-1/0;return y.each(function(re){var oe=re.key;re=re.value,oe=a.K===90||a.K===270?oe.width:oe.height,re<z&&(z=re),re+oe>ee&&(ee=re+oe)}),x[b]=z,E[b]=ee,ee-z}wo.prototype.commitLayout=function(){if(this.setsPortSpots)for(var a=Mm(this,!0),y=Mm(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 Mm(a,y){return a.K===270?y?po:ta:a.K===90?y?ta:po:a.K===180?y?mo:Jr:y?Jr:mo}wo.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,ee=b=1/0,re=-1/0;a.next();){var oe=a.value,le=oe.layer,he=oe.column|0;E?(ee=y.x+this.kc*he,le=this.Kd[le]):(ee=this.Kd[le],le=y.y+this.kc*he),oe.centerX=ee,oe.centerY=le,x&&isFinite(oe.zc)&&(E?oe.node?oe.x=y.x+oe.zc:oe.centerX=y.x+oe.zc:oe.node?oe.y=y.y+oe.zc:oe.centerY=y.y+oe.zc),z=Math.min(oe.x,z),b=Math.min(oe.y,b),E?(ee=z,re=Math.max(re,oe.bounds.right)):(ee=b,re=Math.max(re,oe.bounds.bottom))}for(this.xw=re-ee,z=y.x-z,y=y.y-b,this.Rf=new je(x&&E?0:z,x&&!E?0:y),a.reset();a.next();)x=a.value,x.x+=z,x.y+=y,x.commit()},wo.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 vt(0,0,x,Math.abs(this.Ta[0]))):y.push(new vt(0,this.Ta[E-1],x,Math.abs(this.Ta[E-1]-this.Ta[E]))):this.K===90?E===0?y.push(new vt(0,this.Ta[0],x,Math.abs(this.Ta[0]-a))):y.push(new vt(0,this.Ta[E],x,Math.abs(this.Ta[E-1]-this.Ta[E]))):this.K===180?E===0?y.push(new vt(0,0,Math.abs(this.Ta[0]),x)):y.push(new vt(this.Ta[E-1],0,Math.abs(this.Ta[E-1]-this.Ta[E]),x)):E===0?y.push(new vt(this.Ta[0],0,Math.abs(this.Ta[0]-a),x)):y.push(new vt(this.Ta[E],0,Math.abs(this.Ta[E-1]-this.Ta[E]),x));this.commitLayers(y,this.Rf)},wo.prototype.commitLayers=function(){},wo.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,ee=E.fromPort,re=E.toPort;if(b!==null){var oe=b.findVisibleNode();oe!==null&&oe!==b&&(b=oe,ee=oe.port)}z!==null&&(oe=z.findVisibleNode(),oe!==null&&oe!==z&&(z=oe,re=oe.port));var le=y.computeSpot(!0,ee);oe=y.computeSpot(!1,re);var he=x.fromVertex,ge=x.toVertex;if(x.valid)y.curve===hl&&y.pointsCount===4&&(he.column===ge.column&&this.alignOption===0?(x=y.getLinkPoint(b,ee,le,!0,!1,z,re),re=y.getLinkPoint(z,re,oe,!1,!1,b,ee),x.w()||x.set(b.actualBounds.center),re.w()||re.set(z.actualBounds.center),y.Fj(),y.yf(x.x,x.y),y.yf((2*x.x+re.x)/3,(2*x.y+re.y)/3),y.yf((x.x+2*re.x)/3,(x.y+2*re.y)/3),y.yf(re.x,re.y)):(x=E=!1,ee!==null&&le===Mi&&(E=!0),re!==null&&oe===Mi&&(x=!0),(E||x)&&(oe=null,E&&(oe=y.getLinkPointFromPoint(b,ee,ee.ga(Ln),y.i(3),!0),oe.w()||oe.set(b.actualBounds.center),y.L(0,oe.x,oe.y)),b=null,x&&(b=y.getLinkPointFromPoint(z,re,re.ga(Ln),y.i(0),!1),b.w()||b.set(z.actualBounds.center),y.L(3,b.x,b.y)),oe&&(z=y.i(2),y.L(1,(2*oe.x+z.x)/3,(2*oe.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(he.layer===ge.layer)y.zf();else{var Se=!1,Pe=!1,Ae=this.ie,Be=y.firstPickIndex+1;if(y.isOrthogonal){Pe=!0;var Qe=y.pointsCount;4<Qe&&y.points.removeRange(2,Qe-3)}else if(y.curve===hl)Se=!0,Qe=y.pointsCount,4<Qe&&y.points.removeRange(2,Qe-3),Qe===4&&(Be=2);else{Qe=y.pointsCount;var Ke=le===Mi,lt=oe===Mi;2<Qe&&Ke&&lt?y.points.removeRange(1,Qe-2):3<Qe&&Ke&&!lt?y.points.removeRange(1,Qe-3):3<Qe&&!Ke&&lt?y.points.removeRange(2,Qe-2):4<Qe&&!Ke&&!lt&&y.points.removeRange(2,Qe-3)}if(x.rev){for(;ge!==null&&he!==ge;){var ct=Qe=null;for(Ke=ge.sourceEdges.iterator;Ke.next()&&(lt=Ke.value,lt.link!==x.link||(Qe=lt.fromVertex,ct=lt.toVertex,Qe.node!==null)););if(Qe===null)break;if(Qe!==he){Ke=y.i(Be-1).x,lt=y.i(Be-1).y;var ft=Qe.centerX,Et=Qe.centerY;if(Pe)this.K===180||this.K===0?Be===y.firstPickIndex+1?(y.m(Be++,Ke,lt),y.m(Be++,Ke,Et)):(ct!==null?ct.centerY:lt)!==Et&&(ct=this.Ta[Qe.layer-1]+this.Rf.x,y.m(Be++,ct,lt),y.m(Be++,ct,Et)):Be===y.firstPickIndex+1?(y.m(Be++,Ke,lt),y.m(Be++,ft,lt)):(ct!==null?ct.centerX:Ke)!==ft&&(ct=this.Ta[Qe.layer-1]+this.Rf.y,y.m(Be++,Ke,ct),y.m(Be++,ft,ct));else if(Be===y.firstPickIndex+1){ct=Math.max(10,this.he[ge.layer]);var Gt=Math.max(10,this.Ld[ge.layer]);if(Se)this.K===180?ft<=ge.bounds.x?(ge=ge.bounds.x,y.m(Be++,ge-ct,Et),y.m(Be++,ge,Et),y.m(Be++,ge+Gt,Et)):(y.m(Be++,ft-ct,Et),y.m(Be++,ft,Et),y.m(Be++,ft+Gt,Et)):this.K===90?Et>=ge.bounds.bottom?(ge=ge.bounds.y+ge.bounds.height,y.m(Be++,ft,ge+Gt),y.m(Be++,ft,ge),y.m(Be++,ft,ge-ct)):(y.m(Be++,ft,Et+Gt),y.m(Be++,ft,Et),y.m(Be++,ft,Et-ct)):this.K===270?Et<=ge.bounds.y?(ge=ge.bounds.y,y.m(Be++,ft,ge-ct),y.m(Be++,ft,ge),y.m(Be++,ft,ge+Gt)):(y.m(Be++,ft,Et-ct),y.m(Be++,ft,Et),y.m(Be++,ft,Et+Gt)):this.K===0&&(ft>=ge.bounds.right?(ge=ge.bounds.x+ge.bounds.width,y.m(Be++,ge+Gt,Et),y.m(Be++,ge,Et),y.m(Be++,ge-ct,Et)):(y.m(Be++,ft+Gt,Et),y.m(Be++,ft,Et),y.m(Be++,ft-ct,Et)));else{y.m(Be++,Ke,lt);var si=0;this.K===180||this.K===0?((this.K===180?ft>=ge.bounds.right:ft<=ge.bounds.x)&&(si=(this.K===0?-ct:Gt)/2),y.m(Be++,Ke+si,Et)):((this.K===270?Et>=ge.bounds.bottom:Et<=ge.bounds.y)&&(si=(this.K===90?-ct:Gt)/2),y.m(Be++,ft,lt+si)),y.m(Be++,ft,Et)}}else ct=Math.max(10,this.he[Qe.layer]),Gt=Math.max(10,this.Ld[Qe.layer]),Se?this.K===180?(y.m(Be++,ft-ct-Ae,Et),y.m(Be++,Math.min(ft-ct+Ae/2,ft),Et),y.m(Be++,ft,Et),y.m(Be++,ft,Et),y.m(Be++,Math.max(ft+Gt-Ae/2,ft),Et),y.m(Be++,ft+Gt+Ae,Et)):this.K===90?(y.m(Be++,ft,Et+Gt+Ae),y.m(Be++,ft,Math.max(Et+Gt-Ae/2,Et)),y.m(Be++,ft,Et),y.m(Be++,ft,Et),y.m(Be++,ft,Math.min(Et-ct+Ae/2,Et)),y.m(Be++,ft,Et-ct-Ae)):this.K===270?(y.m(Be++,ft,Et-ct-Ae),y.m(Be++,ft,Math.min(Et-ct+Ae/2,Et)),y.m(Be++,ft,Et),y.m(Be++,ft,Et),y.m(Be++,ft,Math.max(Et+Gt-Ae/2,Et)),y.m(Be++,ft,Et+Gt+Ae)):(y.m(Be++,ft+Gt+Ae,Et),y.m(Be++,Math.max(ft+Gt-Ae/2,ft),Et),y.m(Be++,ft,Et),y.m(Be++,ft,Et),y.m(Be++,Math.min(ft-ct+Ae/2,ft),Et),y.m(Be++,ft-ct-Ae,Et)):y.m(Be++,ft,Et)}ge=Qe}(re===null||le!==Mi||Pe)&&(Ke=y.i(Be-1).x,lt=y.i(Be-1).y,ft=y.i(Be).x,Et=y.i(Be).y,Pe?(Ae=this.Ld[he.layer],this.K===180||this.K===0?(Pe=lt,Pe>=he.bounds.y&&Pe<=he.bounds.bottom&&(this.K===180?ft>=he.bounds.x:ft<=he.bounds.right)&&(ge=he.centerX+(this.K===180?-Ae:Ae),Pe<he.bounds.y+he.bounds.height/2?Pe=he.bounds.y-this.kc/2:Pe=he.bounds.bottom+this.kc/2,y.m(Be++,ge,lt),y.m(Be++,ge,Pe)),y.m(Be++,ft,Pe)):(Pe=Ke,Pe>=he.bounds.x&&Pe<=he.bounds.right&&(this.K===270?Et>=he.bounds.y:Et<=he.bounds.bottom)&&(ge=he.centerY+(this.K===270?-Ae:Ae),Pe<he.bounds.x+he.bounds.width/2?Pe=he.bounds.x-this.kc/2:Pe=he.bounds.right+this.kc/2,y.m(Be++,Ke,ge),y.m(Be++,Pe,ge)),y.m(Be++,Pe,Et)),y.m(Be++,ft,Et)):Se?(ct=Math.max(10,this.he[he.layer]),Gt=Math.max(10,this.Ld[he.layer]),this.K===180&&ft>=he.bounds.x?(ge=he.bounds.x+he.bounds.width,y.L(Be-2,ge,lt),y.L(Be-1,ge+Gt,lt)):this.K===90&&Et<=he.bounds.bottom?(ge=he.bounds.y,y.L(Be-2,Ke,ge),y.L(Be-1,Ke,ge-ct)):this.K===270&&Et>=he.bounds.y?(ge=he.bounds.y+he.bounds.height,y.L(Be-2,Ke,ge),y.L(Be-1,Ke,ge+Gt)):this.K===0&&ft<=he.bounds.right&&(ge=he.bounds.x,y.L(Be-2,ge,lt),y.L(Be-1,ge-ct,lt))):(ct=Math.max(10,this.he[he.layer]),Gt=Math.max(10,this.Ld[he.layer]),Pe=0,this.K===180||this.K===0?((this.K===180?ft<=he.bounds.x:ft>=he.bounds.right)&&(Pe=(this.K===0?Gt:-ct)/2),y.m(Be++,ft+Pe,lt)):((this.K===270?Et<=he.bounds.y:Et>=he.bounds.bottom)&&(Pe=(this.K===90?Gt:-ct)/2),y.m(Be++,Ke,Et+Pe)),y.m(Be++,ft,Et)))}else{for(;he!==null&&he!==ge;){for(ct=Qe=null,he=he.destinationEdges.iterator;he.next()&&(Ke=he.value,Ke.link!==x.link||(Qe=Ke.toVertex,ct=Ke.fromVertex,ct.node!==null&&(ct=null),Qe.node!==null)););if(Qe===null)break;Qe!==ge&&(Ke=y.i(Be-1).x,lt=y.i(Be-1).y,ft=Qe.centerX,Et=Qe.centerY,Pe?this.K===180||this.K===0?(ct!==null?ct.centerY:lt)!==Et&&(ct=this.Ta[Qe.layer]+this.Rf.x,Be===y.firstPickIndex+1&&(ct=this.K===0?Math.max(ct,Ke):Math.min(ct,Ke)),y.m(Be++,ct,lt),y.m(Be++,ct,Et)):(ct!==null?ct.centerX:Ke)!==ft&&(ct=this.Ta[Qe.layer]+this.Rf.y,Be===y.firstPickIndex+1&&(ct=this.K===90?Math.max(ct,lt):Math.min(ct,lt)),y.m(Be++,Ke,ct),y.m(Be++,ft,ct)):(ct=Math.max(10,this.he[Qe.layer]),Gt=Math.max(10,this.Ld[Qe.layer]),Se?this.K===180?(y.m(Be++,ft+Gt+Ae,Et),y.m(Be++,Math.max(ft+Gt-Ae/2,ft),Et),y.m(Be++,ft,Et),y.m(Be++,ft,Et),y.m(Be++,Math.min(ft-ct+Ae/2,ft),Et),y.m(Be++,ft-ct-Ae,Et)):this.K===90?(y.m(Be++,ft,Et-ct-Ae),y.m(Be++,ft,Math.min(Et-ct+Ae/2,Et)),y.m(Be++,ft,Et),y.m(Be++,ft,Et),y.m(Be++,ft,Math.max(Et+Gt-Ae/2,Et)),y.m(Be++,ft,Et+Gt+Ae)):this.K===270?(y.m(Be++,ft,Et+Gt+Ae),y.m(Be++,ft,Math.max(Et+Gt-Ae/2,Et)),y.m(Be++,ft,Et),y.m(Be++,ft,Et),y.m(Be++,ft,Math.min(Et-ct+Ae/2,Et)),y.m(Be++,ft,Et-ct-Ae)):(y.m(Be++,ft-ct-Ae,Et),y.m(Be++,Math.min(ft-ct+Ae/2,ft),Et),y.m(Be++,ft,Et),y.m(Be++,ft,Et),y.m(Be++,Math.max(ft+Gt-Ae/2,ft),Et),y.m(Be++,ft+Gt+Ae,Et)):this.K===180?(y.m(Be++,ft+Gt,Et),y.m(Be++,ft-ct,Et)):this.K===90?(y.m(Be++,ft,Et-ct),y.m(Be++,ft,Et+Gt)):this.K===270?(y.m(Be++,ft,Et+Gt),y.m(Be++,ft,Et-ct)):(y.m(Be++,ft-ct,Et),y.m(Be++,ft+Gt,Et)))),he=Qe}Pe&&(Ke=y.i(Be-1).x,lt=y.i(Be-1).y,ft=y.i(Be).x,Et=y.i(Be).y,this.K===180||this.K===0?lt!==Et&&(ct=this.K===0?Math.min(Math.max((ft+Ke)/2,this.Ta[ge.layer]+this.Rf.x),ft):Math.max(Math.min((ft+Ke)/2,this.Ta[ge.layer]+this.Rf.x),ft),y.m(Be++,ct,lt),y.m(Be++,ct,Et)):Ke!==ft&&(ct=this.K===90?Math.min(Math.max((Et+lt)/2,this.Ta[ge.layer]+this.Rf.y),Et):Math.max(Math.min((Et+lt)/2,this.Ta[ge.layer]+this.Rf.y),Et),y.m(Be++,Ke,ct),y.m(Be++,ft,ct)))}E!==null&&Se&&4<=y.pointsCount&&(ee!==null&&(ee=le===Mi?y.getLinkPointFromPoint(b,ee,ee.ga(Ln),y.i(3),!0):y.i(0),le===Mi&&(le=y.i(2),E=y.i(3),this.direction===90||this.direction===270?(y.L(1,(ee.x+le.x)/2,le.y),y.L(2,E.x,(le.y+E.y)/2)):(y.L(1,le.x,(ee.y+le.y)/2),y.L(2,(le.x+E.x)/2,E.y))),ee.w()||ee.set(b.actualBounds.center),y.L(0,ee.x,ee.y)),re!==null&&(b=oe===Mi?y.getLinkPointFromPoint(z,re,re.ga(Ln),y.i(y.pointsCount-4),!1):y.i(y.pointsCount-1),oe===Mi&&(re=y.i(y.pointsCount-3),oe=y.i(y.pointsCount-4),this.direction===90||this.direction===270?(y.L(y.pointsCount-2,(b.x+re.x)/2,re.y),y.L(y.pointsCount-2,oe.x,(re.y+oe.y)/2)):(y.L(y.pointsCount-2,re.x,(b.y+re.y)/2),y.L(y.pointsCount-3,(re.x+oe.x)/2,oe.y))),b.w()||b.set(z.actualBounds.center),y.L(y.pointsCount-1,b.x,b.y))),y.zf(),x.commit()}}}this.avoidOrthogonalOverlaps()},wo.prototype.avoidOrthogonalOverlaps=function(){if(!(0>=this.linkSpacing)){for(var a=new Mn,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),ee=E.i(b+1);if(this.B(z.y,ee.y)&&!this.B(z.x,ee.x)){var re=new Sd;re.layer=Math.floor(z.y/2);var oe=E.i(0),le=E.i(E.pointsCount-1);if(re.first=oe.x*oe.x+oe.y,re.jc=le.x*le.x+le.y,re.rd=Math.min(z.x,ee.x),re.Ic=Math.max(z.x,ee.x),re.index=b,re.link=E,b+2<E.pointsCount){oe=E.i(b-1),le=E.i(b+2);var he=0;oe.y<z.y?he=le.y<z.y?3:z.x<ee.x?2:1:oe.y>z.y&&(he=le.y>z.y?0:ee.x<z.x?2:1),re.j=he}x.push(re)}}}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(ee=x[z].Ic,b=a+1;b<E&&x[b].rd<ee;)ee=Math.max(ee,x[b].Ic),b++;if(ee=b-z,1<ee){for(this.zi(x,this.Js,z,z+ee),he=1,re=x[z].jc,oe=z;oe<b;oe++)le=x[oe],le.jc!==re&&(he++,re=le.jc);this.zi(x,this.Ux,z,z+ee);var ge=1;for(re=x[z].first,oe=z;oe<b;oe++)le=x[oe],le.first!==re&&(ge++,re=le.first);for(oe=!0,le=ge,he<ge?(oe=!1,le=he,re=x[z].jc,this.zi(x,this.Js,z,z+ee)):re=x[z].first,he=0,ge=z;ge<b;ge++){var Se=x[ge];(oe?Se.first:Se.jc)!==re&&(he++,re=oe?Se.first:Se.jc);var Pe=Se.link;z=Pe.i(Se.index),ee=Pe.i(Se.index+1);var Ae=this.linkSpacing*(he-(le-1)/2);y++,Pe.uh(),Pe.L(Se.index,z.x,z.y+Ae),Pe.L(Se.index+1,ee.x,ee.y+Ae),Pe.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),ee=E.i(b+1),this.B(z.x,ee.x)&&!this.B(z.y,ee.y)&&(re=new Sd,re.layer=Math.floor(z.x/2),oe=E.i(0),le=E.i(E.pointsCount-1),re.first=oe.x+oe.y*oe.y,re.jc=le.x+le.y*le.y,re.rd=Math.min(z.y,ee.y),re.Ic=Math.max(z.y,ee.y),re.index=b,re.link=E,b+2<E.pointsCount&&(oe=E.i(b-1),le=E.i(b+2),he=0,oe.x<z.x?he=le.x<z.x?3:z.y<ee.y?2:1:oe.x>z.x&&(he=le.x>z.x?0:ee.y<z.y?2:1),re.j=he),x.push(re));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(ee=x[z].Ic,b=a+1;b<E&&x[b].rd<ee;)ee=Math.max(ee,x[b].Ic),b++;if(ee=b-z,1<ee){for(this.zi(x,this.Js,z,z+ee),he=1,re=x[z].jc,oe=z;oe<b;oe++)le=x[oe],le.jc!==re&&(he++,re=le.jc);for(this.zi(x,this.Ux,z,z+ee),ge=1,re=x[z].first,oe=z;oe<b;oe++)le=x[oe],le.first!==re&&(ge++,re=le.first);for(oe=!0,le=ge,he<ge?(oe=!1,le=he,re=x[z].jc,this.zi(x,this.Js,z,z+ee)):re=x[z].first,he=0,ge=z;ge<b;ge++)Se=x[ge],(oe?Se.first:Se.jc)!==re&&(he++,re=oe?Se.first:Se.jc),Pe=Se.link,z=Pe.i(Se.index),ee=Pe.i(Se.index+1),Ae=this.linkSpacing*(he-(le-1)/2),y++,Pe.uh(),Pe.L(Se.index,z.x+Ae,z.y),Pe.L(Se.index+1,ee.x+Ae,ee.y),Pe.zf()}z=b}a=E}}}},Le=wo.prototype,Le.Vx=function(a,y){return a instanceof Sd&&y instanceof Sd&&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},Le.Ux=function(a,y){return a instanceof Sd&&y instanceof Sd&&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},Le.Js=function(a,y){return a instanceof Sd&&y instanceof Sd&&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},Le.B=function(a,y){return a-=y,-1<a&&1>a},Le.zi=function(a,y,x,E){var b=a.length,z=E-x;if(!(1>=z))if((0>x||x>=b-1)&&et("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 vd(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 yd(a,y,x){a.He[a.tc[y]]=x}It.Object.defineProperties(wo.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()):et("LayeredDigraphLayout.direction must be 0, 90, 180, or 270"))}},cycleRemoveOption:{get:function(){return this.Dk},set:function(a){this.Dk===a||a!==Py&&a!==Lm&&a!==Mp||(this.Dk=a,this.C())}},layeringOption:{get:function(){return this.Zk},set:function(a){this.Zk===a||a!==bm&&a!==wy&&a!==Cy||(this.Zk=a,this.C())}},initializeOption:{get:function(){return this.Qk},set:function(a){this.Qk===a||a!==Dm&&a!==Ey&&a!==Ay||(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!==Fy&&a!==km&&a!==My||(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 Lm=new yn(wo,"CycleDepthFirst",0),Py=new yn(wo,"CycleGreedy",1),Mp=new yn(wo,"CycleFromLayers",2),bm=new yn(wo,"LayerOptimalLinkLength",0),wy=new yn(wo,"LayerLongestPathSink",1),Cy=new yn(wo,"LayerLongestPathSource",2),Dm=new yn(wo,"InitDepthFirstOut",0),Ey=new yn(wo,"InitDepthFirstIn",1),Ay=new yn(wo,"InitNaive",2),Fy=new yn(wo,"AggressiveNone",0),km=new yn(wo,"AggressiveLess",1),My=new yn(wo,"AggressiveMore",2),eP=8;wo.className="LayeredDigraphLayout",wo.CycleDepthFirst=Lm,wo.CycleGreedy=Py,wo.CycleFromLayers=Mp,wo.LayerOptimalLinkLength=bm,wo.LayerLongestPathSink=wy,wo.LayerLongestPathSource=Cy,wo.InitDepthFirstOut=Dm,wo.InitDepthFirstIn=Ey,wo.InitNaive=Ay,wo.AggressiveNone=Fy,wo.AggressiveLess=km,wo.AggressiveMore=My,wo.PackNone=0,wo.PackExpand=1,wo.PackStraighten=2,wo.PackMedian=4,wo.PackAll=15,wo.AlignNone=0,wo.AlignUpperLeft=1,wo.AlignUpperRight=2,wo.AlignLowerLeft=4,wo.AlignLowerRight=8,wo.AlignAll=15;function Sd(){this.index=this.Ic=this.rd=this.jc=this.first=this.layer=0,this.link=null,this.j=0}Sd.className="SegInfo";function Jf(a){Zo.call(this,a)}Vt(Jf,Zo),Jf.prototype.createVertex=function(){return new Ml(this)},Jf.prototype.createEdge=function(){return new Lp(this)},Jf.className="LayeredDigraphNetwork";function Ml(a){Ba.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}Vt(Ml,Ba);function ax(a,y){return a.index-y.index}function Bm(a,y){if(!a.$n){for(var x=[],E=Qn(a.destinationEdgesArrayAccess),b=E.next();!b.done;b=E.next())b=b.value,b.valid&&x.push(b);a.$n=x}for(a=Qn(a.$n),x=a.next();!x.done;x=a.next())if(x=x.value,x.toVertex===y)return x;et("Unable to find destination edge to given vertex")}function Ly(a){if(!a.co){for(var y=[],x=Qn(a.sourceEdgesArrayAccess),E=x.next();!E.done;E=x.next())E=E.value,E.valid&&y.push(E.fromVertex);y.sort(ax),a.co=y}return a.co}function tP(a){if(!a.ao){for(var y=[],x=Qn(a.destinationEdgesArrayAccess),E=x.next();!E.done;E=x.next())E=E.value,E.valid&&y.push(E.toVertex);y.sort(ax),a.ao=y}return a.ao}Ml.prototype.Cl=function(a){Ba.prototype.Cl.call(this,a),this.bo=this.co=null},Ml.prototype.Kl=function(a){Ba.prototype.Kl.call(this,a),this.bo=this.co=null},Ml.prototype.zl=function(a){Ba.prototype.zl.call(this,a),this.$n=this.ao=null},Ml.prototype.Jl=function(a){Ba.prototype.Jl.call(this,a),this.$n=this.ao=null},It.Object.defineProperties(Ml.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)}}}),Ml.prototype.deleteDestinationEdge=Ml.prototype.Jl,Ml.prototype.addDestinationEdge=Ml.prototype.zl,Ml.prototype.deleteSourceEdge=Ml.prototype.Kl,Ml.prototype.addSourceEdge=Ml.prototype.Cl,Ml.className="LayeredDigraphVertex";function Lp(a){el.call(this,a),this.j=this.ia=this.Ha=!1,this.V=this.u=NaN,this.F=this.o=0}Vt(Lp,el),It.Object.defineProperties(Lp.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)}}}),Lp.className="LayeredDigraphEdge";function zr(a){$o.call(this),this.Ub=new ln,this.Wn=Im,this.ud=Hu,this.vo=jm,this.Bq=zy,this.$v=[],this.td=!0,this.Rb=zm,this.$d=new Je(10,10).freeze();var y=new Kc(this);this.W=new zl(y),this.Y=new zl(y),this.ru=[],a&&Object.assign(this,a)}Vt(zr,$o),zr.prototype.cloneProtected=function(a){$o.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)},zr.prototype.qb=function(a){a.classType===zr?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:et("Unknown enum value: "+a):$o.prototype.qb.call(this,a)},zr.prototype.createNetwork=function(){return new Kc(this)},zr.prototype.makeNetwork=function(a){function y(E){if(E instanceof ui)return!E.isLinkLabel&&E.category!=="Comment";if(E instanceof Kn){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 Yt?(x.lg(a.nodes,!0,y),x.lg(a.links,!0,y)):a instanceof Pr?x.lg(a.memberParts,!1,y):x.lg(a.iterator,!1,y),x},zr.prototype.doLayout=function(a){this.network===null&&(this.network=this.makeNetwork(a)),this.arrangement!==Zm&&(this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin));var y=this.diagram;if(y===null&&a instanceof Yt&&(y=a),this.path===Im&&y!==null?this.ud=y.isTreePathToChildren?Hu:Vc:this.ud=this.path===Im?Hu: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 ln,y=this.Ub.iterator;y.next();){var x=y.value;x instanceof ui?(x=this.network.ki(x),x!==null&&a.add(x)):x instanceof zl&&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,by(this,y));for(y=this.network.vertexes,a=null;a=nP(y),0<a.count;)y=sx(this,a),y!==null&&this.Ub.add(y),y.initialized=!0,by(this,y),y=a;for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof zl&&ux(this,y);for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof zl&&hx(this,y);for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof zl&&dx(this,y);if(this.Cu(),this.layerStyle===Wm){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===Zy)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 zl&&this.layoutTree(y);this.arrangeTrees(),this.updateParts()}this.network=null,this.Ub=new ln,this.isValidLayout=!0};function nP(a){var y=new ln;for(a=a.iterator;a.next();){var x=a.value;x.initialized||y.add(x)}return y}zr.prototype.findRoots=function(){for(var a=this.network.vertexes,y=a.iterator;y.next();){var x=y.value;switch(this.ud){case Hu:x.sourceEdges.count===0&&this.Ub.add(x);break;case Vc:x.destinationEdges.count===0&&this.Ub.add(x);break;default:et("Unhandled path value "+this.ud.toString())}}this.Ub.count===0&&(a=sx(this,a),a!==null&&this.Ub.add(a))};function sx(a,y){var x=999999,E=null;for(y=y.iterator;y.next();){var b=y.value;switch(a.ud){case Hu:b.sourceEdges.count<x&&(x=b.sourceEdges.count,E=b);break;case Vc:b.destinationEdges.count<x&&(x=b.destinationEdges.count,E=b);break;default:et("Unhandled path value "+a.ud.toString())}}return E}function by(a,y){if(y!==null){switch(a.ud){case Hu:if(0<y.destinationEdges.count){for(var x=new Mn,E=y.destinationVertexes;E.next();){var b=E.value;lx(a,y,b)&&x.add(b)}0<x.count&&(y.children=x.Fa())}break;case Vc:if(0<y.sourceEdges.count){for(x=new Mn,E=y.sourceVertexes;E.next();)b=E.value,lx(a,y,b)&&x.add(b);0<x.count&&(y.children=x.Fa())}break;default:et("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++)by(a,x[y])}}function lx(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}zr.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 ux(a,y){if(y!==null){a.initializeTreeVertexValues(y),y.alignment===Yu&&a.sortTreeVertexChildren(y);for(var x=0,E=y.childrenCount,b=0,z=y.children,ee=z.length,re=0;re<ee;re++){var oe=z[re];ux(a,oe),x+=oe.descendantCount+1,E=Math.max(E,oe.maxChildrenCount),b=Math.max(b,oe.maxGenerationCount)}y.descendantCount=x,y.maxChildrenCount=E,y.maxGenerationCount=0<E?b+1:0}}function iP(a,y){switch(a.vo){default:case jm:return y.parent!==null?y.parent:a.W;case Ry:return y.parent===null?a.W:y.parent.parent===null?a.Y:y.parent;case Iy:return y.parent!==null?y.parent.parent!==null?y.parent.parent:a.Y:a.W;case Oy: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}}zr.prototype.initializeTreeVertexValues=function(a){if(a.copyInheritedPropertiesFrom(iP(this,a)),a.parent!==null&&a.parent.alignment===Yu){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 hx(a,y){if(y!==null){a.assignTreeVertexValues(y),y=y.children;for(var x=y.length,E=0;E<x;E++)hx(a,y[E])}}zr.prototype.assignTreeVertexValues=function(){};function dx(a,y){if(y!==null){y.alignment!==Yu&&a.sortTreeVertexChildren(y),y=y.children;for(var x=y.length,E=0;E<x;E++)dx(a,y[E])}}zr.prototype.sortTreeVertexChildren=function(a){switch(a.sorting){case qf:break;case Dp:a.children.reverse();break;case kp:a.children.sort(a.comparer);break;case Bp:a.children.sort(a.comparer),a.children.reverse();break;default:et("Unhandled sorting value "+a.sorting.toString())}},zr.prototype.Cu=function(){if(this.comments)for(var a=this.network.vertexes.iterator;a.next();)this.addComments(a.value)},zr.prototype.addComments=function(a){var y=a.angle,x=a.parent,E=0,b=!1;x!==null&&(E=x.angle,b=x.alignment,b=xd(b)),y=y===90||y===270,E=E===90||E===270,x=a.childrenCount===0;var z=0,ee=0,re=0,oe=a.commentSpacing;if(a.node!==null)for(var le=a.node.Mu();le.next();){var he=le.value;he.category==="Comment"&&he.canLayout()&&(a.comments===null&&(a.comments=[]),a.comments.push(he),he.Va(),he=he.measuredBounds,y&&!x||!b&&!E&&x||b&&E&&x?(z=Math.max(z,he.width),ee+=he.height+Math.abs(re)):(z+=he.width+Math.abs(re),ee=Math.max(ee,he.height)),re=oe)}a.comments!==null&&(y&&!x||!b&&!E&&x||b&&E&&x?(z+=Math.abs(a.commentMargin),ee=Math.max(0,ee-a.height)):(ee+=Math.abs(a.commentMargin),z=Math.max(0,z-a.width)),b=vt.allocAt(0,0,a.bounds.width+z,a.bounds.height+ee),a.bounds=b,vt.free(b))};function xd(a){return a===Oh||a===Yu||a===Ih||a===ah}function bp(a){return a===Oh||a===Yu}function Dy(a){var y=a.parent;if(y!==null){var x=y.alignment;if(xd(x)){if(bp(x)){for(y=y.children,x=0;x<y.length&&a!==y[x];)x++;return x%2===0}if(x===Ih)return!0}}return!1}zr.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=xd(z)),E=E===90||E===270,x=b===90||b===270;for(var ee=a.childrenCount===0,re=Dy(a),oe=0,le=a.comments,he=le.length,ge=je.alloc(),Se=0;Se<he;Se++){var Pe=le[Se],Ae=Pe.measuredBounds;if(E&&!ee||!z&&!x&&ee||z&&x&&ee){if(135<b&&!z||x&&re)if(0<=a.commentMargin)for(ge.h(a.bounds.x-a.commentMargin-Ae.width,a.bounds.y+oe),Pe.move(ge),Pe=Pe.Sd();Pe.next();){var Be=Pe.value;Be.fromSpot=mo,Be.toSpot=Jr}else for(ge.h(a.bounds.x+2*a.focus.x-a.commentMargin,a.bounds.y+oe),Pe.move(ge),Pe=Pe.Sd();Pe.next();)Be=Pe.value,Be.fromSpot=Jr,Be.toSpot=mo;else if(0<=a.commentMargin)for(ge.h(a.bounds.x+2*a.focus.x+a.commentMargin,a.bounds.y+oe),Pe.move(ge),Pe=Pe.Sd();Pe.next();)Be=Pe.value,Be.fromSpot=Jr,Be.toSpot=mo;else for(ge.h(a.bounds.x+a.commentMargin-Ae.width,a.bounds.y+oe),Pe.move(ge),Pe=Pe.Sd();Pe.next();)Be=Pe.value,Be.fromSpot=mo,Be.toSpot=Jr;oe=0<=a.commentSpacing?oe+(Ae.height+a.commentSpacing):oe+(a.commentSpacing-Ae.height)}else{if(135<b&&!z||!x&&re)if(0<=a.commentMargin)for(ge.h(a.bounds.x+oe,a.bounds.y-a.commentMargin-Ae.height),Pe.move(ge),Pe=Pe.Sd();Pe.next();)Be=Pe.value,Be.fromSpot=po,Be.toSpot=ta;else for(ge.h(a.bounds.x+oe,a.bounds.y+2*a.focus.y-a.commentMargin),Pe.move(ge),Pe=Pe.Sd();Pe.next();)Be=Pe.value,Be.fromSpot=ta,Be.toSpot=po;else if(0<=a.commentMargin)for(ge.h(a.bounds.x+oe,a.bounds.y+2*a.focus.y+a.commentMargin),Pe.move(ge),Pe=Pe.Sd();Pe.next();)Be=Pe.value,Be.fromSpot=ta,Be.toSpot=po;else for(ge.h(a.bounds.x+oe,a.bounds.y+a.commentMargin-Ae.height),Pe.move(ge),Pe=Pe.Sd();Pe.next();)Be=Pe.value,Be.fromSpot=po,Be.toSpot=ta;oe=0<=a.commentSpacing?oe+(Ae.width+a.commentSpacing):oe+(a.commentSpacing-Ae.width)}}if(je.free(ge),y=oe-a.commentSpacing-(E?y.height:y.width),this.ud===Hu)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)}},zr.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 Rm:cx(this,a);break;case Np:if(a.alignment===Yu)cx(this,a);else if(a.childrenCount===0)E=a.parent,x=!1,y=0,E!==null&&(y=E.angle,x=E.alignment,x=xd(x)),E=Dy(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=eu(a);y=b===90||b===270;var z=0,ee=a.children,re=ee.length;for(x=0;x<re;x++)E=ee[x],z=Math.max(z,y?E.Da.width:E.Da.height);var oe=a.alignment;E=oe===Gu;var le=oe===Vu,he=xd(oe),ge=Math.max(0,a.breadthLimit);x=this.computeLayerSpacing(a);var Se=a.nodeSpacing,Pe=this.computeNodeIndent(a),Ae=a.rowSpacing,Be=0;(E||le||a.hm||a.im&&a.maxGenerationCount===1)&&(Be=Math.max(0,a.rowIndent)),E=a.width;var Qe=a.height,Ke=0,lt=0,ct=0,ft=null,Et=null,Gt=0,si=0,Li=0,wi=0,Vn=0,vn=0,yr=0,ar=0;if(he&&!bp(oe)&&135<b&&ee.reverse(),bp(oe))if(1<re)for(var ao=0;ao<re;ao++)ao%2===0&&ao!==re-1&&(ar=Math.max(ar,y?ee[ao].Da.width:ee[ao].Da.height));else re===1&&(ar=y?ee[0].Da.width:ee[0].Da.height);if(he){switch(oe){case Oh:lt=135>b?fx(this,a,ee,ar,Ke,lt):gx(this,a,ee,ar,Ke,lt),ar=lt.x,Ke=lt.width,lt=lt.height;break;case Ih:for(ft=0;ft<re;ft++)Et=ee[ft],ge=Et.Da,ct=vn===0?0:Ae,y?(Et.S.h(z-ge.width,wi+ct),Ke=Math.max(Ke,ge.width),lt=Math.max(lt,wi+ct+ge.height),wi+=ct+ge.height):(Et.S.h(Li+ct,z-ge.height),Ke=Math.max(Ke,Li+ct+ge.width),lt=Math.max(lt,ge.height),Li+=ct+ge.width),vn++;break;case ah:for(ft=0;ft<re;ft++)Et=ee[ft],z=Et.Da,ge=vn===0?0:Ae,y?(Et.S.h(Se/2+a.focus.x,wi+ge),Ke=Math.max(Ke,z.width),lt=Math.max(lt,wi+ge+z.height),wi+=ge+z.height):(Et.S.h(Li+ge,Se/2+a.focus.y),Ke=Math.max(Ke,Li+ge+z.width),lt=Math.max(lt,z.height),Li+=ge+z.width),vn++}ft=Ys(this,2),Et=Ys(this,2),y?(ft[0].h(0,0),ft[1].h(0,lt),Et[0].h(Ke,0)):(ft[0].h(0,0),ft[1].h(Ke,0),Et[0].h(0,lt)),Et[1].h(Ke,lt)}else for(ao=0;ao<re;ao++){var jo=ee[ao],Ia=jo.Da;if(y){0<ge&&0<vn&&Li+Se+Ia.width>ge&&(Li<z&&ic(a,oe,z-Li,0,yr,ao-1),Vn++,vn=0,yr=ao,ct=lt,Li=0,wi=135<b?-lt-Ae:lt+Ae),Tm(this,jo,0,wi);var Ha=0;if(vn===0)ft=jo.Yo,Et=jo.kp,Gt=Ia.width,si=Ia.height,(ft===null||Et===null||b!==eu(jo))&&(ft=Ys(this,2),Et=Ys(this,2),ft[0].h(0,0),ft[1].h(0,si),Et[0].h(Gt,0),Et[1].h(Gt,si));else{var vs=mi();si=px(this,a,jo,ft,Et,Gt,si,vs),Ha=si.x,ft=vs[0],Et=vs[1],Gt=si.width,si=si.height,sn(vs),Li<Ia.width&&0>Ha&&(Gc(a,-Ha,0,yr,ao-1),Om(ft,-Ha,0),Om(Et,-Ha,0),Ha=0)}jo.S.h(Ha,wi),Ke=Math.max(Ke,Gt),lt=Math.max(lt,ct+(Vn===0?0:Ae)+Ia.height),Li=Gt}else 0<ge&&0<vn&&wi+Se+Ia.height>ge&&(wi<z&&ic(a,oe,0,z-wi,yr,ao-1),Vn++,vn=0,yr=ao,ct=Ke,wi=0,Li=135<b?-Ke-Ae:Ke+Ae),Tm(this,jo,Li,0),Ha=0,vn===0?(ft=jo.Yo,Et=jo.kp,Gt=Ia.width,si=Ia.height,(ft===null||Et===null||b!==eu(jo))&&(ft=Ys(this,2),Et=Ys(this,2),ft[0].h(0,0),ft[1].h(Gt,0),Et[0].h(0,si),Et[1].h(Gt,si))):(vs=mi(),si=px(this,a,jo,ft,Et,Gt,si,vs),Ha=si.x,ft=vs[0],Et=vs[1],Gt=si.width,si=si.height,sn(vs),wi<Ia.height&&0>Ha&&(Gc(a,0,-Ha,yr,ao-1),Om(ft,0,-Ha),Om(Et,0,-Ha),Ha=0)),jo.S.h(Li,Ha),lt=Math.max(lt,si),Ke=Math.max(Ke,ct+(Vn===0?0:Ae)+Ia.width),wi=si;vn++}switch(0<Vn&&(y?(lt+=Math.max(0,x),Li<Ke&&ic(a,oe,Ke-Li,0,yr,re-1),0<Be&&(le||Gc(a,Be,0,0,re-1),Ke+=Be)):(Ke+=Math.max(0,x),wi<lt&&ic(a,oe,0,lt-wi,yr,re-1),0<Be&&(le||Gc(a,0,Be,0,re-1),lt+=Be))),Be=le=0,oe){case $f:y?le+=Ke/2-a.focus.x-Pe/2:Be+=lt/2-a.focus.y-Pe/2;break;case Yc:0<Vn?y?le+=Ke/2-a.focus.x-Pe/2:Be+=lt/2-a.focus.y-Pe/2:y?(ar=ee[0].S.x+ee[0].la.x,le+=ar+(ee[re-1].S.x+ee[re-1].la.x+2*ee[re-1].focus.x-ar)/2-a.focus.x-Pe/2):(ar=ee[0].S.y+ee[0].la.y,Be+=ar+(ee[re-1].S.y+ee[re-1].la.y+2*ee[re-1].focus.y-ar)/2-a.focus.y-Pe/2);break;case Gu:y?(le-=Pe,Ke+=Pe):(Be-=Pe,lt+=Pe);break;case Vu:y?(le+=Ke-a.width+Pe,Ke+=Pe):(Be+=lt-a.height+Pe,lt+=Pe);break;case Oh:y?1<re?le+=ar+Se/2-a.focus.x:le+=ee[0].focus.x-a.focus.x+ee[0].la.x:1<re?Be+=ar+Se/2-a.focus.y:Be+=ee[0].focus.y-a.focus.y+ee[0].la.y;break;case Ih:y?le+=Ke+Se/2-a.focus.x:Be+=lt+Se/2-a.focus.y;break;case ah:break;default:lt=this.customAlignment(a,le,Be,Ke,lt),le=lt[0],Be=lt[1],Ke=lt[2],lt=lt[3]}for(Pe=0;Pe<re;Pe++)ar=ee[Pe],y?ar.S.h(ar.S.x+ar.la.x-le,ar.S.y+(135<b?(he?-lt:-ar.Da.height)+ar.la.y-x:Qe+x+ar.la.y)):ar.S.h(ar.S.x+(135<b?(he?-Ke:-ar.Da.width)+ar.la.x-x:E+x+ar.la.x),ar.S.y+ar.la.y-Be);if(re=ee=0,he?y?(Ke=ky(a,Ke,le),0>le&&(le=0),135<b&&(Be+=lt+x),lt+=Qe+x,oe===ah&&(ee+=Se/2+a.focus.x),re+=Qe+x):(135<b&&(le+=Ke+x),Ke+=E+x,lt=By(a,lt,Be),0>Be&&(Be=0),oe===ah&&(re+=Se/2+a.focus.y),ee+=E+x):y?(a.comments===null?E>Ke&&(Ke=Ny(oe,E-Ke,0),ee=Ke.x,re=Ke.y,Ke=E,le=0):Ke=ky(a,Ke,le),0>le&&(ee-=le,le=0),135<b&&(Be+=lt+x),lt=Math.max(Math.max(lt,Qe),lt+Qe+x),re+=Qe+x):(135<b&&(le+=Ke+x),Ke=Math.max(Math.max(Ke,E),Ke+E+x),a.comments===null?Qe>lt&&(lt=Ny(oe,0,Qe-lt),ee=lt.x,re=lt.y,lt=Qe,Be=0):lt=By(a,lt,Be),0>Be&&(re-=Be,Be=0),ee+=E+x),0<Vn)b=Ys(this,4),Vn=Ys(this,4),y?(b[2].h(0,Qe+x),b[3].h(b[2].x,lt),Vn[2].h(Ke,b[2].y),Vn[3].h(Vn[2].x,b[3].y)):(b[2].h(E+x,0),b[3].h(Ke,b[2].y),Vn[2].h(b[2].x,lt),Vn[3].h(b[3].x,Vn[2].y));else{for(b=Ys(this,ft.length+2),Vn=Ys(this,Et.length+2),oe=0;oe<ft.length;oe++)he=ft[oe],b[oe+2].h(he.x+ee,he.y+re);for(oe=0;oe<Et.length;oe++)he=Et[oe],Vn[oe+2].h(he.x+ee,he.y+re)}y?(b[0].h(le,0),b[1].h(b[0].x,Qe),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])),Vn[0].h(le+E,0),Vn[1].h(Vn[0].x,Qe),Vn[2].y<Vn[1].y&&(Vn[2].x<Vn[0].x?Vn[2].assign(Vn[1]):Vn[1].assign(Vn[2])),Vn[3].y<Vn[2].y&&(Vn[3].x<Vn[0].x?Vn[3].assign(Vn[2]):Vn[2].assign(Vn[3])),b[2].y-=x/2,Vn[2].y-=x/2):(b[0].h(0,Be),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])),Vn[0].h(0,Be+Qe),Vn[1].h(E,Vn[0].y),Vn[2].x<Vn[1].x&&(Vn[2].y<Vn[0].y?Vn[2].assign(Vn[1]):Vn[1].assign(Vn[2])),Vn[3].x<Vn[2].x&&(Vn[3].y<Vn[0].y?Vn[3].assign(Vn[2]):Vn[2].assign(Vn[3])),b[2].x-=x/2,Vn[2].x-=x/2),uu(this,ft),uu(this,Et),a.Yo=b,a.kp=Vn,a.la.h(le,Be),a.Da.h(Ke,lt)}break;default:et("Unhandled compaction value "+a.compaction.toString())}}};function cx(a,y){if(y.childrenCount===0){var x=!1,E=0;y.parent!==null&&(E=y.parent.angle,x=y.parent.alignment,x=xd(x));var b=Dy(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=eu(y),x=E===90||E===270;var z=0;b=y.children;for(var ee=b.length,re=0;re<ee;re++){var oe=b[re];z=Math.max(z,x?oe.Da.width:oe.Da.height)}var le=y.alignment,he=le===Gu,ge=le===Vu;re=xd(le);var Se=Math.max(0,y.breadthLimit);oe=a.computeLayerSpacing(y);var Pe=y.nodeSpacing,Ae=a.computeNodeIndent(y),Be=he||ge?0:Ae/2,Qe=y.rowSpacing,Ke=0;(he||ge||y.hm||y.im&&y.maxGenerationCount===1)&&(Ke=Math.max(0,y.rowIndent)),he=y.width;var lt=y.height,ct=0,ft=0,Et=0,Gt=0,si=0,Li=0,wi=0,Vn=0,vn=0,yr=0;if(re&&!bp(le)&&135<E&&b.reverse(),bp(le))if(1<ee)for(var ar=0;ar<ee;ar++){var ao=b[ar],jo=ao.Da;ar%2===0&&ar!==ee-1?vn=Math.max(vn,(x?jo.width:jo.height)+a.computeBusNodeSpacing(ao)-Pe):ar%2!==0&&(yr=Math.max(yr,(x?jo.width:jo.height)+a.computeBusNodeSpacing(ao)-Pe))}else ee===1&&(vn=x?b[0].Da.width:b[0].Da.height);if(re)switch(le){case Oh:case Yu:ft=135>E?fx(a,y,b,vn,ct,ft):gx(a,y,b,vn,ct,ft),vn=ft.x,ct=ft.width,ft=ft.height;break;case Ih:for(Se=0;Se<ee;Se++)Be=b[Se],Et=Be.Da,yr=wi===0?0:Qe,x?(Be.S.h(z-Et.width,si+yr),ct=Math.max(ct,Et.width),ft=Math.max(ft,si+yr+Et.height),si+=yr+Et.height):(Be.S.h(Gt+yr,z-Et.height),ct=Math.max(ct,Gt+yr+Et.width),ft=Math.max(ft,Et.height),Gt+=yr+Et.width),wi++;break;case ah:for(z=0;z<ee;z++)Se=b[z],Be=Se.Da,Et=wi===0?0:Qe,x?(Se.S.h(Pe/2+y.focus.x,si+Et),ct=Math.max(ct,Be.width),ft=Math.max(ft,si+Et+Be.height),si+=Et+Be.height):(Se.S.h(Gt+Et,Pe/2+y.focus.y),ct=Math.max(ct,Gt+Et+Be.width),ft=Math.max(ft,Be.height),Gt+=Et+Be.width),wi++}else for(yr=0;yr<ee;yr++)ar=b[yr],ao=ar.Da,x?(0<Se&&0<wi&&Gt+Pe+ao.width>Se&&(Gt<z&&ic(y,le,z-Gt,0,Vn,yr-1),Li++,wi=0,Vn=yr,Et=ft,Gt=0,si=135<E?-ft-Qe:ft+Qe),jo=wi===0?Be:Pe,Tm(a,ar,0,si),ar.S.h(Gt+jo,si),ct=Math.max(ct,Gt+jo+ao.width),ft=Math.max(ft,Et+(Li===0?0:Qe)+ao.height),Gt+=jo+ao.width):(0<Se&&0<wi&&si+Pe+ao.height>Se&&(si<z&&ic(y,le,0,z-si,Vn,yr-1),Li++,wi=0,Vn=yr,Et=ct,si=0,Gt=135<E?-ct-Qe:ct+Qe),jo=wi===0?Be:Pe,Tm(a,ar,Gt,0),ar.S.h(Gt,si+jo),ft=Math.max(ft,si+jo+ao.height),ct=Math.max(ct,Et+(Li===0?0:Qe)+ao.width),si+=jo+ao.height),wi++;switch(0<Li&&(x?(ft+=Math.max(0,oe),Gt<ct&&ic(y,le,ct-Gt,0,Vn,ee-1),0<Ke&&(ge||Gc(y,Ke,0,0,ee-1),ct+=Ke)):(ct+=Math.max(0,oe),si<ft&&ic(y,le,0,ft-si,Vn,ee-1),0<Ke&&(ge||Gc(y,0,Ke,0,ee-1),ft+=Ke))),Ke=ge=0,le){case $f:x?ge+=ct/2-y.focus.x-Ae/2:Ke+=ft/2-y.focus.y-Ae/2;break;case Yc:0<Li?x?ge+=ct/2-y.focus.x-Ae/2:Ke+=ft/2-y.focus.y-Ae/2:x?(a=b[0].S.x+b[0].la.x,ge+=a+(b[ee-1].S.x+b[ee-1].la.x+2*b[ee-1].focus.x-a)/2-y.focus.x-Ae/2):(a=b[0].S.y+b[0].la.y,Ke+=a+(b[ee-1].S.y+b[ee-1].la.y+2*b[ee-1].focus.y-a)/2-y.focus.y-Ae/2);break;case Gu:x?(ge-=Ae,ct+=Ae):(Ke-=Ae,ft+=Ae);break;case Vu:x?(ge+=ct-y.width+Ae,ct+=Ae):(Ke+=ft-y.height+Ae,ft+=Ae);break;case Oh:case Yu:x?1<ee?ge+=vn+Pe/2-y.focus.x:ge+=b[0].focus.x-y.focus.x+b[0].la.x:1<ee?Ke+=vn+Pe/2-y.focus.y:Ke+=b[0].focus.y-y.focus.y+b[0].la.y;break;case Ih:x?ge+=ct+Pe/2-y.focus.x:Ke+=ft+Pe/2-y.focus.y;break;case ah:break;default:a=a.customAlignment(y,ge,Ke,ct,ft),ge=a[0],Ke=a[1],ct=a[2],ft=a[3]}for(a=0;a<ee;a++)Ae=b[a],x?Ae.S.h(Ae.S.x+Ae.la.x-ge,Ae.S.y+(135<E?(re?-ft:-Ae.Da.height)+Ae.la.y-oe:lt+oe+Ae.la.y)):Ae.S.h(Ae.S.x+(135<E?(re?-ct:-Ae.Da.width)+Ae.la.x-oe:he+oe+Ae.la.x),Ae.S.y+Ae.la.y-Ke);x?(ct=ky(y,ct,ge),0>ge&&(ge=0),135<E&&(Ke+=ft+oe),ft=Math.max(Math.max(ft,lt),ft+lt+oe)):(135<E&&(ge+=ct+oe),ct=Math.max(Math.max(ct,he),ct+he+oe),ft=By(y,ft,Ke),0>Ke&&(Ke=0)),y.la.h(ge,Ke),y.Da.h(ct,ft)}}zr.prototype.customAlignment=function(a,y,x,E,b){return[y,x,E,b]};function fx(a,y,x,E,b,z){var ee=x.length;if(ee===0)return new vt(E,0,b,z);if(ee===1)return y=x[0],b=y.Da.width,z=y.Da.height,new vt(E,0,b,z);for(var re=y.nodeSpacing,oe=y.rowSpacing,le=eu(y)===90,he=0,ge=0,Se=0,Pe=0;Pe<ee;Pe++)if(!(Pe%2!==0||1<ee&&Pe===ee-1)){var Ae=x[Pe],Be=Ae.Da,Qe=he===0?0:oe;if(le){var Ke=a.computeBusNodeSpacing(Ae)-re;Ae.S.h(E-(Be.width+Ke),Se+Qe),b=Math.max(b,Be.width+Ke),z=Math.max(z,Se+Qe+Be.height),Se+=Qe+Be.height}else Ke=a.computeBusNodeSpacing(Ae)-re,Ae.S.h(ge+Qe,E-(Be.height+Ke)),z=Math.max(z,Be.height+Ke),b=Math.max(b,ge+Qe+Be.width),ge+=Qe+Be.width;he++}for(he=0,Ae=ge,Pe=Se,le?(ge=E+re,Se=0):(ge=0,Se=E+re),Be=0;Be<ee;Be++)if(Be%2!==0){Qe=x[Be],Ke=Qe.Da;var lt=he===0?0:oe;if(le){var ct=a.computeBusNodeSpacing(Qe)-re;Qe.S.h(ge+ct,Se+lt),b=Math.max(b,ge+Ke.width+ct),z=Math.max(z,Se+lt+Ke.height),Se+=lt+Ke.height}else ct=a.computeBusNodeSpacing(Qe)-re,Qe.S.h(ge+lt,Se+ct),b=Math.max(b,ge+lt+Ke.width),z=Math.max(z,Se+Ke.height+ct),ge+=lt+Ke.width;he++}return 1<ee&&ee%2===1&&(x=x[ee-1],ee=x.Da,a=a.computeBusLastRowSpacing(x,le?Math.max(Math.abs(Pe),Math.abs(Se)):Math.max(Math.abs(Ae),Math.abs(ge))),le?(x.S.h(E+re/2-x.focus.x-x.la.x,z+a),le=E+re/2-x.focus.x-x.la.x,b=Math.max(b,le+ee.width),0>le&&(b-=le),z=Math.max(z,Math.max(Pe,Se)+a+ee.height),0>x.S.x&&(E=Nm(y,x.S.x,!1,E,re))):(x.S.h(b+a,E+re/2-x.focus.y-x.la.y),b=Math.max(b,Math.max(Ae,ge)+a+ee.width),Se=E+re/2-x.focus.y-x.la.y,z=Math.max(z,Se+ee.height),0>Se&&(z-=Se),0>x.S.y&&(E=Nm(y,x.S.y,!0,E,re)))),new vt(E,0,b,z)}function gx(a,y,x,E,b,z){var ee=x.length;if(ee===0)return new vt(E,0,b,z);if(ee===1)return x=x[0],b=x.Da.width,z=x.Da.height,new vt(E,0,b,z);for(var re=y.nodeSpacing,oe=y.rowSpacing,le=eu(y)===270,he=0,ge=0,Se=0,Pe=0;Pe<ee;Pe++)if(!(Pe%2!==0||1<ee&&Pe===ee-1)){var Ae=x[Pe],Be=Ae.Da,Qe=he===0?0:oe;if(le){var Ke=a.computeBusNodeSpacing(Ae)-re;Se-=Qe+Be.height,Ae.S.h(E-(Be.width+Ke),Se),b=Math.max(b,Be.width+Ke),z=Math.max(z,Math.abs(Se))}else Ke=a.computeBusNodeSpacing(Ae)-re,ge-=Qe+Be.width,Ae.S.h(ge,E-(Be.height+Ke)),z=Math.max(z,Be.height+Ke),b=Math.max(b,Math.abs(ge));he++}for(he=0,Ae=ge,Pe=Se,le?(ge=E+re,Se=0):(ge=0,Se=E+re),Be=0;Be<ee;Be++)if(Be%2!==0){Qe=x[Be],Ke=Qe.Da;var lt=he===0?0:oe;if(le){var ct=a.computeBusNodeSpacing(Qe)-re;Se-=lt+Ke.height,Qe.S.h(ge+ct,Se),b=Math.max(b,ge+Ke.width+ct),z=Math.max(z,Math.abs(Se))}else ct=a.computeBusNodeSpacing(Qe)-re,ge-=lt+Ke.width,Qe.S.h(ge,Se+ct),z=Math.max(z,Se+Ke.height+ct),b=Math.max(b,Math.abs(ge));he++}for(1<ee&&ee%2===1&&(oe=x[ee-1],he=oe.Da,a=a.computeBusLastRowSpacing(oe,le?Math.max(Math.abs(Pe),Math.abs(Se)):Math.max(Math.abs(Ae),Math.abs(ge))),le?(oe.S.h(E+re/2-oe.focus.x-oe.la.x,-z-he.height-a),ge=E+re/2-oe.focus.x-oe.la.x,b=Math.max(b,ge+he.width),0>ge&&(b-=ge),z=Math.max(z,Math.abs(Math.min(Pe,Se))+a+he.height),0>oe.S.x&&(E=Nm(y,oe.S.x,!1,E,re))):(oe.S.h(-b-he.width-a,E+re/2-oe.focus.y-oe.la.y),b=Math.max(b,Math.abs(Math.min(Ae,ge))+a+he.width),Se=E+re/2-oe.focus.y-oe.la.y,z=Math.max(z,Se+he.height),0>Se&&(z-=Se),0>oe.S.y&&(E=Nm(y,oe.S.y,!0,E,re)))),y=0;y<ee;y++)re=x[y],le?re.S.h(re.S.x,re.S.y+z):re.S.h(re.S.x+b,re.S.y);return new vt(E,0,b,z)}zr.prototype.computeBusNodeSpacing=function(a){return a.parent===null?0:a.parent.nodeSpacing},zr.prototype.computeBusLastRowSpacing=function(a){return a.parent===null?0:a.parent.rowSpacing};function Nm(a,y,x,E,b){a=a.children;for(var z=a.length,ee=0;ee<z;ee++)x?a[ee].S.h(a[ee].S.x,a[ee].S.y-y):a[ee].S.h(a[ee].S.x-y,a[ee].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 Yc:case $f:return x+a.width>y&&(y=x+a.width),0>x&&(y-=x),y;case Gu:return a.width>y?a.width:y;case Vu:return 2*a.focus.x>y?a.width:y+a.width-2*a.focus.x;case Oh:case Yu:return Math.max(a.width,Math.max(y,x+a.width)-Math.min(0,x));case Ih:return a.width-a.focus.x+a.nodeSpacing/2+y;case ah:return Math.max(a.width,a.focus.x+a.nodeSpacing/2+y);default:return y}}function By(a,y,x){switch(a.alignment){case Yc:case $f:return x+a.height>y&&(y=x+a.height),0>x&&(y-=x),y;case Gu:return a.height>y?a.height:y;case Vu:return 2*a.focus.y>y?a.height:y+a.height-2*a.focus.y;case Oh:case Yu:return Math.max(a.height,Math.max(y,x+a.height)-Math.min(0,x));case Ih:return a.height-a.focus.y+a.nodeSpacing/2+y;case ah:return Math.max(a.height,a.focus.y+a.nodeSpacing/2+y);default:return y}}function Ny(a,y,x){switch(a){case $f:y/=2,x/=2;break;case Yc:y/=2,x/=2;break;case Gu:x=y=0;break;case Vu:break;default:et("Unhandled alignment value "+a.toString())}return new je(y,x)}function ic(a,y,x,E,b,z){y=Ny(y,x,E),Gc(a,y.x,y.y,b,z)}function Gc(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 Tm(a,y,x,E){var b=y.parent;switch(a.ud){case Hu:for(a=y.sourceEdges;a.next();)y=a.value,y.fromVertex===b&&y.relativePoint.h(x,E);break;case Vc:for(a=y.destinationEdges;a.next();)y=a.value,y.toVertex===b&&y.relativePoint.h(x,E);break;default:et("Unhandled path value "+a.ud.toString())}}function Om(a,y,x){for(var E=0;E<a.length;E++){var b=a[E];b.x+=y,b.y+=x}}function px(a,y,x,E,b,z,ee,re){var oe=eu(y),le=oe===90||oe===270,he=y.nodeSpacing;y=E;var ge=b;E=z;var Se=ee,Pe=x.Yo,Ae=x.kp;ee=x.Da;var Be=le?Math.max(Se,ee.height):Math.max(E,ee.width);if((Pe===null||oe!==eu(x))&&(Pe=Ys(a,2),Ae=Ys(a,2),le?(Pe[0].h(0,0),Pe[1].h(0,ee.height),Ae[0].h(ee.width,0),Ae[1].h(Ae[0].x,Pe[1].y)):(Pe[0].h(0,0),Pe[1].h(ee.width,0),Ae[0].h(0,ee.height),Ae[1].h(Pe[1].x,Ae[0].y))),le){if(Se=9999999,!(ge===null||2>ge.length||Pe===null||2>Pe.length))for(b=x=0;x<ge.length&&b<Pe.length;){z=ge[x];var Qe=Pe[b];oe=Qe.x,le=Qe.y,oe+=E;var Ke=z;x+1<ge.length&&(Ke=ge[x+1]);var lt=Qe;Qe=lt.x,lt=lt.y,b+1<Pe.length&&(lt=Pe[b+1],Qe=lt.x,lt=lt.y,Qe+=E);var ct=Se;z.y===le?ct=oe-z.x:z.y>le&&z.y<lt?ct=oe+(z.y-le)/(lt-le)*(Qe-oe)-z.x:le>z.y&&le<Ke.y&&(ct=oe-(z.x+(le-z.y)/(Ke.y-z.y)*(Ke.x-z.x))),ct<Se&&(Se=ct),Ke.y<=z.y?x++:lt<=le?b++:(Ke.y<=lt&&x++,lt<=Ke.y&&b++)}if(Se=E-Se,Se+=he,x=Pe,b=Se,y===null||2>y.length||x===null||2>x.length)E=null;else{for(he=Ys(a,y.length+x.length),E=z=oe=0;z<x.length&&x[z].y<y[0].y;)le=x[z++],he[E++].h(le.x+b,le.y);for(;oe<y.length;)le=y[oe++],he[E++].h(le.x,le.y);for(oe=y[y.length-1].y;z<x.length&&x[z].y<=oe;)z++;for(;z<x.length&&x[z].y>oe;)le=x[z++],he[E++].h(le.x+b,le.y);for(x=Ys(a,E),oe=0;oe<E;oe++)x[oe].assign(he[oe]);uu(a,he),E=x}if(z=Ae,oe=Se,ge===null||2>ge.length||z===null||2>z.length)b=null;else{for(he=Ys(a,ge.length+z.length),b=le=x=0;x<ge.length&&ge[x].y<z[0].y;)Ke=ge[x++],he[b++].h(Ke.x,Ke.y);for(;le<z.length;)Ke=z[le++],he[b++].h(Ke.x+oe,Ke.y);for(z=z[z.length-1].y;x<ge.length&&ge[x].y<=z;)x++;for(;x<ge.length&&ge[x].y>z;)oe=ge[x++],he[b++].h(oe.x,oe.y);for(z=Ys(a,b),x=0;x<b;x++)z[x].assign(he[x]);uu(a,he),b=z}return z=Math.max(0,Se)+ee.width,ee=Be,uu(a,y),uu(a,Pe),uu(a,ge),uu(a,Ae),re[0]=E,re[1]=b,new vt(Se,0,z,ee)}if(E=9999999,!(ge===null||2>ge.length||Pe===null||2>Pe.length))for(b=x=0;x<ge.length&&b<Pe.length;)z=ge[x],Qe=Pe[b],oe=Qe.x,le=Qe.y,le+=Se,Ke=z,x+1<ge.length&&(Ke=ge[x+1]),lt=Qe,Qe=lt.x,lt=lt.y,b+1<Pe.length&&(lt=Pe[b+1],Qe=lt.x,lt=lt.y,lt+=Se),ct=E,z.x===oe?ct=le-z.y:z.x>oe&&z.x<Qe?ct=le+(z.x-oe)/(Qe-oe)*(lt-le)-z.y:oe>z.x&&oe<Ke.x&&(ct=le-(z.y+(oe-z.x)/(Ke.x-z.x)*(Ke.y-z.y))),ct<E&&(E=ct),Ke.x<=z.x?x++:Qe<=oe?b++:(Ke.x<=Qe&&x++,Qe<=Ke.x&&b++);if(Se-=E,Se+=he,x=Pe,b=Se,y===null||2>y.length||x===null||2>x.length)E=null;else{for(he=Ys(a,y.length+x.length),E=z=oe=0;z<x.length&&x[z].x<y[0].x;)le=x[z++],he[E++].h(le.x,le.y+b);for(;oe<y.length;)le=y[oe++],he[E++].h(le.x,le.y);for(oe=y[y.length-1].x;z<x.length&&x[z].x<=oe;)z++;for(;z<x.length&&x[z].x>oe;)le=x[z++],he[E++].h(le.x,le.y+b);for(x=Ys(a,E),oe=0;oe<E;oe++)x[oe].assign(he[oe]);uu(a,he),E=x}if(z=Ae,oe=Se,ge===null||2>ge.length||z===null||2>z.length)b=null;else{for(he=Ys(a,ge.length+z.length),b=le=x=0;x<ge.length&&ge[x].x<z[0].x;)Ke=ge[x++],he[b++].h(Ke.x,Ke.y);for(;le<z.length;)Ke=z[le++],he[b++].h(Ke.x,Ke.y+oe);for(z=z[z.length-1].x;x<ge.length&&ge[x].x<=z;)x++;for(;x<ge.length&&ge[x].x>z;)oe=ge[x++],he[b++].h(oe.x,oe.y);for(z=Ys(a,b),x=0;x<b;x++)z[x].assign(he[x]);uu(a,he),b=z}return z=Be,ee=Math.max(0,Se)+ee.height,uu(a,y),uu(a,Pe),uu(a,ge),uu(a,Ae),re[0]=E,re[1]=b,new vt(Se,0,z,ee)}function Ys(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 je;return a}function uu(a,y){var x=y.length,E=a.ru[x];E===void 0&&(E=[],a.ru[x]=E),E.push(y)}zr.prototype.arrangeTrees=function(){if(this.Rb===Zm)for(var a=this.Ub.iterator;a.next();){var y=a.value;if(y instanceof zl){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),Ty(this,y,x,E)}}}else{for(a=[],y=this.Ub.iterator;y.next();)x=y.value,x instanceof zl&&a.push(x);switch(this.sorting){case qf:break;case Dp:a.reverse();break;case kp:a.sort(this.comparer);break;case Bp:a.sort(this.comparer),a.reverse();break;default:et("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(Ty(this,b,y+b.la.x,x+b.la.y),this.Rb){case zm:x+=b.Da.height+this.$d.height;break;case jy:y+=b.Da.width+this.$d.width;break;default:et("Unhandled arrangement value "+this.Rb.toString())}}}};function Ty(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 ee=y[z];Ty(a,ee,x+ee.S.x,E+ee.S.y)}}}zr.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.Gu(),this.isRouting&&this.commitLinks()},zr.prototype.commitNodes=function(){for(var a=this.network.vertexes.iterator;a.next();)a.value.commit();for(a.reset();a.next();)this.layoutComments(a.value)},zr.prototype.Gu=function(){if(this.layerStyle===Wm){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 je(-this.nodeSpacing/2,-this.layerSpacing/2)):(x.Bc(this.layerSpacing,this.nodeSpacing/2),E=new je(-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 ee=0;ee<a.length;ee++)z+=a[ee]+y[ee];for(ee=0;ee<a.length;ee++){var re=a[ee]+y[ee];this.angle===270?(z-=re,b.push(new vt(0,z,x,re))):this.angle===90?(b.push(new vt(0,z,x,re)),z+=re):this.angle===180?(z-=re,b.push(new vt(z,0,re,x))):(b.push(new vt(z,0,re,x)),z+=re)}this.commitLayers(b,E)}},zr.prototype.commitLayers=function(){},zr.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()},zr.prototype.yv=function(){for(var a=this.Ub.iterator;a.next();){var y=a.value;y instanceof zl&&mx(this,y)}};function mx(a,y){if(y!==null){a.setPortSpots(y),y=y.children;for(var x=y.length,E=0;E<x;E++)mx(a,y[E])}}zr.prototype.setPortSpots=function(a){var y=a.alignment;if(xd(y)){var x=this.ud===Hu,E=eu(a);switch(E){case 0:var b=Jr;break;case 90:b=ta;break;case 180:b=mo;break;default:b=po}var z=a.children,ee=z.length;switch(y){case Oh:case Yu:for(y=0;y<ee;y++){var re=z[y];if(re=(x?re.sourceEdges:re.destinationEdges).first(),re!==null&&(re=re.link,re!==null)){var oe=E===90||E===270?mo:po;if(ee===1||y===ee-1&&ee%2===1)switch(E){case 0:oe=mo;break;case 90:oe=po;break;case 180:oe=Jr;break;default:oe=ta}else y%2===0&&(oe=E===90||E===270?Jr:ta);x?(a.setsPortSpot&&(re.fromSpot=b),a.setsChildPortSpot&&(re.toSpot=oe)):(a.setsPortSpot&&(re.fromSpot=oe),a.setsChildPortSpot&&(re.toSpot=b))}}break;case Ih:for(E=E===90||E===270?Jr:ta,z=x?a.destinationEdges:a.sourceEdges;z.next();)ee=z.value.link,ee!==null&&(x?(a.setsPortSpot&&(ee.fromSpot=b),a.setsChildPortSpot&&(ee.toSpot=E)):(a.setsPortSpot&&(ee.fromSpot=E),a.setsChildPortSpot&&(ee.toSpot=b)));break;case ah:for(E=E===90||E===270?mo:po,z=x?a.destinationEdges:a.sourceEdges;z.next();)ee=z.value.link,ee!==null&&(x?(a.setsPortSpot&&(ee.fromSpot=b),a.setsChildPortSpot&&(ee.toSpot=E)):(a.setsPortSpot&&(ee.fromSpot=E),a.setsChildPortSpot&&(ee.toSpot=b)))}}else if(x=eu(a),this.ud===Hu){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=Jr;break;case 90:E.fromSpot=ta;break;case 180:E.fromSpot=mo;break;default:E.fromSpot=po}else E.fromSpot=a.portSpot;if(a.setsChildPortSpot)if(a.childPortSpot.Xb())switch(x){case 0:E.toSpot=mo;break;case 90:E.toSpot=po;break;case 180:E.toSpot=Jr;break;default:E.toSpot=ta}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=Jr;break;case 90:E.toSpot=ta;break;case 180:E.toSpot=mo;break;default:E.toSpot=po}else E.toSpot=a.portSpot;if(a.setsChildPortSpot)if(a.childPortSpot.Xb())switch(x){case 0:E.fromSpot=mo;break;case 90:E.fromSpot=po;break;case 180:E.fromSpot=Jr;break;default:E.fromSpot=ta}else E.fromSpot=a.childPortSpot}};function eu(a){return a=a.angle,45>=a?0:135>=a?90:225>=a?180:315>=a?270:0}zr.prototype.computeLayerSpacing=function(a){var y=eu(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},zr.prototype.computeNodeIndent=function(a){var y=eu(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)},It.Object.defineProperties(zr.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!==jm&&a!==Iy&&a!==Oy&&a!==Ry||(this.vo=a,this.C())}},layerStyle:{get:function(){return this.Bq},set:function(a){this.Rb===a||a!==zy&&a!==Zy&&a!==Wm||(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!==zm&&a!==jy&&a!==Zm||(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!==qf&&a!==Dp&&a!==kp&&!Bp||(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()):et("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!==Rm&&a!==Np||(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!==qf&&a!==Dp&&a!==kp&&!Bp||(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!==Rm&&a!==Np||(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 Im=new yn(zr,"PathDefault",-1),Hu=new yn(zr,"PathDestination",0),Vc=new yn(zr,"PathSource",1),qf=new yn(zr,"SortingForwards",10),Dp=new yn(zr,"SortingReverse",11),kp=new yn(zr,"SortingAscending",12),Bp=new yn(zr,"SortingDescending",13),$f=new yn(zr,"AlignmentCenterSubtrees",20),Yc=new yn(zr,"AlignmentCenterChildren",21),Gu=new yn(zr,"AlignmentStart",22),Vu=new yn(zr,"AlignmentEnd",23),Oh=new yn(zr,"AlignmentBus",24),Yu=new yn(zr,"AlignmentBusBranching",25),Ih=new yn(zr,"AlignmentTopLeftBus",26),ah=new yn(zr,"AlignmentBottomRightBus",27),Rm=new yn(zr,"CompactionNone",30),Np=new yn(zr,"CompactionBlock",31),jm=new yn(zr,"StyleLayered",40),Oy=new yn(zr,"StyleLastParents",41),Iy=new yn(zr,"StyleAlternating",42),Ry=new yn(zr,"StyleRootOnly",43),zm=new yn(zr,"ArrangementVertical",50),jy=new yn(zr,"ArrangementHorizontal",51),Zm=new yn(zr,"ArrangementFixedRoots",52),zy=new yn(zr,"LayerIndividual",60),Zy=new yn(zr,"LayerSiblings",61),Wm=new yn(zr,"LayerUniform",62);zr.className="TreeLayout",zr.PathDefault=Im,zr.PathDestination=Hu,zr.PathSource=Vc,zr.SortingForwards=qf,zr.SortingReverse=Dp,zr.SortingAscending=kp,zr.SortingDescending=Bp,zr.AlignmentCenterSubtrees=$f,zr.AlignmentCenterChildren=Yc,zr.AlignmentStart=Gu,zr.AlignmentEnd=Vu,zr.AlignmentBus=Oh,zr.AlignmentBusBranching=Yu,zr.AlignmentTopLeftBus=Ih,zr.AlignmentBottomRightBus=ah,zr.CompactionNone=Rm,zr.CompactionBlock=Np,zr.StyleLayered=jm,zr.StyleLastParents=Oy,zr.StyleAlternating=Iy,zr.StyleRootOnly=Ry,zr.ArrangementVertical=zm,zr.ArrangementHorizontal=jy,zr.ArrangementFixedRoots=Zm,zr.LayerIndividual=zy,zr.LayerSiblings=Zy,zr.LayerUniform=Wm;function Kc(a){Zo.call(this,a)}Vt(Kc,Zo),Kc.prototype.createVertex=function(){return new zl(this)},Kc.prototype.createEdge=function(){return new eg(this)},Kc.className="TreeNetwork";function zl(a){Ba.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 je(0,0),this.Da=new Je(0,0),this.la=new je(0,0),this.im=this.hm=this.qA=!1,this.kp=this.Yo=null,this.nd=qf,this.hd=ay,this.Kb=0,this.Jb=Yc,this.Vq=this.Uq=0,this.Wq=20,this.ie=50,this.Aq=0,this.Hp=Np,this.Ap=0,this.nr=25,this.Gp=this.mr=10,this.Fp=20,this.xr=!0,this.dr=Eo,this.wr=!0,this.Dp=Eo}Vt(zl,Ba),zl.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)},It.Object.defineProperties(zl.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)}}}),zl.className="TreeVertex";function eg(a){el.call(this,a),this.$t=new je(0,0)}Vt(eg,el),eg.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 Hu:x=this.fromVertex,E=this.toVertex;break;case Vc:x=this.toVertex,E=this.fromVertex;break;default:et("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=eu(x),ee=y.computeLayerSpacing(x),re=x.rowSpacing;a.vg();var oe=a.curve===hl,le=a.isOrthogonal,he;if(a.uh(),le||oe){for(he=2;4<a.pointsCount;)a.pv(2);var ge=a.i(1),Se=a.i(2)}else{for(he=1;3<a.pointsCount;)a.pv(1);ge=a.i(0),Se=a.i(a.pointsCount-1)}var Pe=a.i(a.pointsCount-1);z===0?(x.alignment===Vu?(z=E.bottom+b.y,b.y===0&&ge.y>Pe.y+x.rowIndent&&(z=Math.min(z,Math.max(ge.y,z-y.computeNodeIndent(x))))):x.alignment===Gu?(z=E.top+b.y,b.y===0&&ge.y<Pe.y-x.rowIndent&&(z=Math.max(z,Math.min(ge.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,oe?(a.m(he,ge.x,z),he++,a.m(he,E.right+ee,z),he++,a.m(he,E.right+ee+(b.x-re)/3,z),he++,a.m(he,E.right+ee+2*(b.x-re)/3,z),he++,a.m(he,E.right+ee+(b.x-re),z),he++,a.m(he,Se.x,z)):(le&&(a.m(he,E.right+ee/2,ge.y),he++),a.m(he,E.right+ee/2,z),he++,a.m(he,E.right+ee+b.x-(le?re/2:re),z),he++,le&&a.m(he,a.i(he-1).x,Se.y))):z===90?(x.alignment===Vu?(z=E.right+b.x,b.x===0&&ge.x>Pe.x+x.rowIndent&&(z=Math.min(z,Math.max(ge.x,z-y.computeNodeIndent(x))))):x.alignment===Gu?(z=E.left+b.x,b.x===0&&ge.x<Pe.x-x.rowIndent&&(z=Math.max(z,Math.min(ge.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,oe?(a.m(he,z,ge.y),he++,a.m(he,z,E.bottom+ee),he++,a.m(he,z,E.bottom+ee+(b.y-re)/3),he++,a.m(he,z,E.bottom+ee+2*(b.y-re)/3),he++,a.m(he,z,E.bottom+ee+(b.y-re)),he++,a.m(he,z,Se.y)):(le&&(a.m(he,ge.x,E.bottom+ee/2),he++),a.m(he,z,E.bottom+ee/2),he++,a.m(he,z,E.bottom+ee+b.y-(le?re/2:re)),he++,le&&a.m(he,Se.x,a.i(he-1).y))):z===180?(x.alignment===Vu?(z=E.bottom+b.y,b.y===0&&ge.y>Pe.y+x.rowIndent&&(z=Math.min(z,Math.max(ge.y,z-y.computeNodeIndent(x))))):x.alignment===Gu?(z=E.top+b.y,b.y===0&&ge.y<Pe.y-x.rowIndent&&(z=Math.max(z,Math.min(ge.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,oe?(a.m(he,ge.x,z),he++,a.m(he,E.left-ee,z),he++,a.m(he,E.left-ee+(b.x+re)/3,z),he++,a.m(he,E.left-ee+2*(b.x+re)/3,z),he++,a.m(he,E.left-ee+(b.x+re),z),he++,a.m(he,Se.x,z)):(le&&(a.m(he,E.left-ee/2,ge.y),he++),a.m(he,E.left-ee/2,z),he++,a.m(he,E.left-ee+b.x+(le?re/2:re),z),he++,le&&a.m(he,a.i(he-1).x,Se.y))):z===270?(x.alignment===Vu?(z=E.right+b.x,b.x===0&&ge.x>Pe.x+x.rowIndent&&(z=Math.min(z,Math.max(ge.x,z-y.computeNodeIndent(x))))):x.alignment===Gu?(z=E.left+b.x,b.x===0&&ge.x<Pe.x-x.rowIndent&&(z=Math.max(z,Math.min(ge.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,oe?(a.m(he,z,ge.y),he++,a.m(he,z,E.top-ee),he++,a.m(he,z,E.top-ee+(b.y+re)/3),he++,a.m(he,z,E.top-ee+2*(b.y+re)/3),he++,a.m(he,z,E.top-ee+(b.y+re)),he++,a.m(he,z,Se.y)):(le&&(a.m(he,ge.x,E.top-ee/2),he++),a.m(he,z,E.top-ee/2),he++,a.m(he,z,E.top-ee+b.y+(le?re/2:re)),he++,le&&a.m(he,Se.x,a.i(he-1).y))):et("Invalid angle "+z),a.zf()}else b=E,a=this.link,E=this.network.layout,y=eu(x),y!==eu(b)&&(ee=E.computeLayerSpacing(x),re=x.bounds,x=b.bounds,y===0&&x.left-re.right<ee+1||y===90&&x.top-re.bottom<ee+1||y===180&&re.left-x.right<ee+1||y===270&&re.top-x.bottom<ee+1||(a.vg(),x=a.curve===hl,b=a.isOrthogonal,E=xd(this.fromVertex.alignment),a.uh(),y===0?(y=re.right+ee/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=re.bottom+ee/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=re.left-ee/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=re.top-ee/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()))}}},It.Object.defineProperties(eg.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)}}}),eg.className="TreeEdge",Ao.prototype.initializeStandardTools=function(){this.gb("Action",new Bl,this.mouseDownTools),this.gb("Relinking",new ol,this.mouseDownTools),this.gb("LinkReshaping",new Sa,this.mouseDownTools),this.gb("Rotating",new xs,this.mouseDownTools),this.gb("Resizing",new ss,this.mouseDownTools),this.gb("Linking",new hs,this.mouseMoveTools),this.gb("Dragging",new Ko,this.mouseMoveTools),this.gb("DragSelecting",new vl,this.mouseMoveTools),this.gb("Panning",new is,this.mouseMoveTools),this.gb("ContextMenu",new Ps,this.mouseUpTools),this.gb("TextEditing",new _o,this.mouseUpTools),this.gb("ClickCreating",new mh,this.mouseUpTools),this.gb("ClickSelecting",new _h,this.mouseUpTools)},Eu("Horizontal",new m0),Eu("Spot",new y0),Eu("Table",new x0),Eu("Viewbox",new C0),Eu("TableRow",new P0),Eu("TableColumn",new w0),Eu("Graduated",new Xg),Eu("Grid",new Ug),Cf.add("GraphLinksModel",Wa),Cf.add("TreeModel",Al);var Hm=Xn.go,Wy={get licenseKey(){return Yt.licenseKey},set licenseKey(a){Yt.licenseKey=a},get version(){return Yt.version},Group:Pr,EnumValue:yn,List:Mn,Set:ln,Map:Ut,Point:je,Size:Je,Rect:vt,Margin:Pi,Spot:En,Geometry:Pn,PathFigure:sa,PathSegment:Wr,InputEvent:Ta,DiagramEvent:bl,ChangedEvent:Wo,Model:Ni,GraphLinksModel:Yr,TreeModel:bs,Binding:Pa,Transaction:va,UndoManager:Qo,CommandHandler:Xe,Tool:Gr,DraggingTool:Ko,DraggingInfo:eh,DraggingOptions:ae,LinkingBaseTool:to,LinkingTool:hs,RelinkingTool:ol,LinkReshapingTool:Sa,ResizingTool:ss,RotatingTool:xs,ClickSelectingTool:_h,ActionTool:Bl,ClickCreatingTool:mh,HTMLInfo:Su,ContextMenuTool:Ps,DragSelectingTool:vl,PanningTool:is,TextEditingTool:_o,ToolManager:Ao,Animation:rs,AnimationManager:Js,AnimationTrigger:Kl,Layer:Ka,Diagram:Yt,Palette:fe,Overview:me,Brush:xo,GraphObject:At,Panel:Rn,RowColumnDefinition:ba,Shape:Lr,TextBlock:zo,Picture:Rs,Part:Ki,Adornment:no,Node:ui,Link:Kn,Placeholder:As,Layout:$o,LayoutNetwork:Zo,LayoutVertex:Ba,LayoutEdge:el,GridLayout:Ja,PanelLayout:ka,CircularLayout:oa,CircularNetwork:Xf,CircularVertex:Cp,CircularEdge:wm,ForceDirectedLayout:as,ForceDirectedNetwork:Hc,ForceDirectedVertex:Ep,ForceDirectedEdge:Ap,LayeredDigraphLayout:wo,LayeredDigraphNetwork:Jf,LayeredDigraphVertex:Ml,LayeredDigraphEdge:Lp,TreeLayout:zr,TreeNetwork:Kc,TreeVertex:zl,TreeEdge:eg};typeof Hm=="object"&&Hm.version&&Yn("WARNING: a `go` object on the root object is already defined. "+("Debug"in Hm?"debug ":"")+"version: "+Hm.version+", replaced with version: "+Wy.version),Yt.prototype.go=Wy,Xn.go=Wy,typeof fn.exports=="object"&&(fn.exports=typeof we.g!="undefined"?we.g.go:self.go)}();var ve=typeof we.g!="undefined"?we.g.go:self.go;const Ye=typeof we.g!="undefined"?we.g.go:self.go,dt=Ye.Group,it=Ye.EnumValue,at=Ye.List,Ze=Ye.Set,Ue=Ye.Map,xt=Ye.Point,nt=Ye.Size,De=Ye.Rect,wt=Ye.Margin,Ve=Ye.Spot,ut=Ye.Geometry,Ee=Ye.PathFigure,te=Ye.PathSegment,ne=Ye.InputEvent,ue=Ye.DiagramEvent,se=Ye.ChangedEvent,de=Ye.Model,pe=Ye.GraphLinksModel,ye=Ye.TreeModel,Ce=Ye.Binding,ze=Ye.Transaction,Te=Ye.UndoManager,Ie=Ye.CommandHandler,Oe=Ye.Tool,Re=Ye.DraggingTool,rt=Ye.DraggingInfo,ot=Ye.LinkingBaseTool,Ct=Ye.LinkingTool,gt=Ye.RelinkingTool,kt=Ye.LinkReshapingTool,Lt=Ye.ResizingTool,Ot=Ye.RotatingTool,Nt=Ye.ClickSelectingTool,tn=Ye.ActionTool,st=Ye.ClickCreatingTool,He=Ye.HTMLInfo,Rt=Ye.ContextMenuTool,Zt=Ye.DragSelectingTool,_t=Ye.PanningTool,Mt=Ye.TextEditingTool,jt=Ye.ToolManager,an=Ye.Animation,Dn=Ye.AnimationManager,Dt=Ye.AnimationTrigger,gn=Ye.Layer,yt=Ye.Diagram,Zn=Ye.Palette,vi=Ye.Overview,We=Ye.Brush,Fe=Ye.GraphObject,xe=Ye.Panel,Ne=Ye.RowColumnDefinition,_e=Ye.Shape,be=Ye.TextBlock,tt=Ye.TextBlockMetrics,Xt=Ye.Picture,Bt=Ye.Part,nn=Ye.Adornment,Tt=Ye.Node,bt=Ye.Link,zt=Ye.Placeholder,qt=Ye.Layout,pn=Ye.LayoutNetwork,ei=Ye.LayoutVertex,wn=Ye.LayoutEdge,Fn=Ye.GridLayout,Ci=Ye.PanelLayout,$n=Ye.CircularLayout,bi=Ye.CircularNetwork,hi=Ye.CircularVertex,Di=Ye.CircularEdge,Gi=Ye.ForceDirectedLayout,Ji=Ye.ForceDirectedNetwork,Zr=Ye.ForceDirectedVertex,qi=Ye.ForceDirectedEdge,ii=Ye.LayeredDigraphLayout,so=Ye.LayeredDigraphNetwork,Kr=Ye.LayeredDigraphVertex,qr=Ye.LayeredDigraphEdge,io=Ye.TreeLayout,Fo=Ye.TreeNetwork,lo=Ye.TreeVertex,Ar=Ye.TreeEdge,ro=Ye.version},2859:function(fn,on,we){"use strict";we.d(on,{hP:function(){return vi}});var ve=function(We,Fe){return(ve=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(xe,Ne){xe.__proto__=Ne}||function(xe,Ne){for(var _e in Ne)Object.prototype.hasOwnProperty.call(Ne,_e)&&(xe[_e]=Ne[_e])})(We,Fe)};function Ye(We,Fe){function xe(){this.constructor=We}ve(We,Fe),We.prototype=Fe===null?Object.create(Fe):(xe.prototype=Fe.prototype,new xe)}function dt(We,Fe,xe,Ne){return new(xe||(xe=Promise))(function(_e,be){function tt(nn){try{Bt(Ne.next(nn))}catch(Tt){be(Tt)}}function Xt(nn){try{Bt(Ne.throw(nn))}catch(Tt){be(Tt)}}function Bt(nn){var Tt;nn.done?_e(nn.value):(Tt=nn.value,Tt instanceof xe?Tt:new xe(function(bt){bt(Tt)})).then(tt,Xt)}Bt((Ne=Ne.apply(We,Fe||[])).next())})}function it(We,Fe){var xe,Ne,_e,be,tt={label:0,sent:function(){if(1&_e[0])throw _e[1];return _e[1]},trys:[],ops:[]};return be={next:Xt(0),throw:Xt(1),return:Xt(2)},typeof Symbol=="function"&&(be[Symbol.iterator]=function(){return this}),be;function Xt(Bt){return function(nn){return function(Tt){if(xe)throw new TypeError("Generator is already executing.");for(;tt;)try{if(xe=1,Ne&&(_e=2&Tt[0]?Ne.return:Tt[0]?Ne.throw||((_e=Ne.return)&&_e.call(Ne),0):Ne.next)&&!(_e=_e.call(Ne,Tt[1])).done)return _e;switch(Ne=0,_e&&(Tt=[2&Tt[0],_e.value]),Tt[0]){case 0:case 1:_e=Tt;break;case 4:return tt.label++,{value:Tt[1],done:!1};case 5:tt.label++,Ne=Tt[1],Tt=[0];continue;case 7:Tt=tt.ops.pop(),tt.trys.pop();continue;default:if(_e=tt.trys,!((_e=_e.length>0&&_e[_e.length-1])||Tt[0]!==6&&Tt[0]!==2)){tt=0;continue}if(Tt[0]===3&&(!_e||Tt[1]>_e[0]&&Tt[1]<_e[3])){tt.label=Tt[1];break}if(Tt[0]===6&&tt.label<_e[1]){tt.label=_e[1],_e=Tt;break}if(_e&&tt.label<_e[2]){tt.label=_e[2],tt.ops.push(Tt);break}_e[2]&&tt.ops.pop(),tt.trys.pop();continue}Tt=Fe.call(We,tt)}catch(bt){Tt=[6,bt],Ne=0}finally{xe=_e=0}if(5&Tt[0])throw Tt[1];return{value:Tt[0]?Tt[1]:void 0,done:!0}}([Bt,nn])}}}function at(){for(var We=0,Fe=0,xe=arguments.length;Fe<xe;Fe++)We+=arguments[Fe].length;var Ne=Array(We),_e=0;for(Fe=0;Fe<xe;Fe++)for(var be=arguments[Fe],tt=0,Xt=be.length;tt<Xt;tt++,_e++)Ne[_e]=be[tt];return Ne}var Ze=function(){function We(){}return We.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},We.setAttributes=function(Fe,xe){for(var Ne=0,_e=xe;Ne<_e.length;Ne++){var be=_e[Ne],tt=be[0],Xt=be[1];Fe.setAttribute(tt,Xt)}},We.createRect=function(Fe,xe,Ne){var _e=document.createElementNS("http://www.w3.org/2000/svg","rect");return _e.setAttribute("width",Fe.toString()),_e.setAttribute("height",xe.toString()),Ne&&We.setAttributes(_e,Ne),_e},We.createLine=function(Fe,xe,Ne,_e,be){var tt=document.createElementNS("http://www.w3.org/2000/svg","line");return tt.setAttribute("x1",Fe.toString()),tt.setAttribute("y1",xe.toString()),tt.setAttribute("x2",Ne.toString()),tt.setAttribute("y2",_e.toString()),be&&We.setAttributes(tt,be),tt},We.createPolygon=function(Fe,xe){var Ne=document.createElementNS("http://www.w3.org/2000/svg","polygon");return Ne.setAttribute("points",Fe),xe&&We.setAttributes(Ne,xe),Ne},We.createCircle=function(Fe,xe){var Ne=document.createElementNS("http://www.w3.org/2000/svg","circle");return Ne.setAttribute("cx",(Fe/2).toString()),Ne.setAttribute("cy",(Fe/2).toString()),Ne.setAttribute("r",Fe.toString()),xe&&We.setAttributes(Ne,xe),Ne},We.createEllipse=function(Fe,xe,Ne){var _e=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return _e.setAttribute("cx",(Fe/2).toString()),_e.setAttribute("cy",(xe/2).toString()),_e.setAttribute("rx",(Fe/2).toString()),_e.setAttribute("ry",(xe/2).toString()),Ne&&We.setAttributes(_e,Ne),_e},We.createGroup=function(Fe){var xe=document.createElementNS("http://www.w3.org/2000/svg","g");return Fe&&We.setAttributes(xe,Fe),xe},We.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},We.createMarker=function(Fe,xe,Ne,_e,be,tt,Xt){var Bt=document.createElementNS("http://www.w3.org/2000/svg","marker");return We.setAttributes(Bt,[["id",Fe],["orient",xe],["markerWidth",Ne.toString()],["markerHeight",_e.toString()],["refX",be.toString()],["refY",tt.toString()]]),Bt.appendChild(Xt),Bt},We.createText=function(Fe){var xe=document.createElementNS("http://www.w3.org/2000/svg","text");return xe.setAttribute("x","0"),xe.setAttribute("y","0"),Fe&&We.setAttributes(xe,Fe),xe},We.createTSpan=function(Fe,xe){var Ne=document.createElementNS("http://www.w3.org/2000/svg","tspan");return Ne.textContent=Fe,xe&&We.setAttributes(Ne,xe),Ne},We.createImage=function(Fe){var xe=document.createElementNS("http://www.w3.org/2000/svg","image");return Fe&&We.setAttributes(xe,Fe),xe},We.createPoint=function(Fe,xe){var Ne=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return Ne.x=Fe,Ne.y=xe,Ne},We.createPath=function(Fe,xe){var Ne=document.createElementNS("http://www.w3.org/2000/svg","path");return Ne.setAttribute("d",Fe),xe&&We.setAttributes(Ne,xe),Ne},We}(),Ue=function(){function We(){}return We.addKey=function(Fe){We.key=Fe},Object.defineProperty(We,"isLicensed",{get:function(){return!!We.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(We.key)},enumerable:!1,configurable:!0}),We}(),xt=function(){function We(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return We.prototype.rasterize=function(Fe,xe,Ne){var _e=this;return new Promise(function(be){var tt=Ne!==void 0?Ne:document.createElement("canvas");Fe===null&&(_e.markersOnly=!0,_e.naturalSize=!1);var Xt=document.createElementNS("http://www.w3.org/2000/svg","svg");Xt.setAttribute("xmlns","http://www.w3.org/2000/svg"),Xt.setAttribute("width",xe.width.baseVal.valueAsString),Xt.setAttribute("height",xe.height.baseVal.valueAsString),Xt.setAttribute("viewBox","0 0 "+xe.viewBox.baseVal.width.toString()+" "+xe.viewBox.baseVal.height.toString()),Xt.innerHTML=xe.innerHTML,_e.naturalSize===!0?(Xt.width.baseVal.value=Fe.naturalWidth,Xt.height.baseVal.value=Fe.naturalHeight):_e.width!==void 0&&_e.height!==void 0&&(Xt.width.baseVal.value=_e.width,Xt.height.baseVal.value=_e.height),tt.width=Xt.width.baseVal.value,tt.height=Xt.height.baseVal.value;var Bt=Xt.outerHTML,nn=tt.getContext("2d");_e.markersOnly!==!0&&nn.drawImage(Fe,0,0,tt.width,tt.height);var Tt=window.URL,bt=new Image(tt.width,tt.height);bt.setAttribute("crossOrigin","anonymous");var zt=new Blob([Bt],{type:"image/svg+xml"}),qt=Tt.createObjectURL(zt);bt.onload=function(){nn.drawImage(bt,0,0),Tt.revokeObjectURL(qt);var pn=tt.toDataURL(_e.imageType,_e.imageQuality);be(pn)},bt.src=qt})},We}(),nt=function(){},De=function(){function We(Fe){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+Fe+"_"}return Object.defineProperty(We.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(We.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(We.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),We.prototype.addClass=function(Fe){return this.styleSheet===void 0&&this.addStyleSheet(),Fe.name=""+this.classNamePrefix+Fe.localName,this.classes.push(Fe),this.styleSheet.sheet.insertRule("."+Fe.name+" {"+Fe.style+"}",this.styleSheet.sheet.cssRules.length),Fe},We.prototype.addRule=function(Fe){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(Fe),this.styleSheet.sheet.insertRule(Fe.selector+" {"+Fe.style+"}",this.styleSheet.sheet.cssRules.length)},We.prototype.addStyleSheet=function(){var Fe;this.styleSheet=document.createElement("style"),((Fe=this.styleSheetRoot)!==null&&Fe!==void 0?Fe:document.head).appendChild(this.styleSheet),this.addRule(new wt("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new wt("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
from {
opacity: 0;
}
to {
opacity: 1;
}
`)),this.addRule(new wt("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
from {
opacity: 1;
}
to {
opacity: 0;
}
`)),this.addClass(new Ve("fade_in",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
`)),this.addClass(new Ve("fade_out",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
`))},We.prototype.removeStyleSheet=function(){var Fe;this.styleSheet&&(((Fe=this.styleSheetRoot)!==null&&Fe!==void 0?Fe:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},We}(),wt=function(We,Fe){this.selector=We,this.style=Fe},Ve=function(We,Fe){this.localName=We,this.style=Fe},ut=function(){function We(Fe,xe,Ne,_e,be){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=Fe,this.displayMode=xe,this.markerItems=Ne,this.uiStyleSettings=_e,this.styles=be,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return We.prototype.show=function(Fe){var xe=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=Fe,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var Ne=document.createElement("div");Ne.className=this.toolbarBlockStyleClass.name,Ne.style.whiteSpace="nowrap",this.uiContainer.appendChild(Ne),this.addActionButton(Ne,'<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(Ne,'<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(Ne,'<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(Ne,'<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(Ne,'<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(Ne,'<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(Ne,'<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(Ne,'<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(be){var tt=document.createElement("div");tt.className=""+xe.toolbarButtonStyleClass.name,tt.setAttribute("data-type-name",be.typeName),tt.innerHTML=be.icon,tt.addEventListener("click",function(){xe.markerToolbarButtonClicked(tt,be)}),xe.buttons.push(tt),xe.markerButtons.push(tt)}),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 _e=document.createElement("div");_e.className=this.toolbarBlockStyleClass.name,_e.style.whiteSpace="nowrap",_e.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(_e),this.addActionButton(_e,'<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(_e,'<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()},We.prototype.addButtonClickListener=function(Fe){this.buttonClickListeners.push(Fe)},We.prototype.removeButtonClickListener=function(Fe){this.buttonClickListeners.indexOf(Fe)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(Fe),1)},We.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},We.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var Fe=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var xe=0;xe<this.markerButtons.length;xe++)xe<Fe||xe===Fe&&this.markerButtons.length-1===Fe?this.markerButtonBlock.appendChild(this.markerButtons[xe]):(xe===Fe&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[xe]))}},We.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")},We.prototype.resetButtonStyles=function(){var Fe=this;this.buttons.forEach(function(xe){xe.className=xe.className.replace(Fe.uiStyleSettings.toolbarButtonStyleColorsClassName?Fe.uiStyleSettings.toolbarButtonStyleColorsClassName:Fe.toolbarButtonStyleColorsClass.name,"").trim(),xe.className=xe.className.replace(Fe.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?Fe.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:Fe.toolbarActiveButtonStyleColorsClass.name,"").trim(),xe.className+=" "+(Fe.uiStyleSettings.toolbarButtonStyleColorsClassName?Fe.uiStyleSettings.toolbarButtonStyleColorsClassName:Fe.toolbarButtonStyleColorsClass.name)})},We.prototype.addActionButton=function(Fe,xe,Ne){var _e=this,be=document.createElement("div");switch(be.className=""+this.toolbarButtonStyleClass.name,be.innerHTML=xe,be.setAttribute("data-action",Ne),be.addEventListener("click",function(){_e.actionToolbarButtonClicked(be,Ne)}),Ne){case"select":be.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":be.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":be.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":be.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":be.style.fill=this.uiStyleSettings.closeButtonColor}Fe.appendChild(be),this.buttons.push(be)},We.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new Ve("toolbar",`
width: 100%;
flex-shrink: 0;
display: flex;
flex-direction: row;
justify-content: space-between;
height: `+this.uiStyleSettings.toolbarHeight+`px;
box-sizing: content-box;
`+(this.displayMode==="inline"?"border-top-left-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
`+(this.displayMode==="inline"?"border-top-right-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
overflow: hidden;
`)),this.toolbarStyleColorsClass=this.styles.addClass(new Ve("toolbar_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
`)),this.toolbarBlockStyleClass=this.styles.addClass(new Ve("toolbar-block",`
display: inline-block;
box-sizing: content-box;
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new Ve("toolbar-overflow-block",`
position: absolute;
top: `+this.uiStyleSettings.toolbarHeight+`px;
max-width: `+2*this.uiStyleSettings.toolbarHeight+`px;
z-index: 10;
box-sizing: content-box;
`)),this.toolbarOverflowBlockStyleColorsClass=this.styles.addClass(new Ve("toolbar-overflow-block_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`));var Fe=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new Ve("toolbar_button",`
display: inline-block;
width: `+(this.uiStyleSettings.toolbarHeight-2*Fe)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*Fe)+`px;
padding: `+Fe+`px;
box-sizing: content-box;
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new Ve("toolbar_button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new Ve("toolbar_active_button",`
fill: `+this.uiStyleSettings.toolbarColor+`;
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new wt("."+this.toolbarButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`)),this.styles.addRule(new wt("."+this.toolbarButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`))},We.prototype.markerToolbarButtonClicked=function(Fe,xe){this.setActiveButton(Fe),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(Ne){return Ne("marker",xe)}),this.markerButtonOverflowBlock.style.display="none"},We.prototype.actionToolbarButtonClicked=function(Fe,xe){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(Ne){return Ne("action",xe)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},We.prototype.setActiveButton=function(Fe){this.resetButtonStyles(),Fe.className=Fe.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),Fe.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},We.prototype.setActiveMarkerButton=function(Fe){var xe=this.markerButtons.find(function(Ne){return Ne.getAttribute("data-type-name")===Fe});xe&&this.setActiveButton(xe)},We.prototype.setCurrentMarker=function(Fe){var xe=this;this.currentMarker=Fe,this.buttons.filter(function(Ne){return/delete|notes/.test(Ne.getAttribute("data-action"))}).forEach(function(Ne){xe.currentMarker===void 0?(Ne.style.fillOpacity="0.4",Ne.style.pointerEvents="none"):(Ne.style.fillOpacity="1",Ne.style.pointerEvents="all")})},We}(),Ee=function(){function We(Fe,xe,Ne,_e){this.panels=[],this.panelButtons=[],this.markerjsContainer=Fe,this.displayMode=xe,this.uiStyleSettings=Ne,this.styles=_e,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return We.prototype.addStyles=function(){var Fe;this.toolboxStyleClass=this.styles.addClass(new Ve("toolbox",`
width: 100%;
flex-shrink: 0;
display: flex;
flex-direction: column;
font-family: sans-serif;
`+(this.displayMode==="popup"?"height:"+2.5*this.uiStyleSettings.toolbarHeight+"px;":"")+`
box-sizing: content-box;
`+(this.displayMode==="popup"?"background-color: "+this.uiStyleSettings.canvasBackgroundColor+";":"")+`
`+(this.displayMode==="inline"?"border-bottom-left-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
`+(this.displayMode==="inline"?"border-bottom-right-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
overflow: hidden;
`)),this.toolboxStyleColorsClass=this.styles.addClass(new Ve("toolbox_colors",`
color: `+this.uiStyleSettings.toolboxColor+`;
`));var xe=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new Ve("toolbox-button-row",`
display: flex;
cursor: default;
box-sizing: content-box;
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new Ve("toolbox-button-row_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new Ve("toolbox-panel-row",`
display: flex;
`+(this.displayMode==="inline"?"position: absolute;":"")+`
`+(this.displayMode==="inline"?"bottom: "+this.uiStyleSettings.toolbarHeight+"px;":"")+`
cursor: default;
height: `+1.5*this.uiStyleSettings.toolbarHeight+`px;
`+(this.displayMode==="inline"?"width: 100%;":"")+`
box-sizing: content-box;
`)),this.toolboxPanelRowStyleColorsClass=this.styles.addClass(new Ve("toolbox-panel-row_colors",`
background-color: `+((Fe=this.uiStyleSettings.toolboxBackgroundColor)!==null&&Fe!==void 0?Fe:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
`)),this.toolboxButtonStyleClass=this.styles.addClass(new Ve("toolbox_button",`
display: inline-block;
width: `+(this.uiStyleSettings.toolbarHeight-2*xe)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*xe)+`px;
padding: `+xe+`px;
box-sizing: content-box;
`)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new Ve("toolbox-button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new Ve("toolbox-active-button_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.styles.addRule(new wt("."+this.toolboxButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new wt("."+this.toolboxButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`))},We.prototype.show=function(Fe){var xe;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=Fe,this.uiContainer.className=this.toolboxStyleClass.name+" "+((xe=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&xe!==void 0?xe:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},We.prototype.setPanelButtons=function(Fe){var xe,Ne,_e=this;this.panels=Fe,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((xe=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&xe!==void 0?xe:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((Ne=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&Ne!==void 0?Ne:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(be){var tt;be.uiStyleSettings=_e.uiStyleSettings;var Xt=document.createElement("div");Xt.className=_e.toolboxButtonStyleClass.name+" "+((tt=_e.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&tt!==void 0?tt:_e.toolboxButtonStyleColorsClass.name),Xt.innerHTML=be.icon,Xt.title=be.title,Xt.addEventListener("click",function(){_e.panelButtonClick(be)}),_e.panelButtons.push(Xt),_e.buttonRow.appendChild(Xt)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},We.prototype.panelButtonClick=function(Fe){var xe=this,Ne=-1;if(Fe!==this.activePanel){Ne=this.panels.indexOf(Fe),this.panelRow.innerHTML="";var _e=Fe.getUi();_e.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(_e),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=Fe}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){xe.displayMode==="inline"?xe.panelRow.style.display="none":xe.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(be,tt){var Xt,Bt;be.className=xe.toolboxButtonStyleClass.name+" "+(tt===Ne?""+((Xt=xe.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&Xt!==void 0?Xt:xe.toolboxActiveButtonStyleColorsClass.name):""+((Bt=xe.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Bt!==void 0?Bt:xe.toolboxButtonStyleColorsClass.name))})},We}(),te=function(We,Fe){this.title=We,this.icon=Fe},ne=function(We){function Fe(xe,Ne,_e,be){var tt=We.call(this,xe,be||'<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 tt.colors=[],tt.addTransparent=!1,tt.colorBoxes=[],tt.colors=Ne,tt.currentColor=_e,tt.setCurrentColor=tt.setCurrentColor.bind(tt),tt.getColorBox=tt.getColorBox.bind(tt),tt}return Ye(Fe,We),Fe.prototype.getUi=function(){var xe=this,Ne=document.createElement("div");return Ne.style.overflow="hidden",Ne.style.whiteSpace="nowrap",this.colors.forEach(function(_e){var be=xe.getColorBox(_e);Ne.appendChild(be),xe.colorBoxes.push(be)}),Ne},Fe.prototype.getColorBox=function(xe){var Ne=this,_e=this.uiStyleSettings.toolbarHeight/4,be=this.uiStyleSettings.toolbarHeight-_e,tt=document.createElement("div");tt.style.display="inline-block",tt.style.boxSizing="content-box",tt.style.width=be-2+"px",tt.style.height=be-2+"px",tt.style.padding="1px",tt.style.marginRight="2px",tt.style.marginBottom="2px",tt.style.borderWidth="2px",tt.style.borderStyle="solid",tt.style.borderRadius=(be+2)/2+"px",tt.style.borderColor=xe===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",tt.addEventListener("click",function(){Ne.setCurrentColor(xe,tt)});var Xt=document.createElement("div");return Xt.style.display="inline-block",Xt.style.width=be-2+"px",Xt.style.height=be-2+"px",Xt.style.backgroundColor=xe,Xt.style.borderRadius=be/2+"px",xe==="transparent"&&(Xt.style.fill=this.uiStyleSettings.toolboxAccentColor,Xt.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>`),tt.appendChild(Xt),tt},Fe.prototype.setCurrentColor=function(xe,Ne){var _e=this;this.currentColor=xe,this.colorBoxes.forEach(function(be){be.style.borderColor=be===Ne?_e.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(xe)},Fe}(te),ue=function(){function We(Fe,xe,Ne){this._state="new",this._isSelected=!1,this._container=Fe,this._overlayContainer=xe,this.globalSettings=Ne,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(We.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),We.prototype.ownsTarget=function(Fe){return!1},Object.defineProperty(We.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),We.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},We.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},We.prototype.pointerDown=function(Fe,xe){},We.prototype.dblClick=function(Fe,xe){},We.prototype.manipulate=function(Fe){},We.prototype.pointerUp=function(Fe){this.stateChanged()},We.prototype.dispose=function(){},We.prototype.addMarkerVisualToContainer=function(Fe){this.container.childNodes.length>0?this.container.insertBefore(Fe,this.container.childNodes[0]):this.container.appendChild(Fe)},We.prototype.getState=function(){return{typeName:We.typeName,state:this.state,notes:this.notes}},We.prototype.restoreState=function(Fe){this._state=Fe.state,this.notes=Fe.notes},We.prototype.scale=function(Fe,xe){},We.prototype.colorChanged=function(Fe){this.onColorChanged&&this.onColorChanged(Fe),this.stateChanged()},We.prototype.fillColorChanged=function(Fe){this.onFillColorChanged&&this.onFillColorChanged(Fe),this.stateChanged()},We.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var Fe=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),Fe.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(Fe)&&this.onStateChanged(this)}},We.typeName="MarkerBase",We}(),se=function(){function We(){this.findGripByVisual=this.findGripByVisual.bind(this)}return We.prototype.findGripByVisual=function(Fe){return this.topLeft.ownsTarget(Fe)?this.topLeft:this.topCenter.ownsTarget(Fe)?this.topCenter:this.topRight.ownsTarget(Fe)?this.topRight:this.centerLeft.ownsTarget(Fe)?this.centerLeft:this.centerRight.ownsTarget(Fe)?this.centerRight:this.bottomLeft.ownsTarget(Fe)?this.bottomLeft:this.bottomCenter.ownsTarget(Fe)?this.bottomCenter:this.bottomRight.ownsTarget(Fe)?this.bottomRight:void 0},We}(),de=function(){function We(){this.GRIP_SIZE=10,this.visual=Ze.createGroup(),this.visual.appendChild(Ze.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(Ze.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return We.prototype.ownsTarget=function(Fe){return Fe===this.visual||Fe===this.visual.childNodes[0]||Fe===this.visual.childNodes[1]},We}(),pe=function(){function We(){}return We.toITransformMatrix=function(Fe){return{a:Fe.a,b:Fe.b,c:Fe.c,d:Fe.d,e:Fe.e,f:Fe.f}},We.toSVGMatrix=function(Fe,xe){return Fe.a=xe.a,Fe.b=xe.b,Fe.c=xe.c,Fe.d=xe.d,Fe.e=xe.e,Fe.f=xe.f,Fe},We}(),ye=function(We){function Fe(xe,Ne,_e){var be=We.call(this,xe,Ne,_e)||this;return be.left=0,be.top=0,be.width=0,be.height=0,be.defaultSize={x:50,y:20},be.offsetX=0,be.offsetY=0,be.rotationAngle=0,be.CB_DISTANCE=10,be._suppressMarkerCreateEvent=!1,be.container.transform.baseVal.appendItem(Ze.createTransform()),be.setupControlBox(),be}return Ye(Fe,We),Object.defineProperty(Fe.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(Fe.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(Fe.prototype,"visual",{get:function(){return this._visual},set:function(xe){this._visual=xe;var Ne=Ze.createTransform();this._visual.transform.baseVal.appendItem(Ne)},enumerable:!1,configurable:!0}),Fe.prototype.ownsTarget=function(xe){return!!We.prototype.ownsTarget.call(this,xe)||!!(this.controlGrips.findGripByVisual(xe)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(xe))},Fe.prototype.pointerDown=function(xe,Ne){We.prototype.pointerDown.call(this,xe,Ne),this.state==="new"&&(this.left=xe.x,this.top=xe.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var _e=this.unrotatePoint(xe);if(this.manipulationStartX=_e.x,this.manipulationStartY=_e.y,this.offsetX=_e.x-this.left,this.offsetY=_e.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(Ne),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(Ne)){this.activeGrip=this.rotatorGrip;var be=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=be.x-this.width/2,this.top=be.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var tt=this.container.transform.baseVal.getItem(0);tt.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(tt,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},Fe.prototype.pointerUp=function(xe){var Ne=this.state;We.prototype.pointerUp.call(this,xe),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(xe),this._state="select",Ne==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},Fe.prototype.moveVisual=function(xe){this.visual.style.transform="translate("+xe.x+"px, "+xe.y+"px)"},Fe.prototype.manipulate=function(xe){var Ne=this.unrotatePoint(xe);this.state==="creating"?this.resize(xe):this.state==="move"?(this.left=this.manipulationStartLeft+(Ne.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(Ne.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(Ne):this.state==="rotate"&&this.rotate(xe)},Fe.prototype.resize=function(xe){var Ne=this.manipulationStartLeft,_e=this.manipulationStartWidth,be=this.manipulationStartTop,tt=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:Ne=this.manipulationStartLeft+xe.x-this.manipulationStartX,_e=this.manipulationStartWidth+this.manipulationStartLeft-Ne;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:_e=this.manipulationStartWidth+xe.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:be=this.manipulationStartTop+xe.y-this.manipulationStartY,tt=this.manipulationStartHeight+this.manipulationStartTop-be;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:tt=this.manipulationStartHeight+xe.y-this.manipulationStartY}_e>=0?(this.left=Ne,this.width=_e):(this.left=Ne+_e,this.width=-_e),tt>=0?(this.top=be,this.height=tt):(this.top=be+tt,this.height=-tt),this.setSize()},Fe.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},Fe.prototype.rotate=function(xe){if(Math.abs(xe.x-this.centerX)>.1){var Ne=Math.sign(xe.x-this.centerX);this.rotationAngle=180*Math.atan((xe.y-this.centerY)/(xe.x-this.centerX))/Math.PI+90*Ne,this.applyRotation()}},Fe.prototype.applyRotation=function(){var xe=this.container.transform.baseVal.getItem(0);xe.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(xe,0)},Fe.prototype.rotatePoint=function(xe){if(this.rotationAngle===0)return xe;var Ne=this.container.getCTM(),_e=Ze.createPoint(xe.x,xe.y);return{x:(_e=_e.matrixTransform(Ne)).x,y:_e.y}},Fe.prototype.unrotatePoint=function(xe){if(this.rotationAngle===0)return xe;var Ne=this.container.getCTM();Ne=Ne.inverse();var _e=Ze.createPoint(xe.x,xe.y);return{x:(_e=_e.matrixTransform(Ne)).x,y:_e.y}},Fe.prototype.select=function(){We.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},Fe.prototype.deselect=function(){We.prototype.deselect.call(this),this.controlBox.style.display="none"},Fe.prototype.setupControlBox=function(){this.controlBox=Ze.createGroup();var xe=Ze.createTransform();xe.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(xe),this.container.appendChild(this.controlBox),this.controlRect=Ze.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=Ze.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 se,this.addControlGrips(),this.controlBox.style.display="none"},Fe.prototype.adjustControlBox=function(){var xe=this.controlBox.transform.baseVal.getItem(0);xe.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(xe,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()},Fe.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()},Fe.prototype.createGrip=function(){var xe=new de;return xe.visual.transform.baseVal.appendItem(Ze.createTransform()),this.controlBox.appendChild(xe.visual),xe},Fe.prototype.positionGrips=function(){var xe=this.controlGrips.topLeft.GRIP_SIZE,Ne=-xe/2,_e=Ne,be=(this.width+this.CB_DISTANCE)/2-xe/2,tt=(this.height+this.CB_DISTANCE)/2-xe/2,Xt=this.height+this.CB_DISTANCE-xe/2,Bt=this.width+this.CB_DISTANCE-xe/2;this.positionGrip(this.controlGrips.topLeft.visual,Ne,_e),this.positionGrip(this.controlGrips.topCenter.visual,be,_e),this.positionGrip(this.controlGrips.topRight.visual,Bt,_e),this.positionGrip(this.controlGrips.centerLeft.visual,Ne,tt),this.positionGrip(this.controlGrips.centerRight.visual,Bt,tt),this.positionGrip(this.controlGrips.bottomLeft.visual,Ne,Xt),this.positionGrip(this.controlGrips.bottomCenter.visual,be,Xt),this.positionGrip(this.controlGrips.bottomRight.visual,Bt,Xt),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,be,_e-3*this.CB_DISTANCE)},Fe.prototype.positionGrip=function(xe,Ne,_e){var be=xe.transform.baseVal.getItem(0);be.setTranslate(Ne,_e),xe.transform.baseVal.replaceItem(be,0)},Fe.prototype.hideControlBox=function(){this.controlBox.style.display="none"},Fe.prototype.showControlBox=function(){this.controlBox.style.display=""},Fe.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:pe.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:pe.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},We.prototype.getState.call(this))},Fe.prototype.restoreState=function(xe){We.prototype.restoreState.call(this,xe);var Ne=xe;this.left=Ne.left,this.top=Ne.top,this.width=Ne.width,this.height=Ne.height,this.rotationAngle=Ne.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(pe.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,Ne.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(pe.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,Ne.containerTransformMatrix))},Fe.prototype.scale=function(xe,Ne){We.prototype.scale.call(this,xe,Ne);var _e=this.rotatePoint({x:this.left,y:this.top}),be=this.unrotatePoint({x:_e.x*xe,y:_e.y*Ne});this.left=be.x,this.top=be.y,this.width=this.width*xe,this.height=this.height*Ne,this.adjustControlBox()},Fe}(ue),Ce=function(We){function Fe(xe,Ne,_e){var be=We.call(this,xe,Ne,_e)||this;return be.fillColor="transparent",be.strokeColor="transparent",be.strokeWidth=0,be.strokeDasharray="",be.opacity=1,be.setStrokeColor=be.setStrokeColor.bind(be),be.setFillColor=be.setFillColor.bind(be),be.setStrokeWidth=be.setStrokeWidth.bind(be),be.setStrokeDasharray=be.setStrokeDasharray.bind(be),be.createVisual=be.createVisual.bind(be),be}return Ye(Fe,We),Fe.prototype.ownsTarget=function(xe){return!(!We.prototype.ownsTarget.call(this,xe)&&xe!==this.visual)},Fe.prototype.createVisual=function(){this.visual=Ze.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)},Fe.prototype.pointerDown=function(xe,Ne){We.prototype.pointerDown.call(this,xe,Ne),this.state==="new"&&(this.createVisual(),this.moveVisual(xe),this._state="creating")},Fe.prototype.manipulate=function(xe){We.prototype.manipulate.call(this,xe)},Fe.prototype.resize=function(xe){We.prototype.resize.call(this,xe),this.setSize()},Fe.prototype.setSize=function(){We.prototype.setSize.call(this),Ze.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},Fe.prototype.pointerUp=function(xe){We.prototype.pointerUp.call(this,xe),this.setSize()},Fe.prototype.setStrokeColor=function(xe){this.strokeColor=xe,this.visual&&Ze.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(xe),this.stateChanged()},Fe.prototype.setFillColor=function(xe){this.fillColor=xe,this.visual&&Ze.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},Fe.prototype.setStrokeWidth=function(xe){this.strokeWidth=xe,this.visual&&Ze.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Fe.prototype.setStrokeDasharray=function(xe){this.strokeDasharray=xe,this.visual&&Ze.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Fe.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},We.prototype.getState.call(this))},Fe.prototype.restoreState=function(xe){var Ne=xe;this.fillColor=Ne.fillColor,this.strokeColor=Ne.strokeColor,this.strokeWidth=Ne.strokeWidth,this.strokeDasharray=Ne.strokeDasharray,this.opacity=Ne.opacity,this.createVisual(),We.prototype.restoreState.call(this,xe),this.setSize()},Fe.prototype.scale=function(xe,Ne){We.prototype.scale.call(this,xe,Ne),this.setSize()},Fe.title="Rectangle marker",Fe}(ye),ze=function(We){function Fe(xe,Ne,_e,be){var tt=We.call(this,xe,be||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return tt.widths=[],tt.widthBoxes=[],tt.widths=Ne,tt.currentWidth=_e,tt.setCurrentWidth=tt.setCurrentWidth.bind(tt),tt}return Ye(Fe,We),Fe.prototype.getUi=function(){var xe=this,Ne=document.createElement("div");return Ne.style.display="flex",Ne.style.overflow="hidden",Ne.style.flexGrow="2",this.widths.forEach(function(_e){var be=document.createElement("div");be.style.display="flex",be.style.flexGrow="2",be.style.alignItems="center",be.style.justifyContent="space-between",be.style.padding="5px",be.style.borderWidth="2px",be.style.borderStyle="solid",be.style.borderColor=_e===xe.currentWidth?xe.uiStyleSettings.toolboxAccentColor:"transparent",be.addEventListener("click",function(){xe.setCurrentWidth(_e,be)}),Ne.appendChild(be);var tt=document.createElement("div");tt.innerText=_e.toString(),tt.style.marginRight="5px",be.appendChild(tt);var Xt=document.createElement("div");Xt.style.minHeight="20px",Xt.style.flexGrow="2",Xt.style.display="flex",Xt.style.alignItems="center";var Bt=document.createElement("hr");Bt.style.minWidth="20px",Bt.style.border="0px",Bt.style.borderTop=_e+"px solid "+xe.uiStyleSettings.toolboxColor,Bt.style.flexGrow="2",Xt.appendChild(Bt),be.appendChild(Xt),xe.widthBoxes.push(be)}),Ne},Fe.prototype.setCurrentWidth=function(xe,Ne){var _e=this;this.currentWidth=xe,this.widthBoxes.forEach(function(be){be.style.borderColor=be===Ne?_e.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},Fe}(te),Te=function(We){function Fe(xe,Ne,_e,be){var tt=We.call(this,xe,be||'<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 tt.styles=[],tt.styleBoxes=[],tt.styles=Ne,tt.currentStyle=_e,tt.setCurrentStyle=tt.setCurrentStyle.bind(tt),tt}return Ye(Fe,We),Fe.prototype.getUi=function(){var xe=this,Ne=document.createElement("div");return Ne.style.display="flex",Ne.style.overflow="hidden",Ne.style.flexGrow="2",this.styles.forEach(function(_e){var be=document.createElement("div");be.style.display="flex",be.style.alignItems="center",be.style.justifyContent="space-between",be.style.padding="5px",be.style.borderWidth="2px",be.style.borderStyle="solid",be.style.overflow="hidden",be.style.maxWidth=100/xe.styles.length-5+"%",be.style.borderColor=_e===xe.currentStyle?xe.uiStyleSettings.toolboxAccentColor:"transparent",be.addEventListener("click",function(){xe.setCurrentStyle(_e,be)}),Ne.appendChild(be);var tt=document.createElement("div");tt.style.minHeight="20px",tt.style.flexGrow="2",tt.style.overflow="hidden";var Xt=`<svg width="100" height="20">
<line x1="0" y1="10" x2="100" y2="10" stroke="`+xe.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(_e!==""?'stroke-dasharray="'+_e+'"':"")+` />
</svg>`;tt.innerHTML=Xt,be.appendChild(tt),xe.styleBoxes.push(be)}),Ne},Fe.prototype.setCurrentStyle=function(xe,Ne){var _e=this;this.currentStyle=xe,this.styleBoxes.forEach(function(be){be.style.borderColor=be===Ne?_e.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},Fe}(te),Ie=function(We){function Fe(xe,Ne,_e){var be=We.call(this,xe,Ne,_e)||this;return be.strokeColor=_e.defaultColor,be.strokeWidth=_e.defaultStrokeWidth,be.strokeDasharray=_e.defaultStrokeDasharray,be.strokePanel=new ne("Line color",_e.defaultColorSet,_e.defaultColor),be.strokePanel.onColorChanged=be.setStrokeColor,be.strokeWidthPanel=new ze("Line width",_e.defaultStrokeWidths,_e.defaultStrokeWidth),be.strokeWidthPanel.onWidthChanged=be.setStrokeWidth,be.strokeStylePanel=new Te("Line style",_e.defaultStrokeDasharrays,_e.defaultStrokeDasharray),be.strokeStylePanel.onStyleChanged=be.setStrokeDasharray,be}return Ye(Fe,We),Object.defineProperty(Fe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Fe.prototype.getState=function(){var xe=We.prototype.getState.call(this);return xe.typeName=Fe.typeName,xe},Fe.typeName="FrameMarker",Fe.title="Frame marker",Fe.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',Fe}(Ce),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"},Re=function(We){function Fe(xe,Ne,_e){var be=We.call(this,xe,Ne,_e)||this;return be.x1=0,be.y1=0,be.x2=0,be.y2=0,be.defaultLength=50,be.manipulationStartX=0,be.manipulationStartY=0,be.manipulationStartX1=0,be.manipulationStartY1=0,be.manipulationStartX2=0,be.manipulationStartY2=0,be.setupControlBox(),be}return Ye(Fe,We),Fe.prototype.ownsTarget=function(xe){return!!We.prototype.ownsTarget.call(this,xe)||!(!this.grip1.ownsTarget(xe)&&!this.grip2.ownsTarget(xe))},Fe.prototype.pointerDown=function(xe,Ne){We.prototype.pointerDown.call(this,xe,Ne),this.manipulationStartX=xe.x,this.manipulationStartY=xe.y,this.state==="new"&&(this.x1=xe.x,this.y1=xe.y,this.x2=xe.x,this.y2=xe.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(Ne)?this.activeGrip=this.grip1:this.grip2.ownsTarget(Ne)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},Fe.prototype.pointerUp=function(xe){var Ne=this.state;We.prototype.pointerUp.call(this,xe),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(xe),this._state="select",Ne==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},Fe.prototype.adjustVisual=function(){},Fe.prototype.manipulate=function(xe){this.state==="creating"?this.resize(xe):this.state==="move"?(this.x1=this.manipulationStartX1+xe.x-this.manipulationStartX,this.y1=this.manipulationStartY1+xe.y-this.manipulationStartY,this.x2=this.manipulationStartX2+xe.x-this.manipulationStartX,this.y2=this.manipulationStartY2+xe.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(xe)},Fe.prototype.resize=function(xe){switch(this.activeGrip){case this.grip1:this.x1=xe.x,this.y1=xe.y;break;case this.grip2:case void 0:this.x2=xe.x,this.y2=xe.y}this.adjustVisual(),this.adjustControlBox()},Fe.prototype.select=function(){We.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},Fe.prototype.deselect=function(){We.prototype.deselect.call(this),this.controlBox.style.display="none"},Fe.prototype.setupControlBox=function(){this.controlBox=Ze.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},Fe.prototype.adjustControlBox=function(){this.positionGrips()},Fe.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},Fe.prototype.createGrip=function(){var xe=new de;return xe.visual.transform.baseVal.appendItem(Ze.createTransform()),this.controlBox.appendChild(xe.visual),xe},Fe.prototype.positionGrips=function(){var xe=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-xe/2,this.y1-xe/2),this.positionGrip(this.grip2.visual,this.x2-xe/2,this.y2-xe/2)},Fe.prototype.positionGrip=function(xe,Ne,_e){var be=xe.transform.baseVal.getItem(0);be.setTranslate(Ne,_e),xe.transform.baseVal.replaceItem(be,0)},Fe.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},We.prototype.getState.call(this))},Fe.prototype.restoreState=function(xe){We.prototype.restoreState.call(this,xe);var Ne=xe;this.x1=Ne.x1,this.y1=Ne.y1,this.x2=Ne.x2,this.y2=Ne.y2},Fe.prototype.scale=function(xe,Ne){We.prototype.scale.call(this,xe,Ne),this.x1=this.x1*xe,this.y1=this.y1*Ne,this.x2=this.x2*xe,this.y2=this.y2*Ne,this.adjustVisual(),this.adjustControlBox()},Fe}(ue),rt=function(We){function Fe(xe,Ne,_e){var be=We.call(this,xe,Ne,_e)||this;return be.strokeColor="transparent",be.strokeWidth=0,be.strokeDasharray="",be.setStrokeColor=be.setStrokeColor.bind(be),be.setStrokeWidth=be.setStrokeWidth.bind(be),be.setStrokeDasharray=be.setStrokeDasharray.bind(be),be.strokeColor=_e.defaultColor,be.strokeWidth=_e.defaultStrokeWidth,be.strokeDasharray=_e.defaultStrokeDasharray,be.strokePanel=new ne("Line color",_e.defaultColorSet,_e.defaultColor),be.strokePanel.onColorChanged=be.setStrokeColor,be.strokeWidthPanel=new ze("Line width",_e.defaultStrokeWidths,_e.defaultStrokeWidth),be.strokeWidthPanel.onWidthChanged=be.setStrokeWidth,be.strokeStylePanel=new Te("Line style",_e.defaultStrokeDasharrays,_e.defaultStrokeDasharray),be.strokeStylePanel.onStyleChanged=be.setStrokeDasharray,be}return Ye(Fe,We),Fe.prototype.ownsTarget=function(xe){return!(!We.prototype.ownsTarget.call(this,xe)&&xe!==this.visual&&xe!==this.selectorLine&&xe!==this.visibleLine)},Fe.prototype.createVisual=function(){this.visual=Ze.createGroup(),this.selectorLine=Ze.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=Ze.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)},Fe.prototype.pointerDown=function(xe,Ne){We.prototype.pointerDown.call(this,xe,Ne),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},Fe.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()),Ze.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),Ze.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),Ze.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},Fe.prototype.setStrokeColor=function(xe){this.strokeColor=xe,this.adjustVisual(),this.colorChanged(xe)},Fe.prototype.setStrokeWidth=function(xe){this.strokeWidth=xe,this.adjustVisual()},Fe.prototype.setStrokeDasharray=function(xe){this.strokeDasharray=xe,this.adjustVisual(),this.stateChanged()},Object.defineProperty(Fe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Fe.prototype.getState=function(){var xe=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},We.prototype.getState.call(this));return xe.typeName=Fe.typeName,xe},Fe.prototype.restoreState=function(xe){We.prototype.restoreState.call(this,xe);var Ne=xe;this.strokeColor=Ne.strokeColor,this.strokeWidth=Ne.strokeWidth,this.strokeDasharray=Ne.strokeDasharray,this.createVisual(),this.adjustVisual()},Fe.typeName="LineMarker",Fe.title="Line marker",Fe.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',Fe}(Re),ot=function(We){function Fe(xe,Ne,_e,be){var tt=We.call(this,xe,be||'<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 tt.fonts=[],tt.fontBoxes=[],tt.fonts=Ne,tt.currentFont=_e,tt.setCurrentFont=tt.setCurrentFont.bind(tt),tt}return Ye(Fe,We),Fe.prototype.getUi=function(){var xe=this,Ne=document.createElement("div");return Ne.style.overflow="hidden",Ne.style.flexGrow="2",this.fonts.forEach(function(_e){var be=document.createElement("div");be.style.display="inline-block",be.style.alignItems="center",be.style.justifyContent="space-between",be.style.padding="5px",be.style.borderWidth="2px",be.style.borderStyle="solid",be.style.overflow="hidden",be.style.maxWidth=100/xe.fonts.length-5+"%",be.style.borderColor=_e===xe.currentFont?xe.uiStyleSettings.toolboxAccentColor:"transparent",be.addEventListener("click",function(){xe.setCurrentFont(_e,be)}),Ne.appendChild(be);var tt=document.createElement("div");tt.style.display="flex",tt.style.minHeight="20px",tt.style.flexGrow="2",tt.style.fontFamily=_e,tt.style.overflow="hidden";var Xt=document.createElement("div");Xt.style.whiteSpace="nowrap",Xt.style.overflow="hidden",Xt.style.textOverflow="ellipsis",Xt.innerHTML="The quick brown fox jumps over the lazy dog",tt.appendChild(Xt),be.appendChild(tt),xe.fontBoxes.push(be)}),Ne},Fe.prototype.setCurrentFont=function(xe,Ne){var _e=this;this.currentFont=xe,this.fontBoxes.forEach(function(be){be.style.borderColor=be===Ne?_e.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},Fe}(te),Ct=function(We){function Fe(xe,Ne,_e){var be=We.call(this,xe,Ne,_e)||this;return be.color="transparent",be.padding=5,be.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",be.text=be.DEFAULT_TEXT,be.isMoved=!1,be.color=_e.defaultColor,be.fontFamily=_e.defaultFontFamily,be.defaultSize={x:100,y:30},be.setColor=be.setColor.bind(be),be.setFont=be.setFont.bind(be),be.renderText=be.renderText.bind(be),be.sizeText=be.sizeText.bind(be),be.textEditDivClicked=be.textEditDivClicked.bind(be),be.showTextEditor=be.showTextEditor.bind(be),be.setSize=be.setSize.bind(be),be.positionTextEditor=be.positionTextEditor.bind(be),be.colorPanel=new ne("Color",_e.defaultColorSet,_e.defaultColor),be.colorPanel.onColorChanged=be.setColor,be.fontFamilyPanel=new ot("Font",_e.defaultFontFamilies,_e.defaultFontFamily),be.fontFamilyPanel.onFontChanged=be.setFont,be}return Ye(Fe,We),Fe.prototype.ownsTarget=function(xe){if(We.prototype.ownsTarget.call(this,xe)||xe===this.visual||xe===this.textElement||xe===this.bgRectangle)return!0;var Ne=!1;return this.textElement.childNodes.forEach(function(_e){_e===xe&&(Ne=!0)}),Ne},Fe.prototype.createVisual=function(){this.visual=Ze.createGroup(),this.bgRectangle=Ze.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=Ze.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(Ze.createTransform()),this.textElement.transform.baseVal.appendItem(Ze.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},Fe.prototype.pointerDown=function(xe,Ne){We.prototype.pointerDown.call(this,xe,Ne),this.isMoved=!1,this.pointerDownPoint=xe,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(xe),this._state="creating")},Fe.prototype.renderText=function(){var xe=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(Ne){xe.textElement.appendChild(Ze.createTSpan(Ne.trim()===""?" ":Ne.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},Fe.prototype.getTextScale=function(){var xe=this.textElement.getBBox(),Ne=1;if(xe.width>0&&xe.height>0){var _e=(1*this.width-this.width*this.padding*2/100)/xe.width,be=(1*this.height-this.height*this.padding*2/100)/xe.height;Ne=Math.min(_e,be)}return Ne},Fe.prototype.getTextPosition=function(xe){var Ne=this.textElement.getBBox(),_e=0,be=0;return Ne.width>0&&Ne.height>0&&(_e=(this.width-Ne.width*xe)/2,be=this.height/2-Ne.height*xe/2),{x:_e,y:be}},Fe.prototype.sizeText=function(){var xe=this.textElement.getBBox(),Ne=this.getTextScale(),_e=this.getTextPosition(Ne);_e.y-=xe.y*Ne,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+_e.x+"px, "+_e.y+"px) scale("+Ne+", "+Ne+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(_e.x,_e.y),this.textElement.transform.baseVal.getItem(1).setScale(Ne,Ne))},Fe.prototype.manipulate=function(xe){We.prototype.manipulate.call(this,xe),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(xe.x-this.pointerDownPoint.x)>5||Math.abs(xe.y-this.pointerDownPoint.y)>5)},Fe.prototype.resize=function(xe){We.prototype.resize.call(this,xe),this.isMoved=!0,this.setSize(),this.sizeText()},Fe.prototype.setSize=function(){We.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(Ze.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Ze.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},Fe.prototype.pointerUp=function(xe){var Ne=this.state;Ne==="creating"&&(this._suppressMarkerCreateEvent=!0),We.prototype.pointerUp.call(this,xe),this.setSize(),(Ne==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},Fe.prototype.showTextEditor=function(){var xe=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(Ne){Ne.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var Ne=Number.parseFloat(xe.textEditor.style.fontSize);xe.textEditor.clientWidth>=Number.parseInt(xe.textEditor.style.maxWidth)&&Ne>.9;)Ne-=.1,xe.textEditor.style.fontSize=Math.max(Ne,.9)+"em"}),this.textEditor.addEventListener("keyup",function(Ne){Ne.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(Ne){if(Ne.clipboardData){var _e=Ne.clipboardData.getData("text"),be=window.getSelection();if(!be.rangeCount)return!1;be.deleteFromDocument(),be.getRangeAt(0).insertNode(document.createTextNode(_e)),Ne.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){xe.textEditDivClicked(xe.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},Fe.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var xe=this.getTextScale(),Ne=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),_e=this.textElement.getBBox(),be={x:_e.width*xe,y:_e.height*xe};Ne.x-=be.x/2,Ne.y-=be.y/2,this.textEditor.style.top=Ne.y+"px",this.textEditor.style.left=Ne.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-Ne.x+"px",this.textEditor.style.fontSize=Math.max(16*xe,12)+"px",this.textElement.style.display="none"}},Fe.prototype.textEditDivClicked=function(xe){this.text=xe.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},Fe.prototype.select=function(){We.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},Fe.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),We.prototype.deselect.call(this)},Fe.prototype.dblClick=function(xe,Ne){We.prototype.dblClick.call(this,xe,Ne),this.showTextEditor()},Fe.prototype.setColor=function(xe){this.textElement&&Ze.setAttributes(this.textElement,[["fill",xe]]),this.color=xe,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(xe)},Fe.prototype.setFont=function(xe){this.textElement&&Ze.setAttributes(this.textElement,[["font-family",xe]]),this.fontFamily=xe,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},Fe.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},Fe.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(Fe.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),Fe.prototype.getState=function(){var xe=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},We.prototype.getState.call(this));return xe.typeName=Fe.typeName,xe},Fe.prototype.restoreState=function(xe){var Ne=xe;this.color=Ne.color,this.fontFamily=Ne.fontFamily,this.padding=Ne.padding,this.text=Ne.text,this.createVisual(),We.prototype.restoreState.call(this,xe),this.setSize()},Fe.prototype.scale=function(xe,Ne){We.prototype.scale.call(this,xe,Ne),this.setSize(),this.sizeText(),this.positionTextEditor()},Fe.typeName="TextMarker",Fe.title="Text marker",Fe.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>',Fe}(ye),gt=function(We){function Fe(xe,Ne,_e){var be=We.call(this,xe,Ne,_e)||this;return be.color="transparent",be.lineWidth=3,be.drawing=!1,be.pixelRatio=1,be.color=_e.defaultColor,be.lineWidth=_e.defaultStrokeWidth,be.pixelRatio=_e.freehandPixelRatio,be.setColor=be.setColor.bind(be),be.addCanvas=be.addCanvas.bind(be),be.finishCreation=be.finishCreation.bind(be),be.setLineWidth=be.setLineWidth.bind(be),be.colorPanel=new ne("Color",_e.defaultColorSet,_e.defaultColor),be.colorPanel.onColorChanged=be.setColor,be.lineWidthPanel=new ze("Line width",_e.defaultStrokeWidths,_e.defaultStrokeWidth),be.lineWidthPanel.onWidthChanged=be.setLineWidth,be}return Ye(Fe,We),Fe.prototype.ownsTarget=function(xe){return!(!We.prototype.ownsTarget.call(this,xe)&&xe!==this.visual&&xe!==this.drawingImage)},Fe.prototype.createVisual=function(){this.visual=Ze.createGroup(),this.drawingImage=Ze.createImage(),this.visual.appendChild(this.drawingImage);var xe=Ze.createTransform();this.visual.transform.baseVal.appendItem(xe),this.addMarkerVisualToContainer(this.visual)},Fe.prototype.pointerDown=function(xe,Ne){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(xe.x,xe.y),this.drawing=!0):We.prototype.pointerDown.call(this,xe,Ne)},Fe.prototype.manipulate=function(xe){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(xe.x,xe.y),this.canvasContext.stroke()):We.prototype.manipulate.call(this,xe)},Fe.prototype.resize=function(xe){We.prototype.resize.call(this,xe),Ze.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Ze.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},Fe.prototype.pointerUp=function(xe){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):We.prototype.pointerUp.call(this,xe)},Fe.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)},Fe.prototype.select=function(){this.state==="creating"&&this.finishCreation(),We.prototype.select.call(this)},Fe.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),We.prototype.deselect.call(this)},Fe.prototype.finishCreation=function(){for(var xe=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),Ne=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],_e=Ne[0],be=Ne[1],tt=Ne[2],Xt=Ne[3],Bt=!1,nn=0;nn<this.canvasElement.height;nn++)for(var Tt=0;Tt<this.canvasElement.width;Tt++)xe.data[nn*this.canvasElement.width*4+4*Tt+3]>0&&(Bt=!0,nn<be&&(be=nn),Tt<_e&&(_e=Tt),nn>Xt&&(Xt=nn),Tt>tt&&(tt=Tt));if(Bt){this.left=_e/this.pixelRatio,this.top=be/this.pixelRatio,this.width=(tt-_e)/this.pixelRatio,this.height=(Xt-be)/this.pixelRatio;var bt=document.createElement("canvas");bt.width=tt-_e,bt.height=Xt-be,bt.getContext("2d").putImageData(this.canvasContext.getImageData(_e,be,tt-_e,Xt-be),0,0),this.drawingImgUrl=bt.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},Fe.prototype.setDrawingImage=function(){Ze.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),Ze.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},Fe.prototype.setColor=function(xe){this.color=xe,this.colorChanged(xe)},Fe.prototype.setLineWidth=function(xe){this.lineWidth=xe},Object.defineProperty(Fe.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),Fe.prototype.getState=function(){var xe=Object.assign({drawingImgUrl:this.drawingImgUrl},We.prototype.getState.call(this));return xe.typeName=Fe.typeName,xe},Fe.prototype.restoreState=function(xe){this.createVisual(),We.prototype.restoreState.call(this,xe),this.drawingImgUrl=xe.drawingImgUrl,this.setDrawingImage()},Fe.prototype.scale=function(xe,Ne){We.prototype.scale.call(this,xe,Ne),this.setDrawingImage()},Fe.typeName="FreehandMarker",Fe.title="Freehand marker",Fe.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>',Fe}(ye),kt=function(We){function Fe(xe,Ne,_e){var be=We.call(this,xe,_e||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return be.typeBoxes=[],be.currentType=Ne,be.setCurrentType=be.setCurrentType.bind(be),be}return Ye(Fe,We),Fe.prototype.getUi=function(){var xe=this,Ne=document.createElement("div");Ne.style.display="flex",Ne.style.overflow="hidden",Ne.style.flexGrow="2";for(var _e=function(Xt){var Bt="both";switch(Xt){case 0:Bt="both";break;case 1:Bt="start";break;case 2:Bt="end";break;case 3:Bt="none"}var nn=document.createElement("div");if(nn.style.display="flex",nn.style.flexGrow="2",nn.style.alignItems="center",nn.style.justifyContent="space-between",nn.style.padding="5px",nn.style.borderWidth="2px",nn.style.borderStyle="solid",nn.style.borderColor=Bt===be.currentType?be.uiStyleSettings.toolboxAccentColor:"transparent",nn.addEventListener("click",function(){xe.setCurrentType(Bt,nn)}),Ne.appendChild(nn),Bt==="both"||Bt==="start"){var Tt=document.createElement("div");Tt.style.display="flex",Tt.style.alignItems="center",Tt.style.minHeight="20px",Tt.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="`+(be.uiStyleSettings!==void 0?be.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,Tt.style.marginLeft="5px",nn.appendChild(Tt)}var bt=document.createElement("div");bt.style.display="flex",bt.style.alignItems="center",bt.style.minHeight="20px",bt.style.flexGrow="2";var zt=document.createElement("hr");if(zt.style.minWidth="20px",zt.style.border="0px",zt.style.borderTop="3px solid "+(be.uiStyleSettings!==void 0?be.uiStyleSettings.toolboxColor:"#eeeeee"),zt.style.flexGrow="2",bt.appendChild(zt),nn.appendChild(bt),Bt==="both"||Bt==="end"){var qt=document.createElement("div");qt.style.display="flex",qt.style.alignItems="center",qt.style.minHeight="20px",qt.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="`+(be.uiStyleSettings!==void 0?be.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,qt.style.marginRight="5px",nn.appendChild(qt)}be.typeBoxes.push(nn)},be=this,tt=0;tt<4;tt++)_e(tt);return Ne},Fe.prototype.setCurrentType=function(xe,Ne){var _e=this;this.currentType=xe,this.typeBoxes.forEach(function(be){be.style.borderColor=be===Ne?_e.uiStyleSettings!==void 0?_e.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},Fe}(te),Lt=function(We){function Fe(xe,Ne,_e){var be=We.call(this,xe,Ne,_e)||this;return be.arrowType="end",be.arrowBaseHeight=10,be.arrowBaseWidth=10,be.getArrowPoints=be.getArrowPoints.bind(be),be.setArrowType=be.setArrowType.bind(be),be.arrowTypePanel=new kt("Arrow type","end"),be.arrowTypePanel.onArrowTypeChanged=be.setArrowType,be}return Ye(Fe,We),Fe.prototype.ownsTarget=function(xe){return!(!We.prototype.ownsTarget.call(this,xe)&&xe!==this.arrow1&&xe!==this.arrow2)},Fe.prototype.getArrowPoints=function(xe,Ne){var _e=this.arrowBaseWidth+2*this.strokeWidth,be=this.arrowBaseHeight+2*this.strokeWidth;return xe-_e/2+","+(Ne+be/2)+" "+xe+","+(Ne-be/2)+" "+(xe+_e/2)+","+(Ne+be/2)},Fe.prototype.createTips=function(){this.arrow1=Ze.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(Ze.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=Ze.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(Ze.createTransform()),this.visual.appendChild(this.arrow2)},Fe.prototype.pointerDown=function(xe,Ne){We.prototype.pointerDown.call(this,xe,Ne),this.state==="creating"&&this.createTips()},Fe.prototype.adjustVisual=function(){if(We.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",Ze.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),Ze.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var xe=0;Math.abs(this.x1-this.x2)>.1&&(xe=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var Ne=this.arrow1.transform.baseVal.getItem(0);Ne.setRotate(xe,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(Ne,0);var _e=this.arrow2.transform.baseVal.getItem(0);_e.setRotate(xe+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(_e,0)}},Fe.prototype.setArrowType=function(xe){this.arrowType=xe,this.adjustVisual(),this.stateChanged()},Object.defineProperty(Fe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),Fe.prototype.getState=function(){var xe=Object.assign({arrowType:this.arrowType},We.prototype.getState.call(this));return xe.typeName=Fe.typeName,xe},Fe.prototype.restoreState=function(xe){We.prototype.restoreState.call(this,xe);var Ne=xe;this.arrowType=Ne.arrowType,this.createTips(),this.adjustVisual()},Fe.typeName="ArrowMarker",Fe.title="Arrow marker",Fe.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',Fe}(rt),Ot=function(We){function Fe(xe,Ne,_e){var be=We.call(this,xe,Ne,_e)||this;return be.fillColor=_e.defaultFillColor,be.strokeWidth=0,be.fillPanel=new ne("Color",_e.defaultColorSet,_e.defaultFillColor),be.fillPanel.onColorChanged=be.setFillColor,be}return Ye(Fe,We),Object.defineProperty(Fe.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),Fe.prototype.getState=function(){var xe=We.prototype.getState.call(this);return xe.typeName=Fe.typeName,xe},Fe.typeName="CoverMarker",Fe.title="Cover marker",Fe.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',Fe}(Ce),Nt=function(We){function Fe(xe,Ne,_e,be){var tt=We.call(this,xe,be||'<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 tt.opacities=[],tt.opacityBoxes=[],tt.opacities=Ne,tt.currentOpacity=_e,tt.setCurrentOpacity=tt.setCurrentOpacity.bind(tt),tt}return Ye(Fe,We),Fe.prototype.getUi=function(){var xe=this,Ne=document.createElement("div");return Ne.style.display="flex",Ne.style.overflow="hidden",Ne.style.flexGrow="2",Ne.style.justifyContent="space-between",this.opacities.forEach(function(_e){var be=document.createElement("div");be.style.display="flex",be.style.alignItems="center",be.style.justifyContent="center",be.style.padding="5px",be.style.borderWidth="2px",be.style.borderStyle="solid",be.style.borderColor=_e===xe.currentOpacity?xe.uiStyleSettings.toolboxAccentColor:"transparent",be.addEventListener("click",function(){xe.setCurrentOpacity(_e,be)}),Ne.appendChild(be);var tt=document.createElement("div");tt.innerText=100*_e+"%",be.appendChild(tt),xe.opacityBoxes.push(be)}),Ne},Fe.prototype.setCurrentOpacity=function(xe,Ne){var _e=this;this.currentOpacity=xe,this.opacityBoxes.forEach(function(be){be.style.borderColor=be===Ne?_e.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},Fe}(te),tn=function(We){function Fe(xe,Ne,_e){var be=We.call(this,xe,Ne,_e)||this;return be.setOpacity=be.setOpacity.bind(be),be.fillColor=_e.defaultHighlightColor,be.strokeWidth=0,be.opacity=_e.defaultHighlightOpacity,be.fillPanel=new ne("Color",_e.defaultColorSet,be.fillColor),be.fillPanel.onColorChanged=be.setFillColor,be.opacityPanel=new Nt("Opacity",_e.defaultOpacitySteps,be.opacity),be.opacityPanel.onOpacityChanged=be.setOpacity,be}return Ye(Fe,We),Fe.prototype.setOpacity=function(xe){this.opacity=xe,this.visual&&Ze.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(Fe.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),Fe.prototype.getState=function(){var xe=We.prototype.getState.call(this);return xe.typeName=Fe.typeName,xe},Fe.typeName="HighlightMarker",Fe.title="Highlight marker",Fe.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>',Fe}(Ot),st='<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>',He='<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>',Rt=function(We){function Fe(xe,Ne,_e){var be=We.call(this,xe,Ne,_e)||this;return be.bgColor="transparent",be.tipPosition={x:0,y:0},be.tipBase1Position={x:0,y:0},be.tipBase2Position={x:0,y:0},be.tipMoving=!1,be.color=_e.defaultStrokeColor,be.bgColor=_e.defaultFillColor,be.fontFamily=_e.defaultFontFamily,be.defaultSize={x:100,y:30},be.setBgColor=be.setBgColor.bind(be),be.getTipPoints=be.getTipPoints.bind(be),be.positionTip=be.positionTip.bind(be),be.setTipPoints=be.setTipPoints.bind(be),be.colorPanel=new ne("Text color",_e.defaultColorSet,be.color,st),be.colorPanel.onColorChanged=be.setColor,be.bgColorPanel=new ne("Fill color",_e.defaultColorSet,be.bgColor,He),be.bgColorPanel.onColorChanged=be.setBgColor,be.fontFamilyPanel=new ot("Font",_e.defaultFontFamilies,_e.defaultFontFamily),be.fontFamilyPanel.onFontChanged=be.setFont,be.tipGrip=new de,be.tipGrip.visual.transform.baseVal.appendItem(Ze.createTransform()),be.controlBox.appendChild(be.tipGrip.visual),be}return Ye(Fe,We),Fe.prototype.ownsTarget=function(xe){return We.prototype.ownsTarget.call(this,xe)||this.tipGrip.ownsTarget(xe)||this.tip===xe},Fe.prototype.createTip=function(){Ze.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=Ze.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},Fe.prototype.pointerDown=function(xe,Ne){this.state==="new"&&We.prototype.pointerDown.call(this,xe,Ne),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(Ne)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):We.prototype.pointerDown.call(this,xe,Ne)},Fe.prototype.pointerUp=function(xe){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,We.prototype.pointerUp.call(this,xe);else{var Ne=this.state==="creating";We.prototype.pointerUp.call(this,xe),this.setTipPoints(Ne),this.positionTip()}},Fe.prototype.manipulate=function(xe){if(this.tipMoving){var Ne=this.unrotatePoint(xe);this.tipPosition={x:Ne.x-this.manipulationStartLeft,y:Ne.y-this.manipulationStartTop},this.positionTip()}else We.prototype.manipulate.call(this,xe)},Fe.prototype.setBgColor=function(xe){this.bgRectangle&&this.tip&&(Ze.setAttributes(this.bgRectangle,[["fill",xe]]),Ze.setAttributes(this.tip,[["fill",xe]])),this.bgColor=xe,this.fillColorChanged(xe)},Fe.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},Fe.prototype.setTipPoints=function(xe){xe===void 0&&(xe=!1);var Ne=Math.min(this.height/2,15),_e=this.height/5;xe&&(this.tipPosition={x:Ne+_e/2,y:this.height+20});var be=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?be<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(_e=this.width/5,Ne=Math.min(this.width/2,15),this.tipBase1Position={x:Ne,y:0},this.tipBase2Position={x:Ne+_e,y:0}):(this.tipBase1Position={x:0,y:Ne},this.tipBase2Position={x:0,y:Ne+_e}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?be<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(_e=this.width/5,Ne=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-Ne-_e,y:0},this.tipBase2Position={x:this.width-Ne,y:0}):(this.tipBase1Position={x:this.width,y:Ne},this.tipBase2Position={x:this.width,y:Ne+_e}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?be<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(_e=this.width/5,Ne=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-Ne-_e,y:this.height},this.tipBase2Position={x:this.width-Ne,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-Ne-_e},this.tipBase2Position={x:this.width,y:this.height-Ne}):be<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(_e=this.width/5,Ne=Math.min(this.width/2,15),this.tipBase1Position={x:Ne,y:this.height},this.tipBase2Position={x:Ne+_e,y:this.height}):(this.tipBase1Position={x:0,y:this.height-Ne},this.tipBase2Position={x:0,y:this.height-Ne-_e})},Fe.prototype.resize=function(xe){We.prototype.resize.call(this,xe),this.positionTip()},Fe.prototype.positionTip=function(){Ze.setAttributes(this.tip,[["points",this.getTipPoints()]]);var xe=this.tipGrip.visual.transform.baseVal.getItem(0);xe.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(xe,0)},Object.defineProperty(Fe.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),Fe.prototype.select=function(){this.positionTip(),We.prototype.select.call(this)},Fe.prototype.getState=function(){var xe=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},We.prototype.getState.call(this));return xe.typeName=Fe.typeName,xe},Fe.prototype.restoreState=function(xe){var Ne=xe;this.bgColor=Ne.bgColor,this.tipPosition=Ne.tipPosition,We.prototype.restoreState.call(this,xe),this.createTip(),this.setTipPoints()},Fe.prototype.scale=function(xe,Ne){We.prototype.scale.call(this,xe,Ne),this.tipPosition={x:this.tipPosition.x*xe,y:this.tipPosition.y*Ne},this.positionTip()},Fe.typeName="CalloutMarker",Fe.title="Callout marker",Fe.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>',Fe}(Ct),Zt=function(We){function Fe(xe,Ne,_e){var be=We.call(this,xe,Ne,_e)||this;return be.fillColor="transparent",be.strokeColor="transparent",be.strokeWidth=0,be.strokeDasharray="",be.opacity=1,be.strokeColor=_e.defaultColor,be.strokeWidth=_e.defaultStrokeWidth,be.strokeDasharray=_e.defaultStrokeDasharray,be.fillColor=_e.defaultFillColor,be.setStrokeColor=be.setStrokeColor.bind(be),be.setFillColor=be.setFillColor.bind(be),be.setStrokeWidth=be.setStrokeWidth.bind(be),be.setStrokeDasharray=be.setStrokeDasharray.bind(be),be.setOpacity=be.setOpacity.bind(be),be.createVisual=be.createVisual.bind(be),be.strokePanel=new ne("Line color",at(_e.defaultColorSet,["transparent"]),_e.defaultColor),be.strokePanel.onColorChanged=be.setStrokeColor,be.fillPanel=new ne("Fill color",at(_e.defaultColorSet,["transparent"]),be.fillColor,He),be.fillPanel.onColorChanged=be.setFillColor,be.strokeWidthPanel=new ze("Line width",_e.defaultStrokeWidths,_e.defaultStrokeWidth),be.strokeWidthPanel.onWidthChanged=be.setStrokeWidth,be.strokeStylePanel=new Te("Line style",_e.defaultStrokeDasharrays,_e.defaultStrokeDasharray),be.strokeStylePanel.onStyleChanged=be.setStrokeDasharray,be.opacityPanel=new Nt("Opacity",_e.defaultOpacitySteps,be.opacity),be.opacityPanel.onOpacityChanged=be.setOpacity,be}return Ye(Fe,We),Fe.prototype.ownsTarget=function(xe){return!(!We.prototype.ownsTarget.call(this,xe)&&xe!==this.visual)},Fe.prototype.createVisual=function(){this.visual=Ze.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)},Fe.prototype.pointerDown=function(xe,Ne){We.prototype.pointerDown.call(this,xe,Ne),this.state==="new"&&(this.createVisual(),this.moveVisual(xe),this._state="creating")},Fe.prototype.manipulate=function(xe){We.prototype.manipulate.call(this,xe)},Fe.prototype.resize=function(xe){We.prototype.resize.call(this,xe),this.setSize()},Fe.prototype.setSize=function(){We.prototype.setSize.call(this),Ze.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},Fe.prototype.pointerUp=function(xe){We.prototype.pointerUp.call(this,xe),this.setSize()},Fe.prototype.setStrokeColor=function(xe){this.strokeColor=xe,this.visual&&Ze.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(xe),this.stateChanged()},Fe.prototype.setFillColor=function(xe){this.fillColor=xe,this.visual&&Ze.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(xe),this.stateChanged()},Fe.prototype.setStrokeWidth=function(xe){this.strokeWidth=xe,this.visual&&Ze.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Fe.prototype.setStrokeDasharray=function(xe){this.strokeDasharray=xe,this.visual&&Ze.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Fe.prototype.setOpacity=function(xe){this.opacity=xe,this.visual&&Ze.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(Fe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),Fe.prototype.getState=function(){var xe=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},We.prototype.getState.call(this));return xe.typeName=Fe.typeName,xe},Fe.prototype.restoreState=function(xe){var Ne=xe;this.fillColor=Ne.fillColor,this.strokeColor=Ne.strokeColor,this.strokeWidth=Ne.strokeWidth,this.strokeDasharray=Ne.strokeDasharray,this.opacity=Ne.opacity,this.createVisual(),We.prototype.restoreState.call(this,xe),this.setSize()},Fe.prototype.scale=function(xe,Ne){We.prototype.scale.call(this,xe,Ne),this.setSize()},Fe.typeName="EllipseMarker",Fe.title="Ellipse marker",Fe.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>',Fe}(ye),_t=function(We){function Fe(xe,Ne,_e){return We.call(this,xe,Ne,_e)||this}return Ye(Fe,We),Object.defineProperty(Fe.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),Fe.prototype.ownsTarget=function(xe){return!(!We.prototype.ownsTarget.call(this,xe)&&xe!==this.tip1&&xe!==this.tip2)},Fe.prototype.createTips=function(){this.tip1=Ze.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(Ze.createTransform()),this.visual.appendChild(this.tip1),this.tip2=Ze.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(Ze.createTransform()),this.visual.appendChild(this.tip2)},Fe.prototype.pointerDown=function(xe,Ne){We.prototype.pointerDown.call(this,xe,Ne),this.state==="creating"&&this.createTips()},Fe.prototype.adjustVisual=function(){if(We.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(Ze.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()]]),Ze.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 xe=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),Ne=this.tip1.transform.baseVal.getItem(0);Ne.setRotate(xe,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(Ne,0);var _e=this.tip2.transform.baseVal.getItem(0);_e.setRotate(xe+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(_e,0)}},Object.defineProperty(Fe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Fe.prototype.getState=function(){var xe=We.prototype.getState.call(this);return xe.typeName=Fe.typeName,xe},Fe.prototype.restoreState=function(xe){We.prototype.restoreState.call(this,xe),this.createTips(),this.adjustVisual()},Fe.typeName="MeasurementMarker",Fe.title="Measurement marker",Fe.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>',Fe}(rt),Mt=function(We){function Fe(xe,Ne,_e){var be=We.call(this,xe,Ne,_e)||this;return be.strokePanel.colors=_e.defaultColorSet,be.fillColor="transparent",be}return Ye(Fe,We),Object.defineProperty(Fe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Fe.prototype.getState=function(){var xe=We.prototype.getState.call(this);return xe.typeName=Fe.typeName,xe},Fe.typeName="EllipseFrameMarker",Fe.title="Ellipse frame marker",Fe.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>',Fe}(Zt),jt=function(){function We(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(We.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),We.prototype.addUndoStep=function(Fe){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(Fe)||(this.undoStack.push(Fe),JSON.stringify(this.lastRedoStep)!==JSON.stringify(Fe)&&this.redoStack.splice(0,this.redoStack.length))},We.prototype.replaceLastUndoStep=function(Fe){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=Fe)},We.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},We.prototype.undo=function(){if(this.undoStack.length>1){var Fe=this.undoStack.pop();return Fe!==void 0&&this.redoStack.push(Fe),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},We.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},We}(),an=function(We){function Fe(xe,Ne,_e){var be=We.call(this,xe,Ne,_e)||this;return be.strokeColor="transparent",be.strokeWidth=0,be.strokeDasharray="",be.curveX=0,be.curveY=0,be.manipulationStartCurveX=0,be.manipulationStartCurveY=0,be.setStrokeColor=be.setStrokeColor.bind(be),be.setStrokeWidth=be.setStrokeWidth.bind(be),be.setStrokeDasharray=be.setStrokeDasharray.bind(be),be.positionGrips=be.positionGrips.bind(be),be.addControlGrips=be.addControlGrips.bind(be),be.adjustVisual=be.adjustVisual.bind(be),be.setupControlBox=be.setupControlBox.bind(be),be.resize=be.resize.bind(be),be.strokeColor=_e.defaultColor,be.strokeWidth=_e.defaultStrokeWidth,be.strokeDasharray=_e.defaultStrokeDasharray,be.strokePanel=new ne("Line color",_e.defaultColorSet,_e.defaultColor),be.strokePanel.onColorChanged=be.setStrokeColor,be.strokeWidthPanel=new ze("Line width",_e.defaultStrokeWidths,_e.defaultStrokeWidth),be.strokeWidthPanel.onWidthChanged=be.setStrokeWidth,be.strokeStylePanel=new Te("Line style",_e.defaultStrokeDasharrays,_e.defaultStrokeDasharray),be.strokeStylePanel.onStyleChanged=be.setStrokeDasharray,be}return Ye(Fe,We),Fe.prototype.ownsTarget=function(xe){return!(!We.prototype.ownsTarget.call(this,xe)&&xe!==this.visual&&xe!==this.selectorCurve&&xe!==this.visibleCurve&&!this.curveGrip.ownsTarget(xe))},Fe.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},Fe.prototype.createVisual=function(){this.visual=Ze.createGroup(),this.selectorCurve=Ze.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=Ze.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)},Fe.prototype.pointerDown=function(xe,Ne){We.prototype.pointerDown.call(this,xe,Ne),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=xe.x,this.curveY=xe.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(Ne)&&(this.activeGrip=this.curveGrip,this._state="resize")},Fe.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),Ze.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),Ze.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),Ze.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},Fe.prototype.setupControlBox=function(){We.prototype.setupControlBox.call(this),this.curveControlLine1=Ze.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=Ze.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)},Fe.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,We.prototype.addControlGrips.call(this)},Fe.prototype.positionGrips=function(){We.prototype.positionGrips.call(this);var xe=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-xe/2,this.curveY-xe/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()))},Fe.prototype.manipulate=function(xe){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+xe.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+xe.y-this.manipulationStartY),We.prototype.manipulate.call(this,xe)},Fe.prototype.resize=function(xe){this.activeGrip===this.curveGrip&&(this.curveX=xe.x,this.curveY=xe.y),We.prototype.resize.call(this,xe),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},Fe.prototype.setStrokeColor=function(xe){this.strokeColor=xe,this.adjustVisual(),this.colorChanged(xe)},Fe.prototype.setStrokeWidth=function(xe){this.strokeWidth=xe,this.adjustVisual()},Fe.prototype.setStrokeDasharray=function(xe){this.strokeDasharray=xe,this.adjustVisual()},Fe.prototype.scale=function(xe,Ne){this.curveX=this.curveX*xe,this.curveY=this.curveY*Ne,We.prototype.scale.call(this,xe,Ne)},Object.defineProperty(Fe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Fe.prototype.getState=function(){var xe=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},We.prototype.getState.call(this));return xe.typeName=Fe.typeName,xe},Fe.prototype.restoreState=function(xe){We.prototype.restoreState.call(this,xe);var Ne=xe;this.strokeColor=Ne.strokeColor,this.strokeWidth=Ne.strokeWidth,this.strokeDasharray=Ne.strokeDasharray,this.curveX=Ne.curveX,this.curveY=Ne.curveY,this.createVisual(),this.adjustVisual()},Fe.typeName="CurveMarker",Fe.title="Curve marker",Fe.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>',Fe}(Re),Dn=function(We){function Fe(xe,Ne,_e){var be=We.call(this,xe,Ne,_e)||this;return be.fillColor="transparent",be.strokeColor="transparent",be.strokeWidth=0,be.strokeDasharray="",be.textColor="transparent",be.fontSize="1rem",be.isMoved=!1,be.captionText="Caption",be.PADDING=5,be.captionBoxWidth=0,be.captionBoxHeight=0,be.strokeColor=_e.defaultColor,be.strokeWidth=_e.defaultStrokeWidth,be.strokeDasharray=_e.defaultStrokeDasharray,be.fillColor=_e.defaultFillColor,be.textColor=_e.defaultStrokeColor,be.fontFamily=_e.defaultFontFamily,be.fontSize=_e.defaultCaptionFontSize,be.captionText=_e.defaultCaptionText,be.setStrokeColor=be.setStrokeColor.bind(be),be.setFillColor=be.setFillColor.bind(be),be.setStrokeWidth=be.setStrokeWidth.bind(be),be.setStrokeDasharray=be.setStrokeDasharray.bind(be),be.createVisual=be.createVisual.bind(be),be.sizeCaption=be.sizeCaption.bind(be),be.setCaptionText=be.setCaptionText.bind(be),be.showTextEditor=be.showTextEditor.bind(be),be.positionTextEditor=be.positionTextEditor.bind(be),be.finishTextEditing=be.finishTextEditing.bind(be),be.setFont=be.setFont.bind(be),be.setTextColor=be.setTextColor.bind(be),be.strokePanel=new ne("Line color",at(_e.defaultColorSet,["transparent"]),be.strokeColor),be.strokePanel.onColorChanged=be.setStrokeColor,be.fillPanel=new ne("Fill color",at(_e.defaultColorSet,["transparent"]),be.fillColor,He),be.fillPanel.onColorChanged=be.setFillColor,be.strokeWidthPanel=new ze("Line width",_e.defaultStrokeWidths,_e.defaultStrokeWidth),be.strokeWidthPanel.onWidthChanged=be.setStrokeWidth,be.strokeStylePanel=new Te("Line style",_e.defaultStrokeDasharrays,_e.defaultStrokeDasharray),be.strokeStylePanel.onStyleChanged=be.setStrokeDasharray,be.fontFamilyPanel=new ot("Font",_e.defaultFontFamilies,_e.defaultFontFamily),be.fontFamilyPanel.onFontChanged=be.setFont,be.textColorPanel=new ne("Text color",_e.defaultColorSet,be.textColor,st),be.textColorPanel.onColorChanged=be.setTextColor,be}return Ye(Fe,We),Fe.prototype.ownsTarget=function(xe){return!(!We.prototype.ownsTarget.call(this,xe)&&xe!==this.visual&&xe!==this.frame&&xe!==this.captionBg&&xe!==this.captionElement)},Fe.prototype.createVisual=function(){this.visual=Ze.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=Ze.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=Ze.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=Ze.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()},Fe.prototype.setCaptionText=function(xe){this.captionText=xe,this.captionElement.textContent=this.captionText,this.sizeCaption()},Fe.prototype.pointerDown=function(xe,Ne){We.prototype.pointerDown.call(this,xe,Ne),this.isMoved=!1,this.pointerDownPoint=xe,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(xe),this._state="creating")},Fe.prototype.manipulate=function(xe){We.prototype.manipulate.call(this,xe),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(xe.x-this.pointerDownPoint.x)>5||Math.abs(xe.y-this.pointerDownPoint.y)>5)},Fe.prototype.resize=function(xe){We.prototype.resize.call(this,xe),this.setSize()},Fe.prototype.sizeCaption=function(){var xe=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=xe.width+2*this.PADDING,this.captionBoxHeight=xe.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),Ze.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')"]]),Ze.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')"]])},Fe.prototype.showTextEditor=function(){var xe=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(Ne){Ne.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(Ne){Ne.key==="Enter"&&xe.finishTextEditing(xe.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(Ne){Ne.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){xe.finishTextEditing(xe.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){xe.finishTextEditing(xe.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},Fe.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"))},Fe.prototype.finishTextEditing=function(xe){this.setCaptionText(xe.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},Fe.prototype.setFont=function(xe){this.captionElement&&Ze.setAttributes(this.captionElement,[["font-family",xe]]),this.fontFamily=xe,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},Fe.prototype.setTextColor=function(xe){this.captionElement&&Ze.setAttributes(this.captionElement,[["fill",xe]]),this.textColor=xe,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},Fe.prototype.setSize=function(){We.prototype.setSize.call(this),Ze.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},Fe.prototype.pointerUp=function(xe){We.prototype.pointerUp.call(this,xe),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},Fe.prototype.dblClick=function(xe,Ne){We.prototype.dblClick.call(this,xe,Ne),this.showTextEditor()},Fe.prototype.setStrokeColor=function(xe){this.strokeColor=xe,this.frame&&Ze.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(xe),this.stateChanged()},Fe.prototype.setFillColor=function(xe){this.fillColor=xe,this.captionBg&&Ze.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(xe),this.stateChanged()},Fe.prototype.setStrokeWidth=function(xe){this.strokeWidth=xe,this.frame&&Ze.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Fe.prototype.setStrokeDasharray=function(xe){this.strokeDasharray=xe,this.frame&&Ze.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(Fe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),Fe.prototype.getState=function(){var xe=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},We.prototype.getState.call(this));return xe.typeName=this.typeName,xe},Fe.prototype.restoreState=function(xe){var Ne=xe;this.fillColor=Ne.fillColor,this.strokeColor=Ne.strokeColor,this.strokeWidth=Ne.strokeWidth,this.strokeDasharray=Ne.strokeDasharray,this.textColor=Ne.textColor,this.fontFamily=Ne.fontFamily,this.captionText=Ne.captionText,this.fontSize=Ne.fontSize,this.createVisual(),We.prototype.restoreState.call(this,xe),this.setSize()},Fe.prototype.scale=function(xe,Ne){We.prototype.scale.call(this,xe,Ne),this.setSize()},Fe.typeName="CaptionFrameMarker",Fe.title="Caption frame marker",Fe.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>',Fe}(ye),Dt=function(){function We(Fe,xe){xe===void 0&&(xe=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=Fe,this.cancelable=xe}return Object.defineProperty(We.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),We.prototype.preventDefault=function(){this._defaultPrevented=!0},We}(),gn=function(We){function Fe(xe,Ne,_e){var be=We.call(this,xe,!1)||this;return be.dataUrl=Ne,be.state=_e,be}return Ye(Fe,We),Fe}(Dt),yt=function(We){function Fe(xe,Ne,_e){_e===void 0&&(_e=!1);var be=We.call(this,xe,_e)||this;return be.marker=Ne,be}return Ye(Fe,We),Fe}(Dt),Zn=function(){function We(){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 We.prototype.addEventListener=function(Fe,xe){this[Fe].push(xe)},We.prototype.removeEventListener=function(Fe,xe){var Ne=this[Fe].indexOf(xe);Ne>-1&&this[Fe].splice(Ne,1)},We}(),vi=function(){function We(Fe){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 jt,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 Zn,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=We.instanceCounter++,this.styles=new De(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=Fe,this.targetRoot=document.body,this.width=Fe.clientWidth,this.height=Fe.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(We.prototype,"ALL_MARKER_TYPES",{get:function(){return[Ie,gt,Lt,Ct,Mt,Zt,tn,Rt,_t,Ot,rt,an,Dn]},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[Ie,gt,Lt,Ct,Zt,tn,Rt]},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"BASIC_MARKER_TYPES",{get:function(){return[Ie,gt,Lt,Ct,tn]},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(Fe){var xe=this;this._availableMarkerTypes.splice(0),Fe.forEach(function(Ne){if(typeof Ne=="string"){var _e=xe.ALL_MARKER_TYPES.find(function(be){return be.typeName===Ne});_e!==void 0&&xe._availableMarkerTypes.push(_e)}else xe._availableMarkerTypes.push(Ne)})},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(Fe){this._zoomLevel=Fe,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(We.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),We.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),Ue.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},We.prototype.show=function(){var Fe=this;this.styles.styleSheetRoot===void 0&&nt.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=nt.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(xe){return xe(new Dt(Fe))})},We.prototype.render=function(){return dt(this,void 0,void 0,function(){var Fe;return it(this,function(xe){switch(xe.label){case 0:return this.setCurrentMarker(),(Fe=new xt).naturalSize=this.renderAtNaturalSize,Fe.imageType=this.renderImageType,Fe.imageQuality=this.renderImageQuality,Fe.markersOnly=this.renderMarkersOnly,Fe.width=this.renderWidth,Fe.height=this.renderHeight,[4,Fe.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return xe.sent(),[4,Fe.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,xe.sent()]}})})},We.prototype.close=function(Fe){var xe=this;if(Fe===void 0&&(Fe=!1),this.isOpen){var Ne=!1;Fe||this.eventListeners.beforeclose.forEach(function(_e){var be=new Dt(xe,!0);_e(be),be.defaultPrevented&&(Ne=!0)}),Ne||(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(_e){return _e(new Dt(xe))}),this.detachEvents(),this._isOpen=!1)}},We.prototype.addMarkersToToolbar=function(){for(var Fe,xe=[],Ne=0;Ne<arguments.length;Ne++)xe[Ne]=arguments[Ne];(Fe=this._availableMarkerTypes).push.apply(Fe,xe)},We.prototype.addRenderEventListener=function(Fe){this.addEventListener("render",function(xe){Fe(xe.dataUrl,xe.state)})},We.prototype.removeRenderEventListener=function(Fe){},We.prototype.addCloseEventListener=function(Fe){this.addEventListener("close",function(){Fe()})},We.prototype.removeCloseEventListener=function(Fe){},We.prototype.setupResizeObserver=function(){var Fe=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){Fe.resize(Fe.target.clientWidth,Fe.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return Fe.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},We.prototype.onPopupTargetResize=function(){var Fe=1*this.target.clientWidth/this.target.clientHeight,xe=this.editorCanvas.clientWidth/Fe>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*Fe:this.editorCanvas.clientWidth,Ne=xe<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/Fe;this.resize(xe,Ne)},We.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},We.prototype.resize=function(Fe,xe){this._isResizing=!0;var Ne=Fe/this.imageWidth,_e=xe/this.imageHeight;this.imageWidth=Math.round(Fe),this.imageHeight=Math.round(xe),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(Ne,_e),this._isResizing=!1},We.prototype.scaleMarkers=function(Fe,xe){var Ne,_e=this;this._currentMarker&&this._currentMarker instanceof Ct?this._currentMarker.scale(Fe,xe):(Ne=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(be){be!==_e._currentMarker&&be.scale(Fe,xe)}),Ne!==void 0&&this.setCurrentMarker(Ne)},We.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"},We.prototype.setTopLeft=function(){var Fe=this.editingTarget.getBoundingClientRect(),xe=this.editorCanvas.getBoundingClientRect();this.left=Fe.left-xe.left,this.top=Fe.top-xe.top},We.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)},We.prototype.addDefs=function(){for(var Fe,xe=[],Ne=0;Ne<arguments.length;Ne++)xe[Ne]=arguments[Ne];this.defs=Ze.createDefs(),this.addDefsToImage(),(Fe=this.defs).append.apply(Fe,xe)},We.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},We.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)},We.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},We.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},We.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)},We.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},We.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)},We.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 Fe=document.createElement("a");Fe.href="https://markerjs.com/",Fe.target="_blank",Fe.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>',Fe.title="Powered by marker.js",Fe.style.display="grid",Fe.style.alignItems="center",Fe.style.justifyItems="center",Fe.style.padding="3px",Fe.style.width="20px",Fe.style.height="20px",this.logoUI.appendChild(Fe),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},We.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")},We.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"},We.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},We.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 Fe=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=Fe+"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 ut(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 Ee(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},We.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},We.prototype.removeMarker=function(Fe){this.markerImage.removeChild(Fe.container),this.markers.indexOf(Fe)>-1&&this.markers.splice(this.markers.indexOf(Fe),1),Fe.dispose()},We.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())},We.prototype.toolbarButtonClicked=function(Fe,xe){if(Fe==="marker"&&xe!==void 0)this.createNewMarker(xe);else if(Fe==="action")switch(xe){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()}},We.prototype.deleteSelectedMarker=function(){var Fe=this;if(this._currentMarker!==void 0){var xe=!1;if(this.eventListeners.markerbeforedelete.forEach(function(_e){var be=new yt(Fe,Fe._currentMarker,!0);_e(be),be.defaultPrevented&&(xe=!0)}),!xe){var Ne=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(_e){return _e(new yt(Fe,Ne))})}}},We.prototype.clear=function(){var Fe=this,xe=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(tt){var Xt=new yt(Fe,void 0,!0);tt(Xt),Xt.defaultPrevented&&(xe=!0)}),!xe)){this.setCurrentMarker();for(var Ne=function(tt){var Xt=_e.markers[tt];_e.setCurrentMarker(_e.markers[tt]),_e._currentMarker.dispose(),_e.markerImage.removeChild(_e._currentMarker.container),_e.markers.splice(_e.markers.indexOf(_e._currentMarker),1),_e.eventListeners.markerdelete.forEach(function(Bt){return Bt(new yt(Fe,Xt))})},_e=this,be=this.markers.length-1;be>=0;be--)Ne(be);this.addUndoStep()}},Object.defineProperty(We.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),We.prototype.showNotesEditor=function(){var Fe;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=(Fe=this._currentMarker.notes)!==null&&Fe!==void 0?Fe:"",this.overlayContainer.appendChild(this.notesArea))},We.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)},We.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},We.prototype.addUndoStep=function(){var Fe=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var xe=this.getState(),Ne=this.undoRedoManager.getLastUndoStep();if(!Ne||Ne.width===xe.width&&Ne.height===xe.height){var _e=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(xe),_e<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(be){return be(new Dt(Fe))})}else this.undoRedoManager.replaceLastUndoStep(xe),this.eventListeners.statechange.forEach(function(be){return be(new Dt(Fe))})}},We.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},We.prototype.undoStep=function(){var Fe=this,xe=this.undoRedoManager.undo();xe!==void 0&&(this.restoreState(xe),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(Ne){return Ne(new Dt(Fe))}))},We.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},We.prototype.redoStep=function(){var Fe=this,xe=this.undoRedoManager.redo();xe!==void 0&&(this.restoreState(xe),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(Ne){return Ne(new Dt(Fe))}))},We.prototype.stepZoom=function(){var Fe=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=Fe<this.zoomSteps.length-1?this.zoomSteps[Fe+1]:this.zoomSteps[0]},We.prototype.panTo=function(Fe){this.contentDiv.scrollBy({left:this.prevPanPoint.x-Fe.x,top:this.prevPanPoint.y-Fe.y}),this.prevPanPoint=Fe},We.prototype.startRenderAndClose=function(){return dt(this,void 0,void 0,function(){var Fe,xe,Ne=this;return it(this,function(_e){switch(_e.label){case 0:return[4,this.render()];case 1:return Fe=_e.sent(),xe=this.getState(),this.eventListeners.render.forEach(function(be){return be(new gn(Ne,Fe,xe))}),this.close(!0),[2]}})})},We.prototype.getState=function(Fe){Fe===!0&&this.setCurrentMarker();var xe={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(Ne){return xe.markers.push(Ne.getState())}),xe},We.prototype.restoreState=function(Fe){var xe=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);Fe.markers.forEach(function(Ne){var _e=xe._availableMarkerTypes.find(function(tt){return tt.typeName===Ne.typeName});if(_e!==void 0){var be=xe.addNewMarker(_e);be.restoreState(Ne),xe.markers.push(be)}}),Fe.width&&Fe.height&&(Fe.width!==this.imageWidth||Fe.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/Fe.width,this.imageHeight/Fe.height),this.eventListeners.restorestate.forEach(function(Ne){return Ne(new Dt(xe))})},We.prototype.addNewMarker=function(Fe){var xe=Ze.createGroup();return this.markerImage.appendChild(xe),new Fe(xe,this.overlayContainer,this.settings)},We.prototype.createNewMarker=function(Fe){var xe,Ne=this;(xe=typeof Fe=="string"?this._availableMarkerTypes.find(function(_e){return _e.typeName===Fe}):Fe)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(xe),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(xe.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(_e){return _e(new yt(Ne,Ne._currentMarker))}))},We.prototype.markerCreated=function(Fe){var xe=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(Fe),this.setCurrentMarker(Fe),Fe instanceof gt&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(gt):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(Ne){return Ne(new yt(xe,xe._currentMarker))})},We.prototype.colorChanged=function(Fe){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=Fe,this.settings.defaultStrokeColor=Fe)},We.prototype.fillColorChanged=function(Fe){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=Fe)},We.prototype.markerStateChanged=function(Fe){var xe=this;this.eventListeners.markerchange.forEach(function(Ne){return Ne(new yt(xe,Fe))})},We.prototype.setCurrentMarker=function(Fe){var xe=this;this._currentMarker!==Fe&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(Ne){return Ne(new yt(xe,xe._currentMarker))})),this._currentMarker=Fe,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(Ne){return Ne(new yt(xe,xe._currentMarker))}))},We.prototype.onPointerDown=function(Fe){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||Fe.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var xe=this.markers.find(function(Ne){return Ne.ownsTarget(Fe.target)});xe!==void 0?(this.setCurrentMarker(xe),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(Fe.clientX,Fe.clientY),Fe.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:Fe.clientX,y:Fe.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(Fe.clientX,Fe.clientY))},We.prototype.onDblClick=function(Fe){if(this._isFocused||this.focus(),this.mode==="select"){var xe=this.markers.find(function(Ne){return Ne.ownsTarget(Fe.target)});xe!==void 0&&xe!==this._currentMarker&&this.setCurrentMarker(xe),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(Fe.clientX,Fe.clientY),Fe.target):this.setCurrentMarker()}},We.prototype.onPointerMove=function(Fe){this.touchPoints!==1&&Fe.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||Fe.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(Fe.clientX,Fe.clientY)):this.zoomLevel>1&&this.panTo({x:Fe.clientX,y:Fe.clientY}))},We.prototype.onPointerUp=function(Fe){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(Fe.clientX,Fe.clientY)),this.isDragging=!1,this.addUndoStep()},We.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},We.prototype.onKeyUp=function(Fe){this._currentMarker===void 0||this.notesArea!==void 0||Fe.key!=="Delete"&&Fe.key!=="Backspace"||this.deleteSelectedMarker()},We.prototype.clientToLocalCoordinates=function(Fe,xe){var Ne=this.markerImage.getBoundingClientRect();return{x:(Fe-Ne.left)/this.zoomLevel,y:(xe-Ne.top)/this.zoomLevel}},We.prototype.onWindowResize=function(){this.positionUI()},We.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var Fe=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=Fe+"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()},We.prototype.addLicenseKey=function(Fe){Ue.addKey(Fe)},We.prototype.addEventListener=function(Fe,xe){this.eventListeners.addEventListener(Fe,xe)},We.prototype.removeEventListener=function(Fe,xe){this.eventListeners.removeEventListener(Fe,xe)},We.prototype.renderState=function(Fe){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(Fe),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(We.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),We.prototype.focus=function(){var Fe=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(xe){return xe(new Dt(Fe))}))},We.prototype.blur=function(){var Fe=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(xe){return xe(new Dt(Fe))}))},We.instanceCounter=0,We}()},23425:function(fn,on,we){"use strict";we.d(on,{Z:function(){return Te}});var ve=we(87075),Ye=we(71409),dt=we(28788),it=we(89490),at=we(11036),Ze=we(92310),Ue=we.n(Ze),xt=we(18929),nt=we(10228),De=we(26112),wt=we(48736),Ve=we(59301),ut=we(17119),Ee=[10,20,50,100],te=function(Oe){var Re=Oe.pageSizeOptions,rt=Re===void 0?Ee:Re,ot=Oe.locale,Ct=Oe.changeSize,gt=Oe.pageSize,kt=Oe.goButton,Lt=Oe.quickGo,Ot=Oe.rootPrefixCls,Nt=Oe.disabled,tn=Oe.buildOptionText,st=Oe.showSizeChanger,He=Oe.sizeChangerRender,Rt=Ve.useState(""),Zt=(0,at.Z)(Rt,2),_t=Zt[0],Mt=Zt[1],jt=function(){return!_t||Number.isNaN(_t)?void 0:Number(_t)},an=typeof tn=="function"?tn:function(xe){return"".concat(xe," ").concat(ot.items_per_page)},Dn=function(Ne){Mt(Ne.target.value)},Dt=function(Ne){kt||_t===""||(Mt(""),!(Ne.relatedTarget&&(Ne.relatedTarget.className.indexOf("".concat(Ot,"-item-link"))>=0||Ne.relatedTarget.className.indexOf("".concat(Ot,"-item"))>=0))&&(Lt==null||Lt(jt())))},gn=function(Ne){_t!==""&&(Ne.keyCode===nt.Z.ENTER||Ne.type==="click")&&(Mt(""),Lt==null||Lt(jt()))},yt=function(){return rt.some(function(Ne){return Ne.toString()===gt.toString()})?rt:rt.concat([gt]).sort(function(Ne,_e){var be=Number.isNaN(Number(Ne))?0:Number(Ne),tt=Number.isNaN(Number(_e))?0:Number(_e);return be-tt})},Zn="".concat(Ot,"-options");if(!st&&!Lt)return null;var vi=null,We=null,Fe=null;return st&&He&&(vi=He({disabled:Nt,size:gt,onSizeChange:function(Ne){Ct==null||Ct(Number(Ne))},"aria-label":ot.page_size,className:"".concat(Zn,"-size-changer"),options:yt().map(function(xe){return{label:an(xe),value:xe}})})),Lt&&(kt&&(Fe=typeof kt=="boolean"?Ve.createElement("button",{type:"button",onClick:gn,onKeyUp:gn,disabled:Nt,className:"".concat(Zn,"-quick-jumper-button")},ot.jump_to_confirm):Ve.createElement("span",{onClick:gn,onKeyUp:gn},kt)),We=Ve.createElement("div",{className:"".concat(Zn,"-quick-jumper")},ot.jump_to,Ve.createElement("input",{disabled:Nt,type:"text",value:_t,onChange:Dn,onKeyUp:gn,onBlur:Dt,"aria-label":ot.page}),ot.page,Fe)),Ve.createElement("li",{className:Zn},vi,We)},ne=te,ue=function(Oe){var Re=Oe.rootPrefixCls,rt=Oe.page,ot=Oe.active,Ct=Oe.className,gt=Oe.showTitle,kt=Oe.onClick,Lt=Oe.onKeyPress,Ot=Oe.itemRender,Nt="".concat(Re,"-item"),tn=Ue()(Nt,"".concat(Nt,"-").concat(rt),(0,ve.Z)((0,ve.Z)({},"".concat(Nt,"-active"),ot),"".concat(Nt,"-disabled"),!rt),Ct),st=function(){kt(rt)},He=function(_t){Lt(_t,kt,rt)},Rt=Ot(rt,"page",Ve.createElement("a",{rel:"nofollow"},rt));return Rt?Ve.createElement("li",{title:gt?String(rt):null,className:tn,onClick:st,onKeyDown:He,tabIndex:0},Rt):null},se=ue,de=function(Oe,Re,rt){return rt};function pe(){}function ye(Ie){var Oe=Number(Ie);return typeof Oe=="number"&&!Number.isNaN(Oe)&&isFinite(Oe)&&Math.floor(Oe)===Oe}function Ce(Ie,Oe,Re){var rt=typeof Ie=="undefined"?Oe:Ie;return Math.floor((Re-1)/rt)+1}var ze=function(Oe){var Re=Oe.prefixCls,rt=Re===void 0?"rc-pagination":Re,ot=Oe.selectPrefixCls,Ct=ot===void 0?"rc-select":ot,gt=Oe.className,kt=Oe.current,Lt=Oe.defaultCurrent,Ot=Lt===void 0?1:Lt,Nt=Oe.total,tn=Nt===void 0?0:Nt,st=Oe.pageSize,He=Oe.defaultPageSize,Rt=He===void 0?10:He,Zt=Oe.onChange,_t=Zt===void 0?pe:Zt,Mt=Oe.hideOnSinglePage,jt=Oe.align,an=Oe.showPrevNextJumpers,Dn=an===void 0?!0:an,Dt=Oe.showQuickJumper,gn=Oe.showLessItems,yt=Oe.showTitle,Zn=yt===void 0?!0:yt,vi=Oe.onShowSizeChange,We=vi===void 0?pe:vi,Fe=Oe.locale,xe=Fe===void 0?ut.Z:Fe,Ne=Oe.style,_e=Oe.totalBoundaryShowSizeChanger,be=_e===void 0?50:_e,tt=Oe.disabled,Xt=Oe.simple,Bt=Oe.showTotal,nn=Oe.showSizeChanger,Tt=nn===void 0?tn>be:nn,bt=Oe.sizeChangerRender,zt=Oe.pageSizeOptions,qt=Oe.itemRender,pn=qt===void 0?de:qt,ei=Oe.jumpPrevIcon,wn=Oe.jumpNextIcon,Fn=Oe.prevIcon,Ci=Oe.nextIcon,$n=Ve.useRef(null),bi=(0,xt.Z)(10,{value:st,defaultValue:Rt}),hi=(0,at.Z)(bi,2),Di=hi[0],Gi=hi[1],Ji=(0,xt.Z)(1,{value:kt,defaultValue:Ot,postState:function(Vr){return Math.max(1,Math.min(Vr,Ce(void 0,Di,tn)))}}),Zr=(0,at.Z)(Ji,2),qi=Zr[0],ii=Zr[1],so=Ve.useState(qi),Kr=(0,at.Z)(so,2),qr=Kr[0],io=Kr[1];(0,Ve.useEffect)(function(){io(qi)},[qi]);var Fo=_t!==pe,lo="current"in Oe,Ar=Math.max(1,qi-(gn?3:5)),ro=Math.min(Ce(void 0,Di,tn),qi+(gn?3:5));function Le(rr,Vr){var _r=rr||Ve.createElement("button",{type:"button","aria-label":Vr,className:"".concat(rt,"-item-link")});return typeof rr=="function"&&(_r=Ve.createElement(rr,(0,it.Z)({},Oe))),_r}function xn(rr){var Vr=rr.target.value,_r=Ce(void 0,Di,tn),Co;return Vr===""?Co=Vr:Number.isNaN(Number(Vr))?Co=qr:Vr>=_r?Co=_r:Co=Number(Vr),Co}function Qn(rr){return ye(rr)&&rr!==qi&&ye(tn)&&tn>0}var gi=tn>Di?Dt:!1;function yi(rr){(rr.keyCode===nt.Z.UP||rr.keyCode===nt.Z.DOWN)&&rr.preventDefault()}function ti(rr){var Vr=xn(rr);switch(Vr!==qr&&io(Vr),rr.keyCode){case nt.Z.ENTER:Sr(Vr);break;case nt.Z.UP:Sr(Vr-1);break;case nt.Z.DOWN:Sr(Vr+1);break;default:break}}function Yi(rr){Sr(xn(rr))}function cr(rr){var Vr=Ce(rr,Di,tn),_r=qi>Vr&&Vr!==0?Vr:qi;Gi(rr),io(_r),We==null||We(qi,rr),ii(_r),_t==null||_t(_r,rr)}function Sr(rr){if(Qn(rr)&&!tt){var Vr=Ce(void 0,Di,tn),_r=rr;return rr>Vr?_r=Vr:rr<1&&(_r=1),_r!==qr&&io(_r),ii(_r),_t==null||_t(_r,Di),_r}return qi}var Jt=qi>1,Vt=qi<Ce(void 0,Di,tn);function It(){Jt&&Sr(qi-1)}function Ei(){Vt&&Sr(qi+1)}function Ii(){Sr(Ar)}function ji(){Sr(ro)}function Xn(rr,Vr){if(rr.key==="Enter"||rr.charCode===nt.Z.ENTER||rr.keyCode===nt.Z.ENTER){for(var _r=arguments.length,Co=new Array(_r>2?_r-2:0),Qr=2;Qr<_r;Qr++)Co[Qr-2]=arguments[Qr];Vr.apply(void 0,Co)}}function Ai(rr){Xn(rr,It)}function ur(rr){Xn(rr,Ei)}function Tr(rr){Xn(rr,Ii)}function br(rr){Xn(rr,ji)}function et(rr){var Vr=pn(rr,"prev",Le(Fn,"prev page"));return Ve.isValidElement(Vr)?Ve.cloneElement(Vr,{disabled:!Jt}):Vr}function Ft(rr){var Vr=pn(rr,"next",Le(Ci,"next page"));return Ve.isValidElement(Vr)?Ve.cloneElement(Vr,{disabled:!Vt}):Vr}function Tn(rr){(rr.type==="click"||rr.keyCode===nt.Z.ENTER)&&Sr(qr)}var Yn=null,en=(0,De.Z)(Oe,{aria:!0,data:!0}),Gn=Bt&&Ve.createElement("li",{className:"".concat(rt,"-total-text")},Bt(tn,[tn===0?0:(qi-1)*Di+1,qi*Di>tn?tn:qi*Di])),kn=null,_n=Ce(void 0,Di,tn);if(Mt&&tn<=Di)return null;var xi=[],mi={rootPrefixCls:rt,onClick:Sr,onKeyPress:Xn,showTitle:Zn,itemRender:pn,page:-1},sn=qi-1>0?qi-1:0,ki=qi+1<_n?qi+1:_n,Cr=Dt&&Dt.goButton,gr=(0,dt.Z)(Xt)==="object"?Xt.readOnly:!Xt,dr=Cr,mn=null;Xt&&(Cr&&(typeof Cr=="boolean"?dr=Ve.createElement("button",{type:"button",onClick:Tn,onKeyUp:Tn},xe.jump_to_confirm):dr=Ve.createElement("span",{onClick:Tn,onKeyUp:Tn},Cr),dr=Ve.createElement("li",{title:Zn?"".concat(xe.jump_to).concat(qi,"/").concat(_n):null,className:"".concat(rt,"-simple-pager")},dr)),mn=Ve.createElement("li",{title:Zn?"".concat(qi,"/").concat(_n):null,className:"".concat(rt,"-simple-pager")},gr?qr:Ve.createElement("input",{type:"text","aria-label":xe.jump_to,value:qr,disabled:tt,onKeyDown:yi,onKeyUp:ti,onChange:ti,onBlur:Yi,size:3}),Ve.createElement("span",{className:"".concat(rt,"-slash")},"/"),_n));var Ir=gn?1:2;if(_n<=3+Ir*2){_n||xi.push(Ve.createElement(se,(0,Ye.Z)({},mi,{key:"noPager",page:1,className:"".concat(rt,"-item-disabled")})));for(var jr=1;jr<=_n;jr+=1)xi.push(Ve.createElement(se,(0,Ye.Z)({},mi,{key:jr,page:jr,active:qi===jr})))}else{var fo=gn?xe.prev_3:xe.prev_5,yn=gn?xe.next_3:xe.next_5,ni=pn(Ar,"jump-prev",Le(ei,"prev page")),Hi=pn(ro,"jump-next",Le(wn,"next page"));Dn&&(Yn=ni?Ve.createElement("li",{title:Zn?fo:null,key:"prev",onClick:Ii,tabIndex:0,onKeyDown:Tr,className:Ue()("".concat(rt,"-jump-prev"),(0,ve.Z)({},"".concat(rt,"-jump-prev-custom-icon"),!!ei))},ni):null,kn=Hi?Ve.createElement("li",{title:Zn?yn:null,key:"next",onClick:ji,tabIndex:0,onKeyDown:br,className:Ue()("".concat(rt,"-jump-next"),(0,ve.Z)({},"".concat(rt,"-jump-next-custom-icon"),!!wn))},Hi):null);var Ri=Math.max(1,qi-Ir),Xi=Math.min(qi+Ir,_n);qi-1<=Ir&&(Xi=1+Ir*2),_n-qi<=Ir&&(Ri=_n-Ir*2);for(var $i=Ri;$i<=Xi;$i+=1)xi.push(Ve.createElement(se,(0,Ye.Z)({},mi,{key:$i,page:$i,active:qi===$i})));if(qi-1>=Ir*2&&qi!==3&&(xi[0]=Ve.cloneElement(xi[0],{className:Ue()("".concat(rt,"-item-after-jump-prev"),xi[0].props.className)}),xi.unshift(Yn)),_n-qi>=Ir*2&&qi!==_n-2){var Fr=xi[xi.length-1];xi[xi.length-1]=Ve.cloneElement(Fr,{className:Ue()("".concat(rt,"-item-before-jump-next"),Fr.props.className)}),xi.push(kn)}Ri!==1&&xi.unshift(Ve.createElement(se,(0,Ye.Z)({},mi,{key:1,page:1}))),Xi!==_n&&xi.push(Ve.createElement(se,(0,Ye.Z)({},mi,{key:_n,page:_n})))}var Dr=et(sn);if(Dr){var Rr=!Jt||!_n;Dr=Ve.createElement("li",{title:Zn?xe.prev_page:null,onClick:It,tabIndex:Rr?null:0,onKeyDown:Ai,className:Ue()("".concat(rt,"-prev"),(0,ve.Z)({},"".concat(rt,"-disabled"),Rr)),"aria-disabled":Rr},Dr)}var Xr=Ft(ki);if(Xr){var Mn,ho;Xt?(Mn=!Vt,ho=Jt?0:null):(Mn=!Vt||!_n,ho=Mn?null:0),Xr=Ve.createElement("li",{title:Zn?xe.next_page:null,onClick:Ei,tabIndex:ho,onKeyDown:ur,className:Ue()("".concat(rt,"-next"),(0,ve.Z)({},"".concat(rt,"-disabled"),Mn)),"aria-disabled":Mn},Xr)}var ln=Ue()(rt,gt,(0,ve.Z)((0,ve.Z)((0,ve.Z)((0,ve.Z)((0,ve.Z)({},"".concat(rt,"-start"),jt==="start"),"".concat(rt,"-center"),jt==="center"),"".concat(rt,"-end"),jt==="end"),"".concat(rt,"-simple"),Xt),"".concat(rt,"-disabled"),tt));return Ve.createElement("ul",(0,Ye.Z)({className:ln,style:Ne,ref:$n},en),Gn,Dr,Xt?mn:xi,Xr,Ve.createElement(ne,{locale:xe,rootPrefixCls:rt,disabled:tt,selectPrefixCls:Ct,changeSize:cr,pageSize:Di,pageSizeOptions:zt,quickGo:gi?Sr:null,goButton:dr,showSizeChanger:Tt,sizeChangerRender:bt}))},Te=ze},48365:function(fn,on,we){"use strict";var ve=we(61186),Ye=we.n(ve),dt=we(90111),it=we.n(dt),at=we(58319),Ze=we.n(at),Ue=we(23250),xt=we.n(Ue),nt=we(74959),De=we.n(nt),wt=we(10238),Ve=we.n(wt),ut=we(33656),Ee=we.n(ut);Ye().extend(Ee()),Ye().extend(Ve()),Ye().extend(it()),Ye().extend(Ze()),Ye().extend(xt()),Ye().extend(De()),Ye().extend(function(de,pe){var ye=pe.prototype,Ce=ye.format;ye.format=function(Te){var Ie=(Te||"").replace("Wo","wo");return Ce.bind(this)(Ie)}});var te={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},ne=function(pe){var ye=te[pe];return ye||pe.split("_")[0]},ue=function(){},se={getNow:function(){var pe=Ye()();return typeof pe.tz=="function"?pe.tz():pe},getFixedDate:function(pe){return Ye()(pe,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(pe){return pe.endOf("month")},getWeekDay:function(pe){var ye=pe.locale("en");return ye.weekday()+ye.localeData().firstDayOfWeek()},getYear:function(pe){return pe.year()},getMonth:function(pe){return pe.month()},getDate:function(pe){return pe.date()},getHour:function(pe){return pe.hour()},getMinute:function(pe){return pe.minute()},getSecond:function(pe){return pe.second()},getMillisecond:function(pe){return pe.millisecond()},addYear:function(pe,ye){return pe.add(ye,"year")},addMonth:function(pe,ye){return pe.add(ye,"month")},addDate:function(pe,ye){return pe.add(ye,"day")},setYear:function(pe,ye){return pe.year(ye)},setMonth:function(pe,ye){return pe.month(ye)},setDate:function(pe,ye){return pe.date(ye)},setHour:function(pe,ye){return pe.hour(ye)},setMinute:function(pe,ye){return pe.minute(ye)},setSecond:function(pe,ye){return pe.second(ye)},setMillisecond:function(pe,ye){return pe.millisecond(ye)},isAfter:function(pe,ye){return pe.isAfter(ye)},isValidate:function(pe){return pe.isValid()},locale:{getWeekFirstDay:function(pe){return Ye()().locale(ne(pe)).localeData().firstDayOfWeek()},getWeekFirstDate:function(pe,ye){return ye.locale(ne(pe)).weekday(0)},getWeek:function(pe,ye){return ye.locale(ne(pe)).week()},getShortWeekDays:function(pe){return Ye()().locale(ne(pe)).localeData().weekdaysMin()},getShortMonths:function(pe){return Ye()().locale(ne(pe)).localeData().monthsShort()},format:function(pe,ye,Ce){return ye.locale(ne(pe)).format(Ce)},parse:function(pe,ye,Ce){for(var ze=ne(pe),Te=0;Te<Ce.length;Te+=1){var Ie=Ce[Te],Oe=ye;if(Ie.includes("wo")||Ie.includes("Wo")){for(var Re=Oe.split("-")[0],rt=Oe.split("-")[1],ot=Ye()(Re,"YYYY").startOf("year").locale(ze),Ct=0;Ct<=52;Ct+=1){var gt=ot.add(Ct,"week");if(gt.format("Wo")===rt)return gt}return ue(),null}var kt=Ye()(Oe,Ie,!0).locale(ze);if(kt.isValid())return kt}return ye&&ue(),null}}};on.Z=se},8571:function(fn,on,we){"use strict";we.d(on,{Sq:function(){return ri},ZP:function(){return li}});var ve=we(71409),Ye=we(62730),dt=we(89490),it=we(11036),at=we(70425),Ze=we(34280),Ue=we(2738),xt=we(26112),nt=we(48736),De=we(59301),wt=we(87075),Ve=we(65352),ut=we(92310),Ee=we.n(ut);function te(ke,ht){return ke!==void 0?ke:ht?"bottomRight":"bottomLeft"}var ne=De.createContext(null),ue=ne,se={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function de(ke){var ht=ke.popupElement,Je=ke.popupStyle,pt=ke.popupClassName,Pt=ke.popupAlign,$t=ke.transitionName,Qt=ke.getPopupContainer,dn=ke.children,Nn=ke.range,jn=ke.placement,cn=ke.builtinPlacements,qn=cn===void 0?se:cn,ci=ke.direction,vt=ke.visible,Un=ke.onClose,Jn=De.useContext(ue),In=Jn.prefixCls,zn="".concat(In,"-dropdown"),oi=te(jn,ci==="rtl");return De.createElement(Ve.Z,{showAction:[],hideAction:["click"],popupPlacement:oi,builtinPlacements:qn,prefixCls:zn,popupTransitionName:$t,popup:ht,popupAlign:Pt,popupVisible:vt,popupClassName:Ee()(pt,(0,wt.Z)((0,wt.Z)({},"".concat(zn,"-range"),Nn),"".concat(zn,"-rtl"),ci==="rtl")),popupStyle:Je,stretch:"minWidth",getPopupContainer:Qt,onPopupVisibleChange:function(fi){fi||Un()}},dn)}var pe=de;function ye(ke,ht){for(var Je=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",pt=String(ke);pt.length<ht;)pt="".concat(Je).concat(pt);return pt}function Ce(ke){return ke==null?[]:Array.isArray(ke)?ke:[ke]}function ze(ke,ht,Je){var pt=(0,Ye.Z)(ke);return pt[ht]=Je,pt}function Te(ke,ht){var Je={},pt=ht||Object.keys(ke);return pt.forEach(function(Pt){ke[Pt]!==void 0&&(Je[Pt]=ke[Pt])}),Je}function Ie(ke,ht,Je){if(Je)return Je;switch(ke){case"time":return ht.fieldTimeFormat;case"datetime":return ht.fieldDateTimeFormat;case"month":return ht.fieldMonthFormat;case"year":return ht.fieldYearFormat;case"quarter":return ht.fieldQuarterFormat;case"week":return ht.fieldWeekFormat;default:return ht.fieldDateFormat}}function Oe(ke,ht,Je){var pt=Je!==void 0?Je:ht[ht.length-1],Pt=ht.find(function($t){return ke[$t]});return pt!==Pt?ke[Pt]:void 0}function Re(ke){return Te(ke,["placement","builtinPlacements","popupAlign","getPopupContainer","transitionName","direction"])}function rt(ke,ht,Je,pt){var Pt=De.useMemo(function(){return ke||function(Qt,dn){var Nn=Qt;return ht&&dn.type==="date"?ht(Nn,dn.today):Je&&dn.type==="month"?Je(Nn,dn.locale):dn.originNode}},[ke,Je,ht]),$t=De.useCallback(function(Qt,dn){return Pt(Qt,(0,dt.Z)((0,dt.Z)({},dn),{},{range:pt}))},[Pt,pt]);return $t}function ot(ke,ht){var Je=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],pt=De.useState([!1,!1]),Pt=(0,it.Z)(pt,2),$t=Pt[0],Qt=Pt[1],dn=function(cn,qn){Qt(function(ci){return ze(ci,qn,cn)})},Nn=De.useMemo(function(){return $t.map(function(jn,cn){if(jn)return!0;var qn=ke[cn];return qn?!!(!Je[cn]&&!qn||qn&&ht(qn,{activeIndex:cn})):!1})},[ke,$t,ht,Je]);return[Nn,dn]}function Ct(ke,ht,Je,pt,Pt){var $t="",Qt=[];return ke&&Qt.push(Pt?"hh":"HH"),ht&&Qt.push("mm"),Je&&Qt.push("ss"),$t=Qt.join(":"),pt&&($t+=".SSS"),Pt&&($t+=" A"),$t}function gt(ke,ht,Je,pt,Pt,$t){var Qt=ke.fieldDateTimeFormat,dn=ke.fieldDateFormat,Nn=ke.fieldTimeFormat,jn=ke.fieldMonthFormat,cn=ke.fieldYearFormat,qn=ke.fieldWeekFormat,ci=ke.fieldQuarterFormat,vt=ke.yearFormat,Un=ke.cellYearFormat,Jn=ke.cellQuarterFormat,In=ke.dayFormat,zn=ke.cellDateFormat,oi=Ct(ht,Je,pt,Pt,$t);return(0,dt.Z)((0,dt.Z)({},ke),{},{fieldDateTimeFormat:Qt||"YYYY-MM-DD ".concat(oi),fieldDateFormat:dn||"YYYY-MM-DD",fieldTimeFormat:Nn||oi,fieldMonthFormat:jn||"YYYY-MM",fieldYearFormat:cn||"YYYY",fieldWeekFormat:qn||"gggg-wo",fieldQuarterFormat:ci||"YYYY-[Q]Q",yearFormat:vt||"YYYY",cellYearFormat:Un||"YYYY",cellQuarterFormat:Jn||"[Q]Q",cellDateFormat:zn||In||"D"})}function kt(ke,ht){var Je=ht.showHour,pt=ht.showMinute,Pt=ht.showSecond,$t=ht.showMillisecond,Qt=ht.use12Hours;return De.useMemo(function(){return gt(ke,Je,pt,Pt,$t,Qt)},[ke,Je,pt,Pt,$t,Qt])}var Lt=we(28788);function Ot(ke,ht,Je){return Je!=null?Je:ht.some(function(pt){return ke.includes(pt)})}var Nt=["showNow","showHour","showMinute","showSecond","showMillisecond","use12Hours","hourStep","minuteStep","secondStep","millisecondStep","hideDisabledOptions","defaultValue","disabledHours","disabledMinutes","disabledSeconds","disabledMilliseconds","disabledTime","changeOnScroll","defaultOpenValue"];function tn(ke){var ht=Te(ke,Nt),Je=ke.format,pt=ke.picker,Pt=null;return Je&&(Pt=Je,Array.isArray(Pt)&&(Pt=Pt[0]),Pt=(0,Lt.Z)(Pt)==="object"?Pt.format:Pt),pt==="time"&&(ht.format=Pt),[ht,Pt]}function st(ke){return ke&&typeof ke=="string"}function He(ke,ht,Je,pt){return[ke,ht,Je,pt].some(function(Pt){return Pt!==void 0})}function Rt(ke,ht,Je,pt,Pt){var $t=ht,Qt=Je,dn=pt;if(!ke&&!$t&&!Qt&&!dn&&!Pt)$t=!0,Qt=!0,dn=!0;else if(ke){var Nn,jn,cn,qn=[$t,Qt,dn].some(function(Un){return Un===!1}),ci=[$t,Qt,dn].some(function(Un){return Un===!0}),vt=qn?!0:!ci;$t=(Nn=$t)!==null&&Nn!==void 0?Nn:vt,Qt=(jn=Qt)!==null&&jn!==void 0?jn:vt,dn=(cn=dn)!==null&&cn!==void 0?cn:vt}return[$t,Qt,dn,Pt]}function Zt(ke){var ht=ke.showTime,Je=tn(ke),pt=(0,it.Z)(Je,2),Pt=pt[0],$t=pt[1],Qt=ht&&(0,Lt.Z)(ht)==="object"?ht:{},dn=(0,dt.Z)((0,dt.Z)({defaultOpenValue:Qt.defaultOpenValue||Qt.defaultValue},Pt),Qt),Nn=dn.showMillisecond,jn=dn.showHour,cn=dn.showMinute,qn=dn.showSecond,ci=He(jn,cn,qn,Nn),vt=Rt(ci,jn,cn,qn,Nn),Un=(0,it.Z)(vt,3);return jn=Un[0],cn=Un[1],qn=Un[2],[dn,(0,dt.Z)((0,dt.Z)({},dn),{},{showHour:jn,showMinute:cn,showSecond:qn,showMillisecond:Nn}),dn.format,$t]}function _t(ke,ht,Je,pt,Pt){var $t=ke==="time";if(ke==="datetime"||$t){for(var Qt=pt,dn=Ie(ke,Pt,null),Nn=dn,jn=[ht,Je],cn=0;cn<jn.length;cn+=1){var qn=Ce(jn[cn])[0];if(st(qn)){Nn=qn;break}}var ci=Qt.showHour,vt=Qt.showMinute,Un=Qt.showSecond,Jn=Qt.showMillisecond,In=Qt.use12Hours,zn=Ot(Nn,["a","A","LT","LLL","LTS"],In),oi=He(ci,vt,Un,Jn);oi||(ci=Ot(Nn,["H","h","k","LT","LLL"]),vt=Ot(Nn,["m","LT","LLL"]),Un=Ot(Nn,["s","LTS"]),Jn=Ot(Nn,["SSS"]));var Wn=Rt(oi,ci,vt,Un,Jn),fi=(0,it.Z)(Wn,3);ci=fi[0],vt=fi[1],Un=fi[2];var pi=ht||Ct(ci,vt,Un,Jn,zn);return(0,dt.Z)((0,dt.Z)({},Qt),{},{format:pi,showHour:ci,showMinute:vt,showSecond:Un,showMillisecond:Jn,use12Hours:zn})}return null}function Mt(ke,ht,Je){if(ht===!1)return null;var pt=ht&&(0,Lt.Z)(ht)==="object"?ht:{};return pt.clearIcon||Je||De.createElement("span",{className:"".concat(ke,"-clear-btn")})}var jt=7;function an(ke,ht,Je){return!ke&&!ht||ke===ht?!0:!ke||!ht?!1:Je()}function Dn(ke,ht,Je){return an(ht,Je,function(){var pt=Math.floor(ke.getYear(ht)/10),Pt=Math.floor(ke.getYear(Je)/10);return pt===Pt})}function Dt(ke,ht,Je){return an(ht,Je,function(){return ke.getYear(ht)===ke.getYear(Je)})}function gn(ke,ht){var Je=Math.floor(ke.getMonth(ht)/3);return Je+1}function yt(ke,ht,Je){return an(ht,Je,function(){return Dt(ke,ht,Je)&&gn(ke,ht)===gn(ke,Je)})}function Zn(ke,ht,Je){return an(ht,Je,function(){return Dt(ke,ht,Je)&&ke.getMonth(ht)===ke.getMonth(Je)})}function vi(ke,ht,Je){return an(ht,Je,function(){return Dt(ke,ht,Je)&&Zn(ke,ht,Je)&&ke.getDate(ht)===ke.getDate(Je)})}function We(ke,ht,Je){return an(ht,Je,function(){return ke.getHour(ht)===ke.getHour(Je)&&ke.getMinute(ht)===ke.getMinute(Je)&&ke.getSecond(ht)===ke.getSecond(Je)})}function Fe(ke,ht,Je){return an(ht,Je,function(){return vi(ke,ht,Je)&&We(ke,ht,Je)&&ke.getMillisecond(ht)===ke.getMillisecond(Je)})}function xe(ke,ht,Je,pt){return an(Je,pt,function(){var Pt=ke.locale.getWeekFirstDate(ht,Je),$t=ke.locale.getWeekFirstDate(ht,pt);return Dt(ke,Pt,$t)&&ke.locale.getWeek(ht,Je)===ke.locale.getWeek(ht,pt)})}function Ne(ke,ht,Je,pt,Pt){switch(Pt){case"date":return vi(ke,Je,pt);case"week":return xe(ke,ht.locale,Je,pt);case"month":return Zn(ke,Je,pt);case"quarter":return yt(ke,Je,pt);case"year":return Dt(ke,Je,pt);case"decade":return Dn(ke,Je,pt);case"time":return We(ke,Je,pt);default:return Fe(ke,Je,pt)}}function _e(ke,ht,Je,pt){return!ht||!Je||!pt?!1:ke.isAfter(pt,ht)&&ke.isAfter(Je,pt)}function be(ke,ht,Je,pt,Pt){return Ne(ke,ht,Je,pt,Pt)?!0:ke.isAfter(Je,pt)}function tt(ke,ht,Je){var pt=ht.locale.getWeekFirstDay(ke),Pt=ht.setDate(Je,1),$t=ht.getWeekDay(Pt),Qt=ht.addDate(Pt,pt-$t);return ht.getMonth(Qt)===ht.getMonth(Je)&&ht.getDate(Qt)>1&&(Qt=ht.addDate(Qt,-7)),Qt}function Xt(ke,ht){var Je=ht.generateConfig,pt=ht.locale,Pt=ht.format;return ke?typeof Pt=="function"?Pt(ke):Je.locale.format(pt.locale,ke,Pt):""}function Bt(ke,ht,Je){var pt=ht,Pt=["getHour","getMinute","getSecond","getMillisecond"],$t=["setHour","setMinute","setSecond","setMillisecond"];return $t.forEach(function(Qt,dn){Je?pt=ke[Qt](pt,ke[Pt[dn]](Je)):pt=ke[Qt](pt,0)}),pt}function nn(ke,ht,Je,pt,Pt){var $t=(0,at.zX)(function(Qt,dn){return!!(Je&&Je(Qt,dn)||pt&&ke.isAfter(pt,Qt)&&!Ne(ke,ht,pt,Qt,dn.type)||Pt&&ke.isAfter(Qt,Pt)&&!Ne(ke,ht,Pt,Qt,dn.type))});return $t}function Tt(ke,ht,Je){return De.useMemo(function(){var pt=Ie(ke,ht,Je),Pt=Ce(pt),$t=Pt[0],Qt=(0,Lt.Z)($t)==="object"&&$t.type==="mask"?$t.format:null;return[Pt.map(function(dn){return typeof dn=="string"||typeof dn=="function"?dn:dn.format}),Qt]},[ke,ht,Je])}function bt(ke,ht,Je){return typeof ke[0]=="function"||Je?!0:ht}function zt(ke,ht,Je,pt){var Pt=(0,at.zX)(function($t,Qt){var dn=(0,dt.Z)({type:ht},Qt);if(delete dn.activeIndex,!ke.isValidate($t)||Je&&Je($t,dn))return!0;if((ht==="date"||ht==="time")&&pt){var Nn,jn=Qt&&Qt.activeIndex===1?"end":"start",cn=((Nn=pt.disabledTime)===null||Nn===void 0?void 0:Nn.call(pt,$t,jn,{from:dn.from}))||{},qn=cn.disabledHours,ci=cn.disabledMinutes,vt=cn.disabledSeconds,Un=cn.disabledMilliseconds,Jn=pt.disabledHours,In=pt.disabledMinutes,zn=pt.disabledSeconds,oi=qn||Jn,Wn=ci||In,fi=vt||zn,pi=ke.getHour($t),ai=ke.getMinute($t),Wi=ke.getSecond($t),pr=ke.getMillisecond($t);if(oi&&oi().includes(pi)||Wn&&Wn(pi).includes(ai)||fi&&fi(pi,ai).includes(Wi)||Un&&Un(pi,ai,Wi).includes(pr))return!0}return!1});return Pt}function qt(ke){var ht=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Je=De.useMemo(function(){var pt=ke&&Ce(ke);return ht&&pt&&(pt[1]=pt[1]||pt[0]),pt},[ke,ht]);return Je}function pn(ke,ht){var Je=ke.generateConfig,pt=ke.locale,Pt=ke.picker,$t=Pt===void 0?"date":Pt,Qt=ke.prefixCls,dn=Qt===void 0?"rc-picker":Qt,Nn=ke.styles,jn=Nn===void 0?{}:Nn,cn=ke.classNames,qn=cn===void 0?{}:cn,ci=ke.order,vt=ci===void 0?!0:ci,Un=ke.components,Jn=Un===void 0?{}:Un,In=ke.inputRender,zn=ke.allowClear,oi=ke.clearIcon,Wn=ke.needConfirm,fi=ke.multiple,pi=ke.format,ai=ke.inputReadOnly,Wi=ke.disabledDate,pr=ke.minDate,or=ke.maxDate,tr=ke.showTime,Pi=ke.value,fr=ke.defaultValue,nr=ke.pickerValue,lr=ke.defaultPickerValue,sr=qt(Pi),mr=qt(fr),En=qt(nr),Mi=qt(lr),Ti=$t==="date"&&tr?"datetime":$t,Vi=Ti==="time"||Ti==="datetime",Zi=Vi||fi,Oi=Wn!=null?Wn:Vi,Ln=Zt(ke),ir=(0,it.Z)(Ln,4),hr=ir[0],Mr=ir[1],An=ir[2],Fi=ir[3],_i=kt(pt,Mr),Er=De.useMemo(function(){return _t(Ti,An,Fi,hr,_i)},[Ti,An,Fi,hr,_i]),oo=De.useMemo(function(){return(0,dt.Z)((0,dt.Z)({},ke),{},{prefixCls:dn,locale:_i,picker:$t,styles:jn,classNames:qn,order:vt,components:(0,dt.Z)({input:In},Jn),clearIcon:Mt(dn,zn,oi),showTime:Er,value:sr,defaultValue:mr,pickerValue:En,defaultPickerValue:Mi},ht==null?void 0:ht())},[ke]),vo=Tt(Ti,_i,pi),No=(0,it.Z)(vo,2),$r=No[0],ea=No[1],Ui=bt($r,ai,fi),eo=nn(Je,pt,Wi,pr,or),co=zt(Je,$t,eo,Er),bo=De.useMemo(function(){return(0,dt.Z)((0,dt.Z)({},oo),{},{needConfirm:Oi,inputReadOnly:Ui,disabledDate:eo})},[oo,Oi,Ui,eo]);return[bo,Ti,Zi,$r,ea,co]}var ei=we(16089);function wn(ke,ht,Je){var pt=(0,at.C8)(ht,{value:ke}),Pt=(0,it.Z)(pt,2),$t=Pt[0],Qt=Pt[1],dn=De.useRef(ke),Nn=De.useRef(),jn=function(){ei.Z.cancel(Nn.current)},cn=(0,at.zX)(function(){Qt(dn.current),Je&&$t!==dn.current&&Je(dn.current)}),qn=(0,at.zX)(function(ci,vt){jn(),dn.current=ci,ci||vt?cn():Nn.current=(0,ei.Z)(cn)});return De.useEffect(function(){return jn},[]),[$t,qn]}function Fn(ke,ht){var Je=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],pt=arguments.length>3?arguments[3]:void 0,Pt=Je.every(function(cn){return cn})?!1:ke,$t=wn(Pt,ht||!1,pt),Qt=(0,it.Z)($t,2),dn=Qt[0],Nn=Qt[1];function jn(cn){var qn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(!qn.inherit||dn)&&Nn(cn,qn.force)}return[dn,jn]}function Ci(ke){var ht=De.useRef();return De.useImperativeHandle(ke,function(){var Je;return{nativeElement:(Je=ht.current)===null||Je===void 0?void 0:Je.nativeElement,focus:function(Pt){var $t;($t=ht.current)===null||$t===void 0||$t.focus(Pt)},blur:function(){var Pt;(Pt=ht.current)===null||Pt===void 0||Pt.blur()}}}),ht}function $n(ke,ht){return De.useMemo(function(){return ke||(ht?((0,nt.ZP)(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(ht).map(function(Je){var pt=(0,it.Z)(Je,2),Pt=pt[0],$t=pt[1];return{label:Pt,value:$t}})):[])},[ke,ht])}function bi(ke,ht){var Je=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,pt=De.useRef(ht);pt.current=ht,(0,Ze.o)(function(){if(ke)pt.current(ke);else{var Pt=(0,ei.Z)(function(){pt.current(ke)},Je);return function(){ei.Z.cancel(Pt)}}},[ke])}function hi(ke){var ht=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Je=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,pt=De.useState(0),Pt=(0,it.Z)(pt,2),$t=Pt[0],Qt=Pt[1],dn=De.useState(!1),Nn=(0,it.Z)(dn,2),jn=Nn[0],cn=Nn[1],qn=De.useRef([]),ci=De.useRef(null),vt=De.useRef(null),Un=function(fi){ci.current=fi},Jn=function(fi){return ci.current===fi},In=function(fi){cn(fi)},zn=function(fi){return fi&&(vt.current=fi),vt.current},oi=function(fi){var pi=qn.current,ai=new Set(pi.filter(function(pr){return fi[pr]||ht[pr]})),Wi=pi[pi.length-1]===0?1:0;return ai.size>=2||ke[Wi]?null:Wi};return bi(jn||Je,function(){jn||(qn.current=[],Un(null))}),De.useEffect(function(){jn&&qn.current.push($t)},[jn,$t]),[jn,In,zn,$t,Qt,oi,qn.current,Un,Jn]}function Di(ke,ht,Je,pt,Pt,$t){var Qt=Je[Je.length-1],dn=function(jn,cn){var qn=(0,it.Z)(ke,2),ci=qn[0],vt=qn[1],Un=(0,dt.Z)((0,dt.Z)({},cn),{},{from:Oe(ke,Je)});return Qt===1&&ht[0]&&ci&&!Ne(pt,Pt,ci,jn,Un.type)&&pt.isAfter(ci,jn)||Qt===0&&ht[1]&&vt&&!Ne(pt,Pt,vt,jn,Un.type)&&pt.isAfter(jn,vt)?!0:$t==null?void 0:$t(jn,Un)};return dn}function Gi(ke,ht,Je,pt){switch(ht){case"date":case"week":return ke.addMonth(Je,pt);case"month":case"quarter":return ke.addYear(Je,pt);case"year":return ke.addYear(Je,pt*10);case"decade":return ke.addYear(Je,pt*100);default:return Je}}var Ji=[];function Zr(ke,ht,Je,pt,Pt,$t,Qt,dn){var Nn=arguments.length>8&&arguments[8]!==void 0?arguments[8]:Ji,jn=arguments.length>9&&arguments[9]!==void 0?arguments[9]:Ji,cn=arguments.length>10&&arguments[10]!==void 0?arguments[10]:Ji,qn=arguments.length>11?arguments[11]:void 0,ci=arguments.length>12?arguments[12]:void 0,vt=arguments.length>13?arguments[13]:void 0,Un=Qt==="time",Jn=$t||0,In=function(En){var Mi=ke.getNow();return Un&&(Mi=Bt(ke,Mi)),Nn[En]||Je[En]||Mi},zn=(0,it.Z)(jn,2),oi=zn[0],Wn=zn[1],fi=(0,at.C8)(function(){return In(0)},{value:oi}),pi=(0,it.Z)(fi,2),ai=pi[0],Wi=pi[1],pr=(0,at.C8)(function(){return In(1)},{value:Wn}),or=(0,it.Z)(pr,2),tr=or[0],Pi=or[1],fr=De.useMemo(function(){var mr=[ai,tr][Jn];return Un?mr:Bt(ke,mr,cn[Jn])},[Un,ai,tr,Jn,ke,cn]),nr=function(En){var Mi=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"panel",Ti=[Wi,Pi][Jn];Ti(En);var Vi=[ai,tr];Vi[Jn]=En,qn&&(!Ne(ke,ht,ai,Vi[0],Qt)||!Ne(ke,ht,tr,Vi[1],Qt))&&qn(Vi,{source:Mi,range:Jn===1?"end":"start",mode:pt})},lr=function(En,Mi){if(dn){var Ti={date:"month",week:"month",month:"year",quarter:"year"},Vi=Ti[Qt];if(Vi&&!Ne(ke,ht,En,Mi,Vi))return Gi(ke,Qt,Mi,-1);if(Qt==="year"&&En){var Zi=Math.floor(ke.getYear(En)/10),Oi=Math.floor(ke.getYear(Mi)/10);if(Zi!==Oi)return Gi(ke,Qt,Mi,-1)}}return Mi},sr=De.useRef(null);return(0,Ze.Z)(function(){if(Pt&&!Nn[Jn]){var mr=Un?null:ke.getNow();if(sr.current!==null&&sr.current!==Jn?mr=[ai,tr][Jn^1]:Je[Jn]?mr=Jn===0?Je[0]:lr(Je[0],Je[1]):Je[Jn^1]&&(mr=Je[Jn^1]),mr){ci&&ke.isAfter(ci,mr)&&(mr=ci);var En=dn?Gi(ke,Qt,mr,1):mr;vt&&ke.isAfter(En,vt)&&(mr=dn?Gi(ke,Qt,vt,-1):vt),nr(mr,"reset")}}},[Pt,Jn,Je[Jn]]),De.useEffect(function(){Pt?sr.current=Jn:sr.current=null},[Pt,Jn]),(0,Ze.Z)(function(){Pt&&Nn&&Nn[Jn]&&nr(Nn[Jn],"reset")},[Pt,Jn]),[fr,nr]}function qi(ke,ht){var Je=De.useRef(ke),pt=De.useState({}),Pt=(0,it.Z)(pt,2),$t=Pt[1],Qt=function(jn){return jn&&ht!==void 0?ht:Je.current},dn=function(jn){Je.current=jn,$t({})};return[Qt,dn,Qt(!0)]}var ii=[];function so(ke,ht,Je){var pt=function(Qt){return Qt.map(function(dn){return Xt(dn,{generateConfig:ke,locale:ht,format:Je[0]})})},Pt=function(Qt,dn){for(var Nn=Math.max(Qt.length,dn.length),jn=-1,cn=0;cn<Nn;cn+=1){var qn=Qt[cn]||null,ci=dn[cn]||null;if(qn!==ci&&!Fe(ke,qn,ci)){jn=cn;break}}return[jn<0,jn!==0]};return[pt,Pt]}function Kr(ke,ht){return(0,Ye.Z)(ke).sort(function(Je,pt){return ht.isAfter(Je,pt)?1:-1})}function qr(ke){var ht=qi(ke),Je=(0,it.Z)(ht,2),pt=Je[0],Pt=Je[1],$t=(0,at.zX)(function(){Pt(ke)});return De.useEffect(function(){$t()},[ke]),[pt,Pt]}function io(ke,ht,Je,pt,Pt,$t,Qt,dn,Nn){var jn=(0,at.C8)($t,{value:Qt}),cn=(0,it.Z)(jn,2),qn=cn[0],ci=cn[1],vt=qn||ii,Un=qr(vt),Jn=(0,it.Z)(Un,2),In=Jn[0],zn=Jn[1],oi=so(ke,ht,Je),Wn=(0,it.Z)(oi,2),fi=Wn[0],pi=Wn[1],ai=(0,at.zX)(function(pr){var or=(0,Ye.Z)(pr);if(pt)for(var tr=0;tr<2;tr+=1)or[tr]=or[tr]||null;else Pt&&(or=Kr(or.filter(function(mr){return mr}),ke));var Pi=pi(In(),or),fr=(0,it.Z)(Pi,2),nr=fr[0],lr=fr[1];if(!nr&&(zn(or),dn)){var sr=fi(or);dn(or,sr,{range:lr?"end":"start"})}}),Wi=function(){Nn&&Nn(In())};return[vt,ci,In,ai,Wi]}function Fo(ke,ht,Je,pt,Pt,$t,Qt,dn,Nn,jn){var cn=ke.generateConfig,qn=ke.locale,ci=ke.picker,vt=ke.onChange,Un=ke.allowEmpty,Jn=ke.order,In=$t.some(function(nr){return nr})?!1:Jn,zn=so(cn,qn,Qt),oi=(0,it.Z)(zn,2),Wn=oi[0],fi=oi[1],pi=qi(ht),ai=(0,it.Z)(pi,2),Wi=ai[0],pr=ai[1],or=(0,at.zX)(function(){pr(ht)});De.useEffect(function(){or()},[ht]);var tr=(0,at.zX)(function(nr){var lr=nr===null,sr=(0,Ye.Z)(nr||Wi());if(lr)for(var mr=Math.max($t.length,sr.length),En=0;En<mr;En+=1)$t[En]||(sr[En]=null);In&&sr[0]&&sr[1]&&(sr=Kr(sr,cn)),Pt(sr);var Mi=sr,Ti=(0,it.Z)(Mi,2),Vi=Ti[0],Zi=Ti[1],Oi=!Vi,Ln=!Zi,ir=Un?(!Oi||Un[0])&&(!Ln||Un[1]):!0,hr=!Jn||Oi||Ln||Ne(cn,qn,Vi,Zi,ci)||cn.isAfter(Zi,Vi),Mr=($t[0]||!Vi||!jn(Vi,{activeIndex:0}))&&($t[1]||!Zi||!jn(Zi,{from:Vi,activeIndex:1})),An=lr||ir&&hr&&Mr;if(An){Je(sr);var Fi=fi(sr,ht),_i=(0,it.Z)(Fi,1),Er=_i[0];vt&&!Er&&vt(lr&&sr.every(function(oo){return!oo})?null:sr,Wn(sr))}return An}),Pi=(0,at.zX)(function(nr,lr){var sr=ze(Wi(),nr,pt()[nr]);pr(sr),lr&&tr()}),fr=!dn&&!Nn;return bi(!fr,function(){fr&&(tr(),Pt(ht),or())},2),[Pi,tr]}function lo(ke,ht,Je,pt,Pt){return ht!=="date"&&ht!=="time"?!1:Je!==void 0?Je:pt!==void 0?pt:!Pt&&(ke==="date"||ke==="time")}var Ar=we(29301);function ro(ke,ht,Je,pt,Pt,$t){var Qt=ke;function dn(qn,ci,vt){var Un=$t[qn](Qt),Jn=vt.find(function(Wn){return Wn.value===Un});if(!Jn||Jn.disabled){var In=vt.filter(function(Wn){return!Wn.disabled}),zn=(0,Ye.Z)(In).reverse(),oi=zn.find(function(Wn){return Wn.value<=Un})||In[0];oi&&(Un=oi.value,Qt=$t[ci](Qt,Un))}return Un}var Nn=dn("getHour","setHour",ht()),jn=dn("getMinute","setMinute",Je(Nn)),cn=dn("getSecond","setSecond",pt(Nn,jn));return dn("getMillisecond","setMillisecond",Pt(Nn,jn,cn)),Qt}function Le(){return[]}function xn(ke,ht){for(var Je=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,pt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,Pt=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],$t=arguments.length>5&&arguments[5]!==void 0?arguments[5]:2,Qt=[],dn=Je>=1?Je|0:1,Nn=ke;Nn<=ht;Nn+=dn){var jn=Pt.includes(Nn);(!jn||!pt)&&Qt.push({label:ye(Nn,$t),value:Nn,disabled:jn})}return Qt}function Qn(ke){var ht=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Je=arguments.length>2?arguments[2]:void 0,pt=ht||{},Pt=pt.use12Hours,$t=pt.hourStep,Qt=$t===void 0?1:$t,dn=pt.minuteStep,Nn=dn===void 0?1:dn,jn=pt.secondStep,cn=jn===void 0?1:jn,qn=pt.millisecondStep,ci=qn===void 0?100:qn,vt=pt.hideDisabledOptions,Un=pt.disabledTime,Jn=pt.disabledHours,In=pt.disabledMinutes,zn=pt.disabledSeconds,oi=De.useMemo(function(){return Je||ke.getNow()},[Je,ke]);if(0)var Wn,fi,pi;var ai=De.useCallback(function(Zi){var Oi=(Un==null?void 0:Un(Zi))||{};return[Oi.disabledHours||Jn||Le,Oi.disabledMinutes||In||Le,Oi.disabledSeconds||zn||Le,Oi.disabledMilliseconds||Le]},[Un,Jn,In,zn]),Wi=De.useMemo(function(){return ai(oi)},[oi,ai]),pr=(0,it.Z)(Wi,4),or=pr[0],tr=pr[1],Pi=pr[2],fr=pr[3],nr=De.useCallback(function(Zi,Oi,Ln,ir){var hr=xn(0,23,Qt,vt,Zi()),Mr=Pt?hr.map(function(Er){return(0,dt.Z)((0,dt.Z)({},Er),{},{label:ye(Er.value%12||12,2)})}):hr,An=function(oo){return xn(0,59,Nn,vt,Oi(oo))},Fi=function(oo,vo){return xn(0,59,cn,vt,Ln(oo,vo))},_i=function(oo,vo,No){return xn(0,999,ci,vt,ir(oo,vo,No),3)};return[Mr,An,Fi,_i]},[vt,Qt,Pt,ci,Nn,cn]),lr=De.useMemo(function(){return nr(or,tr,Pi,fr)},[nr,or,tr,Pi,fr]),sr=(0,it.Z)(lr,4),mr=sr[0],En=sr[1],Mi=sr[2],Ti=sr[3],Vi=function(Oi,Ln){var ir=function(){return mr},hr=En,Mr=Mi,An=Ti;if(Ln){var Fi=ai(Ln),_i=(0,it.Z)(Fi,4),Er=_i[0],oo=_i[1],vo=_i[2],No=_i[3],$r=nr(Er,oo,vo,No),ea=(0,it.Z)($r,4),Ui=ea[0],eo=ea[1],co=ea[2],bo=ea[3];ir=function(){return Ui},hr=eo,Mr=co,An=bo}var na=ro(Oi,ir,hr,Mr,An,ke);return na};return[Vi,mr,En,Mi,Ti]}function gi(ke){var ht=ke.mode,Je=ke.internalMode,pt=ke.renderExtraFooter,Pt=ke.showNow,$t=ke.showTime,Qt=ke.onSubmit,dn=ke.onNow,Nn=ke.invalid,jn=ke.needConfirm,cn=ke.generateConfig,qn=ke.disabledDate,ci=De.useContext(ue),vt=ci.prefixCls,Un=ci.locale,Jn=ci.button,In=Jn===void 0?"button":Jn,zn=cn.getNow(),oi=Qn(cn,$t,zn),Wn=(0,it.Z)(oi,1),fi=Wn[0],pi=pt==null?void 0:pt(ht),ai=qn(zn,{type:ht}),Wi=function(){if(!ai){var lr=fi(zn);dn(lr)}},pr="".concat(vt,"-now"),or="".concat(pr,"-btn"),tr=Pt&&De.createElement("li",{className:pr},De.createElement("a",{className:Ee()(or,ai&&"".concat(or,"-disabled")),"aria-disabled":ai,onClick:Wi},Je==="date"?Un.today:Un.now)),Pi=jn&&De.createElement("li",{className:"".concat(vt,"-ok")},De.createElement(In,{disabled:Nn,onClick:Qt},Un.ok)),fr=(tr||Pi)&&De.createElement("ul",{className:"".concat(vt,"-ranges")},tr,Pi);return!pi&&!fr?null:De.createElement("div",{className:"".concat(vt,"-footer")},pi&&De.createElement("div",{className:"".concat(vt,"-footer-extra")},pi),fr)}function yi(ke,ht,Je){function pt(Pt,$t){var Qt=Pt.findIndex(function(Nn){return Ne(ke,ht,Nn,$t,Je)});if(Qt===-1)return[].concat((0,Ye.Z)(Pt),[$t]);var dn=(0,Ye.Z)(Pt);return dn.splice(Qt,1),dn}return pt}var ti=De.createContext(null);function Yi(){return De.useContext(ti)}function cr(ke,ht){var Je=ke.prefixCls,pt=ke.generateConfig,Pt=ke.locale,$t=ke.disabledDate,Qt=ke.minDate,dn=ke.maxDate,Nn=ke.cellRender,jn=ke.hoverValue,cn=ke.hoverRangeValue,qn=ke.onHover,ci=ke.values,vt=ke.pickerValue,Un=ke.onSelect,Jn=ke.prevIcon,In=ke.nextIcon,zn=ke.superPrevIcon,oi=ke.superNextIcon,Wn=pt.getNow(),fi={now:Wn,values:ci,pickerValue:vt,prefixCls:Je,disabledDate:$t,minDate:Qt,maxDate:dn,cellRender:Nn,hoverValue:jn,hoverRangeValue:cn,onHover:qn,locale:Pt,generateConfig:pt,onSelect:Un,panelType:ht,prevIcon:Jn,nextIcon:In,superPrevIcon:zn,superNextIcon:oi};return[fi,Wn]}var Sr=De.createContext({});function Jt(ke){for(var ht=ke.rowNum,Je=ke.colNum,pt=ke.baseDate,Pt=ke.getCellDate,$t=ke.prefixColumn,Qt=ke.rowClassName,dn=ke.titleFormat,Nn=ke.getCellText,jn=ke.getCellClassName,cn=ke.headerCells,qn=ke.cellSelection,ci=qn===void 0?!0:qn,vt=ke.disabledDate,Un=Yi(),Jn=Un.prefixCls,In=Un.panelType,zn=Un.now,oi=Un.disabledDate,Wn=Un.cellRender,fi=Un.onHover,pi=Un.hoverValue,ai=Un.hoverRangeValue,Wi=Un.generateConfig,pr=Un.values,or=Un.locale,tr=Un.onSelect,Pi=vt||oi,fr="".concat(Jn,"-cell"),nr=De.useContext(Sr),lr=nr.onCellDblClick,sr=function(Ln){return pr.some(function(ir){return ir&&Ne(Wi,or,Ln,ir,In)})},mr=[],En=0;En<ht;En+=1){for(var Mi=[],Ti=void 0,Vi=function(){var Ln=En*Je+Zi,ir=Pt(pt,Ln),hr=Pi==null?void 0:Pi(ir,{type:In});Zi===0&&(Ti=ir,$t&&Mi.push($t(Ti)));var Mr=!1,An=!1,Fi=!1;if(ci&&ai){var _i=(0,it.Z)(ai,2),Er=_i[0],oo=_i[1];Mr=_e(Wi,Er,oo,ir),An=Ne(Wi,or,ir,Er,In),Fi=Ne(Wi,or,ir,oo,In)}var vo=dn?Xt(ir,{locale:or,format:dn,generateConfig:Wi}):void 0,No=De.createElement("div",{className:"".concat(fr,"-inner")},Nn(ir));Mi.push(De.createElement("td",{key:Zi,title:vo,className:Ee()(fr,(0,dt.Z)((0,wt.Z)((0,wt.Z)((0,wt.Z)((0,wt.Z)((0,wt.Z)((0,wt.Z)({},"".concat(fr,"-disabled"),hr),"".concat(fr,"-hover"),(pi||[]).some(function($r){return Ne(Wi,or,ir,$r,In)})),"".concat(fr,"-in-range"),Mr&&!An&&!Fi),"".concat(fr,"-range-start"),An),"".concat(fr,"-range-end"),Fi),"".concat(Jn,"-cell-selected"),!ai&&In!=="week"&&sr(ir)),jn(ir))),onClick:function(){hr||tr(ir)},onDoubleClick:function(){!hr&&lr&&lr()},onMouseEnter:function(){hr||fi==null||fi(ir)},onMouseLeave:function(){hr||fi==null||fi(null)}},Wn?Wn(ir,{prefixCls:Jn,originNode:No,today:zn,type:In,locale:or}):No))},Zi=0;Zi<Je;Zi+=1)Vi();mr.push(De.createElement("tr",{key:En,className:Qt==null?void 0:Qt(Ti)},Mi))}return De.createElement("div",{className:"".concat(Jn,"-body")},De.createElement("table",{className:"".concat(Jn,"-content")},cn&&De.createElement("thead",null,De.createElement("tr",null,cn)),De.createElement("tbody",null,mr)))}var Vt={visibility:"hidden"};function It(ke){var ht=ke.offset,Je=ke.superOffset,pt=ke.onChange,Pt=ke.getStart,$t=ke.getEnd,Qt=ke.children,dn=Yi(),Nn=dn.prefixCls,jn=dn.prevIcon,cn=jn===void 0?"\u2039":jn,qn=dn.nextIcon,ci=qn===void 0?"\u203A":qn,vt=dn.superPrevIcon,Un=vt===void 0?"\xAB":vt,Jn=dn.superNextIcon,In=Jn===void 0?"\xBB":Jn,zn=dn.minDate,oi=dn.maxDate,Wn=dn.generateConfig,fi=dn.locale,pi=dn.pickerValue,ai=dn.panelType,Wi="".concat(Nn,"-header"),pr=De.useContext(Sr),or=pr.hidePrev,tr=pr.hideNext,Pi=pr.hideHeader,fr=De.useMemo(function(){if(!zn||!ht||!$t)return!1;var Oi=$t(ht(-1,pi));return!be(Wn,fi,Oi,zn,ai)},[zn,ht,pi,$t,Wn,fi,ai]),nr=De.useMemo(function(){if(!zn||!Je||!$t)return!1;var Oi=$t(Je(-1,pi));return!be(Wn,fi,Oi,zn,ai)},[zn,Je,pi,$t,Wn,fi,ai]),lr=De.useMemo(function(){if(!oi||!ht||!Pt)return!1;var Oi=Pt(ht(1,pi));return!be(Wn,fi,oi,Oi,ai)},[oi,ht,pi,Pt,Wn,fi,ai]),sr=De.useMemo(function(){if(!oi||!Je||!Pt)return!1;var Oi=Pt(Je(1,pi));return!be(Wn,fi,oi,Oi,ai)},[oi,Je,pi,Pt,Wn,fi,ai]),mr=function(Ln){ht&&pt(ht(Ln,pi))},En=function(Ln){Je&&pt(Je(Ln,pi))};if(Pi)return null;var Mi="".concat(Wi,"-prev-btn"),Ti="".concat(Wi,"-next-btn"),Vi="".concat(Wi,"-super-prev-btn"),Zi="".concat(Wi,"-super-next-btn");return De.createElement("div",{className:Wi},Je&&De.createElement("button",{type:"button","aria-label":fi.previousYear,onClick:function(){return En(-1)},tabIndex:-1,className:Ee()(Vi,nr&&"".concat(Vi,"-disabled")),disabled:nr,style:or?Vt:{}},Un),ht&&De.createElement("button",{type:"button","aria-label":fi.previousMonth,onClick:function(){return mr(-1)},tabIndex:-1,className:Ee()(Mi,fr&&"".concat(Mi,"-disabled")),disabled:fr,style:or?Vt:{}},cn),De.createElement("div",{className:"".concat(Wi,"-view")},Qt),ht&&De.createElement("button",{type:"button","aria-label":fi.nextMonth,onClick:function(){return mr(1)},tabIndex:-1,className:Ee()(Ti,lr&&"".concat(Ti,"-disabled")),disabled:lr,style:tr?Vt:{}},ci),Je&&De.createElement("button",{type:"button","aria-label":fi.nextYear,onClick:function(){return En(1)},tabIndex:-1,className:Ee()(Zi,sr&&"".concat(Zi,"-disabled")),disabled:sr,style:tr?Vt:{}},In))}var Ei=It;function Ii(ke){var ht=ke.prefixCls,Je=ke.panelName,pt=Je===void 0?"date":Je,Pt=ke.locale,$t=ke.generateConfig,Qt=ke.pickerValue,dn=ke.onPickerValueChange,Nn=ke.onModeChange,jn=ke.mode,cn=jn===void 0?"date":jn,qn=ke.disabledDate,ci=ke.onSelect,vt=ke.onHover,Un=ke.showWeek,Jn="".concat(ht,"-").concat(pt,"-panel"),In="".concat(ht,"-cell"),zn=cn==="week",oi=cr(ke,cn),Wn=(0,it.Z)(oi,2),fi=Wn[0],pi=Wn[1],ai=$t.locale.getWeekFirstDay(Pt.locale),Wi=$t.setDate(Qt,1),pr=tt(Pt.locale,$t,Wi),or=$t.getMonth(Qt),tr=Un===void 0?zn:Un,Pi=tr?function(Oi){var Ln=qn==null?void 0:qn(Oi,{type:"week"});return De.createElement("td",{key:"week",className:Ee()(In,"".concat(In,"-week"),(0,wt.Z)({},"".concat(In,"-disabled"),Ln)),onClick:function(){Ln||ci(Oi)},onMouseEnter:function(){Ln||vt==null||vt(Oi)},onMouseLeave:function(){Ln||vt==null||vt(null)}},De.createElement("div",{className:"".concat(In,"-inner")},$t.locale.getWeek(Pt.locale,Oi)))}:null,fr=[],nr=Pt.shortWeekDays||($t.locale.getShortWeekDays?$t.locale.getShortWeekDays(Pt.locale):[]);Pi&&fr.push(De.createElement("th",{key:"empty"},De.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},Pt.week)));for(var lr=0;lr<jt;lr+=1)fr.push(De.createElement("th",{key:lr},nr[(lr+ai)%jt]));var sr=function(Ln,ir){return $t.addDate(Ln,ir)},mr=function(Ln){return Xt(Ln,{locale:Pt,format:Pt.cellDateFormat,generateConfig:$t})},En=function(Ln){var ir=(0,wt.Z)((0,wt.Z)({},"".concat(ht,"-cell-in-view"),Zn($t,Ln,Qt)),"".concat(ht,"-cell-today"),vi($t,Ln,pi));return ir},Mi=Pt.shortMonths||($t.locale.getShortMonths?$t.locale.getShortMonths(Pt.locale):[]),Ti=De.createElement("button",{type:"button","aria-label":Pt.yearSelect,key:"year",onClick:function(){Nn("year",Qt)},tabIndex:-1,className:"".concat(ht,"-year-btn")},Xt(Qt,{locale:Pt,format:Pt.yearFormat,generateConfig:$t})),Vi=De.createElement("button",{type:"button","aria-label":Pt.monthSelect,key:"month",onClick:function(){Nn("month",Qt)},tabIndex:-1,className:"".concat(ht,"-month-btn")},Pt.monthFormat?Xt(Qt,{locale:Pt,format:Pt.monthFormat,generateConfig:$t}):Mi[or]),Zi=Pt.monthBeforeYear?[Vi,Ti]:[Ti,Vi];return De.createElement(ti.Provider,{value:fi},De.createElement("div",{className:Ee()(Jn,Un&&"".concat(Jn,"-show-week"))},De.createElement(Ei,{offset:function(Ln){return $t.addMonth(Qt,Ln)},superOffset:function(Ln){return $t.addYear(Qt,Ln)},onChange:dn,getStart:function(Ln){return $t.setDate(Ln,1)},getEnd:function(Ln){var ir=$t.setDate(Ln,1);return ir=$t.addMonth(ir,1),$t.addDate(ir,-1)}},Zi),De.createElement(Jt,(0,ve.Z)({titleFormat:Pt.fieldDateFormat},ke,{colNum:jt,rowNum:6,baseDate:pr,headerCells:fr,getCellDate:sr,getCellText:mr,getCellClassName:En,prefixColumn:Pi,cellSelection:!zn}))))}var ji=we(29194),Xn=1/3;function Ai(ke,ht){var Je=De.useRef(!1),pt=De.useRef(null),Pt=De.useRef(null),$t=function(){return Je.current},Qt=function(){ei.Z.cancel(pt.current),Je.current=!1},dn=De.useRef(),Nn=function(){var qn=ke.current;if(Pt.current=null,dn.current=0,qn){var ci=qn.querySelector('[data-value="'.concat(ht,'"]')),vt=qn.querySelector("li"),Un=function Jn(){Qt(),Je.current=!0,dn.current+=1;var In=qn.scrollTop,zn=vt.offsetTop,oi=ci.offsetTop,Wn=oi-zn;if(oi===0&&ci!==vt||!(0,ji.Z)(qn)){dn.current<=5&&(pt.current=(0,ei.Z)(Jn));return}var fi=In+(Wn-In)*Xn,pi=Math.abs(Wn-fi);if(Pt.current!==null&&Pt.current<pi){Qt();return}if(Pt.current=pi,pi<=1){qn.scrollTop=Wn,Qt();return}qn.scrollTop=fi,pt.current=(0,ei.Z)(Jn)};ci&&vt&&Un()}},jn=(0,at.zX)(Nn);return[jn,Qt,$t]}var ur=300;function Tr(ke){return ke.map(function(ht){var Je=ht.value,pt=ht.label,Pt=ht.disabled;return[Je,pt,Pt].join(",")}).join(";")}function br(ke){var ht=ke.units,Je=ke.value,pt=ke.optionalValue,Pt=ke.type,$t=ke.onChange,Qt=ke.onHover,dn=ke.onDblClick,Nn=ke.changeOnScroll,jn=Yi(),cn=jn.prefixCls,qn=jn.cellRender,ci=jn.now,vt=jn.locale,Un="".concat(cn,"-time-panel"),Jn="".concat(cn,"-time-panel-cell"),In=De.useRef(null),zn=De.useRef(),oi=function(){clearTimeout(zn.current)},Wn=Ai(In,Je!=null?Je:pt),fi=(0,it.Z)(Wn,3),pi=fi[0],ai=fi[1],Wi=fi[2];(0,Ze.Z)(function(){return pi(),oi(),function(){ai(),oi()}},[Je,pt,Tr(ht)]);var pr=function(Pi){oi();var fr=Pi.target;!Wi()&&Nn&&(zn.current=setTimeout(function(){var nr=In.current,lr=nr.querySelector("li").offsetTop,sr=Array.from(nr.querySelectorAll("li")),mr=sr.map(function(Zi){return Zi.offsetTop-lr}),En=mr.map(function(Zi,Oi){return ht[Oi].disabled?Number.MAX_SAFE_INTEGER:Math.abs(Zi-fr.scrollTop)}),Mi=Math.min.apply(Math,(0,Ye.Z)(En)),Ti=En.findIndex(function(Zi){return Zi===Mi}),Vi=ht[Ti];Vi&&!Vi.disabled&&$t(Vi.value)},ur))},or="".concat(Un,"-column");return De.createElement("ul",{className:or,ref:In,"data-type":Pt,onScroll:pr},ht.map(function(tr){var Pi=tr.label,fr=tr.value,nr=tr.disabled,lr=De.createElement("div",{className:"".concat(Jn,"-inner")},Pi);return De.createElement("li",{key:fr,className:Ee()(Jn,(0,wt.Z)((0,wt.Z)({},"".concat(Jn,"-selected"),Je===fr),"".concat(Jn,"-disabled"),nr)),onClick:function(){nr||$t(fr)},onDoubleClick:function(){!nr&&dn&&dn()},onMouseEnter:function(){Qt(fr)},onMouseLeave:function(){Qt(null)},"data-value":fr},qn?qn(fr,{prefixCls:cn,originNode:lr,today:ci,type:"time",subType:Pt,locale:vt}):lr)}))}function et(ke){return ke<12}function Ft(ke){var ht=ke.showHour,Je=ke.showMinute,pt=ke.showSecond,Pt=ke.showMillisecond,$t=ke.use12Hours,Qt=ke.changeOnScroll,dn=Yi(),Nn=dn.prefixCls,jn=dn.values,cn=dn.generateConfig,qn=dn.locale,ci=dn.onSelect,vt=dn.onHover,Un=vt===void 0?function(){}:vt,Jn=dn.pickerValue,In=(jn==null?void 0:jn[0])||null,zn=De.useContext(Sr),oi=zn.onCellDblClick,Wn=Qn(cn,ke,In),fi=(0,it.Z)(Wn,5),pi=fi[0],ai=fi[1],Wi=fi[2],pr=fi[3],or=fi[4],tr=function(di){var Go=In&&cn[di](In),St=Jn&&cn[di](Jn);return[Go,St]},Pi=tr("getHour"),fr=(0,it.Z)(Pi,2),nr=fr[0],lr=fr[1],sr=tr("getMinute"),mr=(0,it.Z)(sr,2),En=mr[0],Mi=mr[1],Ti=tr("getSecond"),Vi=(0,it.Z)(Ti,2),Zi=Vi[0],Oi=Vi[1],Ln=tr("getMillisecond"),ir=(0,it.Z)(Ln,2),hr=ir[0],Mr=ir[1],An=nr===null?null:et(nr)?"am":"pm",Fi=De.useMemo(function(){return $t?et(nr)?ai.filter(function(vr){return et(vr.value)}):ai.filter(function(vr){return!et(vr.value)}):ai},[nr,ai,$t]),_i=function(di,Go){var St,Pn=di.filter(function(ja){return!ja.disabled});return Go!=null?Go:Pn==null||(St=Pn[0])===null||St===void 0?void 0:St.value},Er=_i(ai,nr),oo=De.useMemo(function(){return Wi(Er)},[Wi,Er]),vo=_i(oo,En),No=De.useMemo(function(){return pr(Er,vo)},[pr,Er,vo]),$r=_i(No,Zi),ea=De.useMemo(function(){return or(Er,vo,$r)},[or,Er,vo,$r]),Ui=_i(ea,hr),eo=De.useMemo(function(){if(!$t)return[];var vr=cn.getNow(),di=cn.setHour(vr,6),Go=cn.setHour(vr,18),St=function(ja,za){var fa=qn.cellMeridiemFormat;return fa?Xt(ja,{generateConfig:cn,locale:qn,format:fa}):za};return[{label:St(di,"AM"),value:"am",disabled:ai.every(function(Pn){return Pn.disabled||!et(Pn.value)})},{label:St(Go,"PM"),value:"pm",disabled:ai.every(function(Pn){return Pn.disabled||et(Pn.value)})}]},[ai,$t,cn,qn]),co=function(di){var Go=pi(di);ci(Go)},bo=De.useMemo(function(){var vr=In||Jn||cn.getNow(),di=function(St){return St!=null};return di(nr)?(vr=cn.setHour(vr,nr),vr=cn.setMinute(vr,En),vr=cn.setSecond(vr,Zi),vr=cn.setMillisecond(vr,hr)):di(lr)?(vr=cn.setHour(vr,lr),vr=cn.setMinute(vr,Mi),vr=cn.setSecond(vr,Oi),vr=cn.setMillisecond(vr,Mr)):di(Er)&&(vr=cn.setHour(vr,Er),vr=cn.setMinute(vr,vo),vr=cn.setSecond(vr,$r),vr=cn.setMillisecond(vr,Ui)),vr},[In,Jn,nr,En,Zi,hr,Er,vo,$r,Ui,lr,Mi,Oi,Mr,cn]),na=function(di,Go){return di===null?null:cn[Go](bo,di)},Yo=function(di){return na(di,"setHour")},To=function(di){return na(di,"setMinute")},Eo=function(di){return na(di,"setSecond")},ra=function(di){return na(di,"setMillisecond")},ca=function(di){return di===null?null:di==="am"&&!et(nr)?cn.setHour(bo,nr-12):di==="pm"&&et(nr)?cn.setHour(bo,nr+12):bo},Oo=function(di){co(Yo(di))},Xo=function(di){co(To(di))},po=function(di){co(Eo(di))},mo=function(di){co(ra(di))},Jr=function(di){co(ca(di))},ta=function(di){Un(Yo(di))},Do=function(di){Un(To(di))},Aa=function(di){Un(Eo(di))},xr=function(di){Un(ra(di))},er=function(di){Un(ca(di))},Br={onDblClick:oi,changeOnScroll:Qt};return De.createElement("div",{className:"".concat(Nn,"-content")},ht&&De.createElement(br,(0,ve.Z)({units:Fi,value:nr,optionalValue:lr,type:"hour",onChange:Oo,onHover:ta},Br)),Je&&De.createElement(br,(0,ve.Z)({units:oo,value:En,optionalValue:Mi,type:"minute",onChange:Xo,onHover:Do},Br)),pt&&De.createElement(br,(0,ve.Z)({units:No,value:Zi,optionalValue:Oi,type:"second",onChange:po,onHover:Aa},Br)),Pt&&De.createElement(br,(0,ve.Z)({units:ea,value:hr,optionalValue:Mr,type:"millisecond",onChange:mo,onHover:xr},Br)),$t&&De.createElement(br,(0,ve.Z)({units:eo,value:An,type:"meridiem",onChange:Jr,onHover:er},Br)))}function Tn(ke){var ht=ke.prefixCls,Je=ke.value,pt=ke.locale,Pt=ke.generateConfig,$t=ke.showTime,Qt=$t||{},dn=Qt.format,Nn="".concat(ht,"-time-panel"),jn=cr(ke,"time"),cn=(0,it.Z)(jn,1),qn=cn[0];return De.createElement(ti.Provider,{value:qn},De.createElement("div",{className:Ee()(Nn)},De.createElement(Ei,null,Je?Xt(Je,{locale:pt,format:dn,generateConfig:Pt}):"\xA0"),De.createElement(Ft,$t)))}function Yn(ke){var ht=ke.prefixCls,Je=ke.generateConfig,pt=ke.showTime,Pt=ke.onSelect,$t=ke.value,Qt=ke.pickerValue,dn=ke.onHover,Nn="".concat(ht,"-datetime-panel"),jn=Qn(Je,pt),cn=(0,it.Z)(jn,1),qn=cn[0],ci=function(In){return $t?Bt(Je,In,$t):Bt(Je,In,Qt)},vt=function(In){dn==null||dn(In&&ci(In))},Un=function(In){var zn=ci(In);Pt(qn(zn,zn))};return De.createElement("div",{className:Nn},De.createElement(Ii,(0,ve.Z)({},ke,{onSelect:Un,onHover:vt})),De.createElement(Tn,ke))}function en(ke){var ht=ke.prefixCls,Je=ke.locale,pt=ke.generateConfig,Pt=ke.pickerValue,$t=ke.disabledDate,Qt=ke.onPickerValueChange,dn="".concat(ht,"-decade-panel"),Nn=cr(ke,"decade"),jn=(0,it.Z)(Nn,1),cn=jn[0],qn=function(ai){var Wi=Math.floor(pt.getYear(ai)/100)*100;return pt.setYear(ai,Wi)},ci=function(ai){var Wi=qn(ai);return pt.addYear(Wi,99)},vt=qn(Pt),Un=ci(Pt),Jn=pt.addYear(vt,-10),In=function(ai,Wi){return pt.addYear(ai,Wi*10)},zn=function(ai){var Wi=Je.cellYearFormat,pr=Xt(ai,{locale:Je,format:Wi,generateConfig:pt}),or=Xt(pt.addYear(ai,9),{locale:Je,format:Wi,generateConfig:pt});return"".concat(pr,"-").concat(or)},oi=function(ai){return(0,wt.Z)({},"".concat(ht,"-cell-in-view"),Dn(pt,ai,vt)||Dn(pt,ai,Un)||_e(pt,vt,Un,ai))},Wn=$t?function(pi,ai){var Wi=pt.setDate(pi,1),pr=pt.setMonth(Wi,0),or=pt.setYear(pr,Math.floor(pt.getYear(pr)/10)*10),tr=pt.addYear(or,10),Pi=pt.addDate(tr,-1);return $t(or,ai)&&$t(Pi,ai)}:null,fi="".concat(Xt(vt,{locale:Je,format:Je.yearFormat,generateConfig:pt}),"-").concat(Xt(Un,{locale:Je,format:Je.yearFormat,generateConfig:pt}));return De.createElement(ti.Provider,{value:cn},De.createElement("div",{className:dn},De.createElement(Ei,{superOffset:function(ai){return pt.addYear(Pt,ai*100)},onChange:Qt,getStart:qn,getEnd:ci},fi),De.createElement(Jt,(0,ve.Z)({},ke,{disabledDate:Wn,colNum:3,rowNum:4,baseDate:Jn,getCellDate:In,getCellText:zn,getCellClassName:oi}))))}function Gn(ke){var ht=ke.prefixCls,Je=ke.locale,pt=ke.generateConfig,Pt=ke.pickerValue,$t=ke.disabledDate,Qt=ke.onPickerValueChange,dn=ke.onModeChange,Nn="".concat(ht,"-month-panel"),jn=cr(ke,"month"),cn=(0,it.Z)(jn,1),qn=cn[0],ci=pt.setMonth(Pt,0),vt=Je.shortMonths||(pt.locale.getShortMonths?pt.locale.getShortMonths(Je.locale):[]),Un=function(fi,pi){return pt.addMonth(fi,pi)},Jn=function(fi){var pi=pt.getMonth(fi);return Je.monthFormat?Xt(fi,{locale:Je,format:Je.monthFormat,generateConfig:pt}):vt[pi]},In=function(){return(0,wt.Z)({},"".concat(ht,"-cell-in-view"),!0)},zn=$t?function(Wn,fi){var pi=pt.setDate(Wn,1),ai=pt.setMonth(pi,pt.getMonth(pi)+1),Wi=pt.addDate(ai,-1);return $t(pi,fi)&&$t(Wi,fi)}:null,oi=De.createElement("button",{type:"button",key:"year","aria-label":Je.yearSelect,onClick:function(){dn("year")},tabIndex:-1,className:"".concat(ht,"-year-btn")},Xt(Pt,{locale:Je,format:Je.yearFormat,generateConfig:pt}));return De.createElement(ti.Provider,{value:qn},De.createElement("div",{className:Nn},De.createElement(Ei,{superOffset:function(fi){return pt.addYear(Pt,fi)},onChange:Qt,getStart:function(fi){return pt.setMonth(fi,0)},getEnd:function(fi){return pt.setMonth(fi,11)}},oi),De.createElement(Jt,(0,ve.Z)({},ke,{disabledDate:zn,titleFormat:Je.fieldMonthFormat,colNum:3,rowNum:4,baseDate:ci,getCellDate:Un,getCellText:Jn,getCellClassName:In}))))}function kn(ke){var ht=ke.prefixCls,Je=ke.locale,pt=ke.generateConfig,Pt=ke.pickerValue,$t=ke.onPickerValueChange,Qt=ke.onModeChange,dn="".concat(ht,"-quarter-panel"),Nn=cr(ke,"quarter"),jn=(0,it.Z)(Nn,1),cn=jn[0],qn=pt.setMonth(Pt,0),ci=function(zn,oi){return pt.addMonth(zn,oi*3)},vt=function(zn){return Xt(zn,{locale:Je,format:Je.cellQuarterFormat,generateConfig:pt})},Un=function(){return(0,wt.Z)({},"".concat(ht,"-cell-in-view"),!0)},Jn=De.createElement("button",{type:"button",key:"year","aria-label":Je.yearSelect,onClick:function(){Qt("year")},tabIndex:-1,className:"".concat(ht,"-year-btn")},Xt(Pt,{locale:Je,format:Je.yearFormat,generateConfig:pt}));return De.createElement(ti.Provider,{value:cn},De.createElement("div",{className:dn},De.createElement(Ei,{superOffset:function(zn){return pt.addYear(Pt,zn)},onChange:$t,getStart:function(zn){return pt.setMonth(zn,0)},getEnd:function(zn){return pt.setMonth(zn,11)}},Jn),De.createElement(Jt,(0,ve.Z)({},ke,{titleFormat:Je.fieldQuarterFormat,colNum:4,rowNum:1,baseDate:qn,getCellDate:ci,getCellText:vt,getCellClassName:Un}))))}function _n(ke){var ht=ke.prefixCls,Je=ke.generateConfig,pt=ke.locale,Pt=ke.value,$t=ke.hoverValue,Qt=ke.hoverRangeValue,dn=pt.locale,Nn="".concat(ht,"-week-panel-row"),jn=function(qn){var ci={};if(Qt){var vt=(0,it.Z)(Qt,2),Un=vt[0],Jn=vt[1],In=xe(Je,dn,Un,qn),zn=xe(Je,dn,Jn,qn);ci["".concat(Nn,"-range-start")]=In,ci["".concat(Nn,"-range-end")]=zn,ci["".concat(Nn,"-range-hover")]=!In&&!zn&&_e(Je,Un,Jn,qn)}return $t&&(ci["".concat(Nn,"-hover")]=$t.some(function(oi){return xe(Je,dn,qn,oi)})),Ee()(Nn,(0,wt.Z)({},"".concat(Nn,"-selected"),!Qt&&xe(Je,dn,Pt,qn)),ci)};return De.createElement(Ii,(0,ve.Z)({},ke,{mode:"week",panelName:"week",rowClassName:jn}))}function xi(ke){var ht=ke.prefixCls,Je=ke.locale,pt=ke.generateConfig,Pt=ke.pickerValue,$t=ke.disabledDate,Qt=ke.onPickerValueChange,dn=ke.onModeChange,Nn="".concat(ht,"-year-panel"),jn=cr(ke,"year"),cn=(0,it.Z)(jn,1),qn=cn[0],ci=function(Wi){var pr=Math.floor(pt.getYear(Wi)/10)*10;return pt.setYear(Wi,pr)},vt=function(Wi){var pr=ci(Wi);return pt.addYear(pr,9)},Un=ci(Pt),Jn=vt(Pt),In=pt.addYear(Un,-1),zn=function(Wi,pr){return pt.addYear(Wi,pr)},oi=function(Wi){return Xt(Wi,{locale:Je,format:Je.cellYearFormat,generateConfig:pt})},Wn=function(Wi){return(0,wt.Z)({},"".concat(ht,"-cell-in-view"),Dt(pt,Wi,Un)||Dt(pt,Wi,Jn)||_e(pt,Un,Jn,Wi))},fi=$t?function(ai,Wi){var pr=pt.setMonth(ai,0),or=pt.setDate(pr,1),tr=pt.addYear(or,1),Pi=pt.addDate(tr,-1);return $t(or,Wi)&&$t(Pi,Wi)}:null,pi=De.createElement("button",{type:"button",key:"decade","aria-label":Je.decadeSelect,onClick:function(){dn("decade")},tabIndex:-1,className:"".concat(ht,"-decade-btn")},Xt(Un,{locale:Je,format:Je.yearFormat,generateConfig:pt}),"-",Xt(Jn,{locale:Je,format:Je.yearFormat,generateConfig:pt}));return De.createElement(ti.Provider,{value:qn},De.createElement("div",{className:Nn},De.createElement(Ei,{superOffset:function(Wi){return pt.addYear(Pt,Wi*10)},onChange:Qt,getStart:ci,getEnd:vt},pi),De.createElement(Jt,(0,ve.Z)({},ke,{disabledDate:fi,titleFormat:Je.fieldYearFormat,colNum:3,rowNum:4,baseDate:In,getCellDate:zn,getCellText:oi,getCellClassName:Wn}))))}var mi={date:Ii,datetime:Yn,week:_n,month:Gn,quarter:kn,year:xi,decade:en,time:Tn};function sn(ke,ht){var Je,pt=ke.locale,Pt=ke.generateConfig,$t=ke.direction,Qt=ke.prefixCls,dn=ke.tabIndex,Nn=dn===void 0?0:dn,jn=ke.multiple,cn=ke.defaultValue,qn=ke.value,ci=ke.onChange,vt=ke.onSelect,Un=ke.defaultPickerValue,Jn=ke.pickerValue,In=ke.onPickerValueChange,zn=ke.mode,oi=ke.onPanelChange,Wn=ke.picker,fi=Wn===void 0?"date":Wn,pi=ke.showTime,ai=ke.hoverValue,Wi=ke.hoverRangeValue,pr=ke.cellRender,or=ke.dateRender,tr=ke.monthCellRender,Pi=ke.components,fr=Pi===void 0?{}:Pi,nr=ke.hideHeader,lr=((Je=De.useContext(ue))===null||Je===void 0?void 0:Je.prefixCls)||Qt||"rc-picker",sr=De.useRef();De.useImperativeHandle(ht,function(){return{nativeElement:sr.current}});var mr=Zt(ke),En=(0,it.Z)(mr,4),Mi=En[0],Ti=En[1],Vi=En[2],Zi=En[3],Oi=kt(pt,Ti),Ln=fi==="date"&&pi?"datetime":fi,ir=De.useMemo(function(){return _t(Ln,Vi,Zi,Mi,Oi)},[Ln,Vi,Zi,Mi,Oi]),hr=Pt.getNow(),Mr=(0,at.C8)(fi,{value:zn,postState:function(er){return er||"date"}}),An=(0,it.Z)(Mr,2),Fi=An[0],_i=An[1],Er=Fi==="date"&&ir?"datetime":Fi,oo=yi(Pt,pt,Ln),vo=(0,at.C8)(cn,{value:qn}),No=(0,it.Z)(vo,2),$r=No[0],ea=No[1],Ui=De.useMemo(function(){var xr=Ce($r).filter(function(er){return er});return jn?xr:xr.slice(0,1)},[$r,jn]),eo=(0,at.zX)(function(xr){ea(xr),ci&&(xr===null||Ui.length!==xr.length||Ui.some(function(er,Br){return!Ne(Pt,pt,er,xr[Br],Ln)}))&&(ci==null||ci(jn?xr:xr[0]))}),co=(0,at.zX)(function(xr){if(vt==null||vt(xr),Fi===fi){var er=jn?oo(Ui,xr):[xr];eo(er)}}),bo=(0,at.C8)(Un||Ui[0]||hr,{value:Jn}),na=(0,it.Z)(bo,2),Yo=na[0],To=na[1];De.useEffect(function(){Ui[0]&&!Jn&&To(Ui[0])},[Ui[0]]);var Eo=function(er,Br){oi==null||oi(er||Jn,Br||Fi)},ra=function(er){var Br=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;To(er),In==null||In(er),Br&&Eo(er)},ca=function(er,Br){_i(er),Br&&ra(Br),Eo(Br,er)},Oo=function(er){if(co(er),ra(er),Fi!==fi){var Br=["decade","year"],vr=[].concat(Br,["month"]),di={quarter:[].concat(Br,["quarter"]),week:[].concat((0,Ye.Z)(vr),["week"]),date:[].concat((0,Ye.Z)(vr),["date"])},Go=di[fi]||vr,St=Go.indexOf(Fi),Pn=Go[St+1];Pn&&ca(Pn,er)}},Xo=De.useMemo(function(){var xr,er;if(Array.isArray(Wi)){var Br=(0,it.Z)(Wi,2);xr=Br[0],er=Br[1]}else xr=Wi;return!xr&&!er?null:(xr=xr||er,er=er||xr,Pt.isAfter(xr,er)?[er,xr]:[xr,er])},[Wi,Pt]),po=rt(pr,or,tr),mo=fr[Er]||mi[Er]||Ii,Jr=De.useContext(Sr),ta=De.useMemo(function(){return(0,dt.Z)((0,dt.Z)({},Jr),{},{hideHeader:nr})},[Jr,nr]),Do="".concat(lr,"-panel"),Aa=Te(ke,["showWeek","prevIcon","nextIcon","superPrevIcon","superNextIcon","disabledDate","minDate","maxDate","onHover"]);return De.createElement(Sr.Provider,{value:ta},De.createElement("div",{ref:sr,tabIndex:Nn,className:Ee()(Do,(0,wt.Z)({},"".concat(Do,"-rtl"),$t==="rtl"))},De.createElement(mo,(0,ve.Z)({},Aa,{showTime:ir,prefixCls:lr,locale:Oi,generateConfig:Pt,onModeChange:ca,pickerValue:Yo,onPickerValueChange:function(er){ra(er,!0)},value:Ui[0],onSelect:Oo,values:Ui,cellRender:po,hoverRangeValue:Xo,hoverValue:ai}))))}var ki=De.memo(De.forwardRef(sn)),Cr=ki;function gr(ke){var ht=ke.picker,Je=ke.multiplePanel,pt=ke.pickerValue,Pt=ke.onPickerValueChange,$t=ke.needConfirm,Qt=ke.onSubmit,dn=ke.range,Nn=ke.hoverValue,jn=De.useContext(ue),cn=jn.prefixCls,qn=jn.generateConfig,ci=De.useCallback(function(oi,Wn){return Gi(qn,ht,oi,Wn)},[qn,ht]),vt=De.useMemo(function(){return ci(pt,1)},[pt,ci]),Un=function(Wn){Pt(ci(Wn,-1))},Jn={onCellDblClick:function(){$t&&Qt()}},In=ht==="time",zn=(0,dt.Z)((0,dt.Z)({},ke),{},{hoverValue:null,hoverRangeValue:null,hideHeader:In});return dn?zn.hoverRangeValue=Nn:zn.hoverValue=Nn,Je?De.createElement("div",{className:"".concat(cn,"-panels")},De.createElement(Sr.Provider,{value:(0,dt.Z)((0,dt.Z)({},Jn),{},{hideNext:!0})},De.createElement(Cr,zn)),De.createElement(Sr.Provider,{value:(0,dt.Z)((0,dt.Z)({},Jn),{},{hidePrev:!0})},De.createElement(Cr,(0,ve.Z)({},zn,{pickerValue:vt,onPickerValueChange:Un})))):De.createElement(Sr.Provider,{value:(0,dt.Z)({},Jn)},De.createElement(Cr,zn))}function dr(ke){return typeof ke=="function"?ke():ke}function mn(ke){var ht=ke.prefixCls,Je=ke.presets,pt=ke.onClick,Pt=ke.onHover;return Je.length?De.createElement("div",{className:"".concat(ht,"-presets")},De.createElement("ul",null,Je.map(function($t,Qt){var dn=$t.label,Nn=$t.value;return De.createElement("li",{key:Qt,onClick:function(){pt(dr(Nn))},onMouseEnter:function(){Pt(dr(Nn))},onMouseLeave:function(){Pt(null)}},dn)}))):null}function Ir(ke){var ht=ke.panelRender,Je=ke.internalMode,pt=ke.picker,Pt=ke.showNow,$t=ke.range,Qt=ke.multiple,dn=ke.activeInfo,Nn=dn===void 0?[0,0,0]:dn,jn=ke.presets,cn=ke.onPresetHover,qn=ke.onPresetSubmit,ci=ke.onFocus,vt=ke.onBlur,Un=ke.onPanelMouseDown,Jn=ke.direction,In=ke.value,zn=ke.onSelect,oi=ke.isInvalid,Wn=ke.defaultOpenValue,fi=ke.onOk,pi=ke.onSubmit,ai=De.useContext(ue),Wi=ai.prefixCls,pr="".concat(Wi,"-panel"),or=Jn==="rtl",tr=De.useRef(null),Pi=De.useRef(null),fr=De.useState(0),nr=(0,it.Z)(fr,2),lr=nr[0],sr=nr[1],mr=De.useState(0),En=(0,it.Z)(mr,2),Mi=En[0],Ti=En[1],Vi=De.useState(0),Zi=(0,it.Z)(Vi,2),Oi=Zi[0],Ln=Zi[1],ir=function(Oo){Oo.width&&sr(Oo.width)},hr=(0,it.Z)(Nn,3),Mr=hr[0],An=hr[1],Fi=hr[2],_i=De.useState(0),Er=(0,it.Z)(_i,2),oo=Er[0],vo=Er[1];De.useEffect(function(){vo(10)},[Mr]),De.useEffect(function(){if($t&&Pi.current){var ca,Oo=((ca=tr.current)===null||ca===void 0?void 0:ca.offsetWidth)||0,Xo=Pi.current.getBoundingClientRect();if(!Xo.height||Xo.right<0){vo(function(ta){return Math.max(0,ta-1)});return}var po=(or?An-Oo:Mr)-Xo.left;if(Ln(po),lr&&lr<Fi){var mo=or?Xo.right-(An-Oo+lr):Mr+Oo-Xo.left-lr,Jr=Math.max(0,mo);Ti(Jr)}else Ti(0)}},[oo,or,lr,Mr,An,Fi,$t]);function No(ca){return ca.filter(function(Oo){return Oo})}var $r=De.useMemo(function(){return No(Ce(In))},[In]),ea=pt==="time"&&!$r.length,Ui=De.useMemo(function(){return ea?No([Wn]):$r},[ea,$r,Wn]),eo=ea?Wn:$r,co=De.useMemo(function(){return Ui.length?Ui.some(function(ca){return oi(ca)}):!0},[Ui,oi]),bo=function(){ea&&zn(Wn),fi(),pi()},na=De.createElement("div",{className:"".concat(Wi,"-panel-layout")},De.createElement(mn,{prefixCls:Wi,presets:jn,onClick:qn,onHover:cn}),De.createElement("div",null,De.createElement(gr,(0,ve.Z)({},ke,{value:eo})),De.createElement(gi,(0,ve.Z)({},ke,{showNow:Qt?!1:Pt,invalid:co,onSubmit:bo}))));ht&&(na=ht(na));var Yo="".concat(pr,"-container"),To="marginLeft",Eo="marginRight",ra=De.createElement("div",{onMouseDown:Un,tabIndex:-1,className:Ee()(Yo,"".concat(Wi,"-").concat(Je,"-panel-container")),style:(0,wt.Z)((0,wt.Z)({},or?Eo:To,Mi),or?To:Eo,"auto"),onFocus:ci,onBlur:vt},na);return $t&&(ra=De.createElement("div",{onMouseDown:Un,ref:Pi,className:Ee()("".concat(Wi,"-range-wrapper"),"".concat(Wi,"-").concat(pt,"-range-wrapper"))},De.createElement("div",{ref:tr,className:"".concat(Wi,"-range-arrow"),style:{left:Oi}}),De.createElement(Ar.Z,{onResize:ir},ra))),ra}var jr=we(39224);function fo(ke,ht){var Je=ke.format,pt=ke.maskFormat,Pt=ke.generateConfig,$t=ke.locale,Qt=ke.preserveInvalidOnBlur,dn=ke.inputReadOnly,Nn=ke.required,jn=ke["aria-required"],cn=ke.onSubmit,qn=ke.onFocus,ci=ke.onBlur,vt=ke.onInputChange,Un=ke.onInvalid,Jn=ke.open,In=ke.onOpenChange,zn=ke.onKeyDown,oi=ke.onChange,Wn=ke.activeHelp,fi=ke.name,pi=ke.autoComplete,ai=ke.id,Wi=ke.value,pr=ke.invalid,or=ke.placeholder,tr=ke.disabled,Pi=ke.activeIndex,fr=ke.allHelp,nr=ke.picker,lr=function(Oi,Ln){var ir=Pt.locale.parse($t.locale,Oi,[Ln]);return ir&&Pt.isValidate(ir)?ir:null},sr=Je[0],mr=De.useCallback(function(Zi){return Xt(Zi,{locale:$t,format:sr,generateConfig:Pt})},[$t,Pt,sr]),En=De.useMemo(function(){return Wi.map(mr)},[Wi,mr]),Mi=De.useMemo(function(){var Zi=nr==="time"?8:10,Oi=typeof sr=="function"?sr(Pt.getNow()).length:sr.length;return Math.max(Zi,Oi)+2},[sr,nr,Pt]),Ti=function(Oi){for(var Ln=0;Ln<Je.length;Ln+=1){var ir=Je[Ln];if(typeof ir=="string"){var hr=lr(Oi,ir);if(hr)return hr}}return!1},Vi=function(Oi){function Ln(Mr){return Oi!==void 0?Mr[Oi]:Mr}var ir=(0,xt.Z)(ke,{aria:!0,data:!0}),hr=(0,dt.Z)((0,dt.Z)({},ir),{},{format:pt,validateFormat:function(An){return!!Ti(An)},preserveInvalidOnBlur:Qt,readOnly:dn,required:Nn,"aria-required":jn,name:fi,autoComplete:pi,size:Mi,id:Ln(ai),value:Ln(En)||"",invalid:Ln(pr),placeholder:Ln(or),active:Pi===Oi,helped:fr||Wn&&Pi===Oi,disabled:Ln(tr),onFocus:function(An){qn(An,Oi)},onBlur:function(An){ci(An,Oi)},onSubmit:cn,onChange:function(An){vt();var Fi=Ti(An);if(Fi){Un(!1,Oi),oi(Fi,Oi);return}Un(!!An,Oi)},onHelp:function(){In(!0,{index:Oi})},onKeyDown:function(An){var Fi=!1;if(zn==null||zn(An,function(){Fi=!0}),!An.defaultPrevented&&!Fi)switch(An.key){case"Escape":In(!1,{index:Oi});break;case"Enter":Jn||In(!0);break}}},ht==null?void 0:ht({valueTexts:En}));return Object.keys(hr).forEach(function(Mr){hr[Mr]===void 0&&delete hr[Mr]}),hr};return[Vi,mr]}var yn=["onMouseEnter","onMouseLeave"];function ni(ke){return De.useMemo(function(){return Te(ke,yn)},[ke])}var Hi=["icon","type"],Ri=["onClear"];function Xi(ke){var ht=ke.icon,Je=ke.type,pt=(0,jr.Z)(ke,Hi),Pt=De.useContext(ue),$t=Pt.prefixCls;return ht?De.createElement("span",(0,ve.Z)({className:"".concat($t,"-").concat(Je)},pt),ht):null}function $i(ke){var ht=ke.onClear,Je=(0,jr.Z)(ke,Ri);return De.createElement(Xi,(0,ve.Z)({},Je,{type:"clear",role:"button",onMouseDown:function(Pt){Pt.preventDefault()},onClick:function(Pt){Pt.stopPropagation(),ht()}}))}var Fr=we(16552),Dr=we(19210),Rr=["YYYY","MM","DD","HH","mm","ss","SSS"],Xr="\u9867",Mn=function(){function ke(ht){(0,Fr.Z)(this,ke),(0,wt.Z)(this,"format",void 0),(0,wt.Z)(this,"maskFormat",void 0),(0,wt.Z)(this,"cells",void 0),(0,wt.Z)(this,"maskCells",void 0),this.format=ht;var Je=Rr.map(function(dn){return"(".concat(dn,")")}).join("|"),pt=new RegExp(Je,"g");this.maskFormat=ht.replace(pt,function(dn){return Xr.repeat(dn.length)});var Pt=new RegExp("(".concat(Rr.join("|"),")")),$t=(ht.split(Pt)||[]).filter(function(dn){return dn}),Qt=0;this.cells=$t.map(function(dn){var Nn=Rr.includes(dn),jn=Qt,cn=Qt+dn.length;return Qt=cn,{text:dn,mask:Nn,start:jn,end:cn}}),this.maskCells=this.cells.filter(function(dn){return dn.mask})}return(0,Dr.Z)(ke,[{key:"getSelection",value:function(Je){var pt=this.maskCells[Je]||{},Pt=pt.start,$t=pt.end;return[Pt||0,$t||0]}},{key:"match",value:function(Je){for(var pt=0;pt<this.maskFormat.length;pt+=1){var Pt=this.maskFormat[pt],$t=Je[pt];if(!$t||Pt!==Xr&&Pt!==$t)return!1}return!0}},{key:"size",value:function(){return this.maskCells.length}},{key:"getMaskCellIndex",value:function(Je){for(var pt=Number.MAX_SAFE_INTEGER,Pt=0,$t=0;$t<this.maskCells.length;$t+=1){var Qt=this.maskCells[$t],dn=Qt.start,Nn=Qt.end;if(Je>=dn&&Je<=Nn)return $t;var jn=Math.min(Math.abs(Je-dn),Math.abs(Je-Nn));jn<pt&&(pt=jn,Pt=$t)}return Pt}}]),ke}();function ho(ke){var ht={YYYY:[0,9999,new Date().getFullYear()],MM:[1,12],DD:[1,31],HH:[0,23],mm:[0,59],ss:[0,59],SSS:[0,999]};return ht[ke]}var ln=["active","showActiveCls","suffixIcon","format","validateFormat","onChange","onInput","helped","onHelp","onSubmit","onKeyDown","preserveInvalidOnBlur","invalid","clearIcon"],rr=De.forwardRef(function(ke,ht){var Je=ke.active,pt=ke.showActiveCls,Pt=pt===void 0?!0:pt,$t=ke.suffixIcon,Qt=ke.format,dn=ke.validateFormat,Nn=ke.onChange,jn=ke.onInput,cn=ke.helped,qn=ke.onHelp,ci=ke.onSubmit,vt=ke.onKeyDown,Un=ke.preserveInvalidOnBlur,Jn=Un===void 0?!1:Un,In=ke.invalid,zn=ke.clearIcon,oi=(0,jr.Z)(ke,ln),Wn=ke.value,fi=ke.onFocus,pi=ke.onBlur,ai=ke.onMouseUp,Wi=De.useContext(ue),pr=Wi.prefixCls,or=Wi.input,tr=or===void 0?"input":or,Pi="".concat(pr,"-input"),fr=De.useState(!1),nr=(0,it.Z)(fr,2),lr=nr[0],sr=nr[1],mr=De.useState(Wn),En=(0,it.Z)(mr,2),Mi=En[0],Ti=En[1],Vi=De.useState(""),Zi=(0,it.Z)(Vi,2),Oi=Zi[0],Ln=Zi[1],ir=De.useState(null),hr=(0,it.Z)(ir,2),Mr=hr[0],An=hr[1],Fi=De.useState(null),_i=(0,it.Z)(Fi,2),Er=_i[0],oo=_i[1],vo=Mi||"";De.useEffect(function(){Ti(Wn)},[Wn]);var No=De.useRef(),$r=De.useRef();De.useImperativeHandle(ht,function(){return{nativeElement:No.current,inputElement:$r.current,focus:function(er){$r.current.focus(er)},blur:function(){$r.current.blur()}}});var ea=De.useMemo(function(){return new Mn(Qt||"")},[Qt]),Ui=De.useMemo(function(){return cn?[0,0]:ea.getSelection(Mr)},[ea,Mr,cn]),eo=(0,it.Z)(Ui,2),co=eo[0],bo=eo[1],na=function(er){er&&er!==Qt&&er!==Wn&&qn()},Yo=(0,at.zX)(function(xr){dn(xr)&&Nn(xr),Ti(xr),na(xr)}),To=function(er){if(!Qt){var Br=er.target.value;na(Br),Ti(Br),Nn(Br)}},Eo=function(er){var Br=er.clipboardData.getData("text");dn(Br)&&Yo(Br)},ra=De.useRef(!1),ca=function(){ra.current=!0},Oo=function(er){var Br=er.target,vr=Br.selectionStart,di=ea.getMaskCellIndex(vr);An(di),oo({}),ai==null||ai(er),ra.current=!1},Xo=function(er){sr(!0),An(0),Ln(""),fi(er)},po=function(er){pi(er)},mo=function(er){sr(!1),po(er)};bi(Je,function(){!Je&&!Jn&&Ti(Wn)});var Jr=function(er){er.key==="Enter"&&dn(vo)&&ci(),vt==null||vt(er)},ta=function(er){Jr(er);var Br=er.key,vr=null,di=null,Go=bo-co,St=Qt.slice(co,bo),Pn=function(ga){An(function(Ga){var Na=Ga+ga;return Na=Math.max(Na,0),Na=Math.min(Na,ea.size()-1),Na})},ja=function(ga){var Ga=ho(St),Na=(0,it.Z)(Ga,3),Zs=Na[0],sa=Na[1],Wr=Na[2],Va=vo.slice(co,bo),$a=Number(Va);if(isNaN($a))return String(Wr||(ga>0?Zs:sa));var la=$a+ga,yo=sa-Zs+1;return String(Zs+(yo+la-Zs)%yo)};switch(Br){case"Backspace":case"Delete":vr="",di=St;break;case"ArrowLeft":vr="",Pn(-1);break;case"ArrowRight":vr="",Pn(1);break;case"ArrowUp":vr="",di=ja(1);break;case"ArrowDown":vr="",di=ja(-1);break;default:isNaN(Number(Br))||(vr=Oi+Br,di=vr);break}if(vr!==null&&(Ln(vr),vr.length>=Go&&(Pn(1),Ln(""))),di!==null){var za=vo.slice(0,co)+ye(di,Go)+vo.slice(bo);Yo(za.slice(0,Qt.length))}oo({})},Do=De.useRef();(0,Ze.Z)(function(){if(!(!lr||!Qt||ra.current)){if(!ea.match(vo)){Yo(Qt);return}return $r.current.setSelectionRange(co,bo),Do.current=(0,ei.Z)(function(){$r.current.setSelectionRange(co,bo)}),function(){ei.Z.cancel(Do.current)}}},[ea,Qt,lr,vo,Mr,co,bo,Er,Yo]);var Aa=Qt?{onFocus:Xo,onBlur:mo,onKeyDown:ta,onMouseDown:ca,onMouseUp:Oo,onPaste:Eo}:{};return De.createElement("div",{ref:No,className:Ee()(Pi,(0,wt.Z)((0,wt.Z)({},"".concat(Pi,"-active"),Je&&Pt),"".concat(Pi,"-placeholder"),cn))},De.createElement(tr,(0,ve.Z)({ref:$r,"aria-invalid":In,autoComplete:"off"},oi,{onKeyDown:Jr,onBlur:po},Aa,{value:vo,onChange:To})),De.createElement(Xi,{type:"suffix",icon:$t}),zn)}),Vr=rr,_r=["id","prefix","clearIcon","suffixIcon","separator","activeIndex","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","value","onChange","onSubmit","onInputChange","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onActiveInfo","placement","onMouseDown","required","aria-required","autoFocus","tabIndex"],Co=["index"];function Qr(ke,ht){var Je=ke.id,pt=ke.prefix,Pt=ke.clearIcon,$t=ke.suffixIcon,Qt=ke.separator,dn=Qt===void 0?"~":Qt,Nn=ke.activeIndex,jn=ke.activeHelp,cn=ke.allHelp,qn=ke.focused,ci=ke.onFocus,vt=ke.onBlur,Un=ke.onKeyDown,Jn=ke.locale,In=ke.generateConfig,zn=ke.placeholder,oi=ke.className,Wn=ke.style,fi=ke.onClick,pi=ke.onClear,ai=ke.value,Wi=ke.onChange,pr=ke.onSubmit,or=ke.onInputChange,tr=ke.format,Pi=ke.maskFormat,fr=ke.preserveInvalidOnBlur,nr=ke.onInvalid,lr=ke.disabled,sr=ke.invalid,mr=ke.inputReadOnly,En=ke.direction,Mi=ke.onOpenChange,Ti=ke.onActiveInfo,Vi=ke.placement,Zi=ke.onMouseDown,Oi=ke.required,Ln=ke["aria-required"],ir=ke.autoFocus,hr=ke.tabIndex,Mr=(0,jr.Z)(ke,_r),An=En==="rtl",Fi=De.useContext(ue),_i=Fi.prefixCls,Er=De.useMemo(function(){if(typeof Je=="string")return[Je];var po=Je||{};return[po.start,po.end]},[Je]),oo=De.useRef(),vo=De.useRef(),No=De.useRef(),$r=function(mo){var Jr;return(Jr=[vo,No][mo])===null||Jr===void 0?void 0:Jr.current};De.useImperativeHandle(ht,function(){return{nativeElement:oo.current,focus:function(mo){if((0,Lt.Z)(mo)==="object"){var Jr,ta=mo||{},Do=ta.index,Aa=Do===void 0?0:Do,xr=(0,jr.Z)(ta,Co);(Jr=$r(Aa))===null||Jr===void 0||Jr.focus(xr)}else{var er;(er=$r(mo!=null?mo:0))===null||er===void 0||er.focus()}},blur:function(){var mo,Jr;(mo=$r(0))===null||mo===void 0||mo.blur(),(Jr=$r(1))===null||Jr===void 0||Jr.blur()}}});var ea=ni(Mr),Ui=De.useMemo(function(){return Array.isArray(zn)?zn:[zn,zn]},[zn]),eo=fo((0,dt.Z)((0,dt.Z)({},ke),{},{id:Er,placeholder:Ui})),co=(0,it.Z)(eo,1),bo=co[0],na=De.useState({position:"absolute",width:0}),Yo=(0,it.Z)(na,2),To=Yo[0],Eo=Yo[1],ra=(0,at.zX)(function(){var po=$r(Nn);if(po){var mo=po.nativeElement.getBoundingClientRect(),Jr=oo.current.getBoundingClientRect(),ta=mo.left-Jr.left;Eo(function(Do){return(0,dt.Z)((0,dt.Z)({},Do),{},{width:mo.width,left:ta})}),Ti([mo.left,mo.right,Jr.width])}});De.useEffect(function(){ra()},[Nn]);var ca=Pt&&(ai[0]&&!lr[0]||ai[1]&&!lr[1]),Oo=ir&&!lr[0],Xo=ir&&!Oo&&!lr[1];return De.createElement(Ar.Z,{onResize:ra},De.createElement("div",(0,ve.Z)({},ea,{className:Ee()(_i,"".concat(_i,"-range"),(0,wt.Z)((0,wt.Z)((0,wt.Z)((0,wt.Z)({},"".concat(_i,"-focused"),qn),"".concat(_i,"-disabled"),lr.every(function(po){return po})),"".concat(_i,"-invalid"),sr.some(function(po){return po})),"".concat(_i,"-rtl"),An),oi),style:Wn,ref:oo,onClick:fi,onMouseDown:function(mo){var Jr=mo.target;Jr!==vo.current.inputElement&&Jr!==No.current.inputElement&&mo.preventDefault(),Zi==null||Zi(mo)}}),pt&&De.createElement("div",{className:"".concat(_i,"-prefix")},pt),De.createElement(Vr,(0,ve.Z)({ref:vo},bo(0),{autoFocus:Oo,tabIndex:hr,"date-range":"start"})),De.createElement("div",{className:"".concat(_i,"-range-separator")},dn),De.createElement(Vr,(0,ve.Z)({ref:No},bo(1),{autoFocus:Xo,tabIndex:hr,"date-range":"end"})),De.createElement("div",{className:"".concat(_i,"-active-bar"),style:To}),De.createElement(Xi,{type:"suffix",icon:$t}),ca&&De.createElement($i,{icon:Pt,onClear:pi})))}var Or=De.forwardRef(Qr),ko=Or;function Ht(ke,ht){var Je=ke!=null?ke:ht;return Array.isArray(Je)?Je:[Je,Je]}function Cn(ke){return ke===1?"end":"start"}function Ut(ke,ht){var Je=pn(ke,function(){var to=ke.disabled,uo=ke.allowEmpty,Mo=Ht(to,!1),ia=Ht(uo,!1);return{disabled:Mo,allowEmpty:ia}}),pt=(0,it.Z)(Je,6),Pt=pt[0],$t=pt[1],Qt=pt[2],dn=pt[3],Nn=pt[4],jn=pt[5],cn=Pt.prefixCls,qn=Pt.styles,ci=Pt.classNames,vt=Pt.defaultValue,Un=Pt.value,Jn=Pt.needConfirm,In=Pt.onKeyDown,zn=Pt.disabled,oi=Pt.allowEmpty,Wn=Pt.disabledDate,fi=Pt.minDate,pi=Pt.maxDate,ai=Pt.defaultOpen,Wi=Pt.open,pr=Pt.onOpenChange,or=Pt.locale,tr=Pt.generateConfig,Pi=Pt.picker,fr=Pt.showNow,nr=Pt.showToday,lr=Pt.showTime,sr=Pt.mode,mr=Pt.onPanelChange,En=Pt.onCalendarChange,Mi=Pt.onOk,Ti=Pt.defaultPickerValue,Vi=Pt.pickerValue,Zi=Pt.onPickerValueChange,Oi=Pt.inputReadOnly,Ln=Pt.suffixIcon,ir=Pt.onFocus,hr=Pt.onBlur,Mr=Pt.presets,An=Pt.ranges,Fi=Pt.components,_i=Pt.cellRender,Er=Pt.dateRender,oo=Pt.monthCellRender,vo=Pt.onClick,No=Ci(ht),$r=Fn(Wi,ai,zn,pr),ea=(0,it.Z)($r,2),Ui=ea[0],eo=ea[1],co=function(uo,Mo){(zn.some(function(ia){return!ia})||!uo)&&eo(uo,Mo)},bo=io(tr,or,dn,!0,!1,vt,Un,En,Mi),na=(0,it.Z)(bo,5),Yo=na[0],To=na[1],Eo=na[2],ra=na[3],ca=na[4],Oo=Eo(),Xo=hi(zn,oi,Ui),po=(0,it.Z)(Xo,9),mo=po[0],Jr=po[1],ta=po[2],Do=po[3],Aa=po[4],xr=po[5],er=po[6],Br=po[7],vr=po[8],di=function(uo,Mo){Jr(!0),ir==null||ir(uo,{range:Cn(Mo!=null?Mo:Do)})},Go=function(uo,Mo){Jr(!1),hr==null||hr(uo,{range:Cn(Mo!=null?Mo:Do)})},St=De.useMemo(function(){if(!lr)return null;var to=lr.disabledTime,uo=to?function(Mo){var ia=Cn(Do),ns=Oe(Oo,er,Do);return to(Mo,ia,{from:ns})}:void 0;return(0,dt.Z)((0,dt.Z)({},lr),{},{disabledTime:uo})},[lr,Do,Oo,er]),Pn=(0,at.C8)([Pi,Pi],{value:sr}),ja=(0,it.Z)(Pn,2),za=ja[0],fa=ja[1],ga=za[Do]||Pi,Ga=ga==="date"&&St?"datetime":ga,Na=Ga===Pi&&Ga!=="time",Zs=lo(Pi,ga,fr,nr,!0),sa=Fo(Pt,Yo,To,Eo,ra,zn,dn,mo,Ui,jn),Wr=(0,it.Z)(sa,2),Va=Wr[0],$a=Wr[1],la=Di(Oo,zn,er,tr,or,Wn),yo=ot(Oo,jn,oi),ma=(0,it.Z)(yo,2),ls=ma[0],aa=ma[1],us=Zr(tr,or,Oo,za,Ui,Do,$t,Na,Ti,Vi,St==null?void 0:St.defaultOpenValue,Zi,fi,pi),Ta=(0,it.Z)(us,2),bl=Ta[0],Wo=Ta[1],Fa=(0,at.zX)(function(to,uo,Mo){var ia=ze(za,Do,uo);if((ia[0]!==za[0]||ia[1]!==za[1])&&fa(ia),mr&&Mo!==!1){var ns=(0,Ye.Z)(Oo);to&&(ns[Do]=to),mr(ns,ia)}}),Io=function(uo,Mo){return ze(Oo,Mo,uo)},Jo=function(uo,Mo){var ia=Oo;uo&&(ia=Io(uo,Do)),Br(Do);var ns=xr(ia);ra(ia),Va(Do,ns===null),ns===null?co(!1,{force:!0}):Mo||No.current.focus({index:ns})},ha=function(uo){var Mo,ia=uo.target.getRootNode();if(!No.current.nativeElement.contains((Mo=ia.activeElement)!==null&&Mo!==void 0?Mo:document.activeElement)){var ns=zn.findIndex(function(hs){return!hs});ns>=0&&No.current.focus({index:ns})}co(!0),vo==null||vo(uo)},va=function(){$a(null),co(!1,{force:!0})},Qo=De.useState(null),fl=(0,it.Z)(Qo,2),Gr=fl[0],pu=fl[1],Ao=De.useState(null),Gl=(0,it.Z)(Ao,2),Qs=Gl[0],Dl=Gl[1],mu=De.useMemo(function(){return Qs||Oo},[Oo,Qs]);De.useEffect(function(){Ui||Dl(null)},[Ui]);var vu=De.useState([0,0,0]),Ws=(0,it.Z)(vu,2),Vl=Ws[0],Ko=Ws[1],Hs=$n(Mr,An),yu=function(uo){Dl(uo),pu("preset")},gl=function(uo){var Mo=$a(uo);Mo&&co(!1,{force:!0})},Du=function(uo){Jo(uo)},pl=function(uo){Dl(uo?Io(uo,Do):null),pu("cell")},Bo=function(uo){co(!0),di(uo)},Vo=function(){ta("panel")},Ea=function(uo){var Mo=ze(Oo,Do,uo);ra(Mo),!Jn&&!Qt&&$t===Ga&&Jo(uo)},es=function(){co(!1)},Xa=rt(_i,Er,oo,Cn(Do)),kl=Oo[Do]||null,ml=(0,at.zX)(function(to){return jn(to,{activeIndex:Do})}),Ro=De.useMemo(function(){var to=(0,xt.Z)(Pt,!1),uo=(0,Ue.Z)(Pt,[].concat((0,Ye.Z)(Object.keys(to)),["onChange","onCalendarChange","style","className","onPanelChange","disabledTime"]));return uo},[Pt]),So=De.createElement(Ir,(0,ve.Z)({},Ro,{showNow:Zs,showTime:St,range:!0,multiplePanel:Na,activeInfo:Vl,disabledDate:la,onFocus:Bo,onBlur:Go,onPanelMouseDown:Vo,picker:Pi,mode:ga,internalMode:Ga,onPanelChange:Fa,format:Nn,value:kl,isInvalid:ml,onChange:null,onSelect:Ea,pickerValue:bl,defaultOpenValue:Ce(lr==null?void 0:lr.defaultOpenValue)[Do],onPickerValueChange:Wo,hoverValue:mu,onHover:pl,needConfirm:Jn,onSubmit:Jo,onOk:ca,presets:Hs,onPresetHover:yu,onPresetSubmit:gl,onNow:Du,cellRender:Xa})),Ya=function(uo,Mo){var ia=Io(uo,Mo);ra(ia)},iu=function(){ta("input")},Dd=function(uo,Mo){var ia=er.length,ns=er[ia-1];if(ia&&ns!==Mo&&Jn&&!oi[ns]&&!vr(ns)&&Oo[ns]){No.current.focus({index:ns});return}ta("input"),co(!0,{inherit:!0}),Do!==Mo&&Ui&&!Jn&&Qt&&Jo(null,!0),Aa(Mo),di(uo,Mo)},dg=function(uo,Mo){if(co(!1),!Jn&&ta()==="input"){var ia=xr(Oo);Va(Do,ia===null)}Go(uo,Mo)},tf=function(uo,Mo){uo.key==="Tab"&&Jo(null,!0),In==null||In(uo,Mo)},Za=De.useMemo(function(){return{prefixCls:cn,locale:or,generateConfig:tr,button:Fi.button,input:Fi.input}},[cn,or,tr,Fi.button,Fi.input]);if((0,Ze.Z)(function(){Ui&&Do!==void 0&&Fa(null,Pi,!1)},[Ui,Do,Pi]),(0,Ze.Z)(function(){var to=ta();!Ui&&to==="input"&&(co(!1),Jo(null,!0)),!Ui&&Qt&&!Jn&&to==="panel"&&(co(!0),Jo())},[Ui]),0)var Xu;return De.createElement(ue.Provider,{value:Za},De.createElement(pe,(0,ve.Z)({},Re(Pt),{popupElement:So,popupStyle:qn.popup,popupClassName:ci.popup,visible:Ui,onClose:es,range:!0}),De.createElement(ko,(0,ve.Z)({},Pt,{ref:No,suffixIcon:Ln,activeIndex:mo||Ui?Do:null,activeHelp:!!Qs,allHelp:!!Qs&&Gr==="preset",focused:mo,onFocus:Dd,onBlur:dg,onKeyDown:tf,onSubmit:Jo,value:mu,maskFormat:Nn,onChange:Ya,onInputChange:iu,format:dn,inputReadOnly:Oi,disabled:zn,open:Ui,onOpenChange:co,onClick:ha,onClear:va,invalid:ls,onInvalid:aa,onActiveInfo:Ko}))))}var je=De.forwardRef(Ut),ri=je,Si=we(11780);function $e(ke){var ht=ke.prefixCls,Je=ke.value,pt=ke.onRemove,Pt=ke.removeIcon,$t=Pt===void 0?"\xD7":Pt,Qt=ke.formatDate,dn=ke.disabled,Nn=ke.maxTagCount,jn=ke.placeholder,cn="".concat(ht,"-selector"),qn="".concat(ht,"-selection"),ci="".concat(qn,"-overflow");function vt(In,zn){return De.createElement("span",{className:Ee()("".concat(qn,"-item")),title:typeof In=="string"?In:null},De.createElement("span",{className:"".concat(qn,"-item-content")},In),!dn&&zn&&De.createElement("span",{onMouseDown:function(Wn){Wn.preventDefault()},onClick:zn,className:"".concat(qn,"-item-remove")},$t))}function Un(In){var zn=Qt(In),oi=function(fi){fi&&fi.stopPropagation(),pt(In)};return vt(zn,oi)}function Jn(In){var zn="+ ".concat(In.length," ...");return vt(zn)}return De.createElement("div",{className:cn},De.createElement(Si.Z,{prefixCls:ci,data:Je,renderItem:Un,renderRest:Jn,itemKey:function(zn){return Qt(zn)},maxCount:Nn}),!Je.length&&De.createElement("span",{className:"".concat(ht,"-selection-placeholder")},jn))}var rn=["id","open","prefix","clearIcon","suffixIcon","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","internalPicker","value","onChange","onSubmit","onInputChange","multiple","maxTagCount","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onMouseDown","required","aria-required","autoFocus","tabIndex","removeIcon"];function Wt(ke,ht){var Je=ke.id,pt=ke.open,Pt=ke.prefix,$t=ke.clearIcon,Qt=ke.suffixIcon,dn=ke.activeHelp,Nn=ke.allHelp,jn=ke.focused,cn=ke.onFocus,qn=ke.onBlur,ci=ke.onKeyDown,vt=ke.locale,Un=ke.generateConfig,Jn=ke.placeholder,In=ke.className,zn=ke.style,oi=ke.onClick,Wn=ke.onClear,fi=ke.internalPicker,pi=ke.value,ai=ke.onChange,Wi=ke.onSubmit,pr=ke.onInputChange,or=ke.multiple,tr=ke.maxTagCount,Pi=ke.format,fr=ke.maskFormat,nr=ke.preserveInvalidOnBlur,lr=ke.onInvalid,sr=ke.disabled,mr=ke.invalid,En=ke.inputReadOnly,Mi=ke.direction,Ti=ke.onOpenChange,Vi=ke.onMouseDown,Zi=ke.required,Oi=ke["aria-required"],Ln=ke.autoFocus,ir=ke.tabIndex,hr=ke.removeIcon,Mr=(0,jr.Z)(ke,rn),An=Mi==="rtl",Fi=De.useContext(ue),_i=Fi.prefixCls,Er=De.useRef(),oo=De.useRef();De.useImperativeHandle(ht,function(){return{nativeElement:Er.current,focus:function(To){var Eo;(Eo=oo.current)===null||Eo===void 0||Eo.focus(To)},blur:function(){var To;(To=oo.current)===null||To===void 0||To.blur()}}});var vo=ni(Mr),No=function(To){ai([To])},$r=function(To){var Eo=pi.filter(function(ra){return ra&&!Ne(Un,vt,ra,To,fi)});ai(Eo),pt||Wi()},ea=fo((0,dt.Z)((0,dt.Z)({},ke),{},{onChange:No}),function(Yo){var To=Yo.valueTexts;return{value:To[0]||"",active:jn}}),Ui=(0,it.Z)(ea,2),eo=Ui[0],co=Ui[1],bo=!!($t&&pi.length&&!sr),na=or?De.createElement(De.Fragment,null,De.createElement($e,{prefixCls:_i,value:pi,onRemove:$r,formatDate:co,maxTagCount:tr,disabled:sr,removeIcon:hr,placeholder:Jn}),De.createElement("input",{className:"".concat(_i,"-multiple-input"),value:pi.map(co).join(","),ref:oo,readOnly:!0,autoFocus:Ln,tabIndex:ir}),De.createElement(Xi,{type:"suffix",icon:Qt}),bo&&De.createElement($i,{icon:$t,onClear:Wn})):De.createElement(Vr,(0,ve.Z)({ref:oo},eo(),{autoFocus:Ln,tabIndex:ir,suffixIcon:Qt,clearIcon:bo&&De.createElement($i,{icon:$t,onClear:Wn}),showActiveCls:!1}));return De.createElement("div",(0,ve.Z)({},vo,{className:Ee()(_i,(0,wt.Z)((0,wt.Z)((0,wt.Z)((0,wt.Z)((0,wt.Z)({},"".concat(_i,"-multiple"),or),"".concat(_i,"-focused"),jn),"".concat(_i,"-disabled"),sr),"".concat(_i,"-invalid"),mr),"".concat(_i,"-rtl"),An),In),style:zn,ref:Er,onClick:oi,onMouseDown:function(To){var Eo,ra=To.target;ra!==((Eo=oo.current)===null||Eo===void 0?void 0:Eo.inputElement)&&To.preventDefault(),Vi==null||Vi(To)}}),Pt&&De.createElement("div",{className:"".concat(_i,"-prefix")},Pt),na)}var Kt=De.forwardRef(Wt),Hn=Kt;function Bn(ke,ht){var Je=pn(ke),pt=(0,it.Z)(Je,6),Pt=pt[0],$t=pt[1],Qt=pt[2],dn=pt[3],Nn=pt[4],jn=pt[5],cn=Pt,qn=cn.prefixCls,ci=cn.styles,vt=cn.classNames,Un=cn.order,Jn=cn.defaultValue,In=cn.value,zn=cn.needConfirm,oi=cn.onChange,Wn=cn.onKeyDown,fi=cn.disabled,pi=cn.disabledDate,ai=cn.minDate,Wi=cn.maxDate,pr=cn.defaultOpen,or=cn.open,tr=cn.onOpenChange,Pi=cn.locale,fr=cn.generateConfig,nr=cn.picker,lr=cn.showNow,sr=cn.showToday,mr=cn.showTime,En=cn.mode,Mi=cn.onPanelChange,Ti=cn.onCalendarChange,Vi=cn.onOk,Zi=cn.multiple,Oi=cn.defaultPickerValue,Ln=cn.pickerValue,ir=cn.onPickerValueChange,hr=cn.inputReadOnly,Mr=cn.suffixIcon,An=cn.removeIcon,Fi=cn.onFocus,_i=cn.onBlur,Er=cn.presets,oo=cn.components,vo=cn.cellRender,No=cn.dateRender,$r=cn.monthCellRender,ea=cn.onClick,Ui=Ci(ht);function eo(Ro){return Ro===null?null:Zi?Ro:Ro[0]}var co=yi(fr,Pi,$t),bo=Fn(or,pr,[fi],tr),na=(0,it.Z)(bo,2),Yo=na[0],To=na[1],Eo=function(So,Ya,iu){if(Ti){var Dd=(0,dt.Z)({},iu);delete Dd.range,Ti(eo(So),eo(Ya),Dd)}},ra=function(So){Vi==null||Vi(eo(So))},ca=io(fr,Pi,dn,!1,Un,Jn,In,Eo,ra),Oo=(0,it.Z)(ca,5),Xo=Oo[0],po=Oo[1],mo=Oo[2],Jr=Oo[3],ta=Oo[4],Do=mo(),Aa=hi([fi]),xr=(0,it.Z)(Aa,4),er=xr[0],Br=xr[1],vr=xr[2],di=xr[3],Go=function(So){Br(!0),Fi==null||Fi(So,{})},St=function(So){Br(!1),_i==null||_i(So,{})},Pn=(0,at.C8)(nr,{value:En}),ja=(0,it.Z)(Pn,2),za=ja[0],fa=ja[1],ga=za==="date"&&mr?"datetime":za,Ga=lo(nr,za,lr,sr),Na=oi&&function(Ro,So){oi(eo(Ro),eo(So))},Zs=Fo((0,dt.Z)((0,dt.Z)({},Pt),{},{onChange:Na}),Xo,po,mo,Jr,[],dn,er,Yo,jn),sa=(0,it.Z)(Zs,2),Wr=sa[1],Va=ot(Do,jn),$a=(0,it.Z)(Va,2),la=$a[0],yo=$a[1],ma=De.useMemo(function(){return la.some(function(Ro){return Ro})},[la]),ls=function(So,Ya){if(ir){var iu=(0,dt.Z)((0,dt.Z)({},Ya),{},{mode:Ya.mode[0]});delete iu.range,ir(So[0],iu)}},aa=Zr(fr,Pi,Do,[za],Yo,di,$t,!1,Oi,Ln,Ce(mr==null?void 0:mr.defaultOpenValue),ls,ai,Wi),us=(0,it.Z)(aa,2),Ta=us[0],bl=us[1],Wo=(0,at.zX)(function(Ro,So,Ya){if(fa(So),Mi&&Ya!==!1){var iu=Ro||Do[Do.length-1];Mi(iu,So)}}),Fa=function(){Wr(mo()),To(!1,{force:!0})},Io=function(So){!fi&&!Ui.current.nativeElement.contains(document.activeElement)&&Ui.current.focus(),To(!0),ea==null||ea(So)},Jo=function(){Wr(null),To(!1,{force:!0})},ha=De.useState(null),va=(0,it.Z)(ha,2),Qo=va[0],fl=va[1],Gr=De.useState(null),pu=(0,it.Z)(Gr,2),Ao=pu[0],Gl=pu[1],Qs=De.useMemo(function(){var Ro=[Ao].concat((0,Ye.Z)(Do)).filter(function(So){return So});return Zi?Ro:Ro.slice(0,1)},[Do,Ao,Zi]),Dl=De.useMemo(function(){return!Zi&&Ao?[Ao]:Do.filter(function(Ro){return Ro})},[Do,Ao,Zi]);De.useEffect(function(){Yo||Gl(null)},[Yo]);var mu=$n(Er),vu=function(So){Gl(So),fl("preset")},Ws=function(So){var Ya=Zi?co(mo(),So):[So],iu=Wr(Ya);iu&&!Zi&&To(!1,{force:!0})},Vl=function(So){Ws(So)},Ko=function(So){Gl(So),fl("cell")},Hs=function(So){To(!0),Go(So)},yu=function(So){if(vr("panel"),!(Zi&&ga!==nr)){var Ya=Zi?co(mo(),So):[So];Jr(Ya),!zn&&!Qt&&$t===ga&&Fa()}},gl=function(){To(!1)},Du=rt(vo,No,$r),pl=De.useMemo(function(){var Ro=(0,xt.Z)(Pt,!1),So=(0,Ue.Z)(Pt,[].concat((0,Ye.Z)(Object.keys(Ro)),["onChange","onCalendarChange","style","className","onPanelChange"]));return(0,dt.Z)((0,dt.Z)({},So),{},{multiple:Pt.multiple})},[Pt]),Bo=De.createElement(Ir,(0,ve.Z)({},pl,{showNow:Ga,showTime:mr,disabledDate:pi,onFocus:Hs,onBlur:St,picker:nr,mode:za,internalMode:ga,onPanelChange:Wo,format:Nn,value:Do,isInvalid:jn,onChange:null,onSelect:yu,pickerValue:Ta,defaultOpenValue:mr==null?void 0:mr.defaultOpenValue,onPickerValueChange:bl,hoverValue:Qs,onHover:Ko,needConfirm:zn,onSubmit:Fa,onOk:ta,presets:mu,onPresetHover:vu,onPresetSubmit:Ws,onNow:Vl,cellRender:Du})),Vo=function(So){Jr(So)},Ea=function(){vr("input")},es=function(So){vr("input"),To(!0,{inherit:!0}),Go(So)},Xa=function(So){To(!1),St(So)},kl=function(So,Ya){So.key==="Tab"&&Fa(),Wn==null||Wn(So,Ya)},ml=De.useMemo(function(){return{prefixCls:qn,locale:Pi,generateConfig:fr,button:oo.button,input:oo.input}},[qn,Pi,fr,oo.button,oo.input]);return(0,Ze.Z)(function(){Yo&&di!==void 0&&Wo(null,nr,!1)},[Yo,di,nr]),(0,Ze.Z)(function(){var Ro=vr();!Yo&&Ro==="input"&&(To(!1),Fa()),!Yo&&Qt&&!zn&&Ro==="panel"&&Fa()},[Yo]),De.createElement(ue.Provider,{value:ml},De.createElement(pe,(0,ve.Z)({},Re(Pt),{popupElement:Bo,popupStyle:ci.popup,popupClassName:vt.popup,visible:Yo,onClose:gl}),De.createElement(Hn,(0,ve.Z)({},Pt,{ref:Ui,suffixIcon:Mr,removeIcon:An,activeHelp:!!Ao,allHelp:!!Ao&&Qo==="preset",focused:er,onFocus:es,onBlur:Xa,onKeyDown:kl,onSubmit:Fa,value:Dl,maskFormat:Nn,onChange:Vo,onInputChange:Ea,internalPicker:$t,format:dn,inputReadOnly:hr,disabled:fi,open:Yo,onOpenChange:To,onClick:Io,onClear:Jo,invalid:ma,onInvalid:function(So){yo(So,0)}}))))}var un=De.forwardRef(Bn),On=un,li=On},25930:function(fn,on,we){"use strict";we.d(on,{Cd:function(){return rt}});var ve=we(71409),Ye=we(89490),dt=we(39224),it=we(59301),at=we(92310),Ze=we.n(at),Ue={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},xt=function(){var gt=(0,it.useRef)([]),kt=(0,it.useRef)(null);return(0,it.useEffect)(function(){var Lt=Date.now(),Ot=!1;gt.current.forEach(function(Nt){if(Nt){Ot=!0;var tn=Nt.style;tn.transitionDuration=".3s, .3s, .3s, .06s",kt.current&&Lt-kt.current<100&&(tn.transitionDuration="0s, 0s")}}),Ot&&(kt.current=Date.now())}),gt.current},nt=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],De=function(gt){var kt=(0,Ye.Z)((0,Ye.Z)({},Ue),gt),Lt=kt.className,Ot=kt.percent,Nt=kt.prefixCls,tn=kt.strokeColor,st=kt.strokeLinecap,He=kt.strokeWidth,Rt=kt.style,Zt=kt.trailColor,_t=kt.trailWidth,Mt=kt.transition,jt=(0,dt.Z)(kt,nt);delete jt.gapPosition;var an=Array.isArray(Ot)?Ot:[Ot],Dn=Array.isArray(tn)?tn:[tn],Dt=xt(),gn=He/2,yt=100-He/2,Zn="M ".concat(st==="round"?gn:0,",").concat(gn,`
L `).concat(st==="round"?yt:100,",").concat(gn),vi="0 0 100 ".concat(He),We=0;return it.createElement("svg",(0,ve.Z)({className:Ze()("".concat(Nt,"-line"),Lt),viewBox:vi,preserveAspectRatio:"none",style:Rt},jt),it.createElement("path",{className:"".concat(Nt,"-line-trail"),d:Zn,strokeLinecap:st,stroke:Zt,strokeWidth:_t||He,fillOpacity:"0"}),an.map(function(Fe,xe){var Ne=1;switch(st){case"round":Ne=1-He/100;break;case"square":Ne=1-He/2/100;break;default:Ne=1;break}var _e={strokeDasharray:"".concat(Fe*Ne,"px, 100px"),strokeDashoffset:"-".concat(We,"px"),transition:Mt||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},be=Dn[xe]||Dn[Dn.length-1];return We+=Fe,it.createElement("path",{key:xe,className:"".concat(Nt,"-line-path"),d:Zn,strokeLinecap:st,stroke:be,strokeWidth:He,fillOpacity:"0",ref:function(Xt){Dt[xe]=Xt},style:_e})}))},wt=De,Ve=we(28788),ut=we(11036),Ee=we(47273),te=0,ne=(0,Ee.Z)();function ue(){var Ct;return ne?(Ct=te,te+=1):Ct="TEST_OR_SSR",Ct}var se=function(Ct){var gt=it.useState(),kt=(0,ut.Z)(gt,2),Lt=kt[0],Ot=kt[1];return it.useEffect(function(){Ot("rc_progress_".concat(ue()))},[]),Ct||Lt},de=function(gt){var kt=gt.bg,Lt=gt.children;return it.createElement("div",{style:{width:"100%",height:"100%",background:kt}},Lt)};function pe(Ct,gt){return Object.keys(Ct).map(function(kt){var Lt=parseFloat(kt),Ot="".concat(Math.floor(Lt*gt),"%");return"".concat(Ct[kt]," ").concat(Ot)})}var ye=it.forwardRef(function(Ct,gt){var kt=Ct.prefixCls,Lt=Ct.color,Ot=Ct.gradientId,Nt=Ct.radius,tn=Ct.style,st=Ct.ptg,He=Ct.strokeLinecap,Rt=Ct.strokeWidth,Zt=Ct.size,_t=Ct.gapDegree,Mt=Lt&&(0,Ve.Z)(Lt)==="object",jt=Mt?"#FFF":void 0,an=Zt/2,Dn=it.createElement("circle",{className:"".concat(kt,"-circle-path"),r:Nt,cx:an,cy:an,stroke:jt,strokeLinecap:He,strokeWidth:Rt,opacity:st===0?0:1,style:tn,ref:gt});if(!Mt)return Dn;var Dt="".concat(Ot,"-conic"),gn=_t?"".concat(180+_t/2,"deg"):"0deg",yt=pe(Lt,(360-_t)/360),Zn=pe(Lt,1),vi="conic-gradient(from ".concat(gn,", ").concat(yt.join(", "),")"),We="linear-gradient(to ".concat(_t?"bottom":"top",", ").concat(Zn.join(", "),")");return it.createElement(it.Fragment,null,it.createElement("mask",{id:Dt},Dn),it.createElement("foreignObject",{x:0,y:0,width:Zt,height:Zt,mask:"url(#".concat(Dt,")")},it.createElement(de,{bg:We},it.createElement(de,{bg:vi}))))}),Ce=ye,ze=100,Te=function(gt,kt,Lt,Ot,Nt,tn,st,He,Rt,Zt){var _t=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,Mt=Lt/100*360*((360-tn)/360),jt=tn===0?0:{bottom:0,top:180,left:90,right:-90}[st],an=(100-Ot)/100*kt;Rt==="round"&&Ot!==100&&(an+=Zt/2,an>=kt&&(an=kt-.01));var Dn=ze/2;return{stroke:typeof He=="string"?He:void 0,strokeDasharray:"".concat(kt,"px ").concat(gt),strokeDashoffset:an+_t,transform:"rotate(".concat(Nt+Mt+jt,"deg)"),transformOrigin:"".concat(Dn,"px ").concat(Dn,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},Ie=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function Oe(Ct){var gt=Ct!=null?Ct:[];return Array.isArray(gt)?gt:[gt]}var Re=function(gt){var kt=(0,Ye.Z)((0,Ye.Z)({},Ue),gt),Lt=kt.id,Ot=kt.prefixCls,Nt=kt.steps,tn=kt.strokeWidth,st=kt.trailWidth,He=kt.gapDegree,Rt=He===void 0?0:He,Zt=kt.gapPosition,_t=kt.trailColor,Mt=kt.strokeLinecap,jt=kt.style,an=kt.className,Dn=kt.strokeColor,Dt=kt.percent,gn=(0,dt.Z)(kt,Ie),yt=ze/2,Zn=se(Lt),vi="".concat(Zn,"-gradient"),We=yt-tn/2,Fe=Math.PI*2*We,xe=Rt>0?90+Rt/2:-90,Ne=Fe*((360-Rt)/360),_e=(0,Ve.Z)(Nt)==="object"?Nt:{count:Nt,gap:2},be=_e.count,tt=_e.gap,Xt=Oe(Dt),Bt=Oe(Dn),nn=Bt.find(function(wn){return wn&&(0,Ve.Z)(wn)==="object"}),Tt=nn&&(0,Ve.Z)(nn)==="object",bt=Tt?"butt":Mt,zt=Te(Fe,Ne,0,100,xe,Rt,Zt,_t,bt,tn),qt=xt(),pn=function(){var Fn=0;return Xt.map(function(Ci,$n){var bi=Bt[$n]||Bt[Bt.length-1],hi=Te(Fe,Ne,Fn,Ci,xe,Rt,Zt,bi,bt,tn);return Fn+=Ci,it.createElement(Ce,{key:$n,color:bi,ptg:Ci,radius:We,prefixCls:Ot,gradientId:vi,style:hi,strokeLinecap:bt,strokeWidth:tn,gapDegree:Rt,ref:function(Gi){qt[$n]=Gi},size:ze})}).reverse()},ei=function(){var Fn=Math.round(be*(Xt[0]/100)),Ci=100/be,$n=0;return new Array(be).fill(null).map(function(bi,hi){var Di=hi<=Fn-1?Bt[0]:_t,Gi=Di&&(0,Ve.Z)(Di)==="object"?"url(#".concat(vi,")"):void 0,Ji=Te(Fe,Ne,$n,Ci,xe,Rt,Zt,Di,"butt",tn,tt);return $n+=(Ne-Ji.strokeDashoffset+tt)*100/Ne,it.createElement("circle",{key:hi,className:"".concat(Ot,"-circle-path"),r:We,cx:yt,cy:yt,stroke:Gi,strokeWidth:tn,opacity:1,style:Ji,ref:function(qi){qt[hi]=qi}})})};return it.createElement("svg",(0,ve.Z)({className:Ze()("".concat(Ot,"-circle"),an),viewBox:"0 0 ".concat(ze," ").concat(ze),style:jt,id:Lt,role:"presentation"},gn),!be&&it.createElement("circle",{className:"".concat(Ot,"-circle-trail"),r:We,cx:yt,cy:yt,stroke:_t,strokeLinecap:bt,strokeWidth:st||tn,style:zt}),be?ei():pn())},rt=Re,ot={Line:wt,Circle:rt}},738:function(fn,on,we){"use strict";we.d(on,{Z:function(){return pe}});var ve=we(71409),Ye=we(87075),dt=we(11036),it=we(39224),at=we(92310),Ze=we.n(at),Ue=we(18929),xt=we(10228),nt=we(26112),De=we(59301);function wt(ye,Ce){var ze=ye.disabled,Te=ye.prefixCls,Ie=ye.character,Oe=ye.characterRender,Re=ye.index,rt=ye.count,ot=ye.value,Ct=ye.allowHalf,gt=ye.focused,kt=ye.onHover,Lt=ye.onClick,Ot=function(Mt){kt(Mt,Re)},Nt=function(Mt){Lt(Mt,Re)},tn=function(Mt){Mt.keyCode===xt.Z.ENTER&&Lt(Mt,Re)},st=Re+1,He=new Set([Te]);ot===0&&Re===0&&gt?He.add("".concat(Te,"-focused")):Ct&&ot+.5>=st&&ot<st?(He.add("".concat(Te,"-half")),He.add("".concat(Te,"-active")),gt&&He.add("".concat(Te,"-focused"))):(st<=ot?He.add("".concat(Te,"-full")):He.add("".concat(Te,"-zero")),st===ot&&gt&&He.add("".concat(Te,"-focused")));var Rt=typeof Ie=="function"?Ie(ye):Ie,Zt=De.createElement("li",{className:Ze()(Array.from(He)),ref:Ce},De.createElement("div",{onClick:ze?null:Nt,onKeyDown:ze?null:tn,onMouseMove:ze?null:Ot,role:"radio","aria-checked":ot>Re?"true":"false","aria-posinset":Re+1,"aria-setsize":rt,tabIndex:ze?-1:0},De.createElement("div",{className:"".concat(Te,"-first")},Rt),De.createElement("div",{className:"".concat(Te,"-second")},Rt)));return Oe&&(Zt=Oe(Zt,ye)),Zt}var Ve=De.forwardRef(wt);function ut(){var ye=De.useRef({});function Ce(Te){return ye.current[Te]}function ze(Te){return function(Ie){ye.current[Te]=Ie}}return[Ce,ze]}function Ee(ye){var Ce=ye.pageXOffset,ze="scrollLeft";if(typeof Ce!="number"){var Te=ye.document;Ce=Te.documentElement[ze],typeof Ce!="number"&&(Ce=Te.body[ze])}return Ce}function te(ye){var Ce,ze,Te=ye.ownerDocument,Ie=Te.body,Oe=Te&&Te.documentElement,Re=ye.getBoundingClientRect();return Ce=Re.left,ze=Re.top,Ce-=Oe.clientLeft||Ie.clientLeft||0,ze-=Oe.clientTop||Ie.clientTop||0,{left:Ce,top:ze}}function ne(ye){var Ce=te(ye),ze=ye.ownerDocument,Te=ze.defaultView||ze.parentWindow;return Ce.left+=Ee(Te),Ce.left}var ue=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","keyboard","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function se(ye,Ce){var ze=ye.prefixCls,Te=ze===void 0?"rc-rate":ze,Ie=ye.className,Oe=ye.defaultValue,Re=ye.value,rt=ye.count,ot=rt===void 0?5:rt,Ct=ye.allowHalf,gt=Ct===void 0?!1:Ct,kt=ye.allowClear,Lt=kt===void 0?!0:kt,Ot=ye.keyboard,Nt=Ot===void 0?!0:Ot,tn=ye.character,st=tn===void 0?"\u2605":tn,He=ye.characterRender,Rt=ye.disabled,Zt=ye.direction,_t=Zt===void 0?"ltr":Zt,Mt=ye.tabIndex,jt=Mt===void 0?0:Mt,an=ye.autoFocus,Dn=ye.onHoverChange,Dt=ye.onChange,gn=ye.onFocus,yt=ye.onBlur,Zn=ye.onKeyDown,vi=ye.onMouseLeave,We=(0,it.Z)(ye,ue),Fe=ut(),xe=(0,dt.Z)(Fe,2),Ne=xe[0],_e=xe[1],be=De.useRef(null),tt=function(){if(!Rt){var Ar;(Ar=be.current)===null||Ar===void 0||Ar.focus()}};De.useImperativeHandle(Ce,function(){return{focus:tt,blur:function(){if(!Rt){var Ar;(Ar=be.current)===null||Ar===void 0||Ar.blur()}}}});var Xt=(0,Ue.Z)(Oe||0,{value:Re}),Bt=(0,dt.Z)(Xt,2),nn=Bt[0],Tt=Bt[1],bt=(0,Ue.Z)(null),zt=(0,dt.Z)(bt,2),qt=zt[0],pn=zt[1],ei=function(Ar,ro){var Le=_t==="rtl",xn=Ar+1;if(gt){var Qn=Ne(Ar),gi=ne(Qn),yi=Qn.clientWidth;(Le&&ro-gi>yi/2||!Le&&ro-gi<yi/2)&&(xn-=.5)}return xn},wn=function(Ar){Tt(Ar),Dt==null||Dt(Ar)},Fn=De.useState(!1),Ci=(0,dt.Z)(Fn,2),$n=Ci[0],bi=Ci[1],hi=function(){bi(!0),gn==null||gn()},Di=function(){bi(!1),yt==null||yt()},Gi=De.useState(null),Ji=(0,dt.Z)(Gi,2),Zr=Ji[0],qi=Ji[1],ii=function(Ar,ro){var Le=ei(ro,Ar.pageX);Le!==qt&&(qi(Le),pn(null)),Dn==null||Dn(Le)},so=function(Ar){Rt||(qi(null),pn(null),Dn==null||Dn(void 0)),Ar&&(vi==null||vi(Ar))},Kr=function(Ar,ro){var Le=ei(ro,Ar.pageX),xn=!1;Lt&&(xn=Le===nn),so(),wn(xn?0:Le),pn(xn?Le:null)},qr=function(Ar){var ro=Ar.keyCode,Le=_t==="rtl",xn=gt?.5:1;Nt&&(ro===xt.Z.RIGHT&&nn<ot&&!Le?(wn(nn+xn),Ar.preventDefault()):ro===xt.Z.LEFT&&nn>0&&!Le||ro===xt.Z.RIGHT&&nn>0&&Le?(wn(nn-xn),Ar.preventDefault()):ro===xt.Z.LEFT&&nn<ot&&Le&&(wn(nn+xn),Ar.preventDefault())),Zn==null||Zn(Ar)};De.useEffect(function(){an&&!Rt&&tt()},[]);var io=new Array(ot).fill(0).map(function(lo,Ar){return De.createElement(Ve,{ref:_e(Ar),index:Ar,count:ot,disabled:Rt,prefixCls:"".concat(Te,"-star"),allowHalf:gt,value:Zr===null?nn:Zr,onClick:Kr,onHover:ii,key:lo||Ar,character:st,characterRender:He,focused:$n})}),Fo=Ze()(Te,Ie,(0,Ye.Z)((0,Ye.Z)({},"".concat(Te,"-disabled"),Rt),"".concat(Te,"-rtl"),_t==="rtl"));return De.createElement("ul",(0,ve.Z)({className:Fo,onMouseLeave:so,tabIndex:Rt?-1:jt,onFocus:Rt?null:hi,onBlur:Rt?null:Di,onKeyDown:Rt?null:qr,ref:be},(0,nt.Z)(We,{aria:!0,data:!0,attr:!0})),io)}var de=De.forwardRef(se),pe=de},6551:function(fn,on,we){"use strict";we.d(on,{ZP:function(){return Ue}});var ve=we(11036),Ye=we(59301),dt=we(47273),it=0,at=(0,dt.Z)();function Ze(){var xt;return at?(xt=it,it+=1):xt="TEST_OR_SSR",xt}function Ue(xt){var nt=Ye.useState(),De=(0,ve.Z)(nt,2),wt=De[0],Ve=De[1];return Ye.useEffect(function(){Ve("rc_select_".concat(Ze()))},[]),xt||wt}},37463:function(fn,on,we){"use strict";we.d(on,{Ac:function(){return bi},Xo:function(){return Di},Wx:function(){return Ji},ZP:function(){return br},lk:function(){return pe}});var ve=we(71409),Ye=we(62730),dt=we(87075),it=we(89490),at=we(11036),Ze=we(39224),Ue=we(28788),xt=we(18929),nt=we(48736),De=we(59301),wt=we(92310),Ve=we.n(wt),ut=we(34280),Ee=we(49658),te=we(8654),ne=function(Ft){var Tn=Ft.className,Yn=Ft.customizeIcon,en=Ft.customizeIconProps,Gn=Ft.children,kn=Ft.onMouseDown,_n=Ft.onClick,xi=typeof Yn=="function"?Yn(en):Yn;return De.createElement("span",{className:Tn,onMouseDown:function(sn){sn.preventDefault(),kn==null||kn(sn)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:_n,"aria-hidden":!0},xi!==void 0?xi:De.createElement("span",{className:Ve()(Tn.split(/\s+/).map(function(mi){return"".concat(mi,"-icon")}))},Gn))},ue=ne,se=function(Ft,Tn,Yn,en,Gn){var kn=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,_n=arguments.length>6?arguments[6]:void 0,xi=arguments.length>7?arguments[7]:void 0,mi=De.useMemo(function(){if((0,Ue.Z)(en)==="object")return en.clearIcon;if(Gn)return Gn},[en,Gn]),sn=De.useMemo(function(){return!!(!kn&&en&&(Yn.length||_n)&&!(xi==="combobox"&&_n===""))},[en,kn,Yn.length,_n,xi]);return{allowClear:sn,clearIcon:De.createElement(ue,{className:"".concat(Ft,"-clear"),onMouseDown:Tn,customizeIcon:mi},"\xD7")}},de=De.createContext(null);function pe(){return De.useContext(de)}function ye(){var et=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,Ft=De.useState(!1),Tn=(0,at.Z)(Ft,2),Yn=Tn[0],en=Tn[1],Gn=De.useRef(null),kn=function(){window.clearTimeout(Gn.current)};De.useEffect(function(){return kn},[]);var _n=function(mi,sn){kn(),Gn.current=window.setTimeout(function(){en(mi),sn&&sn()},et)};return[Yn,_n,kn]}function Ce(){var et=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,Ft=De.useRef(null),Tn=De.useRef(null);De.useEffect(function(){return function(){window.clearTimeout(Tn.current)}},[]);function Yn(en){(en||Ft.current===null)&&(Ft.current=en),window.clearTimeout(Tn.current),Tn.current=window.setTimeout(function(){Ft.current=null},et)}return[function(){return Ft.current},Yn]}function ze(et,Ft,Tn,Yn){var en=De.useRef(null);en.current={open:Ft,triggerOpen:Tn,customizedTrigger:Yn},De.useEffect(function(){function Gn(kn){var _n;if(!((_n=en.current)!==null&&_n!==void 0&&_n.customizedTrigger)){var xi=kn.target;xi.shadowRoot&&kn.composed&&(xi=kn.composedPath()[0]||xi),en.current.open&&et().filter(function(mi){return mi}).every(function(mi){return!mi.contains(xi)&&mi!==xi})&&en.current.triggerOpen(!1)}}return window.addEventListener("mousedown",Gn),function(){return window.removeEventListener("mousedown",Gn)}},[])}var Te=we(10228);function Ie(et){return et&&![Te.Z.ESC,Te.Z.SHIFT,Te.Z.BACKSPACE,Te.Z.TAB,Te.Z.WIN_KEY,Te.Z.ALT,Te.Z.META,Te.Z.WIN_KEY_RIGHT,Te.Z.CTRL,Te.Z.SEMICOLON,Te.Z.EQUALS,Te.Z.CAPS_LOCK,Te.Z.CONTEXT_MENU,Te.Z.F1,Te.Z.F2,Te.Z.F3,Te.Z.F4,Te.Z.F5,Te.Z.F6,Te.Z.F7,Te.Z.F8,Te.Z.F9,Te.Z.F10,Te.Z.F11,Te.Z.F12].includes(et)}var Oe=we(26112),Re=we(11780);function rt(et,Ft,Tn){var Yn=(0,it.Z)((0,it.Z)({},et),Tn?Ft:{});return Object.keys(Ft).forEach(function(en){var Gn=Ft[en];typeof Gn=="function"&&(Yn[en]=function(){for(var kn,_n=arguments.length,xi=new Array(_n),mi=0;mi<_n;mi++)xi[mi]=arguments[mi];return Gn.apply(void 0,xi),(kn=et[en])===null||kn===void 0?void 0:kn.call.apply(kn,[et].concat(xi))})}),Yn}var ot=rt,Ct=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],gt=function(Ft,Tn){var Yn=Ft.prefixCls,en=Ft.id,Gn=Ft.inputElement,kn=Ft.autoFocus,_n=Ft.autoComplete,xi=Ft.editable,mi=Ft.activeDescendantId,sn=Ft.value,ki=Ft.open,Cr=Ft.attrs,gr=(0,Ze.Z)(Ft,Ct),dr=Gn||De.createElement("input",null),mn=dr,Ir=mn.ref,jr=mn.props;return(0,nt.Kp)(!("maxLength"in dr.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),dr=De.cloneElement(dr,(0,it.Z)((0,it.Z)((0,it.Z)({type:"search"},ot(gr,jr,!0)),{},{id:en,ref:(0,te.sQ)(Tn,Ir),autoComplete:_n||"off",autoFocus:kn,className:Ve()("".concat(Yn,"-selection-search-input"),jr==null?void 0:jr.className),role:"combobox","aria-expanded":ki||!1,"aria-haspopup":"listbox","aria-owns":"".concat(en,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(en,"_list"),"aria-activedescendant":ki?mi:void 0},Cr),{},{value:xi?sn:"",readOnly:!xi,unselectable:xi?null:"on",style:(0,it.Z)((0,it.Z)({},jr.style),{},{opacity:xi?null:0})})),dr},kt=De.forwardRef(gt),Lt=kt;function Ot(et){return Array.isArray(et)?et:et!==void 0?[et]:[]}var Nt=typeof window!="undefined"&&window.document&&window.document.documentElement,tn=Nt;function st(et){return et!=null}function He(et){return!et&&et!==0}function Rt(et){return["string","number"].includes((0,Ue.Z)(et))}function Zt(et){var Ft=void 0;return et&&(Rt(et.title)?Ft=et.title.toString():Rt(et.label)&&(Ft=et.label.toString())),Ft}function _t(et,Ft){tn?De.useLayoutEffect(et,Ft):De.useEffect(et,Ft)}function Mt(et){var Ft;return(Ft=et.key)!==null&&Ft!==void 0?Ft:et.value}var jt=function(Ft){Ft.preventDefault(),Ft.stopPropagation()},an=function(Ft){var Tn=Ft.id,Yn=Ft.prefixCls,en=Ft.values,Gn=Ft.open,kn=Ft.searchValue,_n=Ft.autoClearSearchValue,xi=Ft.inputRef,mi=Ft.placeholder,sn=Ft.disabled,ki=Ft.mode,Cr=Ft.showSearch,gr=Ft.autoFocus,dr=Ft.autoComplete,mn=Ft.activeDescendantId,Ir=Ft.tabIndex,jr=Ft.removeIcon,fo=Ft.maxTagCount,yn=Ft.maxTagTextLength,ni=Ft.maxTagPlaceholder,Hi=ni===void 0?function(Bn){return"+ ".concat(Bn.length," ...")}:ni,Ri=Ft.tagRender,Xi=Ft.onToggleOpen,$i=Ft.onRemove,Fr=Ft.onInputChange,Dr=Ft.onInputPaste,Rr=Ft.onInputKeyDown,Xr=Ft.onInputMouseDown,Mn=Ft.onInputCompositionStart,ho=Ft.onInputCompositionEnd,ln=Ft.onInputBlur,rr=De.useRef(null),Vr=(0,De.useState)(0),_r=(0,at.Z)(Vr,2),Co=_r[0],Qr=_r[1],Or=(0,De.useState)(!1),ko=(0,at.Z)(Or,2),Ht=ko[0],Cn=ko[1],Ut="".concat(Yn,"-selection"),je=Gn||ki==="multiple"&&_n===!1||ki==="tags"?kn:"",ri=ki==="tags"||ki==="multiple"&&_n===!1||Cr&&(Gn||Ht);_t(function(){Qr(rr.current.scrollWidth)},[je]);var Si=function(un,On,li,ke,ht){return De.createElement("span",{title:Zt(un),className:Ve()("".concat(Ut,"-item"),(0,dt.Z)({},"".concat(Ut,"-item-disabled"),li))},De.createElement("span",{className:"".concat(Ut,"-item-content")},On),ke&&De.createElement(ue,{className:"".concat(Ut,"-item-remove"),onMouseDown:jt,onClick:ht,customizeIcon:jr},"\xD7"))},$e=function(un,On,li,ke,ht,Je){var pt=function($t){jt($t),Xi(!Gn)};return De.createElement("span",{onMouseDown:pt},Ri({label:On,value:un,disabled:li,closable:ke,onClose:ht,isMaxTag:!!Je}))},rn=function(un){var On=un.disabled,li=un.label,ke=un.value,ht=!sn&&!On,Je=li;if(typeof yn=="number"&&(typeof li=="string"||typeof li=="number")){var pt=String(Je);pt.length>yn&&(Je="".concat(pt.slice(0,yn),"..."))}var Pt=function(Qt){Qt&&Qt.stopPropagation(),$i(un)};return typeof Ri=="function"?$e(ke,Je,On,ht,Pt):Si(un,Je,On,ht,Pt)},Wt=function(un){if(!en.length)return null;var On=typeof Hi=="function"?Hi(un):Hi;return typeof Ri=="function"?$e(void 0,On,!1,!1,void 0,!0):Si({title:On},On,!1)},Kt=De.createElement("div",{className:"".concat(Ut,"-search"),style:{width:Co},onFocus:function(){Cn(!0)},onBlur:function(){Cn(!1)}},De.createElement(Lt,{ref:xi,open:Gn,prefixCls:Yn,id:Tn,inputElement:null,disabled:sn,autoFocus:gr,autoComplete:dr,editable:ri,activeDescendantId:mn,value:je,onKeyDown:Rr,onMouseDown:Xr,onChange:Fr,onPaste:Dr,onCompositionStart:Mn,onCompositionEnd:ho,onBlur:ln,tabIndex:Ir,attrs:(0,Oe.Z)(Ft,!0)}),De.createElement("span",{ref:rr,className:"".concat(Ut,"-search-mirror"),"aria-hidden":!0},je,"\xA0")),Hn=De.createElement(Re.Z,{prefixCls:"".concat(Ut,"-overflow"),data:en,renderItem:rn,renderRest:Wt,suffix:Kt,itemKey:Mt,maxCount:fo});return De.createElement("span",{className:"".concat(Ut,"-wrap")},Hn,!en.length&&!je&&De.createElement("span",{className:"".concat(Ut,"-placeholder")},mi))},Dn=an,Dt=function(Ft){var Tn=Ft.inputElement,Yn=Ft.prefixCls,en=Ft.id,Gn=Ft.inputRef,kn=Ft.disabled,_n=Ft.autoFocus,xi=Ft.autoComplete,mi=Ft.activeDescendantId,sn=Ft.mode,ki=Ft.open,Cr=Ft.values,gr=Ft.placeholder,dr=Ft.tabIndex,mn=Ft.showSearch,Ir=Ft.searchValue,jr=Ft.activeValue,fo=Ft.maxLength,yn=Ft.onInputKeyDown,ni=Ft.onInputMouseDown,Hi=Ft.onInputChange,Ri=Ft.onInputPaste,Xi=Ft.onInputCompositionStart,$i=Ft.onInputCompositionEnd,Fr=Ft.onInputBlur,Dr=Ft.title,Rr=De.useState(!1),Xr=(0,at.Z)(Rr,2),Mn=Xr[0],ho=Xr[1],ln=sn==="combobox",rr=ln||mn,Vr=Cr[0],_r=Ir||"";ln&&jr&&!Mn&&(_r=jr),De.useEffect(function(){ln&&ho(!1)},[ln,jr]);var Co=sn!=="combobox"&&!ki&&!mn?!1:!!_r,Qr=Dr===void 0?Zt(Vr):Dr,Or=De.useMemo(function(){return Vr?null:De.createElement("span",{className:"".concat(Yn,"-selection-placeholder"),style:Co?{visibility:"hidden"}:void 0},gr)},[Vr,Co,gr,Yn]);return De.createElement("span",{className:"".concat(Yn,"-selection-wrap")},De.createElement("span",{className:"".concat(Yn,"-selection-search")},De.createElement(Lt,{ref:Gn,prefixCls:Yn,id:en,open:ki,inputElement:Tn,disabled:kn,autoFocus:_n,autoComplete:xi,editable:rr,activeDescendantId:mi,value:_r,onKeyDown:yn,onMouseDown:ni,onChange:function(Ht){ho(!0),Hi(Ht)},onPaste:Ri,onCompositionStart:Xi,onCompositionEnd:$i,onBlur:Fr,tabIndex:dr,attrs:(0,Oe.Z)(Ft,!0),maxLength:ln?fo:void 0})),!ln&&Vr?De.createElement("span",{className:"".concat(Yn,"-selection-item"),title:Qr,style:Co?{visibility:"hidden"}:void 0},Vr.label):null,Or)},gn=Dt,yt=function(Ft,Tn){var Yn=(0,De.useRef)(null),en=(0,De.useRef)(!1),Gn=Ft.prefixCls,kn=Ft.open,_n=Ft.mode,xi=Ft.showSearch,mi=Ft.tokenWithEnter,sn=Ft.disabled,ki=Ft.prefix,Cr=Ft.autoClearSearchValue,gr=Ft.onSearch,dr=Ft.onSearchSubmit,mn=Ft.onToggleOpen,Ir=Ft.onInputKeyDown,jr=Ft.onInputBlur,fo=Ft.domRef;De.useImperativeHandle(Tn,function(){return{focus:function(Qr){Yn.current.focus(Qr)},blur:function(){Yn.current.blur()}}});var yn=Ce(0),ni=(0,at.Z)(yn,2),Hi=ni[0],Ri=ni[1],Xi=function(Qr){var Or=Qr.which,ko=Yn.current instanceof HTMLTextAreaElement;!ko&&kn&&(Or===Te.Z.UP||Or===Te.Z.DOWN)&&Qr.preventDefault(),Ir&&Ir(Qr),Or===Te.Z.ENTER&&_n==="tags"&&!en.current&&!kn&&(dr==null||dr(Qr.target.value)),!(ko&&!kn&&~[Te.Z.UP,Te.Z.DOWN,Te.Z.LEFT,Te.Z.RIGHT].indexOf(Or))&&Ie(Or)&&mn(!0)},$i=function(){Ri(!0)},Fr=(0,De.useRef)(null),Dr=function(Qr){gr(Qr,!0,en.current)!==!1&&mn(!0)},Rr=function(){en.current=!0},Xr=function(Qr){en.current=!1,_n!=="combobox"&&Dr(Qr.target.value)},Mn=function(Qr){var Or=Qr.target.value;if(mi&&Fr.current&&/[\r\n]/.test(Fr.current)){var ko=Fr.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Or=Or.replace(ko,Fr.current)}Fr.current=null,Dr(Or)},ho=function(Qr){var Or=Qr.clipboardData,ko=Or==null?void 0:Or.getData("text");Fr.current=ko||""},ln=function(Qr){var Or=Qr.target;if(Or!==Yn.current){var ko=document.body.style.msTouchAction!==void 0;ko?setTimeout(function(){Yn.current.focus()}):Yn.current.focus()}},rr=function(Qr){var Or=Hi();Qr.target!==Yn.current&&!Or&&!(_n==="combobox"&&sn)&&Qr.preventDefault(),(_n!=="combobox"&&(!xi||!Or)||!kn)&&(kn&&Cr!==!1&&gr("",!0,!1),mn())},Vr={inputRef:Yn,onInputKeyDown:Xi,onInputMouseDown:$i,onInputChange:Mn,onInputPaste:ho,onInputCompositionStart:Rr,onInputCompositionEnd:Xr,onInputBlur:jr},_r=_n==="multiple"||_n==="tags"?De.createElement(Dn,(0,ve.Z)({},Ft,Vr)):De.createElement(gn,(0,ve.Z)({},Ft,Vr));return De.createElement("div",{ref:fo,className:"".concat(Gn,"-selector"),onClick:ln,onMouseDown:rr},ki&&De.createElement("div",{className:"".concat(Gn,"-prefix")},ki),_r)},Zn=De.forwardRef(yt),vi=Zn,We=we(65352),Fe=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],xe=function(Ft){var Tn=Ft===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:Tn,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:Tn,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:Tn,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:Tn,adjustY:1},htmlRegion:"scroll"}}},Ne=function(Ft,Tn){var Yn=Ft.prefixCls,en=Ft.disabled,Gn=Ft.visible,kn=Ft.children,_n=Ft.popupElement,xi=Ft.animation,mi=Ft.transitionName,sn=Ft.dropdownStyle,ki=Ft.dropdownClassName,Cr=Ft.direction,gr=Cr===void 0?"ltr":Cr,dr=Ft.placement,mn=Ft.builtinPlacements,Ir=Ft.dropdownMatchSelectWidth,jr=Ft.dropdownRender,fo=Ft.dropdownAlign,yn=Ft.getPopupContainer,ni=Ft.empty,Hi=Ft.getTriggerDOMNode,Ri=Ft.onPopupVisibleChange,Xi=Ft.onPopupMouseEnter,$i=(0,Ze.Z)(Ft,Fe),Fr="".concat(Yn,"-dropdown"),Dr=_n;jr&&(Dr=jr(_n));var Rr=De.useMemo(function(){return mn||xe(Ir)},[mn,Ir]),Xr=xi?"".concat(Fr,"-").concat(xi):mi,Mn=typeof Ir=="number",ho=De.useMemo(function(){return Mn?null:Ir===!1?"minWidth":"width"},[Ir,Mn]),ln=sn;Mn&&(ln=(0,it.Z)((0,it.Z)({},ln),{},{width:Ir}));var rr=De.useRef(null);return De.useImperativeHandle(Tn,function(){return{getPopupElement:function(){var _r;return(_r=rr.current)===null||_r===void 0?void 0:_r.popupElement}}}),De.createElement(We.Z,(0,ve.Z)({},$i,{showAction:Ri?["click"]:[],hideAction:Ri?["click"]:[],popupPlacement:dr||(gr==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Rr,prefixCls:Fr,popupTransitionName:Xr,popup:De.createElement("div",{onMouseEnter:Xi},Dr),ref:rr,stretch:ho,popupAlign:fo,popupVisible:Gn,getPopupContainer:yn,popupClassName:Ve()(ki,(0,dt.Z)({},"".concat(Fr,"-empty"),ni)),popupStyle:ln,getTriggerDOMNode:Hi,onPopupVisibleChange:Ri}),kn)},_e=De.forwardRef(Ne),be=_e,tt=we(67900);function Xt(et,Ft){var Tn=et.key,Yn;return"value"in et&&(Yn=et.value),Tn!=null?Tn:Yn!==void 0?Yn:"rc-index-key-".concat(Ft)}function Bt(et){return typeof et!="undefined"&&!Number.isNaN(et)}function nn(et,Ft){var Tn=et||{},Yn=Tn.label,en=Tn.value,Gn=Tn.options,kn=Tn.groupLabel,_n=Yn||(Ft?"children":"label");return{label:_n,value:en||"value",options:Gn||"options",groupLabel:kn||_n}}function Tt(et){var Ft=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Tn=Ft.fieldNames,Yn=Ft.childrenAsData,en=[],Gn=nn(Tn,!1),kn=Gn.label,_n=Gn.value,xi=Gn.options,mi=Gn.groupLabel;function sn(ki,Cr){Array.isArray(ki)&&ki.forEach(function(gr){if(Cr||!(xi in gr)){var dr=gr[_n];en.push({key:Xt(gr,en.length),groupOption:Cr,data:gr,label:gr[kn],value:dr})}else{var mn=gr[mi];mn===void 0&&Yn&&(mn=gr.label),en.push({key:Xt(gr,en.length),group:!0,data:gr,label:mn}),sn(gr[xi],!0)}})}return sn(et,!1),en}function bt(et){var Ft=(0,it.Z)({},et);return"props"in Ft||Object.defineProperty(Ft,"props",{get:function(){return(0,nt.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),Ft}}),Ft}var zt=function(Ft,Tn,Yn){if(!Tn||!Tn.length)return null;var en=!1,Gn=function _n(xi,mi){var sn=(0,tt.Z)(mi),ki=sn[0],Cr=sn.slice(1);if(!ki)return[xi];var gr=xi.split(ki);return en=en||gr.length>1,gr.reduce(function(dr,mn){return[].concat((0,Ye.Z)(dr),(0,Ye.Z)(_n(mn,Cr)))},[]).filter(Boolean)},kn=Gn(Ft,Tn);return en?typeof Yn!="undefined"?kn.slice(0,Yn):kn:null},qt=De.createContext(null),pn=qt;function ei(et){var Ft=et.visible,Tn=et.values;if(!Ft)return null;var Yn=50;return De.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(Tn.slice(0,Yn).map(function(en){var Gn=en.label,kn=en.value;return["number","string"].includes((0,Ue.Z)(Gn))?Gn:kn}).join(", ")),Tn.length>Yn?", ...":null)}var wn=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","prefix","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],Fn=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],Ci=function(Ft){return Ft==="tags"||Ft==="multiple"},$n=De.forwardRef(function(et,Ft){var Tn,Yn=et.id,en=et.prefixCls,Gn=et.className,kn=et.showSearch,_n=et.tagRender,xi=et.direction,mi=et.omitDomProps,sn=et.displayValues,ki=et.onDisplayValuesChange,Cr=et.emptyOptions,gr=et.notFoundContent,dr=gr===void 0?"Not Found":gr,mn=et.onClear,Ir=et.mode,jr=et.disabled,fo=et.loading,yn=et.getInputElement,ni=et.getRawInputElement,Hi=et.open,Ri=et.defaultOpen,Xi=et.onDropdownVisibleChange,$i=et.activeValue,Fr=et.onActiveValueChange,Dr=et.activeDescendantId,Rr=et.searchValue,Xr=et.autoClearSearchValue,Mn=et.onSearch,ho=et.onSearchSplit,ln=et.tokenSeparators,rr=et.allowClear,Vr=et.prefix,_r=et.suffixIcon,Co=et.clearIcon,Qr=et.OptionList,Or=et.animation,ko=et.transitionName,Ht=et.dropdownStyle,Cn=et.dropdownClassName,Ut=et.dropdownMatchSelectWidth,je=et.dropdownRender,ri=et.dropdownAlign,Si=et.placement,$e=et.builtinPlacements,rn=et.getPopupContainer,Wt=et.showAction,Kt=Wt===void 0?[]:Wt,Hn=et.onFocus,Bn=et.onBlur,un=et.onKeyUp,On=et.onKeyDown,li=et.onMouseDown,ke=(0,Ze.Z)(et,wn),ht=Ci(Ir),Je=(kn!==void 0?kn:ht)||Ir==="combobox",pt=(0,it.Z)({},ke);Fn.forEach(function(er){delete pt[er]}),mi==null||mi.forEach(function(er){delete pt[er]});var Pt=De.useState(!1),$t=(0,at.Z)(Pt,2),Qt=$t[0],dn=$t[1];De.useEffect(function(){dn((0,Ee.Z)())},[]);var Nn=De.useRef(null),jn=De.useRef(null),cn=De.useRef(null),qn=De.useRef(null),ci=De.useRef(null),vt=De.useRef(!1),Un=ye(),Jn=(0,at.Z)(Un,3),In=Jn[0],zn=Jn[1],oi=Jn[2];De.useImperativeHandle(Ft,function(){var er,Br;return{focus:(er=qn.current)===null||er===void 0?void 0:er.focus,blur:(Br=qn.current)===null||Br===void 0?void 0:Br.blur,scrollTo:function(di){var Go;return(Go=ci.current)===null||Go===void 0?void 0:Go.scrollTo(di)},nativeElement:Nn.current||jn.current}});var Wn=De.useMemo(function(){var er;if(Ir!=="combobox")return Rr;var Br=(er=sn[0])===null||er===void 0?void 0:er.value;return typeof Br=="string"||typeof Br=="number"?String(Br):""},[Rr,Ir,sn]),fi=Ir==="combobox"&&typeof yn=="function"&&yn()||null,pi=typeof ni=="function"&&ni(),ai=(0,te.x1)(jn,pi==null||(Tn=pi.props)===null||Tn===void 0?void 0:Tn.ref),Wi=De.useState(!1),pr=(0,at.Z)(Wi,2),or=pr[0],tr=pr[1];(0,ut.Z)(function(){tr(!0)},[]);var Pi=(0,xt.Z)(!1,{defaultValue:Ri,value:Hi}),fr=(0,at.Z)(Pi,2),nr=fr[0],lr=fr[1],sr=or?nr:!1,mr=!dr&&Cr;(jr||mr&&sr&&Ir==="combobox")&&(sr=!1);var En=mr?!1:sr,Mi=De.useCallback(function(er){var Br=er!==void 0?er:!sr;jr||(lr(Br),sr!==Br&&(Xi==null||Xi(Br)))},[jr,sr,lr,Xi]),Ti=De.useMemo(function(){return(ln||[]).some(function(er){return[`
`,`\r
`].includes(er)})},[ln]),Vi=De.useContext(pn)||{},Zi=Vi.maxCount,Oi=Vi.rawValues,Ln=function(Br,vr,di){if(!(ht&&Bt(Zi)&&(Oi==null?void 0:Oi.size)>=Zi)){var Go=!0,St=Br;Fr==null||Fr(null);var Pn=zt(Br,ln,Bt(Zi)?Zi-Oi.size:void 0),ja=di?null:Pn;return Ir!=="combobox"&&ja&&(St="",ho==null||ho(ja),Mi(!1),Go=!1),Mn&&Wn!==St&&Mn(St,{source:vr?"typing":"effect"}),Go}},ir=function(Br){!Br||!Br.trim()||Mn(Br,{source:"submit"})};De.useEffect(function(){!sr&&!ht&&Ir!=="combobox"&&Ln("",!1,!1)},[sr]),De.useEffect(function(){nr&&jr&&lr(!1),jr&&!vt.current&&zn(!1)},[jr]);var hr=Ce(),Mr=(0,at.Z)(hr,2),An=Mr[0],Fi=Mr[1],_i=De.useRef(!1),Er=function(Br){var vr=An(),di=Br.key,Go=di==="Enter";if(Go&&(Ir!=="combobox"&&Br.preventDefault(),sr||Mi(!0)),Fi(!!Wn),di==="Backspace"&&!vr&&ht&&!Wn&&sn.length){for(var St=(0,Ye.Z)(sn),Pn=null,ja=St.length-1;ja>=0;ja-=1){var za=St[ja];if(!za.disabled){St.splice(ja,1),Pn=za;break}}Pn&&ki(St,{type:"remove",values:[Pn]})}for(var fa=arguments.length,ga=new Array(fa>1?fa-1:0),Ga=1;Ga<fa;Ga++)ga[Ga-1]=arguments[Ga];if(sr&&(!Go||!_i.current)){var Na;Go&&(_i.current=!0),(Na=ci.current)===null||Na===void 0||Na.onKeyDown.apply(Na,[Br].concat(ga))}On==null||On.apply(void 0,[Br].concat(ga))},oo=function(Br){for(var vr=arguments.length,di=new Array(vr>1?vr-1:0),Go=1;Go<vr;Go++)di[Go-1]=arguments[Go];if(sr){var St;(St=ci.current)===null||St===void 0||St.onKeyUp.apply(St,[Br].concat(di))}Br.key==="Enter"&&(_i.current=!1),un==null||un.apply(void 0,[Br].concat(di))},vo=function(Br){var vr=sn.filter(function(di){return di!==Br});ki(vr,{type:"remove",values:[Br]})},No=function(){_i.current=!1},$r=De.useRef(!1),ea=function(){zn(!0),jr||(Hn&&!$r.current&&Hn.apply(void 0,arguments),Kt.includes("focus")&&Mi(!0)),$r.current=!0},Ui=function(){vt.current=!0,zn(!1,function(){$r.current=!1,vt.current=!1,Mi(!1)}),!jr&&(Wn&&(Ir==="tags"?Mn(Wn,{source:"submit"}):Ir==="multiple"&&Mn("",{source:"blur"})),Bn&&Bn.apply(void 0,arguments))},eo=[];De.useEffect(function(){return function(){eo.forEach(function(er){return clearTimeout(er)}),eo.splice(0,eo.length)}},[]);var co=function(Br){var vr,di=Br.target,Go=(vr=cn.current)===null||vr===void 0?void 0:vr.getPopupElement();if(Go&&Go.contains(di)){var St=setTimeout(function(){var fa=eo.indexOf(St);if(fa!==-1&&eo.splice(fa,1),oi(),!Qt&&!Go.contains(document.activeElement)){var ga;(ga=qn.current)===null||ga===void 0||ga.focus()}});eo.push(St)}for(var Pn=arguments.length,ja=new Array(Pn>1?Pn-1:0),za=1;za<Pn;za++)ja[za-1]=arguments[za];li==null||li.apply(void 0,[Br].concat(ja))},bo=De.useState({}),na=(0,at.Z)(bo,2),Yo=na[1];function To(){Yo({})}var Eo;pi&&(Eo=function(Br){Mi(Br)}),ze(function(){var er;return[Nn.current,(er=cn.current)===null||er===void 0?void 0:er.getPopupElement()]},En,Mi,!!pi);var ra=De.useMemo(function(){return(0,it.Z)((0,it.Z)({},et),{},{notFoundContent:dr,open:sr,triggerOpen:En,id:Yn,showSearch:Je,multiple:ht,toggleOpen:Mi})},[et,dr,En,sr,Yn,Je,ht,Mi]),ca=!!_r||fo,Oo;ca&&(Oo=De.createElement(ue,{className:Ve()("".concat(en,"-arrow"),(0,dt.Z)({},"".concat(en,"-arrow-loading"),fo)),customizeIcon:_r,customizeIconProps:{loading:fo,searchValue:Wn,open:sr,focused:In,showSearch:Je}}));var Xo=function(){var Br;mn==null||mn(),(Br=qn.current)===null||Br===void 0||Br.focus(),ki([],{type:"clear",values:sn}),Ln("",!1,!1)},po=se(en,Xo,sn,rr,Co,jr,Wn,Ir),mo=po.allowClear,Jr=po.clearIcon,ta=De.createElement(Qr,{ref:ci}),Do=Ve()(en,Gn,(0,dt.Z)((0,dt.Z)((0,dt.Z)((0,dt.Z)((0,dt.Z)((0,dt.Z)((0,dt.Z)((0,dt.Z)((0,dt.Z)((0,dt.Z)({},"".concat(en,"-focused"),In),"".concat(en,"-multiple"),ht),"".concat(en,"-single"),!ht),"".concat(en,"-allow-clear"),rr),"".concat(en,"-show-arrow"),ca),"".concat(en,"-disabled"),jr),"".concat(en,"-loading"),fo),"".concat(en,"-open"),sr),"".concat(en,"-customize-input"),fi),"".concat(en,"-show-search"),Je)),Aa=De.createElement(be,{ref:cn,disabled:jr,prefixCls:en,visible:En,popupElement:ta,animation:Or,transitionName:ko,dropdownStyle:Ht,dropdownClassName:Cn,direction:xi,dropdownMatchSelectWidth:Ut,dropdownRender:je,dropdownAlign:ri,placement:Si,builtinPlacements:$e,getPopupContainer:rn,empty:Cr,getTriggerDOMNode:function(Br){return jn.current||Br},onPopupVisibleChange:Eo,onPopupMouseEnter:To},pi?De.cloneElement(pi,{ref:ai}):De.createElement(vi,(0,ve.Z)({},et,{domRef:jn,prefixCls:en,inputElement:fi,ref:qn,id:Yn,prefix:Vr,showSearch:Je,autoClearSearchValue:Xr,mode:Ir,activeDescendantId:Dr,tagRender:_n,values:sn,open:sr,onToggleOpen:Mi,activeValue:$i,searchValue:Wn,onSearch:Ln,onSearchSubmit:ir,onRemove:vo,tokenWithEnter:Ti,onInputBlur:No}))),xr;return pi?xr=Aa:xr=De.createElement("div",(0,ve.Z)({className:Do},pt,{ref:Nn,onMouseDown:co,onKeyDown:Er,onKeyUp:oo,onFocus:ea,onBlur:Ui}),De.createElement(ei,{visible:In&&!sr,values:sn}),Aa,Oo,mo&&Jr),De.createElement(de.Provider,{value:ra},xr)}),bi=$n,hi=function(){return null};hi.isSelectOptGroup=!0;var Di=hi,Gi=function(){return null};Gi.isSelectOption=!0;var Ji=Gi,Zr=we(80547),qi=we(2738),ii=we(65283);function so(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var Kr=["disabled","title","children","style","className"];function qr(et){return typeof et=="string"||typeof et=="number"}var io=function(Ft,Tn){var Yn=pe(),en=Yn.prefixCls,Gn=Yn.id,kn=Yn.open,_n=Yn.multiple,xi=Yn.mode,mi=Yn.searchValue,sn=Yn.toggleOpen,ki=Yn.notFoundContent,Cr=Yn.onPopupScroll,gr=De.useContext(pn),dr=gr.maxCount,mn=gr.flattenOptions,Ir=gr.onActiveValue,jr=gr.defaultActiveFirstOption,fo=gr.onSelect,yn=gr.menuItemSelectedIcon,ni=gr.rawValues,Hi=gr.fieldNames,Ri=gr.virtual,Xi=gr.direction,$i=gr.listHeight,Fr=gr.listItemHeight,Dr=gr.optionRender,Rr="".concat(en,"-item"),Xr=(0,Zr.Z)(function(){return mn},[kn,mn],function(Wt,Kt){return Kt[0]&&Wt[1]!==Kt[1]}),Mn=De.useRef(null),ho=De.useMemo(function(){return _n&&Bt(dr)&&(ni==null?void 0:ni.size)>=dr},[_n,dr,ni==null?void 0:ni.size]),ln=function(Kt){Kt.preventDefault()},rr=function(Kt){var Hn;(Hn=Mn.current)===null||Hn===void 0||Hn.scrollTo(typeof Kt=="number"?{index:Kt}:Kt)},Vr=De.useCallback(function(Wt){return xi==="combobox"?!1:ni.has(Wt)},[xi,(0,Ye.Z)(ni).toString(),ni.size]),_r=function(Kt){for(var Hn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Bn=Xr.length,un=0;un<Bn;un+=1){var On=(Kt+un*Hn+Bn)%Bn,li=Xr[On]||{},ke=li.group,ht=li.data;if(!ke&&!(ht!=null&&ht.disabled)&&(Vr(ht.value)||!ho))return On}return-1},Co=De.useState(function(){return _r(0)}),Qr=(0,at.Z)(Co,2),Or=Qr[0],ko=Qr[1],Ht=function(Kt){var Hn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;ko(Kt);var Bn={source:Hn?"keyboard":"mouse"},un=Xr[Kt];if(!un){Ir(null,-1,Bn);return}Ir(un.value,Kt,Bn)};(0,De.useEffect)(function(){Ht(jr!==!1?_r(0):-1)},[Xr.length,mi]);var Cn=De.useCallback(function(Wt){return xi==="combobox"?String(Wt).toLowerCase()===mi.toLowerCase():ni.has(Wt)},[xi,mi,(0,Ye.Z)(ni).toString(),ni.size]);(0,De.useEffect)(function(){var Wt=setTimeout(function(){if(!_n&&kn&&ni.size===1){var Hn=Array.from(ni)[0],Bn=Xr.findIndex(function(un){var On=un.data;return mi?String(On.value).startsWith(mi):On.value===Hn});Bn!==-1&&(Ht(Bn),rr(Bn))}});if(kn){var Kt;(Kt=Mn.current)===null||Kt===void 0||Kt.scrollTo(void 0)}return function(){return clearTimeout(Wt)}},[kn,mi]);var Ut=function(Kt){Kt!==void 0&&fo(Kt,{selected:!ni.has(Kt)}),_n||sn(!1)};if(De.useImperativeHandle(Tn,function(){return{onKeyDown:function(Kt){var Hn=Kt.which,Bn=Kt.ctrlKey;switch(Hn){case Te.Z.N:case Te.Z.P:case Te.Z.UP:case Te.Z.DOWN:{var un=0;if(Hn===Te.Z.UP?un=-1:Hn===Te.Z.DOWN?un=1:so()&&Bn&&(Hn===Te.Z.N?un=1:Hn===Te.Z.P&&(un=-1)),un!==0){var On=_r(Or+un,un);rr(On),Ht(On,!0)}break}case Te.Z.TAB:case Te.Z.ENTER:{var li,ke=Xr[Or];ke&&!(ke!=null&&(li=ke.data)!==null&&li!==void 0&&li.disabled)&&!ho?Ut(ke.value):Ut(void 0),kn&&Kt.preventDefault();break}case Te.Z.ESC:sn(!1),kn&&Kt.stopPropagation()}},onKeyUp:function(){},scrollTo:function(Kt){rr(Kt)}}}),Xr.length===0)return De.createElement("div",{role:"listbox",id:"".concat(Gn,"_list"),className:"".concat(Rr,"-empty"),onMouseDown:ln},ki);var je=Object.keys(Hi).map(function(Wt){return Hi[Wt]}),ri=function(Kt){return Kt.label};function Si(Wt,Kt){var Hn=Wt.group;return{role:Hn?"presentation":"option",id:"".concat(Gn,"_list_").concat(Kt)}}var $e=function(Kt){var Hn=Xr[Kt];if(!Hn)return null;var Bn=Hn.data||{},un=Bn.value,On=Hn.group,li=(0,Oe.Z)(Bn,!0),ke=ri(Hn);return Hn?De.createElement("div",(0,ve.Z)({"aria-label":typeof ke=="string"&&!On?ke:null},li,{key:Kt},Si(Hn,Kt),{"aria-selected":Cn(un)}),un):null},rn={role:"listbox",id:"".concat(Gn,"_list")};return De.createElement(De.Fragment,null,Ri&&De.createElement("div",(0,ve.Z)({},rn,{style:{height:0,width:0,overflow:"hidden"}}),$e(Or-1),$e(Or),$e(Or+1)),De.createElement(ii.Z,{itemKey:"key",ref:Mn,data:Xr,height:$i,itemHeight:Fr,fullHeight:!1,onMouseDown:ln,onScroll:Cr,virtual:Ri,direction:Xi,innerProps:Ri?null:rn},function(Wt,Kt){var Hn=Wt.group,Bn=Wt.groupOption,un=Wt.data,On=Wt.label,li=Wt.value,ke=un.key;if(Hn){var ht,Je=(ht=un.title)!==null&&ht!==void 0?ht:qr(On)?On.toString():void 0;return De.createElement("div",{className:Ve()(Rr,"".concat(Rr,"-group"),un.className),title:Je},On!==void 0?On:ke)}var pt=un.disabled,Pt=un.title,$t=un.children,Qt=un.style,dn=un.className,Nn=(0,Ze.Z)(un,Kr),jn=(0,qi.Z)(Nn,je),cn=Vr(li),qn=pt||!cn&&ho,ci="".concat(Rr,"-option"),vt=Ve()(Rr,ci,dn,(0,dt.Z)((0,dt.Z)((0,dt.Z)((0,dt.Z)({},"".concat(ci,"-grouped"),Bn),"".concat(ci,"-active"),Or===Kt&&!qn),"".concat(ci,"-disabled"),qn),"".concat(ci,"-selected"),cn)),Un=ri(Wt),Jn=!yn||typeof yn=="function"||cn,In=typeof Un=="number"?Un:Un||li,zn=qr(In)?In.toString():void 0;return Pt!==void 0&&(zn=Pt),De.createElement("div",(0,ve.Z)({},(0,Oe.Z)(jn),Ri?{}:Si(Wt,Kt),{"aria-selected":Cn(li),className:vt,title:zn,onMouseMove:function(){Or===Kt||qn||Ht(Kt)},onClick:function(){qn||Ut(li)},style:Qt}),De.createElement("div",{className:"".concat(ci,"-content")},typeof Dr=="function"?Dr(Wt,{index:Kt}):In),De.isValidElement(yn)||cn,Jn&&De.createElement(ue,{className:"".concat(Rr,"-option-state"),customizeIcon:yn,customizeIconProps:{value:li,disabled:qn,isSelected:cn}},cn?"\u2713":null))}))},Fo=De.forwardRef(io),lo=Fo,Ar=function(et,Ft){var Tn=De.useRef({values:new Map,options:new Map}),Yn=De.useMemo(function(){var Gn=Tn.current,kn=Gn.values,_n=Gn.options,xi=et.map(function(ki){if(ki.label===void 0){var Cr;return(0,it.Z)((0,it.Z)({},ki),{},{label:(Cr=kn.get(ki.value))===null||Cr===void 0?void 0:Cr.label})}return ki}),mi=new Map,sn=new Map;return xi.forEach(function(ki){mi.set(ki.value,ki),sn.set(ki.value,Ft.get(ki.value)||_n.get(ki.value))}),Tn.current.values=mi,Tn.current.options=sn,xi},[et,Ft]),en=De.useCallback(function(Gn){return Ft.get(Gn)||Tn.current.options.get(Gn)},[Ft]);return[Yn,en]};function ro(et,Ft){return Ot(et).join("").toUpperCase().includes(Ft)}var Le=function(et,Ft,Tn,Yn,en){return De.useMemo(function(){if(!Tn||Yn===!1)return et;var Gn=Ft.options,kn=Ft.label,_n=Ft.value,xi=[],mi=typeof Yn=="function",sn=Tn.toUpperCase(),ki=mi?Yn:function(gr,dr){return en?ro(dr[en],sn):dr[Gn]?ro(dr[kn!=="children"?kn:"label"],sn):ro(dr[_n],sn)},Cr=mi?function(gr){return bt(gr)}:function(gr){return gr};return et.forEach(function(gr){if(gr[Gn]){var dr=ki(Tn,Cr(gr));if(dr)xi.push(gr);else{var mn=gr[Gn].filter(function(Ir){return ki(Tn,Cr(Ir))});mn.length&&xi.push((0,it.Z)((0,it.Z)({},gr),{},(0,dt.Z)({},Gn,mn)))}return}ki(Tn,Cr(gr))&&xi.push(gr)}),xi},[et,Yn,en,Tn,Ft])},xn=we(6551),Qn=we(11592),gi=["children","value"],yi=["children"];function ti(et){var Ft=et,Tn=Ft.key,Yn=Ft.props,en=Yn.children,Gn=Yn.value,kn=(0,Ze.Z)(Yn,gi);return(0,it.Z)({key:Tn,value:Gn!==void 0?Gn:Tn,children:en},kn)}function Yi(et){var Ft=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,Qn.Z)(et).map(function(Tn,Yn){if(!De.isValidElement(Tn)||!Tn.type)return null;var en=Tn,Gn=en.type.isSelectOptGroup,kn=en.key,_n=en.props,xi=_n.children,mi=(0,Ze.Z)(_n,yi);return Ft||!Gn?ti(Tn):(0,it.Z)((0,it.Z)({key:"__RC_SELECT_GRP__".concat(kn===null?Yn:kn,"__"),label:kn},mi),{},{options:Yi(xi)})}).filter(function(Tn){return Tn})}var cr=function(Ft,Tn,Yn,en,Gn){return De.useMemo(function(){var kn=Ft,_n=!Ft;_n&&(kn=Yi(Tn));var xi=new Map,mi=new Map,sn=function(gr,dr,mn){mn&&typeof mn=="string"&&gr.set(dr[mn],dr)},ki=function Cr(gr){for(var dr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,mn=0;mn<gr.length;mn+=1){var Ir=gr[mn];!Ir[Yn.options]||dr?(xi.set(Ir[Yn.value],Ir),sn(mi,Ir,Yn.label),sn(mi,Ir,en),sn(mi,Ir,Gn)):Cr(Ir[Yn.options],!0)}};return ki(kn),{options:kn,valueOptions:xi,labelOptions:mi}},[Ft,Tn,Yn,en,Gn])},Sr=cr;function Jt(et){var Ft=De.useRef();Ft.current=et;var Tn=De.useCallback(function(){return Ft.current.apply(Ft,arguments)},[]);return Tn}function Vt(et){var Ft=et.mode,Tn=et.options,Yn=et.children,en=et.backfill,Gn=et.allowClear,kn=et.placeholder,_n=et.getInputElement,xi=et.showSearch,mi=et.onSearch,sn=et.defaultOpen,ki=et.autoFocus,Cr=et.labelInValue,gr=et.value,dr=et.inputValue,mn=et.optionLabelProp,Ir=isMultiple(Ft),jr=xi!==void 0?xi:Ir||Ft==="combobox",fo=Tn||convertChildrenToData(Yn);if(warning(Ft!=="tags"||fo.every(function(Ri){return!Ri.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),Ft==="tags"||Ft==="combobox"){var yn=fo.some(function(Ri){return Ri.options?Ri.options.some(function(Xi){return typeof("value"in Xi?Xi.value:Xi.key)=="number"}):typeof("value"in Ri?Ri.value:Ri.key)=="number"});warning(!yn,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(Ft!=="combobox"||!mn,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(Ft==="combobox"||!en,"`backfill` only works with `combobox` mode."),warning(Ft==="combobox"||!_n,"`getInputElement` only work with `combobox` mode."),noteOnce(Ft!=="combobox"||!_n||!Gn||!kn,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),mi&&!jr&&Ft!=="combobox"&&Ft!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!sn||ki,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),gr!=null){var ni=toArray(gr);warning(!Cr||ni.every(function(Ri){return _typeof(Ri)==="object"&&("key"in Ri||"value"in Ri)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!Ir||Array.isArray(gr),"`value` should be array when `mode` is `multiple` or `tags`")}if(Yn){var Hi=null;toNodeArray(Yn).some(function(Ri){if(!React.isValidElement(Ri)||!Ri.type)return!1;var Xi=Ri,$i=Xi.type;if($i.isSelectOption)return!1;if($i.isSelectOptGroup){var Fr=toNodeArray(Ri.props.children).every(function(Dr){return!React.isValidElement(Dr)||!Ri.type||Dr.type.isSelectOption?!0:(Hi=Dr.type,!1)});return!Fr}return Hi=$i,!0}),Hi&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Hi.displayName||Hi.name||Hi,"`.")),warning(dr===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function It(et,Ft){if(et){var Tn=function Yn(en){for(var Gn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,kn=0;kn<en.length;kn++){var _n=en[kn];if(_n[Ft==null?void 0:Ft.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!Gn&&Array.isArray(_n[Ft==null?void 0:Ft.options])&&Yn(_n[Ft==null?void 0:Ft.options],!0))break}};Tn(et)}}var Ei=null,Ii=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","labelRender","value","defaultValue","labelInValue","onChange","maxCount"],ji=["inputValue"];function Xn(et){return!et||(0,Ue.Z)(et)!=="object"}var Ai=De.forwardRef(function(et,Ft){var Tn=et.id,Yn=et.mode,en=et.prefixCls,Gn=en===void 0?"rc-select":en,kn=et.backfill,_n=et.fieldNames,xi=et.inputValue,mi=et.searchValue,sn=et.onSearch,ki=et.autoClearSearchValue,Cr=ki===void 0?!0:ki,gr=et.onSelect,dr=et.onDeselect,mn=et.dropdownMatchSelectWidth,Ir=mn===void 0?!0:mn,jr=et.filterOption,fo=et.filterSort,yn=et.optionFilterProp,ni=et.optionLabelProp,Hi=et.options,Ri=et.optionRender,Xi=et.children,$i=et.defaultActiveFirstOption,Fr=et.menuItemSelectedIcon,Dr=et.virtual,Rr=et.direction,Xr=et.listHeight,Mn=Xr===void 0?200:Xr,ho=et.listItemHeight,ln=ho===void 0?20:ho,rr=et.labelRender,Vr=et.value,_r=et.defaultValue,Co=et.labelInValue,Qr=et.onChange,Or=et.maxCount,ko=(0,Ze.Z)(et,Ii),Ht=(0,xn.ZP)(Tn),Cn=Ci(Yn),Ut=!!(!Hi&&Xi),je=De.useMemo(function(){return jr===void 0&&Yn==="combobox"?!1:jr},[jr,Yn]),ri=De.useMemo(function(){return nn(_n,Ut)},[JSON.stringify(_n),Ut]),Si=(0,xt.Z)("",{value:mi!==void 0?mi:xi,postState:function(Ti){return Ti||""}}),$e=(0,at.Z)(Si,2),rn=$e[0],Wt=$e[1],Kt=Sr(Hi,Xi,ri,yn,ni),Hn=Kt.valueOptions,Bn=Kt.labelOptions,un=Kt.options,On=De.useCallback(function(Mi){var Ti=Ot(Mi);return Ti.map(function(Vi){var Zi,Oi,Ln,ir,hr;if(Xn(Vi))Zi=Vi;else{var Mr;Ln=Vi.key,Oi=Vi.label,Zi=(Mr=Vi.value)!==null&&Mr!==void 0?Mr:Ln}var An=Hn.get(Zi);if(An){var Fi;if(Oi===void 0&&(Oi=An==null?void 0:An[ni||ri.label]),Ln===void 0&&(Ln=(Fi=An==null?void 0:An.key)!==null&&Fi!==void 0?Fi:Zi),ir=An==null?void 0:An.disabled,hr=An==null?void 0:An.title,0)var _i}return{label:Oi,value:Zi,key:Ln,disabled:ir,title:hr}})},[ri,ni,Hn]),li=(0,xt.Z)(_r,{value:Vr}),ke=(0,at.Z)(li,2),ht=ke[0],Je=ke[1],pt=De.useMemo(function(){var Mi,Ti=Cn&&ht===null?[]:ht,Vi=On(Ti);return Yn==="combobox"&&He((Mi=Vi[0])===null||Mi===void 0?void 0:Mi.value)?[]:Vi},[ht,On,Yn,Cn]),Pt=Ar(pt,Hn),$t=(0,at.Z)(Pt,2),Qt=$t[0],dn=$t[1],Nn=De.useMemo(function(){if(!Yn&&Qt.length===1){var Mi=Qt[0];if(Mi.value===null&&(Mi.label===null||Mi.label===void 0))return[]}return Qt.map(function(Ti){var Vi;return(0,it.Z)((0,it.Z)({},Ti),{},{label:(Vi=typeof rr=="function"?rr(Ti):Ti.label)!==null&&Vi!==void 0?Vi:Ti.value})})},[Yn,Qt,rr]),jn=De.useMemo(function(){return new Set(Qt.map(function(Mi){return Mi.value}))},[Qt]);De.useEffect(function(){if(Yn==="combobox"){var Mi,Ti=(Mi=Qt[0])===null||Mi===void 0?void 0:Mi.value;Wt(st(Ti)?String(Ti):"")}},[Qt]);var cn=Jt(function(Mi,Ti){var Vi=Ti!=null?Ti:Mi;return(0,dt.Z)((0,dt.Z)({},ri.value,Mi),ri.label,Vi)}),qn=De.useMemo(function(){if(Yn!=="tags")return un;var Mi=(0,Ye.Z)(un),Ti=function(Zi){return Hn.has(Zi)};return(0,Ye.Z)(Qt).sort(function(Vi,Zi){return Vi.value<Zi.value?-1:1}).forEach(function(Vi){var Zi=Vi.value;Ti(Zi)||Mi.push(cn(Zi,Vi.label))}),Mi},[cn,un,Hn,Qt,Yn]),ci=Le(qn,ri,rn,je,yn),vt=De.useMemo(function(){return Yn!=="tags"||!rn||ci.some(function(Mi){return Mi[yn||"value"]===rn})||ci.some(function(Mi){return Mi[ri.value]===rn})?ci:[cn(rn)].concat((0,Ye.Z)(ci))},[cn,yn,Yn,ci,rn,ri]),Un=function Mi(Ti){var Vi=(0,Ye.Z)(Ti).sort(function(Zi,Oi){return fo(Zi,Oi,{searchValue:rn})});return Vi.map(function(Zi){return Array.isArray(Zi.options)?(0,it.Z)((0,it.Z)({},Zi),{},{options:Zi.options.length>0?Mi(Zi.options):Zi.options}):Zi})},Jn=De.useMemo(function(){return fo?Un(vt):vt},[vt,fo,rn]),In=De.useMemo(function(){return Tt(Jn,{fieldNames:ri,childrenAsData:Ut})},[Jn,ri,Ut]),zn=function(Ti){var Vi=On(Ti);if(Je(Vi),Qr&&(Vi.length!==Qt.length||Vi.some(function(Ln,ir){var hr;return((hr=Qt[ir])===null||hr===void 0?void 0:hr.value)!==(Ln==null?void 0:Ln.value)}))){var Zi=Co?Vi:Vi.map(function(Ln){return Ln.value}),Oi=Vi.map(function(Ln){return bt(dn(Ln.value))});Qr(Cn?Zi:Zi[0],Cn?Oi:Oi[0])}},oi=De.useState(null),Wn=(0,at.Z)(oi,2),fi=Wn[0],pi=Wn[1],ai=De.useState(0),Wi=(0,at.Z)(ai,2),pr=Wi[0],or=Wi[1],tr=$i!==void 0?$i:Yn!=="combobox",Pi=De.useCallback(function(Mi,Ti){var Vi=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Zi=Vi.source,Oi=Zi===void 0?"keyboard":Zi;or(Ti),kn&&Yn==="combobox"&&Mi!==null&&Oi==="keyboard"&&pi(String(Mi))},[kn,Yn]),fr=function(Ti,Vi,Zi){var Oi=function(){var vo,No=dn(Ti);return[Co?{label:No==null?void 0:No[ri.label],value:Ti,key:(vo=No==null?void 0:No.key)!==null&&vo!==void 0?vo:Ti}:Ti,bt(No)]};if(Vi&&gr){var Ln=Oi(),ir=(0,at.Z)(Ln,2),hr=ir[0],Mr=ir[1];gr(hr,Mr)}else if(!Vi&&dr&&Zi!=="clear"){var An=Oi(),Fi=(0,at.Z)(An,2),_i=Fi[0],Er=Fi[1];dr(_i,Er)}},nr=Jt(function(Mi,Ti){var Vi,Zi=Cn?Ti.selected:!0;Zi?Vi=Cn?[].concat((0,Ye.Z)(Qt),[Mi]):[Mi]:Vi=Qt.filter(function(Oi){return Oi.value!==Mi}),zn(Vi),fr(Mi,Zi),Yn==="combobox"?pi(""):(!Ci||Cr)&&(Wt(""),pi(""))}),lr=function(Ti,Vi){zn(Ti);var Zi=Vi.type,Oi=Vi.values;(Zi==="remove"||Zi==="clear")&&Oi.forEach(function(Ln){fr(Ln.value,!1,Zi)})},sr=function(Ti,Vi){if(Wt(Ti),pi(null),Vi.source==="submit"){var Zi=(Ti||"").trim();if(Zi){var Oi=Array.from(new Set([].concat((0,Ye.Z)(jn),[Zi])));zn(Oi),fr(Zi,!0),Wt("")}return}Vi.source!=="blur"&&(Yn==="combobox"&&zn(Ti),sn==null||sn(Ti))},mr=function(Ti){var Vi=Ti;Yn!=="tags"&&(Vi=Ti.map(function(Oi){var Ln=Bn.get(Oi);return Ln==null?void 0:Ln.value}).filter(function(Oi){return Oi!==void 0}));var Zi=Array.from(new Set([].concat((0,Ye.Z)(jn),(0,Ye.Z)(Vi))));zn(Zi),Zi.forEach(function(Oi){fr(Oi,!0)})},En=De.useMemo(function(){var Mi=Dr!==!1&&Ir!==!1;return(0,it.Z)((0,it.Z)({},Kt),{},{flattenOptions:In,onActiveValue:Pi,defaultActiveFirstOption:tr,onSelect:nr,menuItemSelectedIcon:Fr,rawValues:jn,fieldNames:ri,virtual:Mi,direction:Rr,listHeight:Mn,listItemHeight:ln,childrenAsData:Ut,maxCount:Or,optionRender:Ri})},[Or,Kt,In,Pi,tr,nr,Fr,jn,ri,Dr,Ir,Rr,Mn,ln,Ut,Ri]);return De.createElement(pn.Provider,{value:En},De.createElement(bi,(0,ve.Z)({},ko,{id:Ht,prefixCls:Gn,ref:Ft,omitDomProps:ji,mode:Yn,displayValues:Nn,onDisplayValuesChange:lr,direction:Rr,searchValue:rn,onSearch:sr,autoClearSearchValue:Cr,onSearchSplit:mr,dropdownMatchSelectWidth:Ir,OptionList:lo,emptyOptions:!In.length,activeValue:fi,activeDescendantId:"".concat(Ht,"_list_").concat(pr)})))}),ur=Ai;ur.Option=Ji,ur.OptGroup=Di;var Tr=ur,br=Tr},63158:function(fn,on,we){"use strict";var ve=we(71409),Ye=we(87075),dt=we(11036),it=we(39224),at=we(59301),Ze=we(92310),Ue=we.n(Ze),xt=we(18929),nt=we(10228),De=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],wt=at.forwardRef(function(Ve,ut){var Ee,te=Ve.prefixCls,ne=te===void 0?"rc-switch":te,ue=Ve.className,se=Ve.checked,de=Ve.defaultChecked,pe=Ve.disabled,ye=Ve.loadingIcon,Ce=Ve.checkedChildren,ze=Ve.unCheckedChildren,Te=Ve.onClick,Ie=Ve.onChange,Oe=Ve.onKeyDown,Re=(0,it.Z)(Ve,De),rt=(0,xt.Z)(!1,{value:se,defaultValue:de}),ot=(0,dt.Z)(rt,2),Ct=ot[0],gt=ot[1];function kt(tn,st){var He=Ct;return pe||(He=tn,gt(He),Ie==null||Ie(He,st)),He}function Lt(tn){tn.which===nt.Z.LEFT?kt(!1,tn):tn.which===nt.Z.RIGHT&&kt(!0,tn),Oe==null||Oe(tn)}function Ot(tn){var st=kt(!Ct,tn);Te==null||Te(st,tn)}var Nt=Ue()(ne,ue,(Ee={},(0,Ye.Z)(Ee,"".concat(ne,"-checked"),Ct),(0,Ye.Z)(Ee,"".concat(ne,"-disabled"),pe),Ee));return at.createElement("button",(0,ve.Z)({},Re,{type:"button",role:"switch","aria-checked":Ct,disabled:pe,className:Nt,ref:ut,onKeyDown:Lt,onClick:Ot}),ye,at.createElement("span",{className:"".concat(ne,"-inner")},at.createElement("span",{className:"".concat(ne,"-inner-checked")},Ce),at.createElement("span",{className:"".concat(ne,"-inner-unchecked")},ze)))});wt.displayName="Switch",on.Z=wt},86351:function(fn,on,we){"use strict";we.d(on,{R:function(){return Ye},w:function(){return ve}});var ve={},Ye="rc-table-internal-hook"},97347:function(fn,on,we){"use strict";we.d(on,{L:function(){return ne},Z:function(){return ye}});var ve=we(11036),Ye=we(87075),dt=we(62730),it=we(28788),at=we(89490),Ze=we(39224),Ue=we(11592),xt=we(48736),nt=we(59301),De=we(86351),wt=we(54451);function Ve(Ce){var ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof ze=="number"?ze:ze.endsWith("%")?Ce*parseFloat(ze)/100:null}function ut(Ce,ze,Te){return nt.useMemo(function(){if(ze&&ze>0){var Ie=0,Oe=0;Ce.forEach(function(Ot){var Nt=Ve(ze,Ot.width);Nt?Ie+=Nt:Oe+=1});var Re=Math.max(ze,Te),rt=Math.max(Re-Ie,Oe),ot=Oe,Ct=rt/Oe,gt=0,kt=Ce.map(function(Ot){var Nt=(0,at.Z)({},Ot),tn=Ve(ze,Nt.width);if(tn)Nt.width=tn;else{var st=Math.floor(Ct);Nt.width=ot===1?rt:st,rt-=st,ot-=1}return gt+=Nt.width,Nt});if(gt<Re){var Lt=Re/gt;rt=Re,kt.forEach(function(Ot,Nt){var tn=Math.floor(Ot.width*Lt);Ot.width=Nt===kt.length-1?rt:tn,rt-=tn})}return[kt,Math.max(gt,Re)]}return[Ce,ze]},[Ce,ze,Te])}var Ee=["children"],te=["fixed"];function ne(Ce){return(0,Ue.Z)(Ce).filter(function(ze){return nt.isValidElement(ze)}).map(function(ze){var Te=ze.key,Ie=ze.props,Oe=Ie.children,Re=(0,Ze.Z)(Ie,Ee),rt=(0,at.Z)({key:Te},Re);return Oe&&(rt.children=ne(Oe)),rt})}function ue(Ce){return Ce.filter(function(ze){return ze&&(0,it.Z)(ze)==="object"&&!ze.hidden}).map(function(ze){var Te=ze.children;return Te&&Te.length>0?(0,at.Z)((0,at.Z)({},ze),{},{children:ue(Te)}):ze})}function se(Ce){var ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return Ce.filter(function(Te){return Te&&(0,it.Z)(Te)==="object"}).reduce(function(Te,Ie,Oe){var Re=Ie.fixed,rt=Re===!0?"left":Re,ot="".concat(ze,"-").concat(Oe),Ct=Ie.children;return Ct&&Ct.length>0?[].concat((0,dt.Z)(Te),(0,dt.Z)(se(Ct,ot).map(function(gt){return(0,at.Z)({fixed:rt},gt)}))):[].concat((0,dt.Z)(Te),[(0,at.Z)((0,at.Z)({key:ot},Ie),{},{fixed:rt})])},[])}function de(Ce){return Ce.map(function(ze){var Te=ze.fixed,Ie=(0,Ze.Z)(ze,te),Oe=Te;return Te==="left"?Oe="right":Te==="right"&&(Oe="left"),(0,at.Z)({fixed:Oe},Ie)})}function pe(Ce,ze){var Te=Ce.prefixCls,Ie=Ce.columns,Oe=Ce.children,Re=Ce.expandable,rt=Ce.expandedKeys,ot=Ce.columnTitle,Ct=Ce.getRowKey,gt=Ce.onTriggerExpand,kt=Ce.expandIcon,Lt=Ce.rowExpandable,Ot=Ce.expandIconColumnIndex,Nt=Ce.direction,tn=Ce.expandRowByClick,st=Ce.columnWidth,He=Ce.fixed,Rt=Ce.scrollWidth,Zt=Ce.clientWidth,_t=nt.useMemo(function(){var vi=Ie||ne(Oe)||[];return ue(vi.slice())},[Ie,Oe]),Mt=nt.useMemo(function(){if(Re){var vi=_t.slice();if(!vi.includes(De.w)){var We=Ot||0;We>=0&&(We||He==="left"||!He)&&vi.splice(We,0,De.w),He==="right"&&vi.splice(_t.length,0,De.w)}var Fe=vi.indexOf(De.w);vi=vi.filter(function(be,tt){return be!==De.w||tt===Fe});var xe=_t[Fe],Ne;He?Ne=He:Ne=xe?xe.fixed:null;var _e=(0,Ye.Z)((0,Ye.Z)((0,Ye.Z)((0,Ye.Z)((0,Ye.Z)((0,Ye.Z)({},wt.v,{className:"".concat(Te,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",ot),"fixed",Ne),"className","".concat(Te,"-row-expand-icon-cell")),"width",st),"render",function(tt,Xt,Bt){var nn=Ct(Xt,Bt),Tt=rt.has(nn),bt=Lt?Lt(Xt):!0,zt=kt({prefixCls:Te,expanded:Tt,expandable:bt,record:Xt,onExpand:gt});return tn?nt.createElement("span",{onClick:function(pn){return pn.stopPropagation()}},zt):zt});return vi.map(function(be){return be===De.w?_e:be})}return _t.filter(function(be){return be!==De.w})},[Re,_t,Ct,rt,kt,Nt]),jt=nt.useMemo(function(){var vi=Mt;return ze&&(vi=ze(vi)),vi.length||(vi=[{render:function(){return null}}]),vi},[ze,Mt,Nt]),an=nt.useMemo(function(){return Nt==="rtl"?de(se(jt)):se(jt)},[jt,Nt,Rt]),Dn=nt.useMemo(function(){for(var vi=-1,We=an.length-1;We>=0;We-=1){var Fe=an[We].fixed;if(Fe==="left"||Fe===!0){vi=We;break}}if(vi>=0)for(var xe=0;xe<=vi;xe+=1){var Ne=an[xe].fixed;if(Ne!=="left"&&Ne!==!0)return!0}var _e=an.findIndex(function(Xt){var Bt=Xt.fixed;return Bt==="right"});if(_e>=0)for(var be=_e;be<an.length;be+=1){var tt=an[be].fixed;if(tt!=="right")return!0}return!1},[an]),Dt=ut(an,Rt,Zt),gn=(0,ve.Z)(Dt,2),yt=gn[0],Zn=gn[1];return[jt,yt,Zn,Dn]}var ye=pe},4030:function(fn,on,we){"use strict";we.d(on,{w2:function(){return ve.w},vP:function(){return qr.v},RQ:function(){return ve.R},ER:function(){return nn},Q$:function(){return jr},TN:function(){return Qr}});var ve=we(86351),Ye=we(11036),dt=we(6089),it=we(34280),at=we(13697),Ze=we(59301),Ue=we(4676);function xt(Ht){var Cn=Ze.createContext(void 0),Ut=function(ri){var Si=ri.value,$e=ri.children,rn=Ze.useRef(Si);rn.current=Si;var Wt=Ze.useState(function(){return{getValue:function(){return rn.current},listeners:new Set}}),Kt=(0,Ye.Z)(Wt,1),Hn=Kt[0];return(0,it.Z)(function(){(0,Ue.unstable_batchedUpdates)(function(){Hn.listeners.forEach(function(Bn){Bn(Si)})})},[Si]),Ze.createElement(Cn.Provider,{value:Hn},$e)};return{Context:Cn,Provider:Ut,defaultValue:Ht}}function nt(Ht,Cn){var Ut=(0,dt.Z)(typeof Cn=="function"?Cn:function(Bn){if(Cn===void 0)return Bn;if(!Array.isArray(Cn))return Bn[Cn];var un={};return Cn.forEach(function(On){un[On]=Bn[On]}),un}),je=Ze.useContext(Ht==null?void 0:Ht.Context),ri=je||{},Si=ri.listeners,$e=ri.getValue,rn=Ze.useRef();rn.current=Ut(je?$e():Ht==null?void 0:Ht.defaultValue);var Wt=Ze.useState({}),Kt=(0,Ye.Z)(Wt,2),Hn=Kt[1];return(0,it.Z)(function(){if(!je)return;function Bn(un){var On=Ut(un);(0,at.Z)(rn.current,On,!0)||Hn({})}return Si.add(Bn),function(){Si.delete(Bn)}},[je]),rn.current}var De=we(71409),wt=we(8654);function Ve(){var Ht=Ze.createContext(null);function Cn(){return Ze.useContext(Ht)}function Ut(ri,Si){var $e=(0,wt.Yr)(ri),rn=function(Kt,Hn){var Bn=$e?{ref:Hn}:{},un=Ze.useRef(0),On=Ze.useRef(Kt),li=Cn();return li!==null?Ze.createElement(ri,(0,De.Z)({},Kt,Bn)):((!Si||Si(On.current,Kt))&&(un.current+=1),On.current=Kt,Ze.createElement(Ht.Provider,{value:un.current},Ze.createElement(ri,(0,De.Z)({},Kt,Bn))))};return $e?Ze.forwardRef(rn):rn}function je(ri,Si){var $e=(0,wt.Yr)(ri),rn=function(Kt,Hn){var Bn=$e?{ref:Hn}:{};return Cn(),Ze.createElement(ri,(0,De.Z)({},Kt,Bn))};return $e?Ze.memo(Ze.forwardRef(rn),Si):Ze.memo(rn,Si)}return{makeImmutable:Ut,responseImmutable:je,useImmutableMark:Cn}}var ut=Ve(),Ee=ut.makeImmutable,te=ut.responseImmutable,ne=ut.useImmutableMark,ue=Ve(),se=ue.makeImmutable,de=ue.responseImmutable,pe=ue.useImmutableMark,ye=xt(),Ce=ye;function ze(Ht,Cn){var Ut=React.useRef(0);Ut.current+=1;var je=React.useRef(Ht),ri=[];Object.keys(Ht||{}).map(function($e){var rn;(Ht==null?void 0:Ht[$e])!==((rn=je.current)===null||rn===void 0?void 0:rn[$e])&&ri.push($e)}),je.current=Ht;var Si=React.useRef([]);return ri.length&&(Si.current=ri),React.useDebugValue(Ut.current),React.useDebugValue(Si.current.join(", ")),Cn&&console.log("".concat(Cn,":"),Ut.current,Si.current),Ut.current}var Te=null,Ie=null,Oe=we(28788),Re=we(89490),rt=we(87075),ot=we(92310),Ct=we.n(ot),gt=we(80547),kt=we(97938),Lt=we(48736),Ot=Ze.createContext({renderWithProps:!1}),Nt=Ot,tn="RC_TABLE_KEY";function st(Ht){return Ht==null?[]:Array.isArray(Ht)?Ht:[Ht]}function He(Ht){var Cn=[],Ut={};return Ht.forEach(function(je){for(var ri=je||{},Si=ri.key,$e=ri.dataIndex,rn=Si||st($e).join("-")||tn;Ut[rn];)rn="".concat(rn,"_next");Ut[rn]=!0,Cn.push(rn)}),Cn}function Rt(Ht){return Ht!=null}function Zt(Ht){return typeof Ht=="number"&&!Number.isNaN(Ht)}function _t(Ht){return Ht&&(0,Oe.Z)(Ht)==="object"&&!Array.isArray(Ht)&&!Ze.isValidElement(Ht)}function Mt(Ht,Cn,Ut,je,ri,Si){var $e=Ze.useContext(Nt),rn=pe(),Wt=(0,gt.Z)(function(){if(Rt(je))return[je];var Kt=Cn==null||Cn===""?[]:Array.isArray(Cn)?Cn:[Cn],Hn=(0,kt.Z)(Ht,Kt),Bn=Hn,un=void 0;if(ri){var On=ri(Hn,Ht,Ut);_t(On)?(Bn=On.children,un=On.props,$e.renderWithProps=!0):Bn=On}return[Bn,un]},[rn,Ht,je,Cn,ri,Ut],function(Kt,Hn){if(Si){var Bn=(0,Ye.Z)(Kt,2),un=Bn[1],On=(0,Ye.Z)(Hn,2),li=On[1];return Si(li,un)}return $e.renderWithProps?!0:!(0,at.Z)(Kt,Hn,!0)});return Wt}function jt(Ht,Cn,Ut,je){var ri=Ht+Cn-1;return Ht<=je&&ri>=Ut}function an(Ht,Cn){return nt(Ce,function(Ut){var je=jt(Ht,Cn||1,Ut.hoverStartRow,Ut.hoverEndRow);return[je,Ut.onHover]})}var Dn=we(70425),Dt=function(Cn){var Ut=Cn.ellipsis,je=Cn.rowType,ri=Cn.children,Si,$e=Ut===!0?{showTitle:!0}:Ut;return $e&&($e.showTitle||je==="header")&&(typeof ri=="string"||typeof ri=="number"?Si=ri.toString():Ze.isValidElement(ri)&&typeof ri.props.children=="string"&&(Si=ri.props.children)),Si};function gn(Ht){var Cn,Ut,je,ri,Si,$e,rn,Wt,Kt=Ht.component,Hn=Ht.children,Bn=Ht.ellipsis,un=Ht.scope,On=Ht.prefixCls,li=Ht.className,ke=Ht.align,ht=Ht.record,Je=Ht.render,pt=Ht.dataIndex,Pt=Ht.renderIndex,$t=Ht.shouldCellUpdate,Qt=Ht.index,dn=Ht.rowType,Nn=Ht.colSpan,jn=Ht.rowSpan,cn=Ht.fixLeft,qn=Ht.fixRight,ci=Ht.firstFixLeft,vt=Ht.lastFixLeft,Un=Ht.firstFixRight,Jn=Ht.lastFixRight,In=Ht.appendNode,zn=Ht.additionalProps,oi=zn===void 0?{}:zn,Wn=Ht.isSticky,fi="".concat(On,"-cell"),pi=nt(Ce,["supportSticky","allColumnsFixedLeft","rowHoverable"]),ai=pi.supportSticky,Wi=pi.allColumnsFixedLeft,pr=pi.rowHoverable,or=Mt(ht,pt,Pt,Hn,Je,$t),tr=(0,Ye.Z)(or,2),Pi=tr[0],fr=tr[1],nr={},lr=typeof cn=="number"&&ai,sr=typeof qn=="number"&&ai;lr&&(nr.position="sticky",nr.left=cn),sr&&(nr.position="sticky",nr.right=qn);var mr=(Cn=(Ut=(je=fr==null?void 0:fr.colSpan)!==null&&je!==void 0?je:oi.colSpan)!==null&&Ut!==void 0?Ut:Nn)!==null&&Cn!==void 0?Cn:1,En=(ri=(Si=($e=fr==null?void 0:fr.rowSpan)!==null&&$e!==void 0?$e:oi.rowSpan)!==null&&Si!==void 0?Si:jn)!==null&&ri!==void 0?ri:1,Mi=an(Qt,En),Ti=(0,Ye.Z)(Mi,2),Vi=Ti[0],Zi=Ti[1],Oi=(0,Dn.zX)(function(_i){var Er;ht&&Zi(Qt,Qt+En-1),oi==null||(Er=oi.onMouseEnter)===null||Er===void 0||Er.call(oi,_i)}),Ln=(0,Dn.zX)(function(_i){var Er;ht&&Zi(-1,-1),oi==null||(Er=oi.onMouseLeave)===null||Er===void 0||Er.call(oi,_i)});if(mr===0||En===0)return null;var ir=(rn=oi.title)!==null&&rn!==void 0?rn:Dt({rowType:dn,ellipsis:Bn,children:Pi}),hr=Ct()(fi,li,(Wt={},(0,rt.Z)((0,rt.Z)((0,rt.Z)((0,rt.Z)((0,rt.Z)((0,rt.Z)((0,rt.Z)((0,rt.Z)((0,rt.Z)((0,rt.Z)(Wt,"".concat(fi,"-fix-left"),lr&&ai),"".concat(fi,"-fix-left-first"),ci&&ai),"".concat(fi,"-fix-left-last"),vt&&ai),"".concat(fi,"-fix-left-all"),vt&&Wi&&ai),"".concat(fi,"-fix-right"),sr&&ai),"".concat(fi,"-fix-right-first"),Un&&ai),"".concat(fi,"-fix-right-last"),Jn&&ai),"".concat(fi,"-ellipsis"),Bn),"".concat(fi,"-with-append"),In),"".concat(fi,"-fix-sticky"),(lr||sr)&&Wn&&ai),(0,rt.Z)(Wt,"".concat(fi,"-row-hover"),!fr&&Vi)),oi.className,fr==null?void 0:fr.className),Mr={};ke&&(Mr.textAlign=ke);var An=(0,Re.Z)((0,Re.Z)((0,Re.Z)((0,Re.Z)({},fr==null?void 0:fr.style),nr),Mr),oi.style),Fi=Pi;return(0,Oe.Z)(Fi)==="object"&&!Array.isArray(Fi)&&!Ze.isValidElement(Fi)&&(Fi=null),Bn&&(vt||Un)&&(Fi=Ze.createElement("span",{className:"".concat(fi,"-content")},Fi)),Ze.createElement(Kt,(0,De.Z)({},fr,oi,{className:hr,style:An,title:ir,scope:un,onMouseEnter:pr?Oi:void 0,onMouseLeave:pr?Ln:void 0,colSpan:mr!==1?mr:null,rowSpan:En!==1?En:null}),In,Fi)}var yt=Ze.memo(gn);function Zn(Ht,Cn,Ut,je,ri){var Si=Ut[Ht]||{},$e=Ut[Cn]||{},rn,Wt;Si.fixed==="left"?rn=je.left[ri==="rtl"?Cn:Ht]:$e.fixed==="right"&&(Wt=je.right[ri==="rtl"?Ht:Cn]);var Kt=!1,Hn=!1,Bn=!1,un=!1,On=Ut[Cn+1],li=Ut[Ht-1],ke=On&&!On.fixed||li&&!li.fixed||Ut.every(function($t){return $t.fixed==="left"});if(ri==="rtl"){if(rn!==void 0){var ht=li&&li.fixed==="left";un=!ht&&ke}else if(Wt!==void 0){var Je=On&&On.fixed==="right";Bn=!Je&&ke}}else if(rn!==void 0){var pt=On&&On.fixed==="left";Kt=!pt&&ke}else if(Wt!==void 0){var Pt=li&&li.fixed==="right";Hn=!Pt&&ke}return{fixLeft:rn,fixRight:Wt,lastFixLeft:Kt,firstFixRight:Hn,lastFixRight:Bn,firstFixLeft:un,isSticky:je.isSticky}}var vi=Ze.createContext({}),We=vi;function Fe(Ht){var Cn=Ht.className,Ut=Ht.index,je=Ht.children,ri=Ht.colSpan,Si=ri===void 0?1:ri,$e=Ht.rowSpan,rn=Ht.align,Wt=nt(Ce,["prefixCls","direction"]),Kt=Wt.prefixCls,Hn=Wt.direction,Bn=Ze.useContext(We),un=Bn.scrollColumnIndex,On=Bn.stickyOffsets,li=Bn.flattenColumns,ke=Ut+Si-1,ht=ke+1===un?Si+1:Si,Je=Zn(Ut,Ut+ht-1,li,On,Hn);return Ze.createElement(yt,(0,De.Z)({className:Cn,index:Ut,component:"td",prefixCls:Kt,record:null,dataIndex:null,align:rn,colSpan:ht,rowSpan:$e,render:function(){return je}},Je))}var xe=we(39224),Ne=["children"];function _e(Ht){var Cn=Ht.children,Ut=(0,xe.Z)(Ht,Ne);return Ze.createElement("tr",Ut,Cn)}function be(Ht){var Cn=Ht.children;return Cn}be.Row=_e,be.Cell=Fe;var tt=be;function Xt(Ht){var Cn=Ht.children,Ut=Ht.stickyOffsets,je=Ht.flattenColumns,ri=nt(Ce,"prefixCls"),Si=je.length-1,$e=je[Si],rn=Ze.useMemo(function(){return{stickyOffsets:Ut,flattenColumns:je,scrollColumnIndex:$e!=null&&$e.scrollbar?Si:null}},[$e,je,Si,Ut]);return Ze.createElement(We.Provider,{value:rn},Ze.createElement("tfoot",{className:"".concat(ri,"-summary")},Cn))}var Bt=de(Xt),nn=tt,Tt=we(29301),bt=we(24514),zt=we(75152),qt=we(26112);function pn(Ht,Cn,Ut,je,ri,Si,$e){Ht.push({record:Cn,indent:Ut,index:$e});var rn=Si(Cn),Wt=ri==null?void 0:ri.has(rn);if(Cn&&Array.isArray(Cn[je])&&Wt)for(var Kt=0;Kt<Cn[je].length;Kt+=1)pn(Ht,Cn[je][Kt],Ut+1,je,ri,Si,Kt)}function ei(Ht,Cn,Ut,je){var ri=Ze.useMemo(function(){if(Ut!=null&&Ut.size){for(var Si=[],$e=0;$e<(Ht==null?void 0:Ht.length);$e+=1){var rn=Ht[$e];pn(Si,rn,0,Cn,Ut,je,$e)}return Si}return Ht==null?void 0:Ht.map(function(Wt,Kt){return{record:Wt,indent:0,index:Kt}})},[Ht,Cn,Ut,je]);return ri}function wn(Ht,Cn,Ut,je){var ri=nt(Ce,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),Si=ri.flattenColumns,$e=ri.expandableType,rn=ri.expandedKeys,Wt=ri.childrenColumnName,Kt=ri.onTriggerExpand,Hn=ri.rowExpandable,Bn=ri.onRow,un=ri.expandRowByClick,On=ri.rowClassName,li=$e==="nest",ke=$e==="row"&&(!Hn||Hn(Ht)),ht=ke||li,Je=rn&&rn.has(Cn),pt=Wt&&Ht&&Ht[Wt],Pt=(0,Dn.zX)(Kt),$t=Bn==null?void 0:Bn(Ht,Ut),Qt=$t==null?void 0:$t.onClick,dn=function(qn){un&&ht&&Kt(Ht,qn);for(var ci=arguments.length,vt=new Array(ci>1?ci-1:0),Un=1;Un<ci;Un++)vt[Un-1]=arguments[Un];Qt==null||Qt.apply(void 0,[qn].concat(vt))},Nn;typeof On=="string"?Nn=On:typeof On=="function"&&(Nn=On(Ht,Ut,je));var jn=He(Si);return(0,Re.Z)((0,Re.Z)({},ri),{},{columnsKey:jn,nestExpandable:li,expanded:Je,hasNestChildren:pt,record:Ht,onTriggerExpand:Pt,rowSupportExpand:ke,expandable:ht,rowProps:(0,Re.Z)((0,Re.Z)({},$t),{},{className:Ct()(Nn,$t==null?void 0:$t.className),onClick:dn})})}function Fn(Ht){var Cn=Ht.prefixCls,Ut=Ht.children,je=Ht.component,ri=Ht.cellComponent,Si=Ht.className,$e=Ht.expanded,rn=Ht.colSpan,Wt=Ht.isEmpty,Kt=nt(Ce,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),Hn=Kt.scrollbarSize,Bn=Kt.fixHeader,un=Kt.fixColumn,On=Kt.componentWidth,li=Kt.horizonScroll,ke=Ut;return(Wt?li&&On:un)&&(ke=Ze.createElement("div",{style:{width:On-(Bn&&!Wt?Hn:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(Cn,"-expanded-row-fixed")},ke)),Ze.createElement(je,{className:Si,style:{display:$e?null:"none"}},Ze.createElement(yt,{component:ri,prefixCls:Cn,colSpan:rn},ke))}var Ci=Fn;function $n(Ht){var Cn=Ht.prefixCls,Ut=Ht.record,je=Ht.onExpand,ri=Ht.expanded,Si=Ht.expandable,$e="".concat(Cn,"-row-expand-icon");if(!Si)return Ze.createElement("span",{className:Ct()($e,"".concat(Cn,"-row-spaced"))});var rn=function(Kt){je(Ut,Kt),Kt.stopPropagation()};return Ze.createElement("span",{className:Ct()($e,(0,rt.Z)((0,rt.Z)({},"".concat(Cn,"-row-expanded"),ri),"".concat(Cn,"-row-collapsed"),!ri)),onClick:rn})}function bi(Ht,Cn,Ut){var je=[];function ri(Si){(Si||[]).forEach(function($e,rn){je.push(Cn($e,rn)),ri($e[Ut])})}return ri(Ht),je}function hi(Ht,Cn,Ut,je){return typeof Ht=="string"?Ht:typeof Ht=="function"?Ht(Cn,Ut,je):""}function Di(Ht,Cn,Ut,je,ri){var Si=Ht.record,$e=Ht.prefixCls,rn=Ht.columnsKey,Wt=Ht.fixedInfoList,Kt=Ht.expandIconColumnIndex,Hn=Ht.nestExpandable,Bn=Ht.indentSize,un=Ht.expandIcon,On=Ht.expanded,li=Ht.hasNestChildren,ke=Ht.onTriggerExpand,ht=rn[Ut],Je=Wt[Ut],pt;Ut===(Kt||0)&&Hn&&(pt=Ze.createElement(Ze.Fragment,null,Ze.createElement("span",{style:{paddingLeft:"".concat(Bn*je,"px")},className:"".concat($e,"-row-indent indent-level-").concat(je)}),un({prefixCls:$e,expanded:On,expandable:li,record:Si,onExpand:ke})));var Pt;return Cn.onCell&&(Pt=Cn.onCell(Si,ri)),{key:ht,fixedInfo:Je,appendCellNode:pt,additionalCellProps:Pt||{}}}function Gi(Ht){var Cn=Ht.className,Ut=Ht.style,je=Ht.record,ri=Ht.index,Si=Ht.renderIndex,$e=Ht.rowKey,rn=Ht.indent,Wt=rn===void 0?0:rn,Kt=Ht.rowComponent,Hn=Ht.cellComponent,Bn=Ht.scopeCellComponent,un=wn(je,$e,ri,Wt),On=un.prefixCls,li=un.flattenColumns,ke=un.expandedRowClassName,ht=un.expandedRowRender,Je=un.rowProps,pt=un.expanded,Pt=un.rowSupportExpand,$t=Ze.useRef(!1);$t.current||($t.current=pt);var Qt=hi(ke,je,ri,Wt),dn=Ze.createElement(Kt,(0,De.Z)({},Je,{"data-row-key":$e,className:Ct()(Cn,"".concat(On,"-row"),"".concat(On,"-row-level-").concat(Wt),Je==null?void 0:Je.className,(0,rt.Z)({},Qt,Wt>=1)),style:(0,Re.Z)((0,Re.Z)({},Ut),Je==null?void 0:Je.style)}),li.map(function(cn,qn){var ci=cn.render,vt=cn.dataIndex,Un=cn.className,Jn=Di(un,cn,qn,Wt,ri),In=Jn.key,zn=Jn.fixedInfo,oi=Jn.appendCellNode,Wn=Jn.additionalCellProps;return Ze.createElement(yt,(0,De.Z)({className:Un,ellipsis:cn.ellipsis,align:cn.align,scope:cn.rowScope,component:cn.rowScope?Bn:Hn,prefixCls:On,key:In,record:je,index:ri,renderIndex:Si,dataIndex:vt,render:ci,shouldCellUpdate:cn.shouldCellUpdate},zn,{appendNode:oi,additionalProps:Wn}))})),Nn;if(Pt&&($t.current||pt)){var jn=ht(je,ri,Wt+1,pt);Nn=Ze.createElement(Ci,{expanded:pt,className:Ct()("".concat(On,"-expanded-row"),"".concat(On,"-expanded-row-level-").concat(Wt+1),Qt),prefixCls:On,component:Kt,cellComponent:Hn,colSpan:li.length,isEmpty:!1},jn)}return Ze.createElement(Ze.Fragment,null,dn,Nn)}var Ji=de(Gi);function Zr(Ht){var Cn=Ht.columnKey,Ut=Ht.onColumnResize,je=Ze.useRef();return(0,it.Z)(function(){je.current&&Ut(Cn,je.current.offsetWidth)},[]),Ze.createElement(Tt.Z,{data:Cn},Ze.createElement("td",{ref:je,style:{padding:0,border:0,height:0}},Ze.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}var qi=we(29194);function ii(Ht){var Cn=Ht.prefixCls,Ut=Ht.columnsKey,je=Ht.onColumnResize,ri=Ze.useRef(null);return Ze.createElement("tr",{"aria-hidden":"true",className:"".concat(Cn,"-measure-row"),style:{height:0,fontSize:0},ref:ri},Ze.createElement(Tt.Z.Collection,{onBatchResize:function($e){(0,qi.Z)(ri.current)&&$e.forEach(function(rn){var Wt=rn.data,Kt=rn.size;je(Wt,Kt.offsetWidth)})}},Ut.map(function(Si){return Ze.createElement(Zr,{key:Si,columnKey:Si,onColumnResize:je})})))}function so(Ht){var Cn=Ht.data,Ut=Ht.measureColumnWidth,je=nt(Ce,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),ri=je.prefixCls,Si=je.getComponent,$e=je.onColumnResize,rn=je.flattenColumns,Wt=je.getRowKey,Kt=je.expandedKeys,Hn=je.childrenColumnName,Bn=je.emptyNode,un=ei(Cn,Hn,Kt,Wt),On=Ze.useRef({renderWithProps:!1}),li=Si(["body","wrapper"],"tbody"),ke=Si(["body","row"],"tr"),ht=Si(["body","cell"],"td"),Je=Si(["body","cell"],"th"),pt;Cn.length?pt=un.map(function($t,Qt){var dn=$t.record,Nn=$t.indent,jn=$t.index,cn=Wt(dn,Qt);return Ze.createElement(Ji,{key:cn,rowKey:cn,record:dn,index:Qt,renderIndex:jn,rowComponent:ke,cellComponent:ht,scopeCellComponent:Je,indent:Nn})}):pt=Ze.createElement(Ci,{expanded:!0,className:"".concat(ri,"-placeholder"),prefixCls:ri,component:ke,cellComponent:ht,colSpan:rn.length,isEmpty:!0},Bn);var Pt=He(rn);return Ze.createElement(Nt.Provider,{value:On.current},Ze.createElement(li,{className:"".concat(ri,"-tbody")},Ut&&Ze.createElement(ii,{prefixCls:ri,columnsKey:Pt,onColumnResize:$e}),pt))}var Kr=de(so),qr=we(54451),io=["columnType"];function Fo(Ht){for(var Cn=Ht.colWidths,Ut=Ht.columns,je=Ht.columCount,ri=nt(Ce,["tableLayout"]),Si=ri.tableLayout,$e=[],rn=je||Ut.length,Wt=!1,Kt=rn-1;Kt>=0;Kt-=1){var Hn=Cn[Kt],Bn=Ut&&Ut[Kt],un=void 0,On=void 0;if(Bn&&(un=Bn[qr.v],Si==="auto"&&(On=Bn.minWidth)),Hn||On||un||Wt){var li=un||{},ke=li.columnType,ht=(0,xe.Z)(li,io);$e.unshift(Ze.createElement("col",(0,De.Z)({key:Kt,style:{width:Hn,minWidth:On}},ht))),Wt=!0}}return Ze.createElement("colgroup",null,$e)}var lo=Fo,Ar=we(62730),ro=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function Le(Ht,Cn){return(0,Ze.useMemo)(function(){for(var Ut=[],je=0;je<Cn;je+=1){var ri=Ht[je];if(ri!==void 0)Ut[je]=ri;else return null}return Ut},[Ht.join("_"),Cn])}var xn=Ze.forwardRef(function(Ht,Cn){var Ut=Ht.className,je=Ht.noData,ri=Ht.columns,Si=Ht.flattenColumns,$e=Ht.colWidths,rn=Ht.columCount,Wt=Ht.stickyOffsets,Kt=Ht.direction,Hn=Ht.fixHeader,Bn=Ht.stickyTopOffset,un=Ht.stickyBottomOffset,On=Ht.stickyClassName,li=Ht.onScroll,ke=Ht.maxContentScroll,ht=Ht.children,Je=(0,xe.Z)(Ht,ro),pt=nt(Ce,["prefixCls","scrollbarSize","isSticky","getComponent"]),Pt=pt.prefixCls,$t=pt.scrollbarSize,Qt=pt.isSticky,dn=pt.getComponent,Nn=dn(["header","table"],"table"),jn=Qt&&!Hn?0:$t,cn=Ze.useRef(null),qn=Ze.useCallback(function(Wn){(0,wt.mH)(Cn,Wn),(0,wt.mH)(cn,Wn)},[]);Ze.useEffect(function(){var Wn;function fi(pi){var ai=pi,Wi=ai.currentTarget,pr=ai.deltaX;pr&&(li({currentTarget:Wi,scrollLeft:Wi.scrollLeft+pr}),pi.preventDefault())}return(Wn=cn.current)===null||Wn===void 0||Wn.addEventListener("wheel",fi,{passive:!1}),function(){var pi;(pi=cn.current)===null||pi===void 0||pi.removeEventListener("wheel",fi)}},[]);var ci=Ze.useMemo(function(){return Si.every(function(Wn){return Wn.width})},[Si]),vt=Si[Si.length-1],Un={fixed:vt?vt.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(Pt,"-cell-scrollbar")}}},Jn=(0,Ze.useMemo)(function(){return jn?[].concat((0,Ar.Z)(ri),[Un]):ri},[jn,ri]),In=(0,Ze.useMemo)(function(){return jn?[].concat((0,Ar.Z)(Si),[Un]):Si},[jn,Si]),zn=(0,Ze.useMemo)(function(){var Wn=Wt.right,fi=Wt.left;return(0,Re.Z)((0,Re.Z)({},Wt),{},{left:Kt==="rtl"?[].concat((0,Ar.Z)(fi.map(function(pi){return pi+jn})),[0]):fi,right:Kt==="rtl"?Wn:[].concat((0,Ar.Z)(Wn.map(function(pi){return pi+jn})),[0]),isSticky:Qt})},[jn,Wt,Qt]),oi=Le($e,rn);return Ze.createElement("div",{style:(0,Re.Z)({overflow:"hidden"},Qt?{top:Bn,bottom:un}:{}),ref:qn,className:Ct()(Ut,(0,rt.Z)({},On,!!On))},Ze.createElement(Nn,{style:{tableLayout:"fixed",visibility:je||oi?null:"hidden"}},(!je||!ke||ci)&&Ze.createElement(lo,{colWidths:oi?[].concat((0,Ar.Z)(oi),[jn]):[],columCount:rn+1,columns:In}),ht((0,Re.Z)((0,Re.Z)({},Je),{},{stickyOffsets:zn,columns:Jn,flattenColumns:In}))))}),Qn=Ze.memo(xn),gi=function(Cn){var Ut=Cn.cells,je=Cn.stickyOffsets,ri=Cn.flattenColumns,Si=Cn.rowComponent,$e=Cn.cellComponent,rn=Cn.onHeaderRow,Wt=Cn.index,Kt=nt(Ce,["prefixCls","direction"]),Hn=Kt.prefixCls,Bn=Kt.direction,un;rn&&(un=rn(Ut.map(function(li){return li.column}),Wt));var On=He(Ut.map(function(li){return li.column}));return Ze.createElement(Si,un,Ut.map(function(li,ke){var ht=li.column,Je=Zn(li.colStart,li.colEnd,ri,je,Bn),pt;return ht&&ht.onHeaderCell&&(pt=li.column.onHeaderCell(ht)),Ze.createElement(yt,(0,De.Z)({},li,{scope:ht.title?li.colSpan>1?"colgroup":"col":null,ellipsis:ht.ellipsis,align:ht.align,component:$e,prefixCls:Hn,key:On[ke]},Je,{additionalProps:pt,rowType:"header"}))}))},yi=gi;function ti(Ht){var Cn=[];function Ut($e,rn){var Wt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;Cn[Wt]=Cn[Wt]||[];var Kt=rn,Hn=$e.filter(Boolean).map(function(Bn){var un={key:Bn.key,className:Bn.className||"",children:Bn.title,column:Bn,colStart:Kt},On=1,li=Bn.children;return li&&li.length>0&&(On=Ut(li,Kt,Wt+1).reduce(function(ke,ht){return ke+ht},0),un.hasSubColumns=!0),"colSpan"in Bn&&(On=Bn.colSpan),"rowSpan"in Bn&&(un.rowSpan=Bn.rowSpan),un.colSpan=On,un.colEnd=un.colStart+On-1,Cn[Wt].push(un),Kt+=On,On});return Hn}Ut(Ht,0);for(var je=Cn.length,ri=function(rn){Cn[rn].forEach(function(Wt){!("rowSpan"in Wt)&&!Wt.hasSubColumns&&(Wt.rowSpan=je-rn)})},Si=0;Si<je;Si+=1)ri(Si);return Cn}var Yi=function(Cn){var Ut=Cn.stickyOffsets,je=Cn.columns,ri=Cn.flattenColumns,Si=Cn.onHeaderRow,$e=nt(Ce,["prefixCls","getComponent"]),rn=$e.prefixCls,Wt=$e.getComponent,Kt=Ze.useMemo(function(){return ti(je)},[je]),Hn=Wt(["header","wrapper"],"thead"),Bn=Wt(["header","row"],"tr"),un=Wt(["header","cell"],"th");return Ze.createElement(Hn,{className:"".concat(rn,"-thead")},Kt.map(function(On,li){var ke=Ze.createElement(yi,{key:li,flattenColumns:ri,cells:On,stickyOffsets:Ut,rowComponent:Bn,cellComponent:un,onHeaderRow:Si,index:li});return ke}))},cr=de(Yi),Sr=we(97347);function Jt(Ht,Cn,Ut){var je=(0,qr.g)(Ht),ri=je.expandIcon,Si=je.expandedRowKeys,$e=je.defaultExpandedRowKeys,rn=je.defaultExpandAllRows,Wt=je.expandedRowRender,Kt=je.onExpand,Hn=je.onExpandedRowsChange,Bn=je.childrenColumnName,un=ri||$n,On=Bn||"children",li=Ze.useMemo(function(){return Wt?"row":Ht.expandable&&Ht.internalHooks===ve.R&&Ht.expandable.__PARENT_RENDER_ICON__||Cn.some(function(Qt){return Qt&&(0,Oe.Z)(Qt)==="object"&&Qt[On]})?"nest":!1},[!!Wt,Cn]),ke=Ze.useState(function(){return $e||(rn?bi(Cn,Ut,On):[])}),ht=(0,Ye.Z)(ke,2),Je=ht[0],pt=ht[1],Pt=Ze.useMemo(function(){return new Set(Si||Je||[])},[Si,Je]),$t=Ze.useCallback(function(Qt){var dn=Ut(Qt,Cn.indexOf(Qt)),Nn,jn=Pt.has(dn);jn?(Pt.delete(dn),Nn=(0,Ar.Z)(Pt)):Nn=[].concat((0,Ar.Z)(Pt),[dn]),pt(Nn),Kt&&Kt(!jn,Qt),Hn&&Hn(Nn)},[Ut,Pt,Cn,Kt,Hn]);return[je,li,Pt,un,On,$t]}function Vt(Ht,Cn,Ut){var je=Ht.map(function(ri,Si){return Zn(Si,Si,Ht,Cn,Ut)});return(0,gt.Z)(function(){return je},[je],function(ri,Si){return!(0,at.Z)(ri,Si)})}function It(Ht){var Cn=(0,Ze.useRef)(Ht),Ut=(0,Ze.useState)({}),je=(0,Ye.Z)(Ut,2),ri=je[1],Si=(0,Ze.useRef)(null),$e=(0,Ze.useRef)([]);function rn(Wt){$e.current.push(Wt);var Kt=Promise.resolve();Si.current=Kt,Kt.then(function(){if(Si.current===Kt){var Hn=$e.current,Bn=Cn.current;$e.current=[],Hn.forEach(function(un){Cn.current=un(Cn.current)}),Si.current=null,Bn!==Cn.current&&ri({})}})}return(0,Ze.useEffect)(function(){return function(){Si.current=null}},[]),[Cn.current,rn]}function Ei(Ht){var Cn=(0,Ze.useRef)(Ht||null),Ut=(0,Ze.useRef)();function je(){window.clearTimeout(Ut.current)}function ri($e){Cn.current=$e,je(),Ut.current=window.setTimeout(function(){Cn.current=null,Ut.current=void 0},100)}function Si(){return Cn.current}return(0,Ze.useEffect)(function(){return je},[]),[ri,Si]}function Ii(){var Ht=Ze.useState(-1),Cn=(0,Ye.Z)(Ht,2),Ut=Cn[0],je=Cn[1],ri=Ze.useState(-1),Si=(0,Ye.Z)(ri,2),$e=Si[0],rn=Si[1],Wt=Ze.useCallback(function(Kt,Hn){je(Kt),rn(Hn)},[]);return[Ut,$e,Wt]}var ji=we(47273),Xn=(0,ji.Z)()?window:null;function Ai(Ht,Cn){var Ut=(0,Oe.Z)(Ht)==="object"?Ht:{},je=Ut.offsetHeader,ri=je===void 0?0:je,Si=Ut.offsetSummary,$e=Si===void 0?0:Si,rn=Ut.offsetScroll,Wt=rn===void 0?0:rn,Kt=Ut.getContainer,Hn=Kt===void 0?function(){return Xn}:Kt,Bn=Hn()||Xn,un=!!Ht;return Ze.useMemo(function(){return{isSticky:un,stickyClassName:un?"".concat(Cn,"-sticky-holder"):"",offsetHeader:ri,offsetSummary:$e,offsetScroll:Wt,container:Bn}},[un,Wt,ri,$e,Cn,Bn])}function ur(Ht,Cn,Ut){var je=(0,Ze.useMemo)(function(){var ri=Cn.length,Si=function(Kt,Hn,Bn){for(var un=[],On=0,li=Kt;li!==Hn;li+=Bn)un.push(On),Cn[li].fixed&&(On+=Ht[li]||0);return un},$e=Si(0,ri,1),rn=Si(ri-1,-1,-1).reverse();return Ut==="rtl"?{left:rn,right:$e}:{left:$e,right:rn}},[Ht,Cn,Ut]);return je}var Tr=ur;function br(Ht){var Cn=Ht.className,Ut=Ht.children;return Ze.createElement("div",{className:Cn},Ut)}var et=br,Ft=we(8224),Tn=we(16089),Yn=we(76846);function en(Ht){var Cn=(0,Yn.bn)(Ht),Ut=Cn.getBoundingClientRect(),je=document.documentElement;return{left:Ut.left+(window.pageXOffset||je.scrollLeft)-(je.clientLeft||document.body.clientLeft||0),top:Ut.top+(window.pageYOffset||je.scrollTop)-(je.clientTop||document.body.clientTop||0)}}var Gn=function(Cn,Ut){var je,ri,Si=Cn.scrollBodyRef,$e=Cn.onScroll,rn=Cn.offsetScroll,Wt=Cn.container,Kt=Cn.direction,Hn=nt(Ce,"prefixCls"),Bn=((je=Si.current)===null||je===void 0?void 0:je.scrollWidth)||0,un=((ri=Si.current)===null||ri===void 0?void 0:ri.clientWidth)||0,On=Bn&&un*(un/Bn),li=Ze.useRef(),ke=It({scrollLeft:0,isHiddenScrollBar:!0}),ht=(0,Ye.Z)(ke,2),Je=ht[0],pt=ht[1],Pt=Ze.useRef({delta:0,x:0}),$t=Ze.useState(!1),Qt=(0,Ye.Z)($t,2),dn=Qt[0],Nn=Qt[1],jn=Ze.useRef(null);Ze.useEffect(function(){return function(){Tn.Z.cancel(jn.current)}},[]);var cn=function(){Nn(!1)},qn=function(In){In.persist(),Pt.current.delta=In.pageX-Je.scrollLeft,Pt.current.x=0,Nn(!0),In.preventDefault()},ci=function(In){var zn,oi=In||((zn=window)===null||zn===void 0?void 0:zn.event),Wn=oi.buttons;if(!dn||Wn===0){dn&&Nn(!1);return}var fi=Pt.current.x+In.pageX-Pt.current.x-Pt.current.delta,pi=Kt==="rtl";fi=Math.max(pi?On-un:0,Math.min(pi?0:un-On,fi));var ai=!pi||Math.abs(fi)+Math.abs(On)<un;ai&&($e({scrollLeft:fi/un*(Bn+2)}),Pt.current.x=In.pageX)},vt=function(){Tn.Z.cancel(jn.current),jn.current=(0,Tn.Z)(function(){if(Si.current){var In=en(Si.current).top,zn=In+Si.current.offsetHeight,oi=Wt===window?document.documentElement.scrollTop+window.innerHeight:en(Wt).top+Wt.clientHeight;zn-(0,zt.Z)()<=oi||In>=oi-rn?pt(function(Wn){return(0,Re.Z)((0,Re.Z)({},Wn),{},{isHiddenScrollBar:!0})}):pt(function(Wn){return(0,Re.Z)((0,Re.Z)({},Wn),{},{isHiddenScrollBar:!1})})}})},Un=function(In){pt(function(zn){return(0,Re.Z)((0,Re.Z)({},zn),{},{scrollLeft:In/Bn*un||0})})};return Ze.useImperativeHandle(Ut,function(){return{setScrollLeft:Un,checkScrollBarVisible:vt}}),Ze.useEffect(function(){var Jn=(0,Ft.Z)(document.body,"mouseup",cn,!1),In=(0,Ft.Z)(document.body,"mousemove",ci,!1);return vt(),function(){Jn.remove(),In.remove()}},[On,dn]),Ze.useEffect(function(){if(Si.current){for(var Jn=[],In=(0,Yn.bn)(Si.current);In;)Jn.push(In),In=In.parentElement;return Jn.forEach(function(zn){return zn.addEventListener("scroll",vt,!1)}),window.addEventListener("resize",vt,!1),window.addEventListener("scroll",vt,!1),Wt.addEventListener("scroll",vt,!1),function(){Jn.forEach(function(zn){return zn.removeEventListener("scroll",vt)}),window.removeEventListener("resize",vt),window.removeEventListener("scroll",vt),Wt.removeEventListener("scroll",vt)}}},[Wt]),Ze.useEffect(function(){Je.isHiddenScrollBar||pt(function(Jn){var In=Si.current;return In?(0,Re.Z)((0,Re.Z)({},Jn),{},{scrollLeft:In.scrollLeft/In.scrollWidth*In.clientWidth}):Jn})},[Je.isHiddenScrollBar]),Bn<=un||!On||Je.isHiddenScrollBar?null:Ze.createElement("div",{style:{height:(0,zt.Z)(),width:un,bottom:rn},className:"".concat(Hn,"-sticky-scroll")},Ze.createElement("div",{onMouseDown:qn,ref:li,className:Ct()("".concat(Hn,"-sticky-scroll-bar"),(0,rt.Z)({},"".concat(Hn,"-sticky-scroll-bar-active"),dn)),style:{width:"".concat(On,"px"),transform:"translate3d(".concat(Je.scrollLeft,"px, 0, 0)")}}))},kn=Ze.forwardRef(Gn);function _n(Ht){return null}var xi=_n;function mi(Ht){return null}var sn=mi,ki="rc-table",Cr=[],gr={};function dr(){return"No Data"}function mn(Ht,Cn){var Ut=(0,Re.Z)({rowKey:"key",prefixCls:ki,emptyText:dr},Ht),je=Ut.prefixCls,ri=Ut.className,Si=Ut.rowClassName,$e=Ut.style,rn=Ut.data,Wt=Ut.rowKey,Kt=Ut.scroll,Hn=Ut.tableLayout,Bn=Ut.direction,un=Ut.title,On=Ut.footer,li=Ut.summary,ke=Ut.caption,ht=Ut.id,Je=Ut.showHeader,pt=Ut.components,Pt=Ut.emptyText,$t=Ut.onRow,Qt=Ut.onHeaderRow,dn=Ut.onScroll,Nn=Ut.internalHooks,jn=Ut.transformColumns,cn=Ut.internalRefs,qn=Ut.tailor,ci=Ut.getContainerWidth,vt=Ut.sticky,Un=Ut.rowHoverable,Jn=Un===void 0?!0:Un,In=rn||Cr,zn=!!In.length,oi=Nn===ve.R,Wn=Ze.useCallback(function(Bo,Vo){return(0,kt.Z)(pt,Bo)||Vo},[pt]),fi=Ze.useMemo(function(){return typeof Wt=="function"?Wt:function(Bo){var Vo=Bo&&Bo[Wt];return Vo}},[Wt]),pi=Wn(["body"]),ai=Ii(),Wi=(0,Ye.Z)(ai,3),pr=Wi[0],or=Wi[1],tr=Wi[2],Pi=Jt(Ut,In,fi),fr=(0,Ye.Z)(Pi,6),nr=fr[0],lr=fr[1],sr=fr[2],mr=fr[3],En=fr[4],Mi=fr[5],Ti=Kt==null?void 0:Kt.x,Vi=Ze.useState(0),Zi=(0,Ye.Z)(Vi,2),Oi=Zi[0],Ln=Zi[1],ir=(0,Sr.Z)((0,Re.Z)((0,Re.Z)((0,Re.Z)({},Ut),nr),{},{expandable:!!nr.expandedRowRender,columnTitle:nr.columnTitle,expandedKeys:sr,getRowKey:fi,onTriggerExpand:Mi,expandIcon:mr,expandIconColumnIndex:nr.expandIconColumnIndex,direction:Bn,scrollWidth:oi&&qn&&typeof Ti=="number"?Ti:null,clientWidth:Oi}),oi?jn:null),hr=(0,Ye.Z)(ir,4),Mr=hr[0],An=hr[1],Fi=hr[2],_i=hr[3],Er=Fi!=null?Fi:Ti,oo=Ze.useMemo(function(){return{columns:Mr,flattenColumns:An}},[Mr,An]),vo=Ze.useRef(),No=Ze.useRef(),$r=Ze.useRef(),ea=Ze.useRef();Ze.useImperativeHandle(Cn,function(){return{nativeElement:vo.current,scrollTo:function(Vo){var Ea;if($r.current instanceof HTMLElement){var es=Vo.index,Xa=Vo.top,kl=Vo.key;if(Zt(Xa)){var ml;(ml=$r.current)===null||ml===void 0||ml.scrollTo({top:Xa})}else{var Ro,So=kl!=null?kl:fi(In[es]);(Ro=$r.current.querySelector('[data-row-key="'.concat(So,'"]')))===null||Ro===void 0||Ro.scrollIntoView()}}else(Ea=$r.current)!==null&&Ea!==void 0&&Ea.scrollTo&&$r.current.scrollTo(Vo)}}});var Ui=Ze.useRef(),eo=Ze.useState(!1),co=(0,Ye.Z)(eo,2),bo=co[0],na=co[1],Yo=Ze.useState(!1),To=(0,Ye.Z)(Yo,2),Eo=To[0],ra=To[1],ca=Ze.useState(new Map),Oo=(0,Ye.Z)(ca,2),Xo=Oo[0],po=Oo[1],mo=He(An),Jr=mo.map(function(Bo){return Xo.get(Bo)}),ta=Ze.useMemo(function(){return Jr},[Jr.join("_")]),Do=Tr(ta,An,Bn),Aa=Kt&&Rt(Kt.y),xr=Kt&&Rt(Er)||!!nr.fixed,er=xr&&An.some(function(Bo){var Vo=Bo.fixed;return Vo}),Br=Ze.useRef(),vr=Ai(vt,je),di=vr.isSticky,Go=vr.offsetHeader,St=vr.offsetSummary,Pn=vr.offsetScroll,ja=vr.stickyClassName,za=vr.container,fa=Ze.useMemo(function(){return li==null?void 0:li(In)},[li,In]),ga=(Aa||di)&&Ze.isValidElement(fa)&&fa.type===tt&&fa.props.fixed,Ga,Na,Zs;Aa&&(Na={overflowY:zn?"scroll":"auto",maxHeight:Kt.y}),xr&&(Ga={overflowX:"auto"},Aa||(Na={overflowY:"hidden"}),Zs={width:Er===!0?"auto":Er,minWidth:"100%"});var sa=Ze.useCallback(function(Bo,Vo){po(function(Ea){if(Ea.get(Bo)!==Vo){var es=new Map(Ea);return es.set(Bo,Vo),es}return Ea})},[]),Wr=Ei(null),Va=(0,Ye.Z)(Wr,2),$a=Va[0],la=Va[1];function yo(Bo,Vo){Vo&&(typeof Vo=="function"?Vo(Bo):Vo.scrollLeft!==Bo&&(Vo.scrollLeft=Bo,Vo.scrollLeft!==Bo&&setTimeout(function(){Vo.scrollLeft=Bo},0)))}var ma=(0,dt.Z)(function(Bo){var Vo=Bo.currentTarget,Ea=Bo.scrollLeft,es=Bn==="rtl",Xa=typeof Ea=="number"?Ea:Vo.scrollLeft,kl=Vo||gr;if(!la()||la()===kl){var ml;$a(kl),yo(Xa,No.current),yo(Xa,$r.current),yo(Xa,Ui.current),yo(Xa,(ml=Br.current)===null||ml===void 0?void 0:ml.setScrollLeft)}var Ro=Vo||No.current;if(Ro){var So=oi&&qn&&typeof Er=="number"?Er:Ro.scrollWidth,Ya=Ro.clientWidth;if(So===Ya){na(!1),ra(!1);return}es?(na(-Xa<So-Ya),ra(-Xa>0)):(na(Xa>0),ra(Xa<So-Ya))}}),ls=(0,dt.Z)(function(Bo){ma(Bo),dn==null||dn(Bo)}),aa=function(){if(xr&&$r.current){var Vo;ma({currentTarget:(0,Yn.bn)($r.current),scrollLeft:(Vo=$r.current)===null||Vo===void 0?void 0:Vo.scrollLeft})}else na(!1),ra(!1)},us=function(Vo){var Ea,es=Vo.width;(Ea=Br.current)===null||Ea===void 0||Ea.checkScrollBarVisible();var Xa=vo.current?vo.current.offsetWidth:es;oi&&ci&&vo.current&&(Xa=ci(vo.current,Xa)||Xa),Xa!==Oi&&(aa(),Ln(Xa))},Ta=Ze.useRef(!1);Ze.useEffect(function(){Ta.current&&aa()},[xr,rn,Mr.length]),Ze.useEffect(function(){Ta.current=!0},[]);var bl=Ze.useState(0),Wo=(0,Ye.Z)(bl,2),Fa=Wo[0],Io=Wo[1],Jo=Ze.useState(!0),ha=(0,Ye.Z)(Jo,2),va=ha[0],Qo=ha[1];(0,it.Z)(function(){(!qn||!oi)&&($r.current instanceof Element?Io((0,zt.o)($r.current).width):Io((0,zt.o)(ea.current).width)),Qo((0,bt.G)("position","sticky"))},[]),Ze.useEffect(function(){oi&&cn&&(cn.body.current=$r.current)});var fl=Ze.useCallback(function(Bo){return Ze.createElement(Ze.Fragment,null,Ze.createElement(cr,Bo),ga==="top"&&Ze.createElement(Bt,Bo,fa))},[ga,fa]),Gr=Ze.useCallback(function(Bo){return Ze.createElement(Bt,Bo,fa)},[fa]),pu=Wn(["table"],"table"),Ao=Ze.useMemo(function(){return Hn||(er?Er==="max-content"?"auto":"fixed":Aa||di||An.some(function(Bo){var Vo=Bo.ellipsis;return Vo})?"fixed":"auto")},[Aa,er,An,Hn,di]),Gl,Qs={colWidths:ta,columCount:An.length,stickyOffsets:Do,onHeaderRow:Qt,fixHeader:Aa,scroll:Kt},Dl=Ze.useMemo(function(){return zn?null:typeof Pt=="function"?Pt():Pt},[zn,Pt]),mu=Ze.createElement(Kr,{data:In,measureColumnWidth:Aa||xr||di}),vu=Ze.createElement(lo,{colWidths:An.map(function(Bo){var Vo=Bo.width;return Vo}),columns:An}),Ws=ke!=null?Ze.createElement("caption",{className:"".concat(je,"-caption")},ke):void 0,Vl=(0,qt.Z)(Ut,{data:!0}),Ko=(0,qt.Z)(Ut,{aria:!0});if(Aa||di){var Hs;typeof pi=="function"?(Hs=pi(In,{scrollbarSize:Fa,ref:$r,onScroll:ma}),Qs.colWidths=An.map(function(Bo,Vo){var Ea=Bo.width,es=Vo===An.length-1?Ea-Fa:Ea;return typeof es=="number"&&!Number.isNaN(es)?es:0})):Hs=Ze.createElement("div",{style:(0,Re.Z)((0,Re.Z)({},Ga),Na),onScroll:ls,ref:$r,className:Ct()("".concat(je,"-body"))},Ze.createElement(pu,(0,De.Z)({style:(0,Re.Z)((0,Re.Z)({},Zs),{},{tableLayout:Ao})},Ko),Ws,vu,mu,!ga&&fa&&Ze.createElement(Bt,{stickyOffsets:Do,flattenColumns:An},fa)));var yu=(0,Re.Z)((0,Re.Z)((0,Re.Z)({noData:!In.length,maxContentScroll:xr&&Er==="max-content"},Qs),oo),{},{direction:Bn,stickyClassName:ja,onScroll:ma});Gl=Ze.createElement(Ze.Fragment,null,Je!==!1&&Ze.createElement(Qn,(0,De.Z)({},yu,{stickyTopOffset:Go,className:"".concat(je,"-header"),ref:No}),fl),Hs,ga&&ga!=="top"&&Ze.createElement(Qn,(0,De.Z)({},yu,{stickyBottomOffset:St,className:"".concat(je,"-summary"),ref:Ui}),Gr),di&&$r.current&&$r.current instanceof Element&&Ze.createElement(kn,{ref:Br,offsetScroll:Pn,scrollBodyRef:$r,onScroll:ma,container:za,direction:Bn}))}else Gl=Ze.createElement("div",{style:(0,Re.Z)((0,Re.Z)({},Ga),Na),className:Ct()("".concat(je,"-content")),onScroll:ma,ref:$r},Ze.createElement(pu,(0,De.Z)({style:(0,Re.Z)((0,Re.Z)({},Zs),{},{tableLayout:Ao})},Ko),Ws,vu,Je!==!1&&Ze.createElement(cr,(0,De.Z)({},Qs,oo)),mu,fa&&Ze.createElement(Bt,{stickyOffsets:Do,flattenColumns:An},fa)));var gl=Ze.createElement("div",(0,De.Z)({className:Ct()(je,ri,(0,rt.Z)((0,rt.Z)((0,rt.Z)((0,rt.Z)((0,rt.Z)((0,rt.Z)((0,rt.Z)((0,rt.Z)((0,rt.Z)((0,rt.Z)({},"".concat(je,"-rtl"),Bn==="rtl"),"".concat(je,"-ping-left"),bo),"".concat(je,"-ping-right"),Eo),"".concat(je,"-layout-fixed"),Hn==="fixed"),"".concat(je,"-fixed-header"),Aa),"".concat(je,"-fixed-column"),er),"".concat(je,"-fixed-column-gapped"),er&&_i),"".concat(je,"-scroll-horizontal"),xr),"".concat(je,"-has-fix-left"),An[0]&&An[0].fixed),"".concat(je,"-has-fix-right"),An[An.length-1]&&An[An.length-1].fixed==="right")),style:$e,id:ht,ref:vo},Vl),un&&Ze.createElement(et,{className:"".concat(je,"-title")},un(In)),Ze.createElement("div",{ref:ea,className:"".concat(je,"-container")},Gl),On&&Ze.createElement(et,{className:"".concat(je,"-footer")},On(In)));xr&&(gl=Ze.createElement(Tt.Z,{onResize:us},gl));var Du=Vt(An,Do,Bn),pl=Ze.useMemo(function(){return{scrollX:Er,prefixCls:je,getComponent:Wn,scrollbarSize:Fa,direction:Bn,fixedInfoList:Du,isSticky:di,supportSticky:va,componentWidth:Oi,fixHeader:Aa,fixColumn:er,horizonScroll:xr,tableLayout:Ao,rowClassName:Si,expandedRowClassName:nr.expandedRowClassName,expandIcon:mr,expandableType:lr,expandRowByClick:nr.expandRowByClick,expandedRowRender:nr.expandedRowRender,onTriggerExpand:Mi,expandIconColumnIndex:nr.expandIconColumnIndex,indentSize:nr.indentSize,allColumnsFixedLeft:An.every(function(Bo){return Bo.fixed==="left"}),emptyNode:Dl,columns:Mr,flattenColumns:An,onColumnResize:sa,hoverStartRow:pr,hoverEndRow:or,onHover:tr,rowExpandable:nr.rowExpandable,onRow:$t,getRowKey:fi,expandedKeys:sr,childrenColumnName:En,rowHoverable:Jn}},[Er,je,Wn,Fa,Bn,Du,di,va,Oi,Aa,er,xr,Ao,Si,nr.expandedRowClassName,mr,lr,nr.expandRowByClick,nr.expandedRowRender,Mi,nr.expandIconColumnIndex,nr.indentSize,Dl,Mr,An,sa,pr,or,tr,nr.rowExpandable,$t,fi,sr,En,Jn]);return Ze.createElement(Ce.Provider,{value:pl},gl)}var Ir=Ze.forwardRef(mn);function jr(Ht){return se(Ir,Ht)}var fo=jr();fo.EXPAND_COLUMN=ve.w,fo.INTERNAL_HOOKS=ve.R,fo.Column=xi,fo.ColumnGroup=sn,fo.Summary=nn;var yn=fo,ni=we(65283),Hi=xt(null),Ri=xt(null);function Xi(Ht,Cn,Ut){var je=Cn||1;return Ut[Ht+je]-(Ut[Ht]||0)}function $i(Ht){var Cn=Ht.rowInfo,Ut=Ht.column,je=Ht.colIndex,ri=Ht.indent,Si=Ht.index,$e=Ht.component,rn=Ht.renderIndex,Wt=Ht.record,Kt=Ht.style,Hn=Ht.className,Bn=Ht.inverse,un=Ht.getHeight,On=Ut.render,li=Ut.dataIndex,ke=Ut.className,ht=Ut.width,Je=nt(Ri,["columnsOffset"]),pt=Je.columnsOffset,Pt=Di(Cn,Ut,je,ri,Si),$t=Pt.key,Qt=Pt.fixedInfo,dn=Pt.appendCellNode,Nn=Pt.additionalCellProps,jn=Nn.style,cn=Nn.colSpan,qn=cn===void 0?1:cn,ci=Nn.rowSpan,vt=ci===void 0?1:ci,Un=je-1,Jn=Xi(Un,qn,pt),In=qn>1?ht-Jn:0,zn=(0,Re.Z)((0,Re.Z)((0,Re.Z)({},jn),Kt),{},{flex:"0 0 ".concat(Jn,"px"),width:"".concat(Jn,"px"),marginRight:In,pointerEvents:"auto"}),oi=Ze.useMemo(function(){return Bn?vt<=1:qn===0||vt===0||vt>1},[vt,qn,Bn]);oi?zn.visibility="hidden":Bn&&(zn.height=un==null?void 0:un(vt));var Wn=oi?function(){return null}:On,fi={};return(vt===0||qn===0)&&(fi.rowSpan=1,fi.colSpan=1),Ze.createElement(yt,(0,De.Z)({className:Ct()(ke,Hn),ellipsis:Ut.ellipsis,align:Ut.align,scope:Ut.rowScope,component:$e,prefixCls:Cn.prefixCls,key:$t,record:Wt,index:Si,renderIndex:rn,dataIndex:li,render:Wn,shouldCellUpdate:Ut.shouldCellUpdate},Qt,{appendNode:dn,additionalProps:(0,Re.Z)((0,Re.Z)({},Nn),{},{style:zn},fi)}))}var Fr=$i,Dr=["data","index","className","rowKey","style","extra","getHeight"],Rr=Ze.forwardRef(function(Ht,Cn){var Ut=Ht.data,je=Ht.index,ri=Ht.className,Si=Ht.rowKey,$e=Ht.style,rn=Ht.extra,Wt=Ht.getHeight,Kt=(0,xe.Z)(Ht,Dr),Hn=Ut.record,Bn=Ut.indent,un=Ut.index,On=nt(Ce,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),li=On.scrollX,ke=On.flattenColumns,ht=On.prefixCls,Je=On.fixColumn,pt=On.componentWidth,Pt=nt(Hi,["getComponent"]),$t=Pt.getComponent,Qt=wn(Hn,Si,je,Bn),dn=$t(["body","row"],"div"),Nn=$t(["body","cell"],"div"),jn=Qt.rowSupportExpand,cn=Qt.expanded,qn=Qt.rowProps,ci=Qt.expandedRowRender,vt=Qt.expandedRowClassName,Un;if(jn&&cn){var Jn=ci(Hn,je,Bn+1,cn),In=hi(vt,Hn,je,Bn),zn={};Je&&(zn={style:(0,rt.Z)({},"--virtual-width","".concat(pt,"px"))});var oi="".concat(ht,"-expanded-row-cell");Un=Ze.createElement(dn,{className:Ct()("".concat(ht,"-expanded-row"),"".concat(ht,"-expanded-row-level-").concat(Bn+1),In)},Ze.createElement(yt,{component:Nn,prefixCls:ht,className:Ct()(oi,(0,rt.Z)({},"".concat(oi,"-fixed"),Je)),additionalProps:zn},Jn))}var Wn=(0,Re.Z)((0,Re.Z)({},$e),{},{width:li});rn&&(Wn.position="absolute",Wn.pointerEvents="none");var fi=Ze.createElement(dn,(0,De.Z)({},qn,Kt,{"data-row-key":Si,ref:jn?null:Cn,className:Ct()(ri,"".concat(ht,"-row"),qn==null?void 0:qn.className,(0,rt.Z)({},"".concat(ht,"-row-extra"),rn)),style:(0,Re.Z)((0,Re.Z)({},Wn),qn==null?void 0:qn.style)}),ke.map(function(pi,ai){return Ze.createElement(Fr,{key:ai,component:Nn,rowInfo:Qt,column:pi,colIndex:ai,indent:Bn,index:je,renderIndex:un,record:Hn,inverse:rn,getHeight:Wt})}));return jn?Ze.createElement("div",{ref:Cn},fi,Un):fi}),Xr=de(Rr),Mn=Xr,ho=Ze.forwardRef(function(Ht,Cn){var Ut=Ht.data,je=Ht.onScroll,ri=nt(Ce,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),Si=ri.flattenColumns,$e=ri.onColumnResize,rn=ri.getRowKey,Wt=ri.expandedKeys,Kt=ri.prefixCls,Hn=ri.childrenColumnName,Bn=ri.scrollX,un=ri.direction,On=nt(Hi),li=On.sticky,ke=On.scrollY,ht=On.listItemHeight,Je=On.getComponent,pt=On.onScroll,Pt=Ze.useRef(),$t=ei(Ut,Hn,Wt,rn),Qt=Ze.useMemo(function(){var Un=0;return Si.map(function(Jn){var In=Jn.width,zn=Jn.key;return Un+=In,[zn,In,Un]})},[Si]),dn=Ze.useMemo(function(){return Qt.map(function(Un){return Un[2]})},[Qt]);Ze.useEffect(function(){Qt.forEach(function(Un){var Jn=(0,Ye.Z)(Un,2),In=Jn[0],zn=Jn[1];$e(In,zn)})},[Qt]),Ze.useImperativeHandle(Cn,function(){var Un,Jn={scrollTo:function(zn){var oi;(oi=Pt.current)===null||oi===void 0||oi.scrollTo(zn)},nativeElement:(Un=Pt.current)===null||Un===void 0?void 0:Un.nativeElement};return Object.defineProperty(Jn,"scrollLeft",{get:function(){var zn;return((zn=Pt.current)===null||zn===void 0?void 0:zn.getScrollInfo().x)||0},set:function(zn){var oi;(oi=Pt.current)===null||oi===void 0||oi.scrollTo({left:zn})}}),Jn});var Nn=function(Jn,In){var zn,oi=(zn=$t[In])===null||zn===void 0?void 0:zn.record,Wn=Jn.onCell;if(Wn){var fi,pi=Wn(oi,In);return(fi=pi==null?void 0:pi.rowSpan)!==null&&fi!==void 0?fi:1}return 1},jn=function(Jn){var In=Jn.start,zn=Jn.end,oi=Jn.getSize,Wn=Jn.offsetY;if(zn<0)return null;for(var fi=Si.filter(function(mr){return Nn(mr,In)===0}),pi=In,ai=function(En){if(fi=fi.filter(function(Mi){return Nn(Mi,En)===0}),!fi.length)return pi=En,1},Wi=In;Wi>=0&&!ai(Wi);Wi-=1);for(var pr=Si.filter(function(mr){return Nn(mr,zn)!==1}),or=zn,tr=function(En){if(pr=pr.filter(function(Mi){return Nn(Mi,En)!==1}),!pr.length)return or=Math.max(En-1,zn),1},Pi=zn;Pi<$t.length&&!tr(Pi);Pi+=1);for(var fr=[],nr=function(En){var Mi=$t[En];if(!Mi)return 1;Si.some(function(Ti){return Nn(Ti,En)>1})&&fr.push(En)},lr=pi;lr<=or;lr+=1)nr(lr);var sr=fr.map(function(mr){var En=$t[mr],Mi=rn(En.record,mr),Ti=function(Oi){var Ln=mr+Oi-1,ir=rn($t[Ln].record,Ln),hr=oi(Mi,ir);return hr.bottom-hr.top},Vi=oi(Mi);return Ze.createElement(Mn,{key:mr,data:En,rowKey:Mi,index:mr,style:{top:-Wn+Vi.top},extra:!0,getHeight:Ti})});return sr},cn=Ze.useMemo(function(){return{columnsOffset:dn}},[dn]),qn="".concat(Kt,"-tbody"),ci=Je(["body","wrapper"]),vt={};return li&&(vt.position="sticky",vt.bottom=0,(0,Oe.Z)(li)==="object"&&li.offsetScroll&&(vt.bottom=li.offsetScroll)),Ze.createElement(Ri.Provider,{value:cn},Ze.createElement(ni.Z,{fullHeight:!1,ref:Pt,prefixCls:"".concat(qn,"-virtual"),styles:{horizontalScrollBar:vt},className:qn,height:ke,itemHeight:ht||24,data:$t,itemKey:function(Jn){return rn(Jn.record)},component:ci,scrollWidth:Bn,direction:un,onVirtualScroll:function(Jn){var In,zn=Jn.x;je({currentTarget:(In=Pt.current)===null||In===void 0?void 0:In.nativeElement,scrollLeft:zn})},onScroll:pt,extraRender:jn},function(Un,Jn,In){var zn=rn(Un.record,Jn);return Ze.createElement(Mn,{data:Un,rowKey:zn,index:Jn,style:In.style})}))}),ln=de(ho),rr=ln,Vr=function(Cn,Ut){var je=Ut.ref,ri=Ut.onScroll;return Ze.createElement(rr,{ref:je,data:Cn,onScroll:ri})};function _r(Ht,Cn){var Ut=Ht.data,je=Ht.columns,ri=Ht.scroll,Si=Ht.sticky,$e=Ht.prefixCls,rn=$e===void 0?ki:$e,Wt=Ht.className,Kt=Ht.listItemHeight,Hn=Ht.components,Bn=Ht.onScroll,un=ri||{},On=un.x,li=un.y;typeof On!="number"&&(On=1),typeof li!="number"&&(li=500);var ke=(0,Dn.zX)(function(pt,Pt){return(0,kt.Z)(Hn,pt)||Pt}),ht=(0,Dn.zX)(Bn),Je=Ze.useMemo(function(){return{sticky:Si,scrollY:li,listItemHeight:Kt,getComponent:ke,onScroll:ht}},[Si,li,Kt,ke,ht]);return Ze.createElement(Hi.Provider,{value:Je},Ze.createElement(yn,(0,De.Z)({},Ht,{className:Ct()(Wt,"".concat(rn,"-virtual")),scroll:(0,Re.Z)((0,Re.Z)({},ri),{},{x:On}),components:(0,Re.Z)((0,Re.Z)({},Hn),{},{body:Ut!=null&&Ut.length?Vr:void 0}),columns:je,internalHooks:ve.R,tailor:!0,ref:Cn})))}var Co=Ze.forwardRef(_r);function Qr(Ht){return se(Co,Ht)}var Or=Qr(),ko=null},54451:function(fn,on,we){"use strict";we.d(on,{g:function(){return Ze},v:function(){return at}});var ve=we(89490),Ye=we(39224),dt=we(48736),it=["expandable"],at="RC_TABLE_INTERNAL_COL_DEFINE";function Ze(Ue){var xt=Ue.expandable,nt=(0,Ye.Z)(Ue,it),De;return"expandable"in Ue?De=(0,ve.Z)((0,ve.Z)({},nt),xt):De=nt,De.showExpandColumn===!1&&(De.expandIconColumnIndex=-1),De}},22711:function(fn,on,we){"use strict";we.r(on),we.d(on,{ResizableTextArea:function(){return ot},default:function(){return Lt}});var ve=we(71409),Ye=we(87075),dt=we(89490),it=we(62730),at=we(11036),Ze=we(39224),Ue=we(92310),xt=we.n(Ue),nt=we(36901),De=we(66003),wt=we(30292),Ve=we(18929),ut=we(59301),Ee=we(28788),te=we(29301),ne=we(34280),ue=we(16089),se=`
min-height:0 !important;
max-height:none !important;
height:0 !important;
visibility:hidden !important;
overflow:hidden !important;
position:absolute !important;
z-index:-1000 !important;
top:0 !important;
right:0 !important;
pointer-events: none !important;
`,de=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],pe={},ye;function Ce(Ot){var Nt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,tn=Ot.getAttribute("id")||Ot.getAttribute("data-reactid")||Ot.getAttribute("name");if(Nt&&pe[tn])return pe[tn];var st=window.getComputedStyle(Ot),He=st.getPropertyValue("box-sizing")||st.getPropertyValue("-moz-box-sizing")||st.getPropertyValue("-webkit-box-sizing"),Rt=parseFloat(st.getPropertyValue("padding-bottom"))+parseFloat(st.getPropertyValue("padding-top")),Zt=parseFloat(st.getPropertyValue("border-bottom-width"))+parseFloat(st.getPropertyValue("border-top-width")),_t=de.map(function(jt){return"".concat(jt,":").concat(st.getPropertyValue(jt))}).join(";"),Mt={sizingStyle:_t,paddingSize:Rt,borderSize:Zt,boxSizing:He};return Nt&&tn&&(pe[tn]=Mt),Mt}function ze(Ot){var Nt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,tn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,st=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;ye||(ye=document.createElement("textarea"),ye.setAttribute("tab-index","-1"),ye.setAttribute("aria-hidden","true"),ye.setAttribute("name","hiddenTextarea"),document.body.appendChild(ye)),Ot.getAttribute("wrap")?ye.setAttribute("wrap",Ot.getAttribute("wrap")):ye.removeAttribute("wrap");var He=Ce(Ot,Nt),Rt=He.paddingSize,Zt=He.borderSize,_t=He.boxSizing,Mt=He.sizingStyle;ye.setAttribute("style","".concat(Mt,";").concat(se)),ye.value=Ot.value||Ot.placeholder||"";var jt=void 0,an=void 0,Dn,Dt=ye.scrollHeight;if(_t==="border-box"?Dt+=Zt:_t==="content-box"&&(Dt-=Rt),tn!==null||st!==null){ye.value=" ";var gn=ye.scrollHeight-Rt;tn!==null&&(jt=gn*tn,_t==="border-box"&&(jt=jt+Rt+Zt),Dt=Math.max(jt,Dt)),st!==null&&(an=gn*st,_t==="border-box"&&(an=an+Rt+Zt),Dn=Dt>an?"":"hidden",Dt=Math.min(an,Dt))}var yt={height:Dt,overflowY:Dn,resize:"none"};return jt&&(yt.minHeight=jt),an&&(yt.maxHeight=an),yt}var Te=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Ie=0,Oe=1,Re=2,rt=ut.forwardRef(function(Ot,Nt){var tn=Ot,st=tn.prefixCls,He=tn.defaultValue,Rt=tn.value,Zt=tn.autoSize,_t=tn.onResize,Mt=tn.className,jt=tn.style,an=tn.disabled,Dn=tn.onChange,Dt=tn.onInternalAutoSize,gn=(0,Ze.Z)(tn,Te),yt=(0,Ve.Z)(He,{value:Rt,postState:function(Ji){return Ji!=null?Ji:""}}),Zn=(0,at.Z)(yt,2),vi=Zn[0],We=Zn[1],Fe=function(Ji){We(Ji.target.value),Dn==null||Dn(Ji)},xe=ut.useRef();ut.useImperativeHandle(Nt,function(){return{textArea:xe.current}});var Ne=ut.useMemo(function(){return Zt&&(0,Ee.Z)(Zt)==="object"?[Zt.minRows,Zt.maxRows]:[]},[Zt]),_e=(0,at.Z)(Ne,2),be=_e[0],tt=_e[1],Xt=!!Zt,Bt=function(){try{if(document.activeElement===xe.current){var Ji=xe.current,Zr=Ji.selectionStart,qi=Ji.selectionEnd,ii=Ji.scrollTop;xe.current.setSelectionRange(Zr,qi),xe.current.scrollTop=ii}}catch(so){}},nn=ut.useState(Re),Tt=(0,at.Z)(nn,2),bt=Tt[0],zt=Tt[1],qt=ut.useState(),pn=(0,at.Z)(qt,2),ei=pn[0],wn=pn[1],Fn=function(){zt(Ie)};(0,ne.Z)(function(){Xt&&Fn()},[Rt,be,tt,Xt]),(0,ne.Z)(function(){if(bt===Ie)zt(Oe);else if(bt===Oe){var Gi=ze(xe.current,!1,be,tt);zt(Re),wn(Gi)}else Bt()},[bt]);var Ci=ut.useRef(),$n=function(){ue.Z.cancel(Ci.current)},bi=function(Ji){bt===Re&&(_t==null||_t(Ji),Zt&&($n(),Ci.current=(0,ue.Z)(function(){Fn()})))};ut.useEffect(function(){return $n},[]);var hi=Xt?ei:null,Di=(0,dt.Z)((0,dt.Z)({},jt),hi);return(bt===Ie||bt===Oe)&&(Di.overflowY="hidden",Di.overflowX="hidden"),ut.createElement(te.Z,{onResize:bi,disabled:!(Zt||_t)},ut.createElement("textarea",(0,ve.Z)({},gn,{ref:xe,style:Di,className:xt()(st,Mt,(0,Ye.Z)({},"".concat(st,"-disabled"),an)),disabled:an,value:vi,onChange:Fe})))}),ot=rt,Ct=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],gt=ut.forwardRef(function(Ot,Nt){var tn,st=Ot.defaultValue,He=Ot.value,Rt=Ot.onFocus,Zt=Ot.onBlur,_t=Ot.onChange,Mt=Ot.allowClear,jt=Ot.maxLength,an=Ot.onCompositionStart,Dn=Ot.onCompositionEnd,Dt=Ot.suffix,gn=Ot.prefixCls,yt=gn===void 0?"rc-textarea":gn,Zn=Ot.showCount,vi=Ot.count,We=Ot.className,Fe=Ot.style,xe=Ot.disabled,Ne=Ot.hidden,_e=Ot.classNames,be=Ot.styles,tt=Ot.onResize,Xt=Ot.onClear,Bt=Ot.onPressEnter,nn=Ot.readOnly,Tt=Ot.autoSize,bt=Ot.onKeyDown,zt=(0,Ze.Z)(Ot,Ct),qt=(0,Ve.Z)(st,{value:He,defaultValue:st}),pn=(0,at.Z)(qt,2),ei=pn[0],wn=pn[1],Fn=ei==null?"":String(ei),Ci=ut.useState(!1),$n=(0,at.Z)(Ci,2),bi=$n[0],hi=$n[1],Di=ut.useRef(!1),Gi=ut.useState(null),Ji=(0,at.Z)(Gi,2),Zr=Ji[0],qi=Ji[1],ii=(0,ut.useRef)(null),so=(0,ut.useRef)(null),Kr=function(){var ur;return(ur=so.current)===null||ur===void 0?void 0:ur.textArea},qr=function(){Kr().focus()};(0,ut.useImperativeHandle)(Nt,function(){var Ai;return{resizableTextArea:so.current,focus:qr,blur:function(){Kr().blur()},nativeElement:((Ai=ii.current)===null||Ai===void 0?void 0:Ai.nativeElement)||Kr()}}),(0,ut.useEffect)(function(){hi(function(Ai){return!xe&&Ai})},[xe]);var io=ut.useState(null),Fo=(0,at.Z)(io,2),lo=Fo[0],Ar=Fo[1];ut.useEffect(function(){if(lo){var Ai;(Ai=Kr()).setSelectionRange.apply(Ai,(0,it.Z)(lo))}},[lo]);var ro=(0,De.Z)(vi,Zn),Le=(tn=ro.max)!==null&&tn!==void 0?tn:jt,xn=Number(Le)>0,Qn=ro.strategy(Fn),gi=!!Le&&Qn>Le,yi=function(ur,Tr){var br=Tr;!Di.current&&ro.exceedFormatter&&ro.max&&ro.strategy(Tr)>ro.max&&(br=ro.exceedFormatter(Tr,{max:ro.max}),Tr!==br&&Ar([Kr().selectionStart||0,Kr().selectionEnd||0])),wn(br),(0,wt.rJ)(ur.currentTarget,ur,_t,br)},ti=function(ur){Di.current=!0,an==null||an(ur)},Yi=function(ur){Di.current=!1,yi(ur,ur.currentTarget.value),Dn==null||Dn(ur)},cr=function(ur){yi(ur,ur.target.value)},Sr=function(ur){ur.key==="Enter"&&Bt&&Bt(ur),bt==null||bt(ur)},Jt=function(ur){hi(!0),Rt==null||Rt(ur)},Vt=function(ur){hi(!1),Zt==null||Zt(ur)},It=function(ur){wn(""),qr(),(0,wt.rJ)(Kr(),ur,_t)},Ei=Dt,Ii;ro.show&&(ro.showFormatter?Ii=ro.showFormatter({value:Fn,count:Qn,maxLength:Le}):Ii="".concat(Qn).concat(xn?" / ".concat(Le):""),Ei=ut.createElement(ut.Fragment,null,Ei,ut.createElement("span",{className:xt()("".concat(yt,"-data-count"),_e==null?void 0:_e.count),style:be==null?void 0:be.count},Ii)));var ji=function(ur){var Tr;tt==null||tt(ur),(Tr=Kr())!==null&&Tr!==void 0&&Tr.style.height&&qi(!0)},Xn=!Tt&&!Zn&&!Mt;return ut.createElement(nt.BaseInput,{ref:ii,value:Fn,allowClear:Mt,handleReset:It,suffix:Ei,prefixCls:yt,classNames:(0,dt.Z)((0,dt.Z)({},_e),{},{affixWrapper:xt()(_e==null?void 0:_e.affixWrapper,(0,Ye.Z)((0,Ye.Z)({},"".concat(yt,"-show-count"),Zn),"".concat(yt,"-textarea-allow-clear"),Mt))}),disabled:xe,focused:bi,className:xt()(We,gi&&"".concat(yt,"-out-of-range")),style:(0,dt.Z)((0,dt.Z)({},Fe),Zr&&!Xn?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Ii=="string"?Ii:void 0}},hidden:Ne,readOnly:nn,onClear:Xt},ut.createElement(ot,(0,ve.Z)({},zt,{autoSize:Tt,maxLength:jt,onKeyDown:Sr,onChange:cr,onFocus:Jt,onBlur:Vt,onCompositionStart:ti,onCompositionEnd:Yi,className:xt()(_e==null?void 0:_e.textarea),style:(0,dt.Z)((0,dt.Z)({},be==null?void 0:be.textarea),{},{resize:Fe==null?void 0:Fe.resize}),disabled:xe,prefixCls:yt,onResize:ji,ref:so,readOnly:nn})))}),kt=gt,Lt=kt},639:function(fn,on,we){"use strict";we.d(on,{Z:function(){return pe}});var ve=we(71409),Ye=we(87075),dt=we(89490),it=we(11036),at=we(39224),Ze=we(59301),Ue=we(92310),xt=we.n(Ue),nt=we(26112),De=we(30699),wt=function(Ce){for(var ze=Ce.prefixCls,Te=Ce.level,Ie=Ce.isStart,Oe=Ce.isEnd,Re="".concat(ze,"-indent-unit"),rt=[],ot=0;ot<Te;ot+=1)rt.push(Ze.createElement("span",{key:ot,className:xt()(Re,(0,Ye.Z)((0,Ye.Z)({},"".concat(Re,"-start"),Ie[ot]),"".concat(Re,"-end"),Oe[ot]))}));return Ze.createElement("span",{"aria-hidden":"true",className:"".concat(ze,"-indent")},rt)},Ve=Ze.memo(wt),ut=we(65065),Ee=we(34061),te=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],ne="open",ue="close",se="---",de=function(Ce){var ze,Te,Ie,Oe=Ce.eventKey,Re=Ce.className,rt=Ce.style,ot=Ce.dragOver,Ct=Ce.dragOverGapTop,gt=Ce.dragOverGapBottom,kt=Ce.isLeaf,Lt=Ce.isStart,Ot=Ce.isEnd,Nt=Ce.expanded,tn=Ce.selected,st=Ce.checked,He=Ce.halfChecked,Rt=Ce.loading,Zt=Ce.domRef,_t=Ce.active,Mt=Ce.data,jt=Ce.onMouseMove,an=Ce.selectable,Dn=(0,at.Z)(Ce,te),Dt=Ze.useContext(De.k),gn=Ze.useContext(De.y),yt=Ze.useRef(null),Zn=Ze.useState(!1),vi=(0,it.Z)(Zn,2),We=vi[0],Fe=vi[1],xe=!!(Dt.disabled||Ce.disabled||(ze=gn.nodeDisabled)!==null&&ze!==void 0&&ze.call(gn,Mt)),Ne=Ze.useMemo(function(){return!Dt.checkable||Ce.checkable===!1?!1:Dt.checkable},[Dt.checkable,Ce.checkable]),_e=function(Qn){xe||Dt.onNodeSelect(Qn,(0,Ee.F)(Ce))},be=function(Qn){xe||!Ne||Ce.disableCheckbox||Dt.onNodeCheck(Qn,(0,Ee.F)(Ce),!st)},tt=Ze.useMemo(function(){return typeof an=="boolean"?an:Dt.selectable},[an,Dt.selectable]),Xt=function(Qn){Dt.onNodeClick(Qn,(0,Ee.F)(Ce)),tt?_e(Qn):be(Qn)},Bt=function(Qn){Dt.onNodeDoubleClick(Qn,(0,Ee.F)(Ce))},nn=function(Qn){Dt.onNodeMouseEnter(Qn,(0,Ee.F)(Ce))},Tt=function(Qn){Dt.onNodeMouseLeave(Qn,(0,Ee.F)(Ce))},bt=function(Qn){Dt.onNodeContextMenu(Qn,(0,Ee.F)(Ce))},zt=Ze.useMemo(function(){return!!(Dt.draggable&&(!Dt.draggable.nodeDraggable||Dt.draggable.nodeDraggable(Mt)))},[Dt.draggable,Mt]),qt=function(Qn){Qn.stopPropagation(),Fe(!0),Dt.onNodeDragStart(Qn,Ce);try{Qn.dataTransfer.setData("text/plain","")}catch(gi){}},pn=function(Qn){Qn.preventDefault(),Qn.stopPropagation(),Dt.onNodeDragEnter(Qn,Ce)},ei=function(Qn){Qn.preventDefault(),Qn.stopPropagation(),Dt.onNodeDragOver(Qn,Ce)},wn=function(Qn){Qn.stopPropagation(),Dt.onNodeDragLeave(Qn,Ce)},Fn=function(Qn){Qn.stopPropagation(),Fe(!1),Dt.onNodeDragEnd(Qn,Ce)},Ci=function(Qn){Qn.preventDefault(),Qn.stopPropagation(),Fe(!1),Dt.onNodeDrop(Qn,Ce)},$n=function(Qn){Rt||Dt.onNodeExpand(Qn,(0,Ee.F)(Ce))},bi=Ze.useMemo(function(){var xn=(0,ut.Z)(Dt.keyEntities,Oe)||{},Qn=xn.children;return!!(Qn||[]).length},[Dt.keyEntities,Oe]),hi=Ze.useMemo(function(){return kt===!1?!1:kt||!Dt.loadData&&!bi||Dt.loadData&&Ce.loaded&&!bi},[kt,Dt.loadData,bi,Ce.loaded]);Ze.useEffect(function(){Rt||typeof Dt.loadData=="function"&&Nt&&!hi&&!Ce.loaded&&Dt.onNodeLoad((0,Ee.F)(Ce))},[Rt,Dt.loadData,Dt.onNodeLoad,Nt,hi,Ce]);var Di=Ze.useMemo(function(){var xn;return(xn=Dt.draggable)!==null&&xn!==void 0&&xn.icon?Ze.createElement("span",{className:"".concat(Dt.prefixCls,"-draggable-icon")},Dt.draggable.icon):null},[Dt.draggable]),Gi=function(Qn){var gi=Ce.switcherIcon||Dt.switcherIcon;return typeof gi=="function"?gi((0,dt.Z)((0,dt.Z)({},Ce),{},{isLeaf:Qn})):gi},Ji=function(){if(hi){var Qn=Gi(!0);return Qn!==!1?Ze.createElement("span",{className:xt()("".concat(Dt.prefixCls,"-switcher"),"".concat(Dt.prefixCls,"-switcher-noop"))},Qn):null}var gi=Gi(!1);return gi!==!1?Ze.createElement("span",{onClick:$n,className:xt()("".concat(Dt.prefixCls,"-switcher"),"".concat(Dt.prefixCls,"-switcher_").concat(Nt?ne:ue))},gi):null},Zr=Ze.useMemo(function(){if(!Ne)return null;var xn=typeof Ne!="boolean"?Ne:null;return Ze.createElement("span",{className:xt()("".concat(Dt.prefixCls,"-checkbox"),(0,Ye.Z)((0,Ye.Z)((0,Ye.Z)({},"".concat(Dt.prefixCls,"-checkbox-checked"),st),"".concat(Dt.prefixCls,"-checkbox-indeterminate"),!st&&He),"".concat(Dt.prefixCls,"-checkbox-disabled"),xe||Ce.disableCheckbox)),onClick:be,role:"checkbox","aria-checked":He?"mixed":st,"aria-disabled":xe||Ce.disableCheckbox,"aria-label":"Select ".concat(typeof Ce.title=="string"?Ce.title:"tree node")},xn)},[Ne,st,He,xe,Ce.disableCheckbox,Ce.title]),qi=Ze.useMemo(function(){return hi?null:Nt?ne:ue},[hi,Nt]),ii=Ze.useMemo(function(){return Ze.createElement("span",{className:xt()("".concat(Dt.prefixCls,"-iconEle"),"".concat(Dt.prefixCls,"-icon__").concat(qi||"docu"),(0,Ye.Z)({},"".concat(Dt.prefixCls,"-icon_loading"),Rt))})},[Dt.prefixCls,qi,Rt]),so=Ze.useMemo(function(){var xn=!!Dt.draggable,Qn=!Ce.disabled&&xn&&Dt.dragOverNodeKey===Oe;return Qn?Dt.dropIndicatorRender({dropPosition:Dt.dropPosition,dropLevelOffset:Dt.dropLevelOffset,indent:Dt.indent,prefixCls:Dt.prefixCls,direction:Dt.direction}):null},[Dt.dropPosition,Dt.dropLevelOffset,Dt.indent,Dt.prefixCls,Dt.direction,Dt.draggable,Dt.dragOverNodeKey,Dt.dropIndicatorRender]),Kr=Ze.useMemo(function(){var xn=Ce.title,Qn=xn===void 0?se:xn,gi="".concat(Dt.prefixCls,"-node-content-wrapper"),yi;if(Dt.showIcon){var ti=Ce.icon||Dt.icon;yi=ti?Ze.createElement("span",{className:xt()("".concat(Dt.prefixCls,"-iconEle"),"".concat(Dt.prefixCls,"-icon__customize"))},typeof ti=="function"?ti(Ce):ti):ii}else Dt.loadData&&Rt&&(yi=ii);var Yi;return typeof Qn=="function"?Yi=Qn(Mt):Dt.titleRender?Yi=Dt.titleRender(Mt):Yi=Qn,Ze.createElement("span",{ref:yt,title:typeof Qn=="string"?Qn:"",className:xt()(gi,"".concat(gi,"-").concat(qi||"normal"),(0,Ye.Z)({},"".concat(Dt.prefixCls,"-node-selected"),!xe&&(tn||We))),onMouseEnter:nn,onMouseLeave:Tt,onContextMenu:bt,onClick:Xt,onDoubleClick:Bt},yi,Ze.createElement("span",{className:"".concat(Dt.prefixCls,"-title")},Yi),so)},[Dt.prefixCls,Dt.showIcon,Ce,Dt.icon,ii,Dt.titleRender,Mt,qi,nn,Tt,bt,Xt,Bt]),qr=(0,nt.Z)(Dn,{aria:!0,data:!0}),io=(0,ut.Z)(Dt.keyEntities,Oe)||{},Fo=io.level,lo=Ot[Ot.length-1],Ar=!xe&&zt,ro=Dt.draggingNodeKey===Oe,Le=an!==void 0?{"aria-selected":!!an}:void 0;return Ze.createElement("div",(0,ve.Z)({ref:Zt,role:"treeitem","aria-expanded":kt?void 0:Nt,className:xt()(Re,"".concat(Dt.prefixCls,"-treenode"),(Ie={},(0,Ye.Z)((0,Ye.Z)((0,Ye.Z)((0,Ye.Z)((0,Ye.Z)((0,Ye.Z)((0,Ye.Z)((0,Ye.Z)((0,Ye.Z)((0,Ye.Z)(Ie,"".concat(Dt.prefixCls,"-treenode-disabled"),xe),"".concat(Dt.prefixCls,"-treenode-switcher-").concat(Nt?"open":"close"),!kt),"".concat(Dt.prefixCls,"-treenode-checkbox-checked"),st),"".concat(Dt.prefixCls,"-treenode-checkbox-indeterminate"),He),"".concat(Dt.prefixCls,"-treenode-selected"),tn),"".concat(Dt.prefixCls,"-treenode-loading"),Rt),"".concat(Dt.prefixCls,"-treenode-active"),_t),"".concat(Dt.prefixCls,"-treenode-leaf-last"),lo),"".concat(Dt.prefixCls,"-treenode-draggable"),zt),"dragging",ro),(0,Ye.Z)((0,Ye.Z)((0,Ye.Z)((0,Ye.Z)((0,Ye.Z)((0,Ye.Z)((0,Ye.Z)(Ie,"drop-target",Dt.dropTargetKey===Oe),"drop-container",Dt.dropContainerKey===Oe),"drag-over",!xe&&ot),"drag-over-gap-top",!xe&&Ct),"drag-over-gap-bottom",!xe&&gt),"filter-node",(Te=Dt.filterTreeNode)===null||Te===void 0?void 0:Te.call(Dt,(0,Ee.F)(Ce))),"".concat(Dt.prefixCls,"-treenode-leaf"),hi))),style:rt,draggable:Ar,onDragStart:Ar?qt:void 0,onDragEnter:zt?pn:void 0,onDragOver:zt?ei:void 0,onDragLeave:zt?wn:void 0,onDrop:zt?Ci:void 0,onDragEnd:zt?Fn:void 0,onMouseMove:jt},Le,qr),Ze.createElement(Ve,{prefixCls:Dt.prefixCls,level:Fo,isStart:Lt,isEnd:Ot}),Di,Ji(),Zr,Kr)};de.isTreeNode=1;var pe=de},30699:function(fn,on,we){"use strict";we.d(on,{k:function(){return Ye},y:function(){return dt}});var ve=we(59301),Ye=ve.createContext(null),dt=ve.createContext({})},62379:function(fn,on,we){"use strict";we.d(on,{OF:function(){return Oe.Z},y6:function(){return ue.y},ZP:function(){return xe}});var ve=we(71409),Ye=we(28788),dt=we(89490),it=we(62730),at=we(16552),Ze=we(19210),Ue=we(90264),xt=we(46654),nt=we(37205),De=we(87075),wt=we(92310),Ve=we.n(wt),ut=we(10228),Ee=we(26112),te=we(48736),ne=we(59301),ue=we(30699),se=function(_e){var be=_e.dropPosition,tt=_e.dropLevelOffset,Xt=_e.indent,Bt={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(be){case-1:Bt.top=0,Bt.left=-tt*Xt;break;case 1:Bt.bottom=0,Bt.left=-tt*Xt;break;case 0:Bt.bottom=0,Bt.left=Xt;break}return ne.createElement("div",{style:Bt})},de=se;function pe(Ne){if(Ne==null)throw new TypeError("Cannot destructure "+Ne)}var ye=we(11036),Ce=we(39224),ze=we(34280),Te=we(65283),Ie=we(77900),Oe=we(639);function Re(Ne,_e){var be=ne.useState(!1),tt=(0,ye.Z)(be,2),Xt=tt[0],Bt=tt[1];(0,ze.Z)(function(){if(Xt)return Ne(),function(){_e()}},[Xt]),(0,ze.Z)(function(){return Bt(!0),function(){Bt(!1)}},[])}var rt=Re,ot=we(34061),Ct=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],gt=ne.forwardRef(function(Ne,_e){var be=Ne.className,tt=Ne.style,Xt=Ne.motion,Bt=Ne.motionNodes,nn=Ne.motionType,Tt=Ne.onMotionStart,bt=Ne.onMotionEnd,zt=Ne.active,qt=Ne.treeNodeRequiredProps,pn=(0,Ce.Z)(Ne,Ct),ei=ne.useState(!0),wn=(0,ye.Z)(ei,2),Fn=wn[0],Ci=wn[1],$n=ne.useContext(ue.k),bi=$n.prefixCls,hi=Bt&&nn!=="hide";(0,ze.Z)(function(){Bt&&hi!==Fn&&Ci(hi)},[Bt]);var Di=function(){Bt&&Tt()},Gi=ne.useRef(!1),Ji=function(){Bt&&!Gi.current&&(Gi.current=!0,bt())};rt(Di,Ji);var Zr=function(ii){hi===ii&&Ji()};return Bt?ne.createElement(Ie.default,(0,ve.Z)({ref:_e,visible:Fn},Xt,{motionAppear:nn==="show",onVisibleChanged:Zr}),function(qi,ii){var so=qi.className,Kr=qi.style;return ne.createElement("div",{ref:ii,className:Ve()("".concat(bi,"-treenode-motion"),so),style:Kr},Bt.map(function(qr){var io=Object.assign({},(pe(qr.data),qr.data)),Fo=qr.title,lo=qr.key,Ar=qr.isStart,ro=qr.isEnd;delete io.children;var Le=(0,ot.H8)(lo,qt);return ne.createElement(Oe.Z,(0,ve.Z)({},io,Le,{title:Fo,active:zt,data:qr.data,key:lo,isStart:Ar,isEnd:ro}))}))}):ne.createElement(Oe.Z,(0,ve.Z)({domRef:_e,className:be,style:tt},pn,{active:zt}))}),kt=gt;function Lt(){var Ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],_e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],be=Ne.length,tt=_e.length;if(Math.abs(be-tt)!==1)return{add:!1,key:null};function Xt(Bt,nn){var Tt=new Map;Bt.forEach(function(zt){Tt.set(zt,!0)});var bt=nn.filter(function(zt){return!Tt.has(zt)});return bt.length===1?bt[0]:null}return be<tt?{add:!0,key:Xt(Ne,_e)}:{add:!1,key:Xt(_e,Ne)}}function Ot(Ne,_e,be){var tt=Ne.findIndex(function(Tt){return Tt.key===be}),Xt=Ne[tt+1],Bt=_e.findIndex(function(Tt){return Tt.key===be});if(Xt){var nn=_e.findIndex(function(Tt){return Tt.key===Xt.key});return _e.slice(Bt+1,nn)}return _e.slice(Bt+1)}var Nt=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","scrollWidth","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],tn={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},st=function(){},He="RC_TREE_MOTION_".concat(Math.random()),Rt={key:He},Zt={key:He,level:0,index:0,pos:"0",node:Rt,nodes:[Rt]},_t={parent:null,children:[],pos:Zt.pos,data:Rt,title:null,key:He,isStart:[],isEnd:[]};function Mt(Ne,_e,be,tt){return _e===!1||!be?Ne:Ne.slice(0,Math.ceil(be/tt)+1)}function jt(Ne){var _e=Ne.key,be=Ne.pos;return(0,ot.km)(_e,be)}function an(Ne){for(var _e=String(Ne.data.key),be=Ne;be.parent;)be=be.parent,_e="".concat(be.data.key," > ").concat(_e);return _e}var Dn=ne.forwardRef(function(Ne,_e){var be=Ne.prefixCls,tt=Ne.data,Xt=Ne.selectable,Bt=Ne.checkable,nn=Ne.expandedKeys,Tt=Ne.selectedKeys,bt=Ne.checkedKeys,zt=Ne.loadedKeys,qt=Ne.loadingKeys,pn=Ne.halfCheckedKeys,ei=Ne.keyEntities,wn=Ne.disabled,Fn=Ne.dragging,Ci=Ne.dragOverNodeKey,$n=Ne.dropPosition,bi=Ne.motion,hi=Ne.height,Di=Ne.itemHeight,Gi=Ne.virtual,Ji=Ne.scrollWidth,Zr=Ne.focusable,qi=Ne.activeItem,ii=Ne.focused,so=Ne.tabIndex,Kr=Ne.onKeyDown,qr=Ne.onFocus,io=Ne.onBlur,Fo=Ne.onActiveChange,lo=Ne.onListChangeStart,Ar=Ne.onListChangeEnd,ro=(0,Ce.Z)(Ne,Nt),Le=ne.useRef(null),xn=ne.useRef(null);ne.useImperativeHandle(_e,function(){return{scrollTo:function(_n){Le.current.scrollTo(_n)},getIndentWidth:function(){return xn.current.offsetWidth}}});var Qn=ne.useState(nn),gi=(0,ye.Z)(Qn,2),yi=gi[0],ti=gi[1],Yi=ne.useState(tt),cr=(0,ye.Z)(Yi,2),Sr=cr[0],Jt=cr[1],Vt=ne.useState(tt),It=(0,ye.Z)(Vt,2),Ei=It[0],Ii=It[1],ji=ne.useState([]),Xn=(0,ye.Z)(ji,2),Ai=Xn[0],ur=Xn[1],Tr=ne.useState(null),br=(0,ye.Z)(Tr,2),et=br[0],Ft=br[1],Tn=ne.useRef(tt);Tn.current=tt;function Yn(){var kn=Tn.current;Jt(kn),Ii(kn),ur([]),Ft(null),Ar()}(0,ze.Z)(function(){ti(nn);var kn=Lt(yi,nn);if(kn.key!==null)if(kn.add){var _n=Sr.findIndex(function(gr){var dr=gr.key;return dr===kn.key}),xi=Mt(Ot(Sr,tt,kn.key),Gi,hi,Di),mi=Sr.slice();mi.splice(_n+1,0,_t),Ii(mi),ur(xi),Ft("show")}else{var sn=tt.findIndex(function(gr){var dr=gr.key;return dr===kn.key}),ki=Mt(Ot(tt,Sr,kn.key),Gi,hi,Di),Cr=tt.slice();Cr.splice(sn+1,0,_t),Ii(Cr),ur(ki),Ft("hide")}else Sr!==tt&&(Jt(tt),Ii(tt))},[nn,tt]),ne.useEffect(function(){Fn||Yn()},[Fn]);var en=bi?Ei:tt,Gn={expandedKeys:nn,selectedKeys:Tt,loadedKeys:zt,loadingKeys:qt,checkedKeys:bt,halfCheckedKeys:pn,dragOverNodeKey:Ci,dropPosition:$n,keyEntities:ei};return ne.createElement(ne.Fragment,null,ii&&qi&&ne.createElement("span",{style:tn,"aria-live":"assertive"},an(qi)),ne.createElement("div",null,ne.createElement("input",{style:tn,disabled:Zr===!1||wn,tabIndex:Zr!==!1?so:null,onKeyDown:Kr,onFocus:qr,onBlur:io,value:"",onChange:st,"aria-label":"for screen reader"})),ne.createElement("div",{className:"".concat(be,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},ne.createElement("div",{className:"".concat(be,"-indent")},ne.createElement("div",{ref:xn,className:"".concat(be,"-indent-unit")}))),ne.createElement(Te.Z,(0,ve.Z)({},ro,{data:en,itemKey:jt,height:hi,fullHeight:!1,virtual:Gi,itemHeight:Di,scrollWidth:Ji,prefixCls:"".concat(be,"-list"),ref:Le,role:"tree",onVisibleChange:function(_n){_n.every(function(xi){return jt(xi)!==He})&&Yn()}}),function(kn){var _n=kn.pos,xi=Object.assign({},(pe(kn.data),kn.data)),mi=kn.title,sn=kn.key,ki=kn.isStart,Cr=kn.isEnd,gr=(0,ot.km)(sn,_n);delete xi.key,delete xi.children;var dr=(0,ot.H8)(gr,Gn);return ne.createElement(kt,(0,ve.Z)({},xi,dr,{title:mi,active:!!qi&&sn===qi.key,pos:_n,data:kn.data,isStart:ki,isEnd:Cr,motion:bi,motionNodes:sn===He?Ai:null,motionType:et,onMotionStart:lo,onMotionEnd:Yn,treeNodeRequiredProps:Gn,onMouseMove:function(){Fo(null)}}))}))}),Dt=Dn,gn=we(82661),yt=we(34643),Zn=we(65065),vi=10,We=function(Ne){(0,xt.Z)(be,Ne);var _e=(0,nt.Z)(be);function be(){var tt;(0,at.Z)(this,be);for(var Xt=arguments.length,Bt=new Array(Xt),nn=0;nn<Xt;nn++)Bt[nn]=arguments[nn];return tt=_e.call.apply(_e,[this].concat(Bt)),(0,De.Z)((0,Ue.Z)(tt),"destroyed",!1),(0,De.Z)((0,Ue.Z)(tt),"delayedDragEnterLogic",void 0),(0,De.Z)((0,Ue.Z)(tt),"loadingRetryTimes",{}),(0,De.Z)((0,Ue.Z)(tt),"state",{keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null,fieldNames:(0,ot.w$)()}),(0,De.Z)((0,Ue.Z)(tt),"dragStartMousePosition",null),(0,De.Z)((0,Ue.Z)(tt),"dragNodeProps",null),(0,De.Z)((0,Ue.Z)(tt),"currentMouseOverDroppableNodeKey",null),(0,De.Z)((0,Ue.Z)(tt),"listRef",ne.createRef()),(0,De.Z)((0,Ue.Z)(tt),"onNodeDragStart",function(Tt,bt){var zt=tt.state,qt=zt.expandedKeys,pn=zt.keyEntities,ei=tt.props.onDragStart,wn=bt.eventKey;tt.dragNodeProps=bt,tt.dragStartMousePosition={x:Tt.clientX,y:Tt.clientY};var Fn=(0,gn._5)(qt,wn);tt.setState({draggingNodeKey:wn,dragChildrenKeys:(0,gn.wA)(wn,pn),indent:tt.listRef.current.getIndentWidth()}),tt.setExpandedKeys(Fn),window.addEventListener("dragend",tt.onWindowDragEnd),ei==null||ei({event:Tt,node:(0,ot.F)(bt)})}),(0,De.Z)((0,Ue.Z)(tt),"onNodeDragEnter",function(Tt,bt){var zt=tt.state,qt=zt.expandedKeys,pn=zt.keyEntities,ei=zt.dragChildrenKeys,wn=zt.flattenNodes,Fn=zt.indent,Ci=tt.props,$n=Ci.onDragEnter,bi=Ci.onExpand,hi=Ci.allowDrop,Di=Ci.direction,Gi=bt.pos,Ji=bt.eventKey;if(tt.currentMouseOverDroppableNodeKey!==Ji&&(tt.currentMouseOverDroppableNodeKey=Ji),!tt.dragNodeProps){tt.resetDragState();return}var Zr=(0,gn.OM)(Tt,tt.dragNodeProps,bt,Fn,tt.dragStartMousePosition,hi,wn,pn,qt,Di),qi=Zr.dropPosition,ii=Zr.dropLevelOffset,so=Zr.dropTargetKey,Kr=Zr.dropContainerKey,qr=Zr.dropTargetPos,io=Zr.dropAllowed,Fo=Zr.dragOverNodeKey;if(ei.includes(so)||!io){tt.resetDragState();return}if(tt.delayedDragEnterLogic||(tt.delayedDragEnterLogic={}),Object.keys(tt.delayedDragEnterLogic).forEach(function(lo){clearTimeout(tt.delayedDragEnterLogic[lo])}),tt.dragNodeProps.eventKey!==bt.eventKey&&(Tt.persist(),tt.delayedDragEnterLogic[Gi]=window.setTimeout(function(){if(tt.state.draggingNodeKey!==null){var lo=(0,it.Z)(qt),Ar=(0,Zn.Z)(pn,bt.eventKey);Ar&&(Ar.children||[]).length&&(lo=(0,gn.L0)(qt,bt.eventKey)),tt.props.hasOwnProperty("expandedKeys")||tt.setExpandedKeys(lo),bi==null||bi(lo,{node:(0,ot.F)(bt),expanded:!0,nativeEvent:Tt.nativeEvent})}},800)),tt.dragNodeProps.eventKey===so&&ii===0){tt.resetDragState();return}tt.setState({dragOverNodeKey:Fo,dropPosition:qi,dropLevelOffset:ii,dropTargetKey:so,dropContainerKey:Kr,dropTargetPos:qr,dropAllowed:io}),$n==null||$n({event:Tt,node:(0,ot.F)(bt),expandedKeys:qt})}),(0,De.Z)((0,Ue.Z)(tt),"onNodeDragOver",function(Tt,bt){var zt=tt.state,qt=zt.dragChildrenKeys,pn=zt.flattenNodes,ei=zt.keyEntities,wn=zt.expandedKeys,Fn=zt.indent,Ci=tt.props,$n=Ci.onDragOver,bi=Ci.allowDrop,hi=Ci.direction;if(tt.dragNodeProps){var Di=(0,gn.OM)(Tt,tt.dragNodeProps,bt,Fn,tt.dragStartMousePosition,bi,pn,ei,wn,hi),Gi=Di.dropPosition,Ji=Di.dropLevelOffset,Zr=Di.dropTargetKey,qi=Di.dropContainerKey,ii=Di.dropTargetPos,so=Di.dropAllowed,Kr=Di.dragOverNodeKey;qt.includes(Zr)||!so||(tt.dragNodeProps.eventKey===Zr&&Ji===0?tt.state.dropPosition===null&&tt.state.dropLevelOffset===null&&tt.state.dropTargetKey===null&&tt.state.dropContainerKey===null&&tt.state.dropTargetPos===null&&tt.state.dropAllowed===!1&&tt.state.dragOverNodeKey===null||tt.resetDragState():Gi===tt.state.dropPosition&&Ji===tt.state.dropLevelOffset&&Zr===tt.state.dropTargetKey&&qi===tt.state.dropContainerKey&&ii===tt.state.dropTargetPos&&so===tt.state.dropAllowed&&Kr===tt.state.dragOverNodeKey||tt.setState({dropPosition:Gi,dropLevelOffset:Ji,dropTargetKey:Zr,dropContainerKey:qi,dropTargetPos:ii,dropAllowed:so,dragOverNodeKey:Kr}),$n==null||$n({event:Tt,node:(0,ot.F)(bt)}))}}),(0,De.Z)((0,Ue.Z)(tt),"onNodeDragLeave",function(Tt,bt){tt.currentMouseOverDroppableNodeKey===bt.eventKey&&!Tt.currentTarget.contains(Tt.relatedTarget)&&(tt.resetDragState(),tt.currentMouseOverDroppableNodeKey=null);var zt=tt.props.onDragLeave;zt==null||zt({event:Tt,node:(0,ot.F)(bt)})}),(0,De.Z)((0,Ue.Z)(tt),"onWindowDragEnd",function(Tt){tt.onNodeDragEnd(Tt,null,!0),window.removeEventListener("dragend",tt.onWindowDragEnd)}),(0,De.Z)((0,Ue.Z)(tt),"onNodeDragEnd",function(Tt,bt){var zt=tt.props.onDragEnd;tt.setState({dragOverNodeKey:null}),tt.cleanDragState(),zt==null||zt({event:Tt,node:(0,ot.F)(bt)}),tt.dragNodeProps=null,window.removeEventListener("dragend",tt.onWindowDragEnd)}),(0,De.Z)((0,Ue.Z)(tt),"onNodeDrop",function(Tt,bt){var zt,qt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,pn=tt.state,ei=pn.dragChildrenKeys,wn=pn.dropPosition,Fn=pn.dropTargetKey,Ci=pn.dropTargetPos,$n=pn.dropAllowed;if($n){var bi=tt.props.onDrop;if(tt.setState({dragOverNodeKey:null}),tt.cleanDragState(),Fn!==null){var hi=(0,dt.Z)((0,dt.Z)({},(0,ot.H8)(Fn,tt.getTreeNodeRequiredProps())),{},{active:((zt=tt.getActiveItem())===null||zt===void 0?void 0:zt.key)===Fn,data:(0,Zn.Z)(tt.state.keyEntities,Fn).node}),Di=ei.includes(Fn);(0,te.ZP)(!Di,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var Gi=(0,gn.yx)(Ci),Ji={event:Tt,node:(0,ot.F)(hi),dragNode:tt.dragNodeProps?(0,ot.F)(tt.dragNodeProps):null,dragNodesKeys:[tt.dragNodeProps.eventKey].concat(ei),dropToGap:wn!==0,dropPosition:wn+Number(Gi[Gi.length-1])};qt||bi==null||bi(Ji),tt.dragNodeProps=null}}}),(0,De.Z)((0,Ue.Z)(tt),"cleanDragState",function(){var Tt=tt.state.draggingNodeKey;Tt!==null&&tt.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),tt.dragStartMousePosition=null,tt.currentMouseOverDroppableNodeKey=null}),(0,De.Z)((0,Ue.Z)(tt),"triggerExpandActionExpand",function(Tt,bt){var zt=tt.state,qt=zt.expandedKeys,pn=zt.flattenNodes,ei=bt.expanded,wn=bt.key,Fn=bt.isLeaf;if(!(Fn||Tt.shiftKey||Tt.metaKey||Tt.ctrlKey)){var Ci=pn.filter(function(bi){return bi.key===wn})[0],$n=(0,ot.F)((0,dt.Z)((0,dt.Z)({},(0,ot.H8)(wn,tt.getTreeNodeRequiredProps())),{},{data:Ci.data}));tt.setExpandedKeys(ei?(0,gn._5)(qt,wn):(0,gn.L0)(qt,wn)),tt.onNodeExpand(Tt,$n)}}),(0,De.Z)((0,Ue.Z)(tt),"onNodeClick",function(Tt,bt){var zt=tt.props,qt=zt.onClick,pn=zt.expandAction;pn==="click"&&tt.triggerExpandActionExpand(Tt,bt),qt==null||qt(Tt,bt)}),(0,De.Z)((0,Ue.Z)(tt),"onNodeDoubleClick",function(Tt,bt){var zt=tt.props,qt=zt.onDoubleClick,pn=zt.expandAction;pn==="doubleClick"&&tt.triggerExpandActionExpand(Tt,bt),qt==null||qt(Tt,bt)}),(0,De.Z)((0,Ue.Z)(tt),"onNodeSelect",function(Tt,bt){var zt=tt.state.selectedKeys,qt=tt.state,pn=qt.keyEntities,ei=qt.fieldNames,wn=tt.props,Fn=wn.onSelect,Ci=wn.multiple,$n=bt.selected,bi=bt[ei.key],hi=!$n;hi?Ci?zt=(0,gn.L0)(zt,bi):zt=[bi]:zt=(0,gn._5)(zt,bi);var Di=zt.map(function(Gi){var Ji=(0,Zn.Z)(pn,Gi);return Ji?Ji.node:null}).filter(Boolean);tt.setUncontrolledState({selectedKeys:zt}),Fn==null||Fn(zt,{event:"select",selected:hi,node:bt,selectedNodes:Di,nativeEvent:Tt.nativeEvent})}),(0,De.Z)((0,Ue.Z)(tt),"onNodeCheck",function(Tt,bt,zt){var qt=tt.state,pn=qt.keyEntities,ei=qt.checkedKeys,wn=qt.halfCheckedKeys,Fn=tt.props,Ci=Fn.checkStrictly,$n=Fn.onCheck,bi=bt.key,hi,Di={event:"check",node:bt,checked:zt,nativeEvent:Tt.nativeEvent};if(Ci){var Gi=zt?(0,gn.L0)(ei,bi):(0,gn._5)(ei,bi),Ji=(0,gn._5)(wn,bi);hi={checked:Gi,halfChecked:Ji},Di.checkedNodes=Gi.map(function(qr){return(0,Zn.Z)(pn,qr)}).filter(Boolean).map(function(qr){return qr.node}),tt.setUncontrolledState({checkedKeys:Gi})}else{var Zr=(0,yt.S)([].concat((0,it.Z)(ei),[bi]),!0,pn),qi=Zr.checkedKeys,ii=Zr.halfCheckedKeys;if(!zt){var so=new Set(qi);so.delete(bi);var Kr=(0,yt.S)(Array.from(so),{checked:!1,halfCheckedKeys:ii},pn);qi=Kr.checkedKeys,ii=Kr.halfCheckedKeys}hi=qi,Di.checkedNodes=[],Di.checkedNodesPositions=[],Di.halfCheckedKeys=ii,qi.forEach(function(qr){var io=(0,Zn.Z)(pn,qr);if(io){var Fo=io.node,lo=io.pos;Di.checkedNodes.push(Fo),Di.checkedNodesPositions.push({node:Fo,pos:lo})}}),tt.setUncontrolledState({checkedKeys:qi},!1,{halfCheckedKeys:ii})}$n==null||$n(hi,Di)}),(0,De.Z)((0,Ue.Z)(tt),"onNodeLoad",function(Tt){var bt,zt=Tt.key,qt=tt.state.keyEntities,pn=(0,Zn.Z)(qt,zt);if(!(pn!=null&&(bt=pn.children)!==null&&bt!==void 0&&bt.length)){var ei=new Promise(function(wn,Fn){tt.setState(function(Ci){var $n=Ci.loadedKeys,bi=$n===void 0?[]:$n,hi=Ci.loadingKeys,Di=hi===void 0?[]:hi,Gi=tt.props,Ji=Gi.loadData,Zr=Gi.onLoad;if(!Ji||bi.includes(zt)||Di.includes(zt))return null;var qi=Ji(Tt);return qi.then(function(){var ii=tt.state.loadedKeys,so=(0,gn.L0)(ii,zt);Zr==null||Zr(so,{event:"load",node:Tt}),tt.setUncontrolledState({loadedKeys:so}),tt.setState(function(Kr){return{loadingKeys:(0,gn._5)(Kr.loadingKeys,zt)}}),wn()}).catch(function(ii){if(tt.setState(function(Kr){return{loadingKeys:(0,gn._5)(Kr.loadingKeys,zt)}}),tt.loadingRetryTimes[zt]=(tt.loadingRetryTimes[zt]||0)+1,tt.loadingRetryTimes[zt]>=vi){var so=tt.state.loadedKeys;(0,te.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),tt.setUncontrolledState({loadedKeys:(0,gn.L0)(so,zt)}),wn()}Fn(ii)}),{loadingKeys:(0,gn.L0)(Di,zt)}})});return ei.catch(function(){}),ei}}),(0,De.Z)((0,Ue.Z)(tt),"onNodeMouseEnter",function(Tt,bt){var zt=tt.props.onMouseEnter;zt==null||zt({event:Tt,node:bt})}),(0,De.Z)((0,Ue.Z)(tt),"onNodeMouseLeave",function(Tt,bt){var zt=tt.props.onMouseLeave;zt==null||zt({event:Tt,node:bt})}),(0,De.Z)((0,Ue.Z)(tt),"onNodeContextMenu",function(Tt,bt){var zt=tt.props.onRightClick;zt&&(Tt.preventDefault(),zt({event:Tt,node:bt}))}),(0,De.Z)((0,Ue.Z)(tt),"onFocus",function(){var Tt=tt.props.onFocus;tt.setState({focused:!0});for(var bt=arguments.length,zt=new Array(bt),qt=0;qt<bt;qt++)zt[qt]=arguments[qt];Tt==null||Tt.apply(void 0,zt)}),(0,De.Z)((0,Ue.Z)(tt),"onBlur",function(){var Tt=tt.props.onBlur;tt.setState({focused:!1}),tt.onActiveChange(null);for(var bt=arguments.length,zt=new Array(bt),qt=0;qt<bt;qt++)zt[qt]=arguments[qt];Tt==null||Tt.apply(void 0,zt)}),(0,De.Z)((0,Ue.Z)(tt),"getTreeNodeRequiredProps",function(){var Tt=tt.state,bt=Tt.expandedKeys,zt=Tt.selectedKeys,qt=Tt.loadedKeys,pn=Tt.loadingKeys,ei=Tt.checkedKeys,wn=Tt.halfCheckedKeys,Fn=Tt.dragOverNodeKey,Ci=Tt.dropPosition,$n=Tt.keyEntities;return{expandedKeys:bt||[],selectedKeys:zt||[],loadedKeys:qt||[],loadingKeys:pn||[],checkedKeys:ei||[],halfCheckedKeys:wn||[],dragOverNodeKey:Fn,dropPosition:Ci,keyEntities:$n}}),(0,De.Z)((0,Ue.Z)(tt),"setExpandedKeys",function(Tt){var bt=tt.state,zt=bt.treeData,qt=bt.fieldNames,pn=(0,ot.oH)(zt,Tt,qt);tt.setUncontrolledState({expandedKeys:Tt,flattenNodes:pn},!0)}),(0,De.Z)((0,Ue.Z)(tt),"onNodeExpand",function(Tt,bt){var zt=tt.state.expandedKeys,qt=tt.state,pn=qt.listChanging,ei=qt.fieldNames,wn=tt.props,Fn=wn.onExpand,Ci=wn.loadData,$n=bt.expanded,bi=bt[ei.key];if(!pn){var hi=zt.includes(bi),Di=!$n;if((0,te.ZP)($n&&hi||!$n&&!hi,"Expand state not sync with index check"),zt=Di?(0,gn.L0)(zt,bi):(0,gn._5)(zt,bi),tt.setExpandedKeys(zt),Fn==null||Fn(zt,{node:bt,expanded:Di,nativeEvent:Tt.nativeEvent}),Di&&Ci){var Gi=tt.onNodeLoad(bt);Gi&&Gi.then(function(){var Ji=(0,ot.oH)(tt.state.treeData,zt,ei);tt.setUncontrolledState({flattenNodes:Ji})}).catch(function(){var Ji=tt.state.expandedKeys,Zr=(0,gn._5)(Ji,bi);tt.setExpandedKeys(Zr)})}}}),(0,De.Z)((0,Ue.Z)(tt),"onListChangeStart",function(){tt.setUncontrolledState({listChanging:!0})}),(0,De.Z)((0,Ue.Z)(tt),"onListChangeEnd",function(){setTimeout(function(){tt.setUncontrolledState({listChanging:!1})})}),(0,De.Z)((0,Ue.Z)(tt),"onActiveChange",function(Tt){var bt=tt.state.activeKey,zt=tt.props,qt=zt.onActiveChange,pn=zt.itemScrollOffset,ei=pn===void 0?0:pn;bt!==Tt&&(tt.setState({activeKey:Tt}),Tt!==null&&tt.scrollTo({key:Tt,offset:ei}),qt==null||qt(Tt))}),(0,De.Z)((0,Ue.Z)(tt),"getActiveItem",function(){var Tt=tt.state,bt=Tt.activeKey,zt=Tt.flattenNodes;return bt===null?null:zt.find(function(qt){var pn=qt.key;return pn===bt})||null}),(0,De.Z)((0,Ue.Z)(tt),"offsetActiveKey",function(Tt){var bt=tt.state,zt=bt.flattenNodes,qt=bt.activeKey,pn=zt.findIndex(function(Fn){var Ci=Fn.key;return Ci===qt});pn===-1&&Tt<0&&(pn=zt.length),pn=(pn+Tt+zt.length)%zt.length;var ei=zt[pn];if(ei){var wn=ei.key;tt.onActiveChange(wn)}else tt.onActiveChange(null)}),(0,De.Z)((0,Ue.Z)(tt),"onKeyDown",function(Tt){var bt=tt.state,zt=bt.activeKey,qt=bt.expandedKeys,pn=bt.checkedKeys,ei=bt.fieldNames,wn=tt.props,Fn=wn.onKeyDown,Ci=wn.checkable,$n=wn.selectable;switch(Tt.which){case ut.Z.UP:{tt.offsetActiveKey(-1),Tt.preventDefault();break}case ut.Z.DOWN:{tt.offsetActiveKey(1),Tt.preventDefault();break}}var bi=tt.getActiveItem();if(bi&&bi.data){var hi=tt.getTreeNodeRequiredProps(),Di=bi.data.isLeaf===!1||!!(bi.data[ei.children]||[]).length,Gi=(0,ot.F)((0,dt.Z)((0,dt.Z)({},(0,ot.H8)(zt,hi)),{},{data:bi.data,active:!0}));switch(Tt.which){case ut.Z.LEFT:{Di&&qt.includes(zt)?tt.onNodeExpand({},Gi):bi.parent&&tt.onActiveChange(bi.parent.key),Tt.preventDefault();break}case ut.Z.RIGHT:{Di&&!qt.includes(zt)?tt.onNodeExpand({},Gi):bi.children&&bi.children.length&&tt.onActiveChange(bi.children[0].key),Tt.preventDefault();break}case ut.Z.ENTER:case ut.Z.SPACE:{Ci&&!Gi.disabled&&Gi.checkable!==!1&&!Gi.disableCheckbox?tt.onNodeCheck({},Gi,!pn.includes(zt)):!Ci&&$n&&!Gi.disabled&&Gi.selectable!==!1&&tt.onNodeSelect({},Gi);break}}}Fn==null||Fn(Tt)}),(0,De.Z)((0,Ue.Z)(tt),"setUncontrolledState",function(Tt){var bt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,zt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!tt.destroyed){var qt=!1,pn=!0,ei={};Object.keys(Tt).forEach(function(wn){if(tt.props.hasOwnProperty(wn)){pn=!1;return}qt=!0,ei[wn]=Tt[wn]}),qt&&(!bt||pn)&&tt.setState((0,dt.Z)((0,dt.Z)({},ei),zt))}}),(0,De.Z)((0,Ue.Z)(tt),"scrollTo",function(Tt){tt.listRef.current.scrollTo(Tt)}),tt}return(0,Ze.Z)(be,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var Xt=this.props,Bt=Xt.activeKey,nn=Xt.itemScrollOffset,Tt=nn===void 0?0:nn;Bt!==void 0&&Bt!==this.state.activeKey&&(this.setState({activeKey:Bt}),Bt!==null&&this.scrollTo({key:Bt,offset:Tt}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var Xt=this.state,Bt=Xt.focused,nn=Xt.flattenNodes,Tt=Xt.keyEntities,bt=Xt.draggingNodeKey,zt=Xt.activeKey,qt=Xt.dropLevelOffset,pn=Xt.dropContainerKey,ei=Xt.dropTargetKey,wn=Xt.dropPosition,Fn=Xt.dragOverNodeKey,Ci=Xt.indent,$n=this.props,bi=$n.prefixCls,hi=$n.className,Di=$n.style,Gi=$n.showLine,Ji=$n.focusable,Zr=$n.tabIndex,qi=Zr===void 0?0:Zr,ii=$n.selectable,so=$n.showIcon,Kr=$n.icon,qr=$n.switcherIcon,io=$n.draggable,Fo=$n.checkable,lo=$n.checkStrictly,Ar=$n.disabled,ro=$n.motion,Le=$n.loadData,xn=$n.filterTreeNode,Qn=$n.height,gi=$n.itemHeight,yi=$n.scrollWidth,ti=$n.virtual,Yi=$n.titleRender,cr=$n.dropIndicatorRender,Sr=$n.onContextMenu,Jt=$n.onScroll,Vt=$n.direction,It=$n.rootClassName,Ei=$n.rootStyle,Ii=(0,Ee.Z)(this.props,{aria:!0,data:!0}),ji;io&&((0,Ye.Z)(io)==="object"?ji=io:typeof io=="function"?ji={nodeDraggable:io}:ji={});var Xn={prefixCls:bi,selectable:ii,showIcon:so,icon:Kr,switcherIcon:qr,draggable:ji,draggingNodeKey:bt,checkable:Fo,checkStrictly:lo,disabled:Ar,keyEntities:Tt,dropLevelOffset:qt,dropContainerKey:pn,dropTargetKey:ei,dropPosition:wn,dragOverNodeKey:Fn,indent:Ci,direction:Vt,dropIndicatorRender:cr,loadData:Le,filterTreeNode:xn,titleRender:Yi,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop};return ne.createElement(ue.k.Provider,{value:Xn},ne.createElement("div",{className:Ve()(bi,hi,It,(0,De.Z)((0,De.Z)((0,De.Z)({},"".concat(bi,"-show-line"),Gi),"".concat(bi,"-focused"),Bt),"".concat(bi,"-active-focused"),zt!==null)),style:Ei},ne.createElement(Dt,(0,ve.Z)({ref:this.listRef,prefixCls:bi,style:Di,data:nn,disabled:Ar,selectable:ii,checkable:!!Fo,motion:ro,dragging:bt!==null,height:Qn,itemHeight:gi,virtual:ti,focusable:Ji,focused:Bt,tabIndex:qi,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Sr,onScroll:Jt,scrollWidth:yi},this.getTreeNodeRequiredProps(),Ii))))}}],[{key:"getDerivedStateFromProps",value:function(Xt,Bt){var nn=Bt.prevProps,Tt={prevProps:Xt};function bt(qi){return!nn&&Xt.hasOwnProperty(qi)||nn&&nn[qi]!==Xt[qi]}var zt,qt=Bt.fieldNames;if(bt("fieldNames")&&(qt=(0,ot.w$)(Xt.fieldNames),Tt.fieldNames=qt),bt("treeData")?zt=Xt.treeData:bt("children")&&((0,te.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),zt=(0,ot.zn)(Xt.children)),zt){Tt.treeData=zt;var pn=(0,ot.I8)(zt,{fieldNames:qt});Tt.keyEntities=(0,dt.Z)((0,De.Z)({},He,Zt),pn.keyEntities)}var ei=Tt.keyEntities||Bt.keyEntities;if(bt("expandedKeys")||nn&&bt("autoExpandParent"))Tt.expandedKeys=Xt.autoExpandParent||!nn&&Xt.defaultExpandParent?(0,gn.r7)(Xt.expandedKeys,ei):Xt.expandedKeys;else if(!nn&&Xt.defaultExpandAll){var wn=(0,dt.Z)({},ei);delete wn[He];var Fn=[];Object.keys(wn).forEach(function(qi){var ii=wn[qi];ii.children&&ii.children.length&&Fn.push(ii.key)}),Tt.expandedKeys=Fn}else!nn&&Xt.defaultExpandedKeys&&(Tt.expandedKeys=Xt.autoExpandParent||Xt.defaultExpandParent?(0,gn.r7)(Xt.defaultExpandedKeys,ei):Xt.defaultExpandedKeys);if(Tt.expandedKeys||delete Tt.expandedKeys,zt||Tt.expandedKeys){var Ci=(0,ot.oH)(zt||Bt.treeData,Tt.expandedKeys||Bt.expandedKeys,qt);Tt.flattenNodes=Ci}if(Xt.selectable&&(bt("selectedKeys")?Tt.selectedKeys=(0,gn.BT)(Xt.selectedKeys,Xt):!nn&&Xt.defaultSelectedKeys&&(Tt.selectedKeys=(0,gn.BT)(Xt.defaultSelectedKeys,Xt))),Xt.checkable){var $n;if(bt("checkedKeys")?$n=(0,gn.E6)(Xt.checkedKeys)||{}:!nn&&Xt.defaultCheckedKeys?$n=(0,gn.E6)(Xt.defaultCheckedKeys)||{}:zt&&($n=(0,gn.E6)(Xt.checkedKeys)||{checkedKeys:Bt.checkedKeys,halfCheckedKeys:Bt.halfCheckedKeys}),$n){var bi=$n,hi=bi.checkedKeys,Di=hi===void 0?[]:hi,Gi=bi.halfCheckedKeys,Ji=Gi===void 0?[]:Gi;if(!Xt.checkStrictly){var Zr=(0,yt.S)(Di,!0,ei);Di=Zr.checkedKeys,Ji=Zr.halfCheckedKeys}Tt.checkedKeys=Di,Tt.halfCheckedKeys=Ji}}return bt("loadedKeys")&&(Tt.loadedKeys=Xt.loadedKeys),Tt}}]),be}(ne.Component);(0,De.Z)(We,"defaultProps",{prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:de,allowDrop:function(){return!0},expandAction:!1}),(0,De.Z)(We,"TreeNode",Oe.Z);var Fe=We,xe=Fe},82661:function(fn,on,we){"use strict";we.d(on,{BT:function(){return ne},E6:function(){return de},L0:function(){return De},OM:function(){return te},_5:function(){return nt},r7:function(){return pe},wA:function(){return Ve},yx:function(){return wt}});var ve=we(62730),Ye=we(28788),dt=we(48736),it=we(59301),at=we(639),Ze=we(65065),Ue=we(34061),xt=null;function nt(ye,Ce){if(!ye)return[];var ze=ye.slice(),Te=ze.indexOf(Ce);return Te>=0&&ze.splice(Te,1),ze}function De(ye,Ce){var ze=(ye||[]).slice();return ze.indexOf(Ce)===-1&&ze.push(Ce),ze}function wt(ye){return ye.split("-")}function Ve(ye,Ce){var ze=[],Te=(0,Ze.Z)(Ce,ye);function Ie(){var Oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];Oe.forEach(function(Re){var rt=Re.key,ot=Re.children;ze.push(rt),Ie(ot)})}return Ie(Te.children),ze}function ut(ye){if(ye.parent){var Ce=wt(ye.pos);return Number(Ce[Ce.length-1])===ye.parent.children.length-1}return!1}function Ee(ye){var Ce=wt(ye.pos);return Number(Ce[Ce.length-1])===0}function te(ye,Ce,ze,Te,Ie,Oe,Re,rt,ot,Ct){var gt,kt=ye.clientX,Lt=ye.clientY,Ot=ye.target.getBoundingClientRect(),Nt=Ot.top,tn=Ot.height,st=(Ct==="rtl"?-1:1)*(((Ie==null?void 0:Ie.x)||0)-kt),He=(st-12)/Te,Rt=ot.filter(function(xe){var Ne;return(Ne=rt[xe])===null||Ne===void 0||(Ne=Ne.children)===null||Ne===void 0?void 0:Ne.length}),Zt=(0,Ze.Z)(rt,ze.eventKey);if(Lt<Nt+tn/2){var _t=Re.findIndex(function(xe){return xe.key===Zt.key}),Mt=_t<=0?0:_t-1,jt=Re[Mt].key;Zt=(0,Ze.Z)(rt,jt)}var an=Zt.key,Dn=Zt,Dt=Zt.key,gn=0,yt=0;if(!Rt.includes(an))for(var Zn=0;Zn<He&&ut(Zt);Zn+=1)Zt=Zt.parent,yt+=1;var vi=Ce.data,We=Zt.node,Fe=!0;return Ee(Zt)&&Zt.level===0&&Lt<Nt+tn/2&&Oe({dragNode:vi,dropNode:We,dropPosition:-1})&&Zt.key===ze.eventKey?gn=-1:(Dn.children||[]).length&&Rt.includes(Dt)?Oe({dragNode:vi,dropNode:We,dropPosition:0})?gn=0:Fe=!1:yt===0?He>-1.5?Oe({dragNode:vi,dropNode:We,dropPosition:1})?gn=1:Fe=!1:Oe({dragNode:vi,dropNode:We,dropPosition:0})?gn=0:Oe({dragNode:vi,dropNode:We,dropPosition:1})?gn=1:Fe=!1:Oe({dragNode:vi,dropNode:We,dropPosition:1})?gn=1:Fe=!1,{dropPosition:gn,dropLevelOffset:yt,dropTargetKey:Zt.key,dropTargetPos:Zt.pos,dragOverNodeKey:Dt,dropContainerKey:gn===0?null:((gt=Zt.parent)===null||gt===void 0?void 0:gt.key)||null,dropAllowed:Fe}}function ne(ye,Ce){if(ye){var ze=Ce.multiple;return ze?ye.slice():ye.length?[ye[0]]:ye}}var ue=function(Ce){return Ce};function se(ye,Ce){if(!ye)return[];var ze=Ce||{},Te=ze.processProps,Ie=Te===void 0?ue:Te,Oe=Array.isArray(ye)?ye:[ye];return Oe.map(function(Re){var rt=Re.children,ot=_objectWithoutProperties(Re,xt),Ct=se(rt,Ce);return React.createElement(TreeNode,_extends({key:ot.key},Ie(ot)),Ct)})}function de(ye){if(!ye)return null;var Ce;if(Array.isArray(ye))Ce={checkedKeys:ye,halfCheckedKeys:void 0};else if((0,Ye.Z)(ye)==="object")Ce={checkedKeys:ye.checked||void 0,halfCheckedKeys:ye.halfChecked||void 0};else return(0,dt.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return Ce}function pe(ye,Ce){var ze=new Set;function Te(Ie){if(!ze.has(Ie)){var Oe=(0,Ze.Z)(Ce,Ie);if(Oe){ze.add(Ie);var Re=Oe.parent,rt=Oe.node;rt.disabled||Re&&Te(Re.key)}}}return(ye||[]).forEach(function(Ie){Te(Ie)}),(0,ve.Z)(ze)}},34643:function(fn,on,we){"use strict";we.d(on,{S:function(){return Ue}});var ve=we(48736),Ye=we(65065);function dt(xt,nt){var De=new Set;return xt.forEach(function(wt){nt.has(wt)||De.add(wt)}),De}function it(xt){var nt=xt||{},De=nt.disabled,wt=nt.disableCheckbox,Ve=nt.checkable;return!!(De||wt)||Ve===!1}function at(xt,nt,De,wt){for(var Ve=new Set(xt),ut=new Set,Ee=0;Ee<=De;Ee+=1){var te=nt.get(Ee)||new Set;te.forEach(function(de){var pe=de.key,ye=de.node,Ce=de.children,ze=Ce===void 0?[]:Ce;Ve.has(pe)&&!wt(ye)&&ze.filter(function(Te){return!wt(Te.node)}).forEach(function(Te){Ve.add(Te.key)})})}for(var ne=new Set,ue=De;ue>=0;ue-=1){var se=nt.get(ue)||new Set;se.forEach(function(de){var pe=de.parent,ye=de.node;if(!(wt(ye)||!de.parent||ne.has(de.parent.key))){if(wt(de.parent.node)){ne.add(pe.key);return}var Ce=!0,ze=!1;(pe.children||[]).filter(function(Te){return!wt(Te.node)}).forEach(function(Te){var Ie=Te.key,Oe=Ve.has(Ie);Ce&&!Oe&&(Ce=!1),!ze&&(Oe||ut.has(Ie))&&(ze=!0)}),Ce&&Ve.add(pe.key),ze&&ut.add(pe.key),ne.add(pe.key)}})}return{checkedKeys:Array.from(Ve),halfCheckedKeys:Array.from(dt(ut,Ve))}}function Ze(xt,nt,De,wt,Ve){for(var ut=new Set(xt),Ee=new Set(nt),te=0;te<=wt;te+=1){var ne=De.get(te)||new Set;ne.forEach(function(pe){var ye=pe.key,Ce=pe.node,ze=pe.children,Te=ze===void 0?[]:ze;!ut.has(ye)&&!Ee.has(ye)&&!Ve(Ce)&&Te.filter(function(Ie){return!Ve(Ie.node)}).forEach(function(Ie){ut.delete(Ie.key)})})}Ee=new Set;for(var ue=new Set,se=wt;se>=0;se-=1){var de=De.get(se)||new Set;de.forEach(function(pe){var ye=pe.parent,Ce=pe.node;if(!(Ve(Ce)||!pe.parent||ue.has(pe.parent.key))){if(Ve(pe.parent.node)){ue.add(ye.key);return}var ze=!0,Te=!1;(ye.children||[]).filter(function(Ie){return!Ve(Ie.node)}).forEach(function(Ie){var Oe=Ie.key,Re=ut.has(Oe);ze&&!Re&&(ze=!1),!Te&&(Re||Ee.has(Oe))&&(Te=!0)}),ze||ut.delete(ye.key),Te&&Ee.add(ye.key),ue.add(ye.key)}})}return{checkedKeys:Array.from(ut),halfCheckedKeys:Array.from(dt(Ee,ut))}}function Ue(xt,nt,De,wt){var Ve=[],ut;wt?ut=wt:ut=it;var Ee=new Set(xt.filter(function(se){var de=!!(0,Ye.Z)(De,se);return de||Ve.push(se),de})),te=new Map,ne=0;Object.keys(De).forEach(function(se){var de=De[se],pe=de.level,ye=te.get(pe);ye||(ye=new Set,te.set(pe,ye)),ye.add(de),ne=Math.max(ne,pe)}),(0,ve.ZP)(!Ve.length,"Tree missing follow keys: ".concat(Ve.slice(0,100).map(function(se){return"'".concat(se,"'")}).join(", ")));var ue;return nt===!0?ue=at(Ee,te,ne,ut):ue=Ze(Ee,nt.halfCheckedKeys,te,ne,ut),ue}},65065:function(fn,on,we){"use strict";we.d(on,{Z:function(){return ve}});function ve(Ye,dt){return Ye[dt]}},34061:function(fn,on,we){"use strict";we.d(on,{F:function(){return pe},H8:function(){return de},I8:function(){return se},km:function(){return Ve},oH:function(){return ne},w$:function(){return ut},zn:function(){return te}});var ve=we(28788),Ye=we(62730),dt=we(89490),it=we(39224),at=we(11592),Ze=we(2738),Ue=we(48736),xt=we(65065),nt=["children"];function De(ye,Ce){return"".concat(ye,"-").concat(Ce)}function wt(ye){return ye&&ye.type&&ye.type.isTreeNode}function Ve(ye,Ce){return ye!=null?ye:Ce}function ut(ye){var Ce=ye||{},ze=Ce.title,Te=Ce._title,Ie=Ce.key,Oe=Ce.children,Re=ze||"title";return{title:Re,_title:Te||[Re],key:Ie||"key",children:Oe||"children"}}function Ee(ye,Ce){var ze=new Map;function Te(Ie){var Oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(Ie||[]).forEach(function(Re){var rt=Re[Ce.key],ot=Re[Ce.children];warning(rt!=null,"Tree node must have a certain key: [".concat(Oe).concat(rt,"]"));var Ct=String(rt);warning(!ze.has(Ct)||rt===null||rt===void 0,"Same 'key' exist in the Tree: ".concat(Ct)),ze.set(Ct,!0),Te(ot,"".concat(Oe).concat(Ct," > "))})}Te(ye)}function te(ye){function Ce(ze){var Te=(0,at.Z)(ze);return Te.map(function(Ie){if(!wt(Ie))return(0,Ue.ZP)(!Ie,"Tree/TreeNode can only accept TreeNode as children."),null;var Oe=Ie.key,Re=Ie.props,rt=Re.children,ot=(0,it.Z)(Re,nt),Ct=(0,dt.Z)({key:Oe},ot),gt=Ce(rt);return gt.length&&(Ct.children=gt),Ct}).filter(function(Ie){return Ie})}return Ce(ye)}function ne(ye,Ce,ze){var Te=ut(ze),Ie=Te._title,Oe=Te.key,Re=Te.children,rt=new Set(Ce===!0?[]:Ce),ot=[];function Ct(gt){var kt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return gt.map(function(Lt,Ot){for(var Nt=De(kt?kt.pos:"0",Ot),tn=Ve(Lt[Oe],Nt),st,He=0;He<Ie.length;He+=1){var Rt=Ie[He];if(Lt[Rt]!==void 0){st=Lt[Rt];break}}var Zt=Object.assign((0,Ze.Z)(Lt,[].concat((0,Ye.Z)(Ie),[Oe,Re])),{title:st,key:tn,parent:kt,pos:Nt,children:null,data:Lt,isStart:[].concat((0,Ye.Z)(kt?kt.isStart:[]),[Ot===0]),isEnd:[].concat((0,Ye.Z)(kt?kt.isEnd:[]),[Ot===gt.length-1])});return ot.push(Zt),Ce===!0||rt.has(tn)?Zt.children=Ct(Lt[Re]||[],Zt):Zt.children=[],Zt})}return Ct(ye),ot}function ue(ye,Ce,ze){var Te={};(0,ve.Z)(ze)==="object"?Te=ze:Te={externalGetKey:ze},Te=Te||{};var Ie=Te,Oe=Ie.childrenPropName,Re=Ie.externalGetKey,rt=Ie.fieldNames,ot=ut(rt),Ct=ot.key,gt=ot.children,kt=Oe||gt,Lt;Re?typeof Re=="string"?Lt=function(tn){return tn[Re]}:typeof Re=="function"&&(Lt=function(tn){return Re(tn)}):Lt=function(tn,st){return Ve(tn[Ct],st)};function Ot(Nt,tn,st,He){var Rt=Nt?Nt[kt]:ye,Zt=Nt?De(st.pos,tn):"0",_t=Nt?[].concat((0,Ye.Z)(He),[Nt]):[];if(Nt){var Mt=Lt(Nt,Zt),jt={node:Nt,index:tn,pos:Zt,key:Mt,parentPos:st.node?st.pos:null,level:st.level+1,nodes:_t};Ce(jt)}Rt&&Rt.forEach(function(an,Dn){Ot(an,Dn,{node:Nt,pos:Zt,level:st?st.level+1:-1},_t)})}Ot(null)}function se(ye){var Ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ze=Ce.initWrapper,Te=Ce.processEntity,Ie=Ce.onProcessFinished,Oe=Ce.externalGetKey,Re=Ce.childrenPropName,rt=Ce.fieldNames,ot=arguments.length>2?arguments[2]:void 0,Ct=Oe||ot,gt={},kt={},Lt={posEntities:gt,keyEntities:kt};return ze&&(Lt=ze(Lt)||Lt),ue(ye,function(Ot){var Nt=Ot.node,tn=Ot.index,st=Ot.pos,He=Ot.key,Rt=Ot.parentPos,Zt=Ot.level,_t=Ot.nodes,Mt={node:Nt,nodes:_t,index:tn,key:He,pos:st,level:Zt},jt=Ve(He,st);gt[st]=Mt,kt[jt]=Mt,Mt.parent=gt[Rt],Mt.parent&&(Mt.parent.children=Mt.parent.children||[],Mt.parent.children.push(Mt)),Te&&Te(Mt,Lt)},{externalGetKey:Ct,childrenPropName:Re,fieldNames:rt}),Ie&&Ie(Lt),Lt}function de(ye,Ce){var ze=Ce.expandedKeys,Te=Ce.selectedKeys,Ie=Ce.loadedKeys,Oe=Ce.loadingKeys,Re=Ce.checkedKeys,rt=Ce.halfCheckedKeys,ot=Ce.dragOverNodeKey,Ct=Ce.dropPosition,gt=Ce.keyEntities,kt=(0,xt.Z)(gt,ye),Lt={eventKey:ye,expanded:ze.indexOf(ye)!==-1,selected:Te.indexOf(ye)!==-1,loaded:Ie.indexOf(ye)!==-1,loading:Oe.indexOf(ye)!==-1,checked:Re.indexOf(ye)!==-1,halfChecked:rt.indexOf(ye)!==-1,pos:String(kt?kt.pos:""),dragOver:ot===ye&&Ct===0,dragOverGapTop:ot===ye&&Ct===-1,dragOverGapBottom:ot===ye&&Ct===1};return Lt}function pe(ye){var Ce=ye.data,ze=ye.expanded,Te=ye.selected,Ie=ye.checked,Oe=ye.loaded,Re=ye.loading,rt=ye.halfChecked,ot=ye.dragOver,Ct=ye.dragOverGapTop,gt=ye.dragOverGapBottom,kt=ye.pos,Lt=ye.active,Ot=ye.eventKey,Nt=(0,dt.Z)((0,dt.Z)({},Ce),{},{expanded:ze,selected:Te,checked:Ie,loaded:Oe,loading:Re,halfChecked:rt,dragOver:ot,dragOverGapTop:Ct,dragOverGapBottom:gt,pos:kt,active:Lt,key:Ot});return"props"in Nt||Object.defineProperty(Nt,"props",{get:function(){return(0,Ue.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),ye}}),Nt}},90472:function(fn,on,we){"use strict";we.d(on,{Z:function(){return Ot}});var ve=we(71409),Ye=we(16552),dt=we(19210),it=we(90264),at=we(46654),Ze=we(37205),Ue=we(87075),xt=we(59301),nt=we(89490),De=we(39224),wt=we(28788),Ve=we(58676),ut=we(93195),Ee=we(62730),te=we(92310),ne=we.n(te),ue=we(26112),se=we(48736),de=function(Nt,tn){if(Nt&&tn){var st=Array.isArray(tn)?tn:tn.split(","),He=Nt.name||"",Rt=Nt.type||"",Zt=Rt.replace(/\/.*$/,"");return st.some(function(_t){var Mt=_t.trim();if(/^\*(\/\*)?$/.test(_t))return!0;if(Mt.charAt(0)==="."){var jt=He.toLowerCase(),an=Mt.toLowerCase(),Dn=[an];return(an===".jpg"||an===".jpeg")&&(Dn=[".jpg",".jpeg"]),Dn.some(function(Dt){return jt.endsWith(Dt)})}return/\/\*$/.test(Mt)?Zt===Mt.replace(/\/.*$/,""):Rt===Mt?!0:/^\w+$/.test(Mt)?((0,se.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(Mt,"'.Skip for check.")),!0):!1})}return!0};function pe(Nt,tn){var st="cannot ".concat(Nt.method," ").concat(Nt.action," ").concat(tn.status,"'"),He=new Error(st);return He.status=tn.status,He.method=Nt.method,He.url=Nt.action,He}function ye(Nt){var tn=Nt.responseText||Nt.response;if(!tn)return tn;try{return JSON.parse(tn)}catch(st){return tn}}function Ce(Nt){var tn=new XMLHttpRequest;Nt.onProgress&&tn.upload&&(tn.upload.onprogress=function(Zt){Zt.total>0&&(Zt.percent=Zt.loaded/Zt.total*100),Nt.onProgress(Zt)});var st=new FormData;Nt.data&&Object.keys(Nt.data).forEach(function(Rt){var Zt=Nt.data[Rt];if(Array.isArray(Zt)){Zt.forEach(function(_t){st.append("".concat(Rt,"[]"),_t)});return}st.append(Rt,Zt)}),Nt.file instanceof Blob?st.append(Nt.filename,Nt.file,Nt.file.name):st.append(Nt.filename,Nt.file),tn.onerror=function(Zt){Nt.onError(Zt)},tn.onload=function(){return tn.status<200||tn.status>=300?Nt.onError(pe(Nt,tn),ye(tn)):Nt.onSuccess(ye(tn),tn)},tn.open(Nt.method,Nt.action,!0),Nt.withCredentials&&"withCredentials"in tn&&(tn.withCredentials=!0);var He=Nt.headers||{};return He["X-Requested-With"]!==null&&tn.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(He).forEach(function(Rt){He[Rt]!==null&&tn.setRequestHeader(Rt,He[Rt])}),tn.send(st),{abort:function(){tn.abort()}}}var ze=function(){var Nt=(0,ut.Z)((0,Ve.Z)().mark(function tn(st,He){var Rt,Zt,_t,Mt,jt,an,Dn,Dt;return(0,Ve.Z)().wrap(function(yt){for(;;)switch(yt.prev=yt.next){case 0:an=function(){return an=(0,ut.Z)((0,Ve.Z)().mark(function vi(We){return(0,Ve.Z)().wrap(function(xe){for(;;)switch(xe.prev=xe.next){case 0:return xe.abrupt("return",new Promise(function(Ne){We.file(function(_e){He(_e)?(We.fullPath&&!_e.webkitRelativePath&&(Object.defineProperties(_e,{webkitRelativePath:{writable:!0}}),_e.webkitRelativePath=We.fullPath.replace(/^\//,""),Object.defineProperties(_e,{webkitRelativePath:{writable:!1}})),Ne(_e)):Ne(null)})}));case 1:case"end":return xe.stop()}},vi)})),an.apply(this,arguments)},jt=function(vi){return an.apply(this,arguments)},Mt=function(){return Mt=(0,ut.Z)((0,Ve.Z)().mark(function vi(We){var Fe,xe,Ne,_e,be;return(0,Ve.Z)().wrap(function(Xt){for(;;)switch(Xt.prev=Xt.next){case 0:Fe=We.createReader(),xe=[];case 2:return Xt.next=5,new Promise(function(Bt){Fe.readEntries(Bt,function(){return Bt([])})});case 5:if(Ne=Xt.sent,_e=Ne.length,_e){Xt.next=9;break}return Xt.abrupt("break",12);case 9:for(be=0;be<_e;be++)xe.push(Ne[be]);Xt.next=2;break;case 12:return Xt.abrupt("return",xe);case 13:case"end":return Xt.stop()}},vi)})),Mt.apply(this,arguments)},_t=function(vi){return Mt.apply(this,arguments)},Rt=[],Zt=[],st.forEach(function(Zn){return Zt.push(Zn.webkitGetAsEntry())}),Dn=function(){var Zn=(0,ut.Z)((0,Ve.Z)().mark(function vi(We,Fe){var xe,Ne;return(0,Ve.Z)().wrap(function(be){for(;;)switch(be.prev=be.next){case 0:if(We){be.next=2;break}return be.abrupt("return");case 2:if(We.path=Fe||"",!We.isFile){be.next=10;break}return be.next=6,jt(We);case 6:xe=be.sent,xe&&Rt.push(xe),be.next=15;break;case 10:if(!We.isDirectory){be.next=15;break}return be.next=13,_t(We);case 13:Ne=be.sent,Zt.push.apply(Zt,(0,Ee.Z)(Ne));case 15:case"end":return be.stop()}},vi)}));return function(We,Fe){return Zn.apply(this,arguments)}}(),Dt=0;case 9:if(!(Dt<Zt.length)){yt.next=15;break}return yt.next=12,Dn(Zt[Dt]);case 12:Dt++,yt.next=9;break;case 15:return yt.abrupt("return",Rt);case 16:case"end":return yt.stop()}},tn)}));return function(st,He){return Nt.apply(this,arguments)}}(),Te=ze,Ie=+new Date,Oe=0;function Re(){return"rc-upload-".concat(Ie,"-").concat(++Oe)}var rt=["component","prefixCls","className","classNames","disabled","id","name","style","styles","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave","hasControlInside"],ot=function(Nt){(0,at.Z)(st,Nt);var tn=(0,Ze.Z)(st);function st(){var He;(0,Ye.Z)(this,st);for(var Rt=arguments.length,Zt=new Array(Rt),_t=0;_t<Rt;_t++)Zt[_t]=arguments[_t];return He=tn.call.apply(tn,[this].concat(Zt)),(0,Ue.Z)((0,it.Z)(He),"state",{uid:Re()}),(0,Ue.Z)((0,it.Z)(He),"reqs",{}),(0,Ue.Z)((0,it.Z)(He),"fileInput",void 0),(0,Ue.Z)((0,it.Z)(He),"_isMounted",void 0),(0,Ue.Z)((0,it.Z)(He),"onChange",function(Mt){var jt=He.props,an=jt.accept,Dn=jt.directory,Dt=Mt.target.files,gn=(0,Ee.Z)(Dt).filter(function(yt){return!Dn||de(yt,an)});He.uploadFiles(gn),He.reset()}),(0,Ue.Z)((0,it.Z)(He),"onClick",function(Mt){var jt=He.fileInput;if(jt){var an=Mt.target,Dn=He.props.onClick;if(an&&an.tagName==="BUTTON"){var Dt=jt.parentNode;Dt.focus(),an.blur()}jt.click(),Dn&&Dn(Mt)}}),(0,Ue.Z)((0,it.Z)(He),"onKeyDown",function(Mt){Mt.key==="Enter"&&He.onClick(Mt)}),(0,Ue.Z)((0,it.Z)(He),"onFileDrop",function(){var Mt=(0,ut.Z)((0,Ve.Z)().mark(function jt(an){var Dn,Dt,gn;return(0,Ve.Z)().wrap(function(Zn){for(;;)switch(Zn.prev=Zn.next){case 0:if(Dn=He.props.multiple,an.preventDefault(),an.type!=="dragover"){Zn.next=4;break}return Zn.abrupt("return");case 4:if(!He.props.directory){Zn.next=11;break}return Zn.next=7,Te(Array.prototype.slice.call(an.dataTransfer.items),function(vi){return de(vi,He.props.accept)});case 7:Dt=Zn.sent,He.uploadFiles(Dt),Zn.next=14;break;case 11:gn=(0,Ee.Z)(an.dataTransfer.files).filter(function(vi){return de(vi,He.props.accept)}),Dn===!1&&(gn=gn.slice(0,1)),He.uploadFiles(gn);case 14:case"end":return Zn.stop()}},jt)}));return function(jt){return Mt.apply(this,arguments)}}()),(0,Ue.Z)((0,it.Z)(He),"uploadFiles",function(Mt){var jt=(0,Ee.Z)(Mt),an=jt.map(function(Dn){return Dn.uid=Re(),He.processFile(Dn,jt)});Promise.all(an).then(function(Dn){var Dt=He.props.onBatchStart;Dt==null||Dt(Dn.map(function(gn){var yt=gn.origin,Zn=gn.parsedFile;return{file:yt,parsedFile:Zn}})),Dn.filter(function(gn){return gn.parsedFile!==null}).forEach(function(gn){He.post(gn)})})}),(0,Ue.Z)((0,it.Z)(He),"processFile",function(){var Mt=(0,ut.Z)((0,Ve.Z)().mark(function jt(an,Dn){var Dt,gn,yt,Zn,vi,We,Fe,xe,Ne;return(0,Ve.Z)().wrap(function(be){for(;;)switch(be.prev=be.next){case 0:if(Dt=He.props.beforeUpload,gn=an,!Dt){be.next=14;break}return be.prev=3,be.next=6,Dt(an,Dn);case 6:gn=be.sent,be.next=12;break;case 9:be.prev=9,be.t0=be.catch(3),gn=!1;case 12:if(gn!==!1){be.next=14;break}return be.abrupt("return",{origin:an,parsedFile:null,action:null,data:null});case 14:if(yt=He.props.action,typeof yt!="function"){be.next=21;break}return be.next=18,yt(an);case 18:Zn=be.sent,be.next=22;break;case 21:Zn=yt;case 22:if(vi=He.props.data,typeof vi!="function"){be.next=29;break}return be.next=26,vi(an);case 26:We=be.sent,be.next=30;break;case 29:We=vi;case 30:return Fe=((0,wt.Z)(gn)==="object"||typeof gn=="string")&&gn?gn:an,Fe instanceof File?xe=Fe:xe=new File([Fe],an.name,{type:an.type}),Ne=xe,Ne.uid=an.uid,be.abrupt("return",{origin:an,data:We,parsedFile:Ne,action:Zn});case 35:case"end":return be.stop()}},jt,null,[[3,9]])}));return function(jt,an){return Mt.apply(this,arguments)}}()),(0,Ue.Z)((0,it.Z)(He),"saveFileInput",function(Mt){He.fileInput=Mt}),He}return(0,dt.Z)(st,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(Rt){var Zt=this,_t=Rt.data,Mt=Rt.origin,jt=Rt.action,an=Rt.parsedFile;if(this._isMounted){var Dn=this.props,Dt=Dn.onStart,gn=Dn.customRequest,yt=Dn.name,Zn=Dn.headers,vi=Dn.withCredentials,We=Dn.method,Fe=Mt.uid,xe=gn||Ce,Ne={action:jt,filename:yt,data:_t,file:an,headers:Zn,withCredentials:vi,method:We||"post",onProgress:function(be){var tt=Zt.props.onProgress;tt==null||tt(be,an)},onSuccess:function(be,tt){var Xt=Zt.props.onSuccess;Xt==null||Xt(be,an,tt),delete Zt.reqs[Fe]},onError:function(be,tt){var Xt=Zt.props.onError;Xt==null||Xt(be,tt,an),delete Zt.reqs[Fe]}};Dt(Mt),this.reqs[Fe]=xe(Ne)}}},{key:"reset",value:function(){this.setState({uid:Re()})}},{key:"abort",value:function(Rt){var Zt=this.reqs;if(Rt){var _t=Rt.uid?Rt.uid:Rt;Zt[_t]&&Zt[_t].abort&&Zt[_t].abort(),delete Zt[_t]}else Object.keys(Zt).forEach(function(Mt){Zt[Mt]&&Zt[Mt].abort&&Zt[Mt].abort(),delete Zt[Mt]})}},{key:"render",value:function(){var Rt=this.props,Zt=Rt.component,_t=Rt.prefixCls,Mt=Rt.className,jt=Rt.classNames,an=jt===void 0?{}:jt,Dn=Rt.disabled,Dt=Rt.id,gn=Rt.name,yt=Rt.style,Zn=Rt.styles,vi=Zn===void 0?{}:Zn,We=Rt.multiple,Fe=Rt.accept,xe=Rt.capture,Ne=Rt.children,_e=Rt.directory,be=Rt.openFileDialogOnClick,tt=Rt.onMouseEnter,Xt=Rt.onMouseLeave,Bt=Rt.hasControlInside,nn=(0,De.Z)(Rt,rt),Tt=ne()((0,Ue.Z)((0,Ue.Z)((0,Ue.Z)({},_t,!0),"".concat(_t,"-disabled"),Dn),Mt,Mt)),bt=_e?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},zt=Dn?{}:{onClick:be?this.onClick:function(){},onKeyDown:be?this.onKeyDown:function(){},onMouseEnter:tt,onMouseLeave:Xt,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:Bt?void 0:"0"};return xt.createElement(Zt,(0,ve.Z)({},zt,{className:Tt,role:Bt?void 0:"button",style:yt}),xt.createElement("input",(0,ve.Z)({},(0,ue.Z)(nn,{aria:!0,data:!0}),{id:Dt,name:gn,disabled:Dn,type:"file",ref:this.saveFileInput,onClick:function(pn){return pn.stopPropagation()},key:this.state.uid,style:(0,nt.Z)({display:"none"},vi.input),className:an.input,accept:Fe},bt,{multiple:We,onChange:this.onChange},xe!=null?{capture:xe}:{})),Ne)}}]),st}(xt.Component),Ct=ot;function gt(){}var kt=function(Nt){(0,at.Z)(st,Nt);var tn=(0,Ze.Z)(st);function st(){var He;(0,Ye.Z)(this,st);for(var Rt=arguments.length,Zt=new Array(Rt),_t=0;_t<Rt;_t++)Zt[_t]=arguments[_t];return He=tn.call.apply(tn,[this].concat(Zt)),(0,Ue.Z)((0,it.Z)(He),"uploader",void 0),(0,Ue.Z)((0,it.Z)(He),"saveUploader",function(Mt){He.uploader=Mt}),He}return(0,dt.Z)(st,[{key:"abort",value:function(Rt){this.uploader.abort(Rt)}},{key:"render",value:function(){return xt.createElement(Ct,(0,ve.Z)({},this.props,{ref:this.saveUploader}))}}]),st}(xt.Component);(0,Ue.Z)(kt,"defaultProps",{component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:gt,onError:gt,onSuccess:gt,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0,hasControlInside:!1});var Lt=kt,Ot=Lt},8224:function(fn,on,we){"use strict";we.d(on,{Z:function(){return Ye}});var ve=we(4676);function Ye(dt,it,at,Ze){var Ue=ve.unstable_batchedUpdates?function(nt){ve.unstable_batchedUpdates(at,nt)}:at;return dt!=null&&dt.addEventListener&&dt.addEventListener(it,Ue,Ze),{remove:function(){dt!=null&&dt.removeEventListener&&dt.removeEventListener(it,Ue,Ze)}}}},24514:function(fn,on,we){"use strict";we.d(on,{G:function(){return it}});var ve=we(47273),Ye=function(Ze){if((0,ve.Z)()&&window.document.documentElement){var Ue=Array.isArray(Ze)?Ze:[Ze],xt=window.document.documentElement;return Ue.some(function(nt){return nt in xt.style})}return!1},dt=function(Ze,Ue){if(!Ye(Ze))return!1;var xt=document.createElement("div"),nt=xt.style[Ze];return xt.style[Ze]=Ue,xt.style[Ze]!==nt};function it(at,Ze){return!Array.isArray(at)&&Ze!==void 0?dt(at,Ze):Ye(at)}},65283:function(fn,on,we){"use strict";we.d(on,{Z:function(){return vi}});var ve=we(71409),Ye=we(28788),dt=we(89490),it=we(87075),at=we(11036),Ze=we(39224),Ue=we(92310),xt=we.n(Ue),nt=we(29301),De=we(70425),wt=we(34280),Ve=we(59301),ut=we(4676),Ee=Ve.forwardRef(function(We,Fe){var xe=We.height,Ne=We.offsetY,_e=We.offsetX,be=We.children,tt=We.prefixCls,Xt=We.onInnerResize,Bt=We.innerProps,nn=We.rtl,Tt=We.extra,bt={},zt={display:"flex",flexDirection:"column"};return Ne!==void 0&&(bt={height:xe,position:"relative",overflow:"hidden"},zt=(0,dt.Z)((0,dt.Z)({},zt),{},(0,it.Z)((0,it.Z)((0,it.Z)((0,it.Z)((0,it.Z)({transform:"translateY(".concat(Ne,"px)")},nn?"marginRight":"marginLeft",-_e),"position","absolute"),"left",0),"right",0),"top",0))),Ve.createElement("div",{style:bt},Ve.createElement(nt.Z,{onResize:function(pn){var ei=pn.offsetHeight;ei&&Xt&&Xt()}},Ve.createElement("div",(0,ve.Z)({style:zt,className:xt()((0,it.Z)({},"".concat(tt,"-holder-inner"),tt)),ref:Fe},Bt),be,Tt)))});Ee.displayName="Filler";var te=Ee;function ne(We){var Fe=We.children,xe=We.setRef,Ne=Ve.useCallback(function(_e){xe(_e)},[]);return Ve.cloneElement(Fe,{ref:Ne})}function ue(We,Fe,xe,Ne,_e,be,tt,Xt){var Bt=Xt.getKey;return We.slice(Fe,xe+1).map(function(nn,Tt){var bt=Fe+Tt,zt=tt(nn,bt,{style:{width:Ne},offsetX:_e}),qt=Bt(nn);return Ve.createElement(ne,{key:qt,setRef:function(ei){return be(nn,ei)}},zt)})}function se(We,Fe,xe,Ne){var _e=xe-We,be=Fe-xe,tt=Math.min(_e,be)*2;if(Ne<=tt){var Xt=Math.floor(Ne/2);return Ne%2?xe+Xt+1:xe-Xt}return _e>be?xe-(Ne-be):xe+(Ne-_e)}function de(We,Fe,xe){var Ne=We.length,_e=Fe.length,be,tt;if(Ne===0&&_e===0)return null;Ne<_e?(be=We,tt=Fe):(be=Fe,tt=We);var Xt={__EMPTY_ITEM__:!0};function Bt(pn){return pn!==void 0?xe(pn):Xt}for(var nn=null,Tt=Math.abs(Ne-_e)!==1,bt=0;bt<tt.length;bt+=1){var zt=Bt(be[bt]),qt=Bt(tt[bt]);if(zt!==qt){nn=bt,Tt=Tt||zt!==Bt(tt[bt+1]);break}}return nn===null?null:{index:nn,multiple:Tt}}function pe(We,Fe,xe){var Ne=Ve.useState(We),_e=(0,at.Z)(Ne,2),be=_e[0],tt=_e[1],Xt=Ve.useState(null),Bt=(0,at.Z)(Xt,2),nn=Bt[0],Tt=Bt[1];return Ve.useEffect(function(){var bt=de(be||[],We||[],Fe);(bt==null?void 0:bt.index)!==void 0&&(xe==null||xe(bt.index),Tt(We[bt.index])),tt(We)},[We]),[nn]}var ye=we(16089),Ce=(typeof navigator=="undefined"?"undefined":(0,Ye.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),ze=Ce,Te=function(We,Fe,xe,Ne){var _e=(0,Ve.useRef)(!1),be=(0,Ve.useRef)(null);function tt(){clearTimeout(be.current),_e.current=!0,be.current=setTimeout(function(){_e.current=!1},50)}var Xt=(0,Ve.useRef)({top:We,bottom:Fe,left:xe,right:Ne});return Xt.current.top=We,Xt.current.bottom=Fe,Xt.current.left=xe,Xt.current.right=Ne,function(Bt,nn){var Tt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,bt=Bt?nn<0&&Xt.current.left||nn>0&&Xt.current.right:nn<0&&Xt.current.top||nn>0&&Xt.current.bottom;return Tt&&bt?(clearTimeout(be.current),_e.current=!1):(!bt||_e.current)&&tt(),!_e.current&&bt}};function Ie(We,Fe,xe,Ne,_e,be,tt){var Xt=(0,Ve.useRef)(0),Bt=(0,Ve.useRef)(null),nn=(0,Ve.useRef)(null),Tt=(0,Ve.useRef)(!1),bt=Te(Fe,xe,Ne,_e);function zt(Ci,$n){if(ye.Z.cancel(Bt.current),!bt(!1,$n)){var bi=Ci;if(!bi._virtualHandled)bi._virtualHandled=!0;else return;Xt.current+=$n,nn.current=$n,ze||bi.preventDefault(),Bt.current=(0,ye.Z)(function(){var hi=Tt.current?10:1;tt(Xt.current*hi,!1),Xt.current=0})}}function qt(Ci,$n){tt($n,!0),ze||Ci.preventDefault()}var pn=(0,Ve.useRef)(null),ei=(0,Ve.useRef)(null);function wn(Ci){if(We){ye.Z.cancel(ei.current),ei.current=(0,ye.Z)(function(){pn.current=null},2);var $n=Ci.deltaX,bi=Ci.deltaY,hi=Ci.shiftKey,Di=$n,Gi=bi;(pn.current==="sx"||!pn.current&&hi&&bi&&!$n)&&(Di=bi,Gi=0,pn.current="sx");var Ji=Math.abs(Di),Zr=Math.abs(Gi);pn.current===null&&(pn.current=be&&Ji>Zr?"x":"y"),pn.current==="y"?zt(Ci,Gi):qt(Ci,Di)}}function Fn(Ci){We&&(Tt.current=Ci.detail===nn.current)}return[wn,Fn]}function Oe(We,Fe,xe,Ne){var _e=Ve.useMemo(function(){return[new Map,[]]},[We,xe.id,Ne]),be=(0,at.Z)(_e,2),tt=be[0],Xt=be[1],Bt=function(Tt){var bt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Tt,zt=tt.get(Tt),qt=tt.get(bt);if(zt===void 0||qt===void 0)for(var pn=We.length,ei=Xt.length;ei<pn;ei+=1){var wn,Fn=We[ei],Ci=Fe(Fn);tt.set(Ci,ei);var $n=(wn=xe.get(Ci))!==null&&wn!==void 0?wn:Ne;if(Xt[ei]=(Xt[ei-1]||0)+$n,Ci===Tt&&(zt=ei),Ci===bt&&(qt=ei),zt!==void 0&&qt!==void 0)break}return{top:Xt[zt-1]||0,bottom:Xt[qt]}};return Bt}var Re=we(16552),rt=we(19210),ot=function(){function We(){(0,Re.Z)(this,We),(0,it.Z)(this,"maps",void 0),(0,it.Z)(this,"id",0),(0,it.Z)(this,"diffRecords",new Map),this.maps=Object.create(null)}return(0,rt.Z)(We,[{key:"set",value:function(xe,Ne){this.diffRecords.set(xe,this.maps[xe]),this.maps[xe]=Ne,this.id+=1}},{key:"get",value:function(xe){return this.maps[xe]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),We}(),Ct=ot;function gt(We){var Fe=parseFloat(We);return isNaN(Fe)?0:Fe}function kt(We,Fe,xe){var Ne=Ve.useState(0),_e=(0,at.Z)(Ne,2),be=_e[0],tt=_e[1],Xt=(0,Ve.useRef)(new Map),Bt=(0,Ve.useRef)(new Ct),nn=(0,Ve.useRef)(0);function Tt(){nn.current+=1}function bt(){var qt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Tt();var pn=function(){var Fn=!1;Xt.current.forEach(function(Ci,$n){if(Ci&&Ci.offsetParent){var bi=Ci.offsetHeight,hi=getComputedStyle(Ci),Di=hi.marginTop,Gi=hi.marginBottom,Ji=gt(Di),Zr=gt(Gi),qi=bi+Ji+Zr;Bt.current.get($n)!==qi&&(Bt.current.set($n,qi),Fn=!0)}}),Fn&&tt(function(Ci){return Ci+1})};if(qt)pn();else{nn.current+=1;var ei=nn.current;Promise.resolve().then(function(){ei===nn.current&&pn()})}}function zt(qt,pn){var ei=We(qt),wn=Xt.current.get(ei);pn?(Xt.current.set(ei,pn),bt()):Xt.current.delete(ei),!wn!=!pn&&(pn?Fe==null||Fe(qt):xe==null||xe(qt))}return(0,Ve.useEffect)(function(){return Tt},[]),[zt,bt,Bt.current,be]}var Lt=14/15;function Ot(We,Fe,xe){var Ne=(0,Ve.useRef)(!1),_e=(0,Ve.useRef)(0),be=(0,Ve.useRef)(0),tt=(0,Ve.useRef)(null),Xt=(0,Ve.useRef)(null),Bt,nn=function(qt){if(Ne.current){var pn=Math.ceil(qt.touches[0].pageX),ei=Math.ceil(qt.touches[0].pageY),wn=_e.current-pn,Fn=be.current-ei,Ci=Math.abs(wn)>Math.abs(Fn);Ci?_e.current=pn:be.current=ei;var $n=xe(Ci,Ci?wn:Fn,!1,qt);$n&&qt.preventDefault(),clearInterval(Xt.current),$n&&(Xt.current=setInterval(function(){Ci?wn*=Lt:Fn*=Lt;var bi=Math.floor(Ci?wn:Fn);(!xe(Ci,bi,!0)||Math.abs(bi)<=.1)&&clearInterval(Xt.current)},16))}},Tt=function(){Ne.current=!1,Bt()},bt=function(qt){Bt(),qt.touches.length===1&&!Ne.current&&(Ne.current=!0,_e.current=Math.ceil(qt.touches[0].pageX),be.current=Math.ceil(qt.touches[0].pageY),tt.current=qt.target,tt.current.addEventListener("touchmove",nn,{passive:!1}),tt.current.addEventListener("touchend",Tt,{passive:!0}))};Bt=function(){tt.current&&(tt.current.removeEventListener("touchmove",nn),tt.current.removeEventListener("touchend",Tt))},(0,wt.Z)(function(){return We&&Fe.current.addEventListener("touchstart",bt,{passive:!0}),function(){var zt;(zt=Fe.current)===null||zt===void 0||zt.removeEventListener("touchstart",bt),Bt(),clearInterval(Xt.current)}},[We])}function Nt(We){return Math.floor(Math.pow(We,.5))}function tn(We,Fe){var xe="touches"in We?We.touches[0]:We;return xe[Fe?"pageX":"pageY"]-window[Fe?"scrollX":"scrollY"]}function st(We,Fe,xe){Ve.useEffect(function(){var Ne=Fe.current;if(We&&Ne){var _e=!1,be,tt,Xt=function(){ye.Z.cancel(be)},Bt=function zt(){Xt(),be=(0,ye.Z)(function(){xe(tt),zt()})},nn=function(qt){if(!(qt.target.draggable||qt.button!==0)){var pn=qt;pn._virtualHandled||(pn._virtualHandled=!0,_e=!0)}},Tt=function(){_e=!1,Xt()},bt=function(qt){if(_e){var pn=tn(qt,!1),ei=Ne.getBoundingClientRect(),wn=ei.top,Fn=ei.bottom;if(pn<=wn){var Ci=wn-pn;tt=-Nt(Ci),Bt()}else if(pn>=Fn){var $n=pn-Fn;tt=Nt($n),Bt()}else Xt()}};return Ne.addEventListener("mousedown",nn),Ne.ownerDocument.addEventListener("mouseup",Tt),Ne.ownerDocument.addEventListener("mousemove",bt),function(){Ne.removeEventListener("mousedown",nn),Ne.ownerDocument.removeEventListener("mouseup",Tt),Ne.ownerDocument.removeEventListener("mousemove",bt),Xt()}}},[We])}var He=10;function Rt(We,Fe,xe,Ne,_e,be,tt,Xt){var Bt=Ve.useRef(),nn=Ve.useState(null),Tt=(0,at.Z)(nn,2),bt=Tt[0],zt=Tt[1];return(0,wt.Z)(function(){if(bt&&bt.times<He){if(!We.current){zt(function(ro){return(0,dt.Z)({},ro)});return}be();var qt=bt.targetAlign,pn=bt.originAlign,ei=bt.index,wn=bt.offset,Fn=We.current.clientHeight,Ci=!1,$n=qt,bi=null;if(Fn){for(var hi=qt||pn,Di=0,Gi=0,Ji=0,Zr=Math.min(Fe.length-1,ei),qi=0;qi<=Zr;qi+=1){var ii=_e(Fe[qi]);Gi=Di;var so=xe.get(ii);Ji=Gi+(so===void 0?Ne:so),Di=Ji}for(var Kr=hi==="top"?wn:Fn-wn,qr=Zr;qr>=0;qr-=1){var io=_e(Fe[qr]),Fo=xe.get(io);if(Fo===void 0){Ci=!0;break}if(Kr-=Fo,Kr<=0)break}switch(hi){case"top":bi=Gi-wn;break;case"bottom":bi=Ji-Fn+wn;break;default:{var lo=We.current.scrollTop,Ar=lo+Fn;Gi<lo?$n="top":Ji>Ar&&($n="bottom")}}bi!==null&&tt(bi),bi!==bt.lastTop&&(Ci=!0)}Ci&&zt((0,dt.Z)((0,dt.Z)({},bt),{},{times:bt.times+1,targetAlign:$n,lastTop:bi}))}},[bt,We.current]),function(qt){if(qt==null){Xt();return}if(ye.Z.cancel(Bt.current),typeof qt=="number")tt(qt);else if(qt&&(0,Ye.Z)(qt)==="object"){var pn,ei=qt.align;"index"in qt?pn=qt.index:pn=Fe.findIndex(function(Ci){return _e(Ci)===qt.key});var wn=qt.offset,Fn=wn===void 0?0:wn;zt({times:0,index:pn,offset:Fn,originAlign:ei})}}}var Zt=Ve.forwardRef(function(We,Fe){var xe=We.prefixCls,Ne=We.rtl,_e=We.scrollOffset,be=We.scrollRange,tt=We.onStartMove,Xt=We.onStopMove,Bt=We.onScroll,nn=We.horizontal,Tt=We.spinSize,bt=We.containerSize,zt=We.style,qt=We.thumbStyle,pn=We.showScrollBar,ei=Ve.useState(!1),wn=(0,at.Z)(ei,2),Fn=wn[0],Ci=wn[1],$n=Ve.useState(null),bi=(0,at.Z)($n,2),hi=bi[0],Di=bi[1],Gi=Ve.useState(null),Ji=(0,at.Z)(Gi,2),Zr=Ji[0],qi=Ji[1],ii=!Ne,so=Ve.useRef(),Kr=Ve.useRef(),qr=Ve.useState(pn),io=(0,at.Z)(qr,2),Fo=io[0],lo=io[1],Ar=Ve.useRef(),ro=function(){pn===!0||pn===!1||(clearTimeout(Ar.current),lo(!0),Ar.current=setTimeout(function(){lo(!1)},3e3))},Le=be-bt||0,xn=bt-Tt||0,Qn=Ve.useMemo(function(){if(_e===0||Le===0)return 0;var It=_e/Le;return It*xn},[_e,Le,xn]),gi=function(Ei){Ei.stopPropagation(),Ei.preventDefault()},yi=Ve.useRef({top:Qn,dragging:Fn,pageY:hi,startTop:Zr});yi.current={top:Qn,dragging:Fn,pageY:hi,startTop:Zr};var ti=function(Ei){Ci(!0),Di(tn(Ei,nn)),qi(yi.current.top),tt(),Ei.stopPropagation(),Ei.preventDefault()};Ve.useEffect(function(){var It=function(Xn){Xn.preventDefault()},Ei=so.current,Ii=Kr.current;return Ei.addEventListener("touchstart",It,{passive:!1}),Ii.addEventListener("touchstart",ti,{passive:!1}),function(){Ei.removeEventListener("touchstart",It),Ii.removeEventListener("touchstart",ti)}},[]);var Yi=Ve.useRef();Yi.current=Le;var cr=Ve.useRef();cr.current=xn,Ve.useEffect(function(){if(Fn){var It,Ei=function(Xn){var Ai=yi.current,ur=Ai.dragging,Tr=Ai.pageY,br=Ai.startTop;ye.Z.cancel(It);var et=so.current.getBoundingClientRect(),Ft=bt/(nn?et.width:et.height);if(ur){var Tn=(tn(Xn,nn)-Tr)*Ft,Yn=br;!ii&&nn?Yn-=Tn:Yn+=Tn;var en=Yi.current,Gn=cr.current,kn=Gn?Yn/Gn:0,_n=Math.ceil(kn*en);_n=Math.max(_n,0),_n=Math.min(_n,en),It=(0,ye.Z)(function(){Bt(_n,nn)})}},Ii=function(){Ci(!1),Xt()};return window.addEventListener("mousemove",Ei,{passive:!0}),window.addEventListener("touchmove",Ei,{passive:!0}),window.addEventListener("mouseup",Ii,{passive:!0}),window.addEventListener("touchend",Ii,{passive:!0}),function(){window.removeEventListener("mousemove",Ei),window.removeEventListener("touchmove",Ei),window.removeEventListener("mouseup",Ii),window.removeEventListener("touchend",Ii),ye.Z.cancel(It)}}},[Fn]),Ve.useEffect(function(){return ro(),function(){clearTimeout(Ar.current)}},[_e]),Ve.useImperativeHandle(Fe,function(){return{delayHidden:ro}});var Sr="".concat(xe,"-scrollbar"),Jt={position:"absolute",visibility:Fo?null:"hidden"},Vt={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return nn?(Jt.height=8,Jt.left=0,Jt.right=0,Jt.bottom=0,Vt.height="100%",Vt.width=Tt,ii?Vt.left=Qn:Vt.right=Qn):(Jt.width=8,Jt.top=0,Jt.bottom=0,ii?Jt.right=0:Jt.left=0,Vt.width="100%",Vt.height=Tt,Vt.top=Qn),Ve.createElement("div",{ref:so,className:xt()(Sr,(0,it.Z)((0,it.Z)((0,it.Z)({},"".concat(Sr,"-horizontal"),nn),"".concat(Sr,"-vertical"),!nn),"".concat(Sr,"-visible"),Fo)),style:(0,dt.Z)((0,dt.Z)({},Jt),zt),onMouseDown:gi,onMouseMove:ro},Ve.createElement("div",{ref:Kr,className:xt()("".concat(Sr,"-thumb"),(0,it.Z)({},"".concat(Sr,"-thumb-moving"),Fn)),style:(0,dt.Z)((0,dt.Z)({},Vt),qt),onMouseDown:ti}))}),_t=Zt,Mt=20;function jt(){var We=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,Fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,xe=We/Fe*We;return isNaN(xe)&&(xe=0),xe=Math.max(xe,Mt),Math.floor(xe)}var an=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],Dn=[],Dt={overflowY:"auto",overflowAnchor:"none"};function gn(We,Fe){var xe=We.prefixCls,Ne=xe===void 0?"rc-virtual-list":xe,_e=We.className,be=We.height,tt=We.itemHeight,Xt=We.fullHeight,Bt=Xt===void 0?!0:Xt,nn=We.style,Tt=We.data,bt=We.children,zt=We.itemKey,qt=We.virtual,pn=We.direction,ei=We.scrollWidth,wn=We.component,Fn=wn===void 0?"div":wn,Ci=We.onScroll,$n=We.onVirtualScroll,bi=We.onVisibleChange,hi=We.innerProps,Di=We.extraRender,Gi=We.styles,Ji=We.showScrollBar,Zr=Ji===void 0?"optional":Ji,qi=(0,Ze.Z)(We,an),ii=Ve.useCallback(function(Kt){return typeof zt=="function"?zt(Kt):Kt==null?void 0:Kt[zt]},[zt]),so=kt(ii,null,null),Kr=(0,at.Z)(so,4),qr=Kr[0],io=Kr[1],Fo=Kr[2],lo=Kr[3],Ar=!!(qt!==!1&&be&&tt),ro=Ve.useMemo(function(){return Object.values(Fo.maps).reduce(function(Kt,Hn){return Kt+Hn},0)},[Fo.id,Fo.maps]),Le=Ar&&Tt&&(Math.max(tt*Tt.length,ro)>be||!!ei),xn=pn==="rtl",Qn=xt()(Ne,(0,it.Z)({},"".concat(Ne,"-rtl"),xn),_e),gi=Tt||Dn,yi=(0,Ve.useRef)(),ti=(0,Ve.useRef)(),Yi=(0,Ve.useRef)(),cr=(0,Ve.useState)(0),Sr=(0,at.Z)(cr,2),Jt=Sr[0],Vt=Sr[1],It=(0,Ve.useState)(0),Ei=(0,at.Z)(It,2),Ii=Ei[0],ji=Ei[1],Xn=(0,Ve.useState)(!1),Ai=(0,at.Z)(Xn,2),ur=Ai[0],Tr=Ai[1],br=function(){Tr(!0)},et=function(){Tr(!1)},Ft={getKey:ii};function Tn(Kt){Vt(function(Hn){var Bn;typeof Kt=="function"?Bn=Kt(Hn):Bn=Kt;var un=$i(Bn);return yi.current.scrollTop=un,un})}var Yn=(0,Ve.useRef)({start:0,end:gi.length}),en=(0,Ve.useRef)(),Gn=pe(gi,ii),kn=(0,at.Z)(Gn,1),_n=kn[0];en.current=_n;var xi=Ve.useMemo(function(){if(!Ar)return{scrollHeight:void 0,start:0,end:gi.length-1,offset:void 0};if(!Le){var Kt;return{scrollHeight:((Kt=ti.current)===null||Kt===void 0?void 0:Kt.offsetHeight)||0,start:0,end:gi.length-1,offset:void 0}}for(var Hn=0,Bn,un,On,li=gi.length,ke=0;ke<li;ke+=1){var ht=gi[ke],Je=ii(ht),pt=Fo.get(Je),Pt=Hn+(pt===void 0?tt:pt);Pt>=Jt&&Bn===void 0&&(Bn=ke,un=Hn),Pt>Jt+be&&On===void 0&&(On=ke),Hn=Pt}return Bn===void 0&&(Bn=0,un=0,On=Math.ceil(be/tt)),On===void 0&&(On=gi.length-1),On=Math.min(On+1,gi.length-1),{scrollHeight:Hn,start:Bn,end:On,offset:un}},[Le,Ar,Jt,gi,lo,be]),mi=xi.scrollHeight,sn=xi.start,ki=xi.end,Cr=xi.offset;Yn.current.start=sn,Yn.current.end=ki,Ve.useLayoutEffect(function(){var Kt=Fo.getRecord();if(Kt.size===1){var Hn=Array.from(Kt.keys())[0],Bn=Kt.get(Hn),un=gi[sn];if(un&&Bn===void 0){var On=ii(un);if(On===Hn){var li=Fo.get(Hn),ke=li-tt;Tn(function(ht){return ht+ke})}}}Fo.resetRecord()},[mi]);var gr=Ve.useState({width:0,height:be}),dr=(0,at.Z)(gr,2),mn=dr[0],Ir=dr[1],jr=function(Hn){Ir({width:Hn.offsetWidth,height:Hn.offsetHeight})},fo=(0,Ve.useRef)(),yn=(0,Ve.useRef)(),ni=Ve.useMemo(function(){return jt(mn.width,ei)},[mn.width,ei]),Hi=Ve.useMemo(function(){return jt(mn.height,mi)},[mn.height,mi]),Ri=mi-be,Xi=(0,Ve.useRef)(Ri);Xi.current=Ri;function $i(Kt){var Hn=Kt;return Number.isNaN(Xi.current)||(Hn=Math.min(Hn,Xi.current)),Hn=Math.max(Hn,0),Hn}var Fr=Jt<=0,Dr=Jt>=Ri,Rr=Ii<=0,Xr=Ii>=ei,Mn=Te(Fr,Dr,Rr,Xr),ho=function(){return{x:xn?-Ii:Ii,y:Jt}},ln=(0,Ve.useRef)(ho()),rr=(0,De.zX)(function(Kt){if($n){var Hn=(0,dt.Z)((0,dt.Z)({},ho()),Kt);(ln.current.x!==Hn.x||ln.current.y!==Hn.y)&&($n(Hn),ln.current=Hn)}});function Vr(Kt,Hn){var Bn=Kt;Hn?((0,ut.flushSync)(function(){ji(Bn)}),rr()):Tn(Bn)}function _r(Kt){var Hn=Kt.currentTarget.scrollTop;Hn!==Jt&&Tn(Hn),Ci==null||Ci(Kt),rr()}var Co=function(Hn){var Bn=Hn,un=ei?ei-mn.width:0;return Bn=Math.max(Bn,0),Bn=Math.min(Bn,un),Bn},Qr=(0,De.zX)(function(Kt,Hn){Hn?((0,ut.flushSync)(function(){ji(function(Bn){var un=Bn+(xn?-Kt:Kt);return Co(un)})}),rr()):Tn(function(Bn){var un=Bn+Kt;return un})}),Or=Ie(Ar,Fr,Dr,Rr,Xr,!!ei,Qr),ko=(0,at.Z)(Or,2),Ht=ko[0],Cn=ko[1];Ot(Ar,yi,function(Kt,Hn,Bn,un){var On=un;return Mn(Kt,Hn,Bn)?!1:!On||!On._virtualHandled?(On&&(On._virtualHandled=!0),Ht({preventDefault:function(){},deltaX:Kt?Hn:0,deltaY:Kt?0:Hn}),!0):!1}),st(Le,yi,function(Kt){Tn(function(Hn){return Hn+Kt})}),(0,wt.Z)(function(){function Kt(Bn){var un=Fr&&Bn.detail<0,On=Dr&&Bn.detail>0;Ar&&!un&&!On&&Bn.preventDefault()}var Hn=yi.current;return Hn.addEventListener("wheel",Ht,{passive:!1}),Hn.addEventListener("DOMMouseScroll",Cn,{passive:!0}),Hn.addEventListener("MozMousePixelScroll",Kt,{passive:!1}),function(){Hn.removeEventListener("wheel",Ht),Hn.removeEventListener("DOMMouseScroll",Cn),Hn.removeEventListener("MozMousePixelScroll",Kt)}},[Ar,Fr,Dr]),(0,wt.Z)(function(){if(ei){var Kt=Co(Ii);ji(Kt),rr({x:Kt})}},[mn.width,ei]);var Ut=function(){var Hn,Bn;(Hn=fo.current)===null||Hn===void 0||Hn.delayHidden(),(Bn=yn.current)===null||Bn===void 0||Bn.delayHidden()},je=Rt(yi,gi,Fo,tt,ii,function(){return io(!0)},Tn,Ut);Ve.useImperativeHandle(Fe,function(){return{nativeElement:Yi.current,getScrollInfo:ho,scrollTo:function(Hn){function Bn(un){return un&&(0,Ye.Z)(un)==="object"&&("left"in un||"top"in un)}Bn(Hn)?(Hn.left!==void 0&&ji(Co(Hn.left)),je(Hn.top)):je(Hn)}}}),(0,wt.Z)(function(){if(bi){var Kt=gi.slice(sn,ki+1);bi(Kt,gi)}},[sn,ki,gi]);var ri=Oe(gi,ii,Fo,tt),Si=Di==null?void 0:Di({start:sn,end:ki,virtual:Le,offsetX:Ii,offsetY:Cr,rtl:xn,getSize:ri}),$e=ue(gi,sn,ki,ei,Ii,qr,bt,Ft),rn=null;be&&(rn=(0,dt.Z)((0,it.Z)({},Bt?"height":"maxHeight",be),Dt),Ar&&(rn.overflowY="hidden",ei&&(rn.overflowX="hidden"),ur&&(rn.pointerEvents="none")));var Wt={};return xn&&(Wt.dir="rtl"),Ve.createElement("div",(0,ve.Z)({ref:Yi,style:(0,dt.Z)((0,dt.Z)({},nn),{},{position:"relative"}),className:Qn},Wt,qi),Ve.createElement(nt.Z,{onResize:jr},Ve.createElement(Fn,{className:"".concat(Ne,"-holder"),style:rn,ref:yi,onScroll:_r,onMouseEnter:Ut},Ve.createElement(te,{prefixCls:Ne,height:mi,offsetX:Ii,offsetY:Cr,scrollWidth:ei,onInnerResize:io,ref:ti,innerProps:hi,rtl:xn,extra:Si},$e))),Le&&mi>be&&Ve.createElement(_t,{ref:fo,prefixCls:Ne,scrollOffset:Jt,scrollRange:mi,rtl:xn,onScroll:Vr,onStartMove:br,onStopMove:et,spinSize:Hi,containerSize:mn.height,style:Gi==null?void 0:Gi.verticalScrollBar,thumbStyle:Gi==null?void 0:Gi.verticalScrollBarThumb,showScrollBar:Zr}),Le&&ei>mn.width&&Ve.createElement(_t,{ref:yn,prefixCls:Ne,scrollOffset:Ii,scrollRange:ei,rtl:xn,onScroll:Vr,onStartMove:br,onStopMove:et,spinSize:ni,containerSize:mn.width,horizontal:!0,style:Gi==null?void 0:Gi.horizontalScrollBar,thumbStyle:Gi==null?void 0:Gi.horizontalScrollBarThumb,showScrollBar:Zr}))}var yt=Ve.forwardRef(gn);yt.displayName="List";var Zn=yt,vi=Zn},2637:function(fn,on,we){"use strict";Object.defineProperty(on,"__esModule",{value:!0}),Object.defineProperty(on,"DraggableCore",{enumerable:!0,get:function(){return xt.default}}),on.default=void 0;var ve=Ve(we(59301)),Ye=De(we(12708)),dt=De(we(4676)),it=De(we(57780)),at=we(13957),Ze=we(60976),Ue=we(36641),xt=De(we(80486)),nt=De(we(94187));function De(se){return se&&se.__esModule?se:{default:se}}function wt(se){if(typeof WeakMap!="function")return null;var de=new WeakMap,pe=new WeakMap;return(wt=function(ye){return ye?pe:de})(se)}function Ve(se,de){if(!de&&se&&se.__esModule)return se;if(se===null||typeof se!="object"&&typeof se!="function")return{default:se};var pe=wt(de);if(pe&&pe.has(se))return pe.get(se);var ye={},Ce=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var ze in se)if(ze!=="default"&&Object.prototype.hasOwnProperty.call(se,ze)){var Te=Ce?Object.getOwnPropertyDescriptor(se,ze):null;Te&&(Te.get||Te.set)?Object.defineProperty(ye,ze,Te):ye[ze]=se[ze]}return ye.default=se,pe&&pe.set(se,ye),ye}function ut(){return ut=Object.assign?Object.assign.bind():function(se){for(var de=1;de<arguments.length;de++){var pe=arguments[de];for(var ye in pe)Object.prototype.hasOwnProperty.call(pe,ye)&&(se[ye]=pe[ye])}return se},ut.apply(this,arguments)}function Ee(se,de,pe){return de=te(de),de in se?Object.defineProperty(se,de,{value:pe,enumerable:!0,configurable:!0,writable:!0}):se[de]=pe,se}function te(se){var de=ne(se,"string");return typeof de=="symbol"?de:String(de)}function ne(se,de){if(typeof se!="object"||se===null)return se;var pe=se[Symbol.toPrimitive];if(pe!==void 0){var ye=pe.call(se,de||"default");if(typeof ye!="object")return ye;throw new TypeError("@@toPrimitive must return a primitive value.")}return(de==="string"?String:Number)(se)}class ue extends ve.Component{static getDerivedStateFromProps(de,pe){let{position:ye}=de,{prevPropsPosition:Ce}=pe;return ye&&(!Ce||ye.x!==Ce.x||ye.y!==Ce.y)?((0,nt.default)("Draggable: getDerivedStateFromProps %j",{position:ye,prevPropsPosition:Ce}),{x:ye.x,y:ye.y,prevPropsPosition:bd({},ye)}):null}constructor(de){super(de),Ee(this,"onDragStart",(pe,ye)=>{if((0,nt.default)("Draggable: onDragStart: %j",ye),this.props.onStart(pe,(0,Ze.createDraggableData)(this,ye))===!1)return!1;this.setState({dragging:!0,dragged:!0})}),Ee(this,"onDrag",(pe,ye)=>{if(!this.state.dragging)return!1;(0,nt.default)("Draggable: onDrag: %j",ye);const Ce=(0,Ze.createDraggableData)(this,ye),ze={x:Ce.x,y:Ce.y,slackX:0,slackY:0};if(this.props.bounds){const{x:Ie,y:Oe}=ze;ze.x+=this.state.slackX,ze.y+=this.state.slackY;const[Re,rt]=(0,Ze.getBoundPosition)(this,ze.x,ze.y);ze.x=Re,ze.y=rt,ze.slackX=this.state.slackX+(Ie-ze.x),ze.slackY=this.state.slackY+(Oe-ze.y),Ce.x=ze.x,Ce.y=ze.y,Ce.deltaX=ze.x-this.state.x,Ce.deltaY=ze.y-this.state.y}if(this.props.onDrag(pe,Ce)===!1)return!1;this.setState(ze)}),Ee(this,"onDragStop",(pe,ye)=>{if(!this.state.dragging||this.props.onStop(pe,(0,Ze.createDraggableData)(this,ye))===!1)return!1;(0,nt.default)("Draggable: onDragStop: %j",ye);const ze={dragging:!1,slackX:0,slackY:0};if(!!this.props.position){const{x:Ie,y:Oe}=this.props.position;ze.x=Ie,ze.y=Oe}this.setState(ze)}),this.state={dragging:!1,dragged:!1,x:de.position?de.position.x:de.defaultPosition.x,y:de.position?de.position.y:de.defaultPosition.y,prevPropsPosition:bd({},de.position),slackX:0,slackY:0,isElementSVG:!1},de.position&&!(de.onDrag||de.onStop)&&console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){typeof window.SVGElement!="undefined"&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.setState({dragging:!1})}findDOMNode(){var de,pe;return(de=(pe=this.props)===null||pe===void 0||(pe=pe.nodeRef)===null||pe===void 0?void 0:pe.current)!==null&&de!==void 0?de:dt.default.findDOMNode(this)}render(){const st=this.props,{axis:de,bounds:pe,children:ye,defaultPosition:Ce,defaultClassName:ze,defaultClassNameDragging:Te,defaultClassNameDragged:Ie,position:Oe,positionOffset:Re,scale:rt}=st,ot=Px(st,["axis","bounds","children","defaultPosition","defaultClassName","defaultClassNameDragging","defaultClassNameDragged","position","positionOffset","scale"]);let Ct={},gt=null;const Lt=!!!Oe||this.state.dragging,Ot=Oe||Ce,Nt={x:(0,Ze.canDragX)(this)&&Lt?this.state.x:Ot.x,y:(0,Ze.canDragY)(this)&&Lt?this.state.y:Ot.y};this.state.isElementSVG?gt=(0,at.createSVGTransform)(Nt,Re):Ct=(0,at.createCSSTransform)(Nt,Re);const tn=(0,it.default)(ye.props.className||"",ze,{[Te]:this.state.dragging,[Ie]:this.state.dragged});return ve.createElement(xt.default,ut({},ot,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),ve.cloneElement(ve.Children.only(ye),{className:tn,style:bd(bd({},ye.props.style),Ct),transform:gt}))}}on.default=ue,Ee(ue,"displayName","Draggable"),Ee(ue,"propTypes",Xy(bd({},xt.default.propTypes),{axis:Ye.default.oneOf(["both","x","y","none"]),bounds:Ye.default.oneOfType([Ye.default.shape({left:Ye.default.number,right:Ye.default.number,top:Ye.default.number,bottom:Ye.default.number}),Ye.default.string,Ye.default.oneOf([!1])]),defaultClassName:Ye.default.string,defaultClassNameDragging:Ye.default.string,defaultClassNameDragged:Ye.default.string,defaultPosition:Ye.default.shape({x:Ye.default.number,y:Ye.default.number}),positionOffset:Ye.default.shape({x:Ye.default.oneOfType([Ye.default.number,Ye.default.string]),y:Ye.default.oneOfType([Ye.default.number,Ye.default.string])}),position:Ye.default.shape({x:Ye.default.number,y:Ye.default.number}),className:Ue.dontSetMe,style:Ue.dontSetMe,transform:Ue.dontSetMe})),Ee(ue,"defaultProps",Xy(bd({},xt.default.defaultProps),{axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1}))},80486:function(fn,on,we){"use strict";Object.defineProperty(on,"__esModule",{value:!0}),on.default=void 0;var ve=De(we(59301)),Ye=xt(we(12708)),dt=xt(we(4676)),it=we(13957),at=we(60976),Ze=we(36641),Ue=xt(we(94187));function xt(ue){return ue&&ue.__esModule?ue:{default:ue}}function nt(ue){if(typeof WeakMap!="function")return null;var se=new WeakMap,de=new WeakMap;return(nt=function(pe){return pe?de:se})(ue)}function De(ue,se){if(!se&&ue&&ue.__esModule)return ue;if(ue===null||typeof ue!="object"&&typeof ue!="function")return{default:ue};var de=nt(se);if(de&&de.has(ue))return de.get(ue);var pe={},ye=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Ce in ue)if(Ce!=="default"&&Object.prototype.hasOwnProperty.call(ue,Ce)){var ze=ye?Object.getOwnPropertyDescriptor(ue,Ce):null;ze&&(ze.get||ze.set)?Object.defineProperty(pe,Ce,ze):pe[Ce]=ue[Ce]}return pe.default=ue,de&&de.set(ue,pe),pe}function wt(ue,se,de){return se=Ve(se),se in ue?Object.defineProperty(ue,se,{value:de,enumerable:!0,configurable:!0,writable:!0}):ue[se]=de,ue}function Ve(ue){var se=ut(ue,"string");return typeof se=="symbol"?se:String(se)}function ut(ue,se){if(typeof ue!="object"||ue===null)return ue;var de=ue[Symbol.toPrimitive];if(de!==void 0){var pe=de.call(ue,se||"default");if(typeof pe!="object")return pe;throw new TypeError("@@toPrimitive must return a primitive value.")}return(se==="string"?String:Number)(ue)}const Ee={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}};let te=Ee.mouse;class ne extends ve.Component{constructor(){super(...arguments),wt(this,"dragging",!1),wt(this,"lastX",NaN),wt(this,"lastY",NaN),wt(this,"touchIdentifier",null),wt(this,"mounted",!1),wt(this,"handleDragStart",se=>{if(this.props.onMouseDown(se),!this.props.allowAnyClick&&typeof se.button=="number"&&se.button!==0)return!1;const de=this.findDOMNode();if(!de||!de.ownerDocument||!de.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument:pe}=de;if(this.props.disabled||!(se.target instanceof pe.defaultView.Node)||this.props.handle&&!(0,it.matchesSelectorAndParentsTo)(se.target,this.props.handle,de)||this.props.cancel&&(0,it.matchesSelectorAndParentsTo)(se.target,this.props.cancel,de))return;se.type==="touchstart"&&se.preventDefault();const ye=(0,it.getTouchIdentifier)(se);this.touchIdentifier=ye;const Ce=(0,at.getControlPosition)(se,ye,this);if(Ce==null)return;const{x:ze,y:Te}=Ce,Ie=(0,at.createCoreData)(this,ze,Te);(0,Ue.default)("DraggableCore: handleDragStart: %j",Ie),(0,Ue.default)("calling",this.props.onStart),!(this.props.onStart(se,Ie)===!1||this.mounted===!1)&&(this.props.enableUserSelectHack&&(0,it.addUserSelectStyles)(pe),this.dragging=!0,this.lastX=ze,this.lastY=Te,(0,it.addEvent)(pe,te.move,this.handleDrag),(0,it.addEvent)(pe,te.stop,this.handleDragStop))}),wt(this,"handleDrag",se=>{const de=(0,at.getControlPosition)(se,this.touchIdentifier,this);if(de==null)return;let{x:pe,y:ye}=de;if(Array.isArray(this.props.grid)){let Te=pe-this.lastX,Ie=ye-this.lastY;if([Te,Ie]=(0,at.snapToGrid)(this.props.grid,Te,Ie),!Te&&!Ie)return;pe=this.lastX+Te,ye=this.lastY+Ie}const Ce=(0,at.createCoreData)(this,pe,ye);if((0,Ue.default)("DraggableCore: handleDrag: %j",Ce),this.props.onDrag(se,Ce)===!1||this.mounted===!1){try{this.handleDragStop(new MouseEvent("mouseup"))}catch(Te){const Ie=document.createEvent("MouseEvents");Ie.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(Ie)}return}this.lastX=pe,this.lastY=ye}),wt(this,"handleDragStop",se=>{if(!this.dragging)return;const de=(0,at.getControlPosition)(se,this.touchIdentifier,this);if(de==null)return;let{x:pe,y:ye}=de;if(Array.isArray(this.props.grid)){let Ie=pe-this.lastX||0,Oe=ye-this.lastY||0;[Ie,Oe]=(0,at.snapToGrid)(this.props.grid,Ie,Oe),pe=this.lastX+Ie,ye=this.lastY+Oe}const Ce=(0,at.createCoreData)(this,pe,ye);if(this.props.onStop(se,Ce)===!1||this.mounted===!1)return!1;const Te=this.findDOMNode();Te&&this.props.enableUserSelectHack&&(0,it.removeUserSelectStyles)(Te.ownerDocument),(0,Ue.default)("DraggableCore: handleDragStop: %j",Ce),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,Te&&((0,Ue.default)("DraggableCore: Removing handlers"),(0,it.removeEvent)(Te.ownerDocument,te.move,this.handleDrag),(0,it.removeEvent)(Te.ownerDocument,te.stop,this.handleDragStop))}),wt(this,"onMouseDown",se=>(te=Ee.mouse,this.handleDragStart(se))),wt(this,"onMouseUp",se=>(te=Ee.mouse,this.handleDragStop(se))),wt(this,"onTouchStart",se=>(te=Ee.touch,this.handleDragStart(se))),wt(this,"onTouchEnd",se=>(te=Ee.touch,this.handleDragStop(se)))}componentDidMount(){this.mounted=!0;const se=this.findDOMNode();se&&(0,it.addEvent)(se,Ee.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const se=this.findDOMNode();if(se){const{ownerDocument:de}=se;(0,it.removeEvent)(de,Ee.mouse.move,this.handleDrag),(0,it.removeEvent)(de,Ee.touch.move,this.handleDrag),(0,it.removeEvent)(de,Ee.mouse.stop,this.handleDragStop),(0,it.removeEvent)(de,Ee.touch.stop,this.handleDragStop),(0,it.removeEvent)(se,Ee.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,it.removeUserSelectStyles)(de)}}findDOMNode(){var se,de;return(se=this.props)!==null&&se!==void 0&&se.nodeRef?(de=this.props)===null||de===void 0||(de=de.nodeRef)===null||de===void 0?void 0:de.current:dt.default.findDOMNode(this)}render(){return ve.cloneElement(ve.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}}on.default=ne,wt(ne,"displayName","DraggableCore"),wt(ne,"propTypes",{allowAnyClick:Ye.default.bool,children:Ye.default.node.isRequired,disabled:Ye.default.bool,enableUserSelectHack:Ye.default.bool,offsetParent:function(ue,se){if(ue[se]&&ue[se].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:Ye.default.arrayOf(Ye.default.number),handle:Ye.default.string,cancel:Ye.default.string,nodeRef:Ye.default.object,onStart:Ye.default.func,onDrag:Ye.default.func,onStop:Ye.default.func,onMouseDown:Ye.default.func,scale:Ye.default.number,className:Ze.dontSetMe,style:Ze.dontSetMe,transform:Ze.dontSetMe}),wt(ne,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1})},12911:function(fn,on,we){"use strict";const{default:ve,DraggableCore:Ye}=we(2637);fn.exports=ve,fn.exports.default=ve,fn.exports.DraggableCore=Ye},13957:function(fn,on,we){"use strict";Object.defineProperty(on,"__esModule",{value:!0}),on.addClassName=Ce,on.addEvent=xt,on.addUserSelectStyles=pe,on.createCSSTransform=te,on.createSVGTransform=ne,on.getTouch=se,on.getTouchIdentifier=de,on.getTranslation=ue,on.innerHeight=Ve,on.innerWidth=ut,on.matchesSelector=Ze,on.matchesSelectorAndParentsTo=Ue,on.offsetXYFromParent=Ee,on.outerHeight=De,on.outerWidth=wt,on.removeClassName=ze,on.removeEvent=nt,on.removeUserSelectStyles=ye;var ve=we(36641),Ye=it(we(32092));function dt(Te){if(typeof WeakMap!="function")return null;var Ie=new WeakMap,Oe=new WeakMap;return(dt=function(Re){return Re?Oe:Ie})(Te)}function it(Te,Ie){if(!Ie&&Te&&Te.__esModule)return Te;if(Te===null||typeof Te!="object"&&typeof Te!="function")return{default:Te};var Oe=dt(Ie);if(Oe&&Oe.has(Te))return Oe.get(Te);var Re={},rt=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var ot in Te)if(ot!=="default"&&Object.prototype.hasOwnProperty.call(Te,ot)){var Ct=rt?Object.getOwnPropertyDescriptor(Te,ot):null;Ct&&(Ct.get||Ct.set)?Object.defineProperty(Re,ot,Ct):Re[ot]=Te[ot]}return Re.default=Te,Oe&&Oe.set(Te,Re),Re}let at="";function Ze(Te,Ie){return at||(at=(0,ve.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(Oe){return(0,ve.isFunction)(Te[Oe])})),(0,ve.isFunction)(Te[at])?Te[at](Ie):!1}function Ue(Te,Ie,Oe){let Re=Te;do{if(Ze(Re,Ie))return!0;if(Re===Oe)return!1;Re=Re.parentNode}while(Re);return!1}function xt(Te,Ie,Oe,Re){if(!Te)return;const rt=bd({capture:!0},Re);Te.addEventListener?Te.addEventListener(Ie,Oe,rt):Te.attachEvent?Te.attachEvent("on"+Ie,Oe):Te["on"+Ie]=Oe}function nt(Te,Ie,Oe,Re){if(!Te)return;const rt=bd({capture:!0},Re);Te.removeEventListener?Te.removeEventListener(Ie,Oe,rt):Te.detachEvent?Te.detachEvent("on"+Ie,Oe):Te["on"+Ie]=null}function De(Te){let Ie=Te.clientHeight;const Oe=Te.ownerDocument.defaultView.getComputedStyle(Te);return Ie+=(0,ve.int)(Oe.borderTopWidth),Ie+=(0,ve.int)(Oe.borderBottomWidth),Ie}function wt(Te){let Ie=Te.clientWidth;const Oe=Te.ownerDocument.defaultView.getComputedStyle(Te);return Ie+=(0,ve.int)(Oe.borderLeftWidth),Ie+=(0,ve.int)(Oe.borderRightWidth),Ie}function Ve(Te){let Ie=Te.clientHeight;const Oe=Te.ownerDocument.defaultView.getComputedStyle(Te);return Ie-=(0,ve.int)(Oe.paddingTop),Ie-=(0,ve.int)(Oe.paddingBottom),Ie}function ut(Te){let Ie=Te.clientWidth;const Oe=Te.ownerDocument.defaultView.getComputedStyle(Te);return Ie-=(0,ve.int)(Oe.paddingLeft),Ie-=(0,ve.int)(Oe.paddingRight),Ie}function Ee(Te,Ie,Oe){const rt=Ie===Ie.ownerDocument.body?{left:0,top:0}:Ie.getBoundingClientRect(),ot=(Te.clientX+Ie.scrollLeft-rt.left)/Oe,Ct=(Te.clientY+Ie.scrollTop-rt.top)/Oe;return{x:ot,y:Ct}}function te(Te,Ie){const Oe=ue(Te,Ie,"px");return{[(0,Ye.browserPrefixToKey)("transform",Ye.default)]:Oe}}function ne(Te,Ie){return ue(Te,Ie,"")}function ue(Te,Ie,Oe){let{x:Re,y:rt}=Te,ot="translate(".concat(Re).concat(Oe,",").concat(rt).concat(Oe,")");if(Ie){const Ct="".concat(typeof Ie.x=="string"?Ie.x:Ie.x+Oe),gt="".concat(typeof Ie.y=="string"?Ie.y:Ie.y+Oe);ot="translate(".concat(Ct,", ").concat(gt,")")+ot}return ot}function se(Te,Ie){return Te.targetTouches&&(0,ve.findInArray)(Te.targetTouches,Oe=>Ie===Oe.identifier)||Te.changedTouches&&(0,ve.findInArray)(Te.changedTouches,Oe=>Ie===Oe.identifier)}function de(Te){if(Te.targetTouches&&Te.targetTouches[0])return Te.targetTouches[0].identifier;if(Te.changedTouches&&Te.changedTouches[0])return Te.changedTouches[0].identifier}function pe(Te){if(!Te)return;let Ie=Te.getElementById("react-draggable-style-el");Ie||(Ie=Te.createElement("style"),Ie.type="text/css",Ie.id="react-draggable-style-el",Ie.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
`,Ie.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;}
`,Te.getElementsByTagName("head")[0].appendChild(Ie)),Te.body&&Ce(Te.body,"react-draggable-transparent-selection")}function ye(Te){if(Te)try{if(Te.body&&ze(Te.body,"react-draggable-transparent-selection"),Te.selection)Te.selection.empty();else{const Ie=(Te.defaultView||window).getSelection();Ie&&Ie.type!=="Caret"&&Ie.removeAllRanges()}}catch(Ie){}}function Ce(Te,Ie){Te.classList?Te.classList.add(Ie):Te.className.match(new RegExp("(?:^|\\s)".concat(Ie,"(?!\\S)")))||(Te.className+=" ".concat(Ie))}function ze(Te,Ie){Te.classList?Te.classList.remove(Ie):Te.className=Te.className.replace(new RegExp("(?:^|\\s)".concat(Ie,"(?!\\S)"),"g"),"")}},32092:function(fn,on){"use strict";Object.defineProperty(on,"__esModule",{value:!0}),on.browserPrefixToKey=Ye,on.browserPrefixToStyle=dt,on.default=void 0,on.getPrefix=ve;const we=["Moz","Webkit","O","ms"];function ve(){var Ze;let Ue=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window=="undefined")return"";const xt=(Ze=window.document)===null||Ze===void 0||(Ze=Ze.documentElement)===null||Ze===void 0?void 0:Ze.style;if(!xt||Ue in xt)return"";for(let nt=0;nt<we.length;nt++)if(Ye(Ue,we[nt])in xt)return we[nt];return""}function Ye(Ze,Ue){return Ue?"".concat(Ue).concat(it(Ze)):Ze}function dt(Ze,Ue){return Ue?"-".concat(Ue.toLowerCase(),"-").concat(Ze):Ze}function it(Ze){let Ue="",xt=!0;for(let nt=0;nt<Ze.length;nt++)xt?(Ue+=Ze[nt].toUpperCase(),xt=!1):Ze[nt]==="-"?xt=!0:Ue+=Ze[nt];return Ue}var at=on.default=ve()},94187:function(fn,on){"use strict";Object.defineProperty(on,"__esModule",{value:!0}),on.default=we;function we(){}},60976:function(fn,on,we){"use strict";Object.defineProperty(on,"__esModule",{value:!0}),on.canDragX=at,on.canDragY=Ze,on.createCoreData=xt,on.createDraggableData=nt,on.getBoundPosition=dt,on.getControlPosition=Ue,on.snapToGrid=it;var ve=we(36641),Ye=we(13957);function dt(Ve,ut,Ee){if(!Ve.props.bounds)return[ut,Ee];let{bounds:te}=Ve.props;te=typeof te=="string"?te:De(te);const ne=wt(Ve);if(typeof te=="string"){const{ownerDocument:ue}=ne,se=ue.defaultView;let de;if(te==="parent"?de=ne.parentNode:de=ue.querySelector(te),!(de instanceof se.HTMLElement))throw new Error('Bounds selector "'+te+'" could not find an element.');const pe=de,ye=se.getComputedStyle(ne),Ce=se.getComputedStyle(pe);te={left:-ne.offsetLeft+(0,ve.int)(Ce.paddingLeft)+(0,ve.int)(ye.marginLeft),top:-ne.offsetTop+(0,ve.int)(Ce.paddingTop)+(0,ve.int)(ye.marginTop),right:(0,Ye.innerWidth)(pe)-(0,Ye.outerWidth)(ne)-ne.offsetLeft+(0,ve.int)(Ce.paddingRight)-(0,ve.int)(ye.marginRight),bottom:(0,Ye.innerHeight)(pe)-(0,Ye.outerHeight)(ne)-ne.offsetTop+(0,ve.int)(Ce.paddingBottom)-(0,ve.int)(ye.marginBottom)}}return(0,ve.isNum)(te.right)&&(ut=Math.min(ut,te.right)),(0,ve.isNum)(te.bottom)&&(Ee=Math.min(Ee,te.bottom)),(0,ve.isNum)(te.left)&&(ut=Math.max(ut,te.left)),(0,ve.isNum)(te.top)&&(Ee=Math.max(Ee,te.top)),[ut,Ee]}function it(Ve,ut,Ee){const te=Math.round(ut/Ve[0])*Ve[0],ne=Math.round(Ee/Ve[1])*Ve[1];return[te,ne]}function at(Ve){return Ve.props.axis==="both"||Ve.props.axis==="x"}function Ze(Ve){return Ve.props.axis==="both"||Ve.props.axis==="y"}function Ue(Ve,ut,Ee){const te=typeof ut=="number"?(0,Ye.getTouch)(Ve,ut):null;if(typeof ut=="number"&&!te)return null;const ne=wt(Ee),ue=Ee.props.offsetParent||ne.offsetParent||ne.ownerDocument.body;return(0,Ye.offsetXYFromParent)(te||Ve,ue,Ee.props.scale)}function xt(Ve,ut,Ee){const te=!(0,ve.isNum)(Ve.lastX),ne=wt(Ve);return te?{node:ne,deltaX:0,deltaY:0,lastX:ut,lastY:Ee,x:ut,y:Ee}:{node:ne,deltaX:ut-Ve.lastX,deltaY:Ee-Ve.lastY,lastX:Ve.lastX,lastY:Ve.lastY,x:ut,y:Ee}}function nt(Ve,ut){const Ee=Ve.props.scale;return{node:ut.node,x:Ve.state.x+ut.deltaX/Ee,y:Ve.state.y+ut.deltaY/Ee,deltaX:ut.deltaX/Ee,deltaY:ut.deltaY/Ee,lastX:Ve.state.x,lastY:Ve.state.y}}function De(Ve){return{left:Ve.left,top:Ve.top,right:Ve.right,bottom:Ve.bottom}}function wt(Ve){const ut=Ve.findDOMNode();if(!ut)throw new Error("<DraggableCore>: Unmounted during event!");return ut}},36641:function(fn,on){"use strict";Object.defineProperty(on,"__esModule",{value:!0}),on.dontSetMe=it,on.findInArray=we,on.int=dt,on.isFunction=ve,on.isNum=Ye;function we(at,Ze){for(let Ue=0,xt=at.length;Ue<xt;Ue++)if(Ze.apply(Ze,[at[Ue],Ue,at]))return at[Ue]}function ve(at){return typeof at=="function"||Object.prototype.toString.call(at)==="[object Function]"}function Ye(at){return typeof at=="number"&&!isNaN(at)}function dt(at){return parseInt(at,10)}function it(at,Ze,Ue){if(at[Ze])return new Error("Invalid prop ".concat(Ze," passed to ").concat(Ue," - do not set this, set it on the child."))}},51581:function(fn,on,we){"use strict";Object.defineProperty(on,"__esModule",{value:!0});var ve=function(){function Ve(ut,Ee){for(var te=0;te<Ee.length;te++){var ne=Ee[te];ne.enumerable=ne.enumerable||!1,ne.configurable=!0,"value"in ne&&(ne.writable=!0),Object.defineProperty(ut,ne.key,ne)}}return function(ut,Ee,te){return Ee&&Ve(ut.prototype,Ee),te&&Ve(ut,te),ut}}(),Ye=we(59301),dt=Ze(Ye),it=we(12708),at=Ze(it);function Ze(Ve){return Ve&&Ve.__esModule?Ve:{default:Ve}}function Ue(Ve,ut){var Ee={};for(var te in Ve)ut.indexOf(te)>=0||Object.prototype.hasOwnProperty.call(Ve,te)&&(Ee[te]=Ve[te]);return Ee}function xt(Ve,ut){if(!(Ve instanceof ut))throw new TypeError("Cannot call a class as a function")}function nt(Ve,ut){if(!Ve)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ut&&(typeof ut=="object"||typeof ut=="function")?ut:Ve}function De(Ve,ut){if(typeof ut!="function"&&ut!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ut);Ve.prototype=Object.create(ut&&ut.prototype,{constructor:{value:Ve,enumerable:!1,writable:!0,configurable:!0}}),ut&&(Object.setPrototypeOf?Object.setPrototypeOf(Ve,ut):Ve.__proto__=ut)}var wt=function(Ve){De(ut,Ve);function ut(Ee){xt(this,ut);var te=nt(this,(ut.__proto__||Object.getPrototypeOf(ut)).call(this,Ee));return te.scrollListener=te.scrollListener.bind(te),te.eventListenerOptions=te.eventListenerOptions.bind(te),te.mousewheelListener=te.mousewheelListener.bind(te),te}return ve(ut,[{key:"componentDidMount",value:function(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener()}},{key:"componentDidUpdate",value:function(){if(this.props.isReverse&&this.loadMore){var te=this.getParentElement(this.scrollComponent);te.scrollTop=te.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}},{key:"componentWillUnmount",value:function(){this.detachScrollListener(),this.detachMousewheelListener()}},{key:"isPassiveSupported",value:function(){var te=!1,ne={get passive(){te=!0}};try{document.addEventListener("test",null,ne),document.removeEventListener("test",null,ne)}catch(ue){}return te}},{key:"eventListenerOptions",value:function(){var te=this.props.useCapture;return this.isPassiveSupported()&&(te={useCapture:this.props.useCapture,passive:!0}),te}},{key:"setDefaultLoader",value:function(te){this.defaultLoader=te}},{key:"detachMousewheelListener",value:function(){var te=window;this.props.useWindow===!1&&(te=this.scrollComponent.parentNode),te.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}},{key:"detachScrollListener",value:function(){var te=window;this.props.useWindow===!1&&(te=this.getParentElement(this.scrollComponent)),te.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),te.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}},{key:"getParentElement",value:function(te){var ne=this.props.getScrollParent&&this.props.getScrollParent();return ne!=null?ne:te&&te.parentNode}},{key:"filterProps",value:function(te){return te}},{key:"attachScrollListener",value:function(){var te=this.getParentElement(this.scrollComponent);if(!(!this.props.hasMore||!te)){var ne=window;this.props.useWindow===!1&&(ne=te),ne.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),ne.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),ne.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}}},{key:"mousewheelListener",value:function(te){te.deltaY===1&&!this.isPassiveSupported()&&te.preventDefault()}},{key:"scrollListener",value:function(){var te=this.scrollComponent,ne=window,ue=this.getParentElement(te),se=void 0;if(this.props.useWindow){var de=document.documentElement||document.body.parentNode||document.body,pe=ne.pageYOffset!==void 0?ne.pageYOffset:de.scrollTop;this.props.isReverse?se=pe:se=this.calculateOffset(te,pe)}else this.props.isReverse?se=ue.scrollTop:se=te.scrollHeight-ue.scrollTop-ue.clientHeight;se<Number(this.props.threshold)&&te&&te.offsetParent!==null&&(this.detachScrollListener(),this.beforeScrollHeight=ue.scrollHeight,this.beforeScrollTop=ue.scrollTop,typeof this.props.loadMore=="function"&&(this.props.loadMore(this.pageLoaded+=1),this.loadMore=!0))}},{key:"calculateOffset",value:function(te,ne){return te?this.calculateTopPosition(te)+(te.offsetHeight-ne-window.innerHeight):0}},{key:"calculateTopPosition",value:function(te){return te?te.offsetTop+this.calculateTopPosition(te.offsetParent):0}},{key:"render",value:function(){var te=this,ne=this.filterProps(this.props),ue=ne.children,se=ne.element,de=ne.hasMore,pe=ne.initialLoad,ye=ne.isReverse,Ce=ne.loader,ze=ne.loadMore,Te=ne.pageStart,Ie=ne.ref,Oe=ne.threshold,Re=ne.useCapture,rt=ne.useWindow,ot=ne.getScrollParent,Ct=Ue(ne,["children","element","hasMore","initialLoad","isReverse","loader","loadMore","pageStart","ref","threshold","useCapture","useWindow","getScrollParent"]);Ct.ref=function(kt){te.scrollComponent=kt,Ie&&Ie(kt)};var gt=[ue];return de&&(Ce?ye?gt.unshift(Ce):gt.push(Ce):this.defaultLoader&&(ye?gt.unshift(this.defaultLoader):gt.push(this.defaultLoader))),dt.default.createElement(se,Ct,gt)}}]),ut}(Ye.Component);wt.propTypes={children:at.default.node.isRequired,element:at.default.node,hasMore:at.default.bool,initialLoad:at.default.bool,isReverse:at.default.bool,loader:at.default.node,loadMore:at.default.func.isRequired,pageStart:at.default.number,ref:at.default.func,getScrollParent:at.default.func,threshold:at.default.number,useCapture:at.default.bool,useWindow:at.default.bool},wt.defaultProps={element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null},on.default=wt,fn.exports=on.default},26724:function(fn,on,we){fn.exports=we(51581)},80010:function(fn,on,we){"use strict";on.__esModule=!0,on.default=void 0;var ve=at(we(59301)),Ye=we(12911),dt=we(73638),it=we(6217);function at(Ee){return Ee&&Ee.__esModule?Ee:{default:Ee}}function Ze(){return Ze=Object.assign||function(Ee){for(var te=1;te<arguments.length;te++){var ne=arguments[te];for(var ue in ne)Object.prototype.hasOwnProperty.call(ne,ue)&&(Ee[ue]=ne[ue])}return Ee},Ze.apply(this,arguments)}function Ue(Ee,te){var ne=Object.keys(Ee);if(Object.getOwnPropertySymbols){var ue=Object.getOwnPropertySymbols(Ee);te&&(ue=ue.filter(function(se){return Object.getOwnPropertyDescriptor(Ee,se).enumerable})),ne.push.apply(ne,ue)}return ne}function xt(Ee){for(var te=1;te<arguments.length;te++){var ne=arguments[te]!=null?arguments[te]:{};te%2?Ue(Object(ne),!0).forEach(function(ue){Ve(Ee,ue,ne[ue])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Ee,Object.getOwnPropertyDescriptors(ne)):Ue(Object(ne)).forEach(function(ue){Object.defineProperty(Ee,ue,Object.getOwnPropertyDescriptor(ne,ue))})}return Ee}function nt(Ee,te){if(Ee==null)return{};var ne={},ue=Object.keys(Ee),se,de;for(de=0;de<ue.length;de++)se=ue[de],!(te.indexOf(se)>=0)&&(ne[se]=Ee[se]);return ne}function De(Ee){if(Ee===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Ee}function wt(Ee,te){Ee.prototype=Object.create(te.prototype),Ee.prototype.constructor=Ee,Ee.__proto__=te}function Ve(Ee,te,ne){return te in Ee?Object.defineProperty(Ee,te,{value:ne,enumerable:!0,configurable:!0,writable:!0}):Ee[te]=ne,Ee}var ut=function(Ee){wt(te,Ee);function te(){for(var ue,se=arguments.length,de=new Array(se),pe=0;pe<se;pe++)de[pe]=arguments[pe];return ue=Ee.call.apply(Ee,[this].concat(de))||this,Ve(De(ue),"state",void 0),Ve(De(ue),"lastHandleRect",null),Ve(De(ue),"slack",null),ue}var ne=te.prototype;return ne.componentWillUnmount=function(){this.resetData()},ne.lockAspectRatio=function(se,de,pe){return de=se/pe,se=de*pe,[se,de]},ne.resetData=function(){this.lastHandleRect=this.slack=null},ne.runConstraints=function(se,de){var pe=[this.props.minConstraints,this.props.maxConstraints],ye=pe[0],Ce=pe[1];if(!ye&&!Ce)return[se,de];if(this.props.lockAspectRatio){var ze=de===this.props.height;if(ze){var Te=this.props.width/this.props.height;de=se/Te,se=de*Te}else{var Ie=this.props.height/this.props.width;se=de/Ie,de=se*Ie}}var Oe=se,Re=de,rt=this.slack||[0,0],ot=rt[0],Ct=rt[1];return se+=ot,de+=Ct,ye&&(se=Math.max(ye[0],se),de=Math.max(ye[1],de)),Ce&&(se=Math.min(Ce[0],se),de=Math.min(Ce[1],de)),this.slack=[ot+(Oe-se),Ct+(Re-de)],[se,de]},ne.resizeHandler=function(se,de){var pe=this;return function(ye,Ce){var ze=Ce.node,Te=Ce.deltaX,Ie=Ce.deltaY;se==="onResizeStart"&&pe.resetData();var Oe=(pe.props.axis==="both"||pe.props.axis==="x")&&de!=="n"&&de!=="s",Re=(pe.props.axis==="both"||pe.props.axis==="y")&&de!=="e"&&de!=="w";if(!(!Oe&&!Re)){var rt=de[0],ot=de[de.length-1],Ct=ze.getBoundingClientRect();if(pe.lastHandleRect!=null){if(ot==="w"){var gt=Ct.left-pe.lastHandleRect.left;Te+=gt}if(rt==="n"){var kt=Ct.top-pe.lastHandleRect.top;Ie+=kt}}pe.lastHandleRect=Ct,ot==="w"&&(Te=-Te),rt==="n"&&(Ie=-Ie);var Lt=pe.props.width+(Oe?Te/pe.props.transformScale:0),Ot=pe.props.height+(Re?Ie/pe.props.transformScale:0),Nt=pe.runConstraints(Lt,Ot);Lt=Nt[0],Ot=Nt[1];var tn=Lt!==pe.props.width||Ot!==pe.props.height,st=typeof pe.props[se]=="function"?pe.props[se]:null,He=se==="onResize"&&!tn;st&&!He&&(typeof ye.persist=="function"&&ye.persist(),st(ye,{node:ze,size:{width:Lt,height:Ot},handle:de})),se==="onResizeStop"&&pe.resetData()}}},ne.renderResizeHandle=function(se){var de=this.props.handle;return de?typeof de=="function"?de(se):de:ve.default.createElement("span",{className:"react-resizable-handle react-resizable-handle-"+se})},ne.render=function(){var se=this,de=this.props,pe=de.children,ye=de.className,Ce=de.draggableOpts,ze=de.width,Te=de.height,Ie=de.handle,Oe=de.handleSize,Re=de.lockAspectRatio,rt=de.axis,ot=de.minConstraints,Ct=de.maxConstraints,gt=de.onResize,kt=de.onResizeStop,Lt=de.onResizeStart,Ot=de.resizeHandles,Nt=de.transformScale,tn=nt(de,["children","className","draggableOpts","width","height","handle","handleSize","lockAspectRatio","axis","minConstraints","maxConstraints","onResize","onResizeStop","onResizeStart","resizeHandles","transformScale"]);return(0,dt.cloneElement)(pe,xt(xt({},tn),{},{className:(ye?ye+" ":"")+"react-resizable",children:[].concat(pe.props.children,Ot.map(function(st){return ve.default.createElement(Ye.DraggableCore,Ze({},Ce,{key:"resizableHandle-"+st,onStop:se.resizeHandler("onResizeStop",st),onStart:se.resizeHandler("onResizeStart",st),onDrag:se.resizeHandler("onResize",st)}),se.renderResizeHandle(st))}))}))},te}(ve.default.Component);on.default=ut,Ve(ut,"propTypes",it.resizableProps),Ve(ut,"defaultProps",{handleSize:[20,20],lockAspectRatio:!1,axis:"both",minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:["se"],transformScale:1})},60842:function(fn,on,we){"use strict";var ve;ve=!0,on.default=void 0;var Ye=xt(we(59301)),dt=Ze(we(12708)),it=Ze(we(80010)),at=we(6217);function Ze(ue){return ue&&ue.__esModule?ue:{default:ue}}function Ue(){if(typeof WeakMap!="function")return null;var ue=new WeakMap;return Ue=function(){return ue},ue}function xt(ue){if(ue&&ue.__esModule)return ue;if(ue===null||typeof ue!="object"&&typeof ue!="function")return{default:ue};var se=Ue();if(se&&se.has(ue))return se.get(ue);var de={},pe=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var ye in ue)if(Object.prototype.hasOwnProperty.call(ue,ye)){var Ce=pe?Object.getOwnPropertyDescriptor(ue,ye):null;Ce&&(Ce.get||Ce.set)?Object.defineProperty(de,ye,Ce):de[ye]=ue[ye]}return de.default=ue,se&&se.set(ue,de),de}function nt(){return nt=Object.assign||function(ue){for(var se=1;se<arguments.length;se++){var de=arguments[se];for(var pe in de)Object.prototype.hasOwnProperty.call(de,pe)&&(ue[pe]=de[pe])}return ue},nt.apply(this,arguments)}function De(ue,se){var de=Object.keys(ue);if(Object.getOwnPropertySymbols){var pe=Object.getOwnPropertySymbols(ue);se&&(pe=pe.filter(function(ye){return Object.getOwnPropertyDescriptor(ue,ye).enumerable})),de.push.apply(de,pe)}return de}function wt(ue){for(var se=1;se<arguments.length;se++){var de=arguments[se]!=null?arguments[se]:{};se%2?De(Object(de),!0).forEach(function(pe){te(ue,pe,de[pe])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ue,Object.getOwnPropertyDescriptors(de)):De(Object(de)).forEach(function(pe){Object.defineProperty(ue,pe,Object.getOwnPropertyDescriptor(de,pe))})}return ue}function Ve(ue,se){if(ue==null)return{};var de={},pe=Object.keys(ue),ye,Ce;for(Ce=0;Ce<pe.length;Ce++)ye=pe[Ce],!(se.indexOf(ye)>=0)&&(de[ye]=ue[ye]);return de}function ut(ue){if(ue===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ue}function Ee(ue,se){ue.prototype=Object.create(se.prototype),ue.prototype.constructor=ue,ue.__proto__=se}function te(ue,se,de){return se in ue?Object.defineProperty(ue,se,{value:de,enumerable:!0,configurable:!0,writable:!0}):ue[se]=de,ue}var ne=function(ue){Ee(se,ue);function se(){for(var pe,ye=arguments.length,Ce=new Array(ye),ze=0;ze<ye;ze++)Ce[ze]=arguments[ze];return pe=ue.call.apply(ue,[this].concat(Ce))||this,te(ut(pe),"state",{width:pe.props.width,height:pe.props.height,propsWidth:pe.props.width,propsHeight:pe.props.height}),te(ut(pe),"onResize",function(Te,Ie){var Oe=Ie.size;pe.props.onResize?(Te.persist&&Te.persist(),pe.setState(Oe,function(){return pe.props.onResize&&pe.props.onResize(Te,Ie)})):pe.setState(Oe)}),pe}se.getDerivedStateFromProps=function(ye,Ce){return Ce.propsWidth!==ye.width||Ce.propsHeight!==ye.height?{width:ye.width,height:ye.height,propsWidth:ye.width,propsHeight:ye.height}:null};var de=se.prototype;return de.render=function(){var ye=this.props,Ce=ye.handle,ze=ye.handleSize,Te=ye.onResize,Ie=ye.onResizeStart,Oe=ye.onResizeStop,Re=ye.draggableOpts,rt=ye.minConstraints,ot=ye.maxConstraints,Ct=ye.lockAspectRatio,gt=ye.axis,kt=ye.width,Lt=ye.height,Ot=ye.resizeHandles,Nt=ye.style,tn=ye.transformScale,st=Ve(ye,["handle","handleSize","onResize","onResizeStart","onResizeStop","draggableOpts","minConstraints","maxConstraints","lockAspectRatio","axis","width","height","resizeHandles","style","transformScale"]);return Ye.createElement(it.default,{axis:gt,draggableOpts:Re,handle:Ce,handleSize:ze,height:this.state.height,lockAspectRatio:Ct,maxConstraints:ot,minConstraints:rt,onResizeStart:Ie,onResize:this.onResize,onResizeStop:Oe,resizeHandles:Ot,transformScale:tn,width:this.state.width},Ye.createElement("div",nt({},st,{style:wt(wt({},Nt),{},{width:this.state.width+"px",height:this.state.height+"px"})})))},se}(Ye.Component);on.default=ne,te(ne,"propTypes",wt(wt({},at.resizableProps),{},{children:dt.default.element}))},6217:function(fn,on,we){"use strict";on.__esModule=!0,on.resizableProps=void 0;var ve=dt(we(12708)),Ye=we(12911);function dt(at){return at&&at.__esModule?at:{default:at}}var it={axis:ve.default.oneOf(["both","x","y","none"]),className:ve.default.string,children:ve.default.element.isRequired,draggableOpts:ve.default.shape({allowAnyClick:ve.default.bool,cancel:ve.default.string,children:ve.default.node,disabled:ve.default.bool,enableUserSelectHack:ve.default.bool,offsetParent:ve.default.node,grid:ve.default.arrayOf(ve.default.number),handle:ve.default.string,nodeRef:ve.default.object,onStart:ve.default.func,onDrag:ve.default.func,onStop:ve.default.func,onMouseDown:ve.default.func,scale:ve.default.number}),height:ve.default.number.isRequired,handle:ve.default.oneOfType([ve.default.node,ve.default.func]),handleSize:ve.default.arrayOf(ve.default.number),lockAspectRatio:ve.default.bool,maxConstraints:ve.default.arrayOf(ve.default.number),minConstraints:ve.default.arrayOf(ve.default.number),onResizeStop:ve.default.func,onResizeStart:ve.default.func,onResize:ve.default.func,resizeHandles:ve.default.arrayOf(ve.default.oneOf(["s","w","e","n","sw","nw","se","ne"])),transformScale:ve.default.number,width:ve.default.number.isRequired};on.resizableProps=it},73638:function(fn,on,we){"use strict";on.__esModule=!0,on.cloneElement=Ze;var ve=Ye(we(59301));function Ye(Ue){return Ue&&Ue.__esModule?Ue:{default:Ue}}function dt(Ue,xt){var nt=Object.keys(Ue);if(Object.getOwnPropertySymbols){var De=Object.getOwnPropertySymbols(Ue);xt&&(De=De.filter(function(wt){return Object.getOwnPropertyDescriptor(Ue,wt).enumerable})),nt.push.apply(nt,De)}return nt}function it(Ue){for(var xt=1;xt<arguments.length;xt++){var nt=arguments[xt]!=null?arguments[xt]:{};xt%2?dt(Object(nt),!0).forEach(function(De){at(Ue,De,nt[De])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Ue,Object.getOwnPropertyDescriptors(nt)):dt(Object(nt)).forEach(function(De){Object.defineProperty(Ue,De,Object.getOwnPropertyDescriptor(nt,De))})}return Ue}function at(Ue,xt,nt){return xt in Ue?Object.defineProperty(Ue,xt,{value:nt,enumerable:!0,configurable:!0,writable:!0}):Ue[xt]=nt,Ue}function Ze(Ue,xt){return xt.style&&Ue.props.style&&(xt.style=it(it({},Ue.props.style),xt.style)),xt.className&&Ue.props.className&&(xt.className=Ue.props.className+" "+xt.className),ve.default.cloneElement(Ue,xt)}},9221:function(fn,on,we){"use strict";fn.exports=function(){throw new Error("Don't instantiate Resizable directly! Use require('react-resizable').Resizable")},fn.exports.Resizable=we(80010).default,fn.exports.ResizableBox=we(60842).default},25510:function(fn){"use strict";fn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAiwAAAIsCAYAAADRd/LpAAAgAElEQVR4Xuyda5BtVXXvV3efc+CAYBQRjaJBeWjiVVKVB0mMUV6GKv0cvVVG/XTrViUlSd0bqUoQg4KapKJW8j3mWinNx1SRSgkciKARYiqi1ycvFZSggHgFDofz6L71m3v/9xk9eq695ty91t67u8eimu6z91zzMcaYY/znGGPOudLEExQICgQFggJBgaBAUGDJKbBC/26+98jGkvczuhcUCAoEBYICQYGgwB6lwJUXnroSgGWPMj+GHRQICgQFggJBgZ1CgS2A5YoLTtkpfY9+BgWCAkGBoEBQICiwyylwy33PpREGYNnljI7hBQWCAkGBoEBQYCdTIADLTuZe9D0oEBQICgQFggJ7hAIBWPYIo2OYQYGgQFAgKBAU2Mk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bJ8Szjhphs+bOC5YO3FOvvPyy/ebMM+zggw6y5595zsaMHm2LTppgL7/wYtiQvOOu/2jv/cAH7P27vc/m2Ov2u4vOtyuuuNyO+eY3bez4Cbbi8svbqy/PtJf+9oLNnTXbRsydZ8d+81u21VZb2wpvfasdcMD+dtIpPwoxLJMmTwrbp595/Anb7O1vt2223Mq+9pWv2siJE+33l15iJ//0p/brs39jy660oj14/73hbKQVV1jBPrznXnbAgQeGocAVRF+gr790rnUBLAWwtCsOC2DJp1wBLAWw5HNNB54ogKUZsMjCcuXlV9hvzzrHvnPccTZ50mRbcurUEAD68ssvhziM0WPG2vhJE23Ft65kxxx/rM18eaZ9fr/97E+3/skmjB9v3zjqKFt6yaXs+quutUsvuMiuue5aW2T8Inbu+efZVltvHbZG33LrLfaRj3zEXnvtVVtnnbXt9F/+0iZMnBjcUQR7H3HEkbbV5pvZT37ykwBifnDiD0KW1n9+3wfsC1/6oq215po2ZpGxfUGsNrtvU01I+DbK5r4+x8aMGGUv/O0Fm3H3Pfbv/7a3PXD/X23XXXe19ddfzzbb5G12wcUX2+k//6W99tosW3+99e1XZ54Z3DCf+PQn7eprrrannn/aPvjB3e0D73+/PfPUU3brLX+y478JPSbaN75xtG280UZhq/deH/mwzXx1pu20y062yz/ubBPfsqjtt+8X7MmHH7X11p5m//Otb9vqq69tN15/rZ140g/sxz/7ic0dO9Le99732YYbTLcVll/epq21tm20ySbzdzD17S9iy7cy7gZXyPw5UABLASztisMCWPIpVwBLASz5XNOBJwpg6QMs7CB59NFHbcsttwxU1Xb4kOhtvmK84vLf2zlnnWXHH3ucTZo4ySZNmmSjx4wOwbFYENiGO2nRybbKaqvaMccdazded4Mdeeih9tijj4Wg2lN/9rOwK2jG7XfY1b//vX3xC1+28YtOsF+feaZtseWWNmvOHLvplpsDYGG30Lrrrms//elPQ06Na66+OgCWww873LbeZhs76Yc/tD/84UY78cQT7cKLLrL37/FB+++v7G9rrLGmjSADLwnm5r7WlzyMlLbs+QnpS14P7bn5pltt749+xJZdehk78sgjbOONN7IllphiL738ou237352+SWX29hRY+17J37fVnjrCvbxT37C/vDHP9riUxcPcSwrLLO8vfDC32zGXXfZx/b+t5Cw8dvHn2Brr72O3XvfvfbZfT9jq6y+in1or73sA8ThjFvEDjn8SDvzF7+2xSZOtgM//2V7/7+83/508y32fz/8vp38s1Ns1PhF7Mprr7ZVlls+ZLcdM2qMjRnLoZEcc9C3zbtvbxCRyH1gZX4aluISKjEsbUvDAljySVcASwEs+VzTgScKYGkGLH0JZV+3q6+6yn7323PtW0cfbWuvsaZt+45t+/JdjCThGnlMRtioMWNssSmL2ft2+4Cdecav7bhvHWcv/O1vtsvOO9uJP/iBjRk5xh595CG76Y832gfe///sLYsvZr88/XTbfMstQv6Tm2+91fbYfY/g/thg/fUDYFl08mS7WoDl8CNtm222thN/eJLdfPNNAbj87ne/tX9833vtawd9LcTUAFiwrMx9ffb8RGucJzSq75yiESPt7rtn2JVXXm2f/cxnbf31N7Djjv2WTZ++QThO4PUR8+yggw6ys848y5576nk79LDDbM01VrPPf+m/QgDt6musbuedf74tOXVJe+WVl+0v9/3F9tjjQ/bIww/bN446Ouyauv322+yrB+5vSy+7tG2+xWb2trdvYiNHj7RzLrzYbrjyGpsy+S22z3982j7x8U/aH2/6g/3gRyfZz375c3vLkovbTTfdbMtNmdJ3oGJIudJ34GII8OGMGfH8/DOaOCuJq1hYioWlXXFYAEs+5QpgKYAln2s68EQBLM2AhWX9vLlz7bprr7XzzzvPjv7GUbb9dtvbFz//haDAcVPMsXk2dvy4cA4QwGPqUkvZ9/7ve/a9737PXnv1VfvAbrvZccceGzLG/u3F5+z2O2+zbbZ5hy2x5FT7xS9+YVtsvkVwdtzyp1tst/d/MOQq2XD6dPvZz061iePH2zVXX2OXX3G5HXHkkbbV1lvZD086yW67/TY75eST7de//rW9Y4ft7agjjrT11l03HHgYzhsaafbySy8FlxWuq3Hjxtn4CRPt5ptvtQsvvMj++7+/attsu7Udc8yxtu5664YTnIl1OeHbJ9h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rjeRsAIGAEjYASMQN0ITAhL3WJaOiNgBIyAETACRmC1I/C/+Ryxj68oilIAAAAASUVORK5CYII="},32637:function(fn,on,we){"use strict";fn.exports=we.p+"static/AssistantCode3.a8740efb.jpeg"},93314:function(fn){"use strict";fn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAACaCAYAAADl9acYAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQd4U1Ubfs/NaJtO9kzLahFQEJkiUBBFUFFkCCjiAAVFERT5FREQQQXBBcpysWRP2RtkKRsEOphNodCZdDfjnv85CU2TZt2bhABNDw9PmtzvrO+c957xLQIP0pkz1yrQIEmwwcDzHhTj91klEo7jpcG5zetWUJdmRjmPvTM9GI9JgSGvadOoLE9KJJ5kPp2YXLtZdO1kT8ooz2vigCNelvPYezPEG7z0CDAn4pJqPvJA5A3vdcl/S3LEy3Iee29OeIOX5YDx3nh4VFI5YDxin6DM5YARxKb7g6gcMHd+nMoBc+d57LKGhCQ1ZURBCoVL2nKCO8sBZWW50x1TOWDuLP8FlV4OGEFs8glROWB8wmbPKikHjGf882bucsB4k5t3qKxywNwhxrpRbJkGTOx0ehlA3d9e5VEtzA3ulGe55zmg1QOfrCVo34BgQGvr5rLDRl4RRZG+5NjBESBc4FHw1LlrCAuPsCo0JjKi7J5hYqfTXADBq4byCJLf82Nf3kA3OfD9LgKdgeCzZ4CUTJ1VKQFyKQgpmeMSjiKvQC+oplspN/wOMDcBVFv0Bo+KwYJ4VE50H3Jg7j6CWzkEX74A3MrSgTfeKZpSaBCHcAVn/JunBHlFPDR5BkG9LMjPt7mZLOtbskQADea9wqOW9coqiGHlRPcHBxYcJriQQvB9P+v2cqCwWFxgoOJk6JeTNX4HmJMAHv6xP4/6VXw/+OxNx/bM/pIohdUE9VW/VxwjOHiJYO5A6xolpGSpYW3jIW4w/A8wM+h+UHSY2pvHgzV9NXymeor0wPc7Cf7XzWJ/4Nsm+Ly2LzZx+OwZ3yuVbzhNsPEMwcI3rM8w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Cgydslc+Eqk8nNoSiYIRn7r9PpUCEiAn/vMxvAepN1BYTgFkBuUYoUApoCEBYcWEUpuSaRSK/UqIBkQghbZX2W7jhgKKWylCx9WwOPdoTQhylIE0IRbemzzGe9La+oTHGA+aWjBIkE9Byl5JSEw6EaFaRHCCFs+3lH0h0FTHK6bjIFhoNtm8pTOQd8wgGiJsBPtSvLrAIPe6vqOw8YguGg5YDx1oCVl+OCA4SoCb1PAcO6Zt6SAe0IpQ9TigcBRANwHhSxfGaUc8A1B1g4s0RC8B8l5JQE9/mWzFF/iw/9hOjrGkCiYKDmQz9AaxKCqpSSagAtP/S7njRllIIUEELZgT+VgqZwIDeMh34JUUlAr1FaRg/9noxm8bUy1esq6+1cK5vORiS8/FrZEy7fmbzOrpUBqgGImhCoCUqulaU8zSBSWbpEh/SqVYmVz+0700rxpd7RM4z45ng3hz3BJSREoadQSDkSZKBQgPIKUAeCS8IHMiElE16aBZeAnICTWQouCYHUJMQ0Ci9vCy6JlIJKOJOAkqNMcGkrwCTMFJdYCCwtBZilBZbsO5NWwiQPoaUFlsQouGQSS8oTkzCzRHAJGIWVtLTgEryOAtpiwSUTWjJhJqi14JKnKCKEFoKgEITLlxDk63laICXIh4Hme0Nw6d3RvzOl/R8AdGoXzom1qQAAAABJRU5ErkJggg=="},96622:function(fn){"use strict";fn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAUCAYAAACeXl35AAAAAXNSR0IArs4c6QAAAI5JREFUSEtjZKASMI65Jnl2idZzQsYxElJArLxR/CVjxr8szwhZSlULQY4jZCnVLSRkKU0sxGcpzSzEZSkjKLKJTRjkqEOPU5pbiO5TuliIbCndLIRZOnwthCUeuvgQOaXS3EKMbEFO3sKmB1t+xlau0qykwVWI08RCfDUG1S2ka/VEyDJw5qdWoiG2iQEA4ntvEVdpqFkAAAAASUVORK5CYII="},12971:function(fn){"use strict";fn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAcCAYAAAAJK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dQHKfyTcn/QOo7vUqbqS7sqqy/kzyA2Ttyp/LUtfoUmaOqHAVtj9sYbq1F/OlQxBvsCJ84/STL274zDWODWOD/uF8xlwpf6v2flucwfSU6+tXZAsBYsSX5wh6TQ+o/zoHygTub4zP+vSs7X2BWZ9+2vyyHOh/orU2G6/sPeSOntWeNpYpLmQ/XObrBP7g/XU3ikL2v8AIAf8etAcp/JNxxxyddj4b5J3GSmF6y3TheG4qWOHGPTX2rosmtKoiMdkJxA1t++BGa0idji4YDQlSF8z4PY6FkfxlWWUG259vIPiGwcfoKU4gNDAssOZcTIRWhaOQUU35lHZIQpWuOwciOqDV7h9zmNb0sGHZHpivpY0fNdbZJkd7HLJcaxq83fSwZ4nmeSMI0D5XJfGcETmxyFjSUUrRtL2NI5/d9h0Jp2HSOBuxSTIzMxvbbIsgzLL8tPCgrSMkyzKDnHW9qtcNLPCDHIqQwQjNIIVkQ7FfNI9zl59TWeBD11jTqR1tIvrKda2d/e3kmOOIW3vLiR7E6asQTyjjNeqDGMKFKrWCariPcqrz5O1tik2blTb5tPGx2rgU9VjmPUEWSWYGmoKSN61fBSYZgiSnsRSlIZRBRzyuRo2tRE52nlB5NeOOObkDzCzPhmY5j2OVqo5FTvpevk3v+nNcnStciqioqKiqi87CieF7hkarXNVUVFTp16flP8AUX7oqfRU+qc4DIwzGkG5HNciKiovX7/hf8VPsqL0VFRUVEVOYc6+c+OOOOOOOOOOOOOOOOOOOOOOOObjjzFTMhhY573uRqI1FXrtevk7r+mtanaucqoiIiqqoic7BCeZ7RjarnOVERETr06/lf8AET7qq/RE+q84EIwLHEI5GtaiqqqvT7fhP9VfsiJ1VVVERFVef//Z"},69429:function(fn,on,we){"use strict";fn.exports=we.p+"static/lock.1b5026ee.png"},16722:function(fn,on,we){"use strict";we.d(on,{Z:function(){return xt}});const ve=nt=>typeof nt=="object"&&nt!=null&&nt.nodeType===1,Ye=(nt,De)=>(!De||nt!=="hidden")&&nt!=="visible"&&nt!=="clip",dt=(nt,De)=>{if(nt.clientHeight<nt.scrollHeight||nt.clientWidth<nt.scrollWidth){const wt=getComputedStyle(nt,null);return Ye(wt.overflowY,De)||Ye(wt.overflowX,De)||(Ve=>{const ut=(Ee=>{if(!Ee.ownerDocument||!Ee.ownerDocument.defaultView)return null;try{return Ee.ownerDocument.defaultView.frameElement}catch(te){return null}})(Ve);return!!ut&&(ut.clientHeight<Ve.scrollHeight||ut.clientWidth<Ve.scrollWidth)})(nt)}return!1},it=(nt,De,wt,Ve,ut,Ee,te,ne)=>Ee<nt&&te>De||Ee>nt&&te<De?0:Ee<=nt&&ne<=wt||te>=De&&ne>=wt?Ee-nt-Ve:te>De&&ne<wt||Ee<nt&&ne>wt?te-De+ut:0,at=nt=>{const De=nt.parentElement;return De==null?nt.getRootNode().host||null:De},Ze=(nt,De)=>{var wt,Ve,ut,Ee;if(typeof document=="undefined")return[];const{scrollMode:te,block:ne,inline:ue,boundary:se,skipOverflowHiddenElements:de}=De,pe=typeof se=="function"?se:_t=>_t!==se;if(!ve(nt))throw new TypeError("Invalid target");const ye=document.scrollingElement||document.documentElement,Ce=[];let ze=nt;for(;ve(ze)&&pe(ze);){if(ze=at(ze),ze===ye){Ce.push(ze);break}ze!=null&&ze===document.body&&dt(ze)&&!dt(document.documentElement)||ze!=null&&dt(ze,de)&&Ce.push(ze)}const Te=(Ve=(wt=window.visualViewport)==null?void 0:wt.width)!=null?Ve:innerWidth,Ie=(Ee=(ut=window.visualViewport)==null?void 0:ut.height)!=null?Ee:innerHeight,{scrollX:Oe,scrollY:Re}=window,{height:rt,width:ot,top:Ct,right:gt,bottom:kt,left:Lt}=nt.getBoundingClientRect(),{top:Ot,right:Nt,bottom:tn,left:st}=(_t=>{const Mt=window.getComputedStyle(_t);return{top:parseFloat(Mt.scrollMarginTop)||0,right:parseFloat(Mt.scrollMarginRight)||0,bottom:parseFloat(Mt.scrollMarginBottom)||0,left:parseFloat(Mt.scrollMarginLeft)||0}})(nt);let He=ne==="start"||ne==="nearest"?Ct-Ot:ne==="end"?kt+tn:Ct+rt/2-Ot+tn,Rt=ue==="center"?Lt+ot/2-st+Nt:ue==="end"?gt+Nt:Lt-st;const Zt=[];for(let _t=0;_t<Ce.length;_t++){const Mt=Ce[_t],{height:jt,width:an,top:Dn,right:Dt,bottom:gn,left:yt}=Mt.getBoundingClientRect();if(te==="if-needed"&&Ct>=0&&Lt>=0&&kt<=Ie&&gt<=Te&&(Mt===ye&&!dt(Mt)||Ct>=Dn&&kt<=gn&&Lt>=yt&&gt<=Dt))return Zt;const Zn=getComputedStyle(Mt),vi=parseInt(Zn.borderLeftWidth,10),We=parseInt(Zn.borderTopWidth,10),Fe=parseInt(Zn.borderRightWidth,10),xe=parseInt(Zn.borderBottomWidth,10);let Ne=0,_e=0;const be="offsetWidth"in Mt?Mt.offsetWidth-Mt.clientWidth-vi-Fe:0,tt="offsetHeight"in Mt?Mt.offsetHeight-Mt.clientHeight-We-xe:0,Xt="offsetWidth"in Mt?Mt.offsetWidth===0?0:an/Mt.offsetWidth:0,Bt="offsetHeight"in Mt?Mt.offsetHeight===0?0:jt/Mt.offsetHeight:0;if(ye===Mt)Ne=ne==="start"?He:ne==="end"?He-Ie:ne==="nearest"?it(Re,Re+Ie,Ie,We,xe,Re+He,Re+He+rt,rt):He-Ie/2,_e=ue==="start"?Rt:ue==="center"?Rt-Te/2:ue==="end"?Rt-Te:it(Oe,Oe+Te,Te,vi,Fe,Oe+Rt,Oe+Rt+ot,ot),Ne=Math.max(0,Ne+Re),_e=Math.max(0,_e+Oe);else{Ne=ne==="start"?He-Dn-We:ne==="end"?He-gn+xe+tt:ne==="nearest"?it(Dn,gn,jt,We,xe+tt,He,He+rt,rt):He-(Dn+jt/2)+tt/2,_e=ue==="start"?Rt-yt-vi:ue==="center"?Rt-(yt+an/2)+be/2:ue==="end"?Rt-Dt+Fe+be:it(yt,Dt,an,vi,Fe+be,Rt,Rt+ot,ot);const{scrollLeft:nn,scrollTop:Tt}=Mt;Ne=Bt===0?0:Math.max(0,Math.min(Tt+Ne/Bt,Mt.scrollHeight-jt/Bt+tt)),_e=Xt===0?0:Math.max(0,Math.min(nn+_e/Xt,Mt.scrollWidth-an/Xt+be)),He+=Tt-Ne,Rt+=nn-_e}Zt.push({el:Mt,top:Ne,left:_e})}return Zt},Ue=nt=>nt===!1?{block:"end",inline:"nearest"}:(De=>De===Object(De)&&Object.keys(De).length!==0)(nt)?nt:{block:"start",inline:"nearest"};function xt(nt,De){if(!nt.isConnected||!(ut=>{let Ee=ut;for(;Ee&&Ee.parentNode;){if(Ee.parentNode===document)return!0;Ee=Ee.parentNode instanceof ShadowRoot?Ee.parentNode.host:Ee.parentNode}return!1})(nt))return;const wt=(ut=>{const Ee=window.getComputedStyle(ut);return{top:parseFloat(Ee.scrollMarginTop)||0,right:parseFloat(Ee.scrollMarginRight)||0,bottom:parseFloat(Ee.scrollMarginBottom)||0,left:parseFloat(Ee.scrollMarginLeft)||0}})(nt);if((ut=>typeof ut=="object"&&typeof ut.behavior=="function")(De))return De.behavior(Ze(nt,De));const Ve=typeof De=="boolean"||De==null?void 0:De.behavior;for(const{el:ut,top:Ee,left:te}of Ze(nt,Ue(De))){const ne=Ee-wt.top+wt.bottom,ue=te-wt.left+wt.right;ut.scroll({top:ne,left:ue,behavior:Ve})}}}}]);
}());