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=(gn,en,we)=>en in gn?aP(gn,en,{enumerable:!0,configurable:!0,writable:!0,value:we}):gn[en]=we,bd=(gn,en)=>{for(var we in en||(en={}))Sx.call(en,we)&&yx(gn,we,en[we]);if(ev)for(var we of ev(en))xx.call(en,we)&&yx(gn,we,en[we]);return gn},Xy=(gn,en)=>sP(gn,lP(en));var Px=(gn,en)=>{var we={};for(var ve in gn)Sx.call(gn,ve)&&en.indexOf(ve)<0&&(we[ve]=gn[ve]);if(gn!=null&&ev)for(var ve of ev(gn))en.indexOf(ve)<0&&xx.call(gn,ve)&&(we[ve]=gn[ve]);return we};(self.webpackChunk=self.webpackChunk||[]).push([[5825],{8336:function(){"use strict"},12469:function(){"use strict"},99587:function(gn,en){"use strict";en.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},98737:function(gn,en){"use strict";en.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(gn,en){"use strict";en.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(gn,en){"use strict";en.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(gn,en,we){"use strict";var ve=we(59301),_e=Object.defineProperty,lt=Object.getOwnPropertySymbols,it=Object.prototype.hasOwnProperty,rt=Object.prototype.propertyIsEnumerable,ze=(tt,De,xt)=>De in tt?_e(tt,De,{enumerable:!0,configurable:!0,writable:!0,value:xt}):tt[De]=xt,Ue=(tt,De)=>{for(var xt in De||(De={}))it.call(De,xt)&&ze(tt,xt,De[xt]);if(lt)for(var xt of lt(De))rt.call(De,xt)&&ze(tt,xt,De[xt]);return tt};const yt=tt=>React.createElement("svg",Ue({width:14,height:14,xmlns:"http://www.w3.org/2000/svg"},tt),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"})));en.Z="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48Y2lyY2xlIGZpbGw9IiNGQ0IwNDEiIGN4PSI3IiBjeT0iNyIgcj0iNyIvPjxwYXRoIGQ9Ik03LjUzMSA5LjYzOGEuNjE2LjYxNiAwIDEgMS0xLjIzMSAwdi0uMDJhLjYxNi42MTYgMCAxIDEgMS4yMzEgMHYuMDJabTAtMi4yNWEuNjE2LjYxNiAwIDEgMS0xLjIzMSAwVjQuMTE3YS42MTYuNjE2IDAgMSAxIDEuMjMxIDB2My4yNzNaIiBmaWxsPSIjRkZGIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L2c+PC9zdmc+"},63720:function(){"use strict";function gn(Ee,ne,te,ue){te===void 0&&(te=0),ue===void 0&&(ue=1/0),this._name=Ee,this._defaultValue=ne,this._minimum=te,this._maximum=ue}Object.defineProperty(gn.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(gn.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(gn.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(gn.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,ne){var te=go.Shape._FigureParameters[Ee];return te?te[ne]:null},go.Shape.setFigureParameter=function(Ee,ne,te){if(!(te instanceof gn))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+te);if(te.defaultValue<te.minimum||te.defaultValue>te.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+te.defaultValue);var ue=go.Shape._FigureParameters[Ee];ue||(ue=[],go.Shape._FigureParameters[Ee]=ue),ue[ne]=te};var en=[];function we(Ee,ne){var te=en.pop();return te===void 0?new go.Point(Ee,ne):(te.x=Ee,te.y=ne,te)}function ve(){var Ee=en.pop();return Ee===void 0?new go.Point:Ee}function _e(Ee){en.push(Ee)}function lt(Ee,ne,te,ue,se,de,pe,ye,Ce){Ce||(Ce=new go.Point);var je=Ee-te,Te=se-pe,Ie=NaN,Oe=NaN;if(je===0)if(Te===0)Ee===te&&(Ie=Ee,Oe=ne);else{var Re=(de-ye)/Te,nt=de-Re*se;Ie=Ee,Oe=Re*Ie+nt}else if(Te===0){var ot=(ne-ue)/je,wt=ne-ot*Ee;Ie=se,Oe=ot*Ie+wt}else{var ot=(ne-ue)/je,Re=(de-ye)/Te,wt=ne-ot*Ee,nt=de-Re*se;Ie=(nt-wt)/(ot-Re),Oe=ot*Ie+wt}return Ce.x=Ie,Ce.y=Oe,Ce}function it(Ee,ne,te,ue,se,de,pe,ye,Ce,je,Te,Ie,Oe,Re){var nt=1-Ce,ot=Ce,wt=Ee*nt+te*ot,gt=ne*nt+ue*ot,Dt=te*nt+se*ot,Lt=ue*nt+de*ot,It=se*nt+pe*ot,Tt=de*nt+ye*ot,nn=wt*nt+Dt*ot,at=gt*nt+Lt*ot,He=Dt*nt+It*ot,Rt=Lt*nt+Tt*ot,Zt=nn*nt+He*ot,Yt=at*nt+Rt*ot;je.x=wt,je.y=gt,Te.x=nn,Te.y=at,Ie.x=Zt,Ie.y=Yt,Oe.x=He,Oe.y=Rt,Re.x=It,Re.y=Tt}var rt=new go.Spot(.156,.156),ze=new go.Spot(.844,.844),Ue=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new gn("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(Ee,ne,te){var ue=Ee?Ee.parameter1:NaN;(isNaN(ue)||ue<0)&&(ue=5),ue=Math.min(ue,ne/3),ue=Math.min(ue,te/3);var se=ue*Ue,de=new go.Geometry().add(new go.PathFigure(ue,0,!0).add(new go.PathSegment(go.PathSegment.Line,ne-ue,0)).add(new go.PathSegment(go.PathSegment.Bezier,ne,ue,ne-se,0,ne,se)).add(new go.PathSegment(go.PathSegment.Line,ne,te-ue)).add(new go.PathSegment(go.PathSegment.Bezier,ne-ue,te,ne,te-se,ne-se,te)).add(new go.PathSegment(go.PathSegment.Line,ue,te)).add(new go.PathSegment(go.PathSegment.Bezier,0,te-ue,se,te,0,te-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,ne,te){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)).add(new go.PathSegment(go.PathSegment.Line,0,te).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(Ee,ne,te){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,ne,0)).add(new go.PathSegment(go.PathSegment.Line,.5*ne,te).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(Ee,ne,te){return new go.Geometry().add(new go.PathFigure(ne,te).add(new go.PathSegment(go.PathSegment.Line,0,.5*te)).add(new go.PathSegment(go.PathSegment.Line,ne,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(Ee,ne,te){return new go.Geometry().add(new go.PathFigure(ne,te).add(new go.PathSegment(go.PathSegment.Line,0,te)).add(new go.PathSegment(go.PathSegment.Line,.5*ne,0).close())).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",function(Ee,ne,te){return new go.Geometry().add(new go.PathFigure(.5*ne,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*te)).add(new go.PathSegment(go.PathSegment.Line,.5*ne,te)).add(new go.PathSegment(go.PathSegment.Line,ne,.5*te).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(Ee,ne,te){var ue=new go.Geometry(go.Geometry.Line);return ue.startX=0,ue.startY=te/2,ue.endX=ne,ue.endY=te/2,ue}),go.Shape.defineFigureGenerator("LineV",function(Ee,ne,te){var ue=new go.Geometry(go.Geometry.Line);return ue.startX=ne/2,ue.startY=0,ue.endX=ne/2,ue.endY=te,ue}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(Ee,ne,te){return new go.Geometry().add(new go.PathFigure(0,te/2,!1).add(new go.PathSegment(go.PathSegment.Line,ne,te/2)).add(new go.PathSegment(go.PathSegment.Move,ne/2,0)).add(new go.PathSegment(go.PathSegment.Line,ne/2,te)))}),go.Shape.defineFigureGenerator("XLine",function(Ee,ne,te){return new go.Geometry().add(new go.PathFigure(0,te,!1).add(new go.PathSegment(go.PathSegment.Line,ne,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,ne,te)))}),go.Shape.defineFigureGenerator("LineRight",function(Ee,ne,te){return new go.Geometry().add(new go.PathFigure(.25*ne,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*ne,.5*te)).add(new go.PathSegment(go.PathSegment.Line,.25*ne,te)))}),go.Shape.defineFigureGenerator("LineDown",function(Ee,ne,te){return new go.Geometry().add(new go.PathFigure(0,.25*te,!1).add(new go.PathSegment(go.PathSegment.Line,.5*ne,.75*te)).add(new go.PathSegment(go.PathSegment.Line,ne,.25*te)))}),go.Shape.defineFigureGenerator("LineLeft",function(Ee,ne,te){return new go.Geometry().add(new go.PathFigure(.75*ne,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*ne,.5*te)).add(new go.PathSegment(go.PathSegment.Line,.75*ne,te)))}),go.Shape.defineFigureGenerator("LineUp",function(Ee,ne,te){return new go.Geometry().add(new go.PathFigure(0,.75*te,!1).add(new go.PathSegment(go.PathSegment.Line,.5*ne,.25*te)).add(new go.PathSegment(go.PathSegment.Line,ne,.75*te)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(Ee,ne,te){var ue=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(ue*ne,(1-ue)*te,!1).add(new go.PathSegment(go.PathSegment.Line,(1-ue)*ne,ue*te)).add(new go.PathSegment(go.PathSegment.Move,ue*ne,ue*te)).add(new go.PathSegment(go.PathSegment.Line,(1-ue)*ne,(1-ue)*te)).add(new go.PathSegment(go.PathSegment.Move,0,te/2)).add(new go.PathSegment(go.PathSegment.Line,ne,te/2)).add(new go.PathSegment(go.PathSegment.Move,ne/2,0)).add(new go.PathSegment(go.PathSegment.Line,ne/2,te)))}),go.Shape.defineFigureGenerator("CircleLine",function(Ee,ne,te){var ue=ne/2,se=new go.Geometry().add(new go.PathFigure(ne,ne/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,ue,ue,ue,ue).close()));return se.spot1=rt,se.spot2=ze,se.defaultStretch=go.GraphObject.Uniform,se}),go.Shape.defineFigureGenerator("Line1",function(Ee,ne,te){var ue=new go.Geometry(go.Geometry.Line);return ue.startX=0,ue.startY=0,ue.endX=ne,ue.endY=te,ue}),go.Shape.defineFigureGenerator("Line2",function(Ee,ne,te){var ue=new go.Geometry(go.Geometry.Line);return ue.startX=ne,ue.startY=0,ue.endX=0,ue.endY=te,ue}),go.Shape.defineFigureGenerator("Curve1",function(Ee,ne,te){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,ne,te,Ue*ne,0,ne,(1-Ue)*te)))}),go.Shape.defineFigureGenerator("Curve2",function(Ee,ne,te){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,ne,te,0,Ue*te,(1-Ue)*ne,te)))}),go.Shape.defineFigureGenerator("Curve3",function(Ee,ne,te){return new go.Geometry().add(new go.PathFigure(ne,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,te,ne,Ue*te,Ue*ne,te)))}),go.Shape.defineFigureGenerator("Curve4",function(Ee,ne,te){return new go.Geometry().add(new go.PathFigure(ne,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,te,(1-Ue)*ne,0,0,(1-Ue)*te)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(Ee,ne,te){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,ne,te)).add(new go.PathSegment(go.PathSegment.Line,0,te).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(Ee,ne,te){return new go.Geometry().add(new go.PathFigure(ne,0,!0).add(new go.PathSegment(go.PathSegment.Line,ne,te)).add(new go.PathSegment(go.PathSegment.Line,0,te).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(Ee,ne,te){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,ne,0)).add(new go.PathSegment(go.PathSegment.Line,0,te).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(Ee,ne,te){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,ne,0)).add(new go.PathSegment(go.PathSegment.Line,ne,te).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new gn("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(Ee,ne,te){var ue=Ee?Ee.parameter1:NaN;isNaN(ue)?ue=.1:ue<-1?ue=-1:ue>1&&(ue=1);var se=Math.abs(ue)*ne;if(ue===0){var de=new go.Geometry(go.Geometry.Rectangle);return de.startX=0,de.startY=0,de.endX=ne,de.endY=te,de}else{var de=new go.Geometry;return ue>0?de.add(new go.PathFigure(se,0).add(new go.PathSegment(go.PathSegment.Line,ne,0)).add(new go.PathSegment(go.PathSegment.Line,ne-se,te)).add(new go.PathSegment(go.PathSegment.Line,0,te).close())):de.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,ne-se,0)).add(new go.PathSegment(go.PathSegment.Line,ne,te)).add(new go.PathSegment(go.PathSegment.Line,se,te).close())),se<ne/2&&de.setSpots(se/ne,0,(ne-se)/ne,1),de}}),go.Shape.defineFigureGenerator("Parallelogram","Parallelogram1"),go.Shape.setFigureParameter("Parallelogram2",0,new gn("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(Ee,ne,te){var ue=Ee?Ee.parameter1:NaN;isNaN(ue)?ue=10:ue<-ne?ue=-ne:ue>ne&&(ue=ne);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=ne,de.endY=te,de}else{var de=new go.Geometry;return ue>0?de.add(new go.PathFigure(se,0).add(new go.PathSegment(go.PathSegment.Line,ne,0)).add(new go.PathSegment(go.PathSegment.Line,ne-se,te)).add(new go.PathSegment(go.PathSegment.Line,0,te).close())):de.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,ne-se,0)).add(new go.PathSegment(go.PathSegment.Line,ne,te)).add(new go.PathSegment(go.PathSegment.Line,se,te).close())),se<ne/2&&de.setSpots(se/ne,0,(ne-se)/ne,1),de}}),go.Shape.setFigureParameter("Trapezoid1",0,new gn("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(Ee,ne,te){var ue=Ee?Ee.parameter1:NaN;isNaN(ue)?ue=.2:ue<.5?ue=-.5:ue>.5&&(ue=.5);var se=Math.abs(ue)*ne;if(ue===0){var de=new go.Geometry(go.Geometry.Rectangle);return de.startX=0,de.startY=0,de.endX=ne,de.endY=te,de}else{var de=new go.Geometry;return ue>0?de.add(new go.PathFigure(se,0).add(new go.PathSegment(go.PathSegment.Line,ne-se,0)).add(new go.PathSegment(go.PathSegment.Line,ne,te)).add(new go.PathSegment(go.PathSegment.Line,0,te).close())):de.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,ne,0)).add(new go.PathSegment(go.PathSegment.Line,ne-se,te)).add(new go.PathSegment(go.PathSegment.Line,se,te).close())),se<ne/2&&de.setSpots(se/ne,0,(ne-se)/ne,1),de}}),go.Shape.defineFigureGenerator("Trapezoid","Trapezoid1"),go.Shape.setFigureParameter("Trapezoid2",0,new gn("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(Ee,ne,te){var ue=Ee?Ee.parameter1:NaN;isNaN(ue)?ue=20:ue<-ne?ue=-ne/2:ue>ne&&(ue=ne/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=ne,de.endY=te,de}else{var de=new go.Geometry;return ue>0?de.add(new go.PathFigure(se,0).add(new go.PathSegment(go.PathSegment.Line,ne-se,0)).add(new go.PathSegment(go.PathSegment.Line,ne,te)).add(new go.PathSegment(go.PathSegment.Line,0,te).close())):de.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,ne,0)).add(new go.PathSegment(go.PathSegment.Line,ne-se,te)).add(new go.PathSegment(go.PathSegment.Line,se,te).close())),se<ne/2&&de.setSpots(se/ne,0,(ne-se)/ne,1),de}}),go.Shape.setFigureParameter("ManualOperation",0,new gn("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(Ee,ne,te){var ue=Ee?Ee.parameter1:NaN;isNaN(ue)?ue=10:ue<-ne?ue=-ne/2:ue>ne&&(ue=ne/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=ne,de.endY=te,de}else{var de=new go.Geometry;return ue>0?de.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,ne,0)).add(new go.PathSegment(go.PathSegment.Line,ne-se,te)).add(new go.PathSegment(go.PathSegment.Line,se,te).close())):de.add(new go.PathFigure(se,0).add(new go.PathSegment(go.PathSegment.Line,ne-se,0)).add(new go.PathSegment(go.PathSegment.Line,ne,te)).add(new go.PathSegment(go.PathSegment.Line,0,te).close())),se<ne/2&&de.setSpots(se/ne,0,(ne-se)/ne,1),de}});var yt=[];function tt(){var Ee=yt.pop();return Ee===void 0?[]:Ee}function De(Ee){Ee.length=0,yt.push(Ee)}function xt(Ee){for(var ne=tt(),te=.5,ue=.5,se=Math.PI*1.5,de=0,pe=0;pe<Ee;pe++)de=2*Math.PI/Ee*pe+se,ne[pe]=new go.Point(ue+te*Math.cos(de),ue+te*Math.sin(de));return ne.push(ne[0]),ne}function Ve(Ee){var ne=ct(Ee),te=tt();te[0]=ne[0];for(var ue=1,se=1;ue<ne.length;ue+=2,se+=3)te[se]=ne[ue],te[se+1]=ne[ue],te[se+2]=ne[ue+1];return De(ne),te}function ct(Ee){for(var ne=xt(Ee),te=tt(),ue=Math.floor(ne.length/2),se=ne.length-1,de=Ee%2===0?2:1,pe=0;pe<se;pe++){var ye=ne[pe],Ce=ne[pe+1],je=ne[(ue+pe-1)%se],Te=ne[(ue+pe+de)%se];te[pe*2]=ye,te[pe*2+1]=lt(ye.x,ye.y,je.x,je.y,Ce.x,Ce.y,Te.x,Te.y,new go.Point)}return te[te.length]=te[0],De(ne),te}go.Shape.defineFigureGenerator("Pentagon",function(Ee,ne,te){var ue=xt(5),se=new go.Geometry,de=new go.PathFigure(ue[0].x*ne,ue[0].y*te,!0);se.add(de);for(var pe=1;pe<5;pe++)de.add(new go.PathSegment(go.PathSegment.Line,ue[pe].x*ne,ue[pe].y*te));return de.add(new go.PathSegment(go.PathSegment.Line,ue[0].x*ne,ue[0].y*te).close()),De(ue),se.spot1=new go.Spot(.2,.22),se.spot2=new go.Spot(.8,.9),se}),go.Shape.defineFigureGenerator("Hexagon",function(Ee,ne,te){var ue=xt(6),se=new go.Geometry,de=new go.PathFigure(ue[0].x*ne,ue[0].y*te,!0);se.add(de);for(var pe=1;pe<6;pe++)de.add(new go.PathSegment(go.PathSegment.Line,ue[pe].x*ne,ue[pe].y*te));return de.add(new go.PathSegment(go.PathSegment.Line,ue[0].x*ne,ue[0].y*te).close()),De(ue),se.spot1=new go.Spot(.07,.25),se.spot2=new go.Spot(.93,.75),se}),go.Shape.defineFigureGenerator("Heptagon",function(Ee,ne,te){var ue=xt(7),se=new go.Geometry,de=new go.PathFigure(ue[0].x*ne,ue[0].y*te,!0);se.add(de);for(var pe=1;pe<7;pe++)de.add(new go.PathSegment(go.PathSegment.Line,ue[pe].x*ne,ue[pe].y*te));return de.add(new go.PathSegment(go.PathSegment.Line,ue[0].x*ne,ue[0].y*te).close()),De(ue),se.spot1=new go.Spot(.2,.15),se.spot2=new go.Spot(.8,.85),se}),go.Shape.defineFigureGenerator("Octagon",function(Ee,ne,te){var ue=xt(8),se=new go.Geometry,de=new go.PathFigure(ue[0].x*ne,ue[0].y*te,!0);se.add(de);for(var pe=1;pe<8;pe++)de.add(new go.PathSegment(go.PathSegment.Line,ue[pe].x*ne,ue[pe].y*te));return de.add(new go.PathSegment(go.PathSegment.Line,ue[0].x*ne,ue[0].y*te).close()),De(ue),se.spot1=new go.Spot(.15,.15),se.spot2=new go.Spot(.85,.85),se}),go.Shape.defineFigureGenerator("Nonagon",function(Ee,ne,te){var ue=xt(9),se=new go.Geometry,de=new go.PathFigure(ue[0].x*ne,ue[0].y*te,!0);se.add(de);for(var pe=1;pe<9;pe++)de.add(new go.PathSegment(go.PathSegment.Line,ue[pe].x*ne,ue[pe].y*te));return de.add(new go.PathSegment(go.PathSegment.Line,ue[0].x*ne,ue[0].y*te).close()),De(ue),se.spot1=new go.Spot(.17,.13),se.spot2=new go.Spot(.82,.82),se}),go.Shape.defineFigureGenerator("Decagon",function(Ee,ne,te){var ue=xt(10),se=new go.Geometry,de=new go.PathFigure(ue[0].x*ne,ue[0].y*te,!0);se.add(de);for(var pe=1;pe<10;pe++)de.add(new go.PathSegment(go.PathSegment.Line,ue[pe].x*ne,ue[pe].y*te));return de.add(new go.PathSegment(go.PathSegment.Line,ue[0].x*ne,ue[0].y*te).close()),De(ue),se.spot1=new go.Spot(.16,.16),se.spot2=new go.Spot(.84,.84),se}),go.Shape.defineFigureGenerator("Dodecagon",function(Ee,ne,te){var ue=xt(12),se=new go.Geometry,de=new go.PathFigure(ue[0].x*ne,ue[0].y*te,!0);se.add(de);for(var pe=1;pe<12;pe++)de.add(new go.PathSegment(go.PathSegment.Line,ue[pe].x*ne,ue[pe].y*te));return de.add(new go.PathSegment(go.PathSegment.Line,ue[0].x*ne,ue[0].y*te).close()),De(ue),se.spot1=new go.Spot(.16,.16),se.spot2=new go.Spot(.84,.84),se}),go.Shape.defineFigureGenerator("FivePointedStar",function(Ee,ne,te){var ue=ct(5),se=new go.Geometry,de=new go.PathFigure(ue[0].x*ne,ue[0].y*te,!0);se.add(de);for(var pe=1;pe<10;pe++)de.add(new go.PathSegment(go.PathSegment.Line,ue[pe].x*ne,ue[pe].y*te));return de.add(new go.PathSegment(go.PathSegment.Line,ue[0].x*ne,ue[0].y*te).close()),De(ue),se.spot1=new go.Spot(.266,.333),se.spot2=new go.Spot(.733,.733),se}),go.Shape.defineFigureGenerator("SixPointedStar",function(Ee,ne,te){var ue=ct(6),se=new go.Geometry,de=new go.PathFigure(ue[0].x*ne,ue[0].y*te,!0);se.add(de);for(var pe=1;pe<12;pe++)de.add(new go.PathSegment(go.PathSegment.Line,ue[pe].x*ne,ue[pe].y*te));return de.add(new go.PathSegment(go.PathSegment.Line,ue[0].x*ne,ue[0].y*te).close()),De(ue),se.spot1=new go.Spot(.17,.25),se.spot2=new go.Spot(.83,.75),se}),go.Shape.defineFigureGenerator("SevenPointedStar",function(Ee,ne,te){var ue=ct(7),se=new go.Geometry,de=new go.PathFigure(ue[0].x*ne,ue[0].y*te,!0);se.add(de);for(var pe=1;pe<14;pe++)de.add(new go.PathSegment(go.PathSegment.Line,ue[pe].x*ne,ue[pe].y*te));return de.add(new go.PathSegment(go.PathSegment.Line,ue[0].x*ne,ue[0].y*te).close()),De(ue),se.spot1=new go.Spot(.222,.277),se.spot2=new go.Spot(.777,.666),se}),go.Shape.defineFigureGenerator("EightPointedStar",function(Ee,ne,te){var ue=ct(8),se=new go.Geometry,de=new go.PathFigure(ue[0].x*ne,ue[0].y*te,!0);se.add(de);for(var pe=1;pe<16;pe++)de.add(new go.PathSegment(go.PathSegment.Line,ue[pe].x*ne,ue[pe].y*te));return de.add(new go.PathSegment(go.PathSegment.Line,ue[0].x*ne,ue[0].y*te).close()),De(ue),se.spot1=new go.Spot(.25,.25),se.spot2=new go.Spot(.75,.75),se}),go.Shape.defineFigureGenerator("NinePointedStar",function(Ee,ne,te){var ue=ct(9),se=new go.Geometry,de=new go.PathFigure(ue[0].x*ne,ue[0].y*te,!0);se.add(de);for(var pe=1;pe<18;pe++)de.add(new go.PathSegment(go.PathSegment.Line,ue[pe].x*ne,ue[pe].y*te));return de.add(new go.PathSegment(go.PathSegment.Line,ue[0].x*ne,ue[0].y*te).close()),De(ue),se.spot1=new go.Spot(.222,.277),se.spot2=new go.Spot(.777,.666),se}),go.Shape.defineFigureGenerator("TenPointedStar",function(Ee,ne,te){var ue=ct(10),se=new go.Geometry,de=new go.PathFigure(ue[0].x*ne,ue[0].y*te,!0);se.add(de);for(var pe=1;pe<20;pe++)de.add(new go.PathSegment(go.PathSegment.Line,ue[pe].x*ne,ue[pe].y*te));return de.add(new go.PathSegment(go.PathSegment.Line,ue[0].x*ne,ue[0].y*te).close()),De(ue),se.spot1=new go.Spot(.281,.261),se.spot2=new go.Spot(.723,.748),se}),go.Shape.defineFigureGenerator("FivePointedBurst",function(Ee,ne,te){var ue=Ve(5),se=new go.Geometry,de=new go.PathFigure(ue[0].x*ne,ue[0].y*te,!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*ne,ue[pe+2].y*te,ue[pe].x*ne,ue[pe].y*te,ue[pe+1].x*ne,ue[pe+1].y*te));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,ne,te){var ue=Ve(6),se=new go.Geometry,de=new go.PathFigure(ue[0].x*ne,ue[0].y*te,!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*ne,ue[pe+2].y*te,ue[pe].x*ne,ue[pe].y*te,ue[pe+1].x*ne,ue[pe+1].y*te));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,ne,te){var ue=Ve(7),se=new go.Geometry,de=new go.PathFigure(ue[0].x*ne,ue[0].y*te,!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*ne,ue[pe+2].y*te,ue[pe].x*ne,ue[pe].y*te,ue[pe+1].x*ne,ue[pe+1].y*te));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,ne,te){var ue=Ve(8),se=new go.Geometry,de=new go.PathFigure(ue[0].x*ne,ue[0].y*te,!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*ne,ue[pe+2].y*te,ue[pe].x*ne,ue[pe].y*te,ue[pe+1].x*ne,ue[pe+1].y*te));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,ne,te){var ue=Ve(9),se=new go.Geometry,de=new go.PathFigure(ue[0].x*ne,ue[0].y*te,!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*ne,ue[pe+2].y*te,ue[pe].x*ne,ue[pe].y*te,ue[pe+1].x*ne,ue[pe+1].y*te));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,ne,te){var ue=Ve(10),se=new go.Geometry,de=new go.PathFigure(ue[0].x*ne,ue[0].y*te,!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*ne,ue[pe+2].y*te,ue[pe].x*ne,ue[pe].y*te,ue[pe+1].x*ne,ue[pe+1].y*te));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 gn("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new gn("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(Ee,ne,te){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,ne,0)),pe.add(new go.PathSegment(go.PathSegment.Line,ne,te)),pe.add(new go.PathSegment(go.PathSegment.Line,0,te).close()),ue<ne/2&&se<te/2&&(pe.add(new go.PathSegment(go.PathSegment.Move,ue,se)),pe.add(new go.PathSegment(go.PathSegment.Line,ue,te-se)),pe.add(new go.PathSegment(go.PathSegment.Line,ne-ue,te-se)),pe.add(new go.PathSegment(go.PathSegment.Line,ne-ue,se).close())),de.setSpots(0,0,1,1,ue,se,-ue,-se),de}),go.Shape.setFigureParameter("Ring",0,new gn("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(Ee,ne,te){var ue=Ee?Ee.parameter1:NaN;(isNaN(ue)||ue<0)&&(ue=8);var se=ne/2,de=new go.Geometry,pe=new go.PathFigure(ne,ne/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,ne/2+ye,ne/2)),pe.add(new go.PathSegment(go.PathSegment.Arc,0,-360,se,se,ye,ye).close())),de.spot1=rt,de.spot2=ze,de.defaultStretch=go.GraphObject.Uniform,de}),go.Shape.defineFigureGenerator("Cloud",function(Ee,ne,te){return new go.Geometry().add(new go.PathFigure(.08034461*ne,.1944299*te,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*ne,.05349299*te,-.09239631*ne,.07836421*te,.1406031*ne,-.0542823*te)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*ne,.074219*te,.2450511*ne,-.00697547*te,.3776197*ne,-.01112067*te)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*ne,.07004196*te,.4539471*ne,0,.6066018*ne,-.02526587*te)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*ne,.08370865*te,.6914277*ne,-.01904177*te,.8921095*ne,-.01220843*te)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*ne,.3194596*te,1.036446*ne,.04105738*te,1.020377*ne,.3022052*te)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*ne,.562044*te,1.04448*ne,.360238*te,.992256*ne,.5219009*te)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*ne,.8217117*te,1.032337*ne,.5771781*te,1.018411*ne,.8120651*te)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*ne,.9156953*te,1.028411*ne,.9571472*te,.8556702*ne,1.052487*te)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*ne,.9310455*te,.7431877*ne,1.009325*te,.5624123*ne,1.021761*te)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*ne,.9344623*te,.4820677*ne,1.031761*te,.3030112*ne,1.002796*te)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*ne,.870098*te,.2329994*ne,1.01518*te,.03213784*ne,1.01518*te)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*ne,.6545475*te,-.02812061*ne,.9032597*te,-.01205169*ne,.6835638*te)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*ne,.4265613*te,-.01812061*ne,.6089503*te,-.00606892*ne,.4555777*te)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*ne,.1944299*te,-.01606892*ne,.3892545*te,-.01205169*ne,.1944299*te))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(Ee,ne,te){var ue=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(ue*ne,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-ue)*ne,0)).add(new go.PathSegment(go.PathSegment.Line,ne,ue*te)).add(new go.PathSegment(go.PathSegment.Line,ne,(1-ue)*te)).add(new go.PathSegment(go.PathSegment.Line,(1-ue)*ne,te)).add(new go.PathSegment(go.PathSegment.Line,ue*ne,te)).add(new go.PathSegment(go.PathSegment.Line,0,(1-ue)*te)).add(new go.PathSegment(go.PathSegment.Line,0,ue*te).close())).setSpots(ue/2,ue/2,1-ue/2,1-ue/2)}),go.Shape.setFigureParameter("Pie",0,new gn("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new gn("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(Ee,ne,te){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(ne,te)/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,ne,te){var ue=Ue/Math.SQRT2*.5,se=Math.SQRT2/2,de=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(ne,te,!0).add(new go.PathSegment(go.PathSegment.Bezier,se*ne,de*te,ne,(1-ue)*te,(se+ue)*ne,(de+ue)*te)).add(new go.PathSegment(go.PathSegment.Line,0,te).close()))}),go.Shape.setFigureParameter("ThickCross",0,new gn("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(Ee,ne,te){var ue=Ee?Ee.parameter1:NaN;(isNaN(ue)||ue<0)&&(ue=30);var se=Math.min(ue,ne)/2,de=ne/2,pe=te/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,ne,pe-se)).add(new go.PathSegment(go.PathSegment.Line,ne,pe+se)).add(new go.PathSegment(go.PathSegment.Line,de+se,pe+se)).add(new go.PathSegment(go.PathSegment.Line,de+se,te)).add(new go.PathSegment(go.PathSegment.Line,de-se,te)).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 gn("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(Ee,ne,te){var ue=Ee?Ee.parameter1:NaN;(isNaN(ue)||ue<0)&&(ue=10);var se=Math.min(ue,ne)/2,de=ne/2,pe=te/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,ne,pe-se)).add(new go.PathSegment(go.PathSegment.Line,ne,pe+se)).add(new go.PathSegment(go.PathSegment.Line,de+se,pe+se)).add(new go.PathSegment(go.PathSegment.Line,de+se,te)).add(new go.PathSegment(go.PathSegment.Line,de-se,te)).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 gn("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(Ee,ne,te){var ue=Ee?Ee.parameter1:NaN;if((isNaN(ue)||ue<0)&&(ue=30),ne===0||te===0){var se=new go.Geometry(go.Geometry.Rectangle);return se.startX=0,se.startY=0,se.endX=ne,se.endY=te,se}else{var de=ne/2,pe=te/2,ye=Math.atan2(te,ne),Ce=ue-Math.min(Math.cos(ye)*ue/2,de),je=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*te)),Te.add(new go.PathSegment(go.PathSegment.Line,ne-Ce,0)),Te.add(new go.PathSegment(go.PathSegment.Line,ne,je)),Te.add(new go.PathSegment(go.PathSegment.Line,.8*ne,pe)),Te.add(new go.PathSegment(go.PathSegment.Line,ne,te-je)),Te.add(new go.PathSegment(go.PathSegment.Line,ne-Ce,te)),Te.add(new go.PathSegment(go.PathSegment.Line,de,.8*te)),Te.add(new go.PathSegment(go.PathSegment.Line,Ce,te)),Te.add(new go.PathSegment(go.PathSegment.Line,0,te-je)),Te.add(new go.PathSegment(go.PathSegment.Line,.2*ne,pe)),Te.add(new go.PathSegment(go.PathSegment.Line,0,je).close()),se}}),go.Shape.setFigureParameter("ThinX",0,new gn("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(Ee,ne,te){var ue=Ee?Ee.parameter1:NaN;(isNaN(ue)||ue<0)&&(ue=10);var se=new go.Geometry,de=new go.PathFigure(.1*ne,0,!0);return se.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.4*te)),de.add(new go.PathSegment(go.PathSegment.Line,.9*ne,0)),de.add(new go.PathSegment(go.PathSegment.Line,ne,.1*te)),de.add(new go.PathSegment(go.PathSegment.Line,.6*ne,.5*te)),de.add(new go.PathSegment(go.PathSegment.Line,ne,.9*te)),de.add(new go.PathSegment(go.PathSegment.Line,.9*ne,te)),de.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.6*te)),de.add(new go.PathSegment(go.PathSegment.Line,.1*ne,te)),de.add(new go.PathSegment(go.PathSegment.Line,0,.9*te)),de.add(new go.PathSegment(go.PathSegment.Line,.4*ne,.5*te)),de.add(new go.PathSegment(go.PathSegment.Line,0,.1*te).close()),se}),go.Shape.setFigureParameter("SquareIBeam",0,new gn("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(Ee,ne,te){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,ne,0)),de.add(new go.PathSegment(go.PathSegment.Line,ne,ue*te)),de.add(new go.PathSegment(go.PathSegment.Line,(.5+ue/2)*ne,ue*te)),de.add(new go.PathSegment(go.PathSegment.Line,(.5+ue/2)*ne,(1-ue)*te)),de.add(new go.PathSegment(go.PathSegment.Line,ne,(1-ue)*te)),de.add(new go.PathSegment(go.PathSegment.Line,ne,te)),de.add(new go.PathSegment(go.PathSegment.Line,0,te)),de.add(new go.PathSegment(go.PathSegment.Line,0,(1-ue)*te)),de.add(new go.PathSegment(go.PathSegment.Line,(.5-ue/2)*ne,(1-ue)*te)),de.add(new go.PathSegment(go.PathSegment.Line,(.5-ue/2)*ne,ue*te)),de.add(new go.PathSegment(go.PathSegment.Line,0,ue*te).close()),se}),go.Shape.setFigureParameter("RoundedIBeam",0,new gn("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(Ee,ne,te){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,ne,0)),de.add(new go.PathSegment(go.PathSegment.Bezier,ne,te,Math.abs(1-ue)*ne,.25*te,Math.abs(1-ue)*ne,.75*te)),de.add(new go.PathSegment(go.PathSegment.Line,0,te)),de.add(new go.PathSegment(go.PathSegment.Bezier,0,0,ue*ne,.75*te,ue*ne,.25*te).close()),se}),go.Shape.defineFigureGenerator("HalfEllipse",function(Ee,ne,te){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,ne,.5*te,Ue*ne,0,ne,(.5-Ue/2)*te)).add(new go.PathSegment(go.PathSegment.Bezier,0,te,ne,(.5+Ue/2)*te,Ue*ne,te).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(Ee,ne,te){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,te,ne,0,ne,te)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*ne,.75*te,.5*ne,.25*te).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(Ee,ne,te){return new go.Geometry().add(new go.PathFigure(.5*ne,te,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*te,.1*ne,.8*te,0,.5*te)).add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,.3*te,0,0,.45*ne,0)).add(new go.PathSegment(go.PathSegment.Bezier,ne,.3*te,.55*ne,0,ne,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,te,ne,.5*te,.9*ne,.8*te).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(Ee,ne,te){return new go.Geometry().add(new go.PathFigure(.5*ne,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*ne,.01*te)).add(new go.PathSegment(go.PathSegment.Bezier,ne,.5*te,.6*ne,.2*te,ne,.25*te)).add(new go.PathSegment(go.PathSegment.Bezier,.55*ne,.7*te,ne,.8*te,.6*ne,.8*te)).add(new go.PathSegment(go.PathSegment.Bezier,.75*ne,te,.5*ne,.75*te,.55*ne,.95*te)).add(new go.PathSegment(go.PathSegment.Line,.25*ne,te)).add(new go.PathSegment(go.PathSegment.Bezier,.45*ne,.7*te,.45*ne,.95*te,.5*ne,.75*te)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*te,.4*ne,.8*te,0,.8*te)).add(new go.PathSegment(go.PathSegment.Bezier,.49*ne,.01*te,0,.25*te,.4*ne,.2*te).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(Ee,ne,te){var ue=new go.Geometry,se=new go.PathFigure(.4*ne,.6*te,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,.15*ne,te,.5*ne,.75*te,.45*ne,.95*te)),se.add(new go.PathSegment(go.PathSegment.Line,.85*ne,te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.6*ne,.6*te,.55*ne,.95*te,.5*ne,.75*te));var de=.2,pe=.3,ye=0,Ce=de*Ue;return se.add(new go.PathSegment(go.PathSegment.Bezier,(.5+pe)*ne,(.5+de+ye)*te,(.5-de+pe)*ne,(.5+Ce+ye)*te,(.5-Ce+pe)*ne,(.5+de+ye)*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+de+pe)*ne,(.5+ye)*te,(.5+Ce+pe)*ne,(.5+de+ye)*te,(.5+de+pe)*ne,(.5+Ce+ye)*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.5+pe)*ne,(.5-de+ye)*te,(1-.5+de+pe)*ne,(.5-Ce+ye)*te,(.5+Ce+pe)*ne,(.5-de+ye)*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.65*ne,.36771243*te,(.5-Ce+pe)*ne,(.5-de+ye)*te,(.5-de+pe+.05)*ne,(.5-Ce+ye-.02)*te)),de=.2,pe=0,ye=-.3,Ce=de*Ue,se.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+de+pe)*ne,(.5+ye)*te,(.5+Ce+pe)*ne,(.5+de+ye)*te,(.5+de+pe)*ne,(.5+Ce+ye)*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.5+pe)*ne,(.5-de+ye)*te,(1-.5+de+pe)*ne,(.5-Ce+ye)*te,(.5+Ce+pe)*ne,(.5-de+ye)*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.5-de+pe)*ne,(.5+ye)*te,(.5-Ce+pe)*ne,(.5-de+ye)*te,(.5-de+pe)*ne,(.5-Ce+ye)*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.5-Ce+pe)*ne,(.5+de+ye)*te,(.5-de+pe)*ne,(.5+Ce+ye)*te,(.5-Ce+pe)*ne,(.5+de+ye)*te)),de=.2,pe=-.3,ye=0,Ce=de*Ue,se.add(new go.PathSegment(go.PathSegment.Bezier,(.5+pe)*ne,(.5-de+ye)*te,(1-.5+de+pe-.05)*ne,(.5-Ce+ye-.02)*te,(.5+Ce+pe)*ne,(.5-de+ye)*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.5-de+pe)*ne,(.5+ye)*te,(.5-Ce+pe)*ne,(.5-de+ye)*te,(.5-de+pe)*ne,(.5-Ce+ye)*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.5+pe)*ne,(.5+de+ye)*te,(.5-de+pe)*ne,(.5+Ce+ye)*te,(.5-Ce+pe)*ne,(.5+de+ye)*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.4*ne,.6*te,(.5+Ce+pe)*ne,(.5+de+ye)*te,(.5+de+pe)*ne,(.5+Ce+ye)*te).close()),ue.setSpots(.06,.33,.93,.68),ue}),go.Shape.defineFigureGenerator("YinYang",function(Ee,ne,te){var ue=new go.Geometry,se=new go.PathFigure(ne*.5,0,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Arc,270,180,ne*.5,ne*.5,ne*.5,ne*.5)),se.add(new go.PathSegment(go.PathSegment.Arc,90,-180,ne*.5,ne*.75,ne*.25,ne*.25)),se.add(new go.PathSegment(go.PathSegment.Arc,90,180,ne*.5,ne*.25,ne*.25,ne*.25));var de=.1,pe=.5,ye=.25;return se.add(new go.PathSegment(go.PathSegment.Move,(pe+de)*ne,ye*te)),se.add(new go.PathSegment(go.PathSegment.Arc,0,-360,ne*pe,te*ye,de*ne,de*ne).close()),se=new go.PathFigure(ne*.5,0,!1),ue.add(se),se.add(new go.PathSegment(go.PathSegment.Arc,270,-180,ne*.5,ne*.5,ne*.5,ne*.5)),ye=.75,se=new go.PathFigure((pe+de)*ne,ye*te,!0),ue.add(se),se.add(new go.PathSegment(go.PathSegment.Arc,0,360,ne*pe,te*ye,de*ne,de*ne).close()),ue.defaultStretch=go.GraphObject.Uniform,ue}),go.Shape.defineFigureGenerator("Peace",function(Ee,ne,te){var ue=.8535533905932737,se=.5*ne,de=.5*te;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,te)).add(new go.PathSegment(go.PathSegment.Move,se,de)).add(new go.PathSegment(go.PathSegment.Line,(1-ue)*ne,ue*te)).add(new go.PathSegment(go.PathSegment.Move,se,de)).add(new go.PathSegment(go.PathSegment.Line,ue*ne,ue*te)))}),go.Shape.defineFigureGenerator("NotAllowed",function(Ee,ne,te){var ue=new go.Geometry,se=Ue*.5,de=.5,pe=.5,ye=.5,Ce=new go.PathFigure(pe*ne,(ye-de)*te);ue.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(pe-de)*ne,ye*te,(pe-se)*ne,(ye-de)*te,(pe-de)*ne,(ye-se)*te)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,pe*ne,(ye+de)*te,(pe-de)*ne,(ye+se)*te,(pe-se)*ne,(ye+de)*te)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(pe+de)*ne,ye*te,(pe+se)*ne,(ye+de)*te,(pe+de)*ne,(ye+se)*te)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,pe*ne,(ye-de)*te,(pe+de)*ne,(ye-se)*te,(pe+se)*ne,(ye-de)*te)),de=.4,se=Ue*.4;var je=ve(),Te=ve(),Ie=ve(),Oe=ve();it(pe,ye-de,pe+se,ye-de,pe+de,ye-se,pe+de,ye,.42,je,Te,Ie,Oe,Oe);var Re=ve(),nt=ve(),ot=ve();it(pe,ye-de,pe+se,ye-de,pe+de,ye-se,pe+de,ye,.58,Oe,Oe,ot,Re,nt);var wt=ve(),gt=ve(),Dt=ve();it(pe,ye+de,pe-se,ye+de,pe-de,ye+se,pe-de,ye,.42,wt,gt,Dt,Oe,Oe);var Lt=ve(),It=ve(),Tt=ve();return it(pe,ye+de,pe-se,ye+de,pe-de,ye+se,pe-de,ye,.58,Oe,Oe,Tt,Lt,It),Ce.add(new go.PathSegment(go.PathSegment.Move,Tt.x*ne,Tt.y*te)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(pe-de)*ne,ye*te,Lt.x*ne,Lt.y*te,It.x*ne,It.y*te)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,pe*ne,(ye-de)*te,(pe-de)*ne,(ye-se)*te,(pe-se)*ne,(ye-de)*te)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,Ie.x*ne,Ie.y*te,je.x*ne,je.y*te,Te.x*ne,Te.y*te)),Ce.add(new go.PathSegment(go.PathSegment.Line,Tt.x*ne,Tt.y*te).close()),Ce.add(new go.PathSegment(go.PathSegment.Move,Dt.x*ne,Dt.y*te)),Ce.add(new go.PathSegment(go.PathSegment.Line,ot.x*ne,ot.y*te)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(pe+de)*ne,ye*te,Re.x*ne,Re.y*te,nt.x*ne,nt.y*te)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,pe*ne,(ye+de)*te,(pe+de)*ne,(ye+se)*te,(pe+se)*ne,(ye+de)*te)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,Dt.x*ne,Dt.y*te,wt.x*ne,wt.y*te,gt.x*ne,gt.y*te).close()),_e(je),_e(Te),_e(Ie),_e(Oe),_e(Re),_e(nt),_e(ot),_e(wt),_e(gt),_e(Dt),_e(Lt),_e(It),_e(Tt),ue.defaultStretch=go.GraphObject.Uniform,ue}),go.Shape.defineFigureGenerator("Fragile",function(Ee,ne,te){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*ne,0)).add(new go.PathSegment(go.PathSegment.Line,.2*ne,.15*te)).add(new go.PathSegment(go.PathSegment.Line,.3*ne,.25*te)).add(new go.PathSegment(go.PathSegment.Line,.29*ne,.33*te)).add(new go.PathSegment(go.PathSegment.Line,.35*ne,.25*te)).add(new go.PathSegment(go.PathSegment.Line,.3*ne,.15*te)).add(new go.PathSegment(go.PathSegment.Line,.4*ne,0)).add(new go.PathSegment(go.PathSegment.Line,ne,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*ne,.5*te,ne,.25*te,.75*ne,.5*te)).add(new go.PathSegment(go.PathSegment.Line,.55*ne,.9*te)).add(new go.PathSegment(go.PathSegment.Line,.7*ne,.9*te)).add(new go.PathSegment(go.PathSegment.Line,.7*ne,te)).add(new go.PathSegment(go.PathSegment.Line,.3*ne,te)).add(new go.PathSegment(go.PathSegment.Line,.3*ne,.9*te)).add(new go.PathSegment(go.PathSegment.Line,.45*ne,.9*te)).add(new go.PathSegment(go.PathSegment.Line,.45*ne,.5*te)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*ne,.5*te,0,.25*te).close()))}),go.Shape.setFigureParameter("HourGlass",0,new gn("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(Ee,ne,te){var ue=Ee?Ee.parameter1:NaN;(isNaN(ue)||ue<0)&&(ue=30),ue>ne&&(ue=ne);var se=(ne-ue)/2,de=se+ue;return new go.Geometry().add(new go.PathFigure(de,.5*te).add(new go.PathSegment(go.PathSegment.Line,ne,te)).add(new go.PathSegment(go.PathSegment.Line,0,te)).add(new go.PathSegment(go.PathSegment.Line,se,.5*te)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,ne,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(Ee,ne,te){return new go.Geometry().add(new go.PathFigure(0,.55*te).add(new go.PathSegment(go.PathSegment.Line,.6*ne,0)).add(new go.PathSegment(go.PathSegment.Line,.3*ne,.45*te)).add(new go.PathSegment(go.PathSegment.Line,ne,.45*te)).add(new go.PathSegment(go.PathSegment.Line,.4*ne,te)).add(new go.PathSegment(go.PathSegment.Line,.7*ne,.55*te).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(Ee,ne,te){var ue=new go.Geometry,se=Ue*.4,de=.4,pe=.5,ye=.5,Ce=ve(),je=ve(),Te=ve(),Ie=ve(),Oe=new go.PathFigure((pe-de)*ne,ye*te,!1);ue.add(Oe),Oe.add(new go.PathSegment(go.PathSegment.Bezier,pe*ne,(ye-de)*te,(pe-de)*ne,(ye-se)*te,(pe-se)*ne,(ye-de)*te)),it(pe,ye-de,pe+se,ye-de,pe+de,ye-se,pe+de,ye,.44,Te,Ie,je,Ce,Ce),Oe.add(new go.PathSegment(go.PathSegment.Bezier,je.x*ne,je.y*te,Te.x*ne,Te.y*te,Ie.x*ne,Ie.y*te));var Re=we(je.x,je.y);it(pe,ye-de,pe+se,ye-de,pe+de,ye-se,pe+de,ye,.56,Ce,Ce,je,Te,Ie);var nt=we(je.x,je.y);Oe.add(new go.PathSegment(go.PathSegment.Line,(Re.x*.1+.95*.9)*ne,Re.y*.1*te)),Oe.add(new go.PathSegment(go.PathSegment.Line,.85*ne,Re.y*.1*te)),Oe.add(new go.PathSegment(go.PathSegment.Line,.85*ne,0)),Oe.add(new go.PathSegment(go.PathSegment.Line,ne,0)),Oe.add(new go.PathSegment(go.PathSegment.Line,ne,.15*te)),Oe.add(new go.PathSegment(go.PathSegment.Line,(nt.x*.1+.9)*ne,.15*te)),Oe.add(new go.PathSegment(go.PathSegment.Line,(nt.x*.1+.9)*ne,(nt.y*.1+.05*.9)*te)),Oe.add(new go.PathSegment(go.PathSegment.Line,nt.x*ne,nt.y*te)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(pe+de)*ne,ye*te,Te.x*ne,Te.y*te,Ie.x*ne,Ie.y*te)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,pe*ne,(ye+de)*te,(pe+de)*ne,(ye+se)*te,(pe+se)*ne,(ye+de)*te)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(pe-de)*ne,ye*te,(pe-se)*ne,(ye+de)*te,(pe-de)*ne,(ye+se)*te)),de=.35,se=Ue*.35;var ot=new go.PathFigure(pe*ne,(ye-de)*te,!1);ue.add(ot),ot.add(new go.PathSegment(go.PathSegment.Bezier,(pe-de)*ne,ye*te,(pe-se)*ne,(ye-de)*te,(pe-de)*ne,(ye-se)*te)),ot.add(new go.PathSegment(go.PathSegment.Bezier,pe*ne,(ye+de)*te,(pe-de)*ne,(ye+se)*te,(pe-se)*ne,(ye+de)*te)),ot.add(new go.PathSegment(go.PathSegment.Bezier,(pe+de)*ne,ye*te,(pe+se)*ne,(ye+de)*te,(pe+de)*ne,(ye+se)*te)),ot.add(new go.PathSegment(go.PathSegment.Bezier,pe*ne,(ye-de)*te,(pe+de)*ne,(ye-se)*te,(pe+se)*ne,(ye-de)*te));var wt=new go.PathFigure((pe-de)*ne,ye*te,!1);return ue.add(wt),_e(Ce),_e(je),_e(Te),_e(Ie),_e(Re),_e(nt),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,ne,te){var ue=new go.Geometry,se=.375,de=0,pe=-.125,ye=se*Ue,Ce=new go.PathFigure((.525+de)*ne,(.5+se+pe)*te,!1);ue.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+se+de)*ne,(.5+pe)*te,(.5+ye+de)*ne,(.5+se+pe)*te,(.5+se+de)*ne,(.5+ye+pe)*te)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(.5+de)*ne,(.5-se+pe)*te,(1-.5+se+de)*ne,(.5-ye+pe)*te,(.5+ye+de)*ne,(.5-se+pe)*te)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(.5-se+de)*ne,(.5+pe)*te,(.5-ye+de)*ne,(.5-se+pe)*te,(.5-se+de)*ne,(.5-ye+pe)*te)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(.475+de)*ne,(.5+se+pe)*te,(.5-se+de)*ne,(.5+ye+pe)*te,(.5-ye+de)*ne,(.5+se+pe)*te)),Ce.add(new go.PathSegment(go.PathSegment.Line,.475*ne,.85*te)),Ce.add(new go.PathSegment(go.PathSegment.Line,.425*ne,.85*te)),Ce.add(new go.PathSegment(go.PathSegment.Line,.425*ne,.9*te)),Ce.add(new go.PathSegment(go.PathSegment.Line,.475*ne,.9*te)),Ce.add(new go.PathSegment(go.PathSegment.Line,.475*ne,te)),Ce.add(new go.PathSegment(go.PathSegment.Line,.525*ne,te)),Ce.add(new go.PathSegment(go.PathSegment.Line,.525*ne,.9*te)),Ce.add(new go.PathSegment(go.PathSegment.Line,.575*ne,.9*te)),Ce.add(new go.PathSegment(go.PathSegment.Line,.575*ne,.85*te)),Ce.add(new go.PathSegment(go.PathSegment.Line,.525*ne,.85*te).close()),se=.325,de=0,pe=-.125,ye=se*Ue;var Ce=new go.PathFigure((1-.5+se+de)*ne,(.5+pe)*te,!1);ue.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(.5+de)*ne,(.5+se+pe)*te,(.5+se+de)*ne,(.5+ye+pe)*te,(.5+ye+de)*ne,(.5+se+pe)*te)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(.5-se+de)*ne,(.5+pe)*te,(.5-ye+de)*ne,(.5+se+pe)*te,(.5-se+de)*ne,(.5+ye+pe)*te)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(.5+de)*ne,(.5-se+pe)*te,(.5-se+de)*ne,(.5-ye+pe)*te,(.5-ye+de)*ne,(.5-se+pe)*te)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+se+de)*ne,(.5+pe)*te,(.5+ye+de)*ne,(.5-se+pe)*te,(1-.5+se+de)*ne,(.5-ye+pe)*te));var Ce=new go.PathFigure((.525+de)*ne,(.5+se+pe)*te,!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,ne,te){var ue=Ee?Ee.parameter1:NaN;return isNaN(ue)&&(ue=.2),new go.Geometry().add(new go.PathFigure((1-ue)*ne,0,!1).add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)).add(new go.PathSegment(go.PathSegment.Line,(1-ue)*ne,te)).add(new go.PathSegment(go.PathSegment.Move,0,.5*te)).add(new go.PathSegment(go.PathSegment.Line,ne,.5*te))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(Ee,ne,te){var ue=Ee?Ee.parameter1:NaN;return isNaN(ue)&&(ue=.2),new go.Geometry().add(new go.PathFigure((1-ue)*ne,0,!1).add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)).add(new go.PathSegment(go.PathSegment.Line,(1-ue)*ne,te)).add(new go.PathSegment(go.PathSegment.Move,0,.5*te)).add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)).add(new go.PathSegment(go.PathSegment.Move,ue*ne,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*te)).add(new go.PathSegment(go.PathSegment.Line,ue*ne,te))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(Ee,ne,te){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,ne,0)).add(new go.PathSegment(go.PathSegment.Line,ne,te)))}),go.Shape.defineFigureGenerator("LogicAnd",function(Ee,ne,te){return new go.Geometry().add(new go.PathFigure(0,te,!1).add(new go.PathSegment(go.PathSegment.Line,.5*ne,0)).add(new go.PathSegment(go.PathSegment.Line,ne,te))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(Ee,ne,te){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*ne,te)).add(new go.PathSegment(go.PathSegment.Line,ne,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(Ee,ne,te){var ue=new go.Geometry().add(new go.PathFigure(.5*ne,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*ne,te)).add(new go.PathSegment(go.PathSegment.Move,0,.5*te)).add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*ne,.5*te,.5*ne,.5*te)));return ue.defaultStretch=go.GraphObject.Uniform,ue}),go.Shape.defineFigureGenerator("LogicTruth",function(Ee,ne,te){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,ne,0)).add(new go.PathSegment(go.PathSegment.Move,.5*ne,0)).add(new go.PathSegment(go.PathSegment.Line,.5*ne,te)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(Ee,ne,te){return new go.Geometry().add(new go.PathFigure(0,te,!1).add(new go.PathSegment(go.PathSegment.Line,ne,te)).add(new go.PathSegment(go.PathSegment.Move,.5*ne,te)).add(new go.PathSegment(go.PathSegment.Line,.5*ne,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(Ee,ne,te){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,ne,0)).add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)).add(new go.PathSegment(go.PathSegment.Line,0,.5*te)).add(new go.PathSegment(go.PathSegment.Move,ne,.5*te)).add(new go.PathSegment(go.PathSegment.Line,ne,te)).add(new go.PathSegment(go.PathSegment.Line,0,te)))}),go.Shape.defineFigureGenerator("LogicForAll",function(Ee,ne,te){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*ne,te)).add(new go.PathSegment(go.PathSegment.Line,ne,0)).add(new go.PathSegment(go.PathSegment.Move,.25*ne,.5*te)).add(new go.PathSegment(go.PathSegment.Line,.75*ne,.5*te))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(Ee,ne,te){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,ne,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*te)).add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)).add(new go.PathSegment(go.PathSegment.Move,0,te)).add(new go.PathSegment(go.PathSegment.Line,ne,te))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(Ee,ne,te){var ue=.5;return new go.Geometry().add(new go.PathFigure(0,te,!1).add(new go.PathSegment(go.PathSegment.Line,0,ue*te)).add(new go.PathSegment(go.PathSegment.Arc,180,180,ue*ne,ue*te,ue*ne,ue*te)).add(new go.PathSegment(go.PathSegment.Line,ne,te))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(Ee,ne,te){var ue=.5;return new go.Geometry().add(new go.PathFigure(ne,0,!1).add(new go.PathSegment(go.PathSegment.Line,ne,ue*te)).add(new go.PathSegment(go.PathSegment.Arc,0,180,ue*ne,ue*te,ue*ne,ue*te)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new gn("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new gn("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(Ee,ne,te){var ue=Ee?Ee.parameter1:NaN;isNaN(ue)&&(ue=.3);var se=Ee?Ee.parameter2:NaN;isNaN(se)&&(se=.3);var de=(1-ue)*ne,pe=(.5-se/2)*te,ye=(.5+se/2)*te,Ce=new go.Geometry,je=new go.PathFigure(0,pe,!0);Ce.add(je),je.add(new go.PathSegment(go.PathSegment.Line,de,pe)),je.add(new go.PathSegment(go.PathSegment.Line,de,0)),je.add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)),je.add(new go.PathSegment(go.PathSegment.Line,de,te)),je.add(new go.PathSegment(go.PathSegment.Line,de,ye)),je.add(new go.PathSegment(go.PathSegment.Line,0,ye).close()),Ce.spot1=new go.Spot(0,pe/te);var Te=lt(0,ye/te,1,ye/te,de/ne,1,1,.5,ve());return Ce.spot2=new go.Spot(Te.x,Te.y),_e(Te),Ce}),go.Shape.setFigureParameter("Arrow2",0,new gn("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new gn("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(Ee,ne,te){var ue=Ee?Ee.parameter1:NaN;isNaN(ue)&&(ue=30),ue>ne&&(ue=ne);var se=Ee?Ee.parameter2:NaN;isNaN(se)&&(se=30),se=Math.min(se,te/2);var de=ne-ue,pe=(te-se)/2,ye=pe+se,Ce=new go.Geometry,je=new go.PathFigure(0,pe,!0);Ce.add(je),je.add(new go.PathSegment(go.PathSegment.Line,de,pe)),je.add(new go.PathSegment(go.PathSegment.Line,de,0)),je.add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)),je.add(new go.PathSegment(go.PathSegment.Line,de,te)),je.add(new go.PathSegment(go.PathSegment.Line,de,ye)),je.add(new go.PathSegment(go.PathSegment.Line,0,ye).close()),Ce.spot1=new go.Spot(0,pe/te);var Te=lt(0,ye/te,1,ye/te,de/ne,1,1,.5,ve());return Ce.spot2=new go.Spot(Te.x,Te.y),_e(Te),Ce}),go.Shape.defineFigureGenerator("Chevron",function(Ee,ne,te){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*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,0,te)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.5*te).close()),ue}),go.Shape.defineFigureGenerator("DoubleArrow",function(Ee,ne,te){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*ne,.214*te)),se.add(new go.PathSegment(go.PathSegment.Line,.3*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,1*ne,.5*te)),se.add(new go.PathSegment(go.PathSegment.Line,.3*ne,1*te)),se.add(new go.PathSegment(go.PathSegment.Line,.3*ne,.786*te)),se.add(new go.PathSegment(go.PathSegment.Line,0,1*te).close()),ue}),go.Shape.setFigureParameter("DoubleEndArrow",0,new gn("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(Ee,ne,te){var ue=Ee?Ee.parameter1:NaN;isNaN(ue)&&(ue=.3);var se=(.5-ue/2)*te,de=(.5+ue/2)*te,pe=new go.Geometry,ye=new go.PathFigure(ne,.5*te,!0);pe.add(ye),ye.add(new go.PathSegment(go.PathSegment.Line,.7*ne,te)),ye.add(new go.PathSegment(go.PathSegment.Line,.7*ne,de)),ye.add(new go.PathSegment(go.PathSegment.Line,.3*ne,de)),ye.add(new go.PathSegment(go.PathSegment.Line,.3*ne,te)),ye.add(new go.PathSegment(go.PathSegment.Line,0,.5*te)),ye.add(new go.PathSegment(go.PathSegment.Line,.3*ne,0)),ye.add(new go.PathSegment(go.PathSegment.Line,.3*ne,se)),ye.add(new go.PathSegment(go.PathSegment.Line,.7*ne,se)),ye.add(new go.PathSegment(go.PathSegment.Line,.7*ne,0).close());var Ce=lt(0,.5,.3,0,0,se/te,.1,se/te,ve());return pe.spot1=new go.Spot(Ce.x,Ce.y),Ce=lt(.7,1,1,.5,0,de/te,1,de/te,Ce),pe.spot2=new go.Spot(Ce.x,Ce.y),_e(Ce),pe}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new gn("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new gn("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(Ee,ne,te){var ue=Ee?Ee.parameter1:NaN;isNaN(ue)&&(ue=40);var se=Ee?Ee.parameter2:NaN;isNaN(se)&&(se=100);var de=(te-ue)/2,pe=de+ue,ye=(te-se)/2,Ce=ye+se;(ue>te||se>te)&&(se>ue?(ue=ue*te/se,de=(te-ue)/2,pe=de+ue,ye=0,Ce=te):(de=0,pe=te,ye=0,Ce=te));var je=new go.Geometry,Te=new go.PathFigure(ne,.5*te,!0);je.add(Te),Te.add(new go.PathSegment(go.PathSegment.Line,.7*ne,Ce)),Te.add(new go.PathSegment(go.PathSegment.Line,.7*ne,pe)),Te.add(new go.PathSegment(go.PathSegment.Line,.3*ne,pe)),Te.add(new go.PathSegment(go.PathSegment.Line,.3*ne,Ce)),Te.add(new go.PathSegment(go.PathSegment.Line,0,.5*te)),Te.add(new go.PathSegment(go.PathSegment.Line,.3*ne,ye)),Te.add(new go.PathSegment(go.PathSegment.Line,.3*ne,de)),Te.add(new go.PathSegment(go.PathSegment.Line,.7*ne,de)),Te.add(new go.PathSegment(go.PathSegment.Line,.7*ne,ye).close());var Ie=lt(0,.5,.3,ye/te,0,de/te,1,de/te,ve());return je.spot1=new go.Spot(Ie.x,Ie.y),Ie=lt(.7,Ce/te,1,.5,0,pe/te,1,pe/te,Ie),je.spot2=new go.Spot(Ie.x,Ie.y),_e(Ie),je}),go.Shape.setFigureParameter("IBeamArrow",0,new gn("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(Ee,ne,te){var ue=Ee?Ee.parameter1:NaN;isNaN(ue)&&(ue=.3);var se=(.5-ue/2)*te,de=(.5+ue/2)*te,pe=new go.Geometry,ye=new go.PathFigure(ne,.5*te,!0);pe.add(ye),ye.add(new go.PathSegment(go.PathSegment.Line,.7*ne,te)),ye.add(new go.PathSegment(go.PathSegment.Line,.7*ne,de)),ye.add(new go.PathSegment(go.PathSegment.Line,.2*ne,de)),ye.add(new go.PathSegment(go.PathSegment.Line,.2*ne,te)),ye.add(new go.PathSegment(go.PathSegment.Line,0,te)),ye.add(new go.PathSegment(go.PathSegment.Line,0,0)),ye.add(new go.PathSegment(go.PathSegment.Line,.2*ne,0)),ye.add(new go.PathSegment(go.PathSegment.Line,.2*ne,se)),ye.add(new go.PathSegment(go.PathSegment.Line,.7*ne,se)),ye.add(new go.PathSegment(go.PathSegment.Line,.7*ne,0).close()),pe.spot1=new go.Spot(0,se/te);var Ce=lt(.7,1,1,.5,0,de/te,1,de/te,ve());return pe.spot2=new go.Spot(Ce.x,Ce.y),_e(Ce),pe}),go.Shape.setFigureParameter("IBeamArrow2",0,new gn("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new gn("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(Ee,ne,te){var ue=Ee?Ee.parameter1:NaN;isNaN(ue)&&(ue=40);var se=Ee?Ee.parameter2:NaN;isNaN(se)&&(se=100);var de=(te-ue)/2,pe=de+ue,ye=(te-se)/2,Ce=ye+se;(ue>te||se>te)&&(se>ue?(ue=ue*te/se,de=(te-ue)/2,pe=de+ue,ye=0,Ce=te):(de=0,pe=te,ye=0,Ce=te));var je=new go.Geometry,Te=new go.PathFigure(ne,.5*te,!0);je.add(Te),Te.add(new go.PathSegment(go.PathSegment.Line,.7*ne,Ce)),Te.add(new go.PathSegment(go.PathSegment.Line,.7*ne,pe)),Te.add(new go.PathSegment(go.PathSegment.Line,.2*ne,pe)),Te.add(new go.PathSegment(go.PathSegment.Line,.2*ne,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*ne,ye)),Te.add(new go.PathSegment(go.PathSegment.Line,.2*ne,de)),Te.add(new go.PathSegment(go.PathSegment.Line,.7*ne,de)),Te.add(new go.PathSegment(go.PathSegment.Line,.7*ne,ye).close()),je.spot1=new go.Spot(0,de/te);var Ie=lt(.7,Ce/te,1,.5,0,pe/te,1,pe/te,ve());return je.spot2=new go.Spot(Ie.x,Ie.y),_e(Ie),je}),go.Shape.setFigureParameter("Pointer",0,new gn("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(Ee,ne,te){var ue=Ee?Ee.parameter1:NaN;isNaN(ue)&&(ue=.1);var se=new go.Geometry,de=new go.PathFigure(ne,.5*te,!0);se.add(de),de.add(new go.PathSegment(go.PathSegment.Line,0,te)),de.add(new go.PathSegment(go.PathSegment.Line,ue*ne,.5*te)),de.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),se.spot1=new go.Spot(ue,.35);var pe=lt(.2,.65,1,.65,0,1,1,.5,ve());return se.spot2=new go.Spot(pe.x,pe.y),_e(pe),se}),go.Shape.setFigureParameter("RoundedPointer",0,new gn("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(Ee,ne,te){var ue=Ee?Ee.parameter1:NaN;isNaN(ue)&&(ue=.3);var se=new go.Geometry,de=new go.PathFigure(ne,.5*te,!0);se.add(de),de.add(new go.PathSegment(go.PathSegment.Line,0,te)),de.add(new go.PathSegment(go.PathSegment.Bezier,0,0,ue*ne,.75*te,ue*ne,.25*te).close()),se.spot1=new go.Spot(ue,.35);var pe=lt(0,.65,1,.65,0,1,1,.5,ve());return se.spot2=new go.Spot(pe.x,pe.y),_e(pe),se}),go.Shape.setFigureParameter("SplitEndArrow",0,new gn("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(Ee,ne,te){var ue=Ee?Ee.parameter1:NaN;isNaN(ue)&&(ue=.4);var se=(.5-ue/2)*te,de=(.5+ue/2)*te,pe=new go.Geometry,ye=new go.PathFigure(ne,.5*te,!0);pe.add(ye),ye.add(new go.PathSegment(go.PathSegment.Line,.7*ne,te)),ye.add(new go.PathSegment(go.PathSegment.Line,.7*ne,de)),ye.add(new go.PathSegment(go.PathSegment.Line,0,de)),ye.add(new go.PathSegment(go.PathSegment.Line,.2*ne,.5*te)),ye.add(new go.PathSegment(go.PathSegment.Line,0,se)),ye.add(new go.PathSegment(go.PathSegment.Line,.7*ne,se)),ye.add(new go.PathSegment(go.PathSegment.Line,.7*ne,0).close()),pe.spot1=new go.Spot(.2,.3);var Ce=lt(.7,1,1,.5,0,de/te,1,de/te,ve());return pe.spot2=new go.Spot(Ce.x,Ce.y),_e(Ce),pe}),go.Shape.setFigureParameter("SplitEndArrow2",0,new gn("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(Ee,ne,te){var ue=Ee?Ee.parameter1:NaN;isNaN(ue)&&(ue=50);var se=(te-ue)/2,de=se+ue;ue>te&&(se=0,de=te);var pe=new go.Geometry,ye=new go.PathFigure(ne,.5*te,!0);pe.add(ye),ye.add(new go.PathSegment(go.PathSegment.Line,.7*ne,te)),ye.add(new go.PathSegment(go.PathSegment.Line,.7*ne,de)),ye.add(new go.PathSegment(go.PathSegment.Line,0,de)),ye.add(new go.PathSegment(go.PathSegment.Line,.2*ne,.5*te)),ye.add(new go.PathSegment(go.PathSegment.Line,0,se)),ye.add(new go.PathSegment(go.PathSegment.Line,.7*ne,se)),ye.add(new go.PathSegment(go.PathSegment.Line,.7*ne,0).close()),pe.spot1=new go.Spot(.2,se/te);var Ce=lt(.7,1,1,.5,0,de/te,1,de/te,ve());return pe.spot2=new go.Spot(Ce.x,Ce.y),_e(Ce),pe}),go.Shape.setFigureParameter("SquareArrow",0,new gn("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(Ee,ne,te){var ue=Ee?Ee.parameter1:NaN;isNaN(ue)&&(ue=.7);var se=new go.Geometry,de=new go.PathFigure(ne,.5*te,!0);return se.add(de),de.add(new go.PathSegment(go.PathSegment.Line,ue*ne,te)),de.add(new go.PathSegment(go.PathSegment.Line,0,te)),de.add(new go.PathSegment(go.PathSegment.Line,0,0)),de.add(new go.PathSegment(go.PathSegment.Line,ue*ne,0).close()),se.spot1=go.Spot.TopLeft,se.spot2=new go.Spot(ue,1),se}),go.Shape.defineFigureGenerator("Cone1",function(Ee,ne,te){var ue=new go.Geometry,se=Ue*.5,de=Ue*.1,pe=new go.PathFigure(0,.9*te,!0);return ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.5*ne,0)),pe.add(new go.PathSegment(go.PathSegment.Line,ne,.9*te)),pe.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,te,ne,(.9+de)*te,(.5+se)*ne,te)),pe.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*te,(.5-se)*ne,te,0,(.9+de)*te).close()),ue.spot1=new go.Spot(.25,.5),ue.spot2=new go.Spot(.75,.97),ue}),go.Shape.defineFigureGenerator("Cone2",function(Ee,ne,te){var ue=new go.Geometry,se=new go.PathFigure(0,.9*te,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,ne,.9*te,(1-.85/.9)*ne,te,.85/.9*ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,0,.9*te).close());var de=new go.PathFigure(0,.9*te,!1);return ue.add(de),de.add(new go.PathSegment(go.PathSegment.Bezier,ne,.9*te,(1-.85/.9)*ne,.8*te,.85/.9*ne,.8*te)),ue.spot1=new go.Spot(.25,.5),ue.spot2=new go.Spot(.75,.82),ue}),go.Shape.defineFigureGenerator("Cube1",function(Ee,ne,te){var ue=new go.Geometry,se=new go.PathFigure(.5*ne,te,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne,.85*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.15*te)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,0,.15*te)),se.add(new go.PathSegment(go.PathSegment.Line,0,.85*te).close());var de=new go.PathFigure(.5*ne,te,!1);return ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.3*te)),de.add(new go.PathSegment(go.PathSegment.Line,0,.15*te)),de.add(new go.PathSegment(go.PathSegment.Move,.5*ne,.3*te)),de.add(new go.PathSegment(go.PathSegment.Line,ne,.15*te)),ue.spot1=new go.Spot(0,.3),ue.spot2=new go.Spot(.5,.85),ue}),go.Shape.defineFigureGenerator("Cube2",function(Ee,ne,te){var ue=new go.Geometry,se=new go.PathFigure(0,.3*te,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,te)),se.add(new go.PathSegment(go.PathSegment.Line,.7*ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.7*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.3*ne,0).close());var de=new go.PathFigure(0,.3*te,!1);return ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.7*ne,.3*te)),de.add(new go.PathSegment(go.PathSegment.Line,ne,0)),de.add(new go.PathSegment(go.PathSegment.Move,.7*ne,.3*te)),de.add(new go.PathSegment(go.PathSegment.Line,.7*ne,te)),ue.spot1=new go.Spot(0,.3),ue.spot2=new go.Spot(.7,1),ue}),go.Shape.defineFigureGenerator("Cylinder1",function(Ee,ne,te){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(0,ue,!0);se.add(pe),pe.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,0,0,Ue*ue,(.5-de)*ne,0)),pe.add(new go.PathSegment(go.PathSegment.Bezier,1*ne,ue,(.5+de)*ne,0,1*ne,Ue*ue)),pe.add(new go.PathSegment(go.PathSegment.Line,ne,te-ue)),pe.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,1*te,1*ne,te-Ue*ue,(.5+de)*ne,1*te)),pe.add(new go.PathSegment(go.PathSegment.Bezier,0,te-ue,(.5-de)*ne,1*te,0,te-Ue*ue)),pe.add(new go.PathSegment(go.PathSegment.Line,0,ue));var ye=new go.PathFigure(ne,ue,!1);return se.add(ye),ye.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,2*ue,1*ne,2*ue-Ue*ue,(.5+de)*ne,2*ue)),ye.add(new go.PathSegment(go.PathSegment.Bezier,0,ue,(.5-de)*ne,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,ne,te){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(0,te-ue,!0);se.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,0,ue)),pe.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,0,0,Ue*ue,(.5-de)*ne,0)),pe.add(new go.PathSegment(go.PathSegment.Bezier,ne,ue,(.5+de)*ne,0,ne,Ue*ue)),pe.add(new go.PathSegment(go.PathSegment.Line,ne,te-ue)),pe.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,te,ne,te-Ue*ue,(.5+de)*ne,te)),pe.add(new go.PathSegment(go.PathSegment.Bezier,0,te-ue,(.5-de)*ne,te,0,te-Ue*ue));var ye=new go.PathFigure(0,te-ue,!1);return se.add(ye),ye.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,te-2*ue,0,te-ue-Ue*ue,(.5-de)*ne,te-2*ue)),ye.add(new go.PathSegment(go.PathSegment.Bezier,ne,te-ue,(.5+de)*ne,te-2*ue,ne,te-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,ne,te){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(ue,0,!0);se.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,ne-ue,0)),pe.add(new go.PathSegment(go.PathSegment.Bezier,ne,.5*te,ne-Ue*ue,0,ne,(.5-de)*te)),pe.add(new go.PathSegment(go.PathSegment.Bezier,ne-ue,te,ne,(.5+de)*te,ne-Ue*ue,te)),pe.add(new go.PathSegment(go.PathSegment.Line,ue,te)),pe.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*te,Ue*ue,te,0,(.5+de)*te)),pe.add(new go.PathSegment(go.PathSegment.Bezier,ue,0,0,(.5-de)*te,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*te,ue+Ue*ue,0,2*ue,(.5-de)*te)),ye.add(new go.PathSegment(go.PathSegment.Bezier,ue,te,2*ue,(.5+de)*te,ue+Ue*ue,te)),se.spot1=new go.Spot(0,0,2*ue,0),se.spot2=new go.Spot(1,1),se}),go.Shape.defineFigureGenerator("Cylinder4",function(Ee,ne,te){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(ne-ue,0,!0);se.add(pe),pe.add(new go.PathSegment(go.PathSegment.Bezier,ne,.5*te,ne-Ue*ue,0,ne,(.5-de)*te)),pe.add(new go.PathSegment(go.PathSegment.Bezier,ne-ue,te,ne,(.5+de)*te,ne-Ue*ue,te)),pe.add(new go.PathSegment(go.PathSegment.Line,ue,te)),pe.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*te,Ue*ue,te,0,(.5+de)*te)),pe.add(new go.PathSegment(go.PathSegment.Bezier,ue,0,0,(.5-de)*te,Ue*ue,0)),pe.add(new go.PathSegment(go.PathSegment.Line,ne-ue,0));var ye=new go.PathFigure(ne-ue,0,!1);return se.add(ye),ye.add(new go.PathSegment(go.PathSegment.Bezier,ne-2*ue,.5*te,ne-ue-Ue*ue,0,ne-2*ue,(.5-de)*te)),ye.add(new go.PathSegment(go.PathSegment.Bezier,ne-ue,te,ne-2*ue,(.5+de)*te,ne-ue-Ue*ue,te)),se.spot1=new go.Spot(0,0),se.spot2=new go.Spot(1,1,-2*ue,0),se}),go.Shape.defineFigureGenerator("Prism1",function(Ee,ne,te){var ue=new go.Geometry,se=new go.PathFigure(.25*ne,.25*te,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.75*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,0,te).close());var de=new go.PathFigure(.25*ne,.25*te,!1);return ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.5*ne,te)),ue.spot1=new go.Spot(.408,.172),ue.spot2=new go.Spot(.833,.662),ue}),go.Shape.defineFigureGenerator("Prism2",function(Ee,ne,te){var ue=new go.Geometry,se=new go.PathFigure(0,.25*te,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.75*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.25*te)),se.add(new go.PathSegment(go.PathSegment.Line,.75*ne,.75*te)),se.add(new go.PathSegment(go.PathSegment.Line,0,te).close());var de=new go.PathFigure(0,te,!1);return ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.25*ne,.5*te)),de.add(new go.PathSegment(go.PathSegment.Line,ne,.25*te)),de.add(new go.PathSegment(go.PathSegment.Move,0,.25*te)),de.add(new go.PathSegment(go.PathSegment.Line,.25*ne,.5*te)),ue.spot1=new go.Spot(.25,.5),ue.spot2=new go.Spot(.75,.75),ue}),go.Shape.defineFigureGenerator("Pyramid1",function(Ee,ne,te){var ue=new go.Geometry,se=new go.PathFigure(.5*ne,0,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne,.75*te)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,0,.75*te).close());var de=new go.PathFigure(.5*ne,0,!1);return ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.5*ne,te)),ue.spot1=new go.Spot(.25,.367),ue.spot2=new go.Spot(.75,.875),ue}),go.Shape.defineFigureGenerator("Pyramid2",function(Ee,ne,te){var ue=new go.Geometry,se=new go.PathFigure(.5*ne,0,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne,.85*te)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,0,.85*te).close());var de=new go.PathFigure(.5*ne,0,!1);return ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.7*te)),de.add(new go.PathSegment(go.PathSegment.Line,0,.85*te)),de.add(new go.PathSegment(go.PathSegment.Move,.5*ne,.7*te)),de.add(new go.PathSegment(go.PathSegment.Line,ne,.85*te)),ue.spot1=new go.Spot(.25,.367),ue.spot2=new go.Spot(.75,.875),ue}),go.Shape.defineFigureGenerator("Actor",function(Ee,ne,te){var ue=new go.Geometry,se=.2,de=.1,pe=Ue*se,ye=Ue*de,Ce=.5,je=.1,Te=new go.PathFigure(Ce*ne,(je+de)*te,!0);ue.add(Te),Te.add(new go.PathSegment(go.PathSegment.Bezier,(Ce-se)*ne,je*te,(Ce-pe)*ne,(je+de)*te,(Ce-se)*ne,(je+ye)*te)),Te.add(new go.PathSegment(go.PathSegment.Bezier,Ce*ne,(je-de)*te,(Ce-se)*ne,(je-ye)*te,(Ce-pe)*ne,(je-de)*te)),Te.add(new go.PathSegment(go.PathSegment.Bezier,(Ce+se)*ne,je*te,(Ce+pe)*ne,(je-de)*te,(Ce+se)*ne,(je-ye)*te)),Te.add(new go.PathSegment(go.PathSegment.Bezier,Ce*ne,(je+de)*te,(Ce+se)*ne,(je+ye)*te,(Ce+pe)*ne,(je+de)*te));var Ie=.05,Oe=Ue*Ie;Ce=.05,je=.25;var Re=new go.PathFigure(.5*ne,.2*te,!0);return ue.add(Re),Re.add(new go.PathSegment(go.PathSegment.Line,.95*ne,.2*te)),Ce=.95,je=.25,Re.add(new go.PathSegment(go.PathSegment.Bezier,(Ce+Ie)*ne,je*te,(Ce+Oe)*ne,(je-Ie)*te,(Ce+Ie)*ne,(je-Oe)*te)),Re.add(new go.PathSegment(go.PathSegment.Line,ne,.6*te)),Re.add(new go.PathSegment(go.PathSegment.Line,.85*ne,.6*te)),Re.add(new go.PathSegment(go.PathSegment.Line,.85*ne,.35*te)),Ie=.025,Oe=Ue*Ie,Ce=.825,je=.35,Re.add(new go.PathSegment(go.PathSegment.Bezier,Ce*ne,(je-Ie)*te,(Ce+Ie)*ne,(je-Oe)*te,(Ce+Oe)*ne,(je-Ie)*te)),Re.add(new go.PathSegment(go.PathSegment.Bezier,(Ce-Ie)*ne,je*te,(Ce-Oe)*ne,(je-Ie)*te,(Ce-Ie)*ne,(je-Oe)*te)),Re.add(new go.PathSegment(go.PathSegment.Line,.8*ne,te)),Re.add(new go.PathSegment(go.PathSegment.Line,.55*ne,te)),Re.add(new go.PathSegment(go.PathSegment.Line,.55*ne,.7*te)),Ie=.05,Oe=Ue*Ie,Ce=.5,je=.7,Re.add(new go.PathSegment(go.PathSegment.Bezier,Ce*ne,(je-Ie)*te,(Ce+Ie)*ne,(je-Oe)*te,(Ce+Oe)*ne,(je-Ie)*te)),Re.add(new go.PathSegment(go.PathSegment.Bezier,(Ce-Ie)*ne,je*te,(Ce-Oe)*ne,(je-Ie)*te,(Ce-Ie)*ne,(je-Oe)*te)),Re.add(new go.PathSegment(go.PathSegment.Line,.45*ne,te)),Re.add(new go.PathSegment(go.PathSegment.Line,.2*ne,te)),Re.add(new go.PathSegment(go.PathSegment.Line,.2*ne,.35*te)),Ie=.025,Oe=Ue*Ie,Ce=.175,je=.35,Re.add(new go.PathSegment(go.PathSegment.Bezier,Ce*ne,(je-Ie)*te,(Ce+Ie)*ne,(je-Oe)*te,(Ce+Oe)*ne,(je-Ie)*te)),Re.add(new go.PathSegment(go.PathSegment.Bezier,(Ce-Ie)*ne,je*te,(Ce-Oe)*ne,(je-Ie)*te,(Ce-Ie)*ne,(je-Oe)*te)),Re.add(new go.PathSegment(go.PathSegment.Line,.15*ne,.6*te)),Re.add(new go.PathSegment(go.PathSegment.Line,0,.6*te)),Re.add(new go.PathSegment(go.PathSegment.Line,0,.25*te)),Ie=.05,Oe=Ue*Ie,Ce=.05,je=.25,Re.add(new go.PathSegment(go.PathSegment.Bezier,Ce*ne,(je-Ie)*te,(Ce-Ie)*ne,(je-Oe)*te,(Ce-Oe)*ne,(je-Ie)*te)),Re.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.2*te)),ue.spot1=new go.Spot(.2,.2),ue.spot2=new go.Spot(.8,.65),ue}),go.Shape.setFigureParameter("Card",0,new gn("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(Ee,ne,te){var ue=Ee?Ee.parameter1:NaN;isNaN(ue)&&(ue=.2);var se=new go.Geometry,de=new go.PathFigure(ne,0,!0);return se.add(de),de.add(new go.PathSegment(go.PathSegment.Line,ne,te)),de.add(new go.PathSegment(go.PathSegment.Line,0,te)),de.add(new go.PathSegment(go.PathSegment.Line,0,ue*te)),de.add(new go.PathSegment(go.PathSegment.Line,ue*ne,0).close()),se.spot1=new go.Spot(0,ue),se.spot2=go.Spot.BottomRight,se}),go.Shape.defineFigureGenerator("Collate",function(Ee,ne,te){var ue=new go.Geometry,se=new go.PathFigure(.5*ne,.5*te,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.5*te));var de=new go.PathFigure(.5*ne,.5*te,!0);return ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,ne,te)),de.add(new go.PathSegment(go.PathSegment.Line,0,te)),de.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.5*te)),ue.spot1=new go.Spot(.25,0),ue.spot2=new go.Spot(.75,.25),ue}),go.Shape.defineFigureGenerator("CreateRequest",function(Ee,ne,te){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,ne,0)),de.add(new go.PathSegment(go.PathSegment.Line,ne,te)),de.add(new go.PathSegment(go.PathSegment.Line,0,te).close());var pe=new go.PathFigure(0,se*te,!1);return ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,ne,se*te)),pe.add(new go.PathSegment(go.PathSegment.Move,0,(1-se)*te)),pe.add(new go.PathSegment(go.PathSegment.Line,ne,(1-se)*te)),ue}),go.Shape.defineFigureGenerator("Database",function(Ee,ne,te){var ue=new go.Geometry,se=Ue*.5,de=Ue*.1,pe=new go.PathFigure(ne,.1*te,!0);ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,ne,.9*te)),pe.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,te,ne,(.9+de)*te,(.5+se)*ne,te)),pe.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*te,(.5-se)*ne,te,0,(.9+de)*te)),pe.add(new go.PathSegment(go.PathSegment.Line,0,.1*te)),pe.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,0,0,(.1-de)*te,(.5-se)*ne,0)),pe.add(new go.PathSegment(go.PathSegment.Bezier,ne,.1*te,(.5+se)*ne,0,ne,(.1-de)*te));var ye=new go.PathFigure(ne,.1*te,!1);return ue.add(ye),ye.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,.2*te,ne,(.1+de)*te,(.5+se)*ne,.2*te)),ye.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*te,(.5-se)*ne,.2*te,0,(.1+de)*te)),ye.add(new go.PathSegment(go.PathSegment.Move,ne,.2*te)),ye.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,.3*te,ne,(.2+de)*te,(.5+se)*ne,.3*te)),ye.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*te,(.5-se)*ne,.3*te,0,(.2+de)*te)),ye.add(new go.PathSegment(go.PathSegment.Move,ne,.3*te)),ye.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,.4*te,ne,(.3+de)*te,(.5+se)*ne,.4*te)),ye.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*te,(.5-se)*ne,.4*te,0,(.3+de)*te)),ue.spot1=new go.Spot(0,.4),ue.spot2=new go.Spot(1,.9),ue}),go.Shape.defineFigureGenerator("DataStorage",function(Ee,ne,te){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*ne,0)),se.add(new go.PathSegment(go.PathSegment.Bezier,.75*ne,te,ne,0,ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,0,te)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*ne,.9*te,.25*ne,.1*te).close()),ue.spot1=new go.Spot(.226,0),ue.spot2=new go.Spot(.81,1),ue}),go.Shape.defineFigureGenerator("DiskStorage",function(Ee,ne,te){var ue=new go.Geometry,se=Ue*.5,de=Ue*.1,pe=new go.PathFigure(ne,.1*te,!0);ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,ne,.9*te)),pe.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,te,ne,(.9+de)*te,(.5+se)*ne,te)),pe.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*te,(.5-se)*ne,te,0,(.9+de)*te)),pe.add(new go.PathSegment(go.PathSegment.Line,0,.1*te)),pe.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,0,0,(.1-de)*te,(.5-se)*ne,0)),pe.add(new go.PathSegment(go.PathSegment.Bezier,ne,.1*te,(.5+se)*ne,0,ne,(.1-de)*te));var ye=new go.PathFigure(ne,.1*te,!1);return ue.add(ye),ye.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,.2*te,ne,(.1+de)*te,(.5+se)*ne,.2*te)),ye.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*te,(.5-se)*ne,.2*te,0,(.1+de)*te)),ye.add(new go.PathSegment(go.PathSegment.Move,ne,.2*te)),ye.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,.3*te,ne,(.2+de)*te,(.5+se)*ne,.3*te)),ye.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*te,(.5-se)*ne,.3*te,0,(.2+de)*te)),ue.spot1=new go.Spot(0,.3),ue.spot2=new go.Spot(1,.9),ue}),go.Shape.defineFigureGenerator("Display",function(Ee,ne,te){var ue=new go.Geometry,se=new go.PathFigure(.25*ne,0,!0);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.75*ne,0)),se.add(new go.PathSegment(go.PathSegment.Bezier,.75*ne,te,ne,0,ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,.25*ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,0,.5*te).close()),ue.spot1=new go.Spot(.25,0),ue.spot2=new go.Spot(.75,1),ue}),go.Shape.defineFigureGenerator("DividedEvent",function(Ee,ne,te){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*te,!0);ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Bezier,.2*ne,0,0,(.2-de)*te,(.2-de)*ne,0)),pe.add(new go.PathSegment(go.PathSegment.Line,.8*ne,0)),pe.add(new go.PathSegment(go.PathSegment.Bezier,ne,.2*te,(.8+de)*ne,0,ne,(.2-de)*te)),pe.add(new go.PathSegment(go.PathSegment.Line,ne,.8*te)),pe.add(new go.PathSegment(go.PathSegment.Bezier,.8*ne,te,ne,(.8+de)*te,(.8+de)*ne,te)),pe.add(new go.PathSegment(go.PathSegment.Line,.2*ne,te)),pe.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*te,(.2-de)*ne,te,0,(.8+de)*te)),pe.add(new go.PathSegment(go.PathSegment.Line,0,.2*te));var ye=new go.PathFigure(0,se*te,!1);return ue.add(ye),ye.add(new go.PathSegment(go.PathSegment.Line,ne,se*te)),ue}),go.Shape.defineFigureGenerator("DividedProcess",function(Ee,ne,te){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,ne,0)),de.add(new go.PathSegment(go.PathSegment.Line,ne,te)),de.add(new go.PathSegment(go.PathSegment.Line,0,te).close());var pe=new go.PathFigure(0,se*te,!1);return ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,ne,se*te)),ue}),go.Shape.defineFigureGenerator("Document",function(Ee,ne,te){var ue=new go.Geometry;te=te/.8;var se=new go.PathFigure(0,.7*te,!0);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.7*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*te,.5*ne,.4*te,.5*ne,te).close()),ue.spot1=go.Spot.TopLeft,ue.spot2=new go.Spot(1,.6),ue}),go.Shape.defineFigureGenerator("ExternalOrganization",function(Ee,ne,te){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,ne,0)),de.add(new go.PathSegment(go.PathSegment.Line,ne,te)),de.add(new go.PathSegment(go.PathSegment.Line,0,te).close());var pe=new go.PathFigure(se*ne,0,!1);return ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,0,se*te)),pe.add(new go.PathSegment(go.PathSegment.Move,ne,se*te)),pe.add(new go.PathSegment(go.PathSegment.Line,(1-se)*ne,0)),pe.add(new go.PathSegment(go.PathSegment.Move,0,(1-se)*te)),pe.add(new go.PathSegment(go.PathSegment.Line,se*ne,te)),pe.add(new go.PathSegment(go.PathSegment.Move,(1-se)*ne,te)),pe.add(new go.PathSegment(go.PathSegment.Line,ne,(1-se)*te)),ue}),go.Shape.defineFigureGenerator("ExternalProcess",function(Ee,ne,te){var ue=new go.Geometry,se=new go.PathFigure(.5*ne,0,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,0,.5*te).close());var de=new go.PathFigure(.1*ne,.4*te,!1);return ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.1*ne,.6*te)),de.add(new go.PathSegment(go.PathSegment.Move,.9*ne,.6*te)),de.add(new go.PathSegment(go.PathSegment.Line,.9*ne,.4*te)),de.add(new go.PathSegment(go.PathSegment.Move,.6*ne,.1*te)),de.add(new go.PathSegment(go.PathSegment.Line,.4*ne,.1*te)),de.add(new go.PathSegment(go.PathSegment.Move,.4*ne,.9*te)),de.add(new go.PathSegment(go.PathSegment.Line,.6*ne,.9*te)),ue.spot1=new go.Spot(.25,.25),ue.spot2=new go.Spot(.75,.75),ue}),go.Shape.defineFigureGenerator("File",function(Ee,ne,te){var ue=new go.Geometry,se=new go.PathFigure(0,0,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.75*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.25*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,0,te).close());var de=new go.PathFigure(.75*ne,0,!1);return ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.75*ne,.25*te)),de.add(new go.PathSegment(go.PathSegment.Line,ne,.25*te)),ue.spot1=new go.Spot(0,.25),ue.spot2=go.Spot.BottomRight,ue}),go.Shape.defineFigureGenerator("Interrupt",function(Ee,ne,te){var ue=new go.Geometry,se=new go.PathFigure(ne,.5*te,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,te)),se.add(new go.PathSegment(go.PathSegment.Line,0,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.5*te));var de=new go.PathFigure(ne,.5*te,!1);ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,ne,te));var pe=new go.PathFigure(ne,.5*te,!1);return ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,ne,0)),ue.spot1=new go.Spot(0,.25),ue.spot2=new go.Spot(.5,.75),ue}),go.Shape.defineFigureGenerator("InternalStorage",function(Ee,ne,te){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,ne,0)),pe.add(new go.PathSegment(go.PathSegment.Line,ne,te)),pe.add(new go.PathSegment(go.PathSegment.Line,0,te).close());var ye=new go.PathFigure(se*ne,0,!1);return ue.add(ye),ye.add(new go.PathSegment(go.PathSegment.Line,se*ne,te)),ye.add(new go.PathSegment(go.PathSegment.Move,0,de*te)),ye.add(new go.PathSegment(go.PathSegment.Line,ne,de*te)),ue}),go.Shape.defineFigureGenerator("Junction",function(Ee,ne,te){var ue=new go.Geometry,se=1/Math.SQRT2,de=(1-1/Math.SQRT2)/2,pe=Ue*.5,ye=.5,Ce=new go.PathFigure(ne,ye*te,!0);ue.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,ye*ne,te,ne,(ye+pe)*te,(ye+pe)*ne,te)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,0,ye*te,(ye-pe)*ne,te,0,(ye+pe)*te)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,ye*ne,0,0,(ye-pe)*te,(ye-pe)*ne,0)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,ne,ye*te,(ye+pe)*ne,0,ne,(ye-pe)*te));var je=new go.PathFigure((de+se)*ne,(de+se)*te,!1);return ue.add(je),je.add(new go.PathSegment(go.PathSegment.Line,de*ne,de*te)),je.add(new go.PathSegment(go.PathSegment.Move,de*ne,(de+se)*te)),je.add(new go.PathSegment(go.PathSegment.Line,(de+se)*ne,de*te)),ue}),go.Shape.defineFigureGenerator("LinedDocument",function(Ee,ne,te){var ue=new go.Geometry;te=te/.8;var se=new go.PathFigure(0,.7*te,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.7*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*te,.5*ne,.4*te,.5*ne,te).close());var de=new go.PathFigure(.1*ne,0,!1);return ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.1*ne,.75*te)),ue.spot1=new go.Spot(.1,0),ue.spot2=new go.Spot(1,.6),ue}),go.Shape.defineFigureGenerator("LoopLimit",function(Ee,ne,te){var ue=new go.Geometry,se=new go.PathFigure(0,te,!0);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,.25*te)),se.add(new go.PathSegment(go.PathSegment.Line,.25*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.75*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.25*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,te).close()),ue.spot1=new go.Spot(0,.25),ue.spot2=go.Spot.BottomRight,ue}),go.Shape.defineFigureGenerator("MagneticTape",function(Ee,ne,te){var ue=new go.Geometry,se=Ue*.5,de=.5,pe=new go.PathFigure(.5*ne,te,!0);return ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Bezier,0,de*te,(de-se)*ne,te,0,(de+se)*te)),pe.add(new go.PathSegment(go.PathSegment.Bezier,de*ne,0,0,(de-se)*te,(de-se)*ne,0)),pe.add(new go.PathSegment(go.PathSegment.Bezier,ne,de*te,(de+se)*ne,0,ne,(de-se)*te)),pe.add(new go.PathSegment(go.PathSegment.Bezier,(de+.1)*ne,.9*te,ne,(de+se)*te,(de+se)*ne,.9*te)),pe.add(new go.PathSegment(go.PathSegment.Line,ne,.9*te)),pe.add(new go.PathSegment(go.PathSegment.Line,ne,te)),pe.add(new go.PathSegment(go.PathSegment.Line,.5*ne,te)),ue.spot1=new go.Spot(.15,.15),ue.spot2=new go.Spot(.85,.8),ue}),go.Shape.defineFigureGenerator("ManualInput",function(Ee,ne,te){var ue=new go.Geometry,se=new go.PathFigure(ne,0,!0);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,0,te)),se.add(new go.PathSegment(go.PathSegment.Line,0,.25*te).close()),ue.spot1=new go.Spot(0,.25),ue.spot2=go.Spot.BottomRight,ue}),go.Shape.defineFigureGenerator("MessageFromUser",function(Ee,ne,te){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,ne,0)),de.add(new go.PathSegment(go.PathSegment.Line,se*ne,.5*te)),de.add(new go.PathSegment(go.PathSegment.Line,ne,te)),de.add(new go.PathSegment(go.PathSegment.Line,0,te).close()),ue.spot1=go.Spot.TopLeft,ue}),go.Shape.defineFigureGenerator("MicroformProcessing",function(Ee,ne,te){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*ne,se*te)),de.add(new go.PathSegment(go.PathSegment.Line,ne,0)),de.add(new go.PathSegment(go.PathSegment.Line,ne,te)),de.add(new go.PathSegment(go.PathSegment.Line,.5*ne,(1-se)*te)),de.add(new go.PathSegment(go.PathSegment.Line,0,te).close()),ue}),go.Shape.defineFigureGenerator("MicroformRecording",function(Ee,ne,te){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*ne,.25*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.15*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.85*te)),se.add(new go.PathSegment(go.PathSegment.Line,.75*ne,.75*te)),se.add(new go.PathSegment(go.PathSegment.Line,0,te).close()),ue.spot1=new go.Spot(0,.25),ue.spot2=new go.Spot(1,.75),ue}),go.Shape.defineFigureGenerator("MultiDocument",function(Ee,ne,te){var ue=new go.Geometry;te=te/.8;var se=new go.PathFigure(ne,0,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.9*ne,.44*te,.96*ne,.47*te,.93*ne,.45*te)),se.add(new go.PathSegment(go.PathSegment.Line,.9*ne,.6*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.8*ne,.54*te,.86*ne,.57*te,.83*ne,.55*te)),se.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.7*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*te,.4*ne,.4*te,.4*ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,0,.2*te)),se.add(new go.PathSegment(go.PathSegment.Line,.1*ne,.2*te)),se.add(new go.PathSegment(go.PathSegment.Line,.1*ne,.1*te)),se.add(new go.PathSegment(go.PathSegment.Line,.2*ne,.1*te)),se.add(new go.PathSegment(go.PathSegment.Line,.2*ne,0).close());var de=new go.PathFigure(.1*ne,.2*te,!1);return ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.2*te)),de.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.54*te)),de.add(new go.PathSegment(go.PathSegment.Move,.2*ne,.1*te)),de.add(new go.PathSegment(go.PathSegment.Line,.9*ne,.1*te)),de.add(new go.PathSegment(go.PathSegment.Line,.9*ne,.44*te)),ue.spot1=new go.Spot(0,.25),ue.spot2=new go.Spot(.8,.77),ue}),go.Shape.defineFigureGenerator("MultiProcess",function(Ee,ne,te){var ue=new go.Geometry,se=new go.PathFigure(.1*ne,.1*te,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.2*ne,.1*te)),se.add(new go.PathSegment(go.PathSegment.Line,.2*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.8*te)),se.add(new go.PathSegment(go.PathSegment.Line,.9*ne,.8*te)),se.add(new go.PathSegment(go.PathSegment.Line,.9*ne,.9*te)),se.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.9*te)),se.add(new go.PathSegment(go.PathSegment.Line,.8*ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,0,te)),se.add(new go.PathSegment(go.PathSegment.Line,0,.2*te)),se.add(new go.PathSegment(go.PathSegment.Line,.1*ne,.2*te).close());var de=new go.PathFigure(.2*ne,.1*te,!1);return ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.9*ne,.1*te)),de.add(new go.PathSegment(go.PathSegment.Line,.9*ne,.8*te)),de.add(new go.PathSegment(go.PathSegment.Move,.1*ne,.2*te)),de.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.2*te)),de.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.9*te)),ue.spot1=new go.Spot(0,.2),ue.spot2=new go.Spot(.8,1),ue}),go.Shape.defineFigureGenerator("OfflineStorage",function(Ee,ne,te){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,ne,0)),pe.add(new go.PathSegment(go.PathSegment.Line,.5*ne,te).close());var ye=new go.PathFigure(.5*se*ne,se*te,!1);return ue.add(ye),ye.add(new go.PathSegment(go.PathSegment.Line,(1-.5*se)*ne,se*te)),ue}),go.Shape.defineFigureGenerator("OffPageConnector",function(Ee,ne,te){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*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)),se.add(new go.PathSegment(go.PathSegment.Line,.75*ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,0,te).close()),ue.spot1=go.Spot.TopLeft,ue.spot2=new go.Spot(.75,1),ue}),go.Shape.defineFigureGenerator("Or",function(Ee,ne,te){var ue=new go.Geometry,se=Ue*.5,de=.5,pe=new go.PathFigure(ne,de*te,!0);ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Bezier,de*ne,te,ne,(de+se)*te,(de+se)*ne,te)),pe.add(new go.PathSegment(go.PathSegment.Bezier,0,de*te,(de-se)*ne,te,0,(de+se)*te)),pe.add(new go.PathSegment(go.PathSegment.Bezier,de*ne,0,0,(de-se)*te,(de-se)*ne,0)),pe.add(new go.PathSegment(go.PathSegment.Bezier,ne,de*te,(de+se)*ne,0,ne,(de-se)*te));var ye=new go.PathFigure(ne,.5*te,!1);return ue.add(ye),ye.add(new go.PathSegment(go.PathSegment.Line,0,.5*te)),ye.add(new go.PathSegment(go.PathSegment.Move,.5*ne,te)),ye.add(new go.PathSegment(go.PathSegment.Line,.5*ne,0)),ue}),go.Shape.defineFigureGenerator("PaperTape",function(Ee,ne,te){var ue=new go.Geometry;te=te/.8;var se=new go.PathFigure(0,.7*te,!0);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,.3*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,ne,.3*te,.5*ne,.6*te,.5*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.7*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*te,.5*ne,.4*te,.5*ne,te).close()),ue.spot1=new go.Spot(0,.49),ue.spot2=new go.Spot(1,.75),ue}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(Ee,ne,te){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,ne,0)),pe.add(new go.PathSegment(go.PathSegment.Line,(1-de)*ne,.5*te)),pe.add(new go.PathSegment(go.PathSegment.Line,ne,te)),pe.add(new go.PathSegment(go.PathSegment.Line,0,te).close()),ue}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(Ee,ne,te){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)*ne,0)),pe.add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)),pe.add(new go.PathSegment(go.PathSegment.Line,(1-de)*ne,te)),pe.add(new go.PathSegment(go.PathSegment.Line,0,te).close()),ue}),go.Shape.defineFigureGenerator("Procedure",function(Ee,ne,te){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,ne,0)),de.add(new go.PathSegment(go.PathSegment.Line,ne,te)),de.add(new go.PathSegment(go.PathSegment.Line,0,te).close());var pe=new go.PathFigure((1-se)*ne,0,!1);return ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,(1-se)*ne,te)),pe.add(new go.PathSegment(go.PathSegment.Move,se*ne,0)),pe.add(new go.PathSegment(go.PathSegment.Line,se*ne,te)),ue}),go.Shape.defineFigureGenerator("Process",function(Ee,ne,te){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,ne,0)),de.add(new go.PathSegment(go.PathSegment.Line,ne,te)),de.add(new go.PathSegment(go.PathSegment.Line,0,te).close());var pe=new go.PathFigure(se*ne,0,!1);return ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,se*ne,te)),ue.spot2=go.Spot.BottomRight,ue}),go.Shape.defineFigureGenerator("Sort",function(Ee,ne,te){var ue=new go.Geometry,se=new go.PathFigure(.5*ne,0,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,0,.5*te).close());var de=new go.PathFigure(0,.5*te,!1);return ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)),ue.spot1=new go.Spot(.25,.25),ue.spot2=new go.Spot(.75,.5),ue}),go.Shape.defineFigureGenerator("Start",function(Ee,ne,te){var ue=new go.Geometry,se=Ee?Ee.parameter1:NaN;isNaN(se)&&(se=.25);var de=new go.PathFigure(se*ne,0,!0);ue.add(de),de.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*ne,.5*te,.25*ne,.5*te)),de.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*ne,.5*te,.25*ne,.5*te));var pe=new go.PathFigure(se*ne,0,!1);return ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,se*ne,te)),pe.add(new go.PathSegment(go.PathSegment.Move,(1-se)*ne,0)),pe.add(new go.PathSegment(go.PathSegment.Line,(1-se)*ne,te)),ue.spot1=new go.Spot(se,0),ue.spot2=new go.Spot(1-se,1),ue}),go.Shape.defineFigureGenerator("Terminator",function(Ee,ne,te){var ue=new go.Geometry,se=new go.PathFigure(.25*ne,0,!0);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*ne,.5*te,.25*ne,.5*te)),se.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*ne,.5*te,.25*ne,.5*te)),ue.spot1=new go.Spot(.23,0),ue.spot2=new go.Spot(.77,1),ue}),go.Shape.defineFigureGenerator("TransmittalTape",function(Ee,ne,te){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,ne,0)),de.add(new go.PathSegment(go.PathSegment.Line,ne,te)),de.add(new go.PathSegment(go.PathSegment.Line,.75*ne,(1-se)*te)),de.add(new go.PathSegment(go.PathSegment.Line,0,(1-se)*te).close()),ue.spot1=go.Spot.TopLeft,ue}),go.Shape.defineFigureGenerator("AndGate",function(Ee,ne,te){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*ne,0)),de.add(new go.PathSegment(go.PathSegment.Bezier,ne,.5*te,(.5+se)*ne,0,ne,(.5-se)*te)),de.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,te,ne,(.5+se)*te,(.5+se)*ne,te)),de.add(new go.PathSegment(go.PathSegment.Line,0,te).close()),ue.spot1=go.Spot.TopLeft,ue.spot2=new go.Spot(.55,1),ue}),go.Shape.defineFigureGenerator("Buffer",function(Ee,ne,te){var ue=new go.Geometry,se=new go.PathFigure(0,0,!0);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)),se.add(new go.PathSegment(go.PathSegment.Line,0,te).close()),ue.spot1=new go.Spot(0,.25),ue.spot2=new go.Spot(.5,.75),ue}),go.Shape.defineFigureGenerator("Clock",function(Ee,ne,te){var ue=new go.Geometry,se=Ue*.5,de=.5,pe=new go.PathFigure(ne,de*te,!0);ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Bezier,de*ne,te,ne,(de+se)*te,(de+se)*ne,te)),pe.add(new go.PathSegment(go.PathSegment.Bezier,0,de*te,(de-se)*ne,te,0,(de+se)*te)),pe.add(new go.PathSegment(go.PathSegment.Bezier,de*ne,0,0,(de-se)*te,(de-se)*ne,0)),pe.add(new go.PathSegment(go.PathSegment.Bezier,ne,de*te,(de+se)*ne,0,ne,(de-se)*te));var ye=new go.PathFigure(ne,de*te,!1);ue.add(ye),ye.add(new go.PathSegment(go.PathSegment.Line,ne,de*te));var Ce=new go.PathFigure(.8*ne,.75*te,!1);return ue.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.25*te)),Ce.add(new go.PathSegment(go.PathSegment.Line,.6*ne,.25*te)),Ce.add(new go.PathSegment(go.PathSegment.Line,.6*ne,.75*te)),Ce.add(new go.PathSegment(go.PathSegment.Line,.4*ne,.75*te)),Ce.add(new go.PathSegment(go.PathSegment.Line,.4*ne,.25*te)),Ce.add(new go.PathSegment(go.PathSegment.Line,.2*ne,.25*te)),Ce.add(new go.PathSegment(go.PathSegment.Line,.2*ne,.75*te)),ue}),go.Shape.defineFigureGenerator("Ground",function(Ee,ne,te){var ue=new go.Geometry,se=new go.PathFigure(.5*ne,0,!1);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.4*te)),se.add(new go.PathSegment(go.PathSegment.Move,.2*ne,.6*te)),se.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.6*te)),se.add(new go.PathSegment(go.PathSegment.Move,.3*ne,.8*te)),se.add(new go.PathSegment(go.PathSegment.Line,.7*ne,.8*te)),se.add(new go.PathSegment(go.PathSegment.Move,.4*ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,.6*ne,te)),ue}),go.Shape.defineFigureGenerator("Inverter",function(Ee,ne,te){var ue=new go.Geometry,se=Ue*.1,de=.1,pe=.9,ye=.5,Ce=new go.PathFigure(.8*ne,.5*te,!0);ue.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Line,0,te)),Ce.add(new go.PathSegment(go.PathSegment.Line,0,0)),Ce.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.5*te));var je=new go.PathFigure((pe+de)*ne,ye*te,!0);return ue.add(je),je.add(new go.PathSegment(go.PathSegment.Bezier,pe*ne,(ye+de)*te,(pe+de)*ne,(ye+se)*te,(pe+se)*ne,(ye+de)*te)),je.add(new go.PathSegment(go.PathSegment.Bezier,(pe-de)*ne,ye*te,(pe-se)*ne,(ye+de)*te,(pe-de)*ne,(ye+se)*te)),je.add(new go.PathSegment(go.PathSegment.Bezier,pe*ne,(ye-de)*te,(pe-de)*ne,(ye-se)*te,(pe-se)*ne,(ye-de)*te)),je.add(new go.PathSegment(go.PathSegment.Bezier,(pe+de)*ne,ye*te,(pe+se)*ne,(ye-de)*te,(pe+de)*ne,(ye-se)*te)),ue.spot1=new go.Spot(0,.25),ue.spot2=new go.Spot(.4,.75),ue}),go.Shape.defineFigureGenerator("NandGate",function(Ee,ne,te){var ue=new go.Geometry,se=Ue*.5,de=Ue*.4,pe=Ue*.1,ye=.1,Ce=.9,je=.5,Te=new go.PathFigure(.8*ne,.5*te,!0);ue.add(Te),Te.add(new go.PathSegment(go.PathSegment.Bezier,.4*ne,te,.8*ne,(.5+de)*te,(.4+se)*ne,te)),Te.add(new go.PathSegment(go.PathSegment.Line,0,te)),Te.add(new go.PathSegment(go.PathSegment.Line,0,0)),Te.add(new go.PathSegment(go.PathSegment.Line,.4*ne,0)),Te.add(new go.PathSegment(go.PathSegment.Bezier,.8*ne,.5*te,(.4+se)*ne,0,.8*ne,(.5-de)*te));var Ie=new go.PathFigure((Ce+ye)*ne,je*te,!0);return ue.add(Ie),Ie.add(new go.PathSegment(go.PathSegment.Bezier,Ce*ne,(je+ye)*te,(Ce+ye)*ne,(je+pe)*te,(Ce+pe)*ne,(je+ye)*te)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,(Ce-ye)*ne,je*te,(Ce-pe)*ne,(je+ye)*te,(Ce-ye)*ne,(je+pe)*te)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,Ce*ne,(je-ye)*te,(Ce-ye)*ne,(je-pe)*te,(Ce-pe)*ne,(je-ye)*te)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,(Ce+ye)*ne,je*te,(Ce+pe)*ne,(je-ye)*te,(Ce+ye)*ne,(je-pe)*te)),ue.spot1=new go.Spot(0,.05),ue.spot2=new go.Spot(.55,.95),ue}),go.Shape.defineFigureGenerator("NorGate",function(Ee,ne,te){var ue=new go.Geometry,se=.5,de=Ue*se,pe=0,ye=.5,Ce=new go.PathFigure(.8*ne,.5*te,!0);ue.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,0,te,.7*ne,(ye+de)*te,(pe+de)*ne,(ye+se)*te)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*ne,.75*te,.25*ne,.25*te)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,.8*ne,.5*te,(pe+de)*ne,(ye-se)*te,.7*ne,(ye-de)*te)),se=.1,de=Ue*.1,pe=.9,ye=.5;var je=new go.PathFigure((pe-se)*ne,ye*te,!0);return ue.add(je),je.add(new go.PathSegment(go.PathSegment.Bezier,pe*ne,(ye-se)*te,(pe-se)*ne,(ye-de)*te,(pe-de)*ne,(ye-se)*te)),je.add(new go.PathSegment(go.PathSegment.Bezier,(pe+se)*ne,ye*te,(pe+de)*ne,(ye-se)*te,(pe+se)*ne,(ye-de)*te)),je.add(new go.PathSegment(go.PathSegment.Bezier,pe*ne,(ye+se)*te,(pe+se)*ne,(ye+de)*te,(pe+de)*ne,(ye+se)*te)),je.add(new go.PathSegment(go.PathSegment.Bezier,(pe-se)*ne,ye*te,(pe-de)*ne,(ye+se)*te,(pe-se)*ne,(ye+de)*te)),ue.spot1=new go.Spot(.2,.25),ue.spot2=new go.Spot(.6,.75),ue}),go.Shape.defineFigureGenerator("OrGate",function(Ee,ne,te){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,ne,.5*te,(pe+de+de)*ne,(ye-se)*te,.8*ne,(ye-de)*te)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,0,te,.8*ne,(ye+de)*te,(pe+de+de)*ne,(ye+se)*te)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*ne,.75*te,.25*ne,.25*te).close()),ue.spot1=new go.Spot(.2,.25),ue.spot2=new go.Spot(.75,.75),ue}),go.Shape.defineFigureGenerator("XnorGate",function(Ee,ne,te){var ue=new go.Geometry,se=.5,de=Ue*se,pe=.2,ye=.5,Ce=new go.PathFigure(.1*ne,0,!1);ue.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,.1*ne,te,.35*ne,.25*te,.35*ne,.75*te));var je=new go.PathFigure(.8*ne,.5*te,!0);ue.add(je),je.add(new go.PathSegment(go.PathSegment.Bezier,.2*ne,te,.7*ne,(ye+de)*te,(pe+de)*ne,(ye+se)*te)),je.add(new go.PathSegment(go.PathSegment.Bezier,.2*ne,0,.45*ne,.75*te,.45*ne,.25*te)),je.add(new go.PathSegment(go.PathSegment.Bezier,.8*ne,.5*te,(pe+de)*ne,(ye-se)*te,.7*ne,(ye-de)*te)),se=.1,de=Ue*.1,pe=.9,ye=.5;var Te=new go.PathFigure((pe-se)*ne,ye*te,!0);return ue.add(Te),Te.add(new go.PathSegment(go.PathSegment.Bezier,pe*ne,(ye-se)*te,(pe-se)*ne,(ye-de)*te,(pe-de)*ne,(ye-se)*te)),Te.add(new go.PathSegment(go.PathSegment.Bezier,(pe+se)*ne,ye*te,(pe+de)*ne,(ye-se)*te,(pe+se)*ne,(ye-de)*te)),Te.add(new go.PathSegment(go.PathSegment.Bezier,pe*ne,(ye+se)*te,(pe+se)*ne,(ye+de)*te,(pe+de)*ne,(ye+se)*te)),Te.add(new go.PathSegment(go.PathSegment.Bezier,(pe-se)*ne,ye*te,(pe-de)*ne,(ye+se)*te,(pe-se)*ne,(ye+de)*te)),ue.spot1=new go.Spot(.4,.25),ue.spot2=new go.Spot(.65,.75),ue}),go.Shape.defineFigureGenerator("XorGate",function(Ee,ne,te){var ue=new go.Geometry,se=.5,de=Ue*se,pe=.2,ye=.5,Ce=new go.PathFigure(.1*ne,0,!1);ue.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,.1*ne,te,.35*ne,.25*te,.35*ne,.75*te));var je=new go.PathFigure(.2*ne,0,!0);return ue.add(je),je.add(new go.PathSegment(go.PathSegment.Bezier,ne,.5*te,(pe+de)*ne,(ye-se)*te,.9*ne,(ye-de)*te)),je.add(new go.PathSegment(go.PathSegment.Bezier,.2*ne,te,.9*ne,(ye+de)*te,(pe+de)*ne,(ye+se)*te)),je.add(new go.PathSegment(go.PathSegment.Bezier,.2*ne,0,.45*ne,.75*te,.45*ne,.25*te).close()),ue.spot1=new go.Spot(.4,.25),ue.spot2=new go.Spot(.8,.75),ue}),go.Shape.defineFigureGenerator("Capacitor",function(Ee,ne,te){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,te)),se.add(new go.PathSegment(go.PathSegment.Move,ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,te)),ue}),go.Shape.defineFigureGenerator("Resistor",function(Ee,ne,te){var ue=new go.Geometry,se=new go.PathFigure(0,.5*te,!1);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.1*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.2*ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,.3*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.4*ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.6*ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,.7*ne,.5*te)),ue}),go.Shape.defineFigureGenerator("Inductor",function(Ee,ne,te){var ue=new go.Geometry,se=Ue*.1,de=.1,pe=.1,ye=.5,Ce=new go.PathFigure((pe-se*.5)*ne,te,!1);return ue.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(pe+de)*ne,0,(pe-se)*ne,te,(pe-de)*ne,0)),pe=.3,Ce.add(new go.PathSegment(go.PathSegment.Bezier,pe*ne,te,(pe+de)*ne,0,(pe+se)*ne,te)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(pe+de)*ne,0,(pe-se)*ne,te,(pe-de)*ne,0)),pe=.5,Ce.add(new go.PathSegment(go.PathSegment.Bezier,pe*ne,te,(pe+de)*ne,0,(pe+se)*ne,te)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(pe+de)*ne,0,(pe-se)*ne,te,(pe-de)*ne,0)),pe=.7,Ce.add(new go.PathSegment(go.PathSegment.Bezier,pe*ne,te,(pe+de)*ne,0,(pe+se)*ne,te)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(pe+de)*ne,0,(pe-se)*ne,te,(pe-de)*ne,0)),pe=.9,Ce.add(new go.PathSegment(go.PathSegment.Bezier,(pe+se*.5)*ne,te,(pe+de)*ne,0,(pe+se)*ne,te)),ue}),go.Shape.defineFigureGenerator("ACvoltageSource",function(Ee,ne,te){var ue=new go.Geometry,se=Ue*.5,de=.5,pe=.5,ye=.5,Ce=new go.PathFigure((pe-de)*ne,ye*te,!1);return ue.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,pe*ne,(ye-de)*te,(pe-de)*ne,(ye-se)*te,(pe-se)*ne,(ye-de)*te)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(pe+de)*ne,ye*te,(pe+se)*ne,(ye-de)*te,(pe+de)*ne,(ye-se)*te)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,pe*ne,(ye+de)*te,(pe+de)*ne,(ye+se)*te,(pe+se)*ne,(ye+de)*te)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(pe-de)*ne,ye*te,(pe-se)*ne,(ye+de)*te,(pe-de)*ne,(ye+se)*te)),Ce.add(new go.PathSegment(go.PathSegment.Move,(pe-de+.1)*ne,ye*te)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(pe+de-.1)*ne,ye*te,pe*ne,(ye-de)*te,pe*ne,(ye+de)*te)),ue}),go.Shape.defineFigureGenerator("DCvoltageSource",function(Ee,ne,te){var ue=new go.Geometry,se=new go.PathFigure(0,.75*te,!1);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,.25*te)),se.add(new go.PathSegment(go.PathSegment.Move,ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,te)),ue}),go.Shape.defineFigureGenerator("Diode",function(Ee,ne,te){var ue=new go.Geometry,se=new go.PathFigure(ne,0,!1);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)),se.add(new go.PathSegment(go.PathSegment.Line,0,te)),se.add(new go.PathSegment(go.PathSegment.Line,0,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,te)),ue.spot1=new go.Spot(0,.25),ue.spot2=new go.Spot(.5,.75),ue}),go.Shape.defineFigureGenerator("Wifi",function(Ee,ne,te){var ue=new go.Geometry,se=ne,de=te;ne=ne*.38,te=te*.6;var pe=Ue*.8,ye=.8,Ce=0,je=.5,Te=(se-ne)/2,Ie=(de-te)/2,Oe=new go.PathFigure(Ce*ne+Te,(je+ye)*te+Ie,!0);ue.add(Oe),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(Ce-ye)*ne+Te,je*te+Ie,(Ce-pe)*ne+Te,(je+ye)*te+Ie,(Ce-ye)*ne+Te,(je+pe)*te+Ie)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,Ce*ne+Te,(je-ye)*te+Ie,(Ce-ye)*ne+Te,(je-pe)*te+Ie,(Ce-pe)*ne+Te,(je-ye)*te+Ie)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(Ce-ye+pe*.5)*ne+Te,je*te+Ie,Ce*ne+Te,(je-ye)*te+Ie,(Ce-ye+pe*.5)*ne+Te,(je-pe)*te+Ie)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,Ce*ne+Te,(je+ye)*te+Ie,(Ce-ye+pe*.5)*ne+Te,(je+pe)*te+Ie,Ce*ne+Te,(je+ye)*te+Ie).close()),pe=Ue*.4,ye=.4,Ce=.2,je=.5;var Re=new go.PathFigure(Ce*ne+Te,(je+ye)*te+Ie,!0);ue.add(Re),Re.add(new go.PathSegment(go.PathSegment.Bezier,(Ce-ye)*ne+Te,je*te+Ie,(Ce-pe)*ne+Te,(je+ye)*te+Ie,(Ce-ye)*ne+Te,(je+pe)*te+Ie)),Re.add(new go.PathSegment(go.PathSegment.Bezier,Ce*ne+Te,(je-ye)*te+Ie,(Ce-ye)*ne+Te,(je-pe)*te+Ie,(Ce-pe)*ne+Te,(je-ye)*te+Ie)),Re.add(new go.PathSegment(go.PathSegment.Bezier,(Ce-ye+pe*.5)*ne+Te,je*te+Ie,Ce*ne+Te,(je-ye)*te+Ie,(Ce-ye+pe*.5)*ne+Te,(je-pe)*te+Ie)),Re.add(new go.PathSegment(go.PathSegment.Bezier,Ce*ne+Te,(je+ye)*te+Ie,(Ce-ye+pe*.5)*ne+Te,(je+pe)*te+Ie,Ce*ne+Te,(je+ye)*te+Ie).close()),pe=Ue*.2,ye=.2,Ce=.5,je=.5;var nt=new go.PathFigure((Ce-ye)*ne+Te,je*te+Ie,!0);ue.add(nt),nt.add(new go.PathSegment(go.PathSegment.Bezier,Ce*ne+Te,(je-ye)*te+Ie,(Ce-ye)*ne+Te,(je-pe)*te+Ie,(Ce-pe)*ne+Te,(je-ye)*te+Ie)),nt.add(new go.PathSegment(go.PathSegment.Bezier,(Ce+ye)*ne+Te,je*te+Ie,(Ce+pe)*ne+Te,(je-ye)*te+Ie,(Ce+ye)*ne+Te,(je-pe)*te+Ie)),nt.add(new go.PathSegment(go.PathSegment.Bezier,Ce*ne+Te,(je+ye)*te+Ie,(Ce+ye)*ne+Te,(je+pe)*te+Ie,(Ce+pe)*ne+Te,(je+ye)*te+Ie)),nt.add(new go.PathSegment(go.PathSegment.Bezier,(Ce-ye)*ne+Te,je*te+Ie,(Ce-pe)*ne+Te,(je+ye)*te+Ie,(Ce-ye)*ne+Te,(je+pe)*te+Ie)),pe=Ue*.4,ye=.4,Ce=.8,je=.5;var ot=new go.PathFigure(Ce*ne+Te,(je-ye)*te+Ie,!0);ue.add(ot),ot.add(new go.PathSegment(go.PathSegment.Bezier,(Ce+ye)*ne+Te,je*te+Ie,(Ce+pe)*ne+Te,(je-ye)*te+Ie,(Ce+ye)*ne+Te,(je-pe)*te+Ie)),ot.add(new go.PathSegment(go.PathSegment.Bezier,Ce*ne+Te,(je+ye)*te+Ie,(Ce+ye)*ne+Te,(je+pe)*te+Ie,(Ce+pe)*ne+Te,(je+ye)*te+Ie)),ot.add(new go.PathSegment(go.PathSegment.Bezier,(Ce+ye-pe*.5)*ne+Te,je*te+Ie,Ce*ne+Te,(je+ye)*te+Ie,(Ce+ye-pe*.5)*ne+Te,(je+pe)*te+Ie)),ot.add(new go.PathSegment(go.PathSegment.Bezier,Ce*ne+Te,(je-ye)*te+Ie,(Ce+ye-pe*.5)*ne+Te,(je-pe)*te+Ie,Ce*ne+Te,(je-ye)*te+Ie).close()),pe=Ue*.8,ye=.8,Ce=1,je=.5;var wt=new go.PathFigure(Ce*ne+Te,(je-ye)*te+Ie,!0);return ue.add(wt),wt.add(new go.PathSegment(go.PathSegment.Bezier,(Ce+ye)*ne+Te,je*te+Ie,(Ce+pe)*ne+Te,(je-ye)*te+Ie,(Ce+ye)*ne+Te,(je-pe)*te+Ie)),wt.add(new go.PathSegment(go.PathSegment.Bezier,Ce*ne+Te,(je+ye)*te+Ie,(Ce+ye)*ne+Te,(je+pe)*te+Ie,(Ce+pe)*ne+Te,(je+ye)*te+Ie)),wt.add(new go.PathSegment(go.PathSegment.Bezier,(Ce+ye-pe*.5)*ne+Te,je*te+Ie,Ce*ne+Te,(je+ye)*te+Ie,(Ce+ye-pe*.5)*ne+Te,(je+pe)*te+Ie)),wt.add(new go.PathSegment(go.PathSegment.Bezier,Ce*ne+Te,(je-ye)*te+Ie,(Ce+ye-pe*.5)*ne+Te,(je-pe)*te+Ie,Ce*ne+Te,(je-ye)*te+Ie).close()),ue}),go.Shape.defineFigureGenerator("Email",function(Ee,ne,te){var ue=new go.Geometry,se=new go.PathFigure(0,0,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,0,te)),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*ne,.6*te)),de.add(new go.PathSegment(go.PathSegment.Line,ne,0)),de.add(new go.PathSegment(go.PathSegment.Move,0,te)),de.add(new go.PathSegment(go.PathSegment.Line,.45*ne,.54*te)),de.add(new go.PathSegment(go.PathSegment.Move,ne,te)),de.add(new go.PathSegment(go.PathSegment.Line,.55*ne,.54*te)),ue}),go.Shape.defineFigureGenerator("Ethernet",function(Ee,ne,te){var ue=new go.Geometry,se=new go.PathFigure(.35*ne,0,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.65*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.65*ne,.4*te)),se.add(new go.PathSegment(go.PathSegment.Line,.35*ne,.4*te)),se.add(new go.PathSegment(go.PathSegment.Line,.35*ne,0).close());var de=new go.PathFigure(.1*ne,te,!0,!0);ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.4*ne,te)),de.add(new go.PathSegment(go.PathSegment.Line,.4*ne,.6*te)),de.add(new go.PathSegment(go.PathSegment.Line,.1*ne,.6*te)),de.add(new go.PathSegment(go.PathSegment.Line,.1*ne,te).close());var pe=new go.PathFigure(.6*ne,te,!0,!0);ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.9*ne,te)),pe.add(new go.PathSegment(go.PathSegment.Line,.9*ne,.6*te)),pe.add(new go.PathSegment(go.PathSegment.Line,.6*ne,.6*te)),pe.add(new go.PathSegment(go.PathSegment.Line,.6*ne,te).close());var ye=new go.PathFigure(0,.5*te,!1);return ue.add(ye),ye.add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)),ye.add(new go.PathSegment(go.PathSegment.Move,.5*ne,.5*te)),ye.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.4*te)),ye.add(new go.PathSegment(go.PathSegment.Move,.75*ne,.5*te)),ye.add(new go.PathSegment(go.PathSegment.Line,.75*ne,.6*te)),ye.add(new go.PathSegment(go.PathSegment.Move,.25*ne,.5*te)),ye.add(new go.PathSegment(go.PathSegment.Line,.25*ne,.6*te)),ue}),go.Shape.defineFigureGenerator("Power",function(Ee,ne,te){var ue=new go.Geometry,se=Ue*.4,de=.4,pe=.5,ye=.5,Ce=ve(),je=ve(),Te=ve(),Ie=ve();it(pe,ye-de,pe+se,ye-de,pe+de,ye-se,pe+de,ye,.5,Ce,Ce,je,Te,Ie);var Oe=we(je.x,je.y),Re=new go.PathFigure(je.x*ne,je.y*te,!0);ue.add(Re),Re.add(new go.PathSegment(go.PathSegment.Bezier,(pe+de)*ne,ye*te,Te.x*ne,Te.y*te,Ie.x*ne,Ie.y*te)),Re.add(new go.PathSegment(go.PathSegment.Bezier,pe*ne,(ye+de)*te,(pe+de)*ne,(ye+se)*te,(pe+se)*ne,(ye+de)*te)),Re.add(new go.PathSegment(go.PathSegment.Bezier,(pe-de)*ne,ye*te,(pe-se)*ne,(ye+de)*te,(pe-de)*ne,(ye+se)*te)),it(pe-de,ye,pe-de,ye-se,pe-se,ye-de,pe,ye-de,.5,Te,Ie,je,Ce,Ce),Re.add(new go.PathSegment(go.PathSegment.Bezier,je.x*ne,je.y*te,Te.x*ne,Te.y*te,Ie.x*ne,Ie.y*te)),se=Ue*.3,de=.3,it(pe-de,ye,pe-de,ye-se,pe-se,ye-de,pe,ye-de,.5,Te,Ie,je,Ce,Ce),Re.add(new go.PathSegment(go.PathSegment.Line,je.x*ne,je.y*te)),Re.add(new go.PathSegment(go.PathSegment.Bezier,(pe-de)*ne,ye*te,Ie.x*ne,Ie.y*te,Te.x*ne,Te.y*te)),Re.add(new go.PathSegment(go.PathSegment.Bezier,pe*ne,(ye+de)*te,(pe-de)*ne,(ye+se)*te,(pe-se)*ne,(ye+de)*te)),Re.add(new go.PathSegment(go.PathSegment.Bezier,(pe+de)*ne,ye*te,(pe+se)*ne,(ye+de)*te,(pe+de)*ne,(ye+se)*te)),it(pe,ye-de,pe+se,ye-de,pe+de,ye-se,pe+de,ye,.5,Ce,Ce,je,Te,Ie),Re.add(new go.PathSegment(go.PathSegment.Bezier,je.x*ne,je.y*te,Ie.x*ne,Ie.y*te,Te.x*ne,Te.y*te).close());var Re=new go.PathFigure(.45*ne,0,!0);return ue.add(Re),Re.add(new go.PathSegment(go.PathSegment.Line,.45*ne,.5*te)),Re.add(new go.PathSegment(go.PathSegment.Line,.55*ne,.5*te)),Re.add(new go.PathSegment(go.PathSegment.Line,.55*ne,0).close()),_e(Ce),_e(je),_e(Te),_e(Ie),_e(Oe),ue.spot1=new go.Spot(.25,.45),ue.spot2=new go.Spot(.75,.8),ue}),go.Shape.defineFigureGenerator("Fallout",function(Ee,ne,te){var ue=new go.Geometry,se=new go.PathFigure(0,te/2,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Arc,180,360,ne/2,te/2,ne/2,te/2));function de(pe,ye,Ce){pe.add(new go.PathSegment(go.PathSegment.Move,(.3+ye)*ne,(.8+Ce)*te)),pe.add(new go.PathSegment(go.PathSegment.Line,(.5+ye)*ne,(.5+Ce)*te)),pe.add(new go.PathSegment(go.PathSegment.Line,(.1+ye)*ne,(.5+Ce)*te)),pe.add(new go.PathSegment(go.PathSegment.Line,(.3+ye)*ne,(.8+Ce)*te).close())}return de(se,0,0),de(se,.4,0),de(se,.2,-.3),ue}),go.Shape.defineFigureGenerator("IrritationHazard",function(Ee,ne,te){var ue=new go.Geometry,se=new go.PathFigure(.2*ne,0,!0);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.3*te)),se.add(new go.PathSegment(go.PathSegment.Line,.8*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.2*te)),se.add(new go.PathSegment(go.PathSegment.Line,.7*ne,.5*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.8*te)),se.add(new go.PathSegment(go.PathSegment.Line,.8*ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.7*te)),se.add(new go.PathSegment(go.PathSegment.Line,.2*ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,0,.8*te)),se.add(new go.PathSegment(go.PathSegment.Line,.3*ne,.5*te)),se.add(new go.PathSegment(go.PathSegment.Line,0,.2*te).close()),ue.spot1=new go.Spot(.3,.3),ue.spot2=new go.Spot(.7,.7),ue}),go.Shape.defineFigureGenerator("ElectricalHazard",function(Ee,ne,te){var ue=new go.Geometry,se=new go.PathFigure(.37*ne,0,!0);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.11*te)),se.add(new go.PathSegment(go.PathSegment.Line,.77*ne,.04*te)),se.add(new go.PathSegment(go.PathSegment.Line,.33*ne,.49*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.37*te)),se.add(new go.PathSegment(go.PathSegment.Line,.63*ne,.86*te)),se.add(new go.PathSegment(go.PathSegment.Line,.77*ne,.91*te)),se.add(new go.PathSegment(go.PathSegment.Line,.34*ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,.34*ne,.78*te)),se.add(new go.PathSegment(go.PathSegment.Line,.44*ne,.8*te)),se.add(new go.PathSegment(go.PathSegment.Line,.65*ne,.56*te)),se.add(new go.PathSegment(go.PathSegment.Line,0,.68*te).close()),ue}),go.Shape.defineFigureGenerator("FireHazard",function(Ee,ne,te){var ue=new go.Geometry,se=new go.PathFigure(.1*ne,te,!0);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,.29*ne,0,-.25*ne,.63*te,.45*ne,.44*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.51*ne,.42*te,.48*ne,.17*te,.54*ne,.35*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.59*ne,.18*te,.59*ne,.29*te,.58*ne,.28*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.75*ne,.6*te,.8*ne,.34*te,.88*ne,.43*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.88*ne,.31*te,.87*ne,.48*te,.88*ne,.43*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.9*ne,te,1.17*ne,.76*te,.82*ne,.8*te).close()),ue.spot1=new go.Spot(.07,.445),ue.spot2=new go.Spot(.884,.958),ue}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(Ee,ne,te){var ue=new go.Geometry,se=.5,de=0,pe=0,ye=se*Ue,Ce=.4*Math.SQRT2/2+.5,je=.5-.5*Math.SQRT2/2,Te=1,Ie=.5,Oe=.5,Re=0,nt=new go.PathFigure(Ce*ne,(1-je)*te,!1);return ue.add(nt),nt.add(new go.PathSegment(go.PathSegment.Bezier,Te*ne,Ie*te,Te*ne,.7*te,Te*ne,Ie*te)),nt.add(new go.PathSegment(go.PathSegment.Bezier,(Oe+de)*ne,(Re+de)*te,(.5+se+de)*ne,(.5-ye+de)*te,(.5+ye+de)*ne,(.5-se+de)*te)),nt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-se+de)*ne,(.5+pe)*te,(.5-ye+de)*ne,(.5-se+pe)*te,(.5-se+de)*ne,(.5-ye+pe)*te)),nt.add(new go.PathSegment(go.PathSegment.Bezier,(.35+de)*ne,.9*te,(.5-se+de)*ne,(.5+ye+pe)*te,(.5-ye+de)*ne,.9*te)),nt.add(new go.PathSegment(go.PathSegment.Move,(.25+de)*ne,.8*te)),nt.add(new go.PathSegment(go.PathSegment.Line,(.35+de)*ne,.9*te)),nt.add(new go.PathSegment(go.PathSegment.Line,(.2+de)*ne,.95*te)),ue}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(Ee,ne,te){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,te)),se.add(new go.PathSegment(go.PathSegment.Move,.5*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,te)),se.add(new go.PathSegment(go.PathSegment.Move,ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,te)),ue}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(Ee,ne,te){var ue=new go.Geometry,se=new go.PathFigure(0,0,!1);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne,0)),se.add(new go.PathSegment(go.PathSegment.Move,0,.5*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)),se.add(new go.PathSegment(go.PathSegment.Move,0,te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,te)),ue}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(Ee,ne,te){var ue=new go.Geometry,se=new go.PathFigure(0,0,!1);ue.add(se);var de=new go.PathFigure(ne,te,!1);ue.add(de);var pe=new go.PathFigure(0,.5*te,!1);return ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,.5*te,.2*ne,.35*te,.3*ne,.35*te)),pe.add(new go.PathSegment(go.PathSegment.Bezier,ne,.5*te,.7*ne,.65*te,.8*ne,.65*te)),ue}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(Ee,ne,te){var ue=new go.Geometry,se=new go.PathFigure(0,.5*te,!0);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.5*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.5*te)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,te).close()),ue}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(Ee,ne,te){var ue=new go.Geometry,se=new go.PathFigure(0,.2*te,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne,.2*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.8*te)),se.add(new go.PathSegment(go.PathSegment.Line,0,.8*te)),se.add(new go.PathSegment(go.PathSegment.Line,0,.8*te).close());var se=new go.PathFigure(0,.2*te,!1);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.5*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.2*te)),ue}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(Ee,ne,te){var ue=new go.Geometry,se=new go.PathFigure(.7*ne,te,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.3*ne,te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.3*ne,0,.6*ne,.5*te,0,.5*te)),se.add(new go.PathSegment(go.PathSegment.Line,.7*ne,0)),se.add(new go.PathSegment(go.PathSegment.Bezier,.7*ne,te,.4*ne,.5*te,ne,.5*te).close());var de=new go.PathFigure(.45*ne,.73*te,!1);return ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.7*ne,.73*te)),de.add(new go.PathSegment(go.PathSegment.Move,.38*ne,.5*te)),de.add(new go.PathSegment(go.PathSegment.Line,.63*ne,.5*te)),de.add(new go.PathSegment(go.PathSegment.Move,.31*ne,.27*te)),de.add(new go.PathSegment(go.PathSegment.Line,.56*ne,.27*te)),ue}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(Ee,ne,te){var ue=new go.Geometry,se=new go.PathFigure(0,0,!1);ue.add(se);var de=new go.PathFigure(.335*ne,(1-.555)*te,!0);ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.335*ne,(1-.405)*te)),de.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*ne,(1-.405)*te)),de.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*ne,(1-.555)*te)),de.add(new go.PathSegment(go.PathSegment.Bezier,ne,.68*te,(1-.12)*ne,.46*te,(1-.02)*ne,.54*te)),de.add(new go.PathSegment(go.PathSegment.Line,ne,te)),de.add(new go.PathSegment(go.PathSegment.Line,0,te)),de.add(new go.PathSegment(go.PathSegment.Line,0,.68*te)),de.add(new go.PathSegment(go.PathSegment.Bezier,.335*ne,(1-.555)*te,.02*ne,.54*te,.12*ne,.46*te)),de.add(new go.PathSegment(go.PathSegment.Line,.365*ne,(1-.595)*te));var pe=.5-.285,ye=.5,Ce=pe,je=Math.PI/4,Te=4*(1-Math.cos(je))/(3*Math.sin(je)),Ie=Te*.5,Oe=pe,Re=pe,nt=Te*Oe,ot=Te*Re;de.add(new go.PathSegment(go.PathSegment.Bezier,(ye-Oe)*ne,Ce*te,(ye-(nt+Oe)/2)*ne,(Ce+(Re+ot)/2)*te,(ye-Oe)*ne,(Ce+ot)*te)),de.add(new go.PathSegment(go.PathSegment.Bezier,ye*ne,(Ce-Re)*te,(ye-Oe)*ne,(Ce-ot)*te,(ye-nt)*ne,(Ce-Re)*te)),de.add(new go.PathSegment(go.PathSegment.Bezier,(ye+Oe)*ne,Ce*te,(ye+nt)*ne,(Ce-Re)*te,(ye+Oe)*ne,(Ce-ot)*te)),de.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*ne,(1-.595)*te,(ye+Oe)*ne,(Ce+ot)*te,(ye+(nt+Oe)/2)*ne,(Ce+(Re+ot)/2)*te)),de.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*ne,(1-.595)*te)),de.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*ne,(1-.555)*te)),de.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*ne,(1-.405)*te)),de.add(new go.PathSegment(go.PathSegment.Line,.335*ne,(1-.405)*te));var wt=new go.PathFigure(.2*ne,te,!1);ue.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,.2*ne,.8*te));var gt=new go.PathFigure(.8*ne,te,!1);return ue.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.8*te)),ue}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(Ee,ne,te){var ue=new go.Geometry,se=new go.PathFigure(.1*ne,0,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.9*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.9*ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,.1*ne,te).close());var de=new go.PathFigure(.2*ne,.2*te,!1);return ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.2*te)),de.add(new go.PathSegment(go.PathSegment.Move,.2*ne,.4*te)),de.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.4*te)),de.add(new go.PathSegment(go.PathSegment.Move,.2*ne,.6*te)),de.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.6*te)),de.add(new go.PathSegment(go.PathSegment.Move,.2*ne,.8*te)),de.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.8*te)),ue}),go.Shape.defineFigureGenerator("BpmnEventError",function(Ee,ne,te){var ue=new go.Geometry,se=new go.PathFigure(0,te,!0);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.33*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.66*ne,.5*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.66*ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,.33*ne,.5*te).close()),ue}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(Ee,ne,te){var ue=new go.Geometry,se=new go.PathFigure(0,0,!1);ue.add(se);var de=new go.PathFigure(ne,te,!1);ue.add(de);var pe=new go.PathFigure(.1*ne,te,!0);return ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.5*ne,0)),pe.add(new go.PathSegment(go.PathSegment.Line,.9*ne,te)),pe.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.5*te).close()),ue}),go.Shape.defineFigureGenerator("Caution",function(Ee,ne,te){var ue=new go.Geometry,se=new go.PathFigure(.05*ne,te,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,.1*ne,.8*te,0,te,0,te)),se.add(new go.PathSegment(go.PathSegment.Line,.45*ne,.1*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.55*ne,.1*te,.5*ne,0,.5*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.95*ne,.9*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.9*ne,te,ne,te,ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,.05*ne,te));var de=.05;return se.add(new go.PathSegment(go.PathSegment.Move,(.5-de)*ne,.875*te)),se.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*ne,.875*te,de*ne,de*te)),se.add(new go.PathSegment(go.PathSegment.Move,.5*ne,.75*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,.325*te,.575*ne,.725*te,.625*ne,.375*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,.75*te,.375*ne,.375*te,.425*ne,.725*te)),ue}),go.Shape.defineFigureGenerator("Recycle",function(Ee,ne,te){var ue=new go.Geometry,se=new go.PathFigure(.45*ne,.95*te,!1);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.2*ne,.95*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.185*ne,.85*te,.17*ne,.95*te,.15*ne,.9*te)),se.add(new go.PathSegment(go.PathSegment.Line,.235*ne,.75*te)),se.add(new go.PathSegment(go.PathSegment.Line,.3*ne,.625*te)),se.add(new go.PathSegment(go.PathSegment.Line,.35*ne,.65*te)),se.add(new go.PathSegment(go.PathSegment.Line,.275*ne,.45*te)),se.add(new go.PathSegment(go.PathSegment.Line,.05*ne,.45*te)),se.add(new go.PathSegment(go.PathSegment.Line,.1*ne,.5*te)),se.add(new go.PathSegment(go.PathSegment.Line,.05*ne,.575*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.1875*ne,.95*te,0,.675*te,0,.7*te)),se.add(new go.PathSegment(go.PathSegment.Move,.45*ne,.95*te)),se.add(new go.PathSegment(go.PathSegment.Line,.45*ne,.775*te)),se.add(new go.PathSegment(go.PathSegment.Line,.22*ne,.775*te));var de=new go.PathFigure(.475*ne,.2*te,!1);ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.4*ne,.4*te)),de.add(new go.PathSegment(go.PathSegment.Line,.225*ne,.3*te)),de.add(new go.PathSegment(go.PathSegment.Line,.275*ne,.175*te)),de.add(new go.PathSegment(go.PathSegment.Line,.325*ne,.05*te)),de.add(new go.PathSegment(go.PathSegment.Bezier,.4*ne,.05*te,.35*ne,0,.375*ne,0)),de.add(new go.PathSegment(go.PathSegment.Line,.575*ne,.375*te)),de.add(new go.PathSegment(go.PathSegment.Line,.525*ne,.4*te)),de.add(new go.PathSegment(go.PathSegment.Line,.75*ne,.475*te)),de.add(new go.PathSegment(go.PathSegment.Line,.85*ne,.315*te)),de.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.32*te)),de.add(new go.PathSegment(go.PathSegment.Line,.65*ne,.05*te)),de.add(new go.PathSegment(go.PathSegment.Bezier,.575*ne,0,.65*ne,.05*te,.625*ne,0)),de.add(new go.PathSegment(go.PathSegment.Line,.38*ne,.0105*te));var pe=new go.PathFigure(.675*ne,.575*te,!1);return ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.875*ne,.525*te)),pe.add(new go.PathSegment(go.PathSegment.Line,ne,.775*te)),pe.add(new go.PathSegment(go.PathSegment.Bezier,.85*ne,.95*te,ne,.8*te,ne,.85*te)),pe.add(new go.PathSegment(go.PathSegment.Line,.65*ne,.95*te)),pe.add(new go.PathSegment(go.PathSegment.Line,.65*ne,te)),pe.add(new go.PathSegment(go.PathSegment.Line,.55*ne,.85*te)),pe.add(new go.PathSegment(go.PathSegment.Line,.65*ne,.725*te)),pe.add(new go.PathSegment(go.PathSegment.Line,.65*ne,.775*te)),pe.add(new go.PathSegment(go.PathSegment.Line,.7*ne,.775*te)),pe.add(new go.PathSegment(go.PathSegment.Line,ne,.775*te)),pe.add(new go.PathSegment(go.PathSegment.Move,.675*ne,.575*te)),pe.add(new go.PathSegment(go.PathSegment.Line,.775*ne,.775*te)),ue}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(Ee,ne,te){var ue=new go.Geometry,se=.5,de=Ue*.5,pe=new go.PathFigure(ne,se*te,!0);ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Bezier,se*ne,te,ne,(se+de)*te,(se+de)*ne,te)),pe.add(new go.PathSegment(go.PathSegment.Bezier,0,se*te,(se-de)*ne,te,0,(se+de)*te)),pe.add(new go.PathSegment(go.PathSegment.Bezier,se*ne,0,0,(se-de)*te,(se-de)*ne,0)),pe.add(new go.PathSegment(go.PathSegment.Bezier,ne,se*te,(se+de)*ne,0,ne,(se-de)*te));var ye=new go.PathFigure(se*ne,0,!1);return ue.add(ye),ye.add(new go.PathSegment(go.PathSegment.Line,se*ne,.15*te)),ye.add(new go.PathSegment(go.PathSegment.Move,se*ne,te)),ye.add(new go.PathSegment(go.PathSegment.Line,se*ne,.85*te)),ye.add(new go.PathSegment(go.PathSegment.Move,0,se*te)),ye.add(new go.PathSegment(go.PathSegment.Line,.15*ne,se*te)),ye.add(new go.PathSegment(go.PathSegment.Move,ne,se*te)),ye.add(new go.PathSegment(go.PathSegment.Line,.85*ne,se*te)),ye.add(new go.PathSegment(go.PathSegment.Move,se*ne,se*te)),ye.add(new go.PathSegment(go.PathSegment.Line,.58*ne,.1*te)),ye.add(new go.PathSegment(go.PathSegment.Move,se*ne,se*te)),ye.add(new go.PathSegment(go.PathSegment.Line,.78*ne,.54*te)),ue}),go.Shape.defineFigureGenerator("Package",function(Ee,ne,te){var ue=new go.Geometry,se=new go.PathFigure(0,.15*te,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne,.15*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,0,te).close());var de=new go.PathFigure(0,.15*te,!0);return ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,0,0)),de.add(new go.PathSegment(go.PathSegment.Line,.6*ne,0)),de.add(new go.PathSegment(go.PathSegment.Line,.65*ne,.15*te).close()),ue.spot1=new go.Spot(0,.1),ue.spot2=new go.Spot(1,1),ue}),go.Shape.defineFigureGenerator("Class",function(Ee,ne,te){var ue=new go.Geometry,se=new go.PathFigure(0,0,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,0,te)),se.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var de=new go.PathFigure(0,.2*te,!1);ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,ne,.2*te).close());var pe=new go.PathFigure(0,.5*te,!1);return ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,ne,.5*te).close()),ue}),go.Shape.defineFigureGenerator("Component",function(Ee,ne,te){var ue=new go.Geometry,se=new go.PathFigure(ne,te,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.15*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.15*ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,te).close());var de=new go.PathFigure(0,.2*te,!0);ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.45*ne,.2*te)),de.add(new go.PathSegment(go.PathSegment.Line,.45*ne,.4*te)),de.add(new go.PathSegment(go.PathSegment.Line,0,.4*te)),de.add(new go.PathSegment(go.PathSegment.Line,0,.2*te).close());var pe=new go.PathFigure(0,.6*te,!0);return ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.45*ne,.6*te)),pe.add(new go.PathSegment(go.PathSegment.Line,.45*ne,.8*te)),pe.add(new go.PathSegment(go.PathSegment.Line,0,.8*te)),pe.add(new go.PathSegment(go.PathSegment.Line,0,.6*te).close()),ue}),go.Shape.defineFigureGenerator("Boat Shipment",function(Ee,ne,te){var ue=new go.Geometry,se=new go.PathFigure(.15*ne,.6*te,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.15*ne,.6*te)),se.add(new go.PathSegment(go.PathSegment.Line,0,.6*te)),se.add(new go.PathSegment(go.PathSegment.Line,.15*ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,.85*ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.6*te)),se.add(new go.PathSegment(go.PathSegment.Line,.85*ne,.6*te)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.15*ne,.6*te));var de=new go.PathFigure(.15*ne,.6*te,!1);return ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.85*ne,.6*te)),ue}),go.Shape.defineFigureGenerator("Customer/Supplier",function(Ee,ne,te){var ue=new go.Geometry,se=new go.PathFigure(ne,te,!0);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.66*ne,.33*te)),se.add(new go.PathSegment(go.PathSegment.Line,.66*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.33*ne,.33*te)),se.add(new go.PathSegment(go.PathSegment.Line,.33*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,0,.33*te)),se.add(new go.PathSegment(go.PathSegment.Line,0,te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,te).close()),ue}),go.Shape.defineFigureGenerator("Workcell",function(Ee,ne,te){var ue=new go.Geometry,se=new go.PathFigure(0,te,!0);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,.65*ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,.65*ne,.4*te)),se.add(new go.PathSegment(go.PathSegment.Line,.35*ne,.4*te)),se.add(new go.PathSegment(go.PathSegment.Line,.35*ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,0,te).close()),ue}),go.Shape.defineFigureGenerator("Supermarket",function(Ee,ne,te){var ue=new go.Geometry,se=new go.PathFigure(0,0,!1);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.33*te)),se.add(new go.PathSegment(go.PathSegment.Line,0,.33*te)),se.add(new go.PathSegment(go.PathSegment.Move,ne,.33*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.66*te)),se.add(new go.PathSegment(go.PathSegment.Line,0,.66*te)),se.add(new go.PathSegment(go.PathSegment.Move,ne,.66*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,0,te)),ue}),go.Shape.defineFigureGenerator("TruckShipment",function(Ee,ne,te){var ue=new go.Geometry,se=new go.PathFigure(0,0,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.6*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.6*ne,.8*te)),se.add(new go.PathSegment(go.PathSegment.Line,0,.8*te)),se.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var de=new go.PathFigure(ne,.8*te,!0);ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,ne,.4*te)),de.add(new go.PathSegment(go.PathSegment.Line,.6*ne,.4*te)),de.add(new go.PathSegment(go.PathSegment.Line,.6*ne,.8*te)),de.add(new go.PathSegment(go.PathSegment.Line,ne,.8*te).close());var pe=.1,ye=Ue*.1,Ce=.2,je=.9,Te=new go.PathFigure((Ce-pe)*ne,je*te,!0);ue.add(Te),Te.add(new go.PathSegment(go.PathSegment.Bezier,Ce*ne,(je-pe)*te,(Ce-pe)*ne,(je-ye)*te,(Ce-ye)*ne,(je-pe)*te)),Te.add(new go.PathSegment(go.PathSegment.Bezier,(Ce+pe)*ne,je*te,(Ce+ye)*ne,(je-pe)*te,(Ce+pe)*ne,(je-ye)*te)),Te.add(new go.PathSegment(go.PathSegment.Bezier,Ce*ne,(je+pe)*te,(Ce+pe)*ne,(je+ye)*te,(Ce+ye)*ne,(je+pe)*te)),Te.add(new go.PathSegment(go.PathSegment.Bezier,(Ce-pe)*ne,je*te,(Ce-ye)*ne,(je+pe)*te,(Ce-pe)*ne,(je+ye)*te).close()),pe=.1,ye=Ue*.1,Ce=.8,je=.9;var Ie=new go.PathFigure((Ce-pe)*ne,je*te,!0);return ue.add(Ie),Ie.add(new go.PathSegment(go.PathSegment.Bezier,Ce*ne,(je-pe)*te,(Ce-pe)*ne,(je-ye)*te,(Ce-ye)*ne,(je-pe)*te)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,(Ce+pe)*ne,je*te,(Ce+ye)*ne,(je-pe)*te,(Ce+pe)*ne,(je-ye)*te)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,Ce*ne,(je+pe)*te,(Ce+pe)*ne,(je+ye)*te,(Ce+ye)*ne,(je+pe)*te)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,(Ce-pe)*ne,je*te,(Ce-ye)*ne,(je+pe)*te,(Ce-pe)*ne,(je+ye)*te).close()),ue}),go.Shape.defineFigureGenerator("KanbanPost",function(Ee,ne,te){var ue=new go.Geometry,se=new go.PathFigure(.2*ne,0,!1);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.2*ne,.5*te)),se.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.5*te)),se.add(new go.PathSegment(go.PathSegment.Line,.8*ne,0)),se.add(new go.PathSegment(go.PathSegment.Move,.5*ne,.5*te)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,.2*ne,te)),se.add(new go.PathSegment(go.PathSegment.Move,.5*ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,.8*ne,te)),ue}),go.Shape.defineFigureGenerator("Forklift",function(Ee,ne,te){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*te)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.5*te)),se.add(new go.PathSegment(go.PathSegment.Line,.4*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,0,0));var de=new go.PathFigure(0,.5*te,!0);ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,0,.8*te)),de.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.8*te)),de.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.5*te)),de.add(new go.PathSegment(go.PathSegment.Line,0,.5*te));var pe=new go.PathFigure(.5*ne,.8*te,!0);ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.1*te)),pe.add(new go.PathSegment(go.PathSegment.Line,.55*ne,.1*te)),pe.add(new go.PathSegment(go.PathSegment.Line,.55*ne,.8*te)),pe.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.8*te));var ye=new go.PathFigure(.5*ne,.7*te,!1);ue.add(ye),ye.add(new go.PathSegment(go.PathSegment.Line,ne,.7*te));var Ce=.1,je=Ue*.1,Te=.1,Ie=.9,Oe=new go.PathFigure((Te-Ce)*ne,Ie*te,!0);ue.add(Oe),Oe.add(new go.PathSegment(go.PathSegment.Bezier,Te*ne,(Ie-Ce)*te,(Te-Ce)*ne,(Ie-je)*te,(Te-je)*ne,(Ie-Ce)*te)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(Te+Ce)*ne,Ie*te,(Te+je)*ne,(Ie-Ce)*te,(Te+Ce)*ne,(Ie-je)*te)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,Te*ne,(Ie+Ce)*te,(Te+Ce)*ne,(Ie+je)*te,(Te+je)*ne,(Ie+Ce)*te)),Oe.add(new go.PathSegment(go.PathSegment.Bezier,(Te-Ce)*ne,Ie*te,(Te-je)*ne,(Ie+Ce)*te,(Te-Ce)*ne,(Ie+je)*te)),Ce=.1,je=Ue*.1,Te=.4,Ie=.9;var Re=new go.PathFigure((Te-Ce)*ne,Ie*te,!0);return ue.add(Re),Re.add(new go.PathSegment(go.PathSegment.Bezier,Te*ne,(Ie-Ce)*te,(Te-Ce)*ne,(Ie-je)*te,(Te-je)*ne,(Ie-Ce)*te)),Re.add(new go.PathSegment(go.PathSegment.Bezier,(Te+Ce)*ne,Ie*te,(Te+je)*ne,(Ie-Ce)*te,(Te+Ce)*ne,(Ie-je)*te)),Re.add(new go.PathSegment(go.PathSegment.Bezier,Te*ne,(Ie+Ce)*te,(Te+Ce)*ne,(Ie+je)*te,(Te+je)*ne,(Ie+Ce)*te)),Re.add(new go.PathSegment(go.PathSegment.Bezier,(Te-Ce)*ne,Ie*te,(Te-je)*ne,(Ie+Ce)*te,(Te-Ce)*ne,(Ie+je)*te)),ue}),go.Shape.defineFigureGenerator("RailShipment",function(Ee,ne,te){var ue=new go.Geometry,se=new go.PathFigure(.1*ne,.4*te,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.45*ne,.4*te)),se.add(new go.PathSegment(go.PathSegment.Line,.45*ne,.9*te)),se.add(new go.PathSegment(go.PathSegment.Line,.1*ne,.9*te)),se.add(new go.PathSegment(go.PathSegment.Line,.1*ne,.4*te).close());var de=new go.PathFigure(.45*ne,.7*te,!1);ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.55*ne,.7*te));var pe=new go.PathFigure(.55*ne,.4*te,!0);ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.9*ne,.4*te)),pe.add(new go.PathSegment(go.PathSegment.Line,.9*ne,.9*te)),pe.add(new go.PathSegment(go.PathSegment.Line,.55*ne,.9*te)),pe.add(new go.PathSegment(go.PathSegment.Line,.55*ne,.4*te).close());var Te=.05,Ie=Ue*.05,Oe=.175,Re=.95,ye=new go.PathFigure((Oe-Te)*ne,Re*te,!0);ue.add(ye),ye.add(new go.PathSegment(go.PathSegment.Bezier,Oe*ne,(Re-Te)*te,(Oe-Te)*ne,(Re-Ie)*te,(Oe-Ie)*ne,(Re-Te)*te)),ye.add(new go.PathSegment(go.PathSegment.Bezier,(Oe+Te)*ne,Re*te,(Oe+Ie)*ne,(Re-Te)*te,(Oe+Te)*ne,(Re-Ie)*te)),ye.add(new go.PathSegment(go.PathSegment.Bezier,Oe*ne,(Re+Te)*te,(Oe+Te)*ne,(Re+Ie)*te,(Oe+Ie)*ne,(Re+Te)*te)),ye.add(new go.PathSegment(go.PathSegment.Bezier,(Oe-Te)*ne,Re*te,(Oe-Ie)*ne,(Re+Te)*te,(Oe-Te)*ne,(Re+Ie)*te));var Te=.05,Ie=Ue*.05,Oe=.375,Re=.95,Ce=new go.PathFigure((Oe-Te)*ne,Re*te,!0);ue.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,Oe*ne,(Re-Te)*te,(Oe-Te)*ne,(Re-Ie)*te,(Oe-Ie)*ne,(Re-Te)*te)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(Oe+Te)*ne,Re*te,(Oe+Ie)*ne,(Re-Te)*te,(Oe+Te)*ne,(Re-Ie)*te)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,Oe*ne,(Re+Te)*te,(Oe+Te)*ne,(Re+Ie)*te,(Oe+Ie)*ne,(Re+Te)*te)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(Oe-Te)*ne,Re*te,(Oe-Ie)*ne,(Re+Te)*te,(Oe-Te)*ne,(Re+Ie)*te));var Te=.05,Ie=Ue*.05,Oe=.625,Re=.95,je=new go.PathFigure((Oe-Te)*ne,Re*te,!0);ue.add(je),je.add(new go.PathSegment(go.PathSegment.Bezier,Oe*ne,(Re-Te)*te,(Oe-Te)*ne,(Re-Ie)*te,(Oe-Ie)*ne,(Re-Te)*te)),je.add(new go.PathSegment(go.PathSegment.Bezier,(Oe+Te)*ne,Re*te,(Oe+Ie)*ne,(Re-Te)*te,(Oe+Te)*ne,(Re-Ie)*te)),je.add(new go.PathSegment(go.PathSegment.Bezier,Oe*ne,(Re+Te)*te,(Oe+Te)*ne,(Re+Ie)*te,(Oe+Ie)*ne,(Re+Te)*te)),je.add(new go.PathSegment(go.PathSegment.Bezier,(Oe-Te)*ne,Re*te,(Oe-Ie)*ne,(Re+Te)*te,(Oe-Te)*ne,(Re+Ie)*te));var Te=.05,Ie=Ue*.05,Oe=.825,Re=.95,nt=new go.PathFigure((Oe-Te)*ne,Re*te,!0);ue.add(nt),nt.add(new go.PathSegment(go.PathSegment.Bezier,Oe*ne,(Re-Te)*te,(Oe-Te)*ne,(Re-Ie)*te,(Oe-Ie)*ne,(Re-Te)*te)),nt.add(new go.PathSegment(go.PathSegment.Bezier,(Oe+Te)*ne,Re*te,(Oe+Ie)*ne,(Re-Te)*te,(Oe+Te)*ne,(Re-Ie)*te)),nt.add(new go.PathSegment(go.PathSegment.Bezier,Oe*ne,(Re+Te)*te,(Oe+Te)*ne,(Re+Ie)*te,(Oe+Ie)*ne,(Re+Te)*te)),nt.add(new go.PathSegment(go.PathSegment.Bezier,(Oe-Te)*ne,Re*te,(Oe-Ie)*ne,(Re+Te)*te,(Oe-Te)*ne,(Re+Ie)*te).close());var ot=new go.PathFigure(0,te,!1);return ue.add(ot),ot.add(new go.PathSegment(go.PathSegment.Line,ne,te).close()),ue}),go.Shape.defineFigureGenerator("Warehouse",function(Ee,ne,te){var ue=new go.Geometry,se=new go.PathFigure(0,0,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,0,te)),se.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var de=new go.PathFigure(0,.2*te,!1);ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,ne,.2*te).close());var pe=new go.PathFigure(.15*ne,te,!0);ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.15*ne,.5*te)),pe.add(new go.PathSegment(go.PathSegment.Line,.4*ne,.5*te)),pe.add(new go.PathSegment(go.PathSegment.Line,.4*ne,te)),pe.add(new go.PathSegment(go.PathSegment.Line,.15*ne,te).close());var ye=.05,Ce=Ue*.05,je=.35,Te=.775,Ie=new go.PathFigure((je-ye)*ne,Te*te,!0);return ue.add(Ie),Ie.add(new go.PathSegment(go.PathSegment.Bezier,je*ne,(Te-ye)*te,(je-ye)*ne,(Te-Ce)*te,(je-Ce)*ne,(Te-ye)*te)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,(je+ye)*ne,Te*te,(je+Ce)*ne,(Te-ye)*te,(je+ye)*ne,(Te-Ce)*te)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,je*ne,(Te+ye)*te,(je+ye)*ne,(Te+Ce)*te,(je+Ce)*ne,(Te+ye)*te)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,(je-ye)*ne,Te*te,(je-Ce)*ne,(Te+ye)*te,(je-ye)*ne,(Te+Ce)*te).close()),ue}),go.Shape.defineFigureGenerator("ControlCenter",function(Ee,ne,te){var ue=new go.Geometry,se=new go.PathFigure(0,te,!0);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,.8*te)),se.add(new go.PathSegment(go.PathSegment.Line,.1*ne,.8*te)),se.add(new go.PathSegment(go.PathSegment.Line,.1*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.9*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.9*ne,.8*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.8*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,0,te)),se.add(new go.PathSegment(go.PathSegment.Move,.1*ne,.8*te)),se.add(new go.PathSegment(go.PathSegment.Line,.9*ne,.8*te).close()),ue}),go.Shape.defineFigureGenerator("Bluetooth",function(Ee,ne,te){var ue=new go.Geometry,se=new go.PathFigure(0,.75*te,!1);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,.75*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.25*te)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.75*te)),se.add(new go.PathSegment(go.PathSegment.Line,0,.25*te)),ue}),go.Shape.defineFigureGenerator("Bookmark",function(Ee,ne,te){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,te)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.6*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,0,0)),se.add(new go.PathSegment(go.PathSegment.Move,.2*ne,.2*te)),se.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.2*te)),se.add(new go.PathSegment(go.PathSegment.Move,.2*ne,.4*te)),se.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.4*te)),ue}),go.Shape.defineFigureGenerator("Bookmark",function(Ee,ne,te){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,te)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.6*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,0,0)),se.add(new go.PathSegment(go.PathSegment.Move,.2*ne,.2*te)),se.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.2*te)),se.add(new go.PathSegment(go.PathSegment.Move,.2*ne,.4*te)),se.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.4*te)),ue}),go.Shape.defineFigureGenerator("Globe",function(Ee,ne,te){var ue=new go.Geometry,se=new go.PathFigure(.5*ne,0,!1);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,te)),se.add(new go.PathSegment(go.PathSegment.Move,0,.5*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)),se.add(new go.PathSegment(go.PathSegment.Move,.5*ne,0)),se.add(new go.PathSegment(go.PathSegment.Bezier,ne,.5*te,.75*ne,0,ne,.25*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,te,ne,.75*te,.75*ne,te)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*te,.25*ne,te,0,.75*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,0,0,.25*te,.25*ne,0)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,te,.15*ne,.25*te,.15*ne,.75*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,0,.85*ne,.75*te,.85*ne,.25*te)),se.add(new go.PathSegment(go.PathSegment.Move,.1675*ne,.15*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.8325*ne,.15*te,.35*ne,.3*te,.65*ne,.3*te)),se.add(new go.PathSegment(go.PathSegment.Move,.1675*ne,.85*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.8325*ne,.85*te,.35*ne,.7*te,.65*ne,.7*te)),ue}),go.Shape.defineFigureGenerator("Wave",function(Ee,ne,te){var ue=new go.Geometry,se=new go.PathFigure(0,.25*te,!1);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,.3*ne,.25*te,.1*ne,0,.2*ne,0)),se.add(new go.PathSegment(go.PathSegment.Bezier,.7*ne,.25*te,.425*ne,.5*te,.575*ne,.5*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,ne,.25*te,.8*ne,0,.9*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.75*te)),se.add(new go.PathSegment(go.PathSegment.Move,0,.25*te)),se.add(new go.PathSegment(go.PathSegment.Line,0,.75*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.3*ne,.75*te,.1*ne,.5*te,.2*ne,.5*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.7*ne,.75*te,.425*ne,te,.575*ne,te)),se.add(new go.PathSegment(go.PathSegment.Bezier,ne,.75*te,.8*ne,.5*te,.9*ne,.5*te)),ue}),go.Shape.defineFigureGenerator("Operator",function(Ee,ne,te){var ue=new go.Geometry,se=.3,de=Ue*.3,pe=.5,ye=.7,Ce=new go.PathFigure((pe-se)*ne,ye*te,!0);ue.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,pe*ne,(ye-se)*te,(pe-se)*ne,(ye-de)*te,(pe-de)*ne,(ye-se)*te)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(pe+se)*ne,ye*te,(pe+de)*ne,(ye-se)*te,(pe+se)*ne,(ye-de)*te)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,pe*ne,(ye+se)*te,(pe+se)*ne,(ye+de)*te,(pe+de)*ne,(ye+se)*te)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(pe-se)*ne,ye*te,(pe-de)*ne,(ye+se)*te,(pe-se)*ne,(ye+de)*te));var je=new go.PathFigure(0,.7*te,!1);return ue.add(je),je.add(new go.PathSegment(go.PathSegment.Bezier,ne,.7*te,0,0,ne,0)),ue}),go.Shape.defineFigureGenerator("TripleFanBlades",function(Ee,ne,te){var ue=new go.Geometry,se=new go.PathFigure(.5*ne,0,!0);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,.65*te,.65*ne,.3*te,.65*ne,.5*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,0,.35*ne,.5*te,.35*ne,.3*te)),se.add(new go.PathSegment(go.PathSegment.Move,.5*ne,.65*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,te,.3*ne,.6*te,.1*ne,.8*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,.65*te,.2*ne,te,.35*ne,.95*te)),se.add(new go.PathSegment(go.PathSegment.Move,.5*ne,.65*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,ne,te,.7*ne,.6*te,.9*ne,.8*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,.65*te,.8*ne,te,.65*ne,.95*te)),ue}),go.Shape.defineFigureGenerator("CentrifugalPump",function(Ee,ne,te){var ue=new go.Geometry,se=new go.PathFigure(ne,0,!0);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.4*ne,0)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*te,0,.075*te,0,.5*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.4*ne,te,0,te,.4*ne,te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.8*ne,.4*te,.8*ne,te,.85*ne,.6*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.4*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,0)),ue}),go.Shape.defineFigureGenerator("Battery",function(Ee,ne,te){var ue=new go.Geometry,se=new go.PathFigure(0,te,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,.1*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.1*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,0,te)),se.add(new go.PathSegment(go.PathSegment.Move,.4*ne,.1*te)),se.add(new go.PathSegment(go.PathSegment.Line,.4*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.6*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.6*ne,.1*te));var de=new go.PathFigure(0,.6*te,!1);return ue.add(de),de.add(new go.PathSegment(go.PathSegment.Move,0,.4*te)),de.add(new go.PathSegment(go.PathSegment.Line,ne,.4*te)),ue}),go.Shape.defineFigureGenerator("Delete",function(Ee,ne,te){var ue=new go.Geometry,se=.5,de=Ue*.5,pe=.5,ye=.5,Ce=new go.PathFigure((pe-se)*ne,ye*te,!0);ue.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,pe*ne,(ye-se)*te,(pe-se)*ne,(ye-de)*te,(pe-de)*ne,(ye-se)*te)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(pe+se)*ne,ye*te,(pe+de)*ne,(ye-se)*te,(pe+se)*ne,(ye-de)*te)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,pe*ne,(ye+se)*te,(pe+se)*ne,(ye+de)*te,(pe+de)*ne,(ye+se)*te)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(pe-se)*ne,ye*te,(pe-de)*ne,(ye+se)*te,(pe-se)*ne,(ye+de)*te));var je=new go.PathFigure(.15*ne,.5*te,!1);return ue.add(je),je.add(new go.PathSegment(go.PathSegment.Line,.85*ne,.5*te)),ue}),go.Shape.defineFigureGenerator("Flag",function(Ee,ne,te){var ue=new go.Geometry,se=new go.PathFigure(0,.1*te,!0);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,te)),se.add(new go.PathSegment(go.PathSegment.Move,0,.1*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,.1*te,.15*ne,0,.35*ne,0)),se.add(new go.PathSegment(go.PathSegment.Bezier,ne,.1*te,.65*ne,.2*te,.85*ne,.2*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,.5*te,.85*ne,.6*te,.65*ne,.6*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*te,.35*ne,.4*te,.15*ne,.4*te).close()),ue}),go.Shape.defineFigureGenerator("Help",function(Ee,ne,te){var ue=new go.Geometry,se=.5,de=Ue*.5,pe=.5,ye=.5,Ce=new go.PathFigure((pe-se)*ne,ye*te,!1);ue.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,pe*ne,(ye-se)*te,(pe-se)*ne,(ye-de)*te,(pe-de)*ne,(ye-se)*te)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(pe+se)*ne,ye*te,(pe+de)*ne,(ye-se)*te,(pe+se)*ne,(ye-de)*te)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,pe*ne,(ye+se)*te,(pe+se)*ne,(ye+de)*te,(pe+de)*ne,(ye+se)*te)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(pe-se)*ne,ye*te,(pe-de)*ne,(ye+se)*te,(pe-se)*ne,(ye+de)*te).close()),se=.05,de=Ue*.05,pe=.5,ye=.8;var je=new go.PathFigure((pe-se)*ne,ye*te,!1);return ue.add(je),je.add(new go.PathSegment(go.PathSegment.Bezier,pe*ne,(ye-se)*te,(pe-se)*ne,(ye-de)*te,(pe-de)*ne,(ye-se)*te)),je.add(new go.PathSegment(go.PathSegment.Bezier,(pe+se)*ne,ye*te,(pe+de)*ne,(ye-se)*te,(pe+se)*ne,(ye-de)*te)),je.add(new go.PathSegment(go.PathSegment.Bezier,pe*ne,(ye+se)*te,(pe+se)*ne,(ye+de)*te,(pe+de)*ne,(ye+se)*te)),je.add(new go.PathSegment(go.PathSegment.Bezier,(pe-se)*ne,ye*te,(pe-de)*ne,(ye+se)*te,(pe-se)*ne,(ye+de)*te).close()),je.add(new go.PathSegment(go.PathSegment.Move,.5*ne,.7*te)),je.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.5*te)),je.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,.2*te,.75*ne,.475*te,.75*ne,.225*te)),je.add(new go.PathSegment(go.PathSegment.Bezier,.3*ne,.35*te,.4*ne,.2*te,.3*ne,.25*te)),ue}),go.Shape.defineFigureGenerator("Location",function(Ee,ne,te){return new go.Geometry().add(new go.PathFigure(.5*ne,te,!0).add(new go.PathSegment(go.PathSegment.Line,.75*ne,.5*te)).add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,0,.975*ne,.025*te,.5*ne,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*ne,.5*te,.5*ne,0,.025*ne,.025*te).close()).add(new go.PathSegment(go.PathSegment.Move,.5*ne,.2*te)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*ne,.3*te,.1*ne,.1*te).close()))}),go.Shape.defineFigureGenerator("Lock",function(Ee,ne,te){var ue=new go.Geometry,se=new go.PathFigure(0,.5*te,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)),se.add(new go.PathSegment(go.PathSegment.Line,0,.5*te));var de=new go.PathFigure(.2*ne,.5*te,!1);return ue.add(de),de.add(new go.PathSegment(go.PathSegment.Move,.2*ne,.5*te)),de.add(new go.PathSegment(go.PathSegment.Line,.2*ne,.3*te)),de.add(new go.PathSegment(go.PathSegment.Bezier,.8*ne,.3*te,.25*ne,0,.75*ne,0)),de.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.5*te)),de.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.3*te)),ue}),go.Shape.defineFigureGenerator("Unlocked",function(Ee,ne,te){var ue=new go.Geometry,se=new go.PathFigure(0,.5*te,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)),se.add(new go.PathSegment(go.PathSegment.Line,0,.5*te));var de=new go.PathFigure(.2*ne,.5*te,!1);return ue.add(de),de.add(new go.PathSegment(go.PathSegment.Move,.2*ne,.5*te)),de.add(new go.PathSegment(go.PathSegment.Line,.2*ne,.3*te)),de.add(new go.PathSegment(go.PathSegment.Bezier,.8*ne,.3*te,.25*ne,0,.75*ne,0)),de.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.35*te)),ue}),go.Shape.defineFigureGenerator("Gear",function(Ee,ne,te){return new go.Geometry().add(new go.PathFigure(.9375*ne,.56246875*te,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*ne,.4375*te)).add(new go.PathSegment(go.PathSegment.Line,.80621875*ne,.4375*te)).add(new go.PathSegment(go.PathSegment.Bezier,.763*ne,.3316875*te,.79840625*ne,.39915625*te,.7834375*ne,.3635*te)).add(new go.PathSegment(go.PathSegment.Line,.8566875*ne,.23796875*te)).add(new go.PathSegment(go.PathSegment.Line,.76825*ne,.14959375*te)).add(new go.PathSegment(go.PathSegment.Line,.67596875*ne,.24184375*te)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*ne,.19378125*te,.64228125*ne,.2188125*te,.603875*ne,.2021875*te)).add(new go.PathSegment(go.PathSegment.Line,.5625*ne,.0625*te)).add(new go.PathSegment(go.PathSegment.Line,.4375*ne,.0625*te)).add(new go.PathSegment(go.PathSegment.Line,.4375*ne,.19378125*te)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*ne,.239375*te,.39759375*ne,.20190625*te,.36053125*ne,.2176875*te)).add(new go.PathSegment(go.PathSegment.Line,.2379375*ne,.14959375*te)).add(new go.PathSegment(go.PathSegment.Line,.14953125*ne,.2379375*te)).add(new go.PathSegment(go.PathSegment.Line,.23934375*ne,.3278125*te)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*ne,.4375*te,.21765625*ne,.36059375*te,.201875*ne,.397625*te)).add(new go.PathSegment(go.PathSegment.Line,.0625*ne,.4375*te)).add(new go.PathSegment(go.PathSegment.Line,.0625*ne,.5625*te)).add(new go.PathSegment(go.PathSegment.Line,.1938125*ne,.5625*te)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*ne,.67596875*te,.20221875*ne,.603875*te,.21884375*ne,.64228125*te)).add(new go.PathSegment(go.PathSegment.Line,.1495625*ne,.76825*te)).add(new go.PathSegment(go.PathSegment.Line,.238*ne,.8566875*te)).add(new go.PathSegment(go.PathSegment.Line,.3316875*ne,.76296875*te)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*ne,.80621875*te,.36353125*ne,.78340625*te,.3991875*ne,.79840625*te)).add(new go.PathSegment(go.PathSegment.Line,.43753125*ne,.9375*te)).add(new go.PathSegment(go.PathSegment.Line,.5625*ne,.9375*te)).add(new go.PathSegment(go.PathSegment.Line,.5625*ne,.80621875*te)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*ne,.760625*te,.602375*ne,.79809375*te,.63946875*ne,.78234375*te)).add(new go.PathSegment(go.PathSegment.Line,.76828125*ne,.8566875*te)).add(new go.PathSegment(go.PathSegment.Line,.85671875*ne,.76825*te)).add(new go.PathSegment(go.PathSegment.Line,.76065625*ne,.67221875*te)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*ne,.56246875*te,.78234375*ne,.63940625*te,.798125*ne,.602375*te)).add(new go.PathSegment(go.PathSegment.Line,.9375*ne,.56246875*te).close()).add(new go.PathSegment(go.PathSegment.Move,.5*ne,.6*te)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*ne,.5*te,.1*ne,.1*te).close()))}),go.Shape.defineFigureGenerator("Hand",function(Ee,ne,te){var ue=new go.Geometry,se=new go.PathFigure(0,.5*te,!0);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,.1*ne,.3*te,0,.375*te,.05*ne,.325*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.45*ne,.075*te,.3*ne,.225*te,.4*ne,.175*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.525*ne,.075*te,.46*ne,.05*te,.525*ne,.05*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.3*ne,.4*te,.525*ne,.275*te,.475*ne,.325*te)),se.add(new go.PathSegment(go.PathSegment.Line,.9*ne,.4*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.9*ne,.55*te,ne,.4*te,ne,.55*te)),se.add(new go.PathSegment(go.PathSegment.Line,.425*ne,.55*te)),se.add(new go.PathSegment(go.PathSegment.Line,.6*ne,.55*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.6*ne,.7*te,.675*ne,.55*te,.675*ne,.7*te)),se.add(new go.PathSegment(go.PathSegment.Line,.4*ne,.7*te)),se.add(new go.PathSegment(go.PathSegment.Line,.575*ne,.7*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.575*ne,.85*te,.65*ne,.7*te,.65*ne,.85*te)),se.add(new go.PathSegment(go.PathSegment.Line,.4*ne,.85*te)),se.add(new go.PathSegment(go.PathSegment.Line,.525*ne,.85*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.535*ne,te,.61*ne,.85*te,.61*ne,te)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*te,.435*ne,te,0,te).close()),ue}),go.Shape.defineFigureGenerator("Map",function(Ee,ne,te){var ue=new go.Geometry,se=new go.PathFigure(0,.2*te,!0);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.25*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.2*te)),se.add(new go.PathSegment(go.PathSegment.Line,.75*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,ne,.2*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,.75*ne,.8*te)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,.25*ne,.8*te)),se.add(new go.PathSegment(go.PathSegment.Line,0,te).close()),se.add(new go.PathSegment(go.PathSegment.Move,.25*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.25*ne,.8*te)),se.add(new go.PathSegment(go.PathSegment.Move,.5*ne,.2*te)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,te)),se.add(new go.PathSegment(go.PathSegment.Move,.75*ne,0)),se.add(new go.PathSegment(go.PathSegment.Line,.75*ne,.8*te)),ue}),go.Shape.defineFigureGenerator("Eject",function(Ee,ne,te){var ue=new go.Geometry,se=new go.PathFigure(0,te,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne,te)),se.add(new go.PathSegment(go.PathSegment.Line,ne,te*.7)),se.add(new go.PathSegment(go.PathSegment.Line,0,te*.7).close());var de=new go.PathFigure(0,te*.6,!0);return ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,ne,.6*te)),de.add(new go.PathSegment(go.PathSegment.Line,.5*ne,0).close()),ue}),go.Shape.defineFigureGenerator("Pencil",function(Ee,ne,te){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*ne,.1*te)).add(new go.PathSegment(go.PathSegment.Line,ne,.9*te)).add(new go.PathSegment(go.PathSegment.Line,.9*ne,te)).add(new go.PathSegment(go.PathSegment.Line,.1*ne,.2*te).close()))}),go.Shape.defineFigureGenerator("Building",function(Ee,ne,te){var ue=new go.Geometry,se=new go.PathFigure(ne*1,te*1,!1);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,te*1)),se.add(new go.PathSegment(go.PathSegment.Line,0,te*.85)),se.add(new go.PathSegment(go.PathSegment.Line,.046*ne,te*.85)),se.add(new go.PathSegment(go.PathSegment.Line,.046*ne,te*.45)),se.add(new go.PathSegment(go.PathSegment.Line,0,te*.45)),se.add(new go.PathSegment(go.PathSegment.Line,0,te*.3)),se.add(new go.PathSegment(go.PathSegment.Line,.046*ne,te*.3)),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,te*0)),se.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*ne,te*.3)),se.add(new go.PathSegment(go.PathSegment.Line,ne,te*.3)),se.add(new go.PathSegment(go.PathSegment.Line,ne,te*.45)),se.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*ne,te*.45)),se.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*ne,te*.85)),se.add(new go.PathSegment(go.PathSegment.Line,ne,te*.85).close());var de=new go.PathFigure(.126*ne,.85*te,!1);ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.126*ne,.45*te)),de.add(new go.PathSegment(go.PathSegment.Line,.322*ne,.45*te)),de.add(new go.PathSegment(go.PathSegment.Line,.322*ne,.85*te).close());var pe=new go.PathFigure(.402*ne,.85*te,!1);ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.402*ne,.45*te)),pe.add(new go.PathSegment(go.PathSegment.Line,.598*ne,.45*te)),pe.add(new go.PathSegment(go.PathSegment.Line,.598*ne,.85*te).close());var ye=new go.PathFigure(.678*ne,.85*te,!1);ue.add(ye),ye.add(new go.PathSegment(go.PathSegment.Line,.678*ne,.45*te)),ye.add(new go.PathSegment(go.PathSegment.Line,.874*ne,.45*te)),ye.add(new go.PathSegment(go.PathSegment.Line,.874*ne,.85*te).close());var Ce=new go.PathFigure(.5*ne,.1*te,!1);return ue.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*ne,.3*te)),Ce.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*ne,.3*te).close()),ue}),go.Shape.defineFigureGenerator("Staircase",function(Ee,ne,te){var ue=new go.Geometry,se=new go.PathFigure(0,te*1,!0);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne*.2,te*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.2,te*.8)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.4,te*.8)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.4,te*.6)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.6,te*.6)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.6,te*.4)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.8,te*.4)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.8,te*.2)),se.add(new go.PathSegment(go.PathSegment.Line,ne*1,te*.2)),se.add(new go.PathSegment(go.PathSegment.Line,ne*1,te*.15)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.75,te*.15)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.75,te*.35)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.55,te*.35)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.55,te*.55)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.35,te*.55)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.35,te*.75)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.15,te*.75)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.15,te*.95)),se.add(new go.PathSegment(go.PathSegment.Line,0,te*.95).close()),ue}),go.Shape.defineFigureGenerator("5Bars",function(Ee,ne,te){var ue=new go.Geometry,se=new go.PathFigure(0,te*1,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne*.184,te*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.184,te*(1-.184)).close());var de=new go.PathFigure(ne*.204,te,!0);ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,ne*.204,te*(1-.184))),de.add(new go.PathSegment(go.PathSegment.Line,ne*.388,te*(1-.184*2))),de.add(new go.PathSegment(go.PathSegment.Line,ne*.388,te*1).close());var pe=new go.PathFigure(ne*.408,te,!0);ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,ne*.408,te*(1-.184*2))),pe.add(new go.PathSegment(go.PathSegment.Line,ne*.592,te*(1-.184*3))),pe.add(new go.PathSegment(go.PathSegment.Line,ne*.592,te*1).close());var ye=new go.PathFigure(ne*.612,te,!0);ue.add(ye),ye.add(new go.PathSegment(go.PathSegment.Line,ne*.612,te*(1-.184*3))),ye.add(new go.PathSegment(go.PathSegment.Line,ne*.796,te*(1-.184*4))),ye.add(new go.PathSegment(go.PathSegment.Line,ne*.796,te*1).close());var Ce=new go.PathFigure(ne*.816,te,!0);return ue.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Line,ne*.816,te*(1-.184*4))),Ce.add(new go.PathSegment(go.PathSegment.Line,ne*1,te*(1-.184*5))),Ce.add(new go.PathSegment(go.PathSegment.Line,ne*1,te*1).close()),ue}),go.Shape.defineFigureGenerator("PC",function(Ee,ne,te){var ue=new go.Geometry,se=new go.PathFigure(0,0,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,te*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.3,te*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.3,0).close());var de=new go.PathFigure(ne*.055,.07*te,!0);ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,ne*.245,te*.07)),de.add(new go.PathSegment(go.PathSegment.Line,ne*.245,te*.1)),de.add(new go.PathSegment(go.PathSegment.Line,ne*.055,te*.1).close());var pe=new go.PathFigure(ne*.055,.13*te,!0);ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,ne*.245,te*.13)),pe.add(new go.PathSegment(go.PathSegment.Line,ne*.245,te*.16)),pe.add(new go.PathSegment(go.PathSegment.Line,ne*.055,te*.16).close());var ye=new go.PathFigure(ne*.055,.18*te,!0);ue.add(ye),ye.add(new go.PathSegment(go.PathSegment.Line,ne*.245,te*.18)),ye.add(new go.PathSegment(go.PathSegment.Line,ne*.245,te*.21)),ye.add(new go.PathSegment(go.PathSegment.Line,ne*.055,te*.21).close());var Ce=new go.PathFigure(ne*1,0,!0);return ue.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Line,ne*.4,0)),Ce.add(new go.PathSegment(go.PathSegment.Line,ne*.4,te*.65)),Ce.add(new go.PathSegment(go.PathSegment.Line,ne*1,te*.65).close()),ue}),go.Shape.defineFigureGenerator("Plane",function(Ee,ne,te){var ue=new go.Geometry,se=new go.PathFigure(.55*ne,te,!0);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.6*te)),se.add(new go.PathSegment(go.PathSegment.Line,.4*ne,.7*te)),se.add(new go.PathSegment(go.PathSegment.Line,.1*ne,.475*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.35*ne,.525*te,0,.4*te,.225*ne,.45*te)),se.add(new go.PathSegment(go.PathSegment.Line,.4*ne,.475*te)),se.add(new go.PathSegment(go.PathSegment.Line,.15*ne,.35*te)),se.add(new go.PathSegment(go.PathSegment.Line,.2*ne,.325*te)),se.add(new go.PathSegment(go.PathSegment.Line,.6*ne,.325*te)),se.add(new go.PathSegment(go.PathSegment.Line,.85*ne,.1*te)),se.add(new go.PathSegment(go.PathSegment.Bezier,.9*ne,.2*te,.975*ne,0,ne,.08*te)),se.add(new go.PathSegment(go.PathSegment.Line,.7*ne,.45*te)),se.add(new go.PathSegment(go.PathSegment.Line,.6*ne,.95*te)),se.add(new go.PathSegment(go.PathSegment.Line,.55*ne,te).close()),ue}),go.Shape.defineFigureGenerator("Key",function(Ee,ne,te){var ue=new go.Geometry,se=new go.PathFigure(ne*1,te*.5,!0);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne*.9,.4*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.5,.4*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.5,.35*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.45,.35*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.3,.2*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.15,.2*te)),se.add(new go.PathSegment(go.PathSegment.Line,0,.35*te)),se.add(new go.PathSegment(go.PathSegment.Line,0,.65*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.15,.8*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.3,.8*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.45,.65*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.5,.65*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.5,.6*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.6,.6*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.65,.55*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.7,.6*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.75,.55*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.8,.6*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.85,.575*te)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.9,.6*te).close()),se.add(new go.PathSegment(go.PathSegment.Move,.17*ne,.425*te)),se.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*ne,.5*te,.075*ne,.075*te).close()),ue}),go.Shape.defineFigureGenerator("FilmTape",function(Ee,ne,te){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,ne*0,ne*.3,ne*.055)),se.add(new go.PathSegment(go.PathSegment.Line,0,te*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.08,te*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.08,te*.95)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*1),te*.95)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*1),te*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*2),te*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*2),te*.95)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*3),te*.95)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*3),te*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*4),te*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*4),te*.95)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*5),te*.95)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*5),te*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*6),te*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*6),te*.95)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*7),te*.95)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*7),te*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*8),te*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*8),te*.95)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*9),te*.95)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*9),te*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*10),te*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*10),te*.95)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*11),te*.95)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*11),te*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*12),te*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*12),te*.95)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*13),te*.95)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*13),te*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*14),te*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*14),te*.95)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*15),te*.95)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*15),te*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*1,te*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*1,te*1));var de=new go.PathFigure(0,0,!1);ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,ne*1,te*0)),de.add(new go.PathSegment(go.PathSegment.Arc,270,-180,ne*1,ne*.3,ne*.055)),de.add(new go.PathSegment(go.PathSegment.Line,ne*1,te*1));var pe=new go.PathFigure(ne*.11,te*.1,!1);ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,ne*(.11+.24133333*1+.028*0),te*.1)),pe.add(new go.PathSegment(go.PathSegment.Line,ne*(.11+.24133333*1+.028*0),te*.8)),pe.add(new go.PathSegment(go.PathSegment.Line,ne*.11,te*.8).close());var ye=new go.PathFigure(ne*(.11+.24133333*1+.028*1),te*.1,!1);ue.add(ye),ye.add(new go.PathSegment(go.PathSegment.Line,ne*(.11+.24133333*2+.028*1),te*.1)),ye.add(new go.PathSegment(go.PathSegment.Line,ne*(.11+.24133333*2+.028*1),te*.8)),ye.add(new go.PathSegment(go.PathSegment.Line,ne*(.11+.24133333*1+.028*1),te*.8).close());var Ce=new go.PathFigure(ne*(.11+.24133333*2+.028*2),te*.1,!1);return ue.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Line,ne*(.11+.24133333*3+.028*2),te*.1)),Ce.add(new go.PathSegment(go.PathSegment.Line,ne*(.11+.24133333*3+.028*2),te*.8)),Ce.add(new go.PathSegment(go.PathSegment.Line,ne*(.11+.24133333*2+.028*2),te*.8).close()),ue}),go.Shape.defineFigureGenerator("FloppyDisk",function(Ee,ne,te){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,ne*.86,0)),pe.add(new go.PathSegment(go.PathSegment.Line,ne*1,te*.14)),pe.add(new go.PathSegment(go.PathSegment.Line,ne,te-se)),pe.add(new go.PathSegment(go.PathSegment.Bezier,ne-se,te,ne,te-de,ne-de,te)),pe.add(new go.PathSegment(go.PathSegment.Line,se,te)),pe.add(new go.PathSegment(go.PathSegment.Bezier,0,te-se,de,te,0,te-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(ne*.83,0,!1);ue.add(ye),ye.add(new go.PathSegment(go.PathSegment.Line,ne*.83,te*.3)),ye.add(new go.PathSegment(go.PathSegment.Line,ne*.17,te*.3)),ye.add(new go.PathSegment(go.PathSegment.Line,ne*.17,te*0).close());var Ce=new go.PathFigure(ne*.83,te*1,!1);ue.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Line,ne*.83,te*.5)),Ce.add(new go.PathSegment(go.PathSegment.Line,ne*.17,te*.5)),Ce.add(new go.PathSegment(go.PathSegment.Line,ne*.17,te*1).close());var je=new go.PathFigure(ne*.78,te*.05,!1);return ue.add(je),je.add(new go.PathSegment(go.PathSegment.Line,ne*.66,te*.05)),je.add(new go.PathSegment(go.PathSegment.Line,ne*.66,te*.25)),je.add(new go.PathSegment(go.PathSegment.Line,ne*.78,te*.25).close()),ue}),go.Shape.defineFigureGenerator("SpeechBubble",function(Ee,ne,te){var ue=Ee?Ee.parameter1:NaN;(isNaN(ue)||ue<0)&&(ue=15),ue=Math.min(ue,ne/3),ue=Math.min(ue,te/3);var se=ue*Ue,de=te*.8,pe=new go.Geometry,ye=new go.PathFigure(ue,0,!0);return pe.add(ye),ye.add(new go.PathSegment(go.PathSegment.Line,ne-ue,0)),ye.add(new go.PathSegment(go.PathSegment.Bezier,ne,ue,ne-se,0,ne,se)),ye.add(new go.PathSegment(go.PathSegment.Line,ne,de-ue)),ye.add(new go.PathSegment(go.PathSegment.Bezier,ne-ue,de,ne,de-se,ne-se,de)),ye.add(new go.PathSegment(go.PathSegment.Line,ne*.7,de)),ye.add(new go.PathSegment(go.PathSegment.Line,ne*.7,te)),ye.add(new go.PathSegment(go.PathSegment.Line,ne*.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,ne,te){var ue=new go.Geometry,se=new go.PathFigure(ne*0,te*.45,!0);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne*.25,te*0)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.5,te*.45)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.3,te*.45)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.3,te*.9)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.6,te*.9)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.65,te*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.2,te*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.2,te*.45).close());var de=new go.PathFigure(ne*1,te*.55,!0);return ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,ne*.75,te*1)),de.add(new go.PathSegment(go.PathSegment.Line,ne*.5,te*.55)),de.add(new go.PathSegment(go.PathSegment.Line,ne*.7,te*.55)),de.add(new go.PathSegment(go.PathSegment.Line,ne*.7,te*.1)),de.add(new go.PathSegment(go.PathSegment.Line,ne*.4,te*.1)),de.add(new go.PathSegment(go.PathSegment.Line,ne*.35,te*0)),de.add(new go.PathSegment(go.PathSegment.Line,ne*.8,te*0)),de.add(new go.PathSegment(go.PathSegment.Line,ne*.8,te*.55).close()),ue}),go.Shape.defineFigureGenerator("Windows",function(Ee,ne,te){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,ne,0)).add(new go.PathSegment(go.PathSegment.Line,ne,te)).add(new go.PathSegment(go.PathSegment.Line,0,te).close()).add(new go.PathSegment(go.PathSegment.Move,.4*ne,.4*te)).add(new go.PathSegment(go.PathSegment.Line,.4*ne,.8*te)).add(new go.PathSegment(go.PathSegment.Line,.9*ne,.8*te)).add(new go.PathSegment(go.PathSegment.Line,.9*ne,.4*te).close()).add(new go.PathSegment(go.PathSegment.Move,.2*ne,.1*te)).add(new go.PathSegment(go.PathSegment.Line,.2*ne,.6*te)).add(new go.PathSegment(go.PathSegment.Line,.7*ne,.6*te)).add(new go.PathSegment(go.PathSegment.Line,.7*ne,.1*te).close()).add(new go.PathSegment(go.PathSegment.Move,.1*ne,.6*te)).add(new go.PathSegment(go.PathSegment.Line,.1*ne,.9*te)).add(new go.PathSegment(go.PathSegment.Line,.5*ne,.9*te)).add(new go.PathSegment(go.PathSegment.Line,.5*ne,.6*te).close()))}),go.Shape.defineFigureGenerator("Terminal",function(Ee,ne,te){var ue=new go.Geometry,se=new go.PathFigure(ne*0,te*.1,!1);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne*1,te*.1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*1,te*.9)),se.add(new go.PathSegment(go.PathSegment.Line,ne*0,te*.9).close());var de=new go.PathFigure(ne*.1,te*.2,!0);ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,ne*.1,te*.25)),de.add(new go.PathSegment(go.PathSegment.Line,ne*.22,te*.285)),de.add(new go.PathSegment(go.PathSegment.Line,ne*.1,te*.32)),de.add(new go.PathSegment(go.PathSegment.Line,ne*.1,te*.37)),de.add(new go.PathSegment(go.PathSegment.Line,ne*.275,te*.32)),de.add(new go.PathSegment(go.PathSegment.Line,ne*.275,te*.25).close());var pe=new go.PathFigure(ne*.28,te*.37,!0);return ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,ne*.45,te*.37)),pe.add(new go.PathSegment(go.PathSegment.Line,ne*.45,te*.41)),pe.add(new go.PathSegment(go.PathSegment.Line,ne*.28,te*.41).close()),ue}),go.Shape.defineFigureGenerator("Beaker",function(Ee,ne,te){var ue=new go.Geometry,se=15,de=se*Ue,pe=new go.PathFigure(ne*.62,te*.475,!0);return ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,ne,te-se)),pe.add(new go.PathSegment(go.PathSegment.Bezier,ne-se,te,ne,te-de,ne-de,te)),pe.add(new go.PathSegment(go.PathSegment.Line,se,te)),pe.add(new go.PathSegment(go.PathSegment.Bezier,0,te-se,de,te,0,te-de)),pe.add(new go.PathSegment(go.PathSegment.Line,ne*.38,te*.475)),pe.add(new go.PathSegment(go.PathSegment.Line,ne*.38,te*.03)),pe.add(new go.PathSegment(go.PathSegment.Line,ne*.36,te*0)),pe.add(new go.PathSegment(go.PathSegment.Line,ne*.64,te*0)),pe.add(new go.PathSegment(go.PathSegment.Line,ne*.62,te*.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,ne,te){var ue=new go.Geometry,se=new go.PathFigure(ne*0,te*1,!0);ue.add(se);var de=.1/.3;se.add(new go.PathSegment(go.PathSegment.Line,ne*1,te*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*1,te*(1-de))),se.add(new go.PathSegment(go.PathSegment.Line,ne*.8,te*0)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.66,te*0)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.66,te*.055)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.755,te*.055)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.93,te*(1-de))),se.add(new go.PathSegment(go.PathSegment.Line,ne*.64,te*(1-de))),se.add(new go.PathSegment(go.PathSegment.Line,ne*.61,te*.75)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.5,te*.75)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.39,te*.75)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.36,te*(1-de))),se.add(new go.PathSegment(go.PathSegment.Line,ne*.07,te*(1-de))),se.add(new go.PathSegment(go.PathSegment.Line,ne*(1-.755),te*.055)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(1-.66),te*.055)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(1-.66),te*0)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(1-.8),te*0)),se.add(new go.PathSegment(go.PathSegment.Line,ne*0,te*(1-de)).close());var pe=new go.PathFigure(ne*.4,te*0,!0);return ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,ne*.4,te*.44)),pe.add(new go.PathSegment(go.PathSegment.Line,ne*.26,te*.44)),pe.add(new go.PathSegment(go.PathSegment.Line,ne*.5,te*.66)),pe.add(new go.PathSegment(go.PathSegment.Line,ne*(1-.26),te*.44)),pe.add(new go.PathSegment(go.PathSegment.Line,ne*.6,te*.44)),pe.add(new go.PathSegment(go.PathSegment.Line,ne*.6,te*0).close()),ue}),go.Shape.defineFigureGenerator("Bin",function(Ee,ne,te){var ue=new go.Geometry,se=new go.PathFigure(ne*0,te*1,!0);ue.add(se);var de=.1/.3;return se.add(new go.PathSegment(go.PathSegment.Line,ne*1,te*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*1,te*(1-de))),se.add(new go.PathSegment(go.PathSegment.Line,ne*.8,te*0)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.66,te*0)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.66,te*.055)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.755,te*.055)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.93,te*(1-de))),se.add(new go.PathSegment(go.PathSegment.Line,ne*.64,te*(1-de))),se.add(new go.PathSegment(go.PathSegment.Line,ne*.61,te*.75)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.5,te*.75)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.39,te*.75)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.36,te*(1-de))),se.add(new go.PathSegment(go.PathSegment.Line,ne*.07,te*(1-de))),se.add(new go.PathSegment(go.PathSegment.Line,ne*(1-.755),te*.055)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(1-.66),te*.055)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(1-.66),te*0)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(1-.8),te*0)),se.add(new go.PathSegment(go.PathSegment.Line,ne*0,te*(1-de)).close()),ue}),go.Shape.defineFigureGenerator("Upload",function(Ee,ne,te){var ue=new go.Geometry,se=new go.PathFigure(ne*0,te*1,!0);ue.add(se);var de=.1/.3;se.add(new go.PathSegment(go.PathSegment.Line,ne*1,te*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*1,te*(1-de))),se.add(new go.PathSegment(go.PathSegment.Line,ne*.8,te*0)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.66,te*0)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.66,te*.055)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.755,te*.055)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.93,te*(1-de))),se.add(new go.PathSegment(go.PathSegment.Line,ne*.64,te*(1-de))),se.add(new go.PathSegment(go.PathSegment.Line,ne*.61,te*.75)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.5,te*.75)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.39,te*.75)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.36,te*(1-de))),se.add(new go.PathSegment(go.PathSegment.Line,ne*.07,te*(1-de))),se.add(new go.PathSegment(go.PathSegment.Line,ne*(1-.755),te*.055)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(1-.66),te*.055)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(1-.66),te*0)),se.add(new go.PathSegment(go.PathSegment.Line,ne*(1-.8),te*0)),se.add(new go.PathSegment(go.PathSegment.Line,ne*0,te*(1-de)).close());var pe=new go.PathFigure(ne*.5,te*0,!0);return ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,ne*.26,te*.25)),pe.add(new go.PathSegment(go.PathSegment.Line,ne*.4,te*.25)),pe.add(new go.PathSegment(go.PathSegment.Line,ne*.4,te*.63)),pe.add(new go.PathSegment(go.PathSegment.Line,ne*.6,te*.63)),pe.add(new go.PathSegment(go.PathSegment.Line,ne*.6,te*.25)),pe.add(new go.PathSegment(go.PathSegment.Line,ne*.74,te*.25).close()),ue}),go.Shape.defineFigureGenerator("EmptyDrink",function(Ee,ne,te){var ue=new go.Geometry,se=new go.PathFigure(ne*.15,te*0,!1);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne*.85,te*0)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.7,te*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.3,te*1).close()),ue}),go.Shape.defineFigureGenerator("Drink",function(Ee,ne,te){var ue=new go.Geometry,se=new go.PathFigure(ne*.15,te*0,!1);ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne*.85,te*0)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.7,te*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.3,te*1).close());var de=new go.PathFigure(ne*.235,te*.28,!0);return ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,ne*.765,te*.28)),de.add(new go.PathSegment(go.PathSegment.Line,ne*.655,te*.97)),de.add(new go.PathSegment(go.PathSegment.Line,ne*.345,te*.97).close()),ue}),go.Shape.defineFigureGenerator("4Arrows",function(Ee,ne,te){var ue=new go.Geometry,se=new go.PathFigure(ne*.5,te*0,!0);return ue.add(se),se.add(new go.PathSegment(go.PathSegment.Line,ne*.65,te*.25)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.55,te*.25)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.55,te*.45)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.75,te*.45)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.75,te*.35)),se.add(new go.PathSegment(go.PathSegment.Line,ne*1,te*.5)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.75,te*.65)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.75,te*.55)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.55,te*.55)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.55,te*.75)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.65,te*.75)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.5,te*1)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.35,te*.75)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.45,te*.75)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.45,te*.55)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.25,te*.55)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.25,te*.65)),se.add(new go.PathSegment(go.PathSegment.Line,ne*0,te*.5)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.25,te*.35)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.25,te*.45)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.45,te*.45)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.45,te*.25)),se.add(new go.PathSegment(go.PathSegment.Line,ne*.35,te*.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 gn={},en="5.0",we={},ve=null,_e=!1,lt=!1,it=null,rt=!1,ze=null,Ue=null,yt=0;yt<arguments.length;yt++){var tt=arguments[yt];if(tt!==null)switch(typeof tt){case"number":en=tt.toFixed(1);break;case"string":tt.match(new RegExp("^[0-9]\\.[0-9]+$"))?en=tt:it=tt;break;case"object":typeof tt.is3D!="undefined"?ve=tt:we=tt;break;case"boolean":_e=tt,lt=!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&&!lt&&(_e=!0)),it!==null&&we.id===void 0&&(we.id=it);var De="",xt="",Ve=!1,ct=null,Ee=null,ne=null,te=!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};gn.setHTML5Codebase=function(Mt,zt){Ue=Mt,Rt(Mt,zt)},gn.setJavaCodebase=gn.setJavaCodebaseVersion=gn.isCompiledInstalled=gn.setPreCompiledScriptPath=gn.setPreCompiledResourcePath=function(){},gn.setHTML5CodebaseVersion=function(Mt,zt){var on=parseFloat(Mt);if(on!==NaN&&on<5){console.log("The GeoGebra HTML5 codebase version "+on+" is deprecated. Using version latest instead.");return}ze=Mt,He(Mt,zt)},gn.getHTML5CodebaseVersion=function(){return Ee},gn.getParameters=function(){return we},gn.setFontsCSSURL=function(Mt){pe=Mt},gn.setGiacJSURL=function(Mt){},gn.setJNLPFile=function(Mt){De=Mt},gn.setJNLPBaseDir=function(Mt){},gn.inject=function(){function Mt(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var zt="auto",on=we.id,Dn,kt=!1,vt=0;vt<arguments.length;vt++){var hn=arguments[vt];typeof hn=="string"?(hn=hn.toLowerCase(),hn.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?zt=hn:on=arguments[vt]):typeof hn=="boolean"?kt=hn:hn instanceof HTMLElement&&(Dn=hn)}li();function li(){if(!rt){setTimeout(li,200);return}zt=nn(zt);var yi=Dn||document.getElementById(on);if(!yi){console.log("possibly bug on ajax loading? ");return}if(gn.removeExistingApplet(yi,!1),we.width===void 0&&yi.clientWidth&&(we.width=yi.clientWidth),we.height===void 0&&yi.clientHeight&&(we.height=yi.clientHeight),!(we.width&&we.height)&&zt==="html5"&&(delete we.width,delete we.height),ct=zt,zt==="screenshot")gt(yi,we);else{var We=!1;we.hasOwnProperty("playButton")&&we.playButton||we.hasOwnProperty("clickToLoad")&&we.clickToLoad?We=!0:we.hasOwnProperty("playButtonAutoDecide")&&we.playButtonAutoDecide&&(We=(!je()||Mt())&&Te()),We?(ct="screenshot",Lt(yi,we,kt,zt)):wt(yi,we,kt)}}};function je(){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}gn.getViews=function(){return ve},gn.isJavaInstalled=function(){return!1};var Ie=function(Mt){var zt=function(vt){var hn=JSON.parse(vt),li=function(Fe){return Fe.type=="G"||Fe.type=="E"},yi=hn.elements?hn.elements.filter(li)[0]:hn;if(!yi||!yi.url){on();return}we.fileName=yi.url,Oe(yi.settings||{}),ve.is3D=!0;var We="https://www.geogebra.org/images/";gn.setPreviewImage(ue||yi.previewUrl,We+"GeoGebra_loading.png",We+"applet_play.png"),Mt()},on=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",kt="/materials/"+we.material_id+"?scope=basic";Re("https://"+Dn+"/api/proxy.php?path="+encodeURIComponent(kt),zt,on)};function Oe(Mt){var zt=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(on){Mt[on]=!!Mt[on]}),zt.forEach(function(on){we[on]===void 0&&Mt[on]!==void 0&&(we[on]=Mt[on])}),we.showToolBarHelp===void 0&&(we.showToolBarHelp=we.showToolBar)}function Re(Mt,zt,on){var Dn=new XMLHttpRequest;Dn.open("GET",Mt),Dn.onload=function(){zt(Dn.responseText)},Dn.onerror=on,Dn.send()}gn.isHTML5Installed=function(){return!0},gn.getLoadedAppletType=function(){return ct},gn.setPreviewImage=function(Mt,zt,on){ue=Mt,se=zt,de=on},gn.removeExistingApplet=function(Mt,zt){var on;typeof Mt=="string"&&(Mt=document.getElementById(Mt)),ct=null;var Dn=null;for(on=0;on<Mt.childNodes.length;on++){var kt=Mt.childNodes[on],vt=kt.className;vt==="applet_screenshot"?zt?(kt.style.display="block",ct="screenshot"):kt.style.display="none":vt!=="applet_scaler prerender"&&(Mt.removeChild(kt),Dn=vt&&vt.indexOf("appletParameters")!=-1?kt.id:null,on--)}var hn=we.id!==void 0?we.id:Dn,li=window[hn];li&&typeof li.getBase64=="function"&&(li.remove(),window[hn]=null)},gn.refreshHitPoints=function(){if(Ce(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var Mt=gn.getAppletObject();return Mt&&typeof Mt.recalculateEnvironments=="function"?(Mt.recalculateEnvironments(),!0):!1},gn.startAnimation=function(){var Mt=gn.getAppletObject();return Mt&&typeof Mt.startAnimation=="function"?(Mt.startAnimation(),!0):!1},gn.stopAnimation=function(){var Mt=gn.getAppletObject();return Mt&&typeof Mt.stopAnimation=="function"?(Mt.stopAnimation(),!0):!1},gn.getAppletObject=function(){var Mt=we.id!==void 0?we.id:"ggbApplet";return window[Mt]},gn.resize=function(){};var nt=function(Mt,zt,on){var Dn=document.createElement("param");Dn.setAttribute("name",zt),Dn.setAttribute("value",on),Mt.appendChild(Dn)},ot=function(Mt){return Mt&&Mt!=="false"},wt=function(Mt,zt,on){Ce(Ee)<=4.2&&(on=!0);var Dn=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==Ee||ggbHTML5LoadedCodebaseIsWebSimple&&!te)&&(Dn=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var kt=document.createElement("div");kt.classList.add("appletParameters","notranslate");var vt=zt.width,hn=zt.height;if(zt.disableAutoScale=zt.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():zt.disableAutoScale,zt.width!==void 0)if(Ce(Ee)<=4.4)ot(zt.showToolBar)&&(zt.height-=7),ot(zt.showAlgebraInput)&&(zt.height-=37),zt.width<605&&ot(zt.showToolBar)&&(zt.width=605,vt=605);else{var li=100;(ot(zt.showToolBar)||ot(zt.showMenuBar))&&(zt.hasOwnProperty("customToolBar")&&(zt.customToolbar=zt.customToolBar),li=ot(zt.showMenuBar)?245:155),vt<li&&(zt.width=li,vt=li)}kt.style.border="none",kt.style.display="inline-block";for(var yi in zt)zt.hasOwnProperty(yi)&&yi!=="appletOnLoad"&&kt.setAttribute("data-param-"+yi,zt[yi]);pe&&kt.setAttribute("data-param-fontscssurl",pe),gn.resize=function(){GGBAppletUtils.responsiveResize(Mt,zt)},window.addEventListener("resize",function(Wt){gn.resize()});var We=typeof zt.appletOnLoad=="function"?zt.appletOnLoad:function(){};if(!on&&zt.width!==void 0){zt.hasOwnProperty("showSplash")||kt.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=Tt(vt,hn,zt.borderColor,!1);Fe=document.createElement("div"),Fe.className="applet_scaler",Fe.style.position="relative",Fe.style.display="block",Fe.style.width=vt+"px",Fe.style.height=hn+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Fe,"66%"),Ce(Ee)>=5?(zt.appletOnLoad=function(Wt){var Xt=Mt.querySelector(".ggb_preview");Xt&&Xt.parentNode.removeChild(Xt),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(Fe),window.GGBT_wsf_view&&$(window).trigger("resize"),We(Wt)},xe||Fe.appendChild(Ne)):kt.appendChild(Ne),Fe.appendChild(kt),xe||Mt.appendChild(Fe),setTimeout(function(){gn.resize()},1)}else{var Ye=document.createElement("div");Ye.className="applet_scaler",Ye.style.position="relative",Ye.style.display="block",Ye.appendChild(kt),Mt.appendChild(Ye),zt.appletOnLoad=function(Wt){gn.resize(),We(Wt)}}function ke(Wt,Xt){Xt&&typeof Xt.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(Wt,Xt.appletOnLoad):renderGGBElement(Wt),Zt("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Xt)}function et(Wt,Xt){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:Wt,params:Xt}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(pn){ke(pn.article,pn.params)}),html5AppletsToProcess=null)},Ce(Ee)<5&&(Wt.className+=" geogebraweb")):ke(Wt,Xt)}if(Dn){scriptLoadStarted=!0;for(var _t=0;_t<kt.childNodes.length;_t++){var Bt=kt.childNodes[_t].tagName;Bt==="TABLE"&&(kt.removeChild(kt.childNodes[_t]),_t--)}if(ggbHTML5LoadedScript!==null){var rn=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');rn!=null&&rn.parentNode.removeChild(rn)}var Ot=document.createElement("script"),bt=function(){et(kt,zt)};Ot.src=xt+ne,ggbHTML5LoadedCodebaseIsWebSimple=te,ggbHTML5LoadedCodebaseVersion=Ee,ggbHTML5LoadedScript=Ot.src,Zt("GeoGebra HTML5 codebase loaded: '"+xt+"'.",zt),!Ue&&(!ze||ze=="5.0")?(te?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),bt()):xt.requirejs?__webpack_require__.e(7963).then(function(){var Wt=[__webpack_require__(87963)];bt.apply(null,Wt)}.bind(this)).catch(__webpack_require__.oe):(Ot.onload=bt,Mt.appendChild(Ot))}else et(kt,zt);zt.height=hn,zt.width=vt},gt=function(Mt,zt,on){var Dn=Tt(zt.width,zt.height,zt.borderColor,on),kt=document.createElement("div");kt.style.position="relative",kt.style.display="block",kt.style.width=zt.width+"px",kt.style.height=zt.height+"px",kt.className="applet_screenshot applet_scaler"+(on?" applet_screenshot_play":""),kt.appendChild(Dn);var vt=GGBAppletUtils.getScale(zt,Mt,on);on?(Mt.appendChild(It()),window.GGBT_wsf_view||(Mt.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(kt,"66%"),Mt.appendChild(kt),vt!==1&&!isNaN(vt)&&(GGBAppletUtils.scaleElement(kt,vt),kt.style.width=zt.width+"px",kt.style.height=zt.height+"px",kt.parentNode.style.width=zt.width*vt+"px",kt.parentNode.style.height=zt.height*vt+"px"),gn.resize=function(){Dt(Mt,Dn,kt,on)},window.addEventListener("resize",function(hn){gn.resize()}),gn.resize()};function Dt(Mt,zt,on,Dn){if(Mt.contains(zt)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Mt.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(Mt)}var kt=GGBAppletUtils.getScale(we,Mt,Dn);on.parentNode!==null&&(!isNaN(kt)&&kt!==1?(GGBAppletUtils.scaleElement(on,kt),on.parentNode.style.width=we.width*kt+"px",on.parentNode.style.height=we.height*kt+"px"):(GGBAppletUtils.scaleElement(on,1),on.parentNode.style.width=we.width+"px",on.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()}}gn.onExitFullscreen=function(Mt,zt){zt.appendChild(Mt)};var Lt=function(Mt,zt,on,Dn){gt(Mt,zt,!0);for(var kt=function(){var li=[];for(hn=0;hn<Mt.childNodes.length;hn++)li.push(Mt.childNodes[hn]);if(window.GGBT_wsf_view){var yi=window.GGBT_wsf_view.renderFullScreen(Mt,zt.id),We=document.getElementById("fullscreencontainer"),Fe=jQuery(Mt).find(".fullscreencontent");Fe.length>0?(yi.remove(),Fe.attr("id","fullscreencontent").show(),jQuery(We).append(Fe),window.dispatchEvent(new Event("resize"))):wt(yi,zt,!1),window.GGBT_wsf_view.launchFullScreen(We)}else ct=Dn,wt(Mt,zt,!1);if(!window.GGBT_wsf_view)for(hn=0;hn<li.length;hn++)Mt.removeChild(li[hn])},vt=Mt.getElementsByClassName("ggb_preview_play"),hn=0;hn<vt.length;hn++)vt[hn].addEventListener("click",kt,!1),vt[hn].addEventListener("ontouchstart",kt,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(Mt),Te()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},It=function(){var Mt=document.createElement("div");if(Mt.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var zt='.icon-applet-play { width: 100%; height: 100%;box-sizing: border-box;position: absolute;z-index: 1001;cursor: pointer;border-width: 0px; background-color: transparent;background-repeat: no-repeat;left: 0;top: 0;background-position: center center; background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet.png");}.icon-applet-play:hover {background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet-hover.png");}',on=document.createElement("style");on.styleSheet?on.styleSheet.cssText=zt:on.appendChild(document.createTextNode(zt)),document.getElementsByTagName("head")[0].appendChild(on)}return Mt},Tt=function(Mt,zt,on,Dn){var kt=document.createElement("div");kt.className="ggb_preview",kt.style.position="absolute",kt.style.zIndex="90",kt.style.width=Mt-2+"px",kt.style.height=zt-2+"px",kt.style.top="0px",kt.style.left="0px",kt.style.overflow="hidden",kt.style.backgroundColor="white";var vt="lightgrey";on!==void 0&&(on==="none"?vt="transparent":vt=on),kt.style.border="1px solid "+vt;var hn=document.createElement("img");if(hn.style.position="relative",hn.style.zIndex="1000",hn.style.top="-1px",hn.style.left="-1px",ue!==null&&hn.setAttribute("src",ue),hn.style.opacity=.7,se!==null){var li,yi,We;if(!Dn){li=document.createElement("img"),li.style.position="absolute",li.style.zIndex="1001",li.style.opacity=1,hn.style.opacity=.3,yi=360,yi>Mt/4*3&&(yi=Mt/4*3),We=yi/5.8,li.setAttribute("src",se),li.setAttribute("width",yi),li.setAttribute("height",We);var Fe=(Mt-yi)/2,xe=(zt-We)/2;li.style.left=Fe+"px",li.style.top=xe+"px",kt.appendChild(li)}}return kt.appendChild(hn),kt},nn=function(Mt){return Mt=Mt.toLowerCase(),Mt==="html5"||Mt==="screenshot"?Mt:"html5"},at=["web","webSimple","web3d","tablet","tablet3d","phone"],He=function(Mt,zt){if(Ee=Mt,zt){Rt(Ee,!0);return}var on=!_e;if(on){var Dn=Ce(Ee);!isNaN(Dn)&&Dn<4.4&&(on=!1)}var kt,vt;window.location.protocol.substr(0,4)==="http"?kt=window.location.protocol:kt="http:";var hn=Ee.indexOf("//");hn>0?vt=Ee:hn===0?vt=kt+Ee:vt="https://www.geogebra.org/apps/5.2.814.0/";for(var li in at)if(Ee.slice(at[li].length*-1)===at[li]||Ee.slice((at[li].length+1)*-1)===at[li]+"/"){Rt(vt,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&on&&!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")?vt+="webSimple/":vt+="web3d/",Rt(vt,!1)},Rt=function(Mt,zt){if(Mt.requirejs){xt=Mt;return}Mt.slice(-1)!=="/"&&(Mt+="/"),xt=Mt,zt===null&&(zt=Mt.indexOf("http")===-1),Ve=zt,ne="web.nocache.js",te=!1;var on=xt.split("/");on.length>1&&(!zt&&on[on.length-2]==="webSimple"?(ne="webSimple.nocache.js",te=!0):at.indexOf(on[on.length-2])>=0&&(ne=on[on.length-2]+".nocache.js")),on=Mt.split("/"),Ee=on[on.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",zt))},Zt=function(Mt,zt){window.console&&window.console.log&&(!zt||typeof zt.showLogging=="undefined"||zt.showLogging&&zt.showLogging!=="false")&&console.log(Mt)};we.material_id!==void 0?Ie(Yt):Yt();function Yt(){var Mt=en;ze!==null?Mt=ze:parseFloat(Mt)<5&&(Mt="5.0"),He(Mt,!1),Ue!==null&&Rt(Ue,Ve),rt=!0}return gn},GGBAppletUtils=function(){"use strict";function gn(){return window.GGBT_wsf_edit!==void 0}function en(rt,ze){ze!=1?(rt.style.transformOrigin="0% 0% 0px",rt.style.webkitTransformOrigin="0% 0% 0px",rt.style.transform="scale("+ze+","+ze+")",rt.style.webkitTransform="scale("+ze+","+ze+")",rt.style.maxWidth="initial",rt.querySelector(".ggb_preview")!==null&&(rt.querySelector(".ggb_preview").style.maxWidth="initial"),rt.querySelectorAll(".ggb_preview img")[0]!==void 0&&(rt.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),rt.querySelectorAll(".ggb_preview img")[1]!==void 0&&(rt.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(rt.style.transform="none",rt.style.webkitTransform="none")}function we(rt,ze,Ue,yt,tt,De){var xt=null;if(De!=null&&De!="")for(var Ve=rt.parentNode;Ve!=null;)if((" "+Ve.className+" ").indexOf(" "+De+" ")>-1){xt=Ve;break}else Ve=Ve.parentNode;var ct=0,Ee=0,ne=0,te=0,ue=0,se=0,de=0;if(xt)ct=xt.offsetWidth,Ee=Math.max(yt?xt.offsetWidth:0,xt.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(ct=Math.min(window.innerWidth,document.documentElement.clientWidth),Ee=Math.min(window.innerHeight,document.documentElement.clientHeight),ne=ct):(ct=window.innerWidth,Ee=window.innerHeight,ne=window.innerWidth),rt){var pe=rt.getBoundingClientRect();pe.left>0&&pe.left<=ct&&(tt===void 0||!tt)&&(document.dir==="rtl"?(ue=ct-pe.width-pe.left,se=ne<=480?10:30):(se=pe.left,ue=ne<=480?10:30),te=se+ue)}if(rt&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var ye=rt.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(te=40,de=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(te=0,de=40)}}return rt&&((Ue===void 0||!Ue)&&ze>0&&ze+te<ct?ct=ze:ct-=te,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Ue===void 0||!Ue)&&(Ee-=de)),{width:ct,height:Ee}}function ve(rt,ze,Ue,yt,tt){if(rt.isScreenshoGenerator)return 1;var De=yt!==void 0&&yt,xt=rt.noScaleMargin!=null&&rt.noScaleMargin,Ve=function(ye){return ye&&ye!=="false"},ct=Ve(rt.autoHeight),Ee=we(ze,rt.width,Ue,ct,De&&window.GGBT_wsf_view||xt,tt),ne=parseInt(Ee.width),te=rt.width,ue=rt.height;if(te===void 0){var se=ze.querySelector(".appletParameters");se&&(te=se.offsetWidth,ue=se.offsetHeight)}var de=ne/te,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 _e(rt,ze,Ue){var yt=1,tt,De=!1;if(rt.hasOwnProperty("allowUpscale")&&(De=rt.allowUpscale),rt.hasOwnProperty("scale")&&(yt=parseFloat(rt.scale),(isNaN(yt)||yt===null||yt===0)&&(yt=1),yt>1&&(De=!0)),ze&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(De=!0),!(rt.hasOwnProperty("disableAutoScale")&&rt.disableAutoScale))tt=ve(rt,ze,De,Ue,rt.scaleContainerClass);else return yt;return De&&(!rt.hasOwnProperty("scale")||yt===1)?tt:Math.min(yt,tt)}function lt(rt){var ze=Math.min(window.innerWidth,document.documentElement.clientWidth),Ue=Math.min(window.innerHeight,document.documentElement.clientHeight),yt=rt.getBoundingClientRect(),tt=(ze-yt.width)/2,De=(Ue-yt.height)/2;De<0&&(De=0),rt.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(tt<40?rt.style.left="40px":rt.style.left=tt+"px",rt.style.top=De+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(De<40?rt.style.top="40px":rt.style.top=De+"px",rt.style.left=tt+"px")}function it(rt,ze){var Ue=rt.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(rt)}if(Ue.parentElement&&/fullscreen/.test(Ue.parentElement.className))return;var yt=_e(ze,rt);gn()&&Ue.setAttribute("data-param-scale",yt);for(var tt=null,De=0;De<rt.childNodes.length;De++)if(rt.childNodes[De].className!==void 0&&rt.childNodes[De].className.match(/^applet_scaler/)){tt=rt.childNodes[De];break}if(tt!==null&&tt.querySelector(".noscale")!==null)return;var xt=ze.id!==void 0?ze.id:"ggbApplet",Ve=window[xt];(Ve==null||!Ve.recalculateEnvironments)&&tt!==null&&!tt.className.match(/fullscreen/)&&(tt.parentNode.style.transform="",!isNaN(yt)&&yt!==1?(tt.parentNode.style.width=ze.width*yt+"px",tt.parentNode.style.height=ze.height*yt+"px",en(tt,yt)):(en(tt,1),tt.parentNode.style.width=ze.width+"px",tt.parentNode.style.height=ze.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&lt(rt),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(Ue).parents(".content-added-content"))}}return{responsiveResize:it,isFlexibleWorksheetEditor:gn,positionCenter:lt,getScale:_e,scaleElement:en}}();__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return GGBApplet}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),__WEBPACK_AMD_DEFINE_RESULT__!==void 0&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__),GGBAppletUtils.makeModule=function(name,permutation){function webModule(){var H="bootstrap",I="begin",J="gwt.codesvr."+name+"=",K="gwt.codesvr=",L=name,M="startup",N="DUMMY",O=0,P=1,Q="iframe",R="position:absolute; width:0; height:0; border:none; left: -1000px;",S=" top: -1000px;",T="Chrome",U="CSS1Compat",V="<!doctype html>",W="",X="<html><head></head><body></body></html>",Y="undefined",Z="readystatechange",$=10,_="script",ab="javascript",bb="Failed to load ",cb="moduleStartup",db="scriptTagAdded",eb="moduleRequested",fb="meta",gb="name",hb=name+"::",ib="::",jb="gwt:property",kb="content",lb="=",mb="gwt:onPropertyErrorFn",nb='Bad handler "',ob='" for "gwt:onPropertyErrorFn"',pb="gwt:onLoadErrorFn",qb='" for "gwt:onLoadErrorFn"',rb="#",sb="?",tb="/",ub="img",vb="clear.cache.gif",wb="baseUrl",xb=name+".nocache.js",yb="base",zb="//",Ab="selectingPermutation",Bb=name+".devmode.js",Cb=permutation,Db=":",Eb=".cache.js",Fb="loadExternalRefs",Gb="end",n=window,o=document;function p(){var gn=n.location.search;return gn.indexOf(J)!=-1||gn.indexOf(K)!=-1}function q(gn,en){}webModule.__sendStats=q,webModule.__moduleName=L,webModule.__errFn=null,webModule.__moduleBase=N,webModule.__softPermutationId=O,webModule.__computePropValue=null,webModule.__getPropMap=null,webModule.__installRunAsyncCode=function(){},webModule.__gwtStartLoadingFragment=function(){return null},webModule.__gwt_isKnownPropertyValue=function(){return!1},webModule.__gwt_getMetaProperty=function(){return null};var r=null,s=n.__gwt_activeModules=n.__gwt_activeModules||{};s[L]={moduleName:L},webModule.__moduleStartupDone=function(gn){var en=s[L].bindings;s[L].bindings=function(){for(var we=en?en():{},ve=gn[webModule.__softPermutationId],_e=O;_e<ve.length;_e++){var lt=ve[_e];we[lt[O]]=lt[P]}return we}};var t;function u(){return v(),t}function v(){if(!t){var gn=o.createElement(Q);if(gn.id=L,gn.style.cssText=R+S,gn.tabIndex=-1,o.body.appendChild(gn),t=gn.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var en=document.compatMode==U?V:W;t.write(en+X),t.close()}}}function w(gn){function en(ve){function _e(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var lt=_e();if(lt){ve();return}function it(){if(!lt){if(!_e())return;lt=!0,ve(),o.removeEventListener&&o.removeEventListener(Z,it,!1),rt&&clearInterval(rt)}}o.addEventListener&&o.addEventListener(Z,it,!1);var rt=setInterval(function(){it()},$)}function we(ve){var _e=u(),lt=_e.body,it=_e.createElement(_);it.language=ab,it.crossOrigin=W,it.src=ve,webModule.__errFn&&(it.onerror=function(){webModule.__errFn(L,new Error(bb+ve))}),lt.appendChild(it)}en(function(){we(gn)})}webModule.__startLoadingFragment=function(gn){return C(gn)},webModule.__installRunAsyncCode=function(gn){var en=u(),we=en.body,ve=en.createElement(_);ve.language=ab,ve.text=gn,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(gn){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(gn){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(gn){var en=c[gn];return en==null?null:en},r=d,webModule.__errFn=e}function B(){function gn(rt){var ze=rt.lastIndexOf(rb);ze==-1&&(ze=rt.length);var Ue=rt.indexOf(sb);Ue==-1&&(Ue=rt.length);var yt=rt.lastIndexOf(tb,Math.min(Ue,ze));return yt>=O?rt.substring(O,yt+P):W}function en(rt){if(!rt.match(/^\w+:\/\//)){var ze=o.createElement(ub);ze.src=rt+vb,rt=gn(ze.src)}return rt}function we(){var rt=__gwt_getMetaProperty(wb);return rt!=null?rt:W}function ve(){for(var rt=o.getElementsByTagName(_),ze=O;ze<rt.length;++ze)if(rt[ze].src.indexOf(xb)!=-1)return gn(rt[ze].src);return W}function _e(){var rt=o.getElementsByTagName(yb);return rt.length>O?rt[rt.length-P].href:W}function lt(){var rt=o.location;return rt.href==rt.protocol+zb+rt.host+rt.pathname+rt.search+rt.hash}var it=we();return it==W&&(it=ve()),it==W&&(it=_e()),it==W&&lt()&&(it=gn(o.location.href)),it=en(it),it}function C(gn){return gn.match(/^\//)||gn.match(/^[a-zA-Z]+:\/\//)?gn:webModule.__moduleBase+gn}function D(){var gn=[],en=O,we=[],ve=[];function _e(rt){var ze=ve[rt](),Ue=we[rt];if(ze in Ue)return ze;var yt=[];for(var tt in Ue)yt[Ue[tt]]=tt;throw r&&r(rt,yt,ze),null}if(__gwt_isKnownPropertyValue=function(rt,ze){return ze in we[rt]},webModule.__getPropMap=function(){var rt={};for(var ze in we)we.hasOwnProperty(ze)&&(rt[ze]=_e(ze));return rt},webModule.__computePropValue=_e,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var lt;try{lt=Cb;var it=lt.indexOf(Db);it!=-1&&(en=parseInt(lt.substring(it+P),$),lt=lt.substring(O,it))}catch(rt){}return webModule.__softPermutationId=en,C(lt+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(gn,en,we){"use strict";we.d(en,{Ax:function(){return it},Ds:function(){return rt},KI:function(){return Ue},SI:function(){return lt},f1:function(){return _e}});var ve=we(346);function _e(yt){let tt=!0;if(yt.length>0){for(let De=0;De<yt.length;De++)if(yt[De].compile_success==0||!yt[De].compile_success){tt=!1;break}}else tt=!1;return tt}function lt(yt,tt=""){let De=[];for(let xt=0;xt<yt.length;xt++){let Ve=yt[xt],ct=tt?`${tt}/${Ve.name}`:`${Ve.name}`;De.push({title:Ve.name,type:Ve.type,isLeaf:Ve.type!=="tree",key:ct})}return De}function it(yt,tt,De){for(let xt=0;xt<yt.length;xt++){let Ve=yt[xt];if(Ve.key===tt){Ve.children=De;break}Ve.children&&it(Ve.children,tt,De)}return yt}function rt(yt,tt,De){let xt;return function(){let Ve=this,ct=arguments,Ee=function(){xt=null,De||yt.apply(Ve,ct)},ne=De&&!xt;clearTimeout(xt),xt=setTimeout(Ee,tt),ne&&yt.apply(Ve,ct)}}const ze=!0,Ue=ve.Z.API_SERVER},54650:function(gn,en,we){"use strict";we.d(en,{Z:function(){return ct}});var ve=we(59301),_e=we(6767),lt=we(37568),it={codeBox:"codeBox___WpkVl"},rt=we(92310),ze=we.n(rt),Ue=Object.defineProperty,yt=(Ee,ne,te)=>ne in Ee?Ue(Ee,ne,{enumerable:!0,configurable:!0,writable:!0,value:te}):Ee[ne]=te,tt=(Ee,ne,te)=>yt(Ee,typeof ne!="symbol"?ne+"":ne,te),De=(Ee,ne,te)=>new Promise((ue,se)=>{var de=Ce=>{try{ye(te.next(Ce))}catch(je){se(je)}},pe=Ce=>{try{ye(te.throw(Ce))}catch(je){se(je)}},ye=Ce=>Ce.done?ue(Ce.value):Promise.resolve(Ce.value).then(de,pe);ye((te=te.apply(Ee,ne)).next())});class xt extends ve.Component{constructor(ne){super(ne),tt(this,"canvas"),tt(this,"randomNum",(te,ue)=>Math.floor(Math.random()*(ue-te)+te)),tt(this,"drawPic",()=>{this.randomCode()}),tt(this,"reloadPic",()=>{this.drawPic()}),tt(this,"changeCode",te=>{console.log(te.target.value,222),this.setState({value:te.target.value,showError:!1})}),tt(this,"onVerify",()=>{let te;return this.state.value.toLowerCase()!==""&&this.state.value.toLowerCase()!==this.state.code.toLowerCase()?(te=!0,_e.ZP.error("\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u9A8C\u8BC1\u7801"),this.reloadPic()):this.state.value.toLowerCase()===""?(te=!0,_e.ZP.error("\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801")):this.state.value.toLowerCase()===this.state.code.toLowerCase()&&(te=!1),this.setState({showError:te}),te}),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(ne,te){const ue=this.randomNum(ne,te),se=this.randomNum(ne,te),de=this.randomNum(ne,te);return`rgb(${ue}, ${se}, ${de})`}drawText(ne,te,ue){ne.fillStyle=this.randomColor(this.state.colorMin,this.state.colorMax);const se=this.randomNum(this.state.fontSizeMin,this.state.fontSizeMax);ne.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 je=this.randomNum(-10,10);ne.translate(ye,Ce),ne.rotate(je*Math.PI/180),ne.fillText(te,0,0),ne.rotate(-je*Math.PI/180),ne.translate(-ye,-Ce)}drawLine(ne){for(let te=0;te<1;te++)ne.strokeStyle=this.randomColor(this.state.lineColorMin,this.state.lineColorMax),ne.beginPath(),ne.moveTo(this.randomNum(0,this.state.contentWidth),this.randomNum(0,this.state.contentHeight)),ne.lineTo(this.randomNum(0,this.state.contentWidth),this.randomNum(0,this.state.contentHeight)),ne.stroke()}drawDot(ne){for(let te=0;te<100;te++)ne.fillStyle=this.randomColor(0,255),ne.beginPath(),ne.arc(this.randomNum(0,this.state.contentWidth),this.randomNum(0,this.state.contentHeight),1,0,2*Math.PI),ne.fill()}randomCode(){let ne="";const te="QWERTYUPLKJHGFDSAZXCVBNMqwertyupkjhgfdsazxcvbnm1234567890";for(let ue=0;ue<this.state.codeLength;ue++){const se=Math.floor(Math.random()*57);ne+=te[se]}this.setState({code:ne},()=>{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:ne,width:te=300}=this.props;return ve.createElement("div",{className:ze()(it.codeBox,ne),style:{width:te}},ve.createElement("aside",null,ve.createElement(lt.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,ne)=>{let te;Modal.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:React.createElement("div",null,React.createElement("p",null,ne),React.createElement(xt,{ref:ue=>te=ue})),onOk:()=>De(void 0,null,function*(){if(te.onVerify())return Promise.reject();Ee()})})};var ct=xt},94361:function(gn,en,we){"use strict";we.d(en,{Z:function(){return ze}});var ve=we(37639),_e={text:"text___FxbAX",wrap:"wrap___UlBQ1",contact:"contact____pUDq",img:"img___BapAv"},lt=we(32637),it=we(59301),ze=({type:Ue,style:yt})=>{const tt=it.createElement("div",{className:_e.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:_e.contact},it.createElement("div",{className:_e.img},it.createElement("img",{src:lt,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:tt},it.createElement("span",{className:_e.text,style:yt},"\u9AD8\u6D88\u8017"))}},9507:function(gn,en,we){"use strict";we.d(en,{Z:function(){return xt}});var ve=we(59301),_e={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},lt=we(92310),it=we.n(lt),rt=we(29787),ze=we(2859),Ue=we(38986),yt=we(51257),tt=(Ve,ct,Ee)=>new Promise((ne,te)=>{var ue=pe=>{try{de(Ee.next(pe))}catch(ye){te(ye)}},se=pe=>{try{de(Ee.throw(pe))}catch(ye){te(ye)}},de=pe=>pe.done?ne(pe.value):Promise.resolve(pe.value).then(ue,se);de((Ee=Ee.apply(Ve,ct)).next())}),xt=({data:Ve,className:ct,fullWidth:Ee,style:ne={},onClose:te,onOk:ue,showFullTools:se,noAssociationId:de})=>{const pe=(0,ve.useRef)(null),ye=(0,ve.useRef)(null),Ce=(0,ve.useRef)(null),je=(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&&nt()):(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 nt=()=>tt(void 0,null,function*(){Ie(!0),Re("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Dt=yield(0,yt.ZJ)(Ve==null?void 0:Ve.src);pe.current.src="",pe.current.src=Dt,pe.current.onload=function(){gt()},Ie(!1),Re("")}),ot=Dt=>tt(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:Dt.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(Dt.state)}})).status===0&&ue():Lt!=null&&Lt.id&&ue(Lt),Ie(!1),Re("")}),wt=()=>{const Dt=document.querySelector('a[href="https://markerjs.com/"]');Dt&&Dt.parentNode&&(Dt.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(It=>{const Tt=document.querySelector(It.name);Tt&&Tt.setAttribute("title",It.title)})},gt=()=>{ye.current=new ze.hP(pe.current),ye.current.targetRoot=je.current,ye.current.addEventListener("render",ot),ye.current.addEventListener("beforeclose",te),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),wt()},300)};return ve.createElement(ve.Fragment,null,(Ve==null?void 0:Ve.visible)&&ve.createElement(rt.Z,{spinning:Te,tip:Oe,style:{position:"absolute",width:"100vw"}},ve.createElement("div",{ref:je,className:it()(_e.imageDimensions,ct,Ee?_e.fullWidth:""),style:ne},ve.createElement("img",{className:_e.img,ref:pe}))))}},76562:function(gn,en,we){"use strict";var ve=we(59301),_e=we(77019),lt=we(5269),it=we(20554),rt=we(99571),ze=we(76902),Ue=we(99587),yt=we(48136),tt=we(59301);const De=(0,ve.forwardRef)(({callback:xt,showSaveButton:Ve,value:ct=""},Ee)=>{const ne=(0,ve.useRef)(),te=[{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=>{ne.current.setValue(ne.current.getValue()+" "+ye.value+" ")},de=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:tt.createElement(_e.Z,{className:Ue.Z.lists,gutter:[10,10]},te.map((ye,Ce)=>tt.createElement(lt.Z,{flex:"110px",className:Ue.Z.item},tt.createElement("div",null,tt.createElement(ze.Z,{value:`$$${ye.value}$$`}),ye.name),tt.createElement("div",{className:Ue.Z.children},ye.children.map((je,Te)=>tt.createElement("div",{key:Te},tt.createElement("h1",null,je.name),tt.createElement(_e.Z,{gutter:[10,10]},je.data.map((Ie,Oe)=>tt.createElement(lt.Z,{key:Oe,onClick:()=>se(Ie),className:Ue.Z.diamond},tt.createElement(ze.Z,{value:"`$$"+Ie.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:tt.createElement(_e.Z,{className:Ue.Z.lists,gutter:[10,10]},ue.map((ye,Ce)=>tt.createElement(lt.Z,{flex:"110px",className:Ue.Z.item},tt.createElement("div",null,tt.createElement(ze.Z,{value:"`$$"+ye.value+"$$`"}),ye.name),tt.createElement("div",{className:Ue.Z.children},ye.children.map((je,Te)=>tt.createElement("div",{key:Te},je.name&&tt.createElement("h1",null,je.name),tt.createElement(_e.Z,{gutter:[10,10]},je.data.map((Ie,Oe)=>tt.createElement(lt.Z,{key:Oe,onClick:()=>se(Ie),className:Ue.Z.diamond},tt.createElement(ze.Z,{value:"`$$"+Ie.value+"$$`"}))))))))))}],pe=()=>{var ye=document.createElement("div");ye.innerHTML=ne.current.getValue();var Ce=ye.innerText;return xt&&xt(Ce),Ce};return(0,ve.useImperativeHandle)(Ee,()=>({getData:pe})),tt.createElement("div",{className:Ue.Z.mathWrap},tt.createElement(it.default,{defaultActiveKey:"1",items:de}),tt.createElement("math-field",{locale:"zh_cn",className:Ue.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:ne,style:{width:800,marginTop:30,fontSize:18}},ct||""),Ve&&tt.createElement("div",{className:Ue.Z.button},tt.createElement(rt.ZP,{size:"large",onClick:pe,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});en.Z=De},28426:function(gn,en,we){"use strict";var ve=we(59301),_e=we(93314),lt=we(99571),it=Object.defineProperty,rt=Object.defineProperties,ze=Object.getOwnPropertyDescriptors,Ue=Object.getOwnPropertySymbols,yt=Object.prototype.hasOwnProperty,tt=Object.prototype.propertyIsEnumerable,De=(Ee,ne,te)=>ne in Ee?it(Ee,ne,{enumerable:!0,configurable:!0,writable:!0,value:te}):Ee[ne]=te,xt=(Ee,ne)=>{for(var te in ne||(ne={}))yt.call(ne,te)&&De(Ee,te,ne[te]);if(Ue)for(var te of Ue(ne))tt.call(ne,te)&&De(Ee,te,ne[te]);return Ee},Ve=(Ee,ne)=>rt(Ee,ze(ne));const ct=({img:Ee,buttonProps:ne={},styles:te={},customText:ue,ButtonText:se,ButtonClick:de,Buttonclass:pe,ButtonTwo:ye,imgStyles:Ce,loading:je=!1,className:Te=""})=>ve.createElement("section",{className:`tc animated fadeIn ${Te}`,style:xt({color:"#999",margin:"100px auto",visibility:je?"hidden":"visible"},te)},ve.createElement("img",{src:Ee||_e,style:Ve(xt({},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(lt.ZP,xt({className:pe,onClick:de},ne),se),ye&&ye);en.Z=ct},43155:function(gn,en,we){"use strict";we.d(en,{Q:function(){return ze}});var ve=we(59301),_e=we(82326),lt=we(47889),it=we(71051),rt=we(59301),ze=(yt=>(yt[yt.Number=1]="Number",yt[yt.Percent=2]="Percent",yt))(ze||{});const Ue=({value:yt,onChange:tt,disabled:De,hidePercentOption:xt=!1,percentType:Ve="select"})=>{const ct=(0,ve.useMemo)(()=>xt?1:2,[xt]),[Ee,ne]=(0,ve.useState)(ct);console.log(Ee);const te=se=>yt.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)(()=>{ne(yt.type)},[yt]),rt.createElement("div",{style:{display:"flex",alignItems:"center"}},Ve=="select"&&rt.createElement(_e.default,{size:"large",onChange:se=>{ne(se),tt({type:se,inputValue:se===1?5:20})},value:Ee||ct,style:{width:100},options:xt?[{label:"\u5206\u503C",value:1}]:[{label:"\u767E\u5206\u6BD4",value:2},{label:"\u5206\u503C",value:1}],disabled:De}),Ve=="radio"&&rt.createElement(lt.ZP.Group,{size:"large",onChange:se=>{const de=se.target.value;ne(de),tt({type:de,inputValue:de===1?5:20})},value:Ee||ct,disabled:De},!xt&&rt.createElement(lt.ZP,{value:2,style:{marginRight:"50px"}},"\u767E\u5206\u6BD4\u6263\u5206"),rt.createElement(lt.ZP,{value:1},"\u56FA\u5B9A\u5206\u503C")),Ve=="radio"&&rt.createElement("div",{style:{marginRight:"10px",color:"#000000"}},yt.type==2?"\u6263\u9664\u8865\u4EA4\u9636\u6BB5\u5F97\u5206\u7684":"\u6263\u9664\u603B\u6210\u7EE9\u7684"),rt.createElement(it.Z,{size:"large",disabled:De,value:yt.inputValue,style:{width:"120px"},parser:ue,addonAfter:yt.type===1?"\u5206":"%",max:Ee===2?100:Number.MAX_SAFE_INTEGER,min:0,precision:0,onChange:se=>{tt({type:Ee,inputValue:se})}}),Ve=="radio"&&yt.type==2&&rt.createElement("div",{style:{marginLeft:"10px",color:"#000000"}},"\u5206\u6570"))};en.Z=Ue},45677:function(gn,en,we){"use strict";we.d(en,{Z:function(){return pe}});var ve=we(59301),_e={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},lt=we(99571),it=we(70557),rt=we(75975),ze=we(25399),Ue=we(51257),yt=we(81722),tt=we(28426),De=we(346),xt=we(44203),Ve=we(59301),ct=Object.defineProperty,Ee=Object.getOwnPropertySymbols,ne=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable,ue=(ye,Ce,je)=>Ce in ye?ct(ye,Ce,{enumerable:!0,configurable:!0,writable:!0,value:je}):ye[Ce]=je,se=(ye,Ce)=>{for(var je in Ce||(Ce={}))ne.call(Ce,je)&&ue(ye,je,Ce[je]);if(Ee)for(var je of Ee(Ce))te.call(Ce,je)&&ue(ye,je,Ce[je]);return ye},de=(ye,Ce,je)=>new Promise((Te,Ie)=>{var Oe=ot=>{try{nt(je.next(ot))}catch(wt){Ie(wt)}},Re=ot=>{try{nt(je.throw(ot))}catch(wt){Ie(wt)}},nt=ot=>ot.done?Te(ot.value):Promise.resolve(ot.value).then(Oe,Re);nt((je=je.apply(ye,Ce)).next())}),pe=({editOffice:ye="view",data:Ce,issaver:je,onSaver:Te,theme:Ie,type:Oe,filename:Re,monacoEditor:nt,className:ot,style:wt,close:gt,onClose:Dt,hasMask:Lt,disabledDownload:It,onImgDimensions:Tt,showNodata:nn,recordInfo:at})=>{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,Yt]=(0,ve.useState)(""),[Mt,zt]=(0,ve.useState)(),on=window.ENV==="build"?"/react/build":"",Dn=location.host.startsWith("localhost")?De.Z.PROXY_SERVER:De.Z.API_SERVER,vt=10*(1024*1024),hn=(0,ve.useRef)();Ce!=null&&Ce.startsWith("/api")&&Oe!=="txt"&&(Ce=De.Z.API_SERVER+Ce);const li=Ne=>Ne.substring(Ne.lastIndexOf("/")+1).split(".").pop();Re&&nt&&(nt.filename=Re),(0,ve.useEffect)(()=>{var Ne,Ye;const ke=(Ye=(Ne=document.cookie)==null?void 0:Ne.replace(/\s/g,""))==null?void 0:Ye.split(";");ke==null||ke.map(et=>{let _t=et.split("=");_t[0]==="_educoder_session"&&Yt(_t[1])})},[]),(0,ve.useEffect)(()=>{Oe==="office"&&(Ce.indexOf("bigfilescdn.")>-1||Ce.indexOf("bigfiles1")>-1?zt({url:Ce,fileType:li(Ce),model:Ce.indexOf("model=edit")?"edit":"view"}):We())},[Oe,Ce]);function yi(Ne){return de(this,null,function*(){Ne.data.type==="pdfdata"&&(Te(Ne.data.data),window.removeEventListener("message",yi,!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 Ye=new URL(Ne).pathname.split("/").pop();const ke=yield(0,yt.gJ)({attachment_id:Ye});ke.url=Dn+ke.url,zt(ke)}),Fe=()=>{if(Ce.startsWith("http")||Ce.startsWith("blob:")){xe();return}(0,Ue.Sv)(Re||"educoder",Ce,Re)},xe=()=>{at&&(0,xt.fc)({id:at==null?void 0:at.id,watch_type:1,course_id:at==null?void 0:at.course_id}),(0,Ue.Nd)(Re||"educoder",decodeURIComponent(Ce))};return Ve.createElement("div",{style:se({},wt||{}),className:`${Lt&&_e.bgBlack} ${Oe?_e.wrp:"hide"}`},gt&&Ve.createElement("div",{className:_e.close,ref:hn},!!Tt&&Ve.createElement(ze.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>hn.current},Ve.createElement("span",{onClick:()=>{Dt(),Tt()}},Ve.createElement("i",{className:"icon-yulanpizhu"}))),!It&&Ve.createElement(ze.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>hn.current},Ve.createElement("span",{onClick:xe},Ve.createElement("i",{className:"icon-quxiaozhiding"}))),je&&Ve.createElement(ze.Z,{title:"\u4FDD\u5B58pdf\u5E76\u9000\u51FA",getPopupContainer:()=>hn.current},Ve.createElement("span",{className:"",onClick:()=>{const Ne=document.getElementById("pdfiframe");window.addEventListener("message",yi,!1),setTimeout(()=>{Ne.contentWindow.postMessage("getData","*")},300)}},Ve.createElement("i",{className:"icon-baocun"}))),Ve.createElement(ze.Z,{title:"\u5173\u95ED",getPopupContainer:()=>hn.current},Ve.createElement("span",{className:"",onClick:()=>{Dt()}},Ve.createElement("i",{className:"icon-guanbi1"})))),Ve.createElement("div",{className:`${_e[ot]} ${ot} ${_e.monaco} ${Oe==="txt"?"show":"hide"}`},Oe==="txt"&&Ve.createElement(Ve.Fragment,null,Ve.createElement(rt.ZP,se({},nt)))),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:`${on}/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=${!!It}`}),Oe==="html"&&Ve.createElement("iframe",{src:Ce+"&disposition=inline"}),Oe==="pdf"&&Ve.createElement("iframe",{id:"pdfiframe",src:`${on}/js/pdfview/index.html?filename=${Re||"educoder.pdf"}&url=${encodeURIComponent(Ce)}&disabledDownload=${!!It}&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,nn?Ve.createElement(tt.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:Ve.createElement(lt.ZP,{icon:Ve.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:Fe,disabled:It},"\u4E0B\u8F7D")}):Ve.createElement(lt.ZP,{type:"primary",size:"middle",onClick:Fe,disabled:It},Ve.createElement(it.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")))}},76902:function(gn,en,we){"use strict";we.d(en,{z:function(){return Ie},Z:function(){return Oe}});var ve=we(59301),_e=we(8944),lt=we(81428),it=we(64018),rt=we(15360),ze=we(346),Ue=we(51257),yt=we(15342),tt=we(1012),De=we(45677),xt=we(59301),ct=({html:Re})=>{const nt=(0,ve.useRef)(null),ot=(0,ve.useRef)(null),wt=`.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=nt.current.attachShadow({mode:"open"});ot.current=document.createElement("div"),ot.current.className="markdown-body",ot.current.innerHTML=Re,gt.appendChild(ot.current);const Dt=document.createElement("style");return Dt.textContent=wt,gt.appendChild(Dt),()=>{gt.innerHTML=""}},[]),(0,ve.useEffect)(()=>{ot.current&&(ot.current.innerHTML=Re)},[Re]),xt.createElement("div",{ref:nt})};function Ee(Re){const nt=["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(${nt.join("|")})\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s>]*)`,"gi");return Re.replace(ot,"").trim()}var ne=Object.defineProperty,te=Object.getOwnPropertySymbols,ue=Object.prototype.hasOwnProperty,se=Object.prototype.propertyIsEnumerable,de=(Re,nt,ot)=>nt in Re?ne(Re,nt,{enumerable:!0,configurable:!0,writable:!0,value:ot}):Re[nt]=ot,pe=(Re,nt)=>{for(var ot in nt||(nt={}))ue.call(nt,ot)&&de(Re,ot,nt[ot]);if(te)for(var ot of te(nt))se.call(nt,ot)&&de(Re,ot,nt[ot]);return Re};const ye="@\u2581\u2581@",Ce="@\u2581@",je=/<pre[^>]*>/g;function Te(Re){let nt=document.createElement("div");return nt.innerHTML=Re,nt.childNodes.length===0?"":nt.childNodes[0].nodeValue}const Ie=(Re,nt)=>{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,wt=/\"(?: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,Dt=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return nt?Re.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(ot,(Lt,It,Tt,nn,at,He,Rt)=>{const Zt=It||nn||He,Yt=Tt||at||Rt||"?";return ze.Z.API_SERVER+"/api/attachments/"+Zt+Yt+"&t="+(0,Ue.Jn)(Zt,Date.now())+(Lt.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(Re=Re.replace(Dt,(Lt,It,Tt,nn,at,He,Rt)=>{const Zt=It||nn||He,Yt=Tt||at||Rt||"?";return ze.Z.API_SERVER+"/attachments/download/"+Zt+Yt+"&t="+(0,Ue.Jn)(Zt,Date.now())+(Lt.indexOf(")")>-1?")":"&")}).replace(ot,(Lt,It,Tt,nn,at,He,Rt)=>{const Zt=It||nn||He,Yt=Tt||at||Rt||"?";return ze.Z.API_SERVER+"/api/attachments/"+Zt+Yt+"&t="+(0,Ue.Jn)(Zt,Date.now())+(Lt.indexOf(")")>-1?")":"&")}).replace(wt,(Lt,It,Tt,nn,at)=>{const He=It||nn,Rt=Tt||at||"";return'"'+ze.Z.API_SERVER+"/api/attachments/"+He+Rt+He+Rt+"&t="+(0,Ue.Jn)(He,Date.now())}).replace(gt,(Lt,It,Tt,nn,at)=>{const He=It||nn,Rt=Tt||at||"";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:nt,showTextOnly:ot,showLines:wt,style:gt={},stylesPrev:Dt={},highlightKeywords:Lt,showProgramFill:It,isProgramFill:Tt,disabledFill:nn=!1,programFillValue:at,onFillChange:He=Yt=>{},onFillBlur:Rt=()=>{},onFillFocus:Zt=()=>{}})=>{let Yt=Ee(String(Re||""));const[Mt,zt]=(0,ve.useState)(""),[on,Dn]=(0,ve.useState)("office"),[kt,vt]=(0,ve.useState)([]),hn=(0,ve.useRef)("a"+(0,tt.Z)()),li={},yi=bt=>/<style[\s\S]*?>/i.test(bt||""),We=(bt,Wt,Xt)=>{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=Wt;const $n=Object.keys(li).length;return li[$n]=pn,`<span class="edu-program-fill-wrap ${bt===Ce?"":"show"}" style="width:${bt===Ce?"400px":"100%"}" title=${Xt||""}><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&&yi(Yt)?bt:bt.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(Wt,Xt){let pn=Xt.replace(/(\n|\r)/g,"").split("}"),$n=[];return pn.map(Cn=>{Cn!=""&&$n.push(`.${hn.current} ${Cn}`)}),`<style>${$n.join("}")}</style>`}),Ne=(0,ve.useMemo)(()=>{try{const pn=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,$n=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Cn=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,Ln=/\(\/attachments\/download\//g;Yt=Yt.replace(Ln,"("+ze.Z.API_SERVER+"/attachments/download/").replace(pn,"("+ze.Z.API_SERVER+"/api/attachments/").replace($n,'"'+ze.Z.API_SERVER+"/api/attachments/").replace(Cn,'"'+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(It){let pn=-1;return Yt=Yt.replaceAll("<","&lt;").replaceAll(">","&gt;").replace(/(@▁▁@|@▁@)/g,function($n,Cn,Ln){var Ci;return++pn,We($n,pn,(Ci=at==null?void 0:at[pn])==null?void 0:Ci.value.replaceAll("<","&lt;").replaceAll(">","&gt;"))}),`<pre style="background:#fff;padding:4px">${xe(Yt||"")}</pre>`}let bt=xe(Yt);bt=(0,lt.ZP)(bt);const Wt=(0,lt.ez)();Yt.match(/\[TOC\]/)&&(bt=bt.replace("<p>[TOC]</p>",(0,lt.Qv)()),(0,lt.Iy)()),bt=bt.replace(/(__special_katext_id_\d+__)/g,(pn,$n)=>{const{type:Cn,expression:Ln}=Wt[$n];return(0,yt.renderToString)(Te(Ln)||"",{displayMode:Cn==="block",throwOnError:!1,output:"html"})}),bt=bt.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,lt.AL)();const Xt=document.createElement("div");if(Xt.innerHTML=bt,ot)return Xt.innerText;if(Lt){const pn=Lt.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return _t(Xt,pn),Xt.innerHTML}return setTimeout(()=>Ot(),500),Xt.innerHTML},[Yt,Lt]);(0,ve.useEffect)(()=>{Bt.current&&Bt.current.querySelectorAll(["input","textarea"]).forEach(Wt=>{Wt.oninput=Ye,Wt.onblur=ke,Wt.onfocus=et})},[kt]),(0,ve.useEffect)(()=>{var bt,Wt,Xt,pn,$n;if(at!=null&&at.length)try{const Cn=Bt.current.querySelectorAll(".edu-program-fill-score"),Ln=Bt.current.querySelectorAll('[name="edu-program-fill"]');for(const[Ci,Jn]of Ln.entries())Jn.value=((bt=at==null?void 0:at[Ci])==null?void 0:bt.value)||"",((Wt=at==null?void 0:at[Ci])==null?void 0:Wt.type)==="warning"?Jn.className="program-fill-warning":((Xt=at==null?void 0:at[Ci])==null?void 0:Xt.type)==="success"?Jn.className="program-fill-success":Jn.className="";for(const[Ci,Jn]of Cn.entries())Jn.innerHTML=(pn=at==null?void 0:at[Ci])!=null&&pn.score?`${($n=at==null?void 0:at[Ci])==null?void 0:$n.score}\u5206`:"";vt(at)}catch(Cn){console.log(Cn,"error")}},[at]);const Ye=bt=>{kt[bt.target.dataset.id]=kt[bt.target.dataset.id]||{},kt[bt.target.dataset.id].value=bt.target.value,vt([...kt]),He(kt,bt.target.dataset.id)},ke=bt=>{kt[bt.target.dataset.id]=kt[bt.target.dataset.id]||{},kt[bt.target.dataset.id].value=bt.target.value,vt([...kt]),Rt(kt,bt.target.dataset.id)},et=bt=>{kt[bt.target.dataset.id]=kt[bt.target.dataset.id]||{},kt[bt.target.dataset.id].value=bt.target.value,vt([...kt]),Zt(kt,bt.target.dataset.id)};function _t(bt,Wt){return bt.childNodes.forEach(Xt=>{var pn;if(Xt.childNodes.length>0)_t(Xt,Wt);else if(Xt.nodeName!=="IMG")if(Xt.innerHTML)Xt.innerHTML=(pn=Xt.innerHTML)==null?void 0:pn.replace(new RegExp(Wt,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const $n=document.createElement("span");$n.innerHTML=Xt.textContent.replace(new RegExp(Wt,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),Xt.replaceWith($n)}})}const Bt=(0,ve.useRef)();lt.jb.WebkitLineClamp=wt,wt&&(gt=pe(pe({},gt),lt.jb));function rn(bt){let Wt=bt.target;if(Wt.tagName.toUpperCase()==="A"){let Xt=Wt.getAttribute("href");if(Xt.indexOf("office")>-1)bt.preventDefault(),zt(Xt),Dn("office");else if(Xt.indexOf("application/pdf")>-1)bt.preventDefault(),zt(Xt),Dn("pdf");else if(Xt.indexOf("text/html")>-1)bt.preventDefault(),zt(Xt),Dn("html");else if(Xt.startsWith("#")){bt.preventDefault();let pn=document.getElementById(Xt.replace("#",""));pn&&pn.scrollIntoView(!0)}}}const Ot=()=>{var bt;const Wt=(bt=Bt.current)==null?void 0:bt.querySelectorAll("video");Wt==null||Wt.forEach(Xt=>{if(Xt.oncontextmenu=()=>!1,Xt.src.indexOf(".m3u8")>-1&&!Xt.canPlayType("application/vnd.apple.mpegurl")){if(rt.ZP.isSupported()){var pn=new rt.ZP;pn.loadSource(Xt.src),pn.attachMedia(Xt)}}})};return(0,ve.useEffect)(()=>{if(Bt.current&&Ne&&Ne.match(je)&&window.PR.prettyPrint(),Bt.current)return Bt.current.addEventListener("click",rn),()=>{var bt;(bt=Bt.current)==null||bt.removeEventListener("click",rn),(0,lt.AL)(),(0,lt.Iy)()}},[Ne,Bt.current,rn]),(0,ve.useEffect)(()=>{var bt;const Wt=Xt=>{Xt.preventDefault(),Xt.clipboardData.setData("text",window.getSelection().toString())};return(bt=Bt.current)==null||bt.addEventListener("copy",Wt),()=>{var Xt;(Xt=Bt.current)==null||Xt.removeEventListener("copy",Wt)}},[Bt.current]),ve.createElement(ve.Fragment,null,ot&&ve.createElement("div",{ref:Bt},Ne),!ot&&!yi(Ne)&&ve.createElement("div",{ref:Bt,style:pe({},gt),className:`${nt||""} ${nn?"disabled-fill":""} markdown-body ${hn.current}`,dangerouslySetInnerHTML:{__html:Ne}}),!ot&&yi(Ne)&&ve.createElement(ct,{html:Ne}),ve.createElement(De.Z,{close:!0,data:Mt,type:Mt!=null&&Mt.length?on:"",style:pe({},Dt),onClose:()=>zt("")}))}},59639:function(gn,en,we){"use strict";we.d(en,{Z:function(){return Te}});var ve=we(59301),_e=we(9221),lt=Object.defineProperty,it=Object.getOwnPropertySymbols,rt=Object.prototype.hasOwnProperty,ze=Object.prototype.propertyIsEnumerable,Ue=(Ie,Oe,Re)=>Oe in Ie?lt(Ie,Oe,{enumerable:!0,configurable:!0,writable:!0,value:Re}):Ie[Oe]=Re,yt=(Ie,Oe)=>{for(var Re in Oe||(Oe={}))rt.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},tt=(Ie,Oe)=>{var Re={};for(var nt in Ie)rt.call(Ie,nt)&&Oe.indexOf(nt)<0&&(Re[nt]=Ie[nt]);if(Ie!=null&&it)for(var nt of it(Ie))Oe.indexOf(nt)<0&&ze.call(Ie,nt)&&(Re[nt]=Ie[nt]);return Re};const xt={header:{cell:Ie=>{var Oe=Ie,{onResize:Re,width:nt}=Oe,ot=tt(Oe,["onResize","width"]);return nt?ve.createElement(_e.Resizable,{width:nt,height:0,handle:ve.createElement("span",{className:"react-resizable-handle",onClick:wt=>{wt.stopPropagation()}}),onResize:Re,draggableOpts:{enableUserSelectHack:!1}},ve.createElement("th",yt({},ot))):ve.createElement("th",yt({},ot))}}};var Ve=we(54172),ct=Object.defineProperty,Ee=Object.defineProperties,ne=Object.getOwnPropertyDescriptors,te=Object.getOwnPropertySymbols,ue=Object.prototype.hasOwnProperty,se=Object.prototype.propertyIsEnumerable,de=(Ie,Oe,Re)=>Oe in Ie?ct(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(te)for(var Re of te(Oe))se.call(Oe,Re)&&de(Ie,Re,Oe[Re]);return Ie},ye=(Ie,Oe)=>Ee(Ie,ne(Oe)),Ce=(Ie,Oe)=>{var Re={};for(var nt in Ie)ue.call(Ie,nt)&&Oe.indexOf(nt)<0&&(Re[nt]=Ie[nt]);if(Ie!=null&&te)for(var nt of te(Ie))Oe.indexOf(nt)<0&&se.call(Ie,nt)&&(Re[nt]=Ie[nt]);return Re},Te=Ie=>{var Oe=Ie,{pagination:Re,resColumns:nt,dataSource:ot,onRow:wt}=Oe,gt=Ce(Oe,["pagination","resColumns","dataSource","onRow"]);const[Dt,Lt]=(0,ve.useState)(!1),[It,Tt]=(0,ve.useState)([{}]),nn=(0,ve.useRef)(null);(0,ve.useEffect)(()=>{let He=nt;He=He.map((Rt,Zt)=>ye(pe({},Rt),{onHeaderCell:Yt=>({width:Yt.width,onResize:at(Zt)})})),Tt(He)},[]),(0,ve.useEffect)(()=>{nn.current=It},[It]);const at=He=>(Rt,{size:Zt})=>{const Yt=[...nn.current];Yt[He]=ye(pe({},Yt[He]),{width:Zt.width}),Tt(Yt)};return ve.createElement("div",null,ve.createElement(Ve.default,ye(pe({bordered:!0,components:xt,columns:It,dataSource:ot,pagination:Re,loading:Dt,onRow:wt},gt),{rowKey:He=>He.key||He.id})))}},87444:function(gn,en,we){"use strict";we.d(en,{Z:function(){return Oe},P:function(){return je}});var ve=we(59301),_e=we(28284),lt=we(62957),it=we(47889),rt=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"},yt=we(75736),tt=Object.defineProperty,De=Object.defineProperties,xt=Object.getOwnPropertyDescriptors,Ve=Object.getOwnPropertySymbols,ct=Object.prototype.hasOwnProperty,Ee=Object.prototype.propertyIsEnumerable,ne=(Re,nt,ot)=>nt in Re?tt(Re,nt,{enumerable:!0,configurable:!0,writable:!0,value:ot}):Re[nt]=ot,te=(Re,nt)=>{for(var ot in nt||(nt={}))ct.call(nt,ot)&&ne(Re,ot,nt[ot]);if(Ve)for(var ot of Ve(nt))Ee.call(nt,ot)&&ne(Re,ot,nt[ot]);return Re},ue=(Re,nt)=>De(Re,xt(nt)),se=(Re,nt)=>{var ot={};for(var wt in Re)ct.call(Re,wt)&&nt.indexOf(wt)<0&&(ot[wt]=Re[wt]);if(Re!=null&&Ve)for(var wt of Ve(Re))nt.indexOf(wt)<0&&Ee.call(Re,wt)&&(ot[wt]=Re[wt]);return ot},de=(Re,nt,ot)=>new Promise((wt,gt)=>{var Dt=Tt=>{try{It(ot.next(Tt))}catch(nn){gt(nn)}},Lt=Tt=>{try{It(ot.throw(Tt))}catch(nn){gt(nn)}},It=Tt=>Tt.done?wt(Tt.value):Promise.resolve(Tt.value).then(Dt,Lt);It((ot=ot.apply(Re,nt)).next())});const pe=({studentNames:Re,total:nt})=>{const ot=["","\u4E00","\u4E24","\u4E09"];return nt>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},nt),"\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[nt],"\u540D\u5B66\u751F")},ye=({used:Re,copy:nt,canNotCopy:ot,studentNames:wt,studentCount:gt,inPaper:Dt,is_random:Lt=!1,position:It=""})=>{const Tt=()=>{if(nt>0&&ot>0)return ve.createElement(ve.Fragment,null,"\u5176\u4E2D",ve.createElement("span",{className:Ue.orangeColor},nt),"\u4E2A\u9879\u76EE\u652F\u6301\u590D\u5236\uFF0C",ve.createElement("span",{className:Ue.orangeColor},ot),"\u4E2A\u9879\u76EE\u4E0D\u652F\u6301\u590D\u5236");if(nt>0&&ot===0)return ve.createElement(ve.Fragment,null,"\u5176\u4E2D",ve.createElement("span",{className:Ue.orangeColor},nt),"\u4E2A\u9879\u76EE\u652F\u6301\u590D\u5236");if(nt===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")},nn=It||(Dt?"\u8BD5\u5377":"\u8BFE\u7A0B");return ve.createElement("span",null,ve.createElement(pe,{studentNames:wt,total:gt}),"\u5B66\u4E60\u8FC7",nn,"\u4E2D\u7684",ve.createElement("span",{className:Ue.orangeColor},Re),"\u4E2A\u9879\u76EE\uFF0C",Tt(),"\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:nt,visible:ot,inPaper:wt,renderData:gt,type:Dt,isMultipleCourse:Lt=!1})=>{const[It]=_e.default.useForm(),[Tt,nn]=(0,ve.useState)(1),[at,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 Yt;return(Yt=gt==null?void 0:gt.course_data_list)==null?void 0:Yt.filter(Mt=>Mt.is_show)},[gt]);return ve.createElement(ve.Fragment,null,Rt?ve.createElement(lt.default,{centered:!0,closable:!0,open:ot,destroyOnClose:!0,title:"\u63D0\u793A",className:Ue.antdModal,width:682,confirmLoading:at,onCancel:Re,onOk:()=>de(void 0,null,function*(){var Yt;He(!0);let Mt=Tt;if(Lt){const zt=te({},It.getFieldsValue());Mt=(Yt=gt==null?void 0:gt.course_data_list)==null?void 0:Yt.map(on=>zt[on.id]!==void 0?ue(te({},on),{is_copy:zt[on.id]}):on)}yield nt(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(_e.default,{form:It,preserve:!1},Zt==null?void 0:Zt.map(Yt=>ve.createElement(ve.Fragment,{key:Yt.id},ve.createElement("h3",{className:"ml15 mb5"},Yt.name),ve.createElement(_e.default.Item,{name:Yt.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:Tt,onChange:Yt=>nn(Yt.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(lt.default,{centered:!0,closable:!0,destroyOnClose:!0,open:ot,confirmLoading:at,title:"\u63D0\u793A",width:682,onCancel:Re,onOk:()=>de(void 0,null,function*(){var Yt;He(!0);let Mt=0;if(Lt){const zt=te({},It.getFieldsValue());Mt=(Yt=gt==null?void 0:gt.course_data_list)==null?void 0:Yt.map(on=>zt[on.id]!==void 0?ue(te({},on),{is_use:zt[on.id]}):on)}yield nt(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(_e.default,{form:It,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(Yt=>ve.createElement(ve.Fragment,{key:Yt.id},ve.createElement("h3",{className:"ml15 mb5"},Yt.name),ve.createElement(_e.default.Item,{name:Yt.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"))))},je=function(){const[Re,nt]=(0,ve.useState)(!1),[ot,wt]=(0,ve.useState)();return[Re,()=>nt(!1),ot,Lt=>de(this,null,function*(){var It;const Tt=Lt,{isImportMultipleCourse:nn=!1}=Tt,at=se(Tt,["isImportMultipleCourse"]);console.log(Lt);const He=(Lt==null?void 0:Lt.result)||(yield(0,yt.Tr)(at));return"status"in He?!1:nn?((It=He==null?void 0:He.course_data_list)==null?void 0:It.some(Zt=>Zt.is_show))?(wt(He),nt(!0),!0):He.course_data_list||[]:He.student_count===0?!1:(wt(He),nt(!0),!0)})]},Te=Re=>{const[nt]=_e.default.useForm(),[ot,wt]=(0,ve.useState)(!1),{onCancel:gt,onOk:Dt,visible:Lt,inPaper:It=!1,renderData:Tt,type:nn,isMultipleCourse:at=!1,position:He}=Re;let Rt=(0,ve.useMemo)(()=>It?[{title:"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0",dataIndex:"name",width:424,align:"center",ellipsis:!0,className:Ue.tableCell,render(Mt,zt){return ve.createElement("a",{href:`/shixuns/${zt.identifier}/challenges`,target:"_blank"},Mt)}},{title:"\u662F\u5426\u590D\u5236",dataIndex:"is_copy",align:"center",render:(Mt,zt)=>ve.createElement(ve.Fragment,null,ve.createElement(_e.default.Item,{name:[`${nn==="subject"?zt.stage_shixun_id:zt.shixun_course_id||zt.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(_e.default.Item,{name:[`${nn==="subject"?zt==null?void 0:zt.stage_shixun_id:zt.shixun_course_id||zt.id}`,"is_use"],hidden:!0,initialValue:1},ve.createElement(rt.default,{type:"hidden"})))}]:[{title:"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0",dataIndex:"name",width:424,align:"center",ellipsis:!0,className:Ue.tableCell,render(Mt,zt){return ve.createElement("a",{href:`/shixuns/${zt.identifier}/challenges`,target:"_blank"},Mt)}},{title:"\u662F\u5426\u4F7F\u7528",dataIndex:"is_use",align:"center",render:(Mt,zt)=>ve.createElement(_e.default.Item,{name:[`${nn==="subject"?zt.stage_shixun_id:zt.shixun_course_id||zt.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,zt)=>ve.createElement(_e.default.Item,{name:[`${nn==="subject"?zt.stage_shixun_id:zt.shixun_course_id||zt.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")))}],[It]),Zt=(0,ve.useMemo)(()=>It?[{title:"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0",dataIndex:"name",width:424,className:Ue.tableCell,align:"center",ellipsis:!0,render:(Mt,zt)=>ve.createElement(ve.Fragment,null,ve.createElement("a",{href:`/shixuns/${zt.identifier}/challenges`,target:"_blank"},Mt),ve.createElement(_e.default.Item,{name:[`${nn==="subject"?zt==null?void 0:zt.stage_shixun_id:zt.shixun_course_id||zt.id}`,"is_copy"],hidden:!0,initialValue:0},ve.createElement(rt.default,{type:"hidden"})),ve.createElement(_e.default.Item,{name:[`${nn==="subject"?zt==null?void 0:zt.stage_shixun_id:zt.shixun_course_id||zt.id}`,"is_use"],hidden:!0,initialValue:1},ve.createElement(rt.default,{type:"hidden"})))}]:[{title:"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0",dataIndex:"name",width:424,className:Ue.tableCell,ellipsis:!0,align:"center",render:(Mt,zt)=>ve.createElement("a",{href:`/shixuns/${zt.identifier}/challenges`,target:"_blank"},Mt)},{title:"\u662F\u5426\u4F7F\u7528",dataIndex:"is_use",align:"center",render:(Mt,zt)=>ve.createElement(ve.Fragment,null,ve.createElement(_e.default.Item,{name:[`${nn==="subject"?zt==null?void 0:zt.stage_shixun_id:zt.shixun_course_id||zt.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(_e.default.Item,{name:[`${nn==="subject"?zt==null?void 0:zt.stage_shixun_id:zt.shixun_course_id||zt.id}`,"is_copy"],hidden:!0,initialValue:0},ve.createElement(rt.default,{type:"hidden"})))}],[It]);if(at){const Mt={title:"\u8BFE\u5802\u540D\u79F0",ellipsis:!0,dataIndex:"course_name",width:190,align:"center",className:Ue.tableCell,render:(zt,on)=>ve.createElement("a",{href:`/classrooms/${on.course_id}`},zt)};Rt=[Mt,...Rt],Zt=[Mt,...Zt]}const Yt=(0,ve.useMemo)(()=>ye({used:Tt==null?void 0:Tt.repeat_shixun_num,copy:Tt==null?void 0:Tt.can_copy_num,canNotCopy:Tt==null?void 0:Tt.no_copy_num,studentNames:Tt==null?void 0:Tt.student_names,studentCount:Tt==null?void 0:Tt.student_count,is_random:Tt==null?void 0:Tt.is_random,inPaper:It,position:He}),[Tt,It,He]);return ve.createElement(lt.default,{title:"\u63D0\u793A",centered:!0,open:Lt,confirmLoading:ot,onOk:()=>de(void 0,null,function*(){wt(!0);const Mt=nt.getFieldsValue(),zt=Object.keys(Mt).map(on=>({id:parseInt(on.split("_")[0]),course_id:parseInt(on.split("_")[1]),is_use:Mt[on].is_use,is_copy:Mt[on].is_copy}));yield Dt(zt),wt(!1)}),onCancel:gt,width:880,okText:"\u786E\u8BA4",className:Ue.antdModal,destroyOnClose:!0},ve.createElement(_e.default,{form:nt,preserve:!1},ve.createElement("div",{className:Ue.brief},Yt),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")),(Tt==null?void 0:Tt.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:Tt==null?void 0:Tt.can_copy_list,rowKey:nn==="subject"?"stage_shixun_id":"id",pagination:!1,scroll:{y:240},bordered:!0})),(Tt==null?void 0:Tt.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:Tt==null?void 0:Tt.no_copy_list,rowKey:nn==="subject"?"stage_shixun_id":"id",pagination:!1,scroll:{y:200},bordered:!0})),(Tt==null?void 0:Tt.no_use_list.length)>0&&(Tt==null?void 0:Tt.no_use_list.map(Mt=>ve.createElement("div",{key:nn==="subject"?Mt.stage_shixun_id:Mt.shixun_course_id||Mt.id},ve.createElement(_e.default.Item,{name:[`${nn==="subject"?Mt==null?void 0:Mt.stage_shixun_id:Mt.shixun_course_id||Mt.id}`,"is_copy"],hidden:!0,initialValue:0},ve.createElement(rt.default,{type:"hidden"})),ve.createElement(_e.default.Item,{name:[`${nn==="subject"?Mt==null?void 0:Mt.stage_shixun_id:Mt.shixun_course_id||Mt.id}`,"is_use"],hidden:!0,initialValue:1},ve.createElement(rt.default,{type:"hidden"})))))))};var Oe=Re=>{const{modalType:nt}=Re;return nt==="multiple"?ve.createElement(Te,te({},Re)):ve.createElement(Ce,te({},Re))}},3039:function(gn,en,we){"use strict";we.d(en,{Z:function(){return yt}});var ve=we(59301),_e={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"},lt=we(62957),it="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAPCAYAAADUFP50AAAAAXNSR0IArs4c6QAAAUFJREFUOE+V0ktKw1AUxvH/rVqIxT4wkgwEUSmK4APRBfiYCKU7cOZEBOkadAMZiwhuwJETBQciFRTtwJkPBLW2BRGrRanU9kpN2sSYiGaWc/PjuznnCN2Qh8AkPo+AzXxKLLiPhW7ICtDqB4GzQkqM/huGFZgZcDCBBDaaicsTMKbZH2xfwdY5/ICAEGSasC0AwRYblj+gKkENwfy4WS9V4LHsgsk49EZteJKHdBa6w7AybdZzr3D64ILxGKjtNrx9gfsSRBSYtf6xZh1/u+qQClrIhtdFuHmGvhisJcz65RPsZl2Jc/3QE7FhpgDHuT80x2+O9cR1K/GiCDt3rkQ/+Ns43gDFD0YVmHIuQGOOmiGTARhxwkGd1cZ7Vwd0OppWr3911StpcV++Iwn67q/kyBMuHchErcqwFxT1XZXsfQJqo2zI6kdI4QAAAABJRU5ErkJggg==",rt="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=(tt,De,xt)=>new Promise((Ve,ct)=>{var Ee=ue=>{try{te(xt.next(ue))}catch(se){ct(se)}},ne=ue=>{try{te(xt.throw(ue))}catch(se){ct(se)}},te=ue=>ue.done?Ve(ue.value):Promise.resolve(ue.value).then(Ee,ne);te((xt=xt.apply(tt,De)).next())}),yt=({type:tt,resdata:De,onok:xt,oktext:Ve,okloading:ct})=>{const[Ee,ne]=(0,ve.useState)(!1),{can_copy_list:te,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:je,repeat_shixun_num:Te,student_count:Ie,total_num:Oe,use_num:Re}=De;let nt=ue>0||tt==="exercise";(0,ve.useEffect)(()=>{(De==null?void 0:De.student_count)>0&&ne(!0)},[De]),console.log("---11",ct),(0,ve.useEffect)(()=>{ct||ne(!1)},[ct]);const ot=()=>{if(tt==="exercise"&&se===1)return ve.createElement(ve.Fragment,null,"\u8BFE\u5802\u5185\u6709",ve.createElement("span",{className:_e.orangeColor},Ie),"\u540D\u5B66\u751F\u5DF2\u5728\u5176\u4ED6\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",ve.createElement("span",{className:_e.orangeColor},Re),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",ve.createElement("span",{className:_e.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(tt==="exercise"&&se===2)return ve.createElement(ve.Fragment,null,"\u8BFE\u5802\u5185\u6709",ve.createElement("span",{className:_e.orangeColor},Ie),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",ve.createElement("span",{className:_e.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:_e.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(tt==="shixun"&&se===1)return ve.createElement(ve.Fragment,null,"\u8BFE\u5802\u5185\u6709",ve.createElement("span",{className:_e.orangeColor},Ie),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u8BE5\u5B9E\u8DF5\u9879\u76EE\uFF0C",ve.createElement("span",{className:_e.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(tt==="shixun"&&se===2)return ve.createElement(ve.Fragment,null,"\u8BFE\u5802\u5185\u6709",ve.createElement("span",{className:_e.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:_e.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(tt==="subject"&&se===1)return ve.createElement(ve.Fragment,null,"\u8BFE\u5802\u5185\u6709",ve.createElement("span",{className:_e.orangeColor},Ie),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",ve.createElement("span",{className:_e.orangeColor},Re),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",ve.createElement("span",{className:_e.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(tt==="subject"&&se===2)return ve.createElement(ve.Fragment,null,"\u8BFE\u5802\u5185\u6709 ",ve.createElement("span",{className:_e.orangeColor},Ie)," \u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u6311\u6218\u8FC7\u5176\u4E2D\u7684 ",ve.createElement("span",{className:_e.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:_e.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(tt==="exercisepush")return ve.createElement(ve.Fragment,null,"\u8BFE\u5802\u5185\u6709",ve.createElement("span",{className:_e.orangeColor},Ie),"\u540D\u5B66\u751F\u5DF2\u5728\u5176\u4ED6\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u8BD5\u5377\u4E2D\u7684",ve.createElement("span",{className:_e.orangeColor},Re),"\u4E2A\u5B9E\u8DF5\u9879\u76EE \uFF0C",ve.createElement("span",{className:_e.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(tt==="shixunpush"&&se===1)return ve.createElement(ve.Fragment,null,"\u8BFE\u5802\u5185\u6709",ve.createElement("span",{className:_e.orangeColor},Ie),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",ve.createElement("span",{className:_e.orangeColor},Re),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",ve.createElement("span",{className:_e.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(tt==="shixunpush"&&se===2)return ve.createElement(ve.Fragment,null,"\u8BFE\u5802\u5185\u6709",ve.createElement("span",{className:_e.orangeColor},Ie),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7",ve.createElement("span",{className:_e.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:_e.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"))},wt=()=>{if(tt==="exercise"||tt==="subject"||tt==="exercisepush"||tt==="shixunpush")return ve.createElement("div",{style:{marginTop:20}},ye>0&&ve.createElement("div",null,ve.createElement("span",{className:_e.flex},ve.createElement("img",{src:rt,style:{width:14}}),ve.createElement("span",{className:_e.statustitle},"\u4E0D\u652F\u6301\u590D\u5236\u7684\u5B9E\u8DF5\u9879\u76EE")),ve.createElement("div",{className:_e.statusbody},tt==="exercise"&&ve.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",ve.createElement("span",{className:_e.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"),(tt==="subject"||tt==="exercisepush")&&ve.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",nt&&ve.createElement("span",{className:_e.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"),tt==="shixunpush"&&ve.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",nt&&ve.createElement("span",{className:_e.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,Dt)=>ve.createElement("a",{href:`/shixuns/${gt.identifier}/challenges`,target:"_blank"},"\u300A",gt==null?void 0:gt.name,"\u300B",Dt+1!==ye&&"\u3001"))))),ue>0&&ve.createElement("div",{style:{marginTop:20}},ve.createElement("span",{className:_e.flex},ve.createElement("img",{src:it,style:{width:14}}),ve.createElement("span",{className:_e.statustitle},"\u652F\u6301\u590D\u5236\u7684\u5B9E\u8DF5\u9879\u76EE")),ve.createElement("div",{className:_e.statusbody},tt==="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"),(tt==="subject"||tt==="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"),tt==="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,te==null?void 0:te.map((gt,Dt)=>ve.createElement("a",{href:`/shixuns/${gt.identifier}/challenges`,target:"_blank"},"\u300A",gt==null?void 0:gt.name,"\u300B",Dt+1!==ue&&"\u3001"))))));if(tt==="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(lt.default,{open:Ee,onCancel:()=>{ne(!1)},cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",width:700,centered:!0,cancelButtonProps:{style:{display:!nt&&"none"}},zIndex:1003,confirmLoading:ct,okText:nt?Ve:"\u6211\u77E5\u9053\u4E86",onOk:()=>ze(void 0,null,function*(){nt?yield xt([...te,...Ce]):ne(!1)})},ve.createElement("div",{style:{maxHeight:600,overflow:"auto"}},ot(),wt()))}},97991:function(gn,en,we){"use strict";var ve=we(59301),_e=we(25690),lt=we(62957),it=we(54650),rt=we(59301),ze=(yt,tt,De)=>new Promise((xt,Ve)=>{var ct=te=>{try{ne(De.next(te))}catch(ue){Ve(ue)}},Ee=te=>{try{ne(De.throw(te))}catch(ue){Ve(ue)}},ne=te=>te.done?xt(te.value):Promise.resolve(te.value).then(ct,Ee);ne((De=De.apply(yt,tt)).next())});const Ue=({classroomList:yt,dispatch:tt})=>{var De,xt;const Ve=(0,ve.useRef)(null),[ct,Ee]=(0,ve.useState)(!1),ne=()=>{tt({type:"classroomList/setActionTabs",payload:{}})};return rt.createElement(lt.default,{centered:!0,maskClosable:!1,width:560,title:"\u540C\u6B65\u786E\u8BA4",open:((De=yt==null?void 0:yt.actionTabs)==null?void 0:De.key)==="\u5B9E\u8BAD\u540C\u6B65\u786E\u8BA4",destroyOnClose:!0,onCancel:ne,onOk:()=>ze(void 0,null,function*(){var te,ue;(te=Ve.current)!=null&&te.onVerify()||(Ee(!0),yield(ue=yt==null?void 0:yt.actionTabs)==null?void 0:ue.onOK(),Ee(!1))}),okText:"\u786E\u8BA4\u540C\u6B65",comfirmLoading:(xt=yt==null?void 0:yt.actionTabs)==null?void 0:xt.loading},rt.createElement("p",null,"\u672C\u64CD\u4F5C\u4F1A\u5C06\u5F53\u524D\u5B9E\u8BAD\u5168\u90E8\u5185\u5BB9\u540C\u6B65\u81F3\u9009\u62E9\u5B9E\u8BAD\u4E2D\uFF0C\u8BF7\u4ED4\u7EC6\u786E\u8BA4\u9700\u540C\u6B65\u7684\u5B9E\u8BAD\u5185\u5BB9\uFF0C\u786E\u8BA4\u65E0\u8BEF\uFF0C\u8BF7\u5728\u4E0B\u65B9\u6587\u672C\u6846\u8F93\u5165\u9A8C\u8BC1\u7801\u540E\uFF0C\u8FDB\u884C\u5B9E\u8BAD\u540C\u6B65\u3002"),rt.createElement("p",{style:{color:"#DD0000"}},"*\u6CE8\u610F\uFF1A\u5B9E\u8BAD\u540C\u6B65\u540E\u5C06\u65E0\u6CD5\u6062\u590D\u81F3\u539F\u6709\u7248\u672C\uFF0C\u8BF7\u8C28\u614E\u64CD\u4F5C\u3002"),rt.createElement(it.Z,{ref:te=>Ve.current=te}))};en.Z=(0,_e.connect)(({classroomList:yt})=>({classroomList:yt}))(Ue)},69221:function(gn,en,we){"use strict";we.d(en,{Z:function(){return rt}});var ve=we(59301),_e={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"},lt=we(25399),rt=({children:ze,tips:Ue,title:yt,style:tt})=>{const De=yt||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(lt.Z,{overlayStyle:{maxWidth:"initial"},title:De},ve.createElement("span",{className:_e.disabled,style:tt},ze)):ze&&!Ue?ve.createElement(ve.Fragment,null,ze):ve.createElement(ve.Fragment,null)}},69720:function(gn,en,we){"use strict";we.d(en,{h:function(){return ye}});var ve=we(59301),_e=we(82326),lt=we(28284),it=we(99571),rt=we(89780),ze=we.n(rt),Ue=we(8336),yt=we(12469),tt=Object.defineProperty,De=Object.defineProperties,xt=Object.getOwnPropertyDescriptors,Ve=Object.getOwnPropertySymbols,ct=Object.prototype.hasOwnProperty,Ee=Object.prototype.propertyIsEnumerable,ne=(Ce,je,Te)=>je in Ce?tt(Ce,je,{enumerable:!0,configurable:!0,writable:!0,value:Te}):Ce[je]=Te,te=(Ce,je)=>{for(var Te in je||(je={}))ct.call(je,Te)&&ne(Ce,Te,je[Te]);if(Ve)for(var Te of Ve(je))Ee.call(je,Te)&&ne(Ce,Te,je[Te]);return Ce},ue=(Ce,je)=>De(Ce,xt(je));const se=_e.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"]};en.Z=({callback:Ce,onCancel:je})=>{const[Te,Ie]=(0,ve.useState)("python");function Oe(nt){Ie(pe[nt][1])}function Re(nt){Ce(nt)}return ve.createElement(lt.default,ue(te({},de),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:Re,style:{width:500}}),ve.createElement(lt.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},ve.createElement(_e.default,{getPopupContainer:nt=>nt.parentNode,onChange:Oe},Object.keys(pe).map(nt=>ve.createElement(se,{key:nt,value:nt},pe[nt][0])))),ve.createElement(lt.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:je},"\u53D6\u6D88")))};function ye({value:Ce,onChange:je,mode:Te,options:Ie={}}){const Oe=(0,ve.useRef)(),[Re,nt]=(0,ve.useState)();return(0,ve.useEffect)(()=>{if(Re){let ot=function(wt){const gt=wt.getValue();je&&je(gt)};return Re.on("change",ot),()=>{Re.off("change",ot)}}},[Re,je]),(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,te({mode:Te,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},Ie));nt(ot)}},[Oe.current,Re]),ve.createElement("div",{className:"my-codemirror-container"},ve.createElement("textarea",{ref:Oe}))}},39793:function(gn,en,we){"use strict";we.d(en,{Z:function(){return pr}});var ve=we(59301),_e=we(89780),lt=we.n(_e),it=we(76374),rt=we(8336),ze=we(6313),Ue=we(25717),yt=we(99498),tt=we(25419),De=we(67549),xt=we(76902),Ve=({value:un="",className:an,showTextOnly:jt,showLines:mn,style:Zi={}})=>{const ji=(0,ve.useMemo)(()=>"",[un]);return ve.createElement(ve.Fragment,null,ve.createElement("div",{dangerouslySetInnerHTML:{__html:ji}}))},ct=Object.defineProperty,Ee=Object.defineProperties,ne=Object.getOwnPropertyDescriptors,te=Object.getOwnPropertySymbols,ue=Object.prototype.hasOwnProperty,se=Object.prototype.propertyIsEnumerable,de=(un,an,jt)=>an in un?ct(un,an,{enumerable:!0,configurable:!0,writable:!0,value:jt}):un[an]=jt,pe=(un,an)=>{for(var jt in an||(an={}))ue.call(an,jt)&&de(un,jt,an[jt]);if(te)for(var jt of te(an))se.call(an,jt)&&de(un,jt,an[jt]);return un},ye=(un,an)=>Ee(un,ne(an));let Ce=[{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\u516C\u5F0F",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"md-iconfont icon-formula",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 je({onActionCallback:un,title:an,icon:jt,actionName:mn,className:Zi="",children:ji}){function lr(){un(mn)}return ve.createElement("a",{title:an,className:Zi,onClick:lr},ve.createElement("i",{className:`${jt}`}),ji)}var Te=({watch:un,showNullButton:an,showNullProgramButton:jt,onActionCallback:mn,fullScreen:Zi,insertTemp:ji,hidetoolBar:lr,extraUse:Zn})=>{const Ti=[...Ce,{title:`${un?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${un?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return ve.createElement("ul",{className:"markdown-toolbar-container"},!lr&&Ti.map((fr,Vr)=>ve.createElement("li",{key:Vr},fr.actionName?ve.createElement(je,ye(pe({},fr),{onActionCallback:mn})):ve.createElement("span",{className:"v-line"}))),an?ve.createElement("li",null,ve.createElement(je,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:mn},ve.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,jt?ve.createElement(ve.Fragment,null,ve.createElement("li",null,ve.createElement(je,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:mn},ve.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u5355\u884C\u586B\u7A7A\u9879"))),ve.createElement("li",null,ve.createElement(je,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:mn},ve.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u591A\u884C\u586B\u7A7A\u9879")))):null,ji&&ve.createElement("li",null,ve.createElement(je,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${ji}`,onActionCallback:mn},ve.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Zn&&ve.createElement("li",null,Zn),ve.createElement("li",{className:"btn-full-screen"},ve.createElement(je,{icon:`${Zi?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:Zi?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:mn})))},Ie=we(91558),Oe=we(28284),Re=we(37568),nt=we(99571),ot=Object.defineProperty,wt=Object.defineProperties,gt=Object.getOwnPropertyDescriptors,Dt=Object.getOwnPropertySymbols,Lt=Object.prototype.hasOwnProperty,It=Object.prototype.propertyIsEnumerable,Tt=(un,an,jt)=>an in un?ot(un,an,{enumerable:!0,configurable:!0,writable:!0,value:jt}):un[an]=jt,nn=(un,an)=>{for(var jt in an||(an={}))Lt.call(an,jt)&&Tt(un,jt,an[jt]);if(Dt)for(var jt of Dt(an))It.call(an,jt)&&Tt(un,jt,an[jt]);return un},at=(un,an)=>wt(un,gt(an));const He={labelCol:{span:4},wrapperCol:{span:20}};var Rt=({callback:un,onCancel:an})=>{function jt(mn){un(mn)}return ve.createElement(Oe.default,at(nn({},He),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:jt,style:{width:500}}),ve.createElement(Oe.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},ve.createElement(Re.default,null)),ve.createElement(Oe.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},ve.createElement(Re.default,null)),ve.createElement("div",{className:"flex-container flex-end"},ve.createElement(nt.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ve.createElement(nt.ZP,{type:"ghost",onClick:an},"\u53D6\u6D88")))},Zt=we(69720),Yt=we(17077),Mt=we(62957),zt=we(77019),on=we(9507),Dn=we(59301),kt=({callback:un,onCancel:an})=>{const jt=document.createElement("canvas"),mn=jt.getContext("2d");jt.width=1e3,jt.height=800,mn.fillStyle="#ffffff",mn.fillRect(0,0,jt.width,jt.height);const Zi=jt.toDataURL("image/png");return Dn.createElement(Mt.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Dn.createElement(zt.Z,{style:{height:"100vh"}},Dn.createElement(on.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Zi,visible:!0,title:String(Date.now())},onOk:ji=>{un({src:ji.url})},onClose:an})))},vt=we(12378);function hn(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(hn,go.CommandHandler),hn.prototype.canAlignSelection=function(){var un=this.diagram;return!(un===null||un.isReadOnly||un.isModelReadOnly||un.selection.count<2)},hn.prototype.alignLeft=function(){var un=this.diagram;un.startTransaction("aligning left");var an=1/0;un.selection.each(function(jt){jt instanceof go.Link||(an=Math.min(jt.position.x,an))}),un.selection.each(function(jt){jt instanceof go.Link||jt.move(new go.Point(an,jt.position.y))}),un.commitTransaction("aligning left")},hn.prototype.alignRight=function(){var un=this.diagram;un.startTransaction("aligning right");var an=-1/0;un.selection.each(function(jt){if(!(jt instanceof go.Link)){var mn=jt.actualBounds.x+jt.actualBounds.width;an=Math.max(mn,an)}}),un.selection.each(function(jt){jt instanceof go.Link||jt.move(new go.Point(an-jt.actualBounds.width,jt.position.y))}),un.commitTransaction("aligning right")},hn.prototype.alignTop=function(){var un=this.diagram;un.startTransaction("alignTop");var an=1/0;un.selection.each(function(jt){jt instanceof go.Link||(an=Math.min(jt.position.y,an))}),un.selection.each(function(jt){jt instanceof go.Link||jt.move(new go.Point(jt.position.x,an))}),un.commitTransaction("alignTop")},hn.prototype.alignBottom=function(){var un=this.diagram;un.startTransaction("aligning bottom");var an=-1/0;un.selection.each(function(jt){if(!(jt instanceof go.Link)){var mn=jt.actualBounds.y+jt.actualBounds.height;an=Math.max(mn,an)}}),un.selection.each(function(jt){jt instanceof go.Link||jt.move(new go.Point(jt.actualBounds.x,an-jt.actualBounds.height))}),un.commitTransaction("aligning bottom")},hn.prototype.alignCenterX=function(){var un=this.diagram,an=un.selection.first();if(an){un.startTransaction("aligning Center X");var jt=an.actualBounds.x+an.actualBounds.width/2;un.selection.each(function(mn){mn instanceof go.Link||mn.move(new go.Point(jt-mn.actualBounds.width/2,mn.actualBounds.y))}),un.commitTransaction("aligning Center X")}},hn.prototype.alignCenterY=function(){var un=this.diagram,an=un.selection.first();if(an){un.startTransaction("aligning Center Y");var jt=an.actualBounds.y+an.actualBounds.height/2;un.selection.each(function(mn){mn instanceof go.Link||mn.move(new go.Point(mn.actualBounds.x,jt-mn.actualBounds.height/2))}),un.commitTransaction("aligning Center Y")}},hn.prototype.alignColumn=function(un){var an=this.diagram;an.startTransaction("align Column"),un===void 0&&(un=0),un=parseFloat(un);var jt=new Array;an.selection.each(function(Zn){Zn instanceof go.Link||jt.push(Zn)});for(var mn=0;mn<jt.length-1;mn++){var Zi=jt[mn],ji=Zi.actualBounds.y+Zi.actualBounds.height+un,lr=jt[mn+1];lr.move(new go.Point(Zi.actualBounds.x,ji))}an.commitTransaction("align Column")},hn.prototype.alignRow=function(un){un===void 0&&(un=0),un=parseFloat(un);var an=this.diagram;an.startTransaction("align Row");var jt=new Array;an.selection.each(function(Zn){Zn instanceof go.Link||jt.push(Zn)});for(var mn=0;mn<jt.length-1;mn++){var Zi=jt[mn],ji=Zi.actualBounds.x+Zi.actualBounds.width+un,lr=jt[mn+1];lr.move(new go.Point(ji,Zi.actualBounds.y))}an.commitTransaction("align Row")},hn.prototype.canRotate=function(un){var an=this.diagram;return!(an===null||an.isReadOnly||an.isModelReadOnly||an.selection.count<1)},hn.prototype.rotate=function(un){un===void 0&&(un=90);var an=this.diagram;an.startTransaction("rotate "+un.toString());var an=this.diagram;an.selection.each(function(jt){jt instanceof go.Link||jt instanceof go.Group||(jt.angle+=un)}),an.commitTransaction("rotate "+un.toString())},hn.prototype.pullToFront=function(){var un=this.diagram;un.startTransaction("pullToFront");var an=new go.Map;un.selection.each(function(jt){an.set(jt.layer,0)}),an.iteratorKeys.each(function(jt){var mn=0;jt.parts.each(function(Zi){if(!Zi.isSelected){var ji=Zi.zOrder;isNaN(ji)?Zi.zOrder=0:mn=Math.max(mn,ji)}}),an.set(jt,mn)}),un.selection.each(function(jt){hn._assignZOrder(jt,an.get(jt.layer)+1)}),un.commitTransaction("pullToFront")},hn.prototype.pushToBack=function(){var un=this.diagram;un.startTransaction("pushToBack");var an=new go.Map;un.selection.each(function(jt){an.set(jt.layer,0)}),an.iteratorKeys.each(function(jt){var mn=0;jt.parts.each(function(Zi){if(!Zi.isSelected){var ji=Zi.zOrder;isNaN(ji)?Zi.zOrder=0:mn=Math.min(mn,ji)}}),an.set(jt,mn)}),un.selection.each(function(jt){hn._assignZOrder(jt,an.get(jt.layer)-1-hn._findGroupDepth(jt))}),un.commitTransaction("pushToBack")},hn._assignZOrder=function(un,an,jt){jt===void 0&&(jt=un),un.layer===jt.layer&&(un.zOrder=an),un instanceof go.Group&&un.memberParts.each(function(mn){hn._assignZOrder(mn,an+1,jt)})},hn._findGroupDepth=function(un){if(un instanceof go.Group){var an=0;return un.memberParts.each(function(jt){an=Math.max(an,hn._findGroupDepth(jt))}),an+1}else return 0},hn.prototype.doKeyDown=function(){var un=this.diagram;if(un!==null){var an=un.lastInput;if(an.key==="Up"||an.key==="Down"||an.key==="Left"||an.key==="Right"){var jt=this.arrowKeyBehavior;if(jt==="none")return;if(jt==="select"){this._arrowKeySelect();return}else if(jt==="move"){this._arrowKeyMove();return}else if(jt==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},hn.prototype._getAllParts=function(){var un=new Array;return this.diagram.nodes.each(function(an){un.push(an)}),this.diagram.parts.each(function(an){un.push(an)}),un},hn.prototype._arrowKeyMove=function(){var un=this.diagram,an=un.lastInput,jt=0,mn=0;if(an.control||an.meta)jt=1,mn=1;else if(un.grid!==null){var Zi=un.grid.gridCellSize;mn=Zi.width,jt=Zi.height}un.startTransaction("arrowKeyMove"),un.selection.each(function(ji){an.key==="Up"?ji.move(new go.Point(ji.actualBounds.x,ji.actualBounds.y-jt)):an.key==="Down"?ji.move(new go.Point(ji.actualBounds.x,ji.actualBounds.y+jt)):an.key==="Left"?ji.move(new go.Point(ji.actualBounds.x-mn,ji.actualBounds.y)):an.key==="Right"&&ji.move(new go.Point(ji.actualBounds.x+mn,ji.actualBounds.y))}),un.commitTransaction("arrowKeyMove")},hn.prototype._arrowKeySelect=function(){var un=this.diagram,an=un.lastInput,jt=null;an.key==="Up"?jt=this._findNearestPartTowards(270):an.key==="Down"?jt=this._findNearestPartTowards(90):an.key==="Left"?jt=this._findNearestPartTowards(180):an.key==="Right"&&(jt=this._findNearestPartTowards(0)),jt!==null&&(an.shift?jt.isSelected=!0:an.control||an.meta?jt.isSelected=!jt.isSelected:un.select(jt))},hn.prototype._findNearestPartTowards=function(un){var an=this.diagram.selection.first();if(an===null)return null;for(var jt=an.actualBounds.center,mn=this._getAllParts(),Zi=1/0,ji=an,lr=0;lr<mn.length;lr++){var Zn=mn[lr];if(Zn!==an&&Zn.canSelect()){var Ti=Zn.actualBounds.center,fr=jt.directionPoint(Ti),Vr=this._angleCloseness(fr,un);if(Vr<=45){var ci=jt.distanceSquaredPoint(Ti);ci*=1+Math.sin(Vr*Math.PI/180),ci<Zi&&(Zi=ci,ji=Zn)}}}return ji},hn.prototype._angleCloseness=function(un,an){return Math.min(Math.abs(an-un),Math.min(Math.abs(an+360-un),Math.abs(an-360-un)))},hn.prototype._arrowKeyTree=function(){var un=this.diagram,an=un.selection.first();if(an instanceof go.Node){var jt=un.lastInput;if(jt.key==="Right"){if(!an.isTreeLeaf)if(!an.isTreeExpanded)un.commandHandler.canExpandTree(an)&&un.commandHandler.expandTree(an);else{var mn=this._sortTreeChildrenByY(an).first();mn!==null&&un.select(mn)}}else if(jt.key==="Left")if(!an.isTreeLeaf&&an.isTreeExpanded)un.commandHandler.canCollapseTree(an)&&un.commandHandler.collapseTree(an);else{var Zi=an.findTreeParentNode();Zi!==null&&un.select(Zi)}else if(jt.key==="Up"){var Zi=an.findTreeParentNode();if(Zi!==null){var ji=this._sortTreeChildrenByY(Zi),lr=ji.indexOf(an);if(lr>0){for(var Zn=ji.elt(lr-1);Zn!==null&&Zn.isTreeExpanded&&!Zn.isTreeLeaf;){var Ti=this._sortTreeChildrenByY(Zn);Zn=Ti.last()}Zn!==null&&un.select(Zn)}else un.select(Zi)}}else if(jt.key==="Down")if(an.isTreeExpanded&&!an.isTreeLeaf){var mn=this._sortTreeChildrenByY(an).first();mn!==null&&un.select(mn)}else for(;an!==null;){var Zi=an.findTreeParentNode();if(Zi===null)break;var ji=this._sortTreeChildrenByY(Zi),lr=ji.indexOf(an);if(lr<ji.length-1){un.select(ji.elt(lr+1));break}else an=Zi}var fr=un.selection.first();fr!==null&&un.scrollToRect(fr.actualBounds)}},hn.prototype._sortTreeChildrenByY=function(un){var an=new go.List().addAll(un.findTreeChildrenNodes());return an.sort(function(jt,mn){var Zi=jt.location,ji=mn.location;return Zi.y<ji.y?-1:Zi.y>ji.y?1:Zi.x<ji.x?-1:Zi.x>ji.x?1:0}),an},hn.prototype.copyToClipboard=function(un){go.CommandHandler.prototype.copyToClipboard.call(this,un),this._lastPasteOffset.set(this.pasteOffset)},hn.prototype.pasteFromClipboard=function(){var un=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(un,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),un},Object.defineProperty(hn.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(un){if(un!=="move"&&un!=="select"&&un!=="scroll"&&un!=="tree"&&un!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+un);this._arrowKeyBehavior=un}}),Object.defineProperty(hn.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(un){if(!(un instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+un);this._pasteOffset.set(un)}});var li=hn,yi=we(63720),We=we(5269),Fe=we(38986),xe={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},Ne=we(48790),Ye=we(59301),ke=(un,an,jt)=>new Promise((mn,Zi)=>{var ji=Ti=>{try{Zn(jt.next(Ti))}catch(fr){Zi(fr)}},lr=Ti=>{try{Zn(jt.throw(Ti))}catch(fr){Zi(fr)}},Zn=Ti=>Ti.done?mn(Ti.value):Promise.resolve(Ti.value).then(ji,lr);Zn((jt=jt.apply(un,an)).next())});function et({onCancel:un,callback:an}){let jt=(0,ve.useRef)(),mn=(0,ve.useRef)(),Zi=(0,ve.useRef)(),ji=(0,ve.useRef)(!1);const lr=(0,ve.useRef)(!1),[Zn,Ti]=(0,ve.useState)(0);function fr(){const ci=vt.bx.make,ut={red:"#ff3333",blue:"#3358ff",green:"#25ad23",magenta:"#d533ff",purple:"#7d33ff",orange:"#ff6233",brown:"#8e571e",white:"#ffffff",black:"#000000",beige:"#fffcd5",extralightblue:"#d5ebff",extralightred:"#f2dfe0",lightblue:"#a5d2fa",lightgray:"#cccccc",lightgreen:"#b3e6b3",lightred:"#fcbbbd"};jt.current=new vt.S0(mn.current,{padding:20,grid:ci(vt.s_,"Grid",ci(vt.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),ci(vt.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:Kt=>{var bi=Kt.diagram.commandHandler.addTopLevelParts(Kt.diagram.selection,!0);bi||Kt.diagram.currentTool.doCancel()},commandHandler:ci(li),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:Kt=>{var bi=Kt.subject;bi.location=bi.location.copy().snapToGridPoint(Kt.diagram.grid.gridOrigin,Kt.diagram.grid.gridCellSize),setTimeout(()=>{Kt.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:Kt=>{var bi=Kt.subject;setTimeout(()=>{Kt.diagram.commandHandler.editTextBlock()})},LinkRelinked:Kt=>{var bi=Kt.parameter.part;bi.invalidateConnectedLinks();var tr=Kt.subject;Kt.diagram.toolManager.linkingTool.isForwards?tr.toNode.invalidateConnectedLinks():tr.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),jt.current.nodeTemplate=ci(vt.NB,"Auto",{locationSpot:vt.z6.Center,locationObjectName:"SHAPE",desiredSize:new vt.$u(120,60),minSize:new vt.$u(40,40),resizable:!0,resizeCellSize:new vt.$u(10,10),rotatable:!0},new vt.KX("location","loc",vt.E9.parse).makeTwoWay(vt.E9.stringify),new vt.KX("desiredSize","size",vt.$u.parse).makeTwoWay(vt.$u.stringify),ci(vt.bn,{name:"SHAPE",fill:ut.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:vt.z6.AllSides,toSpot:vt.z6.AllSides},new vt.KX("figure"),new vt.KX("fill"),new vt.KX("stroke","borderColor"),new vt.KX("strokeWidth","thickness"),new vt.KX("strokeDashArray","dash")),ci(vt.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),ci(vt.al,{margin:1,textAlign:"center",overflow:vt.al.OverflowEllipsis,editable:!0},new vt.KX("text").makeTwoWay(),new vt.KX("stroke","color"))),jt.current.nodeTemplate.toolTip=ci("ToolTip",ci(vt.s_,"Vertical",{maxSize:new vt.$u(200,NaN)},ci(vt.al,{font:"bold 10pt sans-serif",textAlign:"center"},new vt.KX("text")),ci(vt.al,{font:"10pt sans-serif",textAlign:"center"},new vt.KX("text","details"))));function Nt(Kt,bi){var tr=(Mi,kr)=>{Mi.handled=!0,Mi.diagram.model.commit(rr=>{var Lr=kr.part.adornedPart,Tr=new vt.E9().setRectSpot(Lr.actualBounds,Kt);Tr.subtract(Lr.location),Tr.scale(2,2),Tr.x+=Math.sign(Tr.x)*130,Tr.y+=Math.sign(Tr.y)*130,Tr.add(Lr.location),Tr.snapToGridPoint(Mi.diagram.grid.gridOrigin,Mi.diagram.grid.gridCellSize);var Zr=rr.copyNodeData(Lr.data);rr.setGroupKeyForNodeData(Zr,rr.getGroupKeyForNodeData(Lr.data)),rr.addNodeData(Zr);var uo={from:Lr.key,to:rr.getKeyForNodeData(Zr)};rr.addLinkData(uo);var An=Mi.diagram.findNodeForData(Zr);An.location=Tr,Mi.diagram.select(An),setTimeout(()=>{Mi.diagram.commandHandler.editTextBlock()},20)})};return ci(vt.bn,{figure:bi,alignment:Kt,alignmentFocus:Kt.opposite(),width:Kt.equals(vt.z6.Top)||Kt.equals(vt.z6.Bottom)?25:18,height:Kt.equals(vt.z6.Top)||Kt.equals(vt.z6.Bottom)?18:25,fill:"orange",stroke:ut.white,strokeWidth:4,mouseEnter:(Mi,kr)=>kr.fill="dodgerblue",mouseLeave:(Mi,kr)=>kr.fill="orange",isActionable:!0,click:tr,contextClick:tr})}function Rn(Kt){return ci(vt.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:(bi,tr)=>tr.fill="dodgerblue",mouseLeave:(bi,tr)=>tr.fill="orange",click:(bi,tr)=>{bi.diagram.commandHandler.showContextMenu(tr.part.adornedPart)}},Kt||{})}jt.current.nodeTemplate.selectionAdornmentTemplate=ci(vt.uz,"Spot",ci(vt.Vm,{padding:10}),Nt(vt.z6.Top,"TriangleUp"),Nt(vt.z6.Left,"TriangleLeft"),Nt(vt.z6.Right,"TriangleRight"),Nt(vt.z6.Bottom,"TriangleDown"),Rn({alignment:new vt.z6(.75,0)}));function In(Kt,bi){return(tr,Mi)=>{tr.handled=!0,tr.diagram.model.commit(kr=>{kr.set(Mi.part.adornedPart.data,Kt,bi)})}}function Qt(Kt,bi){return bi||(bi="color"),ci(vt.bn,{width:16,height:16,stroke:"lightgray",fill:Kt,margin:1,background:"transparent",mouseEnter:(tr,Mi)=>Mi.stroke="dodgerblue",mouseLeave:(tr,Mi)=>Mi.stroke="lightgray",click:In(bi,Kt),contextClick:In(bi,Kt)})}function qn(){return[ci("ContextMenuButton",ci(vt.s_,"Horizontal",Qt(ut.white,"fill"),Qt(ut.beige,"fill"),Qt(ut.extralightblue,"fill"),Qt(ut.extralightred,"fill"))),ci("ContextMenuButton",ci(vt.s_,"Horizontal",Qt(ut.lightgray,"fill"),Qt(ut.lightgreen,"fill"),Qt(ut.lightblue,"fill"),Qt(ut.lightred,"fill")))]}function Nn(){return[ci("ContextMenuButton",ci(vt.s_,"Horizontal",Qt(ut.black),Qt(ut.green),Qt(ut.blue),Qt(ut.red))),ci("ContextMenuButton",ci(vt.s_,"Horizontal",Qt(ut.white),Qt(ut.magenta),Qt(ut.purple),Qt(ut.orange)))]}function Vn(Kt,bi){return bi||(bi="thickness"),ci(vt.bn,"LineH",{width:16,height:16,strokeWidth:Kt,margin:1,background:"transparent",mouseEnter:(tr,Mi)=>Mi.background="dodgerblue",mouseLeave:(tr,Mi)=>Mi.background="transparent",click:In(bi,Kt),contextClick:In(bi,Kt)})}function Pi(Kt,bi){return bi||(bi="dash"),ci(vt.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:Kt,margin:1,background:"transparent",mouseEnter:(tr,Mi)=>Mi.background="dodgerblue",mouseLeave:(tr,Mi)=>Mi.background="transparent",click:In(bi,Kt),contextClick:In(bi,Kt)})}function pi(){return[ci("ContextMenuButton",ci(vt.s_,"Horizontal",Vn(1),Vn(2),Vn(3),Vn(4))),ci("ContextMenuButton",ci(vt.s_,"Horizontal",Pi(null),Pi([2,4]),Pi([4,4])))]}function tn(Kt,bi){return bi||(bi="figure"),ci(vt.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:Kt,margin:1,background:"transparent",mouseEnter:(tr,Mi)=>Mi.fill="dodgerblue",mouseLeave:(tr,Mi)=>Mi.fill="lightgray",click:In(bi,Kt),contextClick:In(bi,Kt)})}jt.current.nodeTemplate.contextMenu=ci("ContextMenu",ci("ContextMenuButton",ci(vt.s_,"Horizontal",tn("Rectangle"),tn("RoundedRectangle"),tn("Ellipse"),tn("Diamond"))),ci("ContextMenuButton",ci(vt.s_,"Horizontal",tn("Parallelogram2"),tn("ManualOperation"),tn("Procedure"),tn("Cylinder1"))),ci("ContextMenuButton",ci(vt.s_,"Horizontal",tn("Terminator"),tn("CreateRequest"),tn("Document"),tn("TriangleDown"))),qn(),Nn(),pi()),jt.current.groupTemplate=ci(vt.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:vt.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(Kt,bi)=>{var tr=bi.addMembers(bi.diagram.selection,!0);tr||bi.diagram.currentTool.doCancel()},avoidable:!1},new vt.KX("location","loc",vt.E9.parse).makeTwoWay(vt.E9.stringify),ci(vt.s_,"Auto",{name:"BODY"},ci(vt.bn,{parameter1:10,fill:ut.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:vt.z6.AllSides,toSpot:vt.z6.AllSides},new vt.KX("fill"),new vt.KX("stroke","color"),new vt.KX("strokeWidth","thickness"),new vt.KX("strokeDashArray","dash")),ci(vt.Vm,{background:"transparent",margin:20})),ci(vt.al,{alignment:vt.z6.Top,alignmentFocus:vt.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new vt.KX("text"),new vt.KX("stroke","color"))),jt.current.groupTemplate.selectionAdornmentTemplate=ci(vt.uz,"Spot",ci(vt.s_,"Auto",ci(vt.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),ci(vt.Vm,{margin:1.5})),Rn({alignment:vt.z6.TopRight,alignmentFocus:vt.z6.BottomRight})),jt.current.groupTemplate.contextMenu=ci("ContextMenu",qn(),Nn(),pi()),jt.current.linkTemplate=ci(vt.rU,{layerName:"Foreground",routing:vt.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new vt.KX("fromSpot","fromSpot",vt.z6.parse),new vt.KX("toSpot","toSpot",vt.z6.parse),new vt.KX("fromShortLength","dir",Kt=>Kt>=1?10:0),new vt.KX("toShortLength","dir",Kt=>Kt>=1?10:0),new vt.KX("points").makeTwoWay(),ci(vt.bn,{strokeWidth:2},new vt.KX("stroke","color"),new vt.KX("strokeWidth","thickness"),new vt.KX("strokeDashArray","dash")),ci(vt.bn,{segmentIndex:0,segmentOffset:new vt.E9(15,0),segmentOrientation:vt.rU.OrientAlong,alignmentFocus:vt.z6.Right,figure:"circle",width:10,strokeWidth:0},new vt.KX("fill","color"),new vt.KX("visible","dir",Kt=>Kt===1)),ci(vt.bn,{segmentIndex:-1,segmentOffset:new vt.E9(-10,6),segmentOrientation:vt.rU.OrientPlus90,alignmentFocus:vt.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new vt.KX("fill","color"),new vt.KX("visible","dir",Kt=>Kt>=1),new vt.KX("width","thickness",Kt=>7+3*Kt),new vt.KX("height","thickness",Kt=>7+3*Kt),new vt.KX("segmentOffset","thickness",Kt=>new vt.E9(-15,4+1.5*Kt))),ci(vt.bn,{segmentIndex:0,segmentOffset:new vt.E9(15,-6),segmentOrientation:vt.rU.OrientMinus90,alignmentFocus:vt.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new vt.KX("fill","color"),new vt.KX("visible","dir",Kt=>Kt===2),new vt.KX("width","thickness",Kt=>7+3*Kt),new vt.KX("height","thickness",Kt=>7+3*Kt),new vt.KX("segmentOffset","thickness",Kt=>new vt.E9(-15,4+1.5*Kt))),ci(vt.al,{alignmentFocus:new vt.z6(0,1,-4,0),editable:!0},new vt.KX("text").makeTwoWay(),new vt.KX("stroke","color"))),jt.current.linkTemplate.selectionAdornmentTemplate=ci(vt.uz,ci(vt.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:Wi(2)},new vt.KX("pathPattern","thickness",Wi)),Rn({alignmentFocus:new vt.z6(0,0,-6,-4)}));function Wi(Kt){return ci(vt.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(Kt+4).toString()+" H3"})}function yr(Kt){var bi="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return Kt===0?bi="M0 0 M16 16 M0 8 L16 8":Kt===2&&(bi="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),ci(vt.bn,{geometryString:bi,margin:2,background:"transparent",mouseEnter:(tr,Mi)=>Mi.background="dodgerblue",mouseLeave:(tr,Mi)=>Mi.background="transparent",click:In("dir",Kt),contextClick:In("dir",Kt)})}function Pr(Kt){var bi=(tr,Mi)=>{tr.handled=!0,tr.diagram.model.commit(kr=>{var rr=Mi.part.adornedPart;kr.set(rr.data,Kt?"toSpot":"fromSpot",vt.z6.stringify(vt.z6.AllSides)),(Kt?rr.toNode:rr.fromNode).invalidateConnectedLinks()})};return ci(vt.bn,{width:12,height:12,fill:"transparent",mouseEnter:(tr,Mi)=>Mi.background="dodgerblue",mouseLeave:(tr,Mi)=>Mi.background="transparent",click:bi,contextClick:bi})}function Yn(Kt,bi){var tr=0,Mi=vt.z6.RightSide;Kt.equals(vt.z6.Top)?(tr=270,Mi=vt.z6.TopSide):Kt.equals(vt.z6.Left)?(tr=180,Mi=vt.z6.LeftSide):Kt.equals(vt.z6.Bottom)&&(tr=90,Mi=vt.z6.BottomSide),bi||(tr-=180);var kr=(rr,Lr)=>{rr.handled=!0,rr.diagram.model.commit(Tr=>{var Zr=Lr.part.adornedPart;Tr.set(Zr.data,bi?"toSpot":"fromSpot",vt.z6.stringify(Mi)),(bi?Zr.toNode:Zr.fromNode).invalidateConnectedLinks()})};return ci(vt.bn,{alignment:Kt,alignmentFocus:Kt.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:tr,background:"transparent",mouseEnter:(rr,Lr)=>Lr.background="dodgerblue",mouseLeave:(rr,Lr)=>Lr.background="transparent",click:kr,contextClick:kr})}jt.current.linkTemplate.contextMenu=ci("ContextMenu",Nn(),pi(),ci("ContextMenuButton",ci(vt.s_,"Horizontal",yr(0),yr(1),yr(2))),ci("ContextMenuButton",ci(vt.s_,"Horizontal",ci(vt.s_,"Spot",Pr(!1),Yn(vt.z6.Top,!1),Yn(vt.z6.Left,!1),Yn(vt.z6.Right,!1),Yn(vt.z6.Bottom,!1)),ci(vt.s_,"Spot",{margin:new vt.Zt(0,0,0,2)},Pr(!0),Yn(vt.z6.Top,!0),Yn(vt.z6.Left,!0),Yn(vt.z6.Right,!0),Yn(vt.z6.Bottom,!0)))));const Oi=`{ "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 Dr=["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 jr(Kt){return console.log("shapeName:",Kt),Dr.indexOf(Kt)>=0}var oo=new vt.YI(Zi.current,{maxSelectionCount:1,linkTemplate:ci(vt.rU,{locationSpot:vt.z6.Center,selectionAdornmentTemplate:ci(vt.uz,"Link",{locationSpot:vt.z6.Center},ci(vt.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),ci(vt.bn,{toArrow:"Standard",stroke:null}))},{routing:vt.rU.AvoidsNodes,curve:vt.rU.JumpOver,corner:5,toShortLength:4},new vt.KX("points"),ci(vt.bn,{isPanelMain:!0,strokeWidth:2}),ci(vt.bn,{toArrow:"Standard",stroke:null})),model:new vt.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...vt.bn.getFigureGenerators().toArray().map(Kt=>({text:"\u672A\u547D\u540D",size:"100 100",figure:Kt.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return jt.current.addDiagramListener("TextEdited",function(Kt){var bi;const tr=Kt.subject.part;var Mi=(bi=document.activeElement)==null?void 0:bi.value;typeof Mi=="string"&&Mi.trim()===""&&jt.current.model.commit(function(kr){kr.set(tr.data,"text","\u672A\u547D\u540D"),jt.current.commandHandler.stopCommand()},"increment")}),oo.nodeTemplate=ci(vt.NB,"Auto",{locationSpot:vt.z6.Center},new vt.KX("location","location",vt.E9.parse).makeTwoWay(vt.E9.stringify),ci(vt.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 vt.KX("stroke").makeTwoWay(),new vt.KX("fill").makeTwoWay(),new vt.KX("figure")),ci(vt.al,{margin:new vt.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new vt.$u(16,16),maxSize:new vt.$u(10,NaN),textAlign:"center",editable:!0},new vt.KX("key").makeTwoWay())),setTimeout(()=>{jt.current.grid=ci(vt.s_,"Grid",ci(vt.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),ci(vt.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),jt.current.grid.visible=!0,jt.current.grid.gridCellStroke="darkgray",jt.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=jt.current,jt.current}const Vr=()=>ke(this,null,function*(){var ci,ut=jt.current.makeImage();const Nt=yield(0,Fe.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:ut.src,file_data:JSON.stringify({login:(ci=(0,Ne.eY)())==null?void 0:ci.login,data:JSON.parse(jt.current.model.toJson())})}});an({src:Nt.url})});return(0,ve.useEffect)(()=>(setTimeout(()=>{fr()},500),Ti(Zn+1),()=>{jt.current=null}),[]),Ye.createElement("div",{ref:lr,className:"body-overflow-initial"},Ye.createElement(Mt.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!Zn,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:Ye.createElement(zt.Z,null,Ye.createElement(We.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),Ye.createElement(We.Z,{onClick:()=>{var ci,ut,Nt=jt.current.selection.first();if(ji.current=!ji.current,document.activeElement&&Nt){let Rn=(ut=(ci=document.activeElement)==null?void 0:ci.value)==null?void 0:ut.trim();typeof Rn=="string"&&jt.current.model.commit(function(In){In.set(Nt.data,"text",Rn||"\u672A\u547D\u540D"),jt.current.commandHandler.stopCommand()},"increment")}Ti(Zn+1)}},Ye.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:un},Ye.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative",display:ji.current?"none":"block"},className:xe.flowChartWrp},Ye.createElement("div",{style:{display:"flex",height:"100%"}},Ye.createElement("div",{style:{width:"300px",height:"100%"}},Ye.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),Ye.createElement("div",{style:{height:"calc(100% - 50px)"},className:xe.myPaletteDiv,ref:Zi})),Ye.createElement("div",{style:{flex:1,position:"relative"}},Ye.createElement("div",{ref:mn,style:{height:"80vh"}}))),Ye.createElement("div",{className:"tr"},Ye.createElement(nt.ZP,{size:"large",onClick:Vr,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var _t=et,Bt=we(47889),rn=we(71051);const Ot=Bt.ZP.Group,bt={margin:"0 8px"};var Wt=({callback:un,onCancel:an})=>{function jt(mn){un(mn)}return ve.createElement(Oe.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:jt},ve.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},ve.createElement("span",{style:bt},"\u5355\u5143\u683C\u6570\uFF1A"),ve.createElement("span",{style:bt},"\u884C\u6570"),ve.createElement(Oe.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},ve.createElement(rn.Z,null)),ve.createElement("span",{style:bt},"\u5217\u6570"),ve.createElement(Oe.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},ve.createElement(rn.Z,null))),ve.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},ve.createElement("span",{style:bt},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),ve.createElement(Oe.default.Item,{name:"align"},ve.createElement(Ot,null,ve.createElement(Bt.ZP,{value:"default"},ve.createElement("i",{className:"fa fa-align-justify"})),ve.createElement(Bt.ZP,{value:"left"},ve.createElement("i",{className:"fa fa-align-left"})),ve.createElement(Bt.ZP,{value:"center"},ve.createElement("i",{className:"fa fa-align-center"})),ve.createElement(Bt.ZP,{value:"right"},ve.createElement("i",{className:"fa fa-align-right"}))))),ve.createElement("div",{className:"flex-container flex-end"},ve.createElement(nt.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ve.createElement(nt.ZP,{type:"ghost",onClick:an},"\u53D6\u6D88")))},Xt=we(71411),pn=we(43001),$n=we.n(pn),Ln=(0,ve.forwardRef)(({use3d:un,width:an,height:jt,callback:mn,showSaveButton:Zi},ji)=>{const lr=(0,ve.useRef)(),Zn=(0,ve.useRef)(),[Ti,fr]=(0,ve.useState)(!1),Vr=(0,ve.useRef)({id:lr,appName:"graphing",width:an||1e3,height:jt||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,ve.useEffect)(()=>{Zn.current=new($n())(Vr.current,!0),window.onload=function(){Zn.current.inject("applet_container")}},[]);const ci=()=>{var ut=window.ggbApplet.getPNGBase64(1,!0,72);return mn&&mn(ut),ut};return(0,ve.useEffect)(()=>{Vr.current.appName=Ti?"3D":"graphing",Zn.current.inject("applet_container")},[Ti]),(0,ve.useEffect)(()=>{fr(un)},[un]),(0,ve.useImperativeHandle)(ji,()=>({getImgData:ci})),ve.createElement(ve.Fragment,null,ve.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:lr}),ve.createElement(zt.Z,{align:"middle"},ve.createElement(We.Z,{flex:1},ve.createElement(Xt.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Ti,onChange:ut=>fr(ut)})),ve.createElement(We.Z,null,ve.createElement(nt.ZP,{size:"large",onClick:ci,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),Ci=we(76562),Jn=we(6767);const Di="link",ui="upload-image",Bi="add-flowchart",Ui="draw-image",ir="add-flowchart",Ir="code-block",qi="add-table",ri="------------",co={default:ri,left:`:${ri}`,center:`:${ri}:`,right:`${ri}:`};var Qr=we(37808);function to(){}let no=0;const xo=1e4,lo="\u2581",Er="@\u2581\u2581@",io="@\u2581@",Le=`
**\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`,Pn=["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 Un(un){return/^\d+$/.test(un)?`${un}px`:un}const mi=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",ti={[mi+"-B"]:"bold",[mi+"-I"]:"italic"},Yi={[Di]:"\u6DFB\u52A0\u94FE\u63A5",[Ir]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[ui]:"\u6DFB\u52A0\u56FE\u7247",[Ui]:"\u6DFB\u52A0\u753B\u56FE",[Bi]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[qi]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var pr=({defaultValue:un="",onChange:an,width:jt="100%",height:mn=400,miniToolbar:Zi=!1,isFocus:ji=!1,watch:lr,insertTemp:Zn,mode:Ti="markdown",id:fr="markdown-editor-id",showResizeBar:Vr=!1,noStorage:ci=!1,showNullButton:ut=!1,showNullProgramButton:Nt=!1,hidetoolBar:Rn=!1,fullScreen:In=!1,onBlur:Qt,onCMBeforeChange:qn,onFullScreen:Nn,className:Vn="",disablePaste:Pi=!1,disabled:pi=!1,disabledFill:tn=!1,placeholder:Wi="",values:yr="",extraUse:Pr})=>{const[Yn,Oi]=(0,ve.useState)(null),[Dr,jr]=(0,ve.useState)(un),[oo,Kt]=(0,ve.useState)(lr),[bi,tr]=(0,ve.useState)(In),[Mi,kr]=(0,ve.useState)(""),[rr,Lr]=(0,ve.useState)(0),[Tr,Zr]=(0,ve.useState)(mn),[uo,An]=(0,ve.useState)(!1),[mo,Fn]=(0,ve.useState)(0),[ai,_r]=(0,ve.useState)(0),Hr=(0,ve.useRef)(),Oo=(0,ve.useRef)(),Kr=(0,ve.useRef)(),Or=(0,ve.useRef)();(0,ve.useEffect)(()=>{const En=window.scrollY||window.pageYOffset;jr(yr),Yn==null||Yn.setValue(yr),window.scrollTo(0,En)},[yr]),(0,ve.useEffect)(()=>{Nn==null||Nn(bi)},[bi]),(0,ve.useEffect)(()=>{if(Hr.current){let En=function(dt,Xe){var Pt;if(Pi){Xe.preventDefault();return}const Et=Xe.clipboardData;if(Et){const Jt=Et.types.toString(),$t=Et.items;if(Jt==="Files"||Et.types.indexOf("Files")>-1){if(Xe.preventDefault(),Ti=="stex")return;try{let dn=$t[1];((Pt=$t[0])==null?void 0:Pt.kind)==="file"&&(dn=$t[0]);const Tn=dn.getAsFile(),zn=Tn.name.split(".").pop();(0,Yt.I)(Tn,fn=>{var ei,vi,pt;fn.id?((ei=Tn==null?void 0:Tn.type)==null?void 0:ei.indexOf("image"))>-1?be.replaceSelection(`<img width="100%" src="/api/attachments/${fn.id}?type=${fn.content_type})" alt="" />`):((vi=Tn==null?void 0:Tn.type)==null?void 0:vi.indexOf("video"))>-1?be.replaceSelection(`<video width="100%" controls src="/api/attachments/${fn.id}"></video>`):((pt=Tn==null?void 0:Tn.type)==null?void 0:pt.indexOf("pdf"))>-1?be.replaceSelection(`<a href="/api/attachments/${fn.id}?type=${Tn.type}&disposition=inline" target="_blank">${Tn.name}</a>`):Pn.includes(zn)?be.replaceSelection(`<a href="/api/attachments/${fn.id}?type=office&disposition=inline" target="_blank">${Tn.name}</a>`):be.replaceSelection(`[${Tn.name}](/api/attachments/${fn.id}?type=${fn.content_type})`):(fn==null?void 0:fn.status)===401&&(document.location.href="/user/login")})}catch(dn){Jn.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const be=lt().fromTextArea(Hr.current,{mode:Ti,lineNumbers:!Zi,lineWrapping:!0,value:un,autoCloseTags:!0,autoCloseBrackets:!0});return be.on("keyup",function(dt,Xe){Xe.keyCode===8&&(dt.getValue()==""?be.setOption("placeholder",Wi):be.setOption("placeholder",null))}),be.on("keydown",function(dt,Xe){if(Xe.keyCode===8){var Pt=qt(dt);Pt&&Xe.preventDefault()}}),ji&&be.focus(),be.on("paste",En),pi&&be.on("beforeChange",function(dt,Xe){(Xe.origin==="paste"||Xe.origin==="+input")&&Xe.cancel()}),Oi(be),()=>{be.off("paste",En)}}},[]);const Bo=(0,ve.useCallback)(()=>{if(Oo.current)try{}catch(En){console.log(En,"---- to set md editor body height")}},[Tr,Oo,bi]);(0,ve.useEffect)(()=>{function En(){let be=new it.Z(dt=>{for(let Xe of dt)(Xe.target.offsetHeight>0||Xe.target.offsetWidth>0)&&(Bo(),Yn.setSize("100%","100%"),Yn.refresh())});return be.observe(Hr.current.parentElement),be}if(Yn){const be=En();return()=>{var dt,Xe;(dt=Hr.current)!=null&&dt.parentElement&&be.unobserve((Xe=Hr.current)==null?void 0:Xe.parentElement)}}},[Yn,Bo]),(0,ve.useEffect)(()=>{if(Yn){let En=[];for(const[be,dt]of Object.entries(ti)){let Xe={[be]:()=>{vn(dt)}};En.push(Xe),Yn.addKeyMap(Xe)}return()=>{for(let be of En)Yn.removeKeyMap(be)}}},[Yn]),(0,ve.useEffect)(()=>{In!==bi&&tr(In)},[In]),(0,Qr.Z)(()=>{if(!ci&&rr>0){let En=new Date().getTime(),be=window.sessionStorage.getItem(fr);En>=rr+xo&&(!be||be!==Dr)&&(window.sessionStorage.setItem(fr,Dr),An(!0))}},xo),(0,ve.useEffect)(()=>{Kt(lr)},[Yn,lr]),(0,ve.useEffect)(()=>{Yn&&ji&&Yn.focus()},[Yn,ji]),(0,ve.useEffect)(()=>{if(oo&&Yn){let En=function(dt){let Xe=dt.target;if(Or.current){let Pt=Xe.scrollTop/Xe.scrollHeight;Or.current.scrollTop=Or.current.scrollHeight*Pt}};const be=Yn.getScrollerElement();return be.addEventListener("scroll",En),()=>{be.removeEventListener("scroll",En)}}},[Yn,oo]),(0,ve.useEffect)(()=>{if(Yn&&qn){let En=function(be,dt){qn(be,dt)};return Yn.on("beforeChange",En),()=>{Yn.off("beforeChange",En)}}},[Yn,qn]),(0,ve.useEffect)(()=>{if(Yn&&Qt){let En=function(){Qt(Yn.getValue())};return Yn.on("blur",En),()=>{Yn.off("blur",En)}}},[Yn,Qt]);function qt(En,be){var dt=En.getDoc(),Xe=dt.getCursor(),Pt=dt.getLine(Xe.line),Et=Pt.charAt(Xe.ch-1),Jt=Pt.lastIndexOf("@\u2581@",Xe.ch),$t=Pt.lastIndexOf("@\u2581\u2581@",Xe.ch),dn=Jt>$t?Jt:$t,Tn=Jt>$t?3:4;if(Er.indexOf(Et)===-1)return null;if(console.log("change1:",be,En,Pt,Xe,dn,Jt,$t,Et),dn>=0&&Xe.ch-dn<5){var zn=dn+Tn;return dt.replaceRange("",{line:Xe.line,ch:dn},{line:Xe.line,ch:zn}),{line:Xe.line,ch:zn}}return null}(0,ve.useEffect)(()=>{if(Yn){let En=function(be,dt){const Xe=be.getValue();jr(Xe),Lr(new Date().getTime()),be.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),an&&(Nt?an(Xe,Ft(Xe)):an(Xe))};return Yn.on("change",En),()=>{Yn.off("change",En)}}},[Yn,an]),(0,ve.useEffect)(()=>{if(Yn)if(un==null)Yn.setValue(""),jr("");else{const En=window.scrollY||window.pageYOffset;un!==Yn.getValue()&&(Yn.setValue(un),jr(un),Yn.setCursor(pi?1:Yn.lineCount(),0),window.scrollTo(0,En))}},[Yn,un]);const vn=(0,ve.useCallback)(En=>{const be=Yn.getCursor(),dt=Yn.getSelection();let Xe=dt.split(`
`);switch(En){case"bold":return Yn.replaceSelection("**"+dt+"**"),dt===""&&Yn.setCursor(be.line,be.ch+2),Yn.focus();case"italic":return Yn.replaceSelection("*"+dt+"*"),dt===""&&Yn.setCursor(be.line,be.ch+1),Yn.focus();case"code":return Yn.replaceSelection("`"+dt+"`"),dt===""&&Yn.setCursor(be.line,be.ch+1),Yn.focus();case"inline-latex":return kr("inline-latex"),Yn.focus();case"latex":return Yn.replaceSelection("```latex\n"+dt+"\n```"),Yn.setCursor(be.line+1,dt.length+1),Yn.focus();case"line-break":return Yn.replaceSelection(`<br/>
`),Yn.focus();case"list-ul":return dt===""?Yn.replaceSelection("- "+dt):Yn.replaceSelection(Xe.map(Pt=>Pt===""?"":`- ${Pt}`).join(`
`)),Yn.focus();case"list-ol":return dt===""?Yn.replaceSelection("1. "+dt):Yn.replaceSelection(Xe.map((Pt,Et)=>Pt===""?"":`${Et+1}. ${Pt}`).join(`
`)),Yn.focus();case"add-null-ch":return dt===""&&Yn.setCursor(be.line,be.ch),Yn.replaceSelection(lo),Yn.focus();case"add-signal":return dt===""&&Yn.setCursor(be.line,be.ch),Yn.replaceSelection(io),Yn.focus();case"add-multiple":return dt===""&&Yn.setCursor(be.line,be.ch),Yn.replaceSelection(Er),Yn.focus();case"inster-template-1":return dt===""&&Yn.setCursor(be.line,be.ch),Yn.replaceSelection(Le),Yn.focus();case"eraser":return Yn.setValue(""),Yn.focus();case"trigger-watch":return Kt(!oo),Yn.focus();case"trigger-full-screen":return tr(!bi),Yn.focus();case Di:kr(Di);return;case Ir:kr(Ir);return;case ui:kr(ui);return;case Ui:kr(Ui);return;case"maths-latex":kr("maths-latex");return;case Bi:kr(Bi);return;case qi:kr(qi);return;default:throw new Error}},[Yn,oo,bi]),Ht=(0,ve.useCallback)((En,be)=>{var dt,Xe,Pt,Et,Jt,$t;switch(kr(""),Mi){case Di:const{title:ei,link:vi}=En;return Yn.replaceSelection(`[${ei}](${vi})`),Yn.focus();case Ir:const{language:pt,content:Kn}=En;return Yn.replaceSelection(["```"+pt,Kn,"```"].join(`
`)),Yn.focus();case"maths-latex":for(var dn=atob(En),Tn=new Uint8Array(dn.length),zn=0;zn<dn.length;zn++)Tn[zn]=dn.charCodeAt(zn);var fn=new Blob([Tn],{type:"image/png"});(0,Yt.I)(fn,Ai=>{Ai.id?Yn.replaceSelection(`![,](/api/attachments/${Ai.id}?type=${Ai.content_type})`):(Ai==null?void 0:Ai.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":Yn.replaceSelection("`$$"+En+"$$`");break;case ui:case Ui:case ir:const{src:Hn,alt:jn}=En,Mn=be,fi=(Pt=(Xe=(dt=Mn==null?void 0:Mn.name)==null?void 0:dt.split("."))==null?void 0:Xe.pop)==null?void 0:Pt.call(Xe);return((Et=Mn==null?void 0:Mn.type)==null?void 0:Et.indexOf("image"))>-1||!(Mn!=null&&Mn.type)?Mn!=null&&Mn.align||Mn!=null&&Mn.width?Yn.replaceSelection(`<p style="text-align:${Mn.align||"initial"}"><img width="${Mn.width?Mn.width+"%":"initial"}" src="${Hn}" alt="${jn||""}" /></p>`):Yn.replaceSelection(`<img width="100%" src="${Hn}" alt="${jn||""}" />`):((Jt=Mn==null?void 0:Mn.type)==null?void 0:Jt.indexOf("video"))>-1?Yn.replaceSelection(`<video width="100%" controls src="${Hn}"></video>`):(($t=Mn==null?void 0:Mn.type)==null?void 0:$t.indexOf("pdf"))>-1?Yn.replaceSelection(`<a href="${Hn}?type=${Mn.type}&disposition=inline" target="_blank">${Mn.name}</a>`):Pn.includes(fi)?Yn.replaceSelection(`<a href="${Hn}?type=office&disposition=inline" target="_blank">${Mn.name}</a>`):Yn.replaceSelection(`[${Mn.name}](${Hn})`),Yn.focus();case qi:const{row:Si,col:kn,align:xi}=En;let Ei=`
`;for(let Ai=0;Ai<Si;Ai++){let dr=[],Ar=[];for(let ur=0;ur<kn;ur++)Ai===1&&Ar.push(co[xi]),dr.push(" ");Ai===1&&(Ei+=`| ${Ar.join(" | ")} |
`),Ei+=`| ${dr.join(kn===1?"":" | ")} |
`}return Yn.replaceSelection(Ei+`
`),Yn.focus();default:throw new Error}},[Yn,Mi]),Ze=(0,ve.useMemo)(()=>{switch(Mi){case Di:return ve.createElement(Rt,{callback:Ht,onCancel:Xn});case Ir:return ve.createElement(Zt.Z,{callback:Ht,onCancel:Xn});case ui:return ve.createElement(Yt.Z,{callback:Ht,onCancel:Xn});case Bi:return ve.createElement(_t,{callback:Ht,onCancel:Xn});case qi:return ve.createElement(Wt,{callback:Ht,onCancel:Xn});case"maths-latex":return ve.createElement(Ln,{showSaveButton:!0,callback:Ht});case"inline-latex":return ve.createElement(Ci.Z,{showSaveButton:!0,callback:Ht});default:return null}},[Mi]);function Xn(){kr("")}(0,ve.useEffect)(()=>{if(Kr.current){let En=function(Jt){Pt=!0,Et=Jt.pageY},be=function(){Pt=!1},dt=function(Jt){if(Pt){let $t=Jt.pageY-Et;$t<0&&($t=0),$t>300&&($t=300);let dn=mn+$t+"px";Zr(dn)}},Xe=Kr.current,Pt=!1,Et=0;return Xe.addEventListener("mousedown",En),document.addEventListener("mousemove",dt),document.addEventListener("mouseup",be),()=>{Xe.removeEventListener("mousedown",En),document.removeEventListener("mousemove",dt),document.removeEventListener("mouseup",be)}}},[Yn,Kr]),(0,ve.useEffect)(()=>{Zr(mn)},[mn]);const Fi=Un(jt),Qi=Un(Tr),Qe={width:Fi,height:Qi},Ut=(0,ve.useMemo)(()=>{if(rr){let En=new Date(rr),be=En.getHours(),dt=En.getMinutes(),Xe=En.getSeconds();return be=be<10?"0"+be:be,dt=dt<10?"0"+dt:dt,Xe=Xe<10?"0"+Xe:Xe,`${be}:${dt}:${Xe}`}return 0},[rr]),Ft=En=>{const be=[];if(Nt){let dt=-1;En=En.replace(/(@▁▁@|@▁@)/g,function(Xe,Pt,Et){be.push({multiLine:Xe!==io})})}return be};function ln(){window.sessionStorage.removeItem(fr),An(!1),Lr(0)}function _n(){An(!1),Lr(0),Yn.setValue(window.sessionStorage.getItem(fr))}(0,ve.useEffect)(()=>{Yi[Mi]&&Mi!==Ui&&Mi!==Bi&&setTimeout(()=>{const En=document.getElementsByClassName("markdown-popup-form")[0],be=window.innerWidth/2-En.offsetWidth/2,dt=window.innerHeight/2-En.offsetHeight/2;Fn(be),_r(dt)},0)},[Mi]);const yn=En=>{En.preventDefault();const be=En.clientX-mo,dt=En.clientY-ai;document.body.onmousemove=Xe=>{let Pt=Xe.clientX-be,Et=Xe.clientY-dt;const Jt=document.getElementsByClassName("markdown-popup-form")[0],$t=window.innerWidth-Jt.offsetWidth,dn=window.innerHeight-Jt.offsetHeight;Pt=Math.max(0,Math.min(Pt,$t)),Et=Math.max(0,Math.min(Et,dn)),cn(Xe.clientX,Xe.clientY,be,dt)&&(Fn(Pt),_r(Et))},document.body.onmouseup=function(){document.body.onmousemove=null}},cn=(En,be,dt,Xe)=>{const Pt=document.body.clientHeight,Et=document.body.clientWidth;return En<20&&dt>En||En>Et-20&&dt<En||be<20&&Xe>be||be>Pt-20&&Xe<be?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return ve.createElement(ve.Fragment,null,ve.createElement("div",{className:"markdown-editor-wrapper",ref:Oo},ve.createElement("div",{className:`markdown-editor-container ${Vn} ${oo?"on-preview":""} ${Zi?"mini":""} ${bi?"full-screen":""}`,style:Qe},ve.createElement(Te,{insertTemp:Zn,watch:oo,fullScreen:bi,showNullButton:ut,showNullProgramButton:Nt,onActionCallback:vn,hidetoolBar:Rn,extraUse:Pr}),ve.createElement("div",{className:"markdown-editor-body"},ve.createElement("div",{className:"codemirror-container"},ve.createElement("textarea",{ref:Hr,placeholder:Wi})),oo?ve.createElement("div",{ref:Or,className:"preview-container"},Ti==="stex"&&ve.createElement(Ve,{value:Dr}),Ti!=="stex"&&ve.createElement(xt.Z,{disabledFill:tn,showProgramFill:Nt,value:Dr})):null))),Vr?ve.createElement("a",{ref:Kr,className:"editor-resize"}):null,Mi===Ui&&ve.createElement(kt,{callback:Ht,onCancel:Xn}),Mi===Bi&&ve.createElement(_t,{callback:Ht,onCancel:Xn}),ve.createElement(Ie.Z,null,Yi[Mi]&&Mi!==Ui&&Mi!==Bi?ve.createElement(Mt.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:mo,top:ai},title:ve.createElement("div",{style:{cursor:"move"},onMouseDown:yn},Yi[Mi]),open:!0,onCancel:Xn,footer:null,destroyOnClose:!0,width:Mi===Bi?"1200px":null,height:Mi===Bi?"80vh":null,className:"markdown-popup-form"},Ze):null))}},17077:function(gn,en,we){"use strict";we.d(en,{Z:function(){return je},I:function(){return Ie}});var ve=we(28284),_e=we(6767),lt=we(37568),it=we(77736),rt=we(71051),ze=we(47889),Ue=we(99571),yt=we(46699),tt=we(59301),De=we(59301),xt=Object.defineProperty,Ve=Object.defineProperties,ct=Object.getOwnPropertyDescriptors,Ee=Object.getOwnPropertySymbols,ne=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable,ue=(Oe,Re,nt)=>Re in Oe?xt(Oe,Re,{enumerable:!0,configurable:!0,writable:!0,value:nt}):Oe[Re]=nt,se=(Oe,Re)=>{for(var nt in Re||(Re={}))ne.call(Re,nt)&&ue(Oe,nt,Re[nt]);if(Ee)for(var nt of Ee(Re))te.call(Re,nt)&&ue(Oe,nt,Re[nt]);return Oe},de=(Oe,Re)=>Ve(Oe,ct(Re));const{useForm:pe}=ve.default,ye={width:280,marginRight:10},Ce={labelCol:{span:5},wrapperCol:{span:19}};var je=({callback:Oe,onCancel:Re})=>{const[nt]=pe();let ot=(0,tt.useRef)();function wt(Lt){ot.current.width=nt.getFieldValue("width"),ot.current.align=nt.getFieldValue("align"),Oe(Lt,ot.current)}function gt(Lt,It){if(Lt.status===-1){_e.ZP.error(Lt.message);return}nt.setFieldsValue({src:`/api/attachments/${Lt.id}`,type:It.type})}function Dt(Lt){let It=Lt.target.files[0];ot.current=It,Ie(It,gt)}return De.createElement(ve.default,de(se({form:nt},Ce),{className:"upload-image-panel",onFinish:wt,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(lt.default,{style:ye})),De.createElement(Te,{onFileChange:Dt}))),De.createElement(ve.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},De.createElement(lt.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(rt.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 nt=new FormData;nt.append("editormd-image-file",Oe),nt.append("file_param_name","editormd-image-file"),nt.append("byxhr","true");var ot=new window.XMLHttpRequest;ot.withCredentials=!0,ot.addEventListener("load",function(wt){Re(JSON.parse(wt.target.responseText),Oe)},!1),ot.addEventListener("error",function(wt){console.error(wt)},!1),ot.open("POST",`${yt.KI}/api/attachments.json`),ot.send(nt)}},91558:function(gn,en,we){"use strict";we.d(en,{Z:function(){return lt}});var ve=we(59301),_e=we(4676);class lt extends ve.Component{constructor(rt){super(rt);const ze=window.document;this.node=ze.createElement("div"),ze.body.appendChild(this.node)}render(){const{children:rt}=this.props;return(0,_e.createPortal)(rt,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},75975:function(gn,en,we){"use strict";we.d(en,{SV:function(){return _t},ZP:function(){return et}});var ve=we(59301),_e=we(76374);const lt={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"]},rt={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 yt=we(53184),tt=we.n(yt),De=Object.defineProperty,xt=Object.defineProperties,Ve=Object.getOwnPropertyDescriptors,ct=Object.getOwnPropertySymbols,Ee=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,te=(Bt,rn,Ot)=>rn in Bt?De(Bt,rn,{enumerable:!0,configurable:!0,writable:!0,value:Ot}):Bt[rn]=Ot,ue=(Bt,rn)=>{for(var Ot in rn||(rn={}))Ee.call(rn,Ot)&&te(Bt,Ot,rn[Ot]);if(ct)for(var Ot of ct(rn))ne.call(rn,Ot)&&te(Bt,Ot,rn[Ot]);return Bt},se=(Bt,rn)=>xt(Bt,Ve(rn)),de=(Bt,rn,Ot)=>new Promise((bt,Wt)=>{var Xt=Cn=>{try{$n(Ot.next(Cn))}catch(Ln){Wt(Ln)}},pn=Cn=>{try{$n(Ot.throw(Cn))}catch(Ln){Wt(Ln)}},$n=Cn=>Cn.done?bt(Cn.value):Promise.resolve(Cn.value).then(Xt,pn);$n((Ot=Ot.apply(Bt,rn)).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,rn)=>rn.map(Ot=>({label:Ot,kind:Bt.languages.CompletionItemKind.Keyword,insertText:Ot})),Ce=Bt=>Object.keys(pe.tables).map(rn=>({label:rn,kind:Bt.languages.CompletionItemKind.Variable,insertText:rn})),je=(Bt,rn)=>{const Ot=pe.tables[Bt];return Ot?Ot.map(bt=>({label:bt,kind:rn.languages.CompletionItemKind.Field,insertText:bt})):[]};function Te(Bt,rn,Ot,bt,Wt){let Xt=rn.getWordUntilPosition(Ot),pn={startLineNumber:Ot.lineNumber,endLineNumber:Ot.lineNumber,startColumn:Xt.startColumn,endColumn:Xt.endColumn},$n=bt.map(Cn=>({label:Cn,kind:Bt.languages.CompletionItemKind.Keyword,insertText:Cn,insertTextRules:Bt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:pn}));return Wt.map(Cn=>{$n.push(se(ue({},Cn),{range:pn}))}),$n}var Ie=Bt=>{pe.languages.map(Wt=>(Bt.languages.registerDocumentFormattingEditProvider(Wt,{provideDocumentFormattingEdits(Xt,pn,$n){return de(this,null,function*(){const Cn=tt()(Xt.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:Xt.getFullModelRange(),text:Cn}]})}}),Wt));const rn=rt.quickKey.map(Wt=>({label:Wt.label,kind:Bt.languages.CompletionItemKind.Method,insertText:Wt.content,insertTextRules:Bt.languages.CompletionItemInsertTextRule.InsertAsSnippet})),Ot=ze.quickKey.map(Wt=>({label:Wt.label,kind:Bt.languages.CompletionItemKind.Method,insertText:Wt.content,insertTextRules:Bt.languages.CompletionItemInsertTextRule.InsertAsSnippet})),bt=it.quickKey.map(Wt=>({label:Wt.label,kind:Bt.languages.CompletionItemKind.Method,insertText:Wt.content,insertTextRules:Bt.languages.CompletionItemInsertTextRule.InsertAsSnippet}));Bt.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(Wt,Xt){var pn=Wt.getWordUntilPosition(Xt),$n={startLineNumber:Xt.lineNumber,endLineNumber:Xt.lineNumber,startColumn:pn.startColumn,endColumn:pn.endColumn},Cn=Wt.getLineContent(Xt.lineNumber).substring(pn.startColumn-2,pn.endColumn);return{suggestions:[...rt.keywords.map(Ln=>({label:Ln,kind:Bt.languages.CompletionItemKind.Function,documentation:Ln,insertText:Ln,insertTextRules:Bt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:$n})),...rt.quickKey.map(Ln=>({label:Ln.label,kind:Bt.languages.CompletionItemKind.Function,documentation:Ln.content,insertText:Cn.startsWith("#")?Ln.content.replace(/#/,""):Ln.content,insertTextRules:Bt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:$n}))]}}}),Bt.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(Wt,Xt){var pn=Wt.getWordUntilPosition(Xt),$n={startLineNumber:Xt.lineNumber,endLineNumber:Xt.lineNumber,startColumn:pn.startColumn,endColumn:pn.endColumn};return{suggestions:[...lt.keywords.map(Cn=>({label:Cn,kind:Bt.languages.CompletionItemKind.Function,documentation:Cn,insertText:Cn,insertTextRules:Bt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:$n}))]}}}),Bt.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(Wt,Xt){var pn=Wt.getWordUntilPosition(Xt),$n={startLineNumber:Xt.lineNumber,endLineNumber:Xt.lineNumber,startColumn:pn.startColumn,endColumn:pn.endColumn},Cn=Wt.getLineContent(Xt.lineNumber).substring(pn.startColumn-2,pn.endColumn);return{suggestions:[...it.keywords.map(Ln=>({label:Ln,kind:Bt.languages.CompletionItemKind.Function,documentation:Ln,insertText:Ln,insertTextRules:Bt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:$n})),...it.quickKey.map(Ln=>({label:Ln.label,kind:Bt.languages.CompletionItemKind.Function,documentation:Ln.content,insertText:Cn.startsWith("#")?Ln.content.replace(/#/,""):Ln.content,insertTextRules:Bt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:$n}))]}}}),Bt.languages.registerCompletionItemProvider("scala",{provideCompletionItems:function(Wt,Xt){var pn=Wt.getWordUntilPosition(Xt),$n={startLineNumber:Xt.lineNumber,endLineNumber:Xt.lineNumber,startColumn:pn.startColumn,endColumn:pn.endColumn},Cn=Wt.getLineContent(Xt.lineNumber).substring(pn.startColumn-2,pn.endColumn);return{suggestions:[...Ue.keywords.map(Ln=>({label:Ln,kind:Bt.languages.CompletionItemKind.Function,documentation:Ln,insertText:Ln,insertTextRules:Bt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:$n})),...Ue.quickKey.map(Ln=>({label:Ln.label,kind:Bt.languages.CompletionItemKind.Function,documentation:Ln.content,insertText:Cn.startsWith("#")?Ln.content.replace(/#/,""):Ln.content,insertTextRules:Bt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:$n}))]}}}),Bt.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(Wt,Xt){var pn=Wt.getWordUntilPosition(Xt),$n={startLineNumber:Xt.lineNumber,endLineNumber:Xt.lineNumber,startColumn:pn.startColumn,endColumn:pn.endColumn},Cn=Wt.getLineContent(Xt.lineNumber).substring(pn.startColumn-2,pn.endColumn);return{suggestions:[...ze.keywords.map(Ln=>({label:Ln,kind:Bt.languages.CompletionItemKind.Function,documentation:Ln,insertText:Ln,insertTextRules:Bt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:$n})),...ze.quickKey.map(Ln=>({label:Ln.label,kind:Bt.languages.CompletionItemKind.Function,documentation:Ln.content,insertText:Cn.startsWith("#")?Ln.content.replace(/#/,""):Ln.content,insertTextRules:Bt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:$n}))]}}})};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,nt=(Bt,rn,Ot)=>rn in Bt?Re(Bt,rn,{enumerable:!0,configurable:!0,writable:!0,value:Ot}):Bt[rn]=Ot,ot=(Bt,rn,Ot)=>nt(Bt,typeof rn!="symbol"?rn+"":rn,Ot);const wt=class wx{constructor(rn,Ot,bt){this.placeholder=rn,this.editor=Ot,this.monaco=bt,Ot.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(wt,"ID","editor.widget.placeholderHint");var Dt=wt,Lt=we(96236),It=we(6767),Tt=we(25399),nn=we(89392),at=we(49535),He=we(56102),Rt=Object.defineProperty,Zt=Object.defineProperties,Yt=Object.getOwnPropertyDescriptors,Mt=Object.getOwnPropertySymbols,zt=Object.prototype.hasOwnProperty,on=Object.prototype.propertyIsEnumerable,Dn=(Bt,rn,Ot)=>rn in Bt?Rt(Bt,rn,{enumerable:!0,configurable:!0,writable:!0,value:Ot}):Bt[rn]=Ot,kt=(Bt,rn)=>{for(var Ot in rn||(rn={}))zt.call(rn,Ot)&&Dn(Bt,Ot,rn[Ot]);if(Mt)for(var Ot of Mt(rn))on.call(rn,Ot)&&Dn(Bt,Ot,rn[Ot]);return Bt},vt=(Bt,rn)=>Zt(Bt,Yt(rn)),hn=(Bt,rn)=>{var Ot={};for(var bt in Bt)zt.call(Bt,bt)&&rn.indexOf(bt)<0&&(Ot[bt]=Bt[bt]);if(Bt!=null&&Mt)for(var bt of Mt(Bt))rn.indexOf(bt)<0&&on.call(Bt,bt)&&(Ot[bt]=Bt[bt]);return Ot},li=(Bt,rn,Ot)=>new Promise((bt,Wt)=>{var Xt=Cn=>{try{$n(Ot.next(Cn))}catch(Ln){Wt(Ln)}},pn=Cn=>{try{$n(Ot.throw(Cn))}catch(Ln){Wt(Ln)}},$n=Cn=>Cn.done?bt(Cn.value):Promise.resolve(Cn.value).then(Xt,pn);$n((Ot=Ot.apply(Bt,rn)).next())});function yi(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 rn=Bt;if(Array.isArray(Bt)){for(let Ot=0;Ot<Bt.length;Ot++){let bt=xe[Bt[Ot]];if(bt)return bt}return rn[0]}return xe[rn]||rn}let Ye=null;const ke=()=>li(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 et=Bt=>{var rn=Bt,{width:Ot="100%",height:bt="100%",value:Wt,language:Xt="javascript",style:pn={},options:$n={},overrideServices:Cn={},theme:Ln="vs-dark",onEditBlur:Ci,isCopy:Jn=!1,onSave:Di,autoHeight:ui=!1,forbidCopy:Bi=!1,onChange:Ui=We,editorDidMount:ir=We,onFocus:Ir=We,onBreakPoint:qi=We,breakPointValue:ri=[],filename:co="educoder.txt",errorLine:Qr,errorContent:to="",highlightLine:no,openBreakPoint:xo=!1,placeholder:lo="",showMiniMap:Er=!0}=rn,io=hn(rn,["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)(),Pn=(0,ve.useRef)({}),Un=(0,ve.useRef)(),gi=(0,ve.useRef)(),mi=(0,ve.useRef)([]),ti=(0,ve.useRef)(!1),Yi=(0,ve.useRef)(),pr=(0,ve.useRef)(),un=(0,ve.useRef)(!1),[an,jt]=(0,ve.useState)(!1);function mn(){let Nn;return Le.current&&(Nn=new _e.Z(Vn=>{for(let Pi of Vn)(Pi.target.offsetHeight>0||Pi.target.offsetWidth>0)&&Pn.current.instance.layout()}),Nn.observe(Le.current)),Nn}function Zi(){It.ZP.warning({content:decodeURIComponent(Oe),key:"monaco-editor-tip"})}const ji=()=>{let Nn=Pn.current.instance;if(Wt!=null&&Nn&&an){const Vn=Nn.getModel();Vn&&Wt!==Vn.getValue()&&(Fe=!0,Vn.setValue(Wt),Nn.layout(),Fe=!1)}};(0,ve.useEffect)(()=>{const Nn=at.Z.subscribe("formatDocument",Vn=>{var Pi;let pi=Pn.current.instance;(Pi=pi==null?void 0:pi.getAction)==null||Pi.call(pi,"editor.action.formatDocument").run()});return window.updateMonacoValue=Vn=>{Ui(Vn)},Nn},[]),(0,ve.useEffect)(()=>{var Nn;let Vn=Pn.current.instance;gi.current&&clearTimeout(gi.current),gi.current=setTimeout(()=>{ji()},500),Wt&&(Wt!=null&&Wt.length)&&((Nn=Vn==null?void 0:Vn.updateOptions)==null||Nn.call(Vn,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(Wt.split(/\r\n|\r|\n/g).length))+3,5)}))},[Wt,an,Pn.current]),(0,ve.useEffect)(()=>{if(Qr&&Pn.current&&Pn.current.instance){let Vn=Pn.current.instance;Vn.changeViewZones(function(Pi){var pi=document.createElement("div");pi.style.padding="10px 20px",pi.style.width="calc(100% - 20px)",pi.className="my-error-line-wrp",pi.innerHTML=to,Pi.addZone({afterLineNumber:Qr||11,heightInLines:3,domNode:pi})});var Nn={domNode:null,getId:function(){return"my.overlay.widget"},getDomNode:function(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.innerHTML="",this.domNode.style.width="100%",this.domNode.style.padding="20px 100px",this.domNode.style.right="0px",this.domNode.style.top="50px",this.domNode.style.position="relative",this.domNode.style.color="#333"),this.domNode},getPosition:function(){return null}};Vn.addOverlayWidget(Nn),Vn.revealPositionInCenter({lineNumber:20,column:1})}},[Qr,Pn.current,an]);const lr=(Nn="",Vn)=>{if(!Nn||Nn.trim()==="")return!0;const pi=Pn.current.instance.getModel().getLineTokens(Vn);let tn=!1;for(let Wi=0;Wi<2;Wi++)pi.getStandardTokenType(Wi)===1&&(tn=!0);return tn};(0,ve.useEffect)(()=>{var Nn;const Vn=(Nn=Pn.current)==null?void 0:Nn.instance;if(Vn&&an&&Bi){const Pi=Vn.onDidBlurEditorWidget(()=>{un.current=!1}),pi=Vn.onDidFocusEditorText(()=>{un.current=!0});return()=>{Pi.dispose(),pi.dispose()}}},[Pn.current,an,Bi]),(0,ve.useEffect)(()=>{var Nn;if((Nn=Pn.current)!=null&&Nn.instance&&an&&xo){let Vn=Pn.current.instance,Pi=Vn.getModel();if(!Pi)return;(()=>{var bi;let tr=[],Mi=[];const kr=Pi.getAllDecorations();for(let Lr of kr)Lr.options.className==="highlighted-line"&&(tr.push((bi=Lr==null?void 0:Lr.range)==null?void 0:bi.startLineNumber),Mi.push(Lr==null?void 0:Lr.id));if(no===tr[0])return;Pi.deltaDecorations(Mi,[]);const rr=Pi.getLineCount();no&&no<=rr&&(Vn.deltaDecorations([],[{range:new Ye.Range(no,1,no,Pi.getLineMaxColumn(no)),options:{isWholeLine:!0,className:"highlighted-line"}}]),Vn.revealLineInCenter(no))})();const tn=(bi=!1)=>{var tr;let Mi=[],kr=[];const rr=Pi.getAllDecorations();for(let Lr of rr)Lr.options.linesDecorationsClassName==="breakpoints-select"&&(Mi.push((tr=Lr==null?void 0:Lr.range)==null?void 0:tr.startLineNumber),kr.push(Lr==null?void 0:Lr.id));if(bi)return{lines:Mi,ids:kr};qi(Mi)},Wi=bi=>li(void 0,null,function*(){let tr={range:new Ye.Range(bi,1,bi,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield Pi.deltaDecorations([],[tr]),tn()}),yr=bi=>li(void 0,null,function*(){let tr=[];const Mi=Vn.getLineDecorations(bi);for(let kr of Mi)kr.options.linesDecorationsClassName==="breakpoints-select"&&tr.push(kr.id);yield Pi.deltaDecorations(tr,[]),tn()}),Pr=bi=>{let tr=Vn.getLineDecorations(bi);for(let Mi of tr)if(Mi.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,nn.isEqual)(ri,tn(!0).lines)){Pi.deltaDecorations(tn(!0).ids,[]);const bi=ri.map(tr=>({range:new Ye.Range(tr,1,tr,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));Pi.deltaDecorations([],bi)}const Yn=Vn.onDidChangeModelContent(bi=>{let tr=Vn.getPosition();if(tr){let Mi=tr.lineNumber;clearTimeout(pr.current),pr.current=setTimeout(()=>{lr(Pi.getLineContent(Mi),Mi)?yr(Mi):Pr(Mi)?(yr(Mi),Wi(Mi)):tn()},100)}}),Oi=Vn.onMouseDown(bi=>{var tr,Mi,kr;if(bi.target.detail&&((kr=(Mi=(tr=bi.target)==null?void 0:tr.element)==null?void 0:Mi.className)!=null&&kr.includes("line-numbers"))){let rr=bi.target.position.lineNumber;if(lr(Pi.getLineContent(rr),rr))return;Pr(rr)?yr(rr):Wi(rr)}}),Dr=bi=>{let tr={range:new Ye.Range(bi,1,bi,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};mi.current=Vn.deltaDecorations(mi.current,[tr])},jr=()=>{mi.current=Vn.deltaDecorations(mi.current,[])},oo=Vn.onMouseMove(bi=>{var tr,Mi,kr;if(jr(),bi.target.detail&&((kr=(Mi=(tr=bi.target)==null?void 0:tr.element)==null?void 0:Mi.className)!=null&&kr.includes("line-numbers"))){let rr=bi.target.position.lineNumber;if(lr(Pi.getLineContent(rr),rr))return;Dr(rr)}}),Kt=Vn.onMouseLeave(()=>{jr()});return()=>{Yn.dispose(),Oi.dispose(),oo.dispose(),Kt.dispose()}}},[Pn.current,an,ri,no,xo,Xt]),(0,ve.useEffect)(()=>{var Nn;(Nn=Pn.current)!=null&&Nn.instance&&xo&&Pn.current.instance.setPosition({lineNumber:0,column:0})},[no]);function Zn(){let Nn=Pn.current.instance;if(Nn){const Vn=Nn.getSelection(),Pi=Pn.current.pastePos||{},pi=new Ye.Range(Pi.startLineNumber||Vn.endLineNumber,Pi.startColumn||Vn.endColumn,Pi.endLineNumber||Vn.endLineNumber,Pi.endColumn||Vn.endColumn);setTimeout(()=>{Nn.executeEdits("",[{range:pi,text:""}])},300)}}function Ti(Nn){(window.navigator.platform.match("Mac")?Nn.metaKey:Nn.ctrlKey)&&Nn.keyCode==83&&(Nn.preventDefault(),Di())}const fr=()=>{if(ui&&Pn.current.instance){const Nn=Pn.current.instance.getContentHeight();Qt(Nn<bt?bt:Nn)}else Qt(bt)};function Vr(Nn){var Vn=document.createEvent("MouseEvents");Vn.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),Nn.dispatchEvent(Vn)}const ci=Nn=>{if(!un.current)return;const{keyCode:Vn,ctrlKey:Pi,metaKey:pi,target:tn,type:Wi}=Nn;return(Wi==="paste"||(Vn===67||Vn===86)&&(pi||Pi))&&tn.nodeName==="TEXTAREA"&&(Zi(),Nn.preventDefault()),!1};function ut(Nn,Vn){var Pi=window.URL||window.webkitURL||window,pi=new Blob([Vn]),tn=document.createElementNS("http://www.w3.org/1999/xhtml","a");tn.href=Pi.createObjectURL(pi),tn.download=Nn,Vr(tn)}(0,ve.useEffect)(()=>{fr()},[fr]),(0,ve.useEffect)(()=>{Le.current&&!an&&Promise.all([we.e(8909),we.e(6656)]).then(we.bind(we,71448)).then(Nn=>{try{Ye=Nn,Pn.current.instance=Ye.editor.create(Le.current,{value:Wt,language:Ne(Xt),theme:Ln,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:Er||!1}},Cn);const Vn=Pn.current.instance;let tn=[...Lt.BH._menuItems].find(Yn=>Yn[0]._debugName=="EditorContext")[1],Wi=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],yr=(Yn,Oi)=>{var Dr,jr;let oo=Yn._first;do Oi.includes((jr=(Dr=oo.element)==null?void 0:Dr.command)==null?void 0:jr.id)&&Yn._remove(oo);while(oo=oo.next)};if(ir(Vn,Ye),setTimeout(()=>{fr(),Pn.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{ut(co||"educoder.txt",Vn.getValue())}})},500),Pn.current.subscription=Vn.onDidChangeModelContent(Yn=>{ti.current?clearTimeout(Yi.current):(fr(),Ui(Vn.getValue(),Yn)),Yi.current=setTimeout(()=>{ti.current=!1},500)}),window.Monaco||Ie(Ye,Ne(Xt)),Bi&&(yr(tn,Wi),Le.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",ci),window.removeEventListener("paste",ci),window.addEventListener("keydown",ci),window.addEventListener("paste",ci)),window.Monaco=Ye,Ci&&Vn.onDidBlurEditorWidget(()=>{Ci(Vn.getValue())}),Ir&&Vn.onDidFocusEditorText(()=>{Bi&&ke(),Ir(Vn.getValue())}),Bi){ke();try{Vn.onDidPaste(Yn=>{const Oi=Vn.getSelection(),Dr=Pn.current.pastePos||{},jr=new Ye.Range(Dr.startLineNumber||Oi.endLineNumber,Dr.startColumn||Oi.endColumn,Dr.endLineNumber||Oi.endLineNumber,Dr.endColumn||Oi.endColumn);Vn.executeEdits("",[{range:Yn.range,text:""}])})}catch(Yn){}}let Pr=mn();return lo&&typeof lo=="string"&&new Dt(lo,Vn,Ye),jt(!0),()=>{const Yn=Pn.current.instance;Yn.dispose();const Oi=Yn.getModel();Oi&&Oi.dispose(),Pn.current.subscription&&Pn.current.subscription.dispose(),Pr.unobserve(Le.current)}}catch(Vn){}})},[]),(0,ve.useEffect)(()=>{if(Pn.current.instance&&an)return document.addEventListener("keydown",Ti,!1),()=>{document.removeEventListener("keydown",Ti)}},[Di,an]),(0,ve.useEffect)(()=>{let Nn=Pn.current.instance;if(Nn&&an){let Vn=Ne(Xt);Ye.editor.setModelLanguage(Nn.getModel(),Vn)}},[Xt,an]),(0,ve.useEffect)(()=>{Pn.current.instance&&an&&Ye.editor.setTheme(Ln)},[Ln,an]),(0,ve.useEffect)(()=>{let Nn=Pn.current.instance;Un.current=$n,Nn&&an&&(Nn.updateOptions(kt({},$n)),setTimeout(()=>{Nn.getModel().updateOptions(kt({},$n))},200))},[JSON.stringify($n),an]),(0,ve.useEffect)(()=>{let Nn=Pn.current.instance;Nn&&an&&Nn.layout()},[Ot,bt,an]);const[Nt,Rn]=(0,ve.useState)(yi(Ot)),[In,Qt]=(0,ve.useState)(yi(bt)),qn=vt(kt({},pn),{width:Nt,height:In,position:"relative"});return ve.createElement("div",{className:"my-monaco-editor",ref:Le,style:qn},Jn&&ve.createElement(He.CopyToClipboard,{text:Wt,onCopy:()=>It.ZP.success("\u590D\u5236\u6210\u529F")},ve.createElement(Tt.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 _t({width:Bt="100%",height:rn="100%",original:Ot,modified:bt,language:Wt,options:Xt={}}){const pn=(0,ve.useRef)(),[$n,Cn]=(0,ve.useState)(null);function Ln(ui){let Bi;return pn.current&&(Bi=new _e.Z(Ui=>{for(let ir of Ui)(ir.target.offsetHeight>0||ir.target.offsetWidth>0)&&ui.layout()}),Bi.observe(pn.current)),Bi}(0,ve.useEffect)(()=>(pn.current&&Promise.all([we.e(8909),we.e(9404)]).then(we.bind(we,2550)).then(ui=>{Ye=ui;const Bi=Ye.editor.createDiffEditor(pn.current,vt(kt({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},Xt),{wordWrap:!0}));Cn(Bi);let Ui=Ln(Bi);return()=>{Bi.dispose();const ir=Bi.getModel();ir&&ir.dispose(),Ui.unobserve(pn.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,ve.useEffect)(()=>{$n&&$n.setModel({original:Ye.editor.createModel(Ot,Wt),modified:Ye.editor.createModel(bt,Wt)})},[Ot,bt,Wt,$n]);const Ci=yi(Bt),Jn=yi(rn),Di={width:Ci,height:Jn};return ve.createElement("div",{className:"my-diff-editor",ref:pn,style:Di})}},10661:function(gn,en,we){"use strict";we.d(en,{Z:function(){return xt}});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"},_e=we(29787),lt=we(25399),it=we(92310),rt=we.n(it),ze=we(51257),Ue=we(28426),yt=we(48790),tt=we(59301),xt=({className:Ve,dataSource:ct=[],col:Ee=4,right:ne,bottom:te=23,precision:ue=0,wrapWidth:se=1200,trackEventItems:de,loading:pe,onRemove:ye=()=>{},isCurrent:Ce=!0,showAlias:je=!1})=>{const Te=Math.floor((se-(Ee-1)*ne)/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 tt.createElement(_e.Z,{spinning:pe},tt.createElement("div",{className:rt()(ve.list,Ve)},!!(ct!=null&&ct.length)&&(ct==null?void 0:ct.map((Oe,Re)=>{var nt;const{name:ot,id:wt,identifier:gt,featured:Dt,school_name:Lt,image_url:It,excellent:Tt,is_plan:nn}=Oe;return tt.createElement("div",{key:wt,className:ve.wrap,style:{width:Te,marginRight:(1+Re)%Ee===0?0:ne+ue,marginBottom:te}},tt.createElement("a",{className:ve.li,onClick:at=>{at.preventDefault(),at.stopPropagation(),de&&(0,ze.L9)([de]),(0,ze.xg)(`/paths/${gt}`)}},tt.createElement("div",{className:ve.img},tt.createElement("img",{className:ve.cover,src:`${It}`}),Ce&&(0,yt.bg)()&&(Oe==null?void 0:Oe.studying)&&tt.createElement("div",{className:`${ve.movebq} user-path-items`,onClick:at=>{at.stopPropagation(),ye(Oe)}},tt.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),tt.createElement("span",{className:"c-red"},"\u79FB\u9664")),(nt=Oe==null?void 0:Oe.subject_tags)==null?void 0:nt.map((at,He)=>{var Rt,Zt;if(He===0){const Mt=(Rt=Ie.find(zt=>zt.name==at))==null?void 0:Rt.swimg;return tt.createElement("img",{className:ve.sign,src:Mt,style:{left:"-4px"}})}const Yt=(Zt=Ie.find(Mt=>Mt.name==at))==null?void 0:Zt.ptimg;return tt.createElement("img",{className:ve.sign,src:Yt,style:{left:`${48+52*(He-1)+2*He}px`}})}),tt.createElement("div",{style:{position:"absolute",top:"150px",left:"4px"}},(Oe==null?void 0:Oe.excellent)&&tt.createElement("div",{className:ve.bq},"\u5F00\u653E\u8BFE\u7A0B"))),tt.createElement("div",{className:ve.name},tt.createElement(lt.Z,{title:je&&(Oe!=null&&Oe.excellent_alias_name)?tt.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${ot}`,tt.createElement("br",null),tt.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${Oe==null?void 0:Oe.excellent_alias_name}`)):ot},tt.createElement("span",{className:ve.e},je&&(Oe==null?void 0:Oe.excellent_alias_name)||ot))),tt.createElement(lt.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${Lt}`},tt.createElement("div",{className:ve.unit},tt.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),Lt)),tt.createElement("div",{className:ve.tags},tt.createElement("div",null,tt.createElement(lt.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},tt.createElement("span",null,tt.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),tt.createElement("span",null,Oe.stages_count))),tt.createElement(lt.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},tt.createElement("span",null,tt.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),tt.createElement("span",null,Oe.members_count)))))))})),!ct.length&&tt.createElement(Ue.Z,null)))}},9148:function(gn,en,we){"use strict";we.d(en,{jL:function(){return rt},w9:function(){return Rt},QD:function(){return Ci},cQ:function(){return It.Z},op:function(){return Wt},O5:function(){return Un},_b:function(){return ir},t7:function(){return se},Gi:function(){return Dn},YG:function(){return zt},qp:function(){return xt},vr:function(){return ui},qE:function(){return $n},Je:function(){return ye},wb:function(){return Lt},cq:function(){return We},tp:function(){return Ee}});var ve=we(59301),_e={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"},lt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAAA0CAYAAAAkEw66AAAAAXNSR0IArs4c6QAAGNVJREFUeF7VmwmwHVWdxr9zuvvu9+3ZXsxCiNkIQZOwEzMgyADjggsWgzPqOAJaMiCjYiGKqDBQAo4iWGAxA+ooMm7gBhSyhBBRIIBSAQlrHuTt7913t97PmfpOd4cXlLAFGO6rW9237719+/z6+6/nPIHX+XHttddaex38nlW2lLO1svq1wJ4aeFMM9CqF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2cH45j9k0Dy58Zreitwr0dSRK5J0YbwJDLfo39eWTDrTOebkDeL2+13e5nnPZfrh/UTdmVvOJb6fq6OsIzziK9H8lCI6RldtMcX46ZbDT9V//oJ6fAz4iBI7VMfYp5SBmEFw1uTNcezFcB56YQPv329qHfPXo8n2vF4BX8rsXbdS/WD0L72ZThfA4NrqiLIdlMGSfjtBYn1Nx9HH1wDQ7Nj9v6/zGB3S5HWCvUlFfvWiGWMYFQpQzzXSoAfxlWD1w0X1y33tPEkyy33CPk6/TBx8yF7f05pDjuIrOzuaaVUoExxKT43a5akFCtVys3+Wcwweu1dbHV+LxN3VhPsEx8jANGfOAh4eiL5x0iHPeG47YtAv+9I3xp9f0yIvLDAw6ySIY/ExSnpkqVcels/x/syLgtXHpx9bhlF2CO/tanVuzHHfPqmJVOf0nNdr5SFP7D02Eb/3iEfkdtdsbFeCXbtYfXlDGueU85iKZsjXZklnpyZdpGmgWFcS4pGsQnzvuOBG/4CzXFX/Qp+zZi28pPzkZHeNIS337X2+Qp+IckWajb1RsyXWffqOeN8tRH+rKyWOhsSBnYyYziiCAa0k8EQKb2kF01acPc3akXS8IbsW1Onf6AnVib16ewqWz21vq9qu2yNPeqL7thW7xZ65391jcV1jE/1qKFcaeCfDwOYeK9D83nv32/wHzrWgvjJ8Q7AAAAABJRU5ErkJggg==",rt=({dataSource:gi=[],img:mi,imgWidth:ti=346,title:Yi,sunTitle:pr,bannerExtraContent:un})=>ve.createElement("div",{className:_e.banner},ve.createElement("div",{className:_e.content},ve.createElement("aside",null,ve.createElement("p",null,ve.createElement("b",null,Yi),ve.createElement("span",null,pr)),gi.length>0&&ve.createElement("div",{className:_e.btns},gi.map((an,jt)=>ve.createElement("div",{key:jt,onClick:an.click},an.name,an.sign?ve.createElement("img",{src:lt,width:39}):null))),un),mi&&ve.createElement("img",{style:{marginTop:33,marginRight:38},src:mi,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),yt=we.n(Ue),tt=we(89392),xt=({dataSource:gi=[],value:mi,onChange:ti,onTitleChange:Yi,className:pr,title:un,titleWidth:an=41,style:jt={},fontColor:mn="#6A7283",showCount:Zi})=>{const[ji,lr]=(0,ve.useState)(0),[Zn,Ti]=(0,ve.useState)(!1),fr=(0,ve.useRef)(null),Vr=(0,ve.useRef)(null);return(0,ve.useEffect)(()=>{var ci;gi.length!==0&&(((ci=fr==null?void 0:fr.current)==null?void 0:ci.clientHeight)>97?lr(1):lr(0)),gi.length===0&&lr(0),Ti(!1)},[gi]),ve.createElement("div",{className:yt()(ze.row,pr),style:jt},ve.createElement("div",{onClick:(0,tt.throttle)(()=>Yi==null?void 0:Yi(),2e3),style:{width:an,marginTop:Zn?12:4},className:`${ze.title} ${Yi?"current":""}`},un),ve.createElement("div",{className:Zn?`${ze.tagsWrap} ${ze.tagsBorderWrap}`:ze.tagsWrap},ve.createElement("div",{className:ze.bar,ref:Vr,style:ji>0?{height:ji===1?97:"auto",overflow:ji===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},ve.createElement("div",{className:ze.tag,ref:fr},gi==null?void 0:gi.map(ci=>ve.createElement("span",{onClick:()=>ti(ci.id),key:ci.id,style:{color:mn},className:mi===ci.id?ze.active:""},ve.createElement("span",{title:ci.name,className:ze.name},ci.name),!!Zi&&ve.createElement("span",{className:ze.num},ci.count))))),!!ji&&ve.createElement(ve.Fragment,null,ji===1?ve.createElement("div",{onClick:()=>{var ci;lr(2),((ci=fr==null?void 0:fr.current)==null?void 0:ci.clientHeight)>245?Ti(!0):Ti(!1)},className:ze.action},"\u5C55\u5F00",ve.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):ve.createElement("div",{onClick:()=>{Vr.current.scrollTop=0,lr(1),Ti(!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:mi,onChange:ti,className:Yi,style:pr={}})=>ve.createElement("div",{style:pr,className:yt()(Ve.tabs,Yi)},gi.map(un=>ve.createElement("span",{onClick:()=>ti(un.id),className:mi===un.id?Ve.active:"",key:un.id},un.name))),ne={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"},te=we(37568),se=({dataSource:gi=[],value:mi="",onChange:ti,onInputChange:Yi=()=>{},className:pr,style:un={},placeholder:an,allowClear:jt=!1})=>{var mn;const[Zi,ji]=(0,ve.useState)(""),[lr,Zn]=(0,ve.useState)("");(0,ve.useEffect)(()=>{var Vr;let ci=mi;(Vr=JSON.stringify(mi))!=null&&Vr.includes("{")&&(ji(mi.id),ci=mi.value||"");try{Zn(decodeURIComponent(ci||""))}catch(ut){Zn(decodeURIComponent(ci||""))}},[mi]);const Ti=()=>{ti(encodeURIComponent(lr),Zi||null)},fr=Vr=>{Vr!==Zi&&(ji(Vr),ti(encodeURIComponent(lr),Vr))};return ve.createElement("div",{className:yt()(ne.input,pr),style:un},!!gi.length&&ve.createElement("div",{className:ne.dropdown},ve.createElement("div",{className:ne.text},(mn=gi.find(Vr=>Vr.id===Zi))==null?void 0:mn.name,ve.createElement("i",{className:"iconfont icon-zhankai4"}),ve.createElement("b",{className:ne.b1}),ve.createElement("b",{className:ne.b2})),ve.createElement("div",{className:ne.menu},gi.map((Vr,ci)=>ve.createElement("div",{key:ci,onClick:()=>fr(Vr.id)},Vr.name)))),ve.createElement(te.default,{onPressEnter:Ti,value:lr,onChange:Vr=>{Zn(Vr.target.value),Yi(encodeURIComponent(Vr.target.value),Zi||null)},bordered:!1,placeholder:an}),ve.createElement("i",{onClick:Ti,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:mi,className:ti,total:Yi,pageSize:pr,style:un={}})=>{const an=gi<2,jt=gi>=Math.ceil(Yi/pr);return Yi<=pr?ve.createElement(ve.Fragment,null):ve.createElement("div",{className:yt()(de.quickPager,ti),style:un},ve.createElement("div",{onClick:()=>{an||mi(gi-1,"prev")},className:an?de.disabled:""},"\u4E0A\u4E00\u9875"),ve.createElement("div",{onClick:()=>{jt||mi(gi+1,"next")},className:jt?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"},je=we(29787),Te=we(25399),Ie=we(58018),Oe=we(346),Re=we(51257),nt=we(96908),ot=we(57177),wt=we(81378),gt=we(28426),Lt=({className:gi,dataSource:mi=[],col:ti=4,right:Yi,bottom:pr=23,precision:un=0,wrapWidth:an=1200,trackEventItems:jt,loading:mn})=>{const Zi=Math.floor((an-(ti-1)*Yi)/ti);return ve.createElement(je.Z,{spinning:mn},ve.createElement("div",{className:yt()(Ce.list,gi)},!!mi.length&&mi.map((ji,lr)=>{const{name:Zn,id:Ti,identifier:fr,power:Vr,cover_image_id:ci,pic:ut}=ji;return ve.createElement("div",{className:Ce.wrap,key:Ti,style:{width:Zi,marginRight:(1+lr)%ti===0?0:Yi+un,marginBottom:pr}},ve.createElement("a",{target:"_blank",href:`/shixuns/${fr}/challenges`,className:Ce.li,onClick:Nt=>{Nt.preventDefault(),jt&&(0,Re.L9)([jt]),Vr&&(0,Re.xg)(`/shixuns/${fr}/challenges`)}},ve.createElement("div",{className:Ce.img},ve.createElement("img",{className:Ce.cover,src:`${ut}`}),ji.is_jupyter&&ve.createElement("img",{className:Ce.sign,src:nt}),ji.is_jupyter_lab&&ve.createElement("img",{className:Ce.sign,src:ot}),ji.is_unity_3d&&ve.createElement("img",{className:Ce.sign,src:wt})),ve.createElement("div",{className:Ce.name},ve.createElement(Te.Z,{title:Zn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},ve.createElement("span",{className:Ce.e},Zn||"\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,ji.challenges_count))),!!ji.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,ji.myshixuns_count))),ve.createElement(Te.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},ve.createElement("span",null,ve.createElement("span",null,ji.level))),ve.createElement("div",{className:Ce.rate},ve.createElement(Ie.Z,{allowHalf:!0,disabled:!0,defaultValue:ji.score_info}),ve.createElement("span",null,"\xA0",ji.score_info?`${ji.score_info}\u5206`:"5\u5206")))),!Vr&&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")))}),!mi.length&&ve.createElement(gt.Z,null)))},It=we(10661),Tt={flex_box_center:"flex_box_center___eMcr7",flex_space_between:"flex_space_between___HcNca",flex_box_vertical_center:"flex_box_vertical_center___ZnvVN",flex_box_center_end:"flex_box_center_end___fdgDf",flex_box_column:"flex_box_column___SEKvd",list:"list___L1hmU",wrap:"wrap___pKgcW",lockWrap:"lockWrap___SMhkK",top:"top___udHSB",sign:"sign___uwRpq",name:"name___Fpf90",img:"img___AMLhL",text:"text___KiTb7",btns:"btns___i6IuZ",bottom:"bottom____k2sh"},nn="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9Ht3+9459+yX8Bq4mDmWK2GLqla3MvFWZt4KpjVMSBNzGoQ0M6WJkJbpMiNDxBkwMkyUIUYGxCeJaB8x7fMcZ18yiv1EVHy1Lw+9GicwO8tXlSrlbSB6O4HfANAmZlY250JEHsBHGLQTzA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n6ajr3ionqHQylo4B9im59Ase6EFmbhCi3slwLj4TXgEiyivwOxKJ6OOdrkxXAEun4nVij+VQS+sRRp1O6rXwnOy1pOi9yZj7P93Mp2uApfNMvvIRAn/nIsjdQDH3rIDLoI+lE+6/dtuiFYBDlHz3RXbdHSTClknRB7qlXDMKawCbPbnK9F8XBa9OQRYrFb+nmz23vmerABvpulwt339RhWoPZFGFIk7k9k6l5cV6sw6w0ZOrqHzvojGkRZCJdjhwP9iJntush54ALJ2KwJUrVL4M4A9frbbrZovX7fdiWwbwN8m4+7l2LVSt9t0zgM0AxEHhVflbF/flBbvjtHLot9pxHLQK6jxdupOH2n1GuxpR+S6Yb2332dfk/USPOnA/2qrLr5s16DkFm8EJm84Xq5/wPP7LC5eaaVop+pNEzPlmwJ67wa6lZ5cN4BDQw9l8+StEdNeFsjcLmMz89VQi8qdEdKYlZCzdtOwAm3EHIblfZeabLc1lVTYjccsK/NlEIvrESgxwxQAOCWHv9jz+Aph/cSUWoGd9Ej2mFH3RlkWq03GuOMBm4JLwRh4+z+DbOp3ManhOsvxY4UvpeOSR1TGe1TCK0BiC/OS7APoQwKHqHKtsoPOGQzMA/7sCvp5MRp9aTSNdNRRcvyhSTqJQqN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",at=we(59301),Rt=({className:gi,dataSource:mi=[],col:ti=4,right:Yi,bottom:pr=23,precision:un=0,wrapWidth:an=1200,trackEventItems:jt,loading:mn,handleVery:Zi=()=>!0})=>{const ji=Math.floor((an-(ti-1)*Yi)/ti);return at.createElement(je.Z,{spinning:mn},at.createElement("div",{className:yt()(Tt.list,gi)},!!mi.length&&mi.map((lr,Zn)=>{const{subject_identifier:Ti,id:fr,identifier:Vr,power:ci}=lr,ut=lr.is_public!=0&&lr.is_public;return at.createElement("div",{className:Tt.wrap,key:fr,style:{width:ji,marginRight:(1+Zn)%ti===0?0:Yi+un,marginBottom:pr}},at.createElement("a",{className:Tt.li,onClick:Nt=>{Nt.preventDefault(),Zi(lr==null?void 0:lr.first_category_url)&&(jt&&(0,Re.L9)([jt]),(0,Re.xg)(lr.first_category_url))}},at.createElement("div",{className:Tt.top},at.createElement(Te.Z,{title:lr.name},at.createElement("div",{className:Tt.name},lr.name)),at.createElement("img",{className:Tt.img,src:Oe.Z.IMG_SERVER+"/images/"+lr.avatar_url}),at.createElement("div",{className:Tt.text,title:lr.creator},lr.creator),Ti&&at.createElement("div",{className:Tt.btns},at.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),at.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),ut&&at.createElement("div",{className:Tt.sign},"\u516C\u5F00")),at.createElement("div",{className:Tt.bottom},lr.visits>0&&at.createElement(Te.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},at.createElement("span",null,at.createElement("i",{className:"iconfont icon-liulanyan"}),at.createElement("span",null,lr.visits))),lr.course_members_count>0&&at.createElement(Te.Z,{title:"\u6210\u5458",placement:"bottom"},at.createElement("span",null,at.createElement("i",{className:"iconfont icon-chengyuan"}),lr.course_members_count)),lr.tasks_count>0&&at.createElement(Te.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},at.createElement("span",null,at.createElement("i",{className:"iconfont icon-zuoye"}),lr.tasks_count)),lr.is_end?at.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):at.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!lr.is_accessible&&at.createElement("div",{className:Tt.lockWrap},at.createElement("img",{src:`${Oe.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),at.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!mi.length&&at.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"},Yt=we(25690),zt=({dataSource:gi=[],value:mi,onChange:ti,className:Yi,style:pr={},tabBarExtraContent:un})=>ve.createElement("div",{className:yt()(Zt.tabs,Yi),style:pr},ve.createElement("div",{className:Zt.tabsWrap},gi.map((an,jt)=>!(an!=null&&an.hide)&&ve.createElement("aside",{className:Zt.tab,onClick:()=>{ti(an.id),an.link&&Yt.history.push(an.link)},key:jt},ve.createElement("div",{className:mi===an.id?Zt.active:""},an.name),(an==null?void 0:an.resetCount)==null&&(an==null?void 0:an.total)!==void 0&&ve.createElement("span",null,"\uFF08",an==null?void 0:an.total,"\uFF09"),(an==null?void 0:an.resetCount)!==void 0&&(an==null?void 0:an.total)!==void 0&&ve.createElement(Te.Z,{title:(an==null?void 0:an.tip)!=null?an==null?void 0:an.tip:""},ve.createElement("span",{style:{color:"#9096A3"}},"\uFF08",ve.createElement("span",{style:{color:"#000"}},an==null?void 0:an.resetCount),"/",ve.createElement("span",null,an==null?void 0:an.total),"\uFF09"))))),ve.createElement("div",{className:Zt.tabBar},un)),Dn=({className:gi,style:mi={},children:ti})=>ve.createElement("div",{className:yt()(gi),style:mi},ti),kt={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"},vt=we(75727),hn=we(93041);const li=[{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:mi,className:ti,onSort:Yi,onDrop:pr,dataSource:un=li})=>{var an;return ve.createElement("div",{className:yt()(kt.orderWrap,ti)},ve.createElement(vt.Z,{dropdownRender:()=>ve.createElement(hn.default,null,un.map((jt,mn)=>ve.createElement(hn.default.Item,{key:mn,onClick:()=>pr(jt.id)},jt.name)))},ve.createElement("span",{className:kt.orderTextWrap},(an=un.find(jt=>mi===jt.id))==null?void 0:an.name)),ve.createElement("span",{className:kt.orderIconWrap},ve.createElement("span",{className:kt.orderAsc},ve.createElement("i",{className:gi==="asc"?`iconfont icon-sanjiaoxing-up font12 ${kt.cursorPointer} ${kt.active}`:`iconfont icon-sanjiaoxing-up font12 ${kt.cursorPointer}`,onClick:()=>Yi(gi==="asc"?"desc":"asc")})),ve.createElement("span",{className:kt.orderDesc},ve.createElement("i",{className:gi==="desc"?`iconfont icon-sanjiaoxing-down font12 ${kt.cursorPointer} ${kt.active}`:`iconfont icon-sanjiaoxing-down font12 ${kt.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,Ye=Object.getOwnPropertySymbols,ke=Object.prototype.hasOwnProperty,et=Object.prototype.propertyIsEnumerable,_t=(gi,mi,ti)=>mi in gi?Ne(gi,mi,{enumerable:!0,configurable:!0,writable:!0,value:ti}):gi[mi]=ti,Bt=(gi,mi)=>{for(var ti in mi||(mi={}))ke.call(mi,ti)&&_t(gi,ti,mi[ti]);if(Ye)for(var ti of Ye(mi))et.call(mi,ti)&&_t(gi,ti,mi[ti]);return gi},rn=(gi,mi)=>{var ti={};for(var Yi in gi)ke.call(gi,Yi)&&mi.indexOf(Yi)<0&&(ti[Yi]=gi[Yi]);if(gi!=null&&Ye)for(var Yi of Ye(gi))mi.indexOf(Yi)<0&&et.call(gi,Yi)&&(ti[Yi]=gi[Yi]);return ti},Ot=(gi,mi,ti)=>new Promise((Yi,pr)=>{var un=mn=>{try{jt(ti.next(mn))}catch(Zi){pr(Zi)}},an=mn=>{try{jt(ti.throw(mn))}catch(Zi){pr(Zi)}},jt=mn=>mn.done?Yi(mn.value):Promise.resolve(mn.value).then(un,an);jt((ti=ti.apply(gi,mi)).next())}),Wt=gi=>{var mi=gi,{className:ti,style:Yi,children:pr,loading:un=!1,openLoading:an,onClick:jt=()=>{},size:mn="middle",shape:Zi="round"}=mi,ji=rn(mi,["className","style","children","loading","openLoading","onClick","size","shape"]);const[lr,Zn]=(0,ve.useState)(!1);return ve.createElement(xe.ZP,Bt({onClick:(0,tt.throttle)(Ti=>Ot(void 0,null,function*(){an&&Zn(!0);try{yield jt(Ti)}catch(fr){console.log("error",fr)}an&&Zn(!1)}),2e3,{leading:!0,trailing:!1}),className:yt()(Fe.btn,Fe[`${mn}-${Zi}`],ti),style:Yi,size:mn,shape:Zi,loading:lr||un},ji),pr)},Xt={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"},$n=({className:gi,style:mi,children:ti=null,onClick:Yi,title:pr})=>ve.createElement("div",{className:yt()(Xt.head,gi),style:mi},ve.createElement("span",{className:"primary-hover",onClick:Yi},ve.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),ve.createElement("b",{title:pr},pr),ve.createElement("div",{className:Xt.node},ti)),Cn={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:mi,confirmClick:ti,cancelShow:Yi=!0,cancelTitle:pr,cancelClick:un,className:an,style:jt,confirmLoading:mn=!1})=>ve.createElement("div",{className:yt()(Cn.btns,an),style:jt},gi&&ve.createElement(xe.ZP,{loading:mn,onClick:ti,type:"primary",className:Cn.confirm},mi),Yi&&ve.createElement(xe.ZP,{onClick:un,className:Cn.cancel},pr)),Jn={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"},ui=({className:gi,style:mi={},LeftContent:ti,children:Yi,RightContent:pr})=>ve.createElement("div",{className:yt()(Jn.fixedBottom,gi),style:mi},ve.createElement("div",{className:Jn.wrap},ve.createElement("div",{className:Jn.left},ti),ve.createElement("div",{className:Jn.center},Yi),ve.createElement("div",{className:Jn.right},pr))),Bi={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"},ir=({className:gi,style:mi={},dataSource:ti=[]})=>ve.createElement("div",{className:yt()(Bi.crumbs,gi),style:mi},ti.map((Yi,pr)=>pr<ti.length-1?ve.createElement(ve.Fragment,{key:pr},Yi.path||Yi.onClick?ve.createElement("span",{className:Bi.hover,onClick:Yi!=null&&Yi.onClick?Yi.onClick:()=>Yt.history.push(Yi.path)},Yi.name):ve.createElement("span",null,Yi.name),ve.createElement("span",null,"\xA0",">","\xA0")):ve.createElement("span",{key:pr,style:{color:"#5F6368"}},Yi.name))),Ir=we(11938),qi=Object.defineProperty,ri=Object.defineProperties,co=Object.getOwnPropertyDescriptors,Qr=Object.getOwnPropertySymbols,to=Object.prototype.hasOwnProperty,no=Object.prototype.propertyIsEnumerable,xo=(gi,mi,ti)=>mi in gi?qi(gi,mi,{enumerable:!0,configurable:!0,writable:!0,value:ti}):gi[mi]=ti,lo=(gi,mi)=>{for(var ti in mi||(mi={}))to.call(mi,ti)&&xo(gi,ti,mi[ti]);if(Qr)for(var ti of Qr(mi))no.call(mi,ti)&&xo(gi,ti,mi[ti]);return gi},Er=(gi,mi)=>ri(gi,co(mi)),io=(gi,mi)=>{var ti={};for(var Yi in gi)to.call(gi,Yi)&&mi.indexOf(Yi)<0&&(ti[Yi]=gi[Yi]);if(gi!=null&&Qr)for(var Yi of Qr(gi))mi.indexOf(Yi)<0&&no.call(gi,Yi)&&(ti[Yi]=gi[Yi]);return ti};const{Countdown:Le}=Ir.default;var Un=gi=>{var mi=gi,{onChange:ti}=mi,Yi=io(mi,["onChange"]);const[pr,un]=(0,ve.useState)(null);(0,ve.useEffect)(()=>{typeof pr=="number"&&pr>=0&&ti(pr)},[pr]);const an=jt=>{const mn=Math.floor(jt/1e3);un(mn)};return ve.createElement(Le,Er(lo({},Yi),{onChange:an}))}},37808:function(gn,en,we){"use strict";we.d(en,{Z:function(){return _e}});var ve=we(59301);function _e(lt,it){const rt=(0,ve.useRef)();(0,ve.useEffect)(()=>{rt.current=lt}),(0,ve.useEffect)(()=>{function ze(){rt.current()}if(it!==null){let Ue=setInterval(ze,it);return()=>clearInterval(Ue)}},[it])}},95024:function(gn,en,we){"use strict";var ve=we(59301),_e=we(62957),lt=we(38986),it=we(25690),rt=we(59301),ze=(yt,tt,De)=>new Promise((xt,Ve)=>{var ct=te=>{try{ne(De.next(te))}catch(ue){Ve(ue)}},Ee=te=>{try{ne(De.throw(te))}catch(ue){Ve(ue)}},ne=te=>te.done?xt(te.value):Promise.resolve(te.value).then(ct,Ee);ne((De=De.apply(yt,tt)).next())});const Ue=({exercise:yt,dispatch:tt,init:De,haveInit:xt=!1})=>{const Ve=(0,it.useParams)(),[ct,Ee]=(0,ve.useState)(!1);let[ne,te]=(0,ve.useState)();const[ue,se]=(0,ve.useState)(!1),[de,pe]=(0,ve.useState)(!1);(0,ve.useEffect)(()=>{yt.actionTabs.key==="\u5355\u4E2A\u52A0\u5165\u8BD5\u5377\u5E93"&&ye()},[yt.actionTabs]);function ye(){return ze(this,null,function*(){var Ce,je;let Te=yield(0,lt.ZP)(`/api/courses/${Ve==null?void 0:Ve.coursesId}/exercises/check_exercise_cover.json`,{method:"post",body:{check_ids:yt.actionTabs.selectArrs}});if(((Ce=Te==null?void 0:Te.cover_exercises)==null?void 0:Ce.length)>0)Ee(!0),te((je=Te==null?void 0:Te.cover_exercises)==null?void 0:je[0]);else{let Ie=yield(0,lt.ZP)(`/api/courses/${Ve==null?void 0:Ve.coursesId}/exercises/join_examination_banks.json`,{method:"post",body:{check_ids:yt.actionTabs.selectArrs}});tt({type:"exercise/setActionTabs",payload:{key:""}}),(Ie==null?void 0:Ie.status)===0&&(xt&&De(),_e.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 rt.createElement("div",null,rt.createElement(_e.default,{open:ct,centered:!0,onCancel:Ce=>ze(void 0,null,function*(){if(Ce.target.outerText==="\u8986\u76D6\u539F\u6765\u7684\u8BD5\u5377"){se(!0);let je=yield(0,lt.ZP)(`/api/courses/${Ve==null?void 0:Ve.coursesId}/exercises/join_examination_banks.json`,{method:"post",body:{check_ids:yt.actionTabs.selectArrs,update:1}});tt({type:"exercise/setActionTabs",payload:{key:""}}),se(!1),(je==null?void 0:je.status)===0&&(xt&&De(),Ee(!1),_e.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,lt.ZP)(`/api/courses/${Ve==null?void 0:Ve.coursesId}/exercises/join_examination_banks.json`,{method:"post",body:{check_ids:yt.actionTabs.selectArrs}});pe(!1),(Ce==null?void 0:Ce.status)===0&&(xt&&De(),tt({type:"exercise/setActionTabs",payload:{key:""}}),Ee(!1),_e.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"},rt.createElement("div",null,rt.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"),rt.createElement("div",null,rt.createElement("div",null,"\u8BD5\u5377\uFF1A",ne==null?void 0:ne.origin_exercise_nam),rt.createElement("div",null,"\u539F\u8BD5\u5377\uFF1A",rt.createElement("a",{href:`/paperlibrary/see/${ne==null?void 0:ne.examination_bank_id}?defaultActiveKey=0`,target:"_blank"},ne==null?void 0:ne.examination_bank_name))))))};en.Z=(0,it.connect)(({exercise:yt})=>({exercise:yt}))(Ue)},50242:function(gn,en,we){"use strict";we.d(en,{Z:function(){return Ie}});var ve=we(59301),_e=we(62957),lt=we(77019),it=we(5269),rt=we(82326),ze=we(54172),Ue=we(99571),yt=we(9148),tt=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"},xt=we(25690),Ve=we(96622),ct=we(59301),Ee=Object.defineProperty,ne=Object.defineProperties,te=Object.getOwnPropertyDescriptors,ue=Object.getOwnPropertySymbols,se=Object.prototype.hasOwnProperty,de=Object.prototype.propertyIsEnumerable,pe=(Oe,Re,nt)=>Re in Oe?Ee(Oe,Re,{enumerable:!0,configurable:!0,writable:!0,value:nt}):Oe[Re]=nt,ye=(Oe,Re)=>{for(var nt in Re||(Re={}))se.call(Re,nt)&&pe(Oe,nt,Re[nt]);if(ue)for(var nt of ue(Re))de.call(Re,nt)&&pe(Oe,nt,Re[nt]);return Oe},Ce=(Oe,Re)=>ne(Oe,te(Re)),je=(Oe,Re,nt)=>new Promise((ot,wt)=>{var gt=It=>{try{Lt(nt.next(It))}catch(Tt){wt(Tt)}},Dt=It=>{try{Lt(nt.throw(It))}catch(Tt){wt(Tt)}},Lt=It=>It.done?ot(It.value):Promise.resolve(It.value).then(gt,Dt);Lt((nt=nt.apply(Oe,Re)).next())});const Te=({visible:Oe,setVisible:Re,onK:nt,selectKeys:ot,selectRows:wt,appointStudent:gt,modalParams:Dt,courseId:Lt})=>{const It=(0,xt.useParams)(),[Tt,nn]=(0,ve.useState)(!1),[at,He]=(0,ve.useState)(!1),[Rt,Zt]=(0,ve.useState)([]),[Yt,Mt]=(0,ve.useState)([]),[zt,on]=(0,ve.useState)([]),[Dn,kt]=(0,ve.useState)("all"),[vt,hn]=(0,ve.useState)("all");let[li,yi]=(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}),Ye={selectedRowKeys:Yt,columnWidth:40,hideSelectAll:!0,onSelect:(rn,Ot,bt)=>{let Wt=!0;for(let Xt=0;Xt<Yt.length;Xt++)(rn==null?void 0:rn.user_id)===Yt[Xt]&&(Yt==null||Yt.splice(Xt,1),zt==null||zt.splice(Xt,1),Wt=!1);Wt&&(Yt.push(rn==null?void 0:rn.user_id),zt.push(rn)),Mt([...Yt]),on([...zt])},onSelectAll:(rn,Ot,bt)=>{if(rn&&bt.length>0){bt.forEach(Wt=>{Yt.push(Wt.user_id),zt.push(Wt)}),Mt([...Yt]),on([...zt]);return}if(!rn&&bt.length>0){let Wt=[],Xt=[];const pn=new Set(bt),$n=new Set(Yt),Cn=new Set(zt);Wt=[...$n].filter(Ln=>[...pn].every(Ci=>Ci.user_id!==Ln)),Xt=[...Cn].filter(Ln=>[...pn].every(Ci=>Ci.user_id!==Ln.user_id)),Mt([...Wt]),on([...Xt])}}};(0,ve.useEffect)(()=>{Oe&&ot&&(Mt([...ot]),on(wt))},[Oe,ot]),(0,ve.useEffect)(()=>{Oe&&(!gt&&Dt?xe.status=Dt:xe.status=null,Ne(ye({},xe)),et())},[Oe,gt,Dt]);const ke=[{title:"\u5E8F\u53F7",dataIndex:"name",key:"name",ellipsis:!0,fixed:"left",width:100,render:(rn,Ot,bt)=>ct.createElement("span",{style:{color:"#333"}},bt+1)},{title:"\u59D3\u540D",dataIndex:"user_name",key:"user_name",ellipsis:!0,render:(rn,Ot,bt)=>ct.createElement("span",null,rn)},{title:"\u5B66\u53F7",dataIndex:"student_id",key:"student_id",ellipsis:!0,render:(rn,Ot,bt)=>ct.createElement("span",{style:{color:"#666"}},rn)},{title:"\u5206\u73ED1",dataIndex:"user_group_name",key:"user_group_name",align:"left",ellipsis:!0,render:(rn,Ot)=>ct.createElement("span",null,rn)},{title:"\u6700\u7EC8\u6210\u7EE9",dataIndex:"score",key:"score",sorter:!0,render:(rn,Ot)=>ct.createElement("span",null,rn||"--")},{title:"\u72B6\u6001",dataIndex:"status_cn",key:"status_cn",align:"center",ellipsis:!0,render:(rn,Ot)=>ct.createElement("span",null,rn)}].filter(rn=>Dt===1||Dt===2?rn.title!=="\u72B6\u6001":!0),et=()=>je(void 0,null,function*(){var rn,Ot,bt;He(!0);const Wt=yield(0,tt.ZP)(`/api/exercises/${It.categoryId||Lt}/wait_make_up_students.json`,{method:"get",params:Ce(ye({},xe),{keywords:(rn=xe==null?void 0:xe.keywords)==null?void 0:rn.trim()})});if(Wt.status===0){const Xt=((bt=(Ot=Wt==null?void 0:Wt.data)==null?void 0:Ot.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"},...Xt]),Zt(Wt.data)}He(!1)}),_t=()=>{xe.page=1,xe.status=null,xe.course_group_id=null,xe.keywords="",kt("all"),hn("all"),Mt([]),on([]),Ne(ye({},xe)),gt&&nt(Yt==null?void 0:Yt.length,Yt,zt)},Bt=()=>{xe.page=1,xe.status=null,xe.course_group_id=null,xe.keywords="",Ne(ye({},xe)),kt("all"),hn("all"),Mt([]),on([]),Re(!1)};return ct.createElement(_e.default,{centered:!0,className:De.cstuModal,title:Dt===1?"\u7F3A\u8003\u5B66\u751F":Dt===2?"\u672A\u53CA\u683C\u5B66\u751F":"\u9009\u62E9\u8865\u8003\u5B66\u751F",open:Oe,width:1200,footer:null,onCancel:()=>{Bt()}},ct.createElement(lt.Z,{style:{marginBottom:"20px",marginTop:"15px",display:"flex",alignItems:"center",justifyContent:"space-between"}},ct.createElement(lt.Z,null,ct.createElement(it.Z,null,ct.createElement(rt.default,{size:"large",value:Dn,style:{width:200,marginRight:20},onChange:rn=>{kt(rn),rn==="all"?xe.course_group_id=null:xe.course_group_id=rn,xe.page=1,Ne(ye({},xe)),et()},options:We})),gt&&ct.createElement(it.Z,null,ct.createElement(rt.default,{size:"large",value:vt,style:{width:200},onChange:rn=>{hn(rn),rn==="all"?xe.status=null:xe.status=rn,xe.page=1,Ne(ye({},xe)),et()},options:[{value:"all",label:"\u5168\u90E8\u72B6\u6001"},{value:"1",label:"\u7F3A\u8003"},{value:"2",label:"\u672A\u53CA\u683C"},{value:"3",label:"\u53CA\u683C"}]}))),ct.createElement(it.Z,null,ct.createElement(yt.t7,{style:{width:300,marginLeft:15},value:xe.keywords,allowClear:!0,onChange:rn=>{xe.keywords=rn,xe.page=1,Ne(ye({},xe)),et()},placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D\u6216\u5B66\u53F7\u8FDB\u884C\u641C\u7D22"}))),ct.createElement(lt.Z,{align:"middle",className:"mb30"},ct.createElement(it.Z,{span:14},ct.createElement("div",{className:"flexd-table-header"},ct.createElement(ze.default,{pagination:!1,dataSource:[],columns:ke,rowSelection:gt?Ye:null,rowKey:rn=>rn.user_id})),ct.createElement("div",null,ct.createElement(ze.default,{rowSelection:gt?Ye:null,columns:ke,showHeader:!1,style:{minHeight:390},scroll:{y:390},rowKey:rn=>rn.user_id,loading:at,dataSource:Rt==null?void 0:Rt.exercise_users,onChange:(rn,Ot,bt)=>{xe.page=rn==null?void 0:rn.current,xe.limit=rn==null?void 0:rn.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)),et()},pagination:!1}))),ct.createElement(it.Z,{span:1},ct.createElement("img",{src:Ve,style:{marginLeft:10}})),ct.createElement(it.Z,{span:9,style:{display:"flex",justifyContent:"flex-end"}},ct.createElement("div",{className:De.searchMember,style:{width:550}},ct.createElement(lt.Z,{className:De.searchMemberHeader},ct.createElement(it.Z,{className:"ml30",flex:"100px"},"\u59D3\u540D"),ct.createElement(it.Z,{flex:"110px"},"\u5B66\u53F7"),ct.createElement(it.Z,{flex:"120px",style:{marginLeft:5}},"\u5206\u73ED")),ct.createElement("div",{style:{overflow:"auto",height:390}},zt==null?void 0:zt.map((rn,Ot)=>ct.createElement(lt.Z,{key:Ot,align:"middle",style:{height:48,lineHeight:"48px",paddingLeft:30,borderBottom:"1px solid rgba(48,97,208,0.1)"}},ct.createElement(it.Z,{flex:"100px"},rn.user_name),ct.createElement(it.Z,{flex:"110px"},rn.student_id),ct.createElement(it.Z,{flex:"120px",style:{marginLeft:5}},rn.user_group_name),ct.createElement(it.Z,{style:{marginLeft:10}},ct.createElement("i",{className:"iconfont icon-shanchudiao current",onClick:()=>{on(zt.filter(bt=>bt.user_id!=rn.user_id)),Mt(Yt.filter(bt=>bt!=rn.user_id))}})))))))),!(Dt===1||Dt===2)&&ct.createElement("div",{className:De.bottom},ct.createElement(Ue.ZP,{className:De.no,onClick:()=>{Bt()}},"\u53D6\u6D88"),ct.createElement(Ue.ZP,{loading:Tt,type:"primary",onClick:()=>{_t()}},"\u786E\u5B9A")))};var Ie=(0,xt.connect)(({})=>({}))(Te)},64205:function(gn,en,we){"use strict";var ve=we(59301),_e=we(28284),lt=we(6767),it=we(62957),rt=we(29787),ze=we(77019),Ue=we(47889),yt=we(16326),tt=we(62673),De=we(61186),xt=we.n(De),Ve=we(38986),ct=we(51257),Ee=we(25690),ne=we(12327),te=we(71037),ue=Object.defineProperty,se=Object.defineProperties,de=Object.getOwnPropertyDescriptors,pe=Object.getOwnPropertySymbols,ye=Object.prototype.hasOwnProperty,Ce=Object.prototype.propertyIsEnumerable,je=(wt,gt,Dt)=>gt in wt?ue(wt,gt,{enumerable:!0,configurable:!0,writable:!0,value:Dt}):wt[gt]=Dt,Te=(wt,gt)=>{for(var Dt in gt||(gt={}))ye.call(gt,Dt)&&je(wt,Dt,gt[Dt]);if(pe)for(var Dt of pe(gt))Ce.call(gt,Dt)&&je(wt,Dt,gt[Dt]);return wt},Ie=(wt,gt)=>se(wt,de(gt)),Oe=(wt,gt,Dt)=>new Promise((Lt,It)=>{var Tt=He=>{try{at(Dt.next(He))}catch(Rt){It(Rt)}},nn=He=>{try{at(Dt.throw(He))}catch(Rt){It(Rt)}},at=He=>He.done?Lt(He.value):Promise.resolve(He.value).then(Tt,nn);at((Dt=Dt.apply(wt,gt)).next())});function Re(wt,gt){const Dt=[];for(let Lt=wt;Lt<gt;Lt++)Dt.push(Lt);return Dt}const nt=wt=>{let gt=new Date;const Dt=xt()(wt).format("HH");if(xt()(wt).isSame(xt()(gt),"day")){const Lt=xt()(gt).format("HH"),It=xt()(gt).format("mm");return{disabledHours:()=>Re(0,24).splice(1,Lt*1-1),disabledMinutes:()=>xt()(wt).isSame(xt()(gt),"hour")&&Dt<=Lt?Re(0,60).splice(0,It):Re(60,60)}}else if(xt()(wt).isSame(xt()(),"day")){const Lt=xt()().format("HH"),It=xt()().format("mm");return{disabledHours:()=>Re(0,24).splice(0,Lt),disabledMinutes:()=>Dt<=Lt?Re(0,It):Re(60,60)}}else return!1},ot=({exercise:wt,dispatch:gt})=>{var Dt;const Lt=(0,Ee.useParams)(),[It]=_e.default.useForm(),[Tt,nn]=(0,ve.useState)(1),[at,He]=(0,ve.useState)([]),[Rt,Zt]=(0,ve.useState)(!0),[Yt,Mt]=(0,ve.useState)([]),[zt,on]=(0,ve.useState)(!0),[Dn,kt]=(0,ve.useState)(!1);(0,ve.useEffect)(()=>{wt.actionTabs.key==="\u6279\u91CF\u7ED3\u675F"&&vt()},[wt.actionTabs]);const vt=yi=>Oe(void 0,null,function*(){var We,Fe;Zt(!0);const xe=yield gt({type:"exercise/getEndGroups",payload:Ie(Te({},Lt),{check_ids:[...((We=wt.actionTabs.selectArrs)==null?void 0:We.map(Ye=>Number(Ye)))||[]]})}),Ne=(Fe=xe==null?void 0:xe.course_info)==null?void 0:Fe.map((Ye,ke)=>Ie(Te({},Ye),{key:Ye.course_group_id,title:Ye.course_group_name,name:Ye.course_group_name,disabled:!!Ye.is_published}));xe&&(xe!=null&&xe.course_info)&&(He([...Ne]),It.setFieldsValue({end_time:xt()(xt()(new Date((0,ct.qd)("/"))).add(7,"days").format("YYYY-MM-DD HH:mm"))})),Zt(!1)}),hn=()=>Oe(void 0,null,function*(){var yi,We,Fe,xe;const Ne=Te({},It.getFieldsValue());if((Yt==null?void 0:Yt.length)<=0&&at.length>0&&!((yi=wt.actionTabs)!=null&&yi.unified_setting)){lt.ZP.info("\u73ED\u7EA7\u4E0D\u80FD\u4E3A\u7A7A");return}kt(!0);const Ye={check_ids:[...((We=wt.actionTabs.selectArrs)==null?void 0:We.map(et=>Number(et)))||[]],group_ids:Yt};zt||(Ye.end_time=xt()(Ne.end_time).format("YYYY-MM-DD HH:mm")),Ye.group_ids=Yt.map(et=>et.course_group_id),(yield(0,Ve.ZP)(`/api/courses/${Lt.coursesId}/exercises/end_exercise.json`,{method:"post",body:Ye})).status===0&&(lt.ZP.success("\u64CD\u4F5C\u6210\u529F"),(0,ct.L9)(["\u6559\u5B66\u8BFE\u5802","\u8BD5\u5377","\u6279\u91CF\u7ED3\u675F"]),gt({type:"exercise/setActionTabs",payload:{}}),(Fe=wt==null?void 0:wt.actionTabs)!=null&&Fe.cb?(xe=wt==null?void 0:wt.actionTabs)==null||xe.cb():gt({type:"classroomList/getClassroomExercisesList",payload:Te({},wt.actionTabs.params)})),kt(!1)}),li=()=>{nn(1),He([]),Mt([]),on(!0)};return ve.createElement(it.default,{centered:!0,title:"\u7ED3\u675F\u8003\u8BD5",open:wt.actionTabs.key==="\u6279\u91CF\u7ED3\u675F",okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:hn,width:680,confirmLoading:Dn||Rt,onCancel:()=>{li(),gt({type:"exercise/setActionTabs",payload:{}})}},ve.createElement(rt.Z,{spinning:Rt},at&&ve.createElement(_e.default,{form:It},ve.createElement("div",{style:{color:"#333333",display:"flex"},className:"font14 mb10"},ve.createElement("img",{style:{marginRight:5,objectFit:"contain"},src:ne.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:zt,onChange:yi=>{on(yi.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(_e.default.Item,{name:"end_time",style:{marginTop:-3,visibility:zt?"hidden":"visible"}},ve.createElement(yt.default,{style:{width:170},placeholder:"\u8BF7\u9009\u62E9\u7ED3\u675F\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:xt()((0,ct.U6)(),"HH:mm")},disabledDate:yi=>yi&&yi<xt()().subtract(0,"days"),disabledTime:nt,format:"YYYY-MM-DD HH:mm",allowClear:!1}))),at.length>0&&!((Dt=wt.actionTabs)!=null&&Dt.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,at.length>0&&ve.createElement("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:"10px"}},ve.createElement("span",{style:{flex:1}},ve.createElement(tt.default,{checked:Yt.length===at.length,onChange:yi=>{Yt.length===at.length?Mt([]):Mt(at)}},"\u5168\u9009")," "),ve.createElement("span",{style:{width:16}}),ve.createElement("span",{style:{flex:1}},"\u5DF2\u9009\u62E9",Yt.length||0,"\u4E2A\u5206\u73ED")),ve.createElement(te.Z,{data:at,selectedRowKeys:Yt,setSelectedRowKeys:Mt}))))))};en.Z=(0,Ee.connect)(({exercise:wt})=>({exercise:wt}))(ot)},2773:function(gn,en,we){"use strict";we.d(en,{Z:function(){return Rt}});var ve=we(59301),_e=we(28284),lt=we(6767),it=we(62957),rt=we(29787),ze=we(77019),Ue=we(47889),yt=we(71051),tt=we(16326),De=we(71411),xt=we(62673),Ve=we(99571),ct=we(61186),Ee=we.n(ct),ne=we(38986),te=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"},je=we(3039),Te=we(75736),Ie=we(59301),Oe=Object.defineProperty,Re=Object.defineProperties,nt=Object.getOwnPropertyDescriptors,ot=Object.getOwnPropertySymbols,wt=Object.prototype.hasOwnProperty,gt=Object.prototype.propertyIsEnumerable,Dt=(Zt,Yt,Mt)=>Yt in Zt?Oe(Zt,Yt,{enumerable:!0,configurable:!0,writable:!0,value:Mt}):Zt[Yt]=Mt,Lt=(Zt,Yt)=>{for(var Mt in Yt||(Yt={}))wt.call(Yt,Mt)&&Dt(Zt,Mt,Yt[Mt]);if(ot)for(var Mt of ot(Yt))gt.call(Yt,Mt)&&Dt(Zt,Mt,Yt[Mt]);return Zt},It=(Zt,Yt)=>Re(Zt,nt(Yt)),Tt=(Zt,Yt,Mt)=>new Promise((zt,on)=>{var Dn=hn=>{try{vt(Mt.next(hn))}catch(li){on(li)}},kt=hn=>{try{vt(Mt.throw(hn))}catch(li){on(li)}},vt=hn=>hn.done?zt(hn.value):Promise.resolve(hn.value).then(Dn,kt);vt((Mt=Mt.apply(Zt,Yt)).next())});function nn(Zt,Yt){const Mt=[];for(let zt=Zt;zt<Yt;zt++)Mt.push(zt);return Mt}const at=Zt=>{let Yt=new Date;const Mt=Ee()(Zt).format("HH");if(Ee()(Zt).isSame(Ee()(Yt),"day")){const zt=Ee()(Yt).format("HH"),on=Ee()(Yt).format("mm");return{disabledHours:()=>nn(0,24).splice(1,zt*1-1),disabledMinutes:()=>(console.log("\u7981\u6B62\u65F6\u95F4\uFF1A",Mt,zt),Ee()(Zt).isSame(Ee()(Yt),"hour")&&Mt<=zt?nn(0,60).splice(0,on):nn(60,60))}}else if(Ee()(Zt).isSame(Ee()(),"day")){const zt=Ee()().format("HH"),on=Ee()().format("mm");return{disabledHours:()=>nn(0,24).splice(0,zt),disabledMinutes:()=>Mt<=zt?nn(0,on):nn(60,60)}}else return!1},He=({exercise:Zt,dispatch:Yt})=>{var Mt,zt,on,Dn,kt,vt,hn,li,yi,We,Fe,xe,Ne,Ye,ke,et,_t,Bt,rn,Ot,bt,Wt;const Xt=(0,ue.useParams)(),[pn]=_e.default.useForm(),[$n,Cn]=(0,ve.useState)(1),[Ln,Ci]=(0,ve.useState)([]),[Jn,Di]=(0,ve.useState)(!0),[ui,Bi]=(0,ve.useState)([]),[Ui,ir]=(0,ve.useState)(!0),[Ir,qi]=(0,ve.useState)(!1),{workSetting:ri}=Zt,[co,Qr]=(0,ve.useState)(!1),[to,no]=(0,ve.useState)([]),[xo,lo]=(0,ve.useState)([]),[Er,io]=(0,ve.useState)(!1),[Le,Pn]=(0,ve.useState)(!1),[Un,gi]=(0,ve.useState)(!1),[mi,ti]=(0,ve.useState)(null),[Yi,pr]=(0,ve.useState)(1),[un,an]=(0,ve.useState)({}),[jt,mn]=(0,ve.useState)({}),[Zi,ji]=(0,ve.useState)(!1);(0,ve.useEffect)(()=>{var Nt;if(Zt.actionTabs.key==="\u6279\u91CF\u53D1\u5E03"&&(Zn(),ci(),Zt.actionTabs.type===2)){const Rn=(Nt=Zt.actionTabs)==null?void 0:Nt.unified_setting;ir(Rn)}},[Zt.actionTabs]),(0,ve.useEffect)(()=>{var Nt,Rn,In,Qt,qn,Nn,Vn;(Nt=ri==null?void 0:ri.exercise)!=null&&Nt.publish_time&&pn.setFieldsValue({publish_time:Ee()((Rn=ri==null?void 0:ri.exercise)==null?void 0:Rn.publish_time)}),(In=ri==null?void 0:ri.exercise)!=null&&In.end_time&&pn.setFieldsValue({end_time:Ee()((Qt=ri==null?void 0:ri.exercise)==null?void 0:Qt.end_time)}),pn.setFieldsValue({exercise_type:(qn=ri==null?void 0:ri.exercise)==null?void 0:qn.exercise_type,simulate_exercise_num:(Nn=ri==null?void 0:ri.exercise)==null?void 0:Nn.simulate_exercise_num}),pr((Vn=ri==null?void 0:ri.exercise)==null?void 0:Vn.exercise_type)},[Zt]);const lr=Nt=>{var Rn;const In=pn.getFieldValue("publish_time");if(!In||(Rn=ri==null?void 0:ri.exercise)!=null&&Rn.publish_time)return;let Qt;Nt===1?Qt=Ee()(In).add(120,"minutes"):Qt=Ee()(In).add(7,"days"),pn.setFieldsValue({end_time:Qt})},Zn=Nt=>Tt(void 0,null,function*(){var Rn,In;Di(!0);const Qt=yield(0,se.N3)({coursesId:Xt.coursesId,check_ids:[...((Rn=Zt.actionTabs.selectArrs)==null?void 0:Rn.map(Nn=>Number(Nn)))||[]]});console.log(Qt,"res");const qn=((In=Qt==null?void 0:Qt.course_info)==null?void 0:In.map((Nn,Vn)=>It(Lt({},Nn),{key:Nn.course_group_id,title:Nn.course_group_name,name:Nn.course_group_name,disabled:!!Nn.is_published})))||[];if((Qt==null?void 0:Qt.status)!==-1){Ci([...qn]);const Nn=Ee()();pn.setFieldsValue({publish_time:Nn}),(pn.getFieldValue("exercise_type")||1)===1?pn.setFieldsValue({end_time:Ee()(Nn).add(120,"minutes")}):pn.setFieldsValue({end_time:Ee()(Nn).add(7,"days")})}Di(!1)});(0,ve.useEffect)(()=>{var Nt,Rn,In,Qt,qn,Nn;if((Nt=ri==null?void 0:ri.exercise)!=null&&Nt.is_appoint_user){const Vn=((In=(Rn=ri==null?void 0:ri.exercise)==null?void 0:Rn.all_exercise_users)==null?void 0:In.map(Pi=>Pi.user_id))||[];no([...Vn])}io((Qt=ri==null?void 0:ri.exercise)==null?void 0:Qt.is_appoint_user),Pn((qn=ri==null?void 0:ri.exercise)==null?void 0:qn.is_miss_exam_user),gi((Nn=ri==null?void 0:ri.exercise)==null?void 0:Nn.is_no_passing_user)},[ri]),(0,ve.useEffect)(()=>{var Nt,Rn,In,Qt,qn,Nn,Vn,Pi;(Rn=(Nt=Zt==null?void 0:Zt.actionTabs)==null?void 0:Nt.selectArrs)!=null&&Rn[0]&&Zt.actionTabs.key==="\u6279\u91CF\u53D1\u5E03"&&Yt({type:"exercise/getWorkSetting",payload:{categoryId:(Qt=(In=Zt==null?void 0:Zt.actionTabs)==null?void 0:In.selectArrs)==null?void 0:Qt[0],category:(Nn=(qn=Zt==null?void 0:Zt.actionTabs)==null?void 0:qn.selectArrs)==null?void 0:Nn[0],coursesId:(Pi=(Vn=Zt==null?void 0:Zt.actionTabs)==null?void 0:Vn.params)==null?void 0:Pi.id}})},[(Mt=Zt==null?void 0:Zt.actionTabs)==null?void 0:Mt.selectArrs]);const Ti=()=>Tt(void 0,null,function*(){var Nt,Rn,In,Qt,qn,Nn,Vn;const Pi=Lt({},pn.getFieldsValue()),pi=Ee()(Ee()(Pi.publish_time).format("YYYY-MM-DD HH:mm")).valueOf(),tn=Ee()(Ee()(Pi.end_time).format("YYYY-MM-DD HH:mm")).valueOf();if(console.log(pi,pi,33),tn<=pi){lt.ZP.info("\u7ED3\u675F\u65F6\u95F4\u4E0D\u5141\u8BB8\u5C0F\u4E8E\u7B49\u4E8E\u5F00\u59CB\u65F6\u95F4");return}if((ui==null?void 0:ui.length)<=0&&!Ui&&Ln.length>0&&!((Nt=ri==null?void 0:ri.exercise)!=null&&Nt.is_make_up_exercise)){lt.ZP.info("\u73ED\u7EA7\u4E0D\u80FD\u4E3A\u7A7A");return}const Wi=Ln.map(rr=>rr.key),yr={check_ids:[...((Rn=Zt.actionTabs.selectArrs)==null?void 0:Rn.map(rr=>Number(rr)))||[]],end_time:Ee()(Pi.end_time).format("YYYY-MM-DD HH:mm"),publish_time:Ee()(Pi.publish_time).format("YYYY-MM-DD HH:mm"),group_ids:ui.map(rr=>rr.course_group_id),unified_setting:!ui.length,exercise_type:Pi.exercise_type,simulate_exercise_num:Pi.simulate_exercise_num};if(((In=Zt.actionTabs.selectArrsAll)==null?void 0:In.length)>0&&Zt.actionTabs.type===1&&(yr.check_ids=[...((qn=(Qt=Zt.actionTabs.selectArrsAll)==null?void 0:Qt.filter(rr=>!rr.high_resources_consume||rr.high_resources_consume_permission))==null?void 0:qn.map(rr=>Number(rr==null?void 0:rr.id)))||[]]),(Nn=ri==null?void 0:ri.exercise)!=null&&Nn.is_make_up_exercise){if(Er&&to.length<=0||!Er&&!(Le||Un)){lt.ZP.error("\u8BF7\u9009\u62E9\u8865\u8003\u5B66\u751F");return}yr.is_appoint_user=Er,yr.is_miss_exam_user=Le,yr.is_no_passing_user=Un,Er?yr.make_up_exercise_users=to.map(rr=>({user_id:rr})):yr.make_up_exercise_user=[]}let{is_locked:Pr,open_camera:Yn,screen_open:Oi,login_restrict:Dr,ip_bind:jr,ip_limit:oo,is_random:Kt,id:bi,identity_verify:tr,open_phone_video_recording:Mi}=ri==null?void 0:ri.exercise;if(Zt.actionTabs.key!=="\u6279\u91CF\u53D1\u5E03"||(Pr||Yn||Oi||Dr||jr||oo=="pub"||oo=="inner"||tr||Mi)&&Pi.exercise_type==2){if(Yt({type:"exercise/setActionTabs",payload:{}}),Zt.actionTabs.type==2){let rr=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,te.hi)(ri==null?void 0:ri.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:()=>Tt(void 0,null,function*(){var Lr;ji(!0);let Tr=yield(0,Te.Tr)({exercise_ids:[...((Lr=Zt.actionTabs.selectArrs)==null?void 0:Lr.map(Zr=>Number(Zr)))||[]],course_id:Xt.coursesId,type:"exercise"});if((Tr==null?void 0:Tr.student_count)===0){if((yield Vr(yr))&&Zt.actionTabs.isRouter){rr.destroy(),ue.history.push(`/classrooms/${Xt.coursesId}/exercise/${bi}/detail?random=${Kt}&tabs=3&childrenTabs=2`);return}Yt({type:"exercise/setActionTabs",payload:{key:"\u8C03\u6574tabs\u9009\u4E2D"}})}else mn(yr),an(Tr)}),onCancel:()=>{rr.destroy(),ji(!1),Vr(yr)}})}else{let rr=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:()=>Tt(void 0,null,function*(){var Lr;ji(!0);let Tr=yield(0,Te.Tr)({exercise_ids:[...((Lr=Zt.actionTabs.selectArrs)==null?void 0:Lr.map(Zr=>Number(Zr)))||[]],course_id:Xt.coursesId,type:"exercise"});if((Tr==null?void 0:Tr.student_count)===0){if((yield Vr(yr))&&Zt.actionTabs.isRouter){ue.history.push(`/classrooms/${Xt.coursesId}/exercise/${bi}/detail?random=${Kt}&tabs=3&childrenTabs=2`);return}Yt({type:"exercise/setActionTabs",payload:{key:"\u8C03\u6574tabs\u9009\u4E2D"}})}else mn(yr),an(Tr)})})}return}let kr=yield(0,Te.Tr)({exercise_ids:[...((Vn=Zt.actionTabs.selectArrs)==null?void 0:Vn.map(rr=>Number(rr)))||[]],course_id:Xt.coursesId,type:"exercise"});(kr==null?void 0:kr.student_count)===0?Vr(yr):(mn(yr),an(kr))}),fr=()=>{var Nt;let Rn=[...(Nt=Zt.actionTabs.selectArrsAll)==null?void 0:Nt.filter(In=>In.high_resources_consume&&!In.high_resources_consume_permission)];(Rn==null?void 0:Rn.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 ",Rn==null?void 0:Rn.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"},Rn==null?void 0:Rn.map(In=>Ie.createElement("div",{className:Ce.failedList,key:In.id},Ie.createElement("div",{className:Ce.name},In==null?void 0:In.exercise_name),Ie.createElement("div",{className:Ce.publish,onClick:()=>{(0,te.xg)(`/classrooms/${Xt.coursesId}/exercise/${In.id}/detail?random=${In.is_random}`)}},"\u53D1\u5E03"))))))})},Vr=Nt=>Tt(void 0,null,function*(){var Rn,In,Qt;if(Zt.actionTabs.type===1){let Vn=[...(Rn=Zt.actionTabs.selectArrsAll)==null?void 0:Rn.filter(Pi=>Pi.high_resources_consume&&!Pi.high_resources_consume_permission)];if((Vn==null?void 0:Vn.length)==Zt.actionTabs.selectArrsAll.length){Yt({type:"exercise/setActionTabs",payload:{}}),fr();return}}let qn=!1;return qi(!0),(yield(0,ne.ZP)(`/api/courses/${Xt.coursesId}/exercises/publish.json`,{method:"post",body:Nt})).status===0&&((0,te.L9)(["\u6559\u5B66\u8BFE\u5802","\u8BD5\u5377","\u7ACB\u5373\u53D1\u5E03"]),ci(),lt.ZP.success("\u53D1\u5E03\u6210\u529F"),Yt({type:"exercise/setActionTabs",payload:{}}),(In=Zt==null?void 0:Zt.actionTabs)!=null&&In.cb?(Qt=Zt==null?void 0:Zt.actionTabs)==null||Qt.cb():Yt({type:"classroomList/getClassroomExercisesList",payload:Lt({},Zt.actionTabs.params)}),qn=!0,Zt.actionTabs.type===1&&fr()),qi(!1),qn}),ci=()=>{Cn(1),Ci([]),Bi([])},ut=(Nt,Rn,In)=>{Nt<=0?lt.ZP.info("\u8BF7\u9009\u62E9\u8865\u8003\u5B66\u751F"):(no(Rn),lo(In),Qr(!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:Ti,confirmLoading:Ir||Jn,onCancel:()=>{ci(),Yt({type:"exercise/setActionTabs",payload:{}})}},Ie.createElement(rt.Z,{spinning:Jn},Ln&&Ie.createElement(_e.default,{form:pn},!!((zt=Zt==null?void 0:Zt.actionTabs)!=null&&zt.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"),!((on=ri==null?void 0:ri.exercise)!=null&&on.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(_e.default.Item,{name:"exercise_type"},Ie.createElement(Ue.ZP.Group,{disabled:((Dn=ri==null?void 0:ri.exercise)==null?void 0:Dn.exercise_status)>1,onChange:Nt=>{pr(Nt.target.value),lr(Nt.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(_e.default.Item,{name:"simulate_exercise_num"},Ie.createElement(yt.Z,{className:Ce.numberInput,style:{width:145},precision:0,size:"middle",disabled:((kt=ri==null?void 0:ri.exercise)==null?void 0:kt.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(_e.default.Item,{name:"publish_time"},Ie.createElement(tt.default,{style:{width:170},disabledDate:Nt=>Nt&&Nt<=Ee()().subtract(0,"days"),disabledTime:at,placeholder:"\u8BF7\u9009\u62E9\u53D1\u5E03\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:Ee()((0,te.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",allowClear:!1})),Ie.createElement("span",{className:"mt5 ml5 mr5"},"\u5230"),Ie.createElement(_e.default.Item,{name:"end_time"},Ie.createElement(tt.default,{style:{width:170},placeholder:"\u8BF7\u9009\u62E9\u7ED3\u675F\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:Ee()((0,te.U6)(),"HH:mm")},disabledDate:Nt=>Nt&&Nt<Ee()().subtract(0,"days"),disabledTime:at,format:"YYYY-MM-DD HH:mm",allowClear:!1}))),((vt=ri==null?void 0:ri.exercise)==null?void 0:vt.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:Er,onChange:(Nt,Rn)=>{var In,Qt,qn,Nn,Vn;if(io(Nt),Nt)if((In=ri==null?void 0:ri.exercise)!=null&&In.is_appoint_user){const Pi=(qn=(Qt=ri==null?void 0:ri.exercise)==null?void 0:Qt.all_exercise_users)==null?void 0:qn.map(pi=>pi.user_id);no([...Pi])}else no([]),Pn(!1),gi(!1);else Pn((Nn=ri==null?void 0:ri.exercise)==null?void 0:Nn.is_miss_exam_user),gi((Vn=ri==null?void 0:ri.exercise)==null?void 0:Vn.is_no_passing_user)},disabled:((hn=ri==null?void 0:ri.exercise)==null?void 0:hn.exercise_status)!==1}),Ie.createElement("span",{style:{marginLeft:"10px",fontSize:"14px",color:"3333"}},"\u6307\u5B9A\u5B66\u751F")),!Er&&Ie.createElement(ze.Z,{className:"mt20",style:{paddingLeft:"90px"},align:"middle"},Ie.createElement(xt.default,{checked:Le,disabled:((li=ri==null?void 0:ri.exercise)==null?void 0:li.exercise_status)!==1||((yi=ri==null?void 0:ri.exercise)==null?void 0:yi.miss_exam_count)<=0,onChange:Nt=>{Pn(Nt.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),io(!1),Qr(!0)}},"\uFF08",`${(We=ri==null?void 0:ri.exercise)==null?void 0:We.miss_exam_count}\u4EBA`,"\uFF09"),Ie.createElement(xt.default,{checked:Un,disabled:((Fe=ri==null?void 0:ri.exercise)==null?void 0:Fe.exercise_status)!==1||((xe=ri==null?void 0:ri.exercise)==null?void 0:xe.no_passing_count)<=0,onChange:Nt=>{gi(Nt.target.checked)}},Ie.createElement("span",{style:{fontSize:"14px",color:"#333"}},"\u672A\u53CA\u683C")),Ie.createElement("span",{style:{color:"#0152d9",cursor:"pointer"},onClick:()=>{ti(2),io(!1),Qr(!0)}},"\uFF08",`${(Ne=ri==null?void 0:ri.exercise)==null?void 0:Ne.no_passing_count}\u4EBA`,"\uFF09")),Er&&Ie.createElement(ze.Z,{className:"mt20",style:{paddingLeft:"90px"}},Ie.createElement(Ve.ZP,{type:"primary",ghost:!0,disabled:((Ye=ri==null?void 0:ri.exercise)==null?void 0:Ye.exercise_status)!==1,onClick:()=>{Qr(!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 ",`${to.length||0} \u4EBA`,"\uFF09"))),Zt.actionTabs.type===2&&!((ke=ri==null?void 0:ri.exercise)!=null&&ke.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:Ui,onChange:Nt=>{ir(Nt.target.value),Bi([])}},Ie.createElement(Ue.ZP,{disabled:!!((et=Zt==null?void 0:Zt.actionTabs)!=null&&et.disabled)||Ln.some(Nt=>Nt==null?void 0:Nt.is_published)||!((_t=Zt==null?void 0:Zt.actionTabs)!=null&&_t.manage_all_group),value:!0},"\u7EDF\u4E00\u53D1\u5E03"),Ie.createElement(Ue.ZP,{disabled:Ln.length<=0,value:!1},"\u5206\u73ED\u53D1\u5E03"))),Ln.length<=0&&Zt.actionTabs.type===2&&!((Bt=ri==null?void 0:ri.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||!Ui)&&!((rn=ri==null?void 0:ri.exercise)!=null&&rn.is_make_up_exercise)&&Ln.length>0&&Ie.createElement("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:"10px"}},Ie.createElement("span",{style:{flex:1}},Ie.createElement(xt.default,{checked:ui.length===Ln.length,onChange:Nt=>{ui.length===Ln.length?Bi([]):Bi(Ln)}},"\u5168\u9009")),Ie.createElement("span",{style:{width:16}}),Ie.createElement("span",{style:{flex:1}},"\u5DF2\u9009\u62E9",ui.length||0,"\u4E2A\u5206\u73ED")),(Zt.actionTabs.type===1||!Ui)&&!((Ot=ri==null?void 0:ri.exercise)!=null&&Ot.is_make_up_exercise)&&Ln.length>0&&Ie.createElement(pe.Z,{data:Ln,selectedRowKeys:ui,setSelectedRowKeys:Bi})),Ie.createElement(ye.Z,{visible:co,setVisible:Qr,onK:ut,selectKeys:to,selectRows:xo,appointStudent:Er,modalParams:mi,courseId:Xt.categoryId||((Wt=(bt=Zt==null?void 0:Zt.actionTabs)==null?void 0:bt.selectArrs)==null?void 0:Wt[0])})),Ie.createElement(je.Z,{resdata:un,type:"exercisepush",okloading:Ir,oktext:(un==null?void 0:un.can_copy_num)===0?"\u786E\u5B9A":"\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362",onok:Nt=>Tt(void 0,null,function*(){var Rn,In,Qt;qi(!0);let qn=yield(0,ne.ZP)(`/api/courses/${Xt.coursesId}/batch_copy_shixuns.json`,{method:"post",body:{type:"exercise",ids:[...((Rn=Zt.actionTabs.selectArrs)==null?void 0:Rn.map(Nn=>Number(Nn)))||[]]}});if(qi(!1),(qn==null?void 0:qn.status)===0)if(Zi){let Nn=yield Vr(jt);if(it.default.destroyAll(),Nn&&Zt.actionTabs.isRouter){ue.history.push(`/classrooms/${Xt.coursesId}/exercise/${(In=ri==null?void 0:ri.exercise)==null?void 0:In.id}/detail?random=${(Qt=ri==null?void 0:ri.exercise)==null?void 0:Qt.is_random}&tabs=3&childrenTabs=2`);return}Yt({type:"exercise/setActionTabs",payload:{key:"\u8C03\u6574tabs\u9009\u4E2D"}})}else Vr(jt)})}))};var Rt=(0,ue.connect)(({exercise:Zt})=>({exercise:Zt}))(He)},71037:function(gn,en,we){"use strict";we.d(en,{Z:function(){return De}});var ve=we(59301),_e=we(37568),lt=we(62673),it=we(77019),rt={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),yt=(xt,Ve,ct)=>new Promise((Ee,ne)=>{var te=de=>{try{se(ct.next(de))}catch(pe){ne(pe)}},ue=de=>{try{se(ct.throw(de))}catch(pe){ne(pe)}},se=de=>de.done?Ee(de.value):Promise.resolve(de.value).then(te,ue);se((ct=ct.apply(xt,Ve)).next())}),De=({data:xt,value:Ve=[],handleChangePage:ct,setSelectedRowKeys:Ee,selectedRowKeys:ne,onChange:te=()=>{}})=>{const[ue,se]=(0,ve.useState)([]),[de,pe]=(0,ve.useState)([]),[ye,Ce]=(0,ve.useState)([]);let[je,Te]=(0,ve.useState)(1),[Ie,Oe]=(0,ve.useState)();return(0,ve.useEffect)(()=>{se(xt),pe([]),Ce([])},[xt]),(0,ve.useEffect)(()=>{Ee&&(pe(ne),Ce(ne))},[ne]),ve.createElement("div",{style:{display:"flex",justifyContent:"space-between"}},ve.createElement("div",{className:rt.leftdiv},ve.createElement(_e.default.Search,{size:"middle",onChange:Re=>yt(void 0,null,function*(){se(xt.filter(nt=>{var ot;return(ot=nt==null?void 0:nt.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(lt.default.Group,{value:de.map(Re=>`${Re.course_group_id}`),onChange:Re=>{Ee(ue.filter(nt=>Re.includes(`${nt.course_group_id}`)))},style:{marginTop:"10px",flexDirection:"column"}},ue.map((Re,nt)=>ve.createElement(it.Z,{key:Re.course_group_id,style:{marginTop:"10px",lineHeight:"24px",display:"flex",width:200}},ve.createElement(lt.default,{style:{display:"flex",height:"24px",alignItems:"center"},disabled:Re.is_published,value:`${Re.course_group_id}`},ve.createElement("div",{className:rt.listClass},ve.createElement("span",{className:rt.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:rt.rightdiv},ve.createElement(_e.default.Search,{onChange:Re=>{Ce(de.filter(nt=>nt.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,nt)=>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(gn,en,we){"use strict";var ve=we(59301),_e=we(11938),lt=we(71051),it=we(28284),rt=we(62957),ze=we(29787),Ue=we(54172),yt=we(37568),tt=we(77019),De=we(5269),xt=we(99571),Ve=we(81722),ct=we(61186),Ee=we.n(ct),ne=we(25690),te=we(51257),ue=we(6383),se=we(48790),de=we(45937),pe=we(59301),ye=(Ie,Oe,Re)=>new Promise((nt,ot)=>{var wt=Lt=>{try{Dt(Re.next(Lt))}catch(It){ot(It)}},gt=Lt=>{try{Dt(Re.throw(Lt))}catch(It){ot(It)}},Dt=Lt=>Lt.done?nt(Lt.value):Promise.resolve(Lt.value).then(wt,gt);Dt((Re=Re.apply(Ie,Oe)).next())});const{Countdown:Ce}=_e.default,je=({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(lt.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 nt,ot,wt,gt;const Dt=(0,ne.useParams)(),[Lt]=it.default.useForm(),It=it.default.useWatch("time",Lt),[Tt,nn]=(0,ve.useState)(!1),at=(0,ve.useRef)(),{actionTabs:He}=Ie,[Rt,Zt]=(0,ve.useState)(),[,Yt,Mt,zt]=(0,de.U)(Ve.n7,{id:Dt.categoryId}),[,on,Dn]=(0,de.U)(Ve.Cd,{});(0,ve.useEffect)(()=>{Ie.actionTabs.key==="student-unlock"&&(nn(!1),Lt.resetFields())},[Ie.actionTabs.key]);const kt=()=>new Promise(Ye=>ye(void 0,null,function*(){var ke,et;return at.current=yield(0,ue.y)({ip_limit:(ke=He==null?void 0:He.exerciseParams)==null?void 0:ke.ip_limit,ip_bind:(et=He==null?void 0:He.exerciseParams)==null?void 0:et.ip_bind_type}),Ye()})),vt=()=>ye(void 0,null,function*(){var Ye,ke,et,_t,Bt;yield Lt.validateFields();const rn=Lt.getFieldsValue();if(nn(!0),(((Ye=He==null?void 0:He.exerciseParams)==null?void 0:Ye.ip_limit)!=="no"||(ke=He==null?void 0:He.exerciseParams)!=null&&ke.ip_bind_type)&&(yield kt()),(yield(0,Ve.ZD)((et=He==null?void 0:He.exerciseParams)==null?void 0:et.id,{exercise_user_id:(_t=He==null?void 0:He.exerciseParams)==null?void 0:_t.exercise_user_id,unlock_key:rn.unlock_key,time:rn.time,ip:at.current})).status===0){if(Oe){Re({type:"exercise/setActionTabs",payload:{}}),Oe();return}const bt=He==null?void 0:He.exerciseParams;(0,te.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:Dt.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:{}})}nn(!1)}),hn=[{title:"IP\u5730\u5740",dataIndex:"ip",key:"ip",render:Ye=>pe.createElement("span",{className:Ye.indexOf("\u5F02\u5E38")>-1?"c-red":"c-green"},Ye)},{title:"\u6D4F\u89C8\u5668",dataIndex:"browser",key:"browser",render:Ye=>pe.createElement("span",{className:Ye.indexOf("\u5F02\u5E38")>-1?"c-red":"c-green"},Ye)},{title:"\u4E0A\u6B21\u767B\u5F55\u65F6\u95F4",dataIndex:"last_login_time",key:"last_login_time"}],li=((nt=He==null?void 0:He.exerciseParams)==null?void 0:nt.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 Ye=yield Dn(Dt);yield Mt({}),Ye.status||Zt(Ye)})},[Ie.actionTabs.key]);const{time:yi,end_time:We}=(Rt==null?void 0:Rt.exercise)||{},Fe=zt!=null&&zt.user_end_time?Ee()(zt==null?void 0:zt.user_end_time).add(1,"minutes"):Ee()(),xe=Ee()(zt==null?void 0:zt.user_total_end_time)>Fe?Math.round(Ee().duration(Ee()(zt==null?void 0:zt.user_total_end_time).diff(Fe.startOf("minute"))).asMinutes()):0,Ne=((zt==null?void 0:zt.student_left_minutes)||0)+(It||0);return pe.createElement(pe.Fragment,null,pe.createElement(rt.default,{width:514,centered:!0,closable:!!((wt=He==null?void 0:He.exerciseParams)!=null&&wt.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:Yt||on},li&&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 "),!li&&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"),li&&pe.createElement(Ue.default,{className:"mb20",pagination:{hideOnSinglePage:!0},dataSource:[((gt=He==null?void 0:He.exerciseParams)==null?void 0:gt.errorMessage)||{}],columns:hn}),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(yt.default.Password,{autoComplete:"off",placeholder:"\u8BF7\u8F93\u5165\u8003\u8BD5\u89E3\u9501\u7801",visibilityToggle:!1})),yi!==-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()(zt==null?void 0:zt.user_total_end_time).format("YYYY-MM-DD HH:mm")),"\uFF09")},pe.createElement(je,{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"},Yt||on?"--":Ne),"\u5206\u949F",Ne!==0&&(zt==null?void 0:zt.user_end_time)&&pe.createElement("span",null,"\uFF0C\u4EA4\u5377\u622A\u6B62\u65F6\u95F4\uFF1A",pe.createElement("span",{className:"ml5"},Ee()(zt==null?void 0:zt.user_end_time).add(It||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(tt.Z,{justify:"space-between",align:"middle"},pe.createElement(De.Z,null),pe.createElement(De.Z,null,pe.createElement(xt.ZP,{loading:Tt,onClick:vt},"\u8FDB\u5165\u8003\u8BD5"))))))};en.Z=(0,ne.connect)(({exercise:Ie})=>({exercise:Ie}))(Te)},75582:function(gn,en,we){"use strict";we.d(en,{w:function(){return ze}});var ve=we(38986),_e=we(62957),lt=we(25690),it=we(59301),rt=(Ue,yt,tt)=>new Promise((De,xt)=>{var Ve=ne=>{try{Ee(tt.next(ne))}catch(te){xt(te)}},ct=ne=>{try{Ee(tt.throw(ne))}catch(te){xt(te)}},Ee=ne=>ne.done?De(ne.value):Promise.resolve(ne.value).then(Ve,ct);Ee((tt=tt.apply(Ue,yt)).next())});const ze=(Ue,yt,tt="\u6B63\u5728\u8FDB\u5165\u8BC4\u9605\uFF0C\u8BF7\u7A0D\u540E...",De=1,xt=2)=>rt(void 0,null,function*(){De===1&&(0,lt.getDvaApp)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:De===1?tt:"\u6B63\u5728\u68C0\u6D4B\u4E2D\uFF0C\u8BF7\u7A0D\u540E..."}});const Ve=yield(0,ve.ZP)(`/api/exercises/${yt}/user_appraise_status.json`,{method:"get",params:{appraise_type:De}});if((Ve==null?void 0:Ve.status)===-1)return(0,lt.getDvaApp)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!1}}),Promise.reject();let ct={status:0};if((Ve==null?void 0:Ve.type)===2&&(ct=yield(0,ve.ZP)(`/api/exercises/${yt}/create_appraise_students.json`,{method:"get"})),(0,lt.getDvaApp)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}}),(ct==null?void 0:ct.status)===-1)return Promise.reject();if((Ve==null?void 0:Ve.type)===2){const Ee=()=>{lt.history.replace(`/classrooms/${Ue}/exercise/${yt}/centralizeReview/${ct==null?void 0:ct.login}`)};if(_e.default.confirm({centered:!0,width:470,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",keyboard:!1,onOk:Ee,onCancel:()=>{xt===1&&lt.history.replace(`/classrooms/${Ue}/exercise/${yt}/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"))}),xt!==3)return Promise.reject()}if((Ve==null?void 0:Ve.type)===3&&(_e.default.info({centered:!0,width:470,okText:"\u786E\u5B9A",keyboard:!1,title:"\u63D0\u793A",onOk:()=>{xt===1&&lt.history.replace(`/classrooms/${Ue}/exercise/${yt}/detail`)},content:it.createElement("div",null,(Ve==null?void 0:Ve.message)||"")}),xt!==3)||(Ve==null?void 0:Ve.type)===4&&(_e.default.info({centered:!0,width:470,okText:"\u786E\u5B9A",title:"\u63D0\u793A",keyboard:!1,onOk:()=>{xt===1&&lt.history.replace(`/classrooms/${Ue}/exercise/${yt}/detail`)},content:it.createElement("div",null,(Ve==null?void 0:Ve.message)||"")}),xt!==3))return Promise.reject()})},57720:function(gn,en,we){"use strict";we.r(en),we.d(en,{default:function(){return Qi}});var ve=we(59301),_e=we(25690),lt=we(62957),it=we(93041),rt=we(6767),ze=we(458),Ue=we(13747),yt=we(48608),tt=we(99571),De=we(62673),xt=we(61186),Ve=we.n(xt),ct=we(48790),Ee=we(51257),ne=we(28426),te=we(38986),ue=we(20554),se=we(28284),de=we(25399),pe=we(71051),ye=we(82326),Ce=we(37568),je=we(26724),Te=we.n(je),Ie=we(59639),Oe=we(98737),Re=we(40197),nt=we(87444),ot=we(22072),wt=we(94361),gt=we(3039),Dt=we(75736),Lt=we(59301),It=Object.defineProperty,Tt=Object.defineProperties,nn=Object.getOwnPropertyDescriptors,at=Object.getOwnPropertySymbols,He=Object.prototype.hasOwnProperty,Rt=Object.prototype.propertyIsEnumerable,Zt=(Qe,Ut,Ft)=>Ut in Qe?It(Qe,Ut,{enumerable:!0,configurable:!0,writable:!0,value:Ft}):Qe[Ut]=Ft,Yt=(Qe,Ut)=>{for(var Ft in Ut||(Ut={}))He.call(Ut,Ft)&&Zt(Qe,Ft,Ut[Ft]);if(at)for(var Ft of at(Ut))Rt.call(Ut,Ft)&&Zt(Qe,Ft,Ut[Ft]);return Qe},Mt=(Qe,Ut)=>Tt(Qe,nn(Ut)),zt=(Qe,Ut,Ft)=>new Promise((ln,_n)=>{var yn=be=>{try{En(Ft.next(be))}catch(dt){_n(dt)}},cn=be=>{try{En(Ft.throw(be))}catch(dt){_n(dt)}},En=be=>be.done?ln(be.value):Promise.resolve(be.value).then(yn,cn);En((Ft=Ft.apply(Qe,Ut)).next())});const{TabPane:on}=ue.default,Dn=({classroomList:Qe,exercise:Ut,loading:Ft,dispatch:ln})=>{var _n;const yn=(0,_e.useParams)(),cn=(0,_e.useLocation)(),[En]=se.default.useForm(),{brankList:be}=Ut;let[dt,Xe]=(0,ve.useState)(!0),[Pt,Et]=(0,ve.useState)(!1);const[Jt,$t]=(0,ve.useState)("myself");let[dn,Tn]=(0,ve.useState)([]),[zn,fn]=(0,ve.useState)([]),[ei,vi]=(0,ve.useState)(),[pt,Kn]=(0,ve.useState)([]);const Hn=(0,ve.useRef)(null),[jn,Mn]=(0,ve.useState)(!1),[fi,Si]=(0,ve.useState)(""),[kn,xi]=(0,ve.useState)(""),[Ei,Ai]=(0,ve.useState)(!1),[dr,Ar]=(0,ve.useState)({}),ur=[{title:"\u8BD5\u5377\u540D\u79F0",dataIndex:"name",ellipsis:!0,align:"left",render:(ki,cr,Qn)=>Lt.createElement("div",{style:{display:"flex",alignItems:"center"}},Lt.createElement(de.Z,{title:ki},Lt.createElement("div",{title:ki,className:Oe.Z.name},ki)),(cr==null?void 0:cr.high_resources_consume)&&Lt.createElement(wt.Z,{type:"shixun",style:{marginLeft:10}}))},{title:"\u65B9\u5411&\u8BFE\u7A0B",dataIndex:"course_list_name",width:180,ellipsis:!0,align:"left",render:ki=>Lt.createElement(de.Z,{title:ki},Lt.createElement("span",null,ki))},{title:"\u7C7B\u578B",dataIndex:"is_random",width:90,align:"left",render:ki=>ki?"\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:(ki,cr)=>Lt.createElement("a",{href:ki?`/randompaper/detail/${cr.id}`:`/paperlibrary/see/${cr.id}?defaultActiveKey=1`,target:"_blank>"},"\u9884\u89C8")}],[ii,gr]=(0,ve.useState)({page:0,limit:20,group_id:null,object_type:"examination_bank",search:"",filter:"myself"});(0,ve.useEffect)(()=>{Ut.actionTabs.key==="\u8BD5\u5377\u9009\u7528"&&($i(),Kn([]),nr())},[Ut.actionTabs.key]);const nr=()=>zt(void 0,null,function*(){const ki=yield ln({type:"paperlibrary/getTeachGroupData"});fn(ki)}),hr=ki=>{const cr=parseInt(ki);return isNaN(cr)?"":cr},$i=()=>zt(void 0,null,function*(){var ki,cr;if(dt){++ii.page,Xe(!1);const Qn=yield ln({type:"exercise/getBrankList",payload:Mt(Yt({},ii),{search:(ki=ii.search)==null?void 0:ki.trim()})});dn=Qn!=null&&Qn.object_list?[...dn.concat(Qn==null?void 0:Qn.object_list)]:dn,ii.filter==="public"?vi(Qn.is_teacher):vi(!0),((cr=Qn.object_list)==null?void 0:cr.length)<ii.limit?Xe(!1):Xe(!0),Tn([...dn])}}),wr=ki=>{Hn.current.scrollTop=0,dn=[],ii.page=0,ii.group_id=ki,dt=!0,Kn([]),gr(Yt({},ii)),$i()},bn={selectedRowKeys:pt,onChange:ki=>{Kn(ki)},type:"radio"},Li=()=>{gr(Yt({},{page:0,limit:20,group_id:null,object_type:"examination_bank",search:"",filter:"myself"})),Tn([]),Xe(!0),$t("myself"),ln({type:"exercise/setActionTabs",payload:{}}),Et(!1)},[zi,_i,Gi,Vi]=(0,nt.P)(),di=ki=>zt(void 0,null,function*(){let cr=!1;dn.forEach(or=>{pt.includes(or.id)&&(cr=or.is_random)});const Qn=ki.map(or=>({shixun_id:or.id,is_use:or.is_use,is_copy:or.is_copy}));if(!cr){Ai(!0);const or=yield ln({type:"exercise/saveBanks",payload:{course_id:yn.coursesId,category_id:(yn==null?void 0:yn.categoryId)||null,object_type:"examination_bank",bank_id:pt,shixuns_info:Qn}});Ai(!1),(or==null?void 0:or.status)===0&&((0,Ee.L9)(["\u6559\u5B66\u8BFE\u5802","\u8BD5\u5377","\u8BD5\u5377\u9009\u7528"]),ln({type:"classroomList/getClassroomExercisesList",payload:Yt({},Ut.actionTabs.params)}),ln({type:"classroomList/getClassroomLeftMenus",payload:{id:yn.coursesId}}),Si(`/classrooms/${yn.coursesId}/exercise/${or.exercise_id}/detail?random=${or.is_random}&tabs=3`),xi(`/classrooms/${yn.coursesId}/exercise/add/${or.exercise_id}?random=${or.is_random}&type=2`),Mn(!0),rt.ZP.success("\u751F\u6210\u8BD5\u5377\u6210\u529F"),_i(),Li());return}Ai(!0),setTimeout(()=>{Ai(!1)},500),ln({type:"exercise/setActionTabs",payload:{}});let ni=1,Ki=lt.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:hr,style:{width:120},placeholder:"\u8BF7\u8F93\u5165\u8BD5\u5377\u6570\u91CF",min:1,defaultValue:ni,onChange:or=>{ni=or;const Mr=document.getElementById("model_error");ni<1||ni>50?Mr.style.display="block":Mr.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:Li,onOk:()=>zt(void 0,null,function*(){if(ni<1||ni>50){const Mr=document.getElementById("model_error");return Mr.style.display="block",Promise.reject()}Ki.update({cancelButtonProps:{disabled:!0}});const or=yield ln({type:"exercise/saveBanks",payload:{course_id:yn.coursesId,object_type:"examination_bank",bank_id:pt,shixuns_info:Qn,num:ni}});Ki.update({cancelButtonProps:{disabled:!1}}),or&&or.status===0?((0,Ee.L9)(["\u6559\u5B66\u8BFE\u5802","\u8BD5\u5377","\u8BD5\u5377\u9009\u7528"]),lt.default.destroyAll(),ln({type:"classroomList/getClassroomExercisesList",payload:Yt({},Ut.actionTabs.params)}),Li(),_i(),rt.ZP.success("\u751F\u6210\u8BD5\u5377\u6210\u529F")):(Li(),_i())})})});return Lt.createElement(Lt.Fragment,null,Lt.createElement(lt.default,{centered:!0,width:1012,title:"\u9009\u62E9\u8BD5\u5377",maskClosable:!1,destroyOnClose:!0,open:Ut.actionTabs.key==="\u8BD5\u5377\u9009\u7528",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",confirmLoading:Pt,bodyStyle:{minHeight:200},wrapClassName:Oe.Z.warpModal,onOk:()=>zt(void 0,null,function*(){var ki;if(!pt.length){rt.ZP.error("\u8BF7\u9009\u62E9\u8BD5\u5377");return}Et(!0);let cr=!1,Qn=!1;if(dn.forEach(Ki=>{pt.includes(Ki.id)&&Ki.need_authorize&&(cr=Ki.need_authorize),pt.includes(Ki.id)&&(Qn=Ki.is_random)}),cr){(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 ni=yield(0,Dt.Tr)({id:`${pt[0]}`,course_id:(ki=Qe.detailTopBanner)==null?void 0:ki.course_id,type:"examination_bank"});Et(!1),(ni==null?void 0:ni.student_count)===0?di([]):Ar(ni)}),onCancel:Li},Lt.createElement(ue.default,{activeKey:Jt,onTabClick:ki=>zt(void 0,null,function*(){Hn.current.scrollTop=0,dn=[],Jt!==ki&&Kn([]),$t(ki),ii.page=0,ii.filter=ki,ii.group_id=null,dt=!0,$i()})},Lt.createElement(on,{tab:Lt.createElement("span",null,"\u6211\u7684\u8BD5\u5377\u5E93"),key:"myself"}),Lt.createElement(on,{tab:Lt.createElement("span",null,"\u6559\u7814\u5171\u4EAB"),key:"teacher"}),Lt.createElement(on,{tab:Lt.createElement("span",null,"\u516C\u5171\u8BD5\u5377\u5E93"),key:"public"})),Lt.createElement("div",{className:Oe.Z.tabSearch},Jt==="teacher"&&Lt.createElement(ye.default,{value:ii.group_id,onChange:wr,size:"middle",style:{width:200,marginRight:30}},Lt.createElement(ye.default.Option,{value:null},"\u5168\u90E8\u6559\u7814\u56E2\u961F"),(_n=zn==null?void 0:zn.groups)==null?void 0:_n.map(ki=>Lt.createElement(ye.default.Option,{key:ki==null?void 0:ki.group_id,value:ki==null?void 0:ki.group_id},ki==null?void 0:ki.name))),Lt.createElement(Ce.default.Search,{placeholder:"\u8BF7\u8F93\u5165\u8BD5\u5377\u540D\u79F0\u8FDB\u884C\u641C\u7D22",value:ii.search,onChange:ki=>{ii.search=ki.target.value,gr(Yt({},ii))},onSearch:ki=>{Hn.current.scrollTop=0,dn=[],ii.page=0,dt=!0,Kn([]),ki&&(0,ot.tk)({name:ki,copywriting:ki,position:"Exercise"}),$i()}})),Lt.createElement("div",{ref:Hn,style:{maxHeight:350,overflowY:"auto",overflowX:"hidden",marginTop:10,paddingBottom:20}},!ei&&Jt==="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:()=>{$i()},hasMore:dt,useWindow:!1},Ut.actionTabs.key==="\u8BD5\u5377\u9009\u7528"&&ei&&Lt.createElement(Ie.Z,{className:Oe.Z.hideHeadCheckbox,pagination:!1,hideSelectAll:!0,dataSource:dn,onRow:ki=>({onClick:()=>{Kn([ki==null?void 0:ki.id])}}),resColumns:ur,rowSelection:bn})))),Lt.createElement(lt.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(tt.ZP,{onClick:()=>{Mn(!1),_e.history.push(kn)}},"\u4FEE\u6539\u8BD5\u5377"),Lt.createElement(tt.ZP,{type:"primary",onClick:()=>{_e.history.push(fi),Mn(!1)}},"\u8BBE\u7F6E\u89C4\u5219")),onCancel:()=>{Mn(!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:dr,type:"exercise",okloading:Ei,oktext:(dr==null?void 0:dr.can_copy_num)===0?"\u786E\u5B9A":"\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362",onok:ki=>{di(ki)}}),Lt.createElement(nt.Z,{inPaper:!0,visible:zi,onCancel:_i,onOk:di,renderData:Gi,modalType:"multiple",type:"examination_bank"}))};var kt=(0,_e.connect)(({exercise:Qe,loading:Ut,classroomList:Ft})=>({exercise:Qe,loading:Ut,classroomList:Ft}))(Dn),vt=we(2773),hn=we(64205),li=Object.defineProperty,yi=Object.getOwnPropertySymbols,We=Object.prototype.hasOwnProperty,Fe=Object.prototype.propertyIsEnumerable,xe=(Qe,Ut,Ft)=>Ut in Qe?li(Qe,Ut,{enumerable:!0,configurable:!0,writable:!0,value:Ft}):Qe[Ut]=Ft,Ne=(Qe,Ut)=>{for(var Ft in Ut||(Ut={}))We.call(Ut,Ft)&&xe(Qe,Ft,Ut[Ft]);if(yi)for(var Ft of yi(Ut))Fe.call(Ut,Ft)&&xe(Qe,Ft,Ut[Ft]);return Qe},Ye=(Qe,Ut,Ft)=>new Promise((ln,_n)=>{var yn=be=>{try{En(Ft.next(be))}catch(dt){_n(dt)}},cn=be=>{try{En(Ft.throw(be))}catch(dt){_n(dt)}},En=be=>be.done?ln(be.value):Promise.resolve(be.value).then(yn,cn);En((Ft=Ft.apply(Qe,Ut)).next())});const ke=({exercise:Qe,dispatch:Ut})=>{const Ft=(0,_e.useParams)();return ve.createElement(lt.default,{centered:!0,title:"\u63D0\u793A",open:Qe.actionTabs.key==="\u8BBE\u4E3A\u516C\u5F00",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:()=>Ye(void 0,null,function*(){(yield(0,te.ZP)(`/api/courses/${Ft.coursesId}/exercises/set_public.json`,{method:"post",body:{check_ids:[...Qe.actionTabs.selectArrs]}})).status===0&&((0,Ee.L9)(["\u6559\u5B66\u8BFE\u5802","\u8BD5\u5377","\u8BBE\u4E3A\u516C\u5F00"]),rt.ZP.success("\u64CD\u4F5C\u6210\u529F"),Ut({type:"exercise/setActionTabs",payload:{}}),Ut({type:"classroomList/getClassroomExercisesList",payload:Ne({},Qe.actionTabs.params)}))}),onCancel:()=>{Ut({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 et=(0,_e.connect)(({exercise:Qe})=>({exercise:Qe}))(ke),_t=we(54650),Bt=Object.defineProperty,rn=Object.getOwnPropertySymbols,Ot=Object.prototype.hasOwnProperty,bt=Object.prototype.propertyIsEnumerable,Wt=(Qe,Ut,Ft)=>Ut in Qe?Bt(Qe,Ut,{enumerable:!0,configurable:!0,writable:!0,value:Ft}):Qe[Ut]=Ft,Xt=(Qe,Ut)=>{for(var Ft in Ut||(Ut={}))Ot.call(Ut,Ft)&&Wt(Qe,Ft,Ut[Ft]);if(rn)for(var Ft of rn(Ut))bt.call(Ut,Ft)&&Wt(Qe,Ft,Ut[Ft]);return Qe},pn=(Qe,Ut)=>{var Ft={};for(var ln in Qe)Ot.call(Qe,ln)&&Ut.indexOf(ln)<0&&(Ft[ln]=Qe[ln]);if(Qe!=null&&rn)for(var ln of rn(Qe))Ut.indexOf(ln)<0&&bt.call(Qe,ln)&&(Ft[ln]=Qe[ln]);return Ft},$n=(Qe,Ut,Ft)=>new Promise((ln,_n)=>{var yn=be=>{try{En(Ft.next(be))}catch(dt){_n(dt)}},cn=be=>{try{En(Ft.throw(be))}catch(dt){_n(dt)}},En=be=>be.done?ln(be.value):Promise.resolve(be.value).then(yn,cn);En((Ft=Ft.apply(Qe,Ut)).next())});const Cn=Qe=>{var Ut=Qe,{exercise:Ft,dispatch:ln,user:_n}=Ut,yn=pn(Ut,["exercise","dispatch","user"]),cn,En;const be=(0,_e.useParams)(),[dt,Xe]=(0,ve.useState)(!1),[Pt,Et]=(0,ve.useState)(!1),Jt=(0,ve.useRef)(null);(0,ve.useEffect)(()=>{var dn,Tn;if(Ft.actionTabs.key==="\u6279\u91CF\u5220\u9664"){if((0,ct.j5)()){Et(!0);return}const zn={hasNum:0,noHasNum:0};(Tn=(dn=Ft==null?void 0:Ft.actionTabs)==null?void 0:dn.selectArrsAll)==null||Tn.map(fn=>{var ei;fn.author_login===((ei=_n.userInfo)==null?void 0:ei.login)?++zn.hasNum:++zn.noHasNum}),zn.noHasNum>0?lt.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"},zn.hasNum),"\u4E2A\u7531\u60A8\u672C\u4EBA\u53D1\u5E03\uFF0C",ve.createElement("span",{className:"c-red"},zn.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()}}):Et(!0)}else Et(!1)},[Ft.actionTabs.key]);const $t=()=>{ln({type:"exercise/setActionTabs",payload:{}})};return ve.createElement(lt.default,{centered:!0,title:"\u63D0\u793A",open:Pt,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",confirmLoading:dt,destroyOnClose:!0,onOk:()=>$n(void 0,null,function*(){var dn;if((dn=Jt.current)!=null&&dn.onVerify())return;Xe(!0);const Tn=yield(0,te.ZP)(`/api/courses/${be.coursesId}/exercises/destroys.json`,{method:"post",body:{check_ids:[...Ft.actionTabs.selectArrs]}});Xe(!1),Tn.status===0&&((0,Ee.L9)(["\u6559\u5B66\u8BFE\u5802","\u8BD5\u5377","\u5220\u9664"]),rt.ZP.success("\u5220\u9664\u6210\u529F"),ln({type:"exercise/setActionTabs",payload:{}}),ln({type:"classroomList/getClassroomExercisesList",payload:Xt({},Ft.actionTabs.params)}),ln({type:"classroomList/getClassroomLeftMenus",payload:Xt({},Ft.actionTabs.params)}))}),onCancel:()=>{ln({type:"exercise/setActionTabs",payload:{}})}},!((cn=Ft==null?void 0:Ft.actionTabs)!=null&&cn.status)||!["\u672A\u5F00\u59CB"].includes((En=Ft==null?void 0:Ft.actionTabs)==null?void 0:En.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(_t.Z,{ref:dn=>Jt.current=dn})):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 Ln=(0,_e.connect)(({exercise:Qe,user:Ut})=>({exercise:Qe,user:Ut}))(Cn),Ci=Object.getOwnPropertySymbols,Jn=Object.prototype.hasOwnProperty,Di=Object.prototype.propertyIsEnumerable,ui=(Qe,Ut)=>{var Ft={};for(var ln in Qe)Jn.call(Qe,ln)&&Ut.indexOf(ln)<0&&(Ft[ln]=Qe[ln]);if(Qe!=null&&Ci)for(var ln of Ci(Qe))Ut.indexOf(ln)<0&&Di.call(Qe,ln)&&(Ft[ln]=Qe[ln]);return Ft},Bi=(Qe,Ut,Ft)=>new Promise((ln,_n)=>{var yn=be=>{try{En(Ft.next(be))}catch(dt){_n(dt)}},cn=be=>{try{En(Ft.throw(be))}catch(dt){_n(dt)}},En=be=>be.done?ln(be.value):Promise.resolve(be.value).then(yn,cn);En((Ft=Ft.apply(Qe,Ut)).next())});const Ui=Qe=>{var Ut=Qe,{exercise:Ft,dispatch:ln}=Ut,_n=ui(Ut,["exercise","dispatch"]);const yn=(0,_e.useParams)();return yn.id=yn.coursesId,(0,ve.useEffect)(()=>{Ft.actionTabs.key==="\u52A0\u5165\u8BD5\u5377\u5E93"&&new Promise(()=>Bi(void 0,null,function*(){(yield(0,te.ZP)(`/api/courses/${yn.id}/exercises/join_examination_banks.json`,{method:"post",body:{check_ids:[...Ft.actionTabs.selectArrs]}})).status===0&&((0,Ee.L9)(["\u6559\u5B66\u8BFE\u5802","\u8BD5\u5377","\u52A0\u5165\u8BD5\u5377\u5E93"]),rt.ZP.success("\u5DF2\u52A0\u5165\u4E2A\u4EBA\u8BD5\u5377\u5E93\uFF0C\u8BD5\u9898\u540C\u6B65\u52A0\u5165\u81F3\u4E2A\u4EBA\u9898\u5E93")),ln({type:"exercise/setActionTabs",payload:{}})}))},[Ft.actionTabs.key]),ve.createElement(ve.Fragment,null)};var ir=(0,_e.connect)(({exercise:Qe})=>({exercise:Qe}))(Ui),Ir=we(37639),qi=we(54172),ri={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"},co=Object.defineProperty,Qr=Object.getOwnPropertySymbols,to=Object.prototype.hasOwnProperty,no=Object.prototype.propertyIsEnumerable,xo=(Qe,Ut,Ft)=>Ut in Qe?co(Qe,Ut,{enumerable:!0,configurable:!0,writable:!0,value:Ft}):Qe[Ut]=Ft,lo=(Qe,Ut)=>{for(var Ft in Ut||(Ut={}))to.call(Ut,Ft)&&xo(Qe,Ft,Ut[Ft]);if(Qr)for(var Ft of Qr(Ut))no.call(Ut,Ft)&&xo(Qe,Ft,Ut[Ft]);return Qe};const Er=Qe=>React.createElement("svg",lo({width:22,height:22,xmlns:"http://www.w3.org/2000/svg"},Qe),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 io="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjIiIGhlaWdodD0iMjIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMCAwaDIydjIySDB6Ii8+PGcgZmlsbD0iIzk3OTc5NyIgZmlsbC1ydWxlPSJub256ZXJvIj48cGF0aCBkPSJNMTAuNDIyIDUuODE4aC44djEwLjRoLS44eiIvPjxwYXRoIGQ9Ik0xMC43NDMgMTcuMDE4YS40OS40OSAwIDAgMS0uMzgtLjE5N2MtLjM4LS41NDEtMS4yMS0uOTEtMS45OTMtLjkxSDMuNjk3YS40ODUuNDg1IDAgMCAxLS40NzUtLjQ5M1Y0Ljg4M2MwLS4xNzMuMDcxLS4zMi4xNjYtLjQ0My4yMTQtLjIyMi41MjItLjIyMi43MzYtLjIyMmg0LjEwNGMxLjEzOSAwIDIuMzAxLjY0IDIuODIzIDEuNTc2LjE0My4yMjEuMDcxLjU0MS0uMTY2LjY2NGEuNDM4LjQzOCAwIDAgMS0uNjQtLjE3MkM5Ljg4OSA1LjY3IDkuMDEgNS4xNzggOC4yMjggNS4xNzhINC4xNzF2OS43MjNoNC4yYzEuMDY3IDAgMi4xODIuNTE3IDIuNzUxIDEuMjhhLjQ5My40OTMgMCAwIDEtLjA5NS42OWMtLjA5NC4wOTgtLjE5LjE0Ny0uMjg0LjE0N1oiLz48cGF0aCBkPSJNMTEuMDA2IDE3LjAxOGEuNDY5LjQ2OSAwIDAgMS0uMjk0LS4wOTguNDgzLjQ4MyAwIDAgMS0uMDk4LS42OWMuNTg4LS43NjMgMS43MTQtMS4yOCAyLjg0LTEuMjhoMy45OVY1LjIwM2gtMy44NjhjLS44NTcgMC0xLjg4NS40OTItMi4yNTIgMS4xMDctLjE0Ny4yMjItLjQ0LjMyLS42Ni4xNzMtLjIyLS4xNDgtLjMxOS0uNDQzLS4xNzItLjY2NS42MTItMS4wMzQgMi4wNTYtMS42IDMuMDg0LTEuNmg0LjIzNGMuMDk4IDAgLjI5NCAwIC40NC4xNDguMTcyLjE3Mi4xNzIuMzcuMTcyLjQ2OHYxMC41ODRjMCAuMjcxLS4yMi40OTItLjQ5LjQ5MkgxMy40M2MtLjgwOCAwLTEuNjQuMzctMi4wNTYuOTExYS40My40MyAwIDAgMS0uMzY3LjE5N1oiLz48L2c+PC9nPjwvc3ZnPg==",Le=Object.defineProperty,Pn=Object.getOwnPropertySymbols,Un=Object.prototype.hasOwnProperty,gi=Object.prototype.propertyIsEnumerable,mi=(Qe,Ut,Ft)=>Ut in Qe?Le(Qe,Ut,{enumerable:!0,configurable:!0,writable:!0,value:Ft}):Qe[Ut]=Ft,ti=(Qe,Ut)=>{for(var Ft in Ut||(Ut={}))Un.call(Ut,Ft)&&mi(Qe,Ft,Ut[Ft]);if(Pn)for(var Ft of Pn(Ut))gi.call(Ut,Ft)&&mi(Qe,Ft,Ut[Ft]);return Qe};const Yi=Qe=>React.createElement("svg",ti({width:22,height:22,xmlns:"http://www.w3.org/2000/svg"},Qe),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 pr="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjIiIGhlaWdodD0iMjIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMCAwaDIydjIySDB6Ii8+PGcgZmlsbC1ydWxlPSJub256ZXJvIj48cGF0aCBmaWxsPSIjMjI5QkZGIiBkPSJNMTAuND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iMwMTUyZDkiLz48L2c+PC9nPjwvc3ZnPg==",un=we(41727),an=we(12971),jt=Object.defineProperty,mn=Object.getOwnPropertySymbols,Zi=Object.prototype.hasOwnProperty,ji=Object.prototype.propertyIsEnumerable,lr=(Qe,Ut,Ft)=>Ut in Qe?jt(Qe,Ut,{enumerable:!0,configurable:!0,writable:!0,value:Ft}):Qe[Ut]=Ft,Zn=(Qe,Ut)=>{for(var Ft in Ut||(Ut={}))Zi.call(Ut,Ft)&&lr(Qe,Ft,Ut[Ft]);if(mn)for(var Ft of mn(Ut))ji.call(Ut,Ft)&&lr(Qe,Ft,Ut[Ft]);return Qe};const Ti=Qe=>React.createElement("svg",Zn({width:24,height:24,xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},Qe),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 fr="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxkZWZzPjxwYXRoIGlkPSJhIiBkPSJNMCAwaDI0djI0SDB6Ii8+PC9kZWZzPjxnIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+PG1hc2sgaWQ9ImIiIGZpbGw9IiNmZmYiPjx1c2UgeGxpbms6aHJlZj0iI2EiLz48L21hc2s+PHVzZSBmaWxsPSIjRjRGOEZGIiBvcGFjaXR5PSIuMDEiIHhsaW5rOmhyZWY9IiNhIi8+PGcgbWFzaz0idXJsKCNiKSIgZmlsbC1ydWxlPSJub256ZXJvIj48cGF0aCBkPSJNNy41OTggMi41ODIgMi44IDMuNDI4QTEuNzAxIDEuNzAxIDAgMCAwIDEuNDIgNS4zOTZsMi45MiAxNi41NjJhMS42OTUgMS42OTUgMCAwIDAgMS45NjkgMS4zOGwxLjU2NC0uMjc3YTEuMTUyIDEuMTUyIDAgMCAxLS4yNzYtLjc0OVYyLjU4MloiIGZpbGw9IiNBRUYwRkYiLz48cGF0aCBkPSJNMjEuODYzIDEuNDAzSDguNzU1Yy0uNjM5IDAtMS4xNTYuNTE4LTEuMTU3IDEuMTU2djE5Ljc1MmExLjE1OSAxLjE1OSAwIDAgMCAxLjE1NyAxLjE1N2gxMy4xMDhhLjE0LjE0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ItLjQ5Ny4yMi0uNzY5IDAtLjY3NS0uNDY3LTEuMjUtMS4xMTUtMS40NTdWMi41NmMwLS40NTYuMzctLjgyNi44MjctLjgyN2gxMi45MTh2MjEuNDA2WiIgZmlsbD0iIzUxMkM1NiIvPjxwYXRoIGQ9Ik0xMS41NjUgOC40MDJoNi45NTNhLjEwMS4xMDEgMCAwIDAgLjEtLjEwMVY0LjY5OWEuMTAxLjEwMSAwIDAgMC0uMS0uMTAxaC02Ljk1M2EuMTAxLjEwMSAwIDAgMC0uMTAxLjEwMXYzLjYwNWEuMS4xIDAgMCAwIC4xMDEuMDk4Wm0uNTU4LTMuMTQ0aDUuODMzdjIuNDg1aC01LjgzM1Y1LjI1OFptNS4xNjMgMTEuODloLTQuNDg5YS4zMy4zMyAwIDEgMCAwIC42NTloNC40ODlhLjMzLjMzIDAgMSAwIDAtLjY2Wm0wIDIuMzM0aC00LjQ4OWEuMzMuMzMgMCAwIDAgMCAuNjZoNC40ODlhLjMzLjMzIDAgMSAwIDAtLjY2WiIgZmlsbD0iIzUxMkM1NiIvPjwvZz48L2c+PC9zdmc+",Vr=we(69221),ci=we(75582),ut=we(74255),Nt=we(69429),Rn=Object.defineProperty,In=Object.getOwnPropertySymbols,Qt=Object.prototype.hasOwnProperty,qn=Object.prototype.propertyIsEnumerable,Nn=(Qe,Ut,Ft)=>Ut in Qe?Rn(Qe,Ut,{enumerable:!0,configurable:!0,writable:!0,value:Ft}):Qe[Ut]=Ft,Vn=(Qe,Ut)=>{for(var Ft in Ut||(Ut={}))Qt.call(Ut,Ft)&&Nn(Qe,Ft,Ut[Ft]);if(In)for(var Ft of In(Ut))qn.call(Ut,Ft)&&Nn(Qe,Ft,Ut[Ft]);return Qe};const Pi=Qe=>React.createElement("svg",Vn({width:18,height:13,xmlns:"http://www.w3.org/2000/svg"},Qe),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 pi="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTMiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJtMi4yODggNC45NSA1LjQ1NiAxLjcyNSAzLjA4NS0xLjAxNmMuMTc2LS4wNTguMTc2LjAzOS4wMTMuMTY3LS42ODYuNTQ0LTEuMjg2IDEuMjQtMS42MTMgMi4wNzZhNC42NzkgNC42NzkgMCAwIDAgMi40MTQgMi41NDJsLTEuMzEzIDEuMzExLTIuNzQ4Ljg2My01LjI5NC0xLjc2M1Y0Ljk1Wk03LjY2MSAwbDcuNTAyIDIuOTM2LTcuNTAyID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ols,Oi=Object.prototype.hasOwnProperty,Dr=Object.prototype.propertyIsEnumerable,jr=(Qe,Ut,Ft)=>Ut in Qe?Wi(Qe,Ut,{enumerable:!0,configurable:!0,writable:!0,value:Ft}):Qe[Ut]=Ft,oo=(Qe,Ut)=>{for(var Ft in Ut||(Ut={}))Oi.call(Ut,Ft)&&jr(Qe,Ft,Ut[Ft]);if(Yn)for(var Ft of Yn(Ut))Dr.call(Ut,Ft)&&jr(Qe,Ft,Ut[Ft]);return Qe},Kt=(Qe,Ut)=>yr(Qe,Pr(Ut)),bi=(Qe,Ut,Ft)=>new Promise((ln,_n)=>{var yn=be=>{try{En(Ft.next(be))}catch(dt){_n(dt)}},cn=be=>{try{En(Ft.throw(be))}catch(dt){_n(dt)}},En=be=>be.done?ln(be.value):Promise.resolve(be.value).then(yn,cn);En((Ft=Ft.apply(Qe,Ut)).next())});const tr=({v:Qe,k:Ut,match:Ft,selectArrs:ln,setSelectArrs:_n,dispatch:yn,params:cn,classroomList:En,batchStatus:be,manageAllGroup:dt,user:Xe})=>{var Pt,Et,Jt,$t,dn,Tn,zn,fn,ei,vi,pt,Kn,Hn,jn,Mn,fi,Si,kn,xi;const[Ei,Ai]=(0,ve.useState)([]),[dr,Ar]=(0,ve.useState)(!1),ur=(0,ve.useRef)(),ii=(0,ve.useRef)(),[gr,nr]=(0,ve.useState)(!1);var hr=!1;const $i="YYYY-MM-DD",wr=Ve()("2020-11-15",$i);function bn(){return bi(this,null,function*(){console.log(cn,222);let Qn=yield(0,te.ZP)(`/api/courses/${cn==null?void 0:cn.coursesId}/exercises/group_use_list.json`,{method:"get",params:Kt(oo({},cn),{id:Qe.id})});Ai((Qn==null?void 0:Qn.groups)||[])})}const Li=()=>lt.default.info({title:"\u9898\u5E93\u6539\u7248\u544A\u77E5",content:tn.createElement(tn.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")});Qe!=null&&Qe.appraise_label&&(hr=!0);const zi=(Qn,ni=!1)=>{var Ki;_e.history.push(`/classrooms/${cn.coursesId}/exercisenotice/${Qn.id}/users/${(Ki=(0,ct.eY)())==null?void 0:Ki.login}`)},_i=[{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:(Qn,ni)=>ni.exercise_status===Qn,render:(Qn,ni)=>tn.createElement("div",null,Qn===1&&tn.createElement("span",null,tn.createElement("i",{className:ri.dot,style:{background:"#C3C3C3"}}),"\u672A\u5F00\u59CB"),Qn===2&&tn.createElement("span",null,tn.createElement("i",{className:ri.dot,style:{background:"#4EACFF"}}),"\u8003\u8BD5\u4E2D"),Qn===3&&tn.createElement("span",null,tn.createElement("i",{className:ri.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:cn.order_by==="publish_time"?cn.sort_direction==="desc"?"descend":"ascend":null},{title:"\u622A\u6B62\u65F6\u95F4",dataIndex:"end_time",key:"end_time",sorter:!0,width:170,showSorterTooltip:!1,sortOrder:cn.order_by==="end_time"?cn.sort_direction==="desc"?"descend":"ascend":null},{title:"\u63D0\u4EA4\u4EBA\u6570",dataIndex:"exercise_answer",key:"exercise_answer",align:"center",width:80,render:(Qn,ni)=>ni.exercise_status===1?"-":tn.createElement("span",null,Qn,"/",ni.exercise_users)},{title:"\u5F85\u8BC4\u9605\u8BD5\u5377",dataIndex:"unreview_count",key:"unreview_count",align:"center",width:90,render:(Qn,ni)=>ni.exercise_status===1?"-":Qn===0?tn.createElement("span",{style:{cursor:"no-drop",color:"#999999"}},Qn):tn.createElement("a",{onClick:()=>(0,Ee.xg)(`/classrooms/${cn==null?void 0:cn.coursesId}/exercise/${Qe==null?void 0:Qe.id}/detail?random=false&exercise_group_id=${ni.course_group_id}`)},Qn)},{title:"\u64CD\u4F5C",dataIndex:"action",align:"center",key:"action",width:60,render:(Qn,ni)=>ni.exercise_status===1?tn.createElement("img",{style:{cursor:"not-allowed"},src:io}):tn.createElement(de.Z,{title:"\u8BC4\u9605"},tn.createElement("a",{onClick:()=>(0,Ee.xg)(`/classrooms/${cn==null?void 0:cn.coursesId}/exercise/${Qe==null?void 0:Qe.id}/detail?random=false&exercise_group_id=${ni.course_group_id}`)},tn.createElement("img",{src:pr})))}],Gi=Qn=>{if(hr)return tn.createElement("span",{style:{backgroundColor:"#f59a23"},className:"tag-style mr10"},"\u96C6\u4E2D\u9605\u5377");if(Qn!=null&&Qn.includes("\u672A\u5F00\u59CB"))return tn.createElement("span",{style:{backgroundColor:"#B8B8B8"},className:"tag-style mr10"},"\u672A\u5F00\u59CB");if(Qn!=null&&Qn.includes("\u8003\u8BD5\u4E2D"))return tn.createElement("span",{style:{backgroundColor:"#007AFF"},className:"tag-style mr10"},"\u8003\u8BD5\u4E2D");if(Qn!=null&&Qn.includes("\u5DF2\u622A\u6B62"))return tn.createElement("span",{style:{backgroundColor:"#FC2D6B"},className:"tag-style mr10"},"\u5DF2\u622A\u6B62");if(Qn!=null&&Qn.includes("\u5BFC\u5165"))return tn.createElement("span",{className:"export mr10"},"\u5BFC\u5165")},Vi=()=>{const Qn=(Qe==null?void 0:Qe.simulate_exercise_num)-(Qe==null?void 0:Qe.user_simulate_num);return Qn>=0?Qn:0},di=(Qn=Qe)=>{var ni,Ki,or;if(Qn!=null&&Qn.is_encrypt){yn({type:"classroomList/setActionTabs",payload:{open:"\u89E3\u5C01",id:Qn==null?void 0:Qn.id,phone:(ni=Xe==null?void 0:Xe.userInfo)==null?void 0:ni.phone,login:(Ki=Xe==null?void 0:Xe.userInfo)==null?void 0:Ki.login}});return}(or=Xe==null?void 0:Xe.userInfo)!=null&&or.phone?yn({type:"classroomList/setActionTabs",payload:{open:"\u8BD5\u5377\u5C01\u5B58",id:Qn==null?void 0:Qn.id}}):yn({type:"classroomList/setActionTabs",payload:{open:"\u624B\u673A\u53F7\u7ED1\u5B9A"}})},ki=Qn=>{var ni,Ki,or;if(((ni=Xe==null?void 0:Xe.userInfo)==null?void 0:ni.login)!==(Qe==null?void 0:Qe.author_login)){rt.ZP.warning("\u8BD5\u5377\u5DF2\u5C01\u5B58\uFF0C\u8BF7\u8054\u7CFB\u8BD5\u5377\u6240\u6709\u8005\u8FDB\u884C\u89E3\u5C01~");return}yn({type:"classroomList/setActionTabs",payload:{open:"\u63D0\u793A",id:Qe==null?void 0:Qe.id,phone:(Ki=Xe==null?void 0:Xe.userInfo)==null?void 0:Ki.phone,login:(or=Xe==null?void 0:Xe.userInfo)==null?void 0:or.login,onFinish:Qn}})},cr=Qn=>bi(void 0,null,function*(){const ni=yield(0,te.ZP)(`/api/courses/${cn==null?void 0:cn.coursesId}/sync_shixuns.json`,{method:"post",body:{exercise_ids:[Qn]}});(ni==null?void 0:ni.status)===0&&(yn({type:"classroomList/setActionTabs",payload:{}}),rt.ZP.info("\u5B9E\u8BAD\u540C\u6B65\u4E2D\uFF0C\u8BF7\u7A0D\u540E"),yn({type:"classroomList/getClassroomExercisesList",payload:oo({},cn)}))});return tn.createElement("div",{className:ri.listItem,onClick:Qn=>{const ni=()=>{(!(0,ct.GJ)()||(0,ct.GJ)()&&ii.current&&!ii.current.contains(Qn.target))&&(0,Ee.xg)(`/classrooms/${cn.coursesId}/exercise/${Qe.id}/detail?random=${Qe.is_random}`)};if(Qe!=null&&Qe.is_encrypt){ki(ni);return}ni()}},(0,ct.GJ)()&&tn.createElement("span",{ref:ii},tn.createElement(De.default,{checked:ln.includes(Qe.id),value:Qe.id,style:{padding:"10px"},onClick:Qn=>{Qn.stopPropagation()},disabled:(Qe==null?void 0:Qe.is_encrypt)||(Qe==null?void 0:Qe.is_make_up_exercise),onChange:Qn=>{let ni=ln.indexOf(Qe.id);ln.indexOf(Qe.id)>-1?_n(ln.filter(Ki=>Ki!==Qe.id)):_n(ln.concat(Qe.id))}})),tn.createElement("div",{className:ri.info},tn.createElement("div",{className:ri.title},tn.createElement("div",{className:ri.titleLeft,style:{marginRight:15}},Gi(Qe==null?void 0:Qe.exercise_tips),(Qe==null?void 0:Qe.is_make_up_exercise)&&tn.createElement("img",{src:un,width:44,height:24,style:{marginRight:10}}),tn.createElement(de.Z,{title:Qe.exercise_name},tn.createElement("span",{className:ri.name},Qe.exercise_name)),(0,ct.G5)()&&(Qe==null?void 0:Qe.shixun_change)&&tn.createElement(Ir.Z,{open:gr,onOpenChange:Qn=>{nr(Qn)},placement:"bottomLeft",title:null,content:tn.createElement("div",{style:{width:"310px",color:"#000"},onClick:Qn=>Qn.stopPropagation()},tn.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"),tn.createElement("div",{className:ri.btn_warp},tn.createElement(tt.ZP,{size:"small",onClick:()=>nr(!1)},"\u5FFD\u7565"),tn.createElement(tt.ZP,{className:"ml20",size:"small",type:"primary",onClick:()=>{nr(!1),yn({type:"classroomList/setActionTabs",payload:{key:"\u5B9E\u8BAD\u540C\u6B65\u786E\u8BA4",onOK:()=>cr(Qe==null?void 0:Qe.id)}})}},"\u786E\u8BA4\u540C\u6B65"),tn.createElement(tt.ZP,{className:"ml20",size:"small",type:"primary",onClick:()=>(0,Ee.xg)(`/classrooms/${cn.coursesId}/exercise/${Qe.id}/detail?random=${Qe.is_random}&tabs=2`)},"\u524D\u5F80\u67E5\u770B")))},tn.createElement("i",{className:"iconfont icon-tongzhi1 pl10 current",style:{fontSize:"16px",color:"#F7B500"},onClick:Qn=>Qn.stopPropagation()})),(Qe==null?void 0:Qe.high_resources_consume)&&!(Qe!=null&&Qe.high_resources_consume_permission)&&tn.createElement(wt.Z,{type:"exercise",style:{marginLeft:10}}),(Qe==null?void 0:Qe.high_resources_consume)&&(Qe==null?void 0:Qe.high_resources_consume_permission)&&tn.createElement("span",{className:ri.authorized},"\u5DF2\u6388\u6743"),((Pt=Qe==null?void 0:Qe.exercise_tips)==null?void 0:Pt.includes("\u5DF2\u622A\u6B62"))&&((Et=En==null?void 0:En.detailTopBanner)==null?void 0:Et.forbid_end_exercise)&&tn.createElement(de.Z,{title:"\u5DF2\u5BF9\u5B66\u751F\u9690\u85CF"},tn.createElement("img",{src:pi,width:20,className:"ml10"})),!Qe.is_public&&(0,ct.GJ)()&&tn.createElement(de.Z,{title:"\u79C1\u6709\u5C5E\u6027\uFF0C\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u80FD\u8BBF\u95EE"},tn.createElement("span",{className:"iconfont icon-suo1 ml10 mr10 c-light-black font12"})),(Qe==null?void 0:Qe.exercise_type)==2&&tn.createElement("span",{style:{flexShrink:0,marginLeft:10,display:"flex",alignItems:"center"},className:ri.moni},tn.createElement("img",{src:an,width:18,height:14}),"\u6A21\u62DF\u8003\u8BD5"),((Jt=Qe==null?void 0:Qe.exercise_tips)==null?void 0:Jt.includes("\u5DF2\u5F00\u542F\u9632\u4F5C\u5F0A"))&&tn.createElement("span",{style:{flexShrink:0,marginLeft:10,display:"flex"},className:"tag-style-fzb iconfont icon-fangzuobi"},"\u5DF2\u5F00\u542F\u9632\u4F5C\u5F0A"),(Qe==null?void 0:Qe.ai_push_wrong_question)&&tn.createElement("span",{className:ri.ErrorPushTag},tn.createElement("img",{src:fr,width:12,className:"mr5"}),"AI\u9519\u9898\u63A8\u9001"),(($t=Qe==null?void 0:Qe.exercise_tips)==null?void 0:$t.includes("\u5DF2\u622A\u6B62"))&&((dn=Qe==null?void 0:Qe.exercise_tips)==null?void 0:dn.includes("\u672A\u63D0\u4EA4"))&&tn.createElement("span",{style:{flexShrink:0,backgroundColor:"#B8B8B8"},className:"tag-style ml10"},"\u672A\u63D0\u4EA4"),(Qe==null?void 0:Qe.is_encrypt)&&tn.createElement(de.Z,{title:"\u8BD5\u5377\u5DF2\u52A0\u5BC6"}," ",tn.createElement("img",{src:Nt,width:21,className:"ml10",style:{marginTop:"-8px"}})," ")),tn.createElement("div",{className:ri.titleRight,onClick:Qn=>{Qn.stopPropagation(),Qn.preventDefault()}},(Qe==null?void 0:Qe.appraise_setting)&&tn.createElement("span",{className:ri.flexBox,style:{marginRight:"16px"},onClick:()=>bi(void 0,null,function*(){const Qn=()=>bi(void 0,null,function*(){yn({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u8FDB\u5165\u8BC4\u9605\uFF0C\u8BF7\u7A0D\u540E..."}});const ni=yield(0,te.ZP)(`/api/exercises/${Qe.id}/create_appraise_students.json`,{method:"get"});yn({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}}),(0,Ee.xg)(`/classrooms/${cn==null?void 0:cn.coursesId}/exercise/${Qe.id}/centralizeReview/${ni==null?void 0:ni.login}`)});if(Qe!=null&&Qe.is_encrypt){ki(Qn);return}Qn()})},tn.createElement("i",{className:"iconfont icon-jizhongyuejuan"}),tn.createElement("div",null,"\u96C6\u4E2D\u9605\u5377")),!(Qe!=null&&Qe.exercise_tips.includes("\u5BFC\u5165"))&&(0,ct.GJ)()&&(!(Qe!=null&&Qe.is_make_up_exercise)||(Qe==null?void 0:Qe.is_make_up_exercise)&&(Qe==null?void 0:Qe.exercise_status)===1&&(Qe==null?void 0:Qe.allow_create_make_up))&&tn.createElement(Vr.Z,{tips:Qe==null?void 0:Qe.open_appraise},tn.createElement("span",{className:ri.flexBox,style:{marginRight:"16px"},onClick:()=>{const Qn=()=>{var ni,Ki,or;if(((ni=Xe==null?void 0:Xe.userInfo)==null?void 0:ni.user_status)===2){(0,Re.Rd)();return}if((0,ct.Rm)()&&!((or=(Ki=En==null?void 0:En.AssistantObject)==null?void 0:Ki.exercise)!=null&&or.can_publish)){rt.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((Qe==null?void 0:Qe.exercise_question_count)===0){rt.ZP.warning("\u8BD5\u5377\u5185\u6CA1\u6709\u8BD5\u9898\u4E0D\u5141\u8BB8\u53D1\u5E03\u8003\u8BD5");return}let Mr=()=>{yn({type:"exercise/setActionTabs",payload:{key:"\u6279\u91CF\u53D1\u5E03",selectArrs:[Qe.id],unified_setting:Qe.unified_setting,params:cn,disabled:Qe.exercise_status!==1,type:2,manage_all_group:dt,isRouter:!0}})};Qe!=null&&Qe.high_resources_consume&&!(Qe!=null&&Qe.high_resources_consume_permission)?yn({type:"classroomList/setActionTabs",payload:{key:"\u6388\u6743\u4F7F\u7528",id:cn.coursesId,type:"exercise",type_id:Qe.id,name:Qe.exercise_name,fn:()=>{yn({type:"classroomList/getClassroomExercisesList",payload:oo({},cn)}),Mr()}}}):Mr()};if(Qe!=null&&Qe.is_encrypt){ki(Qn);return}Qn()}},tn.createElement("i",{className:"iconfont icon-yishezhifabushijian1"}),tn.createElement("div",null,"\u53D1\u5E03"))),!(Qe!=null&&Qe.exercise_tips.includes("\u5BFC\u5165"))&&(0,ct.GJ)()&&!(0,Ee._m)()&&Qe.assistant_auth&&tn.createElement("span",{className:ri.flexBox,style:{marginRight:"16px"},onClick:Qn=>{Qn.stopPropagation();const ni=()=>{var Ki,or;if((0,ct.Rm)()&&!((or=(Ki=En==null?void 0:En.AssistantObject)==null?void 0:Ki.exercise)!=null&&or.can_preview)){rt.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 Mr=Ve()(Qe.created_at,$i);Ve()(wr).diff(Ve()(Mr),"days")>0&&(Qe!=null&&Qe.is_random)?Li():Qe!=null&&Qe.is_random?(0,Ee.xg)(`/classrooms/${cn.coursesId}/exercise/${Qe.id}/random/preview?random=${Qe.is_random}`):(0,Ee.xg)(`/classrooms/${cn.coursesId}/exercise/${Qe.id}/detail?random=${Qe.is_random}&tabs=2`)};if(Qe!=null&&Qe.is_encrypt){ki(ni);return}ni()}},tn.createElement("i",{className:"iconfont icon-yulan3"}),tn.createElement("div",null,"\u9884\u89C8")),(0,ct.RV)()&&tn.createElement("span",{className:ri.flexBox,style:{marginRight:"16px"},onClick:()=>{const Qn=()=>{(0,Ee.xg)(`/classrooms/${cn.coursesId}/exercise/${Qe.id}/detail?random=${Qe.is_random}`)};if(Qe!=null&&Qe.is_encrypt){ki(Qn);return}Qn()}},tn.createElement("i",{className:"iconfont icon-yuyuexiangqing1"}),tn.createElement("div",null,"\u8BE6\u60C5")),(0,ct.GJ)()&&!(0,Ee._m)()&&tn.createElement(Ir.Z,{placement:"bottom",content:tn.createElement("div",{className:ri.popover},!(Qe!=null&&Qe.exercise_tips.includes("\u5BFC\u5165"))&&tn.createElement("p",{onClick:Qn=>bi(void 0,null,function*(){const ni=()=>{(0,Ee.xg)(`/classrooms/${cn.coursesId}/exercise/${Qe.id}/detail?random=${Qe.is_random}&tabs=3`)};if(Qe!=null&&Qe.is_encrypt){ki(ni);return}ni()})},"\u89C4\u5219\u8BBE\u7F6E"),(Qe==null?void 0:Qe.exercise_tips.includes("\u5BFC\u5165"))&&tn.createElement("p",{onClick:Qn=>bi(void 0,null,function*(){const ni=()=>{yn({type:"classroomList/setActionTabs",payload:{key:"\u8865\u5145\u6210\u7EE9",name:Qe==null?void 0:Qe.exercise_name,id:Qe==null?void 0:Qe.id,type:"hack"}})};if(Qe!=null&&Qe.is_encrypt){ki(ni);return}ni()})},"\u8865\u5145\u6210\u7EE9"),!(Qe!=null&&Qe.exercise_tips.includes("\u5BFC\u5165"))&&(0,ct.GJ)()&&Qe.is_random&&Qe.assistant_auth&&tn.createElement("p",{onClick:Qn=>{Qn.stopPropagation();const ni=()=>{const Ki=Ve()(Qe.created_at,$i);Ve()(wr).diff(Ve()(Ki),"days")>0&&(Qe!=null&&Qe.is_random)?Li():(0,Ee.xg)(`/classrooms/${cn.coursesId}/exercise/${Qe.id}/random/edit?type=settings`)};if(Qe!=null&&Qe.is_encrypt){ki(ni);return}ni()}},"\u7F16\u8F91\u8003\u8BD5"),tn.createElement("p",{onClick:Qn=>bi(void 0,null,function*(){const ni=()=>{var Ki;yn({type:"exercise/setActionTabs",payload:{key:"\u6279\u91CF\u5220\u9664",selectArrs:[Qe.id],selectArrsAll:[Qe],params:cn,status:(Ki=Qe==null?void 0:Qe.exercise_tips)==null?void 0:Ki[0]}})};if(Qe!=null&&Qe.is_encrypt){ki(ni);return}ni()})},"\u5220\u9664\u8BD5\u5377"),!(Qe!=null&&Qe.exercise_tips.includes("\u5BFC\u5165"))&&tn.createElement("p",{onClick:()=>{const Qn=()=>{yn({type:"exercise/setActionTabs",payload:{key:"\u5355\u4E2A\u52A0\u5165\u8BD5\u5377\u5E93",selectArrs:[Qe.id],params:cn}})};if(Qe!=null&&Qe.is_encrypt){ki(Qn);return}Qn()}},"\u52A0\u5165\u8BD5\u5377\u5E93"),((Tn=Qe==null?void 0:Qe.exercise_tips)==null?void 0:Tn.includes("\u672A\u5F00\u59CB"))&&(Qe==null?void 0:Qe.author_login)===((zn=Xe==null?void 0:Xe.userInfo)==null?void 0:zn.login)&&tn.createElement("p",{onClick:Qn=>bi(void 0,null,function*(){di(Qe)})}," ",Qe!=null&&Qe.is_encrypt?"\u89E3\u5C01":"\u52A0\u5BC6\u5C01\u5B58"),!(Qe!=null&&Qe.exercise_tips.includes("\u5BFC\u5165"))&&((0,ct.GJ)()||((ei=(fn=En==null?void 0:En.AssistantObject)==null?void 0:fn.exercise)==null?void 0:ei.can_stop))&&![1,3].includes(Qe==null?void 0:Qe.exercise_status)&&tn.createElement("p",{onClick:Qn=>bi(void 0,null,function*(){const ni=()=>{var Ki,or;if((0,ct.Rm)()&&!((or=(Ki=En==null?void 0:En.AssistantObject)==null?void 0:Ki.exercise)!=null&&or.can_stop)){rt.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}yn({type:"exercise/setActionTabs",payload:{key:"\u6279\u91CF\u7ED3\u675F",selectArrs:[Qe.id],params:cn,unified_setting:Qe.unified_setting}})};if(Qe!=null&&Qe.is_encrypt){ki(ni);return}ni()})},"\u7ED3\u675F\u8003\u8BD5"))},tn.createElement("span",{onClick:Qn=>Qn.stopPropagation(),className:ri.flexBox,style:{cursor:"default"}},tn.createElement("i",{className:"iconfont icon-gengduo4"}),tn.createElement("div",null,"\u66F4\u591A"))),(0,ct.dE)()&&tn.createElement(tn.Fragment,null,!!Qe.off_limits&&tn.createElement(de.Z,{title:`\u8FDF\u5230\u8D85\u8FC7${Qe==null?void 0:Qe.last_times}\u5206\u949F\uFF0C\u7981\u6B62\u8FDB\u5165\u7B54\u9898`},tn.createElement("b",{className:"font16 c-grey-999"},"\u8FDF\u5230\u7981\u6B62\u7B54\u9898")),(Qe==null?void 0:Qe.exercise_type)==1&&!Qe.off_limits&&Qe.current_status===0&&Qe.exercise_status>1&&!((vi=Qe.exercise_tips)!=null&&vi.includes("\u5DF2\u622A\u6B62"))&&tn.createElement("a",{className:ri.flexBox,style:{marginRight:"16px"},onClick:Qn=>{Qn.stopPropagation(),Qn.preventDefault(),zi(Qe,!0)},href:""},tn.createElement("i",{className:"iconfont icon-jixukaoshi"}),tn.createElement("div",null,(Qe==null?void 0:Qe.screen_used_num)>(Qe==null?void 0:Qe.screen_total_num)&&"\u7533\u8BF7"," \u7EE7\u7EED\u8003\u8BD5")),!((pt=Qe.exercise_tips)!=null&&pt.includes("\u5DF2\u622A\u6B62"))&&(Qe==null?void 0:Qe.screen_used_num)>(Qe==null?void 0:Qe.screen_total_num)&&tn.createElement("a",{className:ri.flexBox,style:{marginRight:"16px"},onClick:Qn=>{Qn.stopPropagation(),Qn.preventDefault(),zi(Qe,!0)},href:""},tn.createElement("i",{className:"iconfont icon-jixukaoshi"}),tn.createElement("div",null,"\u7533\u8BF7\u7EE7\u7EED\u8003\u8BD5")),!Qe.off_limits&&Qe.current_status===1&&(Qe==null?void 0:Qe.screen_used_num)<(Qe==null?void 0:Qe.screen_total_num)&&Qe.exercise_status>1&&document.domain!="kepukehuan.educoder.net"&&!((Qe==null?void 0:Qe.exercise_type)==2&&(Qe==null?void 0:Qe.exercise_status)!=3)&&tn.createElement("span",{className:ri.flexBox,style:{marginRight:"16px"},onClick:Qn=>bi(void 0,null,function*(){var ni;if(Qn.stopPropagation(),!(Qe!=null&&Qe.answered_open)){rt.ZP.info("\u8001\u5E08\u5DF2\u8BBE\u7F6E\u672C\u8BD5\u5377\u5728\u4EA4\u5377\u540E\u4E0D\u53EF\u67E5\u770B");return}yield(0,ci.w)(cn.coursesId,Qe.id,"\u6B63\u5728\u8FDB\u5165\u67E5\u770B\uFF0C\u8BF7\u7A0D\u540E..."),(0,Ee.xg)(`/classrooms/${cn.coursesId}/exercise/${Qe.id}/users/${(ni=(0,ct.eY)())==null?void 0:ni.login}?check=true`)})},tn.createElement("i",{className:"iconfont icon-chakankaoshi"}),tn.createElement("div",null,"\u67E5\u770B\u8003\u8BD5")),(Qe==null?void 0:Qe.exercise_type)==1&&!Qe.off_limits&&Qe.current_status===2&&Qe.exercise_status>1&&!((Kn=Qe.exercise_tips)!=null&&Kn.includes("\u5DF2\u622A\u6B62"))&&tn.createElement("a",{className:ri.flexBox,style:{marginRight:"16px",color:(Qe==null?void 0:Qe.is_redo)===1&&"red"},onClick:Qn=>{Qn.stopPropagation(),Qn.preventDefault(),zi(Qe)},href:""},tn.createElement("i",{className:"iconfont icon-a-kaishijixudajuan"}),tn.createElement("div",null,(Qe==null?void 0:Qe.is_redo)===0?"\u5F00\u59CB\u8003\u8BD5":"\u91CD\u65B0\u8003\u8BD5")),(Qe==null?void 0:Qe.exercise_type)==2&&!Qe.off_limits&&Qe.exercise_status>1&&!((Hn=Qe.exercise_tips)!=null&&Hn.includes("\u5DF2\u622A\u6B62"))&&tn.createElement(de.Z,{title:tn.createElement("span",null,"\u672C\u6B21\u8003\u8BD5\u53EF\u91CD\u590D\u8003\u8BD5",Qe==null?void 0:Qe.simulate_exercise_num,"\u6B21\uFF0C\u5269\u4F59",Vi(),"\u6B21")},tn.createElement("a",{className:ri.flexBox,onClick:Qn=>{Vi()==0&&(Qe==null?void 0:Qe.current_status)!=0||(Qn.stopPropagation(),Qn.preventDefault(),zi(Qe))},href:""},tn.createElement("i",{className:`iconfont ${(Qe==null?void 0:Qe.current_status)!=0?"icon-a-kaishijixudajuan":"icon-jixukaoshi"}`}),tn.createElement("div",null,(Qe==null?void 0:Qe.current_status)!=0?"\u5F00\u59CB\u8003\u8BD5":"\u7EE7\u7EED\u8003\u8BD5"))),(Qe==null?void 0:Qe.ai_push_wrong_question)&&(Qe==null?void 0:Qe.whole_exercise_status)===3&&!((jn=Qe==null?void 0:Qe.exercise_tips)!=null&&jn.includes("\u672A\u63D0\u4EA4"))&&tn.createElement("span",{className:ri.flexBox,style:{marginRight:"16px"},onClick:Qn=>bi(void 0,null,function*(){var ni,Ki;if(Qn.stopPropagation(),(Qe==null?void 0:Qe.wrong_questions_size)===0){rt.ZP.warning("\u672C\u6B21\u8003\u8BD5\u4F60\u65E0\u9700\u8FDB\u884C\u9519\u9898\u5DE9\u56FA\uFF5E");return}if(((ni=Qe==null?void 0:Qe.progress)==null?void 0:ni.stat)===1){rt.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/${cn.coursesId}/exercise/${Qe.id}/wrongAnswer/${(Ki=(0,ct.eY)())==null?void 0:Ki.login}`)})},tn.createElement("i",{className:"iconfont icon-cuotigonggu"}),tn.createElement("div",null,"\u9519\u9898\u5DE9\u56FA"))))),(0,ct.GJ)()&&tn.createElement("p",{style:{display:"flex"}},tn.createElement("span",{className:"c-grey-666",style:{display:"inline-block",maxWidth:"90px",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",WebkitLineClamp:1},title:Qe.author},Qe.author),tn.createElement("span",{className:"ml30 c-grey-666"},"\u521B\u5EFA\u65F6\u95F4\uFF1A",Ve()(Qe.created_at).format("YYYY-MM-DD HH:mm:ss")),((Mn=Qe==null?void 0:Qe.exercise_tips)==null?void 0:Mn.includes("\u672A\u5F00\u59CB"))&&Qe.publish_time&&tn.createElement("span",{className:"ml30 c-grey-666"},"\u5F00\u59CB\u65F6\u95F4\uFF1A",Ve()(Qe.publish_time).format("YYYY-MM-DD HH:mm:ss")),tn.createElement("span",{className:"ml30 c-grey-666"},"\u7B54\u9898\u65F6\u957F\uFF1A",Qe.time===null?"\u4E0D\u9650":`${Qe.time}\u5206\u949F`),tn.createElement("span",{className:"ml30 c-grey-666"},"\u7C7B\u578B\uFF1A",Qe.is_random?"\u968F\u673A\u7EC4\u5377":"\u4EBA\u5DE5\u7EC4\u5377"),!((fi=Qe==null?void 0:Qe.exercise_tips)!=null&&fi.includes("\u672A\u5F00\u59CB"))&&!(Qe!=null&&Qe.is_make_up_exercise)&&!(Qe!=null&&Qe.exercise_tips.includes("\u5BFC\u5165"))&&tn.createElement("span",{className:ri.iconV,style:{marginLeft:"auto",textAlign:"end"},onClick:Qn=>bi(void 0,null,function*(){Qn.stopPropagation(),Qn.preventDefault(),dr||bn(),Ar(!dr)})},tn.createElement(de.Z,{title:`${dr?"\u6536\u8D77":"\u5C55\u5F00"}`},tn.createElement("i",{className:`iconfont icon-${dr?"shouqi":"xiala2"}`})))),(0,ct.dE)()&&tn.createElement("p",{style:{display:"flex"}},tn.createElement("span",{className:"c-grey-333"},Qe.author),tn.createElement("span",{className:"ml30 c-grey-999 mr20"},"\u7B54\u9898\u65F6\u957F\uFF1A",Qe.time===null?"\u4E0D\u9650":`${Qe.time}\u5206\u949F`),!!(Qe!=null&&Qe.exercise_left_time)&&tn.createElement("span",{className:"ml15 c-grey-999"},"\u8003\u8BD5\u5269\u4F59\u65F6\u95F4\uFF1A",Qe==null?void 0:Qe.exercise_left_time),!!(Qe!=null&&Qe.before_start)&&tn.createElement("span",{className:"ml15 c-grey-999"},"\u8DDD\u79BB\u8003\u8BD5\u5F00\u59CB\u65F6\u95F4\uFF1A",Qe==null?void 0:Qe.before_start)),(0,ct.GJ)()&&!((Si=Qe==null?void 0:Qe.exercise_tips)!=null&&Si.includes("\u672A\u5F00\u59CB"))&&tn.createElement("p",null,tn.createElement("span",{style:{letterSpacing:2},className:"c-grey-333 mr15"},"\u63D0\u4EA4\u72B6\u6001\uFF1A"),tn.createElement("span",{className:"c-grey-333 mr20"},"\u672A\u5F00\u59CB ",tn.createElement("span",null,Qe==null?void 0:Qe.unanswer_users)),tn.createElement("span",{className:"c-grey-333 mr20"},"\u8003\u8BD5\u4E2D ",tn.createElement("span",{style:{color:"rgb(90, 184, 145)"}},Qe==null?void 0:Qe.answering_users)),tn.createElement("span",{className:"c-grey-333 mr20"},"\u5DF2\u4EA4\u5377 ",tn.createElement("span",{style:{color:"#FC2D6B"}},Qe==null?void 0:Qe.answer_users)),tn.createElement("span",{className:"c-grey-333"},"\u5DF2\u4EA4\u5377/\u672A\u7B54 ",tn.createElement("span",{style:{color:"#FC2D6B"}},Qe==null?void 0:Qe.commit_with_no_answers_users))),(0,ct.GJ)()&&!((kn=Qe==null?void 0:Qe.exercise_tips)!=null&&kn.includes("\u672A\u5F00\u59CB"))&&dr&&Ei.length>5&&tn.createElement(qi.default,{scroll:{y:240},pagination:!1,dataSource:Ei,onRow:Qn=>({onClick:ni=>{ni.stopPropagation(),ni.preventDefault()}}),onHeaderRow:(Qn,ni)=>({onClick:Ki=>{Ki.stopPropagation(),Ki.preventDefault()}}),rowKey:"course_group_id",style:{marginTop:"10px"},onChange:(Qn,ni,Ki)=>{Ki.field&&(cn.order_by=Ki.field),Ki.order||(cn.sort_direction="asc"),Ki.order==="ascend"&&(cn.sort_direction="asc"),Ki.order==="descend"&&(cn.sort_direction="desc"),Ki.order||(cn.sort_direction="asc"),bn()},columns:_i}),(0,ct.GJ)()&&!((xi=Qe==null?void 0:Qe.exercise_tips)!=null&&xi.includes("\u672A\u5F00\u59CB"))&&dr&&Ei.length<6&&Ei.length>0&&tn.createElement(qi.default,{rowKey:"course_group_id",pagination:!1,onRow:Qn=>({onClick:ni=>{ni.stopPropagation(),ni.preventDefault()}}),onHeaderRow:(Qn,ni)=>({onClick:Ki=>{Ki.stopPropagation(),Ki.preventDefault()}}),dataSource:Ei,style:{marginTop:"10px"},onChange:(Qn,ni,Ki)=>{Ki.field&&(cn.order_by=Ki.field),Ki.order||(cn.sort_direction="asc"),Ki.order==="ascend"&&(cn.sort_direction="asc"),Ki.order==="descend"&&(cn.sort_direction="desc"),Ki.order||(cn.sort_direction="asc"),bn()},columns:_i}),(Qe==null?void 0:Qe.total)!==void 0&&tn.createElement("p",null,tn.createElement("span",{className:"c-grey-333 mr15"},"\u96C6\u4E2D\u9605\u5377\u603B\u8FDB\u5EA6\uFF1A"),tn.createElement("span",{className:"c-grey-333 mr20"},"\u603B\u8BC4\u6570",tn.createElement("span",null,Qe==null?void 0:Qe.total)),tn.createElement("span",{className:"c-grey-333 mr20"},"\u5DF2\u8BC4\u9605 ",tn.createElement("span",{style:{color:"#4EACFF"}},Qe==null?void 0:Qe.finish_total)),tn.createElement("span",{className:"c-grey-333"},"\u5F85\u8BC4\u9605 ",tn.createElement("span",{style:{color:"#FC2D6B"}},Qe==null?void 0:Qe.unfinished_total)))),tn.createElement(ut.Z,{closable:!0,successCb:()=>zi(ur.current)}))};var Mi=(0,_e.connect)(({classroomList:Qe})=>({classroomList:Qe}))(tr),kr=we(46373),rr=we(11492),Lr=we(19541),Tr=we(95024),Zr=we(87169),uo=we(98895),An=we(93603),mo=we(40746),Fn=we(97991),ai=we(59301),_r=Object.defineProperty,Hr=Object.defineProperties,Oo=Object.getOwnPropertyDescriptors,Kr=Object.getOwnPropertySymbols,Or=Object.prototype.hasOwnProperty,Bo=Object.prototype.propertyIsEnumerable,qt=(Qe,Ut,Ft)=>Ut in Qe?_r(Qe,Ut,{enumerable:!0,configurable:!0,writable:!0,value:Ft}):Qe[Ut]=Ft,vn=(Qe,Ut)=>{for(var Ft in Ut||(Ut={}))Or.call(Ut,Ft)&&qt(Qe,Ft,Ut[Ft]);if(Kr)for(var Ft of Kr(Ut))Bo.call(Ut,Ft)&&qt(Qe,Ft,Ut[Ft]);return Qe},Ht=(Qe,Ut)=>Hr(Qe,Oo(Ut)),Ze=(Qe,Ut)=>{var Ft={};for(var ln in Qe)Or.call(Qe,ln)&&Ut.indexOf(ln)<0&&(Ft[ln]=Qe[ln]);if(Qe!=null&&Kr)for(var ln of Kr(Qe))Ut.indexOf(ln)<0&&Bo.call(Qe,ln)&&(Ft[ln]=Qe[ln]);return Ft},Xn=(Qe,Ut,Ft)=>new Promise((ln,_n)=>{var yn=be=>{try{En(Ft.next(be))}catch(dt){_n(dt)}},cn=be=>{try{En(Ft.throw(be))}catch(dt){_n(dt)}},En=be=>be.done?ln(be.value):Promise.resolve(be.value).then(yn,cn);En((Ft=Ft.apply(Qe,Ut)).next())});const Fi=Qe=>{var Ut=Qe,{user:Ft,classroomList:ln,globalSetting:_n,loading:yn,dispatch:cn,match:En}=Ut,be=Ze(Ut,["user","classroomList","globalSetting","loading","dispatch","match"]),dt,Xe,Pt,Et,Jt,$t,dn,Tn,zn,fn,ei,vi,pt,Kn,Hn,jn,Mn;const fi=(0,_e.useParams)(),[Si]=(0,_e.useSearchParams)(),[kn,xi]=(0,ve.useState)(()=>Ht(vn({},fi),{limit:20})),Ei=(0,_e.useLocation)(),{detailExerciseList:Ai,detailTopBanner:dr,detailLeftMenus:Ar}=ln,[ur,ii]=(0,ve.useState)([]),[gr,nr]=(0,ve.useState)(!1),[hr,$i]=(0,ve.useState)([]),[wr,bn]=(0,ve.useState)(!1),[Li,zi]=(0,ve.useState)(!1),[_i,Gi]=(0,ve.useState)(!1),[Vi,di]=(0,ve.useState)(!1),[ki,cr]=(0,ve.useState)("\u6309\u521B\u5EFA\u65F6\u95F4\u964D\u5E8F"),Qn=[{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"}];kn.type=Si.get("tabs")==="all"?"":Si.get("tabs")||"",kn.id=kn.coursesId,(0,ve.useEffect)(()=>{var ar,Rr,Lo;if((ar=Ft==null?void 0:Ft.userInfo)!=null&&ar.login){if((0,ct.GJ)()){const Zo=Ee.cX.getItem(`${(Rr=Ft==null?void 0:Ft.userInfo)==null?void 0:Rr.login}Teacher`,"Exercise");Zo&&(kn.sort_by=Zo==null?void 0:Zo.type,kn.sort_direction=Zo==null?void 0:Zo.direction,cr(Zo==null?void 0:Zo.name))}cn({type:"classroomList/getClassroomExercisesList",payload:vn(vn({},kn),fi)})}else(Lo=Ft==null?void 0:Ft.userInfo)!=null&&Lo.username&&cn({type:"classroomList/getClassroomExercisesList",payload:vn(vn({},kn),fi)});nr(!1)},[(dt=Ft==null?void 0:Ft.userInfo)==null?void 0:dt.login,Ei.pathname]),(0,ve.useEffect)(()=>{ln.actionTabs.key==="\u76EE\u5F55\u91CD\u547D\u540D\u6210\u529F"&&cn({type:"classroomList/getClassroomExercisesList",payload:vn(vn({},kn),fi)})},[ln.actionTabs.key]),(0,ve.useEffect)(()=>{ln.actionTabs.key==="\u5728\u7EBF\u8003\u8BD5\u8BBE\u7F6E"&&(bn(!0),zi(dr==null?void 0:dr.show_unstart_exercise),Gi(dr==null?void 0:dr.forbid_end_exercise))},[ln.actionTabs.key]),(0,ve.useEffect)(()=>{ii([])},[Ai]);const ni=(ar,Rr)=>{ii([]),kn.page=ar,kn.limit=Rr,cn({type:"classroomList/getClassroomExercisesList",payload:vn(vn({},kn),fi)})},Ki=ar=>{kn.type=ar.key==="all"?"":ar.key,kn.page=1,_e.history.replace(`${Ei.pathname}?tabs=${ar.key}`),di(!1),cn({type:"classroomList/getClassroomExercisesList",payload:vn(vn({},kn),fi)})};(0,ve.useEffect)(()=>{Si.get("tabs")==="all"&&(kn.type="",kn.page=1)},[Si.get("tabs")]),(0,ve.useEffect)(()=>{(0,ct.Rm)()&&cn({type:"classroomList/getAssistantPermissions",payload:{course_id:kn.coursesId}})},[(Xe=Ft==null?void 0:Ft.userInfo)==null?void 0:Xe.username]),(0,ve.useEffect)(()=>{const ar=sessionStorage.getItem("illegalEntry");sessionStorage.getItem("illegalEntry")&&(sessionStorage.removeItem("illegalEntry"),lt.default.info({title:"\u63D0\u793A",centered:!0,width:600,content:ai.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",ai.createElement("br",null),"1\u3001\u5728",ai.createElement("span",{className:"c-red blod"},"\u8003\u8BD5\u5217\u8868"),"\u9875\u9762\u4E2D\uFF0C\u70B9\u51FB\u201C",ai.createElement("span",{className:"c-blue blod"},"\u5F00\u59CB\u8003\u8BD5"),"\u201D\u6216\u201C",ai.createElement("span",{className:"c-blue blod"},"\u7EE7\u7EED\u8003\u8BD5"),"\u201D\u6309\u94AE\u8FDB\u5165\u8003\u8BD5\u7B54\u9898\u9875\u9762\u3002",ai.createElement("br",null),"2\u3001\u5728",ai.createElement("span",{className:"c-red blod"},"\u8003\u8BD5\u8BE6\u60C5"),"\u9875\u9762\u4E2D\uFF0C\u70B9\u51FB\u201C",ai.createElement("span",{className:"c-blue blod"},"\u5F00\u59CB\u8003\u8BD5"),"\u201D\u6216\u201C",ai.createElement("span",{className:"c-blue blod"},"\u7EE7\u7EED\u8003\u8BD5"),"\u201D\u6309\u94AE\u8FDB\u5165\u8003\u8BD5\u7B54\u9898\u9875\u9762\u3002",ai.createElement("br",null),ar==="allowRouter"&&ai.createElement(ai.Fragment,null,"3\u3001",ai.createElement("span",{className:"c-red blod"},"\u4E25\u7981\u67E5\u770B\u4ED6\u4EBA\u7684\u8BD5\u5377\u3002"))),okText:"\u77E5\u9053\u4E86"}))},[]);const or=[{name:"\u5168\u90E8",id:"all",total:(Pt=Ai.exercises_counts)==null?void 0:Pt.exercises_total_counts},{name:"\u672A\u5F00\u59CB",id:1,total:(Et=Ai.exercises_counts)==null?void 0:Et.unstart_counts},{name:"\u8003\u8BD5\u4E2D",id:2,total:(Jt=Ai.exercises_counts)==null?void 0:Jt.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:(dn=Ai.exercises_counts)==null?void 0:dn.end_counts}],Mr=[{name:"\u6279\u91CF\u53D1\u5E03",icon:ai.createElement("i",{className:"iconfont icon-fabu5"})},{name:"\u6279\u91CF\u7ED3\u675F",icon:ai.createElement("i",{className:"iconfont icon-piliangjiezhi2"})},{name:"\u6279\u91CF\u5220\u9664",icon:ai.createElement("i",{className:"iconfont icon-piliangshanchu2"})},{name:"\u8BBE\u4E3A\u516C\u5F00",icon:ai.createElement("i",{className:"iconfont icon-sheweigongkai2"})},{name:"\u52A0\u5165\u8BD5\u5377\u5E93",icon:ai.createElement("i",{className:"iconfont icon-piliangjiaru font14"})}].filter(ar=>(0,ct.GJ)()?!0:ar.name!=="\u6279\u91CF\u5220\u9664").filter(ar=>dr.is_public?!0:ar.name!=="\u8BBE\u4E3A\u516C\u5F00"),fo=()=>lt.default.info({title:"\u9898\u5E93\u6539\u7248\u544A\u77E5",content:ai.createElement(ai.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")}),po="YYYY-MM-DD",No=Ve()("2020-11-15",po),qr=ar=>{var Rr;kn.sort_by=ar.type,kn.sort_direction=ar.direction,(0,ct.GJ)()&&Ee.cX.setItem(`${(Rr=Ft==null?void 0:Ft.userInfo)==null?void 0:Rr.login}Teacher`,ar,"Exercise"),kn.page=1,cn({type:"classroomList/getClassroomExercisesList",payload:vn({},kn)}),cr(ar.name)},ta=()=>ai.createElement(it.default,null,ai.createElement(it.default.Item,{key:1,onClick:()=>{var ar,Rr;if((0,ct.Rm)()&&!((Rr=(ar=ln==null?void 0:ln.AssistantObject)==null?void 0:ar.exercise)!=null&&Rr.can_create)){rt.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}cn({type:"exercise/setActionTabs",payload:{key:"\u8BD5\u5377\u9009\u7528",params:kn}})}},"\u5FEB\u901F\u9009\u62E9\u8BD5\u5377"),ai.createElement(it.default.Item,{key:2,onClick:()=>{var ar,Rr;if((0,ct.Rm)()&&!((Rr=(ar=ln==null?void 0:ln.AssistantObject)==null?void 0:ar.exercise)!=null&&Rr.can_create)){rt.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),_e.history.push(`/classrooms/${kn.coursesId}/exercise/add?catalogue=${(fi==null?void 0:fi.categoryId)||""}`)}},"\u521B\u5EFA\u65B0\u8BD5\u5377"),ai.createElement(it.default.Item,{key:3,onClick:()=>{var ar,Rr;if((0,ct.Rm)()&&!((Rr=(ar=ln.AssistantObject)==null?void 0:ar.practice)!=null&&Rr.can_create)){rt.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}cn({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u5165\u5916\u90E8\u6210\u7EE9",type:"exercise"}})}},"\u5BFC\u5165\u5916\u90E8\u6210\u7EE9")),Ao=ar=>Xn(void 0,null,function*(){var Rr,Lo,Zo,Ko,Io,Co,ia,ma;const To=ar.name;if(((Rr=Ft==null?void 0:Ft.userInfo)==null?void 0:Rr.user_status)===2&&ar.name==="\u6279\u91CF\u53D1\u5E03"){(0,Re.Rd)();return}const Da=[];if((Lo=Ai.exercises)==null||Lo.map(Ur=>{if(ur.includes(Ur.id)&&Ur.is_random){const ao=Ve()(Ur.created_at,po);Ve()(No).diff(Ve()(ao),"days")>0&&(Ur!=null&&Ur.is_random)&&Da.push(Ur)}}),ur==""){let Ur="\u8BF7\u9009\u62E9\u4F60\u8981\u64CD\u4F5C\u7684\u4EFB\u52A1";To==="\u52A0\u5165\u8BD5\u5377\u5E93"&&(Ur="\u8BF7\u9009\u62E9\u8981\u52A0\u5165\u8BD5\u5377\u5E93\u7684\u8BD5\u5377"),rt.ZP.error(Ur)}else if(Da.length)fo();else{if(To==="\u6279\u91CF\u53D1\u5E03"){if((0,ct.Rm)()&&!((Ko=(Zo=ln==null?void 0:ln.AssistantObject)==null?void 0:Zo.exercise)!=null&&Ko.can_publish)){rt.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 Ur=!1;Ai.exercises.forEach(bo=>{ur.includes(bo.id)&&bo.total_num===0&&bo.is_random&&(Ur=!0)});let ao;if(ao=(Co=(Io=Ai.exercises.filter(bo=>ur.includes(bo==null?void 0:bo.id)).filter(bo=>(bo==null?void 0:bo.exercise_question_count)===0))==null?void 0:Io[0])==null?void 0:Co.exercise_name,(ao==null?void 0:ao.length)>0){rt.ZP.warning(`${ao}\u8BD5\u5377\u5185\u6CA1\u6709\u8BD5\u9898\u4E0D\u5141\u8BB8\u53D1\u5E03\u8003\u8BD5`);return}if(Ur){rt.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 ho=!1;if(Ai.exercises.forEach(bo=>{ur.includes(bo.id)&&bo.exercise_status!==1&&(ho=!0)}),ho){rt.ZP.warning("\u8BD5\u5377\u5DF2\u53D1\u5E03\u8003\u8BD5\u4E0D\u53EF\u6279\u91CF\u53D1\u5E03\u3002");return}}if(To==="\u52A0\u5165\u8BD5\u5377\u5E93"){const Ur=yield(0,te.ZP)(`/api/courses/${kn.id}/exercises/check_exercise_cover.json`,{method:"post",body:{check_ids:[...ur]}});if(((ia=Ur==null?void 0:Ur.cover_exercises)==null?void 0:ia.length)>0){$i(Ur==null?void 0:Ur.cover_exercises);return}}cn({type:"exercise/setActionTabs",payload:{key:To,selectArrs:ur,selectArrsAll:(ma=Ai.exercises)==null?void 0:ma.filter(Ur=>ur.includes(Ur.id)),params:kn,type:1}})}});return ai.createElement("section",{className:"minH500"},ai.createElement(kr.Z,{isLoading:yn["classroomList/getClassroomExercisesList"],tabDataSource:or,isAdmin:(0,ct.GJ)(),dispatch:cn,type:Ai==null?void 0:Ai.main_category_name,isExercise:!0,user:Ft,getDropdownMenu:ta,onTabMenuClick:Ki,classroomList:ln,defaultSelectedKeys:[kn.type||"all"]}),ai.createElement(rr.Z,{dataSource:Ai.exercises||[],isAdmin:(0,ct.GJ)(),batchStatus:Vi,SortMenuName:ki,setSortMenuName:cr,SortMenus:Qn,onSearch:ar=>{kn.search=ar.trim(),kn.page=1,cn({type:"classroomList/getClassroomExercisesList",payload:vn({},kn)})},isShowMode:!0,onModeChange:ar=>{kn.is_normal=ar,kn.page=1,cn({type:"classroomList/getClassroomExercisesList",payload:vn({},kn)})},onSort:qr,onBatch:ar=>di(ar)}),ai.createElement(ze.Z,{loading:yn["classroomList/getClassroomExercisesList"],active:!0,avatar:{size:40},paragraph:{rows:5},className:"mt30"},(Tn=Ai.exercises_counts)!=null&&Tn.exercises_all_counts?Ai.exercises.map(function(ar,Rr){return ai.createElement(Mi,{key:Rr,v:ar,k:Rr,match:En,batchStatus:Vi,selectArrs:ur,setSelectArrs:ii,dispatch:cn,params:kn,user:Ft,manageAllGroup:Ai.manage_all_group})}):ai.createElement(ne.Z,null),ai.createElement("aside",{className:"tc mb50 mt30"},((zn=Ai.exercises_counts)==null?void 0:zn.exercises_all_counts)>0&&ai.createElement(Ue.Z,{showTotal:ar=>{var Rr;return`\u5171 ${(Rr=Ai==null?void 0:Ai.exercises_counts)==null?void 0:Rr.exercises_all_counts} \u6761`},showSizeChanger:!0,onChange:ni,defaultCurrent:kn.page,current:kn.page||1,pageSize:kn.limit||20,total:Ai.exercises_counts&&Ai.exercises_counts.exercises_all_counts}))),ur.length>0&&(0,ct.GJ)()&&ai.createElement(yt.Z,{offsetBottom:0},ai.createElement(Lr.Z,{buttonDataSource:Mr,onButtonClick:Ao,useBatchStatus:di,setSeleArr:ii,catalogue:((ei=(fn=Ar==null?void 0:Ar.course_modules)==null?void 0:fn.find(ar=>ar.type==="exercise"))==null?void 0:ei.second_category)||[],addCatalogue:ar=>{ar.preventDefault(),cn({type:"classroomList/setActionTabs",payload:{key:"\u6DFB\u52A0\u76EE\u5F55",params:kn,selectArrs:{category_id:Ai==null?void 0:Ai.main_category_id,type:"exercise"}}})},allSelect:ur.length?ur.length===((pt=(vi=Ai.exercises)==null?void 0:vi.filter(ar=>!ar.is_make_up_exercise))==null?void 0:pt.length):!1,setAllSelect:ar=>{var Rr;ar.target.checked?ii((Rr=Ai==null?void 0:Ai.exercises)==null?void 0:Rr.filter(Lo=>!Lo.is_make_up_exercise).map(Lo=>Lo.id)):ii([])},selectArrs:ur,onMenuClick:ar=>Xn(void 0,[ar],function*({key:Rr}){if(ur=="")return rt.ZP.error("\u8BF7\u9009\u62E9\u4F60\u8981\u64CD\u4F5C\u7684\u4EFB\u52A1"),null;(yield(0,te.ZP)(`/api/courses/${kn.id}/exercises/move_to_category.json`,{method:"post",body:{exercise_ids:ur,new_category_id:Rr}})).status===0&&(rt.ZP.success("\u64CD\u4F5C\u6210\u529F"),cn({type:"classroomList/getClassroomExercisesList",payload:vn({},fi)}))})})),ai.createElement(vt.Z,null),ai.createElement(hn.Z,null),ai.createElement(Ln,null),ai.createElement(et,null),ai.createElement(uo.Z,{onOk:()=>{cn({type:"classroomList/getClassroomExercisesList",payload:vn({},fi)})}}),ai.createElement(An.Z,{onOk:()=>{}}),ai.createElement(kt,{cb:()=>ii([])}),ai.createElement(ir,null),ai.createElement(ut.Z,null),ai.createElement(lt.default,{title:ai.createElement("span",null,ai.createElement(Zr.Z,{style:{color:"#faad14",fontSize:"18px"}})," \u52A0\u5165\u8BD5\u5377\u5E93\u63D0\u793A"),open:hr.length>0,footer:!1,onCancel:()=>{$i([])}},ai.createElement("div",{style:{height:300,overflow:"auto"}},ai.createElement("div",null,"\u6709",hr==null?void 0:hr.length,"\u5F20\u8BD5\u5377\u5728\u8BD5\u5377\u5E93\u91CD\u590D\uFF0C\u662F\u5426\u9700\u8981\u8986\u76D6\u539F\u6765\u7684\u8BD5\u5377\uFF1F"),hr==null?void 0:hr.map(ar=>ai.createElement("div",{style:{marginTop:25}},ai.createElement("div",null,"\u8BD5\u5377\uFF1A",ar==null?void 0:ar.origin_exercise_nam),ai.createElement("div",null,"\u539F\u8BD5\u5377\uFF1A",ai.createElement("a",{href:`/paperlibrary/see/${ar==null?void 0:ar.examination_bank_id}?defaultActiveKey=0`,target:"_blank"},ar==null?void 0:ar.examination_bank_name))))),ai.createElement("div",{style:{textAlign:"end"}},ai.createElement(tt.ZP,{style:{height:30},onClick:()=>Xn(void 0,null,function*(){const ar=yield(0,te.ZP)(`/api/courses/${kn.id}/exercises/join_examination_banks.json`,{method:"post",body:{check_ids:[...ur],update:1}});(ar==null?void 0:ar.status)===0&&(rt.ZP.info("\u8986\u76D6\u6210\u529F"),$i([]))})},"\u8986\u76D6\u539F\u6765\u7684\u8BD5\u5377"),ai.createElement(tt.ZP,{type:"primary",onClick:()=>Xn(void 0,null,function*(){const ar=yield(0,te.ZP)(`/api/courses/${kn.id}/exercises/join_examination_banks.json`,{method:"post",body:{check_ids:[...ur]}});(ar==null?void 0:ar.status)===0&&(rt.ZP.info("\u5F62\u6210\u6210\u529F"),$i([]))}),style:{marginLeft:10,height:30}},"\u5F62\u6210\u65B0\u8BD5\u5377"))),ai.createElement(lt.default,{title:"\u5728\u7EBF\u8003\u8BD5\u8BBE\u7F6E",open:wr,centered:!0,onOk:()=>Xn(void 0,null,function*(){let ar=yield(0,te.ZP)(`/api/courses/${kn.coursesId}/update_show_unstart_exercise`,{method:"put",body:{show_unstart_exercise:Li,forbid_end_exercise:_i}});(ar==null?void 0:ar.status)===0&&(bn(!1),cn({type:"classroomList/setActionTabs",payload:{key:""}}),cn({type:"classroomList/getClassroomTopBanner",payload:{id:kn.coursesId}}),rt.ZP.info("\u64CD\u4F5C\u6210\u529F"))}),onCancel:()=>{bn(!1),cn({type:"classroomList/setActionTabs",payload:{key:""}})}},ai.createElement(De.default,{checked:Li,onChange:ar=>{zi(ar.target.checked)}},"\u5141\u8BB8\u5B66\u751F\u67E5\u770B\u5DF2\u53D1\u5E03\u4F46\u672A\u5F00\u59CB\u7684\u8003\u8BD5",ai.createElement("span",{style:{color:"#666666"}},"\uFF08\u8003\u8BD5\u5F00\u59CB\u4E4B\u540E\u5B66\u751F\u624D\u80FD\u4F5C\u7B54\uFF09")),ai.createElement(De.default,{className:"mt20",checked:_i,onChange:ar=>{Gi(ar.target.checked)}},"\u7981\u6B62\u5B66\u751F\u67E5\u770B\u5DF2\u622A\u6B62\u7684\u8003\u8BD5")),ai.createElement(Tr.Z,null),ai.createElement(ai.Fragment,null,ai.createElement(mo.T$,{onCancel:()=>{cn({type:"classroomList/setActionTabs",payload:Ht(vn({},ln==null?void 0:ln.actionTabs),{open:""})})},open:((Kn=ln==null?void 0:ln.actionTabs)==null?void 0:Kn.open)==="\u624B\u673A\u53F7\u7ED1\u5B9A"}),ai.createElement(mo.$i,{onCancel:()=>{cn({type:"classroomList/setActionTabs",payload:Ht(vn({},ln==null?void 0:ln.actionTabs),{open:""})})},onFinish:()=>{cn({type:"classroomList/getClassroomExercisesList",payload:vn(vn({},kn),fi)})},open:((Hn=ln==null?void 0:ln.actionTabs)==null?void 0:Hn.open)==="\u8BD5\u5377\u5C01\u5B58",Data:Ht(vn({},ln==null?void 0:ln.actionTabs),{type:"exercise"})}),ai.createElement(mo.K1,{onCancel:()=>{cn({type:"classroomList/setActionTabs",payload:Ht(vn({},ln==null?void 0:ln.actionTabs),{open:""})})},onFinish:()=>{cn({type:"classroomList/getClassroomExercisesList",payload:vn(vn({},kn),fi)})},open:((jn=ln==null?void 0:ln.actionTabs)==null?void 0:jn.open)==="\u89E3\u5C01",Data:Ht(vn({},ln==null?void 0:ln.actionTabs),{type:"exercise"})}),ai.createElement(mo.O7,{onCancel:()=>{cn({type:"classroomList/setActionTabs",payload:Ht(vn({},ln==null?void 0:ln.actionTabs),{open:""})})},onFinish:()=>{cn({type:"classroomList/getClassroomExercisesList",payload:vn(vn({},kn),fi)})},open:((Mn=ln==null?void 0:ln.actionTabs)==null?void 0:Mn.open)==="\u63D0\u793A",Data:Ht(vn({},ln==null?void 0:ln.actionTabs),{type:"exercise"})})),ai.createElement(Fn.Z,null))};var Qi=(0,_e.connect)(({user:Qe,classroomList:Ut,loading:Ft,globalSetting:ln})=>({user:Qe,classroomList:Ut,globalSetting:ln,loading:Ft.effects}))(Fi)},48716:function(gn,en,we){"use strict";we.d(en,{Q8:function(){return He},d0:function(){return Rt},w6:function(){return at}});var ve=we(59301),_e=we(16326),lt=we(82326),it=we(6767),rt=we(62957),ze=we(47889),Ue=we(77019),yt=we(5269),tt=we(25399),De=we(62673),xt=we(99571),Ve=we(61186),ct=we.n(Ve),Ee=we(48790),ne=we(38986),te=we(89392),ue=we.n(te),se=we(51257),de=we(22982),pe=we(25690),ye=we(43155),Ce=we(40197),je=we(59229),Te=we(3039),Ie=we(75736),Oe=we(59301),Re=Object.defineProperty,nt=Object.defineProperties,ot=Object.getOwnPropertyDescriptors,wt=Object.getOwnPropertySymbols,gt=Object.prototype.hasOwnProperty,Dt=Object.prototype.propertyIsEnumerable,Lt=(on,Dn,kt)=>Dn in on?Re(on,Dn,{enumerable:!0,configurable:!0,writable:!0,value:kt}):on[Dn]=kt,It=(on,Dn)=>{for(var kt in Dn||(Dn={}))gt.call(Dn,kt)&&Lt(on,kt,Dn[kt]);if(wt)for(var kt of wt(Dn))Dt.call(Dn,kt)&&Lt(on,kt,Dn[kt]);return on},Tt=(on,Dn)=>nt(on,ot(Dn)),nn=(on,Dn,kt)=>new Promise((vt,hn)=>{var li=Fe=>{try{We(kt.next(Fe))}catch(xe){hn(xe)}},yi=Fe=>{try{We(kt.throw(Fe))}catch(xe){hn(xe)}},We=Fe=>Fe.done?vt(Fe.value):Promise.resolve(Fe.value).then(li,yi);We((kt=kt.apply(on,Dn)).next())});function at(on,Dn){const kt=[];for(let vt=on;vt<Dn;vt++)kt.push(vt);return kt}const He=(on,Dn,kt)=>{const vt=on<ct()().startOf("day"),hn=on>ct()(Dn).endOf("day"),li=on<ct()(kt).startOf("day");return Dn?kt?ct()()<=ct()(kt)?li||hn:vt||hn:on&&vt||hn:kt&&ct()()<=ct()(kt)?li:vt},Rt=(on,Dn)=>{const kt=parseInt(ct()(on).format("HH")),vt=parseInt(ct()().format("HH")),hn=parseInt(ct()().format("mm"));if(!on)return{disabledHours:()=>at(0,vt),disabledMinutes:()=>at(0,hn)};if(Dn){const li=parseInt(ct()(Dn).format("HH")),yi=parseInt(ct()(Dn).format("mm"));return ct()(on).isSame(ct()(Dn),"day")?{disabledHours:()=>at(0,li),disabledMinutes:()=>kt<=li?at(0,yi):[]}:void 0}if(ct()(on).isSame(ct()(),"day"))return{disabledHours:()=>at(0,vt),disabledMinutes:()=>ct()(on).isSame(ct()(),"hour")&&kt<=vt?at(0,hn):[]}},Zt=(on,Dn)=>on==null?void 0:on.map(kt=>{var vt;return(vt=Dn==null?void 0:Dn.find(hn=>hn.value===kt))==null?void 0:vt.id}),{RangePicker:Yt}=_e.default,{Option:Mt}=lt.default,zt=({shixunHomeworks:on,loading:Dn,dispatch:kt,classroomList:vt,user:hn})=>{var li,yi,We,Fe,xe,Ne,Ye,ke,et;const _t=(0,pe.useParams)(),{workSetting:Bt,workList:rn,shixunWorkList:Ot,headerInfo:bt,changeData:Wt}=on,[Xt,pn]=(0,ve.useState)(!1),[$n,Cn]=(0,ve.useState)(!1);let[Ln,Ci]=(0,ve.useState)([]),[Jn,Di]=(0,ve.useState)([]),[ui,Bi]=(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[Ui,ir]=(0,ve.useState)({}),[Ir,qi]=(0,ve.useState)({});(0,ve.useEffect)(()=>()=>{Ci([])},[]),(0,ve.useEffect)(()=>{pn(!(0,Ee.GJ)())},[(0,Ee.GJ)()]);const ri=()=>{kt({type:"shixunHomeworks/getWorkSetting",payload:It({},_t)})};(0,ve.useEffect)(()=>{if(!(Bt!=null&&Bt.course_id))return;Object.keys(ui).map(function(Un){ui[Un]=Bt[Un]}),(!ui.allow_late||!ui.unified_late)&&(ui.late_penalty=20,ui.penalty_type=ye.Q.Percent),ui.unified_setting||(ui.unified_late=!1,ui.unified_anonymous_comment=!1,ui.unified_anonymous_appeal=!1),Ln=JSON.parse(JSON.stringify(Bt.group_settings.map(Un=>Tt(It({},Un),{group_name:[Un.group_name]})).filter(Un=>Un.publish_time!==null))),Jn=JSON.parse(JSON.stringify(Bt.allow_late_settings.map(Un=>Tt(It({},Un),{group_name:[Un.group_name]})).filter(Un=>Un.late_time!==null))),Bi(It({},ui));const Pn=(0,se.QE)((Ln==null?void 0:Ln.length)>0?Ln:[]);Ci([...Pn]),(Jn==null?void 0:Jn.length)<=0?Di([{penalty_type:ye.Q.Percent,late_penalty:20}]):Di([...Jn])},[Bt]);const co=()=>nn(void 0,null,function*(){var Pn,Un;if(((Pn=hn==null?void 0:hn.userInfo)==null?void 0:Pn.user_status)===2){(0,Ce.Rd)();return}const gi=JSON.parse(JSON.stringify(ui));if(gi.challenge_settings.filter(ti=>!ti.hide),gi.categoryId=_t.categoryId,(Un=gi.challenge_settings)!=null&&Un.every(ti=>!ti.checked)){it.ZP.warning("\u5173\u5361\u4E0D\u80FD\u5168\u90E8\u8BBE\u7F6E\u4E3A\u53EF\u4E0D\u505A");return}if(console.log(Ln),!ui.unified_setting)Ln=Ln==null?void 0:Ln.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(pr=>{var un;return(un=ti==null?void 0:ti.group_name)==null?void 0:un.includes(pr.group_name)}).map(pr=>pr.group_id||pr.id).toString().split(","),ti});else if(!ui.publish_time||!ui.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=Ln,ui.allow_late)if(ui.unified_late){if(ui.late_penalty===null||ui.late_penalty===void 0||ui.late_penalty<0||ui.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(!ui.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 Jn=Jn==null?void 0:Jn.map(ti=>{var Yi,pr;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=(pr=(Yi=ti==null?void 0:ti.group_name)==null?void 0:Yi.map(un=>{var an,jt;let mn=(jt=(an=Bt.group_settings)==null?void 0:an.filter(Zi=>(Zi==null?void 0:Zi.group_name)===un))==null?void 0:jt[0];return mn==null?void 0:mn.group_id}))==null?void 0:pr.toString().split(","),ti}),gi.allow_late_settings=Jn;let mi=yield(0,Ie.Tr)({homework_common_ids:[parseInt(_t.categoryId)],course_id:_t.coursesId,type:"homework_common"});(mi==null?void 0:mi.student_count)===0?Qr(gi):(qi(gi),ir(mi))}),Qr=Pn=>{var Un;if(Pn.total_score===null){it.ZP.warning("\u603B\u5206\u503C\u4E0D\u80FD\u4E3A\u7A7A");return}if(Pn!=null&&Pn.work_efficiency&&Pn.eff_score===null){it.ZP.warning("\u6548\u7387\u5206\u4E0D\u80FD\u4E3A\u7A7A");return}const gi=Pn.challenge_settings.reduce((Yi,pr)=>Yi+Number(pr.challenge_score),0);if((gi==null?void 0:gi.toFixed(10))!==((Un=Pn.total_score-Pn.eff_score)==null?void 0:Un.toFixed(10))){it.ZP.warning(`\u6548\u7387\u5206\u52A0\u5173\u5361\u4EFB\u52A1\u603B\u5206\u5FC5\u987B\u7B49\u4E8E\u603B\u5206\u503C\uFF1A${Pn.total_score}\u5206`);return}const mi={shixun_evaluation:Pn.shixun_evaluation,challenge_settings:Pn.challenge_settings};let ti=()=>{var Yi;const pr=()=>nn(void 0,null,function*(){Cn(!0),(yield(0,ne.ZP)(`/api/homework_commons/${_t.categoryId}/publish_setting.json`,{method:"post",body:It({},Pn)})).status===0&&(it.ZP.success("\u66F4\u65B0\u6210\u529F"),ri(),kt({type:"shixunHomeworks/getShixunWorkHeadInfo",payload:It({},_t)})),Cn(!1)});!(0,te.isEqual)(Wt,mi)&&!((Yi=bt==null?void 0:bt.homework_status)!=null&&Yi.includes("\u672A\u53D1\u5E03"))?rt.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:pr}):pr()};Bt!=null&&Bt.high_resources_consume&&!(Bt!=null&&Bt.high_resources_consume_permission)?kt({type:"classroomList/setActionTabs",payload:{key:"\u6388\u6743\u4F7F\u7528",id:_t.coursesId,type:"shixun",type_id:_t.categoryId,name:Bt.homework_name,fn:()=>{ti()}}}):ti()},to=(Pn,Un,gi="group_id")=>{var mi;return Un?Un.find(ti=>ti[gi]===Pn):(mi=Bt==null?void 0:Bt.group_settings)==null?void 0:mi.find(ti=>ti.group_id[0]===Pn)},no=(Bt==null?void 0:Bt.allow_late)||(Bt==null?void 0:Bt.anonymous_comment),xo=Pn=>{var Un,gi;const mi=to(Pn,Bt==null?void 0:Bt.allow_late_settings,"id"),ti=to(Pn,Bt==null?void 0:Bt.anonymous_comment_settings),Yi=to(Pn);return(Bt==null?void 0:Bt.allow_late)&&mi&&ct()(mi==null?void 0:mi.late_time)<=ct()()||(Bt==null?void 0:Bt.anonymous_comment)&&ti&&(ti==null?void 0:ti.evaluation_start)!==null||((gi=(ct()(Yi==null?void 0:Yi.end_time)<=ct()()&&((Un=Bt==null?void 0:Bt.allow_late_settings)==null?void 0:Un.filter(pr=>pr.group_id.includes(Pn))))[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]),Er=Bt==null?void 0:Bt.anonymous_comment,io=Pn=>{if(!Pn)return!1;const Un=to(Pn,Bt==null?void 0:Bt.anonymous_comment_settings);return(Bt==null?void 0:Bt.anonymous_comment)&&Un&&(Un==null?void 0:Un.evaluation_start)!==null},Le=(Pn,Un)=>{var gi,mi,ti,Yi,pr;Pn!=null&&Pn.group_id||(Pn.group_id=Zt(Pn==null?void 0:Pn.group_name,Bt==null?void 0:Bt.group_settings)),kt({type:"classroomList/setActionTabs",payload:{key:"\u5206\u73ED\u53D1\u5E03-\u53D1\u5E03\u89C4\u5219\u62C6\u5206",data:Pn,index:Un,rangePickerDisabled:(mi=(gi=Pn==null?void 0:Pn.group_id)==null?void 0:gi[0])!=null&&mi.publish_time?Xt||(ct()()<=ct()((Yi=to((ti=Pn==null?void 0:Pn.group_id)==null?void 0:ti[0]))==null?void 0:Yi.publish_time)?!1:[!0,xo((pr=Pn==null?void 0:Pn.group_id)==null?void 0:pr[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:Xt||!((li=bt==null?void 0:bt.homework_status)!=null&&li.includes("\u672A\u53D1\u5E03"))||(0,Ee.Rm)()&&!((yi=vt.AssistantObject.practice)!=null&&yi.can_publish),value:ui.unified_setting,onChange:Pn=>{var Un;if(!((Un=bt==null?void 0:bt.homework_status)!=null&&Un.includes("\u672A\u53D1\u5E03"))){it.ZP.error("\u5DF2\u53D1\u5E03\uFF0C\u4E0D\u80FD\u518D\u4FEE\u6539\u7EDF\u4E00\u8BBE\u7F6E");return}if(ui.unified_setting=!ui.unified_setting,ui.unified_setting||(ui.unified_late=!1,Di([{late_penalty:5}])),Bi(Object.assign({},ui)),ui.unified_setting===!1&&Ln==""){Ci(Ln.concat({}));return}ui.unified_setting&&(Ci([]),Di([{late_penalty:5}]))}},Oe.createElement(ze.ZP,{value:!0,disabled:Xt||!(Bt!=null&&Bt.manage_all_group),style:{marginRight:"50px"}},"\u7EDF\u4E00\u53D1\u5E03"),Oe.createElement(ze.ZP,{disabled:Xt||!((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")),ui.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(yt.Z,{style:{marginLeft:"23px"}},"\u53D1\u5E03\u65F6\u95F4"),Oe.createElement(yt.Z,{className:"ml10"},Oe.createElement(_e.default,{size:"large",disabled:Xt||!((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)()&&!((Ye=vt.AssistantObject.practice)!=null&&Ye.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:Pn=>He(Pn,Bt==null?void 0:Bt.course_end_date),disabledTime:Pn=>Rt(Pn),value:ui.publish_time?ct()(ui.publish_time):"",onChange:(Pn,Un)=>{ui.publish_time=Un,(ui.end_time==""||!ui.end_time)&&ui.unified_setting&&(ui.end_time=ct()(Pn).add(7,"days").format("YYYY-MM-DD HH:mm:ss")),Bi(Object.assign({},ui))}}))),Oe.createElement(Ue.Z,{align:"middle",className:"pl30"},Oe.createElement(yt.Z,null,"\u622A\u6B62\u65F6\u95F4"),Oe.createElement(yt.Z,{className:"ml10"},Oe.createElement(_e.default,{size:"large",style:{width:170},allowClear:!1,placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:ct()((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"))||Xt||(Bt==null?void 0:Bt.allow_late)&&ct()()>=ct()(Bt==null?void 0:Bt.end_time)||(0,Ee.Rm)()&&!((ke=vt.AssistantObject.practice)!=null&&ke.can_publish),disabledDate:Pn=>He(Pn,Bt==null?void 0:Bt.course_end_date,ui.publish_time),disabledTime:Pn=>Rt(Pn,ui.publish_time),value:ui.end_time?ct()(ui.end_time):"",onChange:(Pn,Un)=>{ui.end_time=Un,Bi(Object.assign({},ui))}})))),!ui.unified_setting&&(Ln==null?void 0:Ln.length)>0&&Oe.createElement(Ue.Z,{style:{display:"flex",color:"#666666",background:"#F6F7F9",padding:"5px 30px",marginTop:"1px"}},Ln&&Ln.map(function(Pn,Un){var gi,mi,ti,Yi,pr,un,an;return Oe.createElement(yt.Z,{span:24,key:Un},Oe.createElement(Ue.Z,{gutter:[8,16],style:{display:"flex",alignItems:"center",marginBottom:Un==(Ln==null?void 0:Ln.length)-1?"0px":"10px"}},Oe.createElement("div",{style:{minWidth:85,marginRight:"15px",textAlign:"right"}},"\u53D1\u5E03\u89C4\u5219",Un+1),Oe.createElement(lt.default,{disabled:Xt||((gi=bt==null?void 0:bt.homework_status)!=null&&gi.includes("\u672A\u53D1\u5E03")&&Pn.id||ct()()<ct()(Pn==null?void 0:Pn.publish_time)?!1:!!(Pn!=null&&Pn.publish_time))||(0,Ee.Rm)()&&!((mi=vt.AssistantObject.practice)!=null&&mi.can_publish),mode:"multiple",className:de.Z.multiple_select,style:{width:"250px"},value:Pn.group_name,placeholder:"\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0",onChange:jt=>{var mn;if((0,Ee.Rm)()&&!((mn=vt.AssistantObject.practice)!=null&&mn.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}Ln[Un].group_name=jt,Ln[Un].group_id=Pn.group_id;const Zi=(0,te.flattenDeep)(Ln.map(lr=>lr.group_name)),ji=Jn.map(lr=>{let Zn=(lr==null?void 0:lr.group_name)||[];return Tt(It({},lr),{group_name:(0,te.remove)(Zn,Ti=>Zi.includes(Ti))})});Di(ji),Ci(Ln.slice())},maxTagCount:4,maxTagPlaceholder:jt=>Oe.createElement("div",{style:{cursor:"pointer"},onClick:()=>Le(Pn,Un)},"+",jt==null?void 0:jt.length)},Bt.group_settings&&Bt.group_settings.map(function(jt){if(!Ln.map(Zi=>Zi.group_name).flat().includes(jt.group_name))return Oe.createElement(Mt,{value:jt.group_name,key:jt.id},jt.group_name)})),Oe.createElement("div",{className:"ml20"},Oe.createElement(Yt,{size:"large",ranges:{\u6B64\u523B:[Pn.publish_time?ct()(Pn.publish_time):ct()(),ct()()]},allowClear:!1,disabled:Xt||(ct()()<=ct()((Yi=to((ti=Pn==null?void 0:Pn.group_id)==null?void 0:ti[0]))==null?void 0:Yi.publish_time)?!1:[!0,xo((pr=Pn==null?void 0:Pn.group_id)==null?void 0:pr[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:jt=>He(jt,Bt==null?void 0:Bt.course_end_date),disabledTime:jt=>Rt(jt),showTime:{showNow:!0,format:"HH:mm",defaultValue:[ct()((0,se.U6)(),"HH:mm"),ct()((0,se.U6)(),"HH:mm")]},format:"YYYY-MM-DD HH:mm",value:[Pn.publish_time?ct()(Pn.publish_time):void 0,Pn.end_time?ct()(Pn.end_time):void 0],onChange:(jt,mn)=>{var Zi;if((0,Ee.Rm)()&&!((Zi=vt.AssistantObject.practice)!=null&&Zi.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}Ln[Un].publish_time=mn[0],!Pn.end_time&&mn[0]?Ln[Un].end_time=ct()(mn[0]).add(7,"days"):Ln[Un].end_time=mn[1],Ci([...Ln])},onCalendarChange:(jt,mn,Zi)=>{if(mn!=null&&mn[0]&&!mn[1]){const ji=ct()(mn[0]).add(7,"days");Ln[Un].publish_time=mn[0],Ln[Un].end_time=ji,Ci([...Ln])}}})),!Xt&&Oe.createElement("div",{style:{display:"flex",width:"50px"}},((un=Pn==null?void 0:Pn.group_id)==null?void 0:un.length)>1&&Oe.createElement(tt.Z,{title:"\u89C4\u5219\u62C6\u5206"},Oe.createElement("i",{className:"iconfont icon-chaifen ml10",style:{cursor:"pointer",color:"#3061d0"},onClick:()=>Le(Pn,Un)})),Ln.length<((an=Bt==null?void 0:Bt.group_settings)==null?void 0:an.length)&&Oe.createElement("i",{className:"iconfont icon-zengjia1 ml10 mr10",style:{cursor:"pointer",color:"#00B187"},onClick:()=>{var jt;if((0,Ee.Rm)()&&!((jt=vt.AssistantObject.practice)!=null&&jt.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(Ln.concat({}))}}),((Pn==null?void 0:Pn.publish_time)&&ct()()<ct()(Pn==null?void 0:Pn.publish_time)||!(Pn!=null&&Pn.publish_time))&&Un!=0&&Oe.createElement("i",{className:"iconfont icon-shanjian1",style:{cursor:"pointer",color:"#E30000"},onClick:()=>{const jt=(0,te.cloneDeep)(Jn);jt.forEach((mn,Zi)=>{mn.group_name&&(mn.group_name=mn.group_name.filter(ji=>{var lr;return!((lr=Ln[Un].group_name)!=null&&lr.includes(ji))}))}),Ln=Ln.filter((mn,Zi)=>Un!==Zi),Di(jt),Ci(Ln.slice()),setTimeout(()=>Ci(Ln.slice()),10)}}))))}))),Oe.createElement(Ue.Z,null,Oe.createElement(yt.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(yt.Z,{span:24,style:{background:"#F6F7F9",padding:"13px 30px",display:"flex",alignItems:"center"}},Oe.createElement(De.default,{checked:ui.allow_late,disabled:Xt||lo,onChange:Pn=>{var Un;if((0,Ee.Rm)()&&!((Un=vt.AssistantObject.practice)!=null&&Un.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}Pn.target.checked&&rt.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"))}),ui.allow_late=!ui.allow_late,Jn==""&&Di([{late_penalty:5}]),Bi(Object.assign({},ui))}},Oe.createElement("strong",null,"\u5F00\u542F\u8865\u4EA4")))),(ui==null?void 0:ui.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:Xt||(Bt==null?void 0:Bt.anonymous_comment)||(Bt==null?void 0:Bt.allow_late),value:ui.unified_late,onChange:Pn=>{var Un;if((0,Ee.Rm)()&&!((Un=vt.AssistantObject.practice)!=null&&Un.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}ui.unified_late=Pn.target.value,Jn==""&&!Pn.target.value&&Di([{penalty_type:ye.Q.Percent,late_penalty:20}]),Bi(It({},ui))}},(ui==null?void 0:ui.unified_setting)&&Oe.createElement(ze.ZP,{value:!0,disabled:!(Bt!=null&&Bt.manage_all_group),style:{marginRight:"50px"}},"\u7EDF\u4E00\u8865\u4EA4"),((et=Bt==null?void 0:Bt.group_settings)==null?void 0:et.length)>0&&Oe.createElement(ze.ZP,{value:!1},"\u5206\u73ED\u8865\u4EA4"))),ui!=null&&ui.unified_late?Oe.createElement(Oe.Fragment,null,Oe.createElement(Ue.Z,{align:"middle",style:{marginTop:"10px"}},Oe.createElement(yt.Z,{style:{width:"110px",textAlign:"right"}},"\u8865\u4EA4\u6263\u5206"),Oe.createElement(yt.Z,{className:"ml20"},Oe.createElement(ye.Z,{disabled:Xt||Er,value:{type:ui.penalty_type,inputValue:ui.late_penalty},onChange:Pn=>{var Un;if((0,Ee.Rm)()&&!((Un=vt.AssistantObject.practice)!=null&&Un.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}Bi(Tt(It({},ui),{late_penalty:Pn.inputValue,penalty_type:Pn.type}))}})),Oe.createElement(yt.Z,{flex:"1",className:"ml5"},Oe.createElement("span",{className:"c-grey-c ml10"},ui.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(yt.Z,{style:{width:"110px",textAlign:"right"}},"\u8865\u4EA4\u622A\u6B62\u65F6\u95F4"),Oe.createElement(yt.Z,{className:"ml20"},Oe.createElement(_e.default,{size:"large",allowClear:!1,style:{width:170},placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:ct()((0,se.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",disabled:Xt||Er,value:ui.late_time?ct()(ui.late_time):"",disabledDate:Pn=>He(Pn,Bt==null?void 0:Bt.course_end_date),onChange:(Pn,Un)=>{var gi;if((0,Ee.Rm)()&&!((gi=vt.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}ui.late_time=Un,Bi(Object.assign({},ui))}})))):Jn.map(function(Pn,Un){var gi;return Oe.createElement(yt.Z,{span:24,key:Un},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",Un+1),Oe.createElement(lt.default,{disabled:Xt||!((gi=bt==null?void 0:bt.homework_status)!=null&&gi.includes("\u672A\u53D1\u5E03"))&&Pn.id||(Bt==null?void 0:Bt.anonymous_comment),mode:"multiple",className:de.Z.multiple_select,style:{width:"212px",marginLeft:"18px"},value:typeof Pn.group_name=="string"?[Pn.group_name]:Pn.group_name,placeholder:"\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0",onChange:mi=>{var ti;if((0,Ee.Rm)()&&!((ti=vt.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}Jn[Un].group_name=mi,Jn[Un].group_id=Pn.group_id,Di(Jn.slice())}},Bt.group_settings&&Bt.group_settings.map(function(mi){const ti=Jn.map(pr=>pr.group_name).flat(),Yi=Ln.map(pr=>pr.group_name).flat();if(ui!=null&&ui.unified_setting){if(!ti.includes(mi.group_name))return Oe.createElement(Mt,{value:mi.group_name,key:mi.id},mi.group_name)}else if(Yi.includes(mi.group_name)&&!ti.includes(mi.group_name))return Oe.createElement(Mt,{value:mi.group_name,key:mi.id},mi.group_name)})),Oe.createElement("div",{className:"ml20 mr10"},"\u8865\u4EA4\u6263\u5206"),Oe.createElement(ye.Z,{disabled:Xt||io(Pn.id),value:{type:Pn.penalty_type,inputValue:Pn.late_penalty},onChange:mi=>{var ti;if((0,Ee.Rm)()&&!((ti=vt.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}Jn[Un].late_penalty=mi.inputValue,Jn[Un].penalty_type=mi.type,Di([...Jn])}}),Oe.createElement("div",{className:"ml20 mr10"},"\u8865\u4EA4\u622A\u6B62\u65F6\u95F4"),Oe.createElement(_e.default,{size:"large",disabled:Xt||io(Pn.id),style:{width:225},showTime:{format:"HH:mm",defaultValue:ct()((0,se.U6)(),"HH:mm")},placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",disabledDate:mi=>He(mi,Bt==null?void 0:Bt.course_end_date),format:"YYYY-MM-DD HH:mm",value:Pn!=null&&Pn.late_time?ct()(Pn.late_time):void 0,onChange:(mi,ti)=>{var Yi;if((0,Ee.Rm)()&&!((Yi=vt.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}Jn[Un].late_time=ti,Di([...Jn])}}),!Xt&&Oe.createElement("div",{style:{display:"flex",width:"50px"}},Oe.createElement("i",{className:"iconfont icon-zengjia1 ml10 mr10",style:{cursor:"pointer",color:"#00B187"},onClick:()=>{var mi;if((0,Ee.Rm)()&&!((mi=vt.AssistantObject.practice)!=null&&mi.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}Di(Jn.concat({penalty_type:ye.Q.Percent,late_penalty:20}))}}),Un>0&&!Pn.id&&Oe.createElement("i",{className:"iconfont icon-shanjian1",style:{cursor:"pointer",color:"#E30000"},onClick:()=>{var mi;if((0,Ee.Rm)()&&!((mi=vt.AssistantObject.practice)!=null&&mi.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}Jn=Jn.filter((ti,Yi)=>Un!==Yi),Di(Jn.slice()),setTimeout(()=>Di(Jn.slice()),10)}}))))})),!Xt&&Oe.createElement(Oe.Fragment,null,Oe.createElement(xt.ZP,{type:"primary",size:"large",loading:$n,style:{width:"138px",marginTop:"30px"},onClick:()=>co()},"\u4FDD\u5B58")),Oe.createElement(je.Z,{onConfirm:(Pn,Un)=>{Ln.splice(Pn,0,...Un),Ln.splice(Pn+Un.length,1);const gi=(0,se.QE)([...Ln]);Ci([...gi])}}),Oe.createElement(Te.Z,{resdata:Ui,type:"shixun",okloading:$n,oktext:(Ui==null?void 0:Ui.can_copy_num)===0?"\u786E\u5B9A":"\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362",onok:Pn=>nn(void 0,null,function*(){Cn(!0);let Un=yield(0,ne.ZP)(`/api/courses/${_t.coursesId}/batch_copy_shixuns.json`,{method:"post",body:{type:"homework_common",ids:[parseInt(_t.categoryId)]}});Cn(!1),(Un==null?void 0:Un.status)===0&&Qr(Ir)})}))};en.ZP=(0,pe.connect)(({shixunHomeworks:on,classroomList:Dn,loading:kt,user:vt})=>({shixunHomeworks:on,classroomList:Dn,loading:kt.effects,user:vt}))(zt)},93603:function(gn,en,we){"use strict";var ve=we(59301),_e=we(14566),lt=we(28284),it=we(62957),rt=we(6767),ze=we(54172),Ue=we(25690),yt=we(346),tt=we(19493),De=we(38986),xt=we(61186),Ve=we.n(xt),ct=we(51257),Ee=we(59301),ne=Object.defineProperty,te=Object.getOwnPropertySymbols,ue=Object.prototype.hasOwnProperty,se=Object.prototype.propertyIsEnumerable,de=(Te,Ie,Oe)=>Ie in Te?ne(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(te)for(var Oe of te(Ie))se.call(Ie,Oe)&&de(Te,Oe,Ie[Oe]);return Te},ye=(Te,Ie,Oe)=>new Promise((Re,nt)=>{var ot=Dt=>{try{gt(Oe.next(Dt))}catch(Lt){nt(Lt)}},wt=Dt=>{try{gt(Oe.throw(Dt))}catch(Lt){nt(Lt)}},gt=Dt=>Dt.done?Re(Dt.value):Promise.resolve(Dt.value).then(ot,wt);gt((Oe=Oe.apply(Te,Ie)).next())});const{Dragger:Ce}=_e.default,je=({classroomList:Te,dispatch:Ie,onOk:Oe})=>{const Re=(0,Ue.useParams)(),[nt]=lt.default.useForm(),[ot,wt]=(0,ve.useState)(),[gt,Dt]=(0,ve.useState)(!1),Lt={height:100,onRemove:()=>{wt("")},accept:".xls,.xlsx",multiple:!1,maxCount:1,beforeUpload:It=>ye(void 0,null,function*(){return wt(It),!1})};return(0,ve.useEffect)(()=>{nt.setFieldsValue({publish_time:Ve()(Ve()(new Date).add(0,"days").format("YYYY-MM-DD HH:mm")),end_time:Ve()(Ve()(new Date((0,ct.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*(){nt.submit()}),onCancel:()=>{nt.resetFields(),Ie({type:"classroomList/setActionTabs",payload:{}})}},Ee.createElement(lt.default,{form:nt,onFinish:It=>ye(void 0,null,function*(){var Tt,nn,at;if(!(ot!=null&&ot.size)){rt.ZP.info("\u8BF7\u4E0A\u4F20\u6587\u4EF6");return}Dt(!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);Dt(!1),(Zt==null?void 0:Zt.status)===0&&(Oe(),nt.resetFields(),Ie({type:"classroomList/setActionTabs",payload:{}}),((nn=(Tt=Zt==null?void 0:Zt.data)==null?void 0:Tt.fail)==null?void 0:nn.length)>0&&it.default.confirm({title:"\u5BFC\u5165\u5931\u8D25",closable:!0,icon:null,width:610,content:Ee.createElement(ze.default,{pagination:!1,dataSource:(at=Zt==null?void 0:Zt.data)==null?void 0:at.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,ct.FH)("",yt.Z.API_SERVER+`/api/courses/get_external_score_fail_data.xlsx?type=${Te.actionTabs.type}`)}}))})},Ee.createElement(lt.default.Item,{label:"\u4F5C\u4E1A\u540D\u79F0",labelCol:{span:3},name:"name"},Te.actionTabs.name),Ee.createElement(lt.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:tt.Z.downloadbutton,href:yt.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(lt.default.Item,{style:{marginBottom:0}},Ee.createElement(Ce,pe({},Lt),Ee.createElement("a",{className:tt.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"))))))};en.Z=(0,Ue.connect)(({classroomList:Te})=>({classroomList:Te}))(je)},98895:function(gn,en,we){"use strict";var ve=we(59301),_e=we(14566),lt=we(28284),it=we(62957),rt=we(6767),ze=we(54172),Ue=we(37568),yt=we(77019),tt=we(5269),De=we(71051),xt=we(16326),Ve=we(25690),ct=we(39793),Ee=we(346),ne=we(19493),te=we(38986),ue=we(48716),se=we(61186),de=we.n(se),pe=we(51257),ye=we(59301),Ce=Object.defineProperty,je=Object.getOwnPropertySymbols,Te=Object.prototype.hasOwnProperty,Ie=Object.prototype.propertyIsEnumerable,Oe=(gt,Dt,Lt)=>Dt in gt?Ce(gt,Dt,{enumerable:!0,configurable:!0,writable:!0,value:Lt}):gt[Dt]=Lt,Re=(gt,Dt)=>{for(var Lt in Dt||(Dt={}))Te.call(Dt,Lt)&&Oe(gt,Lt,Dt[Lt]);if(je)for(var Lt of je(Dt))Ie.call(Dt,Lt)&&Oe(gt,Lt,Dt[Lt]);return gt},nt=(gt,Dt,Lt)=>new Promise((It,Tt)=>{var nn=Rt=>{try{He(Lt.next(Rt))}catch(Zt){Tt(Zt)}},at=Rt=>{try{He(Lt.throw(Rt))}catch(Zt){Tt(Zt)}},He=Rt=>Rt.done?It(Rt.value):Promise.resolve(Rt.value).then(nn,at);He((Lt=Lt.apply(gt,Dt)).next())});const{Dragger:ot}=_e.default,wt=({classroomList:gt,dispatch:Dt,onOk:Lt})=>{const It=(0,Ve.useParams)(),[Tt]=lt.default.useForm(),[nn,at]=(0,ve.useState)(),[He,Rt]=(0,ve.useState)(!1),Zt={height:100,onRemove:()=>{at("")},accept:".xls,.xlsx",maxCount:1,multiple:!1,beforeUpload:Yt=>nt(void 0,null,function*(){return at(Yt),!1})};return(0,ve.useEffect)(()=>{Tt.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:()=>nt(void 0,null,function*(){Tt.submit()}),onCancel:()=>{Tt.resetFields(),Dt({type:"classroomList/setActionTabs",payload:{}})}},ye.createElement(lt.default,{form:Tt,colon:!1,onFinish:Yt=>nt(void 0,null,function*(){var Mt,zt,on;if(!(nn!=null&&nn.size)){rt.ZP.info("\u8BF7\u4E0A\u4F20\u6587\u4EF6");return}Rt(!0);let Dn=new FormData;Dn.append("name",Yt.name),Dn.append("type",gt.actionTabs.type),Dn.append("category_id",(It==null?void 0:It.categoryId)||null),gt.actionTabs.type==="exercise"?(Dn.append("time",Yt.time||""),Dn.append("total_score",Yt.total_score)):Dn.append("description",Yt.description||""),Dn.append("publish_time",de()(Yt.publish_time).format("YYYY-MM-DD HH:mm")),Dn.append("end_time",de()(Yt.end_time).format("YYYY-MM-DD HH:mm")),Dn.append("file",nn);let kt=yield(0,te.ZP)(`/api/courses/${It.coursesId}/export_external_score_homework.json`,{method:"post",body:Dn},!0);Rt(!1),(kt==null?void 0:kt.status)===0&&(Tt.resetFields(),Dt({type:"classroomList/setActionTabs",payload:{}}),Lt(),((zt=(Mt=kt==null?void 0:kt.data)==null?void 0:Mt.fail)==null?void 0:zt.length)>0&&it.default.confirm({title:"\u5BFC\u5165\u5931\u8D25",closable:!0,icon:null,width:610,content:ye.createElement(ze.default,{pagination:!1,dataSource:(on=kt==null?void 0:kt.data)==null?void 0:on.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(lt.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(lt.default.Item,{label:"\u4F5C\u4E1A\u63CF\u8FF0",labelCol:{span:3},name:"description"},ye.createElement(ct.Z,{watch:!0})),gt.actionTabs.type==="exercise"&&ye.createElement(yt.Z,{style:{marginLeft:6}},ye.createElement(tt.Z,{span:12},ye.createElement(lt.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(tt.Z,{span:12},ye.createElement(lt.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(yt.Z,{style:{marginLeft:6,marginBottom:12}},ye.createElement(tt.Z,{span:12},ye.createElement(lt.default.Item,{label:"\u5F00\u59CB\u65F6\u95F4",name:"publish_time",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5F00\u59CB\u65F6\u95F4"}]},ye.createElement(xt.default,{placeholder:"\u8BF7\u9009\u62E9\u53D1\u5E03\u65F6\u95F4",showTime:{format:"HH:mm"},style:{width:256},disabledDate:Yt=>(0,ue.Q8)(Yt),disabledTime:Yt=>(0,ue.d0)(Yt),allowClear:!1,format:"YYYY-MM-DD HH:mm"}))),ye.createElement(tt.Z,{span:12},ye.createElement(lt.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(xt.default,{placeholder:"\u8BF7\u9009\u62E9\u53D1\u5E03\u65F6\u95F4",showTime:{format:"HH:mm"},style:{width:"100%"},disabledDate:Yt=>(0,ue.Q8)(Yt,"",Tt.getFieldValue("publish_time")),disabledTime:Yt=>(0,ue.d0)(Yt,Tt.getFieldValue("publish_time")),allowClear:!1,format:"YYYY-MM-DD HH:mm"})))),ye.createElement(lt.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:ne.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(lt.default.Item,{style:{marginBottom:0}},ye.createElement(ot,Re({},Zt),ye.createElement("a",{className:ne.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"))))))};en.Z=(0,Ve.connect)(({classroomList:gt})=>({classroomList:gt}))(wt)},19541:function(gn,en,we){"use strict";we.d(en,{Z:function(){return xt}});var ve=we(59301),_e=we(93041),lt=we(37568),it=we(62673),rt=we(99571),ze=we(75727),Ue={bottomControlContainer:"bottomControlContainer___woAeo",buttonWrap:"buttonWrap___iRw4K",moveCategory:"moveCategory___oiQqw"},yt=we(48790),tt=we(84105),xt=({buttonDataSource:Ve,onButtonClick:ct,useBatchStatus:Ee,allSelect:ne,setAllSelect:te,selectArrs:ue,onMenuClick:se,setSeleArr:de,catalogue:pe,addCatalogue:ye})=>{const[Ce,je]=(0,ve.useState)(!1),[Te,Ie]=(0,ve.useState)("");console.log("---",pe);const Oe=ve.createElement("div",{className:Ue.moveCategory,onMouseLeave:Re=>je(!1)},ve.createElement(_e.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(lt.default,{onChange:Re=>{Ie(Re.target.value)}})),pe==null?void 0:pe.map(function(Re,nt){var ot;if(!(Te!==""&&Re.category_name.indexOf(Te)<0))return ve.createElement(ve.Fragment,null,ve.createElement(_e.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(wt=>ve.createElement(_e.default.Item,{style:{marginLeft:20},className:"multi-llipsis1e",key:wt.category_id,title:wt.category_name},wt.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:ne,onChange:te},"\u5168\u9009\u672C\u9875\uFF08",ue.length,"\uFF09")),(0,yt.GJ)()&&Ve.map(Re=>ve.createElement("div",{key:Re.name},ve.createElement(rt.ZP,{type:"primary",icon:Re.icon,className:Ue.buttonWrap,onClick:()=>ct(Re)},Re.name))),(0,yt.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=>je(!0)},ve.createElement(rt.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(tt.Z,null))))))),ve.createElement("div",null,ve.createElement(rt.ZP,{type:"primary",ghost:!0,onClick:()=>{Ee(!1),de([])}},"\u53D6\u6D88\u64CD\u4F5C")))}},59229:function(gn,en,we){"use strict";we.d(en,{Z:function(){return ue}});var ve=we(59301),_e=we(25690),lt=we(16326),it=we(62957),rt=we(37568),ze=we(6767),Ue=we(77019),yt=we(5269),tt={title_tooltip:"title_tooltip___LLdrn",multiple_select:"multiple_select___kDXUm",modal_con:"modal_con___ERnkW"},De=we(61186),xt=we.n(De),Ve=we(51257),ct=we(28426),Ee=we(59301);const{RangePicker:ne}=lt.default,te=({dispatch:se,classroomList:de,onConfirm:pe})=>{const[ye,Ce]=(0,ve.useState)([]),[je,Te]=(0,ve.useState)([]),[Ie,Oe]=(0,ve.useState)(""),[Re,nt]=(0,ve.useState)([!1,!1]);(0,ve.useEffect)(()=>{var gt,Dt,Lt,It;if(de.actionTabs.key==="\u5206\u73ED\u53D1\u5E03-\u53D1\u5E03\u89C4\u5219\u62C6\u5206"){console.log((gt=de.actionTabs)==null?void 0:gt.rangePickerDisabled),(Dt=de.actionTabs)!=null&&Dt.rangePickerDisabled?nt((Lt=de.actionTabs)==null?void 0:Lt.rangePickerDisabled):nt([!1,!1]);let Tt=de.actionTabs.data,nn=(It=Tt==null?void 0:Tt.group_name)==null?void 0:It.map((at,He)=>{var Rt;return{group_id:Tt==null?void 0:Tt.group_id[He],group_name:Tt==null?void 0:Tt.group_name[He],is_admin:Tt==null?void 0:Tt.is_admin,end_time:Tt==null?void 0:Tt.end_time,publish_time:Array.isArray(Tt==null?void 0:Tt.publish_time)?(Rt=Tt==null?void 0:Tt.publish_time)==null?void 0:Rt[0]:Tt==null?void 0:Tt.publish_time}});nn&&(Ce([...nn]),Te([...nn]))}},[de.actionTabs]);const ot=()=>{se({type:"classroomList/setActionTabs",payload:{}}),Oe("")},wt=gt=>{if(gt){const Dt=je==null?void 0:je.filter(Lt=>{var It,Tt;return(Tt=(It=Lt==null?void 0:Lt.group_name)==null?void 0:It.toLowerCase())==null?void 0:Tt.includes(gt==null?void 0:gt.toLowerCase())});Ce(Dt)}else Ce(je)};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:tt.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(rt.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()),wt(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(je.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,je),ot()}},Ee.createElement("div",{className:tt.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,Dt){return Ee.createElement(yt.Z,{span:24,key:Dt},Ee.createElement(Ue.Z,{gutter:[8,16],style:{display:"flex",alignItems:"center",marginBottom:Dt==(ye==null?void 0:ye.length)-1?"0px":"10px"}},Ee.createElement("div",{className:tt.multiple_select,title:gt==null?void 0:gt.group_name},gt==null?void 0:gt.group_name),Ee.createElement("div",{className:"ml20"},Ee.createElement(ne,{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 It;return(0,Ve.Q8)(Lt,(It=de.actionTabs)==null?void 0:It.disabledDate)},disabledTime:Lt=>(0,Ve.d0)(Lt),showTime:{showNow:!0,format:"HH:mm",defaultValue:[xt()((0,Ve.U6)(),"HH:mm"),xt()((0,Ve.U6)(),"HH:mm")]},format:"YYYY-MM-DD HH:mm",value:(gt==null?void 0:gt.publish_time)&&[xt()(gt==null?void 0:gt.publish_time),gt!=null&&gt.end_time?xt()(gt==null?void 0:gt.end_time):void 0],onChange:(Lt,It)=>{ye[Dt].publish_time=It[0],ye[Dt].end_time=It[1],Ce([...ye]),je.forEach(Tt=>{Tt.group_id===(gt==null?void 0:gt.group_id)&&(Tt.publish_time=It[0],Tt.end_time=It[1])}),Te([...je])},onCalendarChange:(Lt,It,Tt)=>{if(It!=null&&It[0]&&!It[1]){const nn=xt()(It[0]).add(7,"days");ye[Dt].publish_time=It[0],ye[Dt].end_time=nn,Ce([...ye]),je.forEach(at=>{at.group_id===(gt==null?void 0:gt.group_id)&&(at.publish_time=It[0],at.end_time=nn)}),Te([...je])}}})),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(Dt,1),Ce([...ye]),je.forEach((Lt,It)=>{Lt.group_id===(gt==null?void 0:gt.group_id)&&je.splice(It,1)}),Te([...je])}})))}):Ee.createElement(ct.Z,null))))};var ue=(0,_e.connect)(({classroomList:se})=>({classroomList:se}))(te)},11492:function(gn,en,we){"use strict";we.d(en,{Z:function(){return se}});var ve=we(59301),_e=we(93041),lt=we(62673),it=we(99571),rt=we(75727),ze=we(25399),Ue=we(82326),yt=we(37568),tt={searchSortControllerContainer:"searchSortControllerContainer___Xca1m",btn:"btn___sNJPX",btnSort:"btnSort___Fx9OM",tips:"tips___LrmpR"},De=we(48790),xt=we(87395),Ve=we(84105),ct=we(26724),Ee=we.n(ct),ne=we(25690),te=(de,pe,ye)=>new Promise((Ce,je)=>{var Te=Re=>{try{Oe(ye.next(Re))}catch(nt){je(nt)}},Ie=Re=>{try{Oe(ye.throw(Re))}catch(nt){je(nt)}},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:je,detailCourseGroupsList:Te,onSearch:Ie,onBoard:Oe,onSort:Re,isboard:nt,dispatch:ot,onBatch:wt,SortMenus:gt,isShowMode:Dt=!1,onModeChange:Lt})=>{const[It,Tt]=(0,ve.useState)(!1),[nn,at]=(0,ve.useState)([]),[He,Rt]=(0,ve.useState)(!0);let[Zt,Yt]=(0,ve.useState)([]);const[Mt,zt]=(0,ve.useState)(1),[on,Dn]=(0,ve.useState)(!1),kt=(0,ne.useParams)(),vt=We=>{je(We.name),Re(We)};(0,ve.useEffect)(()=>{nt&&hn()},[nt]);const hn=()=>te(void 0,null,function*(){var We;if(He&&!on){Dn(!0),zt(Mt+1);const Fe=yield ot({type:"classroomList/getCourseGroupsList",payload:{page:Mt,id:kt.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),Yt([...Zt,...xe])}}),li=ve.createElement("section",{className:tt.dropmenu},ve.createElement("div",{style:{maxHeight:200,overflow:"auto"}},ve.createElement(Ee(),{initialLoad:!1,pageStart:1,threshold:20,loadMore:We=>{hn()},hasMore:He,useWindow:!1},ve.createElement(_e.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(_e.default.Item,{key:We.id},ve.createElement(lt.default,{checked:nn.includes(We.id),value:We.id,onChange:xe=>{let Ne=nn.indexOf(We.id);nn.indexOf(We.id)>-1?at(nn.filter(Ye=>Ye!==We.id)):at(nn.concat(We.id))}},We.name))}))))),ve.createElement("aside",{style:{background:"#fff"}},ve.createElement("div",null,ve.createElement(it.ZP,{type:"link",onClick:()=>{Oe(nn)}},"\u786E\u5B9A"),ve.createElement(it.ZP,{type:"link",onClick:()=>{at([])}},"\u91CD\u7F6E")))),yi=Ce==="\u9ED8\u8BA4\u6392\u5E8F";return ve.createElement("div",{className:tt.searchSortControllerContainer},!!(gt!=null&&gt.length)&&ve.createElement("div",null,ve.createElement(rt.Z,{dropdownRender:()=>ve.createElement(_e.default,{selectedKeys:[Ce]},gt.map(We=>ve.createElement(_e.default.Item,{key:We.name,onClick:()=>vt(We)},We.name)))},ve.createElement("div",null,ve.createElement("span",{className:`${tt.btn} ${yi?tt.btnSort:""}`},ve.createElement("i",{className:"iconfont icon-paixu font14 mr5"}),Ce)))),yi&&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:tt.tips},ve.createElement("i",{className:"iconfont icon-a-wenhaobeifen2"}))),Dt&&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(yt.default.Search,{allowClear:!0,placeholder:"\u8BF7\u8F93\u5165\u540D\u79F0\u8FDB\u884C\u641C\u7D22",onSearch:Ie,style:{width:220,marginLeft:Dt?"":"auto"}}),(0,De.eB)()&&nt&&ve.createElement(rt.Z,{dropdownRender:()=>li,open:It,onOpenChange:We=>{Tt(We)}},ve.createElement("a",null,"\u5206\u73ED",It?ve.createElement(xt.Z,{style:{marginLeft:6}}):ve.createElement(Ve.Z,{style:{marginLeft:6}}))))}},46373:function(gn,en,we){"use strict";we.d(en,{Z:function(){return Ve}});var ve=we(59301),_e=we(77019),lt=we(5269),it=we(93041),rt=we(75727),ze=we(6767),Ue=we(25399),yt={tabMenuContainer:"tabMenuContainer___uf5IP",control:"control___GheLs",iconH:"iconH___Wzw_r",selectBtn:"selectBtn___mfEnI",selectBtn1:"selectBtn1___rJF8S"},tt=we(25690),De=we(48790),Ve=({isLoading:ct,addText:Ee,tabDataSource:ne,isAdmin:te,dispatch:ue,classroomList:se,type:de,isExercise:pe,defaultSelectedKeys:ye,onTabMenuClick:Ce,getDropdownMenu:je,showControlButton:Te,buttonText:Ie,buttonIcon:Oe="icon-tianjiadaohang",extraNode:Re,user:nt,onButtonClick:ot,isModelUser:wt,menuItemWidth:gt=125})=>{var Dt,Lt,It,Tt,nn;const at=(0,tt.useParams)();return ve.createElement("div",{className:yt.tabMenuContainer},ve.createElement(_e.Z,null,ve.createElement(lt.Z,{flex:"1"},ve.createElement(it.default,{onSelect:He=>ct?{}:Ce(He),mode:"horizontal",selectedKeys:ye},ne.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&&te&&ve.createElement("span",{className:"c-grey-999 ml20"},He.total||0))))),te&&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"}})}}),te&&ve.createElement(lt.Z,{className:"mr20 gutter-row",style:{display:"flex",alignItems:"center",color:"#0152d9",paddingBottom:3}},pe&&ve.createElement(rt.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:at.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}tt.history.push(`/classrooms/${at==null?void 0:at.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:yt.control},ve.createElement("div",{className:yt.extra},Re),Te&&(Ie=="\u6DFB\u52A0\u76F4\u64AD"?ve.createElement(rt.Z,{menu:{items:(Lt=(Dt=[{label:ve.createElement("div",{onClick:()=>{ot("\u5916\u94FE")}},"\u5916\u94FE\u76F4\u64AD"),key:"1",show:!0},wt&&{label:ve.createElement("div",{onClick:()=>{ot("\u5934\u6B4C")}},"\u5934\u6B4C\u76F4\u64AD"),key:"2",show:!0}])==null?void 0:Dt.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:yt.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:yt.selectBtn},ve.createElement("span",null,ve.createElement("i",{className:`iconfont ${Oe}`})),ve.createElement("span",null,Ie))),!!je&&ve.createElement(rt.Z,{disabled:((It=nt==null?void 0:nt.userInfo)==null?void 0:It.user_status)===2,className:"ml10",dropdownRender:je},ve.createElement("span",{className:((Tt=nt==null?void 0:nt.userInfo)==null?void 0:Tt.user_status)===2?yt.selectBtn1:yt.selectBtn},ve.createElement("span",null,ve.createElement("i",{className:"iconfont icon-tianjiadaohang"})),ve.createElement(Ue.Z,{title:((nn=nt==null?void 0:nt.userInfo)==null?void 0:nn.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(gn,en,we){"use strict";we.d(en,{$i:function(){return Re},K1:function(){return ot},O7:function(){return wt},T$:function(){return Oe}});var ve=we(9148),_e=we(93629),lt=we(81722),it=we(86245),rt=we(45937),ze=we(62957),Ue=we(28284),yt=we(6767),tt=we(37568),De=we(77019),xt=we(5269),Ve=we(59301),ct=we(25690),Ee=we(28209),ne=we.n(Ee),te=we(51257),ue=we(59301),se=Object.defineProperty,de=Object.getOwnPropertySymbols,pe=Object.prototype.hasOwnProperty,ye=Object.prototype.propertyIsEnumerable,Ce=(gt,Dt,Lt)=>Dt in gt?se(gt,Dt,{enumerable:!0,configurable:!0,writable:!0,value:Lt}):gt[Dt]=Lt,je=(gt,Dt)=>{for(var Lt in Dt||(Dt={}))pe.call(Dt,Lt)&&Ce(gt,Lt,Dt[Lt]);if(de)for(var Lt of de(Dt))ye.call(Dt,Lt)&&Ce(gt,Lt,Dt[Lt]);return gt},Te=(gt,Dt,Lt)=>new Promise((It,Tt)=>{var nn=Rt=>{try{He(Lt.next(Rt))}catch(Zt){Tt(Zt)}},at=Rt=>{try{He(Lt.throw(Rt))}catch(Zt){Tt(Zt)}},He=Rt=>Rt.done?It(Rt.value):Promise.resolve(Rt.value).then(nn,at);He((Lt=Lt.apply(gt,Dt)).next())});const Ie=gt=>{const Dt=ne().enc.Utf8.parse("c03f36595bd5610b");return ne().AES.encrypt(gt||"",Dt,{iv:Dt,mode:ne().mode.CBC}).toString()},Oe=({onCancel:gt,open:Dt})=>ue.createElement(ze.default,{title:"\u63D0\u793A",width:619,centered:!0,open:Dt,destroyOnClose:!0,okText:"\u7ACB\u5373\u524D\u5F80",cancelText:"\u7A0D\u540E\u518D\u8BF4",onCancel:gt,onOk:()=>{ct.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:Dt,open:Lt,Data:It})=>{const[Tt]=Ue.default.useForm(),[,nn,at]=(0,rt.U)((It==null?void 0:It.type)=="exercise"?lt.yE:_e.yE,{id:It==null?void 0:It.id});return(0,Ve.useEffect)(()=>{Lt||Tt.resetFields()},[Lt]),ue.createElement(ze.default,{title:"\u8BD5\u5377\u52A0\u5BC6\u5C01\u5B58",width:619,centered:!0,open:Lt,destroyOnClose:!0,confirmLoading:nn,onCancel:gt,onOk:()=>{Tt==null||Tt.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:Tt,className:"mt-20px",size:"large",colon:!1,onFinish:He=>Te(void 0,null,function*(){const Rt=yield at({id:It==null?void 0:It.id,is_encrypt:!0,pwd:Ie(He.pwd),pwd_confirm:Ie(He.pwd_confirm)});Rt.status===0?(yt.ZP.success("\u52A0\u5BC6\u6210\u529F"),Dt==null||Dt(Rt),gt()):Tt.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(tt.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(tt.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"}))))},nt=({onCancel:gt,open:Dt,Data:Lt})=>{var It;const[Tt]=Ue.default.useForm(),[nn]=Ue.default.useForm(),[at,He]=(0,Ve.useState)(!1),[Rt,Zt]=(0,Ve.useState)(0),[,,Yt]=(0,rt.U)(it.o1,{type:(Lt==null?void 0:Lt.type)=="exercise"?12:11}),[,Mt,zt]=(0,rt.U)((Lt==null?void 0:Lt.type)=="exercise"?lt.dp:_e.dp,{id:Lt==null?void 0:Lt.id}),[,on,Dn]=(0,rt.U)((Lt==null?void 0:Lt.type)=="exercise"?lt.Qc:_e.Qc,{id:Lt==null?void 0:Lt.id});return(0,Ve.useEffect)(()=>{var kt;Lt!=null&&Lt.phone&&Tt.setFieldsValue({login:(kt=Lt==null?void 0:Lt.phone)==null?void 0:kt.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)(()=>{Dt||(Tt.resetFields(),nn.resetFields())},[Dt]),ue.createElement(ue.Fragment,null,ue.createElement(ze.default,{title:"\u624B\u673A\u53F7\u7801\u6821\u9A8C",width:619,centered:!0,open:Dt,destroyOnClose:!0,confirmLoading:Mt,onCancel:gt,onOk:()=>{Tt==null||Tt.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:(It=Lt==null?void 0:Lt.phone)==null?void 0:It.replace(/(\d{3})\d{4}(\d{4})/,"$1****$2")},form:Tt,size:"large",colon:!1,onFinish:kt=>Te(void 0,null,function*(){console.log("allValue",kt);const vt=yield zt({code:kt==null?void 0:kt.code,login:Lt==null?void 0:Lt.phone,id:Lt==null?void 0:Lt.id});vt.status===0?(yt.ZP.success("\u6821\u9A8C\u6210\u529F"),gt==null||gt(),He(!0)):Tt.setFields([{name:"code",errors:[vt==null?void 0:vt.message]}])})},ue.createElement(Ue.default.Item,{label:"\u624B\u673A\u53F7",name:"login",required:!0},ue.createElement(tt.default,{placeholder:"\u8BF7\u8F93\u5165\u624B\u673A\u53F7",disabled:!0})),ue.createElement(De.Z,{wrap:!1,gutter:20},ue.createElement(xt.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(tt.default,{placeholder:"\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801"}))),ue.createElement(xt.Z,null,ue.createElement(ve.op,{openLoading:!0,size:"large",disabled:Rt>0,style:{borderRadius:"4px"},onClick:()=>Te(void 0,null,function*(){const kt=yield Yt({type:(Lt==null?void 0:Lt.type)=="exercise"?12:11,login:Lt==null?void 0:Lt.phone,smscode:(0,te.M)(Lt==null?void 0:Lt.phone)});(kt==null?void 0:kt.status)===1&&(yt.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:at,destroyOnClose:!0,confirmLoading:on,onCancel:()=>{He(!1)},onOk:()=>{nn==null||nn.submit()}},ue.createElement(Ue.default,{className:"mt20",form:nn,size:"large",colon:!1,onFinish:kt=>Te(void 0,null,function*(){console.log("allValue",kt),(yield Dn(je({id:Lt==null?void 0:Lt.id},kt))).status===0&&(yt.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(tt.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:kt})=>({validator(vt,hn){return!hn||kt("pwd")===hn?Promise.resolve():Promise.reject(new Error("\u4E24\u6B21\u8F93\u5165\u7684\u5BC6\u7801\u4E0D\u4E00\u81F4"))}})]},ue.createElement(tt.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:Dt,open:Lt,Data:It})=>{const[Tt]=Ue.default.useForm(),[nn,at]=(0,Ve.useState)(!1),[,He,Rt]=(0,rt.U)((It==null?void 0:It.type)=="exercise"?lt.yE:_e.yE,{id:It==null?void 0:It.id});return(0,Ve.useEffect)(()=>{Lt||Tt.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:()=>{Tt==null||Tt.submit()}},ue.createElement(De.Z,{wrap:!1,align:"top",gutter:16},ue.createElement(xt.Z,{flex:1},ue.createElement(Ue.default,{form:Tt,size:"large",colon:!1,onFinish:Zt=>Te(void 0,null,function*(){const Yt=yield Rt({id:It==null?void 0:It.id,is_encrypt:!1,pwd:Ie(Zt.pwd)});(Yt==null?void 0:Yt.status)===0?(yt.ZP.success("\u89E3\u5C01\u6210\u529F"),Dt==null||Dt(Yt),gt==null||gt()):Tt.setFields([{name:"pwd",errors:[Yt==null?void 0:Yt.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(tt.default.Password,{placeholder:"\u8BF7\u8F93\u5165\u5C01\u5B58\u5BC6\u7801"})))),ue.createElement(xt.Z,null,ue.createElement("a",{style:{lineHeight:"40px",whiteSpace:"nowrap"},onClick:()=>{at(!0),gt==null||gt()}},"\u5FD8\u8BB0\u5BC6\u7801\uFF1F")))),ue.createElement(nt,{onCancel:()=>{at(!1)},open:nn,Data:je({},It)}))},wt=({onCancel:gt,onFinish:Dt,open:Lt,Data:It})=>{const[Tt]=Ue.default.useForm(),[nn,at]=(0,Ve.useState)(!1),[,He,Rt]=(0,rt.U)((It==null?void 0:It.type)=="exercise"?lt.yE:_e.yE,{id:It==null?void 0:It.id});return(0,Ve.useEffect)(()=>{Lt||Tt.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:()=>{Tt==null||Tt.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:Tt,className:"mt-20px",size:"large",colon:!1,onFinish:Zt=>Te(void 0,null,function*(){const Yt=yield Rt({id:It==null?void 0:It.id,is_encrypt:!1,pwd:Ie(Zt.pwd)});(Yt==null?void 0:Yt.status)===0?(yt.ZP.success("\u89E3\u5C01\u6210\u529F"),Dt==null||Dt(Yt),gt==null||gt()):Tt.setFields([{name:"pwd",errors:[Yt==null?void 0:Yt.message]}])})},ue.createElement(De.Z,{wrap:!1,gutter:20},ue.createElement(xt.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(tt.default.Password,{placeholder:"\u8BF7\u8F93\u5165\u5C01\u5B58\u5BC6\u7801"}))),ue.createElement(xt.Z,null,ue.createElement("a",{style:{lineHeight:"40px",whiteSpace:"nowrap"},onClick:()=>{at(!0),gt==null||gt()}},"\u5FD8\u8BB0\u5BC6\u7801\uFF1F"))))),ue.createElement(nt,{onCancel:()=>{at(!1)},open:nn,Data:je({},It)}))}},45937:function(gn,en,we){"use strict";we.d(en,{U:function(){return tt}});var ve=we(59301),_e=Object.defineProperty,lt=Object.getOwnPropertySymbols,it=Object.prototype.hasOwnProperty,rt=Object.prototype.propertyIsEnumerable,ze=(De,xt,Ve)=>xt in De?_e(De,xt,{enumerable:!0,configurable:!0,writable:!0,value:Ve}):De[xt]=Ve,Ue=(De,xt)=>{for(var Ve in xt||(xt={}))it.call(xt,Ve)&&ze(De,Ve,xt[Ve]);if(lt)for(var Ve of lt(xt))rt.call(xt,Ve)&&ze(De,Ve,xt[Ve]);return De},yt=(De,xt,Ve)=>new Promise((ct,Ee)=>{var ne=se=>{try{ue(Ve.next(se))}catch(de){Ee(de)}},te=se=>{try{ue(Ve.throw(se))}catch(de){Ee(de)}},ue=se=>se.done?ct(se.value):Promise.resolve(se.value).then(ne,te);ue((Ve=Ve.apply(De,xt)).next())});function tt(De,xt){const[Ve,ct]=(0,ve.useState)(xt),[Ee,ne]=(0,ve.useState)(!1),[te,ue]=(0,ve.useState)();return[Ve,Ee,(de,pe=!1)=>yt(this,null,function*(){const ye=pe?xt:Ue(Ue({},Ve),de);ne(!0),ct(ye);const Ce=yield De(ye);return ne(!1),ue(Ce),Ce}),te,ue]}},81428:function(gn,en,we){"use strict";we.d(en,{AL:function(){return ye},Iy:function(){return xt},Qv:function(){return Ee},ez:function(){return pe},jb:function(){return Ve}});var ve=we(32834),_e=we.n(ve),lt=we(11690),it=we.n(lt);let rt=1;function ze(Oe,Re){const nt=Oe.match(/^(\s+)(?:```)/);if(nt===null)return Re;const ot=nt[1];return Re.split(`
`).map(wt=>{const gt=wt.match(/^\s+/);if(gt===null)return wt;const[Dt]=gt;return Dt.length>=ot.length?wt.slice(ot.length):wt}).join(`
`)}let Ue=[],yt=["<ul>"];const tt=new(_e()).Renderer,De=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function xt(){Ue.length=0,yt=["<ul>"]}const Ve={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function ct(Oe,Re,nt,ot){if(Re>=Oe.length||Oe[Re].level<=nt)return Re;var wt=Oe[Re];ot.push("<li><a href='#"+rt+wt.anchor+"'>"+wt.text+"</a>"),Re++;var gt=[];return Re=ct(Oe,Re,wt.level,gt),gt.length>0&&(ot.push("<ul>"),gt.forEach(function(Dt){ot.push(Dt)}),ot.push("</ul>")),ot.push("</li>"),Re=ct(Oe,Re,nt,ot),Re}function Ee(){return ct(Ue,0,0,yt),yt.push("</ul>"),yt.join("")}const ne={heading(Oe){const Re=De.exec(Oe);if(rt+=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 nt=Re[0];let ot=ze(nt,Re[3]||"");const wt=Re[2]?Re[2].trim():Re[2];if(["latex","katex","math"].indexOf(wt)>=0){const gt=se(),Dt=ot;ot=gt,de[gt]={type:"block",expression:Dt}}return{type:"code",raw:nt,lang:wt,text:ot}}}},te=/(?:\${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(te,(Re,nt)=>{const ot=se();return de[ot]={type:"inline",expression:nt},ot}),Oe}const je=tt.listitem;tt.listitem=function(Oe){return je(Ce(Oe))};const Te=tt.paragraph;tt.paragraph=function(Oe){return Te(Ce(Oe))};const Ie=tt.tablecell;tt.tablecell=function(Oe,Re){return Ie(Ce(Oe),Re)},tt.code=function(Oe,Re,nt){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}">${nt?Oe:(0,lt.escape)(Oe,!0)}</code></pre>
`:'<pre class="prettyprint linenums"><code>'+(nt?Oe:(0,lt.escape)(Oe,!0))+"</code></pre>"},tt.heading=function(Oe,Re,nt){let ot=this.options.headerPrefix+nt.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return Ue.push({anchor:ot,level:Re,text:Oe}),"<h"+Re+' id="'+rt+ot+'">'+Oe+"</h"+Re+">"},_e().setOptions({silent:!0,gfm:!0,pedantic:!1}),_e().use({tokenizer:ne,renderer:tt}),en.ZP=_e()},40197:function(gn,en,we){"use strict";we.d(en,{rX:function(){return Ce},pW:function(){return je},gy:function(){return Te},xY:function(){return ye},O5:function(){return pe},hs:function(){return te},tJ:function(){return Ee},o1:function(){return ne},Rd:function(){return de}});var ve=we(25690),_e=we(62957),lt=we(37285),it=we(6767),rt=we(48790),ze=we(51257),Ue=we(87169),yt=we(25510),tt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAGQCAIAAAAP3aGbAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAABcRAAAXEQHKJvM/AAAouElEQVR42u3de5gU1Z038HOqqu89PQPMhQHkNqCiCCK5qMRojIkXRNFERDTGNRvik5hNjPtgzEuyJLq6sq/EbEyy+u5jjBEhSEREvKyXQJRVs1FEMARhhhlgLsDAMD3T96o67x8zzPQMPTPVU12XX8/38/D4PDZdVedUd3+py6nf4UIIBgBAgeR0AwAAjEJgAQAZCCwAIAOBBQBkILAAgAwEFgCQgcACADIQWABABgILAMhAYAEAGQgsACADgQUAZCCwAIAMxfhbOedOt7a/nKUmcrbT2aIUxned8Xaa/DhMbsi2dppk8nO3ovG27XnbemTbDmE4wgIAQhBYAEAGAgsAyEBgAQAZCCwAIAOBBQBk5DGsIaedO3dWVFRY3cpVq1atXLnS4JuNj3WwgvF7tCbHZFhxe9u2dZp8Z04uHGlhxbAbKz44F/6KB2I2sCoqKqqqqqzuajgctnoTACMWoV8xTgkBgAwEFgCQgcACADIQWABABg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AkIHAAgAyEFgAQIYlwxpaWlrMLG5yBgrbSvfbVnKASsED25j8iE2u0/jiJsc6uLBWhLPrZBYFVsHnvAEAYDglBABCEFgAQAYCCwDIQGABABlmL7qvWrUqHA5b3cotW7bYszsAwM24FXeIbUPl0XPbahsY76ZtU3W48+64ma0bZ9tnZFtdB9tKoQwEp4QAQAYCCwDIQGABABkILAAgA4EFAGQgsACAjDyGNQAAOAtHWABABgILAMhAYAEAGQgsACADgQUAZCCwAIAMBBYAkIHAAgAyEFgAQAYCCwDIQGABABkILAAgA4EFAGQgsACAjP8Prqme11Be/zoAAAAASUVORK5CYII=",De=we.p+"static/newqrcode.a8740efb.png",xt=we(32637),Ve=we(59301),ct=(Ie,Oe,Re)=>new Promise((nt,ot)=>{var wt=Lt=>{try{Dt(Re.next(Lt))}catch(It){ot(It)}},gt=Lt=>{try{Dt(Re.throw(Lt))}catch(It){ot(It)}},Dt=Lt=>Lt.done?nt(Lt.value):Promise.resolve(Lt.value).then(wt,gt);Dt((Re=Re.apply(Ie,Oe)).next())});const Ee=(Ie,Oe=!1,Re=!1,nt="",ot=!1)=>!!(ne(Ie)&&ue(Ie,Oe,Re,nt,ot)),ne=Ie=>(0,rt.bg)()?!0:(Ie({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1),te=Ie=>{var Oe,Re,nt;const{user:ot}=(0,ve.getDvaApp)()._store.getState();(0,rt.bg)()&&!((Re=(Oe=ot==null?void 0:ot.userInfo)==null?void 0:Oe.course)!=null&&Re.course_public)&&!((nt=ot==null?void 0:ot.userInfo)!=null&&nt.profile_completed)&&Ie({type:"user/showUpdateProfilePanel",payload:{showUpdateProfilePanel:!0,showClosable:!0,backurl:"/account/profile/edit",isCurrentPage:!0}})},ue=(Ie,Oe=!1,Re=!0,nt="",ot=!1)=>{var wt;const{user:gt}=(0,ve.getDvaApp)()._store.getState();return(wt=gt.userInfo)!=null&&wt.profile_completed?!0:(Re?Ie({type:"user/showUpdateProfilePanel",payload:{showUpdateProfilePanel:!0,showClosable:!0,backurl:nt,isCurrentPage:ot}}):_e.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=()=>{_e.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=()=>{_e.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:xt}),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:(_e.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,rt.V9)()?!0:(_e.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:(_e.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:tt,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),je=Ie=>{_e.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(lt.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:yt,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 nt="";return(Re==null?void 0:Re.public)===2&&(nt="\u5DF2\u516C\u5F00"),(Re==null?void 0:Re.public)===1&&(nt="\u5F85\u5BA1\u6838"),(Re==null?void 0:Re.shixun_status)===3&&(nt="\u5DF2\u5173\u95ED"),_e.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",nt,"\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:yt,alt:"\u4E8C\u7EF4\u7801",width:160})),okText:"\u6211\u77E5\u9053\u4E86"}),!0}return(Re==null?void 0:Re.shixun_status)===2?(_e.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:()=>{_e.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:()=>ct(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(gn,en,we){"use strict";we.r(en),we.d(en,{clsx:function(){return _e}});function ve(lt){var it,rt,ze="";if(typeof lt=="string"||typeof lt=="number")ze+=lt;else if(typeof lt=="object")if(Array.isArray(lt))for(it=0;it<lt.length;it++)lt[it]&&(rt=ve(lt[it]))&&(ze&&(ze+=" "),ze+=rt);else for(it in lt)lt[it]&&(ze&&(ze+=" "),ze+=it);return ze}function _e(){for(var lt,it,rt=0,ze="";rt<arguments.length;)(lt=arguments[rt++])&&(it=ve(lt))&&(ze&&(ze+=" "),ze+=it);return ze}en.default=_e},99498:function(gn,en,we){(function(ve){ve(we(89780))})(function(ve){ve.defineOption("placeholder","",function(yt,tt,De){var xt=De&&De!=ve.Init;if(tt&&!xt)yt.on("blur",rt),yt.on("change",ze),yt.on("swapDoc",ze),ve.on(yt.getInputField(),"compositionupdate",yt.state.placeholderCompose=function(){it(yt)}),ze(yt);else if(!tt&&xt){yt.off("blur",rt),yt.off("change",ze),yt.off("swapDoc",ze),ve.off(yt.getInputField(),"compositionupdate",yt.state.placeholderCompose),_e(yt);var Ve=yt.getWrapperElement();Ve.className=Ve.className.replace(" CodeMirror-empty","")}tt&&!yt.hasFocus()&&rt(yt)});function _e(yt){yt.state.placeholder&&(yt.state.placeholder.parentNode.removeChild(yt.state.placeholder),yt.state.placeholder=null)}function lt(yt){_e(yt);var tt=yt.state.placeholder=document.createElement("pre");tt.style.cssText="height: 0; overflow: visible",tt.style.direction=yt.getOption("direction"),tt.className="CodeMirror-placeholder CodeMirror-line-like";var De=yt.getOption("placeholder");typeof De=="string"&&(De=document.createTextNode(De)),tt.appendChild(De),yt.display.lineSpace.insertBefore(tt,yt.display.lineSpace.firstChild)}function it(yt){setTimeout(function(){var tt=!1,De=yt.getInputField();De.nodeName=="TEXTAREA"?tt=!De.value:yt.lineCount()==1&&(tt=!/[^\u200b]/.test(De.querySelector(".CodeMirror-line").textContent)),tt?lt(yt):_e(yt)},20)}function rt(yt){Ue(yt)&&lt(yt)}function ze(yt){var tt=yt.getWrapperElement(),De=Ue(yt);tt.className=tt.className.replace(" CodeMirror-empty","")+(De?" CodeMirror-empty":""),De?lt(yt):_e(yt)}function Ue(yt){return yt.lineCount()===1&&yt.getLine(0)===""}})},25717:function(gn,en,we){(function(ve){ve(we(89780))})(function(ve){var _e={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},lt=ve.Pos;ve.defineOption("autoCloseBrackets",!1,function(ne,te,ue){ue&&ue!=ve.Init&&(ne.removeKeyMap(rt),ne.state.closeBrackets=null),te&&(ze(it(te,"pairs")),ne.state.closeBrackets=te,ne.addKeyMap(rt))});function it(ne,te){return te=="pairs"&&typeof ne=="string"?ne:typeof ne=="object"&&ne[te]!=null?ne[te]:_e[te]}var rt={Backspace:tt,Enter:De};function ze(ne){for(var te=0;te<ne.length;te++){var ue=ne.charAt(te),se="'"+ue+"'";rt[se]||(rt[se]=Ue(ue))}}ze(_e.pairs+"`");function Ue(ne){return function(te){return Ve(te,ne)}}function yt(ne){var te=ne.state.closeBrackets;if(!te||te.override)return te;var ue=ne.getModeAt(ne.getCursor());return ue.closeBrackets||te}function tt(ne){var te=yt(ne);if(!te||ne.getOption("disableInput"))return ve.Pass;for(var ue=it(te,"pairs"),se=ne.listSelections(),de=0;de<se.length;de++){if(!se[de].empty())return ve.Pass;var pe=ct(ne,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;ne.replaceRange("",lt(ye.line,ye.ch-1),lt(ye.line,ye.ch+1),"+delete")}}function De(ne){var te=yt(ne),ue=te&&it(te,"explode");if(!ue||ne.getOption("disableInput"))return ve.Pass;for(var se=ne.listSelections(),de=0;de<se.length;de++){if(!se[de].empty())return ve.Pass;var pe=ct(ne,se[de].head);if(!pe||ue.indexOf(pe)%2!=0)return ve.Pass}ne.operation(function(){var ye=ne.lineSeparator()||`
`;ne.replaceSelection(ye+ye,null),ne.execCommand("goCharLeft"),se=ne.listSelections();for(var Ce=0;Ce<se.length;Ce++){var je=se[Ce].head.line;ne.indentLine(je,null,!0),ne.indentLine(je+1,null,!0)}})}function xt(ne){var te=ve.cmpPos(ne.anchor,ne.head)>0;return{anchor:new lt(ne.anchor.line,ne.anchor.ch+(te?-1:1)),head:new lt(ne.head.line,ne.head.ch+(te?1:-1))}}function Ve(ne,te){var ue=yt(ne);if(!ue||ne.getOption("disableInput"))return ve.Pass;var se=it(ue,"pairs"),de=se.indexOf(te);if(de==-1)return ve.Pass;for(var pe=it(ue,"closeBefore"),ye=it(ue,"triples"),Ce=se.charAt(de+1)==te,je=ne.listSelections(),Te=de%2==0,Ie,Oe=0;Oe<je.length;Oe++){var Re=je[Oe],nt=Re.head,ot,wt=ne.getRange(nt,lt(nt.line,nt.ch+1));if(Te&&!Re.empty())ot="surround";else if((Ce||!Te)&&wt==te)Ce&&Ee(ne,nt)?ot="both":ye.indexOf(te)>=0&&ne.getRange(nt,lt(nt.line,nt.ch+3))==te+te+te?ot="skipThree":ot="skip";else if(Ce&&nt.ch>1&&ye.indexOf(te)>=0&&ne.getRange(lt(nt.line,nt.ch-2),nt)==te+te){if(nt.ch>2&&/\bstring/.test(ne.getTokenTypeAt(lt(nt.line,nt.ch-2))))return ve.Pass;ot="addFour"}else if(Ce){var gt=nt.ch==0?" ":ne.getRange(lt(nt.line,nt.ch-1),nt);if(!ve.isWordChar(wt)&&gt!=te&&!ve.isWordChar(gt))ot="both";else return ve.Pass}else if(Te&&(wt.length===0||/\s/.test(wt)||pe.indexOf(wt)>-1))ot="both";else return ve.Pass;if(!Ie)Ie=ot;else if(Ie!=ot)return ve.Pass}var Dt=de%2?se.charAt(de-1):te,Lt=de%2?te:se.charAt(de+1);ne.operation(function(){if(Ie=="skip")ne.execCommand("goCharRight");else if(Ie=="skipThree")for(var It=0;It<3;It++)ne.execCommand("goCharRight");else if(Ie=="surround"){for(var Tt=ne.getSelections(),It=0;It<Tt.length;It++)Tt[It]=Dt+Tt[It]+Lt;ne.replaceSelections(Tt,"around"),Tt=ne.listSelections().slice();for(var It=0;It<Tt.length;It++)Tt[It]=xt(Tt[It]);ne.setSelections(Tt)}else Ie=="both"?(ne.replaceSelection(Dt+Lt,null),ne.triggerElectric(Dt+Lt),ne.execCommand("goCharLeft")):Ie=="addFour"&&(ne.replaceSelection(Dt+Dt+Dt+Dt,"before"),ne.execCommand("goCharRight"))})}function ct(ne,te){var ue=ne.getRange(lt(te.line,te.ch-1),lt(te.line,te.ch+1));return ue.length==2?ue:null}function Ee(ne,te){var ue=ne.getTokenAt(lt(te.line,te.ch+1));return/\bstring/.test(ue.type)&&ue.start==te.ch&&(te.ch==0||!/\bstring/.test(ne.getTokenTypeAt(te)))}})},6313:function(gn,en,we){(function(ve){ve(we(89780),we(32855))})(function(ve){ve.defineOption("autoCloseTags",!1,function(tt,De,xt){if(xt!=ve.Init&&xt&&tt.removeKeyMap("autoCloseTags"),!!De){var Ve={name:"autoCloseTags"};(typeof De!="object"||De.whenClosing!==!1)&&(Ve["'/'"]=function(ct){return ze(ct)}),(typeof De!="object"||De.whenOpening!==!1)&&(Ve["'>'"]=function(ct){return it(ct)}),tt.addKeyMap(Ve)}});var _e=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],lt=["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(tt){if(tt.getOption("disableInput"))return ve.Pass;for(var De=tt.listSelections(),xt=[],Ve=tt.getOption("autoCloseTags"),ct=0;ct<De.length;ct++){if(!De[ct].empty())return ve.Pass;var Ee=De[ct].head,ne=tt.getTokenAt(Ee),te=ve.innerMode(tt.getMode(),ne.state),ue=te.state,se=te.mode.xmlCurrentTag&&te.mode.xmlCurrentTag(ue),de=se&&se.name;if(!de)return ve.Pass;var pe=te.mode.configuration=="html",ye=typeof Ve=="object"&&Ve.dontCloseTags||pe&&_e,Ce=typeof Ve=="object"&&Ve.indentTags||pe&&lt;ne.end>Ee.ch&&(de=de.slice(0,de.length-ne.end+Ee.ch));var je=de.toLowerCase();if(!de||ne.type=="string"&&(ne.end!=Ee.ch||!/[\"\']/.test(ne.string.charAt(ne.string.length-1))||ne.string.length==1)||ne.type=="tag"&&se.close||ne.string.indexOf("/")==Ee.ch-ne.start-1||ye&&Ue(ye,je)>-1||yt(tt,te.mode.xmlCurrentContext&&te.mode.xmlCurrentContext(ue)||[],de,Ee,!0))return ve.Pass;var Te=typeof Ve=="object"&&Ve.emptyTags;if(Te&&Ue(Te,de)>-1){xt[ct]={text:"/>",newPos:ve.Pos(Ee.line,Ee.ch+2)};continue}var Ie=Ce&&Ue(Ce,je)>-1;xt[ct]={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,ct=De.length-1;ct>=0;ct--){var Re=xt[ct];tt.replaceRange(Re.text,De[ct].head,De[ct].anchor,"+insert");var nt=tt.listSelections().slice(0);nt[ct]={head:Re.newPos,anchor:Re.newPos},tt.setSelections(nt),!Oe&&Re.indent&&(tt.indentLine(Re.newPos.line,null,!0),tt.indentLine(Re.newPos.line+1,null,!0))}}function rt(tt,De){for(var xt=tt.listSelections(),Ve=[],ct=De?"/":"</",Ee=tt.getOption("autoCloseTags"),ne=typeof Ee=="object"&&Ee.dontIndentOnSlash,te=0;te<xt.length;te++){if(!xt[te].empty())return ve.Pass;var ue=xt[te].head,se=tt.getTokenAt(ue),de=ve.innerMode(tt.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"&&tt.getMode().name=="htmlmixed";if(Ce&&de.mode.name=="javascript")ye=ct+"script";else if(Ce&&de.mode.name=="css")ye=ct+"style";else{var je=de.mode.xmlCurrentContext&&de.mode.xmlCurrentContext(pe);if(!je||je.length&&yt(tt,je,je[je.length-1],ue))return ve.Pass;ye=ct+je[je.length-1]}tt.getLine(ue.line).charAt(se.end)!=">"&&(ye+=">"),Ve[te]=ye}if(tt.replaceSelections(Ve),xt=tt.listSelections(),!ne)for(var te=0;te<xt.length;te++)(te==xt.length-1||xt[te].head.line<xt[te+1].head.line)&&tt.indentLine(xt[te].head.line)}function ze(tt){return tt.getOption("disableInput")?ve.Pass:rt(tt,!0)}ve.commands.closeTag=function(tt){return rt(tt)};function Ue(tt,De){if(tt.indexOf)return tt.indexOf(De);for(var xt=0,Ve=tt.length;xt<Ve;++xt)if(tt[xt]==De)return xt;return-1}function yt(tt,De,xt,Ve,ct){if(!ve.scanForClosingTag)return!1;var Ee=Math.min(tt.lastLine()+1,Ve.line+500),ne=ve.scanForClosingTag(tt,Ve,null,Ee);if(!ne||ne.tag!=xt)return!1;for(var te=ct?1:0,ue=De.length-1;ue>=0&&De[ue]==xt;ue--)++te;Ve=ne.to;for(var ue=1;ue<te;ue++){var se=ve.scanForClosingTag(tt,Ve,null,Ee);if(!se||se.tag!=xt)return!1;Ve=se.to}return!0}})},32855:function(gn,en,we){(function(ve){ve(we(89780))})(function(ve){"use strict";var _e=ve.Pos;function lt(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",rt=it+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",ze=new RegExp("<(/?)(["+it+"]["+rt+"]*)","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 yt(ue,se){var de=ue.cm.getTokenTypeAt(_e(ue.line,se));return de&&/\btag\b/.test(de)}function tt(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 xt(ue){for(;;){var se=ue.text.indexOf(">",ue.ch);if(se==-1){if(tt(ue))continue;return}if(!yt(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(!yt(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 ct(ue){for(;;){ze.lastIndex=ue.ch;var se=ze.exec(ue.text);if(!se){if(tt(ue))continue;return}if(!yt(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(!yt(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 ne(ue,se){for(var de=[];;){var pe=ct(ue),ye,Ce=ue.line,je=ue.ch-(pe?pe[0].length:0);if(!pe||!(ye=xt(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:_e(Ce,je),to:_e(ue.line,ue.ch)}}else de.push(pe[2])}}function te(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,je=Ve(ue);if(!je)return;if(je[1])de.push(je[2]);else{for(var Te=de.length-1;Te>=0;--Te)if(de[Te]==je[2]){de.length=Te;break}if(Te<0&&(!se||se==je[2]))return{tag:je[2],from:_e(ue.line,ue.ch),to:_e(ye,Ce)}}}}ve.registerHelper("fold","xml",function(ue,se){for(var de=new Ue(ue,se.line,0);;){var pe=ct(de);if(!pe||de.line!=se.line)return;var ye=xt(de);if(!ye)return;if(!pe[1]&&ye!="selfClose"){var Ce=_e(de.line,de.ch),je=ne(de,pe[2]);return je&&lt(je.from,Ce)>0?{from:Ce,to:je.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=xt(pe),Ce=ye&&_e(pe.line,pe.ch),je=ye&&Ve(pe);if(!(!ye||!je||lt(pe,se)>0)){var Te={from:_e(pe.line,pe.ch),to:Ce,tag:je[2]};return ye=="selfClose"?{open:Te,close:null,at:"open"}:je[1]?{open:te(pe,je[2]),close:Te,at:"close"}:(pe=new Ue(ue,Ce.line,Ce.ch,de),{open:Te,close:ne(pe,je[2]),at:"open"})}}},ve.findEnclosingTag=function(ue,se,de,pe){for(var ye=new Ue(ue,se.line,se.ch,de);;){var Ce=te(ye,pe);if(!Ce)break;var je=new Ue(ue,se.line,se.ch,de),Te=ne(je,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 ne(ye,de)}})},89780:function(gn){(function(en,we){gn.exports=we()})(this,function(){"use strict";var en=navigator.userAgent,we=navigator.platform,ve=/gecko\/\d/i.test(en),_e=/MSIE \d/.test(en),lt=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(en),it=/Edge\/(\d+)/.exec(en),rt=_e||lt||it,ze=rt&&(_e?document.documentMode||6:+(it||lt)[1]),Ue=!it&&/WebKit\//.test(en),yt=Ue&&/Qt\/\d+\.\d+/.test(en),tt=!it&&/Chrome\//.test(en),De=/Opera\//.test(en),xt=/Apple Computer/.test(navigator.vendor),Ve=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(en),ct=/PhantomJS/.test(en),Ee=!it&&/AppleWebKit/.test(en)&&/Mobile\/\w+/.test(en),ne=/Android/.test(en),te=Ee||ne||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(en),ue=Ee||/Mac/.test(we),se=/\bCrOS\b/.test(en),de=/win/i.test(we),pe=De&&en.match(/Version\/(\d*\.\d*)/);pe&&(pe=Number(pe[1])),pe&&pe>=15&&(De=!1,Ue=!0);var ye=ue&&(yt||De&&(pe==null||pe<12.11)),Ce=ve||rt&&ze>=9;function je(ie){return new RegExp("(^|\\s)"+ie+"(?:$|\\s)\\s*")}var Te=function(ie,ae){var fe=ie.className,ce=je(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 nt(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 wt(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 Dt(ie,ae){var fe=ie.className;je(ae).test(fe)||(ie.className+=(fe?" ":"")+ae)}function Lt(ie,ae){for(var fe=ie.split(" "),ce=0;ce<fe.length;ce++)fe[ce]&&!je(fe[ce]).test(ae)&&(ae+=" "+fe[ce]);return ae}var It=function(ie){ie.select()};Ee?It=function(ie){ie.selectionStart=0,ie.selectionEnd=ie.value.length}:rt&&(It=function(ie){try{ie.select()}catch(ae){}});function Tt(ie){var ae=Array.prototype.slice.call(arguments,1);return function(){return ie.apply(null,ae)}}function nn(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 at(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 $e=ie.indexOf(" ",Me);if($e<0||$e>=ae)return Ge+(ae-Me);Ge+=$e-Me,Ge+=fe-Ge%fe,Me=$e+1}}var He=function(){this.id=null,this.f=null,this.time=0,this.handler=Tt(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,Yt={toString:function(){return"CodeMirror.Pass"}},Mt={scroll:!1},zt={origin:"*mouse"},on={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 kt=[""];function vt(ie){for(;kt.length<=ie;)kt.push(hn(kt)+" ");return kt[ie]}function hn(ie){return ie[ie.length-1]}function li(ie,ae){for(var fe=[],ce=0;ce<ie.length;ce++)fe[ce]=ae(ie[ce],ce);return fe}function yi(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&&nn(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 Ye(ie,ae){return ae?ae.source.indexOf("\\w")>-1&&Ne(ie)?!0:ae.test(ie):Ne(ie)}function ke(ie){for(var ae in ie)if(ie.hasOwnProperty(ae)&&ie[ae])return!1;return!0}var et=/[\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 _t(ie){return ie.charCodeAt(0)>=768&&et.test(ie)}function Bt(ie,ae,fe){for(;(fe<0?ae>0:ae<ie.length)&&_t(ie.charAt(ae));)ae+=fe;return ae}function rn(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 Ot(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 Wt(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 Xt=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]/,$e=/[1n]/;function Je(mt,sn,At){this.level=mt,this.from=sn,this.to=At}return function(mt,sn){var At=sn=="ltr"?"L":"R";if(mt.length==0||sn=="ltr"&&!ce.test(mt))return!1;for(var Bn=mt.length,xn=[],Ii=0;Ii<Bn;++Ii)xn.push(fe(mt.charCodeAt(Ii)));for(var Hi=0,Ji=At;Hi<Bn;++Hi){var Cr=xn[Hi];Cr=="m"?xn[Hi]=Ji:Ji=Cr}for(var Gr=0,Nr=At;Gr<Bn;++Gr){var Jr=xn[Gr];Jr=="1"&&Nr=="r"?xn[Gr]="n":Me.test(Jr)&&(Nr=Jr,Jr=="r"&&(xn[Gr]="R"))}for(var Mo=1,br=xn[0];Mo<Bn-1;++Mo){var Qo=xn[Mo];Qo=="+"&&br=="1"&&xn[Mo+1]=="1"?xn[Mo]="1":Qo==","&&br==xn[Mo+1]&&(br=="1"||br=="n")&&(xn[Mo]=br),br=Qo}for(var Oa=0;Oa<Bn;++Oa){var ms=xn[Oa];if(ms==",")xn[Oa]="N";else if(ms=="%"){var Ka=void 0;for(Ka=Oa+1;Ka<Bn&&xn[Ka]=="%";++Ka);for(var sl=Oa&&xn[Oa-1]=="!"||Ka<Bn&&xn[Ka]=="1"?"1":"N",Vs=Oa;Vs<Ka;++Vs)xn[Vs]=sl;Oa=Ka-1}}for(var cs=0,xl=At;cs<Bn;++cs){var Ts=xn[cs];xl=="L"&&Ts=="1"?xn[cs]="L":Me.test(Ts)&&(xl=Ts)}for(var fs=0;fs<Bn;++fs)if(me.test(xn[fs])){var ha=void 0;for(ha=fs+1;ha<Bn&&me.test(xn[ha]);++ha);for(var Qa=(fs?xn[fs-1]:At)=="L",ws=(ha<Bn?xn[ha]:At)=="L",Os=Qa==ws?Qa?"L":"R":At,ou=fs;ou<ha;++ou)xn[ou]=Os;fs=ha-1}for(var Ua=[],Ul,ts=0;ts<Bn;)if(Ge.test(xn[ts])){var Bc=ts;for(++ts;ts<Bn&&Ge.test(xn[ts]);++ts);Ua.push(new Je(0,Bc,ts))}else{var Ol=ts,Pl=Ua.length,ll=sn=="rtl"?1:0;for(++ts;ts<Bn&&xn[ts]!="L";++ts);for(var Ma=Ol;Ma<ts;)if($e.test(xn[Ma])){Ol<Ma&&(Ua.splice(Pl,0,new Je(1,Ol,Ma)),Pl+=ll);var Cs=Ma;for(++Ma;Ma<ts&&$e.test(xn[Ma]);++Ma);Ua.splice(Pl,0,new Je(2,Cs,Ma)),Pl+=ll,Ol=Ma}else++Ma;Ol<ts&&Ua.splice(Pl,0,new Je(1,Ol,ts))}return sn=="ltr"&&(Ua[0].level==1&&(Ul=mt.match(/^\s+/))&&(Ua[0].from=Ul[0].length,Ua.unshift(new Je(0,0,Ul[0].length))),hn(Ua).level==1&&(Ul=mt.match(/\s+$/))&&(hn(Ua).to-=Ul[0].length,Ua.push(new Je(0,Bn-Ul[0].length,Bn)))),sn=="rtl"?Ua.reverse():Ua}}();function pn(ie,ae){var fe=ie.order;return fe==null&&(fe=ie.order=Xt(ie.text,ae)),fe}var $n=[],Cn=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]||$n).concat(fe)}};function Ln(ie,ae){return ie._handlers&&ie._handlers[ae]||$n}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 Jn(ie,ae){var fe=Ln(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 Di(ie,ae,fe){return typeof ae=="string"&&(ae={type:ae,preventDefault:function(){this.defaultPrevented=!0}}),Jn(ie,fe||ae.type,ie,ae),qi(ae)||ae.codemirrorIgnore}function ui(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 Bi(ie,ae){return Ln(ie,ae).length>0}function Ui(ie){ie.prototype.on=function(ae,fe){Cn(this,ae,fe)},ie.prototype.off=function(ae,fe){Ci(this,ae,fe)}}function ir(ie){ie.preventDefault?ie.preventDefault():ie.returnValue=!1}function Ir(ie){ie.stopPropagation?ie.stopPropagation():ie.cancelBubble=!0}function qi(ie){return ie.defaultPrevented!=null?ie.defaultPrevented:ie.returnValue==!1}function ri(ie){ir(ie),Ir(ie)}function co(ie){return ie.target||ie.srcElement}function Qr(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 to=function(){if(rt&&ze<9)return!1;var ie=Re("div");return"draggable"in ie||"dragDrop"in ie}(),no;function xo(ie){if(no==null){var ae=Re("span","\u200B");Oe(ie,Re("span",[ae,document.createTextNode("x")])),ie.firstChild.offsetHeight!=0&&(no=ae.offsetWidth<=1&&ae.offsetHeight>2&&!(rt&&ze<8))}var fe=no?Re("span","\u200B"):Re("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return fe.setAttribute("cm-text",""),fe}var lo;function Er(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 io=`
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},Pn=function(){var ie=Re("div");return"oncopy"in ie?!0:(ie.setAttribute("oncopy","return;"),typeof ie.oncopy=="function")}(),Un=null;function gi(ie){if(Un!=null)return Un;var ae=Oe(ie,Re("span","x")),fe=ae.getBoundingClientRect(),ce=ot(ae,0,1).getBoundingClientRect();return Un=Math.abs(fe.left-ce.left)>1}var mi={},ti={};function Yi(ie,ae){arguments.length>2&&(ae.dependencies=Array.prototype.slice.call(arguments,2)),mi[ie]=ae}function pr(ie,ae){ti[ie]=ae}function un(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 un("application/xml");if(typeof ie=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(ie))return un("application/json")}return typeof ie=="string"?{name:ie}:ie||{name:"null"}}function an(ie,ae){ae=un(ae);var fe=mi[ae.name];if(!fe)return an(ie,"text/plain");var ce=fe(ie,ae);if(jt.hasOwnProperty(ae.name)){var me=jt[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 jt={};function mn(ie,ae){var fe=jt.hasOwnProperty(ie)?jt[ie]:jt[ie]={};nn(ae,fe)}function Zi(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 ji(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 lr(ie,ae,fe){return ie.startState?ie.startState(ae,fe):!0}var Zn=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};Zn.prototype.eol=function(){return this.pos>=this.string.length},Zn.prototype.sol=function(){return this.pos==this.lineStart},Zn.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Zn.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Zn.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},Zn.prototype.eatWhile=function(ie){for(var ae=this.pos;this.eat(ie););return this.pos>ae},Zn.prototype.eatSpace=function(){for(var ie=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>ie},Zn.prototype.skipToEnd=function(){this.pos=this.string.length},Zn.prototype.skipTo=function(ie){var ae=this.string.indexOf(ie,this.pos);if(ae>-1)return this.pos=ae,!0},Zn.prototype.backUp=function(ie){this.pos-=ie},Zn.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=at(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?at(this.string,this.lineStart,this.tabSize):0)},Zn.prototype.indentation=function(){return at(this.string,null,this.tabSize)-(this.lineStart?at(this.string,this.lineStart,this.tabSize):0)},Zn.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)}},Zn.prototype.current=function(){return this.string.slice(this.start,this.pos)},Zn.prototype.hideFirstChars=function(ie,ae){this.lineStart+=ie;try{return ae()}finally{this.lineStart-=ie}},Zn.prototype.lookAhead=function(ie){var ae=this.lineOracle;return ae&&ae.lookAhead(ie)},Zn.prototype.baseToken=function(){var ie=this.lineOracle;return ie&&ie.baseToken(this.pos)};function Ti(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 fr(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 Vr(ie,ae,fe){var ce=[];return ie.iter(ae,fe,function(me){ce.push(me.text)}),ce}function ci(ie,ae){var fe=ae-ie.height;if(fe)for(var ce=ie;ce;ce=ce.parent)ce.height+=fe}function ut(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 Nt(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 $e=ie.lines[Ge],Je=$e.height;if(ae<Je)break;ae-=Je}return fe+Ge}function Rn(ie,ae){return ae>=ie.first&&ae<ie.first+ie.size}function In(ie,ae){return String(ie.lineNumberFormatter(ae+ie.firstLineNumber))}function Qt(ie,ae,fe){if(fe===void 0&&(fe=null),!(this instanceof Qt))return new Qt(ie,ae,fe);this.line=ie,this.ch=ae,this.sticky=fe}function qn(ie,ae){return ie.line-ae.line||ie.ch-ae.ch}function Nn(ie,ae){return ie.sticky==ae.sticky&&qn(ie,ae)==0}function Vn(ie){return Qt(ie.line,ie.ch)}function Pi(ie,ae){return qn(ie,ae)<0?ae:ie}function pi(ie,ae){return qn(ie,ae)<0?ie:ae}function tn(ie,ae){return Math.max(ie.first,Math.min(ae,ie.first+ie.size-1))}function Wi(ie,ae){if(ae.line<ie.first)return Qt(ie.first,0);var fe=ie.first+ie.size-1;return ae.line>fe?Qt(fe,Ti(ie,fe).text.length):yr(ae,Ti(ie,ae.line).text.length)}function yr(ie,ae){var fe=ie.ch;return fe==null||fe>ae?Qt(ie.line,ae):fe<0?Qt(ie.line,0):ie}function Pr(ie,ae){for(var fe=[],ce=0;ce<ae.length;ce++)fe[ce]=Wi(ie,ae[ce]);return fe}var Yn=function(ie,ae){this.state=ie,this.lookAhead=ae},Oi=function(ie,ae,fe,ce){this.state=ae,this.doc=ie,this.line=fe,this.maxLookAhead=ce||0,this.baseTokens=null,this.baseTokenPos=1};Oi.prototype.lookAhead=function(ie){var ae=this.doc.getLine(this.line+ie);return ae!=null&&ie>this.maxLookAhead&&(this.maxLookAhead=ie),ae},Oi.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}},Oi.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Oi.fromSaved=function(ie,ae,fe){return ae instanceof Yn?new Oi(ie,Zi(ie.mode,ae.state),fe,ae.lookAhead):new Oi(ie,Zi(ie.mode,ae),fe)},Oi.prototype.save=function(ie){var ae=ie!==!1?Zi(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Yn(ae,this.maxLookAhead):ae};function Dr(ie,ae,fe,ce){var me=[ie.state.modeGen],Me={};Lr(ie,ae.text,ie.doc.mode,fe,function(mt,sn){return me.push(mt,sn)},Me,ce);for(var Ge=fe.state,$e=function(mt){fe.baseTokens=me;var sn=ie.state.overlays[mt],At=1,Bn=0;fe.state=!0,Lr(ie,ae.text,sn.mode,fe,function(xn,Ii){for(var Hi=At;Bn<xn;){var Ji=me[At];Ji>xn&&me.splice(At,1,xn,me[At+1],Ji),At+=2,Bn=Math.min(xn,Ji)}if(Ii)if(sn.opaque)me.splice(Hi,At-Hi,xn,"overlay "+Ii),At=Hi+2;else for(;Hi<At;Hi+=2){var Cr=me[Hi+1];me[Hi+1]=(Cr?Cr+" ":"")+"overlay "+Ii}},Me),fe.state=Ge,fe.baseTokens=null,fe.baseTokenPos=1},Je=0;Je<ie.state.overlays.length;++Je)$e(Je);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=oo(ie,ut(ae)),me=ae.text.length>ie.options.maxHighlightLength&&Zi(ie.doc.mode,ce.state),Me=Dr(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 oo(ie,ae,fe){var ce=ie.doc,me=ie.display;if(!ce.mode.startState)return new Oi(ce,!0,ae);var Me=Tr(ie,ae,fe),Ge=Me>ce.first&&Ti(ce,Me-1).stateAfter,$e=Ge?Oi.fromSaved(ce,Ge,Me):new Oi(ce,lr(ce.mode),Me);return ce.iter(Me,ae,function(Je){Kt(ie,Je.text,$e);var mt=$e.line;Je.stateAfter=mt==ae-1||mt%5==0||mt>=me.viewFrom&&mt<me.viewTo?$e.save():null,$e.nextLine()}),fe&&(ce.modeFrontier=$e.line),$e}function Kt(ie,ae,fe,ce){var me=ie.doc.mode,Me=new Zn(ae,ie.options.tabSize,fe);for(Me.start=Me.pos=ce||0,ae==""&&bi(me,fe.state);!Me.eol();)tr(me,Me,fe.state),Me.start=Me.pos}function bi(ie,ae){if(ie.blankLine)return ie.blankLine(ae);if(ie.innerMode){var fe=ji(ie,ae);if(fe.mode.blankLine)return fe.mode.blankLine(fe.state)}}function tr(ie,ae,fe,ce){for(var me=0;me<10;me++){ce&&(ce[0]=ji(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 Mi=function(ie,ae,fe){this.start=ie.start,this.end=ie.pos,this.string=ie.current(),this.type=ae||null,this.state=fe};function kr(ie,ae,fe,ce){var me=ie.doc,Me=me.mode,Ge;ae=Wi(me,ae);var $e=Ti(me,ae.line),Je=oo(ie,ae.line,fe),mt=new Zn($e.text,ie.options.tabSize,Je),sn;for(ce&&(sn=[]);(ce||mt.pos<ae.ch)&&!mt.eol();)mt.start=mt.pos,Ge=tr(Me,mt,Je.state),ce&&sn.push(new Mi(mt,Ge,Zi(me.mode,Je.state)));return ce?sn:new Mi(mt,Ge,Je.state)}function rr(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 Lr(ie,ae,fe,ce,me,Me,Ge){var $e=fe.flattenSpans;$e==null&&($e=ie.options.flattenSpans);var Je=0,mt=null,sn=new Zn(ae,ie.options.tabSize,ce),At,Bn=ie.options.addModeClass&&[null];for(ae==""&&rr(bi(fe,ce.state),Me);!sn.eol();){if(sn.pos>ie.options.maxHighlightLength?($e=!1,Ge&&Kt(ie,ae,ce,sn.pos),sn.pos=ae.length,At=null):At=rr(tr(fe,sn,ce.state,Bn),Me),Bn){var xn=Bn[0].name;xn&&(At="m-"+(At?xn+" "+At:xn))}if(!$e||mt!=At){for(;Je<sn.start;)Je=Math.min(sn.start,Je+5e3),me(Je,mt);mt=At}sn.start=sn.pos}for(;Je<sn.pos;){var Ii=Math.min(sn.pos,Je+5e3);me(Ii,mt),Je=Ii}}function Tr(ie,ae,fe){for(var ce,me,Me=ie.doc,Ge=fe?-1:ae-(ie.doc.mode.innerMode?1e3:100),$e=ae;$e>Ge;--$e){if($e<=Me.first)return Me.first;var Je=Ti(Me,$e-1),mt=Je.stateAfter;if(mt&&(!fe||$e+(mt instanceof Yn?mt.lookAhead:0)<=Me.modeFrontier))return $e;var sn=at(Je.text,null,ie.options.tabSize);(me==null||ce>sn)&&(me=$e-1,ce=sn)}return me}function Zr(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=Ti(ie,ce).stateAfter;if(me&&(!(me instanceof Yn)||ce+me.lookAhead<ae)){fe=ce+1;break}}ie.highlightFrontier=Math.min(ie.highlightFrontier,fe)}}var uo=!1,An=!1;function mo(){uo=!0}function Fn(){An=!0}function ai(ie,ae,fe){this.marker=ie,this.from=ae,this.to=fe}function _r(ie,ae){if(ie)for(var fe=0;fe<ie.length;++fe){var ce=ie[fe];if(ce.marker==ae)return ce}}function Hr(ie,ae){for(var fe,ce=0;ce<ie.length;++ce)ie[ce]!=ae&&(fe||(fe=[])).push(ie[ce]);return fe}function Oo(ie,ae){ie.markedSpans=ie.markedSpans?ie.markedSpans.concat([ae]):[ae],ae.marker.attachLine(ie)}function Kr(ie,ae,fe){var ce;if(ie)for(var me=0;me<ie.length;++me){var Me=ie[me],Ge=Me.marker,$e=Me.from==null||(Ge.inclusiveLeft?Me.from<=ae:Me.from<ae);if($e||Me.from==ae&&Ge.type=="bookmark"&&(!fe||!Me.marker.insertLeft)){var Je=Me.to==null||(Ge.inclusiveRight?Me.to>=ae:Me.to>ae);(ce||(ce=[])).push(new ai(Ge,Me.from,Je?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,$e=Me.to==null||(Ge.inclusiveRight?Me.to>=ae:Me.to>ae);if($e||Me.from==ae&&Ge.type=="bookmark"&&(!fe||Me.marker.insertLeft)){var Je=Me.from==null||(Ge.inclusiveLeft?Me.from<=ae:Me.from<ae);(ce||(ce=[])).push(new ai(Ge,Je?null:Me.from-ae,Me.to==null?null:Me.to-ae))}}return ce}function Bo(ie,ae){if(ae.full)return null;var fe=Rn(ie,ae.from.line)&&Ti(ie,ae.from.line).markedSpans,ce=Rn(ie,ae.to.line)&&Ti(ie,ae.to.line).markedSpans;if(!fe&&!ce)return null;var me=ae.from.ch,Me=ae.to.ch,Ge=qn(ae.from,ae.to)==0,$e=Kr(fe,me,Ge),Je=Or(ce,Me,Ge),mt=ae.text.length==1,sn=hn(ae.text).length+(mt?me:0);if($e)for(var At=0;At<$e.length;++At){var Bn=$e[At];if(Bn.to==null){var xn=_r(Je,Bn.marker);xn?mt&&(Bn.to=xn.to==null?null:xn.to+sn):Bn.to=me}}if(Je)for(var Ii=0;Ii<Je.length;++Ii){var Hi=Je[Ii];if(Hi.to!=null&&(Hi.to+=sn),Hi.from==null){var Ji=_r($e,Hi.marker);Ji||(Hi.from=sn,mt&&($e||($e=[])).push(Hi))}else Hi.from+=sn,mt&&($e||($e=[])).push(Hi)}$e&&($e=qt($e)),Je&&Je!=$e&&(Je=qt(Je));var Cr=[$e];if(!mt){var Gr=ae.text.length-2,Nr;if(Gr>0&&$e)for(var Jr=0;Jr<$e.length;++Jr)$e[Jr].to==null&&(Nr||(Nr=[])).push(new ai($e[Jr].marker,null,null));for(var Mo=0;Mo<Gr;++Mo)Cr.push(Nr);Cr.push(Je)}return Cr}function qt(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 vn(ie,ae,fe){var ce=null;if(ie.iter(ae.line,fe.line+1,function(xn){if(xn.markedSpans)for(var Ii=0;Ii<xn.markedSpans.length;++Ii){var Hi=xn.markedSpans[Ii].marker;Hi.readOnly&&(!ce||Rt(ce,Hi)==-1)&&(ce||(ce=[])).push(Hi)}}),!ce)return null;for(var me=[{from:ae,to:fe}],Me=0;Me<ce.length;++Me)for(var Ge=ce[Me],$e=Ge.find(0),Je=0;Je<me.length;++Je){var mt=me[Je];if(!(qn(mt.to,$e.from)<0||qn(mt.from,$e.to)>0)){var sn=[Je,1],At=qn(mt.from,$e.from),Bn=qn(mt.to,$e.to);(At<0||!Ge.inclusiveLeft&&!At)&&sn.push({from:mt.from,to:$e.from}),(Bn>0||!Ge.inclusiveRight&&!Bn)&&sn.push({from:$e.to,to:mt.to}),me.splice.apply(me,sn),Je+=sn.length-3}}return me}function Ht(ie){var ae=ie.markedSpans;if(ae){for(var fe=0;fe<ae.length;++fe)ae[fe].marker.detachLine(ie);ie.markedSpans=null}}function Ze(ie,ae){if(ae){for(var fe=0;fe<ae.length;++fe)ae[fe].marker.attachLine(ie);ie.markedSpans=ae}}function Xn(ie){return ie.inclusiveLeft?-1:0}function Fi(ie){return ie.inclusiveRight?1:0}function Qi(ie,ae){var fe=ie.lines.length-ae.lines.length;if(fe!=0)return fe;var ce=ie.find(),me=ae.find(),Me=qn(ce.from,me.from)||Xn(ie)-Xn(ae);if(Me)return-Me;var Ge=qn(ce.to,me.to)||Fi(ie)-Fi(ae);return Ge||ae.id-ie.id}function Qe(ie,ae){var fe=An&&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||Qi(ce,me.marker)<0)&&(ce=me.marker);return ce}function Ut(ie){return Qe(ie,!0)}function Ft(ie){return Qe(ie,!1)}function ln(ie,ae){var fe=An&&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||Qi(ce,Me.marker)<0)&&(ce=Me.marker)}return ce}function _n(ie,ae,fe,ce,me){var Me=Ti(ie,ae),Ge=An&&Me.markedSpans;if(Ge)for(var $e=0;$e<Ge.length;++$e){var Je=Ge[$e];if(Je.marker.collapsed){var mt=Je.marker.find(0),sn=qn(mt.from,fe)||Xn(Je.marker)-Xn(me),At=qn(mt.to,ce)||Fi(Je.marker)-Fi(me);if(!(sn>=0&&At<=0||sn<=0&&At>=0)&&(sn<=0&&(Je.marker.inclusiveRight&&me.inclusiveLeft?qn(mt.to,fe)>=0:qn(mt.to,fe)>0)||sn>=0&&(Je.marker.inclusiveRight&&me.inclusiveLeft?qn(mt.from,ce)<=0:qn(mt.from,ce)<0)))return!0}}}function yn(ie){for(var ae;ae=Ut(ie);)ie=ae.find(-1,!0).line;return ie}function cn(ie){for(var ae;ae=Ft(ie);)ie=ae.find(1,!0).line;return ie}function En(ie){for(var ae,fe;ae=Ft(ie);)ie=ae.find(1,!0).line,(fe||(fe=[])).push(ie);return fe}function be(ie,ae){var fe=Ti(ie,ae),ce=yn(fe);return fe==ce?ae:ut(ce)}function dt(ie,ae){if(ae>ie.lastLine())return ae;var fe=Ti(ie,ae),ce;if(!Xe(ie,fe))return ae;for(;ce=Ft(fe);)fe=ce.find(1,!0).line;return ut(fe)+1}function Xe(ie,ae){var fe=An&&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,_r(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 Et(ie){ie=yn(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 $e=Me.children[Ge];if($e==fe)break;ae+=$e.height}return ae}function Jt(ie){if(ie.height==0)return 0;for(var ae=ie.text.length,fe,ce=ie;fe=Ut(ce);){var me=fe.find(0,!0);ce=me.from.line,ae+=me.from.ch-me.to.ch}for(ce=ie;fe=Ft(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 $t(ie){var ae=ie.display,fe=ie.doc;ae.maxLine=Ti(fe,fe.first),ae.maxLineLength=Jt(ae.maxLine),ae.maxLineChanged=!0,fe.iter(function(ce){var me=Jt(ce);me>ae.maxLineLength&&(ae.maxLineLength=me,ae.maxLine=ce)})}var dn=function(ie,ae,fe){this.text=ie,Ze(this,ae),this.height=fe?fe(this):1};dn.prototype.lineNo=function(){return ut(this)},Ui(dn);function Tn(ie,ae,fe,ce){ie.text=ae,ie.stateAfter&&(ie.stateAfter=null),ie.styles&&(ie.styles=null),ie.order!=null&&(ie.order=null),Ht(ie),Ze(ie,fe);var me=ce?ce(ie):1;me!=ie.height&&ci(ie,me)}function zn(ie){ie.parent=null,Ht(ie)}var fn={},ei={};function vi(ie,ae){if(!ie||/^\s*$/.test(ie))return null;var fe=ae.addModeClass?ei:fn;return fe[ie]||(fe[ie]=ie.replace(/\S+/g,"cm-$&"))}function pt(ie,ae){var fe=nt("span",null,null,Ue?"padding-right: .1px":null),ce={pre:nt("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=Hn,Er(ie.display.measure)&&(Ge=pn(Me,ie.doc.direction))&&(ce.addToken=Mn(ce.addToken,Ge)),ce.map=[];var $e=ae!=ie.display.externalMeasured&&ut(Me);Si(Me,ce,jr(ie,Me,$e)),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(xo(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 Je=ce.content.lastChild;(/\bcm-tab\b/.test(Je.className)||Je.querySelector&&Je.querySelector(".cm-tab"))&&(ce.content.className="cm-tab-wrap-hack")}return Jn(ie,"renderLine",ie,ae.line,ce.pre),ce.pre.className&&(ce.textClass=Lt(ce.pre.className,ce.textClass||"")),ce}function Kn(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 Hn(ie,ae,fe,ce,me,Me,Ge){if(ae){var $e=ie.splitSpaces?jn(ae,ie.trailingSpace):ae,Je=ie.cm.state.specialChars,mt=!1,sn;if(!Je.test(ae))ie.col+=ae.length,sn=document.createTextNode($e),ie.map.push(ie.pos,ie.pos+ae.length,sn),rt&&ze<9&&(mt=!0),ie.pos+=ae.length;else{sn=document.createDocumentFragment();for(var At=0;;){Je.lastIndex=At;var Bn=Je.exec(ae),xn=Bn?Bn.index-At:ae.length-At;if(xn){var Ii=document.createTextNode($e.slice(At,At+xn));rt&&ze<9?sn.appendChild(Re("span",[Ii])):sn.appendChild(Ii),ie.map.push(ie.pos,ie.pos+xn,Ii),ie.col+=xn,ie.pos+=xn}if(!Bn)break;At+=xn+1;var Hi=void 0;if(Bn[0]==" "){var Ji=ie.cm.options.tabSize,Cr=Ji-ie.col%Ji;Hi=sn.appendChild(Re("span",vt(Cr),"cm-tab")),Hi.setAttribute("role","presentation"),Hi.setAttribute("cm-text"," "),ie.col+=Cr}else Bn[0]=="\r"||Bn[0]==`
`?(Hi=sn.appendChild(Re("span",Bn[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Hi.setAttribute("cm-text",Bn[0]),ie.col+=1):(Hi=ie.cm.options.specialCharPlaceholder(Bn[0]),Hi.setAttribute("cm-text",Bn[0]),rt&&ze<9?sn.appendChild(Re("span",[Hi])):sn.appendChild(Hi),ie.col+=1);ie.map.push(ie.pos,ie.pos+1,Hi),ie.pos++}}if(ie.trailingSpace=$e.charCodeAt(ae.length-1)==32,fe||ce||me||mt||Me||Ge){var Gr=fe||"";ce&&(Gr+=ce),me&&(Gr+=me);var Nr=Re("span",[sn],Gr,Me);if(Ge)for(var Jr in Ge)Ge.hasOwnProperty(Jr)&&Jr!="style"&&Jr!="class"&&Nr.setAttribute(Jr,Ge[Jr]);return ie.content.appendChild(Nr)}ie.content.appendChild(sn)}}function jn(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 Mn(ie,ae){return function(fe,ce,me,Me,Ge,$e,Je){me=me?me+" cm-force-border":"cm-force-border";for(var mt=fe.pos,sn=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>=sn)return ie(fe,ce,me,Me,Ge,$e,Je);ie(fe,ce.slice(0,At.to-mt),me,Me,null,$e,Je),Me=null,ce=ce.slice(At.to-mt),mt=At.to}}}function fi(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 Si(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]),vi(fe[Ge+1],ae.cm.options));return}for(var $e=me.length,Je=0,mt=1,sn="",At,Bn,xn=0,Ii,Hi,Ji,Cr,Gr;;){if(xn==Je){Ii=Hi=Ji=Bn="",Gr=null,Cr=null,xn=1/0;for(var Nr=[],Jr=void 0,Mo=0;Mo<ce.length;++Mo){var br=ce[Mo],Qo=br.marker;if(Qo.type=="bookmark"&&br.from==Je&&Qo.widgetNode)Nr.push(Qo);else if(br.from<=Je&&(br.to==null||br.to>Je||Qo.collapsed&&br.to==Je&&br.from==Je)){if(br.to!=null&&br.to!=Je&&xn>br.to&&(xn=br.to,Hi=""),Qo.className&&(Ii+=" "+Qo.className),Qo.css&&(Bn=(Bn?Bn+";":"")+Qo.css),Qo.startStyle&&br.from==Je&&(Ji+=" "+Qo.startStyle),Qo.endStyle&&br.to==xn&&(Jr||(Jr=[])).push(Qo.endStyle,br.to),Qo.title&&((Gr||(Gr={})).title=Qo.title),Qo.attributes)for(var Oa in Qo.attributes)(Gr||(Gr={}))[Oa]=Qo.attributes[Oa];Qo.collapsed&&(!Cr||Qi(Cr.marker,Qo)<0)&&(Cr=br)}else br.from>Je&&xn>br.from&&(xn=br.from)}if(Jr)for(var ms=0;ms<Jr.length;ms+=2)Jr[ms+1]==xn&&(Hi+=" "+Jr[ms]);if(!Cr||Cr.from==Je)for(var Ka=0;Ka<Nr.length;++Ka)fi(ae,0,Nr[Ka]);if(Cr&&(Cr.from||0)==Je){if(fi(ae,(Cr.to==null?$e+1:Cr.to)-Je,Cr.marker,Cr.from==null),Cr.to==null)return;Cr.to==Je&&(Cr=!1)}}if(Je>=$e)break;for(var sl=Math.min($e,xn);;){if(sn){var Vs=Je+sn.length;if(!Cr){var cs=Vs>sl?sn.slice(0,sl-Je):sn;ae.addToken(ae,cs,At?At+Ii:Ii,Ji,Je+cs.length==xn?Hi:"",Bn,Gr)}if(Vs>=sl){sn=sn.slice(sl-Je),Je=sl;break}Je=Vs,Ji=""}sn=me.slice(Me,Me=fe[mt++]),At=vi(fe[mt++],ae.cm.options)}}}function kn(ie,ae,fe){this.line=ae,this.rest=En(ae),this.size=this.rest?ut(hn(this.rest))-fe+1:1,this.node=this.text=null,this.hidden=Xe(ie,ae)}function xi(ie,ae,fe){for(var ce=[],me,Me=ae;Me<fe;Me=me){var Ge=new kn(ie.doc,Ti(ie.doc,Me),Me);me=Me+Ge.size,ce.push(Ge)}return ce}var Ei=null;function Ai(ie){Ei?Ei.ops.push(ie):ie.ownsGroup=Ei={ops:[ie],delayedCallbacks:[]}}function dr(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 Ar(ie,ae){var fe=ie.ownsGroup;if(fe)try{dr(fe)}finally{Ei=null,ae(fe)}}var ur=null;function ii(ie,ae){var fe=Ln(ie,ae);if(fe.length){var ce=Array.prototype.slice.call(arguments,2),me;Ei?me=Ei.delayedCallbacks:ur?me=ur:(me=ur=[],setTimeout(gr,0));for(var Me=function($e){me.push(function(){return fe[$e].apply(null,ce)})},Ge=0;Ge<fe.length;++Ge)Me(Ge)}}function gr(){var ie=ur;ur=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"?bn(ie,ae):Me=="gutter"?zi(ie,ae,fe,ce):Me=="class"?Li(ie,ae):Me=="widget"&&_i(ie,ae,ce)}ae.changes=null}function hr(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),rt&&ze<8&&(ie.node.style.zIndex=2)),ie.node}function $i(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=hr(ae);ae.background=ce.insertBefore(Re("div",null,fe),ce.firstChild),ie.display.input.setUneditable(ae.background)}}function wr(ie,ae){var fe=ie.display.externalMeasured;return fe&&fe.line==ae.line?(ie.display.externalMeasured=null,ae.measure=fe.measure,fe.built):pt(ie,ae)}function bn(ie,ae){var fe=ae.text.className,ce=wr(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,Li(ie,ae)):fe&&(ae.text.className=fe)}function Li(ie,ae){$i(ie,ae),ae.line.wrapClass?hr(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 zi(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=hr(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=hr(ae),$e=ae.gutter=Re("div",null,"CodeMirror-gutter-wrapper","left: "+(ie.options.fixedGutter?ce.fixedPos:-ce.gutterTotalWidth)+"px");if(ie.display.input.setUneditable($e),Ge.insertBefore($e,ae.text),ae.line.gutterClass&&($e.className+=" "+ae.line.gutterClass),ie.options.lineNumbers&&(!Me||!Me["CodeMirror-linenumbers"])&&(ae.lineNumber=$e.appendChild(Re("div",In(ie.options,fe),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+ce.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+ie.display.lineNumInnerWidth+"px"))),Me)for(var Je=0;Je<ie.display.gutterSpecs.length;++Je){var mt=ie.display.gutterSpecs[Je].className,sn=Me.hasOwnProperty(mt)&&Me[mt];sn&&$e.appendChild(Re("div",[sn],"CodeMirror-gutter-elt","left: "+ce.gutterLeft[mt]+"px; width: "+ce.gutterWidth[mt]+"px"))}}}function _i(ie,ae,fe){ae.alignable&&(ae.alignable=null);for(var ce=je("CodeMirror-linewidget"),me=ae.node.firstChild,Me=void 0;me;me=Me)Me=me.nextSibling,ce.test(me.className)&&ae.node.removeChild(me);Vi(ie,ae,fe)}function Gi(ie,ae,fe,ce){var me=wr(ie,ae);return ae.text=ae.node=me.pre,me.bgClass&&(ae.bgClass=me.bgClass),me.textClass&&(ae.textClass=me.textClass),Li(ie,ae),zi(ie,ae,fe,ce),Vi(ie,ae,ce),ae.node}function Vi(ie,ae,fe){if(di(ie,ae.line,ae,fe,!0),ae.rest)for(var ce=0;ce<ae.rest.length;ce++)di(ie,ae.rest[ce],ae,fe,!1)}function di(ie,ae,fe,ce,me){if(ae.widgets)for(var Me=hr(fe),Ge=0,$e=ae.widgets;Ge<$e.length;++Ge){var Je=$e[Ge],mt=Re("div",[Je.node],"CodeMirror-linewidget"+(Je.className?" "+Je.className:""));Je.handleMouseEvents||mt.setAttribute("cm-ignore-events","true"),ki(Je,mt,fe,ce),ie.display.input.setUneditable(mt),me&&Je.above?Me.insertBefore(mt,fe.gutter||fe.text):Me.appendChild(mt),ii(Je,"redraw")}}function ki(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 cr(ie){if(ie.height!=null)return ie.height;var ae=ie.doc.cm;if(!ae)return 0;if(!wt(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 Qn(ie,ae){for(var fe=co(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 ni(ie){return ie.lineSpace.offsetTop}function Ki(ie){return ie.mover.offsetHeight-ie.lineSpace.offsetHeight}function or(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 Mr(ie){return Zt-ie.display.nativeBarWidth}function fo(ie){return ie.display.scroller.clientWidth-Mr(ie)-ie.display.barWidth}function po(ie){return ie.display.scroller.clientHeight-Mr(ie)-ie.display.barHeight}function No(ie,ae,fe){var ce=ie.options.lineWrapping,me=ce&&fo(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(),$e=0;$e<Ge.length-1;$e++){var Je=Ge[$e],mt=Ge[$e+1];Math.abs(Je.bottom-mt.bottom)>2&&Me.push((Je.bottom+mt.top)/2-fe.top)}}Me.push(fe.bottom-fe.top)}}function qr(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(ut(ie.rest[me])>fe)return{map:ie.measure.maps[me],cache:ie.measure.caches[me],before:!0}}function ta(ie,ae){ae=yn(ae);var fe=ut(ae),ce=ie.display.externalMeasured=new kn(ie.doc,ae,fe);ce.lineN=fe;var me=ce.built=pt(ie,ce);return ce.text=me.pre,Oe(ie.display.lineMeasure,me.pre),ce}function Ao(ie,ae,fe,ce){return Lo(ie,Rr(ie,ae),fe,ce)}function ar(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 Rr(ie,ae){var fe=ut(ae),ce=ar(ie,fe);ce&&!ce.text?ce=null:ce&&ce.changes&&(nr(ie,ce,fe,Na(ie)),ie.curOp.forceUpdate=!0),ce||(ce=ta(ie,ae));var me=qr(ce,ae,fe);return{line:ae,view:ce,rect:null,map:me.map,cache:me.cache,before:me.before,hasHeights:!1}}function Lo(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=Co(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 Zo={left:0,right:0,top:0,bottom:0};function Ko(ie,ae,fe){for(var ce,me,Me,Ge,$e,Je,mt=0;mt<ie.length;mt+=3)if($e=ie[mt],Je=ie[mt+1],ae<$e?(me=0,Me=1,Ge="left"):ae<Je?(me=ae-$e,Me=me+1):(mt==ie.length-3||ae==Je&&ie[mt+3]>ae)&&(Me=Je-$e,me=Me-1,ae>=Je&&(Ge="right")),me!=null){if(ce=ie[mt+2],$e==Je&&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==Je-$e)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:$e,coverEnd:Je}}function Io(ie,ae){var fe=Zo;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 Co(ie,ae,fe,ce){var me=Ko(ae.map,fe,ce),Me=me.node,Ge=me.start,$e=me.end,Je=me.collapse,mt;if(Me.nodeType==3){for(var sn=0;sn<4;sn++){for(;Ge&&_t(ae.line.text.charAt(me.coverStart+Ge));)--Ge;for(;me.coverStart+$e<me.coverEnd&&_t(ae.line.text.charAt(me.coverStart+$e));)++$e;if(rt&&ze<9&&Ge==0&&$e==me.coverEnd-me.coverStart?mt=Me.parentNode.getBoundingClientRect():mt=Io(ot(Me,Ge,$e).getClientRects(),ce),mt.left||mt.right||Ge==0)break;$e=Ge,Ge=Ge-1,Je="right"}rt&&ze<11&&(mt=ia(ie.display.measure,mt))}else{Ge>0&&(Je=ce="right");var At;ie.options.lineWrapping&&(At=Me.getClientRects()).length>1?mt=At[ce=="right"?At.length-1:0]:mt=Me.getBoundingClientRect()}if(rt&&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=Zo}for(var xn=mt.top-ae.rect.top,Ii=mt.bottom-ae.rect.top,Hi=(xn+Ii)/2,Ji=ae.view.measure.heights,Cr=0;Cr<Ji.length-1&&!(Hi<Ji[Cr]);Cr++);var Gr=Cr?Ji[Cr-1]:0,Nr=Ji[Cr],Jr={left:(Je=="right"?mt.right:mt.left)-ae.rect.left,right:(Je=="left"?mt.left:mt.right)-ae.rect.left,top:Gr,bottom:Nr};return!mt.left&&!mt.right&&(Jr.bogus=!0),ie.options.singleCursorHeightPerLine||(Jr.rtop=xn,Jr.rbottom=Ii),Jr}function ia(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 ma(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 To(ie){ie.display.externalMeasure=null,Ie(ie.display.lineMeasure);for(var ae=0;ae<ie.display.view.length;ae++)ma(ie.display.view[ae])}function Da(ie){To(ie),ie.display.cachedCharWidth=ie.display.cachedTextHeight=ie.display.cachedPaddingH=null,ie.options.lineWrapping||(ie.display.maxLineChanged=!0),ie.display.lineNumChars=null}function Ur(){return tt&&ne?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function ao(){return tt&&ne?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function ho(ie){var ae=0;if(ie.widgets)for(var fe=0;fe<ie.widgets.length;++fe)ie.widgets[fe].above&&(ae+=cr(ie.widgets[fe]));return ae}function bo(ie,ae,fe,ce,me){if(!me){var Me=ho(ae);fe.top+=Me,fe.bottom+=Me}if(ce=="line")return fe;ce||(ce="local");var Ge=Et(ae);if(ce=="local"?Ge+=ni(ie.display):Ge-=ie.display.viewOffset,ce=="page"||ce=="window"){var $e=ie.display.lineSpace.getBoundingClientRect();Ge+=$e.top+(ce=="window"?0:ao());var Je=$e.left+(ce=="window"?0:Ur());fe.left+=Je,fe.right+=Je}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-=Ur(),me-=ao();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 Ea(ie,ae,fe,ce,me){return ce||(ce=Ti(ie.doc,ae.line)),bo(ie,ce,Ao(ie,ce,ae.ch,me),fe)}function Sr(ie,ae,fe,ce,me,Me){ce=ce||Ti(ie.doc,ae.line),me||(me=Rr(ie,ce));function Ge(Ii,Hi){var Ji=Lo(ie,me,Ii,Hi?"right":"left",Me);return Hi?Ji.left=Ji.right:Ji.right=Ji.left,bo(ie,ce,Ji,fe)}var $e=pn(ce,ie.doc.direction),Je=ae.ch,mt=ae.sticky;if(Je>=ce.text.length?(Je=ce.text.length,mt="before"):Je<=0&&(Je=0,mt="after"),!$e)return Ge(mt=="before"?Je-1:Je,mt=="before");function sn(Ii,Hi,Ji){var Cr=$e[Hi],Gr=Cr.level==1;return Ge(Ji?Ii-1:Ii,Gr!=Ji)}var At=Wt($e,Je,mt),Bn=bt,xn=sn(Je,At,mt=="before");return Bn!=null&&(xn.other=sn(Je,Bn,mt!="before")),xn}function er(ie,ae){var fe=0;ae=Wi(ie.doc,ae),ie.options.lineWrapping||(fe=Ga(ie.display)*ae.ch);var ce=Ti(ie.doc,ae.line),me=Et(ce)+ni(ie.display);return{left:fe,right:fe,top:me,bottom:me+ce.height}}function Br(ie,ae,fe,ce,me){var Me=Qt(ie,ae,fe);return Me.xRel=me,ce&&(Me.outside=ce),Me}function mr(ie,ae,fe){var ce=ie.doc;if(fe+=ie.display.viewOffset,fe<0)return Br(ce.first,0,null,-1,-1);var me=Nt(ce,fe),Me=ce.first+ce.size-1;if(me>Me)return Br(ce.first+ce.size-1,Ti(ce,Me).text.length,null,1,1);ae<0&&(ae=0);for(var Ge=Ti(ce,me);;){var $e=wn(ie,Ge,me,ae,fe),Je=ln(Ge,$e.ch+($e.xRel>0||$e.outside>0?1:0));if(!Je)return $e;var mt=Je.find(1);if(mt.line==me)return mt;Ge=Ti(ce,me=mt.line)}}function hi(ie,ae,fe,ce){ce-=ho(ae);var me=ae.text.length,Me=rn(function(Ge){return Lo(ie,fe,Ge-1).bottom<=ce},me,0);return me=rn(function(Ge){return Lo(ie,fe,Ge).top>ce},Me,me),{begin:Me,end:me}}function Yo(ie,ae,fe,ce){fe||(fe=Rr(ie,ae));var me=bo(ie,ae,Lo(ie,fe,ce),"line").top;return hi(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 wn(ie,ae,fe,ce,me){me-=Et(ae);var Me=Rr(ie,ae),Ge=ho(ae),$e=0,Je=ae.text.length,mt=!0,sn=pn(ae,ie.doc.direction);if(sn){var At=(ie.options.lineWrapping?za:ja)(ie,ae,fe,Me,sn,ce,me);mt=At.level!=1,$e=mt?At.from:At.to-1,Je=mt?At.to:At.from-1}var Bn=null,xn=null,Ii=rn(function(Mo){var br=Lo(ie,Me,Mo);return br.top+=Ge,br.bottom+=Ge,St(br,ce,me,!1)?(br.top<=me&&br.left<=ce&&(Bn=Mo,xn=br),!0):!1},$e,Je),Hi,Ji,Cr=!1;if(xn){var Gr=ce-xn.left<xn.right-ce,Nr=Gr==mt;Ii=Bn+(Nr?0:1),Ji=Nr?"after":"before",Hi=Gr?xn.left:xn.right}else{!mt&&(Ii==Je||Ii==$e)&&Ii++,Ji=Ii==0?"after":Ii==ae.text.length?"before":Lo(ie,Me,Ii-(mt?1:0)).bottom+Ge<=me==mt?"after":"before";var Jr=Sr(ie,Qt(fe,Ii,Ji),"line",ae,Me);Hi=Jr.left,Cr=me<Jr.top?-1:me>=Jr.bottom?1:0}return Ii=Bt(ae.text,Ii,1),Br(fe,Ii,Ji,Cr,ce-Hi)}function ja(ie,ae,fe,ce,me,Me,Ge){var $e=rn(function(At){var Bn=me[At],xn=Bn.level!=1;return St(Sr(ie,Qt(fe,xn?Bn.to:Bn.from,xn?"before":"after"),"line",ae,ce),Me,Ge,!0)},0,me.length-1),Je=me[$e];if($e>0){var mt=Je.level!=1,sn=Sr(ie,Qt(fe,mt?Je.from:Je.to,mt?"after":"before"),"line",ae,ce);St(sn,Me,Ge,!0)&&sn.top>Ge&&(Je=me[$e-1])}return Je}function za(ie,ae,fe,ce,me,Me,Ge){var $e=hi(ie,ae,ce,Ge),Je=$e.begin,mt=$e.end;/\s/.test(ae.text.charAt(mt-1))&&mt--;for(var sn=null,At=null,Bn=0;Bn<me.length;Bn++){var xn=me[Bn];if(!(xn.from>=mt||xn.to<=Je)){var Ii=xn.level!=1,Hi=Lo(ie,ce,Ii?Math.min(mt,xn.to)-1:Math.max(Je,xn.from)).right,Ji=Hi<Me?Me-Hi+1e9:Hi-Me;(!sn||At>Ji)&&(sn=xn,At=Ji)}}return sn||(sn=me[me.length-1]),sn.from<Je&&(sn={from:Je,to:sn.to,level:sn.level}),sn.to>mt&&(sn={from:sn.from,to:mt,level:sn.level}),sn}var da;function ca(ie){if(ie.cachedTextHeight!=null)return ie.cachedTextHeight;if(da==null){da=Re("pre",null,"CodeMirror-line-like");for(var ae=0;ae<49;++ae)da.appendChild(document.createTextNode("x")),da.appendChild(Re("br"));da.appendChild(document.createTextNode("x"))}Oe(ie.measure,da);var fe=da.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 $e=ie.display.gutterSpecs[Ge].className;fe[$e]=Me.offsetLeft+Me.clientLeft+me,ce[$e]=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 aa(ie){var ae=ca(ie.display),fe=ie.options.lineWrapping,ce=fe&&Math.max(5,ie.display.scroller.clientWidth/Ga(ie.display)-3);return function(me){if(Xe(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=aa(ie);ae.iter(function(ce){var me=fe(ce);me!=ce.height&&ci(ce,me)})}function Va(ie,ae,fe,ce){var me=ie.display;if(!fe&&co(ae).getAttribute("cm-not-content")=="true")return null;var Me,Ge,$e=me.lineSpace.getBoundingClientRect();try{Me=ae.clientX-$e.left,Ge=ae.clientY-$e.top}catch(At){return null}var Je=mr(ie,Me,Ge),mt;if(ce&&Je.xRel>0&&(mt=Ti(ie.doc,Je.line).text).length==Je.ch){var sn=at(mt,mt.length,ie.options.tabSize)-mt.length;Je=Qt(Je.line,Math.max(0,Math.round((Me-or(ie.display).left)/Ga(ie.display))-sn))}return Je}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 sa(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)An&&be(ie.doc,ae)<me.viewTo&&ga(ie);else if(fe<=me.viewFrom)An&&dt(ie.doc,fe+ce)>me.viewFrom?ga(ie):(me.viewFrom+=ce,me.viewTo+=ce);else if(ae<=me.viewFrom&&fe>=me.viewTo)ga(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):ga(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):ga(ie)}else{var $e=ls(ie,ae,ae,-1),Je=ls(ie,fe,fe+ce,1);$e&&Je?(me.view=me.view.slice(0,$e.index).concat(xi(ie,$e.lineN,Je.lineN)).concat(me.view.slice(Je.index)),me.viewTo+=ce):ga(ie)}var mt=me.externalMeasured;mt&&(fe<mt.lineN?mt.lineN+=ce:ae<mt.lineN+mt.size&&(me.externalMeasured=null))}function vo(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 ga(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(!An||fe==ie.doc.first+ie.doc.size)return{index:me,lineN:fe};for(var $e=ie.display.viewFrom,Je=0;Je<me;Je++)$e+=Ge[Je].size;if($e!=ae){if(ce>0){if(me==Ge.length-1)return null;Me=$e+Ge[me].size-ae,me++}else Me=$e-ae;ae+=Me,fe+=Me}for(;be(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 oa(ie,ae,fe){var ce=ie.display,me=ce.view;me.length==0||ae>=ce.viewTo||fe<=ce.viewFrom?(ce.view=xi(ie,ae,fe),ce.viewFrom=ae):(ce.viewFrom>ae?ce.view=xi(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(xi(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 $e=fe.sel.ranges[Ge];if(!($e.from().line>=ie.display.viewTo||$e.to().line<ie.display.viewFrom)){var Je=$e.empty();(Je||ie.options.showCursorWhenSelecting)&&Go(ie,$e.head,me),Je||Ro(ie,$e,Me)}}return ce}function Go(ie,ae,fe){var ce=Sr(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 Aa(ie,ae){return ie.top-ae.top||ie.left-ae.left}function Ro(ie,ae,fe){var ce=ie.display,me=ie.doc,Me=document.createDocumentFragment(),Ge=or(ie.display),$e=Ge.left,Je=Math.max(ce.sizerWidth,fo(ie)-ce.sizer.offsetLeft)-Ge.right,mt=me.direction=="ltr";function sn(Nr,Jr,Mo,br){Jr<0&&(Jr=0),Jr=Math.round(Jr),br=Math.round(br),Me.appendChild(Re("div",null,"CodeMirror-selected","position: absolute; left: "+Nr+`px;
top: `+Jr+"px; width: "+(Mo==null?Je-Nr:Mo)+`px;
height: `+(br-Jr)+"px"))}function At(Nr,Jr,Mo){var br=Ti(me,Nr),Qo=br.text.length,Oa,ms;function Ka(cs,xl){return Ea(ie,Qt(Nr,cs),"div",br,xl)}function sl(cs,xl,Ts){var fs=Yo(ie,br,null,cs),ha=xl=="ltr"==(Ts=="after")?"left":"right",Qa=Ts=="after"?fs.begin:fs.end-(/\s/.test(br.text.charAt(fs.end-1))?2:1);return Ka(Qa,ha)[ha]}var Vs=pn(br,me.direction);return Ot(Vs,Jr||0,Mo==null?Qo:Mo,function(cs,xl,Ts,fs){var ha=Ts=="ltr",Qa=Ka(cs,ha?"left":"right"),ws=Ka(xl-1,ha?"right":"left"),Os=Jr==null&&cs==0,ou=Mo==null&&xl==Qo,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?$e:(ha?Qa:ws).left,Pl=Bc?Je:(ha?ws:Qa).right;sn(Ol,Qa.top,Pl-Ol,Qa.bottom)}else{var ll,Ma,Cs,Ou;ha?(ll=mt&&Os&&Ua?$e:Qa.left,Ma=mt?Je:sl(cs,Ts,"before"),Cs=mt?$e:sl(xl,Ts,"after"),Ou=mt&&ou&&Ul?Je:ws.right):(ll=mt?sl(cs,Ts,"before"):$e,Ma=!mt&&Os&&Ua?Je:Qa.right,Cs=!mt&&ou&&Ul?$e:ws.left,Ou=mt?sl(xl,Ts,"after"):Je),sn(ll,Qa.top,Ma-ll,Qa.bottom),Qa.bottom<ws.top&&sn($e,Qa.bottom,null,ws.top),sn(Cs,ws.top,Ou-Cs,ws.bottom)}(!Oa||Aa(Qa,Oa)<0)&&(Oa=Qa),Aa(ws,Oa)<0&&(Oa=ws),(!ms||Aa(Qa,ms)<0)&&(ms=Qa),Aa(ws,ms)<0&&(ms=ws)}),{start:Oa,end:ms}}var Bn=ae.from(),xn=ae.to();if(Bn.line==xn.line)At(Bn.line,Bn.ch,xn.ch);else{var Ii=Ti(me,Bn.line),Hi=Ti(me,xn.line),Ji=yn(Ii)==yn(Hi),Cr=At(Bn.line,Bn.ch,Ji?Ii.text.length+1:null).end,Gr=At(xn.line,Ji?0:null,xn.ch).start;Ji&&(Cr.top<Gr.top-2?(sn(Cr.right,Cr.top,null,Cr.bottom),sn($e,Gr.top,Gr.left,Gr.bottom)):sn(Cr.right,Cr.top,Gr.left-Cr.right,Cr.bottom)),Cr.bottom<Gr.top&&sn($e,Cr.bottom,null,Gr.top)}fe.appendChild(Me)}function qo(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 ua(ie){ie.state.focused||(ie.display.input.focus(),Jo(ie))}function pa(ie){ie.state.delayingBlurEvent=!0,setTimeout(function(){ie.state.delayingBlurEvent&&(ie.state.delayingBlurEvent=!1,fl(ie))},100)}function Jo(ie,ae){ie.state.delayingBlurEvent&&(ie.state.delayingBlurEvent=!1),ie.options.readOnly!="nocursor"&&(ie.state.focused||(Jn(ie,"focus",ie,ae),ie.state.focused=!0,Dt(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()),qo(ie))}function fl(ie,ae){ie.state.delayingBlurEvent||(ie.state.focused&&(Jn(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 Yr(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,$e=0;if(!me.hidden){if(rt&&ze<8){var Je=me.node.offsetTop+me.node.offsetHeight;Ge=Je-fe,fe=Je}else{var mt=me.node.getBoundingClientRect();Ge=mt.bottom-mt.top,!Me&&me.text.firstChild&&($e=me.text.firstChild.getBoundingClientRect().right-mt.left-1)}var sn=me.line.height-Ge;if((sn>.005||sn<-.005)&&(ci(me.line,Ge),pu(me.line),me.rest))for(var At=0;At<me.rest.length;At++)pu(me.rest[At]);if($e>ie.display.sizerWidth){var Bn=Math.ceil($e/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 Eo(ie,ae,fe){var ce=fe&&fe.top!=null?Math.max(0,fe.top):ie.scroller.scrollTop;ce=Math.floor(ce-ni(ie));var me=fe&&fe.bottom!=null?fe.bottom:ce+ie.wrapper.clientHeight,Me=Nt(ae,ce),Ge=Nt(ae,me);if(fe&&fe.ensure){var $e=fe.ensure.from.line,Je=fe.ensure.to.line;$e<Me?(Me=$e,Ge=Nt(ae,Et(Ti(ae,$e))+ie.wrapper.clientHeight)):Math.min(Je,ae.lastLine())>=Ge&&(Me=Nt(ae,Et(Ti(ae,Je))-ie.wrapper.clientHeight),Ge=Je)}return{from:Me,to:Math.max(Ge,Me+1)}}function Gl(ie,ae){if(!Di(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&&!ct){var Me=Re("div","\u200B",null,`position: absolute;
top: `+(ae.top-fe.viewOffset-ni(ie.display))+`px;
height: `+(ae.bottom-ae.top+Mr(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?Qt(ae.line,ae.sticky=="before"?ae.ch-1:ae.ch,"after"):ae,fe=ae.sticky=="before"?Qt(ae.line,ae.ch+1,"before"):ae);for(var Me=0;Me<5;Me++){var Ge=!1,$e=Sr(ie,ae),Je=!fe||fe==ae?$e:Sr(ie,fe);me={left:Math.min($e.left,Je.left),top:Math.min($e.top,Je.top)-ce,right:Math.max($e.left,Je.left),bottom:Math.max($e.bottom,Je.bottom)+ce};var mt=mu(ie,me),sn=ie.doc.scrollTop,At=ie.doc.scrollLeft;if(mt.scrollTop!=null&&(gl(ie,mt.scrollTop),Math.abs(ie.doc.scrollTop-sn)>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=ca(ie.display);ae.top<0&&(ae.top=0);var me=ie.curOp&&ie.curOp.scrollTop!=null?ie.curOp.scrollTop:fe.scroller.scrollTop,Me=po(ie),Ge={};ae.bottom-ae.top>Me&&(ae.bottom=ae.top+Me);var $e=ie.doc.height+Ki(fe),Je=ae.top<ce,mt=ae.bottom>$e-ce;if(ae.top<me)Ge.scrollTop=Je?0:ae.top;else if(ae.bottom>me+Me){var sn=Math.min(ae.top,(mt?$e:ae.bottom)-Me);sn!=me&&(Ge.scrollTop=sn)}var At=ie.options.fixedGutter?0:fe.gutters.offsetWidth,Bn=ie.curOp&&ie.curOp.scrollLeft!=null?ie.curOp.scrollLeft:fe.scroller.scrollLeft-At,xn=fo(ie)-fe.gutters.offsetWidth,Ii=ae.right-ae.left>xn;return Ii&&(ae.right=ae.left+xn),ae.left<10?Ge.scrollLeft=0:ae.left<Bn?Ge.scrollLeft=Math.max(0,ae.left+At-(Ii?0:10)):ae.right>xn+Bn-3&&(Ge.scrollLeft=ae.right+(Ii?0:10)-xn),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 Uo(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 ko(ie){var ae=ie.display,fe=ae.gutters.offsetWidth,ce=Math.round(ie.doc.height+Ki(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+Mr(ie)+ae.barHeight,nativeBarWidth:ae.nativeBarWidth,gutterWidth:fe}}var _o=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),Cn(ce,"scroll",function(){ce.clientHeight&&ae(ce.scrollTop,"vertical")}),Cn(me,"scroll",function(){me.clientWidth&&ae(me.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,rt&&ze<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};_o.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}},_o.prototype.setScrollLeft=function(ie){this.horiz.scrollLeft!=ie&&(this.horiz.scrollLeft=ie),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},_o.prototype.setScrollTop=function(ie){this.vert.scrollTop!=ie&&(this.vert.scrollTop=ie),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},_o.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},_o.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)},_o.prototype.clear=function(){var ie=this.horiz.parentNode;ie.removeChild(this.horiz),ie.removeChild(this.vert)};var Ca=function(){};Ca.prototype.update=function(){return{bottom:0,right:0}},Ca.prototype.setScrollLeft=function(){},Ca.prototype.setScrollTop=function(){},Ca.prototype.clear=function(){};function es(ie,ae){ae||(ae=ko(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&&Yr(ie),Xa(ie,ko(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:_o,null:Ca};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),Cn(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&&Dt(ie.display.wrapper,ie.display.scrollbars.addClass)}var jo=0;function yo(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:++jo},Ai(ie.curOp)}function Ya(ie){var ae=ie.curOp;ae&&Ar(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&&$t(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 _h(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&&Yr(ae),ie.barMeasure=ko(ae),fe.maxLineChanged&&!ae.options.lineWrapping&&(ie.adjustWidthTo=Ao(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+Mr(ae)+ae.display.barWidth),ie.maxScrollLeft=Math.max(0,fe.sizer.offsetLeft+ie.adjustWidthTo-fo(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&&qo(ae),ae.state.focused&&ie.updateInput&&ae.display.input.reset(ie.typing),fe&&ua(ie.cm)}function Xu(ie){var ae=ie.cm,fe=ae.display,ce=ae.doc;if(ie.updatedDisplay&&ya(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,Wi(ce,ie.scrollToPos.from),Wi(ce,ie.scrollToPos.to),ie.scrollToPos.margin);Gl(ae,me)}var Me=ie.maybeHiddenMarkers,Ge=ie.maybeUnhiddenMarkers;if(Me)for(var $e=0;$e<Me.length;++$e)Me[$e].lines.length||Jn(Me[$e],"hide");if(Ge)for(var Je=0;Je<Ge.length;++Je)Ge[Je].lines.length&&Jn(Ge[Je],"unhide");fe.wrapper.offsetHeight&&(ce.scrollTop=ae.display.scroller.scrollTop),ie.changeObjs&&Jn(ae,"changes",ae,ie.changeObjs),ie.update&&ie.update.finish()}function $r(ie,ae){if(ie.curOp)return ae();yo(ie);try{return ae()}finally{Ya(ie)}}function so(ie,ae){return function(){if(ie.curOp)return ae.apply(ie,arguments);yo(ie);try{return ae.apply(ie,arguments)}finally{Ya(ie)}}}function Fo(ie){return function(){if(this.curOp)return ie.apply(this,arguments);yo(this);try{return ie.apply(this,arguments)}finally{Ya(this)}}}function na(ie){return function(){var ae=this.cm;if(!ae||ae.curOp)return ie.apply(this,arguments);yo(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,Tt(hs,ie))}function hs(ie){var ae=ie.doc;if(!(ae.highlightFrontier>=ie.display.viewTo)){var fe=+new Date+ie.options.workTime,ce=oo(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,$e=Me.text.length>ie.options.maxHighlightLength?Zi(ae.mode,ce.state):null,Je=Dr(ie,Me,ce,!0);$e&&(ce.state=$e),Me.styles=Je.styles;var mt=Me.styleClasses,sn=Je.classes;sn?Me.styleClasses=sn:mt&&(Me.styleClasses=null);for(var At=!Ge||Ge.length!=Me.styles.length||mt!=sn&&(!mt||!sn||mt.bgClass!=sn.bgClass||mt.textClass!=sn.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&&Kt(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&&$r(ie,function(){for(var Me=0;Me<me.length;Me++)vo(ie,me[Me],"text")})}}var _h=function(ie,ae,fe){var ce=ie.display;this.viewport=ae,this.visible=Eo(ce,ie.doc,ae),this.editorIsHidden=!ce.wrapper.offsetWidth,this.wrapperHeight=ce.wrapper.clientHeight,this.wrapperWidth=ce.wrapper.clientWidth,this.oldDisplayWidth=fo(ie),this.force=fe,this.dims=Na(ie),this.events=[]};_h.prototype.signal=function(ie,ae){Bi(ie,ae)&&this.events.push(arguments)},_h.prototype.finish=function(){for(var ie=0;ie<this.events.length;ie++)Jn.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=Mr(ie)+"px",ae.sizer.style.marginBottom=-ae.nativeBarWidth+"px",ae.sizer.style.borderRightWidth=Mr(ie)+"px",ae.scrollbarsClipped=!0)}function Gp(ie){if(ie.hasFocus())return null;var ae=gt();if(!ae||!wt(ie.display.lineDiv,ae))return null;var fe={activeElt:ae};if(window.getSelection){var ce=window.getSelection();ce.anchorNode&&ce.extend&&wt(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&&wt(document.body,ie.anchorNode)&&wt(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 ga(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)&&(ga(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)),An&&(Me=be(ie.doc,Me),Ge=dt(ie.doc,Ge));var $e=Me!=fe.viewFrom||Ge!=fe.viewTo||fe.lastWrapHeight!=ae.wrapperHeight||fe.lastWrapWidth!=ae.wrapperWidth;oa(ie,Me,Ge),fe.viewOffset=Et(Ti(ie.doc,fe.viewFrom)),ie.display.mover.style.top=fe.viewOffset+"px";var Je=us(ie);if(!$e&&Je==0&&!ae.force&&fe.renderedView==fe.view&&(fe.updateLineNumbers==null||fe.updateLineNumbers>=fe.viewTo))return!1;var mt=Gp(ie);return Je>4&&(fe.lineDiv.style.display="none"),cg(ie,fe.updateLineNumbers,ae.dims),Je>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,$e&&(fe.lastWrapHeight=ae.wrapperHeight,fe.lastWrapWidth=ae.wrapperWidth,ns(ie,400)),fe.updateLineNumbers=null,!0}function ya(ie,ae){for(var fe=ae.viewport,ce=!0;;ce=!1){if(!ce||!ie.options.lineWrapping||ae.oldDisplayWidth==fo(ie)){if(fe&&fe.top!=null&&(fe={top:Math.min(ie.doc.height+Ki(ie.display)-po(ie),fe.top)}),ae.visible=Eo(ie.display,ie.doc,fe),ae.visible.from>=ie.display.viewFrom&&ae.visible.to<=ie.display.viewTo)break}else ce&&(ae.visible=Eo(ie.display,ie.doc,fe));if(!nf(ie,ae))break;Yr(ie);var me=ko(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 _h(ie,ae);if(nf(ie,fe)){Yr(ie),ya(ie,fe);var ce=ko(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 $e(Ii){var Hi=Ii.nextSibling;return Ue&&ue&&ie.display.currentWheelTarget==Ii?Ii.style.display="none":Ii.parentNode.removeChild(Ii),Hi}for(var Je=ce.view,mt=ce.viewFrom,sn=0;sn<Je.length;sn++){var At=Je[sn];if(!At.hidden)if(!At.node||At.node.parentNode!=Me){var Bn=Gi(ie,At,mt,fe);Me.insertBefore(Bn,Ge)}else{for(;Ge!=At.node;)Ge=$e(Ge);var xn=me&&ae!=null&&ae<=mt&&At.lineNumber;At.changes&&(Rt(At.changes,"gutter")>-1&&(xn=!1),nr(ie,At,mt,fe)),xn&&(Ie(At.lineNumber),At.lineNumber.appendChild(document.createTextNode(In(ie.options,mt)))),Ge=At.node.nextSibling}mt+=At.size}for(;Ge;)Ge=$e(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+Mr(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 $e=fe[Ge].alignable;if($e)for(var Je=0;Je<$e.length;Je++)$e[Je].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=In(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 Kh(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,$e=ae.appendChild(Re("div",null,"CodeMirror-gutter "+Me));Ge&&($e.style.cssText=Ge),Me=="CodeMirror-linenumbers"&&(ie.lineGutter=$e,$e.style.width=(ie.lineNumWidth||1)+"px")}ae.style.display=fe.length?"":"none",gh(ie)}function Bl(ie){Kh(ie.display),sa(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=nt("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=nt("div",[me.measure,me.lineMeasure,me.selectionDiv,me.cursorDiv,me.lineDiv],null,"position: relative; outline: none");var Me=nt("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"),rt&&ze<8&&(me.gutters.style.zIndex=-1,me.scroller.style.paddingRight=0),!Ue&&!(ve&&te)&&(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),Kh(me),fe.init(me)}var vl=0,is=null;rt?is=-.53:ve?is=15:tt?is=-.7:xt&&(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,$e=Ge.scrollWidth>Ge.clientWidth,Je=Ge.scrollHeight>Ge.clientHeight;if(ce&&$e||me&&Je){if(me&&ue&&Ue){e:for(var mt=ae.target,sn=Me.view;mt!=Ge;mt=mt.parentNode)for(var At=0;At<sn.length;At++)if(sn[At].node==mt){ie.display.currentWheelTarget=mt;break e}}if(ce&&!ve&&!De&&is!=null){me&&Je&&gl(ie,Math.max(0,Ge.scrollTop+me*is)),pl(ie,Math.max(0,Ge.scrollLeft+ce*is)),(!me||me&&Je)&&ir(ae),Me.wheelStartX=null;return}if(me&&is!=null){var Bn=me*is,xn=ie.doc.scrollTop,Ii=xn+Me.wrapper.clientHeight;Bn<0?xn=Math.max(0,xn+Bn-50):Ii=Math.min(ie.doc.height,Ii+Bn+50),fh(ie,{top:xn,bottom:Ii})}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 Hi=Ge.scrollLeft-Me.wheelStartX,Ji=Ge.scrollTop-Me.wheelStartY,Cr=Ji&&Me.wheelDY&&Ji/Me.wheelDY||Hi&&Me.wheelDX&&Hi/Me.wheelDX;Me.wheelStartX=Me.wheelStartY=null,Cr&&(is=(is*vl+Cr)/(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(!Nn(fe.anchor,ce.anchor)||!Nn(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 Sa(Vn(this.ranges[ae].anchor),Vn(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(qn(ae,ce.from())>=0&&qn(ie,ce.to())<=0)return fe}return-1};var Sa=function(ie,ae){this.anchor=ie,this.head=ae};Sa.prototype.from=function(){return pi(this.anchor,this.head)},Sa.prototype.to=function(){return Pi(this.anchor,this.head)},Sa.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,xn){return qn(Bn.from(),xn.from())}),fe=Rt(ae,me);for(var Me=1;Me<ae.length;Me++){var Ge=ae[Me],$e=ae[Me-1],Je=qn($e.to(),Ge.from());if(ce&&!Ge.empty()?Je>0:Je>=0){var mt=pi($e.from(),Ge.from()),sn=Pi($e.to(),Ge.to()),At=$e.empty()?Ge.from()==Ge.head:$e.from()==$e.head;Me<=fe&&--fe,ae.splice(--Me,2,new Sa(At?sn:mt,At?mt:sn))}}return new Yl(ae,fe)}function Qu(ie,ae){return new Yl([new Sa(ie,ae||ie)],0)}function vh(ie){return ie.text?Qt(ie.from.line+ie.text.length-1,hn(ie.text).length+(ie.text.length==1?ie.from.ch:0)):ie.to}function Uh(ie,ae){if(qn(ie,ae.from)<0)return ie;if(qn(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),Qt(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 Sa(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?Qt(fe.line,ie.ch-ae.ch+fe.ch):Qt(fe.line+(ie.line-ae.line),ie.ch)}function cc(ie,ae,fe){for(var ce=[],me=Qt(ie.first,0),Me=me,Ge=0;Ge<ae.length;Ge++){var $e=ae[Ge],Je=kd($e.from,me,Me),mt=kd(vh($e),me,Me);if(me=$e.to,Me=mt,fe=="around"){var sn=ie.sel.ranges[Ge],At=qn(sn.head,sn.anchor)<0;ce[Ge]=new Sa(At?mt:Je,At?Je:mt)}else ce[Ge]=new Sa(Je,Je)}return new Yl(ce,ie.sel.primIndex)}function Xo(ie){ie.doc.mode=an(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&&sa(ie)}function fg(ie,ae){return ae.from.ch==0&&ae.to.ch==0&&hn(ae.text)==""&&(!ie.cm||ie.cm.options.wholeLineUpdateBefore)}function of(ie,ae,fe,ce){function me(Gr){return fe?fe[Gr]:null}function Me(Gr,Nr,Jr){Tn(Gr,Nr,Jr,ce),ii(Gr,"change",Gr,ae)}function Ge(Gr,Nr){for(var Jr=[],Mo=Gr;Mo<Nr;++Mo)Jr.push(new dn(mt[Mo],me(Mo),ce));return Jr}var $e=ae.from,Je=ae.to,mt=ae.text,sn=Ti(ie,$e.line),At=Ti(ie,Je.line),Bn=hn(mt),xn=me(mt.length-1),Ii=Je.line-$e.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 Hi=Ge(0,mt.length-1);Me(At,At.text,xn),Ii&&ie.remove($e.line,Ii),Hi.length&&ie.insert($e.line,Hi)}else if(sn==At)if(mt.length==1)Me(sn,sn.text.slice(0,$e.ch)+Bn+sn.text.slice(Je.ch),xn);else{var Ji=Ge(1,mt.length-1);Ji.push(new dn(Bn+sn.text.slice(Je.ch),xn,ce)),Me(sn,sn.text.slice(0,$e.ch)+mt[0],me(0)),ie.insert($e.line+1,Ji)}else if(mt.length==1)Me(sn,sn.text.slice(0,$e.ch)+mt[0]+At.text.slice(Je.ch),me(0)),ie.remove($e.line+1,Ii);else{Me(sn,sn.text.slice(0,$e.ch)+mt[0],me(0)),Me(At,Bn+At.text.slice(Je.ch),xn);var Cr=Ge(1,mt.length-1);Ii>1&&ie.remove($e.line+1,Ii-1),ie.insert($e.line+1,Cr)}ii(ie,"change",ie,ae)}function xu(ie,ae,fe){function ce(me,Me,Ge){if(me.linked)for(var $e=0;$e<me.linked.length;++$e){var Je=me.linked[$e];if(Je.doc!=Me){var mt=Ge&&Je.sharedHist;fe&&!mt||(ae(Je.doc,mt),ce(Je.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),Xo(ie),gc(ie),ie.options.lineWrapping||$t(ie),ie.options.mode=ae.modeOption,sa(ie)}function gc(ie){(ie.doc.direction=="rtl"?Dt:Te)(ie.display.lineDiv,"CodeMirror-rtl")}function tv(ie){$r(ie,function(){gc(ie),sa(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:Vn(ae.from),to:vh(ae),text:fr(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=hn(ie);if(ae.ranges)ie.pop();else break}}function pc(ie,ae){if(ae)return Nd(ie.done),hn(ie.done);if(ie.done.length&&!hn(ie.done).ranges)return hn(ie.done);if(ie.done.length>1&&!ie.done[ie.done.length-2].ranges)return ie.done.pop(),hn(ie.done)}function mc(ie,ae,fe,ce){var me=ie.history;me.undone.length=0;var Me=+new Date,Ge,$e;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)))$e=hn(Ge.changes),qn(ae.from,ae.to)==0&&qn(ae.from,$e.to)==0?$e.to=vh(ae):Ge.changes.push(sf(ie,ae));else{var Je=hn(me.done);for((!Je||!Je.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,$e||Jn(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,hn(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=hn(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=Bo(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 $e=0;$e<Ge.length;++$e){for(var Je=Ge[$e],mt=0;mt<Me.length;++mt)if(Me[mt].marker==Je.marker)continue e;Me.push(Je)}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,$e=[];ce.push({changes:$e});for(var Je=0;Je<Ge.length;++Je){var mt=Ge[Je],sn=void 0;if($e.push({from:mt.from,to:mt.to,text:mt.text}),ae)for(var At in mt)(sn=At.match(/^spans_(\d+)$/))&&Rt(ae,Number(sn[1]))>-1&&(hn($e)[At]=mt[At],delete mt[At])}}return ce}function uf(ie,ae,fe,ce){if(ce){var me=ie.anchor;if(fe){var Me=qn(ae,me)<0;Me!=qn(fe,me)<0?(me=ae,ae=fe):Me!=qn(ae,fe)<0&&(ae=fe)}return new Sa(me,ae)}else return new Sa(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 Sa(Wi(ie,me[Me].anchor),Wi(ie,me[Me].head))},origin:fe&&fe.origin};return Jn(ie,"beforeSelectionChange",ie,ce),ie.cm&&Jn(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=hn(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){(Bi(ie,"beforeSelectionChange")||ie.cm&&Bi(ie.cm,"beforeSelectionChange"))&&(ae=Yp(ie,ae,fe));var ce=fe&&fe.bias||(qn(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,ui(ie.cm)),ii(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],$e=ae.ranges.length==ie.sel.ranges.length&&ie.sel.ranges[Me],Je=xc(ie,Ge.anchor,$e&&$e.anchor,fe,ce),mt=xc(ie,Ge.head,$e&&$e.head,fe,ce);(me||Je!=Ge.anchor||mt!=Ge.head)&&(me||(me=ae.ranges.slice(0,Me)),me[Me]=new Sa(Je,mt))}return me?ru(ie.cm,me,ae.primIndex):ae}function qu(ie,ae,fe,ce,me){var Me=Ti(ie,ae.line);if(Me.markedSpans)for(var Ge=0;Ge<Me.markedSpans.length;++Ge){var $e=Me.markedSpans[Ge],Je=$e.marker,mt="selectLeft"in Je?!Je.selectLeft:Je.inclusiveLeft,sn="selectRight"in Je?!Je.selectRight:Je.inclusiveRight;if(($e.from==null||(mt?$e.from<=ae.ch:$e.from<ae.ch))&&($e.to==null||(sn?$e.to>=ae.ch:$e.to>ae.ch))){if(me&&(Jn(Je,"beforeCursorEnter"),Je.explicitlyCleared))if(Me.markedSpans){--Ge;continue}else break;if(!Je.atomic)continue;if(fe){var At=Je.find(ce<0?1:-1),Bn=void 0;if((ce<0?sn:mt)&&(At=mg(ie,At,-ce,At&&At.line==ae.line?Me:null)),At&&At.line==ae.line&&(Bn=qn(At,fe))&&(ce<0?Bn<0:Bn>0))return qu(ie,At,ae,ce,me)}var xn=Je.find(ce<0?-1:1);return(ce<0?mt:sn)&&(xn=mg(ie,xn,ce,xn.line==ae.line?Me:null)),xn?qu(ie,xn,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,Qt(ie.first,0))}function mg(ie,ae,fe,ce){return fe<0&&ae.ch==0?ae.line>ie.first?Wi(ie,Qt(ae.line-1)):null:fe>0&&ae.ch==(ce||Ti(ie,ae.line)).text.length?ae.line<ie.first+ie.size-1?Qt(ae.line+1,0):null:new Qt(ae.line,ae.ch+fe)}function rs(ie){ie.setSelection(Qt(ie.firstLine(),0),Qt(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,$e){me&&(ce.from=Wi(ie,me)),Me&&(ce.to=Wi(ie,Me)),Ge&&(ce.text=Ge),$e!==void 0&&(ce.origin=$e)}),Jn(ie,"beforeChange",ie,ce),ie.cm&&Jn(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 so(ie.cm,xh)(ie,ae,fe);if(ie.cm.state.suppressEdits)return}if(!((Bi(ie,"beforeChange")||ie.cm&&Bi(ie.cm,"beforeChange"))&&(ae=Pc(ie,ae,!0),!ae))){var ce=uo&&!fe&&vn(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]==""&&qn(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,Bo(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,Bo(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,$e=ae=="undo"?me.done:me.undone,Je=ae=="undo"?me.undone:me.done,mt=0;mt<$e.length&&(Me=$e[mt],!(fe?Me.ranges&&!Me.equals(ie.sel):!Me.ranges));mt++);if(mt!=$e.length){for(me.lastOrigin=me.lastSelOrigin=null;;)if(Me=$e.pop(),Me.ranges){if(Td(Me,Je),fe&&!Me.equals(ie.sel)){Gs(ie,Me,{clearRedo:!1});return}Ge=Me}else if(ce){$e.push(Me);return}else break;var sn=[];Td(Ge,Je),Je.push({changes:sn,generation:me.generation}),me.generation=Me.generation||++me.maxGeneration;for(var At=Bi(ie,"beforeChange")||ie.cm&&Bi(ie.cm,"beforeChange"),Bn=function(Hi){var Ji=Me.changes[Hi];if(Ji.origin=ae,At&&!Pc(ie,Ji,!1))return $e.length=0,{};sn.push(sf(ie,Ji));var Cr=Hi?dc(ie,Ji):hn($e);Od(ie,Ji,Cr,lf(ie,Ji)),!Hi&&ie.cm&&ie.cm.scrollIntoView({from:Ji.from,to:vh(Ji)});var Gr=[];xu(ie,function(Nr,Jr){!Jr&&Rt(Gr,Nr.history)==-1&&(yg(Nr.history,Ji),Gr.push(Nr.history)),Od(Nr,Ji,null,lf(Nr,Ji))})},xn=Me.changes.length-1;xn>=0;--xn){var Ii=Bn(xn);if(Ii)return Ii.v}}}}function vg(ie,ae){if(ae!=0&&(ie.first+=ae,ie.sel=new Yl(li(ie.sel.ranges,function(me){return new Sa(Qt(me.anchor.line+ae,me.anchor.ch),Qt(me.head.line+ae,me.head.ch))}),ie.sel.primIndex),ie.cm)){sa(ie.cm,ie.first,ie.first-ae,ae);for(var fe=ie.cm.display,ce=fe.viewFrom;ce<fe.viewTo;ce++)vo(ie.cm,ce,"gutter")}}function Od(ie,ae,fe,ce){if(ie.cm&&!ie.cm.curOp)return so(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:Qt(ie.first,0),to:Qt(ae.to.line+me,ae.to.ch),text:[hn(ae.text)],origin:ae.origin}}var Me=ie.lastLine();ae.to.line>Me&&(ae={from:ae.from,to:Qt(Me,Ti(ie,Me).text.length),text:[ae.text[0]],origin:ae.origin}),ae.removed=fr(ie,ae.from,ae.to),fe||(fe=dc(ie,ae)),ie.cm?_p(ie.cm,ae,ce):of(ie,ae,ce),Qh(ie,fe,Mt),ie.cantEdit&&xc(ie,Qt(ie.firstLine(),0))&&(ie.cantEdit=!1)}}function _p(ie,ae,fe){var ce=ie.doc,me=ie.display,Me=ae.from,Ge=ae.to,$e=!1,Je=Me.line;ie.options.lineWrapping||(Je=ut(yn(Ti(ce,Me.line))),ce.iter(Je,Ge.line+1,function(xn){if(xn==me.maxLine)return $e=!0,!0})),ce.sel.contains(ae.from,ae.to)>-1&&ui(ie),of(ce,ae,fe,aa(ie)),ie.options.lineWrapping||(ce.iter(Je,Me.line+ae.text.length,function(xn){var Ii=Jt(xn);Ii>me.maxLineLength&&(me.maxLine=xn,me.maxLineLength=Ii,me.maxLineChanged=!0,$e=!1)}),$e&&(ie.curOp.updateMaxLine=!0)),Zr(ce,Me.line),ns(ie,400);var mt=ae.text.length-(Ge.line-Me.line)-1;ae.full?sa(ie):Me.line==Ge.line&&ae.text.length==1&&!fg(ie.doc,ae)?vo(ie,Me.line,"text"):sa(ie,Me.line,Ge.line+1,mt);var sn=Bi(ie,"changes"),At=Bi(ie,"change");if(At||sn){var Bn={from:Me,to:Ge,text:ae.text,removed:ae.removed,origin:ae.origin};At&&ii(ie,"change",ie,Bn),sn&&(ie.curOp.changeObjs||(ie.curOp.changeObjs=[])).push(Bn)}ie.display.selForContextMenu=null}function qh(ie,ae,fe,ce,me){var Me;ce||(ce=fe),qn(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 _l(ie,ae,fe,ce){fe<ie.line?ie.line+=ce:ae<ie.line&&(ie.line=ae,ie.ch=0)}function Kp(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 $e=0;$e<Me.ranges.length;$e++)_l(Me.ranges[$e].anchor,ae,fe,ce),_l(Me.ranges[$e].head,ae,fe,ce);continue}for(var Je=0;Je<Me.changes.length;++Je){var mt=Me.changes[Je];if(fe<mt.from.line)mt.from=Qt(mt.from.line+ce,mt.from.ch),mt.to=Qt(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;Kp(ie.done,fe,ce,me),Kp(ie.undone,fe,ce,me)}function $h(ie,ae,fe,ce){var me=ae,Me=ae;return typeof ae=="number"?Me=Ti(ie,tn(ie,ae)):me=ut(ae),me==null?null:(ce(Me,me)&&ie.cm&&vo(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,zn(me),ii(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 _a(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}_a.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 $e=[];this.collapse($e),this.children=[new Id($e)],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,$e=Ge;$e<me.lines.length;){var Je=new Id(me.lines.slice($e,$e+=25));me.height-=Je.height,this.children.splice(++ce,0,Je),Je.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 _a(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 _a(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=ut(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=cr(this);ci(fe,Math.max(0,fe.height-Me)),ie&&($r(ie,function(){Up(ie,fe,-Me),vo(ie,ce,"widget")}),ii(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=cr(this)-ae;me&&(Xe(this.doc,ce)||ci(ce,ce.height+me),fe&&$r(fe,function(){fe.curOp.forceUpdate=!0,Up(fe,ce,me),ii(fe,"lineWidgetChanged",fe,ie,ut(ce))}))},Ui($u);function Up(ie,ae,fe){Et(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 $e=Ge.widgets||(Ge.widgets=[]);if(me.insertAt==null?$e.push(me):$e.splice(Math.min($e.length-1,Math.max(0,me.insertAt)),0,me),me.line=Ge,Me&&!Xe(ie,Ge)){var Je=Et(Ge)<ie.scrollTop;ci(Ge,Ge.height+cr(me)),Je&&vu(Me,me.height),Me.curOp.forceUpdate=!0}return!0}),Me&&ii(Me,"lineWidgetAdded",Me,me,typeof ae=="number"?ae:ut(ae)),me}var Xp=0,Vt=function(ie,ae){this.lines=[],this.type=ae,this.doc=ie,this.id=++Xp};Vt.prototype.clear=function(){if(!this.explicitlyCleared){var ie=this.doc.cm,ae=ie&&!ie.curOp;if(ae&&yo(ie),Bi(this,"clear")){var fe=this.find();fe&&ii(this,"clear",fe.from,fe.to)}for(var ce=null,me=null,Me=0;Me<this.lines.length;++Me){var Ge=this.lines[Me],$e=_r(Ge.markedSpans,this);ie&&!this.collapsed?vo(ie,ut(Ge),"text"):ie&&($e.to!=null&&(me=ut(Ge)),$e.from!=null&&(ce=ut(Ge))),Ge.markedSpans=Hr(Ge.markedSpans,$e),$e.from==null&&this.collapsed&&!Xe(this.doc,Ge)&&ie&&ci(Ge,ca(ie.display))}if(ie&&this.collapsed&&!ie.options.lineWrapping)for(var Je=0;Je<this.lines.length;++Je){var mt=yn(this.lines[Je]),sn=Jt(mt);sn>ie.display.maxLineLength&&(ie.display.maxLine=mt,ie.display.maxLineLength=sn,ie.display.maxLineChanged=!0)}ce!=null&&ie&&this.collapsed&&sa(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&&ii(ie,"markerCleared",ie,this,ce,me),ae&&Ya(ie),this.parent&&this.parent.clear()}},Vt.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=_r(Me.markedSpans,this);if(Ge.from!=null&&(fe=Qt(ae?Me:ut(Me),Ge.from),ie==-1))return fe;if(Ge.to!=null&&(ce=Qt(ae?Me:ut(Me),Ge.to),ie==1))return ce}return fe&&{from:fe,to:ce}},Vt.prototype.changed=function(){var ie=this,ae=this.find(-1,!0),fe=this,ce=this.doc.cm;!ae||!ce||$r(ce,function(){var me=ae.line,Me=ut(ae.line),Ge=ar(ce,Me);if(Ge&&(ma(Ge),ce.curOp.selectionChanged=ce.curOp.forceUpdate=!0),ce.curOp.updateMaxLine=!0,!Xe(fe.doc,me)&&fe.height!=null){var $e=fe.height;fe.height=null;var Je=cr(fe)-$e;Je&&ci(me,me.height+Je)}ii(ce,"markerChanged",ce,ie)})},Vt.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)},Vt.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)}},Ui(Vt);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 so(ie.cm,ed)(ie,ae,fe,ce,me);var Me=new Vt(ie,me),Ge=qn(ae,fe);if(ce&&nn(ce,Me,!1),Ge>0||Ge==0&&Me.clearWhenEmpty!==!1)return Me;if(Me.replacedWith&&(Me.collapsed=!0,Me.widgetNode=nt("span",[Me.replacedWith],"CodeMirror-widget"),ce.handleMouseEvents||Me.widgetNode.setAttribute("cm-ignore-events","true"),ce.insertLeft&&(Me.widgetNode.insertLeft=!0)),Me.collapsed){if(_n(ie,ae.line,ae,fe,Me)||ae.line!=fe.line&&_n(ie,fe.line,ae,fe,Me))throw new Error("Inserting collapsed marker partially overlapping an existing one");Fn()}Me.addToHistory&&mc(ie,{from:ae,to:fe,origin:"markText"},ie.sel,NaN);var $e=ae.line,Je=ie.cm,mt;if(ie.iter($e,fe.line+1,function(At){Je&&Me.collapsed&&!Je.options.lineWrapping&&yn(At)==Je.display.maxLine&&(mt=!0),Me.collapsed&&$e!=ae.line&&ci(At,0),Oo(At,new ai(Me,$e==ae.line?ae.ch:null,$e==fe.line?fe.ch:null)),++$e}),Me.collapsed&&ie.iter(ae.line,fe.line+1,function(At){Xe(ie,At)&&ci(At,0)}),Me.clearOnEnter&&Cn(Me,"beforeCursorEnter",function(){return Me.clear()}),Me.readOnly&&(mo(),(ie.history.done.length||ie.history.undone.length)&&ie.clearHistory()),Me.collapsed&&(Me.id=++Xp,Me.atomic=!0),Je){if(mt&&(Je.curOp.updateMaxLine=!0),Me.collapsed)sa(Je,ae.line,fe.line+1);else if(Me.className||Me.startStyle||Me.endStyle||Me.css||Me.attributes||Me.title)for(var sn=ae.line;sn<=fe.line;sn++)vo(Je,sn,"text");Me.atomic&&yc(Je.doc),ii(Je,"markerAdded",Je,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();ii(this,"clear")}},Bu.prototype.find=function(ie,ae){return this.primary.find(ie,ae)},Ui(Bu);function Qp(ie,ae,fe,ce,me){ce=nn(ce),ce.shared=!1;var Me=[ed(ie,ae,fe,ce,me)],Ge=Me[0],$e=ce.widgetNode;return xu(ie,function(Je){$e&&(ce.widgetNode=$e.cloneNode(!0)),Me.push(ed(Je,Wi(Je,ae),Wi(Je,fe),ce,me));for(var mt=0;mt<Je.linked.length;++mt)if(Je.linked[mt].isParent)return;Ge=hn(Me)}),new Bu(Me,Ge)}function Sg(ie){return ie.findMarks(Qt(ie.first,0),ie.clipPos(Qt(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(qn(Me,Ge)){var $e=ed(ie,Me,Ge,ce.primary,ce.primary.type);ce.markers.push($e),$e.parent=ce}}}function xg(ie){for(var ae=function(ce){var me=ie[ce],Me=[me.primary.doc];xu(me.primary.doc,function(Je){return Me.push(Je)});for(var Ge=0;Ge<me.markers.length;Ge++){var $e=me.markers[Ge];Rt(Me,$e.doc)==-1&&($e.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),_a.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=Qt(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(_a.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=Vr(this,this.first,this.first+this.size);return ie===!1?ae:ae.join(ie||this.lineSeparator())},setValue:na(function(ie){var ae=Qt(this.first,0),fe=this.first+this.size-1;xh(this,{from:ae,to:Qt(fe,Ti(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=Wi(this,ae),fe=fe?Wi(this,fe):ae,qh(this,ie,ae,fe,ce)},getRange:function(ie,ae,fe){var ce=fr(this,Wi(this,ie),Wi(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(Rn(this,ie))return Ti(this,ie)},getLineNumber:function(ie){return ut(ie)},getLineHandleVisualStart:function(ie){return typeof ie=="number"&&(ie=Ti(this,ie)),yn(ie)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(ie){return Wi(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:na(function(ie,ae,fe){Xh(this,Wi(this,typeof ie=="number"?Qt(ie,ae||0):ie),null,fe)}),setSelection:na(function(ie,ae,fe){Xh(this,Wi(this,ie),Wi(this,ae||ie),fe)}),extendSelection:na(function(ie,ae,fe){hf(this,Wi(this,ie),ae&&Wi(this,ae),fe)}),extendSelections:na(function(ie,ae){Vp(this,Pr(this,ie),ae)}),extendSelectionsBy:na(function(ie,ae){var fe=li(this.sel.ranges,ie);Vp(this,Pr(this,fe),ae)}),setSelections:na(function(ie,ae,fe){if(ie.length){for(var ce=[],me=0;me<ie.length;me++)ce[me]=new Sa(Wi(this,ie[me].anchor),Wi(this,ie[me].head));ae==null&&(ae=Math.min(ie.length-1,this.sel.primIndex)),Gs(this,ru(this.cm,ce,ae),fe)}}),addSelection:na(function(ie,ae,fe){var ce=this.sel.ranges.slice(0);ce.push(new Sa(Wi(this,ie),Wi(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=fr(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=fr(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:na(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 $e=ae&&ae!="end"&&cc(this,ce,ae),Je=ce.length-1;Je>=0;Je--)xh(this,ce[Je]);$e?df(this,$e):this.cm&&Ws(this.cm)}),undo:na(function(){wc(this,"undo")}),redo:na(function(){wc(this,"redo")}),undoSelection:na(function(){wc(this,"undo",!0)}),redoSelection:na(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:na(function(ie,ae,fe){return $h(this,ie,"gutter",function(ce){var me=ce.gutterMarkers||(ce.gutterMarkers={});return me[ae]=fe,!fe&&ke(me)&&(ce.gutterMarkers=null),!0})}),clearGutter:na(function(ie){var ae=this;this.iter(function(fe){fe.gutterMarkers&&fe.gutterMarkers[ie]&&$h(ae,fe,"gutter",function(){return fe.gutterMarkers[ie]=null,ke(fe.gutterMarkers)&&(fe.gutterMarkers=null),!0})})}),lineInfo:function(ie){var ae;if(typeof ie=="number"){if(!Rn(this,ie)||(ae=ie,ie=Ti(this,ie),!ie))return null}else if(ae=ut(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:na(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(je(fe).test(ce[me]))return!1;ce[me]+=" "+fe}return!0})}),removeLineClass:na(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(je(fe));if(!Ge)return!1;var $e=Ge.index+Ge[0].length;ce[me]=Me.slice(0,Ge.index)+(!Ge.index||$e==Me.length?"":" ")+Me.slice($e)||null}else return!1;return!0})}),addLineWidget:na(function(ie,ae,fe){return cf(this,ie,ae,fe)}),removeLineWidget:function(ie){ie.clear()},markText:function(ie,ae,fe){return ed(this,Wi(this,ie),Wi(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=Wi(this,ie),ed(this,ie,ie,fe,"bookmark")},findMarksAt:function(ie){ie=Wi(this,ie);var ae=[],fe=Ti(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=Wi(this,ie),ae=Wi(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 $e=0;$e<Ge.length;$e++){var Je=Ge[$e];!(Je.to!=null&&me==ie.line&&ie.ch>=Je.to||Je.from==null&&me!=ie.line||Je.from!=null&&me==ae.line&&Je.from>=ae.ch)&&(!fe||fe(Je.marker))&&ce.push(Je.marker.parent||Je.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}),Wi(this,Qt(fe,ae))},indexFromPos:function(ie){ie=Wi(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(Vr(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(Vr(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 la&&(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):io(ie)},lineSeparator:function(){return this.lineSep||`
`},setDirection:na(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),!(Di(ae,ie)||Qn(ae.display,ie))){ir(ie),rt&&(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,$e=function(){++Ge==me&&so(ae,function(){fe=Wi(ae.doc,fe);var xn={from:fe,to:fe,text:ae.doc.splitLines(Me.filter(function(Ii){return Ii!=null}).join(ae.doc.lineSeparator())),origin:"paste"};xh(ae.doc,xn),df(ae.doc,Qu(Wi(ae.doc,fe),Wi(ae.doc,vh(xn))))})()},Je=function(xn,Ii){if(ae.options.allowDropFileTypes&&Rt(ae.options.allowDropFileTypes,xn.type)==-1){$e();return}var Hi=new FileReader;Hi.onerror=function(){return $e()},Hi.onload=function(){var Ji=Hi.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Ji)){$e();return}Me[Ii]=Ji,$e()},Hi.readAsText(xn)},mt=0;mt<ce.length;mt++)Je(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 sn=ie.dataTransfer.getData("Text");if(sn){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(sn,"around","paste"),ae.display.input.focus()}}catch(xn){}}}}function qp(ie,ae){if(rt&&(!ie.state.draggingText||+new Date-Cc<100)){ri(ae);return}if(!(Di(ie,ae)||Qn(ie.display,ae))&&(ae.dataTransfer.setData("Text",ie.getSelection()),ae.dataTransfer.effectAllowed="copyMove",ae.dataTransfer.setDragImage&&!xt)){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();Go(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;Cn(window,"resize",function(){ie==null&&(ie=setTimeout(function(){ie=null,t0(Cg)},100))}),Cn(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 $e=ae[Ge];if(/^(cmd|meta|m)$/i.test($e))Me=!0;else if(/^a(lt)?$/i.test($e))fe=!0;else if(/^(c|ctrl|control)$/i.test($e))ce=!0;else if(/^s(hift)?$/i.test($e))me=!0;else throw new Error("Unrecognized modifier name: "+$e)}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=li(fe.split(" "),Eg),Me=0;Me<me.length;Me++){var Ge=void 0,$e=void 0;Me==me.length-1?($e=me.join(" "),Ge=ce):($e=me.slice(0,Me+1).join(" "),Ge="...");var Je=ae[$e];if(!Je)ae[$e]=Ge;else if(Je!=Ge)throw new Error("Inconsistent bindings for "+$e)}delete ie[fe]}for(var mt in ae)ie[mt]=ae[mt];return ie}function Kl(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 Kl(ie,ae.fallthrough,fe,ce);for(var Me=0;Me<ae.fallthrough.length;Me++){var Ge=Kl(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&&qn(Me.from,hn(ce).to)<=0;){var Ge=ce.pop();if(qn(Ge.from,Me.from)<0){Me.from=Ge.from;break}}ce.push(Me)}$r(ie,function(){for(var $e=ce.length-1;$e>=0;$e--)qh(ie.doc,"",ce[$e].from,ce[$e].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 Qt(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?hn(Me):Me[0],$e=me<0==(Ge.level==1),Je=$e?"after":"before",mt;if(Ge.level>0||ae.doc.direction=="rtl"){var sn=Rr(ae,fe);mt=me<0?fe.text.length-1:0;var At=Lo(ae,sn,mt).top;mt=rn(function(Bn){return Lo(ae,sn,Bn).top==At},me<0==(Ge.level==1)?Ge.from:Ge.to-1,mt),Je=="before"&&(mt=Mg(fe,mt,1))}else mt=me<0?Ge.to:Ge.from;return new Qt(ce,mt,Je)}}return new Qt(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=Wt(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 $e=function(Cr,Gr){return Mg(ae,Cr instanceof Qt?Cr.ch:Cr,Gr)},Je,mt=function(Cr){return ie.options.lineWrapping?(Je=Je||Rr(ie,ae),Yo(ie,ae,Je,Cr)):{begin:0,end:ae.text.length}},sn=mt(fe.sticky=="before"?$e(fe,-1):fe.ch);if(ie.doc.direction=="rtl"||Ge.level==1){var At=Ge.level==1==ce<0,Bn=$e(fe,At?1:-1);if(Bn!=null&&(At?Bn<=Ge.to&&Bn<=sn.end:Bn>=Ge.from&&Bn>=sn.begin)){var xn=At?"before":"after";return new Qt(fe.line,Bn,xn)}}var Ii=function(Cr,Gr,Nr){for(var Jr=function(Oa,ms){return ms?new Qt(fe.line,$e(Oa,1),"before"):new Qt(fe.line,Oa,"after")};Cr>=0&&Cr<me.length;Cr+=Gr){var Mo=me[Cr],br=Gr>0==(Mo.level!=1),Qo=br?Nr.begin:$e(Nr.end,-1);if(Mo.from<=Qo&&Qo<Mo.to||(Qo=br?Mo.from:$e(Mo.to,-1),Nr.begin<=Qo&&Qo<Nr.end))return Jr(Qo,br)}},Hi=Ii(Me+ce,ce,sn);if(Hi)return Hi;var Ji=ce>0?sn.end:$e(sn.begin,-1);return Ji!=null&&!(ce>0&&Ji==ae.text.length)&&(Hi=Ii(ce>0?0:me.length-1,ce,mt(Ji)),Hi)?Hi: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=Ti(ie.doc,ae.head.line).text.length;return ae.head.ch==fe&&ae.head.line<ie.lastLine()?{from:ae.head,to:Qt(ae.head.line+1,0)}:{from:ae.head,to:Qt(ae.head.line,fe)}}else return{from:ae.from(),to:ae.to()}})},deleteLine:function(ie){return Sl(ie,function(ae){return{from:Qt(ae.from().line,0),to:Wi(ie.doc,Qt(ae.to().line+1,0))}})},delLineLeft:function(ie){return Sl(ie,function(ae){return{from:Qt(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(Qt(ie.firstLine(),0))},goDocEnd:function(ie){return ie.extendSelection(Qt(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")},on)},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")},on)},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},on)},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=at(ie.getLine(Me.line),Me.ch,ce);ae.push(vt(ce-Ge%ce))}ie.replaceSelections(ae)},defaultTab:function(ie){ie.somethingSelected()?ie.indentSelection("add"):ie.execCommand("insertTab")},transposeChars:function(ie){return $r(ie,function(){for(var ae=ie.listSelections(),fe=[],ce=0;ce<ae.length;ce++)if(ae[ce].empty()){var me=ae[ce].head,Me=Ti(ie.doc,me.line).text;if(Me){if(me.ch==Me.length&&(me=new Qt(me.line,me.ch-1)),me.ch>0)me=new Qt(me.line,me.ch+1),ie.replaceRange(Me.charAt(me.ch-1)+Me.charAt(me.ch-2),Qt(me.line,me.ch-2),me,"+transpose");else if(me.line>ie.doc.first){var Ge=Ti(ie.doc,me.line-1).text;Ge&&(me=new Qt(me.line,1),ie.replaceRange(Me.charAt(0)+ie.doc.lineSeparator()+Ge.charAt(Ge.length-1),Qt(me.line-1,Ge.length-1),me,"+transpose"))}}fe.push(new Sa(me,me))}ie.setSelections(fe)})},newlineAndIndent:function(ie){return $r(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=Ti(ie.doc,ae),ce=yn(fe);return ce!=fe&&(ae=ut(ce)),Fc(!0,ie,ce,ae,1)}function Zd(ie,ae){var fe=Ti(ie.doc,ae),ce=cn(fe);return ce!=fe&&(ae=ut(ce)),Fc(!0,ie,fe,ae,-1)}function Lg(ie,ae){var fe=zd(ie,ae.line),ce=Ti(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 Qt(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)!=Yt}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=Kl(ae,ie.state.keyMaps[ce],fe,ie);if(me)return me}return ie.options.extraKeys&&Kl(ae,ie.options.extraKeys,fe,ie)||Kl(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"&&ii(ie,"keyHandled",ie,ae,fe),(me=="handled"||me=="multi")&&(ir(fe),qo(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(),!Di(ae,ie))){rt&&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&&!Pn&&(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;Dt(ae,"CodeMirror-crosshair");function fe(ce){(ce.keyCode==18||!ce.altKey)&&(Te(ae,"CodeMirror-crosshair"),Ci(document,"keyup",fe),Ci(document,"mouseover",fe))}Cn(document,"keyup",fe),Cn(document,"mouseover",fe)}function Bg(ie){ie.keyCode==16&&(this.doc.sel.shift=!1),Di(this,ie)}function Pu(ie){var ae=this;if(!(ie.target&&ie.target!=ae.display.input.getField())&&!(Qn(ae.display,ie)||Di(ae,ie)||ie.ctrlKey&&!ie.altKey||ue&&ie.metaKey)){var fe=ie.keyCode,ce=ie.charCode;if(De&&fe==id){id=null,ir(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&&qn(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(!(Di(ae,ie)||fe.activeTouch&&fe.input.supportsTouch())){if(fe.input.ensurePolled(),fe.shift=ie.shiftKey,Qn(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=Qr(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):co(ie)==fe.scroller&&ir(ie):me==2?(ce&&hf(ae.doc,ce),setTimeout(function(){return fe.input.focus()},20)):me==3&&(Ce?ae.display.input.onContextMenu(ie):pa(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 $e=!1;try{ie.isReadOnly()&&(ie.state.suppressEdits=!0),$e=Ge(ie,fe)!=Yt}finally{ie.state.suppressEdits=!1}return $e})}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){rt?setTimeout(Tt(ua,ie),0):ie.curOp.focus=gt();var me=yf(ie,fe,ce),Me=ie.doc.sel,Ge;ie.options.dragDrop&&to&&!ie.isReadOnly()&&fe=="single"&&(Ge=Me.contains(ae))>-1&&(qn((Ge=Me.ranges[Ge]).from(),ae)<0||ae.xRel>0)&&(qn(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=so(ie,function(mt){Ue&&(me.scroller.draggable=!1),ie.state.draggingText=!1,Ci(me.wrapper.ownerDocument,"mouseup",Ge),Ci(me.wrapper.ownerDocument,"mousemove",$e),Ci(me.scroller,"dragstart",Je),Ci(me.scroller,"drop",Ge),Me||(ir(mt),ce.addNew||hf(ie.doc,fe,null,null,ce.extend),Ue&&!xt||rt&&ze==9?setTimeout(function(){me.wrapper.ownerDocument.body.focus({preventScroll:!0}),me.input.focus()},20):me.input.focus())}),$e=function(mt){Me=Me||Math.abs(ae.clientX-mt.clientX)+Math.abs(ae.clientY-mt.clientY)>=10},Je=function(){return Me=!0};Ue&&(me.scroller.draggable=!0),ie.state.draggingText=Ge,Ge.copy=!ce.moveOnDrag,me.scroller.dragDrop&&me.scroller.dragDrop(),Cn(me.wrapper.ownerDocument,"mouseup",Ge),Cn(me.wrapper.ownerDocument,"mousemove",$e),Cn(me.scroller,"dragstart",Je),Cn(me.scroller,"drop",Ge),pa(ie),setTimeout(function(){return me.input.focus()},20)}function Rg(ie,ae,fe){if(fe=="char")return new Sa(ae,ae);if(fe=="word")return ie.findWordAt(ae);if(fe=="line")return new Sa(Qt(ae.line,0),Wi(ie.doc,Qt(ae.line+1,0)));var ce=fe(ie,ae);return new Sa(ce.from,ce.to)}function iv(ie,ae,fe,ce){var me=ie.display,Me=ie.doc;ir(ae);var Ge,$e,Je=Me.sel,mt=Je.ranges;if(ce.addNew&&!ce.extend?($e=Me.sel.contains(fe),$e>-1?Ge=mt[$e]:Ge=new Sa(fe,fe)):(Ge=Me.sel.primary(),$e=Me.sel.primIndex),ce.unit=="rectangle")ce.addNew||(Ge=new Sa(fe,fe)),fe=Va(ie,ae,!0,!0),$e=-1;else{var sn=Rg(ie,fe,ce.unit);ce.extend?Ge=uf(Ge,sn.anchor,sn.head,ce.extend):Ge=sn}ce.addNew?$e==-1?($e=mt.length,Gs(Me,ru(ie,mt.concat([Ge]),$e),{scroll:!1,origin:"*mouse"})):mt.length>1&&mt[$e].empty()&&ce.unit=="char"&&!ce.extend?(Gs(Me,ru(ie,mt.slice(0,$e).concat(mt.slice($e+1)),0),{scroll:!1,origin:"*mouse"}),Je=Me.sel):Sh(Me,$e,Ge,zt):($e=0,Gs(Me,new Yl([Ge],0),zt),Je=Me.sel);var At=fe;function Bn(Nr){if(qn(At,Nr)!=0)if(At=Nr,ce.unit=="rectangle"){for(var Jr=[],Mo=ie.options.tabSize,br=at(Ti(Me,fe.line).text,fe.ch,Mo),Qo=at(Ti(Me,Nr.line).text,Nr.ch,Mo),Oa=Math.min(br,Qo),ms=Math.max(br,Qo),Ka=Math.min(fe.line,Nr.line),sl=Math.min(ie.lastLine(),Math.max(fe.line,Nr.line));Ka<=sl;Ka++){var Vs=Ti(Me,Ka).text,cs=Dn(Vs,Oa,Mo);Oa==ms?Jr.push(new Sa(Qt(Ka,cs),Qt(Ka,cs))):Vs.length>cs&&Jr.push(new Sa(Qt(Ka,cs),Qt(Ka,Dn(Vs,ms,Mo))))}Jr.length||Jr.push(new Sa(fe,fe)),Gs(Me,ru(ie,Je.ranges.slice(0,$e).concat(Jr),$e),{origin:"*mouse",scroll:!1}),ie.scrollIntoView(Nr)}else{var xl=Ge,Ts=Rg(ie,Nr,ce.unit),fs=xl.anchor,ha;qn(Ts.anchor,fs)>0?(ha=Ts.head,fs=pi(xl.from(),Ts.anchor)):(ha=Ts.anchor,fs=Pi(xl.to(),Ts.head));var Qa=Je.ranges.slice(0);Qa[$e]=o0(ie,new Sa(Wi(Me,fs),ha)),Gs(Me,ru(ie,Qa,$e),zt)}}var xn=me.wrapper.getBoundingClientRect(),Ii=0;function Hi(Nr){var Jr=++Ii,Mo=Va(ie,Nr,!0,ce.unit=="rectangle");if(Mo)if(qn(Mo,At)!=0){ie.curOp.focus=gt(),Bn(Mo);var br=Eo(me,Me);(Mo.line>=br.to||Mo.line<br.from)&&setTimeout(so(ie,function(){Ii==Jr&&Hi(Nr)}),150)}else{var Qo=Nr.clientY<xn.top?-20:Nr.clientY>xn.bottom?20:0;Qo&&setTimeout(so(ie,function(){Ii==Jr&&(me.scroller.scrollTop+=Qo,Hi(Nr))}),50)}}function Ji(Nr){ie.state.selectingText=!1,Ii=1/0,Nr&&(ir(Nr),me.input.focus()),Ci(me.wrapper.ownerDocument,"mousemove",Cr),Ci(me.wrapper.ownerDocument,"mouseup",Gr),Me.history.lastSelOrigin=null}var Cr=so(ie,function(Nr){Nr.buttons===0||!Qr(Nr)?Ji(Nr):Hi(Nr)}),Gr=so(ie,Ji);ie.state.selectingText=Gr,Cn(me.wrapper.ownerDocument,"mousemove",Cr),Cn(me.wrapper.ownerDocument,"mouseup",Gr)}function o0(ie,ae){var fe=ae.anchor,ce=ae.head,me=Ti(ie.doc,fe.line);if(qn(fe,ce)==0&&fe.sticky==ce.sticky)return ae;var Me=pn(me);if(!Me)return ae;var Ge=Wt(Me,fe.ch,fe.sticky),$e=Me[Ge];if($e.from!=fe.ch&&$e.to!=fe.ch)return ae;var Je=Ge+($e.from==fe.ch==($e.level!=1)?0:1);if(Je==0||Je==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 sn=Wt(Me,ce.ch,ce.sticky),At=sn-Ge||(ce.ch-fe.ch)*($e.level==1?-1:1);sn==Je-1||sn==Je?mt=At<0:mt=At>0}var Bn=Me[Je+(mt?-1:0)],xn=mt==(Bn.level==1),Ii=xn?Bn.from:Bn.to,Hi=xn?"after":"before";return fe.ch==Ii&&fe.sticky==Hi?ae:new Sa(new Qt(fe.line,Ii,Hi),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&&ir(ae);var Ge=ie.display,$e=Ge.lineDiv.getBoundingClientRect();if(Me>$e.bottom||!Bi(ie,fe))return qi(ae);Me-=$e.top-Ge.viewOffset;for(var Je=0;Je<ie.display.gutterSpecs.length;++Je){var mt=Ge.gutters.childNodes[Je];if(mt&&mt.getBoundingClientRect().right>=me){var sn=Nt(ie.doc,Me),At=ie.display.gutterSpecs[Je];return Jn(ie,fe,ie,sn,At.className,ae),qi(ae)}}}function xf(ie,ae){return Sf(ie,ae,"gutterClick",!0)}function Pf(ie,ae){Qn(ie.display,ae)||a0(ie,ae)||Di(ie,ae,"contextmenu")||Ce||ie.display.input.onContextMenu(ae)}function a0(ie,ae){return Bi(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-"),Da(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($e,Je,mt){mt!=wh&&Me($e,Je,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,Xo(ce)},!0),fe("indentUnit",2,Xo,!0),fe("indentWithTabs",!1),fe("smartIndent",!0),fe("tabSize",4,function(ce){fc(ce),Da(ce),sa(ce)},!0),fe("lineSeparator",null,function(ce,me){if(ce.doc.lineSep=me,!!me){var Me=[],Ge=ce.doc.first;ce.doc.iter(function(Je){for(var mt=0;;){var sn=Je.text.indexOf(me,mt);if(sn==-1)break;mt=sn+me.length,Me.push(Qt(Ge,sn))}Ge++});for(var $e=Me.length-1;$e>=0;$e--)qh(ce.doc,me,Me[$e],Qt(Me[$e].line,Me[$e].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",Kn,function(ce){return ce.refresh()},!0),fe("electricChars",!0),fe("inputStyle",te?"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),$e=Me!=wh&&td(Me);$e&&$e.detach&&$e.detach(ce,Ge),Ge.attach&&Ge.attach(ce,$e||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?Cn: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?(Dt(ie.display.wrapper,"CodeMirror-wrap"),ie.display.sizer.style.minWidth="",ie.display.sizerWidth=null):(Te(ie.display.wrapper,"CodeMirror-wrap"),$t(ie)),Wr(ie),sa(ie),Da(ie),setTimeout(function(){return es(ie)},100)}function la(ie,ae){var fe=this;if(!(this instanceof la))return new la(ie,ae);this.options=ae=ae?nn(ae):{},nn(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 la.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&&!te&&Me.input.focus(),rt&&ze<11&&setTimeout(function(){return fe.display.input.reset(!0)},20),Gd(this),Tl(),yo(this),this.curOp.forceUpdate=!0,af(this,ce),ae.autofocus&&!te||this.hasFocus()?setTimeout(function(){fe.hasFocus()&&!fe.state.focused&&Jo(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 $e=0;$e<od.length;++$e)od[$e](this);Ya(this),Ue&&ae.lineWrapping&&getComputedStyle(Me.lineDiv).textRendering=="optimizelegibility"&&(Me.lineDiv.style.textRendering="auto")}la.defaults=jg,la.optionHandlers=Mc;function Gd(ie){var ae=ie.display;Cn(ae.scroller,"mousedown",so(ie,wu)),rt&&ze<11?Cn(ae.scroller,"dblclick",so(ie,function(Je){if(!Di(ie,Je)){var mt=Va(ie,Je);if(!(!mt||xf(ie,Je)||Qn(ie.display,Je))){ir(Je);var sn=ie.findWordAt(mt);hf(ie.doc,sn.anchor,sn.head)}}})):Cn(ae.scroller,"dblclick",function(Je){return Di(ie,Je)||ir(Je)}),Cn(ae.scroller,"contextmenu",function(Je){return Pf(ie,Je)}),Cn(ae.input.getField(),"contextmenu",function(Je){ae.scroller.contains(Je.target)||Pf(ie,Je)});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(Je){if(Je.touches.length!=1)return!1;var mt=Je.touches[0];return mt.radiusX<=1&&mt.radiusY<=1}function Ge(Je,mt){if(mt.left==null)return!0;var sn=mt.left-Je.left,At=mt.top-Je.top;return sn*sn+At*At>20*20}Cn(ae.scroller,"touchstart",function(Je){if(!Di(ie,Je)&&!Me(Je)&&!xf(ie,Je)){ae.input.ensurePolled(),clearTimeout(fe);var mt=+new Date;ae.activeTouch={start:mt,moved:!1,prev:mt-ce.end<=300?ce:null},Je.touches.length==1&&(ae.activeTouch.left=Je.touches[0].pageX,ae.activeTouch.top=Je.touches[0].pageY)}}),Cn(ae.scroller,"touchmove",function(){ae.activeTouch&&(ae.activeTouch.moved=!0)}),Cn(ae.scroller,"touchend",function(Je){var mt=ae.activeTouch;if(mt&&!Qn(ae,Je)&&mt.left!=null&&!mt.moved&&new Date-mt.start<300){var sn=ie.coordsChar(ae.activeTouch,"page"),At;!mt.prev||Ge(mt,mt.prev)?At=new Sa(sn,sn):!mt.prev.prev||Ge(mt,mt.prev.prev)?At=ie.findWordAt(sn):At=new Sa(Qt(sn.line,0),Wi(ie.doc,Qt(sn.line+1,0))),ie.setSelection(At.anchor,At.head),ie.focus(),ir(Je)}me()}),Cn(ae.scroller,"touchcancel",me),Cn(ae.scroller,"scroll",function(){ae.scroller.clientHeight&&(gl(ie,ae.scroller.scrollTop),pl(ie,ae.scroller.scrollLeft,!0),Jn(ie,"scroll",ie))}),Cn(ae.scroller,"mousewheel",function(Je){return Ps(ie,Je)}),Cn(ae.scroller,"DOMMouseScroll",function(Je){return Ps(ie,Je)}),Cn(ae.wrapper,"scroll",function(){return ae.wrapper.scrollTop=ae.wrapper.scrollLeft=0}),ae.dragFunctions={enter:function(Je){Di(ie,Je)||ri(Je)},over:function(Je){Di(ie,Je)||($p(ie,Je),ri(Je))},start:function(Je){return qp(ie,Je)},drop:so(ie,Pg),leave:function(Je){Di(ie,Je)||e0(ie)}};var $e=ae.input.getField();Cn($e,"keyup",function(Je){return Bg.call(ie,Je)}),Cn($e,"keydown",so(ie,Dg)),Cn($e,"keypress",so(ie,Pu)),Cn($e,"focus",function(Je){return Jo(ie,Je)}),Cn($e,"blur",function(Je){return fl(ie,Je)})}var od=[];la.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=oo(ie,ae).state:fe="prev");var Ge=ie.options.tabSize,$e=Ti(me,ae),Je=at($e.text,null,Ge);$e.stateAfter&&($e.stateAfter=null);var mt=$e.text.match(/^\s*/)[0],sn;if(!ce&&!/\S/.test($e.text))sn=0,fe="not";else if(fe=="smart"&&(sn=me.mode.indent(Me,$e.text.slice(mt.length),$e.text),sn==Yt||sn>150)){if(!ce)return;fe="prev"}fe=="prev"?ae>me.first?sn=at(Ti(me,ae-1).text,null,Ge):sn=0:fe=="add"?sn=Je+ie.options.indentUnit:fe=="subtract"?sn=Je-ie.options.indentUnit:typeof fe=="number"&&(sn=Je+fe),sn=Math.max(0,sn);var At="",Bn=0;if(ie.options.indentWithTabs)for(var xn=Math.floor(sn/Ge);xn;--xn)Bn+=Ge,At+=" ";if(Bn<sn&&(At+=vt(sn-Bn)),At!=mt)return qh(me,At,Qt(ae,0),Qt(ae,mt.length),"+input"),$e.stateAfter=null,!0;for(var Ii=0;Ii<me.sel.ranges.length;Ii++){var Hi=me.sel.ranges[Ii];if(Hi.head.line==ae&&Hi.head.ch<mt.length){var Ji=Qt(ae,mt.length);Sh(me,Ii,new Sa(Ji,Ji));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,$e=me=="paste"||ie.state.pasteIncoming>Ge,Je=io(ae),mt=null;if($e&&ce.ranges.length>1)if(al&&al.text.join(`
`)==ae){if(ce.ranges.length%al.text.length==0){mt=[];for(var sn=0;sn<al.text.length;sn++)mt.push(Me.splitLines(al.text[sn]))}}else Je.length==ce.ranges.length&&ie.options.pasteLinesPerSelection&&(mt=li(Je,function(Cr){return[Cr]}));for(var At=ie.curOp.updateInput,Bn=ce.ranges.length-1;Bn>=0;Bn--){var xn=ce.ranges[Bn],Ii=xn.from(),Hi=xn.to();xn.empty()&&(fe&&fe>0?Ii=Qt(Ii.line,Ii.ch-fe):ie.state.overwrite&&!$e?Hi=Qt(Hi.line,Math.min(Ti(Me,Hi.line).text.length,Hi.ch+hn(Je).length)):$e&&al&&al.lineWise&&al.text.join(`
`)==Je.join(`
`)&&(Ii=Hi=Qt(Ii.line,0)));var Ji={from:Ii,to:Hi,text:mt?mt[Bn%mt.length]:Je,origin:me||($e?"paste":ie.state.cutIncoming>Ge?"cut":"+input")};xh(ie.doc,Ji),ii(ie,"inputRead",ie,Ji)}ae&&!$e&&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&&$r(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 $e=0;$e<Me.electricChars.length;$e++)if(ae.indexOf(Me.electricChars.charAt($e))>-1){Ge=ps(ie,me.head.line,"smart");break}}else Me.electricInput&&Me.electricInput.test(Ti(ie.doc,me.head.line).text.slice(0,me.head.ch))&&(Ge=ps(ie,me.head.line,"smart"));Ge&&ii(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:Qt(me,0),head:Qt(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)&&so(this,ae[ce])(this,me,Ge),Jn(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:Fo(function(ce,me){var Me=ce.token?ce:ie.getMode(this.options,ce);if(Me.startState)throw new Error("Overlays may not be stateful.");yi(this.state.overlays,{mode:Me,modeSpec:ce,opaque:me&&me.opaque,priority:me&&me.priority||0},function(Ge){return Ge.priority}),this.state.modeGen++,sa(this)}),removeOverlay:Fo(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++,sa(this);return}}}),indentLine:Fo(function(ce,me,Me){typeof me!="string"&&typeof me!="number"&&(me==null?me=this.options.smartIndent?"smart":"prev":me=me?"add":"subtract"),Rn(this.doc,ce)&&ps(this,ce,me,Me)}),indentSelection:Fo(function(ce){for(var me=this.doc.sel.ranges,Me=-1,Ge=0;Ge<me.length;Ge++){var $e=me[Ge];if($e.empty())$e.head.line>Me&&(ps(this,$e.head.line,ce,!0),Me=$e.head.line,Ge==this.doc.sel.primIndex&&Ws(this));else{var Je=$e.from(),mt=$e.to(),sn=Math.max(Me,Je.line);Me=Math.min(this.lastLine(),mt.line-(mt.ch?0:1))+1;for(var At=sn;At<Me;++At)ps(this,At,ce);var Bn=this.doc.sel.ranges;Je.ch==0&&me.length==Bn.length&&Bn[Ge].from().ch>0&&Sh(this.doc,Ge,new Sa(Je,Bn[Ge].to()),Mt)}}}),getTokenAt:function(ce,me){return kr(this,ce,me)},getLineTokens:function(ce,me){return kr(this,Qt(ce),me,!0)},getTokenTypeAt:function(ce){ce=Wi(this.doc,ce);var me=jr(this,Ti(this.doc,ce.line)),Me=0,Ge=(me.length-1)/2,$e=ce.ch,Je;if($e==0)Je=me[2];else for(;;){var mt=Me+Ge>>1;if((mt?me[mt*2-1]:0)>=$e)Ge=mt;else if(me[mt*2+1]<$e)Me=mt+1;else{Je=me[mt*2+2];break}}var sn=Je?Je.indexOf("overlay "):-1;return sn<0?Je:sn==0?null:Je.slice(0,sn-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],$e=this.getModeAt(ce);if(typeof $e[me]=="string")Ge[$e[me]]&&Me.push(Ge[$e[me]]);else if($e[me])for(var Je=0;Je<$e[me].length;Je++){var mt=Ge[$e[me][Je]];mt&&Me.push(mt)}else $e.helperType&&Ge[$e.helperType]?Me.push(Ge[$e.helperType]):Ge[$e.name]&&Me.push(Ge[$e.name]);for(var sn=0;sn<Ge._global.length;sn++){var At=Ge._global[sn];At.pred($e,this)&&Rt(Me,At.val)==-1&&Me.push(At.val)}return Me},getStateAfter:function(ce,me){var Me=this.doc;return ce=tn(Me,ce==null?Me.first+Me.size-1:ce),oo(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=Wi(this.doc,ce):Me=ce?Ge.from():Ge.to(),Sr(this,Me,me||"page")},charCoords:function(ce,me){return Ea(this,Wi(this.doc,ce),me||"page")},coordsChar:function(ce,me){return ce=Do(this,ce,me||"page"),mr(this,ce.left,ce.top)},lineAtHeight:function(ce,me){return ce=Do(this,{top:ce,left:0},me||"page").top,Nt(this.doc,ce+this.display.viewOffset)},heightAtLine:function(ce,me,Me){var Ge=!1,$e;if(typeof ce=="number"){var Je=this.doc.first+this.doc.size-1;ce<this.doc.first?ce=this.doc.first:ce>Je&&(ce=Je,Ge=!0),$e=Ti(this.doc,ce)}else $e=ce;return bo(this,$e,{top:0,left:0},me||"page",Me||Ge).top+(Ge?this.doc.height-Et($e):0)},defaultTextHeight:function(){return ca(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,$e){var Je=this.display;ce=Sr(this,Wi(this.doc,ce));var mt=ce.bottom,sn=ce.left;if(me.style.position="absolute",me.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(me),Je.sizer.appendChild(me),Ge=="over")mt=ce.top;else if(Ge=="above"||Ge=="near"){var At=Math.max(Je.wrapper.clientHeight,this.doc.height),Bn=Math.max(Je.sizer.clientWidth,Je.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),sn+me.offsetWidth>Bn&&(sn=Bn-me.offsetWidth)}me.style.top=mt+"px",me.style.left=me.style.right="",$e=="right"?(sn=Je.sizer.clientWidth-me.offsetWidth,me.style.right="0px"):($e=="left"?sn=0:$e=="middle"&&(sn=(Je.sizer.clientWidth-me.offsetWidth)/2),me.style.left=sn+"px"),Me&&Dl(this,{left:sn,top:mt,right:sn+me.offsetWidth,bottom:mt+me.offsetHeight})},triggerOnKeyDown:Fo(Dg),triggerOnKeyPress:Fo(Pu),triggerOnKeyUp:Bg,triggerOnMouseDown:Fo(wu),execCommand:function(ce){if(Ph.hasOwnProperty(ce))return Ph[ce].call(null,this)},triggerElectric:Fo(function(ce){Zg(this,ce)}),findPosH:function(ce,me,Me,Ge){var $e=1;me<0&&($e=-1,me=-me);for(var Je=Wi(this.doc,ce),mt=0;mt<me&&(Je=bc(this.doc,Je,$e,Me,Ge),!Je.hitSide);++mt);return Je},moveH:Fo(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()},on)}),deleteH:Fo(function(ce,me){var Me=this.doc.sel,Ge=this.doc;Me.somethingSelected()?Ge.replaceSelection("",null,"+delete"):Sl(this,function($e){var Je=bc(Ge,$e.head,ce,me,!1);return ce<0?{from:Je,to:$e.head}:{from:$e.head,to:Je}})}),findPosV:function(ce,me,Me,Ge){var $e=1,Je=Ge;me<0&&($e=-1,me=-me);for(var mt=Wi(this.doc,ce),sn=0;sn<me;++sn){var At=Sr(this,mt,"div");if(Je==null?Je=At.left:At.left=Je,mt=Eh(this,At,$e,Me),mt.hitSide)break}return mt},moveV:Fo(function(ce,me){var Me=this,Ge=this.doc,$e=[],Je=!this.display.shift&&!Ge.extend&&Ge.sel.somethingSelected();if(Ge.extendSelectionsBy(function(sn){if(Je)return ce<0?sn.from():sn.to();var At=Sr(Me,sn.head,"div");sn.goalColumn!=null&&(At.left=sn.goalColumn),$e.push(At.left);var Bn=Eh(Me,At,ce,me);return me=="page"&&sn==Ge.sel.primary()&&vu(Me,Ea(Me,Bn,"div").top-At.top),Bn},on),$e.length)for(var mt=0;mt<Ge.sel.ranges.length;mt++)Ge.sel.ranges[mt].goalColumn=$e[mt]}),findWordAt:function(ce){var me=this.doc,Me=Ti(me,ce.line).text,Ge=ce.ch,$e=ce.ch;if(Me){var Je=this.getHelper(ce,"wordChars");(ce.sticky=="before"||$e==Me.length)&&Ge?--Ge:++$e;for(var mt=Me.charAt(Ge),sn=Ye(mt,Je)?function(At){return Ye(At,Je)}:/\s/.test(mt)?function(At){return/\s/.test(At)}:function(At){return!/\s/.test(At)&&!Ye(At)};Ge>0&&sn(Me.charAt(Ge-1));)--Ge;for(;$e<Me.length&&sn(Me.charAt($e));)++$e}return new Sa(Qt(ce.line,Ge),Qt(ce.line,$e))},toggleOverwrite:function(ce){ce!=null&&ce==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Dt(this.display.cursorDiv,"CodeMirror-overwrite"):Te(this.display.cursorDiv,"CodeMirror-overwrite"),Jn(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==gt()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Fo(function(ce,me){Vl(this,ce,me)}),getScrollInfo:function(){var ce=this.display.scroller;return{left:ce.scrollLeft,top:ce.scrollTop,height:ce.scrollHeight-Mr(this)-this.display.barHeight,width:ce.scrollWidth-Mr(this)-this.display.barWidth,clientHeight:po(this),clientWidth:fo(this)}},scrollIntoView:Fo(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:Qt(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?Uo(this,ce):yu(this,ce.from,ce.to,ce.margin)}),setSize:Fo(function(ce,me){var Me=this,Ge=function(Je){return typeof Je=="number"||/^\d+$/.test(String(Je))?Je+"px":Je};ce!=null&&(this.display.wrapper.style.width=Ge(ce)),me!=null&&(this.display.wrapper.style.height=Ge(me)),this.options.lineWrapping&&To(this);var $e=this.display.viewFrom;this.doc.iter($e,this.display.viewTo,function(Je){if(Je.widgets){for(var mt=0;mt<Je.widgets.length;mt++)if(Je.widgets[mt].noHScroll){vo(Me,$e,"widget");break}}++$e}),this.curOp.forceUpdate=!0,Jn(this,"refresh",this)}),operation:function(ce){return $r(this,ce)},startOperation:function(){return yo(this)},endOperation:function(){return Ya(this)},refresh:Fo(function(){var ce=this.display.cachedTextHeight;sa(this),this.curOp.forceUpdate=!0,Da(this),Vl(this,this.doc.scrollLeft,this.doc.scrollTop),gh(this.display),(ce==null||Math.abs(ce-ca(this.display))>.5||this.options.lineWrapping)&&Wr(this),Jn(this,"refresh",this)}),swapDoc:Fo(function(ce){var me=this.doc;return me.cm=null,this.state.selectingText&&this.state.selectingText(),af(this,ce),Da(this),this.display.input.reset(),Vl(this,ce.scrollLeft,ce.scrollTop),this.curOp.forceScroll=!0,ii(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}},Ui(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,$e=Ti(ie,ae.line),Je=me&&ie.direction=="rtl"?-fe:fe;function mt(){var Gr=ae.line+Je;return Gr<ie.first||Gr>=ie.first+ie.size?!1:(ae=new Qt(Gr,ae.ch,ae.sticky),$e=Ti(ie,Gr))}function sn(Gr){var Nr;if(ce=="codepoint"){var Jr=$e.text.charCodeAt(ae.ch+(ce>0?0:-1));isNaN(Jr)?Nr=null:Nr=new Qt(ae.line,Math.max(0,Math.min($e.text.length,ae.ch+fe*(Jr>=55296&&Jr<56320?2:1))),-fe)}else me?Nr=gf(ie.cm,$e,ae,fe):Nr=os($e,ae,fe);if(Nr==null)if(!Gr&&mt())ae=Fc(me,ie.cm,$e,ae.line,Je);else return!1;else ae=Nr;return!0}if(ce=="char"||ce=="codepoint")sn();else if(ce=="column")sn(!0);else if(ce=="word"||ce=="group")for(var At=null,Bn=ce=="group",xn=ie.cm&&ie.cm.getHelper(ae,"wordChars"),Ii=!0;!(fe<0&&!sn(!Ii));Ii=!1){var Hi=$e.text.charAt(ae.ch)||`
`,Ji=Ye(Hi,xn)?"w":Bn&&Hi==`
`?"n":!Bn||/\s/.test(Hi)?null:"p";if(Bn&&!Ii&&!Ji&&(Ji="s"),At&&At!=Ji){fe<0&&(fe=1,sn(),ae.sticky="after");break}if(Ji&&(At=Ji),fe>0&&!sn(!Ii))break}var Cr=xc(ie,ae,Me,Ge,!0);return Nn(Me,Cr)&&(Cr.hitSide=!0),Cr}function Eh(ie,ae,fe,ce){var me=ie.doc,Me=ae.left,Ge;if(ce=="page"){var $e=Math.min(ie.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),Je=Math.max($e-.5*ca(ie.display),3);Ge=(fe>0?ae.bottom:ae.top)+fe*Je}else ce=="line"&&(Ge=fe>0?ae.bottom+3:ae.top-3);for(var mt;mt=mr(ie,Me,Ge),!!mt.outside;){if(fe<0?Ge<=0:Ge>=me.height){mt.hitSide=!0;break}Ge+=fe*5}return mt}var Fa=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};Fa.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($e){for(var Je=$e.target;Je;Je=Je.parentNode){if(Je==me)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(Je.className))break}return!1}Cn(me,"paste",function($e){!Me($e)||Di(ce,$e)||zg($e,ce)||ze<=11&&setTimeout(so(ce,function(){return ae.updateFromDOM()}),20)}),Cn(me,"compositionstart",function($e){ae.composing={data:$e.data,done:!1}}),Cn(me,"compositionupdate",function($e){ae.composing||(ae.composing={data:$e.data,done:!1})}),Cn(me,"compositionend",function($e){ae.composing&&($e.data!=ae.composing.data&&ae.readFromDOMSoon(),ae.composing.done=!0)}),Cn(me,"touchstart",function(){return fe.forceCompositionEnd()}),Cn(me,"input",function(){ae.composing||ae.readFromDOMSoon()});function Ge($e){if(!(!Me($e)||Di(ce,$e))){if(ce.somethingSelected())ad({lineWise:!1,text:ce.getSelections()}),$e.type=="cut"&&ce.replaceSelection("",null,"cut");else if(ce.options.lineWiseCopyCut){var Je=Wg(ce);ad({lineWise:!0,text:Je.text}),$e.type=="cut"&&ce.operation(function(){ce.setSelections(Je.ranges,0,Mt),ce.replaceSelection("",null,"cut")})}else return;if($e.clipboardData){$e.clipboardData.clearData();var mt=al.text.join(`
`);if($e.clipboardData.setData("Text",mt),$e.clipboardData.getData("Text")==mt){$e.preventDefault();return}}var sn=Gg(),At=sn.firstChild;ce.display.lineSpace.insertBefore(sn,ce.display.lineSpace.firstChild),At.value=al.text.join(`
`);var Bn=document.activeElement;It(At),setTimeout(function(){ce.display.lineSpace.removeChild(sn),Bn.focus(),Bn==me&&fe.showPrimarySelection()},50)}}Cn(me,"copy",Ge),Cn(me,"cut",Ge)},Fa.prototype.screenReaderLabelChanged=function(ie){ie?this.div.setAttribute("aria-label",ie):this.div.removeAttribute("aria-label")},Fa.prototype.prepareSelection=function(){var ie=bl(this.cm,!1);return ie.focus=document.activeElement==this.div,ie},Fa.prototype.showSelection=function(ie,ae){!ie||!this.cm.display.view.length||((ie.focus||ae)&&this.showPrimarySelection(),this.showMultipleSelections(ie))},Fa.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Fa.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&&qn(pi(Me,Ge),ce)==0&&qn(Pi(Me,Ge),me)==0)){var $e=ae.display.view,Je=ce.line>=ae.display.viewFrom&&Ef(ae,ce)||{node:$e[0].measure.map[2],offset:0},mt=me.line<ae.display.viewTo&&Ef(ae,me);if(!mt){var sn=$e[$e.length-1].measure,At=sn.maps?sn.maps[sn.maps.length-1]:sn.map;mt={node:At[At.length-1],offset:At[At.length-2]-At[At.length-3]}}if(!Je||!mt){ie.removeAllRanges();return}var Bn=ie.rangeCount&&ie.getRangeAt(0),xn;try{xn=ot(Je.node,Je.offset,mt.offset,mt.node)}catch(Ii){}xn&&(!ve&&ae.state.focused?(ie.collapse(Je.node,Je.offset),xn.collapsed||(ie.removeAllRanges(),ie.addRange(xn))):(ie.removeAllRanges(),ie.addRange(xn)),Bn&&ie.anchorNode==null?ie.addRange(Bn):ve&&this.startGracePeriod()),this.rememberSelection()}},Fa.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)},Fa.prototype.showMultipleSelections=function(ie){Oe(this.cm.display.cursorDiv,ie.cursors),Oe(this.cm.display.selectionDiv,ie.selection)},Fa.prototype.rememberSelection=function(){var ie=this.getSelection();this.lastAnchorNode=ie.anchorNode,this.lastAnchorOffset=ie.anchorOffset,this.lastFocusNode=ie.focusNode,this.lastFocusOffset=ie.focusOffset},Fa.prototype.selectionInEditor=function(){var ie=this.getSelection();if(!ie.rangeCount)return!1;var ae=ie.getRangeAt(0).commonAncestorContainer;return wt(this.div,ae)},Fa.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Fa.prototype.blur=function(){this.div.blur()},Fa.prototype.getField=function(){return this.div},Fa.prototype.supportsTouch=function(){return!0},Fa.prototype.receivedFocus=function(){var ie=this;this.selectionInEditor()?this.pollSelection():$r(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)},Fa.prototype.selectionChanged=function(){var ie=this.getSelection();return ie.anchorNode!=this.lastAnchorNode||ie.anchorOffset!=this.lastAnchorOffset||ie.focusNode!=this.lastFocusNode||ie.focusOffset!=this.lastFocusOffset},Fa.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var ie=this.getSelection(),ae=this.cm;if(ne&&tt&&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&&$r(ae,function(){Gs(ae.doc,Qu(fe,ce),Mt),(fe.bad||ce.bad)&&(ae.curOp.selectionChanged=!0)})}}},Fa.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=Qt(ce.line-1,Ti(ie.doc,ce.line-1).length)),me.ch==Ti(ie.doc,me.line).text.length&&me.line<ie.lastLine()&&(me=Qt(me.line+1,0)),ce.line<ae.viewFrom||me.line>ae.viewTo-1)return!1;var Me,Ge,$e;ce.line==ae.viewFrom||(Me=$a(ie,ce.line))==0?(Ge=ut(ae.view[0].line),$e=ae.view[0].node):(Ge=ut(ae.view[Me].line),$e=ae.view[Me-1].node.nextSibling);var Je=$a(ie,me.line),mt,sn;if(Je==ae.view.length-1?(mt=ae.viewTo-1,sn=ae.lineDiv.lastChild):(mt=ut(ae.view[Je+1].line)-1,sn=ae.view[Je+1].node.previousSibling),!$e)return!1;for(var At=ie.doc.splitLines(Yd(ie,$e,sn,Ge,mt)),Bn=fr(ie.doc,Qt(Ge,0),Qt(mt,Ti(ie.doc,mt).text.length));At.length>1&&Bn.length>1;)if(hn(At)==hn(Bn))At.pop(),Bn.pop(),mt--;else if(At[0]==Bn[0])At.shift(),Bn.shift(),Ge++;else break;for(var xn=0,Ii=0,Hi=At[0],Ji=Bn[0],Cr=Math.min(Hi.length,Ji.length);xn<Cr&&Hi.charCodeAt(xn)==Ji.charCodeAt(xn);)++xn;for(var Gr=hn(At),Nr=hn(Bn),Jr=Math.min(Gr.length-(At.length==1?xn:0),Nr.length-(Bn.length==1?xn:0));Ii<Jr&&Gr.charCodeAt(Gr.length-Ii-1)==Nr.charCodeAt(Nr.length-Ii-1);)++Ii;if(At.length==1&&Bn.length==1&&Ge==ce.line)for(;xn&&xn>ce.ch&&Gr.charCodeAt(Gr.length-Ii-1)==Nr.charCodeAt(Nr.length-Ii-1);)xn--,Ii++;At[At.length-1]=Gr.slice(0,Gr.length-Ii).replace(/^\u200b+/,""),At[0]=At[0].slice(xn).replace(/\u200b+$/,"");var Mo=Qt(Ge,xn),br=Qt(mt,Bn.length?hn(Bn).length-Ii:0);if(At.length>1||At[0]||qn(Mo,br))return qh(ie.doc,At,Mo,br,"+input"),!0},Fa.prototype.ensurePolled=function(){this.forceCompositionEnd()},Fa.prototype.reset=function(){this.forceCompositionEnd()},Fa.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Fa.prototype.readFromDOMSoon=function(){var 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))},Fa.prototype.updateFromDOM=function(){var ie=this;(this.cm.isReadOnly()||!this.pollContent())&&$r(this.cm,function(){return sa(ie.cm)})},Fa.prototype.setUneditable=function(ie){ie.contentEditable="false"},Fa.prototype.onKeyPress=function(ie){ie.charCode==0||this.composing||(ie.preventDefault(),this.cm.isReadOnly()||so(this.cm,Lc)(this.cm,String.fromCharCode(ie.charCode==null?ie.keyCode:ie.charCode),0))},Fa.prototype.readOnlyChanged=function(ie){this.div.contentEditable=String(ie!="nocursor")},Fa.prototype.onContextMenu=function(){},Fa.prototype.resetPosition=function(){},Fa.prototype.needsContentAttribute=!0;function Ef(ie,ae){var fe=ar(ie,ae.line);if(!fe||fe.hidden)return null;var ce=Ti(ie.doc,ae.line),me=qr(fe,ce,ae.line),Me=pn(ce,ie.doc.direction),Ge="left";if(Me){var $e=Wt(Me,ae.ch);Ge=$e%2?"right":"left"}var Je=Ko(me.map,ae.ch,Ge);return Je.offset=Je.collapse=="right"?Je.end:Je.start,Je}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,$e=ie.doc.lineSeparator(),Je=!1;function mt(xn){return function(Ii){return Ii.id==xn}}function sn(){Ge&&(Me+=$e,Je&&(Me+=$e),Ge=Je=!1)}function At(xn){xn&&(sn(),Me+=xn)}function Bn(xn){if(xn.nodeType==1){var Ii=xn.getAttribute("cm-text");if(Ii){At(Ii);return}var Hi=xn.getAttribute("cm-marker"),Ji;if(Hi){var Cr=ie.findMarks(Qt(ce,0),Qt(me+1,0),mt(+Hi));Cr.length&&(Ji=Cr[0].find(0))&&At(fr(ie.doc,Ji.from,Ji.to).join($e));return}if(xn.getAttribute("contenteditable")=="false")return;var Gr=/^(pre|div|p|li|table|br)$/i.test(xn.nodeName);if(!/^br$/i.test(xn.nodeName)&&xn.textContent.length==0)return;Gr&&sn();for(var Nr=0;Nr<xn.childNodes.length;Nr++)Bn(xn.childNodes[Nr]);/^(pre|p)$/i.test(xn.nodeName)&&(Je=!0),Gr&&(Ge=!0)}else xn.nodeType==3&&At(xn.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;Bn(ae),ae!=fe;)ae=ae.nextSibling,Je=!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(Qt(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||!wt(ce,ae))return Vd(Qt(ut(ie.line),0),!0);if(ae==ce&&(me=!0,ae=ce.childNodes[fe],fe=0,!ae)){var Me=ie.rest?hn(ie.rest):ie.line;return Vd(Qt(ut(Me),Me.text.length),me)}var Ge=ae.nodeType==3?ae:null,$e=ae;for(!Ge&&ae.childNodes.length==1&&ae.firstChild.nodeType==3&&(Ge=ae.firstChild,fe&&(fe=Ge.nodeValue.length));$e.parentNode!=ce;)$e=$e.parentNode;var Je=ie.measure,mt=Je.maps;function sn(Ji,Cr,Gr){for(var Nr=-1;Nr<(mt?mt.length:0);Nr++)for(var Jr=Nr<0?Je.map:mt[Nr],Mo=0;Mo<Jr.length;Mo+=3){var br=Jr[Mo+2];if(br==Ji||br==Cr){var Qo=ut(Nr<0?ie.line:ie.rest[Nr]),Oa=Jr[Mo]+Gr;return(Gr<0||br!=Ji)&&(Oa=Jr[Mo+(Gr?1:0)]),Qt(Qo,Oa)}}}var At=sn(Ge,$e,fe);if(At)return Vd(At,me);for(var Bn=$e.nextSibling,xn=Ge?Ge.nodeValue.length-fe:0;Bn;Bn=Bn.nextSibling){if(At=sn(Bn,Bn.firstChild,0),At)return Vd(Qt(At.line,At.ch-xn),me);xn+=Bn.textContent.length}for(var Ii=$e.previousSibling,Hi=fe;Ii;Ii=Ii.previousSibling){if(At=sn(Ii,Ii.firstChild,-1),At)return Vd(Qt(At.line,At.ch+Hi),me);Hi+=Ii.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"),Cn(me,"input",function(){rt&&ze>=9&&ae.hasSelection&&(ae.hasSelection=null),fe.poll()}),Cn(me,"paste",function(Ge){Di(ce,Ge)||zg(Ge,ce)||(ce.state.pasteIncoming=+new Date,fe.fastPoll())});function Me(Ge){if(!Di(ce,Ge)){if(ce.somethingSelected())ad({lineWise:!1,text:ce.getSelections()});else if(ce.options.lineWiseCopyCut){var $e=Wg(ce);ad({lineWise:!0,text:$e.text}),Ge.type=="cut"?ce.setSelections($e.ranges,null,Mt):(fe.prevInput="",me.value=$e.text.join(`
`),It(me))}else return;Ge.type=="cut"&&(ce.state.cutIncoming=+new Date)}}Cn(me,"cut",Me),Cn(me,"copy",Me),Cn(ie.scroller,"paste",function(Ge){if(!(Qn(ie,Ge)||Di(ce,Ge))){if(!me.dispatchEvent){ce.state.pasteIncoming=+new Date,fe.focus();return}var $e=new Event("paste");$e.clipboardData=Ge.clipboardData,me.dispatchEvent($e)}}),Cn(ie.lineSpace,"selectstart",function(Ge){Qn(ie,Ge)||ir(Ge)}),Cn(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"})}}),Cn(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=Sr(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&&It(this.textarea),rt&&ze>=9&&(this.hasSelection=fe)}else ie||(this.prevInput=this.textarea.value="",rt&&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"&&(!te||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(rt&&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,$e=Math.min(ce.length,me.length);Ge<$e&&ce.charCodeAt(Ge)==me.charCodeAt(Ge);)++Ge;return $r(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(){rt&&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 $e=fe.options.resetSelectionOnContextMenu;$e&&fe.doc.sel.contains(Me)==-1&&so(fe,Gs)(fe.doc,Qu(Me),Mt);var Je=me.style.cssText,mt=ae.wrapper.style.cssText,sn=ae.wrapper.offsetParent.getBoundingClientRect();ae.wrapper.style.cssText="position: static",me.style.cssText=`position: absolute; width: 30px; height: 30px;
top: `+(ie.clientY-sn.top-5)+"px; left: "+(ie.clientX-sn.left-5)+`px;
z-index: 1000; background: `+(rt?"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=xn,ce.selForContextMenu=fe.doc.sel,clearTimeout(ce.detectingSelectAll);function Bn(){if(me.selectionStart!=null){var Hi=fe.somethingSelected(),Ji="\u200B"+(Hi?me.value:"");me.value="\u21DA",me.value=Ji,ae.prevInput=Hi?"":"\u200B",me.selectionStart=1,me.selectionEnd=Ji.length,ce.selForContextMenu=fe.doc.sel}}function xn(){if(ae.contextMenuPending==xn&&(ae.contextMenuPending=!1,ae.wrapper.style.cssText=mt,me.style.cssText=Je,rt&&ze<9&&ce.scrollbars.setScrollTop(ce.scroller.scrollTop=Ge),me.selectionStart!=null)){(!rt||rt&&ze<9)&&Bn();var Hi=0,Ji=function(){ce.selForContextMenu==fe.doc.sel&&me.selectionStart==0&&me.selectionEnd>0&&ae.prevInput=="\u200B"?so(fe,rs)(fe):Hi++<10?ce.detectingSelectAll=setTimeout(Ji,500):(ce.selForContextMenu=null,ce.input.reset())};ce.detectingSelectAll=setTimeout(Ji,200)}}if(rt&&ze>=9&&Bn(),Ce){ri(ie);var Ii=function(){Ci(window,"mouseup",Ii),setTimeout(xn,20)};Cn(window,"mouseup",Ii)}else setTimeout(xn,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?nn(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=$e.getValue()}var me;if(ie.form&&(Cn(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(Je){}}ae.finishInit=function(Je){Je.save=ce,Je.getTextArea=function(){return ie},Je.toTextArea=function(){Je.toTextArea=isNaN,ce(),ie.parentNode.removeChild(Je.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 $e=la(function(Je){return ie.parentNode.insertBefore(Je,ie.nextSibling)},ae);return $e}function _d(ie){ie.off=Ci,ie.on=Cn,ie.wheelEventPixels=Nl,ie.Doc=Ns,ie.splitLines=io,ie.countColumn=at,ie.findColumn=Dn,ie.isWordChar=Ne,ie.Pass=Yt,ie.signal=Jn,ie.Line=dn,ie.changeEnd=vh,ie.scrollbarModel=kl,ie.Pos=Qt,ie.cmpPos=qn,ie.modes=mi,ie.mimeModes=ti,ie.resolveMode=un,ie.getMode=an,ie.modeExtensions=jt,ie.extendMode=mn,ie.copyState=Zi,ie.startState=lr,ie.innerMode=ji,ie.commands=Ph,ie.keyMap=yl,ie.keyName=n0,ie.isModifierKey=jd,ie.lookupKey=Kl,ie.normalizeKeyMap=Ag,ie.StringStream=Zn,ie.SharedTextMarker=Bu,ie.TextMarker=Vt,ie.LineWidget=$u,ie.e_preventDefault=ir,ie.e_stopPropagation=Ir,ie.e_stop=ri,ie.addClass=Dt,ie.contains=wt,ie.rmClass=Te,ie.keyNames=Nu}s0(la),Ch(la);var eh="iter insert remove copy getEditor constructor".split(" ");for(var kc in Ns.prototype)Ns.prototype.hasOwnProperty(kc)&&Rt(eh,kc)<0&&(la.prototype[kc]=function(ie){return function(){return ie.apply(this.doc,arguments)}}(Ns.prototype[kc]));return Ui(Ns),la.inputStyles={textarea:ds,contenteditable:Fa},la.defineMode=function(ie){!la.defaults.mode&&ie!="null"&&(la.defaults.mode=ie),Yi.apply(this,arguments)},la.defineMIME=pr,la.defineMode("null",function(){return{token:function(ie){return ie.skipToEnd()}}}),la.defineMIME("text/plain","null"),la.defineExtension=function(ie,ae){la.prototype[ie]=ae},la.defineDocExtension=function(ie,ae){Ns.prototype[ie]=ae},la.fromTextArea=h0,_d(la),la.version="5.58.2",la})},25419:function(gn,en,we){(function(ve){ve(we(89780),we(15525),we(98101))})(function(ve){"use strict";ve.defineMode("markdown",function(_e,lt){var it=ve.getMode(_e,"text/html"),rt=it.name=="null";function ze(at){if(ve.findModeByName){var He=ve.findModeByName(at);He&&(at=He.mime||He.mimes[0])}var Rt=ve.getMode(_e,at);return Rt.name=="null"?null:Rt}lt.highlightFormatting===void 0&&(lt.highlightFormatting=!1),lt.maxBlockquoteDepth===void 0&&(lt.maxBlockquoteDepth=0),lt.taskLists===void 0&&(lt.taskLists=!1),lt.strikethrough===void 0&&(lt.strikethrough=!1),lt.emoji===void 0&&(lt.emoji=!1),lt.fencedCodeBlockHighlighting===void 0&&(lt.fencedCodeBlockHighlighting=!0),lt.fencedCodeBlockDefaultMode===void 0&&(lt.fencedCodeBlockDefaultMode="text/plain"),lt.xml===void 0&&(lt.xml=!0),lt.tokenTypeOverrides===void 0&&(lt.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 yt in Ue)Ue.hasOwnProperty(yt)&&lt.tokenTypeOverrides[yt]&&(Ue[yt]=lt.tokenTypeOverrides[yt]);var tt=/^([*\-_])(?:\s*\1){2,}\s*$/,De=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,xt=/^\[(x| )\](?=\s)/i,Ve=lt.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,ct=/^ {0,3}(?:\={1,}|-{2,})\s*$/,Ee=/^[^#!\[\]*_\\<>` "'(~:]+/,ne=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,te=/^\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(at,He,Rt){return He.f=He.inline=Rt,Rt(at,He)}function pe(at,He,Rt){return He.f=He.block=Rt,Rt(at,He)}function ye(at){return!at||!/\S/.test(at.string)}function Ce(at){if(at.linkTitle=!1,at.linkHref=!1,at.linkText=!1,at.em=!1,at.strong=!1,at.strikethrough=!1,at.quote=0,at.indentedCode=!1,at.f==Te){var He=rt;if(!He){var Rt=ve.innerMode(it,at.htmlState);He=Rt.mode.name=="xml"&&Rt.state.tagStart===null&&!Rt.state.context&&Rt.state.tokenize.isInText}He&&(at.f=nt,at.block=je,at.htmlState=null)}return at.trailingSpace=0,at.trailingSpaceNewLine=!1,at.prevLine=at.thisLine,at.thisLine={stream:null},null}function je(at,He){var Rt=at.column()===He.indentation,Zt=ye(He.prevLine.stream),Yt=He.indentedCode,Mt=He.prevLine.hr,zt=He.list!==!1,on=(He.listStack[He.listStack.length-1]||0)+3;He.indentedCode=!1;var Dn=He.indentation;if(He.indentationDiff===null&&(He.indentationDiff=He.indentation,zt)){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 kt=!Zt&&!Mt&&!He.prevLine.header&&(!zt||!Yt)&&!He.prevLine.fencedCodeEnd,vt=(He.list===!1||Mt||Zt)&&He.indentation<=on&&at.match(tt),hn=null;if(He.indentationDiff>=4&&(Yt||He.prevLine.fencedCodeEnd||He.prevLine.header||Zt))return at.skipToEnd(),He.indentedCode=!0,Ue.code;if(at.eatSpace())return null;if(Rt&&He.indentation<=on&&(hn=at.match(Ve))&&hn[1].length<=6)return He.quote=0,He.header=hn[1].length,He.thisLine.header=!0,lt.highlightFormatting&&(He.formatting="header"),He.f=He.inline,Oe(He);if(He.indentation<=on&&at.eat(">"))return He.quote=Rt?1:He.quote+1,lt.highlightFormatting&&(He.formatting="quote"),at.eatSpace(),Oe(He);if(!vt&&!He.setext&&Rt&&He.indentation<=on&&(hn=at.match(De))){var li=hn[1]?"ol":"ul";return He.indentation=Dn+at.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,lt.taskLists&&at.match(xt,!1)&&(He.taskList=!0),He.f=He.inline,lt.highlightFormatting&&(He.formatting=["list","list-"+li]),Oe(He)}else{if(Rt&&He.indentation<=on&&(hn=at.match(ne,!0)))return He.quote=0,He.fencedEndRE=new RegExp(hn[1]+"+ *$"),He.localMode=lt.fencedCodeBlockHighlighting&&ze(hn[2]||lt.fencedCodeBlockDefaultMode),He.localMode&&(He.localState=ve.startState(He.localMode)),He.f=He.block=Ie,lt.highlightFormatting&&(He.formatting="code-block"),He.code=-1,Oe(He);if(He.setext||(!kt||!zt)&&!He.quote&&He.list===!1&&!He.code&&!vt&&!te.test(at.string)&&(hn=at.lookAhead(1))&&(hn=hn.match(ct)))return He.setext?(He.header=He.setext,He.setext=0,at.skipToEnd(),lt.highlightFormatting&&(He.formatting="header")):(He.header=hn[0].charAt(0)=="="?1:2,He.setext=He.header),He.thisLine.header=!0,He.f=He.inline,Oe(He);if(vt)return at.skipToEnd(),He.hr=!0,He.thisLine.hr=!0,Ue.hr;if(at.peek()==="[")return de(at,He,Lt)}return de(at,He,He.inline)}function Te(at,He){var Rt=it.token(at,He.htmlState);if(!rt){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&&at.current().indexOf(">")>-1)&&(He.f=nt,He.block=je,He.htmlState=null)}return Rt}function Ie(at,He){var Rt=He.listStack[He.listStack.length-1]||0,Zt=He.indentation<Rt,Yt=Rt+3;if(He.fencedEndRE&&He.indentation<=Yt&&(Zt||at.match(He.fencedEndRE))){lt.highlightFormatting&&(He.formatting="code-block");var Mt;return Zt||(Mt=Oe(He)),He.localMode=He.localState=null,He.block=je,He.f=nt,He.fencedEndRE=null,He.code=0,He.thisLine.fencedCodeEnd=!0,Zt?pe(at,He,He.block):Mt}else return He.localMode?He.localMode.token(at,He.localState):(at.skipToEnd(),Ue.code)}function Oe(at){var He=[];if(at.formatting){He.push(Ue.formatting),typeof at.formatting=="string"&&(at.formatting=[at.formatting]);for(var Rt=0;Rt<at.formatting.length;Rt++)He.push(Ue.formatting+"-"+at.formatting[Rt]),at.formatting[Rt]==="header"&&He.push(Ue.formatting+"-"+at.formatting[Rt]+"-"+at.header),at.formatting[Rt]==="quote"&&(!lt.maxBlockquoteDepth||lt.maxBlockquoteDepth>=at.quote?He.push(Ue.formatting+"-"+at.formatting[Rt]+"-"+at.quote):He.push("error"))}if(at.taskOpen)return He.push("meta"),He.length?He.join(" "):null;if(at.taskClosed)return He.push("property"),He.length?He.join(" "):null;if(at.linkHref?He.push(Ue.linkHref,"url"):(at.strong&&He.push(Ue.strong),at.em&&He.push(Ue.em),at.strikethrough&&He.push(Ue.strikethrough),at.emoji&&He.push(Ue.emoji),at.linkText&&He.push(Ue.linkText),at.code&&He.push(Ue.code),at.image&&He.push(Ue.image),at.imageAltText&&He.push(Ue.imageAltText,"link"),at.imageMarker&&He.push(Ue.imageMarker)),at.header&&He.push(Ue.header,Ue.header+"-"+at.header),at.quote&&(He.push(Ue.quote),!lt.maxBlockquoteDepth||lt.maxBlockquoteDepth>=at.quote?He.push(Ue.quote+"-"+at.quote):He.push(Ue.quote+"-"+lt.maxBlockquoteDepth)),at.list!==!1){var Zt=(at.listStack.length-1)%3;Zt?Zt===1?He.push(Ue.list2):He.push(Ue.list3):He.push(Ue.list1)}return at.trailingSpaceNewLine?He.push("trailing-space-new-line"):at.trailingSpace&&He.push("trailing-space-"+(at.trailingSpace%2?"a":"b")),He.length?He.join(" "):null}function Re(at,He){if(at.match(Ee,!0))return Oe(He)}function nt(at,He){var Rt=He.text(at,He);if(typeof Rt!="undefined")return Rt;if(He.list)return He.list=null,Oe(He);if(He.taskList){var Zt=at.match(xt,!0)[1]===" ";return Zt?He.taskOpen=!0:He.taskClosed=!0,lt.highlightFormatting&&(He.formatting="task"),He.taskList=!1,Oe(He)}if(He.taskOpen=!1,He.taskClosed=!1,He.header&&at.match(/^#+$/,!0))return lt.highlightFormatting&&(He.formatting="header"),Oe(He);var Yt=at.next();if(He.linkTitle){He.linkTitle=!1;var Mt=Yt;Yt==="("&&(Mt=")"),Mt=(Mt+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var zt="^\\s*(?:[^"+Mt+"\\\\]+|\\\\\\\\|\\\\.)"+Mt;if(at.match(new RegExp(zt),!0))return Ue.linkHref}if(Yt==="`"){var on=He.formatting;lt.highlightFormatting&&(He.formatting="code"),at.eatWhile("`");var Dn=at.current().length;if(He.code==0&&(!He.quote||Dn==1))return He.code=Dn,Oe(He);if(Dn==He.code){var kt=Oe(He);return He.code=0,kt}else return He.formatting=on,Oe(He)}else if(He.code)return Oe(He);if(Yt==="\\"&&(at.next(),lt.highlightFormatting)){var vt=Oe(He),hn=Ue.formatting+"-escape";return vt?vt+" "+hn:hn}if(Yt==="!"&&at.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return He.imageMarker=!0,He.image=!0,lt.highlightFormatting&&(He.formatting="image"),Oe(He);if(Yt==="["&&He.imageMarker&&at.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return He.imageMarker=!1,He.imageAltText=!0,lt.highlightFormatting&&(He.formatting="image"),Oe(He);if(Yt==="]"&&He.imageAltText){lt.highlightFormatting&&(He.formatting="image");var vt=Oe(He);return He.imageAltText=!1,He.image=!1,He.inline=He.f=wt,vt}if(Yt==="["&&!He.image)return He.linkText&&at.match(/^.*?\]/)||(He.linkText=!0,lt.highlightFormatting&&(He.formatting="link")),Oe(He);if(Yt==="]"&&He.linkText){lt.highlightFormatting&&(He.formatting="link");var vt=Oe(He);return He.linkText=!1,He.inline=He.f=at.match(/\(.*?\)| ?\[.*?\]/,!1)?wt:nt,vt}if(Yt==="<"&&at.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){He.f=He.inline=ot,lt.highlightFormatting&&(He.formatting="link");var vt=Oe(He);return vt?vt+=" ":vt="",vt+Ue.linkInline}if(Yt==="<"&&at.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){He.f=He.inline=ot,lt.highlightFormatting&&(He.formatting="link");var vt=Oe(He);return vt?vt+=" ":vt="",vt+Ue.linkEmail}if(lt.xml&&Yt==="<"&&at.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var li=at.string.indexOf(">",at.pos);if(li!=-1){var yi=at.string.substring(at.start,li);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(yi)&&(He.md_inside=!0)}return at.backUp(1),He.htmlState=ve.startState(it),pe(at,He,Te)}if(lt.xml&&Yt==="<"&&at.match(/^\/\w*?>/))return He.md_inside=!1,"tag";if(Yt==="*"||Yt==="_"){for(var We=1,Fe=at.pos==1?" ":at.string.charAt(at.pos-2);We<3&&at.eat(Yt);)We++;var xe=at.peek()||" ",Ne=!/\s/.test(xe)&&(!ue.test(xe)||/\s/.test(Fe)||ue.test(Fe)),Ye=!/\s/.test(Fe)&&(!ue.test(Fe)||/\s/.test(xe)||ue.test(xe)),ke=null,et=null;if(We%2&&(!He.em&&Ne&&(Yt==="*"||!Ye||ue.test(Fe))?ke=!0:He.em==Yt&&Ye&&(Yt==="*"||!Ne||ue.test(xe))&&(ke=!1)),We>1&&(!He.strong&&Ne&&(Yt==="*"||!Ye||ue.test(Fe))?et=!0:He.strong==Yt&&Ye&&(Yt==="*"||!Ne||ue.test(xe))&&(et=!1)),et!=null||ke!=null){lt.highlightFormatting&&(He.formatting=ke==null?"strong":et==null?"em":"strong em"),ke===!0&&(He.em=Yt),et===!0&&(He.strong=Yt);var kt=Oe(He);return ke===!1&&(He.em=!1),et===!1&&(He.strong=!1),kt}}else if(Yt===" "&&(at.eat("*")||at.eat("_"))){if(at.peek()===" ")return Oe(He);at.backUp(1)}if(lt.strikethrough){if(Yt==="~"&&at.eatWhile(Yt)){if(He.strikethrough){lt.highlightFormatting&&(He.formatting="strikethrough");var kt=Oe(He);return He.strikethrough=!1,kt}else if(at.match(/^[^\s]/,!1))return He.strikethrough=!0,lt.highlightFormatting&&(He.formatting="strikethrough"),Oe(He)}else if(Yt===" "&&at.match(/^~~/,!0)){if(at.peek()===" ")return Oe(He);at.backUp(2)}}if(lt.emoji&&Yt===":"&&at.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){He.emoji=!0,lt.highlightFormatting&&(He.formatting="emoji");var _t=Oe(He);return He.emoji=!1,_t}return Yt===" "&&(at.match(/^ +$/,!1)?He.trailingSpace++:He.trailingSpace&&(He.trailingSpaceNewLine=!0)),Oe(He)}function ot(at,He){var Rt=at.next();if(Rt===">"){He.f=He.inline=nt,lt.highlightFormatting&&(He.formatting="link");var Zt=Oe(He);return Zt?Zt+=" ":Zt="",Zt+Ue.linkInline}return at.match(/^[^>]+/,!0),Ue.linkInline}function wt(at,He){if(at.eatSpace())return null;var Rt=at.next();return Rt==="("||Rt==="["?(He.f=He.inline=Dt(Rt==="("?")":"]"),lt.highlightFormatting&&(He.formatting="link-string"),He.linkHref=!0,Oe(He)):"error"}var gt={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function Dt(at){return function(He,Rt){var Zt=He.next();if(Zt===at){Rt.f=Rt.inline=nt,lt.highlightFormatting&&(Rt.formatting="link-string");var Yt=Oe(Rt);return Rt.linkHref=!1,Yt}return He.match(gt[at]),Rt.linkHref=!0,Oe(Rt)}}function Lt(at,He){return at.match(/^([^\]\\]|\\.)*\]:/,!1)?(He.f=It,at.next(),lt.highlightFormatting&&(He.formatting="link"),He.linkText=!0,Oe(He)):de(at,He,nt)}function It(at,He){if(at.match(/^\]:/,!0)){He.f=He.inline=Tt,lt.highlightFormatting&&(He.formatting="link");var Rt=Oe(He);return He.linkText=!1,Rt}return at.match(/^([^\]\\]|\\.)+/,!0),Ue.linkText}function Tt(at,He){return at.eatSpace()?null:(at.match(/^[^\s]+/,!0),at.peek()===void 0?He.linkTitle=!0:at.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),He.f=He.inline=nt,Ue.linkHref+" url")}var nn={startState:function(){return{f:je,prevLine:{stream:null},thisLine:{stream:null},block:je,htmlState:null,indentation:0,inline:nt,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(at){return{f:at.f,prevLine:at.prevLine,thisLine:at.thisLine,block:at.block,htmlState:at.htmlState&&ve.copyState(it,at.htmlState),indentation:at.indentation,localMode:at.localMode,localState:at.localMode?ve.copyState(at.localMode,at.localState):null,inline:at.inline,text:at.text,formatting:!1,linkText:at.linkText,linkTitle:at.linkTitle,linkHref:at.linkHref,code:at.code,em:at.em,strong:at.strong,strikethrough:at.strikethrough,emoji:at.emoji,header:at.header,setext:at.setext,hr:at.hr,taskList:at.taskList,list:at.list,listStack:at.listStack.slice(0),quote:at.quote,indentedCode:at.indentedCode,trailingSpace:at.trailingSpace,trailingSpaceNewLine:at.trailingSpaceNewLine,md_inside:at.md_inside,fencedEndRE:at.fencedEndRE}},token:function(at,He){if(He.formatting=!1,at!=He.thisLine.stream){if(He.header=0,He.hr=!1,at.match(/^\s*$/,!0))return Ce(He),null;if(He.prevLine=He.thisLine,He.thisLine={stream:at},He.taskList=!1,He.trailingSpace=0,He.trailingSpaceNewLine=!1,!He.localState&&(He.f=He.block,He.f!=Te)){var Rt=at.match(/^\s*/,!0)[0].replace(/\t/g,se).length;if(He.indentation=Rt,He.indentationDiff=null,Rt>0)return null}}return He.f(at,He)},innerMode:function(at){return at.block==Te?{state:at.htmlState,mode:it}:at.localState?{state:at.localState,mode:at.localMode}:{state:at,mode:nn}},indent:function(at,He,Rt){return at.block==Te&&it.indent?it.indent(at.htmlState,He,Rt):at.localState&&at.localMode.indent?at.localMode.indent(at.localState,He,Rt):ve.Pass},blankLine:Ce,getType:Oe,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return nn},"xml"),ve.defineMIME("text/markdown","markdown"),ve.defineMIME("text/x-markdown","markdown")})},98101:function(gn,en,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 _e=0;_e<ve.modeInfo.length;_e++){var lt=ve.modeInfo[_e];lt.mimes&&(lt.mime=lt.mimes[0])}ve.findModeByMIME=function(it){it=it.toLowerCase();for(var rt=0;rt<ve.modeInfo.length;rt++){var ze=ve.modeInfo[rt];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 rt=0;rt<ve.modeInfo.length;rt++){var ze=ve.modeInfo[rt];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 rt=0;rt<ve.modeInfo.length;rt++){var ze=ve.modeInfo[rt];if(ze.file&&ze.file.test(it))return ze}var Ue=it.lastIndexOf("."),yt=Ue>-1&&it.substring(Ue+1,it.length);if(yt)return ve.findModeByExtension(yt)},ve.findModeByName=function(it){it=it.toLowerCase();for(var rt=0;rt<ve.modeInfo.length;rt++){var ze=ve.modeInfo[rt];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(gn,en,we){(function(ve){ve(we(89780))})(function(ve){"use strict";ve.defineMode("stex",function(_e,lt){"use strict";function it(Ee,ne){Ee.cmdState.push(ne)}function rt(Ee){return Ee.cmdState.length>0?Ee.cmdState[Ee.cmdState.length-1]:null}function ze(Ee){var ne=Ee.cmdState.pop();ne&&ne.closeBracket()}function Ue(Ee){for(var ne=Ee.cmdState,te=ne.length-1;te>=0;te--){var ue=ne[te];if(ue.name!="DEFAULT")return ue}return{styleIdentifier:function(){return null}}}function yt(Ee,ne,te){return function(){this.name=Ee,this.bracketNo=0,this.style=ne,this.styles=te,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var tt={};tt.importmodule=yt("importmodule","tag",["string","builtin"]),tt.documentclass=yt("documentclass","tag",["","atom"]),tt.usepackage=yt("usepackage","tag",["atom"]),tt.begin=yt("begin","tag",["atom"]),tt.end=yt("end","tag",["atom"]),tt.label=yt("label","tag",["atom"]),tt.ref=yt("ref","tag",["atom"]),tt.eqref=yt("eqref","tag",["atom"]),tt.cite=yt("cite","tag",["atom"]),tt.bibitem=yt("bibitem","tag",["atom"]),tt.Bibitem=yt("Bibitem","tag",["atom"]),tt.RBibitem=yt("RBibitem","tag",["atom"]),tt.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function De(Ee,ne){Ee.f=ne}function xt(Ee,ne){var te;if(Ee.match(/^\\[a-zA-Z@]+/)){var ue=Ee.current().slice(1);return te=tt.hasOwnProperty(ue)?tt[ue]:tt.DEFAULT,te=new te,it(ne,te),De(ne,ct),te.style}if(Ee.match(/^\\[$&%#{}_]/)||Ee.match(/^\\[,;!\/\\]/))return"tag";if(Ee.match("\\["))return De(ne,function(de,pe){return Ve(de,pe,"\\]")}),"keyword";if(Ee.match("\\("))return De(ne,function(de,pe){return Ve(de,pe,"\\)")}),"keyword";if(Ee.match("$$"))return De(ne,function(de,pe){return Ve(de,pe,"$$")}),"keyword";if(Ee.match("$"))return De(ne,function(de,pe){return Ve(de,pe,"$")}),"keyword";var se=Ee.next();if(se=="%")return Ee.skipToEnd(),"comment";if(se=="}"||se=="]"){if(te=rt(ne),te)te.closeBracket(se),De(ne,ct);else return"error";return"bracket"}else return se=="{"||se=="["?(te=tt.DEFAULT,te=new te,it(ne,te),"bracket"):/\d/.test(se)?(Ee.eatWhile(/[\w.%]/),"atom"):(Ee.eatWhile(/[\w\-_]/),te=Ue(ne),te.name=="begin"&&(te.argument=Ee.current()),te.styleIdentifier())}function Ve(Ee,ne,te){if(Ee.eatSpace())return null;if(te&&Ee.match(te))return De(ne,xt),"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 ct(Ee,ne){var te=Ee.peek(),ue;return te=="{"||te=="["?(ue=rt(ne),ue.openBracket(te),Ee.eat(te),De(ne,xt),"bracket"):/[ \t\r]/.test(te)?(Ee.eat(te),null):(De(ne,xt),ze(ne),xt(Ee,ne))}return{startState:function(){var Ee=lt.inMathMode?function(ne,te){return Ve(ne,te)}:xt;return{cmdState:[],f:Ee}},copyState:function(Ee){return{cmdState:Ee.cmdState.slice(),f:Ee.f}},token:function(Ee,ne){return ne.f(Ee,ne)},blankLine:function(Ee){Ee.f=xt,Ee.cmdState.length=0},lineComment:"%"}}),ve.defineMIME("text/x-stex","stex"),ve.defineMIME("text/x-latex","stex")})},15525:function(gn,en,we){(function(ve){ve(we(89780))})(function(ve){"use strict";var _e={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},lt={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};ve.defineMode("xml",function(it,rt){var ze=it.indentUnit,Ue={},yt=rt.htmlMode?_e:lt;for(var tt in yt)Ue[tt]=yt[tt];for(var tt in rt)Ue[tt]=rt[tt];var De,xt;function Ve(ot,wt){function gt(It){return wt.tokenize=It,It(ot,wt)}var Dt=ot.next();if(Dt=="<")return ot.eat("!")?ot.eat("[")?ot.match("CDATA[")?gt(ne("atom","]]>")):null:ot.match("--")?gt(ne("comment","-->")):ot.match("DOCTYPE",!0,!0)?(ot.eatWhile(/[\w\._\-]/),gt(te(1))):null:ot.eat("?")?(ot.eatWhile(/[\w\._\-]/),wt.tokenize=ne("meta","?>"),"meta"):(De=ot.eat("/")?"closeTag":"openTag",wt.tokenize=ct,"tag bracket");if(Dt=="&"){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 ct(ot,wt){var gt=ot.next();if(gt==">"||gt=="/"&&ot.eat(">"))return wt.tokenize=Ve,De=gt==">"?"endTag":"selfcloseTag","tag bracket";if(gt=="=")return De="equals",null;if(gt=="<"){wt.tokenize=Ve,wt.state=pe,wt.tagName=wt.tagStart=null;var Dt=wt.tokenize(ot,wt);return Dt?Dt+" tag error":"tag error"}else return/[\'\"]/.test(gt)?(wt.tokenize=Ee(gt),wt.stringStartCol=ot.column(),wt.tokenize(ot,wt)):(ot.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function Ee(ot){var wt=function(gt,Dt){for(;!gt.eol();)if(gt.next()==ot){Dt.tokenize=ct;break}return"string"};return wt.isInAttribute=!0,wt}function ne(ot,wt){return function(gt,Dt){for(;!gt.eol();){if(gt.match(wt)){Dt.tokenize=Ve;break}gt.next()}return ot}}function te(ot){return function(wt,gt){for(var Dt;(Dt=wt.next())!=null;){if(Dt=="<")return gt.tokenize=te(ot+1),gt.tokenize(wt,gt);if(Dt==">")if(ot==1){gt.tokenize=Ve;break}else return gt.tokenize=te(ot-1),gt.tokenize(wt,gt)}return"meta"}}function ue(ot,wt,gt){this.prev=ot.context,this.tagName=wt,this.indent=ot.indented,this.startOfLine=gt,(Ue.doNotIndent.hasOwnProperty(wt)||ot.context&&ot.context.noIndent)&&(this.noIndent=!0)}function se(ot){ot.context&&(ot.context=ot.context.prev)}function de(ot,wt){for(var gt;;){if(!ot.context||(gt=ot.context.tagName,!Ue.contextGrabbers.hasOwnProperty(gt)||!Ue.contextGrabbers[gt].hasOwnProperty(wt)))return;se(ot)}}function pe(ot,wt,gt){return ot=="openTag"?(gt.tagStart=wt.column(),ye):ot=="closeTag"?Ce:pe}function ye(ot,wt,gt){return ot=="word"?(gt.tagName=wt.current(),xt="tag",Ie):Ue.allowMissingTagName&&ot=="endTag"?(xt="tag bracket",Ie(ot,wt,gt)):(xt="error",ye)}function Ce(ot,wt,gt){if(ot=="word"){var Dt=wt.current();return gt.context&&gt.context.tagName!=Dt&&Ue.implicitlyClosed.hasOwnProperty(gt.context.tagName)&&se(gt),gt.context&&gt.context.tagName==Dt||Ue.matchClosing===!1?(xt="tag",je):(xt="tag error",Te)}else return Ue.allowMissingTagName&&ot=="endTag"?(xt="tag bracket",je(ot,wt,gt)):(xt="error",Te)}function je(ot,wt,gt){return ot!="endTag"?(xt="error",je):(se(gt),pe)}function Te(ot,wt,gt){return xt="error",je(ot,wt,gt)}function Ie(ot,wt,gt){if(ot=="word")return xt="attribute",Oe;if(ot=="endTag"||ot=="selfcloseTag"){var Dt=gt.tagName,Lt=gt.tagStart;return gt.tagName=gt.tagStart=null,ot=="selfcloseTag"||Ue.autoSelfClosers.hasOwnProperty(Dt)?de(gt,Dt):(de(gt,Dt),gt.context=new ue(gt,Dt,Lt==gt.indented)),pe}return xt="error",Ie}function Oe(ot,wt,gt){return ot=="equals"?Re:(Ue.allowMissing||(xt="error"),Ie(ot,wt,gt))}function Re(ot,wt,gt){return ot=="string"?nt:ot=="word"&&Ue.allowUnquoted?(xt="string",Ie):(xt="error",Ie(ot,wt,gt))}function nt(ot,wt,gt){return ot=="string"?nt:Ie(ot,wt,gt)}return{startState:function(ot){var wt={tokenize:Ve,state:pe,indented:ot||0,tagName:null,tagStart:null,context:null};return ot!=null&&(wt.baseIndent=ot),wt},token:function(ot,wt){if(!wt.tagName&&ot.sol()&&(wt.indented=ot.indentation()),ot.eatSpace())return null;De=null;var gt=wt.tokenize(ot,wt);return(gt||De)&&gt!="comment"&&(xt=null,wt.state=wt.state(De||gt,ot,wt),xt&&(gt=xt=="error"?gt+" error":xt)),gt},indent:function(ot,wt,gt){var Dt=ot.context;if(ot.tokenize.isInAttribute)return ot.tagStart==ot.indented?ot.stringStartCol+1:ot.indented+ze;if(Dt&&Dt.noIndent)return ve.Pass;if(ot.tokenize!=ct&&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(wt))return 0;var Lt=wt&&/^<(\/)?([\w_:\.-]*)/.exec(wt);if(Lt&&Lt[1])for(;Dt;)if(Dt.tagName==Lt[2]){Dt=Dt.prev;break}else if(Ue.implicitlyClosed.hasOwnProperty(Dt.tagName))Dt=Dt.prev;else break;else if(Lt)for(;Dt;){var It=Ue.contextGrabbers[Dt.tagName];if(It&&It.hasOwnProperty(Lt[2]))Dt=Dt.prev;else break}for(;Dt&&Dt.prev&&!Dt.startOfLine;)Dt=Dt.prev;return Dt?Dt.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 wt=[],gt=ot.context;gt;gt=gt.prev)gt.tagName&&wt.push(gt.tagName);return wt.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(gn,en,we){"use strict";we.d(en,{$u:function(){return tt},BD:function(){return We},E9:function(){return yt},FF:function(){return no},FJ:function(){return pe},Hn:function(){return de},KX:function(){return Ce},NB:function(){return Ot},S0:function(){return hn},UL:function(){return De},Vk:function(){return se},Vm:function(){return Wt},YI:function(){return li},ZA:function(){return lt},Zt:function(){return xt},al:function(){return ke},bn:function(){return Ye},bx:function(){return Fe},g2:function(){return yi},h1:function(){return Re},hD:function(){return Ui},l4:function(){return ze},rU:function(){return bt},s_:function(){return xe},uz:function(){return rn},z6:function(){return Ve}}),gn=we.hmd(gn),function(){var Le;function Pn(a){var y=0;return function(){return y<a.length?{done:!1,value:a[y++]}:{done:!0}}}function Un(a){var y=typeof Symbol!="undefined"&&Symbol.iterator&&a[Symbol.iterator];return y?y.call(a):{next:Pn(a)}}function gi(a){for(var y,x=[];!(y=a.next()).done;)x.push(y.value);return x}var mi=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 pr={a:!0},un={};try{un.__proto__=pr,Yi=un.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 an=ti;function jt(a,y){if(a.prototype=mi(y.prototype),a.prototype.constructor=a,an)an(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 mn=typeof we.g!="undefined"&&we.g!=null?we.g:self,Zi=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},ji=typeof Object.defineProperties=="function"?Object.defineProperty:function(a,y,x){a!=Array.prototype&&a!=Object.prototype&&(a[y]=x.value)};function lr(a,y){if(y){var x=mn;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&&ji(x,a,{writable:!0,value:y})}}lr("Object.assign",function(a){return a||Zi}),lr("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 Zn=typeof globalThis=="object"&&globalThis||typeof we.g=="object"&&we.g.global===we.g&&we.g||typeof self=="object"&&self.self===self&&self||{};Zn.requestAnimationFrame===void 0&&(Zn.setImmediate===void 0?Zn.requestAnimationFrame=function(a){Zn.setTimeout(a,0)}:Zn.requestAnimationFrame=Zn.setImmediate);function Ti(){}function fr(a,y){var x=-1;return function(){var E=this,b=arguments;x!==-1&&Zn.clearTimeout(x),x=Vr(function(){x=-1,a.apply(E,b)},y)}}function Vr(a,y){return Zn.setTimeout(a,y)}function ci(a){return Zn.document.createElement(a)}function ut(a){throw Error(a)}function Nt(a,y){a="The object is frozen, so its properties cannot be set: "+a.toString(),y!==void 0&&(a+=" to value: "+y),ut(a)}function Rn(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),ut(x+" is not in the range "+y+": "+a)}function In(a){Zn.console&&Zn.console.log(a)}function Qt(a){return typeof a=="object"&&a!==null}function qn(a){return Array.isArray(a)||Zn.NodeList&&a instanceof Zn.NodeList||Zn.HTMLCollection&&a instanceof Zn.HTMLCollection}function Nn(a){return Array.prototype.slice.call(a)}function Vn(a,y,x){Array.isArray(a)?y>=a.length?a.push(x):a.splice(y,0,x):ut("Cannot insert an object into an HTMLCollection or NodeList: "+x+" at "+y)}function Pi(a,y){Array.isArray(a)?y>=a.length?a.pop():a.splice(y,1):ut("Cannot remove an object from an HTMLCollection or NodeList at "+y)}function pi(){var a=oo.pop();return a===void 0?[]:a}function tn(a){a.length=0,oo.push(a)}function Wi(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(Qt(a)&&a.constructor)return Wi(a.constructor);return typeof a}function yr(a){var y=a;return Qt(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 Pr(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 Yn(a,y,x){Object.defineProperty(Eo.prototype,a,{get:y,set:x})}function Oi(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 Dr=Zn.navigator!==void 0&&0<Zn.navigator.userAgent.indexOf("Trident/7"),jr=Zn.navigator!==void 0&&Zn.navigator.platform!==void 0&&Zn.navigator.platform.match(/(iPhone|iPod|iPad|Mac)/i)!==null,oo=[];Object.freeze([]),Ti.className="Util",Ti.Dx="32ab5ff3b26f42dc0ed90f21472913b5",Ti.adym="gojs.net",Ti.vfo="28e645fdb266",Ti.className="Util";function Kt(a,y,x){ai(this),this.j=a,this.xa=y,this.o=x}Kt.prototype.toString=function(){return"EnumValue."+this.xa};function bi(a,y){return y==null||y===""?null:a[y]}mn.Object.defineProperties(Kt.prototype,{classType:{get:function(){return this.j}},name:{get:function(){return this.xa}},value:{get:function(){return this.o}}}),Kt.className="EnumValue";function tr(){this.ew=[]}tr.prototype.toString=function(){return this.ew.join("")},tr.prototype.add=function(a){a!==""&&this.ew.push(a)},tr.className="StringBuilder";function Mi(){}Mi.className="PropertyCollection";var kr={EA:!1,JA:!1,GA:!1,IA:!1,NA:!1,LA:!1,nx:!1,FA:null,trace:function(a){Zn.console&&Zn.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 rr(){}rr.prototype.reset=function(){},rr.prototype.next=function(){return!1},rr.prototype.Ad=function(){return!1},rr.prototype.first=function(){return null},rr.prototype.any=function(){return!1},rr.prototype.all=function(){return!0},rr.prototype.each=function(){return this},rr.prototype.map=function(){return this},rr.prototype.filter=function(){return this},rr.prototype.de=function(){},rr.prototype.toString=function(){return"EmptyIterator"},mn.Object.defineProperties(rr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 0}}}),rr.prototype.first=rr.prototype.first,rr.prototype.hasNext=rr.prototype.Ad,rr.prototype.next=rr.prototype.next,rr.prototype.reset=rr.prototype.reset;var Lr=null;rr.className="EmptyIterator",Lr=new rr;function Tr(a){this.key=-1,this.value=a}Tr.prototype.reset=function(){this.key=-1},Tr.prototype.next=function(){return this.key===-1?(this.key=0,!0):!1},Tr.prototype.Ad=function(){return this.next()},Tr.prototype.first=function(){return this.key=0,this.value},Tr.prototype.any=function(a){return this.key=-1,a(this.value)},Tr.prototype.all=function(a){return this.key=-1,a(this.value)},Tr.prototype.each=function(a){return this.key=-1,a(this.value),this},Tr.prototype.map=function(a){return new Tr(a(this.value))},Tr.prototype.filter=function(a){return a(this.value)?new Tr(this.value):Lr},Tr.prototype.de=function(){this.value=null},Tr.prototype.toString=function(){return"SingletonIterator("+this.value+")"},mn.Object.defineProperties(Tr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 1}}}),Tr.prototype.first=Tr.prototype.first,Tr.prototype.hasNext=Tr.prototype.Ad,Tr.prototype.next=Tr.prototype.next,Tr.prototype.reset=Tr.prototype.reset,Tr.className="SingletonIterator";function Zr(a){this.Bb=a,this.qf=null,a.Sa=null,this.qa=a.Ja,this.Za=-1}Zr.prototype.reset=function(){var a=this.Bb;a.Sa=null,this.qa=a.Ja,this.Za=-1},Zr.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},Zr.prototype.Ad=function(){return this.next()},Zr.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},Zr.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},Zr.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},Zr.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},Zr.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 An,a.s=x,a.xb(),a.iterator},Zr.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 An,a.s=x,a.xb(),a.iterator},Zr.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.qf=null,this.Bb.Sa=this},Zr.prototype.toString=function(){return"ListIterator@"+this.Za+"/"+this.Bb.count},mn.Object.defineProperties(Zr.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}}}),Zr.prototype.first=Zr.prototype.first,Zr.prototype.hasNext=Zr.prototype.Ad,Zr.prototype.next=Zr.prototype.next,Zr.prototype.reset=Zr.prototype.reset,Zr.className="ListIterator";function uo(a){this.Bb=a,a.Hg=null,this.qa=a.Ja,this.Za=a.s.length}uo.prototype.reset=function(){var a=this.Bb;a.Hg=null,this.qa=a.Ja,this.Za=a.s.length},uo.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)},uo.prototype.Ad=function(){return this.next()},uo.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},uo.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},uo.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},uo.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},uo.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 An,a.s=x,a.xb(),a.iterator},uo.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 An,a.s=x,a.xb(),a.iterator},uo.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.Bb.Hg=this},uo.prototype.toString=function(){return"ListIteratorBackwards("+this.Za+"/"+this.Bb.count+")"},mn.Object.defineProperties(uo.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.Bb.s.length}}}),uo.prototype.first=uo.prototype.first,uo.prototype.hasNext=uo.prototype.Ad,uo.prototype.next=uo.prototype.next,uo.prototype.reset=uo.prototype.reset,uo.className="ListIteratorBackwards";function An(a){ai(this),this._isFrozen=!1,this.s=[],this.Ja=0,this.Hg=this.Sa=null,typeof a=="string"&&ut("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Le=An.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()#"+Hr(this)},Le.add=function(a){return a===null?this:(this._isFrozen&&Nt(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&&Nt(this);var y=this.s;if(qn(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&&Nt(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)&&Rn(a,"0 <= i < length",An,"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)&&Rn(a,"0 <= i < length",An,"setElt:i"),this._isFrozen&&Nt(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&&Nt(this);var a=this.s;return 0<a.length?a.pop():null},An.prototype.any=function(a){for(var y=this.s,x=y.length,E=0;E<x;E++)if(a(y[E]))return!0;return!1},An.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},An.prototype.each=function(a){for(var y=this.s,x=y.length,E=0;E<x;E++)a(y[E]);return this},An.prototype.map=function(a){for(var y=new An,x=[],E=this.s,b=E.length,z=0;z<b;z++)x.push(a(E[z]));return y.s=x,y.xb(),y},An.prototype.filter=function(a){for(var y=new An,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=An.prototype,Le.Gb=function(a,y){0>a&&Rn(a,">= 0",An,"insertAt:i"),this._isFrozen&&Nt(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&&Nt(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)&&Rn(a,"0 <= i < length",An,"removeAt:i"),this._isFrozen&&Nt(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&&Nt(this);for(var b=a,z=y+1;z<E;)x[b++]=x[z++];return x.length=E-(y-a+1),this.xb(),this},An.prototype.copy=function(){var a=new An,y=this.s;return 0<y.length&&(a.s=Array.prototype.slice.call(y)),a},Le=An.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 Fn,y=this.s,x=this.count,E=0;E<x;E++)a.add(y[E]);return a},Le.sort=function(a){return this._isFrozen&&Nt(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&&Nt(this);var z=x-y;if(1>=z)return this;if((0>y||y>=b-1)&&Rn(y,"0 <= from < length",An,"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&&Nt(this),this.s.reverse(),this.xb(),this},mn.Object.defineProperties(An.prototype,{_dataArray:{get:function(){return this.s}},count:{get:function(){return this.s.length}},size:{get:function(){return this.s.length}},length:{get:function(){return this.s.length}},iterator:{get:function(){if(0>=this.s.length)return Lr;var a=this.Sa;return a!==null?(a.reset(),a):new Zr(this)}},iteratorBackwards:{get:function(){if(0>=this.s.length)return Lr;var a=this.Hg;return a!==null?(a.reset(),a):new uo(this)}}}),An.prototype.reverse=An.prototype.reverse,An.prototype.sortRange=An.prototype.zi,An.prototype.sort=An.prototype.sort,An.prototype.toSet=An.prototype.Iv,An.prototype.toArray=An.prototype.Fa,An.prototype.removeRange=An.prototype.removeRange,An.prototype.removeAt=An.prototype.mb,An.prototype.delete=An.prototype.delete,An.prototype.remove=An.prototype.remove,An.prototype.insertAt=An.prototype.Gb,An.prototype.pop=An.prototype.pop,An.prototype.last=An.prototype.jc,An.prototype.first=An.prototype.first,An.prototype.set=An.prototype.set,An.prototype.setElt=An.prototype.cd,An.prototype.get=An.prototype.get,An.prototype.elt=An.prototype.M,An.prototype.indexOf=An.prototype.indexOf,An.prototype.has=An.prototype.has,An.prototype.contains=An.prototype.contains,An.prototype.clear=An.prototype.clear,An.prototype.addAll=An.prototype.addAll,An.prototype.push=An.prototype.push,An.prototype.add=An.prototype.add,An.prototype.thaw=An.prototype.ka,An.prototype.freeze=An.prototype.freeze,An.className="List";function mo(a){this.eg=a,a.Sa=null,this.qa=a.Ja,this.sa=null}mo.prototype.reset=function(){var a=this.eg;a.Sa=null,this.qa=a.Ja,this.sa=null},mo.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)},mo.prototype.Ad=function(){return this.next()},mo.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},mo.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},mo.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},mo.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},mo.prototype.map=function(a){var y=this.eg;y.Sa=null;var x=new An;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},mo.prototype.filter=function(a){var y=this.eg;y.Sa=null;var x=new An;for(y=y.ea;y!==null;){var E=y.value;a(E)&&x.add(E),y=y.va}return x.iterator},mo.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.eg.Sa=this},mo.prototype.toString=function(){return this.sa!==null?"SetIterator@"+this.sa.value:"SetIterator"},mn.Object.defineProperties(mo.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.eg.Sb}}}),mo.prototype.first=mo.prototype.first,mo.prototype.hasNext=mo.prototype.Ad,mo.prototype.next=mo.prototype.next,mo.prototype.reset=mo.prototype.reset,mo.className="SetIterator";function Fn(a){ai(this),this._isFrozen=!1,this.Tb={},this.Sb=0,this.Sa=null,this.Ja=0,this.kf=this.ea=null,typeof a=="string"&&ut("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Le=Fn.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()#"+Hr(this)},Le.add=function(a){if(a===null)return this;this._isFrozen&&Nt(this,a);var y=a;return Qt(a)&&(y=_r(a)),this.Tb[y]===void 0&&(this.Sb++,a=new qt(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&&Nt(this),qn(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 Qt(a)&&(y=Hr(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},Fn.prototype.any=function(a){for(var y=this.ea;y!==null;){if(a(y.value))return!0;y=y.va}return!1},Fn.prototype.all=function(a){for(var y=this.ea;y!==null;){if(!a(y.value))return!1;y=y.va}return!0},Fn.prototype.each=function(a){for(var y=this.ea;y!==null;)a(y.value),y=y.va;return this},Fn.prototype.map=function(a){for(var y=new Fn,x=this.ea;x!==null;)y.add(a(x.value)),x=x.va;return y},Fn.prototype.filter=function(a){for(var y=new Fn,x=this.ea;x!==null;){var E=x.value;a(E)&&y.add(E),x=x.va}return y},Le=Fn.prototype,Le.remove=function(a){if(a===null)return!1;this._isFrozen&&Nt(this,a);var y=a;if(Qt(a)&&(y=Hr(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&&Nt(this),qn(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&&Nt(this);var y=new Fn;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&&Nt(this),this.Tb={},this.Sb=0,this.Sa!==null&&this.Sa.reset(),this.kf=this.ea=null,this.xb()},Fn.prototype.copy=function(){var a=new Fn,y=this.Tb,x;for(x in y)a.add(y[x].value);return a},Fn.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},Fn.prototype.Hv=function(){var a=new An,y=this.Tb,x;for(x in y)a.add(y[x].value);return a};function ai(a){a.__gohashid=Oo++}function _r(a){var y=a.__gohashid;return y===void 0&&(y=Oo++,a.__gohashid=y),y}function Hr(a){return a.__gohashid}mn.Object.defineProperties(Fn.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.Sb)return Lr;var a=this.Sa;return a!==null?(a.reset(),a):new mo(this)}}}),Fn.prototype.toList=Fn.prototype.Hv,Fn.prototype.toArray=Fn.prototype.Fa,Fn.prototype.clear=Fn.prototype.clear,Fn.prototype.retainAll=Fn.prototype.pA,Fn.prototype.removeAll=Fn.prototype.hp,Fn.prototype.delete=Fn.prototype.delete,Fn.prototype.remove=Fn.prototype.remove,Fn.prototype.first=Fn.prototype.first,Fn.prototype.containsAny=Fn.prototype.Ty,Fn.prototype.containsAll=Fn.prototype.Sy,Fn.prototype.has=Fn.prototype.has,Fn.prototype.contains=Fn.prototype.contains,Fn.prototype.addAll=Fn.prototype.addAll,Fn.prototype.add=Fn.prototype.add,Fn.prototype.thaw=Fn.prototype.ka,Fn.prototype.freeze=Fn.prototype.freeze;var Oo=1;Fn.className="Set",Fn.uniqueHash=ai,Fn.hashIdUnique=_r,Fn.hashId=Hr;function Kr(a){this.ma=a,this.qa=a.Ja,this.sa=null}Kr.prototype.reset=function(){this.qa=this.ma.Ja,this.sa=null},Kr.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)},Kr.prototype.Ad=function(){return this.next()},Kr.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},Kr.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},Kr.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},Kr.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},Kr.prototype.map=function(a){var y=this.ma;this.sa=null;var x=new An;for(y=y.ea;y!==null;)x.add(a(y.key)),y=y.va;return x.iterator},Kr.prototype.filter=function(a){var y=this.ma;this.sa=null;var x=new An;for(y=y.ea;y!==null;){var E=y.key;a(E)&&x.add(E),y=y.va}return x.iterator},Kr.prototype.de=function(){this.value=this.key=null,this.qa=-1},Kr.prototype.toString=function(){return this.sa!==null?"MapKeySetIterator@"+this.sa.value:"MapKeySetIterator"},mn.Object.defineProperties(Kr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),Kr.prototype.first=Kr.prototype.first,Kr.prototype.hasNext=Kr.prototype.Ad,Kr.prototype.next=Kr.prototype.next,Kr.prototype.reset=Kr.prototype.reset,Kr.className="MapKeySetIterator";function Or(a){Fn.call(this),ai(this),this._isFrozen=!0,this.ma=a}jt(Or,Fn),Le=Or.prototype,Le.freeze=function(){return this},Le.ka=function(){return this},Le.toString=function(){return"MapKeySet("+this.ma.toString()+")"},Le.add=function(){ut("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(){ut("This Set is read-only: "+this.toString())},Le.delete=function(a){return this.remove(a)},Le.clear=function(){ut("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 Fn,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 Fn,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 Fn,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 An,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},mn.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?Lr:new Kr(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 Bo(a){this.ma=a,a.jf=null,this.qa=a.Ja,this.sa=null}Bo.prototype.reset=function(){var a=this.ma;a.jf=null,this.qa=a.Ja,this.sa=null},Bo.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)},Bo.prototype.Ad=function(){return this.next()},Bo.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},Bo.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},Bo.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},Bo.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},Bo.prototype.map=function(a){var y=this.ma;this.sa=y.jf=null;var x=new An;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},Bo.prototype.filter=function(a){var y=this.ma;this.sa=y.jf=null;var x=new An;for(y=y.ea;y!==null;){var E=y.value;a(E)&&x.add(E),y=y.va}return x.iterator},Bo.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.jf=this},Bo.prototype.toString=function(){return this.sa!==null?"MapValueSetIterator@"+this.sa.value:"MapValueSetIterator"},mn.Object.defineProperties(Bo.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),Bo.prototype.first=Bo.prototype.first,Bo.prototype.hasNext=Bo.prototype.Ad,Bo.prototype.next=Bo.prototype.next,Bo.prototype.reset=Bo.prototype.reset,Bo.className="MapValueSetIterator";function qt(a,y){this.key=a,this.value=y,this.ll=this.va=null}qt.prototype.toString=function(){return"{"+this.key+":"+this.value+"}"},qt.className="KeyValuePair";function vn(a){this.ma=a,a.Sa=null,this.qa=a.Ja,this.sa=null}vn.prototype.reset=function(){var a=this.ma;a.Sa=null,this.qa=a.Ja,this.sa=null},vn.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)},vn.prototype.Ad=function(){return this.next()},vn.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},vn.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},vn.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},vn.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},vn.prototype.map=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new An;for(y=y.ea;y!==null;)x.add(a(y)),y=y.va;return x.iterator},vn.prototype.filter=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new An;for(y=y.ea;y!==null;)a(y)&&x.add(y),y=y.va;return x.iterator},vn.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.Sa=this},vn.prototype.toString=function(){return this.sa!==null?"MapIterator@"+this.sa:"MapIterator"},mn.Object.defineProperties(vn.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),vn.prototype.first=vn.prototype.first,vn.prototype.hasNext=vn.prototype.Ad,vn.prototype.next=vn.prototype.next,vn.prototype.reset=vn.prototype.reset,vn.className="MapIterator";function Ht(a){ai(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"&&ut("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Le=Ht.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()#"+Hr(this)},Le.add=function(a,y){this._isFrozen&&Nt(this,a);var x=a;Qt(a)&&(x=_r(a));var E=this.Tb[x];return E===void 0?(this.Sb++,a=new qt(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(qn(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 Ht)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},Ht.prototype.any=function(a){for(var y=this.ea;y!==null;){if(a(y))return!0;y=y.va}return!1},Ht.prototype.all=function(a){for(var y=this.ea;y!==null;){if(!a(y))return!1;y=y.va}return!0},Ht.prototype.each=function(a){for(var y=this.ea;y!==null;)a(y),y=y.va;return this},Ht.prototype.map=function(a){for(var y=new Ht,x=this.ea;x!==null;)y.add(x.key,a(x)),x=x.va;return y},Ht.prototype.filter=function(a){for(var y=new Ht,x=this.ea;x!==null;)a(x)&&y.add(x.key,x.value),x=x.va;return y},Le=Ht.prototype,Le.contains=function(a){var y=a;return Qt(a)&&(y=Hr(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 Qt(a)&&(y=Hr(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&&Nt(this,a);var y=a;if(Qt(a)&&(y=Hr(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&&Nt(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()},Ht.prototype.copy=function(){var a=new Ht,y=this.Tb,x;for(x in y){var E=y[x];a.add(E.key,E.value)}return a},Ht.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 qt(b.key,b.value),x++}return y},Ht.prototype.Lf=function(){return new Or(this)},mn.Object.defineProperties(Ht.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.count)return Lr;var a=this.Sa;return a!==null?(a.reset(),a):new vn(this)}},iteratorKeys:{get:function(){return 0>=this.count?Lr:new Kr(this)}},iteratorValues:{get:function(){if(0>=this.count)return Lr;var a=this.jf;return a!==null?(a.reset(),a):new Bo(this)}}}),Ht.prototype.toKeySet=Ht.prototype.Lf,Ht.prototype.toArray=Ht.prototype.Fa,Ht.prototype.clear=Ht.prototype.clear,Ht.prototype.delete=Ht.prototype.delete,Ht.prototype.remove=Ht.prototype.remove,Ht.prototype.get=Ht.prototype.get,Ht.prototype.getValue=Ht.prototype.I,Ht.prototype.has=Ht.prototype.has,Ht.prototype.contains=Ht.prototype.contains,Ht.prototype.first=Ht.prototype.first,Ht.prototype.addAll=Ht.prototype.addAll,Ht.prototype.set=Ht.prototype.set,Ht.prototype.add=Ht.prototype.add,Ht.prototype.thaw=Ht.prototype.ka,Ht.prototype.freeze=Ht.prototype.freeze,Ht.className="Map";function Ze(a,y){a===void 0?this.y=this.x=0:typeof a=="number"&&typeof y=="number"?(this.x=a,this.y=y):ut("Invalid arguments to Point constructor: "+a+", "+y),this._isFrozen=!1}var Xn,Fi,Qi,Qe,Ut;Ze.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this},Ze.prototype.h=function(a,y){return this.x=a,this.y=y,this},Ze.prototype.sg=function(a,y){return this.x=a,this.y=y,this},Ze.prototype.set=function(a){return this.x=a.x,this.y=a.y,this},Ze.prototype.copy=function(){var a=new Ze;return a.x=this.x,a.y=this.y,a},Le=Ze.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)&&ut("cannot thaw constant: "+this),this._isFrozen=!1,this};function Ft(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 Ze(x,b)}return new Ze}function ln(a){return a.x.toString()+" "+a.y.toString()}Le.toString=function(){return"Point("+this.x+","+this.y+")"},Le.D=function(a){return a instanceof Ze?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},Ze.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=Ze.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 _n(a.x-this.x,a.y-this.y)},Le.direction=function(a,y){return _n(a-this.x,y-this.y)};function _n(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 yn(a,y){return y.Cd(a),a}function cn(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 En(a,y,x,E){return a=x-a,y=E-y,a*a+y*y}function be(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)},Ze.alloc=function(){var a=dt.pop();return a===void 0?new Ze:a},Ze.allocAt=function(a,y){var x=dt.pop();return x===void 0?new Ze(a,y):(x.x=a,x.y=y,x)},Ze.free=function(a){dt.push(a)},Ze.prototype.isReal=Ze.prototype.w,Ze.prototype.setSpot=Ze.prototype.yi,Ze.prototype.setRectSpot=Ze.prototype.xi,Ze.prototype.snapToGridPoint=Ze.prototype.vA,Ze.prototype.snapToGrid=Ze.prototype.uA,Ze.prototype.projectOntoLineSegmentPoint=Ze.prototype.gA,Ze.prototype.projectOntoLineSegment=Ze.prototype.fA,Ze.intersectingLineSegments=function(a,y,x,E,b,z,ee,re){return St.Rl(a,y,x,E,b,z,ee,re)},Ze.prototype.compareWithLineSegmentPoint=Ze.prototype.Ry,Ze.compareWithLineSegment=function(a,y,x,E,b,z){return St.Fl(a,y,x,E,b,z)},Ze.prototype.direction=Ze.prototype.direction,Ze.prototype.directionPoint=Ze.prototype.ab,Ze.prototype.normalize=Ze.prototype.normalize,Ze.prototype.distanceSquared=Ze.prototype.zd,Ze.prototype.distanceSquaredPoint=Ze.prototype.Bf,Ze.prototype.scale=Ze.prototype.scale,Ze.prototype.rotate=Ze.prototype.rotate,Ze.prototype.offset=Ze.prototype.offset,Ze.prototype.subtract=Ze.prototype.re,Ze.prototype.add=Ze.prototype.add,Ze.prototype.equalsApprox=Ze.prototype.Xa,Ze.prototype.equalTo=Ze.prototype.hi,Ze.prototype.equals=Ze.prototype.D,Ze.prototype.set=Ze.prototype.set,Ze.prototype.setTo=Ze.prototype.sg;var dt=[];Ze.className="Point",Ze.parse=Ft,Ze.stringify=ln,Ze.distanceLineSegmentSquared=cn,Ze.distanceSquared=En,Ze.direction=be,Ze.Origin=Xn=new Ze(0,0).ja(),Ze.InfiniteTopLeft=Fi=new Ze(-1/0,-1/0).ja(),Ze.InfiniteBottomRight=Qi=new Ze(1/0,1/0).ja(),Ze.SixPoint=Qe=new Ze(6,6).ja(),Ze.NoPoint=Ut=new Ze(NaN,NaN).ja(),Ze.parse=Ft,Ze.stringify=ln,Ze.distanceLineSegmentSquared=cn,Ze.distanceSquared=En,Ze.direction=be;function Xe(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):ut("Invalid arguments to Size constructor: "+a+", "+y),this._isFrozen=!1}var Pt,Et,Jt,$t,dn,Tn,zn;Xe.prototype.assign=function(a){return this.width=a.width,this.height=a.height,this},Xe.prototype.h=function(a,y){return this.width=a,this.height=y,this},Xe.prototype.sg=function(a,y){return this.width=a,this.height=y,this},Xe.prototype.set=function(a){return this.width=a.width,this.height=a.height,this},Xe.prototype.copy=function(){var a=new Xe;return a.width=this.width,a.height=this.height,a},Le=Xe.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)&&ut("cannot thaw constant: "+this),this._isFrozen=!1,this};function fn(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 Xe(x,b)}return new Xe}function ei(a){return a.width.toString()+" "+a.height.toString()}Le.toString=function(){return"Size("+this.width+","+this.height+")"},Le.D=function(a){return a instanceof Xe?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)},Xe.alloc=function(){var a=vi.pop();return a===void 0?new Xe:a},Xe.free=function(a){vi.push(a)},Xe.prototype.isReal=Xe.prototype.w,Xe.prototype.inflate=Xe.prototype.Bc,Xe.prototype.equalsApprox=Xe.prototype.Xa,Xe.prototype.equalTo=Xe.prototype.hi,Xe.prototype.equals=Xe.prototype.D,Xe.prototype.set=Xe.prototype.set,Xe.prototype.setTo=Xe.prototype.sg;var vi=[];Xe.className="Size",Xe.parse=fn,Xe.stringify=ei,Xe.ZeroSize=Pt=new Xe(0,0).ja(),Xe.OneSize=Et=new Xe(1,1).ja(),Xe.SixSize=Jt=new Xe(6,6).ja(),Xe.EightSize=$t=new Xe(8,8).ja(),Xe.TenSize=dn=new Xe(10,10).ja(),Xe.InfiniteSize=Tn=new Xe(1/0,1/0).ja(),Xe.NoSize=zn=new Xe(NaN,NaN).ja(),Xe.parse=fn,Xe.stringify=ei;function pt(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 Ze?(x=a.x,a=a.y,y instanceof Ze?(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 Xe?(this.x=x,this.y=a,this.width=y.width,this.height=y.height):ut("Incorrect second argument supplied to Rect constructor "+y)):ut("Invalid arguments to Rect constructor: "+a+", "+y+", "+x+", "+E),this._isFrozen=!1}Le=pt.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 Kn(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},pt.prototype.copy=function(){var a=new pt;return a.x=this.x,a.y=this.y,a.width=this.width,a.height=this.height,a},Le=pt.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)&&ut("cannot thaw constant: "+this),this._isFrozen=!1,this};function Hn(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 pt(x,b,z,ee)}return new pt}function jn(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 pt?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 Mn(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 fi(this,y,a,y,a)},Le.Co=function(a){return fi(this,a.top,a.right,a.bottom,a.left)},Le.Fv=function(a){return fi(this,-a.top,-a.right,-a.bottom,-a.left)},Le.Hz=function(a,y,x,E){return fi(this,a,y,x,E)};function fi(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 Si(this,a.x,a.y,a.width,a.height)},Le.Uu=function(a,y,x,E){return Si(this,a,y,x,E)};function Si(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 kn(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 xi(this,a.x,a.y,0,0)},Le.ed=function(a){return xi(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),xi(this,a,y,x,E)};function xi(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 Ei(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 Ai(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},pt.alloc=function(){var a=ur.pop();return a===void 0?new pt:a},pt.allocAt=function(a,y,x,E){var b=ur.pop();return b===void 0?new pt(a,y,x,E):b.h(a,y,x,E)},pt.free=function(a){ur.push(a)},mn.Object.defineProperties(pt.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 Ze(this.x,this.y)},set:function(a){this.x=a.x,this.y=a.y}},size:{get:function(){return new Xe(this.width,this.height)},set:function(a){this.width=a.width,this.height=a.height}},center:{get:function(){return new Ze(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}}}),pt.prototype.isEmpty=pt.prototype.Mz,pt.prototype.isReal=pt.prototype.w,pt.intersectsLineSegment=function(a,y,x,E,b,z,ee,re){return St.Fx(a,y,x,E,b,z,ee,re)},pt.prototype.setSpot=pt.prototype.yi,pt.prototype.union=pt.prototype.Kv,pt.prototype.unionRect=pt.prototype.ed,pt.prototype.unionPoint=pt.prototype.Ye,pt.prototype.intersects=pt.prototype.Vu,pt.prototype.intersectsRect=pt.prototype.Yc,pt.prototype.intersect=pt.prototype.Uu,pt.prototype.intersectRect=pt.prototype.Ex,pt.prototype.grow=pt.prototype.Hz,pt.prototype.subtractMargin=pt.prototype.Fv,pt.prototype.addMargin=pt.prototype.Co,pt.prototype.inflate=pt.prototype.Bc,pt.prototype.offset=pt.prototype.offset,pt.prototype.contains=pt.prototype.contains,pt.prototype.containsRect=pt.prototype.Re,pt.prototype.containsPoint=pt.prototype.ca,pt.prototype.equalsApprox=pt.prototype.Xa,pt.prototype.equalTo=pt.prototype.hi,pt.prototype.equals=pt.prototype.D,pt.prototype.setSize=pt.prototype.tA,pt.prototype.setPoint=pt.prototype.dd,pt.prototype.set=pt.prototype.set,pt.prototype.setTo=pt.prototype.sg;var dr=null,Ar=null,ur=[];pt.className="Rect",pt.parse=Hn,pt.stringify=jn,pt.contains=Ei,pt.intersects=Ai,pt.ZeroRect=dr=new pt(0,0,0,0).ja(),pt.NoRect=Ar=new pt(NaN,NaN,NaN,NaN).ja(),pt.parse=Hn,pt.stringify=jn,pt.contains=Ei,pt.intersects=Ai;function ii(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):ut("Invalid arguments to Margin constructor: "+a+", "+y+", "+x+", "+E),this._isFrozen=!1}ii.prototype.assign=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},ii.prototype.sg=function(a,y,x,E){return this.top=a,this.right=y,this.bottom=x,this.left=E,this},ii.prototype.set=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},ii.prototype.copy=function(){var a=new ii;return a.top=this.top,a.right=this.right,a.bottom=this.bottom,a.left=this.left,a},Le=ii.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)&&ut("cannot thaw constant: "+this),this._isFrozen=!1,this};function gr(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 ii;for(var b=NaN;a[y]==="";)y++;if((E=a[y++])&&(b=parseFloat(E)),isNaN(b))return new ii(x);for(var z=NaN;a[y]==="";)y++;if((E=a[y++])&&(z=parseFloat(E)),isNaN(z))return new ii(x,b);for(var ee=NaN;a[y]==="";)y++;return(E=a[y++])&&(ee=parseFloat(E)),isNaN(ee)?new ii(x,b):new ii(x,b,z,ee)}return new ii}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 ii?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)},ii.alloc=function(){var a=wr.pop();return a===void 0?new ii:a},ii.free=function(a){wr.push(a)},ii.prototype.isReal=ii.prototype.w,ii.prototype.equalsApprox=ii.prototype.Xa,ii.prototype.equalTo=ii.prototype.hi,ii.prototype.equals=ii.prototype.D,ii.prototype.set=ii.prototype.set,ii.prototype.setTo=ii.prototype.sg;var hr=null,$i=null,wr=[];ii.className="Margin",ii.parse=gr,ii.stringify=nr,ii.ZeroMargin=hr=new ii(0,0,0,0).ja(),ii.TwoMargin=$i=new ii(2,2,2,2).ja(),ii.parse=gr,ii.stringify=nr;function bn(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 Li,zi,_i,Gi,Vi,di,ki,cr,Qn,ni,Ki,or,Mr,fo,po,No,qr,ta,Ao,ar,Rr,Lo,Zo,Ko,Io,Co,ia,ma,To,Da,Ur,ao,ho,bo,Do,Ea;bn.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},bn.prototype.sg=function(a,y,x,E){return this.x=a,this.y=y,this.offsetX=x,this.offsetY=E,this},bn.prototype.set=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},bn.prototype.copy=function(){var a=new bn;return a.x=this.x,a.y=this.y,a.offsetX=this.offsetX,a.offsetY=this.offsetY,a},Le=bn.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)&&ut("cannot thaw constant: "+this),this._isFrozen=!1,this};function Sr(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 Li;if(a==="TopLeft")return zi;if(a==="Top"||a==="TopCenter"||a==="MiddleTop")return _i;if(a==="TopRight")return Gi;if(a==="Left"||a==="LeftCenter"||a==="MiddleLeft")return Vi;if(a==="Center")return di;if(a==="Right"||a==="RightCenter"||a==="MiddleRight")return ki;if(a==="BottomLeft")return cr;if(a==="Bottom"||a==="BottomCenter"||a==="MiddleBottom")return Qn;if(a==="BottomRight")return ni;if(a==="TopSide")return Ki;if(a==="LeftSide")return or;if(a==="RightSide")return Mr;if(a==="BottomSide")return fo;if(a==="TopBottomSides")return po;if(a==="LeftRightSides")return No;if(a==="TopLeftSides")return qr;if(a==="TopRightSides")return ta;if(a==="BottomLeftSides")return Ao;if(a==="BottomRightSides")return ar;if(a==="NotTopSide")return Rr;if(a==="NotLeftSide")return Lo;if(a==="NotRightSide")return Zo;if(a==="NotBottomSide")return Ko;if(a==="AllSides")return Io;if(a==="Default")return Co;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 bn(x,b,z,ee)}return new bn}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(Li)?"None":this.D(zi)?"TopLeft":this.D(_i)?"Top":this.D(Gi)?"TopRight":this.D(Vi)?"Left":this.D(di)?"Center":this.D(ki)?"Right":this.D(cr)?"BottomLeft":this.D(Qn)?"Bottom":this.D(ni)?"BottomRight":this.D(Ki)?"TopSide":this.D(or)?"LeftSide":this.D(Mr)?"RightSide":this.D(fo)?"BottomSide":this.D(po)?"TopBottomSides":this.D(No)?"LeftRightSides":this.D(qr)?"TopLeftSides":this.D(ta)?"TopRightSides":this.D(Ao)?"BottomLeftSides":this.D(ar)?"BottomRightSides":this.D(Rr)?"NotTopSide":this.D(Lo)?"NotLeftSide":this.D(Zo)?"NotRightSide":this.D(Ko)?"NotBottomSide":this.D(Io)?"AllSides":this.D(Co)?"Default":"None"},Le.D=function(a){return a instanceof bn?(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 bn(.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(ia))a=or;else if(a.D(ma))a=Mr;else if(a.D(To))a=Ki;else if(a.D(Da))a=fo;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},bn.alloc=function(){var a=mr.pop();return a===void 0?new bn:a},bn.free=function(a){mr.push(a)},bn.prototype.isDefault=bn.prototype.Xb,bn.prototype.isNone=bn.prototype.ys,bn.prototype.isSide=bn.prototype.$c,bn.prototype.isNoSpot=bn.prototype.Mc,bn.prototype.isSpot=bn.prototype.sb,bn.prototype.includesSide=bn.prototype.Hf,bn.prototype.opposite=bn.prototype.gv,bn.prototype.equals=bn.prototype.D,bn.prototype.set=bn.prototype.set,bn.prototype.setTo=bn.prototype.sg;var mr=[];bn.className="Spot",bn.parse=er,bn.stringify=Br,bn.None=Li=Sr(new bn(0,0,0,0),0).ja(),bn.Default=Co=Sr(new bn(0,0,-1,0),-1).ja(),bn.TopLeft=zi=new bn(0,0,0,0).ja(),bn.TopCenter=_i=new bn(.5,0,0,0).ja(),bn.TopRight=Gi=new bn(1,0,0,0).ja(),bn.LeftCenter=Vi=new bn(0,.5,0,0).ja(),bn.Center=di=new bn(.5,.5,0,0).ja(),bn.RightCenter=ki=new bn(1,.5,0,0).ja(),bn.BottomLeft=cr=new bn(0,1,0,0).ja(),bn.BottomCenter=Qn=new bn(.5,1,0,0).ja(),bn.BottomRight=ni=new bn(1,1,0,0).ja(),bn.MiddleTop=Ur=_i,bn.MiddleLeft=ao=Vi,bn.MiddleRight=ho=ki,bn.MiddleBottom=bo=Qn,bn.Top=To=_i,bn.Left=ia=Vi,bn.Right=ma=ki,bn.Bottom=Da=Qn,bn.TopSide=Ki=Sr(new bn(0,0,1,1),1).ja(),bn.LeftSide=or=Sr(new bn(0,0,1,2),1).ja(),bn.RightSide=Mr=Sr(new bn(0,0,1,4),1).ja(),bn.BottomSide=fo=Sr(new bn(0,0,1,8),1).ja(),bn.TopBottomSides=po=Sr(new bn(0,0,1,9),1).ja(),bn.LeftRightSides=No=Sr(new bn(0,0,1,6),1).ja(),bn.TopLeftSides=qr=Sr(new bn(0,0,1,3),1).ja(),bn.TopRightSides=ta=Sr(new bn(0,0,1,5),1).ja(),bn.BottomLeftSides=Ao=Sr(new bn(0,0,1,10),1).ja(),bn.BottomRightSides=ar=Sr(new bn(0,0,1,12),1).ja(),bn.NotTopSide=Rr=Sr(new bn(0,0,1,14),1).ja(),bn.NotLeftSide=Lo=Sr(new bn(0,0,1,13),1).ja(),bn.NotRightSide=Zo=Sr(new bn(0,0,1,11),1).ja(),bn.NotBottomSide=Ko=Sr(new bn(0,0,1,7),1).ja(),bn.AllSides=Io=Sr(new bn(0,0,1,15),1).ja(),Do=new bn(.156,.156).ja(),Ea=new bn(.844,.844).ja(),bn.parse=er,bn.stringify=Br;function hi(){this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0}hi.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},hi.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},hi.prototype.copy=function(){var a=new hi;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},hi.prototype.toString=function(){return"Transform("+this.m11+","+this.m12+","+this.m21+","+this.m22+","+this.dx+","+this.dy+")"},hi.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},hi.prototype.ws=function(){return this.dx===0&&this.dy===0&&this.m11===1&&this.m12===0&&this.m21===0&&this.m22===1},hi.prototype.reset=function(){return this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0,this},hi.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},hi.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},hi.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},hi.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=hi.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},hi.alloc=function(){var a=Yo.pop();return a===void 0?new hi:a},hi.free=function(a){Yo.push(a)},hi.prototype.transformRect=hi.prototype.pp,hi.prototype.transformPoint=hi.prototype.Ga,hi.prototype.scale=hi.prototype.scale,hi.prototype.translate=hi.prototype.translate,hi.prototype.rotate=hi.prototype.rotate,hi.prototype.invert=hi.prototype.Vj,hi.prototype.multiplyInverted=hi.prototype.bv,hi.prototype.multiply=hi.prototype.multiply,hi.prototype.reset=hi.prototype.reset,hi.prototype.isIdentity=hi.prototype.ws,hi.prototype.equals=hi.prototype.D,hi.prototype.setTransform=hi.prototype.setTransform,hi.prototype.set=hi.prototype.set;var Yo=[];hi.className="Transform",hi.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 be(((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))xi(le,a,y,0,0),xi(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))xi(re,a,y,0,0),xi(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 st=(E+qe)/2,ht=(x+Ke)/2,ft=1/0,Ct=!1,Gt=0,oi=0;return St.Eo(a,y,Ae,Be,E,x,st,ht,oe,le,he,ge,Se,Pe)&&(a=(Pe.x-oe)*(Pe.x-oe)+(Pe.y-le)*(Pe.y-le),a<ft&&(ft=a,Ct=!0,Gt=Pe.x,oi=Pe.y)),St.Eo(st,ht,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&&(Ct=!0,Gt=Pe.x,oi=Pe.y),Ct&&(Pe.x=Gt,Pe.y=oi),Ct},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 st=(E+qe)/2,ht=(x+Ke)/2;Pe+=St.Fo(a,y,Ae,Be,E,x,st,ht,oe,le,he,ge,Se),Pe+=St.Fo(st,ht,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 st=(qe-a)*(qe-a)+(Ke-y)*(Ke-y);st<ge&&(ge=st,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):!!(Ei(a,y,x,E,b,z)||Ei(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 Mi,um:new Mi,Mf:new Mi,Nf:0,vm:100};St.za=St.AA;function wn(a){ai(this),this.l=2,a===void 0&&(a=wn.o),this.na=a,this.Ec=this.Dc=this.pd=this.od=0,a===wn.o?this.ee=new An:(wn.V===null&&(wn.V=new An().freeze()),this.ee=wn.V),this.aq=this.ee.Ja,this.Ip=new pt().freeze(),this.ym=this.tk=null,this.zm=NaN,this.fg=zi,this.gg=ni,this.Rk=this.Sk=NaN,this.Uf=Bn}wn.prototype.copy=function(){var a=new wn;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===wn.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},wn.prototype.ja=function(){return this.freeze(),Object.freeze(this),this},wn.prototype.freeze=function(){if(this._isFrozen=!0,this.type!==wn.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},wn.prototype.ka=function(){if(Object.isFrozen(this)&&ut("cannot thaw constant: "+this),this._isFrozen=!1,this.type!==wn.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},wn.prototype.Xa=function(a){if(!(a instanceof wn))return!1;if(this.type!==a.type)return this.type===wn.j&&a.type===wn.o?ja(this,a):a.type===wn.j&&this.type===wn.o?ja(a,this):!1;if(this.type===wn.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!==wn.j||y.type!==wn.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===vo&&St.B(a.endX,y.endX)&&St.B(a.endY,y.endY))))}wn.ia=function(a){return a.toString()},wn.prototype.qb=function(a){a.classType===wn&&(this.type=a)},wn.prototype.toString=function(a){switch(a===void 0&&(a=-1),this.type){case wn.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 wn.u:var y=new pt(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 wn.F:if(y=new pt(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 wn.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()}},wn.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},wn.parse=function(a,y){function x(){return Be>=ft-1?!0:le[Be+1].match(Ct)!==null}function E(){return Be++,le[Be]}function b(vr){var sr=parseFloat(E()),ro=parseFloat(E());qe===qe.toLowerCase()&&(sr=ht.x+sr,ro=ht.y+ro),vr.h(sr,ro)}function z(){return b(ht),ht}function ee(){return b(st),st}function re(){var vr=Ke.toLowerCase();return vr!=="c"&&vr!=="s"&&vr!=="q"&&vr!=="t"?ht:new Ze(2*ht.x-st.x,2*ht.y-st.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=pi();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,tn(oe)}}var Be=-1,qe="",Ke="";oe=new Ze(0,0);var st=new Ze(0,0),ht=new Ze(0,0),ft=le.length;a=N1(null),Se=ge=he=!1,Pe=!0,Ae=null;for(var Ct=/[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(ht);!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();)ht=new Ze((qe===qe.toLowerCase()?ht.x:0)+parseFloat(E()),ht.y),a.lineTo(ht.x,ht.y);break;case"V":for(;!x();)ht=new Ze(ht.x,(qe===qe.toLowerCase()?ht.y:0)+parseFloat(E())),a.lineTo(ht.x,ht.y);break;case"C":for(;!x();){Ae=new Ze,b(Ae);var Gt=ee(),oi=z();Lh(a,Ae.x,Ae.y,Gt.x,Gt.y,oi.x,oi.y)}break;case"S":for(;!x();)Ae=re(),Gt=ee(),oi=z(),Lh(a,Ae.x,Ae.y,Gt.x,Gt.y,oi.x,oi.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();)st=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()),oi=parseFloat(E());var Ni=parseFloat(E()),wi=parseFloat(E()),Wn=wi,Sn=!1;x()||(Wn=parseFloat(E()),x()||(Sn=parseFloat(E())!==0)),qe===qe.toLowerCase()&&(oi+=ht.x,Ni+=ht.y),a.arcTo(Ae,Gt,oi,Ni,wi,Wn,Sn)}break;case"A":for(;!x();)Ae=Math.abs(parseFloat(E())),Gt=Math.abs(parseFloat(E())),oi=parseFloat(E()),wi=Ni=!1,Sn=Wn=0,Wn=E(),Wn.length===1?(Ni=!!parseFloat(Wn),wi=!!parseFloat(E()),Wn=parseFloat(E())):Wn.length===2?(Ni=!!parseFloat(Wn[0]),wi=!!parseFloat(Wn[1]),Wn=parseFloat(E())):(Ni=!!parseFloat(Wn[0]),wi=!!parseFloat(Wn[1]),Wn=parseFloat(Wn.slice(2))),Sn=parseFloat(E()),qe===qe.toLowerCase()&&(Wn=ht.x+Wn,Sn=ht.y+Sn),ht.h(Wn,Sn),bx(a,Ae,Gt,oi,Ni,wi,Wn,Sn);break;case"Z":Lx(a),ht.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(Ct)===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(Ct)===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},wn.Ha=function(a,y){for(var x=a.length,E=Ze.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}Ze.free(E)},wn.prototype.Zu=function(){if(this._isInvalidBounds)return!0;if(this.type===wn.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},wn.prototype.computeBounds=function(){if(this._isInvalidBounds=!1,this.ym=this.tk=null,this.zm=NaN,this.type===wn.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),xi(a,0,0,0,0),a.freeze()},wn.prototype.ix=function(){var a=new pt;return za(this,a,!0),a};function za(a,y,x){switch(a.type){case wn.j:case wn.u:case wn.F:x?y.h(a.od,a.pd,0,0):xi(y,a.od,a.pd,0,0),xi(y,a.Dc,a.Ec,0,0);break;case wn.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):xi(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 vo:case sa:oe=ge.endX,le=ge.endY,xi(y,oe,le,0,0);break;case ga: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 oa:case us:var Se=ge.type===oa?Va(ge,z):$a(ge,z,oe,le),Pe=Se.length;if(Pe===0){oe=ge.type===oa?ge.centerX:ge.endX,le=ge.type===oa?ge.centerY:ge.endY,xi(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:ut("Unknown Segment type: "+ge.type)}}}break;default:ut("Unknown Geometry type: "+a.type)}}wn.prototype.normalize=function(){this._isFrozen&&Nt(this);var a=this.ix();return this.offset(-a.x,-a.y),new Ze(-a.x,-a.y)},wn.prototype.offset=function(a,y){return this._isFrozen&&Nt(this),this.transform(1,0,0,1,a,y),this},wn.prototype.scale=function(a,y){return this._isFrozen&&Nt(this),this.transform(a,0,0,y,0,0),this},wn.prototype.rotate=function(a,y,x){this._isFrozen&&Nt(this),y===void 0&&(y=0),x===void 0&&(x=0);var E=hi.alloc();return E.reset(),E.rotate(a,y,x),this.transform(E.m11,E.m12,E.m21,E.m22,E.dx,E.dy),hi.free(E),this},Le=wn.prototype,Le.transform=function(a,y,x,E,b,z){switch(this.type){case wn.j:case wn.u:case wn.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 wn.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 vo:case sa:ee=Ae.endX,re=Ae.endY,Ae.endX=ee*a+re*x+b,Ae.endY=ee*y+re*E+z;break;case ga: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 oa: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:ut("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 wn.j:return St.Yb(x,E,b,z,y,a.x,a.y);case wn.u:var ee=pt.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),pt.free(ee),a;case wn.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 wn.o:return da(this,a,y,!0,!1);default:return!1}};function da(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 st=oe,ht=le,ft=Ke.s,Ct=0;Ct<=Ke.length;Ct++){var Gt=void 0;if(Ct!==Ke.length){Gt=ft[Ct];var oi=Gt.type;a=Gt.endX,ge=Gt.endY}else oi=vo,a=st,ge=ht;switch(oi){case sa:if(st=ca(z,y,ee,y,oe,le,st,ht),isNaN(st))return!0;re+=st,st=a,ht=ge;break;case vo:if(oe=ca(z,y,ee,y,oe,le,a,ge),isNaN(oe))return!0;re+=oe;break;case ga: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 oa:case us:oi=Gt.type===oa?Va(Gt,Be):$a(Gt,Be,oe,le);var Ni=oi.length;if(Ni===0){if(oe=ca(z,y,ee,y,oe,le,Gt.type===oa?Gt.centerX:Gt.endX,Gt.type===oa?Gt.centerY:Gt.endY),isNaN(oe))return!0;re+=oe;break}Gt=null;for(var wi=0;wi<Ni;wi++){if(Gt=oi[wi],wi===0){if(he=ca(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:ut("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 ca(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 Ze),this.type===wn.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===wn.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===wn.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===wn.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=Ze.alloc();return St.qh(y,x,E,b,z,a,re),a=re.x,z=re.y,Ze.free(re),Math.sqrt(((a-y)*(a-y)+(z-x)*(z-x))/ee)}}else if(this.type===wn.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=Ze.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 st=(E.x-a.x)*(E.x-a.x)+(E.y-a.y)*(E.y-a.y);st<b&&(b=st,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 Ze.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===wn.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===wn.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===wn.F){var z=new aa;z.startX=a.endX,z.startY=(a.startY+a.endY)/2;var ee=new Wr(oa);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 sa: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 vo:E.push(Se.endX),E.push(Se.endY),ee=Se.endX,z=Se.endY;break;case ga: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 oa: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:ut("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(En(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&&Nt(this),this.fg=new bn(a,y,b,z).freeze(),this.gg=new bn(x,E,ee,re).freeze(),this},mn.Object.defineProperties(wn.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===wn.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===wn.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&&Nt(this,a),this.na=a,a===wn.o?this.ee=new An:(wn.V===null&&(wn.V=new An().freeze()),this.ee=wn.V),this._isInvalidBounds=!0)}},startX:{get:function(){return this.od},set:function(a){this.od!==a&&(this._isFrozen&&Nt(this,a),this.od=a,this._isInvalidBounds=!0)}},startY:{get:function(){return this.pd},set:function(a){this.pd!==a&&(this._isFrozen&&Nt(this,a),this.pd=a,this._isInvalidBounds=!0)}},endX:{get:function(){return this.Dc},set:function(a){this.Dc!==a&&(this._isFrozen&&Nt(this,a),this.Dc=a,this._isInvalidBounds=!0)}},endY:{get:function(){return this.Ec},set:function(a){this.Ec!==a&&(this._isFrozen&&Nt(this,a),this.Ec=a,this._isInvalidBounds=!0)}},figures:{get:function(){return this.ee},set:function(a){this.ee!==a&&(this._isFrozen&&Nt(this,a),this.ee=a,this._isInvalidBounds=!0)}},spot1:{get:function(){return this.fg},set:function(a){this._isFrozen&&Nt(this,a),this.fg=a.J()}},spot2:{get:function(){return this.gg},set:function(a){this._isFrozen&&Nt(this,a),this.gg=a.J()}},defaultStretch:{get:function(){return this.Uf},set:function(a){this._isFrozen&&Nt(this,a),this.Uf=a}},bounds:{get:function(){return this.Zu()&&this.computeBounds(),this.Ip}}}),wn.prototype.setSpots=wn.prototype.pm,wn.prototype.add=wn.prototype.add,wn.prototype.getFractionForPoint=wn.prototype.xx,wn.prototype.getPointAndAngleAlongPath=wn.prototype.Qu,wn.prototype.getAngleAlongPath=wn.prototype.wx,wn.prototype.getPointAlongPath=wn.prototype.Pu,wn.prototype.containsPoint=wn.prototype.ca,wn.prototype.transform=wn.prototype.transform,wn.prototype.rotate=wn.prototype.rotate,wn.prototype.scale=wn.prototype.scale,wn.prototype.offset=wn.prototype.offset,wn.prototype.normalize=wn.prototype.normalize,wn.prototype.computeBoundsWithoutOrigin=wn.prototype.ix,wn.prototype.equalsApprox=wn.prototype.Xa,wn.className="Geometry",wn.j=new Kt(wn,"Line",0),wn.u=new Kt(wn,"Rectangle",1),wn.F=new Kt(wn,"Ellipse",2),wn.o=new Kt(wn,"Path",3),wn.V=null,wn.hb="UuBbMmZzLlHhVvCcSsQqTtAaFfXx",wn.className="Geometry",wn.stringify=wn.ia,wn.fillPath=wn.nb,wn.parse=wn.parse,wn.Line=wn.j,wn.Rectangle=wn.u,wn.Ellipse=wn.F,wn.Path=wn.o;function aa(a,y,x,E,b){ai(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 An,this.sr=this.pl.Ja,this.fw=null}aa.prototype.copy=function(){var a=new aa;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=aa.prototype,Le.Xa=function(a){if(!(a instanceof aa&&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 sa:z=he.endX,ee=he.endY,E=he.endX,b=he.endY;break;case vo:if(St.Yb(E,b,he.endX,he.endY,x,a,y))return!0;E=he.endX,b=he.endY;break;case ga: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 oa:case us:var ge=he.type===oa?Va(he,this):$a(he,this,E,b),Se=ge.length,Pe=he.type===oa?he.centerX:he.endX,Ae=he.type===oa?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:ut("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},mn.Object.defineProperties(aa.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&&Nt(this,a),this.l=a?this.l|4:this.l&-5}},isShadowed:{get:function(){return(this.l&8)!==0},set:function(a){this._isFrozen&&Nt(this,a),this.l=a?this.l|8:this.l&-9}},isEvenOdd:{get:function(){return(this.l&16)!==0},set:function(a){this._isFrozen&&Nt(this,a),this.l=a?this.l|16:this.l&-17}},startX:{get:function(){return this.od},set:function(a){this._isFrozen&&Nt(this,a),this.od=a,this._isInvalidBounds=!0}},startY:{get:function(){return this.pd},set:function(a){this._isFrozen&&Nt(this,a),this.pd=a,this._isInvalidBounds=!0}},segments:{get:function(){return this.pl},set:function(a){this._isFrozen&&Nt(this,a),this.pl=a,this._isInvalidBounds=!0}}}),aa.prototype.add=aa.prototype.add,aa.prototype.equalsApprox=aa.prototype.Xa,aa.className="PathFigure";function Wr(a,y,x,E,b,z,ee,re){ai(this),a===void 0&&(a=vo),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===oa&&(z=Math.max(z,0)),this.Wh=z,typeof ee=="number"?(a===oa&&(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 sa:case vo:return St.B(this.endX,a.endX)&&St.B(this.endY,a.endY);case ga: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 oa: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 sa:a=0>a?"M"+this.endX.toString()+" "+this.endY.toString():"M"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case vo:a=0>a?"L"+this.endX.toString()+" "+this.endY.toString():"L"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case ga: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 oa: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=hi.alloc();ee.reset(),x<E?ee.scale(1,E/x):ee.scale(x/E,1),wn.Ha(z,ee),hi.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,st){return(Be*st<qe*Ke?-1:1)*Math.acos((Be*Ke+qe*st)/(Math.sqrt(Be*Be+qe*qe)*Math.sqrt(Ke*Ke+st*st)))}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=hi.alloc(),z.reset(),z.translate(x,E),z.rotate(a.Ne,0,0),z.scale(oe,Pe),wn.Ha(y,z),hi.free(z),a.ae=y,a.ae}mn.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&&Nt(this,a),this.na=a,this._isInvalidBounds=!0}},endX:{get:function(){return this.Dc},set:function(a){this._isFrozen&&Nt(this,a),this.Dc=a,this._isInvalidBounds=!0}},endY:{get:function(){return this.Ec},set:function(a){this._isFrozen&&Nt(this,a),this.Ec=a,this._isInvalidBounds=!0}},point1X:{get:function(){return this.Ne},set:function(a){this._isFrozen&&Nt(this,a),this.Ne=a,this._isInvalidBounds=!0}},point1Y:{get:function(){return this.Vh},set:function(a){this._isFrozen&&Nt(this,a),this.Vh=a,this._isInvalidBounds=!0}},point2X:{get:function(){return this.Wh},set:function(a){this._isFrozen&&Nt(this,a),this.Wh=a,this._isInvalidBounds=!0}},point2Y:{get:function(){return this.Pg},set:function(a){this._isFrozen&&Nt(this,a),this.Pg=a,this._isInvalidBounds=!0}},centerX:{get:function(){return this.Ne},set:function(a){this._isFrozen&&Nt(this,a),this.Ne=a,this._isInvalidBounds=!0}},centerY:{get:function(){return this.Vh},set:function(a){this._isFrozen&&Nt(this,a),this.Vh=a,this._isInvalidBounds=!0}},radiusX:{get:function(){return this.Wh},set:function(a){0>a&&Rn(a,">= zero",Wr,"radiusX"),this._isFrozen&&Nt(this,a),this.Wh=a,this._isInvalidBounds=!0}},radiusY:{get:function(){return this.Pg},set:function(a){0>a&&Rn(a,">= zero",Wr,"radiusY"),this._isFrozen&&Nt(this,a),this.Pg=a,this._isInvalidBounds=!0}},startAngle:{get:function(){return this.Dc},set:function(a){this._isFrozen&&Nt(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&&Nt(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&&Nt(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&&Nt(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&&Nt(this,a),a%=360,0>a&&(a+=360),this.Ne=a,this._isInvalidBounds=!0}}}),Wr.prototype.equalsApprox=Wr.prototype.Xa;var sa=new Kt(Wr,"Move",0),vo=new Kt(Wr,"Line",1),ga=new Kt(Wr,"Bezier",2),ls=new Kt(Wr,"QuadraticBezier",3),oa=new Kt(Wr,"Arc",4),us=new Kt(Wr,"SvgArc",4);Wr.className="PathSegment",Wr.Move=sa,Wr.Line=vo,Wr.Bezier=ga,Wr.QuadraticBezier=ls,Wr.Arc=oa,Wr.SvgArc=us;function Ta(){this.H=null,this.xu=new Ze(0,0).freeze(),this.mt=new Ze(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},mn.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},mn.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 Go(){this.Fm=Ro,this.rf=this.Qq="",this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null}Go.prototype.clear=function(){this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null},Go.prototype.copy=function(){var a=new Go;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=Qt(y)&&typeof y.J=="function"?y.J():y,y=this.Rn,a.Rn=Qt(y)&&typeof y.J=="function"?y.J():y,y=this.Mn,a.Mn=Qt(y)&&typeof y.J=="function"?y.J():y,y=this.Ln,a.Ln=Qt(y)&&typeof y.J=="function"?y.J():y,a},Go.prototype.qb=function(a){a.classType===Go&&(this.change=a)},Go.prototype.toString=function(){var a="";return a=this.change===Aa?a+"* ":this.change===Ro?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===Aa?this.oldValue!==null&&(a+=" "+this.oldValue):(this.object!==null&&(a+=yr(this.object)),this.oldValue!==null&&(a+=" old: "+yr(this.oldValue)),this.oldParam!==null&&(a+=" "+this.oldParam),this.newValue!==null&&(a+=" new: "+yr(this.newValue)),this.newParam!==null&&(a+=" "+this.newParam)),a},Go.prototype.I=function(a){return a?this.oldValue:this.newValue},Go.prototype.Dz=function(a){return a?this.oldParam:this.newParam},Go.prototype.canUndo=function(){return this.model!==null||this.diagram!==null},Go.prototype.undo=function(){this.canUndo()&&(this.model!==null?this.model.changeState(this,!0):this.diagram!==null&&this.diagram.changeState(this,!0))},Go.prototype.canRedo=function(){return this.model!==null||this.diagram!==null},Go.prototype.redo=function(){this.canRedo()&&(this.model!==null?this.model.changeState(this,!1):this.diagram!==null&&this.diagram.changeState(this,!1))},mn.Object.defineProperties(Go.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===Aa&&(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}}}),Go.prototype.redo=Go.prototype.redo,Go.prototype.canRedo=Go.prototype.canRedo,Go.prototype.undo=Go.prototype.undo,Go.prototype.canUndo=Go.prototype.canUndo,Go.prototype.getParam=Go.prototype.Dz,Go.prototype.getValue=Go.prototype.I,Go.prototype.clear=Go.prototype.clear;var Aa=new Kt(Go,"Transaction",-1),Ro=new Kt(Go,"Property",0),qo=new Kt(Go,"Insert",1),ua=new Kt(Go,"Remove",2);Go.className="ChangedEvent",Go.Transaction=Aa,Go.Property=Ro,Go.Insert=qo,Go.Remove=ua;function pa(){this.o=new An().freeze(),this.xa="",this.j=!1}pa.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},pa.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()},pa.prototype.canUndo=function(){return this.isComplete},pa.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()}},pa.prototype.canRedo=function(){return this.isComplete},pa.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()}},pa.prototype.ak=function(){if(this.isComplete){var a=this.changes;a.ka();for(var y=new Ht,x=0;x<a.count;x++){var E=a.M(x);if(E!==null&&E.change===Ro&&E.object){var b=y.get(E.object);b||(b=new Ht,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()}},mn.Object.defineProperties(pa.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}}}),pa.prototype.optimize=pa.prototype.ak,pa.prototype.redo=pa.prototype.redo,pa.prototype.canRedo=pa.prototype.canRedo,pa.prototype.undo=pa.prototype.undo,pa.prototype.canUndo=pa.prototype.canUndo,pa.prototype.clear=pa.prototype.clear,pa.className="Transaction";function Jo(){this.Pt=new Fn,this.Jd=!1,this.u=new An().freeze(),this.Ce=-1,this.o=999,this.Fe=!1,this.Np=null,this.bi=0,this.j=!1,this.Ie=new An().freeze(),this.hl=new An,this.tt=!0,this.Dt=this.rq=this.Gt=this.Ft=!1}Jo.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},Jo.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},Jo.prototype.copyProperties=function(a){this.isEnabled=a.isEnabled,this.maxHistoryLength=a.maxHistoryLength,this.checksTransactionLevel=a.checksTransactionLevel},Le=Jo.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&&In("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()}},Jo.prototype.canUndo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var a=this.transactionToUndo;return!!(a!==null&&a.canUndo())},Jo.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){In("undo error: "+y.toString())}finally{this.Ob("FinishedUndo","Undo",a),this.Fe=!1}}},Jo.prototype.canRedo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var a=this.transactionToRedo;return!!(a!==null&&a.canRedo())},Jo.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){In("redo error: "+y.toString())}finally{this.Ob("FinishedRedo","Redo",a),this.Fe=!1}}},Jo.prototype.Ob=function(a,y,x){x===void 0&&(x=null);var E=new Go;for(E.change=Aa,E.propertyName=a,E.object=x,E.oldValue=y,a=this.models;a.next();)y=a.value,E.model=y,y.ds(E)},Jo.prototype.Tu=function(a){if(this.isEnabled&&!this.isUndoingRedoing&&!this.skipsEvent(a)){var y=this.currentTransaction;y===null&&(this.Np=y=new pa);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||In("Change not within a transaction: "+x.toString()))}},Jo.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},mn.Object.defineProperties(Jo.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}}}),Jo.prototype.handleChanged=Jo.prototype.Tu,Jo.prototype.redo=Jo.prototype.redo,Jo.prototype.undo=Jo.prototype.undo,Jo.prototype.canUndo=Jo.prototype.canUndo,Jo.prototype.discardHistoryAfterIndex=Jo.prototype.lx,Jo.prototype.rollbackTransaction=Jo.prototype.Kf,Jo.prototype.commitTransaction=Jo.prototype.eb,Jo.prototype.startTransaction=Jo.prototype.Ea,Jo.prototype.removeModel=Jo.prototype.Rx,Jo.prototype.addModel=Jo.prototype.Xw,Jo.prototype.clear=Jo.prototype.clear,Jo.className="UndoManager";function Yr(){ai(this),this.H=Bu,this.xa="",this.Jd=!0,this.nb=!1,this.wm=null,this.yy=new Ta,this.Zr=-1}Yr.prototype.toString=function(){return this.name!==""?this.name+" Tool":Wi(this.constructor)},Yr.prototype.updateAdornments=function(){},Yr.prototype.canStart=function(){return this.isEnabled},Yr.prototype.doStart=function(){},Yr.prototype.doActivate=function(){this.isActive=!0},Yr.prototype.doDeactivate=function(){this.isActive=!1},Yr.prototype.doStop=function(){},Yr.prototype.doCancel=function(){this.transactionResult=null,this.stopTool()},Yr.prototype.stopTool=function(){var a=this.diagram;a.currentTool===this&&(a.currentTool=null,a.currentCursor="")},Yr.prototype.doMouseDown=function(){!this.isActive&&this.canStart()&&this.doActivate()},Yr.prototype.doMouseMove=function(){},Yr.prototype.doMouseUp=function(){this.stopTool()},Yr.prototype.doMouseWheel=function(){},Yr.prototype.canStartMultiTouch=function(){return!0},Yr.prototype.standardPinchZoomStart=function(){var a=this.diagram,y=a.lastInput,x=y.So(0,Ze.allocAt(NaN,NaN)),E=y.So(1,Ze.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}Ze.free(x),Ze.free(E)},Yr.prototype.standardPinchZoomMove=function(){var a=this.diagram,y=a.lastInput,x=y.So(0,Ze.allocAt(NaN,NaN)),E=y.So(1,Ze.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 Ze((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}Ze.free(x),Ze.free(E)},Yr.prototype.doKeyDown=function(){this.diagram.lastInput.key==="Esc"&&this.doCancel()},Yr.prototype.doKeyUp=function(){},Yr.prototype.Ea=function(a){return a===void 0&&(a=this.name),this.transactionResult=null,this.diagram.Ea(a)},Yr.prototype.stopTransaction=function(){var a=this.diagram;return this.transactionResult===null?a.Kf():a.eb(this.transactionResult)},Yr.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()}},Yr.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)}}}Yr.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}},Yr.prototype.doUpdateCursor=function(){var a=this.diagram;a&&(a.currentCursor="")},Yr.prototype.doCurrentObjectChanged=function(){},Yr.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)}}},Yr.prototype.doWheelChange=function(a,y,x){a.position.D(y)&&x.event.wheelDeltaX===0||(x.bubbles=!1)},Yr.prototype.standardWaitAfter=function(a,y){y===void 0&&(y=this.diagram.lastInput),this.cancelWaitAfter();var x=this,E=y.clone(this.yy);this.Zr=Vr(function(){x.doWaitAfter(E)},a)},Yr.prototype.cancelWaitAfter=function(){this.Zr!==-1&&Zn.clearTimeout(this.Zr),this.Zr=-1},Yr.prototype.doWaitAfter=function(){},Yr.prototype.findToolHandleAt=function(a,y){return a=this.diagram.ic(a,function(x){for(;x!==null&&!(x.panel instanceof eo);)x=x.panel;return x}),a===null?null:a.part.category===y?a:null},Yr.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},mn.Object.defineProperties(Yr.prototype,{diagram:{get:function(){return this.H},set:function(a){a instanceof Vt&&(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}}}),Yr.prototype.startTransaction=Yr.prototype.Ea,Yr.className="Tool";function Eo(){Yr.call(this),this.name="ToolManager",this.hb=new An,this.ob=new An,this.Hb=new An,this.F=this.V=850,this.o=new Xe(2,2).ja(),this.Ha=5e3,this.ia=Qs,this.u=vu,this.Mp=this.j=null,this.zj=-1}jt(Eo,Yr),Eo.prototype.initializeStandardTools=function(){},Eo.prototype.updateAdornments=function(a){var y=this.currentToolTip;if(y instanceof eo&&this.Mp===a){var x=y.adornedObject;(a!==null?x.part===a:x===null)?this.showToolTip(y,x):this.hideToolTip()}},Eo.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)},Eo.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)}Eo.prototype.doCurrentObjectChanged=function(a,y){a=this.currentToolTip,a===null||y!==null&&a instanceof eo&&(y===a||y.rg(a))||this.hideToolTip()},Eo.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()))},Eo.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)},Eo.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 eo)||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()},Eo.prototype.showToolTip=function(a,y){var x=this.diagram;if(a!==this.currentToolTip&&this.hideToolTip(),a instanceof eo){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&&(Zn.clearTimeout(this.zj),this.zj=-1),a=this.toolTipDuration,0<a&&a!==1/0){var b=this;this.zj=Vr(function(){b.hideToolTip()},a)}},Eo.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}},Eo.prototype.hideToolTip=function(){this.zj!==-1&&(Zn.clearTimeout(this.zj),this.zj=-1);var a=this.diagram,y=this.currentToolTip;y!==null&&(y instanceof eo?(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)},Eo.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()},Eo.prototype.doMouseWheel=function(){this.standardMouseWheel()},Eo.prototype.doKeyDown=function(){var a=this.diagram;a.commandHandler!==null&&a.commandHandler.doKeyDown()},Eo.prototype.doKeyUp=function(){var a=this.diagram;a.commandHandler!==null&&a.commandHandler.doKeyUp()},Eo.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},Eo.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},Eo.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)},mn.Object.defineProperties(Eo.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 eo?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}}}),Eo.prototype.replaceStandardTool=Eo.prototype.gb;var Qs=new Kt(Eo,"WheelScroll",0),Dl=new Kt(Eo,"WheelZoom",1),mu=new Kt(Eo,"WheelNone",2),vu=new Kt(Eo,"GestureZoom",3),Ws=new Kt(Eo,"GestureCancel",4),Vl=new Kt(Eo,"GestureNone",5);Eo.className="ToolManager",Eo.WheelScroll=Qs,Eo.WheelZoom=Dl,Eo.WheelNone=mu,Eo.GestureZoom=vu,Eo.GestureCancel=Ws,Eo.GestureNone=Vl;function Uo(){Yr.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 Ze(NaN,NaN),this.Fr=new Ze,this.hb=!0,this.Ik=100,this.Cg=[],this.te=new Fn().freeze(),this.ia=new ae,this.Bn=null,this.F="copy",this.Oc="",this.Pc="no-drop"}var Hs;jt(Uo,Yr),Uo.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a.isReadOnly&&!a.allowDragOut||!a.allowMove&&!a.allowCopy&&!a.allowDragOut||!a.allowSelect)return!1;var y=a.lastInput;return!y.left||a.currentTool!==this&&(!this.isBeyondDragSize()||y.isTouchEvent&&y.timestamp-a.firstInput.timestamp<this.Ik)?!1:this.findDraggablePart()!==null},Uo.prototype.findDraggablePart=function(){var a=this.diagram;if(a=a.Ol(a.firstInput.documentPoint,!1),a===null)return null;for(;a!==null&&!a.canSelect();)a=a.containingGroup;return a!==null&&(a.canMove()||a.canCopy())?a:null},Uo.prototype.standardMouseSelect=function(){var a=this.diagram;if(a.allowSelect){var y=a.Ol(a.firstInput.documentPoint,!1);if(y!==null){for(;y!==null&&!y.canSelect();)y=y.containingGroup;this.currentPart=y,this.currentPart===null||this.currentPart.isSelected||(a.R("ChangingSelection",a.selection),y=a.lastInput,(jr?y.meta:y.control)||y.shift||a.clearSelection(!0),this.currentPart.isSelected=!0,a.R("ChangedSelection",a.selection))}}},Uo.prototype.doActivate=function(){var a=this.diagram;this.Bn=null,this.currentPart===null&&this.standardMouseSelect();var y=this.currentPart;y!==null&&(y.canMove()||y.canCopy())&&(a.Fu(!0),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 Gn?(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))}}Uo.prototype.computeEffectiveCollection=function(a,y){return this.diagram.commandHandler.computeEffectiveCollection(a,y)},Uo.prototype.Pd=function(a){return a===void 0?new eh(Xn):this.isGridSnapEnabled?new eh(new Ze(Math.round(1e3*a.x)/1e3,Math.round(1e3*a.y)/1e3)):new eh(a.copy())},Uo.prototype.doDeactivate=function(){this.isActive=!1;var a=this.diagram;if(this.diagram.layout.isRealtime=this.Sw,a.Fu(!1),a.ug(),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);_o(b),ko(b),gl(b),b.diagram.ug()}y.clear()}_o(this),this.tl.h(NaN,NaN),Xu!==null&&(Xu.currentCursor=""),Za=Xu=null,ko(this),a.isMouseCaptured=!1,a.currentCursor="",a.Ns=!1,this.stopTransaction(),Cc(a,!0)},Uo.prototype.stopTransaction=function(){var a=this.diagram,y=Yr.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;ko(a),es(a);var y=a.diagram;a.tl.w()&&(y.position=a.tl),y.ug()}Uo.prototype.doCancel=function(){ko(this),es(this);var a=this.diagram;this.tl.w()&&(a.position=this.tl),this.stopTool()},Uo.prototype.doKeyDown=function(){var a=this.diagram,y=a.lastInput;this.isActive&&(y.key==="Esc"?this.doCancel():y.key!==a.previousInput.key&&this.doMouseMove())},Uo.prototype.doKeyUp=function(){this.isActive&&this.doMouseMove()};function 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 Ht,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 Gn&&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 ko(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 Gn&&(x.value.point=new Ze(0,0));a.doUpdateCursor(null)}y.skipsUndoManager=!1,y.partManager.addsToTemporaryLayer=!1,a.startPoint=y.firstInput.documentPoint}function _o(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 Ca(a,y,x){var E=a.diagram,b=a.startPoint,z=Ze.alloc();z.assign(E.lastInput.documentPoint),a.moveParts(y,z.re(b),x),Ze.free(z),E.Gf("temporaryPixelRatio")===!0&&E.Yh===null&&30<E.$w&&(Ns(E),E.hk())}Uo.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 Gn&&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),yo(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 xr)){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)}Uo.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 eo||x.layer.isTemporary||y.draggedParts&&y.draggedParts.contains(x)||y.copiedParts&&y.copiedParts.contains(x))),!x})},Uo.prototype.doUpdateCursor=function(a){var y=this.diagram;(a===null||this.Bn!==a)&&(!this.diagram.currentTool.isActive||this.mayCopy()?y.currentCursor=this.copyCursor:this.mayMove()?y.currentCursor=this.moveCursor:this.mayDragOut()&&(y.currentCursor=this.nodropCursor))};function 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 Xi&&!(a instanceof xr)&&(a=a.containingGroup,a!==null&&a.handlesDragDropForMembers)?a:null}function jo(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=Ze.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(di,a);oe=y.Bf(oe),oe<z&&(ee=re,z=oe)}}return Ze.free(a),ee}function yo(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=jo(a,x.i(0),!1),z!==null&&(ee=z.part));var re=null,oe=null;x.toNode===null&&(re=jo(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)}}}}Uo.prototype.doDragOver=function(){};function Ya(a,y){var x=a.diagram;a.dragsLink&&yo(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 si&&z.linksConnected.each(function(re){re.suspendsRouting=!1});if(a.doDropOnto(y,E),a.isActive||Za!==null){for(a=pt.alloc(),y=x.selection.iterator;y.next();)E=y.value,E instanceof si&&Dd(x,E,a);pt.free(a)}}}function iu(a,y,x){a=a.diagram,x=x.part,!a.handlesDragDropForTopLevelParts||!x.isTopLevel||x instanceof xr||(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 Gn},!0,function(b){return b instanceof Gn},E),a.count!==0)for(a=a.iterator;a.next();)x=a.value,!x.Td(y)&&x.isAvoiding&&x.bb()}Uo.prototype.doDropOnto=function(){},Uo.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram,y=a.lastInput;this.simulatedMouseMove(y.event,y.documentPoint,y.targetDiagram)||this.currentPart===null||this.draggedParts===null||(this.mayCopy()?(pl(this,!1),vf(a,this.copiedParts),Ca(this,this.copiedParts,!1),id(a,this.copiedParts)):this.mayMove()?(ko(this),Ca(this,this.draggedParts,!0)):this.mayDragOut()?(pl(this,!1),Ca(this,this.copiedParts,!1)):ko(this),Xa(this,a.lastInput.documentPoint))}},Uo.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram,y=a.lastInput;if(!this.simulatedMouseUp(y.event,y.documentPoint,y.targetDiagram)){y=!1;var x=this.mayCopy();if(x&&this.copiedParts!==null?(ko(this),pl(this,!0),vf(a,this.copiedParts),Ca(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,ko(this),this.mayMove()&&(Ca(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)}}},Uo.prototype.simulatedMouseMove=function(a,y,x){if(Za===null)return!1;var E=Za.diagram;x instanceof Vt||(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)},Uo.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 Ze),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 si&&(x=x.containingGroup,x===null||x.placeholder===null||a.draggedParts.contains(x)||x.placeholder.v())}}Uo.prototype.mayCopy=function(){if(!this.isCopyEnabled)return!1;var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowCopy||(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())},Uo.prototype.mayDragOut=function(){if(!this.isCopyEnabled)return!1;var a=this.diagram;if(!a.allowDragOut||!a.allowCopy||a.allowMove)return!1;for(a=a.selection.iterator;a.next();)if(a.value.canCopy())return!0;return!!(this.draggedLink!==null&&this.dragsLink&&this.draggedLink.canCopy())},Uo.prototype.mayMove=function(){var a=this.diagram;if(a.isReadOnly||!a.allowMove)return!1;for(a=a.selection.iterator;a.next();)if(a.value.canMove())return!0;return!!(this.draggedLink!==null&&this.dragsLink&&this.draggedLink.canMove())},Uo.prototype.computeBorder=function(a,y,x){return this.Ym||this.draggedParts===null||this.draggedParts.contains(a)?null:x.assign(y)},Uo.prototype.Az=function(){return Za},Uo.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)},Uo.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)}},Uo.prototype.doSimulatedDragLeave=function(){var a=Za;a!==null&&a.doSimulatedDragOut(),this.doCancel()},Uo.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),Ca(this,this.copiedParts,!1),Xa(this,a.lastInput.documentPoint)}a.animationManager.Dm=!1},Uo.prototype.doSimulatedDrop=function(){var a=this.diagram,y=Za;if(y!==null){var x=y.diagram;if(y.Ym=!0,ko(this),!this.mayDragIn())return;a.animationManager.Dm=!0,a.R("ChangingSelection",a.selection),this.Ea("Drop"),tf(this,y.draggedParts.Lf(),!0,a.lastInput),Ca(this,this.copiedParts,!1);var E=new Fn;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=pt.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,pt.free(z),z=a.Fr,ee=new Ht,re=Ze.alloc(),oe=y.iterator;oe.next();)le=oe.value,le instanceof Gn&&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))));Ze.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)}}}Uo.prototype.doSimulatedDragOut=function(){var a=this.diagram;a.Ns=!1,this.mayCopy()||this.mayMove()?a.currentCursor="":a.currentCursor=this.nodropCursor,this.Bn=null},Uo.prototype.computeMove=function(a,y,x,E){return x=this.diagram,x!==null?x.computeMove(a,y,this.dragOptions,E):new Ze},mn.Object.defineProperties(Uo.prototype,{isCopyEnabled:{get:function(){return this.ob},set:function(a){this.ob=a}},copiesEffectiveCollection:{get:function(){return this.u},set:function(a){this.u=a}},dragOptions:{get:function(){return this.ia},set:function(a){this.ia=a}},isGridSnapEnabled:{get:function(){return this.dragOptions.isGridSnapEnabled},set:function(a){this.dragOptions.isGridSnapEnabled=a}},isComplexRoutingRealtime:{get:function(){return this.hb},set:function(a){this.hb=a}},isGridSnapRealtime:{get:function(){return this.dragOptions.isGridSnapRealtime},set:function(a){this.dragOptions.isGridSnapRealtime=a}},gridSnapCellSize:{get:function(){return this.dragOptions.gridSnapCellSize},set:function(a){this.dragOptions.gridSnapCellSize.D(a)||(a=a.J(),this.dragOptions.gridSnapCellSize=a)}},gridSnapCellSpot:{get:function(){return this.dragOptions.gridSnapCellSpot},set:function(a){this.dragOptions.gridSnapCellSpot.D(a)||(a=a.J(),this.dragOptions.gridSnapCellSpot=a)}},gridSnapOrigin:{get:function(){return this.dragOptions.gridSnapOrigin},set:function(a){this.dragOptions.gridSnapOrigin.D(a)||(a=a.J(),this.dragOptions.gridSnapOrigin=a)}},dragsLink:{get:function(){return this.dragOptions.dragsLink},set:function(a){this.dragOptions.dragsLink=a}},dragsTree:{get:function(){return this.dragOptions.dragsTree},set:function(a){this.dragOptions.dragsTree=a}},copyCursor:{get:function(){return this.F},set:function(a){this.F=a}},moveCursor:{get:function(){return this.Oc},set:function(a){this.Oc=a}},nodropCursor:{get:function(){return this.Pc},set:function(a){this.Pc=a}},currentPart:{get:function(){return this.V},set:function(a){this.V=a}},copiedParts:{get:function(){return this.o},set:function(a){this.o=a}},draggedParts:{get:function(){return this.Ha},set:function(a){this.Ha=a}},draggingParts:{get:function(){return this.copiedParts!==null?this.copiedParts.Lf():this.draggedParts!==null?this.draggedParts.Lf():this.te}},draggedLink:{get:function(){return this.diagram.draggedLink},set:function(a){this.diagram.draggedLink=a}},isDragOutStarted:{get:function(){return this.Hb},set:function(a){this.Hb=a}},startPoint:{get:function(){return this.Fr},set:function(a){this.Fr.D(a)||this.Fr.assign(a)}},delay:{get:function(){return this.Ik},set:function(a){this.Ik=a}}}),Uo.prototype.getDraggingSource=Uo.prototype.Az;var Za=null,Xu=null;Uo.className="DraggingTool",Hs=new An,Yn("draggingTool",function(){return this.findTool("Dragging")},function(a){this.gb("Dragging",a,this.mouseMoveTools)}),Eo.prototype.doCancel=function(){Za!==null&&Za.doCancel(),Yr.prototype.doCancel.call(this)};function $r(){Yr.call(this),this.te=100,this.Ha=!1,this.u="pointer";var a=new Gn,y=new Fr;y.isPanelMain=!0,y.stroke="blue",a.add(y),y=new Fr,y.toArrow="Standard",y.fill="blue",y.stroke="blue",a.add(y),a.layerName="Tool",this.Ci=a,a=new si,y=new Fr,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=Et,a.add(y),a.selectable=!1,a.layerName="Tool",this.Bi=a,this.j=y,a=new si,y=new Fr,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=Et,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 Ht,this.Of=this.gj=this.Pf=null}jt($r,Yr),$r.prototype.doStop=function(){this.diagram.ug(),this.originalToPort=this.originalToNode=this.originalFromPort=this.originalFromNode=this.originalLink=null,this.validPortsCache.clear(),this.targetPort=null},$r.prototype.copyPortProperties=function(a,y,x,E,b){if(a!==null&&y!==null&&x!==null&&E!==null){var z=y.Df(),ee=Xe.alloc();ee.width=y.naturalBounds.width*z,ee.height=y.naturalBounds.height*z,E.desiredSize=ee,Xe.free(ee),b?(E.toSpot=y.toSpot,E.toEndSegmentLength=y.toEndSegmentLength):(E.fromSpot=y.fromSpot,E.fromEndSegmentLength=y.fromEndSegmentLength),x.locationSpot=di,z=Ze.alloc(),x.location=y.ga(di,z),Ze.free(z),E.angle=y.li(),this.portTargeted!==null&&this.portTargeted(a,y,x,E,b)}},$r.prototype.setNoTargetPortProperties=function(a,y,x){y!==null&&(y.desiredSize=Et,y.fromSpot=Li,y.toSpot=Li),a!==null&&(a.location=this.diagram.lastInput.documentPoint),this.portTargeted!==null&&this.portTargeted(null,null,a,y,x)},$r.prototype.doMouseDown=function(){this.isActive&&this.doMouseMove()},$r.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram;if(this.targetPort=this.findTargetPort(this.isForwards),this.targetPort!==null&&this.targetPort.part instanceof si){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)}},$r.prototype.findValidLinkablePort=function(a,y){if(a===null)return null;var x=a.part;if(!(x instanceof si))return null;for(;a!==null;){var E=y?a.toLinkable:a.fromLinkable;if(E===!0&&(a.portId!==null||a instanceof si)&&(y?this.isValidTo(x,a):this.isValidFrom(x,a)))return a;if(E===!1)break;a=a.panel}return null},$r.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 si){var oe=ee.ga(di,Ze.alloc()),le=x.x-oe.x,he=x.y-oe.y;Ze.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 si&&(x.layer===null||x.layer.allowLink))?y:null},$r.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},$r.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},$r.prototype.isInSameNode=function(a,y){return a===null||y===null?!1:a===y?!0:(a=a.part,y=y.part,a!==null&&a===y)},$r.prototype.isLinked=function(a,y){if(a===null||y===null)return!1;var x=a.part;if(!(x instanceof si))return!1;a=a.portId,a===null&&(a="");var E=y.part;if(!(E instanceof si))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},$r.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)},$r.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 Fn;return E.add(a),so(this,x,y,E)};function so(a,y,x,E){if(y===x)return!0;var b=y.fromNode;return b!==null&&b.isLinkLabel&&(E.add(b),so(a,b.labeledLink,x,E))?!0:(y=y.toNode,!!(y!==null&&y.isLinkLabel&&(E.add(y),so(a,y.labeledLink,x,E))))}$r.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!Fo(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!Fo(this,a,y,x,!0)}if(E===zg)return a===y?a=!0:(E=new Fn,E.add(y),a=na(this,E,a,y,x)),!a;if(E===Zg)return!Fo(this,a,y,x,!1);if(E===Wg)return a===y?a=!0:(E=new Fn,E.add(y),a=ns(this,E,a,y,x)),!a}return!0};function Fo(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&&Fo(a,ee,x,E,b)))return!0}return!1}function na(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&&na(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}mn.Object.defineProperties($r.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}}}),$r.className="LinkingBaseTool";function hs(){$r.call(this),this.name="Linking",this.V={},this.F=null,this.K=_h,this.Xd=null}jt(hs,$r),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 si)))return null;var x=this.direction;if(x===_h||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===_h||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 si&&(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 si&&(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(){$r.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 si&&(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 Gn)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(){},mn.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 _h=new Kt(hs,"Either",0),Hp=new Kt(hs,"ForwardsOnly",0),Gp=new Kt(hs,"BackwardsOnly",0);hs.className="LinkingTool",hs.Either=_h,hs.ForwardsOnly=Hp,hs.BackwardsOnly=Gp;function ol(){$r.call(this),this.name="Relinking";var a=new Fr;a.figure="Diamond",a.desiredSize=$t,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=0,this.V=a,a=new Fr,a.figure="Diamond",a.desiredSize=$t,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=-1,this.Xd=a,this.F=null,this.Ew=new pt}jt(ol,$r),ol.prototype.updateAdornments=function(a){if(a!==null&&a instanceof Gn){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 eo;return x.type=On.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 eo&&x.adornedPart instanceof Gn))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(){$r.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 si&&(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)}mn.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 eo))throw Error("new handle is not in an Adornment: "+a);this.F=a}}}),ol.className="RelinkingTool",Yn("linkingTool",function(){return this.findTool("Linking")},function(a){this.gb("Linking",a,this.mouseMoveTools)}),Yn("relinkingTool",function(){return this.findTool("Relinking")},function(a){this.gb("Relinking",a,this.mouseDownTools)});function ya(){Yr.call(this),this.name="LinkReshaping";var a=new Fr;a.figure="Rectangle",a.desiredSize=Jt,a.fill="lightblue",a.stroke="dodgerblue",this.o=a,a=new Fr,a.figure="Diamond",a.desiredSize=$t,a.fill="lightblue",a.stroke="dodgerblue",a.cursor="move",this.u=a,this.F=3,this.Ts=this.j=null,this.Fw=new Ze,this.Yq=new An}jt(ya,Yr),ya.prototype.Ru=function(a){return a&&a.reshapingBehavior.value!==0?a.reshapingBehavior:cg},ya.prototype.om=function(a,y){a.reshapingBehavior=y},ya.prototype.updateAdornments=function(a){if(a!==null&&a instanceof Gn){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)}},ya.prototype.makeAdornment=function(a){var y=a.part,x=y.pointsCount,E=y.isOrthogonal,b=null;if(y.points!==null&&1<x){b=new eo,b.type=On.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},ya.prototype.makeHandle=function(){var a=this.handleArchetype;return a===null?null:a.copy()},ya.prototype.makeResegmentHandle=function(){var a=this.midHandleArchetype;return a===null?null:a.copy()},ya.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},ya.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 Gn){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}}},ya.prototype.doDeactivate=function(){this.stopTransaction(),this.Ts=this.handle=null,this.isActive=this.diagram.isMouseCaptured=!1},ya.prototype.stopTransaction=function(){var a=this.diagram,y=Yr.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},ya.prototype.doCancel=function(){var a=this.adornedLink;a!==null&&(a.points=this.Yq),this.stopTool()},ya.prototype.getResegmentingPoint=function(){return this.handle.ga(di)},ya.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeReshape(a.lastInput.documentPoint),this.reshape(a))},ya.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 Ze(ee.x,(z.y+ee.y)/2)),re.cd(x+1,new Ze(z.x,(z.y+ee.y)/2))):(re.cd(x-2,new Ze((z.x+ee.x)/2,ee.y)),re.cd(x+1,new Ze((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 Ze(E.x,(E.y+ee.y)/2)),re.cd(x+2,new Ze(ee.x,(E.y+ee.y)/2))):(re.cd(x-1,new Ze((E.x+ee.x)/2,E.y)),re.cd(x+2,new Ze((E.x+ee.x)/2,ee.y))),re.mb(x+1),re.mb(x),y.points=re,y.Wb())}}else ee=Ze.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()),Ze.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}ya.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(di,Ze.alloc()),E=y.getLinkPointFromPoint(E,b,z,a,!0,Ze.alloc()),y.L(0,E.x,E.y),Ze.free(z),Ze.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(di,Ze.alloc()),a=y.getLinkPointFromPoint(E,b,x,a,!1,Ze.alloc()),y.L(y.pointsCount-1,a.x,a.y),Ze.free(x),Ze.free(a));y.zf()},ya.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 Ze(y.i(x).x,a.y);case gh:return new Ze(a.x,y.i(x).y);default:case cg:return y.i(x)}},mn.Object.defineProperties(ya.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 eo))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}}}),ya.prototype.setReshapingBehavior=ya.prototype.om,ya.prototype.getReshapingBehavior=ya.prototype.Ru;var cg=new Kt(ya,"None",0),gh=new Kt(ya,"Horizontal",1),ph=new Kt(ya,"Vertical",2),rf=new Kt(ya,"All",3);ya.className="LinkReshapingTool",ya.None=cg,ya.Horizontal=gh,ya.Vertical=ph,ya.All=rf,Yn("linkReshapingTool",function(){return this.findTool("LinkReshaping")},function(a){this.gb("LinkReshaping",a,this.mouseDownTools)});function ss(){Yr.call(this),this.name="Resizing",this.o=new Xe(1,1).freeze(),this.j=new Xe(9999,9999).freeze(),this.yg=new Xe(NaN,NaN).freeze(),this.V=!1,this.ia=!0,this.ue=null;var a=new Fr;a.alignmentFocus=di,a.figure="Rectangle",a.desiredSize=Jt,a.fill="lightblue",a.stroke="dodgerblue",a.strokeWidth=1,a.cursor="pointer",this.F=a,this.u=null,this.Xq=new Ze,this.Dw=new Xe,this.Tn=new Ze,this.rt=new Xe(0,0),this.qt=new Xe(1/0,1/0),this.pt=new Xe(1,1)}jt(ss,Yr),ss.prototype.updateAdornments=function(a){if(!(a===null||a instanceof Gn)){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 eo,y.type=On.Spot,y.locationSpot=di;var x=new As;x.isPanelMain=!0,y.add(x),y.add(this.makeHandle(a,zi)),y.add(this.makeHandle(a,Gi)),y.add(this.makeHandle(a,ni)),y.add(this.makeHandle(a,cr)),y.add(this.makeHandle(a,Ur)),y.add(this.makeHandle(a,ho)),y.add(this.makeHandle(a,bo)),y.add(this.makeHandle(a,ao))}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=di),0>=x.x)y=0>=x.y?y+225:1<=x.y?y+135:y+180;else if(1<=x.x)0>=x.y?y+=315:1<=x.y&&(y+=45);else if(0>=x.y)y+=270;else if(1<=x.y)y+=90;else break e;0>y?y+=360:360<=y&&(y-=360),a.cursor=22.5>y?"e-resize":67.5>y?"se-resize":112.5>y?"s-resize":157.5>y?"sw-resize":202.5>y?"w-resize":247.5>y?"nw-resize":292.5>y?"n-resize":337.5>y?"ne-resize":"e-resize"}else if(a instanceof On)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=Yr.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,Ze.alloc()),z=this.computeReshape();y=this.computeResize(b,this.handle.alignment,y,x,E,z),this.resize(y),a.bd(),Ze.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,Ze.alloc()),z=this.computeReshape();y=this.computeResize(b,this.handle.alignment,y,x,E,z),this.resize(y),Ze.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 xr){var E=new An;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=di);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=Ze.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))),Ze.free(Se),a},ss.prototype.computeReshape=function(){var a=xn;return this.adornedObject instanceof Fr&&(a=Fv(this.adornedObject)),!(a===Ii||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 Xe(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},mn.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 eo))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 eo)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",Yn("resizingTool",function(){return this.findTool("Resizing")},function(a){this.gb("Resizing",a,this.mouseDownTools)});function xs(){Yr.call(this),this.name="Rotating",this.ia=45,this.V=2,this.Tn=new Ze,this.ue=null;var a=new Fr;a.figure="Ellipse",a.desiredSize=$t,a.fill="lightblue",a.stroke="dodgerblue",a.strokeWidth=1,a.cursor="pointer",this.o=a,this.j=null,this.Cw=0,this.kr=new Ze(NaN,NaN),this.u=0,this.F=50}jt(xs,Yr),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 eo,y.type=On.Position,y.locationSpot=di;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(di)},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 Ze(NaN,NaN),this.isActive=a.isMouseCaptured=!1},xs.prototype.stopTransaction=function(){var a=this.diagram,y=Yr.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},mn.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 eo))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 eo)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",Yn("rotatingTool",function(){return this.findTool("Rotating")},function(a){this.gb("Rotating",a,this.mouseDownTools)});function Kh(){Yr.call(this),this.name="ClickSelecting"}jt(Kh,Yr),Kh.prototype.canStart=function(){return!(!this.isEnabled||this.isBeyondDragSize())},Kh.prototype.doMouseUp=function(){this.isActive&&(this.standardMouseSelect(),!this.standardMouseClick()&&this.diagram.lastInput.isTouchEvent&&this.diagram.toolManager.doToolTip()),this.stopTool()},Kh.className="ClickSelectingTool";function Bl(){Yr.call(this),this.name="Action",this.pk=null}jt(Bl,Yr),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(){Yr.call(this),this.name="ClickCreating",this.Ri=null,this.o=!0,this.j=!1,this.mw=new Ze(0,0)}jt(mh,Yr),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 Xi)x.Zc()&&(Rl(x),E=x.copy(),E!==null&&y.add(E));else if(x!==null){var b=y.model.copyNodeData(x);Qt(b)&&(y.model.xf(b),E=y.Lc(b))}if(E!==null){var z=Ze.allocAt(a.x,a.y);this.isGridSnapEnabled&&mf(this.diagram,E,a,z),E.location=z,y.allowSelect&&(y.clearSelection(!0),E.isSelected=!0),Ze.free(z)}y.Ya(),this.transactionResult=this.name,y.R("PartCreated",E)}finally{this.stopTransaction(),y.R("ChangedSelection",y.selection)}return E},mn.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(){Yr.call(this),this.name="DragSelecting",this.Ik=175,this.o=!1;var a=new Xi;a.layerName="Tool",a.selectable=!1;var y=new Fr;y.name="SHAPE",y.figure="Rectangle",y.fill=null,y.stroke="magenta",a.add(y),this.j=a}jt(vl,Yr),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=Xe.alloc().h(y.width,y.height);x.desiredSize=E,this.box.mm(y.x,y.y,!1),Xe.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 pt(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 An,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)}},mn.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(){Yr.call(this),this.name="Panning",this.Xt=new Ze,this.xy=new Ze,this.xg=!1;var a=this;this.Kw=function(){var y=a.diagram;y!==null&&y.removeEventListener(Zn.document,"scroll",a.Kw,!1),a.stopTool()}}jt(is,Yr),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(Zn.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)}},mn.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",Yn("clickCreatingTool",function(){return this.findTool("ClickCreating")},function(a){this.gb("ClickCreating",a,this.mouseUpTools)}),Yn("clickSelectingTool",function(){return this.findTool("ClickSelecting")},function(a){this.gb("ClickSelecting",a,this.mouseUpTools)}),Yn("panningTool",function(){return this.findTool("Panning")},function(a){this.gb("Panning",a,this.mouseMoveTools)}),Yn("dragSelectingTool",function(){return this.findTool("DragSelecting")},function(a){this.gb("DragSelecting",a,this.mouseMoveTools)}),Yn("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}mn.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(){Yr.call(this),this.name="ContextMenu",this.o=this.ht=this.j=null,this.yw=new Ze,this.jt=null,this.Et=!1;var a=this;this.tu=function(){a.stopTool()}}jt(Ps,Yr);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=ci("div");var x=ci("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=ci("style");Zn.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",Sa,!1),E.addEventListener(y,"selectstart",Sa,!1),E.addEventListener(x,"contextmenu",Sa,!1)),y.className="goCXforeground",x.className="goCXbackground",Zn.document.body&&(Zn.document.body.appendChild(y),Zn.document.body.appendChild(x)),cc=y,kd=x,dc=!0}function Sa(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 Vt||(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(Yr.prototype.doMouseDown.call(this),this.isActive&&this.currentContextMenu instanceof eo){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 eo){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 eo&&!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 eo){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 eo?(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 An;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=ci("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=ci("li"),z.className="goCXli";var ee=ci("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}},mn.Object.defineProperties(Ps.prototype,{currentContextMenu:{get:function(){return this.j},set:function(a){this.j=a,this.ht=a instanceof eo?a.adornedPart:null}},defaultTouchContextMenu:{get:function(){return dc===!1&&Uh===null&&la&&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",Yn("contextMenuTool",function(){return this.findTool("ContextMenu")},function(a){this.gb("ContextMenu",a,this.mouseUpTools)});function Xo(){Yr.call(this),this.name="TextEditing",this.Zh=new Wo,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)}jt(Xo,Yr);function fc(a,y){if(la){var x=ci("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 Wo&&z instanceof Xo)if(z.state===vc)x.style.border="3px solid red",x.focus();else{var ee=E.ga(di),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)}}}Xo.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 Wo&&y.editable&&y.part.canEdit()?(y=y.part,!(y===null||this.starting===Bd&&!y.isSelected||this.starting===sf&&2>a.lastInput.clickCount)):!1},Xo.prototype.doStart=function(){yh=this,this.textBlock!==null&&this.doActivate()},Xo.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 Wo&&(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 pt(this.textBlock.ga(zi),this.textBlock.ga(ni));a.tv(E),x.show(y,a,this),this.currentTextEditor=x}}}},Xo.prototype.doCancel=function(){this.stopTool()},Xo.prototype.doMouseUp=function(){this.canStart()&&this.doActivate()},Xo.prototype.doMouseDown=function(){this.isActive&&this.acceptText(xu)},Xo.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))}}Xo.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)},Xo.prototype.doSuccess=function(a,y){var x=this.textBlock;x.textEdited!==null&&x.textEdited(x,a,y)},Xo.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)},Xo.prototype.doStop=function(){yh=null},Xo.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)))},Xo.prototype.Lx=function(a){var y=this.Zh;return y.text=a,y.measure(this.textBlock.Ih,1/0),y},mn.Object.defineProperties(Xo.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)}}}),Xo.prototype.measureTemporaryTextBlock=Xo.prototype.Lx;var of=new Kt(Xo,"LostFocus",0),xu=new Kt(Xo,"MouseDown",1),af=new Kt(Xo,"Tab",2),gc=new Kt(Xo,"Enter",3),tv=new Kt(Xo,"SingleClick",0),Bd=new Kt(Xo,"SingleClickSelected",1),sf=new Kt(Xo,"DoubleClick",2),Nd=new Kt(Xo,"StateNone",0),pc=new Kt(Xo,"StateActive",1),mc=new Kt(Xo,"StateEditing",2),gg=new Kt(Xo,"StateValidating",3),vc=new Kt(Xo,"StateInvalid",4),Td=new Kt(Xo,"StateValidated",5),yh=null;Xo.className="TextEditingTool",Xo.LostFocus=of,Xo.MouseDown=xu,Xo.Tab=af,Xo.Enter=gc,Xo.SingleClick=tv,Xo.SingleClickSelected=Bd,Xo.DoubleClick=sf,Xo.StateNone=Nd,Xo.StateActive=pc,Xo.StateEditing=mc,Xo.StateValidating=gg,Xo.StateInvalid=vc,Xo.StateValidated=Td,Yn("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 Fn,this.ce=new rs,this.ce.Yd=this,this.Ei=new Fn,this.pu=new Fn,this.Sr=new Fn,this.pr=new Fn,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),Zn.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 Gn&&(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 Vt){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)),Zn.requestAnimationFrame(x)}}var E=a.Ei,b=a;a.bc?a.Sr.add(y):(a.bc=!0,E.add(y),Zn.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 Ze(z(ee,E.x,b.x-E.x,re),z(ee,E.y,b.y-E.y,re))}var y=new Ht;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 Ze(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 Ze(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 Ze(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 Ze(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 pt(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}mn.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&&Rn(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 Kt(Js,"Default",1),xc=new Kt(Js,"AnimateLocations",2),mg=new Kt(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=Xn,this.vc=new Ht,this.Tt=new Ht,this.yl=new Fn,this.Ut=new Fn,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 Vt?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=_p,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 Vt?this.H=a:a instanceof At&&a.diagram!==null&&(this.H=a.diagram)),a instanceof Xi){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 Vt&&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 Ze&&!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 Ze&&!ee.w()&&ee.assign(a.o),z&&x.indexOf("position:")===0&&y instanceof Xi?re.Ku.location=Jh(y.location):z&&(re.Ku[x]=Jh(E))}function Jh(a){return a instanceof Ze||a instanceof Xe?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 Xi&&(ee.location=he.location),re.nv&&ee instanceof Xi&&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 xr&&(E=y.placeholder),E!==null?(x=E.ga(zi),E=E.padding,x.x+=E.left,x.y+=E.top,this.add(a,"position",x,a.position,!1)):this.add(a,"position",new Ze(x.x+x.width/2,x.y+x.height/2),a.position,!1),this.add(a,"scale",.01,a.scale,!1),a instanceof xr)for(a=a.memberParts;a.next();)E=a.value,E instanceof si&&this.Cj(E,y)},Le.Aj=function(a,y){if(a.isVisible()){var x=null;if(y instanceof xr&&(x=y.placeholder),x!==null){var E=x.ga(zi);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 xr)for(a=a.memberParts;a.next();)E=a.value,E instanceof si&&this.Aj(E,y)}},Le.Ez=function(a){var y=this.Tt.get(a);return y===null&&(y={},this.Tt.add(a,y)),y},mn.Object.defineProperties(rs.prototype,{duration:{get:function(){return this.Dg},set:function(a){1>a&&Rn(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:ut("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 _p(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=_p;function qh(a,y,x){this.start=a,this.end=y,this.Ku={},this.Hu=x,this.nv=!1}qh.className="AnimationState";function _l(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))}_l.prototype.copy=function(){var a=new _l(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 Kp(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))}mn.Object.defineProperties(_l.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 Kt(_l,"Default",1),$h=new Kt(_l,"Immediate",2),Id=new Kt(_l,"Bundled",3);_l.className="AnimationTrigger",_l.Default=yg,_l.Immediate=$h,_l.Bundled=Id;function _a(a){ai(this),this.H=null,this.Pa=new An,this.xa="",this.pb=1,this.o=!1,this.j=this.Uh=this.u=this.Oi=this.Ni=this.Mi=this.Li=this.Ji=this.Ki=this.Ii=this.Qi=this.Hi=this.Pi=this.Gi=this.Fi=!0,this.Zq=[],a&&Object.assign(this,a)}Le=_a.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 xr?b++:oe instanceof si?E++:oe instanceof Gn?z++:oe instanceof eo?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&&Hr(E)&&(re+=" #"+Hr(E)),x instanceof si?re+=" "+yr(E):x instanceof Gn&&(re+=" "+yr(x.fromNode)+" "+yr(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=Ze.alloc(),z=this.Pa.s,ee=z.length;ee--;){var re=z[ee];if((E!==!0||ud(re)!==!1)&&re.isVisible()&&(b.assign(a),yn(b,re.oe),re=re.ic(b,y,x),re!==null&&(y!==null&&(re=y(re)),re!==null&&(x===null||x(re)))))return Ze.free(b),re}return Ze.free(b),null},Le.ji=function(a,y,x,E){if(y===void 0&&(y=null),x===void 0&&(x=null),E instanceof An||E instanceof Fn||(E=new Fn),this.Uh===!1)return E;var b=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(b=!0);for(var z=Ze.alloc(),ee=this.Pa.s,re=ee.length;re--;){var oe=ee[re];if((b!==!0||ud(oe)!==!1)&&oe.isVisible()){z.assign(a),yn(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 Ze.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 An||b instanceof Fn||(b=new Fn),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 An||b instanceof Fn)&&(z=b),b=!0),z instanceof An||z instanceof Fn||(z=new Fn),this.Uh===!1)return z;var ee=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(ee=!0);for(var re=Ze.alloc(),oe=Ze.alloc(),le=this.Pa.s,he=le.length;he--;){var ge=le[he];if((ee!==!0||ud(ge)!==!1)&&ge.isVisible()){re.assign(a),yn(re,ge.oe),oe.h(a.x+y,a.y),yn(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 Ze.free(re),Ze.free(oe),z},Le.Fd=function(a,y){if(this.visible){var x=this.Pa.s,E=x.length;if(E!==0){a=pi();for(var b=pi(),z=0;z<E;z++){var ee=x[z];if(ee.vw=z,ee instanceof Gn){if(ee.fd===!1)continue}else if(ee instanceof eo&&ee.adornedPart!==null)continue;var re=ee.actualBounds;ee.isVisible()&&kn(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]);tn(a),tn(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=pt.alloc(),oe=0;oe<E;oe++)this.Oj(a,x[oe],y,z,ee,re,!0);if(pt.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=pt.alloc(),he=0;he<z;he++){var ge=b[he];E.contains(ge)&&a.Oj(y,ge,x,re,oe,le,!1)}pt.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 Gn&&(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&&(ha(y,a,y.areaBackground,!0,!0,z,b),a.fillRect(b.x,b.y,b.width,b.height)),y.areaBackground===null&&y.background===null&&(ha(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),ha(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(Ro,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 xr&&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}mn.Object.defineProperties(_a.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===""&&ut("Cannot rename default Layer to: "+a),x=x.layers;x.next();)x.value.name===a&&ut("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)&&Rn(a,"0 <= value <= 1",_a,"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))}}}),_a.prototype.findObjectsNear=_a.prototype.og,_a.prototype.findObjectsIn=_a.prototype.Cf,_a.prototype.findObjectsAt=_a.prototype.ji,_a.prototype.findObjectAt=_a.prototype.ic,_a.className="Layer";function Vt(a,y){if(u0||(ds(),u0=!0),ai(this),Bu=this,this.vb=!0,this.Ka=null,this.ya=this.Aa=0,this.ta=null,la){var x=this,E=function(){x.removeEventListener(Zn.document,"DOMContentLoaded",E,!1),x.setRTL()};Zn.document.body!==null?this.setRTL():x.addEventListener(Zn.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===Ro&&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 ea,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"||Zn.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 An,a.pj=new Ht,a.nl="default",a.Tx(),a.Sx(),a.pb=1,a.pa=new Ze(NaN,NaN).freeze(),a.du=new Ze(NaN,NaN),a.Ca=1,a.Pp=1,a.zt=new Ze(NaN,NaN).freeze(),a.At=NaN,a.Ot=1e-4,a.Mt=100,a.Ab=new hi,a.zu=new Ze(NaN,NaN).freeze(),a.ut=new pt(NaN,NaN,NaN,NaN).freeze(),a.rj=new ii(0,0,0,0).freeze(),a.sj=Ch,a.nu=!1,a.Zt=null,a.fu=null,a.yh=ps,a.zk=Co,a.Fg=ps,a.pq=Co,a.yt=zi,a.Bt=zi,a.Fc=!0,a.pn=!1,a.De=new Fn,a.Eh=new Ht,a.Xm=!0,a.vp=250,a.vk=-1,a.xp=new ii(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 Fn,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 Ht,a.Xn=new An,a.Gg=!1,a.Jd=!0,a.Us=!0,a.Fi=!0,a.Gi=!0,a.Vs=!1,a.Ws=!0,a.Pi=!0,a.Hi=!0,a.Qi=!0,a.Ys=!0,a.Ii=!0,a.Ki=!0,a.Ji=!0,a.Li=!0,a.Mi=!0,a.Ni=!0,a.Oi=!0,a.Zs=!0,a.at=!0,a.qw=!1,a.Vk=!1,a.mn=!0,a.nn=!0,a.Xs=!0,a.$s=!0,a.iu=16,a.mu=16,a.qr=!1,a.gu=!1,a.lu=0,a.ju=0,a.yb=new ii(5).freeze(),a.Hw=new Fn().freeze(),a.Nt=999999999,a.nw=new Fn().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 Fn,a.ow=new Fn,a.Xh=null,a.aw=new Xe(8,8),a.bw=999,a.Bw=1,a.Jw=0,a.fc={scale:1,position:new Ze,bounds:new pt,Py:new Xe,bA:new Xe,Oz:!1},a.fc.canvasSize=a.fc.Py,a.fc.newCanvasSize=a.fc.bA,a.fc.isScroll=!1,a.Rw=new pt(NaN,NaN,NaN,NaN).freeze(),a.wo=new Xe(NaN,NaN).freeze(),a.Sp=new pt(NaN,NaN,NaN,NaN).freeze(),a.It=!1,a.Lg=new Ht;var y=new si,x=new Wo;x.bind(new xa("text","",yr)),y.add(x),a.ny=y,a.Lg.add("",y),y=new si,x=new Wo,x.stroke="brown",x.bind(new xa("text","",yr)),y.add(x),a.Lg.add("Comment",y),y=new si,y.selectable=!1,y.avoidable=!1,x=new Fr,x.figure="Ellipse",x.fill="black",x.stroke=null,x.desiredSize=new Xe(3,3).ja(),y.add(x),a.Lg.add("LinkLabel",y),a.Yi=new Ht,y=new xr,y.selectionObjectName="GROUPPANEL",y.type=On.Vertical,x=new Wo,x.font="bold 12pt sans-serif",x.bind(new xa("text","",yr)),y.add(x),x=new On(On.Auto),x.name="GROUPPANEL";var E=new Fr;E.figure="Rectangle",E.fill="rgba(128,128,128,0.2)",E.stroke="black",x.add(E),E=new As,E.padding=new ii(5,5,5,5).ja(),x.add(E),y.add(x),a.ly=y,a.Yi.add("",y),a.Kh=new Ht,y=new Gn,x=new Fr,x.isPanelMain=!0,y.add(x),x=new Fr,x.toArrow="Standard",x.fill="black",x.stroke=null,x.strokeWidth=0,y.add(x),a.my=y,a.Kh.add("",y),y=new Gn,x=new Fr,x.isPanelMain=!0,x.stroke="brown",y.add(x),a.Kh.add("Comment",y),y=new eo,y.type=On.Auto,x=new Fr,x.fill=null,x.stroke="dodgerblue",x.strokeWidth=3,y.add(x),x=new As,x.margin=new ii(1.5,1.5,1.5,1.5).ja(),y.add(x),a.St=y,a.wt=y,y=new eo,y.type=On.Link,x=new Fr,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 Eo,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=Ut,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 Ze,a.zy=500,a.wp=new Ze,a.wq=!1}Vt.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 Fn().freeze(),a.nw=new Fn().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(),oo=[],b!==null&&(a.add(b),a.partManager.parts.remove(b)),E&&(a.skipsUndoManager=x),z}function Jp(){return null}Vt.prototype.reset=function(){this.clear(),this.vb=!0,Qp(this),wu(this),this.Wg=!0,qp(this),this.layout=new ea,this.Wg=!1,this.model=cy(),this.model.undoManager=new Jo,this.vb=this.rn=!1,this.N()},Vt.prototype.setRTL=function(a){a=a===void 0?this.div:a,a===null&&(a=Zn.document.body);var y=ci("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},Vt.prototype.setScrollWidth=function(a){a=a===void 0?this.div:a,a===null&&(a=Zn.document.body);var y=0;if(la){var x=l0;y=ed,x===null&&(x=l0=ci("p"),x.style.width="100%",x.style.height="200px",x.style.boxSizing="content-box",y=ed=ci("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},Vt.prototype.qb=function(a){a.classType===Vt&&(this.autoScale=a)},Vt.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(la){if(y!=null||ut("Diagram setup requires an argument DIV."),a.Ka!==null&&ut("Diagram has already completed setup."),typeof y=="string"?a.Ka=Zn.document.getElementById(y):y instanceof HTMLDivElement?a.Ka=y:ut("No DIV or DIV id supplied: "+y),a.Ka===null&&ut("Invalid DIV id; could not get element with id: "+y),a.Ka.H!==void 0&&ut("Invalid div id; div already has a Diagram associated with it."),!a.ol&&Zn.ResizeObserver){var x=fr(function(){a.$b()},250);a.ol=new Zn.ResizeObserver(function(){x()}),a.ol.observe(a.Ka)}Zn.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=Zn.go;var b=new Il(a);if(b.style!==void 0&&(b.style.position="absolute",b.style.top="0px",b.style.left="0px",Zn.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,la){b=ci("div");var z=ci("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=fr(function(){a.Yh=null,a.N()},300),a.Ov=fr(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(),Kl(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():Kl(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=Zn.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(),Kl(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=Zn.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 Vt&&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(),Kl(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)}}Vt.prototype.addEventListener=function(a,y,x,E){a.addEventListener(y,x,{capture:E,passive:!1})},Vt.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(Zn,"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(),kr&&kr.nx||(a.Sq=0,a.zw=[0,0,0,0,0],a.Tq=0))}Vt.prototype.computePixelRatio=function(){return this.Yh!==null?this.Yh:Zn.devicePixelRatio||1},Vt.prototype.doMouseMove=function(){this.currentTool.doMouseMove()},Vt.prototype.doMouseDown=function(){this.currentTool.doMouseDown()},Vt.prototype.doMouseUp=function(){this.currentTool.doMouseUp()},Vt.prototype.doMouseWheel=function(){this.currentTool.doMouseWheel()},Vt.prototype.doKeyDown=function(){this.currentTool.doKeyDown()},Vt.prototype.doKeyUp=function(){this.currentTool.doKeyUp()},Vt.prototype.doFocus=function(){this.focus()},Vt.prototype.focus=function(){if(this.ta)if(this.scrollsPageOnFocus)this.ta.focus();else{var a=Zn.scrollX||Zn.pageXOffset,y=Zn.scrollY||Zn.pageYOffset;this.ta.focus(),Zn.scrollTo(a,y)}},Vt.prototype.Oy=function(){this.H.R("GainedFocus")},Vt.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 _a;y.name="Background",a.Al(y),y=new _a,y.name="",a.Al(y),y=new _a,y.name="Foreground",a.Al(y),y=new _a,y.name="Adornment",y.isTemporary=!0,y.isInDocumentBounds=!1,a.Al(y),y=new _a,y.name="Tool",y.isTemporary=!0,y.isInDocumentBounds=!0,a.Al(y),y=new _a,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 On(On.Grid);y.name="GRID";var x=new Fr;return x.figure="LineH",x.stroke="lightgray",x.strokeWidth=.5,x.interval=1,y.add(x),x=new Fr,x.figure="LineH",x.stroke="gray",x.strokeWidth=.5,x.interval=5,y.add(x),x=new Fr,x.figure="LineH",x.stroke="gray",x.strokeWidth=1,x.interval=10,y.add(x),x=new Fr,x.figure="LineV",x.stroke="lightgray",x.strokeWidth=.5,x.interval=1,y.add(x),x=new Fr,x.figure="LineV",x.stroke="gray",x.strokeWidth=.5,x.interval=5,y.add(x),x=new Fr,x.figure="LineV",x.stroke="gray",x.strokeWidth=1,x.interval=10,y.add(x),x=new Xi,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)}Vt.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=Ze.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,Ze.free(qe),this.Ee=this.qr=!1):(qe=Ze.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))),Ze.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"))}},Vt.prototype.computeBounds=function(a){return a===void 0&&(a=new pt),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}Vt.prototype.computePartsBounds=function(a,y){y===void 0&&(y=!1);var x=null;if(qn(a))for(var E=0;E<a.length;E++){var b=a[E];!y&&b instanceof Gn||(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 Gn||(E.Va(),x===null?x=E.actualBounds.copy():x.ed(E.actualBounds));return x===null?new pt(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=Ze.alloc(),x.xi(a.documentBounds,a.initialDocumentSpot);var E=a.viewportBounds;E=pt.allocAt(0,0,E.width,E.height);var b=Ze.alloc();b.xi(E,a.initialViewportSpot),b.h(x.x-b.x,x.y-b.y),a.position=b,pt.free(E),Ze.free(b),Ze.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()?di: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 pt(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}Vt.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=Vt.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 Ze(a.x,a.y)}},Le.Jy=function(a,y){this.Va();var x=this.documentBounds,E=this.viewportBounds;this.position=new Ze(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=Ze.alloc();this.fq=this.op(a.ga(zi,y)),Ze.free(y)}else this.eq=null,this.fq=Ut};function Cg(a,y,x,E,b,z){var ee=Ze.allocAt(a.pa.x,a.pa.y),re=ee.x,oe=ee.y;if(a.eq!==null){var le=Ze.alloc();le=a.eq.ga(zi,le),re=le.x-a.fq.x/a.scale,oe=le.y-a.fq.y/a.scale,b=Li,Ze.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),Ze.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 Xi)return a}else if(a=Nu(this,a,function(x){return x.part}),a instanceof Xi)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 Xi&&E.canSelect()}:null,x)};function Ec(a,y,x,E,b){for(x===void 0&&(x=null),E===void 0&&(E=null),b instanceof An||b instanceof Fn||(b=new Fn),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 An||E instanceof Fn||(E=new Fn),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 Xi&&(!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 An||b instanceof Fn||(b=new Fn),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 Fn;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 An||b instanceof Fn||(b=new Fn),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 Xi&&(!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 An||b instanceof Fn)&&(z=b),b=!0),z instanceof An||z instanceof Fn||(z=new Fn),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 An||b instanceof Fn)&&(z=b),b=!0),z instanceof An||z instanceof Fn||(z=new Fn),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}Vt.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 Kl(a,y){return a.bubbles?!0:(y.stopPropagation!==void 0&&y.stopPropagation(),y.cancelable!==!1&&y.preventDefault(),y.cancelBubble=!0,!1)}Vt.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(),Kl(x,a)},Vt.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(),Kl(x,a)},Vt.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(),Kl(x,a)},Vt.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),Kl(x,a)},Vt.prototype.getMouse=function(a){var y=this.ta;if(y===null)return new Ze(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?yn(new Ze(y,a),this.Ab):new Ze(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=Ze.allocAt(ee,re),a.Ab.Cd(y),x.documentPoint.assign(y),Ze.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))}}Vt.prototype.Ya=function(){this.Zi||(this.Zi=!0,this.$b(!1))};function n0(a){a.ld||os(a),a.Va()}Vt.prototype.redraw=function(){this.vb||this.ld||(this.N(),this.bd())},Le=Vt.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 Ze(NaN,NaN),y.isEnabled=x,this.ld=!0;var E=this;a!==null&&Vr(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;Zn.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];Ma(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=pt.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),pt.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 Fn,a.Nv(x,a.De)}a.nodes.each(function(E){E instanceof xr&&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 xr||(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))}for(a.reset();a.next();)x=a.value,x instanceof xr&&x.isVisible()&&Fc(this,x);for(a.reset();a.next();)x=a.value,x instanceof Gn&&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 eo&&x.isVisible()&&(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))};function Fc(a,y){for(var x=pi(),E=pi(),b=y.memberParts;b.next();){var z=b.value;z.isVisible()&&(z instanceof xr?(ll(z)||Cs(z)||ld(z))&&Fc(a,z):z instanceof Gn?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(tn(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();tn(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&&ut("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?_d(this.Yf,this)&&(a=this.Vp()):a=!0,a&&(hi.prototype.Cd=hi.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?_d(this.Yf,this)&&(y=this.Vp()):y=!0,y&&(hi.prototype.Cd=hi.prototype.Eu),E?(this.ib.Vc(!0),this.vd=!0):this.Fc=this.vd=!1,y=+new Date-+x,E=kr&&kr.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&&ut("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 pt(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=hi.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),hi.free(qe),Ph(a,y),y.globalAlpha=a.pb;var Ke=a.Qj("Grid");if(ee){var st=new Fn,ht=ee.iterator;for(ht.reset();ht.next();){var ft=ht.value;ft instanceof Xi&&(le||ft.layer!==Ke)&&(ft.Gj(),st.add(ft))}for(le=0;le<Se;le++)Up(ge[le],y,a,st,oe);st.each(function(Gt){return Gt.Gj()})}else for(st=0;st<Se;st++){var Ct=ge[st];Ct===Ke?le&&Ct.gc(y,a,!0):Ct.gc(y,a,oe)}a.$i=!1,a.Yf&&_d(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 Mi,this.Rg.drawShadows=!0,this.Rg.textGreeking=!0,this.Rg.viewportOptimizations=!(jr||Dr),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 Mi,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 On,E=a instanceof Vt,b;for(b in y){b===""&&ut("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])),Qt(z)?ee=b.substr(re+1):ut("Unable to find object named: "+oe+" in "+a.toString()+" when trying to set property: "+b)}}if(ee[0]!=="_"&&!Pr(z,ee))if(E&&ee==="ModelChanged"){a.Yw(y[ee]);continue}else if(E&&ee==="Changed"){a.Pe(y[ee]);continue}else if(E&&Pr(a.toolManager,ee))z=a.toolManager;else if(E&&o0(a,ee)){a.Bj(ee,y[ee]);continue}else if(a instanceof Ri&&ee==="Changed"){a.Pe(y[ee]);continue}else ut('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 Ht,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")},Vt.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=pt.alloc(),Og(this,this.computeBounds(E)),pt.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),_d(this.Yf,this)&&a.clearRect(0,0,oe,le),E=pi(),a=pi(),Pe=Math.abs(z),Se=Math.abs(y);var Ae=he===0?0:b-Pe;he=Ze.allocAt(Ae,0),Pe=Ze.allocAt(Pe+Ae,re),a.push(new pt(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),yn(he,Be),yn(Pe,Be),E.push(new pt(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 pt(Math.min(he.x,Pe.x),Math.min(he.y,Pe.y),Math.abs(he.x-Pe.x),Math.abs(he.y-Pe.y))),yn(he,Be),yn(Pe,Be),E.push(new pt(Math.min(he.x,Pe.x),Math.min(he.y,Pe.y),Math.abs(he.x-Pe.x),Math.abs(he.y-Pe.y))),_d(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 pt(Math.min(he.x,Pe.x),Math.min(he.y,Pe.y),Math.abs(he.x-Pe.x),Math.abs(he.y-Pe.y))),yn(he,Be),yn(Pe,Be),E.push(new pt(Math.min(he.x,Pe.x),Math.min(he.y,Pe.y),Math.abs(he.x-Pe.x),Math.abs(he.y-Pe.y)))),Ze.free(he),Ze.free(Pe),td(this,!1,!0),this.Ka===null&&ut("No div specified"),this.ta===null&&ut("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=pt.alloc(),Pe=ee.Pa.s,Be=Pe.length,Ae=oe.length;for(var qe=0;qe<Be;qe++){var Ke=Pe[qe],st=$d(Ke,Ke.actualBounds);e:{for(var ht=2/he,ft=4/he,Ct=0;Ct<Ae;Ct++){var Gt=oe[Ct];if(Gt.width!==0&&Gt.height!==0&&st.Vu(Gt.x-ht,Gt.y-ht,Gt.width+ft,Gt.height+ft)){st=!0;break e}}st=!1}st&&ee.Oj(b,Ke,this,ge,he,Se,!0)}pt.free(Se),b.globalAlpha=le}b.restore(),b.Vc(!0),this.Yf&&_d(this.Yf,this)&&this.Vp(),this.Fc=this.vd=!1,this.hk()}tn(E),tn(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,st=0,ht=0,ft=0,Ct=he.width,Gt=he.height,oi=a.rj;a.contentAlignment.sb()?(qe.width>Ct&&(Ke=oi.left,st=oi.right),qe.height>Gt&&(ht=oi.top,ft=oi.bottom)):(Ke=oi.left,st=oi.right,ht=oi.top,ft=oi.bottom);var Ni=qe.width+Ke+st,wi=qe.height+ht+ft;oi=a.scale;var Wn=Ni>oe/oi,Sn=wi>le/oi;if(!(z||a.gf||a.Be||Wn||Sn))return!0;Ke=qe.x-Ke,oe=he.x,st=qe.right+st,le=he.right+ee,ht=qe.y-ht;var vr=he.y;qe=qe.bottom+ft,he=he.bottom+re;var sr="1px";if(ft="1px",a.scrollMode===Ch&&(Wn||Sn)&&(Wn&&a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(Wn=1,Ke+1<oe&&(Wn=Math.max((oe-Ke)*oi+a.Aa,Wn)),st>le+1&&(Wn=Math.max((st-le)*oi+a.Aa,Wn)),Ct+ee+1<Ni&&(Wn=Math.max((Ni-Ct)*oi+a.Aa,Wn)),sr=Wn.toString()+"px"),Sn&&a.hasVerticalScrollbar&&a.allowVerticalScroll&&(Wn=1,ht+1<vr&&(Wn=Math.max((vr-ht)*oi+a.ya,Wn)),qe>he+1&&(Wn=Math.max((qe-he)*oi+a.ya,Wn)),Gt+re+1<wi&&(Wn=Math.max((wi-Gt)*oi+a.ya,Wn)),ft=Wn.toString()+"px")),Wn=sr!=="1px",Sn=ft!=="1px",Wn&&Sn||!Wn&&!Sn||(Sn&&(le-=a.Db),Wn&&(he-=a.Db),Ni<Ct+ee||!a.hasHorizontalScrollbar||!a.allowHorizontalScroll||(ee=1,Ke+1<oe&&(ee=Math.max((oe-Ke)*oi+a.Aa,ee)),st>le+1&&(ee=Math.max((st-le)*oi+a.Aa,ee)),Ct+1<Ni&&(ee=Math.max((Ni-Ct)*oi+a.Aa,ee)),sr=ee.toString()+"px"),Wn=sr!=="1px",ee=a.ya,Wn!==a.Be&&(ee=Wn?a.ya-a.Db:a.ya+a.Db),wi<Gt+re||!a.hasVerticalScrollbar||!a.allowVerticalScroll||(re=1,ht+1<vr&&(re=Math.max((vr-ht)*oi+ee,re)),qe>he+1&&(re=Math.max((qe-he)*oi+ee,re)),Gt+1<wi&&(re=Math.max((wi-Gt)*oi+ee,re)),ft=re.toString()+"px"),Sn=ft!=="1px"),a.qr&&Wn===a.Be&&Sn===a.gf)return x===a.Aa&&E===a.ya||a.bd(),!1;if(Wn!==a.Be&&(sr==="1px"?a.ya=a.ya+a.Db:a.ya=Math.max(a.ya-a.Db,1),z=!0),a.Be=Wn,Be.style.width=sr,Sn!==a.gf&&(ft==="1px"?a.Aa=a.Aa+a.Db:a.Aa=Math.max(a.Aa-a.Db,1),z=!0,a.tn&&(re=Ze.alloc(),Sn?(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)),Ze.free(re))),z&&wu(a),a.gf=Sn,Be.style.height=ft,a.gu=!0,z&&(a.pn=!0),y=Ae.scrollLeft,a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(Ct+1<Ni?y=(a.position.x-Ke)*oi:Ke+1<oe?y=Ae.scrollWidth-Ae.clientWidth:st>le+1&&(y=a.position.x*oi)),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-ht)*oi:ht+1<vr?Ae.scrollTop=Ae.scrollHeight-Ae.clientHeight:qe>he+1&&(Ae.scrollTop=a.position.y*oi)),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=pt.allocAt(b,ge,Se,Pe),a.onViewportBoundsChanged(x,a.viewportBounds,oi,z),pt.free(x),!1):!0}Le=Vt.prototype,Le.add=function(a){var y=a.diagram;if(y!==this&&(y!==null&&ut("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&&ut('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(qo,"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 eo||a instanceof xr&&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(ua,"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),qn(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 Fn,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)},Vt.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 Ht;if(a!==null)if(qn(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 si){if(y.add(x,a.Pd(b,x,x.location)),x instanceof xr&&(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 Gn)for(y.add(x,a.Pd(b,x)),x=x.labelNodes;x.next();)Tu(a,y,x.value,E,b);else x instanceof eo||y.add(x,a.Pd(b,x,x.location))}function nd(a,y,x,E,b){if(y!==null&&y.count!==0){var z=Ze.alloc(),ee=Ze.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=pi(),oe=pi(),le=y.iterator,he=Ze.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 Ze),Se.shifted.assign(he.re(Pe)))}else le.key instanceof Gn&&oe.push(le.sa)}for(Ze.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 Ze),ge.node.location=z.add(ge.Su.shifted);for(b=Ze.alloc(),le=Ze.alloc(),ge=oe.length,Se=0;Se<ge;Se++){var Ae=oe[Se];if(Pe=Ae.key,Pe instanceof Gn)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=Ze.allocAt(0,0),(he=Pe.i(0))&&he.w()&&Ae.assign(he);var qe=he=Ze.alloc().assign(Ae).add(ee);E.isGridSnapEnabled&&(E.isGridSnapRealtime||a.lastInput.up)&&(qe=Ze.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),Ze.free(Ae),Ze.free(he),qe!==he&&Ze.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))}Ze.free(z),Ze.free(ee),Ze.free(b),Ze.free(le),tn(re),tn(oe),x||(os(a),id(a,y))}}Vt.prototype.computeMove=function(a,y,x,E){if(E===void 0&&(E=new Ze),E.assign(y),a===null)return E;var b=y,z=x.isGridSnapEnabled;z&&(x.isGridSnapRealtime||this.lastInput.up)&&(b=Ze.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&&Ze.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=Ze.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),Ze.free(z)}}function vf(a,y){if(y!==null)for(a.Mr=!0,a=y.iterator;a.next();)y=a.key,y instanceof Gn&&(y.suspendsRouting=!0)}function id(a,y){if(y!==null){for(y=y.iterator;y.next();){var x=y.key;x instanceof Gn&&(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=Vt.prototype,Le.Pd=function(a,y,x){if(x===void 0)return new eh(Xn);var E=a.isGridSnapEnabled;return a.groupsSnapMembers||y.containingGroup===null||(E=!1),E?new eh(new Ze(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&&ut("Cannot share a Layer with another Diagram: "+y+" of "+y.diagram),x===null?y.diagram!==null&&ut("Cannot add an existing Layer to this Diagram again: "+y):(x.diagram!==a&&ut("Existing Layer must be in this Diagram: "+x+" not in "+x.diagram),y===x&&ut("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&&ut("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(qo,"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(ua,"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(qo,"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(ua,"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(qo,"layers",this,null,a,null,z+1),this.N(),0>E&&this.Ya(),this},Le.kA=function(a){if(a.diagram!==this&&ut("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(ua,"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 An),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 An),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!==Aa&&(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 Go;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(Ro,a,this,y,x,E,b)},Vt.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===Ro){var b=a.object;if($o(b,a.propertyName,a.I(y)),b instanceof At){var z=b.part;z!==null&&z.Wb()}this.isModified=!0}else if(E===qo){var ee=a.object,re=a.newParam,oe=a.newValue;if(ee instanceof On)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 La&&(oe.isRow?f1(ee,re,y?void 0:oe):g1(ee,re,y?void 0:oe));else if(ee instanceof _a){var he=a.oldParam===!0;typeof re=="number"&&oe instanceof Xi&&(y?(oe.isSelected=!1,oe.isHighlighted=!1,oe.Wb(),ee.pc(he?re:-1,oe,he)):ee.oi(re,oe,he))}else ee instanceof Vt?typeof re=="number"&&oe instanceof _a&&(y?this.Wa.mb(re):(oe.Xe(this),this.Wa.Gb(re,oe))):ut("unknown ChangedEvent.Insert object: "+a.toString());this.isModified=!0}else if(E===ua){var ge=a.object,Se=a.oldParam,Pe=a.oldValue;if(ge instanceof On)typeof Se=="number"&&Pe instanceof At?y?ge.Gb(Se,Pe):ge.pc(Se):typeof Se=="number"&&Pe instanceof La&&(Pe.isRow?f1(ge,Se,y?Pe:void 0):g1(ge,Se,y?Pe:void 0));else if(ge instanceof _a){var Ae=a.newParam===!0;typeof Se=="number"&&Pe instanceof Xi&&(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 Vt?typeof Se=="number"&&Pe instanceof _a&&(y?(Pe.Xe(this),this.Wa.Gb(Se,Pe)):this.Wa.mb(Se)):ut("unknown ChangedEvent.Remove object: "+a.toString());this.isModified=!0}else E!==Aa&&ut("unknown ChangedEvent: "+a.toString())}finally{this.skipsModelSourceBindings=x}}},Vt.prototype.Ea=function(a){return this.undoManager.Ea(a)},Vt.prototype.eb=function(a){return this.undoManager.eb(a)},Vt.prototype.Kf=function(){return this.undoManager.Kf()},Vt.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}},Vt.prototype.updateAllTargetBindings=function(a){this.partManager.updateAllTargetBindings(a)},Vt.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(or)?re=0:le.Hf(Mr)&&(re=z-1):re=le.sb()?le.x*(z-1):z/2),isNaN(oe)&&(le.$c()?le.Hf(Ki)?oe=0:le.Hf(fo)&&(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=Ze.allocAt(a.pa.x+re/y-re/x,a.pa.y+oe/y-oe/x),a.position=z,Ze.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))}}Vt.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 Eo&&(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=Xe.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=pt.alloc(),a=a.viewportBounds,y.h(a.x,a.y,a.width,a.height),!y.w()){pt.free(y);return}b=y.width,z=y.height,a=y.x,ee=y.y,pt.free(y)}x.width=b+2*E.width,x.height=z+2*E.height,y=Ze.alloc(),St.No(a,ee,0,0,E.width,E.height,y),y.offset(-E.width,-E.height),Xe.free(E),x.part.location=y,Ze.free(y)}}Vt.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)}},Vt.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))},Vt.prototype.rA=function(a){if(this.R("ChangingSelection",this.selection),this.clearSelection(!0),qn(a))for(var y=a.length,x=0;x<y;x++){var E=a[x];E instanceof Xi||ut("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 Xi||ut("Diagram.selectCollection given something that is not a Part: "+y),y.isSelected=!0;this.R("ChangedSelection",this.selection)},Vt.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=Vt.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 Fn().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 Xi||ut("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=Ze.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)),Ze.free(z);return}ut("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):ut("scrolling direction must be 'up', 'down', 'left', or 'right', not: "+y),Ze.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 pt(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),yn(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}Vt.prototype.doModelChanged=function(a){var y=this;if(a.model===this.model){var x=a.change,E=a.propertyName;if(x===Aa&&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===Aa){(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;Vr(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 Fn&&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 Fn&&x.Bg.remove(a),If(E));break}}}}}Vt.prototype.Wd=function(){this.partManager.Wd()},Vt.prototype.Aj=function(a,y){this.Yd.Aj(a,y)},Vt.prototype.Cj=function(a,y){this.Yd.Cj(a,y)},Vt.prototype.findPartForKey=function(a){return this.partManager.findPartForKey(a)},Vt.prototype.Vb=function(a){return this.partManager.Vb(a)},Vt.prototype.findLinkForKey=function(a){return this.partManager.findLinkForKey(a)},Le=Vt.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(Un(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(Un(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=pt.alloc();Og(this,this.computeBounds(a)),pt.free(a)}},Le.rz=function(){for(var a=new Fn,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 An,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 An;x.add(b,ee),x.add(z,ee),E.add(b,b),E.add(z,b)}var x=new Ht,E=new Ht;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;ut("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)},Vt.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=pt.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)}pt.free(y)}else{for(0<x.memberParts.count&&(y=a.computePartsBounds(x.memberParts,!1),y.Bc(20,20),b.initialize(y)),y=pt.alloc(),z=x.memberParts;z.next();)ee=z.value,ee instanceof si&&wf(a,ee,E,y);pt.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 xr)for(y=y.memberParts;y.next();)b=y.value,b instanceof si&&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)}Vt.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=Vr(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=pt.alloc(),a.computeBounds(y),y.ed(a.documentBounds),Og(a,y),pt.free(y),a.Fc=!0,a.bd(),jg(a))}},a.vp))}Vt.prototype.ug=function(){this.vk!==-1&&(Zn.clearTimeout(this.vk),this.vk=-1)},Vt.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=pt.allocAt(0,0,E.width*b,E.height*b);var z=Ze.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(Xn)||(y=new Ze(y.x+z.x/b,y.y+z.y/b)),pt.free(E),Ze.free(z),y},Le=Vt.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 xr&&(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):Zn.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 Zn.requestAnimationFrame(function(){E()}),null}Le.Wz=function(a){return la?(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"&&ut('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"&&ut("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 Xe(1/0,1/0):new Xe(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 ii(le):le instanceof ii||ut("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 Xe(ge.width,ge.height),a.Ca,a.pa,oe,he,Ae,y),E.context):(a.Xm=!1,gf(a,Be,le,new Xe(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 st=a.Wa.s,ht=st.length,ft=0;ft<ht;ft++){var Ct=st[ft];if(Ct.visible&&Ct.isTemporary){Ct=Ct.Pa.s;for(var Gt=Ct.length,oi=0;oi<Gt;oi++){var Ni=Ct[oi];Ni.isInDocumentBounds&&Ni.isVisible()&&(Ni=Ni.actualBounds,Ni.w()&&Ke.ed(Ni))}}}if(st=new Ze(Ke.x,Ke.y),oe!==null){for(ht=new pt(0,0,0,0),ft=!0,Ct=oe.iterator,Ct.reset();Ct.next();)Gt=Ct.value,Gt instanceof Xi&&(oi=Gt.layer,oi!==null&&!oi.visible||oi!==null&&!Ae&&oi.isTemporary||!Gt.isVisible()||(Gt=Gt.actualBounds,Gt.w()&&(ft?(ft=!1,ht.assign(Gt)):ht.ed(Gt))));Ke.width=ht.width,Ke.height=ht.height,st.x=ht.x,st.y=ht.y}return re!==null&&re.w()&&(st=re,z||(z=qe)),ht=re=0,le!==null&&(re=le.left+le.right,ht=le.top+le.bottom),ft=Ct=0,b!==null&&(Ct=b.width,ft=b.height,isFinite(Ct)&&(Ct=Math.max(0,Ct-re)),isFinite(ft)&&(ft=Math.max(0,ft-ht))),b!==null&&z!==null?(z==="NaN"&&(z=qe),b.w()?(b=Ct,Ke=ft):isNaN(ft)?(b=Ct,Ke=Ke.height*z):(b=Ke.width*z,Ke=ft)):b!==null?b.w()?(z=Math.min(Ct/Ke.width,ft/Ke.height),b=Ct,Ke=ft):isNaN(ft)?(z=Ct/Ke.width,b=Ct,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-ht)/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+=ht):le=new ii(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 Xe(Math.ceil(b),Math.ceil(Ke)),z,st,oe,he,Ae,y),E.context):(a.Xm=!1,gf(a,Be,le,new Xe(Math.ceil(b),Math.ceil(Ke)),z,st,oe,he,Ae,y),a.Xm=!0,ge.context)}mn.Object.defineProperties(Vt.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,Zn.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,Zn.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(Zn,"resize",this.Ov,!1),this.removeEventListener(Zn,"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)&&Rn(a,"0 <= value <= 1",Vt,"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&&Rn(a,">= 0",Vt,"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&&Rn(a,">= 0",Vt,"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 Rn(a,">= 0",Vt,"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&&ut("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(Zn,"pointermove",this.dk,!0),this.addEventListener(Zn,"pointerdown",this.ui,!0),this.addEventListener(Zn,"pointerup",this.fk,!0),this.addEventListener(Zn,"pointerout",this.ek,!0),this.addEventListener(Zn,"pointercancel",this.ck,!0),this.removeEventListener(y,"wheel",this.$j,!1),this.addEventListener(Zn,"wheel",this.$j,!0),this.addEventListener(Zn,"selectstart",this.preventDefault,!1)):(this.removeEventListener(Zn,"pointermove",this.dk,!0),this.removeEventListener(Zn,"pointerdown",this.ui,!0),this.removeEventListener(Zn,"pointerup",this.fk,!0),this.removeEventListener(Zn,"pointerout",this.ek,!0),this.removeEventListener(Zn,"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(Zn,"wheel",this.$j,!0),this.removeEventListener(Zn,"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=Ze.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)}Ze.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!==On.Grid&&ut("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||ut("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 ii(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()||ut("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()||ut("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)):Rn(a,"> 0",Vt,"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)):Rn(a,"> 0",Vt,"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 ii(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&&ut("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!==Fa&&a!==Ef&&ut("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 Xe(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 ii(a));var y=this.xp;y.D(a)||(this.xp=a=a.J(),this.Ya(),this.g("autoScrollRegion",y,a))}}}),mn.Object.defineProperties(Vt,{licenseKey:{get:function(){return Vg.jc()},set:function(a){Vg.add(a.replace(/\s/g,""))}},version:{get:function(){return Vd}}}),Vt.prototype.makeImageData=Vt.prototype.Jx,Vt.prototype.makeImage=Vt.prototype.Wz,Vt.prototype.cacheGroupExternalLinks=Vt.prototype.Fu,Vt.prototype.addRenderer=Vt.prototype.bs,Vt.prototype.makeSVG=Vt.prototype.av,Vt.prototype.makeSvg=Vt.prototype.Cs,Vt.prototype.stopAutoScroll=Vt.prototype.ug,Vt.prototype.doAutoScroll=Vt.prototype.gs,Vt.prototype.isUnoccupied=Vt.prototype.Yj,Vt.prototype.raiseDiagramEvent=Vt.prototype.R,Vt.prototype.removeDiagramListener=Vt.prototype.am,Vt.prototype.addDiagramListener=Vt.prototype.Bj,Vt.prototype.findTreeRoots=Vt.prototype.yz,Vt.prototype.layoutDiagram=Vt.prototype.Uz,Vt.prototype.findTopLevelGroups=Vt.prototype.qz,Vt.prototype.findTopLevelNodesAndLinks=Vt.prototype.rz,Vt.prototype.ensureBounds=Vt.prototype.Va,Vt.prototype.findLinksByExample=Vt.prototype.ls,Vt.prototype.findNodesByExample=Vt.prototype.ms,Vt.prototype.findLinkForData=Vt.prototype.Kc,Vt.prototype.findNodeForData=Vt.prototype.ii,Vt.prototype.findPartForData=Vt.prototype.Lc,Vt.prototype.findLinkForKey=Vt.prototype.findLinkForKey,Vt.prototype.findNodeForKey=Vt.prototype.Vb,Vt.prototype.findPartForKey=Vt.prototype.findPartForKey,Vt.prototype.rebuildParts=Vt.prototype.Wd,Vt.prototype.transformViewToDoc=Vt.prototype.Ps,Vt.prototype.transformRectDocToView=Vt.prototype.zA,Vt.prototype.transformDocToView=Vt.prototype.op,Vt.prototype.centerRect=Vt.prototype.es,Vt.prototype.scrollToRect=Vt.prototype.tv,Vt.prototype.scroll=Vt.prototype.scroll,Vt.prototype.highlightCollection=Vt.prototype.Jz,Vt.prototype.highlight=Vt.prototype.Iz,Vt.prototype.selectCollection=Vt.prototype.rA,Vt.prototype.select=Vt.prototype.select,Vt.prototype.updateAllRelationshipsFromData=Vt.prototype.rp,Vt.prototype.updateAllTargetBindings=Vt.prototype.updateAllTargetBindings,Vt.prototype.commit=Vt.prototype.commit,Vt.prototype.rollbackTransaction=Vt.prototype.Kf,Vt.prototype.commitTransaction=Vt.prototype.eb,Vt.prototype.startTransaction=Vt.prototype.Ea,Vt.prototype.raiseChanged=Vt.prototype.g,Vt.prototype.raiseChangedEvent=Vt.prototype.cb,Vt.prototype.removeChangedListener=Vt.prototype.ik,Vt.prototype.addChangedListener=Vt.prototype.Pe,Vt.prototype.removeModelChangedListener=Vt.prototype.mA,Vt.prototype.addModelChangedListener=Vt.prototype.Yw,Vt.prototype.findLayer=Vt.prototype.Qj,Vt.prototype.removeLayer=Vt.prototype.kA,Vt.prototype.addLayerAfter=Vt.prototype.Cy,Vt.prototype.addLayerBefore=Vt.prototype.Ww,Vt.prototype.addLayer=Vt.prototype.Al,Vt.prototype.moveParts=Vt.prototype.moveParts,Vt.prototype.copyParts=Vt.prototype.Kj,Vt.prototype.removeParts=Vt.prototype.Is,Vt.prototype.remove=Vt.prototype.remove,Vt.prototype.add=Vt.prototype.add,Vt.prototype.clearDelayedGeometries=Vt.prototype.bx,Vt.prototype.setProperties=Vt.prototype.nm,Vt.prototype.attach=Vt.prototype.Du,Vt.prototype.set=Vt.prototype.set,Vt.prototype.resetInputOptions=Vt.prototype.Sx,Vt.prototype.setInputOption=Vt.prototype.sA,Vt.prototype.getInputOption=Vt.prototype.Ql,Vt.prototype.resetRenderingHints=Vt.prototype.Tx,Vt.prototype.setRenderingHint=Vt.prototype.Xx,Vt.prototype.getRenderingHint=Vt.prototype.Gf,Vt.prototype.maybeUpdate=Vt.prototype.bd,Vt.prototype.requestUpdate=Vt.prototype.$b,Vt.prototype.delayInitialization=Vt.prototype.Xy,Vt.prototype.isUpdateRequested=Vt.prototype.Pz,Vt.prototype.invalidateDocumentBounds=Vt.prototype.Ya,Vt.prototype.findObjectsNear=Vt.prototype.og,Vt.prototype.findPartsNear=Vt.prototype.mz,Vt.prototype.findObjectsIn=Vt.prototype.Cf,Vt.prototype.findPartsIn=Vt.prototype.ux,Vt.prototype.findObjectsAt=Vt.prototype.ji,Vt.prototype.findPartsAt=Vt.prototype.lz,Vt.prototype.findObjectAt=Vt.prototype.ic,Vt.prototype.findPartAt=Vt.prototype.Ol,Vt.prototype.focusObject=Vt.prototype.zz,Vt.prototype.alignDocument=Vt.prototype.Jy,Vt.prototype.zoomToRect=Vt.prototype.BA,Vt.prototype.zoomToFit=Vt.prototype.zoomToFit,Vt.prototype.diagramScroll=Vt.prototype.kx,Vt.prototype.focus=Vt.prototype.focus;var Cf=new Ht,l0=null,la=Zn.document!==void 0,Gd=null,od="",ps=new Kt(Vt,"None",0),al=new Kt(Vt,"Uniform",1),ad=new Kt(Vt,"UniformToFill",2),Lc=new Kt(Vt,"CycleAll",10),zg=new Kt(Vt,"CycleNotDirected",11),Zg=new Kt(Vt,"CycleNotDirectedFast",12),Wg=new Kt(Vt,"CycleNotUndirected",13),Hg=new Kt(Vt,"CycleDestinationTree",14),Gg=new Kt(Vt,"CycleSourceTree",15),Ch=new Kt(Vt,"DocumentScroll",1),bc=new Kt(Vt,"InfiniteScroll",2),Eh=new Kt(Vt,"TreeParentCollapsed",21),Fa=new Kt(Vt,"AllParentsCollapsed",22),Ef=new Kt(Vt,"AnyParentsCollapsed",23),Vg=new An,Vd="2.3.10",Yd="image",Dc=null,u0=!1;function ds(){if(la){var a=Zn.document.createElement("canvas"),y=a.getContext("2d"),x=Oi("7ca11abfd022028846");y[x]=Oi("398c3597c01238");for(var E=["5da73c80a36455d7038e4972187c3cae51fd22",Ti.Dx+"4ae6247590da4bb21c324ba3a84e385776",hi.xF+"fb236cdfda5de14c134ba1a95a2d4c7cc6f93c1387",St.za],b=1;5>b;b++)y[Oi("7ca11abfd7330390")](Oi(E[b-1]),10,15*b);for(y[x]=Oi("39f046ebb36e4b"),x=1;5>x;x++)y[Oi("7ca11abfd7330390")](Oi(E[x-1]),10,15*x);(E.length!==4||E[0][0]!=="5"||E[3][0]!=="7")&&(hi.prototype.Cd=hi.prototype.Eu),Dc=a}}Vt.className="Diagram",Vt.fromDiv=function(a){var y=a;return typeof a=="string"&&(y=Zn.document.getElementById(a)),y instanceof HTMLDivElement&&y.H instanceof Vt?y.H:null},Vt.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},Vt.useDOM=function(a){la=a?Zn.document!==void 0:!1},Vt.isUsingDOM=function(){return la},Vt.None=ps,Vt.Uniform=al,Vt.UniformToFill=ad,Vt.CycleAll=Lc,Vt.CycleNotDirected=zg,Vt.CycleNotDirectedFast=Zg,Vt.CycleNotUndirected=Wg,Vt.CycleDestinationTree=Hg,Vt.CycleSourceTree=Gg,Vt.DocumentScroll=Ch,Vt.InfiniteScroll=bc,Vt.TreeParentCollapsed=Eh,Vt.AllParentsCollapsed=Fa,Vt.AnyParentsCollapsed=Ef;function h0(){this.wy=null,this.j="zz@orderNum",this._tk==="63ad05bbe23a1786468a4c741b6d2"?this.Rc=this.j=!0:this.Rc=null}function _d(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=Zn[Oi("76a715b2f73f148a")][Oi("72ba13b5")]||"";if(a.Rc=!0,la){var E=Vt[Oi("76a115b6ed251eaf4692")];if(E)for(var b=Vg.iterator;b.next()&&(E=b.value,E=Oi(E).split(Oi("39e9")),!(6>E.length));){var z=Oi(E[1]).split(".");if(E[4]!=="7da71ca0")break;var ee=Oi(Ti[Oi("6cae19")]).split(".");if(z[0]>ee[0]||z[0]===ee[0]&&z[1]>=ee[1]){var re=Zn[Oi("74a900bae4370f8b51")][Oi("6fbb13a1c2311e8a57")].toLowerCase();if(ee=re[Oi("73a612b6fb191d")](Oi("3aad1ab6e022098b4dc4")),z=Oi(E[2]),-1<ee&&(re=re[Oi("73a612b6fb191d")](z.toLowerCase()+"/"),a.Rc=!(-1<re&&re<ee),!a.Rc))break;for(ee=x[Oi("76ad18b4f73e")],re=x[Oi("73a612b6fb191d")](Oi("35e7"))+2;re<ee;re++)y+=x[re];if(ee=y[Oi("73a612b6fb191d")](z),0>ee&&z!==Oi("7da71ca0ad381e90")&&(ee=y[Oi("73a612b6fb191d")](Oi("76a715b2ef3e149757"))),0>ee&&(ee=y[Oi("73a612b6fb191d")](Oi("76a715b2ef3e149757"))),0>ee&&(ee=y[Oi("73a612b6fb191d")](Oi("2bfa41fdb3784bca12"))),0>ee&&(ee=x[Oi("73a612b6fb191d")](Oi("7baa19a6f76c1988428554"))),a.Rc=!(0<=ee&&ee<y[Oi("73a612b6fb191d")](Oi("35"))||y[Oi("73a612b6fb191d")](Oi("35"))===-1),!a.Rc||x[Oi("73a612b6fb191d")](Oi("7fb002b6ed25128b4da25b2e"))&&(a.Rc=!(-1<x[Oi("73a612b6fb191d")](z)),!a.Rc)||(ee=Zn[Oi("76a715b2f73f148a")][Oi("69ad17a1e03e")],re=ee[Oi("73a612b6fb191d")](Oi("7fb002b6ed25128b4da25b2e")),-1<re&&(a.Rc=!(ee[Oi("73a612b6fb191d")](z)>re),!a.Rc)))break;if(z[0]==="#"){ee=Zn.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[Oi("79a417a0f0181a8946")]=E,Zn.document[Oi("78a712aa")]){Zn.document[Oi("78a712aa")][Oi("7bb806b6ed32388c4a875b")](ee),oe=Zn.getComputedStyle(ee).getPropertyValue(Oi("78a704b7e62456904c9b12701b6532a8"));var le=Zn.getComputedStyle(ee).getPropertyValue(Oi("75b817b0ea2202"));if(Zn.document[Oi("78a712aa")][Oi("68ad1bbcf533388c4a875b")](ee),oe){if(ee=Zn[Oi("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(Oi("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[Oi("76ad18b4f73e")],b=x[Oi("73a612b6fb191d")](Oi("35e7"))+2;b<he;b++)y+=x[b];x=y[Oi("73a612b6fb191d")](Oi("7da71ca0ad381e90")),a.Rc=!(0<=x&&x<y[Oi("73a612b6fb191d")](Oi("35")))}}}return 0<a.Rc&&a!==a.wy}h0.className="DiagramHelper";function eh(a){this.j=a===void 0?new Ze:a,this.o=new Ze}mn.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 Xe(NaN,NaN).freeze(),this.gridSnapCellSpot=zi,this.gridSnapOrigin=new Ze(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"||Zn.Element&&a instanceof Element)var x=Vt.call(this,a)||this;else x=Vt.call(this)||this,y=a;return ce(x),y&&x.nm(y),x}jt(fe,Vt);function ce(a){a.allowDragOut=!0,a.allowMove=!1,a.isReadOnly=!0,a.contentAlignment=_i,a.layout=new Ja}fe.prototype.reset=function(){Vt.prototype.reset.call(this),ce(this)},fe.className="Palette";function me(a,y){if(typeof a=="string"||Zn.Element&&a instanceof Element)var x=Vt.call(this,a)||this;else x=Vt.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 Xi;var b=new Fr;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 ii(0,0,0,0),x.pa.h(0,0),x.toolManager.gb("Dragging",new $e,x.toolManager.mouseMoveTools),x.click=function(){var z=E.observed;if(z!==null){var ee=z.viewportBounds,re=E.lastInput.documentPoint;z.position=new Ze(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}jt(me,Vt),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}}}Vt.prototype.redraw.call(this)},me.prototype.gc=function(){if(this.Ka===null&&ut("No div specified"),this.ta===null&&ut("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=pt.alloc().assign(a.viewportBounds).ed(y.viewportBounds),Pu(y,b),pt.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=pt.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)}pt.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=Xe.alloc();b.h(x.width,x.height),E.desiredSize=b,Xe.free(b),a=2/a.scale,E instanceof Fr&&(E.strokeWidth=a),y.location=new Ze(x.x-a/2,x.y-a/2),y.isSelected=!0}}}me.prototype.computeBounds=function(){var a=this.observed;if(a===null)return dr;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))},mn.Object.defineProperties(me.prototype,{observed:{get:function(){return this.V},set:function(a){var y=this.V;if(a instanceof me&&ut("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 $e(){Uo.call(this),this.j=null}jt($e,Uo),$e.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 Ze(x.width/2,x.height/2),a=a.firstInput.documentPoint,y.position=new Ze(a.x-this.j.x,a.y-this.j.y)),!0)},$e.prototype.doActivate=function(){this.j=null,Uo.prototype.doActivate.call(this)},$e.prototype.doUpdateCursor=function(){var a=this.diagram,y=a.box;y!==null&&y.cursor&&(a.currentCursor=y.cursor)},$e.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 Ze(E.x-x.x,E.y-x.y)}a=a.lastInput.documentPoint,y.position=new Ze(a.x-this.j.x,a.y-this.j.y)}}},$e.className="OverviewDraggingTool";function Je(){ai(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=dr,this.hb=!0,this.cg=null,this.ob=200}Je.prototype.toString=function(){return"CommandHandler"},Je.prototype.Xe=function(a){this.H=a},Je.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()},Je.prototype.doKeyUp=function(){this.diagram.lastInput.bubbles=!0},Je.prototype.stopCommand=function(){var a=this.diagram,y=a.currentTool;y instanceof Eo&&a.allowSelect&&a.clearSelection(),y!==null&&y.doCancel()},Je.prototype.canStopCommand=function(){return!0},Je.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=""}},Je.prototype.canSelectAll=function(){return this.diagram.allowSelect},Je.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 Fn,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=""}},Je.prototype.canDeleteSelection=function(){var a=this.diagram;return!(a.isReadOnly||a.isModelReadOnly||!a.allowDelete||a.selection.count===0)},Je.prototype.copySelection=function(){var a=this.diagram,y=new Fn;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)},Je.prototype.canCopySelection=function(){var a=this.diagram;return!!(a.allowCopy&&a.allowClipboard&&a.selection.count!==0)},Je.prototype.cutSelection=function(){this.copySelection(),this.deleteSelection()},Je.prototype.canCutSelection=function(){var a=this.diagram;return!!(!a.isReadOnly&&!a.isModelReadOnly&&a.allowCopy&&a.allowDelete&&a.allowClipboard&&a.selection.count!==0)},Je.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 An,x.addAll(z),Gd=x,od=y.model.dataFormat}}y.R("ClipboardChanged",x)},Je.prototype.pasteFromClipboard=function(){var a=new Fn,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},Je.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 Ze(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=""}},Je.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)},Je.prototype.undo=function(){this.diagram.undoManager.undo()},Je.prototype.canUndo=function(){var a=this.diagram;return a.isReadOnly||a.isModelReadOnly?!1:a.allowUndo&&a.undoManager.canUndo()},Je.prototype.redo=function(){this.diagram.undoManager.redo()},Je.prototype.canRedo=function(){var a=this.diagram;return a.isReadOnly||a.isModelReadOnly?!1:a.allowUndo&&a.undoManager.canRedo()},Je.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))},Je.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)},Je.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))},Je.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)},Je.prototype.resetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;a<y.minScale||a>y.maxScale||(y.scale=a)},Je.prototype.canResetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;return a<y.minScale||a>y.maxScale?!1:y.allowZoom},Je.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=dr):(this.Jt=E,this.sw=x.copy(),a.zoomToFit(),this.Au=a.scale,this.yu=a.documentBounds.copy()),lf(y)},Je.prototype.canZoomToFit=function(){return this.diagram.allowZoom},Je.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 si&&oe.isTreeExpanded&&(!(oe instanceof xr)||oe.isSubGraphExpanded);)oe=b.pop();0<b.length?(oe instanceof Xi&&y.tv(oe.actualBounds),oe instanceof si&&!oe.isTreeExpanded&&(oe.isTreeExpanded=!0),oe instanceof xr&&!oe.isSubGraphExpanded&&(oe.isSubGraphExpanded=!0)):(oe instanceof Xi&&y.es(oe.actualBounds),y.am("LayoutCompleted",ee)),y.eb("Scroll To Part")},ee=function(){Vr(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 eo)mt(a,y.adornedPart,x);else if(y instanceof Gn){var E=y.fromNode;E!==null&&mt(a,E,x),y=y.toNode,y!==null&&mt(a,y,x)}else y instanceof si&&(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}Je.prototype.canScrollToPart=function(a){return a===void 0&&(a=null),a!==null&&!(a instanceof Xi)?!1:(a=this.diagram,a.selection.count===0&&a.highlighteds.count===0?!1:a.allowHorizontalScroll&&a.allowVerticalScroll)},Je.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 An;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 si&&b.isTreeExpanded&&(b.collapseTree(),x.add(b))}y.R("TreeCollapsed",x)}finally{y.eb("Collapse Tree")}},Je.prototype.canCollapseTree=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null){if(!(a instanceof si&&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 si&&y.isTreeExpanded&&0<y.Qo().count)return!0;return!1},Je.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 An;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 si&&!b.isTreeExpanded&&(b.expandTree(),x.add(b))}y.R("TreeExpanded",x)}finally{y.eb("Expand Tree")}},Je.prototype.canExpandTree=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null){if(!(a instanceof si)||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 si&&!y.isTreeExpanded&&0<y.Qo().count)return!0;return!1},Je.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 An,z=a.selection.iterator;z.next();){var ee=z.value;ee.Zc()&&ee.canGroup()&&b.add(ee)}for(var re=new An,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 xr)Rl(x),E=x.copy(),E!==null&&a.add(E);else if(y.Yu(x)){var Pe=y.copyNodeData(x);Qt(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=""}}}},Je.prototype.canGroupSelection=function(){var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowGroup||!a.model.Xj()||this.archetypeGroupData===null)return!1;for(a=a.selection.iterator;a.next();){var y=a.value;if(y.Zc()&&y.canGroup())return!0}return!1};function sn(a){var y=pi();for(a=a.iterator;a.next();){var x=a.value;x instanceof Gn||y.push(x)}a=new Fn,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 tn(y),a}Je.prototype.isValidMember=function(a,y){if(y===null||a===y||y instanceof Gn)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},Je.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 An;if(a!==null)E.add(a);else for(var b=y.selection.iterator;b.next();){var z=b.value;z instanceof xr&&z.canUngroup()&&E.add(z)}var ee=new An;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 Gn)){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=""}},Je.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 xr))return!1;if(a.canUngroup())return!0}else for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof xr&&y.canUngroup())return!0;return!1},Je.prototype.addTopLevelParts=function(a,y){var x=!0;for(a=sn(a).iterator;a.next();){var E=a.value;E.containingGroup!==null&&(!y||this.isValidMember(null,E)?E.containingGroup=null:x=!1)}return x},Je.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 An;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 xr&&b.isSubGraphExpanded&&(b.collapseSubGraph(),x.add(b))}y.R("SubGraphCollapsed",x)}finally{y.eb("Collapse SubGraph")}},Je.prototype.canCollapseSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null)return!!(a instanceof xr&&a.isSubGraphExpanded);for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof xr&&y.isSubGraphExpanded)return!0;return!1},Je.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 An;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 xr&&!b.isSubGraphExpanded&&(b.expandSubGraph(),x.add(b))}y.R("SubGraphExpanded",x)}finally{y.eb("Expand SubGraph")}},Je.prototype.canExpandSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null)return a instanceof xr&&!a.isSubGraphExpanded;for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof xr&&!y.isSubGraphExpanded)return!0;return!1},Je.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 Wo&&z.editable})}a!==null&&(y.currentTool=null,x.textBlock=a,y.currentTool=x)}},Je.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 Wo))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 Wo&&x.editable}),a!==null))return!0;return!1},Je.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(di):y.viewportBounds.ca(E.documentPoint)||(b=y.viewportBounds,b=new Ze(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)}},Je.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)},Je.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 Ht,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 Gn&&(y=a.fromNode,y===null||E.contains(y)?(y=a.toNode,y===null||E.contains(y)||E.remove(a)):E.remove(a));return E},mn.Object.defineProperties(Je.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||ut("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}}}),Je.className="CommandHandler",Jp=function(){return new Je};function At(){ai(this),this.l=30723,this.pb=1,this.bn="",this.Ma=this.Me=null,this.pa=new Ze(NaN,NaN).freeze(),this.jd=zn,this.Ab=new hi,this.wh=new hi,this.Lb=null,this.Ca=this.Kk=1,this.Kb=0,this.Kg=hr,this.uc=new pt(NaN,NaN,NaN,NaN).freeze(),this.Ib=new pt(NaN,NaN,NaN,NaN).freeze(),this.dc=new pt(0,0,NaN,NaN).freeze(),this.ba=this.Yn=this.Zn=null,this.sk=this.Jb=Co,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,xn,Ii,Hi,Ji,Cr,Gr,Nr,Jr,Mo;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=Nn(this.Dh)),this.tb!==null&&(a.tb=this.tb.copy())},At.prototype.Vw=function(a){var y=this.Dh;if(qn(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===Gn?a.name.indexOf("Orient")===0?this.segmentOrientation=a:ut("Unknown Link enum value for GraphObject.segmentOrientation property: "+a):a.classType===At&&(this.stretch=a)},Le.toString=function(){return Wi(this.constructor)+"#"+Hr(this)},Le.th=function(){this.A!==null&&(this.A.nc=!0)};function br(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=Li,a.yj=Li,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===Ro&&ts(this)&&Qo(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 Ht),ee=z.undoManager.transactionLevel===0,a.startCondition===$h?ee=!0:a.startCondition===Id&&(ee=!1),ee?(z=new rs,Kp(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 On&&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 On&&Qd(re,function(oe){oe.data!==null&&oe.l&16777216&&oe.La(y)})};function Qo(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(Ro,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 hi);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?cn(a.x,a.y,0,0,0,E.height)<=y||cn(a.x,a.y,0,E.height,E.width,E.height)<=y||cn(a.x,a.y,E.width,E.height,E.width,0)<=y||cn(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=Ze.alloc();y.assign(a),this.transform.Ga(y);var x=this.actualBounds;if(!x.w())return Ze.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=Ei(x.x-ee*oe,x.y-ee*oe,x.width+z*oe,x.height+z*oe,y.x,y.y),Ze.free(y),a}return b=!1,(this instanceof eo||this instanceof Fr?Ei(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)),Ze.free(y),b},Le.gh=function(a){var y=this.naturalBounds;return Ei(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=pt.allocAt(0,0,y.width,y.height);var x=this.transform,E=!1,b=Ze.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)))),Ze.free(b),pt.free(y),E},Le.fh=function(a,y){if(y===void 0)return a.Re(this.actualBounds);var x=this.naturalBounds,E=!1,b=Ze.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)))),Ze.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=Ze.allocAt(0,0),b=Ze.allocAt(0,x.height),z=Ze.allocAt(x.width,x.height),ee=Ze.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=pt.allocAt(0,0,x.width,x.height);var oe=Ze.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)))),Ze.free(oe),pt.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 Ze.free(E),Ze.free(b),Ze.free(z),Ze.free(ee),re},Le.ga=function(a,y){if(y===void 0&&(y=new Ze),a instanceof bn){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 pt);var y=this.naturalBounds,x=this.oe,E=Ze.allocAt(0,0).transform(x);return a.h(E.x,E.y,0,0),E.h(y.width,0).transform(x),xi(a,E.x,E.y,0,0),E.h(y.width,y.height).transform(x),xi(a,E.x,E.y,0,0),E.h(0,y.height).transform(x),xi(a,E.x,E.y,0,0),Ze.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 Ze),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 On;switch(Os(this,!0)){case xn: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 Hi:isFinite(a)&&a>x&&(b=a),ee=0,re&&(y=1/0);break;case Ji: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()||ut("Non-real measuredBounds has been set. Object "+this+", measuredBounds: "+this.uc.toString()),Ma(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=pt.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 Wo&&(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()||ut("Non-real actualBounds has been set. Object "+this+", actualBounds: "+this.Ib.toString()),this.Xl(z,this.Ib),Ou(this,!1),pt.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=xn),y){case xn:(x>E||z>b)&&(Ma(a,!0),a.measure(x>E?E:x,z>b?b:z,0,0));break;case Bn:Ma(a,!0),a.measure(E,b,0,0);break;case Hi:Ma(a,!0),a.measure(E,z,0,0);break;case Ji:Ma(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(),Mn(a,y)||(x.oh(),this.Pn(x)))},Le.Pn=function(a){this.portId!==null&&(Zv(a,!0),a instanceof si&&_1(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 On&&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&&(ha(this,a,le,!0,!0,oe,re),le instanceof So&&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&&(ha(this,a,he,!0,!1,oe,re),he instanceof So&&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,st=Se.m22,ht=Se.dy,ft,Ct=ft=0;Se=ft*Ae+Ct*Be+qe;var Gt=ft*Ke+Ct*st+ht;ft=Pe.width+ge,Ct=0;var oi=ft*Ae+Ct*Be+qe;ft=ft*Ke+Ct*st+ht,Ct=Math.min(Se,oi);var Ni=Math.min(Gt,ft),wi=Math.max(Se+0,oi)-Ct,Wn=Math.max(Gt+0,ft)-Ni;Se=Ct,Gt=Ni,ft=Pe.width+ge,Ct=Pe.height+ge,oi=ft*Ae+Ct*Be+qe,ft=ft*Ke+Ct*st+ht,Ct=Math.min(Se,oi),Ni=Math.min(Gt,ft),wi=Math.max(Se+wi,oi)-Ct,Wn=Math.max(Gt+Wn,ft)-Ni,Se=Ct,Gt=Ni,ft=0,Ct=Pe.height+ge,oi=ft*Ae+Ct*Be+qe,ft=ft*Ke+Ct*st+ht,Ct=Math.min(Se,oi),Ni=Math.min(Gt,ft),wi=Math.max(Se+wi,oi)-Ct,Wn=Math.max(Gt+Wn,ft)-Ni,Se=Ct,Gt=Ni,ge=y.viewportBounds,Pe=ge.x,Ae=ge.y,Se=!(Se>ge.width+Pe||Pe>wi+Se||Gt>ge.height+Ae||Ae>Wn+Gt)}if(Se){if(Se=(this.l&256)!==0,a.clipInsteadOfFill&&(Se=!1),this instanceof Wo&&(a.font=this.font),Se){if(Gt=re.se()?re.naturalBounds:re.actualBounds,wi=Math.max(ee.x,Gt.x),Wn=Math.max(ee.y,Gt.y),ge=Math.min(ee.right,Gt.right)-wi,Pe=Math.min(ee.bottom,Gt.bottom)-Wn,Ae=this.tb,Ae!==null&&(wi=Ae.x,Wn=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,Wn,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&&Ka(this,re)&&this.shadowVisible===null&&Iu(a),this.Ma!==null&&(a.yc(),Vs(this,a,le,ee)),oe&&(this.Ma!==null||this.areaBackground!==null||Ka(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 On)),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 Ka(a,y){return y===null?!1:(Mh(y)&&(y=y.panel),(y.l&512)!==0||(y.type===On.Auto||y.type===On.Spot)&&y.Pb()!==a)}Le.Dv=function(){};function sl(a,y,x,E){ha(a,y,a.areaBackground,!0,!0,x,E),a.areaBackground instanceof So&&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;ha(a,y,a.Ma,!0,!1,x,E),a.Ma instanceof So&&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===On.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 Wo&&(y.font=a.font),y.yd=null;var ee=a.transform;z=a instanceof On;var re=a instanceof On?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?(_g(y,1,0,0,1,0,0),a.svg=y.ad):z?(_g(y,ee.m11,ee.m12,ee.m21,ee.m22,ee.dx,ee.dy),a.svg=y.ad):_g(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&&Ka(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||Ka(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"+Oo++,re=a.Ud("clipPath",{id:z}),y=a.Ud("rect",{x:y,y:b,width:ee,height:x}),this instanceof On&&(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=Un(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 On?Mh(this):!1;if(!(this instanceof On&&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 On)y.setAttributeNS(null,"transform","matrix("+E.m11+", "+E.m12+", "+E.m21+", "+E.m22+", "+E.dx+", "+E.dy+")");else if(this instanceof Fr){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 On))&&(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 ha(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(st){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&&Vr(function(){Ke.redraw()},600)}}E?y.fillStyle=he:y.strokeStyle=he}}}Le.rg=function(a){if(a instanceof On)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 On?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=Ze.alloc();z.yi(y,x,E,b,di),a.rotate(this.Kb,z.x,z.y),Ze.free(z)}},Le.v=function(a){if(!ll(this)){a===void 0&&(a=!1),Ma(this,!0),Ou(this,!0);var y=this.panel;y===null||a||y.v()}},Le.Uj=function(){ll(this)||(Ma(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 si&&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===On.Table?ou(a,E.Fb(a.row),E.Eb(a.column),y):E!==null&&E.type===On.Auto&&E.Pb()===a?Ua(a,Bn,y):x===Cr?E!==null?E.type===On.Spot&&E.Pb()===a?Ua(a,Bn,y):(x=E.defaultStretch,x===Cr?Ua(a,xn,y):Ua(a,x,y)):Ua(a,xn,y):Ua(a,x,y)}function ou(a,y,x,E){var b=a.stretch;if(b!==Cr)return Ua(a,b,E);var z=b=null;switch(y.stretch){case Ji:z=!0;break;case Bn:z=!0}switch(x.stretch){case Hi:b=!0;break;case Bn:b=!0}return y=a.panel.defaultStretch,b===null&&(b=y===Hi||y===Bn),z===null&&(z=y===Ji||y===Bn),b===!0&&z===!0?Ua(a,Bn,E):b===!0?Ua(a,Hi,E):z===!0?Ua(a,Ji,E):Ua(a,xn,E)}function Ua(a,y,x){if(x)return y;if(y===xn||(x=a.desiredSize,x.w()))return xn;if(a=a.angle,!isNaN(x.width))if(a!==90&&a!==270){if(y===Hi)return xn;if(y===Bn)return Ji}else{if(y===Ji)return xn;if(y===Bn)return Hi}if(!isNaN(x.height))if(a!==90&&a!==270){if(y===Ji)return xn;if(y===Bn)return Hi}else{if(y===Hi)return xn;if(y===Bn)return Ji}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 Ma(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 Kd(a){var y=a.part;if(y instanceof si&&(a.portId!==null||a===y.port)){var x=y.diagram;x===null||x.undoManager.isUndoingRedoing||_1(y,a)}}function Qy(a){var y=a.diagram;y===null||y.undoManager.isUndoingRedoing||(a instanceof On?a instanceof si?a.Bd():a.qm(a,function(x){Kd(x)}):Kd(a))}Le.bind=function(a,y,x,E){var b=null;return typeof a=="string"?b=new xa(a,y,x,E):b=a,b.xd=this,a=this.ih(),a!==null&&p1(a)&&ut("Cannot add a Binding to a template that has already been copied: "+b),this.localBindings===null&&(this.localBindings=new An),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 On?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 Ht),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=Nn(arguments),E=z(x),Qt(E)||ut('GraphObject.make invoked object builder "'+a+'", but it did not return an Object')):b=Zn.go[a]}if(E===null&&(b!=null&&b.constructor||ut("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 Vt&&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?ut("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 Wo)a.text=y;else if(a instanceof Fr)a.figure=y;else if(a instanceof Rs)a.source=y;else if(a instanceof On)y=Xl.I(y),y!==null&&(a.type=y);else if(a instanceof So){var x=bi(So,y);x!==null?a.type=x:ut("Unknown Brush type as an argument to GraphObject.make: "+y)}else a instanceof wn?(y=bi(wn,y),y!==null&&(a.type=y)):a instanceof Wr&&(y=bi(Wr,y),y!==null&&(a.type=y));else if(y instanceof At)a instanceof On||ut("A GraphObject can only be added to a Panel, not to: "+a),a.add(y);else if(y instanceof La){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 La?b0(E,y):ut("A RowColumnDefinition can only be added to an object that implements getRowDefinition/getColumnDefinition, not to: "+a)}else if(y instanceof Kt)typeof a.qb=="function"&&a.qb(y);else if(y instanceof ka)a.type=y;else if(y instanceof xa)a instanceof At||a instanceof La?a.bind(y):ut("A Binding can only be applied to a GraphObject or RowColumnDefinition, not to: "+a);else if(y instanceof _l)a instanceof At?a.Jv(y):ut("An AnimationTrigger can only be applied to a GraphObject, not to: "+a);else if(y instanceof aa)a instanceof wn&&a.type===wn.o?a.figures.add(y):ut("A PathFigure can only be added to a Path Geometry, not to: "+a);else if(y instanceof Wr)a instanceof aa?a.segments.add(y):ut("A PathSegment can only be added to a PathFigure, not to: "+a);else if(y instanceof ea)a instanceof Vt||a instanceof xr?a.layout=y:ut("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 So){x=new Mi;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 La){y.row!==void 0?(b=y.row,(b==null||b===1/0||isNaN(b)||0>b)&&ut("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)&&ut("Must specify non-negative integer column for RowColumnDefinition "+y+", not: "+b),a.isRow=!1,a.index=b),b=new Mi;for(x in y)x!=="row"&&x!=="column"&&(b[x]=y[x]);zd(a,b)}else zd(a,y);else ut('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}mn.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&&(br(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&&(br(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:Xn},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:Cr},set:function(a){var y=this.stretch;y!==a&&(br(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&&(br(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)&&Rn(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 So&&a.freeze(),br(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 So&&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 Xi)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 Ze(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&&ut("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 Fr&&this.qc(),this.g("desiredSize",E,a),ts(this)&&(a=this.part,a!==null&&(Qo(this,a,"width"),Qo(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 Xe(a,this.jd.height).freeze(),this.v(),this instanceof Fr&&this.qc(),this.g("desiredSize",y,a),ts(this)&&(a=this.part,a!==null&&Qo(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 Xe(this.jd.width,a).freeze(),this.v(),this instanceof Fr&&this.qc(),this.g("desiredSize",y,a),ts(this)&&(a=this.part,a!==null&&Qo(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(),br(this),this.A.u=a,this.v(),this.g("minSize",y,a))}},maxSize:{get:function(){return this.A!==null?this.A.o:Tn},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(),br(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 ii(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&&(br(this),this.A.hb=a)}},reshapingBehavior:{get:function(){return this.A!==null?this.A.Pf:xn},set:function(a){this.reshapingBehavior!==a&&(br(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()&&ut("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&&Rn(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&&Rn(a,">= 1",At,"columnSpan"),br(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&&Rn(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&&Rn(a,">= 1",At,"rowSpan"),br(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&&(br(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 si||ut("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:Li},set:function(a){var y=this.toSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.yj=a,this.g("toSpot",y,a),Kd(this))}},toEndSegmentLength:{get:function(){return this.ba!==null?this.ba.wj:10},set:function(a){var y=this.toEndSegmentLength;y!==a&&(0>a&&Rn(a,">= 0",At,"toEndSegmentLength"),this.Xc(),this.ba.wj=a,this.g("toEndSegmentLength",y,a),Kd(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),Kd(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&&Rn(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:Li},set:function(a){var y=this.fromSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.Xi=a,this.g("fromSpot",y,a),Kd(this))}},fromEndSegmentLength:{get:function(){return this.ba!==null?this.ba.Vi:10},set:function(a){var y=this.fromEndSegmentLength;y!==a&&(0>a&&Rn(a,">= 0",At,"fromEndSegmentLength"),this.Xc(),this.ba.Vi=a,this.g("fromEndSegmentLength",y,a),Kd(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),Kd(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&&Rn(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&&(br(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&&(br(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&&(br(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&&(br(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&&(br(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&&(br(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&&(br(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&&(br(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&&(br(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&&(br(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&&(br(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&&(br(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&&(br(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&&(br(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&&(br(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&&(br(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&&(br(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&&(br(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 Ht,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(On,On.Auto,{isActionable:!0,enabledChanged:function(x,E){if(x instanceof On){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(Fr,{name:"ButtonBorder",figure:"RoundedRectangle",spot1:new bn(0,0,2.76142374915397,2.761423749153969),spot2:new bn(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 On&&(x=E.fb("ButtonBorder"),x instanceof Fr)){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 On&&(x=E.fb("ButtonBorder"),x instanceof Fr&&(x.fill=E._buttonFillNormal,x.stroke=E._buttonStrokeNormal))},y.actionDown=function(x,E){if(E.If()&&E instanceof On&&E._buttonFillPressed!==null&&x.button===0){var b=E.fb("ButtonBorder");if(b instanceof Fr){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 On&&E._buttonFillPressed!==null&&x.button===0){var b=E.fb("ButtonBorder");if(b instanceof Fr){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 On&&E._buttonFillPressed!==null){var b=E.fb("ButtonBorder");if(b instanceof Fr){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 On&&E._buttonFillPressed!==null){var b=x.diagram;if(b.firstInput.button===0&&(b.currentTool.standardMouseOver(),a(x,E)&&(x=E.fb("ButtonBorder"),x instanceof Fr))){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(Fr,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:$t},new xa("figure","isTreeExpanded",function(y,x){return x=x.panel,y?x._treeExpandedFigure:x._treeCollapsedFigure}).cp()),{visible:!1},new xa("visible","isTreeLeaf",function(y){return!y}).cp());return a.click=function(y,x){if(x=x.part,x instanceof eo&&(x=x.adornedPart),x instanceof si){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(Fr,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:$t},new xa("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 eo&&(x=x.adornedPart),x instanceof xr){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(eo,On.Auto,{isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new Ze(0,3),shadowBlur:5},wl(Fr,{name:"Border",figure:"RoundedRectangle",parameter1:1,parameter2:1,fill:"#F5F5F5",stroke:"#F0F0F0",spot1:new bn(0,0,4,6),spot2:new bn(1,1,-4,-4)}))}),Ah("ContextMenu",function(){return wl(eo,On.Vertical,{background:"#F5F5F5",isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new Ze(0,3),shadowBlur:5},new xa("background","",function(a){return a.adornedPart!==null&&a.placeholder!==null?null:"#F5F5F5"}))}),Ah("ContextMenuButton",function(){var a=wl("Button");a.stretch=Hi;var y=a.fb("ButtonBorder");return y instanceof Fr&&(y.figure="Rectangle",y.strokeWidth=0,y.spot1=new bn(0,0,2,3),y.spot2=new bn(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(Fr,{name:"ButtonIcon",strokeWidth:2},new xa("geometryString","visible",function(E){return E?x._buttonExpandedFigure:x._buttonCollapsedFigure}).cp(y)));return a=x.fb("ButtonBorder"),a instanceof Fr&&(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 Xe(14,14)},wl(Fr,{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:Ii,visible:!1},y!==""?new xa("visible",y).Kx():[])),a.click=function(x,E){if(E instanceof On){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 ii(0,1,0,0)});var y=wl(On,"Horizontal",a,{isActionable:!0,cursor:a.cursor,margin:new ii(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=xn=new Kt(At,"None",0),At.Default=Cr=new Kt(At,"Default",0),At.Vertical=Ji=new Kt(At,"Vertical",4),At.Horizontal=Hi=new Kt(At,"Horizontal",5),At.Fill=Bn=new Kt(At,"Fill",3),At.Uniform=Ii=new Kt(At,"Uniform",1),At.UniformToFill=Gr=new Kt(At,"UniformToFill",2),At.FlipVertical=Nr=new Kt(At,"FlipVertical",1),At.FlipHorizontal=Jr=new Kt(At,"FlipHorizontal",2),At.FlipBoth=Mo=new Kt(At,"FlipBoth",3),At.make=wl,At.getBuilders=function(){var a=new Ht,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;ut('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=Tn,this.hg=Cr,this.ob=this.Bi=1,this.Pf=xn,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=Xn,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=Co,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?Zn.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),Qt(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},mn.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=Oo++,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?_g(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"+Oo++,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||_g(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"+Oo++,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=Nn(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 _g(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",Vt.prototype.Cs=function(a){this.pj.contains("SVG")||this.bs("SVG",new Cu(this,Zn.document));var y=new Cu(this,Zn.document,!0);a===void 0&&(a=new Mi);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)},Vt.prototype.makeSvg=Vt.prototype.Cs,Vt.prototype.av=function(a){return this.Cs(a)},Vt.prototype.makeSVG=Vt.prototype.av;function Il(a,y,x,E){this.ownerDocument=y=y===void 0?Zn.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},mn.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&&ut("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 hi,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 So&&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(){},mn.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 Kg(){this.F=this.o=this.u=this.j=0}Kg.className="ColorNumbers";function So(a,y){Df||(cv(),Df=!0),ai(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=_i,this.Lk=Qn):this.Lk=a===Cl?this.Qd=di:this.Qd=Li,this.Gr=0,this.Xp=NaN,this.xe=this.cr=this.we=null,this.ft=this.yk=0,y&&Object.assign(this,y)}So.prototype.copy=function(){var a=new So;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=So.prototype,Le.freeze=function(){return this._isFrozen=!0,this.we!==null&&this.we.freeze(),this},Le.ka=function(){return Object.isFrozen(this)&&ut("cannot thaw constant: "+this),this._isFrozen=!1,this.we!==null&&this.we.ka(),this},Le.qb=function(a){a.classType===So&&(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&&Nt(this),(typeof a!="number"||!isFinite(a)||1<a||0>a)&&Rn(a,"0 <= loc <= 1",So,"addColorStop:loc"),this.we===null&&(this.we=new Ht),this.we.add(a,y),this.na===Fh&&(this.type=ih),this.xe=null,this},Le.Vz=function(a,y){if(this._isFrozen&&Nt(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&&Nt(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=Vo.j;var E=Vo.u,b=Vo.o,z=Vo.F;return nh(y),x===void 0&&(x=.5),"rgba("+Math.round((Vo.j-a)*x+a)+", "+Math.round((Vo.u-E)*x+E)+", "+Math.round((Vo.o-b)*x+b)+", "+Math.round((Vo.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 So?a.Gx():(nh(a),128>(299*Vo.j+587*Vo.u+114*Vo.o)/1e3):!1}function Lf(a,y){switch(y){case Bf:y=100*uv(Vo.j);var x=100*uv(Vo.u),E=100*uv(Vo.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=Vo.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,Vo.j=255*hv((3.2404542*Es.j+-1.5371385*Es.u+-.4985314*Es.o)/100),Vo.u=255*hv(a/100),Vo.o=255*hv(y/100),Vo.F=Es.F,Vo.j=Math.round(Vo.j),255<Vo.j?Vo.j=255:0>Vo.j&&(Vo.j=0),Vo.u=Math.round(Vo.u),255<Vo.u?Vo.u=255:0>Vo.u&&(Vo.u=0),Vo.o=Math.round(Vo.o),255<Vo.o?Vo.o=255:0>Vo.o&&(Vo.o=0),"rgba("+Vo.j+", "+Vo.u+", "+Vo.o+", "+Vo.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:ut("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,Vo.j=a[0],Vo.u=a[1],Vo.o=a[2],Vo.F=a[3]/255):(y.fillStyle="#FFFFFF",y.fillStyle=a,Vo.j=0,Vo.u=0,Vo.o=0,Vo.F=1)}}function lv(){var a=Vo.j/255,y=Vo.u/255,x=Vo.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=Vo.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 So||ut("Value for "+y+" must be a color string or a Brush, not "+a))}function cv(){gv=la?new Il(null,void 0,{willReadFrequently:!0}).context:null}mn.Object.defineProperties(So.prototype,{type:{get:function(){return this.na},set:function(a){this._isFrozen&&Nt(this,a),this.na=a,this.start.Mc()&&(a===ih?this.start=_i:a===Cl&&(this.start=di)),this.end.Mc()&&(a===ih?this.end=Qn:a===Cl&&(this.end=di)),this.xe=null}},color:{get:function(){return this.xk},set:function(a){this._isFrozen&&Nt(this,a),this.xk=a,this.xe=null}},start:{get:function(){return this.Qd},set:function(a){this._isFrozen&&Nt(this,a),this.Qd=a.J(),this.xe=null}},end:{get:function(){return this.Lk},set:function(a){this._isFrozen&&Nt(this,a),this.Lk=a.J(),this.xe=null}},startRadius:{get:function(){return this.Gr},set:function(a){this._isFrozen&&Nt(this,a),0>a&&Rn(a,">= zero",So,"startRadius"),this.Gr=a,this.xe=null}},endRadius:{get:function(){return this.Xp},set:function(a){this._isFrozen&&Nt(this,a),0>a&&Rn(a,">= zero",So,"endRadius"),this.Xp=a,this.xe=null}},colorStops:{get:function(){return this.we},set:function(a){this._isFrozen&&Nt(this,a),this.we=a,this.xe=null}},pattern:{get:function(){return this.cr},set:function(a){this._isFrozen&&Nt(this,a),this.cr=a,this.xe=null}}}),So.prototype.isDark=So.prototype.Gx,So.prototype.darkenBy=So.prototype.Wy,So.prototype.lightenBy=So.prototype.Vz,So.prototype.addColorStop=So.prototype.addColorStop;var fv=216/24389,g0=24389/27,bf=[95.047,100,108.883],gv=null,Vo=new Kg,ul=new Kg,Es=new Kg,Ru=new Kg,Df=!1;So.className="Brush";var Fh;So.Solid=Fh=new Kt(So,"Solid",0);var ih;So.Linear=ih=new Kt(So,"Linear",1);var Cl;So.Radial=Cl=new Kt(So,"Radial",2);var kf;So.Pattern=kf=new Kt(So,"Pattern",4);var Bf;So.Lab=Bf=new Kt(So,"Lab",5);var o1;So.HSL=o1=new Kt(So,"HSL",6),So.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},So.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)},So.lighten=function(a){return n1(a)},So.lightenBy=n1,So.darken=function(a){return i1(a)},So.darkenBy=i1,So.mix=sv,So.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(){},mn.Object.defineProperties(ka.prototype,{name:{get:function(){return this.xa},set:function(a){this.xa=a}},classType:{get:function(){return On}}}),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"}jt(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 Fr&&le.isGeometryPositioned&&(le=le.strokeWidth/2,Se-=le,Pe-=le),xi(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 Fr&&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"}jt(m0,ka),m0.prototype.measure=function(a,y,x,E,b,z,ee){var re=E.length;y=pi(),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!==xn&&he!==Hi)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));tn(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===Ji)&&(Be=Math.max(x.height-Pe-Ae,0)),Pe=Be+Pe+Ae,Ae=he.alignment,Ae.Xb()&&(Ae=a.defaultAlignment),Ae.sb()||(Ae=di),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"}jt(v0,ka),v0.prototype.measure=function(a,y,x,E,b,z){var ee=E.length;x=pi();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!==xn&&he!==Ji)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,Kn(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);tn(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===Hi)&&(Be=Math.max(x.width-Pe-Ae,0)),Pe=Be+Pe+Ae,Ae=he.alignment,Ae.Xb()&&(Ae=a.defaultAlignment),Ae.sb()||(Ae=di),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"}jt(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=pt.allocAt(-le.left,-le.top,Pe,Ae),Ke=pt.allocAt(0,0,z,ee);pv(oe,Ke,!0),z=Ke.width,ee=Ke.height;for(var st=!0,ht=rh(a),ft=0;ft<re;ft++){var Ct=E[ft];Se=y;var Gt=x;if(Ct!==oe&&(Ct.visible||Ct===ht)){le=Ct.margin;var oi=le.left,Ni=le.top;switch(Pe=le.right+le.left,Ae=le.top+le.bottom,le=Os(Ct,!1),le){case Bn:Se=z,Gt=ee,Ni=oi=Ae=Pe=0;break;case Hi:Se=z,oi=Pe=0;break;case Ji:Gt=ee,Ni=Ae=0}Ct.measure(Se,Gt,0,0),Se=Ct.measuredBounds,Pe=Math.max(Se.width+Pe,0),Ae=Math.max(Se.height+Ae,0),le=Ct.alignment,le.Xb()&&(le=a.defaultAlignment),le.sb()||(le=di);var wi=Ct.alignmentFocus;if(wi.Xb()&&(wi=di),Gt=null,Ct instanceof On&&Ct.$e!==""&&(Gt=Ct.fb(Ct.$e),Gt===Ct&&(Gt=null)),oi=Ke.x-oi,Ni=Ke.y-Ni,Gt!==null){for(Ct.arrange(0,0,Se.width,Se.height),Se=Gt.actualBounds,Se=Ze.allocAt(Se.x+(wi.x*Se.width-wi.offsetX),Se.y+(wi.y*Se.height-wi.offsetY)),Gt=Gt.panel;Gt!==Ct;)Gt.transform.Ga(Se),Gt=Gt.panel;oi+=le.x*z+le.offsetX-Se.x,Ni+=le.y*ee+le.offsetY-Se.y,Ze.free(Se)}else oi+=le.x*z+le.offsetX-(wi.x*Se.width+wi.offsetX),Ni+=le.y*ee+le.offsetY-(wi.y*Se.height+wi.offsetY);st?(st=!1,b.h(oi,Ni,Pe,Ae)):xi(b,oi,Ni,Pe,Ae)}}switch(st?b.assign(qe):Be?b.Uu(Ke.x,Ke.y,Ke.width,Ke.height):xi(b,qe.x,qe.y,qe.width,qe.height),pt.free(qe),pt.free(Ke),le=oe.stretch,le===Cr&&(le=Os(oe,!1)),le){case xn:return;case Bn:if(!isFinite(y)&&!isFinite(x))return;break;case Hi:if(!isFinite(y))return;break;case Ji: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=pt.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!==ht||(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=di),x=x.alignmentFocus,x.Xb()&&(x=di),st?(st=!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)):xi(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));st?b.assign(qe):Be?b.Uu(Ke.x,Ke.y,Ke.width,Ke.height):xi(b,qe.x,qe.y,qe.width,qe.height),pt.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=pt.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=di);var Ae=ge.alignmentFocus;if(Ae.Xb()&&(Ae=di),le=null,ge instanceof On&&ge.$e!==""&&(le=ge.fb(ge.$e),le===ge&&(le=null)),le!==null){var Be=le.actualBounds;for(Ae=Ze.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,Ze.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)}}pt.free(ee)};function pv(a,y,x){var E=null;if(a instanceof On&&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"}jt(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 Fr&&(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),st=Ke.x*qe+Ke.offsetX;Ke=Ke.y*le+Ke.offsetY;var ht=xv(oe),ft=ht.x*qe+ht.offsetX;for(ht=ht.y*le+ht.offsetY,isFinite(y)&&(he=Math.max(Math.abs(st-ft)-Ae,0)),isFinite(x)&&(ge=Math.max(Math.abs(Ke-ht)-Ae,0)),Ae=Xe.alloc(),Ae.h(0,0),a=rh(a),ht=0;ht<re;ht++)Ke=E[ht],Ke===oe||!Ke.visible&&Ke!==a||(le=Ke.margin,qe=le.right+le.left,st=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+st,0),Ae.h(Math.max(qe,Ae.width),Math.max(le,Ae.height)));if(re===1)b.width=qe,b.height=le,Xe.free(Ae);else{switch(Ke=Sv(oe),ht=xv(oe),re=E=0,ht.x!==Ke.x&&ht.y!==Ke.y&&(E=Ae.width/Math.abs(ht.x-Ke.x),re=Ae.height/Math.abs(ht.y-Ke.y)),Xe.free(Ae),Ae=0,Be!==null&&(Ae=Be.strokeWidth*Be.scale,Fv(Be)===Ii&&(E=re=Math.max(E,re))),E+=Math.abs(Ke.offsetX)+Math.abs(ht.offsetX)+Ae,re+=Math.abs(Ke.offsetY)+Math.abs(ht.offsetY)+Ae,Be=oe.stretch,Be===Cr&&(Be=Os(oe,!1)),Be){case xn:ee=z=0;break;case Bn:isFinite(y)&&(E=y),isFinite(x)&&(re=x);break;case Hi:isFinite(y)&&(E=y),ee=0;break;case Ji: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=pt.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,xi(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=di),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&&(Ei(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 pt(z.x,z.y,z.width,z.height))));pt.free(z)};function x0(){this.xa="Base",this.name="Table"}jt(x0,ka),x0.prototype.measure=function(a,y,x,E,b){for(var z=E.length,ee=pi(),re=pi(),oe=0;oe<z;oe++){var le=E[oe],he=le instanceof On?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===On.TableRow?Ae.row=le.row:he.type===On.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&&(Ma(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))}tn(ee);var st=pi(),ht=pi(),ft=pi(),Ct={count:0},Gt={count:0},oi=y,Ni=x,wi=a.rowDefs,Wn=a.colDefs,Sn=null;z=wi.length;for(var vr=0;vr<z;vr++)Sn=wi[vr],Sn!==void 0&&(Sn.actual=0);z=Wn.length;for(var sr=0;sr<z;sr++)Sn=Wn[sr],Sn!==void 0&&(Sn.actual=0);for(var ro=Be.length,zo=0,Ia=0;Ia<ro;Ia++)Be[Ia]&&(zo=Math.max(zo,Be[Ia].length));var Ha=Math.min(a.topIndex,ro-1),vs=Math.min(a.leftIndex,zo-1),Ra=0;ro=Be.length;for(var Rh=rh(a),Pa=0;Pa<ro;Pa++)if(Be[Pa]){zo=Be[Pa].length;var hu=a.Fb(Pa);hu.actual=0;for(var ys=hu.oc=0;ys<zo;ys++)if(Be[Pa][ys]){var jh=a.Eb(ys);st[ys]===void 0&&(jh.actual=0,jh.oc=0,st[ys]=!0);for(var cl=Be[Pa][ys],Zl=cl.length,tl=0;tl<Zl;tl++){var _s=cl[tl];if(_s.visible||_s===Rh){var Pd=1<_s.rowSpan||1<_s.columnSpan;Pd&&(Pa<Ha||ys<vs||ht.push(_s));var du=_s.margin,tg=du.right+du.left,nl=du.top+du.bottom,Ss=ou(_s,hu,jh,!1),Tp=_s.desiredSize,Kc=!isNaN(Tp.height),Fu=!isNaN(Tp.width)&&Kc;if(Pd||Ss===xn||Fu||Pa<Ha||ys<vs||(Ct[ys]!==void 0||Ss!==Bn&&Ss!==Hi||(Ct[ys]=-1,Ct.count++),Gt[Pa]!==void 0||Ss!==Bn&&Ss!==Ji||(Gt[Pa]=-1,Gt.count++),ft.push(_s)),_s.measure(1/0,1/0,0,0),!(Pa<Ha||ys<vs)){var Ks=_s.measuredBounds,rc=Math.max(Ks.width+tg,0),il=Math.max(Ks.height+nl,0);if(_s.rowSpan===1&&(Ss===xn||Ss===Hi)){Sn=a.Fb(Pa);var wd=Sn.Wc();Ra=Math.max(il-Sn.actual,0),Ra+wd>Ni&&(Ra=Math.max(Ni-wd,0));var Gm=Sn.oa===0;Sn.oc=Sn.oc+Ra,Sn.actual=Sn.oa+Ra,Ni=Math.max(Ni-(Ra+(Gm?wd:0)),0)}if(_s.columnSpan===1&&(Ss===xn||Ss===Ji)){Sn=a.Eb(ys);var Op=Sn.Wc();Ra=Math.max(rc-Sn.actual,0),Ra+Op>oi&&(Ra=Math.max(oi-Op,0));var Hy=Sn.oa===0;Sn.oc=Sn.oc+Ra,Sn.actual=Sn.oa+Ra,oi=Math.max(oi-(Ra+(Hy?Op:0)),0)}Pd&&_s.Uj()}}}}}tn(st);var _u=0,sh=0;z=a.columnCount;for(var Uc=0;Uc<z;Uc++){var Cd=Wn[Uc];Cd!==void 0&&(_u+=isNaN(Cd.Hc)?Cd.oc:Cd.Hc,Cd.oc!==0&&(_u+=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()))}oi=Math.max(y-_u,0);var Ku=Ni=Math.max(x-sh,0),zh=oi;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;Ct[Mu.column]=lh.oc===0&&Ct[Mu.column]!==void 0?Math.max(ig.width+oc,Ct[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 Ct)tu!=="count"&&(rg+=Ct[tu]);for(var qa=Xe.alloc(),Ip=0;Ip<z;Ip++){var ks=ft[Ip];if(ks.visible||ks===Rh){var wa=a.Fb(ks.row),Bs=a.Eb(ks.column),uh=0;isFinite(Bs.width)?uh=Bs.width:(isFinite(oi)&&Ct[ks.column]!==null?rg===0?uh=Bs.actual+oi:uh=Ct[ks.column]/rg*zh:Ct[ks.column]!==null?uh=oi:uh=Bs.actual||oi,uh=Math.max(0,uh-Bs.Wc()));var Zh=0;switch(isFinite(wa.height)?Zh=wa.height:(isFinite(Ni)&&Gt[ks.row]!==null?Xc===0?Zh=wa.actual+Ni:Zh=Gt[ks.row]/Xc*Ku:Gt[ks.row]!==null?Zh=Ni:Zh=wa.actual||Ni,Zh=Math.max(0,Zh-wa.Wc())),qa.h(Math.max(Bs.minimum,Math.min(uh,Bs.maximum)),Math.max(wa.minimum,Math.min(Zh,wa.maximum))),Ss=ou(ks,wa,Bs,!1),Ss){case Hi:qa.height=Math.max(qa.height,wa.actual+Ni);break;case Ji:qa.width=Math.max(qa.width,Bs.actual+oi)}var ac=ks.margin,Gy=ac.right+ac.left,Ym=ac.top+ac.bottom;ks.Uj(),ks.measure(qa.width,qa.height,Bs.minimum,wa.minimum);var og=ks.measuredBounds,sc=Math.max(og.width+Gy,0),Qc=Math.max(og.height+Ym,0);isFinite(oi)&&(sc=Math.min(sc,qa.width)),isFinite(Ni)&&(Qc=Math.min(Qc,qa.height));var Xs=0;Xs=wa.actual,wa.actual=Math.max(wa.actual,Qc),wa.oc=Math.max(wa.oc,Qc),Ra=wa.actual-Xs,Ni=Math.max(Ni-Ra,0),Gt[ks.row]===null&&(Ku=Math.max(Ku-Ra,0)),Xs=Bs.actual,Bs.actual=Math.max(Bs.actual,sc),Bs.oc=Math.max(Bs.oc,sc),Ra=Bs.actual-Xs,oi=Math.max(oi-Ra,0),Ct[ks.column]===null&&(zh=Math.max(zh-Ra,0))}}tn(ft);var hh=Xe.alloc(),fu=pi(),Ll=pi();if(z=ht.length,z!==0){for(var Ad=0;Ad<ro;Ad++)if(Be[Ad]){zo=Be[Ad].length;var ag=a.Fb(Ad);fu[Ad]=ag.actual;for(var Fd=0;Fd<zo;Fd++)if(Be[Ad][Fd]){var _m=a.Eb(Fd);Ll[Fd]=_m.actual}}}for(var sg=0;sg<z;sg++){var fa=ht[sg];if(fa.visible||fa===Rh){var nu=a.Fb(fa.row),Wl=a.Eb(fa.column);switch(qa.h(Math.max(Wl.minimum,Math.min(y,Wl.maximum)),Math.max(nu.minimum,Math.min(x,nu.maximum))),Ss=ou(fa,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 Hi:Ll[Wl.index]!==0&&(qa.width=Math.min(qa.width,Ll[Wl.index]));break;case Ji: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 Km=Wl.minimum,rl=nu.minimum,Wh=1;Wh<fa.rowSpan&&!(fa.row+Wh>=a.rowCount);Wh++)Sn=a.Fb(fa.row+Wh),Ra=0,Ra=Ss===Bn||Ss===Ji?Math.max(Sn.minimum,fu[fa.row+Wh]===0?Sn.maximum:Math.min(fu[fa.row+Wh],Sn.maximum)):Math.max(Sn.minimum,isNaN(Sn.Hc)?Sn.maximum:Math.min(Sn.Hc,Sn.maximum)),hh.height+=Ra,rl+=Sn.minimum;for(var Hl=1;Hl<fa.columnSpan&&!(fa.column+Hl>=a.columnCount);Hl++)Sn=a.Eb(fa.column+Hl),Ra=0,Ra=Ss===Bn||Ss===Hi?Math.max(Sn.minimum,Ll[fa.column+Hl]===0?Sn.maximum:Math.min(Ll[fa.column+Hl],Sn.maximum)):Math.max(Sn.minimum,isNaN(Sn.Hc)?Sn.maximum:Math.min(Sn.Hc,Sn.maximum)),hh.width+=Ra,Km+=Sn.minimum;qa.width+=hh.width,qa.height+=hh.height;var lg=fa.margin,Md=lg.right+lg.left,Rp=lg.top+lg.bottom;fa.measure(qa.width,qa.height,Km,rl);for(var ug=fa.measuredBounds,bu=Math.max(ug.width+Md,0),lc=Math.max(ug.height+Rp,0),Ld=0,hg=0;hg<fa.rowSpan&&!(fa.row+hg>=a.rowCount);hg++)Sn=a.Fb(fa.row+hg),Ld+=Sn.total||0;if(Ld<lc){var Hh=lc-Ld,Uu=lc-Ld;if(fa.spanAllocation!==null)for(var Gh=fa.spanAllocation,dh=0;dh<fa.rowSpan&&!(0>=Hh)&&!(fa.row+dh>=a.rowCount);dh++){Sn=a.Fb(fa.row+dh);var Vh=Sn.oa||0,uc=Gh(fa,Sn,Uu);Sn.actual=Math.min(Sn.maximum,Vh+uc),Sn.oa!==Vh&&(Hh-=Sn.oa-Vh)}for(;0<Hh;){var gu=Sn.oa||0;if(isNaN(Sn.height)&&Sn.maximum>gu&&(Sn.actual=Math.min(Sn.maximum,gu+Hh),Sn.oa!==gu&&(Hh-=Sn.oa-gu)),Sn.index===0)break;Sn=a.Fb(Sn.index-1)}}for(var Jc=0,Yh=0;Yh<fa.columnSpan&&!(fa.column+Yh>=a.columnCount);Yh++)Sn=a.Eb(fa.column+Yh),Jc+=Sn.total||0;if(Jc<bu){var qc=bu-Jc,Vy=bu-Jc;if(fa.spanAllocation!==null)for(var ch=fa.spanAllocation,hc=0;hc<fa.columnSpan&&!(0>=qc)&&!(fa.column+hc>=a.columnCount);hc++){Sn=a.Eb(fa.column+hc);var jp=Sn.oa||0,Yy=ch(fa,Sn,Vy);Sn.actual=Math.min(Sn.maximum,jp+Yy),Sn.oa!==jp&&(qc-=Sn.oa-jp)}for(;0<qc;){var Um=Sn.oa||0;if(isNaN(Sn.width)&&Sn.maximum>Um&&(Sn.actual=Math.min(Sn.maximum,Um+qc),Sn.oa!==Um&&(qc-=Sn.oa-Um)),Sn.index===0)break;Sn=a.Eb(Sn.index-1)}}}}tn(ht),Xe.free(hh),Xe.free(qa),fu!==void 0&&tn(fu),Ll!==void 0&&tn(Ll);var $c=0,ef=0,Xm=a.desiredSize,vx=a.maxSize;Ss=Os(a,!0);var zp=sh=_u=0,Zp=0;z=a.columnCount;for(var Qm=0;Qm<z;Qm++)Wn[Qm]!==void 0&&(Sn=a.Eb(Qm),isFinite(Sn.width)?(zp+=Sn.width,zp+=Sn.Wc()):D0(Sn)===Jg?(zp+=Sn.oa,zp+=Sn.Wc()):Sn.oa!==0&&(_u+=Sn.oa,_u+=Sn.Wc()));isFinite(Xm.width)?$c=Math.min(Xm.width,vx.width):$c=Ss!==xn&&isFinite(y)?y:_u,$c=Math.max($c,a.minSize.width),$c=Math.max($c-zp,0);for(var rP=_u===0?1:Math.max($c/_u,1),Jm=0;Jm<z;Jm++)Wn[Jm]!==void 0&&(Sn=a.Eb(Jm),isFinite(Sn.width)||D0(Sn)===Jg||(Sn.actual=Sn.oa*rP),Sn.position=b.width,Sn.oa!==0&&(b.width+=Sn.oa,b.width+=Sn.Wc()));z=a.rowCount;for(var qm=0;qm<z;qm++)wi[qm]!==void 0&&(Sn=a.Fb(qm),isFinite(Sn.height)?(Zp+=Sn.height,Zp+=Sn.Wc()):D0(Sn)===Jg?(Zp+=Sn.oa,Zp+=Sn.Wc()):Sn.oa!==0&&(sh+=Sn.oa,sh+=Sn.Wc()));isFinite(Xm.height)?ef=Math.min(Xm.height,vx.height):ef=Ss!==xn&&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&&(Sn=a.Fb($m),isFinite(Sn.height)||D0(Sn)===Jg||(Sn.actual=Sn.oa*oP),Sn.position=b.height,Sn.oa!==0&&(b.height+=Sn.oa,b.height+=Sn.Wc()));z=re.length;for(var _y=0;_y<z;_y++){var Wp=re[_y],Ky=0,Uy=0;Wp.type===On.TableRow?(Ky=b.width,Sn=a.Fb(Wp.row),Uy=Sn.actual):(Sn=a.Eb(Wp.column),Ky=Sn.actual,Uy=b.height),Wp.measuredBounds.h(0,0,Ky,Uy),Ma(Wp,!1)}tn(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 st=y[Ke];if(st instanceof On&&st.visible&&Mh(st)){if(st.type===On.TableRow){re=a.Fb(st.row);var ht=a.Eb(qe)}else re=a.Fb(Be),ht=a.Eb(st.column);oe=re.position+ge+b,re.oa!==0&&(oe+=re.Io(Math.max(Be,Pe))),re=ht.position+Se+z,ht.oa!==0&&(re+=ht.Io(Math.max(qe,Ae))),ht=st.measuredBounds,st.Uk(),st.actualBounds.ka();var ft=st.actualBounds,Ct=pt.allocAt(ft.x,ft.y,ft.width,ft.height);ft.x=st.type===On.TableRow?z:re,ft.y=st.type===On.TableColumn?b:oe,ft.width=ht.width,ft.height=ht.height,st.actualBounds.freeze(),Ou(st,!1),Mn(Ct,ft)||he===null||(he.oh(),st.Pn(he)),pt.free(Ct)}}for(Ke=Xe.alloc(),st=0;st<le;st++)if(ee[st]){for(he=ee[st].length,ht=a.Fb(st),oe=ht.position+ge+b,ht.oa!==0&&(oe+=ht.Io(Math.max(Be,Pe))),ft=0;ft<he;ft++)if(ee[st][ft]){Ct=a.Eb(ft),re=Ct.position+Se+z,Ct.oa!==0&&(re+=Ct.Io(Math.max(qe,Ae)));for(var Gt=ee[st][ft],oi=Gt.length,Ni=0;Ni<oi;Ni++){var wi=Gt[Ni],Wn=wi.measuredBounds;Ke.h(0,0);for(var Sn=1;Sn<wi.rowSpan&&!(st+Sn>=a.rowCount);Sn++){var vr=a.Fb(st+Sn);vr.oa!==0&&(Ke.height+=vr.total)}for(Sn=1;Sn<wi.columnSpan&&!(ft+Sn>=a.columnCount);Sn++)vr=a.Eb(ft+Sn),vr.oa!==0&&(Ke.width+=vr.total);var sr=Ct.oa+Ke.width,ro=ht.oa+Ke.height;Sn=re,vr=oe;var zo=sr,Ia=ro,Ha=re,vs=oe,Ra=sr,Rh=ro;re+sr>x.width&&(Ra=Math.max(x.width-re,0)),oe+ro>x.height&&(Rh=Math.max(x.height-oe,0));var Pa=wi.alignment;if(Pa.Xb()){Pa=a.defaultAlignment,Pa.sb()||(Pa=di);var hu=Pa.x,ys=Pa.y,jh=Pa.offsetX;Pa=Pa.offsetY;var cl=Ct.alignment,Zl=ht.alignment;cl.sb()&&(hu=cl.x,jh=cl.offsetX),Zl.sb()&&(ys=Zl.y,Pa=Zl.offsetY)}else hu=Pa.x,ys=Pa.y,jh=Pa.offsetX,Pa=Pa.offsetY;(isNaN(hu)||isNaN(ys))&&(ys=hu=.5,Pa=jh=0),cl=Wn.width,Zl=Wn.height;var tl=wi.margin,_s=tl.left+tl.right,Pd=tl.top+tl.bottom,du=ou(wi,ht,Ct,!1);!isNaN(wi.desiredSize.width)||du!==Bn&&du!==Hi||(cl=Math.max(sr-_s,0)),!isNaN(wi.desiredSize.height)||du!==Bn&&du!==Ji||(Zl=Math.max(ro-Pd,0)),sr=wi.maxSize,ro=wi.minSize,cl=Math.min(sr.width,cl),Zl=Math.min(sr.height,Zl),cl=Math.max(ro.width,cl),Zl=Math.max(ro.height,Zl),sr=Zl+Pd,Sn+=zo*hu-(cl+_s)*hu+jh+tl.left,vr+=Ia*ys-sr*ys+Pa+tl.top,wi.visible&&(Ei(Ha,vs,Ra,Rh,Sn,vr,Wn.width,Wn.height)?wi.arrange(Sn,vr,cl,Zl):wi.arrange(Sn,vr,cl,Zl,new pt(Ha,vs,Ra,Rh)))}}}for(Xe.free(Ke),a=0;a<E;a++)x=y[a],z=x instanceof On?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"}jt(P0,ka),P0.prototype.measure=function(){},P0.prototype.arrange=function(){};function w0(){this.xa="Base"}jt(w0,ka),w0.prototype.measure=function(){},w0.prototype.arrange=function(){};function C0(){this.xa="Base"}jt(C0,ka),C0.prototype.measure=function(a,y,x,E,b,z,ee){1<E.length&&ut("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===Ii?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&&(Ma(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=di),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"}jt(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],st=[];if(Pe.push(st),Ke.visible){var ht=Ke.interval;if(!(0>ht)){Ke=vv(Ke.figure);for(var ft=0;ft<Be;ft++)if(ft!==qe){var Ct=Ae[ft];Ct.visible&&vv(Ct.figure)===Ke&&(Ct=Ct.interval,Ct>ht&&st.push(Ct))}}}}for(Ae=a.O.s,Be=Ae.length,qe=0;qe<Be;qe++){var Gt=Ae[qe];if(Gt.visible&&(st=Gt.interval||1,Ke=Math.abs(st),!(2>b*Ke*x))){if(ht=Gt.segmentIndex,(!isFinite(ht)||isNaN(ht))&&(ht=0),0>ht&&(ht=Ke-Math.min(-ht,Ke)),ht=Math.round(ht%Ke),Ke=Gt.opacity,ft=1,Ke!==1){if(Ke===0)continue;ft=y.globalAlpha,y.globalAlpha=ft*Ke}Ct=Pe[qe];var oi=!1,Ni=Gt.strokeDashArray;if(Ni!==null&&(oi=!0,y.js(Ni,Gt.strokeDashOffset)),Gt.figure==="LineV"&&Gt.stroke!==null&&0<Gt.strokeWidth){for(y.lineWidth=Gt.strokeWidth,ha(a,y,Gt.stroke,!1,!1,z,ee),y.beginPath(),Ni=Gt=Math.floor((Se-b)/b);Ni<=Gt+le;Ni++){var wi=Ni*b+Se;0<=wi&&wi<=re&&E0(Ni,st,ht,Ct)&&(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,ha(a,y,Gt.stroke,!1,!1,z,ee),y.beginPath(),Ni=Gt=Math.floor((ge-E)/E);Ni<=Gt+he;Ni++)wi=Ni*E+ge,0<=wi&&wi<=oe&&E0(Ni,st,ht,Ct)&&(y.moveTo(0,wi),y.lineTo(re,wi));y.stroke(),y.Se()}else if(Gt.figure==="BarV"&&Gt.fill!==null)for(ha(a,y,Gt.fill,!0,!1,z,ee),Gt=Gt.width,isNaN(Gt)&&(Gt=b),wi=Ni=Math.floor((Se-b)/b);wi<=Ni+le;wi++){var Wn=wi*b+Se;0<=Wn+Gt&&Wn<=re&&E0(wi,st,ht,Ct)&&y.fillRect(Wn,0,Gt,oe)}else if(Gt.figure==="BarH"&&Gt.fill!==null)for(ha(a,y,Gt.fill,!0,!1,z,ee),Gt=Gt.height,isNaN(Gt)&&(Gt=E),wi=Ni=Math.floor((ge-E)/E);wi<=Ni+he;wi++)Wn=wi*E+ge,0<=Wn+Gt&&Wn<=oe&&E0(wi,st,ht,Ct)&&y.fillRect(0,Wn,re,Gt);oi&&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"}jt(A0,ka),A0.prototype.measure=function(a,y,x,E,b){var z=E.length;if(a instanceof eo||a instanceof Gn){var ee=null,re=null;if(a instanceof Gn&&(ee=a),a instanceof eo&&(re=a,ee=re.adornedPart,a.j===null&&(a.j=[])),ee instanceof Gn){var oe=ee;if(z===0)Kn(a.naturalBounds,0,0),a.measuredBounds.h(0,0,0,0);else{var le=a instanceof eo?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=hi.alloc();for(var Be=Ze.alloc(),qe=Ze.alloc(),Ke=0;Ke<z;Ke++){var st=E[Ke];if(st!==le)if(st.isPanelMain&&st instanceof Fr){a1(a,re,Se,st);var ht=st.measuredBounds;x.ed(ht),Pe.push(ht)}else if(2>ge)st.measure(1/0,1/0,0,0),ht=st.measuredBounds,x.ed(ht),Pe.push(ht);else{var ft=st.segmentIndex,Ct=st.segmentFraction,Gt=st.alignmentFocus;Gt.Mc()&&(Gt=di);var oi=st.segmentOrientation,Ni=st.segmentOffset;if(isNaN(ft)){var wi=oe.ua;ht=pi(),wi.Qu(Ct,ht);var Wn=Ze.allocAt(ht[0],ht[1]);if(Wn.add(oe.i(0)),wi.type===wn.j?Wn.offset(-wi.startX,-wi.startY):(wi=wi.figures.first(),wi!==null&&Wn.offset(-wi.startX,-wi.startY)),wi=ht[2],oi!==Fs){var Sn=oe.computeAngle(st,oi,wi);st.Kb=Sn}Sn=Wn.x-y.x;var vr=Wn.y-y.y;Ze.free(Wn),tn(ht)}else if(ft<-ge||ft>=ge)ht=Ze.alloc(),oe.vg(),oe.computeMidPoint(ht),wi=oe.midAngle,oi!==Fs&&(Sn=oe.computeAngle(st,oi,wi),st.Kb=Sn),Sn=ht.x-y.x,vr=ht.y-y.y,Ze.free(ht);else{if(Sn=0,0<=ft?(vr=he.M(ft),ht=ft<ge-1?he.M(ft+1):vr):(Sn=ge+ft,vr=he.M(Sn),ht=0<Sn?he.M(Sn-1):vr),vr.Xa(ht)){0<=ft?(wi=0<ft?he.M(ft-1):vr,Sn=ft<ge-2?he.M(ft+2):ht):(wi=Sn<ge-1?he.M(Sn+1):vr,Sn=1<Sn?he.M(Sn-2):ht),Wn=wi.Bf(vr);var sr=ht.Bf(Sn);wi=Wn>sr+10?0<=ft?wi.ab(vr):vr.ab(wi):sr>Wn+10?0<=ft?ht.ab(Sn):Sn.ab(ht):0<=ft?wi.ab(Sn):Sn.ab(wi)}else wi=0<=ft?vr.ab(ht):ht.ab(vr);oi!==Fs&&(Sn=oe.computeAngle(st,oi,wi),st.Kb=Sn),Sn=vr.x+(ht.x-vr.x)*Ct-y.x,vr=vr.y+(ht.y-vr.y)*Ct-y.y}st.measure(1/0,1/0,0,0),ht=st.measuredBounds,Wn=st.naturalBounds;var ro=0;st instanceof Fr&&(ro=st.strokeWidth),sr=Wn.width+ro;var zo=Wn.height+ro;Ae.reset(),Ae.translate(-ht.x,-ht.y),Ae.scale(st.scale,st.scale),Ae.rotate(oi===Fs?st.angle:wi,sr/2,zo/2),oi!==sp&&oi!==up||Ae.rotate(90,sr/2,zo/2),oi!==lp&&oi!==hp||Ae.rotate(-90,sr/2,zo/2),oi===tm&&(45<wi&&135>wi||225<wi&&315>wi)&&Ae.rotate(-wi,sr/2,zo/2),Wn=new pt(0,0,sr,zo),Be.xi(Wn,Gt),Ae.Ga(Be),Gt=-Be.x+ro/2*st.scale,st=-Be.y+ro/2*st.scale,qe.assign(Ni),ro=isNaN(Ni.x);var Ia=isNaN(Ni.y);if(ro||Ia){sr=sr/2+3,zo=zo/2+3;var Ha=45<=wi&&135>=wi,vs=225<=wi&&315>=wi;oi===Fs&&(Ha||vs)?(qe.x=Ia?sr:Ni.y,qe.y=ro?zo:Ni.x,Ha?0<=ft||isNaN(ft)&&.5>Ct||!ro||(qe.y=-zo):vs&&((0<=ft||isNaN(ft)&&.5>Ct)&&ro&&(qe.y=-zo),Ia&&(qe.x=-sr))):(ro&&(qe.x=0<=ft||isNaN(ft)&&.5>Ct?sr:-sr),Ia&&(qe.y=-zo),qe.rotate(wi))}else qe.rotate(wi);Sn+=qe.x,vr+=qe.y,Wn.set(ht),Wn.h(Sn+Gt,vr+st,ht.width,ht.height),Pe.push(Wn),x.ed(Wn)}}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),Kn(b,x.width||0,x.height||0),hi.free(Ae),Ze.free(Be),Ze.free(qe)}}}},A0.prototype.arrange=function(a,y){var x=y.length;if(a instanceof eo||a instanceof Gn){var E=a,b=null;a instanceof eo&&(b=a,E=b.adornedPart);var z=a instanceof eo?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 Gn)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=pi();Pe.Qu(oe,Ae);var Be=Ze.allocAt(Ae[0],Ae[1]);Be.add(ge.i(0)),Pe.type===wn.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;Ze.free(Be),tn(Ae)}else if(re<-x||re>=x)Ae=Ze.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,Ze.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),st=qe.Bf(Be);Pe=Ke>st+10?0<=re?Pe.ab(Ae):Ae.ab(Pe):st>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 Ze(ge,qe);else{Se.Mc()&&(Se=di),Ae=hi.alloc(),Ae.reset(),Ae.scale(ee.scale,ee.scale),Ae.rotate(ee.angle,0,0);var ht=ee.naturalBounds;Be=pt.allocAt(0,0,ht.width,ht.height),Ke=Ze.alloc(),Ke.xi(Be,Se),Ae.Ga(Ke),Se=-Ke.x,st=-Ke.y;var ft=ht.width,Ct=ht.height;ht=Ze.alloc(),ht.assign(he);var Gt=isNaN(he.x),oi=isNaN(he.y);if(Gt||oi){ft=ft/2+3,Ct=Ct/2+3;var Ni=45<=Pe&&135>=Pe,wi=225<=Pe&&315>=Pe;le===Fs&&(Ni||wi)?(ht.x=oi?ft:he.y,ht.y=Gt?Ct:he.x,Ni?0<=re||isNaN(re)&&.5>oe||!Gt||(ht.y=-Ct):wi&&((0<=re||isNaN(re)&&.5>oe)&&Gt&&(ht.y=-Ct),oi&&(ht.x=-ft))):(Gt&&(ht.x=0<=re||isNaN(re)&&.5>oe?ft:-ft),oi&&(ht.y=-Ct),ht.rotate(Pe))}else ht.rotate(Pe);ge+=ht.x,qe+=ht.y,Ae.pp(Be),Se+=Be.x,st+=Be.y,re=Ze.allocAt(ge+Se,qe+st),ee.move(re),Ze.free(re),Ze.free(ht),Ze.free(Ke),pt.free(Be),hi.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),Ze.free(E)}};function a1(a,y,x,E){if(ll(E)!==!1){var b=E.strokeWidth;b===0&&a instanceof eo&&a.type===On.Link&&a.adornedObject instanceof Fr&&(b=a.adornedObject.strokeWidth),b*=E.Ca,a instanceof Gn&&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 eo&&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),Ma(E,!1)}}function Xg(){this.xa="Base"}jt(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 pt(-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,st=Be.length,ht=0,ft=0,Ct=pi(),Gt=0;Gt<st;Gt++){var oi=Be[Gt],Ni=[];ft=ht=0;for(var wi=oi.length,Wn=0;Wn<wi;Wn+=2){var Sn=oi[Wn],vr=oi[Wn+1];if(Wn!==0){var sr=180*Math.atan2(vr-ft,Sn-ht)/Math.PI;0>sr&&(sr+=360),Ni.push(sr)}ht=Sn,ft=vr}Ct.push(Ni)}if(a.graduatedIntervals===null){for(var ro=[],zo=a.O.s,Ia=zo.length,Ha=0;Ha<Ia;Ha++){var vs=zo[Ha],Ra=[];if(ro.push(Ra),vs.visible){var Rh=vs.interval;if(!(0>Rh)){for(var Pa=0;Pa<Ia;Pa++)if(Pa!==Ha){var hu=zo[Pa];if(hu.visible&&vs.constructor===hu.constructor){var ys=hu.interval;ys>Rh&&Ra.push(ys)}}}}}a.graduatedIntervals=ro}var jh=a.graduatedIntervals,cl=a.O.s,Zl=cl.length,tl=0,_s=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 Kc=qe[0][0],Fu=0,Ks=0;_s=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,_u=1;il<=a.graduatedMax+Hy;_u++){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 Wo&&!nl.graduatedSkip(il,nl)||nl instanceof Fr&&!nl.graduatedSkip(il,nl))&&(tl=(il-a.graduatedMin)*Ke/a.graduatedRange,tl>Ke&&(tl=Ke),_s<=tl&&tl<=Pd)){for(var Ku=Ct[Fu][Ks],zh=qe[Fu][Ks];Fu<qe.length;){for(;tl>Kc&&Ks<qe[Fu].length-1;)Ks++,Ku=Ct[Fu][Ks],zh=qe[Fu][Ks],Kc+=zh;if(tl<=Kc)break;Fu++,Ks=0,Ku=Ct[Fu][Ks],zh=qe[Fu][Ks],Kc+=zh}var Us=Be[Fu],Mu=Us[2*Ks],Vm=Us[2*Ks+1],lh=(tl-(Kc-zh))/zh,ig=new Ze(Mu+(Us[2*Ks+2]-Mu)*lh+Ae/2-Pe.bounds.x,Vm+(Us[2*Ks+3]-Vm)*lh+Ae/2-Pe.bounds.y);ig.scale(re.scale,re.scale);e:{var cu=Ku,oc=Ct[Fu];if(!(.5005>lh&&.4995<lh)){var Lu=cu;if(.5>lh?0<Ks?Lu=oc[Ks-1]:St.$(Us[0],Us[Us.length-2])&&St.$(Us[1],Us[Us.length-1])&&(Lu=oc[oc.length-1]):.5<lh&&(Ks+1<oc.length?Lu=oc[Ks+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){Ku=(cu+Lu)/2%360;break e}if(10>Xc){var rg=1-Math.abs(.5-lh);Ku=(cu*rg+Lu*(1-rg))%360;break e}}}Ku=cu}if(nl instanceof Wo){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:Ku,text:tu})}else du.push({$l:ig,angle:Ku})}il=Op+_u*rc}}}a.graduatedMarks.push(du)}tn(Ct);var qa=a.graduatedMarks;if(qa!==null)for(var Ip=E.length,ks=0;ks<Ip;ks++){var wa=E[ks],Bs=qa[ks];if(wa.visible&&wa!==re&&Bs.length!==0){if(wa instanceof Fr){var uh=a,Zh=b,ac=wa.alignmentFocus;ac.Mc()&&(ac=_i);var Gy=wa.angle;wa.Kb=0,wa.measure(1/0,1/0,0,0),wa.Kb=Gy;var Ym=wa.measuredBounds,og=Ym.width,sc=Ym.height,Qc=pt.allocAt(0,0,og,sc),Xs=Ze.alloc();Xs.xi(Qc,ac),pt.free(Qc);for(var hh=-Xs.x,fu=-Xs.y,Ll=new pt,Ad=Bs.length,ag=0;ag<Ad;ag++)for(var Fd=Bs[ag],_m=Fd.$l.x,sg=Fd.$l.y,fa=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(fa+wa.angle),Xs.offset(_m,sg),ag===0&&nu===0?Ll.h(Xs.x,Xs.y,0,0):Ll.Ye(Xs),Xs.offset(-_m,-sg),Xs.rotate(-fa-wa.angle)}Ze.free(Xs),uh.graduatedBounds!==null&&uh.graduatedBounds.push(Ll),xi(Zh,Ll.x,Ll.y,Ll.width,Ll.height)}else if(wa instanceof Wo){var Wl=a,Km=b;Wl.temporaryTextBlock===null&&(Wl.temporaryTextBlock=new Wo);var rl=Wl.temporaryTextBlock;P1(rl,wa);var Wh=wa.alignmentFocus;Wh.Mc()&&(Wh=_i);for(var Hl=wa.segmentOrientation,lg=wa.segmentOffset,Md=new pt,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=wa.angle,Hl!==Fs&&(Ld=Hl===ap||Hl===em?bu+wa.angle:bu,lc=Gn.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=hi.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=pt.allocAt(0,0,Vh,uc),Yh=Ze.alloc();Yh.xi(Jc,Wh),gu.Ga(Yh);var qc=-Yh.x,Vy=-Yh.y,ch=Ze.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 pt(Rp,ug,Gh.width,Gh.height),jp=new pt(Gh.x,Gh.y,Gh.width,Gh.height),Yy=new pt(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),Ze.free(ch),Ze.free(Yh),pt.free(Jc),hi.free(gu)}Wl.graduatedBounds!==null&&Wl.graduatedBounds.push(Md),xi(Km,Md.x,Md.y,Md.width,Md.height)}Ma(wa,!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 Fr){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=_i);for(var st=0;st<Ae;st++){var ht=Pe[st].$l,ft=Pe[st].angle,Ct=Ke,Gt=Se.Ab;Gt.reset(),Gt.translate(ht.x+re.x,ht.y+re.y),Gt.rotate(ft+Se.angle,0,0),Gt.translate(-Be.width*Ct.x+Ct.offsetX+qe/2,-Be.height*Ct.y+Ct.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 Wo)for(a.temporaryTextBlock===null&&(a.temporaryTextBlock=new Wo),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,st=Ke.lines,st!==void 0&&(Be.Cb=st[0],Be.Ih=st[1],Be.df=st[2],Be.Le=st[3],Be.Qc=st[4],Be.Qb=st[5],Be.ze=st[6]),Ke.naturalBounds&&(Be.dc=Ke.naturalBounds),Ke.actualBounds&&(st=Ke.actualBounds,Be.arrange(st.x,st.y,st.width,st.height)),st=Ke.actualBounds,Be.arrange(st.x,st.y,st.width,st.height),ht=Ke.measuredBounds,Ke=Ke.naturalBounds,ft=Be.Ab,ft.reset(),ft.translate(st.x+re.x,st.y+re.y),ft.translate(-ht.x,-ht.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 On(a,y){if(At.call(this),this.na=null,a===void 0)this.na=On.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=On.Position,y=a);this.na===null&&ut("Panel type not specified or PanelLayout not loaded: "+a),this.l=this.l|4194304|(this.na===On.Grid?1048576:0),this.O=new An,this.yb=hr,this.Tm=Co,this.Uf=Cr,this.$g=null,this.$e="",this.jg=new pt(NaN,NaN,NaN,NaN),this.T=this.F=null,this.xo=Ii,this.jn=dn,this.kn=Xn,this.ub=this.ra=null,this.zn=NaN,this.ge=this.Hh=null,y&&Object.assign(this,y)}jt(On,At),On.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},On.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},On.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 si&&(z.Te=!0);var re=a.diagram;re!==null&&re.undoManager.isUndoingRedoing||z.cb(qo,"elements",a,null,b,null,ee)}}return a}return null},Le=On.prototype,Le.toString=function(){return"Panel("+this.type.name+")#"+Hr(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===On.Grid)a.yc(),this.na.gc(this,a,y);else if(this.na===On.Graduated)a.yc(),this.na.gc(this,a,y);else{if(this.na===On.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===On.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){ha(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,ha(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===On.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===On.Grid||this.na===On.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=Ze.alloc(),Se=null,y=1/0;var Ae=null,Be=this.isClipping&&this.na===On.Spot;Be&&(Ae=Ze.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),Ze.free(Ae)),Ze.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===On.Auto||this.na===On.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 On||b instanceof Wo||z!==xn)&&b.v(!0)}}}},Le.Uj=function(){if(!ll(this)){Ma(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),Kn(b,a,oe),Kn(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=xn),a){case xn:(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 Hi:this.v(!0),this.measure(x+re,z+ee,0,0);break;case Ji: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(Ei(0,0,y.width,y.height,a.x,a.y)){y=this.O.s;for(var E=y.length,b=Ze.allocAt(0,0);E--;){var z=y[E];if((z.visible||z===x)&&(yn(b.set(a),z.transform),z.ca(b)))return Ze.free(b),!0}return Ze.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 On){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 On&&u1(a,z,x)}}function Ex(a,y){h1(a,a,y)}function h1(a,y,x){if(x(y),y instanceof On){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 On){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 On){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 On?x=Math.max(x,c1(b)):b instanceof Fr&&(x=Math.max(x,b.ig/2*b.strokeMiterLimit*b.Df()))}return x}Le.se=function(){return!(this.type===On.TableRow||this.type===On.TableColumn)};function Mh(a){return a.type===On.TableRow||a.type===On.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:yn(Ze.allocAt(a.x,a.y),this.transform),re=this.diagram,oe=10,le=5;if(re!==null&&(oe=re.Ql("extraTouchArea"),le=oe/2),Ei(-(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=Ze.alloc(),le=(oe=this.isClipping&&this.na===On.Spot)?this.Pb():null,oe&&(le.se()?yn(re.set(a),le.transform):re.set(a),!le.ca(re)))return Ze.free(re),z||Ze.free(ee),null;for(var ge=rh(this);he--;){var Se=b[he];if((Se.visible||Se===ge)&&(Se.se()?yn(re.set(a),Se.transform):re.set(a),!oe||Se!==le)){var Pe=null;if(Se instanceof On?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 Ze.free(re),z||Ze.free(ee),Pe}}Ze.free(re)}return this.background===null&&this.areaBackground===null?(z||Ze.free(ee),null):(a=Ei(0,0,E.width,E.height,ee.x,ee.y)?this:null,z||Ze.free(ee),a)}return z||Ze.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:yn(Ze.allocAt(a.x,a.y),this.transform);if(b=Ei(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=Ze.alloc(),he=rh(this);oe--;){var ge=re[oe];if(ge.visible||ge===he){ge.se()?yn(le.set(a),ge.transform):le.set(a);var Se=ge;ge=ge instanceof On?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))}}Ze.free(le)}return z||Ze.free(ee),b&&(this.background!==null||this.areaBackground!==null)}return z||Ze.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=hi.alloc(),ee.reset()),ee.multiply(this.transform),this.fh(a,ee))return yv(this,y,x,b),z===void 0&&hi.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 On?he:null,Se=hi.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)),hi.free(Se))}}return z===void 0&&hi.free(ee),E}return z===void 0&&hi.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 On&&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:yn(Ze.allocAt(a.x,a.y),this.transform),le=re?y:yn(Ze.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||cn(oe.x,oe.y,0,0,0,ee.height)<=he||cn(oe.x,oe.y,0,ee.height,ee.width,ee.height)<=he||cn(oe.x,oe.y,ee.width,ee.height,ee.width,0)<=he||cn(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||(Ze.free(oe),Ze.free(le)),ge){if(!this.isAtomic){oe=Ze.alloc(),le=Ze.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,yn(oe.set(a),Be),yn(le.set(y),Be)):(oe.set(a),le.set(y)),Be=Ae,Ae=Ae instanceof On?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)))}}Ze.free(oe),Ze.free(le)}return b?ge:ee}return!1};function Sv(a){var y=null;return a instanceof Fr&&(y=a.spot1,y===Co&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot1)),y===null&&(y=zi),y}function xv(a){var y=null;return a instanceof Fr&&(y=a.spot2,y===Co&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot2)),y===null&&(y=ni),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 Xi&&ut("Cannot add a Part to a Panel: "+y+"; use a Panel instead"),(this===y||this.rg(y))&&(this===y&&ut("Cannot make a Panel contain itself: "+this.toString()),ut("Cannot make a Panel indirectly contain itself: "+this.toString()+" already contains "+y.toString()));var x=y.panel;if(x!==null&&x!==this&&ut("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!==On.Grid||y instanceof Fr||ut("Can only add Shapes to a Grid Panel, not: "+y),this.na!==On.Graduated||y instanceof Fr||y instanceof Wo||ut("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 Ht),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 ut("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 On&&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 si&&(x.Te=!0),x.Te&&x instanceof si&&(x.wc=null),b=this.diagram,b!==null&&b.undoManager.isUndoingRedoing||(E!==-1&&x.cb(ua,"elements",this,y,null,E,null),x.cb(qo,"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),Ma(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 si&&(E instanceof On?E.qm(E,function(ee,re){Vv(z,re,y)}):Vv(z,E,y)),x=this.diagram,x!==null&&x.undoManager.isUndoingRedoing||z.cb(ua,"elements",this,E,null,a,null))},Le.Fb=function(a){0>a&&Rn(a,">= 0",On,"getRowDefinition:idx"),a=Math.round(a);var y=this.rowDefs;if(y[a]===void 0){var x=new La;x.wi(this),x.isRow=!0,x.index=a,y[a]=x,this.cb(qo,"rowdefs",this,null,x,null,a)}return y[a]},Le.oA=function(a){if(0>a&&Rn(a,">= 0",On,"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(ua,"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 La?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&&Rn(a,">= 0",On,"getColumnDefinition:idx"),a=Math.round(a);var y=this.colDefs;if(y[a]===void 0){var x=new La;x.wi(this),x.isRow=!1,x.index=a,y[a]=x,this.cb(qo,"coldefs",this,null,x,null,a)}return y[a]},Le.jA=function(a){if(0>a&&Rn(a,">= 0",On,"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(ua,"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 La?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 La(y)),this},Le.By=function(a,y){return(a=this.Eb(a))&&b0(a,new La(y)),this},Le.nz=function(a){if(0>a||this.type!==On.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!==On.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 Ze(NaN,NaN)),this.type!==On.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!==On.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&&ut("Template cannot have .data be non-null: "+a),a.allBindings=y=new An;else if(y._isFrozen)return;var x=new An;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 An),Pe.srcBindings.add(Se))),y.add(Se)}if(he instanceof On&&he.type===On.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 An),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 On&&(ee=re.substring(0,oe),re=re.substr(oe+1),oe=z.fb(ee),oe!==null?(z=oe,b.targetProperty=re):In('Warning: unable to find GraphObject named "'+ee+'" for Binding: '+b.toString())),z instanceof La?(ee=Hr(z.panel),b.Ai=ee===void 0?-1:ee,z.panel.bindingId=b.Ai):z instanceof At?(ee=Hr(z),b.Ai=ee===void 0?-1:ee,z.bindingId=b.Ai):ut("Unknown type of binding target: "+z)}y.freeze(),a instanceof Xi&&a.Zc()&&a.Va()}Le.Uy=function(a){a===void 0&&(a=!1);var y=this.copy();return Ex(y,function(x){x instanceof On&&(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 On))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 On&&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 On)||z.data!==y[ee])return!0;b++,ee++}return!1}function Qg(a){if(a.type===On.Spot||a.type===On.Auto)return Math.min(a.O.length,1);if(a.type===On.Link){a=a.O;for(var y=a.length,x=0;x<y;x++){var E=a.M(x);if(!(E instanceof Fr&&E.isPanelMain))break}return x}return a.type===On.Table&&0<a.O.length&&(a=a.O.M(0),a.isPanelMain&&a instanceof On&&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 On){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 si&&(y.Te=!0),y.Te&&y instanceof si&&(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 Ht),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 On){var b=y,z=x;E.type===On.TableRow?E.row=b:E.type===On.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=va(y,a)}else return"";if(a===void 0)return"";if(typeof a=="string")return a;ut("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,In('No item template Panel found for category "'+y+'" on '+a),In(" Using default item template."),a=new On,y=new Wo,y.bind(new xa("text","",yr)),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 On){y=y.O.s,E=y.length;for(var b=0;b<E;b++){var z=y[b];x&&z instanceof On&&!z.isEnabled||L0(a,z,x)}}}function Eu(a,y){y.name=a,Xl.add(a,y)}mn.Object.defineProperties(On.prototype,{type:{get:function(){return this.na},set:function(a){var y=this.na;y!==a&&(this.na=a,this.isAtomic=this.na===On.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&&Rn(a,">= 0",On,"padding"),a=new ii(a)):(0>a.left&&Rn(a.left,">= 0",On,"padding:value.left"),0>a.right&&Rn(a.right,">= 0",On,"padding:value.right"),0>a.top&&Rn(a.top,">= 0",On,"padding:value.top"),0>a.bottom&&Rn(a.bottom,">= 0",On,"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:hr},set:function(a){typeof a=="number"&&(a=new ii(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 So)&&(a instanceof So&&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)||ut("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 So)&&(a instanceof So&&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)||ut("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||ut("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()||ut("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&&Qo(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&&Qo(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)&&ut("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)&&ut("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 Xi&&!(this instanceof eo);Rl(this),this.ub=a;var E=this.diagram;E!==null&&(x?(x=E.partManager,this instanceof Gn?(y!==null&&x.bf.remove(y),a!==null&&x.bf.add(a,this)):this instanceof Xi&&(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 Ht}var y=this.itemTemplateMap.I("");y!==a&&((a instanceof Xi||a.isPanelMain)&&ut("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(););br(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&&(br(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 xr&&(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))}}}),mn.Object.defineProperties(On,{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")}}}),On.prototype.rebuildItemElements=On.prototype.mv,On.prototype.findItemPanelForData=On.prototype.sx,On.prototype.updateTargetBindings=On.prototype.La,On.prototype.copyTemplate=On.prototype.Uy,On.prototype.graduatedValueForPoint=On.prototype.Gz,On.prototype.graduatedPointForValue=On.prototype.Fz,On.prototype.findColumnForLocalX=On.prototype.fz,On.prototype.findRowForLocalY=On.prototype.nz,On.prototype.addColumnDefinition=On.prototype.By,On.prototype.addRowDefinition=On.prototype.Hy,On.prototype.addRowColumnDefinition=On.prototype.Gy,On.prototype.removeColumnDefinition=On.prototype.jA,On.prototype.getColumnDefinition=On.prototype.Eb,On.prototype.removeRowDefinition=On.prototype.oA,On.prototype.getRowDefinition=On.prototype.Fb,On.prototype.removeAt=On.prototype.mb,On.prototype.remove=On.prototype.remove,On.prototype.insertAt=On.prototype.Gb,On.prototype.elt=On.prototype.M,On.prototype.add=On.prototype.add,On.prototype.findObject=On.prototype.fb,On.prototype.findInVisualTree=On.prototype.Nl,On.prototype.walkVisualTreeFrom=On.prototype.qm,On.prototype.findMainElement=On.prototype.Pb;var v1=!1,y1=null,Xl=new Ht;On.className="Panel",On.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=hr,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 La(a){ai(this),this.Me=null,this.uq=!0,this.Za=0,this.Hc=NaN,this.jj=0,this.hj=1/0,this.Jb=Co,this.pa=this.oc=this.oa=0,this.be=null,this.oo=Av,this.hg=Cr,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))}La.prototype.copy=function(){var a=new La;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=Nn(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=Nn(y.separatorDashArray)),a.background=y.background,a.coversSeparators=y.coversSeparators,a.be=y.be}Le=La.prototype,Le.qb=function(a){a.classType===La&&(this.sizing=a)},Le.toString=function(){return"RowColumnDefinition "+(this.isRow?"(Row ":"(Column ")+this.index+") #"+Hr(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===On.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(Ro,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 xa(a,y,x,E):b=a,b.xd=this,a=this.panel,a!==null&&(y=a.ih(),y!==null&&p1(y)&&ut("Cannot add a Binding to a RowColumnDefinition that is already frozen: "+b+" on "+a)),this.be===null&&(this.be=new An),this.be.add(b),this},mn.Object.defineProperties(La.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&&Rn(a,">= 0",La,"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&&Rn(a,">= 0",La,"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))&&Rn(a,">= 0",La,"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&&Rn(a,">= 0",La,"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 ii(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 So&&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)||ut("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 So&&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}}}),La.prototype.computeEffectiveSpacing=La.prototype.Wc,La.prototype.computeEffectiveSpacingTop=La.prototype.Io;var Av=new Kt(La,"Default",0),Jg=new Kt(La,"None",1),k0=new Kt(La,"ProportionalExtra",2);La.className="RowColumnDefinition",La.Default=Av,La.None=Jg,La.ProportionalExtra=k0;function Fr(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)}jt(Fr,At),Fr.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=Nn(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=Fr.prototype,Le.th=function(){At.prototype.th.call(this),this.Na!==null&&(this.Na.nc=!0)},Le.qb=function(a){a===xn||a===Ii||a===Gr||a===Cr?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)+")#"+Hr(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=pi(),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 Fr&&(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 st=0;.1<=Be;){if(st===0&&(he?(b=x,b-=le,Be-=le,he=!1):b=x,b===0&&(b=1)),b>Be){tn(qe);return}b>Ae?(st=b-Ae,b=Ae):st=0;var ht=Math.sqrt(b*b/(1+Se*Se));if(0>ge&&(ht=-ht),re+=ht,oe+=Se*ht,a.translate(re,oe),a.rotate(Pe),a.translate(-(ee/2),-(z/2)),st===0&&E.hh(a,y),a.translate(ee/2,z/2),a.rotate(-Pe),a.translate(-re,-oe),Be-=b,Ae-=b,st!==0){if(Ke++,Ke===qe.length){tn(qe);return}Ae=qe[Ke],ge=Ae[0],Pe=Ae[1],Se=Ae[2],Ae=Ae[3],b=st}}tn(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&&ha(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===On.Link&&re instanceof eo&&re.category==="Selection"&&re.adornedObject instanceof Fr&&re.adornedPart.Pb()===re.adornedObject?re.adornedObject.strokeWidth:0),oe===0&&(x=null),x!==null&&oe!==0&&(ha(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===wn.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===wn.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===wn.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===wn.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 sa:a.moveTo(Be.endX,Be.endY);break;case vo:a.lineTo(Be.endX,Be.endY);break;case ga: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 oa: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 st=Pe[Ke];Ke===0&&a.lineTo(st[0],st[1]),a.bezierCurveTo(st[2],st[3],st[4],st[5],st[6],st[7])}break;case us:if(Ke=qe=0,Pe!==null&&Pe.type===oa){if(Pe=Va(Pe,le),st=Pe.length,st===0){a.lineTo(Be.endX,Be.endY);break}Pe=Pe[st-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++)st=Pe[Ke],a.bezierCurveTo(st[2],st[3],st[4],st[5],st[6],st[7]);break;default:ut("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=pi(),z.type===wn.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===wn.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 sa: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 vo:E.push(Ae.endX),E.push(Ae.endY),ee=Ae.endX,b=Ae.endY;break;case ga: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 oa: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:ut("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===wn.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===wn.F){if(b=new aa,b.startX=z.endX,b.startY=(z.startY+z.endY)/2,ee=new Wr(oa),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)}tn(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 Ze),a instanceof bn){a.Mc()&&ut("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 pt);var y=this.naturalBounds,x=this.oe;y=pt.allocAt(y.x,y.y,y.width,y.height);var E=this.strokeWidth;return y.Bc(E/2,E/2),E=Ze.allocAt(y.x,y.y).transform(x),a.h(E.x,E.y,0,0),E.h(y.right,y.y).transform(x),xi(a,E.x,E.y,0,0),E.h(y.right,y.bottom).transform(x),xi(a,E.x,E.y,0,0),E.h(y.x,y.bottom).transform(x),xi(a,E.x,E.y,0,0),pt.free(y),Ze.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!==wn.j||y||(b+=2);var z=pt.alloc();if(z.assign(E),z.Bc(b+2,b+2),!z.ca(a))return pt.free(z),!1;if(E=b+1e-4,x.type===wn.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:(pt.free(z),St.Yb(x.startX,x.startY,x.endX,x.endY,b,a.x,a.y));if(x.type===wn.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 pt.free(z),!1;z.Bc(E,E)}return this.stroke!==null&&z.Bc(b,b),a=z.ca(a),pt.free(z),a}if(x.type===wn.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 pt.free(z),!1;ee+=E,b+=E}return this.stroke!==null&&(ee+=E,b+=E),pt.free(z),0>=ee||0>=b?!1:1>=x*x/(ee*ee)+y*y/(b*b)}if(x.type===wn.o)return pt.free(z),this.fill===null?Ga(x,a.x,a.y,b):da(x,a,b,1<this.strokeWidth,y);ut("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):ut("Unsupported Figure: "+re)}ee=oe.bounds}re=ee.width,oe=ee.height,le=ee.width;var he=ee.height;switch(Os(this,!0)){case xn:E=x=0;break;case Bn:le=Math.max(a-z,0),he=Math.max(y-z,0);break;case Hi:le=Math.max(a-z,0),E=0;break;case Ji: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 xn:break;case Bn:re=le,oe=he;break;case Ii:x=Math.min(le/re,he/oe),isFinite(x)||(x=1),re*=x,oe*=x;break;default:ut(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=Fr.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===Cr?Bn:y:y===Cr?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===wn.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=pi(),a=new Ze,St.Ve(le.startX+E,le.startY+he,le.endX+E,le.endY+he,z,ee,re,oe,a)&&y.push(a),a=new Ze,St.Ve(le.startX-E,le.startY-he,le.endX-E,le.endY-he,z,ee,re,oe,a)&&y.push(a),a=new Ze,St.Ve(le.startX+E,le.startY+he,le.startX-E,le.startY-he,z,ee,re,oe,a)&&y.push(a),a=new Ze,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 tn(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);tn(y)}else if(le.type===wn.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===wn.F){y=pt.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}pt.free(y)}else if(le.type===wn.o){Se=Ze.alloc();var Ae=re-z,Be=oe-ee,qe=Ae*Ae+Be*Be,Ke=z,st=ee;if(0<qe&&Pe.contains(Ke,st)&&(Se.x=Ke,Se.y=st,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,st-=Be;Pe.contains(Ke,st);)Ke-=Ae,st-=Be;for(b.x=re,b.y=oe,Be=0;Be<le.figures.count;Be++){var ht=le.figures.s[Be],ft=ht.isFilled?Ke:z,Ct=ht.isFilled?st:ee,Gt=ht.segments;Pe=ht.startX,Ae=ht.startY;for(var oi=Pe,Ni=Ae,wi=0;wi<Gt.count;wi++){var Wn=Gt.s[wi],Sn=Wn.type,vr=Wn.endX,sr=Wn.endY,ro=!1;switch(Sn){case sa:oi=vr,Ni=sr;break;case vo:ro=N0(Pe,Ae,vr,sr,ft,Ct,re,oe,Se);break;case ga:ro=St.Eo(Pe,Ae,Wn.point1X,Wn.point1Y,Wn.point2X,Wn.point2Y,vr,sr,ft,Ct,re,oe,.6,Se);break;case ls:ro=St.Eo(Pe,Ae,Pe+2/3*(Wn.point1X-Pe),Ae+2/3*(Wn.point1Y-Ae),vr+2/3*(Wn.point1X-vr),sr+2/3*(Wn.point1Y-sr),vr,sr,ft,Ct,re,oe,.6,Se);break;case oa:case us:Sn=Wn.type===oa?Va(Wn,ht):$a(Wn,ht,Pe,Ae);var zo=Sn.length;if(zo===0){ro=N0(Pe,Ae,Wn.type===oa?Wn.centerX:Wn.endX,Wn.type===oa?Wn.centerY:Wn.endY,ft,Ct,re,oe,Se);break}for(sr=null,vr=0;vr<zo;vr++){if(sr=Sn[vr],vr===0&&N0(Pe,Ae,sr[0],sr[1],ft,Ct,re,oe,Se)){var Ia=B0(ft,Ct,Se,qe,b);Ia<qe&&(qe=Ia,he=!0)}St.Eo(sr[0],sr[1],sr[2],sr[3],sr[4],sr[5],sr[6],sr[7],ft,Ct,re,oe,.6,Se)&&(Ia=B0(ft,Ct,Se,qe,b),Ia<qe&&(qe=Ia,he=!0))}vr=sr[6],sr=sr[7];break;default:ut("Unknown Segment type: "+Sn)}Pe=vr,Ae=sr,ro&&(ro=B0(ft,Ct,Se,qe,b),ro<qe&&(qe=ro,he=!0)),Wn.isClosed&&(vr=oi,sr=Ni,N0(Pe,Ae,vr,sr,ft,Ct,re,oe,Se)&&(Wn=B0(ft,Ct,Se,qe,b),Wn<qe&&(qe=Wn,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,Ze.free(Se)}else ut("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=Ze.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)))),Ze.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=hi.alloc();x.set(y),x.Vj();var E=a.left,b=a.right,z=a.top;a=a.bottom;var ee=Ze.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 Ze.free(ee),!0;var re=Ze.alloc(),oe=Ze.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)))),Ze.free(ee),hi.free(x),Ze.free(re),Ze.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 st=qe.length,ht=0;ht<st;ht+=2)if(Ke.zd(qe[ht],qe[ht+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,En(a.x,a.y,re,oe)<=b&&En(a.x,a.y,le,oe)<=b&&En(a.x,a.y,re,ee)<=b&&En(a.x,a.y,le,ee)<=b)return!0}if(re=y.startX,oe=y.startY,le=y.endX,ee=y.endY,y.type===wn.j){if(x=(re-le)*(a.x-le)+(oe-ee)*(a.y-ee),cn(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===wn.u)return y=!1,x&&(y=cn(a.x,a.y,re,oe,re,ee)<=b||cn(a.x,a.y,re,oe,le,oe)<=b||cn(a.x,a.y,le,oe,le,ee)<=b||cn(a.x,a.y,re,ee,le,ee)<=b),y;if(y.type===wn.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 cn(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!(En(y,z,-he,0)>=b||En(y,z,0,-ge)>=b||En(y,z,0,ge)>=b||En(y,z,he,0)>=b)}else if(y.type===wn.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&&cn(a.x,a.y,z,re,z,le)>b&&cn(a.x,a.y,z,re,oe,re)>b&&cn(a.x,a.y,oe,le,z,le)>b&&cn(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):da(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 sa:case vo:if(ee=ge.endX,he=ge.endY,a.zd(ee,he)>b)return!1;break;case ga:var Se=pi();if(St.Qe(ee,he,ge.point1X,ge.point1Y,ge.point2X,ge.point2Y,ge.endX,ge.endY,.8,Se),ee=E(Se,a),tn(Se),ee||(ee=ge.endX,he=ge.endY,a.zd(ee,he)>b))return!1;break;case ls:if(Se=pi(),St.ep(ee,he,ge.point1X,ge.point1Y,ge.endX,ge.endY,.8,Se),ee=E(Se,a),tn(Se),ee||(ee=ge.endX,he=ge.endY,a.zd(ee,he)>b))return!1;break;case oa:case us:Se=ge.type===oa?Va(ge,z):$a(ge,z,ee,he);var Pe=Se.length;if(Pe===0){if(ee=ge.type===oa?ge.centerX:ge.endX,he=ge.type===oa?ge.centerY:ge.endY,a.zd(ee,he)>b)return!1;break}ge=null;for(var Ae=pi(),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 tn(Ae),!1;tn(Ae),ge!==null&&(ee=ge[6],he=ge[7]);break;default:ut("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=ho):a.fromArrow!=="None"&&(a.segmentIndex=0,a.alignmentFocus=new bn(1-ho.x,ho.y)))}Fr.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&&ut("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=wn.parse(St.um[E],!1),ju[E]=a,x!==E&&(ju[x]=E),E}}return typeof y=="string"?y:y instanceof wn?a:null}mn.Object.defineProperties(Fr.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&&Qo(this,a,"geometryString"))}}},geometryString:{get:function(){return this.geometry===null?"":this.geometry.toString()},set:function(a){a=wn.parse(a);var y=a.normalize();this.geometry=a,this.position=a=Ze.allocAt(-y.x,-y.y),Ze.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 So&&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 So&&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 Rn(a,"value >= 0",Fr,"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"?Rn(a,'"butt", "round", or "square"',Fr,"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"?Rn(a,'"miter", "bevel", or "round"',Fr,"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)||ut("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()])||ut("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?ut("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?ut("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:Co},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:Co},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:Cr},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))}}}),Fr.prototype.intersectsRect=Fr.prototype.Yc,Fr.prototype.containedInRect=Fr.prototype.fh,Fr.prototype.getNearestIntersectionPoint=Fr.prototype.rs,Fr.prototype.getDocumentBounds=Fr.prototype.mi,Fr.prototype.getDocumentPoint=Fr.prototype.ga;var ju=new Mi,Mv=new Mi;Fr.className="Shape",Fr.getFigureGenerators=function(){var a=new Ht,y;for(y in St.Ze)y!==y.toLowerCase()&&a.add(y,St.Ze[y]);return a.freeze(),a},Fr.defineFigureGenerator=function(a,y){var x=a.toLowerCase(),E=St.Ze;E[a]=y,E[x]=a},Fr.getArrowheadGeometries=function(){var a=new Ht;for(E in St.um)if(ju[E]===void 0){var y=wn.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 wn&&a.add(x,E)}return a.freeze(),a},Fr.defineArrowheadGeometry=function(a,y){var x=null;typeof y=="string"?x=wn.parse(y,!1):x=y,y=a.toLowerCase(),y!=="none"&&a!==y||ut("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=Cr,this.gg=this.fg=Co}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 Wo(a,y){return At.call(this),j0||(Is=la?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}jt(Wo,At),Wo.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=Wo.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===Wo?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;ha(this,a,this.xc,!0,!1,x,E),(oe||le)&&ha(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 Jr:a.translate(b,0),a.scale(-1,1);break;case Nr:a.translate(0,z),a.scale(1,-1);break;case Mo: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 Jr:a.scale(-1,1),a.translate(-b,0);break;case Nr:a.scale(1,-1),a.translate(0,-z);break;case Mo: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(ha(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),Kn(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=Xe.alloc();bv(a,z,y,oe),b+=oe.height,Xe.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}mn.Object.defineProperties(Wo.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:xn},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:To},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=Xe.alloc();bv(this,this.ec,999999,a);var y=a.width;Xe.free(a),a=C1(this,y);var x=this.desiredSize;isNaN(x.width)||(y=x.width),isNaN(x.height)||(a=x.height),Kn(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 So&&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&&Rn(a,"> 0",Wo,"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 Kt(Wo,"None",0),E1=new Kt(Wo,"WrapFit",1),kv=new Kt(Wo,"WrapDesiredSize",2),A1=new Kt(Wo,"WrapBreakAll",3),Bv=new Kt(Wo,"OverflowClip",0),I0=new Kt(Wo,"OverflowEllipsis",1),ep=new Kt(Wo,"FormatTrim",0),F1=new Kt(Wo,"FormatNone",0),Fx=/[ \u200b\u00ad]/,Nv=new Mi,M1=0,R0=new Mi,Tv=0,tp="...",L1="",Is=null,j0=!1;Wo.className="TextBlock";function Ov(){this.nc=!1,this.Hd=null,this.Xf=xn,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=To,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},Wo.getEllipsis=function(){return tp},Wo.setEllipsis=function(a){tp=a,R0=new Mi,Tv=0},Wo.getBaseline=function(){return T0},Wo.setBaseline=function(a){T0=a},Wo.getUnderline=function(){return O0},Wo.setUnderline=function(a){O0=a},Wo.isValidFont=function(a){if(j0||(Is=la?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},Wo.FormatNone=F1,Wo.FormatTrim=ep,Wo.None=Dv,Wo.OverflowClip=Bv,Wo.OverflowEllipsis=I0,Wo.WrapBreakAll=A1,Wo.WrapDesiredSize=kv,Wo.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=Ar,this.Nk=Bn,this.Zg=this.Hd=null,this.Mk=di,this.Xf=xn,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;jt(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===xn||a===Ii||a===Gr?this.imageStretch=a:At.prototype.qb.call(this,a)},Rs.prototype.toString=function(){return"Picture("+this.source+")#"+Hr(this)};function If(a){a===void 0&&(a=""),a!==""?Of[a]&&(delete Of[a],z0--):(Of=new Mi,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()||(Ma(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=pi();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);tn(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 xn: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 Ii:case Gr:Pe===Ii?(Pe=Math.min(E.height/Se,E.width/ge),ge*=Pe,Se*=Pe):Pe===Gr&&(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 st=Mx;if(!b){if(x.sq&&Ke!==void 0&&4<Be&&qe>st*st)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(ht){this.en=!1}try{b.getImageData(0,0,1,1).data[3]&&(this.vl=!1),this.vl=!1}catch(ht){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 Jr: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 Mo: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(ht){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(ht){this.en=!1}switch(this.flip){case Jr: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 Mo: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===Hi?(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===Ji?(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)),Kn(this.dc,a,y),this.Ge(0,0,a,y)},Rs.prototype.eh=function(a,y,x,E){ms(this,a,y,x,E)},mn.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||ut("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 Fn),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()||(Ma(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(la){var E=null;if(x[a]!==void 0)E=x[a];else if(a!==""){30<z0&&(If(),x=Of),E=ci("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 Mi,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 wn,this.mc=null}Rf.prototype.reset=function(a){a!==null?(a.ka(),this.os=a,a.figures.clear()):this.os=new wn,this.mc=null};function jf(a,y,x,E,b,z){a.mc=new aa,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(sa);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(vo);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(ga);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(oa);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 wn(wn.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 wn(wn.u),E.endX=y,E.endY=x,E.defaultStretch=Ii,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 wn().add(new aa(a,0,!0).add(new Wr(vo,y-a,0)).add(new Wr(ga,y,a,y-z,0,y,z)).add(new Wr(vo,y,x-a)).add(new Wr(ga,y-a,x,y,x-z,y-z,x)).add(new Wr(vo,a,x)).add(new Wr(ga,0,x-a,z,x,0,x-z)).add(new Wr(vo,0,a)).add(new Wr(ga,a,0,0,z,z,0).close())),1<z&&(b.spot1=new bn(0,0,z,z),b.spot2=new bn(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 wn(wn.F),E.endX=y,E.endY=x,E.spot1=Do,E.spot2=Ea,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 wn(wn.F),E.endX=y,E.endY=x,E.spot1=Do,E.spot2=Ea,E.defaultStretch=Ii,St.Nf<St.vm&&(St.Mf[a]=E,St.Nf++)),E}),gs("TriangleRight",function(a,y,x){return new wn().add(new aa(0,0).add(new Wr(vo,y,.5*x)).add(new Wr(vo,0,x).close())).pm(0,.25,.5,.75)}),gs("TriangleDown",function(a,y,x){return new wn().add(new aa(0,0).add(new Wr(vo,y,0)).add(new Wr(vo,.5*y,x).close())).pm(.25,0,.75,.5)}),gs("TriangleLeft",function(a,y,x){return new wn().add(new aa(y,x).add(new Wr(vo,0,.5*x)).add(new Wr(vo,y,0).close())).pm(.5,.25,1,.75)}),gs("TriangleUp",function(a,y,x){return new wn().add(new aa(y,x).add(new Wr(vo,0,x)).add(new Wr(vo,.5*y,0).close())).pm(.25,.5,.75,1)}),gs("Triangle","TriangleUp"),gs("Diamond",function(a,y,x){return new wn().add(new aa(.5*y,0).add(new Wr(vo,0,.5*x)).add(new Wr(vo,.5*y,x)).add(new Wr(vo,y,.5*x).close())).pm(.25,.25,.75,.75)}),gs("LineH",function(a,y,x){return a=new wn(wn.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 wn(wn.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 wn().add(new aa(0,x/2,!1).add(new Wr(vo,y,x/2)).add(new Wr(sa,y/2,0)).add(new Wr(vo,y/2,x)))}),gs("XLine",function(a,y,x){return new wn().add(new aa(0,x,!1).add(new Wr(vo,y,0)).add(new Wr(sa,0,0)).add(new Wr(vo,y,x)))}),gs("LineRight",function(a,y,x){return new wn().add(new aa(.25*y,0,!1).add(new Wr(vo,.75*y,.5*x)).add(new Wr(vo,.25*y,x)))}),gs("LineDown",function(a,y,x){return new wn().add(new aa(0,.25*x,!1).add(new Wr(vo,.5*y,.75*x)).add(new Wr(vo,y,.25*x)))}),gs("LineLeft",function(a,y,x){return new wn().add(new aa(.75*y,0,!1).add(new Wr(vo,.25*y,.5*x)).add(new Wr(vo,.75*y,x)))}),gs("LineUp",function(a,y,x){return new wn().add(new aa(0,.75*x,!1).add(new Wr(vo,.5*y,.25*x)).add(new Wr(vo,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=zn,this.ir=null,this.jr="",this.lr=Co,this.Gq="",this.Hq=zi,this.Pq=Fi,this.Kq=Qi,this.Up=null,this.Cq=127,this.zr=Qe,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 Xi(a,y){a===void 0||a instanceof ka||typeof a=="string"?On.call(this,a):(On.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 Ze(NaN,NaN).freeze(),this.nf=null,this.Ao=NaN,this.vw=-1,this.py=new pt,this.Rh=null,this.ag=NaN,y&&Object.assign(this,y)}jt(Xi,On),Xi.prototype.cloneProtected=function(a){On.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=Xi.prototype,Le.Af=function(a){On.prototype.Af.call(this,a),a.oh(),a.Ug=null,a.nf=null,a.Rh=null},Le.toString=function(){var a=Wi(this.constructor)+"#"+Hr(this);return this.data!==null&&(a+="("+yr(this.data)+")"),a};function js(a){a.P===null?a.P=new Iv:a.P.nc&&(a.P=a.P.copy())}Le.th=function(){On.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===qo&&y==="elements"?b instanceof On?Qd(b,function(oe){uy(re.partManager,oe),Hd(re,oe)}):rd(re,b):a===ua&&y==="elements"&&(b instanceof On?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(On.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 On&&Qd(b,function(z){z.data!==null&&z.La()})}for(y=this.adornments;y.next();)y.value.La(a)}},Xi.prototype.updateRelationshipsFromData=function(){var a;this.data!==null&&((a=this.diagram)===null||a===void 0||a.partManager.updateRelationshipsFromData(this))},Xi.prototype.Pj=function(a){var y=this.Qf;return y===null?null:y.I(a)},Xi.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 Ht),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)))}}},Xi.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)}},Xi.prototype.Ej=function(){var a=this.Qf;if(a!==null){var y=pi();for(a=a.iterator;a.next();)y.push(a.key);a=y.length;for(var x=0;x<a;x++)this.Jf(y[x]);tn(y)}},Xi.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 xr?a.groupSelectionAdornmentTemplate:a.nodeSelectionAdornmentTemplate),!(x instanceof eo))break e;Rl(x),x=x.copy(),x!==null&&(this.ph()&&this.selectionObject===this.path&&(x.type=On.Link),x.adornedObject=y)}if(x!==null){x.type===On.Link&&x.v(),this.bh("Selection",x);break e}}this.Jf("Selection")}for(Dx(this,a),y=this.adornments;y.next();)y.value.La()}},Xi.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=pt.alloc().assign(x);x.ka(),x.x=y.x,x.y=y.y,x.freeze(),a.Xl(E,x),pt.free(E),zv(a,!1)}}Xi.prototype.Ge=function(a,y,x,E){var b=this.uc;b.h(a,y,x,E),this.Lb===null&&(this.Lb=new hi);var z=this.Lb;z.reset(),this.no(z,a,y,x,E),this.Lb=z,z.ws()||z.pp(b)},Xi.prototype.no=function(a,y,x,E,b){if(this.Ca!==1&&a.scale(this.Ca),this.Kb!==0){var z=di;this.locationSpot.sb()&&(z=this.locationSpot);var ee=Ze.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),Ze.free(ee)}},Xi.prototype.move=function(a,y){y===!0?this.location=a:this.position=a},Xi.prototype.moveTo=function(a,y,x){a=Ze.allocAt(a,y),this.move(a,x),Ze.free(a)},Xi.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())},Xi.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())},Xi.prototype.fb=function(a){if(this.name===a)return this;var y=this.Rh;if(y===null&&(this.Rh=y=new Ht),y.I(a)!==null)return y.I(a);var x=On.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 Ze),x=x.Mc()?di: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}Xi.prototype.mi=function(a){return a===void 0&&(a=new pt),a.assign(this.actualBounds)},Xi.prototype.Va=function(){this.measure(1/0,1/0),this.arrange()};function O1(a){var y=Ze.alloc(),x=a.locationObject,E=x.naturalBounds,b=x instanceof Fr?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}Xi.prototype.arrange=function(){if(Cs(this)===!1)T1(this);else{Ou(this,!1);var a=this.Ib,y=pt.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),pt.free(y),zv(this,!1)}},Le=Xi.prototype,Le.Xl=function(a,y){var x=this.diagram;if(x!==null){var E=!1;if(x.Zi===!1&&a.w()){var b=pt.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),pt.free(b)}!(this.G&65536)&&a.D(y)||Z1(this,E,x),x.N(),!a.w()&&!y.w()||Mn(a,y)||(this instanceof si&&!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 Ze(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 eo||(y=y.animationManager,y.zb&&uf(y,a,new Ze(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,Ze.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 eo||uf(x,a,new Ze(z,ee),y),E||y.x===z&&y.y===ee||a.g("position",new Ze(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 si&&wh(x,a),a.layer.isTemporary||y||x.Ya(),y=a.Ib;var E=x.viewportBounds;E.w()?ud(a)?(kn(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,In('Should not change the class of the Part when changing category from "'+x+'" to "'+E+'"'),In(" Old class: "+Wi(a.constructor)+", new class: "+Wi(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 si&&(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 si&&(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)}Xi.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},Xi.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},Xi.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},Xi.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},Xi.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},Xi.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},Xi.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},Xi.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},Xi.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=Xi.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(){On.prototype.v.call(this);var a=this.diagram;a!==null&&(a.De.add(this),this instanceof si&&this.labeledLink!==null&&ws(this.labeledLink),a.$b(!0))},Le.Vo=function(a){a||(a=this.Ah,a!==null&&_v(a,this))},Le.Wo=function(a){a||(a=this.Ah,a!==null&&Kv(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 si&&(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 si&&(x=y.labeledLink,x!==null)?W1(a,x):y}Le.Td=function(a){return a instanceof xr?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 si&&(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 xr&&G0(y,!0),y instanceof si){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 si&&(a=y.labeledLink,a!==null&&(y=a)),y=y.containingGroup}for(y=this;y!==null;)y instanceof xr&&G0(y,!1),y instanceof si&&(a=y.labeledLink,a!==null&&(y=a)),y=y.containingGroup;return x},Xi.prototype.canLayout=function(){if(!this.isLayoutPositioned||!this.isVisible())return!1;var a=this.layer;return!(a!==null&&a.isTemporary||this instanceof si&&this.isLinkLabel)},Xi.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 si&&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 eo)){if(a.add(y),y instanceof si){if(x&&y instanceof xr)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 Gn)for(y=y.labelNodes;y.next();)hd(a,y.value,x,E,b,z)}}mn.Object.defineProperties(Xi.prototype,{key:{get:function(){var a=this.diagram;if(a!==null)return a.model.wa(this.data)}},adornments:{get:function(){return this.Qf===null?Lr: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(ua,"parts",y,this,null,E,!0),E=a.oi(99999999,this,!0),y.visible!==a.visible&&this.Zb(a.visible),0<=E&&x.cb(qo,"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 eo?this.type!==On.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:Fi},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:Qi},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:zi},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 eo)){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 eo?this instanceof eo&&(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 Gn||(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 Gn?(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:zn},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:Co},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&&ut("Cannot make a Group a member of itself: "+this.toString()),ut("Cannot make a Group indirectly contain itself: "+this.toString()+" already contains "+a.toString())),this.C(2);var x=this.diagram;if(y!==null?Kv(y,this):this instanceof xr&&x!==null&&x.ai.remove(this),this.Ah=a,a!==null?_v(a,this):this instanceof xr&&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 xr){for(x=new Fn,hd(x,this,!0,0,!0),x=x.iterator;x.next();)if(E=x.value,E instanceof si)for(E=E.linksConnected;E.next();)zf(E.value)}if(this instanceof si){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 ut("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 si&&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:Qe},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))}}}),Xi.prototype.invalidateLayout=Xi.prototype.C,Xi.prototype.findCommonContainingGroup=Xi.prototype.px,Xi.prototype.isMemberOf=Xi.prototype.Td,Xi.prototype.findTopLevelPart=Xi.prototype.sz,Xi.prototype.findSubGraphLevel=Xi.prototype.oz,Xi.prototype.ensureBounds=Xi.prototype.Va,Xi.prototype.getDocumentBounds=Xi.prototype.mi,Xi.prototype.findObject=Xi.prototype.fb,Xi.prototype.moveTo=Xi.prototype.moveTo,Xi.prototype.invalidateAdornments=Xi.prototype.Wb,Xi.prototype.clearAdornments=Xi.prototype.Ej,Xi.prototype.removeAdornment=Xi.prototype.Jf,Xi.prototype.addAdornment=Xi.prototype.bh,Xi.prototype.findAdornment=Xi.prototype.Pj,Xi.prototype.updateTargetBindings=Xi.prototype.La;var G1=!1;Xi.className="Part",Xi.LayoutNone=0,Xi.LayoutAdded=1,Xi.LayoutRemoved=2,Xi.LayoutShown=4,Xi.LayoutHidden=8,Xi.LayoutNodeSized=16,Xi.LayoutGroupLayout=32,Xi.LayoutNodeReplaced=64,Xi.LayoutStandard=127,Xi.LayoutAll=16777215;function eo(a,y){a===void 0||a instanceof ka||typeof a=="string"?Xi.call(this,a):(Xi.call(this),a&&(y=a)),this.G&=-257,this.Jg="Adornment",this.ue=null,this.Aw=0,this.Uw=!1,this.j=this.$a=null,y&&Object.assign(this,y)}jt(eo,Xi),eo.prototype.toString=function(){var a=this.adornedPart;return"Adornment("+this.category+")"+(a!==null?a.toString():"")},eo.prototype.updateRelationshipsFromData=function(){},eo.prototype.Ul=function(a){var y=this.adornedObject,x=y==null?void 0:y.part;if(x instanceof Gn&&y instanceof Fr){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 Fr&&(b.ua=a)}}},eo.prototype.si=function(){var a=this.ue;return a===null?!0:(a=a.part,a===null||!Cs(a))},eo.prototype.Zc=function(){return!1},eo.prototype.gk=function(a,y,x,E,b,z,ee){if(a===qo&&y==="elements"){if(b instanceof As)this.$a===null&&(this.$a=b);else if(b instanceof On){var re=b.Nl(function(oe){return oe instanceof As});re instanceof As&&this.$a===null&&(this.$a=re)}}else a===ua&&y==="elements"&&this.$a!==null&&(E===this.$a?this.$a=null:E instanceof On&&this.$a.rg(E)&&(this.$a=null));Xi.prototype.gk.call(this,a,y,x,E,b,z,ee)},eo.prototype.updateAdornments=function(){},eo.prototype.Lj=function(){},mn.Object.defineProperties(eo.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}}}),eo.className="Adornment";function Gv(){this.nc=!1,this.Vr=this.gj=this.Eq=this.Dq=null,this.yp=$i,this.er=_0,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 si(a,y){a===void 0||a instanceof ka||typeof a=="string"?Xi.call(this,a):(Xi.call(this),a&&(y=a)),this.U=13,this.Ba=null,this.jb=new An,this.wc=this.af=this.Yk=null,this.ci=!1,y&&Object.assign(this,y)}jt(si,Xi),si.prototype.cloneProtected=function(a){Xi.prototype.cloneProtected.call(this,a),a.U=this.U,this.Ba!==null&&(a.Ba=this.Ba.nc?this.Ba:this.Ba.copy())},Le=si.prototype,Le.Af=function(a){Xi.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(){Xi.prototype.th.call(this),this.Ba!==null&&(this.Ba.nc=!0)};function V1(a,y){y!==null&&(a.af===null&&(a.af=new Fn),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===qo&&y==="elements"?this.wc=null:a===ua&&y==="elements"&&(this.wc=null),Xi.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 _1(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},si.prototype.getAvoidableRect=function(a){return a.set(this.actualBounds),a.Co(this.avoidableMargin),a},si.prototype.findVisibleNode=function(){for(var a=this;a!==null&&!a.isVisible();)a=a.containingGroup;return a},si.prototype.isVisible=function(){if(!Xi.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===Fa){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},si.prototype.Zb=function(a){Xi.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)}},si.prototype.qx=function(){var a=new Fn,y=new Fn;return K1(this,this,a,y),y.iterator};function K1(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)&&K1(a,b?ee.toNode:ee.fromNode,x,E):E.add(ee)})}}si.prototype.findLinksConnected=function(a){if(a===void 0&&(a=null),a===null)return this.jb.iterator;var y=new Zr(this.jb),x=this;return y.predicate=function(E){return E.fromNode===x&&E.fromPortId===a||E.toNode===x&&E.toPortId===a},y},Le=si.prototype,Le.Mo=function(a){a===void 0&&(a=null);var y=new Zr(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 Zr(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 Fn,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 Fn,y.add(x),y.add(b)):x=b)}return y!==null?y.iterator:x!==null?new Tr(x):Lr},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 Fn,y.add(x),y.add(b)):x=b)}return y!==null?y.iterator:x!==null?new Tr(x):Lr},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 Fn,y.add(x),y.add(b)):x=b)}return y!==null?y.iterator:x!==null?new Tr(x):Lr},Le.jz=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null);var E=new Zr(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 Zr(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}}}si.prototype.updateRelationshipsFromData=function(){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)},Le=si.prototype,Le.Vo=function(a){Xi.prototype.Vo.call(this,a),a||(np(this),a=this.Yk,a!==null&&nS(a,this))},Le.Wo=function(a){Xi.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,Xi.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 Ht: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=pi()),x.push(E);if(x!==null){for(a=0;a<x.length;a++)y.remove(x[a]);tn(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 si)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 Fn;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 Zr(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 An,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 An,y.add(x),y.add(a)):x=a);return y!==null?y.iterator:x!==null?new Tr(x):Lr},Le.wz=function(a){a===void 0&&(a=1/0);var y=new Fn;return hd(y,this,!1,a,!0),y},si.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 Fn;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}si.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 Fn;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}mn.Object.defineProperties(si.prototype,{portSpreading:{get:function(){return this.Ba!==null?this.Ba.er:_0},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:$i},set:function(a){typeof a=="number"&&(a=new ii(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))}}}),si.prototype.expandTree=si.prototype.expandTree,si.prototype.collapseTree=si.prototype.collapseTree,si.prototype.findTreeParts=si.prototype.wz,si.prototype.findTreeChildrenNodes=si.prototype.Ou,si.prototype.findTreeChildrenLinks=si.prototype.Qo,si.prototype.findTreeLevel=si.prototype.uz,si.prototype.findTreeParentChain=si.prototype.vz,si.prototype.findTreeParentNode=si.prototype.pg,si.prototype.findTreeParentLink=si.prototype.kh,si.prototype.findCommonTreeParent=si.prototype.gz,si.prototype.findTreeRoot=si.prototype.xz,si.prototype.isInTreeOf=si.prototype.Nz,si.prototype.findPort=si.prototype.ns,si.prototype.findLinksTo=si.prototype.kz,si.prototype.findLinksBetween=si.prototype.jz,si.prototype.findNodesInto=si.prototype.Oo,si.prototype.findNodesOutOf=si.prototype.Po,si.prototype.findNodesConnected=si.prototype.Mu,si.prototype.findLinksInto=si.prototype.Sd,si.prototype.findLinksOutOf=si.prototype.Mo,si.prototype.findExternalTreeLinksConnected=si.prototype.qx,si.prototype.invalidateConnectedLinks=si.prototype.Bd,si.prototype.invalidateLinkBundle=si.prototype.Lz;var kx=new Kt(si,"SpreadingNone",10),_0=new Kt(si,"SpreadingEvenly",11),Yv=new Kt(si,"SpreadingPacked",12);si.className="Node",si.SpreadingNone=kx,si.SpreadingEvenly=_0,si.SpreadingPacked=Yv;function xr(a,y){a===void 0||a instanceof ka||typeof a=="string"?si.call(this,a):(si.call(this),a&&(y=a)),this.U|=4608,this.Gn=new Fn,this.$a=null,this.Sc=new ea,this.Sc.group=this,this.gl=new Fn,this.tb=this.$p=null,y&&Object.assign(this,y)}jt(xr,si),xr.prototype.cloneProtected=function(a){si.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=xr.prototype,Le.Af=function(a){si.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 si)x.Bd(y);else if(x instanceof Gn)for(x=x.labelNodes;x.next();)x.value.Bd(y)}},Le.gk=function(a,y,x,E,b,z,ee){if(a===qo&&y==="elements"){if(b instanceof As)this.$a===null?this.$a=b:this.$a!==b&&ut("Cannot insert a second Placeholder into the visual tree of a Group.");else if(b instanceof On){var re=b.Nl(function(oe){return oe instanceof As});re instanceof As&&(this.$a===null?this.$a=re:this.$a!==re&&ut("Cannot insert a second Placeholder into the visual tree of a Group."))}}else a===ua&&y==="elements"&&this.$a!==null&&(E===this.$a?this.$a=null:E instanceof On&&this.$a.rg(E)&&(this.$a=null));si.prototype.gk.call(this,a,y,x,E,b,z,ee)},Le.Xl=function(a,y){si.prototype.Xl.call(this,a,y),this.isClipping&&this.type!==On.Spot&&this.isSubGraphExpanded&&(a=this.resizeObject,a instanceof On&&(a=a.Pb()),this.tb===null&&(this.tb=new pt),a.mi(this.tb),a instanceof Fr&&this.tb.Bc(-a.strokeWidth,-a.strokeWidth))},Le.eh=function(a,y,x,E){this.nf=this.$a,si.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 Gn||y.Va()}),si.prototype.Va.call(this)},Le.si=function(){if(!si.prototype.si.call(this))return!1;for(var a=this.memberParts;a.next();){var y=a.value;if(y instanceof si){if(y.isVisible()&&Cs(y))return!1}else if(y instanceof Gn&&y.isVisible()&&Cs(y)&&y.fromNode!==this&&y.toNode!==this)return!1}return!0};function _v(a,y){if(a.Gn.add(y)){y instanceof xr&&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 Gn&&!a.computesBoundsIncludingLinks||(y=a.$a,y===null&&(y=a),y.v())}function Kv(a,y){if(a.Gn.remove(y)){y instanceof xr&&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 Gn&&!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)}si.prototype.Lj.call(this)},xr.prototype.canAddMembers=function(a){var y=this.diagram;if(y===null)return!1;for(y=y.commandHandler,a=sn(a).iterator;a.next();)if(!y.isValidMember(this,a.value))return!1;return!0},xr.prototype.addMembers=function(a,y){var x=this.diagram;if(x===null)return!1;x=x.commandHandler;var E=!0;for(a=sn(a).iterator;a.next();){var b=a.value;!y||x.isValidMember(this,b)?b.containingGroup=this:E=!1}return E},xr.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=xr.prototype,Le.Bd=function(a){var y=(this.U&65536)!==0;if(si.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 Fn,E=y.iterator;E.next();){var b=E.value;if(b instanceof si)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 Fn,x=a.iterator;x.next();){var E=x.value;if(E instanceof si)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 Fn;return a(this,y),y},Le.Rj=function(){var a=new Fn;return hd(a,this,!0,0,!0),a.remove(this),a},Le.Zb=function(a){si.prototype.Zb.call(this,a);for(var y=this.memberParts;y.next();)y.value.Zb(a)},xr.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 xr&&z.isSubGraphExpanded&&(z.wasSubGraphExpanded=z.isSubGraphExpanded,eS(z,y,x,E)),z instanceof si)z.Bd(y),x.Aj(z,E);else if(z instanceof Gn)for(z=z.labelNodes;z.next();)z.value.Bd(y)}a.isSubGraphExpanded=!1}xr.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 xr&&z.wasSubGraphExpanded&&(z.wasSubGraphExpanded=!1,tS(z,y,x,E)),z instanceof si)z.Bd(y),x.Cj(z,E);else if(z instanceof Gn)for(z=z.labelNodes;z.next();)z.value.Bd(y)}a.isSubGraphExpanded=!0}xr.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=Ze.alloc(),si.prototype.move.call(this,a,y),a=new Fn,y=this.Rj().iterator;y.next();)b=y.value,b instanceof Gn&&(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 si&&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 Gn&&(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());Ze.free(z)}},mn.Object.defineProperties(xr.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&&ut("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)}}}),xr.prototype.expandSubGraph=xr.prototype.expandSubGraph,xr.prototype.collapseSubGraph=xr.prototype.collapseSubGraph,xr.prototype.findSubGraphParts=xr.prototype.Rj,xr.prototype.findContainingGroupChain=xr.prototype.hz,xr.prototype.findExternalNodesConnected=xr.prototype.iz,xr.prototype.findExternalLinksConnected=xr.prototype.Lu,xr.prototype.ensureBounds=xr.prototype.Va,xr.className="Group";function As(a){At.call(this),this.yb=hr,this.ko=new pt(NaN,NaN,NaN,NaN),a&&Object.assign(this,a)}jt(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 Ei(0,0,y.width,y.height,a.x,a.y)},As.prototype.Wl=function(){var a=this.part;if(a!==null&&(a instanceof xr||a instanceof eo)||ut("Placeholder is not inside a Group or Adornment."),a instanceof xr){var y=this.computeBorder(this.ko),x=this.minSize,E=this.dc;for(Kn(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=Ze.alloc(),x.xi(y,a.locationSpot),x.D(a.location)||(a.location=x),Ze.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 Fr&&(ee=z.strokeWidth);var re=z.Df(),oe=z.naturalBounds,le=(oe.width+ee)*re;ee=(oe.height+ee)*re,a.type!==On.Link&&(re=z.ga(a.category==="Selection"?zi:a.locationSpot,Ze.alloc()),a.location=re,Ze.free(re)),isNaN(le)||isNaN(ee)?(a=z.ga(zi,Ze.alloc()),le=pt.allocAt(a.x,a.y,0,0),le.Ye(z.ga(ni,a)),le.Ye(z.ga(Gi,a)),le.Ye(z.ga(cr,a)),Kn(y,le.width+E||0,le.height+b||0),this.Ge(-x.left,-x.top,y.width,y.height),Ze.free(a),pt.free(le)):(Kn(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 xr&&!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=pt.alloc(),b=this.computeMemberBounds(x);var z=this.yb;return y instanceof xr&&!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)),pt.free(x),E&&y instanceof xr&&y.computesBoundsIncludingLocation&&y.location.w()&&a.Ye(y.location),a},As.prototype.computeMemberBounds=function(a){if(!(this.part instanceof xr))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 Gn&&(!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},mn.Object.defineProperties(As.prototype,{padding:{get:function(){return this.yb},set:function(a){typeof a=="number"&&(a=new ii(a));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.g("padding",y,a),this.v())}}}),As.className="Placeholder";function Gn(a){Xi.call(this,On.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 An().freeze(),this.Tg=this.Mg=null,this.ml=new pt,this.ua=new wn,this.u=this.o=this.Sf=this.Wf=null,this.su=new Ze,this.cq=this.Mw=this.Lw=null,this.vt=NaN,this.ba=null,this.j=[],a&&Object.assign(this,a)}jt(Gn,Xi),Gn.prototype.cloneProtected=function(a){Xi.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=Gn.prototype,Le.Af=function(a){Xi.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===Gn?(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&&ut("Unknown Link enum value for a Link property: "+a):Xi.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},Gn.prototype.computeAngle=function(a,y,x){return Gn.computeAngle(y,x)},Gn.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&&Kv(x,a),a.Ah=y,y!==null&&_v(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=Gn.prototype,Le.oh=function(){var a=this.containingGroup;a!==null&&this.fromNode!==a&&this.toNode!==a&&a.computesBoundsIncludingLinks&&Xi.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 Fn),a.wd.add(y),a.v()}Le.Vo=function(a){if(Xi.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(Xi.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))},Gn.prototype.updateRelationshipsFromData=function(){if(this.data!==null){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)}},Gn.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?Xi.prototype.move.call(this,a,!1):(a=Ze.allocAt(x.x+E,x.y+b),Xi.prototype.move.call(this,a,!1),Ze.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)},Gn.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},Gn.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},Gn.prototype.computeMidPoint=function(a){var y=this.pointsCount;if(y===0)return a.assign(Ut),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},Gn.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=Gn.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 Ze(y,x))},Le.Kz=function(a,y){this.Nb.Gb(a,y)},Le.m=function(a,y,x){this.Nb.Gb(a,new Ze(y,x))},Le.ne=function(a){this.Nb.add(a)},Le.yf=function(a,y){this.Nb.add(new Ze(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 An,z=a.Nb.iterator;z.next();){var ee=z.value;b.add(new Ze(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?K0(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),K0(this),this.g("points",a,y)}},Le.rv=function(){this.Mg!==null&&(this.Nb=this.Mg,this.Mg=null)};function K0(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()}}},Gn.prototype.computePoints=function(){if(this.diagram===null)return!1;var a=this.fromNode,y=null;if(a===null?(jc||(jc=new si,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 si,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,st=Ae;St.B(oe,0)?st=0<re?st-le:st+le:(Ke=(0>oe?-1:1)*ge+Pe,st=he*(Ke-Pe)+Ae),this.Fj(),this.ne(z),this.yf(Be,qe),this.yf(Ke,st),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=pt.alloc(),y.mi(re),oe=re.ca(b),Se.mi(re),le=re.ca(E),(oe||le)&&(ee=y.ga(X0(ee),new Ze),this.dd(0,this.getLinkPointFromPoint(a,y,ee,b,!0,ee)),x=Se.ga(X0(x),new Ze),this.dd(1,this.getLinkPointFromPoint(z,Se,x,E,!1,x))),pt.free(re))}else{ge=this.isAvoiding,Se&&(he&&ge||le)&&this.Fj();var ht=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>ht&&(Pe-=180)),0>Pe?Pe+=360:360<=Pe&&(Pe-=360),le&&(qe+=Math.abs(ht)*(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(di,Ze.alloc()),Ke=Ze.allocAt(qe.x+1e3*Ae,qe.y+1e3*Be),this.getLinkPointFromPoint(a,y,qe,Ke,!0,ge),Ze.free(qe),Ze.free(Ke))),qe=this.getLinkPoint(E,b,x,!1,he,a,y);var ft=st=Ke=0;if(he||!oe||le){var Ct=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>ht&&(ft+=180)),0>ft?ft+=360:360<=ft&&(ft-=360),le&&(Ct+=Math.abs(ht)*(he?1:2)),ft===0?Ke=Ct:ft===90?st=Ct:ft===180?Ke=-Ct:ft===270?st=-Ct:(Ke=Ct*Math.cos(ft*Math.PI/180),st=Ct*Math.sin(ft*Math.PI/180)),x.Mc()&&le&&(x=b.ga(di,Ze.alloc()),ee=Ze.allocAt(x.x+1e3*Ke,x.y+1e3*st),this.getLinkPointFromPoint(E,b,x,ee,!1,qe),Ze.free(x),Ze.free(ee))}x=ge,(he||!re||le)&&(x=new Ze(ge.x+Ae,ge.y+Be)),ee=qe,(he||!oe||le)&&(ee=new Ze(qe.x+Ke,qe.y+st)),!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}Gn.prototype.getLinkPointFromPoint=function(a,y,x,E,b,z){if(z===void 0&&(z=new Ze),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)}Gn.prototype.getLinkPoint=function(a,y,x,E,b,z,ee,re){if(re===void 0&&(re=new Ze),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=Ze.alloc(),le=Ze.alloc();var he=new pt(y.ga(zi,oe),y.ga(ni,le)),ge=this.computeSpot(!E,ee);a=this.getLinkPoint(z,ee,ge,!E,b,a,y,le),(x.Hf(or)||x.Hf(Mr))&&a.y>=he.y&&a.y<=he.y+he.height?re.y=a.y:(x.Hf(Ki)||x.Hf(fo))&&a.x>=he.x&&a.x<=he.x+he.width&&(re.x=a.x),Ze.free(oe),Ze.free(le)}}return re}}return x=y.ga(X0(x),Ze.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=Ze.alloc(),ee=ee.ga(X0(oe),z),b&&(ee=Uv(x,ee)),Ze.free(z)),this.getLinkPointFromPoint(a,y,x,ee,E,re),Ze.free(x),re},Gn.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(di,Ze.alloc()),this.pointsCount>(z?6:2)?(re=b?this.i(1):this.i(this.pointsCount-2),re=z?Uv(oe,re.copy()):x):(x=Ze.alloc(),re=re.ga(di,x),Ze.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,Ze.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},Gn.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)},Gn.prototype.computeSpot=function(a,y){return y===void 0&&(y=null),a?(a=y||this.fromPort,a===null?a=di:(y=this.fromSpot,y.Xb()&&(y=a.fromSpot),a=y===Co?Li:y)):(a=y||this.toPort,a===null?a=di:(y=this.toSpot,y.Xb()&&(y=a.toSpot),a=y===Co?Li:y)),a};function Zf(a){return a===Li||a.x===.5&&a.y===.5}function X0(a){return a.x===.5&&a.y===.5?a:di}Gn.prototype.computeOtherPoint=function(a,y){return this.computeAdjusting()!==Fs&&4<this.pointsCount?this.computeMidPoint(new Ze):(a=y.Zn,a=a!==null?hS(a,this):null,a!==null?a.Zo:y.ga(di))},Gn.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},Gn.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=hi.alloc(),ee.reset()),ee.multiply(this.transform),this.fh(a,ee))return yv(this,y,x,b),z===void 0&&hi.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=hi.alloc(),ge.set(ee),he instanceof On)re=he.Cf(a,y,x,E,b,ge);else if(this.path===he){if(he instanceof Fr)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=Ze.alloc(),Ke=Ze.alloc(),st=Ze.alloc(),ht=hi.alloc();ht.set(Ae),ht.bv(he.transform),ht.Vj(),Ke.x=Se,Ke.y=Be,Ke.transform(ht),qe.x=re,qe.y=Be,qe.transform(ht),Ae=!1,qd(he,qe,Ke,st)?Ae=!0:(qe.x=Se,qe.y=Pe,qe.transform(ht),qd(he,qe,Ke,st)?Ae=!0:(Ke.x=re,Ke.y=Pe,Ke.transform(ht),qd(he,qe,Ke,st)?Ae=!0:(qe.x=re,qe.y=Be,qe.transform(ht),qd(he,qe,Ke,st)&&(Ae=!0)))),hi.free(ht),Ze.free(qe),Ze.free(Ke),Ze.free(st),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)),hi.free(ge)}}}return z===void 0&&hi.free(ee),re||this.background!==null||this.areaBackground!==null}return z===void 0&&hi.free(ee),!1},Gn.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},Gn.prototype.computeCorner=function(){if(this.curve===hl)return 0;var a=this.corner;return(isNaN(a)||0>a)&&(a=10),a},Gn.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},Gn.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(di).ab(x.ga(di))/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},Gn.prototype.arrangeBundledLinks=function(a,y){if(y)for(y=0;y<a.length;y++){var x=a[y];x.computeAdjusting()===Fs&&x.bb()}},Gn.prototype.computeCurviness=function(){var a=this.curviness;if(isNaN(a)){a=oS;var y=this.Sf;if(y!==null){for(var x=pi(),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),tn(x)}}return a},Gn.prototype.computeThickness=function(){if(!this.isVisible())return 0;var a=this.path;return a!==null?Math.max(a.strokeWidth,1):1},Gn.prototype.hasCurviness=function(){return!isNaN(this.curviness)||this.Sf!==null},Gn.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 st=b+Ke*(ee-b),ht=z+Ke*(ge-z);y=Math.sqrt((Be-st)*(Be-st)+(qe-ht)*(qe-ht)),qe<Ae*(Be-st)+ht&&(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}},Gn.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=Ze.alloc(),he=Ze.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=Ze.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))),Ze.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())),Ze.free(le),Ze.free(he)}},Gn.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)}Gn.prototype.ez=function(a){var y=a.x;a=a.y;for(var x=this.i(0),E=this.i(1),b=cn(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=cn(y,a,E.x,E.y,x.x,x.y);E=x,re<b&&(z=ee,b=re)}return z},Gn.prototype.qc=function(){this.lk=!1,this.v()},Gn.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 Fr&&(b.ua=this.ua)}}},Gn.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=wn.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=Ze.allocAt(E,oe),x=Ze.alloc(),x.assign(this.i(1)),z=Ze.allocAt(E,oe),b=Ze.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 st=Ae.x;Ae=Ae.y;var ht=Be*Q0(qe,Se,Ke,Pe);Be*=Q0(Ke,Pe,st,Ae),St.$(Se,Pe)&&St.$(Ke,st)&&(Ke>qe?Ae>Pe?(z.x=Ke-ht,z.y=Pe-ht,b.x=Ke+Be,b.y=Pe+Be):(z.x=Ke-ht,z.y=Pe+ht,b.x=Ke+Be,b.y=Pe-Be):Ae>Pe?(z.x=Ke+ht,z.y=Pe-ht,b.x=Ke-Be,b.y=Pe+Be):(z.x=Ke+ht,z.y=Pe+ht,b.x=Ke-Be,b.y=Pe-Be)),St.$(qe,Ke)&&St.$(Pe,Ae)&&(Pe>Se?(st>Ke?(z.x=Ke-ht,z.y=Pe-ht,b.x=Ke+Be):(z.x=Ke+ht,z.y=Pe-ht,b.x=Ke-Be),b.y=Pe+Be):(st>Ke?(z.x=Ke-ht,z.y=Pe+ht,b.x=Ke+Be):(z.x=Ke+ht,z.y=Pe+ht,b.x=Ke-Be),b.y=Pe-Be)),(St.$(qe,Ke)&&St.$(Ke,st)||St.$(Se,Pe)&&St.$(Pe,Ae))&&(qe=.5*(qe+st),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,Xn)),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),Ze.free(y),Ze.free(x),Ze.free(z),Ze.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,Xn)),Lh(re,z.x-E,z.y-oe,b.x-E,b.y-oe,ee.x-E,ee.y-oe);else{for(z=Ze.alloc(),z.assign(this.i(0)),b=Ze.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,Xn)),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=ht=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,Ct=Se.y;Pe=ft,st=Ct,Se.x>z.x?ft=Se.x-Ae:ft=Se.x+Ae,Ke.y>Se.y?st=Se.y+ht:st=Se.y-ht,Ke=Ze.allocAt(ft,Ct),Rc(this,re,ge,qe,z,Ke,Be),Ze.free(Ke),Z0(re,Se.x+ge,Se.y+qe,Pe+ge,st+qe),z.h(Pe,st)}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=ht=Math.min(Ae,Math.abs(Ke.x-Se.x)/2),St.B(ht,0)?(Rc(this,re,ge,qe,z,Se,Be),z.assign(Se)):(ft=Se.x,Ct=Se.y,Pe=ft,st=Ct,Se.y>z.y?Ct=Se.y-Ae:Ct=Se.y+Ae,Ke.x>Se.x?Pe=Se.x+ht:Pe=Se.x-ht,Ke=Ze.allocAt(ft,Ct),Rc(this,re,ge,qe,z,Ke,Be),Ze.free(Ke),Z0(re,Se.x+ge,Se.y+qe,Pe+ge,st+qe),z.h(Pe,st))):(Rc(this,re,ge,qe,z,Se,Be),z.assign(Se));b.assign(he),ge=le}Ze.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=wn.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}Gn.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 Gn){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=Ze.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}Ze.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()))}Gn.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 Gn&&(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 Gn&&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())}}Gn.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},Gn.prototype.isVisible=function(){if(!Xi.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},Gn.prototype.Zb=function(a){if(Xi.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)},Gn.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&&(Pi(y.links,a),y.Sl()))}Gn.prototype.ph=function(){return!0},mn.Object.defineProperties(Gn.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:Co},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&&Rn(a,">= 0",Gn,"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:Co},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&&Rn(a,">= 0",Gn,"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?Lr: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 Fr?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 Ze)}},midAngle:{get:function(){return this.vg(),this.computeMidAngle()}},flattenedLengths:{get:function(){if(this.cq===null){this.fd||K0(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 An,E=0;E<a.length/2;E++)b=new Ze(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(!Qt(z)||typeof z.x!="number"||isNaN(z.x)||typeof z.y!="number"||isNaN(z.y)){E=!1;break}}if(E)for(x=new An,E=0;E<a.length;E++)b=a[E],x.add(new Ze(b.x,b.y).freeze())}}else if(a instanceof An)for(x=a.copy(),a=x.iterator;a.next();)a.value.freeze();else ut("Link.points value is not an instance of List or Array: "+a);x.freeze(),this.Nb=x,this.qc(),K0(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)}}}),Gn.prototype.invalidateOtherJumpOvers=Gn.prototype.Xo,Gn.prototype.findClosestSegment=Gn.prototype.ez,Gn.prototype.updateRoute=Gn.prototype.vg,Gn.prototype.invalidateRoute=Gn.prototype.bb,Gn.prototype.rollbackRoute=Gn.prototype.rv,Gn.prototype.commitRoute=Gn.prototype.zf,Gn.prototype.startRoute=Gn.prototype.uh,Gn.prototype.clearPoints=Gn.prototype.Fj,Gn.prototype.removePoint=Gn.prototype.pv,Gn.prototype.addPointAt=Gn.prototype.yf,Gn.prototype.addPoint=Gn.prototype.ne,Gn.prototype.insertPointAt=Gn.prototype.m,Gn.prototype.insertPoint=Gn.prototype.Kz,Gn.prototype.setPointAt=Gn.prototype.L,Gn.prototype.setPoint=Gn.prototype.dd,Gn.prototype.getPoint=Gn.prototype.i,Gn.prototype.getOtherPort=Gn.prototype.Cz,Gn.prototype.getOtherNode=Gn.prototype.To;var jc=null,zc=null,qv=new Kt(Gn,"Normal",1),Tx=new Kt(Gn,"Orthogonal",2),Ox=new Kt(Gn,"AvoidsNodes",6),rS=new Kt(Gn,"AvoidsNodesStraight",7),Fs=new Kt(Gn,"None",0),hl=new Kt(Gn,"Bezier",9),Bh=new Kt(Gn,"JumpGap",10),Wf=new Kt(Gn,"JumpOver",11),op=new Kt(Gn,"End",17),q0=new Kt(Gn,"Scale",18),$0=new Kt(Gn,"Stretch",19),ap=new Kt(Gn,"OrientAlong",21),sp=new Kt(Gn,"OrientPlus90",22),lp=new Kt(Gn,"OrientMinus90",23),$v=new Kt(Gn,"OrientOpposite",24),em=new Kt(Gn,"OrientUpright",25),up=new Kt(Gn,"OrientPlus90Upright",26),hp=new Kt(Gn,"OrientMinus90Upright",27),tm=new Kt(Gn,"OrientUpright45",28),oS=16,aS=14,dp=8;Gn.className="Link",Gn.Normal=qv,Gn.Orthogonal=Tx,Gn.AvoidsNodes=Ox,Gn.AvoidsNodesStraight=rS,Gn.None=Fs,Gn.Bezier=hl,Gn.JumpGap=Bh,Gn.JumpOver=Wf,Gn.End=op,Gn.Scale=q0,Gn.Stretch=$0,Gn.OrientAlong=ap,Gn.OrientPlus90=sp,Gn.OrientMinus90=lp,Gn.OrientOpposite=$v,Gn.OrientUpright=em,Gn.OrientPlus90Upright=up,Gn.OrientMinus90Upright=hp,Gn.OrientUpright45=tm,Gn.EndSegmentStep=8,Gn.CurvinessStart=oS,Gn.SpacingMin=aS,Gn.OrthoShortCut=dp;function nm(a,y,x,E){ai(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){ai(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=pi(),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);tn(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++}}}mn.Object.defineProperties(cp.prototype,{bounds:{get:function(){return new pt(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(){ai(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 xr?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(zi,Ze.alloc()),oe=a.port.ga(ni,Ze.alloc());for(b=pt.allocAt(re.x,re.y,0,0),b.Ye(oe),Ze.free(re),Ze.free(oe),re=Ze.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(Ze.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=Ze.alloc(),oe=Ze.alloc(),ee=Ze.alloc(),le=Ze.alloc(),ge.ga(zi,re),ge.ga(Gi,oe),ge.ga(ni,ee),ge.ga(cr,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,st=1,ht=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 Ct=ee;Ke=le;break;case 2:Ct=le,Ke=re;break;case 1:Ct=re,Ke=oe;break;default:case 4:Ct=oe,Ke=ee}switch(Be=Ke.x-Ct.x,ht=Ke.y-Ct.y,Ae){case 8:Se>Math.abs(Be)?(st=Math.abs(Be)/Se,Se=Math.abs(Be)):st=1;break;case 2:Pe>Math.abs(ht)?(st=Math.abs(ht)/Pe,Pe=Math.abs(ht)):st=1;break;case 1:ge>Math.abs(Be)?(st=Math.abs(Be)/ge,ge=Math.abs(Be)):st=1;break;default:case 4:he>Math.abs(ht)?(st=Math.abs(ht)/he,he=Math.abs(ht)):st=1}Ke=0}var Gt=ft.Zo;if(E===Yv){switch(ft=ft.link.computeThickness(),ft*=st,Gt.set(Ct),Ae){case 8:Gt.x=Ct.x+Be/2+Se/2-Ke-ft/2;break;case 2:Gt.y=Ct.y+ht/2+Pe/2-Ke-ft/2;break;case 1:Gt.x=Ct.x+Be/2-ge/2+Ke+ft/2;break;default:case 4:Gt.y=Ct.y+ht/2-he/2+Ke+ft/2}Ke+=ft}else{var oi=.5;E===_0&&(oi=(ft.Uo+1)/(ft.Gl+1)),Gt.x=Ct.x+Be*oi,Gt.y=Ct.y+ht*oi}}}for(Ze.free(re),Ze.free(oe),Ze.free(ee),Ze.free(le),Ct=a.pe,z=0;z<Ct.length;z++)E=Ct[z],E!==null&&(E.Ju=a.computeEndSegmentLength(E));a.ap=x,pt.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,Li,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 Ze,this.Gl=this.Uo=0,this.Zo=new Ze,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 ea(a){ai(this),this.o=this.H=null,this.Gh=this.sn=!0,this.yn=!1,this.Am=new Ze(0,0).freeze(),this.vn=!0,this.Em=this.un=null,this.xn=!1,this.j=null,a&&Object.assign(this,a)}ea.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},ea.prototype.copy=function(){var a=new this.constructor;return this.cloneProtected(a),a},ea.prototype.qb=function(){},ea.prototype.toString=function(){var a=Wi(this.constructor);return a+="(",this.group!==null&&(a+=" in "+this.group),this.diagram!==null&&(a+=" for "+this.diagram),a+")"},ea.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())}}},ea.prototype.createNetwork=function(){return new Ho(this)},ea.prototype.makeNetwork=function(a){var y=this.createNetwork();return a instanceof Vt?(y.lg(a.nodes,!0),y.lg(a.links,!0)):a instanceof xr?y.lg(a.memberParts):y.lg(a.iterator),y},ea.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")}},ea.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()}},ea.prototype.doLayout=function(a){var y=new Fn;a instanceof Vt?(dd(this,y,a.nodes,!0,this.rh,!0,!1,!0),dd(this,y,a.parts,!0,this.rh,!0,!1,!0)):a instanceof xr?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},ea.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 xr&&(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++}},ea.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 Gn)&&(fp(re),this.rh(re))){var oe=re.measuredBounds,le=oe.width;oe=oe.height,re.moveTo(x,E),re instanceof xr&&(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++}}},ea.prototype.rh=function(a){return!!(!a.location.w()||a instanceof xr&&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 si?oe.isLinkLabel||(oe instanceof xr&&oe.layout===null?dd(a,y,oe.memberParts,!1,b,z,ee,re):(fp(oe),y.add(oe))):ee&&oe instanceof Gn?y.add(oe):!re||!oe.Zc()||oe instanceof si||(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()}ea.prototype.ni=function(a,y){var x=this.boundsComputation;return x!==null?(y||(y=new pt),x(a,this,y)):y?(y.set(a.actualBounds),y):a.actualBounds},ea.prototype.ex=function(a){var y=new Fn;return a instanceof Vt?(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 xr?dd(this,y,a.memberParts,!1,null,!0,!0,!0):dd(this,y,a.iterator,!1,null,!0,!0,!0),y},ea.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(zi),(isNaN(x.x)||isNaN(x.y))&&x.set(a),a=y.padding,x.x+=a.left,x.y+=a.top),x}return a},mn.Object.defineProperties(ea.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())}}}),ea.prototype.collectParts=ea.prototype.ex,ea.prototype.getLayoutBounds=ea.prototype.ni,ea.prototype.invalidateLayout=ea.prototype.C,ea.className="Layout";function Ho(a){ai(this),this.Sc=a,this.wf=new Fn,this.ye=new Fn,this.Es=new Ht,this.zs=new Ht}Ho.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 Fn,this.ye=new Fn,this.Es=new Ht,this.zs=new Ht},Ho.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},Ho.prototype.createVertex=function(){return new Ba(this)},Ho.prototype.createEdge=function(){return new el(this)},Ho.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 si)return!ee.isLinkLabel;if(ee instanceof Gn){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 si&&(!y||E.isTopLevel)&&E.canLayout()&&x(E)){if(E instanceof xr&&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 Gn&&(!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))}}},Ho.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=Ho.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=pi(),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]);tn(a)},Ho.prototype.deleteArtificialVertexes=function(){for(var a=pi(),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=pi(),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]);tn(a),tn(y)};function Rx(a){for(var y=pi(),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]);tn(y)}Ho.prototype.Zx=function(a){a===void 0&&(a=!0),a&&(this.deleteArtificialVertexes(),Rx(this),this.Ko()),a=new An;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))}}Ho.prototype.dz=function(){for(var a=new Fn,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},mn.Object.defineProperties(Ho.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}}}),Ho.prototype.findAllParts=Ho.prototype.dz,Ho.prototype.splitIntoSubNetworks=Ho.prototype.Zx,Ho.prototype.deleteSelfEdges=Ho.prototype.Ko,Ho.prototype.reverseEdge=Ho.prototype.gm,Ho.prototype.linkVertexes=Ho.prototype.Zj,Ho.prototype.findEdge=Ho.prototype.Lo,Ho.prototype.deleteLink=Ho.prototype.Yy,Ho.prototype.deleteEdge=Ho.prototype.Mj,Ho.prototype.addLink=Ho.prototype.Dy,Ho.prototype.addEdge=Ho.prototype.Bo,Ho.prototype.findVertex=Ho.prototype.ki,Ho.prototype.deleteNode=Ho.prototype.Zy,Ho.prototype.deleteVertex=Ho.prototype.Iu,Ho.prototype.addNode=Ho.prototype.Bl,Ho.prototype.addVertex=Ho.prototype.dh,Ho.prototype.addParts=Ho.prototype.lg,Ho.className="LayoutNetwork";function Ba(a){ai(this),this.ob=a,this.j=new pt(0,0,10,10).freeze(),this.o=new Ze(5,5).freeze(),this.Sh=this.ub=null,this.tg=new An,this.mg=new An}Ba.prototype.clear=function(){this.Sh=this.ub=null,this.tg=new An,this.mg=new An},Ba.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutVertex#"+Hr(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;Qt(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 xr)){x=pt.alloc(),a.Va();var E=this.network.layout.ni(a,x),b=a.locationObject.ga(di);if(E.w()&&b.w()){a.moveTo(y.x+this.focusX-(b.x-E.x),y.y+this.focusY-(b.y-E.y)),pt.free(x);return}pt.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}mn.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=pt.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),pt.free(x),!(a instanceof xr)&&(a=a.locationObject.ga(di),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 Fn,y=this.sourceEdges;y.next();)a.add(y.value.fromVertex);return a.iterator}},destinationVertexes:{get:function(){for(var a=new Fn,y=this.destinationEdges;y.next();)a.add(y.value.toVertex);return a.iterator}},vertexes:{get:function(){for(var a=new Fn,y=this.sourceEdges;y.next();)a.add(y.value.fromVertex);for(y=this.destinationEdges;y.next();)a.add(y.value.toVertex);return a.iterator}},sourceEdges:{get:function(){return this.tg.iterator}},destinationEdges:{get:function(){return this.mg.iterator}},edges:{get:function(){for(var a=new An,y=this.sourceEdges;y.next();)a.add(y.value);for(y=this.destinationEdges;y.next();)a.add(y.value);return a.iterator}},edgesCount:{get:function(){return this.tg.count+this.mg.count}}}),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){ai(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#"+Hr(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},mn.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){ea.call(this),this.isViewportSized=!0,this.yo=this.zo=NaN,this.yg=new Xe(NaN,NaN).freeze(),this.tf=new Xe(10,10).freeze(),this.Jb=gp,this.Rb=am,this.nd=pp,this.hd=cS,a&&Object.assign(this,a)}jt(Ja,ea),Ja.prototype.cloneProtected=function(a){ea.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:ut("Unknown enum value: "+a):ea.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 xr)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=pt.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,st=0;st<b.length;st++){var ht=b[st],ft=this.ni(ht,le),Ct=Math.ceil((ft.width+re)/he)*he,Gt=Math.ceil((ft.height+oe)/ge)*ge;switch(Se){case au:var oi=Math.abs(Ae-ft.width);break;default:oi=Ae+ft.width}switch((0<z&&qe>z-1||0<ee&&0<qe&&oi-Pe>ee)&&(E.push(new pt(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(ht.moveTo(Ae+ft,Be),Se){case au:Ae-=Ct;break;default:Ae+=Ct}qe++}E.push(new pt(0,Be,ee+re,Ke)),pt.free(le);break;case gp:for(oe=ee,he=z,ge=y,Se=x,ee=pt.alloc(),Pe=Math.max(this.cellSize.width,1),z=Be=le=0,re=Ze.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 Ni=Ke=this.arrangementOrigin.x;for(st=this.arrangementOrigin.y,Be=0,oe>=le&&(oe-=le),le=ht=0,Ct=Math.max(this.cellSize.height,1),ft=z=0,Gt=!0,qe=Ze.alloc(),oi=0;oi<b.length;oi++){var wi=b[oi],Wn=this.ni(wi,ee),Sn=bh(wi,wi.locationObject,wi.locationSpot,re);if(0<Be)switch(Ae){case au:Ni=(Ni-Ke-(Wn.width-Sn.x))/Pe,Ni=St.$(Math.round(Ni),Ni)?Math.round(Ni):Math.floor(Ni),Ni=Ni*Pe+Ke;break;default:Ni=(Ni-Ke+Sn.x)/Pe,Ni=St.$(Math.round(Ni),Ni)?Math.round(Ni):Math.ceil(Ni),Ni=Ni*Pe+Ke}else switch(Ae){case au:ht=Ni+Sn.x+Wn.width;break;default:ht=Ni-Sn.x}switch(Ae){case au:var vr=-(Ni+Sn.x)+ht;break;default:vr=Ni+Wn.width-Sn.x-ht}if(0<he&&Be>he-1||0<oe&&0<Be&&vr>oe){for(E.push(new pt(0,Gt?st-z:st,oe+ge,ft+z+Se)),Ni=0;Ni<Be&&oi!==Be;Ni++){vr=b[oi-Be+Ni];var sr=bh(vr,vr.locationObject,vr.locationSpot,qe);vr.moveTo(vr.position.x,vr.position.y+z-sr.y)}ft+=Se,st=Gt?st+ft:st+(ft+z),Be=ft=z=0,Ni=Ke,Gt=!1}switch(Ni===Ke&&(le=Ae===au?Math.max(le,Wn.width-Sn.x):Math.min(le,-Sn.x)),z=Math.max(z,Sn.y),ft=Math.max(ft,Wn.height-Sn.y),isFinite(Ct)&&(ft=Math.max(ft,Math.max(Wn.height,Ct)-Sn.y)),Gt?wi.moveTo(Ni-Sn.x,st-Sn.y):wi.moveTo(Ni-Sn.x,st),Ae){case au:Ni-=Sn.x+ge;break;default:Ni+=Wn.width-Sn.x+ge}Be++}if(E.push(new pt(0,st,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(Ze.free(re),Ze.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);pt.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 Ze(b+y/2-(z+b),ee-x/2)):this.commitLayers(E,new Ze(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}mn.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 Kt(Ja,"Position",0),gp=new Kt(Ja,"Location",1),am=new Kt(Ja,"LeftToRight",2),au=new Kt(Ja,"RightToLeft",3),sy=new Kt(Ja,"Forward",4),sm=new Kt(Ja,"Reverse",5),pp=new Kt(Ja,"Ascending",6),lm=new Kt(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 Fn,this.Dn=new Fn,this.Pa=new Fn,this.cf=new Ht,this.bf=new Ht,this.aj=new Ht,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 si){if(this.On.add(a),a instanceof xr){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 Gn?this.Dn.add(a):a instanceof eo||this.Pa.add(a);y=a.data,y===null||a instanceof eo||(a instanceof Gn?this.bf.add(y,a):this.cf.add(y,a))},Le.pc=function(a){if(a.Ej(),a instanceof si){if(this.On.remove(a),a instanceof xr){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 Gn?this.Dn.remove(a):a instanceof eo||this.Pa.remove(a);y=a.data,y===null||a instanceof eo||(a instanceof Gn?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 xr)&&ut('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 xr||ut('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 Gn||ut('Invalid link template in Diagram.linkTemplateMap: template for "'+E+'" must be a Link, not a normal Node or simple Part: '+x);for(y=pi(),x=a.selection.iterator;x.next();)(E=x.value.data)&&y.push(E);for(x=pi(),a=a.highlighteds.iterator;a.next();)(E=a.value.data)&&x.push(E);for(a=pi(),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]);tn(y),tn(x),tn(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,In('No Group template found for category "'+x+'"'),In(" Using default group template")),y=a.ly))):(y=a.nodeTemplateMap.I(x),y===null&&(y=a.nodeTemplateMap.I(""),y===null&&(mS||(mS=!0,In('No Node template found for category "'+x+'"'),In(" 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,In('No Link template found for category "'+a+'"'),In(" 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 si?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 si?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 Fn;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(Qt(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 Fn;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(Qt(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(qn(z)){if(!qn(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(Qt(y)&&Qt(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===Ro){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===qo){var ee=a.newValue;E==="nodeDataArray"&&Qt(ee)&&fS(this,ee),y.isModified=!0}else if(x===ua){var re=a.oldValue;E==="nodeDataArray"&&Qt(re)&&this.ip(re),y.isModified=!0}else x===Aa&&(E==="SourceChanged"?a.object!==null?this.updateDataBindings(a.object,a.propertyName):(this.rp(),this.updateAllTargetBindings()):E==="ModelDisplaced"&&this.Wd());else if(x===Ro){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===qo||x===ua){var he=a.change===qo,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 Fn,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=pi()),x.push(ee))}if(x!==null)break}if(x!==null){for(E=0;E<x.length;E++)x[E].La(y);tn(x)}}a===this.diagram.model.modelData&&this.updateAllTargetBindings(y)}};function uy(a,y){var x=y.Hh;if(qn(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(qn(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 Ht;if(qn(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 Fn;for(var z=new Ht,ee=E.iterator;ee.next();){var re=ee.value;if(re instanceof Gn)a||re.fromNode!==null&&re.toNode!==null||b.add(re);else if(re instanceof si&&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 Ht;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 Xi))return null;if(z.isSelected=!1,z.isHighlighted=!1,E.add(y,z),y instanceof si){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 xr&&z instanceof xr)for(y=y.memberParts;y.next();)ee=um(a,y.value,x,E,b),ee instanceof Gn||ee===null||(ee.containingGroup=z)}else if(y instanceof Gn&&z instanceof Gn)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 si&&(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 Gn||(E=b.copyNodeData(E),Qt(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 Gn||(b=y.copyNodeData(E)),Qt(b)&&(x.data=b)));return x},mn.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)}jt(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 si&&(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 si&&(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===Ro){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 xr?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,st=a.newValue;Array.isArray(Ke)&&Ke.forEach(function(Sn){0<=st.indexOf(Sn)||(Sn=y.Vb(Sn),Sn!==null&&(Sn.labeledLink=null))}),Array.isArray(st)&&st.forEach(function(Sn){Sn=y.Vb(Sn),Sn!==null&&(Sn.labeledLink=qe)})}}else if(b==="linkCategory"){var ht=this.Kc(a.object),ft=a.newValue;ht!==null&&typeof ft=="string"&&(ht.category=ft)}else b==="linkDataArray"&&(PS(this,a.oldValue),SS(this,a.newValue));x.isModified=!0}else if(E===qo){var Ct=a.newValue;if(b==="linkDataArray"&&typeof Ct=="object"&&Ct!==null)xS(this,Ct);else if(b==="linkLabelKeys"&&fd(Ct)){var Gt=this.Kc(a.object),oi=this.Vb(Ct);Gt!==null&&oi!==null&&(oi.labeledLink=Gt)}x.isModified=!0}else if(E===ua){var Ni=a.oldValue;if(b==="linkDataArray"&&typeof Ni=="object"&&Ni!==null)this.ip(Ni);else if(b==="linkLabelKeys"&&fd(Ni)){var wi=this.Vb(Ni);wi!==null&&(wi.labeledLink=null)}x.isModified=!0}}else if(E===Ro){var Wn=a.propertyName;a.object!==x.model||Wn!=="linkFromKeyProperty"&&Wn!=="linkToKeyProperty"&&Wn!=="linkFromPortIdProperty"&&Wn!=="linkToPortIdProperty"&&Wn!=="linkLabelKeysProperty"&&Wn!=="nodeIsGroupProperty"&&Wn!=="nodeGroupKeyProperty"&&Wn!=="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 Fn,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 Gn){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 Fn().addAll(y);var ee=new Fn;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 eo)&&(y=E.lh(y),y=x.findPartForKey(y),y===null||y instanceof xr)&&(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 xr&&y.lh(ee)===x&&(ee=this.Lc(ee),ee!==null&&(ee.containingGroup=b)):(z.link=this.Kc(ee),z.link!==null&&b instanceof si&&(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 xr&&(b.containingGroup=a))}},Wa.prototype.unresolveReferencesForPart=function(a){var y=this.diagram.model;if(a instanceof si){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 xr)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 Gn)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 Gn){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 si&&(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),_f(z,E,re,!0),x!==null&&Yf(z,E,z.wa(x.data),!1),_f(z,E,y,!1),z.fi(E),a=ee.archetypeLabelNodeData,a===null||a instanceof si||(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}jt(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||!Fo(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===Ro){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===Ro){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 si&&(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 si&&y.mh(z)===x&&hm(this,b,this.ii(z))}lu(y,x)}a=y.mh(a),a!==void 0&&b instanceof si&&(a=this.Vb(a),hm(this,a,b))}},Al.prototype.unresolveReferencesForPart=function(a){var y=this.diagram.model;if(a instanceof si){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(ua,"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 Ri(a,y){this.kl=new Fn,this.il=new Fn,this.Wv=`,
"insertedNodeKeys": `,this.jy=`,
"modifiedNodeData": `,this.Yv=`,
"removedNodeKeys": `,this.vh=null,ai(this),this.Sm=this.xa="",this.Gg=!1,this.j={},this.Tc=[],this.kb=new Ht,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 Ht,this.Lt=new An,this.Wg=!1,this.o=null,this.undoManager=new Jo,a!==void 0&&(qn(a)?this.nodeDataArray=a:y=a),y&&(Object.assign(this,y),a=y.Changed)&&(delete this.Changed,this.Pe(a))}Ri.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},Ri.prototype.copy=function(){var a=new this.constructor;return this.cloneProtected(a),a},Ri.prototype.clear=function(){this.Tc=[],this.kb.clear(),this.Vf.clear(),this.undoManager.clear()},Ri.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)+":"+yr(b)}}return y},Ri.prototype.xA=function(a){a.change!==Aa&&ut("Model.toIncrementalData argument is not a Transaction ChangedEvent:"+a.toString());var y=a.object;return a.isTransactionFinished&&y instanceof pa?(CS(this,y),a=this.Qv(y,a.propertyName==="FinishedUndo"),this.vh=null,a):null},Ri.prototype.Qv=function(a,y){var x=this,E=!1,b=new Fn,z=new Fn,ee=new Fn,re=this.vh;a.changes.each(function(ge){ge.model===x&&(ge.modelChange==="nodeDataArray"?ge.change===qo?b.add(ge.newValue):ge.change===ua&&ee.add(ge.oldValue):x.lb(ge.object)?z.add(ge.object):ge.change!==Ro||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 Ri||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},Ri.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=Oo++,E.set(ge,Se),b.set(ge,y))}if(!Qt(y))return y;z||(z=[]);var re=Object.isExtensible(y);if(E||(E=new Ht),re){var oe=E.get(y);if(oe)return oe}else for(b||(b=new Ht),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 Ze||y instanceof Xe||y instanceof pt||y instanceof ii||y instanceof bn)oe=y.copy(),ee(y,oe);else{if(y instanceof So||y instanceof wn||y instanceof Kt)return y;if(y instanceof An)oe=new An().addAll(Vf(a,y.Fa(),!1,E,b,z)),ee(y,oe);else if(y instanceof Fn)oe=new Fn().addAll(Vf(a,y.Fa(),!1,E,b,z)),ee(y,oe);else if(y instanceof Ht)oe=new Ht().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=Ri.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,Qt(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,qn(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 Fn,ee.add(z),E.add(b,ee)):ee.add(z)}}var E=a.vh;E===null&&(E=new Ht,y.changes.each(function(b){if(b.diagram!==null){var z=b.change;z===Ro?(b=b.object.panel)&&(z=b.data)&&x(z,b):(z===qo||z===ua)&&(b=b.object,(z=b.itemArray)&&x(z,b))}}),a.vh=E)}function ES(a,y){for(var x=new Fn,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(Qt(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 Fn,z=new Fn,ee=new Fn,re=this.vh;a.changes.each(function(he){he.model===x&&(he.modelChange==="nodeDataArray"?he.change===qo?b.add(he.newValue):he.change===ua&&ee.add(he.oldValue):x.lb(he.object)?z.add(he.object):he.change!==Ro||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 Ri||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)&&ut("applyIncrementalJson cannot change Model properties"),wS(this,a);var y=a.insertedNodeKeys,x=a.modifiedNodeData,E=new Ht;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!==Aa&&ut("Model.toIncrementalJson argument is not a Transaction ChangedEvent:"+a.toString());var x=a.object;return a.isTransactionFinished&&x instanceof pa?(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=Zn.JSON.parse(a)}catch(E){}else typeof a=="object"?y=a:ut("Unable to modify a Model from: "+a);var x=y.incremental;typeof x!="number"&&ut("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)},Ri.constructGraphLinksModel=function(){return new Ri},Le=Ri.prototype,Le.dm=function(a){if(qn(a))for(var y=a.length,x=0;x<y;x++){var E=a[x];if(Qt(E)){var b=x;E=this.dm(E),Array.isArray(a)?a[b]=E:ut("Cannot replace an object in an HTMLCollection or NodeList at "+b)}}else if(Qt(a)){for(y in a)if(x=a[y],Qt(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 An,E=0;E<x.length/2;E++)b.add(new Ze(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()):qn(a)?cd(this,a):Qt(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 tr;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 Ze)y={class:"go.Point",x:Ms(x.x),y:Ms(x.y)};else if(x instanceof Xe)y={class:"go.Size",width:Ms(x.width),height:Ms(x.height)};else if(x instanceof pt)y={class:"go.Rect",x:Ms(x.x),y:Ms(x.y),width:Ms(x.width),height:Ms(x.height)};else if(x instanceof ii)y={class:"go.Margin",top:Ms(x.top),right:Ms(x.right),bottom:Ms(x.bottom),left:Ms(x.left)};else if(x instanceof bn)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 So){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 wn?(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(zi)||(y.spot1=x.spot1),x.spot2.D(ni)||(y.spot2=x.spot2),x.type===wn.o&&(y.path=wn.ia(x))):x instanceof Kt&&(y={class:"go.EnumValue",classType:vp(a,x.classType),name:x.name});E="{",x=!0;for(var b in y){var z=va(y,b);if(!AS(b,z))if(x?x=!1:E+=",",E+=a.quote(b)+":",b==="points"&&z instanceof An){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 Ze(Ls(a.x),Ls(a.y));else if(y==="Size")x=new Xe(Ls(a.width),Ls(a.height));else if(y==="Rect")x=new pt(Ls(a.x),Ls(a.y),Ls(a.width),Ls(a.height));else if(y==="Margin")x=new ii(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 bn(Ls(a.x),Ls(a.y),Ls(a.offsetX),Ls(a.offsetY));else if(y==="Brush"){if(x=new So,x.type=bi(So,a.type),typeof a.color=="string"&&(x.color=a.color),a.start instanceof bn&&(x.start=a.start),a.end instanceof bn&&(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,Qt(a))for(var E in a)x.addColorStop(parseFloat(E),a[E])}else y==="Geometry"?(x=null,typeof a.path=="string"?x=wn.parse(a.path):x=new wn,x.type=bi(wn,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 bn&&(x.spot1=a.spot1),a.spot2 instanceof bn&&(x.spot2=a.spot2)):y==="EnumValue"&&(E=a.classType,E.indexOf("go.")===0&&(E=E.substr(3)),E=fy(E),typeof E=="function"&&(x=bi(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){ba(this,"",a,y,x,E,b,z,ee)},Le.g=function(a,y,x,E,b){ba(this,"",Ro,a,this,y,x,E,b)},Le.Fs=function(a,y,x,E,b,z){ba(this,"",Ro,y,a,x,E,b,z)};function ba(a,y,x,E,b,z,ee,re,oe){re===void 0&&(re=null),oe===void 0&&(oe=null);var le=new Go;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)}Ri.prototype.changeState=function(a,y){if(a!==null&&a.model===this)if(a.change===Ro){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)),$o(x,E,b)}else a.change===qo?(x=a.newParam,a.modelChange==="nodeDataArray"?(a=a.newValue,Qt(a)&&typeof x=="number"&&(E=this.wa(a),y?(this.Tc[x]===a&&Pi(this.Tc,x),E!==void 0&&this.kb.remove(E)):(this.Tc[x]!==a&&Vn(this.Tc,x,a),E!==void 0&&this.kb.add(E,a)))):a.modelChange===""?((E=a.object)&&!qn(E)&&a.propertyName&&(E=va(a.object,a.propertyName)),qn(E)&&typeof x=="number"&&(a=a.newValue,y?Pi(E,x):Vn(E,x,a))):ut("unknown ChangedEvent.Insert modelChange: "+a.toString())):a.change===ua?(x=a.oldParam,a.modelChange==="nodeDataArray"?(a=a.oldValue,Qt(a)&&typeof x=="number"&&(E=this.wa(a),y?(this.Tc[x]!==a&&Vn(this.Tc,x,a),E!==void 0&&this.kb.add(E,a)):(this.Tc[x]===a&&Pi(this.Tc,x),E!==void 0&&this.kb.remove(E)))):a.modelChange===""?((E=a.object)&&!qn(E)&&a.propertyName&&(E=va(a.object,a.propertyName)),qn(E)&&typeof x=="number"&&(a=a.oldValue,y?Vn(E,x,a):Pi(E,x))):ut("unknown ChangedEvent.Remove modelChange: "+a.toString())):a.change!==Aa&&ut("unknown ChangedEvent: "+a.toString())},Ri.prototype.Ea=function(a){return this.undoManager.Ea(a)},Ri.prototype.eb=function(a){return this.undoManager.eb(a)},Ri.prototype.Kf=function(){return this.undoManager.Kf()},Ri.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=Ri.prototype,Le.La=function(a,y){y===void 0&&(y=""),ba(this,"SourceChanged",Aa,y,a,null,null)},Le.wa=function(a){if(a!==null){var y=this.Th;if(y!==""&&(y=va(a,y),y!==void 0)){if(fd(y))return y;ut("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=va(a,x);E!==y&&this.hc(y)===null&&($o(a,x,y),E!==void 0&&this.kb.remove(E),this.kb.add(y,a),ba(this,"nodeKey",Ro,x,a,E,y),typeof x=="string"&&this.La(a,x),this.jp(E,y))}else $o(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&&ut("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))){$o(a,y,x);return}if(typeof x=="string"){for(E=2;this.kb.contains(x+E);)E++;$o(a,y,x+E)}else if(x===void 0||typeof x=="number"){for(x=-this.kb.count-1;this.kb.contains(x);)x--;$o(a,y,x)}}}}},Le.xf=function(a){a!==null&&(_r(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&&ut("Model.makeNodeDataKeyUnique failed on "+y+". Data not added to Model."),a.kb.add(E,y),E=null,x&&(E=a.Tc.length,Vn(a.Tc,E,y)),ba(a,"nodeDataArray",qo,"nodeDataArray",a,null,y,null,E),a.fm(y),a.em(y))}Le.Fy=function(a){if(qn(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;Pi(a.Tc,E)}ba(a,"nodeDataArray",ua,"nodeDataArray",a,y,null,E,null),a.qp(y)}Le.nA=function(a){if(qn(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&&qn(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 Fn&&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 Fn,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 Fn&&(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 Fn?a:null)}Le.Qy=function(a){a===void 0?this.Vf.clear():this.Vf.remove(a)},Ri.prototype.copyNodeData=function(a){if(a===null)return null;var y=this.Bk;return a=y!==null?y(a,this):cm(this,a,!0),Qt(a)&&ai(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 ai(E),E}if(x&&Qt(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=va(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 Ri||z instanceof Jo||z instanceof pa||z instanceof Go||(z=cm(a,z,!1)),$o(x,E,z)}return ai(x),x}return y instanceof Ze||y instanceof Xe||y instanceof pt||y instanceof bn||y instanceof ii?y.copy():y}Ri.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,In('Model.setDataProperty is modifying a GraphObject, "'+a.toString()+'"'),In(" Is that really your intent?"));var E=va(a,y);E!==x&&($o(a,y,x),this.Fs(a,y,E,x))},Le=Ri.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),Vn(a,y,x),ba(this,"",qo,"",a,null,x,null,y)},Le.ov=function(a,y){y===void 0&&(y=-1),a===this.Tc&&ut("Model.removeArrayItem should not be called on the Model.nodeDataArray"),y===-1&&(y=a.length-1);var x=a[y];Pi(a,y),ba(this,"",ua,"",a,x,null,y,null)},Le.Ro=function(a){if(a===null)return"";var y=this.lj;if(y===""||(y=va(a,y),y===void 0))return"";if(typeof y=="string")return y;ut("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=va(a,x);E===void 0&&(E=""),E!==y&&($o(a,x,y),ba(this,"nodeCategory",Ro,x,a,E,y))}else $o(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 Ri}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]:Zn.go!==void 0&&Zn.go[a]?Zn.go[a]:null}function va(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 $o(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){}}mn.Object.defineProperties(Ri.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===""&&ut("Model.nodeKeyProperty may not be the empty string"),0<this.kb.count&&ut("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];Qt(b)||ut("Model.nodeDataArray must only contain Objects, not: "+b),_r(b)}for(this.Tc=a,E=new An,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(ba(this,"nodeDataArray",Ro,"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"}}}),Ri.prototype.setCategoryForNodeData=Ri.prototype.jm,Ri.prototype.getCategoryForNodeData=Ri.prototype.Ro,Ri.prototype.removeArrayItem=Ri.prototype.ov,Ri.prototype.insertArrayItem=Ri.prototype.ts,Ri.prototype.addArrayItem=Ri.prototype.Ay,Ri.prototype.assignAllDataProperties=Ri.prototype.Do,Ri.prototype.set=Ri.prototype.set,Ri.prototype.clearUnresolvedReferences=Ri.prototype.Qy,Ri.prototype.mergeNodeDataArray=Ri.prototype.$z,Ri.prototype.removeNodeDataCollection=Ri.prototype.nA,Ri.prototype.removeNodeData=Ri.prototype.cm,Ri.prototype.addNodeDataCollection=Ri.prototype.Fy,Ri.prototype.addNodeData=Ri.prototype.xf,Ri.prototype.makeNodeDataKeyUnique=Ri.prototype.$u,Ri.prototype.findNodeDataForKey=Ri.prototype.hc,Ri.prototype.containsNodeData=Ri.prototype.lb,Ri.prototype.setKeyForNodeData=Ri.prototype.km,Ri.prototype.getKeyForNodeData=Ri.prototype.wa,Ri.prototype.updateTargetBindings=Ri.prototype.La,Ri.prototype.commit=Ri.prototype.commit,Ri.prototype.rollbackTransaction=Ri.prototype.Kf,Ri.prototype.commitTransaction=Ri.prototype.eb,Ri.prototype.startTransaction=Ri.prototype.Ea,Ri.prototype.raiseDataChanged=Ri.prototype.Fs,Ri.prototype.raiseChanged=Ri.prototype.g,Ri.prototype.raiseChangedEvent=Ri.prototype.cb,Ri.prototype.removeChangedListener=Ri.prototype.ik,Ri.prototype.addChangedListener=Ri.prototype.Pe,Ri.prototype.writeJsonValue=Ri.prototype.sm,Ri.prototype.replaceJsonObjects=Ri.prototype.dm,Ri.prototype.applyIncrementalJSON=Ri.prototype.Ky,Ri.prototype.applyIncrementalJson=Ri.prototype.Zw,Ri.prototype.toJSON=Ri.prototype.toJSON,Ri.prototype.toJson=Ri.prototype.np,Ri.prototype.toIncrementalJSON=Ri.prototype.yA,Ri.prototype.toIncrementalJson=Ri.prototype.$x,Ri.prototype.toIncrementalData=Ri.prototype.xA,Ri.prototype.clear=Ri.prototype.clear;var LS=!1,Jl={};Ri.className="Model",Ri.fromJSON=Ri.fromJson=function(a,y){y===void 0&&(y=null);var x=null;if(typeof a=="string")try{x=Zn.JSON.parse(a)}catch(z){}else typeof a=="object"?x=a:ut("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=Zn[E])),typeof b=="function"&&(a=new b)}catch(z){}a===null||a instanceof Ri?y=a:ut("Unable to construct a Model of declared class: "+x.class)}return y===null&&(y=Ri.constructGraphLinksModel()),y.gp(x),y.kv(x),y},Ri.safePropertyValue=va,Ri.safePropertySet=$o,Jl.Brush=So,Jl.ChangedEvent=Go,Jl.Geometry=wn,Jl.Margin=ii,Jl.Panel=On,Jl.Point=Ze,Jl.Rect=pt,Jl.Size=Xe,Jl.Spot=bn,Jl.Transaction=pa,Jl.UndoManager=Jo;function xa(a,y,x,E){ai(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 Fn}xa.prototype.copy=function(){var a=new xa;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=xa.prototype,Le.qb=function(a){a.classType===xa&&(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==="")In("Binding error: target property is the empty string: "+this.toString());else{var z=y;if(E!==""&&(z=va(y,E)),z!==void 0)if(b===null)x!==""&&$o(a,x,z);else try{if(x!==""){var ee=b(z,a);$o(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=va(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):$o(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):$o(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)}}}},mn.Object.defineProperties(xa.prototype,{Ai:{get:function(){return this.j},set:function(a){this._isFrozen&&Nt(this),this.j=a}},targetProperty:{get:function(){return this.xl},set:function(a){this._isFrozen&&Nt(this),this.xl=a}},sourceName:{get:function(){return this.Cr},set:function(a){this._isFrozen&&Nt(this),this.Cr=a,a!==null&&(this.wn=!1)}},isToModel:{get:function(){return this.wn},set:function(a){this._isFrozen&&Nt(this),this.wn=a}},sourceProperty:{get:function(){return this.sl},set:function(a){this._isFrozen&&Nt(this),this.sl=a}},converter:{get:function(){return this.Im},set:function(a){this._isFrozen&&Nt(this),this.Im=a}},backConverter:{get:function(){return this.wk},set:function(a){this._isFrozen&&Nt(this),this.wk=a}},mode:{get:function(){return this.el},set:function(a){this._isFrozen&&Nt(this),this.el=a}}}),xa.prototype.updateSource=xa.prototype.sp,xa.prototype.updateTarget=xa.prototype.Mv,xa.prototype.ofModel=xa.prototype.dA,xa.prototype.ofObject=xa.prototype.cp,xa.prototype.makeTwoWay=xa.prototype.Kx;var zx="Binding",DS=new Kt(xa,"OneWay",1),yp=new Kt(xa,"TwoWay",2);xa.className="Binding",xa.parseEnum=function(a,y){return function(x){return x=bi(a,x),x===null?y:x}},xa.toString=yr,xa.OneWay=DS,xa.TwoWay=yp;function Xr(a,y,x){Ri.call(this),this.Vv=`,
"insertedLinkKeys": `,this.iy=`,
"modifiedLinkData": `,this.Xv=`,
"removedLinkKeys": `,this.md=[],this.$f=new Fn,this.wb=new Ht,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&&(qn(a)?this.nodeDataArray=a:x=a),x&&(Object.assign(this,x),a=x.Changed)&&(delete this.Changed,this.Pe(a))}jt(Xr,Ri),Xr.constructGraphLinksModel=Ri.constructGraphLinksModel,Xr.prototype.cloneProtected=function(a){Ri.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=Xr.prototype,Le.clear=function(){Ri.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)+":"+yr(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===""&&ut("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalData() to succeed.");var x=Ri.prototype.Qv.call(this,a,y),E=this,b=new Fn,z=new Fn,ee=new Fn,re=this.vh;a.changes.each(function(he){he.model===E&&(he.modelChange==="linkDataArray"?he.change===qo?b.add(he.newValue):he.change===ua&&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 Ri||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=Ri.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){Ri.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=Ri.prototype.Rv.call(this),y=`,
"linkDataArray": `+cd(this,this.linkDataArray,!0);return a+y},Le.kv=function(a){Ri.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 Fn,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===""&&ut("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalJson() to succeed.");var x=Ri.prototype.Pv.call(this,a,y),E=this,b=new Fn,z=new Fn,ee=new Fn,re=this.vh;a.changes.each(function(he){he.model===E&&(he.modelChange==="linkDataArray"?he.change===qo?b.add(he.newValue):he.change===ua&&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 Ri||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)&&ut("applyIncrementalJson cannot change Model properties"),Ri.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)},Xr.prototype.changeState=function(a,y){if(a!==null&&a.model===this){if(a.change===Ro){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),$o(x,E,b);return}}else if(a.change===qo){if(x=a.newParam,a.modelChange==="linkDataArray"){a=a.newValue,Qt(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===ua){if(x=a.oldParam,a.modelChange==="linkDataArray"){a=a.oldValue,Qt(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}}Ri.prototype.changeState.call(this,a,y)}},Le=Xr.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),$o(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=va(y,a),a!==void 0))){if(fd(a))return a;ut((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=va(y,b);z!==x&&(lu(a,z,y),$o(y,b,x),a.hc(x)===null&&su(a,x,y),ba(a,E?"linkFromKey":"linkToKey",Ro,b,y,z,x),typeof b=="string"&&a.La(y,b))}else $o(y,b,x)}}Le.zx=function(a){return fm(this,a,!0)},Le.xv=function(a,y){_f(this,a,y,!0)},Le.Cx=function(a){return fm(this,a,!1)},Le.Cv=function(a,y){_f(this,a,y,!1)};function fm(a,y,x){return y===null||(a=x?a.ej:a.fj,a==="")?"":(y=va(y,a),y===void 0?"":y)}function _f(a,y,x,E){if(y!==null){var b=E?a.ej:a.fj;if(b!=="")if(a.Jc(y)){var z=va(y,b);z===void 0&&(z=""),z!==x&&($o(y,b,x),ba(a,E?"linkFromPortId":"linkToPortId",Ro,b,y,z,x),typeof b=="string"&&a.La(y,b))}else $o(y,b,x)}}Le.Ef=function(a){if(a===null)return gm;var y=this.je;return y===""?gm:(a=va(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=va(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($o(a,x,y),b=y.length,z=0;z<b;z++){var ee=y[z];this.hc(ee)===null&&su(this,ee,a)}ba(this,"linkLabelKeys",Ro,x,a,E,y),typeof x=="string"&&this.La(a,x)}}else $o(a,x,y)}},Le.Bu=function(a,y){if(y!=null&&a!==null){var x=this.je;if(x!==""){var E=va(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),ba(this,"linkLabelKeys",qo,x,a,null,y,null,b)))}else ut(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=va(a,x);if(Array.isArray(E)){var b=E.indexOf(y);0>b||(E.splice(b,1),this.Jc(a)&&(lu(this,y,a),ba(this,"linkLabelKeys",ua,x,a,y,null,b,null)))}else E!==void 0&&ut(x+" property is not an Array; cannot removeLabelKeyforLinkData: "+a)}}},Le.Ac=function(a){if(a!==null){var y=this.Jh;if(y!==""&&(y=va(a,y),y!==void 0)){if(fd(y))return y;ut("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=va(a,x);E!==y&&this.jh(y)===null&&($o(a,x,y),E!==void 0&&this.wb.remove(E),this.wb.add(y,a),ba(this,"linkKey",Ro,x,a,E,y),typeof x=="string"&&this.La(a,x))}else $o(a,x,y)}},Le.jh=function(a){return a===null&&ut("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))){$o(a,y,x);return}if(typeof x=="string"){for(E=2;this.wb.contains(x+E);)E++;$o(a,y,x+E)}else if(x===void 0||typeof x=="number"){for(x=-this.wb.count-1;this.wb.contains(x);)x--;$o(a,y,x)}}}}},Le.Jc=function(a){return a===null?!1:this.$f.contains(a)},Le.fi=function(a){a!==null&&(_r(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&&ut("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)),ba(a,"linkDataArray",qo,"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(ba(a,"linkDataArray",ua,"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===""&&ut("GraphLinksModel.linkKeyProperty must not be an empty string for .mergeLinkDataArray() to succeed."),a!==this.linkDataArray&&qn(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),Qt(a)&&(ai(a),this.lf!==""&&$o(a,this.lf,void 0),this.mf!==""&&$o(a,this.mf,void 0),this.je!==""&&$o(a,this.je,[])),a},Le.Yu=function(a){if(a===null)return!1;var y=this.jl;return y===""?!1:!!va(a,y)},Le.lh=function(a){if(a!==null){var y=this.Je;if(y!==""&&(y=va(a,y),y!==void 0)){if(fd(y))return y;ut("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=va(a,x);E!==y&&(lu(this,E,a),$o(a,x,y),this.hc(y)===null&&su(this,y,a),ba(this,"nodeGroupKey",Ro,x,a,E,y),typeof x=="string"&&this.La(a,x))}else $o(a,x,y)}},Xr.prototype.copyNodeData=function(a){return a===null?null:(a=Ri.prototype.copyNodeData.call(this,a),this.Ij||this.Je===""||va(a,this.Je)===void 0||$o(a,this.Je,void 0),a)},Xr.prototype.setDataProperty=function(a,y,x){if(this.lb(a)){if(y===this.nodeKeyProperty){this.km(a,x);return}if(y===this.nodeCategoryProperty){this.jm(a,x);return}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){_f(this,a,x,!0);return}if(y===this.linkToPortIdProperty){_f(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=va(a,y);E!==x&&($o(a,y,x),this.Fs(a,y,E,x))},Le=Xr.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&&va(a,b)===y[b]||E&&b===this.linkKeyProperty||this.setDataProperty(a,b,y[b])}},Le.jp=function(a,y){Ri.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;$o(E,ee,z),ba(this,"linkFromKey",Ro,ee,E,b,z),typeof ee=="string"&&this.La(E,ee)}if(dl(this,E,!1)===b&&(ee=this.mf,$o(E,ee,z),ba(this,"linkToKey",Ro,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,ba(this,"linkLabelKeys",qo,oe,E,b,z,le,le))}},Le.qv=function(a,y,x){if(this.lh(a)===y){var E=this.Je;$o(a,E,x),ba(this,"nodeGroupKey",Ro,E,a,y,x),typeof E=="string"&&this.La(a,E)}},Le.Lv=function(){Ri.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){Ri.prototype.fm.call(this,a),a=this.wa(a);var y=mp(this,a);if(y!==null){var x=pi();for(y=y.iterator;y.next();){var E=y.value;if(this.lb(E)){if(this.lh(E)===a){var b=this.Je;ba(this,"nodeGroupKey",Ro,b,E,a,a),typeof b=="string"&&this.La(E,b),x.push(E)}}else if(dl(this,E,!0)===a&&(b=this.lf,ba(this,"linkFromKey",Ro,b,E,a,a),typeof b=="string"&&this.La(E,b),x.push(E)),dl(this,E,!1)===a&&(b=this.mf,ba(this,"linkToKey",Ro,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&&(ba(this,"linkLabelKeys",qo,ee,E,a,a,re,re),x.push(E))}for(y=0;y<x.length;y++)lu(this,a,x[y]);tn(x)}},Le.em=function(a){Ri.prototype.em.call(this,a);var y=this.lh(a);this.hc(y)===null&&su(this,y,a)},Le.qp=function(a){Ri.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=va(a,y),y===void 0))return"";if(typeof y=="string")return y;ut("getCategoryForLinkData found a non-string category for "+a+": "+y)},Xr.prototype.getLinkCategoryForData=function(a){return this.ps(a)},Xr.prototype.lp=function(a,y){if(a!==null){var x=this.dj;if(x!=="")if(this.Jc(a)){var E=va(a,x);E===void 0&&(E=""),E!==y&&($o(a,x,y),ba(this,"linkCategory",Ro,x,a,E,y),typeof x=="string"&&this.La(a,x))}else $o(a,x,y)}},Xr.prototype.setLinkCategoryForData=function(a,y){this.lp(a,y)},Le=Xr.prototype,Le.lm=function(a,y){Ri.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},mn.Object.defineProperties(Xr.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];Qt(b)||ut("GraphLinksModel.linkDataArray must only contain Objects, not: "+b),_r(b)}if(this.md=a,this.linkKeyProperty!==""){for(E=new An,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 Fn,b=0;b<x;b++)E.add(a[b]);for(this.$f=E,ba(this,"linkDataArray",Ro,"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"}}}),Xr.prototype.setCategoryForLinkData=Xr.prototype.lp,Xr.prototype.getCategoryForLinkData=Xr.prototype.ps,Xr.prototype.assignAllDataProperties=Xr.prototype.Do,Xr.prototype.setGroupKeyForNodeData=Xr.prototype.mp,Xr.prototype.getGroupKeyForNodeData=Xr.prototype.lh,Xr.prototype.isGroupForNodeData=Xr.prototype.Yu,Xr.prototype.copyLinkData=Xr.prototype.Jo,Xr.prototype.mergeLinkDataArray=Xr.prototype.Zz,Xr.prototype.removeLinkDataCollection=Xr.prototype.lA,Xr.prototype.removeLinkData=Xr.prototype.bm,Xr.prototype.addLinkDataCollection=Xr.prototype.Ey,Xr.prototype.addLinkData=Xr.prototype.fi,Xr.prototype.containsLinkData=Xr.prototype.Jc,Xr.prototype.makeLinkDataKeyUnique=Xr.prototype.Bs,Xr.prototype.findLinkDataForKey=Xr.prototype.jh,Xr.prototype.setKeyForLinkData=Xr.prototype.Ks,Xr.prototype.getKeyForLinkData=Xr.prototype.Ac,Xr.prototype.removeLabelKeyForLinkData=Xr.prototype.Qx,Xr.prototype.addLabelKeyForLinkData=Xr.prototype.Bu,Xr.prototype.setLabelKeysForLinkData=Xr.prototype.Ls,Xr.prototype.getLabelKeysForLinkData=Xr.prototype.Ef,Xr.prototype.setToPortIdForLinkData=Xr.prototype.Cv,Xr.prototype.getToPortIdForLinkData=Xr.prototype.Cx,Xr.prototype.setFromPortIdForLinkData=Xr.prototype.xv,Xr.prototype.getFromPortIdForLinkData=Xr.prototype.zx,Xr.prototype.setToKeyForLinkData=Xr.prototype.Bv,Xr.prototype.getToKeyForLinkData=Xr.prototype.Bx,Xr.prototype.setFromKeyForLinkData=Xr.prototype.wv,Xr.prototype.getFromKeyForLinkData=Xr.prototype.yx,Xr.prototype.clear=Xr.prototype.clear;var gm=Object.freeze([]);Xr.className="GraphLinksModel",Jl.GraphLinksModel=Xr,Ri.constructGraphLinksModel=Ri.constructGraphLinksModel=function(){return new Xr},Ri.initDiagramModel=cy=function(){return new Xr};function bs(a,y){Ri.call(this),this.Ke="parent",this.Nm=!1,this.nj="parentLinkCategory",a!==void 0&&(qn(a)?this.nodeDataArray=a:y=a),y&&(Object.assign(this,y),a=y.Changed)&&(delete this.Changed,this.Pe(a))}jt(bs,Ri),bs.constructGraphLinksModel=Ri.constructGraphLinksModel,bs.prototype.cloneProtected=function(a){Ri.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)+":"+yr(b)}}return y},Le.rm=function(){var a=Ri.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){Ri.prototype.gp.call(this,a),a.nodeParentKeyProperty&&(this.nodeParentKeyProperty=a.nodeParentKeyProperty)},Le.fp=function(a){a.nodeParentKeyProperty!==void 0&&a.nodeParentKeyProperty!==this.nodeParentKeyProperty&&ut("applyIncrementalJson cannot change Model properties"),Ri.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=va(a,y),y!==void 0)){if(fd(y))return y;ut("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=va(a,x);E!==y&&(lu(this,E,a),$o(a,x,y),this.hc(y)===null&&su(this,y,a),ba(this,"nodeParentKey",Ro,x,a,E,y),typeof x=="string"&&this.La(a,x))}else $o(a,x,y)}},Le.ss=function(a){if(a===null)return"";var y=this.nj;return y===""||(y=va(a,y),y===void 0)?"":typeof y=="string"?y:(ut("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=va(a,x);E===void 0&&(E=""),E!==y&&($o(a,x,y),ba(this,"parentLinkCategory",Ro,x,a,E,y),typeof x=="string"&&this.La(a,x))}else $o(a,x,y)}},bs.prototype.setLinkCategoryForData=function(a,y){this.Ms(a,y)},bs.prototype.copyNodeData=function(a){return a===null?null:(a=Ri.prototype.copyNodeData.call(this,a),this.Jj||this.Ke===""||va(a,this.Ke)===void 0||$o(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=va(a,y);E!==x&&($o(a,y,x),this.Fs(a,y,E,x))},Le=bs.prototype,Le.jp=function(a,y){Ri.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;$o(a,E,x),ba(this,"nodeParentKey",Ro,E,a,y,x),typeof E=="string"&&this.La(a,E)}},Le.fm=function(a){Ri.prototype.fm.call(this,a),a=this.wa(a);var y=mp(this,a);if(y!==null){var x=pi();for(y=y.iterator;y.next();){var E=y.value;if(this.lb(E)&&this.mh(E)===a){var b=this.Ke;ba(this,"nodeParentKey",Ro,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]);tn(x)}},Le.em=function(a){Ri.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){Ri.prototype.qp.call(this,a);var y=this.mh(a);lu(this,y,a)},Le.lm=function(a,y){Ri.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},mn.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 ra(a){ea.call(this),this.lw=this.Zm=this.lc=0,this.Wp=360,this.kw=ql,this.Ti=0,this.Zv=new Ze,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)}jt(ra,ea),ra.prototype.cloneProtected=function(a){ea.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},ra.prototype.qb=function(a){a.classType===ra?a===Sm||a===xm||a===vm||a===ym||a===Uf?this.sorting=a:a===nc||a===Kf||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):ea.prototype.qb.call(this,a)},ra.prototype.createNetwork=function(){return new Xf(this)},ra.prototype.doLayout=function(a){if(this.network===null&&(this.network=this.makeNetwork(a)),this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin),a=this.network.vertexes,1>=a.count)a.count===1&&(a=a.first(),a.centerX=0,a.centerY=0);else{var y=new An;y.addAll(a.iterator),a=new An;var x=new An,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===Kf)&&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 An,E.addAll(a),E.addAll(x)):(this.arrangement===$l&&x.reverse(),E=new An,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!==Kf||E!==$l)if(this.direction===nc||this.direction===Kf){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=Ze.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(Ze.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=Ze.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(Ze.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}ra.prototype.commitLayout=function(){this.commitNodes(),this.isRouting&&this.commitLinks()},ra.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 Ze(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))},ra.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}}ra.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:ut("Invalid sorting type.")}return a};function Zx(a){for(var y=[],x=0;x<a.length;x++)y.push(0);x=new An;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}ra.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 An;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,st=0;st<ee.length;st++){var ht=z[ee[st]],ft=z[re[st]];if(ht<ft){var Ct=ht;ht=ft}else Ct=ft;if(Ct<Be&&Be<=ht)for(ft=0;ft<qe.length;ft++){var Gt=qe[ft];0>x.indexOf(Gt)||Ct<z[Gt]&&z[Gt]<ht||Ct===z[Gt]||ht===z[Gt]||Ke++}else for(ft=0;ft<qe.length;ft++)Gt=qe[ft],0>x.indexOf(Gt)||Ct<z[Gt]&&z[Gt]<ht&&Ct!==z[Gt]&&ht!==z[Gt]&&Ke++}for(qe=Ke,st=Ke=0;st<y[le].length;st++)Ct=x.indexOf(y[le][st]),0<=Ct&&(Ct=Math.abs(Be-(Ct>=Be?Ct+1:Ct)),Ke+=Ct<x.length+1-Ct?Ct:x.length+1-Ct);for(st=0;st<ee.length;st++)Ct=z[ee[st]],ht=z[re[st]],Ct>=Be&&Ct++,ht>=Be&&ht++,Ct>ht&&(ft=ht,ht=Ct,Ct=ft),ht-Ct<(x.length+2)/2==(Ct<Be&&Be<=ht)&&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},mn.Object.defineProperties(ra.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!==Kf||(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 Kt(ra,"ConstantSpacing",0),gd=new Kt(ra,"ConstantDistance",1),Th=new Kt(ra,"ConstantAngle",2),$l=new Kt(ra,"Packed",3),Ds=new Kt(ra,"Clockwise",4),pd=new Kt(ra,"Counterclockwise",5),nc=new Kt(ra,"BidirectionalLeft",6),Kf=new Kt(ra,"BidirectionalRight",7),vm=new Kt(ra,"Forwards",8),ym=new Kt(ra,"Reverse",9),Sm=new Kt(ra,"Ascending",10),xm=new Kt(ra,"Descending",11),Uf=new Kt(ra,"Optimized",12),Pm=new Kt(ra,"Pythagorean",13),Wc=new Kt(ra,"Circular",14);ra.className="CircularLayout",ra.ConstantSpacing=ql,ra.ConstantDistance=gd,ra.ConstantAngle=Th,ra.Packed=$l,ra.Clockwise=Ds,ra.Counterclockwise=pd,ra.BidirectionalLeft=nc,ra.BidirectionalRight=Kf,ra.Forwards=vm,ra.Reverse=ym,ra.Ascending=Sm,ra.Descending=xm,ra.Optimized=Uf,ra.Pythagorean=Pm,ra.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){Ho.call(this,a)}jt(Xf,Ho),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}jt(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}mn.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)}jt(wm,el),wm.className="CircularEdge";function as(a){ea.call(this),this.ah=null,this.An=0,this.$d=new Xe(100,100).freeze(),this.Bm=!1,this.sf=!0,this.td=!1,this.dl=100,this.$m=1,this.Zf=1e3,this.In=10,this.fo=Math,this.Hk=.05,this.Gk=50,this.Ek=150,this.Fk=0,this.Vm=10,this.Um=5,a&&Object.assign(this,a)}jt(as,ea),as.prototype.cloneProtected=function(a){ea.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=pi(),he=0;he<re+y.vertexes.count+2;he++)le[he]=null;re=0,ee.reset();for(var ge=pt.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 Ze(ge.x+ge.width+E.width,ge.y),le[1]=new Ze(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 Ze(Pe.x+ge.width+E.width,Pe.y),Be=new Ze(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(pt.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 Ze(Se.x+Se.width+E.width,Se.y),le[1]=new Ze(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 Ze(ge.x+Se.width+E.width,ge.y),Se=new Ze(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(tn(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 An),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 An,b.Hj=re),re.add(ee),b.Vd--,b.sh+=ee.sh):ee.network===E&&(re=ee.Hj,re===null&&(re=new An,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 pt(z-Se.x-ee,oe-Se.y-re,he+2*ee,ge+2*re),b.focus=new Ze(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 pt(E.centerX-z,E.centerY-ee,b.Ss,b.Qs),E.focus=new Ze(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=Co,y.toSpot=Co)}},as.prototype.commitNodes=function(){var a=0,y=0;if(this.arrangesToOrigin){var x=pt.alloc();this.computeBounds(this.network,x),y=this.arrangementOrigin,a=y.x-x.x,y=y.y-x.y,pt.free(x)}x=pt.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()}pt.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},mn.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"&&ut('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){Ho.call(this,a)}jt(Hc,Ho),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}jt(Ep,Ba),mn.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}jt(Ap,el),mn.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){ea.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 Ze,this.He=[],this.He.length=100,this.xw=this.ve=0,a&&Object.assign(this,a)}jt(wo,ea),wo.prototype.cloneProtected=function(a){ea.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:ut("Unknown enum value: "+a):ea.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=Ze.alloc(),he!==ge?Be.w()&&ge.isVisible()?ge.actualBounds.w()?(bh(ge,Se,di,Pe),Pe.x+=ge.actualBounds.x-Be.x,Pe.y+=ge.actualBounds.y-Be.y):(bh(ge,Se,di,Pe),Pe.w()||Pe.assign(Ae)):Pe.assign(Ae):Be.w()?(bh(ge,Se,di,Pe),Pe.w()||Pe.assign(Ae)):Pe.assign(Ae),ge=E.rev?b.bounds:z.bounds,he=Ze.alloc(),ee!==oe?ge.w()&&oe.isVisible()?oe.actualBounds.w()?(bh(oe,re,di,he),he.x+=oe.actualBounds.x-ge.x,he.y+=oe.actualBounds.y-ge.y):(bh(oe,re,di,he),he.w()||he.assign(le)):he.assign(le):ge.w()?(bh(oe,re,di,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),Ze.free(Pe),Ze.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 st=Be.fromNode;if(Se=Be.toNode,st!==null&&Se!==null){var ht=Mm(this,!0),ft=Mm(this,!1),Ct=this.setsPortSpots?ht:Be.computeSpot(!0,qe);Ae=this.setsPortSpots?ft:Be.computeSpot(!1,Ke);var Gt=Be.isOrthogonal;Ct.$c()&&Ct.Hf(ft)&&Ae.$c()&&Ae.Hf(ht)?ge=0:(ht=Be.getLinkPoint(st,qe,Ct,!0,Gt,Se,Ke,Ze.alloc()),ft=Be.getLinkDirection(st,qe,ht,Ct,!0,Gt,Se,Ke),Ze.free(ht),Ct.ys()||ft!==$S(this,E,!0)?this.setsPortSpots&&st!==null&&st.ports.count===1&&E.rev&&(ge+=1):ge+=1,Ct=Be.getLinkPoint(Se,Ke,Ae,!1,Gt,st,qe,Ze.alloc()),Be=Be.getLinkDirection(Se,Ke,Ct,Ae,!1,Gt,st,qe),Ze.free(Ct),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,st=0;if(0<=x){re=E[ee].sourceEdgesArrayAccess;var ht=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<ht.length;Se++)Ae=ht[Se],Ae.valid&&Ae.fromVertex.layer!==y&&(Be=Ae.fromVertex.index,Ae=Ae.portFromPos,(ge<Be||ge===Be&&Pe<Ae)&&st++,(Be<ge||Be===ge&&Ae<Pe)&&Ke++)}if(0>=x){for(re=E[ee].destinationEdgesArrayAccess,ht=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<ht.length;Se++)Ae=ht[Se],Ae.valid&&Ae.toVertex.layer!==y&&(Be=Ae.toVertex.index,qe=Ae.portToPos,(ge<Be||ge===Be&&he<qe)&&st++,(Be<ge||Be===ge&&qe<he)&&Ke++)}z[ee*b+oe]=Ke,z[oe*b+ee]=st}}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 _S(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(;_x(a)!==null;){for(b=KS(a);b!==null;)E[x]=b,x--,b.valid=!1,b=KS(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 _x(a){for(a=a.vertexes.iterator;a.next();){var y=a.value;if(y.valid)return y}return null}function KS(a){for(a=a.vertexes.iterator;a.next();){var y=a.value;if(y.valid){for(var x=!0,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=_S(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),st=a.nodeMinColumnSpace(E[z+1],!0),ht=a.nodeMinColumnSpace(E[z+1],!1);qe=Ae-qe+st,Ke=Be-Ke+ht;var ft=E[z].sourceEdges.iterator;for(ft.reset();ft.next();)if(st=ft.value,ht=st.fromVertex,st.valid&&ht.layer===y){for(st=0;E[st]!==ht;)st++;st<z&&(Se+=2*(z-st),Pe+=2*(z+1-st)),st===z+1&&(Se+=1),st>z+1&&(Se+=4*(st-z),Pe+=4*(st-(z+1)))}for(ft=E[z].destinationEdges.iterator,ft.reset();ft.next();)if(st=ft.value,ht=st.toVertex,st.valid&&ht.layer===y){for(st=0;E[st]!==ht;)st++;st===z+1&&(Pe+=1)}for(ft=E[z+1].sourceEdges.iterator,ft.reset();ft.next();)if(st=ft.value,ht=st.fromVertex,st.valid&&ht.layer===y){for(st=0;E[st]!==ht;)st++;st<z&&(Se+=2*(z+1-st),Pe+=2*(z-st)),st===z&&(Pe+=1),st>z+1&&(Se+=4*(st-(z+1)),Pe+=4*(st-z))}for(ft=E[z+1].destinationEdges.iterator,ft.reset();ft.next();)if(st=ft.value,ht=st.toVertex,st.valid&&ht.layer===y){for(st=0;E[st]!==ht;)st++;st===z&&(Se+=1)}st=ht=0,ft=ee[E[z].index];var Ct=re[E[z].index],Gt=ee[E[z+1].index],oi=re[E[z+1].index];ft!==-1&&(ht+=Math.abs(ft-Ae),st+=Math.abs(ft-Ke)),Ct!==-1&&(ht+=Math.abs(Ct-Ae),st+=Math.abs(Ct-Ke)),Gt!==-1&&(ht+=Math.abs(Gt-Be),st+=Math.abs(Gt-qe)),oi!==-1&&(ht+=Math.abs(oi-Be),st+=Math.abs(oi-qe)),(Pe<Se-.5||Pe===Se&&ge<he-.5||Pe===Se&&ge===he&&st<ht-.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;Kx(a,y,x);)E=!0;return E}function Kx(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,st=Ke.fromVertex;if(Ke.valid&&st.layer!==y){var ht=my(Ke),ft=Ke.portFromColOffset;Ke=Ke.portToColOffset,st=st.column,Se+=(Math.abs(he+Ke-(st+ft))+1)*ht,Ae+=(Math.abs(Pe+Ke-(st+ft))+1)*ht,Be+=(Math.abs(ge+Ke-(st+ft))+1)*ht}}if(0<=x)for(qe=b[E].destinationEdges.iterator;qe.next();)Ke=qe.value,st=Ke.toVertex,Ke.valid&&st.layer!==y&&(ht=my(Ke),ft=Ke.portFromColOffset,Ke=Ke.portToColOffset,st=st.column,Se+=(Math.abs(he+ft-(st+Ke))+1)*ht,Ae+=(Math.abs(Pe+ft-(st+Ke))+1)*ht,Be+=(Math.abs(ge+ft-(st+Ke))+1)*ht);Ke=ft=ht=0,qe=ee[b[E].index],st=re[b[E].index],qe!==-1&&(ht+=Math.abs(qe-he),ft+=Math.abs(qe-Pe),Ke+=Math.abs(qe-ge)),st!==-1&&(ht+=Math.abs(st-he),ft+=Math.abs(st-Pe),Ke+=Math.abs(st-ge)),Ae<Se||Ae===Se&&ft<ht?(le=oe=!0,b[E].column=Pe):(Be<Se||Be===Se&&Ke<ht)&&(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=_S(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=pi(),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 Fn,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=Un(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)),tn(y),a.u(z,ee,re,oe),a.network.vertexes.each(function(Pe){var Ae=pi();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,tn(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=Un(le.sourceEdgesArrayAccess),Pe=Se.next();!Pe.done;Pe=Se.next())Pe=Pe.value,Pe.valid&&ge.push(Pe);le.bo=ge}for(le=Un(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=Un(a);for(var E=a.next();!E.done;E=a.next()){var b=-1;E=Un(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=Un(y),ee=z.next();!ee.done;ee=z.next()){var re=Un(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=Un(y),re=z.next();!re.done;re=z.next()){re=Un(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=Un(y),ee=x.next();!ee.done;ee=x.next())for(z=Un(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 Ht,y=Un(y),ee=y.next();!ee.done;ee=y.next())for(x=Un(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&&ut("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=pi(),b=pi(),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)));tn(E),tn(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?Ur:bo:a.K===90?y?bo:Ur:a.K===180?y?ao:ho:y?ho:ao}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 Ze(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 pt(0,0,x,Math.abs(this.Ta[0]))):y.push(new pt(0,this.Ta[E-1],x,Math.abs(this.Ta[E-1]-this.Ta[E]))):this.K===90?E===0?y.push(new pt(0,this.Ta[0],x,Math.abs(this.Ta[0]-a))):y.push(new pt(0,this.Ta[E],x,Math.abs(this.Ta[E-1]-this.Ta[E]))):this.K===180?E===0?y.push(new pt(0,0,Math.abs(this.Ta[0]),x)):y.push(new pt(this.Ta[E-1],0,Math.abs(this.Ta[E-1]-this.Ta[E]),x)):E===0?y.push(new pt(this.Ta[0],0,Math.abs(this.Ta[0]-a),x)):y.push(new pt(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===Li&&(E=!0),re!==null&&oe===Li&&(x=!0),(E||x)&&(oe=null,E&&(oe=y.getLinkPointFromPoint(b,ee,ee.ga(di),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(di),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===Li,st=oe===Li;2<qe&&Ke&&st?y.points.removeRange(1,qe-2):3<qe&&Ke&&!st?y.points.removeRange(1,qe-3):3<qe&&!Ke&&st?y.points.removeRange(2,qe-2):4<qe&&!Ke&&!st&&y.points.removeRange(2,qe-3)}if(x.rev){for(;ge!==null&&he!==ge;){var ht=qe=null;for(Ke=ge.sourceEdges.iterator;Ke.next()&&(st=Ke.value,st.link!==x.link||(qe=st.fromVertex,ht=st.toVertex,qe.node!==null)););if(qe===null)break;if(qe!==he){Ke=y.i(Be-1).x,st=y.i(Be-1).y;var ft=qe.centerX,Ct=qe.centerY;if(Pe)this.K===180||this.K===0?Be===y.firstPickIndex+1?(y.m(Be++,Ke,st),y.m(Be++,Ke,Ct)):(ht!==null?ht.centerY:st)!==Ct&&(ht=this.Ta[qe.layer-1]+this.Rf.x,y.m(Be++,ht,st),y.m(Be++,ht,Ct)):Be===y.firstPickIndex+1?(y.m(Be++,Ke,st),y.m(Be++,ft,st)):(ht!==null?ht.centerX:Ke)!==ft&&(ht=this.Ta[qe.layer-1]+this.Rf.y,y.m(Be++,Ke,ht),y.m(Be++,ft,ht));else if(Be===y.firstPickIndex+1){ht=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-ht,Ct),y.m(Be++,ge,Ct),y.m(Be++,ge+Gt,Ct)):(y.m(Be++,ft-ht,Ct),y.m(Be++,ft,Ct),y.m(Be++,ft+Gt,Ct)):this.K===90?Ct>=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-ht)):(y.m(Be++,ft,Ct+Gt),y.m(Be++,ft,Ct),y.m(Be++,ft,Ct-ht)):this.K===270?Ct<=ge.bounds.y?(ge=ge.bounds.y,y.m(Be++,ft,ge-ht),y.m(Be++,ft,ge),y.m(Be++,ft,ge+Gt)):(y.m(Be++,ft,Ct-ht),y.m(Be++,ft,Ct),y.m(Be++,ft,Ct+Gt)):this.K===0&&(ft>=ge.bounds.right?(ge=ge.bounds.x+ge.bounds.width,y.m(Be++,ge+Gt,Ct),y.m(Be++,ge,Ct),y.m(Be++,ge-ht,Ct)):(y.m(Be++,ft+Gt,Ct),y.m(Be++,ft,Ct),y.m(Be++,ft-ht,Ct)));else{y.m(Be++,Ke,st);var oi=0;this.K===180||this.K===0?((this.K===180?ft>=ge.bounds.right:ft<=ge.bounds.x)&&(oi=(this.K===0?-ht:Gt)/2),y.m(Be++,Ke+oi,Ct)):((this.K===270?Ct>=ge.bounds.bottom:Ct<=ge.bounds.y)&&(oi=(this.K===90?-ht:Gt)/2),y.m(Be++,ft,st+oi)),y.m(Be++,ft,Ct)}}else ht=Math.max(10,this.he[qe.layer]),Gt=Math.max(10,this.Ld[qe.layer]),Se?this.K===180?(y.m(Be++,ft-ht-Ae,Ct),y.m(Be++,Math.min(ft-ht+Ae/2,ft),Ct),y.m(Be++,ft,Ct),y.m(Be++,ft,Ct),y.m(Be++,Math.max(ft+Gt-Ae/2,ft),Ct),y.m(Be++,ft+Gt+Ae,Ct)):this.K===90?(y.m(Be++,ft,Ct+Gt+Ae),y.m(Be++,ft,Math.max(Ct+Gt-Ae/2,Ct)),y.m(Be++,ft,Ct),y.m(Be++,ft,Ct),y.m(Be++,ft,Math.min(Ct-ht+Ae/2,Ct)),y.m(Be++,ft,Ct-ht-Ae)):this.K===270?(y.m(Be++,ft,Ct-ht-Ae),y.m(Be++,ft,Math.min(Ct-ht+Ae/2,Ct)),y.m(Be++,ft,Ct),y.m(Be++,ft,Ct),y.m(Be++,ft,Math.max(Ct+Gt-Ae/2,Ct)),y.m(Be++,ft,Ct+Gt+Ae)):(y.m(Be++,ft+Gt+Ae,Ct),y.m(Be++,Math.max(ft+Gt-Ae/2,ft),Ct),y.m(Be++,ft,Ct),y.m(Be++,ft,Ct),y.m(Be++,Math.min(ft-ht+Ae/2,ft),Ct),y.m(Be++,ft-ht-Ae,Ct)):y.m(Be++,ft,Ct)}ge=qe}(re===null||le!==Li||Pe)&&(Ke=y.i(Be-1).x,st=y.i(Be-1).y,ft=y.i(Be).x,Ct=y.i(Be).y,Pe?(Ae=this.Ld[he.layer],this.K===180||this.K===0?(Pe=st,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,st),y.m(Be++,ge,Pe)),y.m(Be++,ft,Pe)):(Pe=Ke,Pe>=he.bounds.x&&Pe<=he.bounds.right&&(this.K===270?Ct>=he.bounds.y:Ct<=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,Ct)),y.m(Be++,ft,Ct)):Se?(ht=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,st),y.L(Be-1,ge+Gt,st)):this.K===90&&Ct<=he.bounds.bottom?(ge=he.bounds.y,y.L(Be-2,Ke,ge),y.L(Be-1,Ke,ge-ht)):this.K===270&&Ct>=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,st),y.L(Be-1,ge-ht,st))):(ht=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:-ht)/2),y.m(Be++,ft+Pe,st)):((this.K===270?Ct<=he.bounds.y:Ct>=he.bounds.bottom)&&(Pe=(this.K===90?Gt:-ht)/2),y.m(Be++,Ke,Ct+Pe)),y.m(Be++,ft,Ct)))}else{for(;he!==null&&he!==ge;){for(ht=qe=null,he=he.destinationEdges.iterator;he.next()&&(Ke=he.value,Ke.link!==x.link||(qe=Ke.toVertex,ht=Ke.fromVertex,ht.node!==null&&(ht=null),qe.node!==null)););if(qe===null)break;qe!==ge&&(Ke=y.i(Be-1).x,st=y.i(Be-1).y,ft=qe.centerX,Ct=qe.centerY,Pe?this.K===180||this.K===0?(ht!==null?ht.centerY:st)!==Ct&&(ht=this.Ta[qe.layer]+this.Rf.x,Be===y.firstPickIndex+1&&(ht=this.K===0?Math.max(ht,Ke):Math.min(ht,Ke)),y.m(Be++,ht,st),y.m(Be++,ht,Ct)):(ht!==null?ht.centerX:Ke)!==ft&&(ht=this.Ta[qe.layer]+this.Rf.y,Be===y.firstPickIndex+1&&(ht=this.K===90?Math.max(ht,st):Math.min(ht,st)),y.m(Be++,Ke,ht),y.m(Be++,ft,ht)):(ht=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,Ct),y.m(Be++,Math.max(ft+Gt-Ae/2,ft),Ct),y.m(Be++,ft,Ct),y.m(Be++,ft,Ct),y.m(Be++,Math.min(ft-ht+Ae/2,ft),Ct),y.m(Be++,ft-ht-Ae,Ct)):this.K===90?(y.m(Be++,ft,Ct-ht-Ae),y.m(Be++,ft,Math.min(Ct-ht+Ae/2,Ct)),y.m(Be++,ft,Ct),y.m(Be++,ft,Ct),y.m(Be++,ft,Math.max(Ct+Gt-Ae/2,Ct)),y.m(Be++,ft,Ct+Gt+Ae)):this.K===270?(y.m(Be++,ft,Ct+Gt+Ae),y.m(Be++,ft,Math.max(Ct+Gt-Ae/2,Ct)),y.m(Be++,ft,Ct),y.m(Be++,ft,Ct),y.m(Be++,ft,Math.min(Ct-ht+Ae/2,Ct)),y.m(Be++,ft,Ct-ht-Ae)):(y.m(Be++,ft-ht-Ae,Ct),y.m(Be++,Math.min(ft-ht+Ae/2,ft),Ct),y.m(Be++,ft,Ct),y.m(Be++,ft,Ct),y.m(Be++,Math.max(ft+Gt-Ae/2,ft),Ct),y.m(Be++,ft+Gt+Ae,Ct)):this.K===180?(y.m(Be++,ft+Gt,Ct),y.m(Be++,ft-ht,Ct)):this.K===90?(y.m(Be++,ft,Ct-ht),y.m(Be++,ft,Ct+Gt)):this.K===270?(y.m(Be++,ft,Ct+Gt),y.m(Be++,ft,Ct-ht)):(y.m(Be++,ft-ht,Ct),y.m(Be++,ft+Gt,Ct)))),he=qe}Pe&&(Ke=y.i(Be-1).x,st=y.i(Be-1).y,ft=y.i(Be).x,Ct=y.i(Be).y,this.K===180||this.K===0?st!==Ct&&(ht=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++,ht,st),y.m(Be++,ht,Ct)):Ke!==ft&&(ht=this.K===90?Math.min(Math.max((Ct+st)/2,this.Ta[ge.layer]+this.Rf.y),Ct):Math.max(Math.min((Ct+st)/2,this.Ta[ge.layer]+this.Rf.y),Ct),y.m(Be++,Ke,ht),y.m(Be++,ft,ht)))}E!==null&&Se&&4<=y.pointsCount&&(ee!==null&&(ee=le===Li?y.getLinkPointFromPoint(b,ee,ee.ga(di),y.i(3),!0):y.i(0),le===Li&&(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===Li?y.getLinkPointFromPoint(z,re,re.ga(di),y.i(y.pointsCount-4),!1):y.i(y.pointsCount-1),oe===Li&&(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 An,y=this.network.edges.iterator;y.next();){var x=y.value.link;x!==null&&x.isOrthogonal&&!a.contains(x)&&a.add(x)}if(0<a.count)if(this.K===90||this.K===270){for(y=0,x=[],a=a.iterator;a.next();){var 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)&&ut("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}mn.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()):ut("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 Kt(wo,"CycleDepthFirst",0),Py=new Kt(wo,"CycleGreedy",1),Mp=new Kt(wo,"CycleFromLayers",2),bm=new Kt(wo,"LayerOptimalLinkLength",0),wy=new Kt(wo,"LayerLongestPathSink",1),Cy=new Kt(wo,"LayerLongestPathSource",2),Dm=new Kt(wo,"InitDepthFirstOut",0),Ey=new Kt(wo,"InitDepthFirstIn",1),Ay=new Kt(wo,"InitNaive",2),Fy=new Kt(wo,"AggressiveNone",0),km=new Kt(wo,"AggressiveLess",1),My=new Kt(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){Ho.call(this,a)}jt(Jf,Ho),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}jt(Ml,Ba);function ax(a,y){return a.index-y.index}function Bm(a,y){if(!a.$n){for(var x=[],E=Un(a.destinationEdgesArrayAccess),b=E.next();!b.done;b=E.next())b=b.value,b.valid&&x.push(b);a.$n=x}for(a=Un(a.$n),x=a.next();!x.done;x=a.next())if(x=x.value,x.toVertex===y)return x;ut("Unable to find destination edge to given vertex")}function Ly(a){if(!a.co){for(var y=[],x=Un(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=Un(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},mn.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}jt(Lp,el),mn.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){ea.call(this),this.Ub=new Fn,this.Wn=Im,this.ud=Hu,this.vo=jm,this.Bq=zy,this.$v=[],this.td=!0,this.Rb=zm,this.$d=new Xe(10,10).freeze();var y=new _c(this);this.W=new zl(y),this.Y=new zl(y),this.ru=[],a&&Object.assign(this,a)}jt(zr,ea),zr.prototype.cloneProtected=function(a){ea.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:ut("Unknown enum value: "+a):ea.prototype.qb.call(this,a)},zr.prototype.createNetwork=function(){return new _c(this)},zr.prototype.makeNetwork=function(a){function y(E){if(E instanceof si)return!E.isLinkLabel&&E.category!=="Comment";if(E instanceof Gn){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 Vt?(x.lg(a.nodes,!0,y),x.lg(a.links,!0,y)):a instanceof xr?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 Vt&&(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 Fn,y=this.Ub.iterator;y.next();){var x=y.value;x instanceof si?(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 Fn,this.isValidLayout=!0};function nP(a){var y=new Fn;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:ut("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:ut("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 An,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 An,E=y.sourceVertexes;E.next();)b=E.value,lx(a,y,b)&&x.add(b);0<x.count&&(y.children=x.Fa())}break;default:ut("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:ut("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=pt.allocAt(0,0,a.bounds.width+z,a.bounds.height+ee),a.bounds=b,pt.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=Ze.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=ao,Be.toSpot=ho}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=ho,Be.toSpot=ao;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=ho,Be.toSpot=ao;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=ao,Be.toSpot=ho;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=Ur,Be.toSpot=bo;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=bo,Be.toSpot=Ur;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=bo,Be.toSpot=Ur;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=Ur,Be.toSpot=bo;oe=0<=a.commentSpacing?oe+(Ae.width+a.commentSpacing):oe+(a.commentSpacing-Ae.width)}}if(Ze.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,st=0,ht=0,ft=null,Ct=null,Gt=0,oi=0,Ni=0,wi=0,Wn=0,Sn=0,vr=0,sr=0;if(he&&!bp(oe)&&135<b&&ee.reverse(),bp(oe))if(1<re)for(var ro=0;ro<re;ro++)ro%2===0&&ro!==re-1&&(sr=Math.max(sr,y?ee[ro].Da.width:ee[ro].Da.height));else re===1&&(sr=y?ee[0].Da.width:ee[0].Da.height);if(he){switch(oe){case Oh:st=135>b?fx(this,a,ee,sr,Ke,st):gx(this,a,ee,sr,Ke,st),sr=st.x,Ke=st.width,st=st.height;break;case Ih:for(ft=0;ft<re;ft++)Ct=ee[ft],ge=Ct.Da,ht=Sn===0?0:Ae,y?(Ct.S.h(z-ge.width,wi+ht),Ke=Math.max(Ke,ge.width),st=Math.max(st,wi+ht+ge.height),wi+=ht+ge.height):(Ct.S.h(Ni+ht,z-ge.height),Ke=Math.max(Ke,Ni+ht+ge.width),st=Math.max(st,ge.height),Ni+=ht+ge.width),Sn++;break;case ah:for(ft=0;ft<re;ft++)Ct=ee[ft],z=Ct.Da,ge=Sn===0?0:Ae,y?(Ct.S.h(Se/2+a.focus.x,wi+ge),Ke=Math.max(Ke,z.width),st=Math.max(st,wi+ge+z.height),wi+=ge+z.height):(Ct.S.h(Ni+ge,Se/2+a.focus.y),Ke=Math.max(Ke,Ni+ge+z.width),st=Math.max(st,z.height),Ni+=ge+z.width),Sn++}ft=Ys(this,2),Ct=Ys(this,2),y?(ft[0].h(0,0),ft[1].h(0,st),Ct[0].h(Ke,0)):(ft[0].h(0,0),ft[1].h(Ke,0),Ct[0].h(0,st)),Ct[1].h(Ke,st)}else for(ro=0;ro<re;ro++){var zo=ee[ro],Ia=zo.Da;if(y){0<ge&&0<Sn&&Ni+Se+Ia.width>ge&&(Ni<z&&ic(a,oe,z-Ni,0,vr,ro-1),Wn++,Sn=0,vr=ro,ht=st,Ni=0,wi=135<b?-st-Ae:st+Ae),Tm(this,zo,0,wi);var Ha=0;if(Sn===0)ft=zo.Yo,Ct=zo.kp,Gt=Ia.width,oi=Ia.height,(ft===null||Ct===null||b!==eu(zo))&&(ft=Ys(this,2),Ct=Ys(this,2),ft[0].h(0,0),ft[1].h(0,oi),Ct[0].h(Gt,0),Ct[1].h(Gt,oi));else{var vs=pi();oi=px(this,a,zo,ft,Ct,Gt,oi,vs),Ha=oi.x,ft=vs[0],Ct=vs[1],Gt=oi.width,oi=oi.height,tn(vs),Ni<Ia.width&&0>Ha&&(Gc(a,-Ha,0,vr,ro-1),Om(ft,-Ha,0),Om(Ct,-Ha,0),Ha=0)}zo.S.h(Ha,wi),Ke=Math.max(Ke,Gt),st=Math.max(st,ht+(Wn===0?0:Ae)+Ia.height),Ni=Gt}else 0<ge&&0<Sn&&wi+Se+Ia.height>ge&&(wi<z&&ic(a,oe,0,z-wi,vr,ro-1),Wn++,Sn=0,vr=ro,ht=Ke,wi=0,Ni=135<b?-Ke-Ae:Ke+Ae),Tm(this,zo,Ni,0),Ha=0,Sn===0?(ft=zo.Yo,Ct=zo.kp,Gt=Ia.width,oi=Ia.height,(ft===null||Ct===null||b!==eu(zo))&&(ft=Ys(this,2),Ct=Ys(this,2),ft[0].h(0,0),ft[1].h(Gt,0),Ct[0].h(0,oi),Ct[1].h(Gt,oi))):(vs=pi(),oi=px(this,a,zo,ft,Ct,Gt,oi,vs),Ha=oi.x,ft=vs[0],Ct=vs[1],Gt=oi.width,oi=oi.height,tn(vs),wi<Ia.height&&0>Ha&&(Gc(a,0,-Ha,vr,ro-1),Om(ft,0,-Ha),Om(Ct,0,-Ha),Ha=0)),zo.S.h(Ni,Ha),st=Math.max(st,oi),Ke=Math.max(Ke,ht+(Wn===0?0:Ae)+Ia.width),wi=oi;Sn++}switch(0<Wn&&(y?(st+=Math.max(0,x),Ni<Ke&&ic(a,oe,Ke-Ni,0,vr,re-1),0<Be&&(le||Gc(a,Be,0,0,re-1),Ke+=Be)):(Ke+=Math.max(0,x),wi<st&&ic(a,oe,0,st-wi,vr,re-1),0<Be&&(le||Gc(a,0,Be,0,re-1),st+=Be))),Be=le=0,oe){case $f:y?le+=Ke/2-a.focus.x-Pe/2:Be+=st/2-a.focus.y-Pe/2;break;case Yc:0<Wn?y?le+=Ke/2-a.focus.x-Pe/2:Be+=st/2-a.focus.y-Pe/2:y?(sr=ee[0].S.x+ee[0].la.x,le+=sr+(ee[re-1].S.x+ee[re-1].la.x+2*ee[re-1].focus.x-sr)/2-a.focus.x-Pe/2):(sr=ee[0].S.y+ee[0].la.y,Be+=sr+(ee[re-1].S.y+ee[re-1].la.y+2*ee[re-1].focus.y-sr)/2-a.focus.y-Pe/2);break;case Gu:y?(le-=Pe,Ke+=Pe):(Be-=Pe,st+=Pe);break;case Vu:y?(le+=Ke-a.width+Pe,Ke+=Pe):(Be+=st-a.height+Pe,st+=Pe);break;case Oh:y?1<re?le+=sr+Se/2-a.focus.x:le+=ee[0].focus.x-a.focus.x+ee[0].la.x:1<re?Be+=sr+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+=st+Se/2-a.focus.y;break;case ah:break;default:st=this.customAlignment(a,le,Be,Ke,st),le=st[0],Be=st[1],Ke=st[2],st=st[3]}for(Pe=0;Pe<re;Pe++)sr=ee[Pe],y?sr.S.h(sr.S.x+sr.la.x-le,sr.S.y+(135<b?(he?-st:-sr.Da.height)+sr.la.y-x:qe+x+sr.la.y)):sr.S.h(sr.S.x+(135<b?(he?-Ke:-sr.Da.width)+sr.la.x-x:E+x+sr.la.x),sr.S.y+sr.la.y-Be);if(re=ee=0,he?y?(Ke=ky(a,Ke,le),0>le&&(le=0),135<b&&(Be+=st+x),st+=qe+x,oe===ah&&(ee+=Se/2+a.focus.x),re+=qe+x):(135<b&&(le+=Ke+x),Ke+=E+x,st=By(a,st,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+=st+x),st=Math.max(Math.max(st,qe),st+qe+x),re+=qe+x):(135<b&&(le+=Ke+x),Ke=Math.max(Math.max(Ke,E),Ke+E+x),a.comments===null?qe>st&&(st=Ny(oe,0,qe-st),ee=st.x,re=st.y,st=qe,Be=0):st=By(a,st,Be),0>Be&&(re-=Be,Be=0),ee+=E+x),0<Wn)b=Ys(this,4),Wn=Ys(this,4),y?(b[2].h(0,qe+x),b[3].h(b[2].x,st),Wn[2].h(Ke,b[2].y),Wn[3].h(Wn[2].x,b[3].y)):(b[2].h(E+x,0),b[3].h(Ke,b[2].y),Wn[2].h(b[2].x,st),Wn[3].h(b[3].x,Wn[2].y));else{for(b=Ys(this,ft.length+2),Wn=Ys(this,Ct.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<Ct.length;oe++)he=Ct[oe],Wn[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])),Wn[0].h(le+E,0),Wn[1].h(Wn[0].x,qe),Wn[2].y<Wn[1].y&&(Wn[2].x<Wn[0].x?Wn[2].assign(Wn[1]):Wn[1].assign(Wn[2])),Wn[3].y<Wn[2].y&&(Wn[3].x<Wn[0].x?Wn[3].assign(Wn[2]):Wn[2].assign(Wn[3])),b[2].y-=x/2,Wn[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])),Wn[0].h(0,Be+qe),Wn[1].h(E,Wn[0].y),Wn[2].x<Wn[1].x&&(Wn[2].y<Wn[0].y?Wn[2].assign(Wn[1]):Wn[1].assign(Wn[2])),Wn[3].x<Wn[2].x&&(Wn[3].y<Wn[0].y?Wn[3].assign(Wn[2]):Wn[2].assign(Wn[3])),b[2].x-=x/2,Wn[2].x-=x/2),uu(this,ft),uu(this,Ct),a.Yo=b,a.kp=Wn,a.la.h(le,Be),a.Da.h(Ke,st)}break;default:ut("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 st=y.height,ht=0,ft=0,Ct=0,Gt=0,oi=0,Ni=0,wi=0,Wn=0,Sn=0,vr=0;if(re&&!bp(le)&&135<E&&b.reverse(),bp(le))if(1<ee)for(var sr=0;sr<ee;sr++){var ro=b[sr],zo=ro.Da;sr%2===0&&sr!==ee-1?Sn=Math.max(Sn,(x?zo.width:zo.height)+a.computeBusNodeSpacing(ro)-Pe):sr%2!==0&&(vr=Math.max(vr,(x?zo.width:zo.height)+a.computeBusNodeSpacing(ro)-Pe))}else ee===1&&(Sn=x?b[0].Da.width:b[0].Da.height);if(re)switch(le){case Oh:case Yu:ft=135>E?fx(a,y,b,Sn,ht,ft):gx(a,y,b,Sn,ht,ft),Sn=ft.x,ht=ft.width,ft=ft.height;break;case Ih:for(Se=0;Se<ee;Se++)Be=b[Se],Ct=Be.Da,vr=wi===0?0:qe,x?(Be.S.h(z-Ct.width,oi+vr),ht=Math.max(ht,Ct.width),ft=Math.max(ft,oi+vr+Ct.height),oi+=vr+Ct.height):(Be.S.h(Gt+vr,z-Ct.height),ht=Math.max(ht,Gt+vr+Ct.width),ft=Math.max(ft,Ct.height),Gt+=vr+Ct.width),wi++;break;case ah:for(z=0;z<ee;z++)Se=b[z],Be=Se.Da,Ct=wi===0?0:qe,x?(Se.S.h(Pe/2+y.focus.x,oi+Ct),ht=Math.max(ht,Be.width),ft=Math.max(ft,oi+Ct+Be.height),oi+=Ct+Be.height):(Se.S.h(Gt+Ct,Pe/2+y.focus.y),ht=Math.max(ht,Gt+Ct+Be.width),ft=Math.max(ft,Be.height),Gt+=Ct+Be.width),wi++}else for(vr=0;vr<ee;vr++)sr=b[vr],ro=sr.Da,x?(0<Se&&0<wi&&Gt+Pe+ro.width>Se&&(Gt<z&&ic(y,le,z-Gt,0,Wn,vr-1),Ni++,wi=0,Wn=vr,Ct=ft,Gt=0,oi=135<E?-ft-qe:ft+qe),zo=wi===0?Be:Pe,Tm(a,sr,0,oi),sr.S.h(Gt+zo,oi),ht=Math.max(ht,Gt+zo+ro.width),ft=Math.max(ft,Ct+(Ni===0?0:qe)+ro.height),Gt+=zo+ro.width):(0<Se&&0<wi&&oi+Pe+ro.height>Se&&(oi<z&&ic(y,le,0,z-oi,Wn,vr-1),Ni++,wi=0,Wn=vr,Ct=ht,oi=0,Gt=135<E?-ht-qe:ht+qe),zo=wi===0?Be:Pe,Tm(a,sr,Gt,0),sr.S.h(Gt,oi+zo),ft=Math.max(ft,oi+zo+ro.height),ht=Math.max(ht,Ct+(Ni===0?0:qe)+ro.width),oi+=zo+ro.height),wi++;switch(0<Ni&&(x?(ft+=Math.max(0,oe),Gt<ht&&ic(y,le,ht-Gt,0,Wn,ee-1),0<Ke&&(ge||Gc(y,Ke,0,0,ee-1),ht+=Ke)):(ht+=Math.max(0,oe),oi<ft&&ic(y,le,0,ft-oi,Wn,ee-1),0<Ke&&(ge||Gc(y,0,Ke,0,ee-1),ft+=Ke))),Ke=ge=0,le){case $f:x?ge+=ht/2-y.focus.x-Ae/2:Ke+=ft/2-y.focus.y-Ae/2;break;case Yc:0<Ni?x?ge+=ht/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,ht+=Ae):(Ke-=Ae,ft+=Ae);break;case Vu:x?(ge+=ht-y.width+Ae,ht+=Ae):(Ke+=ft-y.height+Ae,ft+=Ae);break;case Oh:case Yu:x?1<ee?ge+=Sn+Pe/2-y.focus.x:ge+=b[0].focus.x-y.focus.x+b[0].la.x:1<ee?Ke+=Sn+Pe/2-y.focus.y:Ke+=b[0].focus.y-y.focus.y+b[0].la.y;break;case Ih:x?ge+=ht+Pe/2-y.focus.x:Ke+=ft+Pe/2-y.focus.y;break;case ah:break;default:a=a.customAlignment(y,ge,Ke,ht,ft),ge=a[0],Ke=a[1],ht=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:st+oe+Ae.la.y)):Ae.S.h(Ae.S.x+(135<E?(re?-ht:-Ae.Da.width)+Ae.la.x-oe:he+oe+Ae.la.x),Ae.S.y+Ae.la.y-Ke);x?(ht=ky(y,ht,ge),0>ge&&(ge=0),135<E&&(Ke+=ft+oe),ft=Math.max(Math.max(ft,st),ft+st+oe)):(135<E&&(ge+=ht+oe),ht=Math.max(Math.max(ht,he),ht+he+oe),ft=By(y,ft,Ke),0>Ke&&(Ke=0)),y.la.h(ge,Ke),y.Da.h(ht,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 pt(E,0,b,z);if(ee===1)return y=x[0],b=y.Da.width,z=y.Da.height,new pt(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 st=he===0?0:oe;if(le){var ht=a.computeBusNodeSpacing(qe)-re;qe.S.h(ge+ht,Se+st),b=Math.max(b,ge+Ke.width+ht),z=Math.max(z,Se+st+Ke.height),Se+=st+Ke.height}else ht=a.computeBusNodeSpacing(qe)-re,qe.S.h(ge+st,Se+ht),b=Math.max(b,ge+st+Ke.width),z=Math.max(z,Se+Ke.height+ht),ge+=st+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 pt(E,0,b,z)}function gx(a,y,x,E,b,z){var ee=x.length;if(ee===0)return new pt(E,0,b,z);if(ee===1)return x=x[0],b=x.Da.width,z=x.Da.height,new pt(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 st=he===0?0:oe;if(le){var ht=a.computeBusNodeSpacing(qe)-re;Se-=st+Ke.height,qe.S.h(ge+ht,Se),b=Math.max(b,ge+Ke.width+ht),z=Math.max(z,Math.abs(Se))}else ht=a.computeBusNodeSpacing(qe)-re,ge-=st+Ke.width,qe.S.h(ge,Se+ht),z=Math.max(z,Se+Ke.height+ht),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 pt(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:ut("Unhandled alignment value "+a.toString())}return new Ze(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:ut("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 st=qe;qe=st.x,st=st.y,b+1<Pe.length&&(st=Pe[b+1],qe=st.x,st=st.y,qe+=E);var ht=Se;z.y===le?ht=oe-z.x:z.y>le&&z.y<st?ht=oe+(z.y-le)/(st-le)*(qe-oe)-z.x:le>z.y&&le<Ke.y&&(ht=oe-(z.x+(le-z.y)/(Ke.y-z.y)*(Ke.x-z.x))),ht<Se&&(Se=ht),Ke.y<=z.y?x++:st<=le?b++:(Ke.y<=st&&x++,st<=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 pt(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]),st=qe,qe=st.x,st=st.y,b+1<Pe.length&&(st=Pe[b+1],qe=st.x,st=st.y,st+=Se),ht=E,z.x===oe?ht=le-z.y:z.x>oe&&z.x<qe?ht=le+(z.x-oe)/(qe-oe)*(st-le)-z.y:oe>z.x&&oe<Ke.x&&(ht=le-(z.y+(oe-z.x)/(Ke.x-z.x)*(Ke.y-z.y))),ht<E&&(E=ht),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 pt(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 Ze;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:ut("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:ut("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 Ze(-this.nodeSpacing/2,-this.layerSpacing/2)):(x.Bc(this.layerSpacing,this.nodeSpacing/2),E=new Ze(-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 pt(0,z,x,re))):this.angle===90?(b.push(new pt(0,z,x,re)),z+=re):this.angle===180?(z-=re,b.push(new pt(z,0,re,x))):(b.push(new pt(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=ho;break;case 90:b=bo;break;case 180:b=ao;break;default:b=Ur}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?ao:Ur;if(ee===1||y===ee-1&&ee%2===1)switch(E){case 0:oe=ao;break;case 90:oe=Ur;break;case 180:oe=ho;break;default:oe=bo}else y%2===0&&(oe=E===90||E===270?ho:bo);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?ho:bo,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?ao:Ur,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=ho;break;case 90:E.fromSpot=bo;break;case 180:E.fromSpot=ao;break;default:E.fromSpot=Ur}else E.fromSpot=a.portSpot;if(a.setsChildPortSpot)if(a.childPortSpot.Xb())switch(x){case 0:E.toSpot=ao;break;case 90:E.toSpot=Ur;break;case 180:E.toSpot=ho;break;default:E.toSpot=bo}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=ho;break;case 90:E.toSpot=bo;break;case 180:E.toSpot=ao;break;default:E.toSpot=Ur}else E.toSpot=a.portSpot;if(a.setsChildPortSpot)if(a.childPortSpot.Xb())switch(x){case 0:E.fromSpot=ao;break;case 90:E.fromSpot=Ur;break;case 180:E.fromSpot=ho;break;default:E.fromSpot=bo}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)},mn.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()):ut("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 Kt(zr,"PathDefault",-1),Hu=new Kt(zr,"PathDestination",0),Vc=new Kt(zr,"PathSource",1),qf=new Kt(zr,"SortingForwards",10),Dp=new Kt(zr,"SortingReverse",11),kp=new Kt(zr,"SortingAscending",12),Bp=new Kt(zr,"SortingDescending",13),$f=new Kt(zr,"AlignmentCenterSubtrees",20),Yc=new Kt(zr,"AlignmentCenterChildren",21),Gu=new Kt(zr,"AlignmentStart",22),Vu=new Kt(zr,"AlignmentEnd",23),Oh=new Kt(zr,"AlignmentBus",24),Yu=new Kt(zr,"AlignmentBusBranching",25),Ih=new Kt(zr,"AlignmentTopLeftBus",26),ah=new Kt(zr,"AlignmentBottomRightBus",27),Rm=new Kt(zr,"CompactionNone",30),Np=new Kt(zr,"CompactionBlock",31),jm=new Kt(zr,"StyleLayered",40),Oy=new Kt(zr,"StyleLastParents",41),Iy=new Kt(zr,"StyleAlternating",42),Ry=new Kt(zr,"StyleRootOnly",43),zm=new Kt(zr,"ArrangementVertical",50),jy=new Kt(zr,"ArrangementHorizontal",51),Zm=new Kt(zr,"ArrangementFixedRoots",52),zy=new Kt(zr,"LayerIndividual",60),Zy=new Kt(zr,"LayerSiblings",61),Wm=new Kt(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 _c(a){Ho.call(this,a)}jt(_c,Ho),_c.prototype.createVertex=function(){return new zl(this)},_c.prototype.createEdge=function(){return new eg(this)},_c.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 Ze(0,0),this.Da=new Xe(0,0),this.la=new Ze(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=Co,this.wr=!0,this.Dp=Co}jt(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)},mn.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 Ze(0,0)}jt(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:ut("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))):ut("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()))}}},mn.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",Eo.prototype.initializeStandardTools=function(){this.gb("Action",new Bl,this.mouseDownTools),this.gb("Relinking",new ol,this.mouseDownTools),this.gb("LinkReshaping",new ya,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 Uo,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 Xo,this.mouseUpTools),this.gb("ClickCreating",new mh,this.mouseUpTools),this.gb("ClickSelecting",new Kh,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=Zn.go,Wy={get licenseKey(){return Vt.licenseKey},set licenseKey(a){Vt.licenseKey=a},get version(){return Vt.version},Group:xr,EnumValue:Kt,List:An,Set:Fn,Map:Ht,Point:Ze,Size:Xe,Rect:pt,Margin:ii,Spot:bn,Geometry:wn,PathFigure:aa,PathSegment:Wr,InputEvent:Ta,DiagramEvent:bl,ChangedEvent:Go,Model:Ri,GraphLinksModel:Xr,TreeModel:bs,Binding:xa,Transaction:pa,UndoManager:Jo,CommandHandler:Je,Tool:Yr,DraggingTool:Uo,DraggingInfo:eh,DraggingOptions:ae,LinkingBaseTool:$r,LinkingTool:hs,RelinkingTool:ol,LinkReshapingTool:ya,ResizingTool:ss,RotatingTool:xs,ClickSelectingTool:Kh,ActionTool:Bl,ClickCreatingTool:mh,HTMLInfo:Su,ContextMenuTool:Ps,DragSelectingTool:vl,PanningTool:is,TextEditingTool:Xo,ToolManager:Eo,Animation:rs,AnimationManager:Js,AnimationTrigger:_l,Layer:_a,Diagram:Vt,Palette:fe,Overview:me,Brush:So,GraphObject:At,Panel:On,RowColumnDefinition:La,Shape:Fr,TextBlock:Wo,Picture:Rs,Part:Xi,Adornment:eo,Node:si,Link:Gn,Placeholder:As,Layout:ea,LayoutNetwork:Ho,LayoutVertex:Ba,LayoutEdge:el,GridLayout:Ja,PanelLayout:ka,CircularLayout:ra,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:_c,TreeVertex:zl,TreeEdge:eg};typeof Hm=="object"&&Hm.version&&In("WARNING: a `go` object on the root object is already defined. "+("Debug"in Hm?"debug ":"")+"version: "+Hm.version+", replaced with version: "+Wy.version),Vt.prototype.go=Wy,Zn.go=Wy,typeof gn.exports=="object"&&(gn.exports=typeof we.g!="undefined"?we.g.go:self.go)}();var ve=typeof we.g!="undefined"?we.g.go:self.go;const _e=typeof we.g!="undefined"?we.g.go:self.go,lt=_e.Group,it=_e.EnumValue,rt=_e.List,ze=_e.Set,Ue=_e.Map,yt=_e.Point,tt=_e.Size,De=_e.Rect,xt=_e.Margin,Ve=_e.Spot,ct=_e.Geometry,Ee=_e.PathFigure,ne=_e.PathSegment,te=_e.InputEvent,ue=_e.DiagramEvent,se=_e.ChangedEvent,de=_e.Model,pe=_e.GraphLinksModel,ye=_e.TreeModel,Ce=_e.Binding,je=_e.Transaction,Te=_e.UndoManager,Ie=_e.CommandHandler,Oe=_e.Tool,Re=_e.DraggingTool,nt=_e.DraggingInfo,ot=_e.LinkingBaseTool,wt=_e.LinkingTool,gt=_e.RelinkingTool,Dt=_e.LinkReshapingTool,Lt=_e.ResizingTool,It=_e.RotatingTool,Tt=_e.ClickSelectingTool,nn=_e.ActionTool,at=_e.ClickCreatingTool,He=_e.HTMLInfo,Rt=_e.ContextMenuTool,Zt=_e.DragSelectingTool,Yt=_e.PanningTool,Mt=_e.TextEditingTool,zt=_e.ToolManager,on=_e.Animation,Dn=_e.AnimationManager,kt=_e.AnimationTrigger,vt=_e.Layer,hn=_e.Diagram,li=_e.Palette,yi=_e.Overview,We=_e.Brush,Fe=_e.GraphObject,xe=_e.Panel,Ne=_e.RowColumnDefinition,Ye=_e.Shape,ke=_e.TextBlock,et=_e.TextBlockMetrics,_t=_e.Picture,Bt=_e.Part,rn=_e.Adornment,Ot=_e.Node,bt=_e.Link,Wt=_e.Placeholder,Xt=_e.Layout,pn=_e.LayoutNetwork,$n=_e.LayoutVertex,Cn=_e.LayoutEdge,Ln=_e.GridLayout,Ci=_e.PanelLayout,Jn=_e.CircularLayout,Di=_e.CircularNetwork,ui=_e.CircularVertex,Bi=_e.CircularEdge,Ui=_e.ForceDirectedLayout,ir=_e.ForceDirectedNetwork,Ir=_e.ForceDirectedVertex,qi=_e.ForceDirectedEdge,ri=_e.LayeredDigraphLayout,co=_e.LayeredDigraphNetwork,Qr=_e.LayeredDigraphVertex,to=_e.LayeredDigraphEdge,no=_e.TreeLayout,xo=_e.TreeNetwork,lo=_e.TreeVertex,Er=_e.TreeEdge,io=_e.version},2859:function(gn,en,we){"use strict";we.d(en,{hP:function(){return yi}});var ve=function(We,Fe){return(ve=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(xe,Ne){xe.__proto__=Ne}||function(xe,Ne){for(var Ye in Ne)Object.prototype.hasOwnProperty.call(Ne,Ye)&&(xe[Ye]=Ne[Ye])})(We,Fe)};function _e(We,Fe){function xe(){this.constructor=We}ve(We,Fe),We.prototype=Fe===null?Object.create(Fe):(xe.prototype=Fe.prototype,new xe)}function lt(We,Fe,xe,Ne){return new(xe||(xe=Promise))(function(Ye,ke){function et(rn){try{Bt(Ne.next(rn))}catch(Ot){ke(Ot)}}function _t(rn){try{Bt(Ne.throw(rn))}catch(Ot){ke(Ot)}}function Bt(rn){var Ot;rn.done?Ye(rn.value):(Ot=rn.value,Ot instanceof xe?Ot:new xe(function(bt){bt(Ot)})).then(et,_t)}Bt((Ne=Ne.apply(We,Fe||[])).next())})}function it(We,Fe){var xe,Ne,Ye,ke,et={label:0,sent:function(){if(1&Ye[0])throw Ye[1];return Ye[1]},trys:[],ops:[]};return ke={next:_t(0),throw:_t(1),return:_t(2)},typeof Symbol=="function"&&(ke[Symbol.iterator]=function(){return this}),ke;function _t(Bt){return function(rn){return function(Ot){if(xe)throw new TypeError("Generator is already executing.");for(;et;)try{if(xe=1,Ne&&(Ye=2&Ot[0]?Ne.return:Ot[0]?Ne.throw||((Ye=Ne.return)&&Ye.call(Ne),0):Ne.next)&&!(Ye=Ye.call(Ne,Ot[1])).done)return Ye;switch(Ne=0,Ye&&(Ot=[2&Ot[0],Ye.value]),Ot[0]){case 0:case 1:Ye=Ot;break;case 4:return et.label++,{value:Ot[1],done:!1};case 5:et.label++,Ne=Ot[1],Ot=[0];continue;case 7:Ot=et.ops.pop(),et.trys.pop();continue;default:if(Ye=et.trys,!((Ye=Ye.length>0&&Ye[Ye.length-1])||Ot[0]!==6&&Ot[0]!==2)){et=0;continue}if(Ot[0]===3&&(!Ye||Ot[1]>Ye[0]&&Ot[1]<Ye[3])){et.label=Ot[1];break}if(Ot[0]===6&&et.label<Ye[1]){et.label=Ye[1],Ye=Ot;break}if(Ye&&et.label<Ye[2]){et.label=Ye[2],et.ops.push(Ot);break}Ye[2]&&et.ops.pop(),et.trys.pop();continue}Ot=Fe.call(We,et)}catch(bt){Ot=[6,bt],Ne=0}finally{xe=Ye=0}if(5&Ot[0])throw Ot[1];return{value:Ot[0]?Ot[1]:void 0,done:!0}}([Bt,rn])}}}function rt(){for(var We=0,Fe=0,xe=arguments.length;Fe<xe;Fe++)We+=arguments[Fe].length;var Ne=Array(We),Ye=0;for(Fe=0;Fe<xe;Fe++)for(var ke=arguments[Fe],et=0,_t=ke.length;et<_t;et++,Ye++)Ne[Ye]=ke[et];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,Ye=xe;Ne<Ye.length;Ne++){var ke=Ye[Ne],et=ke[0],_t=ke[1];Fe.setAttribute(et,_t)}},We.createRect=function(Fe,xe,Ne){var Ye=document.createElementNS("http://www.w3.org/2000/svg","rect");return Ye.setAttribute("width",Fe.toString()),Ye.setAttribute("height",xe.toString()),Ne&&We.setAttributes(Ye,Ne),Ye},We.createLine=function(Fe,xe,Ne,Ye,ke){var et=document.createElementNS("http://www.w3.org/2000/svg","line");return et.setAttribute("x1",Fe.toString()),et.setAttribute("y1",xe.toString()),et.setAttribute("x2",Ne.toString()),et.setAttribute("y2",Ye.toString()),ke&&We.setAttributes(et,ke),et},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 Ye=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return Ye.setAttribute("cx",(Fe/2).toString()),Ye.setAttribute("cy",(xe/2).toString()),Ye.setAttribute("rx",(Fe/2).toString()),Ye.setAttribute("ry",(xe/2).toString()),Ne&&We.setAttributes(Ye,Ne),Ye},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,Ye,ke,et,_t){var Bt=document.createElementNS("http://www.w3.org/2000/svg","marker");return We.setAttributes(Bt,[["id",Fe],["orient",xe],["markerWidth",Ne.toString()],["markerHeight",Ye.toString()],["refX",ke.toString()],["refY",et.toString()]]),Bt.appendChild(_t),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}(),yt=function(){function We(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return We.prototype.rasterize=function(Fe,xe,Ne){var Ye=this;return new Promise(function(ke){var et=Ne!==void 0?Ne:document.createElement("canvas");Fe===null&&(Ye.markersOnly=!0,Ye.naturalSize=!1);var _t=document.createElementNS("http://www.w3.org/2000/svg","svg");_t.setAttribute("xmlns","http://www.w3.org/2000/svg"),_t.setAttribute("width",xe.width.baseVal.valueAsString),_t.setAttribute("height",xe.height.baseVal.valueAsString),_t.setAttribute("viewBox","0 0 "+xe.viewBox.baseVal.width.toString()+" "+xe.viewBox.baseVal.height.toString()),_t.innerHTML=xe.innerHTML,Ye.naturalSize===!0?(_t.width.baseVal.value=Fe.naturalWidth,_t.height.baseVal.value=Fe.naturalHeight):Ye.width!==void 0&&Ye.height!==void 0&&(_t.width.baseVal.value=Ye.width,_t.height.baseVal.value=Ye.height),et.width=_t.width.baseVal.value,et.height=_t.height.baseVal.value;var Bt=_t.outerHTML,rn=et.getContext("2d");Ye.markersOnly!==!0&&rn.drawImage(Fe,0,0,et.width,et.height);var Ot=window.URL,bt=new Image(et.width,et.height);bt.setAttribute("crossOrigin","anonymous");var Wt=new Blob([Bt],{type:"image/svg+xml"}),Xt=Ot.createObjectURL(Wt);bt.onload=function(){rn.drawImage(bt,0,0),Ot.revokeObjectURL(Xt);var pn=et.toDataURL(Ye.imageType,Ye.imageQuality);ke(pn)},bt.src=Xt})},We}(),tt=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 xt("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new xt("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
from {
opacity: 0;
}
to {
opacity: 1;
}
`)),this.addRule(new xt("@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}(),xt=function(We,Fe){this.selector=We,this.style=Fe},Ve=function(We,Fe){this.localName=We,this.style=Fe},ct=function(){function We(Fe,xe,Ne,Ye,ke){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=Fe,this.displayMode=xe,this.markerItems=Ne,this.uiStyleSettings=Ye,this.styles=ke,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(ke){var et=document.createElement("div");et.className=""+xe.toolbarButtonStyleClass.name,et.setAttribute("data-type-name",ke.typeName),et.innerHTML=ke.icon,et.addEventListener("click",function(){xe.markerToolbarButtonClicked(et,ke)}),xe.buttons.push(et),xe.markerButtons.push(et)}),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 Ye=document.createElement("div");Ye.className=this.toolbarBlockStyleClass.name,Ye.style.whiteSpace="nowrap",Ye.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(Ye),this.addActionButton(Ye,'<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(Ye,'<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 Ye=this,ke=document.createElement("div");switch(ke.className=""+this.toolbarButtonStyleClass.name,ke.innerHTML=xe,ke.setAttribute("data-action",Ne),ke.addEventListener("click",function(){Ye.actionToolbarButtonClicked(ke,Ne)}),Ne){case"select":ke.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":ke.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":ke.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":ke.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":ke.style.fill=this.uiStyleSettings.closeButtonColor}Fe.appendChild(ke),this.buttons.push(ke)},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 xt("."+this.toolbarButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`)),this.styles.addRule(new xt("."+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,Ye){this.panels=[],this.panelButtons=[],this.markerjsContainer=Fe,this.displayMode=xe,this.uiStyleSettings=Ne,this.styles=Ye,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 xt("."+this.toolboxButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new xt("."+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,Ye=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(ke){var et;ke.uiStyleSettings=Ye.uiStyleSettings;var _t=document.createElement("div");_t.className=Ye.toolboxButtonStyleClass.name+" "+((et=Ye.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&et!==void 0?et:Ye.toolboxButtonStyleColorsClass.name),_t.innerHTML=ke.icon,_t.title=ke.title,_t.addEventListener("click",function(){Ye.panelButtonClick(ke)}),Ye.panelButtons.push(_t),Ye.buttonRow.appendChild(_t)}),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 Ye=Fe.getUi();Ye.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(Ye),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(ke,et){var _t,Bt;ke.className=xe.toolboxButtonStyleClass.name+" "+(et===Ne?""+((_t=xe.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&_t!==void 0?_t:xe.toolboxActiveButtonStyleColorsClass.name):""+((Bt=xe.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Bt!==void 0?Bt:xe.toolboxButtonStyleColorsClass.name))})},We}(),ne=function(We,Fe){this.title=We,this.icon=Fe},te=function(We){function Fe(xe,Ne,Ye,ke){var et=We.call(this,xe,ke||'<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 et.colors=[],et.addTransparent=!1,et.colorBoxes=[],et.colors=Ne,et.currentColor=Ye,et.setCurrentColor=et.setCurrentColor.bind(et),et.getColorBox=et.getColorBox.bind(et),et}return _e(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(Ye){var ke=xe.getColorBox(Ye);Ne.appendChild(ke),xe.colorBoxes.push(ke)}),Ne},Fe.prototype.getColorBox=function(xe){var Ne=this,Ye=this.uiStyleSettings.toolbarHeight/4,ke=this.uiStyleSettings.toolbarHeight-Ye,et=document.createElement("div");et.style.display="inline-block",et.style.boxSizing="content-box",et.style.width=ke-2+"px",et.style.height=ke-2+"px",et.style.padding="1px",et.style.marginRight="2px",et.style.marginBottom="2px",et.style.borderWidth="2px",et.style.borderStyle="solid",et.style.borderRadius=(ke+2)/2+"px",et.style.borderColor=xe===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",et.addEventListener("click",function(){Ne.setCurrentColor(xe,et)});var _t=document.createElement("div");return _t.style.display="inline-block",_t.style.width=ke-2+"px",_t.style.height=ke-2+"px",_t.style.backgroundColor=xe,_t.style.borderRadius=ke/2+"px",xe==="transparent"&&(_t.style.fill=this.uiStyleSettings.toolboxAccentColor,_t.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>`),et.appendChild(_t),et},Fe.prototype.setCurrentColor=function(xe,Ne){var Ye=this;this.currentColor=xe,this.colorBoxes.forEach(function(ke){ke.style.borderColor=ke===Ne?Ye.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(xe)},Fe}(ne),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,Ye){var ke=We.call(this,xe,Ne,Ye)||this;return ke.left=0,ke.top=0,ke.width=0,ke.height=0,ke.defaultSize={x:50,y:20},ke.offsetX=0,ke.offsetY=0,ke.rotationAngle=0,ke.CB_DISTANCE=10,ke._suppressMarkerCreateEvent=!1,ke.container.transform.baseVal.appendItem(ze.createTransform()),ke.setupControlBox(),ke}return _e(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 Ye=this.unrotatePoint(xe);if(this.manipulationStartX=Ye.x,this.manipulationStartY=Ye.y,this.offsetX=Ye.x-this.left,this.offsetY=Ye.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 ke=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=ke.x-this.width/2,this.top=ke.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var et=this.container.transform.baseVal.getItem(0);et.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(et,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,Ye=this.manipulationStartWidth,ke=this.manipulationStartTop,et=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:Ne=this.manipulationStartLeft+xe.x-this.manipulationStartX,Ye=this.manipulationStartWidth+this.manipulationStartLeft-Ne;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:Ye=this.manipulationStartWidth+xe.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:ke=this.manipulationStartTop+xe.y-this.manipulationStartY,et=this.manipulationStartHeight+this.manipulationStartTop-ke;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:et=this.manipulationStartHeight+xe.y-this.manipulationStartY}Ye>=0?(this.left=Ne,this.width=Ye):(this.left=Ne+Ye,this.width=-Ye),et>=0?(this.top=ke,this.height=et):(this.top=ke+et,this.height=-et),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(),Ye=ze.createPoint(xe.x,xe.y);return{x:(Ye=Ye.matrixTransform(Ne)).x,y:Ye.y}},Fe.prototype.unrotatePoint=function(xe){if(this.rotationAngle===0)return xe;var Ne=this.container.getCTM();Ne=Ne.inverse();var Ye=ze.createPoint(xe.x,xe.y);return{x:(Ye=Ye.matrixTransform(Ne)).x,y:Ye.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,Ye=Ne,ke=(this.width+this.CB_DISTANCE)/2-xe/2,et=(this.height+this.CB_DISTANCE)/2-xe/2,_t=this.height+this.CB_DISTANCE-xe/2,Bt=this.width+this.CB_DISTANCE-xe/2;this.positionGrip(this.controlGrips.topLeft.visual,Ne,Ye),this.positionGrip(this.controlGrips.topCenter.visual,ke,Ye),this.positionGrip(this.controlGrips.topRight.visual,Bt,Ye),this.positionGrip(this.controlGrips.centerLeft.visual,Ne,et),this.positionGrip(this.controlGrips.centerRight.visual,Bt,et),this.positionGrip(this.controlGrips.bottomLeft.visual,Ne,_t),this.positionGrip(this.controlGrips.bottomCenter.visual,ke,_t),this.positionGrip(this.controlGrips.bottomRight.visual,Bt,_t),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,ke,Ye-3*this.CB_DISTANCE)},Fe.prototype.positionGrip=function(xe,Ne,Ye){var ke=xe.transform.baseVal.getItem(0);ke.setTranslate(Ne,Ye),xe.transform.baseVal.replaceItem(ke,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 Ye=this.rotatePoint({x:this.left,y:this.top}),ke=this.unrotatePoint({x:Ye.x*xe,y:Ye.y*Ne});this.left=ke.x,this.top=ke.y,this.width=this.width*xe,this.height=this.height*Ne,this.adjustControlBox()},Fe}(ue),Ce=function(We){function Fe(xe,Ne,Ye){var ke=We.call(this,xe,Ne,Ye)||this;return ke.fillColor="transparent",ke.strokeColor="transparent",ke.strokeWidth=0,ke.strokeDasharray="",ke.opacity=1,ke.setStrokeColor=ke.setStrokeColor.bind(ke),ke.setFillColor=ke.setFillColor.bind(ke),ke.setStrokeWidth=ke.setStrokeWidth.bind(ke),ke.setStrokeDasharray=ke.setStrokeDasharray.bind(ke),ke.createVisual=ke.createVisual.bind(ke),ke}return _e(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),je=function(We){function Fe(xe,Ne,Ye,ke){var et=We.call(this,xe,ke||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return et.widths=[],et.widthBoxes=[],et.widths=Ne,et.currentWidth=Ye,et.setCurrentWidth=et.setCurrentWidth.bind(et),et}return _e(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(Ye){var ke=document.createElement("div");ke.style.display="flex",ke.style.flexGrow="2",ke.style.alignItems="center",ke.style.justifyContent="space-between",ke.style.padding="5px",ke.style.borderWidth="2px",ke.style.borderStyle="solid",ke.style.borderColor=Ye===xe.currentWidth?xe.uiStyleSettings.toolboxAccentColor:"transparent",ke.addEventListener("click",function(){xe.setCurrentWidth(Ye,ke)}),Ne.appendChild(ke);var et=document.createElement("div");et.innerText=Ye.toString(),et.style.marginRight="5px",ke.appendChild(et);var _t=document.createElement("div");_t.style.minHeight="20px",_t.style.flexGrow="2",_t.style.display="flex",_t.style.alignItems="center";var Bt=document.createElement("hr");Bt.style.minWidth="20px",Bt.style.border="0px",Bt.style.borderTop=Ye+"px solid "+xe.uiStyleSettings.toolboxColor,Bt.style.flexGrow="2",_t.appendChild(Bt),ke.appendChild(_t),xe.widthBoxes.push(ke)}),Ne},Fe.prototype.setCurrentWidth=function(xe,Ne){var Ye=this;this.currentWidth=xe,this.widthBoxes.forEach(function(ke){ke.style.borderColor=ke===Ne?Ye.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},Fe}(ne),Te=function(We){function Fe(xe,Ne,Ye,ke){var et=We.call(this,xe,ke||'<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 et.styles=[],et.styleBoxes=[],et.styles=Ne,et.currentStyle=Ye,et.setCurrentStyle=et.setCurrentStyle.bind(et),et}return _e(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(Ye){var ke=document.createElement("div");ke.style.display="flex",ke.style.alignItems="center",ke.style.justifyContent="space-between",ke.style.padding="5px",ke.style.borderWidth="2px",ke.style.borderStyle="solid",ke.style.overflow="hidden",ke.style.maxWidth=100/xe.styles.length-5+"%",ke.style.borderColor=Ye===xe.currentStyle?xe.uiStyleSettings.toolboxAccentColor:"transparent",ke.addEventListener("click",function(){xe.setCurrentStyle(Ye,ke)}),Ne.appendChild(ke);var et=document.createElement("div");et.style.minHeight="20px",et.style.flexGrow="2",et.style.overflow="hidden";var _t=`<svg width="100" height="20">
<line x1="0" y1="10" x2="100" y2="10" stroke="`+xe.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(Ye!==""?'stroke-dasharray="'+Ye+'"':"")+` />
</svg>`;et.innerHTML=_t,ke.appendChild(et),xe.styleBoxes.push(ke)}),Ne},Fe.prototype.setCurrentStyle=function(xe,Ne){var Ye=this;this.currentStyle=xe,this.styleBoxes.forEach(function(ke){ke.style.borderColor=ke===Ne?Ye.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},Fe}(ne),Ie=function(We){function Fe(xe,Ne,Ye){var ke=We.call(this,xe,Ne,Ye)||this;return ke.strokeColor=Ye.defaultColor,ke.strokeWidth=Ye.defaultStrokeWidth,ke.strokeDasharray=Ye.defaultStrokeDasharray,ke.strokePanel=new te("Line color",Ye.defaultColorSet,Ye.defaultColor),ke.strokePanel.onColorChanged=ke.setStrokeColor,ke.strokeWidthPanel=new je("Line width",Ye.defaultStrokeWidths,Ye.defaultStrokeWidth),ke.strokeWidthPanel.onWidthChanged=ke.setStrokeWidth,ke.strokeStylePanel=new Te("Line style",Ye.defaultStrokeDasharrays,Ye.defaultStrokeDasharray),ke.strokeStylePanel.onStyleChanged=ke.setStrokeDasharray,ke}return _e(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,Ye){var ke=We.call(this,xe,Ne,Ye)||this;return ke.x1=0,ke.y1=0,ke.x2=0,ke.y2=0,ke.defaultLength=50,ke.manipulationStartX=0,ke.manipulationStartY=0,ke.manipulationStartX1=0,ke.manipulationStartY1=0,ke.manipulationStartX2=0,ke.manipulationStartY2=0,ke.setupControlBox(),ke}return _e(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,Ye){var ke=xe.transform.baseVal.getItem(0);ke.setTranslate(Ne,Ye),xe.transform.baseVal.replaceItem(ke,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),nt=function(We){function Fe(xe,Ne,Ye){var ke=We.call(this,xe,Ne,Ye)||this;return ke.strokeColor="transparent",ke.strokeWidth=0,ke.strokeDasharray="",ke.setStrokeColor=ke.setStrokeColor.bind(ke),ke.setStrokeWidth=ke.setStrokeWidth.bind(ke),ke.setStrokeDasharray=ke.setStrokeDasharray.bind(ke),ke.strokeColor=Ye.defaultColor,ke.strokeWidth=Ye.defaultStrokeWidth,ke.strokeDasharray=Ye.defaultStrokeDasharray,ke.strokePanel=new te("Line color",Ye.defaultColorSet,Ye.defaultColor),ke.strokePanel.onColorChanged=ke.setStrokeColor,ke.strokeWidthPanel=new je("Line width",Ye.defaultStrokeWidths,Ye.defaultStrokeWidth),ke.strokeWidthPanel.onWidthChanged=ke.setStrokeWidth,ke.strokeStylePanel=new Te("Line style",Ye.defaultStrokeDasharrays,Ye.defaultStrokeDasharray),ke.strokeStylePanel.onStyleChanged=ke.setStrokeDasharray,ke}return _e(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,Ye,ke){var et=We.call(this,xe,ke||'<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 et.fonts=[],et.fontBoxes=[],et.fonts=Ne,et.currentFont=Ye,et.setCurrentFont=et.setCurrentFont.bind(et),et}return _e(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(Ye){var ke=document.createElement("div");ke.style.display="inline-block",ke.style.alignItems="center",ke.style.justifyContent="space-between",ke.style.padding="5px",ke.style.borderWidth="2px",ke.style.borderStyle="solid",ke.style.overflow="hidden",ke.style.maxWidth=100/xe.fonts.length-5+"%",ke.style.borderColor=Ye===xe.currentFont?xe.uiStyleSettings.toolboxAccentColor:"transparent",ke.addEventListener("click",function(){xe.setCurrentFont(Ye,ke)}),Ne.appendChild(ke);var et=document.createElement("div");et.style.display="flex",et.style.minHeight="20px",et.style.flexGrow="2",et.style.fontFamily=Ye,et.style.overflow="hidden";var _t=document.createElement("div");_t.style.whiteSpace="nowrap",_t.style.overflow="hidden",_t.style.textOverflow="ellipsis",_t.innerHTML="The quick brown fox jumps over the lazy dog",et.appendChild(_t),ke.appendChild(et),xe.fontBoxes.push(ke)}),Ne},Fe.prototype.setCurrentFont=function(xe,Ne){var Ye=this;this.currentFont=xe,this.fontBoxes.forEach(function(ke){ke.style.borderColor=ke===Ne?Ye.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},Fe}(ne),wt=function(We){function Fe(xe,Ne,Ye){var ke=We.call(this,xe,Ne,Ye)||this;return ke.color="transparent",ke.padding=5,ke.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",ke.text=ke.DEFAULT_TEXT,ke.isMoved=!1,ke.color=Ye.defaultColor,ke.fontFamily=Ye.defaultFontFamily,ke.defaultSize={x:100,y:30},ke.setColor=ke.setColor.bind(ke),ke.setFont=ke.setFont.bind(ke),ke.renderText=ke.renderText.bind(ke),ke.sizeText=ke.sizeText.bind(ke),ke.textEditDivClicked=ke.textEditDivClicked.bind(ke),ke.showTextEditor=ke.showTextEditor.bind(ke),ke.setSize=ke.setSize.bind(ke),ke.positionTextEditor=ke.positionTextEditor.bind(ke),ke.colorPanel=new te("Color",Ye.defaultColorSet,Ye.defaultColor),ke.colorPanel.onColorChanged=ke.setColor,ke.fontFamilyPanel=new ot("Font",Ye.defaultFontFamilies,Ye.defaultFontFamily),ke.fontFamilyPanel.onFontChanged=ke.setFont,ke}return _e(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(Ye){Ye===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 Ye=(1*this.width-this.width*this.padding*2/100)/xe.width,ke=(1*this.height-this.height*this.padding*2/100)/xe.height;Ne=Math.min(Ye,ke)}return Ne},Fe.prototype.getTextPosition=function(xe){var Ne=this.textElement.getBBox(),Ye=0,ke=0;return Ne.width>0&&Ne.height>0&&(Ye=(this.width-Ne.width*xe)/2,ke=this.height/2-Ne.height*xe/2),{x:Ye,y:ke}},Fe.prototype.sizeText=function(){var xe=this.textElement.getBBox(),Ne=this.getTextScale(),Ye=this.getTextPosition(Ne);Ye.y-=xe.y*Ne,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+Ye.x+"px, "+Ye.y+"px) scale("+Ne+", "+Ne+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(Ye.x,Ye.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 Ye=Ne.clipboardData.getData("text"),ke=window.getSelection();if(!ke.rangeCount)return!1;ke.deleteFromDocument(),ke.getRangeAt(0).insertNode(document.createTextNode(Ye)),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}),Ye=this.textElement.getBBox(),ke={x:Ye.width*xe,y:Ye.height*xe};Ne.x-=ke.x/2,Ne.y-=ke.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,Ye){var ke=We.call(this,xe,Ne,Ye)||this;return ke.color="transparent",ke.lineWidth=3,ke.drawing=!1,ke.pixelRatio=1,ke.color=Ye.defaultColor,ke.lineWidth=Ye.defaultStrokeWidth,ke.pixelRatio=Ye.freehandPixelRatio,ke.setColor=ke.setColor.bind(ke),ke.addCanvas=ke.addCanvas.bind(ke),ke.finishCreation=ke.finishCreation.bind(ke),ke.setLineWidth=ke.setLineWidth.bind(ke),ke.colorPanel=new te("Color",Ye.defaultColorSet,Ye.defaultColor),ke.colorPanel.onColorChanged=ke.setColor,ke.lineWidthPanel=new je("Line width",Ye.defaultStrokeWidths,Ye.defaultStrokeWidth),ke.lineWidthPanel.onWidthChanged=ke.setLineWidth,ke}return _e(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],Ye=Ne[0],ke=Ne[1],et=Ne[2],_t=Ne[3],Bt=!1,rn=0;rn<this.canvasElement.height;rn++)for(var Ot=0;Ot<this.canvasElement.width;Ot++)xe.data[rn*this.canvasElement.width*4+4*Ot+3]>0&&(Bt=!0,rn<ke&&(ke=rn),Ot<Ye&&(Ye=Ot),rn>_t&&(_t=rn),Ot>et&&(et=Ot));if(Bt){this.left=Ye/this.pixelRatio,this.top=ke/this.pixelRatio,this.width=(et-Ye)/this.pixelRatio,this.height=(_t-ke)/this.pixelRatio;var bt=document.createElement("canvas");bt.width=et-Ye,bt.height=_t-ke,bt.getContext("2d").putImageData(this.canvasContext.getImageData(Ye,ke,et-Ye,_t-ke),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),Dt=function(We){function Fe(xe,Ne,Ye){var ke=We.call(this,xe,Ye||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return ke.typeBoxes=[],ke.currentType=Ne,ke.setCurrentType=ke.setCurrentType.bind(ke),ke}return _e(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 Ye=function(_t){var Bt="both";switch(_t){case 0:Bt="both";break;case 1:Bt="start";break;case 2:Bt="end";break;case 3:Bt="none"}var rn=document.createElement("div");if(rn.style.display="flex",rn.style.flexGrow="2",rn.style.alignItems="center",rn.style.justifyContent="space-between",rn.style.padding="5px",rn.style.borderWidth="2px",rn.style.borderStyle="solid",rn.style.borderColor=Bt===ke.currentType?ke.uiStyleSettings.toolboxAccentColor:"transparent",rn.addEventListener("click",function(){xe.setCurrentType(Bt,rn)}),Ne.appendChild(rn),Bt==="both"||Bt==="start"){var Ot=document.createElement("div");Ot.style.display="flex",Ot.style.alignItems="center",Ot.style.minHeight="20px",Ot.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="`+(ke.uiStyleSettings!==void 0?ke.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,Ot.style.marginLeft="5px",rn.appendChild(Ot)}var bt=document.createElement("div");bt.style.display="flex",bt.style.alignItems="center",bt.style.minHeight="20px",bt.style.flexGrow="2";var Wt=document.createElement("hr");if(Wt.style.minWidth="20px",Wt.style.border="0px",Wt.style.borderTop="3px solid "+(ke.uiStyleSettings!==void 0?ke.uiStyleSettings.toolboxColor:"#eeeeee"),Wt.style.flexGrow="2",bt.appendChild(Wt),rn.appendChild(bt),Bt==="both"||Bt==="end"){var Xt=document.createElement("div");Xt.style.display="flex",Xt.style.alignItems="center",Xt.style.minHeight="20px",Xt.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="`+(ke.uiStyleSettings!==void 0?ke.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,Xt.style.marginRight="5px",rn.appendChild(Xt)}ke.typeBoxes.push(rn)},ke=this,et=0;et<4;et++)Ye(et);return Ne},Fe.prototype.setCurrentType=function(xe,Ne){var Ye=this;this.currentType=xe,this.typeBoxes.forEach(function(ke){ke.style.borderColor=ke===Ne?Ye.uiStyleSettings!==void 0?Ye.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},Fe}(ne),Lt=function(We){function Fe(xe,Ne,Ye){var ke=We.call(this,xe,Ne,Ye)||this;return ke.arrowType="end",ke.arrowBaseHeight=10,ke.arrowBaseWidth=10,ke.getArrowPoints=ke.getArrowPoints.bind(ke),ke.setArrowType=ke.setArrowType.bind(ke),ke.arrowTypePanel=new Dt("Arrow type","end"),ke.arrowTypePanel.onArrowTypeChanged=ke.setArrowType,ke}return _e(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 Ye=this.arrowBaseWidth+2*this.strokeWidth,ke=this.arrowBaseHeight+2*this.strokeWidth;return xe-Ye/2+","+(Ne+ke/2)+" "+xe+","+(Ne-ke/2)+" "+(xe+Ye/2)+","+(Ne+ke/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 Ye=this.arrow2.transform.baseVal.getItem(0);Ye.setRotate(xe+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(Ye,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}(nt),It=function(We){function Fe(xe,Ne,Ye){var ke=We.call(this,xe,Ne,Ye)||this;return ke.fillColor=Ye.defaultFillColor,ke.strokeWidth=0,ke.fillPanel=new te("Color",Ye.defaultColorSet,Ye.defaultFillColor),ke.fillPanel.onColorChanged=ke.setFillColor,ke}return _e(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),Tt=function(We){function Fe(xe,Ne,Ye,ke){var et=We.call(this,xe,ke||'<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 et.opacities=[],et.opacityBoxes=[],et.opacities=Ne,et.currentOpacity=Ye,et.setCurrentOpacity=et.setCurrentOpacity.bind(et),et}return _e(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(Ye){var ke=document.createElement("div");ke.style.display="flex",ke.style.alignItems="center",ke.style.justifyContent="center",ke.style.padding="5px",ke.style.borderWidth="2px",ke.style.borderStyle="solid",ke.style.borderColor=Ye===xe.currentOpacity?xe.uiStyleSettings.toolboxAccentColor:"transparent",ke.addEventListener("click",function(){xe.setCurrentOpacity(Ye,ke)}),Ne.appendChild(ke);var et=document.createElement("div");et.innerText=100*Ye+"%",ke.appendChild(et),xe.opacityBoxes.push(ke)}),Ne},Fe.prototype.setCurrentOpacity=function(xe,Ne){var Ye=this;this.currentOpacity=xe,this.opacityBoxes.forEach(function(ke){ke.style.borderColor=ke===Ne?Ye.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},Fe}(ne),nn=function(We){function Fe(xe,Ne,Ye){var ke=We.call(this,xe,Ne,Ye)||this;return ke.setOpacity=ke.setOpacity.bind(ke),ke.fillColor=Ye.defaultHighlightColor,ke.strokeWidth=0,ke.opacity=Ye.defaultHighlightOpacity,ke.fillPanel=new te("Color",Ye.defaultColorSet,ke.fillColor),ke.fillPanel.onColorChanged=ke.setFillColor,ke.opacityPanel=new Tt("Opacity",Ye.defaultOpacitySteps,ke.opacity),ke.opacityPanel.onOpacityChanged=ke.setOpacity,ke}return _e(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}(It),at='<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,Ye){var ke=We.call(this,xe,Ne,Ye)||this;return ke.bgColor="transparent",ke.tipPosition={x:0,y:0},ke.tipBase1Position={x:0,y:0},ke.tipBase2Position={x:0,y:0},ke.tipMoving=!1,ke.color=Ye.defaultStrokeColor,ke.bgColor=Ye.defaultFillColor,ke.fontFamily=Ye.defaultFontFamily,ke.defaultSize={x:100,y:30},ke.setBgColor=ke.setBgColor.bind(ke),ke.getTipPoints=ke.getTipPoints.bind(ke),ke.positionTip=ke.positionTip.bind(ke),ke.setTipPoints=ke.setTipPoints.bind(ke),ke.colorPanel=new te("Text color",Ye.defaultColorSet,ke.color,at),ke.colorPanel.onColorChanged=ke.setColor,ke.bgColorPanel=new te("Fill color",Ye.defaultColorSet,ke.bgColor,He),ke.bgColorPanel.onColorChanged=ke.setBgColor,ke.fontFamilyPanel=new ot("Font",Ye.defaultFontFamilies,Ye.defaultFontFamily),ke.fontFamilyPanel.onFontChanged=ke.setFont,ke.tipGrip=new de,ke.tipGrip.visual.transform.baseVal.appendItem(ze.createTransform()),ke.controlBox.appendChild(ke.tipGrip.visual),ke}return _e(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),Ye=this.height/5;xe&&(this.tipPosition={x:Ne+Ye/2,y:this.height+20});var ke=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?ke<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(Ye=this.width/5,Ne=Math.min(this.width/2,15),this.tipBase1Position={x:Ne,y:0},this.tipBase2Position={x:Ne+Ye,y:0}):(this.tipBase1Position={x:0,y:Ne},this.tipBase2Position={x:0,y:Ne+Ye}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?ke<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(Ye=this.width/5,Ne=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-Ne-Ye,y:0},this.tipBase2Position={x:this.width-Ne,y:0}):(this.tipBase1Position={x:this.width,y:Ne},this.tipBase2Position={x:this.width,y:Ne+Ye}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?ke<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(Ye=this.width/5,Ne=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-Ne-Ye,y:this.height},this.tipBase2Position={x:this.width-Ne,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-Ne-Ye},this.tipBase2Position={x:this.width,y:this.height-Ne}):ke<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(Ye=this.width/5,Ne=Math.min(this.width/2,15),this.tipBase1Position={x:Ne,y:this.height},this.tipBase2Position={x:Ne+Ye,y:this.height}):(this.tipBase1Position={x:0,y:this.height-Ne},this.tipBase2Position={x:0,y:this.height-Ne-Ye})},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}(wt),Zt=function(We){function Fe(xe,Ne,Ye){var ke=We.call(this,xe,Ne,Ye)||this;return ke.fillColor="transparent",ke.strokeColor="transparent",ke.strokeWidth=0,ke.strokeDasharray="",ke.opacity=1,ke.strokeColor=Ye.defaultColor,ke.strokeWidth=Ye.defaultStrokeWidth,ke.strokeDasharray=Ye.defaultStrokeDasharray,ke.fillColor=Ye.defaultFillColor,ke.setStrokeColor=ke.setStrokeColor.bind(ke),ke.setFillColor=ke.setFillColor.bind(ke),ke.setStrokeWidth=ke.setStrokeWidth.bind(ke),ke.setStrokeDasharray=ke.setStrokeDasharray.bind(ke),ke.setOpacity=ke.setOpacity.bind(ke),ke.createVisual=ke.createVisual.bind(ke),ke.strokePanel=new te("Line color",rt(Ye.defaultColorSet,["transparent"]),Ye.defaultColor),ke.strokePanel.onColorChanged=ke.setStrokeColor,ke.fillPanel=new te("Fill color",rt(Ye.defaultColorSet,["transparent"]),ke.fillColor,He),ke.fillPanel.onColorChanged=ke.setFillColor,ke.strokeWidthPanel=new je("Line width",Ye.defaultStrokeWidths,Ye.defaultStrokeWidth),ke.strokeWidthPanel.onWidthChanged=ke.setStrokeWidth,ke.strokeStylePanel=new Te("Line style",Ye.defaultStrokeDasharrays,Ye.defaultStrokeDasharray),ke.strokeStylePanel.onStyleChanged=ke.setStrokeDasharray,ke.opacityPanel=new Tt("Opacity",Ye.defaultOpacitySteps,ke.opacity),ke.opacityPanel.onOpacityChanged=ke.setOpacity,ke}return _e(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),Yt=function(We){function Fe(xe,Ne,Ye){return We.call(this,xe,Ne,Ye)||this}return _e(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 Ye=this.tip2.transform.baseVal.getItem(0);Ye.setRotate(xe+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(Ye,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}(nt),Mt=function(We){function Fe(xe,Ne,Ye){var ke=We.call(this,xe,Ne,Ye)||this;return ke.strokePanel.colors=Ye.defaultColorSet,ke.fillColor="transparent",ke}return _e(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),zt=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}(),on=function(We){function Fe(xe,Ne,Ye){var ke=We.call(this,xe,Ne,Ye)||this;return ke.strokeColor="transparent",ke.strokeWidth=0,ke.strokeDasharray="",ke.curveX=0,ke.curveY=0,ke.manipulationStartCurveX=0,ke.manipulationStartCurveY=0,ke.setStrokeColor=ke.setStrokeColor.bind(ke),ke.setStrokeWidth=ke.setStrokeWidth.bind(ke),ke.setStrokeDasharray=ke.setStrokeDasharray.bind(ke),ke.positionGrips=ke.positionGrips.bind(ke),ke.addControlGrips=ke.addControlGrips.bind(ke),ke.adjustVisual=ke.adjustVisual.bind(ke),ke.setupControlBox=ke.setupControlBox.bind(ke),ke.resize=ke.resize.bind(ke),ke.strokeColor=Ye.defaultColor,ke.strokeWidth=Ye.defaultStrokeWidth,ke.strokeDasharray=Ye.defaultStrokeDasharray,ke.strokePanel=new te("Line color",Ye.defaultColorSet,Ye.defaultColor),ke.strokePanel.onColorChanged=ke.setStrokeColor,ke.strokeWidthPanel=new je("Line width",Ye.defaultStrokeWidths,Ye.defaultStrokeWidth),ke.strokeWidthPanel.onWidthChanged=ke.setStrokeWidth,ke.strokeStylePanel=new Te("Line style",Ye.defaultStrokeDasharrays,Ye.defaultStrokeDasharray),ke.strokeStylePanel.onStyleChanged=ke.setStrokeDasharray,ke}return _e(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,Ye){var ke=We.call(this,xe,Ne,Ye)||this;return ke.fillColor="transparent",ke.strokeColor="transparent",ke.strokeWidth=0,ke.strokeDasharray="",ke.textColor="transparent",ke.fontSize="1rem",ke.isMoved=!1,ke.captionText="Caption",ke.PADDING=5,ke.captionBoxWidth=0,ke.captionBoxHeight=0,ke.strokeColor=Ye.defaultColor,ke.strokeWidth=Ye.defaultStrokeWidth,ke.strokeDasharray=Ye.defaultStrokeDasharray,ke.fillColor=Ye.defaultFillColor,ke.textColor=Ye.defaultStrokeColor,ke.fontFamily=Ye.defaultFontFamily,ke.fontSize=Ye.defaultCaptionFontSize,ke.captionText=Ye.defaultCaptionText,ke.setStrokeColor=ke.setStrokeColor.bind(ke),ke.setFillColor=ke.setFillColor.bind(ke),ke.setStrokeWidth=ke.setStrokeWidth.bind(ke),ke.setStrokeDasharray=ke.setStrokeDasharray.bind(ke),ke.createVisual=ke.createVisual.bind(ke),ke.sizeCaption=ke.sizeCaption.bind(ke),ke.setCaptionText=ke.setCaptionText.bind(ke),ke.showTextEditor=ke.showTextEditor.bind(ke),ke.positionTextEditor=ke.positionTextEditor.bind(ke),ke.finishTextEditing=ke.finishTextEditing.bind(ke),ke.setFont=ke.setFont.bind(ke),ke.setTextColor=ke.setTextColor.bind(ke),ke.strokePanel=new te("Line color",rt(Ye.defaultColorSet,["transparent"]),ke.strokeColor),ke.strokePanel.onColorChanged=ke.setStrokeColor,ke.fillPanel=new te("Fill color",rt(Ye.defaultColorSet,["transparent"]),ke.fillColor,He),ke.fillPanel.onColorChanged=ke.setFillColor,ke.strokeWidthPanel=new je("Line width",Ye.defaultStrokeWidths,Ye.defaultStrokeWidth),ke.strokeWidthPanel.onWidthChanged=ke.setStrokeWidth,ke.strokeStylePanel=new Te("Line style",Ye.defaultStrokeDasharrays,Ye.defaultStrokeDasharray),ke.strokeStylePanel.onStyleChanged=ke.setStrokeDasharray,ke.fontFamilyPanel=new ot("Font",Ye.defaultFontFamilies,Ye.defaultFontFamily),ke.fontFamilyPanel.onFontChanged=ke.setFont,ke.textColorPanel=new te("Text color",Ye.defaultColorSet,ke.textColor,at),ke.textColorPanel.onColorChanged=ke.setTextColor,ke}return _e(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),kt=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}(),vt=function(We){function Fe(xe,Ne,Ye){var ke=We.call(this,xe,!1)||this;return ke.dataUrl=Ne,ke.state=Ye,ke}return _e(Fe,We),Fe}(kt),hn=function(We){function Fe(xe,Ne,Ye){Ye===void 0&&(Ye=!1);var ke=We.call(this,xe,Ye)||this;return ke.marker=Ne,ke}return _e(Fe,We),Fe}(kt),li=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}(),yi=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 zt,this.renderAtNaturalSize=!1,this.renderImageType="image/png",this.renderMarkersOnly=!1,this.zoomSteps=[1,1.5,2,4],this._zoomLevel=1,this._isResizing=!1,this.prevPanPoint={x:0,y:0},this.eventListeners=new li,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=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,wt,Mt,Zt,nn,Rt,Yt,It,nt,on,Dn]},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[Ie,gt,Lt,wt,Zt,nn,Rt]},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"BASIC_MARKER_TYPES",{get:function(){return[Ie,gt,Lt,wt,nn]},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 Ye=xe.ALL_MARKER_TYPES.find(function(ke){return ke.typeName===Ne});Ye!==void 0&&xe._availableMarkerTypes.push(Ye)}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&&tt.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=tt.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(xe){return xe(new kt(Fe))})},We.prototype.render=function(){return lt(this,void 0,void 0,function(){var Fe;return it(this,function(xe){switch(xe.label){case 0:return this.setCurrentMarker(),(Fe=new yt).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(Ye){var ke=new kt(xe,!0);Ye(ke),ke.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(Ye){return Ye(new kt(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,Ye=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,Ye),this._isResizing=!1},We.prototype.scaleMarkers=function(Fe,xe){var Ne,Ye=this;this._currentMarker&&this._currentMarker instanceof wt?this._currentMarker.scale(Fe,xe):(Ne=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(ke){ke!==Ye._currentMarker&&ke.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 ct(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(Ye){var ke=new hn(Fe,Fe._currentMarker,!0);Ye(ke),ke.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(Ye){return Ye(new hn(Fe,Ne))})}}},We.prototype.clear=function(){var Fe=this,xe=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(et){var _t=new hn(Fe,void 0,!0);et(_t),_t.defaultPrevented&&(xe=!0)}),!xe)){this.setCurrentMarker();for(var Ne=function(et){var _t=Ye.markers[et];Ye.setCurrentMarker(Ye.markers[et]),Ye._currentMarker.dispose(),Ye.markerImage.removeChild(Ye._currentMarker.container),Ye.markers.splice(Ye.markers.indexOf(Ye._currentMarker),1),Ye.eventListeners.markerdelete.forEach(function(Bt){return Bt(new hn(Fe,_t))})},Ye=this,ke=this.markers.length-1;ke>=0;ke--)Ne(ke);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 Ye=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(xe),Ye<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(ke){return ke(new kt(Fe))})}else this.undoRedoManager.replaceLastUndoStep(xe),this.eventListeners.statechange.forEach(function(ke){return ke(new kt(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 kt(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 kt(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 lt(this,void 0,void 0,function(){var Fe,xe,Ne=this;return it(this,function(Ye){switch(Ye.label){case 0:return[4,this.render()];case 1:return Fe=Ye.sent(),xe=this.getState(),this.eventListeners.render.forEach(function(ke){return ke(new vt(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 Ye=xe._availableMarkerTypes.find(function(et){return et.typeName===Ne.typeName});if(Ye!==void 0){var ke=xe.addNewMarker(Ye);ke.restoreState(Ne),xe.markers.push(ke)}}),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 kt(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(Ye){return Ye.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(Ye){return Ye(new hn(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 hn(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 hn(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 hn(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 hn(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 kt(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 kt(Fe))}))},We.instanceCounter=0,We}()},23425:function(gn,en,we){"use strict";we.d(en,{Z:function(){return Te}});var ve=we(4635),_e=we(14809),lt=we(93664),it=we(20439),rt=we(50298),ze=we(92310),Ue=we.n(ze),yt=we(18929),tt=we(10228),De=we(26112),xt=we(48736),Ve=we(59301),ct=we(17119),Ee=[10,20,50,100],ne=function(Oe){var Re=Oe.pageSizeOptions,nt=Re===void 0?Ee:Re,ot=Oe.locale,wt=Oe.changeSize,gt=Oe.pageSize,Dt=Oe.goButton,Lt=Oe.quickGo,It=Oe.rootPrefixCls,Tt=Oe.disabled,nn=Oe.buildOptionText,at=Oe.showSizeChanger,He=Oe.sizeChangerRender,Rt=Ve.useState(""),Zt=(0,rt.Z)(Rt,2),Yt=Zt[0],Mt=Zt[1],zt=function(){return!Yt||Number.isNaN(Yt)?void 0:Number(Yt)},on=typeof nn=="function"?nn:function(xe){return"".concat(xe," ").concat(ot.items_per_page)},Dn=function(Ne){Mt(Ne.target.value)},kt=function(Ne){Dt||Yt===""||(Mt(""),!(Ne.relatedTarget&&(Ne.relatedTarget.className.indexOf("".concat(It,"-item-link"))>=0||Ne.relatedTarget.className.indexOf("".concat(It,"-item"))>=0))&&(Lt==null||Lt(zt())))},vt=function(Ne){Yt!==""&&(Ne.keyCode===tt.Z.ENTER||Ne.type==="click")&&(Mt(""),Lt==null||Lt(zt()))},hn=function(){return nt.some(function(Ne){return Ne.toString()===gt.toString()})?nt:nt.concat([gt]).sort(function(Ne,Ye){var ke=Number.isNaN(Number(Ne))?0:Number(Ne),et=Number.isNaN(Number(Ye))?0:Number(Ye);return ke-et})},li="".concat(It,"-options");if(!at&&!Lt)return null;var yi=null,We=null,Fe=null;return at&&He&&(yi=He({disabled:Tt,size:gt,onSizeChange:function(Ne){wt==null||wt(Number(Ne))},"aria-label":ot.page_size,className:"".concat(li,"-size-changer"),options:hn().map(function(xe){return{label:on(xe),value:xe}})})),Lt&&(Dt&&(Fe=typeof Dt=="boolean"?Ve.createElement("button",{type:"button",onClick:vt,onKeyUp:vt,disabled:Tt,className:"".concat(li,"-quick-jumper-button")},ot.jump_to_confirm):Ve.createElement("span",{onClick:vt,onKeyUp:vt},Dt)),We=Ve.createElement("div",{className:"".concat(li,"-quick-jumper")},ot.jump_to,Ve.createElement("input",{disabled:Tt,type:"text",value:Yt,onChange:Dn,onKeyUp:vt,onBlur:kt,"aria-label":ot.page}),ot.page,Fe)),Ve.createElement("li",{className:li},yi,We)},te=ne,ue=function(Oe){var Re=Oe.rootPrefixCls,nt=Oe.page,ot=Oe.active,wt=Oe.className,gt=Oe.showTitle,Dt=Oe.onClick,Lt=Oe.onKeyPress,It=Oe.itemRender,Tt="".concat(Re,"-item"),nn=Ue()(Tt,"".concat(Tt,"-").concat(nt),(0,ve.Z)((0,ve.Z)({},"".concat(Tt,"-active"),ot),"".concat(Tt,"-disabled"),!nt),wt),at=function(){Dt(nt)},He=function(Yt){Lt(Yt,Dt,nt)},Rt=It(nt,"page",Ve.createElement("a",{rel:"nofollow"},nt));return Rt?Ve.createElement("li",{title:gt?String(nt):null,className:nn,onClick:at,onKeyDown:He,tabIndex:0},Rt):null},se=ue,de=function(Oe,Re,nt){return nt};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 nt=typeof Ie=="undefined"?Oe:Ie;return Math.floor((Re-1)/nt)+1}var je=function(Oe){var Re=Oe.prefixCls,nt=Re===void 0?"rc-pagination":Re,ot=Oe.selectPrefixCls,wt=ot===void 0?"rc-select":ot,gt=Oe.className,Dt=Oe.current,Lt=Oe.defaultCurrent,It=Lt===void 0?1:Lt,Tt=Oe.total,nn=Tt===void 0?0:Tt,at=Oe.pageSize,He=Oe.defaultPageSize,Rt=He===void 0?10:He,Zt=Oe.onChange,Yt=Zt===void 0?pe:Zt,Mt=Oe.hideOnSinglePage,zt=Oe.align,on=Oe.showPrevNextJumpers,Dn=on===void 0?!0:on,kt=Oe.showQuickJumper,vt=Oe.showLessItems,hn=Oe.showTitle,li=hn===void 0?!0:hn,yi=Oe.onShowSizeChange,We=yi===void 0?pe:yi,Fe=Oe.locale,xe=Fe===void 0?ct.Z:Fe,Ne=Oe.style,Ye=Oe.totalBoundaryShowSizeChanger,ke=Ye===void 0?50:Ye,et=Oe.disabled,_t=Oe.simple,Bt=Oe.showTotal,rn=Oe.showSizeChanger,Ot=rn===void 0?nn>ke:rn,bt=Oe.sizeChangerRender,Wt=Oe.pageSizeOptions,Xt=Oe.itemRender,pn=Xt===void 0?de:Xt,$n=Oe.jumpPrevIcon,Cn=Oe.jumpNextIcon,Ln=Oe.prevIcon,Ci=Oe.nextIcon,Jn=Ve.useRef(null),Di=(0,yt.Z)(10,{value:at,defaultValue:Rt}),ui=(0,rt.Z)(Di,2),Bi=ui[0],Ui=ui[1],ir=(0,yt.Z)(1,{value:Dt,defaultValue:It,postState:function(_r){return Math.max(1,Math.min(_r,Ce(void 0,Bi,nn)))}}),Ir=(0,rt.Z)(ir,2),qi=Ir[0],ri=Ir[1],co=Ve.useState(qi),Qr=(0,rt.Z)(co,2),to=Qr[0],no=Qr[1];(0,Ve.useEffect)(function(){no(qi)},[qi]);var xo=Yt!==pe,lo="current"in Oe,Er=Math.max(1,qi-(vt?3:5)),io=Math.min(Ce(void 0,Bi,nn),qi+(vt?3:5));function Le(ai,_r){var Hr=ai||Ve.createElement("button",{type:"button","aria-label":_r,className:"".concat(nt,"-item-link")});return typeof ai=="function"&&(Hr=Ve.createElement(ai,(0,it.Z)({},Oe))),Hr}function Pn(ai){var _r=ai.target.value,Hr=Ce(void 0,Bi,nn),Oo;return _r===""?Oo=_r:Number.isNaN(Number(_r))?Oo=to:_r>=Hr?Oo=Hr:Oo=Number(_r),Oo}function Un(ai){return ye(ai)&&ai!==qi&&ye(nn)&&nn>0}var gi=nn>Bi?kt:!1;function mi(ai){(ai.keyCode===tt.Z.UP||ai.keyCode===tt.Z.DOWN)&&ai.preventDefault()}function ti(ai){var _r=Pn(ai);switch(_r!==to&&no(_r),ai.keyCode){case tt.Z.ENTER:un(_r);break;case tt.Z.UP:un(_r-1);break;case tt.Z.DOWN:un(_r+1);break;default:break}}function Yi(ai){un(Pn(ai))}function pr(ai){var _r=Ce(ai,Bi,nn),Hr=qi>_r&&_r!==0?_r:qi;Ui(ai),no(Hr),We==null||We(qi,ai),ri(Hr),Yt==null||Yt(Hr,ai)}function un(ai){if(Un(ai)&&!et){var _r=Ce(void 0,Bi,nn),Hr=ai;return ai>_r?Hr=_r:ai<1&&(Hr=1),Hr!==to&&no(Hr),ri(Hr),Yt==null||Yt(Hr,Bi),Hr}return qi}var an=qi>1,jt=qi<Ce(void 0,Bi,nn);function mn(){an&&un(qi-1)}function Zi(){jt&&un(qi+1)}function ji(){un(Er)}function lr(){un(io)}function Zn(ai,_r){if(ai.key==="Enter"||ai.charCode===tt.Z.ENTER||ai.keyCode===tt.Z.ENTER){for(var Hr=arguments.length,Oo=new Array(Hr>2?Hr-2:0),Kr=2;Kr<Hr;Kr++)Oo[Kr-2]=arguments[Kr];_r.apply(void 0,Oo)}}function Ti(ai){Zn(ai,mn)}function fr(ai){Zn(ai,Zi)}function Vr(ai){Zn(ai,ji)}function ci(ai){Zn(ai,lr)}function ut(ai){var _r=pn(ai,"prev",Le(Ln,"prev page"));return Ve.isValidElement(_r)?Ve.cloneElement(_r,{disabled:!an}):_r}function Nt(ai){var _r=pn(ai,"next",Le(Ci,"next page"));return Ve.isValidElement(_r)?Ve.cloneElement(_r,{disabled:!jt}):_r}function Rn(ai){(ai.type==="click"||ai.keyCode===tt.Z.ENTER)&&un(to)}var In=null,Qt=(0,De.Z)(Oe,{aria:!0,data:!0}),qn=Bt&&Ve.createElement("li",{className:"".concat(nt,"-total-text")},Bt(nn,[nn===0?0:(qi-1)*Bi+1,qi*Bi>nn?nn:qi*Bi])),Nn=null,Vn=Ce(void 0,Bi,nn);if(Mt&&nn<=Bi)return null;var Pi=[],pi={rootPrefixCls:nt,onClick:un,onKeyPress:Zn,showTitle:li,itemRender:pn,page:-1},tn=qi-1>0?qi-1:0,Wi=qi+1<Vn?qi+1:Vn,yr=kt&&kt.goButton,Pr=(0,lt.Z)(_t)==="object"?_t.readOnly:!_t,Yn=yr,Oi=null;_t&&(yr&&(typeof yr=="boolean"?Yn=Ve.createElement("button",{type:"button",onClick:Rn,onKeyUp:Rn},xe.jump_to_confirm):Yn=Ve.createElement("span",{onClick:Rn,onKeyUp:Rn},yr),Yn=Ve.createElement("li",{title:li?"".concat(xe.jump_to).concat(qi,"/").concat(Vn):null,className:"".concat(nt,"-simple-pager")},Yn)),Oi=Ve.createElement("li",{title:li?"".concat(qi,"/").concat(Vn):null,className:"".concat(nt,"-simple-pager")},Pr?to:Ve.createElement("input",{type:"text","aria-label":xe.jump_to,value:to,disabled:et,onKeyDown:mi,onKeyUp:ti,onChange:ti,onBlur:Yi,size:3}),Ve.createElement("span",{className:"".concat(nt,"-slash")},"/"),Vn));var Dr=vt?1:2;if(Vn<=3+Dr*2){Vn||Pi.push(Ve.createElement(se,(0,_e.Z)({},pi,{key:"noPager",page:1,className:"".concat(nt,"-item-disabled")})));for(var jr=1;jr<=Vn;jr+=1)Pi.push(Ve.createElement(se,(0,_e.Z)({},pi,{key:jr,page:jr,active:qi===jr})))}else{var oo=vt?xe.prev_3:xe.prev_5,Kt=vt?xe.next_3:xe.next_5,bi=pn(Er,"jump-prev",Le($n,"prev page")),tr=pn(io,"jump-next",Le(Cn,"next page"));Dn&&(In=bi?Ve.createElement("li",{title:li?oo:null,key:"prev",onClick:ji,tabIndex:0,onKeyDown:Vr,className:Ue()("".concat(nt,"-jump-prev"),(0,ve.Z)({},"".concat(nt,"-jump-prev-custom-icon"),!!$n))},bi):null,Nn=tr?Ve.createElement("li",{title:li?Kt:null,key:"next",onClick:lr,tabIndex:0,onKeyDown:ci,className:Ue()("".concat(nt,"-jump-next"),(0,ve.Z)({},"".concat(nt,"-jump-next-custom-icon"),!!Cn))},tr):null);var Mi=Math.max(1,qi-Dr),kr=Math.min(qi+Dr,Vn);qi-1<=Dr&&(kr=1+Dr*2),Vn-qi<=Dr&&(Mi=Vn-Dr*2);for(var rr=Mi;rr<=kr;rr+=1)Pi.push(Ve.createElement(se,(0,_e.Z)({},pi,{key:rr,page:rr,active:qi===rr})));if(qi-1>=Dr*2&&qi!==3&&(Pi[0]=Ve.cloneElement(Pi[0],{className:Ue()("".concat(nt,"-item-after-jump-prev"),Pi[0].props.className)}),Pi.unshift(In)),Vn-qi>=Dr*2&&qi!==Vn-2){var Lr=Pi[Pi.length-1];Pi[Pi.length-1]=Ve.cloneElement(Lr,{className:Ue()("".concat(nt,"-item-before-jump-next"),Lr.props.className)}),Pi.push(Nn)}Mi!==1&&Pi.unshift(Ve.createElement(se,(0,_e.Z)({},pi,{key:1,page:1}))),kr!==Vn&&Pi.push(Ve.createElement(se,(0,_e.Z)({},pi,{key:Vn,page:Vn})))}var Tr=ut(tn);if(Tr){var Zr=!an||!Vn;Tr=Ve.createElement("li",{title:li?xe.prev_page:null,onClick:mn,tabIndex:Zr?null:0,onKeyDown:Ti,className:Ue()("".concat(nt,"-prev"),(0,ve.Z)({},"".concat(nt,"-disabled"),Zr)),"aria-disabled":Zr},Tr)}var uo=Nt(Wi);if(uo){var An,mo;_t?(An=!jt,mo=an?0:null):(An=!jt||!Vn,mo=An?null:0),uo=Ve.createElement("li",{title:li?xe.next_page:null,onClick:Zi,tabIndex:mo,onKeyDown:fr,className:Ue()("".concat(nt,"-next"),(0,ve.Z)({},"".concat(nt,"-disabled"),An)),"aria-disabled":An},uo)}var Fn=Ue()(nt,gt,(0,ve.Z)((0,ve.Z)((0,ve.Z)((0,ve.Z)((0,ve.Z)({},"".concat(nt,"-start"),zt==="start"),"".concat(nt,"-center"),zt==="center"),"".concat(nt,"-end"),zt==="end"),"".concat(nt,"-simple"),_t),"".concat(nt,"-disabled"),et));return Ve.createElement("ul",(0,_e.Z)({className:Fn,style:Ne,ref:Jn},Qt),qn,Tr,_t?Oi:Pi,uo,Ve.createElement(te,{locale:xe,rootPrefixCls:nt,disabled:et,selectPrefixCls:wt,changeSize:pr,pageSize:Bi,pageSizeOptions:Wt,quickGo:gi?un:null,goButton:Yn,showSizeChanger:Ot,sizeChangerRender:bt}))},Te=je},48365:function(gn,en,we){"use strict";var ve=we(61186),_e=we.n(ve),lt=we(90111),it=we.n(lt),rt=we(58319),ze=we.n(rt),Ue=we(23250),yt=we.n(Ue),tt=we(74959),De=we.n(tt),xt=we(10238),Ve=we.n(xt),ct=we(33656),Ee=we.n(ct);_e().extend(Ee()),_e().extend(Ve()),_e().extend(it()),_e().extend(ze()),_e().extend(yt()),_e().extend(De()),_e().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 ne={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"},te=function(pe){var ye=ne[pe];return ye||pe.split("_")[0]},ue=function(){},se={getNow:function(){var pe=_e()();return typeof pe.tz=="function"?pe.tz():pe},getFixedDate:function(pe){return _e()(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 _e()().locale(te(pe)).localeData().firstDayOfWeek()},getWeekFirstDate:function(pe,ye){return ye.locale(te(pe)).weekday(0)},getWeek:function(pe,ye){return ye.locale(te(pe)).week()},getShortWeekDays:function(pe){return _e()().locale(te(pe)).localeData().weekdaysMin()},getShortMonths:function(pe){return _e()().locale(te(pe)).localeData().monthsShort()},format:function(pe,ye,Ce){return ye.locale(te(pe)).format(Ce)},parse:function(pe,ye,Ce){for(var je=te(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],nt=Oe.split("-")[1],ot=_e()(Re,"YYYY").startOf("year").locale(je),wt=0;wt<=52;wt+=1){var gt=ot.add(wt,"week");if(gt.format("Wo")===nt)return gt}return ue(),null}var Dt=_e()(Oe,Ie,!0).locale(je);if(Dt.isValid())return Dt}return ye&&ue(),null}}};en.Z=se},8571:function(gn,en,we){"use strict";we.d(en,{Sq:function(){return Xn},ZP:function(){return En}});var ve=we(14809),_e=we(95190),lt=we(20439),it=we(50298),rt=we(70425),ze=we(34280),Ue=we(2738),yt=we(26112),tt=we(48736),De=we(59301),xt=we(4635),Ve=we(65966),ct=we(92310),Ee=we.n(ct);function ne(be,dt){return be!==void 0?be:dt?"bottomRight":"bottomLeft"}var te=De.createContext(null),ue=te,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(be){var dt=be.popupElement,Xe=be.popupStyle,Pt=be.popupClassName,Et=be.popupAlign,Jt=be.transitionName,$t=be.getPopupContainer,dn=be.children,Tn=be.range,zn=be.placement,fn=be.builtinPlacements,ei=fn===void 0?se:fn,vi=be.direction,pt=be.visible,Kn=be.onClose,Hn=De.useContext(ue),jn=Hn.prefixCls,Mn="".concat(jn,"-dropdown"),fi=ne(zn,vi==="rtl");return De.createElement(Ve.Z,{showAction:[],hideAction:["click"],popupPlacement:fi,builtinPlacements:ei,prefixCls:Mn,popupTransitionName:Jt,popup:dt,popupAlign:Et,popupVisible:pt,popupClassName:Ee()(Pt,(0,xt.Z)((0,xt.Z)({},"".concat(Mn,"-range"),Tn),"".concat(Mn,"-rtl"),vi==="rtl")),popupStyle:Xe,stretch:"minWidth",getPopupContainer:$t,onPopupVisibleChange:function(kn){kn||Kn()}},dn)}var pe=de;function ye(be,dt){for(var Xe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",Pt=String(be);Pt.length<dt;)Pt="".concat(Xe).concat(Pt);return Pt}function Ce(be){return be==null?[]:Array.isArray(be)?be:[be]}function je(be,dt,Xe){var Pt=(0,_e.Z)(be);return Pt[dt]=Xe,Pt}function Te(be,dt){var Xe={},Pt=dt||Object.keys(be);return Pt.forEach(function(Et){be[Et]!==void 0&&(Xe[Et]=be[Et])}),Xe}function Ie(be,dt,Xe){if(Xe)return Xe;switch(be){case"time":return dt.fieldTimeFormat;case"datetime":return dt.fieldDateTimeFormat;case"month":return dt.fieldMonthFormat;case"year":return dt.fieldYearFormat;case"quarter":return dt.fieldQuarterFormat;case"week":return dt.fieldWeekFormat;default:return dt.fieldDateFormat}}function Oe(be,dt,Xe){var Pt=Xe!==void 0?Xe:dt[dt.length-1],Et=dt.find(function(Jt){return be[Jt]});return Pt!==Et?be[Et]:void 0}function Re(be){return Te(be,["placement","builtinPlacements","popupAlign","getPopupContainer","transitionName","direction"])}function nt(be,dt,Xe,Pt){var Et=De.useMemo(function(){return be||function($t,dn){var Tn=$t;return dt&&dn.type==="date"?dt(Tn,dn.today):Xe&&dn.type==="month"?Xe(Tn,dn.locale):dn.originNode}},[be,Xe,dt]),Jt=De.useCallback(function($t,dn){return Et($t,(0,lt.Z)((0,lt.Z)({},dn),{},{range:Pt}))},[Et,Pt]);return Jt}function ot(be,dt){var Xe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],Pt=De.useState([!1,!1]),Et=(0,it.Z)(Pt,2),Jt=Et[0],$t=Et[1],dn=function(fn,ei){$t(function(vi){return je(vi,ei,fn)})},Tn=De.useMemo(function(){return Jt.map(function(zn,fn){if(zn)return!0;var ei=be[fn];return ei?!!(!Xe[fn]&&!ei||ei&&dt(ei,{activeIndex:fn})):!1})},[be,Jt,dt,Xe]);return[Tn,dn]}function wt(be,dt,Xe,Pt,Et){var Jt="",$t=[];return be&&$t.push(Et?"hh":"HH"),dt&&$t.push("mm"),Xe&&$t.push("ss"),Jt=$t.join(":"),Pt&&(Jt+=".SSS"),Et&&(Jt+=" A"),Jt}function gt(be,dt,Xe,Pt,Et,Jt){var $t=be.fieldDateTimeFormat,dn=be.fieldDateFormat,Tn=be.fieldTimeFormat,zn=be.fieldMonthFormat,fn=be.fieldYearFormat,ei=be.fieldWeekFormat,vi=be.fieldQuarterFormat,pt=be.yearFormat,Kn=be.cellYearFormat,Hn=be.cellQuarterFormat,jn=be.dayFormat,Mn=be.cellDateFormat,fi=wt(dt,Xe,Pt,Et,Jt);return(0,lt.Z)((0,lt.Z)({},be),{},{fieldDateTimeFormat:$t||"YYYY-MM-DD ".concat(fi),fieldDateFormat:dn||"YYYY-MM-DD",fieldTimeFormat:Tn||fi,fieldMonthFormat:zn||"YYYY-MM",fieldYearFormat:fn||"YYYY",fieldWeekFormat:ei||"gggg-wo",fieldQuarterFormat:vi||"YYYY-[Q]Q",yearFormat:pt||"YYYY",cellYearFormat:Kn||"YYYY",cellQuarterFormat:Hn||"[Q]Q",cellDateFormat:Mn||jn||"D"})}function Dt(be,dt){var Xe=dt.showHour,Pt=dt.showMinute,Et=dt.showSecond,Jt=dt.showMillisecond,$t=dt.use12Hours;return De.useMemo(function(){return gt(be,Xe,Pt,Et,Jt,$t)},[be,Xe,Pt,Et,Jt,$t])}var Lt=we(93664);function It(be,dt,Xe){return Xe!=null?Xe:dt.some(function(Pt){return be.includes(Pt)})}var Tt=["showNow","showHour","showMinute","showSecond","showMillisecond","use12Hours","hourStep","minuteStep","secondStep","millisecondStep","hideDisabledOptions","defaultValue","disabledHours","disabledMinutes","disabledSeconds","disabledMilliseconds","disabledTime","changeOnScroll","defaultOpenValue"];function nn(be){var dt=Te(be,Tt),Xe=be.format,Pt=be.picker,Et=null;return Xe&&(Et=Xe,Array.isArray(Et)&&(Et=Et[0]),Et=(0,Lt.Z)(Et)==="object"?Et.format:Et),Pt==="time"&&(dt.format=Et),[dt,Et]}function at(be){return be&&typeof be=="string"}function He(be,dt,Xe,Pt){return[be,dt,Xe,Pt].some(function(Et){return Et!==void 0})}function Rt(be,dt,Xe,Pt,Et){var Jt=dt,$t=Xe,dn=Pt;if(!be&&!Jt&&!$t&&!dn&&!Et)Jt=!0,$t=!0,dn=!0;else if(be){var Tn,zn,fn,ei=[Jt,$t,dn].some(function(Kn){return Kn===!1}),vi=[Jt,$t,dn].some(function(Kn){return Kn===!0}),pt=ei?!0:!vi;Jt=(Tn=Jt)!==null&&Tn!==void 0?Tn:pt,$t=(zn=$t)!==null&&zn!==void 0?zn:pt,dn=(fn=dn)!==null&&fn!==void 0?fn:pt}return[Jt,$t,dn,Et]}function Zt(be){var dt=be.showTime,Xe=nn(be),Pt=(0,it.Z)(Xe,2),Et=Pt[0],Jt=Pt[1],$t=dt&&(0,Lt.Z)(dt)==="object"?dt:{},dn=(0,lt.Z)((0,lt.Z)({defaultOpenValue:$t.defaultOpenValue||$t.defaultValue},Et),$t),Tn=dn.showMillisecond,zn=dn.showHour,fn=dn.showMinute,ei=dn.showSecond,vi=He(zn,fn,ei,Tn),pt=Rt(vi,zn,fn,ei,Tn),Kn=(0,it.Z)(pt,3);return zn=Kn[0],fn=Kn[1],ei=Kn[2],[dn,(0,lt.Z)((0,lt.Z)({},dn),{},{showHour:zn,showMinute:fn,showSecond:ei,showMillisecond:Tn}),dn.format,Jt]}function Yt(be,dt,Xe,Pt,Et){var Jt=be==="time";if(be==="datetime"||Jt){for(var $t=Pt,dn=Ie(be,Et,null),Tn=dn,zn=[dt,Xe],fn=0;fn<zn.length;fn+=1){var ei=Ce(zn[fn])[0];if(at(ei)){Tn=ei;break}}var vi=$t.showHour,pt=$t.showMinute,Kn=$t.showSecond,Hn=$t.showMillisecond,jn=$t.use12Hours,Mn=It(Tn,["a","A","LT","LLL","LTS"],jn),fi=He(vi,pt,Kn,Hn);fi||(vi=It(Tn,["H","h","k","LT","LLL"]),pt=It(Tn,["m","LT","LLL"]),Kn=It(Tn,["s","LTS"]),Hn=It(Tn,["SSS"]));var Si=Rt(fi,vi,pt,Kn,Hn),kn=(0,it.Z)(Si,3);vi=kn[0],pt=kn[1],Kn=kn[2];var xi=dt||wt(vi,pt,Kn,Hn,Mn);return(0,lt.Z)((0,lt.Z)({},$t),{},{format:xi,showHour:vi,showMinute:pt,showSecond:Kn,showMillisecond:Hn,use12Hours:Mn})}return null}function Mt(be,dt,Xe){if(dt===!1)return null;var Pt=dt&&(0,Lt.Z)(dt)==="object"?dt:{};return Pt.clearIcon||Xe||De.createElement("span",{className:"".concat(be,"-clear-btn")})}var zt=7;function on(be,dt,Xe){return!be&&!dt||be===dt?!0:!be||!dt?!1:Xe()}function Dn(be,dt,Xe){return on(dt,Xe,function(){var Pt=Math.floor(be.getYear(dt)/10),Et=Math.floor(be.getYear(Xe)/10);return Pt===Et})}function kt(be,dt,Xe){return on(dt,Xe,function(){return be.getYear(dt)===be.getYear(Xe)})}function vt(be,dt){var Xe=Math.floor(be.getMonth(dt)/3);return Xe+1}function hn(be,dt,Xe){return on(dt,Xe,function(){return kt(be,dt,Xe)&&vt(be,dt)===vt(be,Xe)})}function li(be,dt,Xe){return on(dt,Xe,function(){return kt(be,dt,Xe)&&be.getMonth(dt)===be.getMonth(Xe)})}function yi(be,dt,Xe){return on(dt,Xe,function(){return kt(be,dt,Xe)&&li(be,dt,Xe)&&be.getDate(dt)===be.getDate(Xe)})}function We(be,dt,Xe){return on(dt,Xe,function(){return be.getHour(dt)===be.getHour(Xe)&&be.getMinute(dt)===be.getMinute(Xe)&&be.getSecond(dt)===be.getSecond(Xe)})}function Fe(be,dt,Xe){return on(dt,Xe,function(){return yi(be,dt,Xe)&&We(be,dt,Xe)&&be.getMillisecond(dt)===be.getMillisecond(Xe)})}function xe(be,dt,Xe,Pt){return on(Xe,Pt,function(){var Et=be.locale.getWeekFirstDate(dt,Xe),Jt=be.locale.getWeekFirstDate(dt,Pt);return kt(be,Et,Jt)&&be.locale.getWeek(dt,Xe)===be.locale.getWeek(dt,Pt)})}function Ne(be,dt,Xe,Pt,Et){switch(Et){case"date":return yi(be,Xe,Pt);case"week":return xe(be,dt.locale,Xe,Pt);case"month":return li(be,Xe,Pt);case"quarter":return hn(be,Xe,Pt);case"year":return kt(be,Xe,Pt);case"decade":return Dn(be,Xe,Pt);case"time":return We(be,Xe,Pt);default:return Fe(be,Xe,Pt)}}function Ye(be,dt,Xe,Pt){return!dt||!Xe||!Pt?!1:be.isAfter(Pt,dt)&&be.isAfter(Xe,Pt)}function ke(be,dt,Xe,Pt,Et){return Ne(be,dt,Xe,Pt,Et)?!0:be.isAfter(Xe,Pt)}function et(be,dt,Xe){var Pt=dt.locale.getWeekFirstDay(be),Et=dt.setDate(Xe,1),Jt=dt.getWeekDay(Et),$t=dt.addDate(Et,Pt-Jt);return dt.getMonth($t)===dt.getMonth(Xe)&&dt.getDate($t)>1&&($t=dt.addDate($t,-7)),$t}function _t(be,dt){var Xe=dt.generateConfig,Pt=dt.locale,Et=dt.format;return be?typeof Et=="function"?Et(be):Xe.locale.format(Pt.locale,be,Et):""}function Bt(be,dt,Xe){var Pt=dt,Et=["getHour","getMinute","getSecond","getMillisecond"],Jt=["setHour","setMinute","setSecond","setMillisecond"];return Jt.forEach(function($t,dn){Xe?Pt=be[$t](Pt,be[Et[dn]](Xe)):Pt=be[$t](Pt,0)}),Pt}function rn(be,dt,Xe,Pt,Et){var Jt=(0,rt.zX)(function($t,dn){return!!(Xe&&Xe($t,dn)||Pt&&be.isAfter(Pt,$t)&&!Ne(be,dt,Pt,$t,dn.type)||Et&&be.isAfter($t,Et)&&!Ne(be,dt,Et,$t,dn.type))});return Jt}function Ot(be,dt,Xe){return De.useMemo(function(){var Pt=Ie(be,dt,Xe),Et=Ce(Pt),Jt=Et[0],$t=(0,Lt.Z)(Jt)==="object"&&Jt.type==="mask"?Jt.format:null;return[Et.map(function(dn){return typeof dn=="string"||typeof dn=="function"?dn:dn.format}),$t]},[be,dt,Xe])}function bt(be,dt,Xe){return typeof be[0]=="function"||Xe?!0:dt}function Wt(be,dt,Xe,Pt){var Et=(0,rt.zX)(function(Jt,$t){var dn=(0,lt.Z)({type:dt},$t);if(delete dn.activeIndex,!be.isValidate(Jt)||Xe&&Xe(Jt,dn))return!0;if((dt==="date"||dt==="time")&&Pt){var Tn,zn=$t&&$t.activeIndex===1?"end":"start",fn=((Tn=Pt.disabledTime)===null||Tn===void 0?void 0:Tn.call(Pt,Jt,zn,{from:dn.from}))||{},ei=fn.disabledHours,vi=fn.disabledMinutes,pt=fn.disabledSeconds,Kn=fn.disabledMilliseconds,Hn=Pt.disabledHours,jn=Pt.disabledMinutes,Mn=Pt.disabledSeconds,fi=ei||Hn,Si=vi||jn,kn=pt||Mn,xi=be.getHour(Jt),Ei=be.getMinute(Jt),Ai=be.getSecond(Jt),dr=be.getMillisecond(Jt);if(fi&&fi().includes(xi)||Si&&Si(xi).includes(Ei)||kn&&kn(xi,Ei).includes(Ai)||Kn&&Kn(xi,Ei,Ai).includes(dr))return!0}return!1});return Et}function Xt(be){var dt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Xe=De.useMemo(function(){var Pt=be&&Ce(be);return dt&&Pt&&(Pt[1]=Pt[1]||Pt[0]),Pt},[be,dt]);return Xe}function pn(be,dt){var Xe=be.generateConfig,Pt=be.locale,Et=be.picker,Jt=Et===void 0?"date":Et,$t=be.prefixCls,dn=$t===void 0?"rc-picker":$t,Tn=be.styles,zn=Tn===void 0?{}:Tn,fn=be.classNames,ei=fn===void 0?{}:fn,vi=be.order,pt=vi===void 0?!0:vi,Kn=be.components,Hn=Kn===void 0?{}:Kn,jn=be.inputRender,Mn=be.allowClear,fi=be.clearIcon,Si=be.needConfirm,kn=be.multiple,xi=be.format,Ei=be.inputReadOnly,Ai=be.disabledDate,dr=be.minDate,Ar=be.maxDate,ur=be.showTime,ii=be.value,gr=be.defaultValue,nr=be.pickerValue,hr=be.defaultPickerValue,$i=Xt(ii),wr=Xt(gr),bn=Xt(nr),Li=Xt(hr),zi=Jt==="date"&&ur?"datetime":Jt,_i=zi==="time"||zi==="datetime",Gi=_i||kn,Vi=Si!=null?Si:_i,di=Zt(be),ki=(0,it.Z)(di,4),cr=ki[0],Qn=ki[1],ni=ki[2],Ki=ki[3],or=Dt(Pt,Qn),Mr=De.useMemo(function(){return Yt(zi,ni,Ki,cr,or)},[zi,ni,Ki,cr,or]),fo=De.useMemo(function(){return(0,lt.Z)((0,lt.Z)({},be),{},{prefixCls:dn,locale:or,picker:Jt,styles:zn,classNames:ei,order:pt,components:(0,lt.Z)({input:jn},Hn),clearIcon:Mt(dn,Mn,fi),showTime:Mr,value:$i,defaultValue:wr,pickerValue:bn,defaultPickerValue:Li},dt==null?void 0:dt())},[be]),po=Ot(zi,or,xi),No=(0,it.Z)(po,2),qr=No[0],ta=No[1],Ao=bt(qr,Ei,kn),ar=rn(Xe,Pt,Ai,dr,Ar),Rr=Wt(Xe,Jt,ar,Mr),Lo=De.useMemo(function(){return(0,lt.Z)((0,lt.Z)({},fo),{},{needConfirm:Vi,inputReadOnly:Ao,disabledDate:ar})},[fo,Vi,Ao,ar]);return[Lo,zi,Gi,qr,ta,Rr]}var $n=we(16089);function Cn(be,dt,Xe){var Pt=(0,rt.C8)(dt,{value:be}),Et=(0,it.Z)(Pt,2),Jt=Et[0],$t=Et[1],dn=De.useRef(be),Tn=De.useRef(),zn=function(){$n.Z.cancel(Tn.current)},fn=(0,rt.zX)(function(){$t(dn.current),Xe&&Jt!==dn.current&&Xe(dn.current)}),ei=(0,rt.zX)(function(vi,pt){zn(),dn.current=vi,vi||pt?fn():Tn.current=(0,$n.Z)(fn)});return De.useEffect(function(){return zn},[]),[Jt,ei]}function Ln(be,dt){var Xe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],Pt=arguments.length>3?arguments[3]:void 0,Et=Xe.every(function(fn){return fn})?!1:be,Jt=Cn(Et,dt||!1,Pt),$t=(0,it.Z)(Jt,2),dn=$t[0],Tn=$t[1];function zn(fn){var ei=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(!ei.inherit||dn)&&Tn(fn,ei.force)}return[dn,zn]}function Ci(be){var dt=De.useRef();return De.useImperativeHandle(be,function(){var Xe;return{nativeElement:(Xe=dt.current)===null||Xe===void 0?void 0:Xe.nativeElement,focus:function(Et){var Jt;(Jt=dt.current)===null||Jt===void 0||Jt.focus(Et)},blur:function(){var Et;(Et=dt.current)===null||Et===void 0||Et.blur()}}}),dt}function Jn(be,dt){return De.useMemo(function(){return be||(dt?((0,tt.ZP)(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(dt).map(function(Xe){var Pt=(0,it.Z)(Xe,2),Et=Pt[0],Jt=Pt[1];return{label:Et,value:Jt}})):[])},[be,dt])}function Di(be,dt){var Xe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,Pt=De.useRef(dt);Pt.current=dt,(0,ze.o)(function(){if(be)Pt.current(be);else{var Et=(0,$n.Z)(function(){Pt.current(be)},Xe);return function(){$n.Z.cancel(Et)}}},[be])}function ui(be){var dt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Xe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Pt=De.useState(0),Et=(0,it.Z)(Pt,2),Jt=Et[0],$t=Et[1],dn=De.useState(!1),Tn=(0,it.Z)(dn,2),zn=Tn[0],fn=Tn[1],ei=De.useRef([]),vi=De.useRef(null),pt=De.useRef(null),Kn=function(kn){vi.current=kn},Hn=function(kn){return vi.current===kn},jn=function(kn){fn(kn)},Mn=function(kn){return kn&&(pt.current=kn),pt.current},fi=function(kn){var xi=ei.current,Ei=new Set(xi.filter(function(dr){return kn[dr]||dt[dr]})),Ai=xi[xi.length-1]===0?1:0;return Ei.size>=2||be[Ai]?null:Ai};return Di(zn||Xe,function(){zn||(ei.current=[],Kn(null))}),De.useEffect(function(){zn&&ei.current.push(Jt)},[zn,Jt]),[zn,jn,Mn,Jt,$t,fi,ei.current,Kn,Hn]}function Bi(be,dt,Xe,Pt,Et,Jt){var $t=Xe[Xe.length-1],dn=function(zn,fn){var ei=(0,it.Z)(be,2),vi=ei[0],pt=ei[1],Kn=(0,lt.Z)((0,lt.Z)({},fn),{},{from:Oe(be,Xe)});return $t===1&&dt[0]&&vi&&!Ne(Pt,Et,vi,zn,Kn.type)&&Pt.isAfter(vi,zn)||$t===0&&dt[1]&&pt&&!Ne(Pt,Et,pt,zn,Kn.type)&&Pt.isAfter(zn,pt)?!0:Jt==null?void 0:Jt(zn,Kn)};return dn}function Ui(be,dt,Xe,Pt){switch(dt){case"date":case"week":return be.addMonth(Xe,Pt);case"month":case"quarter":return be.addYear(Xe,Pt);case"year":return be.addYear(Xe,Pt*10);case"decade":return be.addYear(Xe,Pt*100);default:return Xe}}var ir=[];function Ir(be,dt,Xe,Pt,Et,Jt,$t,dn){var Tn=arguments.length>8&&arguments[8]!==void 0?arguments[8]:ir,zn=arguments.length>9&&arguments[9]!==void 0?arguments[9]:ir,fn=arguments.length>10&&arguments[10]!==void 0?arguments[10]:ir,ei=arguments.length>11?arguments[11]:void 0,vi=arguments.length>12?arguments[12]:void 0,pt=arguments.length>13?arguments[13]:void 0,Kn=$t==="time",Hn=Jt||0,jn=function(bn){var Li=be.getNow();return Kn&&(Li=Bt(be,Li)),Tn[bn]||Xe[bn]||Li},Mn=(0,it.Z)(zn,2),fi=Mn[0],Si=Mn[1],kn=(0,rt.C8)(function(){return jn(0)},{value:fi}),xi=(0,it.Z)(kn,2),Ei=xi[0],Ai=xi[1],dr=(0,rt.C8)(function(){return jn(1)},{value:Si}),Ar=(0,it.Z)(dr,2),ur=Ar[0],ii=Ar[1],gr=De.useMemo(function(){var wr=[Ei,ur][Hn];return Kn?wr:Bt(be,wr,fn[Hn])},[Kn,Ei,ur,Hn,be,fn]),nr=function(bn){var Li=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"panel",zi=[Ai,ii][Hn];zi(bn);var _i=[Ei,ur];_i[Hn]=bn,ei&&(!Ne(be,dt,Ei,_i[0],$t)||!Ne(be,dt,ur,_i[1],$t))&&ei(_i,{source:Li,range:Hn===1?"end":"start",mode:Pt})},hr=function(bn,Li){if(dn){var zi={date:"month",week:"month",month:"year",quarter:"year"},_i=zi[$t];if(_i&&!Ne(be,dt,bn,Li,_i))return Ui(be,$t,Li,-1);if($t==="year"&&bn){var Gi=Math.floor(be.getYear(bn)/10),Vi=Math.floor(be.getYear(Li)/10);if(Gi!==Vi)return Ui(be,$t,Li,-1)}}return Li},$i=De.useRef(null);return(0,ze.Z)(function(){if(Et&&!Tn[Hn]){var wr=Kn?null:be.getNow();if($i.current!==null&&$i.current!==Hn?wr=[Ei,ur][Hn^1]:Xe[Hn]?wr=Hn===0?Xe[0]:hr(Xe[0],Xe[1]):Xe[Hn^1]&&(wr=Xe[Hn^1]),wr){vi&&be.isAfter(vi,wr)&&(wr=vi);var bn=dn?Ui(be,$t,wr,1):wr;pt&&be.isAfter(bn,pt)&&(wr=dn?Ui(be,$t,pt,-1):pt),nr(wr,"reset")}}},[Et,Hn,Xe[Hn]]),De.useEffect(function(){Et?$i.current=Hn:$i.current=null},[Et,Hn]),(0,ze.Z)(function(){Et&&Tn&&Tn[Hn]&&nr(Tn[Hn],"reset")},[Et,Hn]),[gr,nr]}function qi(be,dt){var Xe=De.useRef(be),Pt=De.useState({}),Et=(0,it.Z)(Pt,2),Jt=Et[1],$t=function(zn){return zn&&dt!==void 0?dt:Xe.current},dn=function(zn){Xe.current=zn,Jt({})};return[$t,dn,$t(!0)]}var ri=[];function co(be,dt,Xe){var Pt=function($t){return $t.map(function(dn){return _t(dn,{generateConfig:be,locale:dt,format:Xe[0]})})},Et=function($t,dn){for(var Tn=Math.max($t.length,dn.length),zn=-1,fn=0;fn<Tn;fn+=1){var ei=$t[fn]||null,vi=dn[fn]||null;if(ei!==vi&&!Fe(be,ei,vi)){zn=fn;break}}return[zn<0,zn!==0]};return[Pt,Et]}function Qr(be,dt){return(0,_e.Z)(be).sort(function(Xe,Pt){return dt.isAfter(Xe,Pt)?1:-1})}function to(be){var dt=qi(be),Xe=(0,it.Z)(dt,2),Pt=Xe[0],Et=Xe[1],Jt=(0,rt.zX)(function(){Et(be)});return De.useEffect(function(){Jt()},[be]),[Pt,Et]}function no(be,dt,Xe,Pt,Et,Jt,$t,dn,Tn){var zn=(0,rt.C8)(Jt,{value:$t}),fn=(0,it.Z)(zn,2),ei=fn[0],vi=fn[1],pt=ei||ri,Kn=to(pt),Hn=(0,it.Z)(Kn,2),jn=Hn[0],Mn=Hn[1],fi=co(be,dt,Xe),Si=(0,it.Z)(fi,2),kn=Si[0],xi=Si[1],Ei=(0,rt.zX)(function(dr){var Ar=(0,_e.Z)(dr);if(Pt)for(var ur=0;ur<2;ur+=1)Ar[ur]=Ar[ur]||null;else Et&&(Ar=Qr(Ar.filter(function(wr){return wr}),be));var ii=xi(jn(),Ar),gr=(0,it.Z)(ii,2),nr=gr[0],hr=gr[1];if(!nr&&(Mn(Ar),dn)){var $i=kn(Ar);dn(Ar,$i,{range:hr?"end":"start"})}}),Ai=function(){Tn&&Tn(jn())};return[pt,vi,jn,Ei,Ai]}function xo(be,dt,Xe,Pt,Et,Jt,$t,dn,Tn,zn){var fn=be.generateConfig,ei=be.locale,vi=be.picker,pt=be.onChange,Kn=be.allowEmpty,Hn=be.order,jn=Jt.some(function(nr){return nr})?!1:Hn,Mn=co(fn,ei,$t),fi=(0,it.Z)(Mn,2),Si=fi[0],kn=fi[1],xi=qi(dt),Ei=(0,it.Z)(xi,2),Ai=Ei[0],dr=Ei[1],Ar=(0,rt.zX)(function(){dr(dt)});De.useEffect(function(){Ar()},[dt]);var ur=(0,rt.zX)(function(nr){var hr=nr===null,$i=(0,_e.Z)(nr||Ai());if(hr)for(var wr=Math.max(Jt.length,$i.length),bn=0;bn<wr;bn+=1)Jt[bn]||($i[bn]=null);jn&&$i[0]&&$i[1]&&($i=Qr($i,fn)),Et($i);var Li=$i,zi=(0,it.Z)(Li,2),_i=zi[0],Gi=zi[1],Vi=!_i,di=!Gi,ki=Kn?(!Vi||Kn[0])&&(!di||Kn[1]):!0,cr=!Hn||Vi||di||Ne(fn,ei,_i,Gi,vi)||fn.isAfter(Gi,_i),Qn=(Jt[0]||!_i||!zn(_i,{activeIndex:0}))&&(Jt[1]||!Gi||!zn(Gi,{from:_i,activeIndex:1})),ni=hr||ki&&cr&&Qn;if(ni){Xe($i);var Ki=kn($i,dt),or=(0,it.Z)(Ki,1),Mr=or[0];pt&&!Mr&&pt(hr&&$i.every(function(fo){return!fo})?null:$i,Si($i))}return ni}),ii=(0,rt.zX)(function(nr,hr){var $i=je(Ai(),nr,Pt()[nr]);dr($i),hr&&ur()}),gr=!dn&&!Tn;return Di(!gr,function(){gr&&(ur(),Et(dt),Ar())},2),[ii,ur]}function lo(be,dt,Xe,Pt,Et){return dt!=="date"&&dt!=="time"?!1:Xe!==void 0?Xe:Pt!==void 0?Pt:!Et&&(be==="date"||be==="time")}var Er=we(29301);function io(be,dt,Xe,Pt,Et,Jt){var $t=be;function dn(ei,vi,pt){var Kn=Jt[ei]($t),Hn=pt.find(function(Si){return Si.value===Kn});if(!Hn||Hn.disabled){var jn=pt.filter(function(Si){return!Si.disabled}),Mn=(0,_e.Z)(jn).reverse(),fi=Mn.find(function(Si){return Si.value<=Kn})||jn[0];fi&&(Kn=fi.value,$t=Jt[vi]($t,Kn))}return Kn}var Tn=dn("getHour","setHour",dt()),zn=dn("getMinute","setMinute",Xe(Tn)),fn=dn("getSecond","setSecond",Pt(Tn,zn));return dn("getMillisecond","setMillisecond",Et(Tn,zn,fn)),$t}function Le(){return[]}function Pn(be,dt){for(var Xe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,Pt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,Et=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],Jt=arguments.length>5&&arguments[5]!==void 0?arguments[5]:2,$t=[],dn=Xe>=1?Xe|0:1,Tn=be;Tn<=dt;Tn+=dn){var zn=Et.includes(Tn);(!zn||!Pt)&&$t.push({label:ye(Tn,Jt),value:Tn,disabled:zn})}return $t}function Un(be){var dt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Xe=arguments.length>2?arguments[2]:void 0,Pt=dt||{},Et=Pt.use12Hours,Jt=Pt.hourStep,$t=Jt===void 0?1:Jt,dn=Pt.minuteStep,Tn=dn===void 0?1:dn,zn=Pt.secondStep,fn=zn===void 0?1:zn,ei=Pt.millisecondStep,vi=ei===void 0?100:ei,pt=Pt.hideDisabledOptions,Kn=Pt.disabledTime,Hn=Pt.disabledHours,jn=Pt.disabledMinutes,Mn=Pt.disabledSeconds,fi=De.useMemo(function(){return Xe||be.getNow()},[Xe,be]);if(0)var Si,kn,xi;var Ei=De.useCallback(function(Gi){var Vi=(Kn==null?void 0:Kn(Gi))||{};return[Vi.disabledHours||Hn||Le,Vi.disabledMinutes||jn||Le,Vi.disabledSeconds||Mn||Le,Vi.disabledMilliseconds||Le]},[Kn,Hn,jn,Mn]),Ai=De.useMemo(function(){return Ei(fi)},[fi,Ei]),dr=(0,it.Z)(Ai,4),Ar=dr[0],ur=dr[1],ii=dr[2],gr=dr[3],nr=De.useCallback(function(Gi,Vi,di,ki){var cr=Pn(0,23,$t,pt,Gi()),Qn=Et?cr.map(function(Mr){return(0,lt.Z)((0,lt.Z)({},Mr),{},{label:ye(Mr.value%12||12,2)})}):cr,ni=function(fo){return Pn(0,59,Tn,pt,Vi(fo))},Ki=function(fo,po){return Pn(0,59,fn,pt,di(fo,po))},or=function(fo,po,No){return Pn(0,999,vi,pt,ki(fo,po,No),3)};return[Qn,ni,Ki,or]},[pt,$t,Et,vi,Tn,fn]),hr=De.useMemo(function(){return nr(Ar,ur,ii,gr)},[nr,Ar,ur,ii,gr]),$i=(0,it.Z)(hr,4),wr=$i[0],bn=$i[1],Li=$i[2],zi=$i[3],_i=function(Vi,di){var ki=function(){return wr},cr=bn,Qn=Li,ni=zi;if(di){var Ki=Ei(di),or=(0,it.Z)(Ki,4),Mr=or[0],fo=or[1],po=or[2],No=or[3],qr=nr(Mr,fo,po,No),ta=(0,it.Z)(qr,4),Ao=ta[0],ar=ta[1],Rr=ta[2],Lo=ta[3];ki=function(){return Ao},cr=ar,Qn=Rr,ni=Lo}var Zo=io(Vi,ki,cr,Qn,ni,be);return Zo};return[_i,wr,bn,Li,zi]}function gi(be){var dt=be.mode,Xe=be.internalMode,Pt=be.renderExtraFooter,Et=be.showNow,Jt=be.showTime,$t=be.onSubmit,dn=be.onNow,Tn=be.invalid,zn=be.needConfirm,fn=be.generateConfig,ei=be.disabledDate,vi=De.useContext(ue),pt=vi.prefixCls,Kn=vi.locale,Hn=vi.button,jn=Hn===void 0?"button":Hn,Mn=fn.getNow(),fi=Un(fn,Jt,Mn),Si=(0,it.Z)(fi,1),kn=Si[0],xi=Pt==null?void 0:Pt(dt),Ei=ei(Mn,{type:dt}),Ai=function(){if(!Ei){var hr=kn(Mn);dn(hr)}},dr="".concat(pt,"-now"),Ar="".concat(dr,"-btn"),ur=Et&&De.createElement("li",{className:dr},De.createElement("a",{className:Ee()(Ar,Ei&&"".concat(Ar,"-disabled")),"aria-disabled":Ei,onClick:Ai},Xe==="date"?Kn.today:Kn.now)),ii=zn&&De.createElement("li",{className:"".concat(pt,"-ok")},De.createElement(jn,{disabled:Tn,onClick:$t},Kn.ok)),gr=(ur||ii)&&De.createElement("ul",{className:"".concat(pt,"-ranges")},ur,ii);return!xi&&!gr?null:De.createElement("div",{className:"".concat(pt,"-footer")},xi&&De.createElement("div",{className:"".concat(pt,"-footer-extra")},xi),gr)}function mi(be,dt,Xe){function Pt(Et,Jt){var $t=Et.findIndex(function(Tn){return Ne(be,dt,Tn,Jt,Xe)});if($t===-1)return[].concat((0,_e.Z)(Et),[Jt]);var dn=(0,_e.Z)(Et);return dn.splice($t,1),dn}return Pt}var ti=De.createContext(null);function Yi(){return De.useContext(ti)}function pr(be,dt){var Xe=be.prefixCls,Pt=be.generateConfig,Et=be.locale,Jt=be.disabledDate,$t=be.minDate,dn=be.maxDate,Tn=be.cellRender,zn=be.hoverValue,fn=be.hoverRangeValue,ei=be.onHover,vi=be.values,pt=be.pickerValue,Kn=be.onSelect,Hn=be.prevIcon,jn=be.nextIcon,Mn=be.superPrevIcon,fi=be.superNextIcon,Si=Pt.getNow(),kn={now:Si,values:vi,pickerValue:pt,prefixCls:Xe,disabledDate:Jt,minDate:$t,maxDate:dn,cellRender:Tn,hoverValue:zn,hoverRangeValue:fn,onHover:ei,locale:Et,generateConfig:Pt,onSelect:Kn,panelType:dt,prevIcon:Hn,nextIcon:jn,superPrevIcon:Mn,superNextIcon:fi};return[kn,Si]}var un=De.createContext({});function an(be){for(var dt=be.rowNum,Xe=be.colNum,Pt=be.baseDate,Et=be.getCellDate,Jt=be.prefixColumn,$t=be.rowClassName,dn=be.titleFormat,Tn=be.getCellText,zn=be.getCellClassName,fn=be.headerCells,ei=be.cellSelection,vi=ei===void 0?!0:ei,pt=be.disabledDate,Kn=Yi(),Hn=Kn.prefixCls,jn=Kn.panelType,Mn=Kn.now,fi=Kn.disabledDate,Si=Kn.cellRender,kn=Kn.onHover,xi=Kn.hoverValue,Ei=Kn.hoverRangeValue,Ai=Kn.generateConfig,dr=Kn.values,Ar=Kn.locale,ur=Kn.onSelect,ii=pt||fi,gr="".concat(Hn,"-cell"),nr=De.useContext(un),hr=nr.onCellDblClick,$i=function(di){return dr.some(function(ki){return ki&&Ne(Ai,Ar,di,ki,jn)})},wr=[],bn=0;bn<dt;bn+=1){for(var Li=[],zi=void 0,_i=function(){var di=bn*Xe+Gi,ki=Et(Pt,di),cr=ii==null?void 0:ii(ki,{type:jn});Gi===0&&(zi=ki,Jt&&Li.push(Jt(zi)));var Qn=!1,ni=!1,Ki=!1;if(vi&&Ei){var or=(0,it.Z)(Ei,2),Mr=or[0],fo=or[1];Qn=Ye(Ai,Mr,fo,ki),ni=Ne(Ai,Ar,ki,Mr,jn),Ki=Ne(Ai,Ar,ki,fo,jn)}var po=dn?_t(ki,{locale:Ar,format:dn,generateConfig:Ai}):void 0,No=De.createElement("div",{className:"".concat(gr,"-inner")},Tn(ki));Li.push(De.createElement("td",{key:Gi,title:po,className:Ee()(gr,(0,lt.Z)((0,xt.Z)((0,xt.Z)((0,xt.Z)((0,xt.Z)((0,xt.Z)((0,xt.Z)({},"".concat(gr,"-disabled"),cr),"".concat(gr,"-hover"),(xi||[]).some(function(qr){return Ne(Ai,Ar,ki,qr,jn)})),"".concat(gr,"-in-range"),Qn&&!ni&&!Ki),"".concat(gr,"-range-start"),ni),"".concat(gr,"-range-end"),Ki),"".concat(Hn,"-cell-selected"),!Ei&&jn!=="week"&&$i(ki)),zn(ki))),onClick:function(){cr||ur(ki)},onDoubleClick:function(){!cr&&hr&&hr()},onMouseEnter:function(){cr||kn==null||kn(ki)},onMouseLeave:function(){cr||kn==null||kn(null)}},Si?Si(ki,{prefixCls:Hn,originNode:No,today:Mn,type:jn,locale:Ar}):No))},Gi=0;Gi<Xe;Gi+=1)_i();wr.push(De.createElement("tr",{key:bn,className:$t==null?void 0:$t(zi)},Li))}return De.createElement("div",{className:"".concat(Hn,"-body")},De.createElement("table",{className:"".concat(Hn,"-content")},fn&&De.createElement("thead",null,De.createElement("tr",null,fn)),De.createElement("tbody",null,wr)))}var jt={visibility:"hidden"};function mn(be){var dt=be.offset,Xe=be.superOffset,Pt=be.onChange,Et=be.getStart,Jt=be.getEnd,$t=be.children,dn=Yi(),Tn=dn.prefixCls,zn=dn.prevIcon,fn=zn===void 0?"\u2039":zn,ei=dn.nextIcon,vi=ei===void 0?"\u203A":ei,pt=dn.superPrevIcon,Kn=pt===void 0?"\xAB":pt,Hn=dn.superNextIcon,jn=Hn===void 0?"\xBB":Hn,Mn=dn.minDate,fi=dn.maxDate,Si=dn.generateConfig,kn=dn.locale,xi=dn.pickerValue,Ei=dn.panelType,Ai="".concat(Tn,"-header"),dr=De.useContext(un),Ar=dr.hidePrev,ur=dr.hideNext,ii=dr.hideHeader,gr=De.useMemo(function(){if(!Mn||!dt||!Jt)return!1;var Vi=Jt(dt(-1,xi));return!ke(Si,kn,Vi,Mn,Ei)},[Mn,dt,xi,Jt,Si,kn,Ei]),nr=De.useMemo(function(){if(!Mn||!Xe||!Jt)return!1;var Vi=Jt(Xe(-1,xi));return!ke(Si,kn,Vi,Mn,Ei)},[Mn,Xe,xi,Jt,Si,kn,Ei]),hr=De.useMemo(function(){if(!fi||!dt||!Et)return!1;var Vi=Et(dt(1,xi));return!ke(Si,kn,fi,Vi,Ei)},[fi,dt,xi,Et,Si,kn,Ei]),$i=De.useMemo(function(){if(!fi||!Xe||!Et)return!1;var Vi=Et(Xe(1,xi));return!ke(Si,kn,fi,Vi,Ei)},[fi,Xe,xi,Et,Si,kn,Ei]),wr=function(di){dt&&Pt(dt(di,xi))},bn=function(di){Xe&&Pt(Xe(di,xi))};if(ii)return null;var Li="".concat(Ai,"-prev-btn"),zi="".concat(Ai,"-next-btn"),_i="".concat(Ai,"-super-prev-btn"),Gi="".concat(Ai,"-super-next-btn");return De.createElement("div",{className:Ai},Xe&&De.createElement("button",{type:"button","aria-label":kn.previousYear,onClick:function(){return bn(-1)},tabIndex:-1,className:Ee()(_i,nr&&"".concat(_i,"-disabled")),disabled:nr,style:Ar?jt:{}},Kn),dt&&De.createElement("button",{type:"button","aria-label":kn.previousMonth,onClick:function(){return wr(-1)},tabIndex:-1,className:Ee()(Li,gr&&"".concat(Li,"-disabled")),disabled:gr,style:Ar?jt:{}},fn),De.createElement("div",{className:"".concat(Ai,"-view")},$t),dt&&De.createElement("button",{type:"button","aria-label":kn.nextMonth,onClick:function(){return wr(1)},tabIndex:-1,className:Ee()(zi,hr&&"".concat(zi,"-disabled")),disabled:hr,style:ur?jt:{}},vi),Xe&&De.createElement("button",{type:"button","aria-label":kn.nextYear,onClick:function(){return bn(1)},tabIndex:-1,className:Ee()(Gi,$i&&"".concat(Gi,"-disabled")),disabled:$i,style:ur?jt:{}},jn))}var Zi=mn;function ji(be){var dt=be.prefixCls,Xe=be.panelName,Pt=Xe===void 0?"date":Xe,Et=be.locale,Jt=be.generateConfig,$t=be.pickerValue,dn=be.onPickerValueChange,Tn=be.onModeChange,zn=be.mode,fn=zn===void 0?"date":zn,ei=be.disabledDate,vi=be.onSelect,pt=be.onHover,Kn=be.showWeek,Hn="".concat(dt,"-").concat(Pt,"-panel"),jn="".concat(dt,"-cell"),Mn=fn==="week",fi=pr(be,fn),Si=(0,it.Z)(fi,2),kn=Si[0],xi=Si[1],Ei=Jt.locale.getWeekFirstDay(Et.locale),Ai=Jt.setDate($t,1),dr=et(Et.locale,Jt,Ai),Ar=Jt.getMonth($t),ur=Kn===void 0?Mn:Kn,ii=ur?function(Vi){var di=ei==null?void 0:ei(Vi,{type:"week"});return De.createElement("td",{key:"week",className:Ee()(jn,"".concat(jn,"-week"),(0,xt.Z)({},"".concat(jn,"-disabled"),di)),onClick:function(){di||vi(Vi)},onMouseEnter:function(){di||pt==null||pt(Vi)},onMouseLeave:function(){di||pt==null||pt(null)}},De.createElement("div",{className:"".concat(jn,"-inner")},Jt.locale.getWeek(Et.locale,Vi)))}:null,gr=[],nr=Et.shortWeekDays||(Jt.locale.getShortWeekDays?Jt.locale.getShortWeekDays(Et.locale):[]);ii&&gr.push(De.createElement("th",{key:"empty"},De.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},Et.week)));for(var hr=0;hr<zt;hr+=1)gr.push(De.createElement("th",{key:hr},nr[(hr+Ei)%zt]));var $i=function(di,ki){return Jt.addDate(di,ki)},wr=function(di){return _t(di,{locale:Et,format:Et.cellDateFormat,generateConfig:Jt})},bn=function(di){var ki=(0,xt.Z)((0,xt.Z)({},"".concat(dt,"-cell-in-view"),li(Jt,di,$t)),"".concat(dt,"-cell-today"),yi(Jt,di,xi));return ki},Li=Et.shortMonths||(Jt.locale.getShortMonths?Jt.locale.getShortMonths(Et.locale):[]),zi=De.createElement("button",{type:"button","aria-label":Et.yearSelect,key:"year",onClick:function(){Tn("year",$t)},tabIndex:-1,className:"".concat(dt,"-year-btn")},_t($t,{locale:Et,format:Et.yearFormat,generateConfig:Jt})),_i=De.createElement("button",{type:"button","aria-label":Et.monthSelect,key:"month",onClick:function(){Tn("month",$t)},tabIndex:-1,className:"".concat(dt,"-month-btn")},Et.monthFormat?_t($t,{locale:Et,format:Et.monthFormat,generateConfig:Jt}):Li[Ar]),Gi=Et.monthBeforeYear?[_i,zi]:[zi,_i];return De.createElement(ti.Provider,{value:kn},De.createElement("div",{className:Ee()(Hn,Kn&&"".concat(Hn,"-show-week"))},De.createElement(Zi,{offset:function(di){return Jt.addMonth($t,di)},superOffset:function(di){return Jt.addYear($t,di)},onChange:dn,getStart:function(di){return Jt.setDate(di,1)},getEnd:function(di){var ki=Jt.setDate(di,1);return ki=Jt.addMonth(ki,1),Jt.addDate(ki,-1)}},Gi),De.createElement(an,(0,ve.Z)({titleFormat:Et.fieldDateFormat},be,{colNum:zt,rowNum:6,baseDate:dr,headerCells:gr,getCellDate:$i,getCellText:wr,getCellClassName:bn,prefixColumn:ii,cellSelection:!Mn}))))}var lr=we(29194),Zn=1/3;function Ti(be,dt){var Xe=De.useRef(!1),Pt=De.useRef(null),Et=De.useRef(null),Jt=function(){return Xe.current},$t=function(){$n.Z.cancel(Pt.current),Xe.current=!1},dn=De.useRef(),Tn=function(){var ei=be.current;if(Et.current=null,dn.current=0,ei){var vi=ei.querySelector('[data-value="'.concat(dt,'"]')),pt=ei.querySelector("li"),Kn=function Hn(){$t(),Xe.current=!0,dn.current+=1;var jn=ei.scrollTop,Mn=pt.offsetTop,fi=vi.offsetTop,Si=fi-Mn;if(fi===0&&vi!==pt||!(0,lr.Z)(ei)){dn.current<=5&&(Pt.current=(0,$n.Z)(Hn));return}var kn=jn+(Si-jn)*Zn,xi=Math.abs(Si-kn);if(Et.current!==null&&Et.current<xi){$t();return}if(Et.current=xi,xi<=1){ei.scrollTop=Si,$t();return}ei.scrollTop=kn,Pt.current=(0,$n.Z)(Hn)};vi&&pt&&Kn()}},zn=(0,rt.zX)(Tn);return[zn,$t,Jt]}var fr=300;function Vr(be){return be.map(function(dt){var Xe=dt.value,Pt=dt.label,Et=dt.disabled;return[Xe,Pt,Et].join(",")}).join(";")}function ci(be){var dt=be.units,Xe=be.value,Pt=be.optionalValue,Et=be.type,Jt=be.onChange,$t=be.onHover,dn=be.onDblClick,Tn=be.changeOnScroll,zn=Yi(),fn=zn.prefixCls,ei=zn.cellRender,vi=zn.now,pt=zn.locale,Kn="".concat(fn,"-time-panel"),Hn="".concat(fn,"-time-panel-cell"),jn=De.useRef(null),Mn=De.useRef(),fi=function(){clearTimeout(Mn.current)},Si=Ti(jn,Xe!=null?Xe:Pt),kn=(0,it.Z)(Si,3),xi=kn[0],Ei=kn[1],Ai=kn[2];(0,ze.Z)(function(){return xi(),fi(),function(){Ei(),fi()}},[Xe,Pt,Vr(dt)]);var dr=function(ii){fi();var gr=ii.target;!Ai()&&Tn&&(Mn.current=setTimeout(function(){var nr=jn.current,hr=nr.querySelector("li").offsetTop,$i=Array.from(nr.querySelectorAll("li")),wr=$i.map(function(Gi){return Gi.offsetTop-hr}),bn=wr.map(function(Gi,Vi){return dt[Vi].disabled?Number.MAX_SAFE_INTEGER:Math.abs(Gi-gr.scrollTop)}),Li=Math.min.apply(Math,(0,_e.Z)(bn)),zi=bn.findIndex(function(Gi){return Gi===Li}),_i=dt[zi];_i&&!_i.disabled&&Jt(_i.value)},fr))},Ar="".concat(Kn,"-column");return De.createElement("ul",{className:Ar,ref:jn,"data-type":Et,onScroll:dr},dt.map(function(ur){var ii=ur.label,gr=ur.value,nr=ur.disabled,hr=De.createElement("div",{className:"".concat(Hn,"-inner")},ii);return De.createElement("li",{key:gr,className:Ee()(Hn,(0,xt.Z)((0,xt.Z)({},"".concat(Hn,"-selected"),Xe===gr),"".concat(Hn,"-disabled"),nr)),onClick:function(){nr||Jt(gr)},onDoubleClick:function(){!nr&&dn&&dn()},onMouseEnter:function(){$t(gr)},onMouseLeave:function(){$t(null)},"data-value":gr},ei?ei(gr,{prefixCls:fn,originNode:hr,today:vi,type:"time",subType:Et,locale:pt}):hr)}))}function ut(be){return be<12}function Nt(be){var dt=be.showHour,Xe=be.showMinute,Pt=be.showSecond,Et=be.showMillisecond,Jt=be.use12Hours,$t=be.changeOnScroll,dn=Yi(),Tn=dn.prefixCls,zn=dn.values,fn=dn.generateConfig,ei=dn.locale,vi=dn.onSelect,pt=dn.onHover,Kn=pt===void 0?function(){}:pt,Hn=dn.pickerValue,jn=(zn==null?void 0:zn[0])||null,Mn=De.useContext(un),fi=Mn.onCellDblClick,Si=Un(fn,be,jn),kn=(0,it.Z)(Si,5),xi=kn[0],Ei=kn[1],Ai=kn[2],dr=kn[3],Ar=kn[4],ur=function(hi){var Yo=jn&&fn[hi](jn),St=Hn&&fn[hi](Hn);return[Yo,St]},ii=ur("getHour"),gr=(0,it.Z)(ii,2),nr=gr[0],hr=gr[1],$i=ur("getMinute"),wr=(0,it.Z)($i,2),bn=wr[0],Li=wr[1],zi=ur("getSecond"),_i=(0,it.Z)(zi,2),Gi=_i[0],Vi=_i[1],di=ur("getMillisecond"),ki=(0,it.Z)(di,2),cr=ki[0],Qn=ki[1],ni=nr===null?null:ut(nr)?"am":"pm",Ki=De.useMemo(function(){return Jt?ut(nr)?Ei.filter(function(mr){return ut(mr.value)}):Ei.filter(function(mr){return!ut(mr.value)}):Ei},[nr,Ei,Jt]),or=function(hi,Yo){var St,wn=hi.filter(function(ja){return!ja.disabled});return Yo!=null?Yo:wn==null||(St=wn[0])===null||St===void 0?void 0:St.value},Mr=or(Ei,nr),fo=De.useMemo(function(){return Ai(Mr)},[Ai,Mr]),po=or(fo,bn),No=De.useMemo(function(){return dr(Mr,po)},[dr,Mr,po]),qr=or(No,Gi),ta=De.useMemo(function(){return Ar(Mr,po,qr)},[Ar,Mr,po,qr]),Ao=or(ta,cr),ar=De.useMemo(function(){if(!Jt)return[];var mr=fn.getNow(),hi=fn.setHour(mr,6),Yo=fn.setHour(mr,18),St=function(ja,za){var da=ei.cellMeridiemFormat;return da?_t(ja,{generateConfig:fn,locale:ei,format:da}):za};return[{label:St(hi,"AM"),value:"am",disabled:Ei.every(function(wn){return wn.disabled||!ut(wn.value)})},{label:St(Yo,"PM"),value:"pm",disabled:Ei.every(function(wn){return wn.disabled||ut(wn.value)})}]},[Ei,Jt,fn,ei]),Rr=function(hi){var Yo=xi(hi);vi(Yo)},Lo=De.useMemo(function(){var mr=jn||Hn||fn.getNow(),hi=function(St){return St!=null};return hi(nr)?(mr=fn.setHour(mr,nr),mr=fn.setMinute(mr,bn),mr=fn.setSecond(mr,Gi),mr=fn.setMillisecond(mr,cr)):hi(hr)?(mr=fn.setHour(mr,hr),mr=fn.setMinute(mr,Li),mr=fn.setSecond(mr,Vi),mr=fn.setMillisecond(mr,Qn)):hi(Mr)&&(mr=fn.setHour(mr,Mr),mr=fn.setMinute(mr,po),mr=fn.setSecond(mr,qr),mr=fn.setMillisecond(mr,Ao)),mr},[jn,Hn,nr,bn,Gi,cr,Mr,po,qr,Ao,hr,Li,Vi,Qn,fn]),Zo=function(hi,Yo){return hi===null?null:fn[Yo](Lo,hi)},Ko=function(hi){return Zo(hi,"setHour")},Io=function(hi){return Zo(hi,"setMinute")},Co=function(hi){return Zo(hi,"setSecond")},ia=function(hi){return Zo(hi,"setMillisecond")},ma=function(hi){return hi===null?null:hi==="am"&&!ut(nr)?fn.setHour(Lo,nr-12):hi==="pm"&&ut(nr)?fn.setHour(Lo,nr+12):Lo},To=function(hi){Rr(Ko(hi))},Da=function(hi){Rr(Io(hi))},Ur=function(hi){Rr(Co(hi))},ao=function(hi){Rr(ia(hi))},ho=function(hi){Rr(ma(hi))},bo=function(hi){Kn(Ko(hi))},Do=function(hi){Kn(Io(hi))},Ea=function(hi){Kn(Co(hi))},Sr=function(hi){Kn(ia(hi))},er=function(hi){Kn(ma(hi))},Br={onDblClick:fi,changeOnScroll:$t};return De.createElement("div",{className:"".concat(Tn,"-content")},dt&&De.createElement(ci,(0,ve.Z)({units:Ki,value:nr,optionalValue:hr,type:"hour",onChange:To,onHover:bo},Br)),Xe&&De.createElement(ci,(0,ve.Z)({units:fo,value:bn,optionalValue:Li,type:"minute",onChange:Da,onHover:Do},Br)),Pt&&De.createElement(ci,(0,ve.Z)({units:No,value:Gi,optionalValue:Vi,type:"second",onChange:Ur,onHover:Ea},Br)),Et&&De.createElement(ci,(0,ve.Z)({units:ta,value:cr,optionalValue:Qn,type:"millisecond",onChange:ao,onHover:Sr},Br)),Jt&&De.createElement(ci,(0,ve.Z)({units:ar,value:ni,type:"meridiem",onChange:ho,onHover:er},Br)))}function Rn(be){var dt=be.prefixCls,Xe=be.value,Pt=be.locale,Et=be.generateConfig,Jt=be.showTime,$t=Jt||{},dn=$t.format,Tn="".concat(dt,"-time-panel"),zn=pr(be,"time"),fn=(0,it.Z)(zn,1),ei=fn[0];return De.createElement(ti.Provider,{value:ei},De.createElement("div",{className:Ee()(Tn)},De.createElement(Zi,null,Xe?_t(Xe,{locale:Pt,format:dn,generateConfig:Et}):"\xA0"),De.createElement(Nt,Jt)))}function In(be){var dt=be.prefixCls,Xe=be.generateConfig,Pt=be.showTime,Et=be.onSelect,Jt=be.value,$t=be.pickerValue,dn=be.onHover,Tn="".concat(dt,"-datetime-panel"),zn=Un(Xe,Pt),fn=(0,it.Z)(zn,1),ei=fn[0],vi=function(jn){return Jt?Bt(Xe,jn,Jt):Bt(Xe,jn,$t)},pt=function(jn){dn==null||dn(jn&&vi(jn))},Kn=function(jn){var Mn=vi(jn);Et(ei(Mn,Mn))};return De.createElement("div",{className:Tn},De.createElement(ji,(0,ve.Z)({},be,{onSelect:Kn,onHover:pt})),De.createElement(Rn,be))}function Qt(be){var dt=be.prefixCls,Xe=be.locale,Pt=be.generateConfig,Et=be.pickerValue,Jt=be.disabledDate,$t=be.onPickerValueChange,dn="".concat(dt,"-decade-panel"),Tn=pr(be,"decade"),zn=(0,it.Z)(Tn,1),fn=zn[0],ei=function(Ei){var Ai=Math.floor(Pt.getYear(Ei)/100)*100;return Pt.setYear(Ei,Ai)},vi=function(Ei){var Ai=ei(Ei);return Pt.addYear(Ai,99)},pt=ei(Et),Kn=vi(Et),Hn=Pt.addYear(pt,-10),jn=function(Ei,Ai){return Pt.addYear(Ei,Ai*10)},Mn=function(Ei){var Ai=Xe.cellYearFormat,dr=_t(Ei,{locale:Xe,format:Ai,generateConfig:Pt}),Ar=_t(Pt.addYear(Ei,9),{locale:Xe,format:Ai,generateConfig:Pt});return"".concat(dr,"-").concat(Ar)},fi=function(Ei){return(0,xt.Z)({},"".concat(dt,"-cell-in-view"),Dn(Pt,Ei,pt)||Dn(Pt,Ei,Kn)||Ye(Pt,pt,Kn,Ei))},Si=Jt?function(xi,Ei){var Ai=Pt.setDate(xi,1),dr=Pt.setMonth(Ai,0),Ar=Pt.setYear(dr,Math.floor(Pt.getYear(dr)/10)*10),ur=Pt.addYear(Ar,10),ii=Pt.addDate(ur,-1);return Jt(Ar,Ei)&&Jt(ii,Ei)}:null,kn="".concat(_t(pt,{locale:Xe,format:Xe.yearFormat,generateConfig:Pt}),"-").concat(_t(Kn,{locale:Xe,format:Xe.yearFormat,generateConfig:Pt}));return De.createElement(ti.Provider,{value:fn},De.createElement("div",{className:dn},De.createElement(Zi,{superOffset:function(Ei){return Pt.addYear(Et,Ei*100)},onChange:$t,getStart:ei,getEnd:vi},kn),De.createElement(an,(0,ve.Z)({},be,{disabledDate:Si,colNum:3,rowNum:4,baseDate:Hn,getCellDate:jn,getCellText:Mn,getCellClassName:fi}))))}function qn(be){var dt=be.prefixCls,Xe=be.locale,Pt=be.generateConfig,Et=be.pickerValue,Jt=be.disabledDate,$t=be.onPickerValueChange,dn=be.onModeChange,Tn="".concat(dt,"-month-panel"),zn=pr(be,"month"),fn=(0,it.Z)(zn,1),ei=fn[0],vi=Pt.setMonth(Et,0),pt=Xe.shortMonths||(Pt.locale.getShortMonths?Pt.locale.getShortMonths(Xe.locale):[]),Kn=function(kn,xi){return Pt.addMonth(kn,xi)},Hn=function(kn){var xi=Pt.getMonth(kn);return Xe.monthFormat?_t(kn,{locale:Xe,format:Xe.monthFormat,generateConfig:Pt}):pt[xi]},jn=function(){return(0,xt.Z)({},"".concat(dt,"-cell-in-view"),!0)},Mn=Jt?function(Si,kn){var xi=Pt.setDate(Si,1),Ei=Pt.setMonth(xi,Pt.getMonth(xi)+1),Ai=Pt.addDate(Ei,-1);return Jt(xi,kn)&&Jt(Ai,kn)}:null,fi=De.createElement("button",{type:"button",key:"year","aria-label":Xe.yearSelect,onClick:function(){dn("year")},tabIndex:-1,className:"".concat(dt,"-year-btn")},_t(Et,{locale:Xe,format:Xe.yearFormat,generateConfig:Pt}));return De.createElement(ti.Provider,{value:ei},De.createElement("div",{className:Tn},De.createElement(Zi,{superOffset:function(kn){return Pt.addYear(Et,kn)},onChange:$t,getStart:function(kn){return Pt.setMonth(kn,0)},getEnd:function(kn){return Pt.setMonth(kn,11)}},fi),De.createElement(an,(0,ve.Z)({},be,{disabledDate:Mn,titleFormat:Xe.fieldMonthFormat,colNum:3,rowNum:4,baseDate:vi,getCellDate:Kn,getCellText:Hn,getCellClassName:jn}))))}function Nn(be){var dt=be.prefixCls,Xe=be.locale,Pt=be.generateConfig,Et=be.pickerValue,Jt=be.onPickerValueChange,$t=be.onModeChange,dn="".concat(dt,"-quarter-panel"),Tn=pr(be,"quarter"),zn=(0,it.Z)(Tn,1),fn=zn[0],ei=Pt.setMonth(Et,0),vi=function(Mn,fi){return Pt.addMonth(Mn,fi*3)},pt=function(Mn){return _t(Mn,{locale:Xe,format:Xe.cellQuarterFormat,generateConfig:Pt})},Kn=function(){return(0,xt.Z)({},"".concat(dt,"-cell-in-view"),!0)},Hn=De.createElement("button",{type:"button",key:"year","aria-label":Xe.yearSelect,onClick:function(){$t("year")},tabIndex:-1,className:"".concat(dt,"-year-btn")},_t(Et,{locale:Xe,format:Xe.yearFormat,generateConfig:Pt}));return De.createElement(ti.Provider,{value:fn},De.createElement("div",{className:dn},De.createElement(Zi,{superOffset:function(Mn){return Pt.addYear(Et,Mn)},onChange:Jt,getStart:function(Mn){return Pt.setMonth(Mn,0)},getEnd:function(Mn){return Pt.setMonth(Mn,11)}},Hn),De.createElement(an,(0,ve.Z)({},be,{titleFormat:Xe.fieldQuarterFormat,colNum:4,rowNum:1,baseDate:ei,getCellDate:vi,getCellText:pt,getCellClassName:Kn}))))}function Vn(be){var dt=be.prefixCls,Xe=be.generateConfig,Pt=be.locale,Et=be.value,Jt=be.hoverValue,$t=be.hoverRangeValue,dn=Pt.locale,Tn="".concat(dt,"-week-panel-row"),zn=function(ei){var vi={};if($t){var pt=(0,it.Z)($t,2),Kn=pt[0],Hn=pt[1],jn=xe(Xe,dn,Kn,ei),Mn=xe(Xe,dn,Hn,ei);vi["".concat(Tn,"-range-start")]=jn,vi["".concat(Tn,"-range-end")]=Mn,vi["".concat(Tn,"-range-hover")]=!jn&&!Mn&&Ye(Xe,Kn,Hn,ei)}return Jt&&(vi["".concat(Tn,"-hover")]=Jt.some(function(fi){return xe(Xe,dn,ei,fi)})),Ee()(Tn,(0,xt.Z)({},"".concat(Tn,"-selected"),!$t&&xe(Xe,dn,Et,ei)),vi)};return De.createElement(ji,(0,ve.Z)({},be,{mode:"week",panelName:"week",rowClassName:zn}))}function Pi(be){var dt=be.prefixCls,Xe=be.locale,Pt=be.generateConfig,Et=be.pickerValue,Jt=be.disabledDate,$t=be.onPickerValueChange,dn=be.onModeChange,Tn="".concat(dt,"-year-panel"),zn=pr(be,"year"),fn=(0,it.Z)(zn,1),ei=fn[0],vi=function(Ai){var dr=Math.floor(Pt.getYear(Ai)/10)*10;return Pt.setYear(Ai,dr)},pt=function(Ai){var dr=vi(Ai);return Pt.addYear(dr,9)},Kn=vi(Et),Hn=pt(Et),jn=Pt.addYear(Kn,-1),Mn=function(Ai,dr){return Pt.addYear(Ai,dr)},fi=function(Ai){return _t(Ai,{locale:Xe,format:Xe.cellYearFormat,generateConfig:Pt})},Si=function(Ai){return(0,xt.Z)({},"".concat(dt,"-cell-in-view"),kt(Pt,Ai,Kn)||kt(Pt,Ai,Hn)||Ye(Pt,Kn,Hn,Ai))},kn=Jt?function(Ei,Ai){var dr=Pt.setMonth(Ei,0),Ar=Pt.setDate(dr,1),ur=Pt.addYear(Ar,1),ii=Pt.addDate(ur,-1);return Jt(Ar,Ai)&&Jt(ii,Ai)}:null,xi=De.createElement("button",{type:"button",key:"decade","aria-label":Xe.decadeSelect,onClick:function(){dn("decade")},tabIndex:-1,className:"".concat(dt,"-decade-btn")},_t(Kn,{locale:Xe,format:Xe.yearFormat,generateConfig:Pt}),"-",_t(Hn,{locale:Xe,format:Xe.yearFormat,generateConfig:Pt}));return De.createElement(ti.Provider,{value:ei},De.createElement("div",{className:Tn},De.createElement(Zi,{superOffset:function(Ai){return Pt.addYear(Et,Ai*10)},onChange:$t,getStart:vi,getEnd:pt},xi),De.createElement(an,(0,ve.Z)({},be,{disabledDate:kn,titleFormat:Xe.fieldYearFormat,colNum:3,rowNum:4,baseDate:jn,getCellDate:Mn,getCellText:fi,getCellClassName:Si}))))}var pi={date:ji,datetime:In,week:Vn,month:qn,quarter:Nn,year:Pi,decade:Qt,time:Rn};function tn(be,dt){var Xe,Pt=be.locale,Et=be.generateConfig,Jt=be.direction,$t=be.prefixCls,dn=be.tabIndex,Tn=dn===void 0?0:dn,zn=be.multiple,fn=be.defaultValue,ei=be.value,vi=be.onChange,pt=be.onSelect,Kn=be.defaultPickerValue,Hn=be.pickerValue,jn=be.onPickerValueChange,Mn=be.mode,fi=be.onPanelChange,Si=be.picker,kn=Si===void 0?"date":Si,xi=be.showTime,Ei=be.hoverValue,Ai=be.hoverRangeValue,dr=be.cellRender,Ar=be.dateRender,ur=be.monthCellRender,ii=be.components,gr=ii===void 0?{}:ii,nr=be.hideHeader,hr=((Xe=De.useContext(ue))===null||Xe===void 0?void 0:Xe.prefixCls)||$t||"rc-picker",$i=De.useRef();De.useImperativeHandle(dt,function(){return{nativeElement:$i.current}});var wr=Zt(be),bn=(0,it.Z)(wr,4),Li=bn[0],zi=bn[1],_i=bn[2],Gi=bn[3],Vi=Dt(Pt,zi),di=kn==="date"&&xi?"datetime":kn,ki=De.useMemo(function(){return Yt(di,_i,Gi,Li,Vi)},[di,_i,Gi,Li,Vi]),cr=Et.getNow(),Qn=(0,rt.C8)(kn,{value:Mn,postState:function(er){return er||"date"}}),ni=(0,it.Z)(Qn,2),Ki=ni[0],or=ni[1],Mr=Ki==="date"&&ki?"datetime":Ki,fo=mi(Et,Pt,di),po=(0,rt.C8)(fn,{value:ei}),No=(0,it.Z)(po,2),qr=No[0],ta=No[1],Ao=De.useMemo(function(){var Sr=Ce(qr).filter(function(er){return er});return zn?Sr:Sr.slice(0,1)},[qr,zn]),ar=(0,rt.zX)(function(Sr){ta(Sr),vi&&(Sr===null||Ao.length!==Sr.length||Ao.some(function(er,Br){return!Ne(Et,Pt,er,Sr[Br],di)}))&&(vi==null||vi(zn?Sr:Sr[0]))}),Rr=(0,rt.zX)(function(Sr){if(pt==null||pt(Sr),Ki===kn){var er=zn?fo(Ao,Sr):[Sr];ar(er)}}),Lo=(0,rt.C8)(Kn||Ao[0]||cr,{value:Hn}),Zo=(0,it.Z)(Lo,2),Ko=Zo[0],Io=Zo[1];De.useEffect(function(){Ao[0]&&!Hn&&Io(Ao[0])},[Ao[0]]);var Co=function(er,Br){fi==null||fi(er||Hn,Br||Ki)},ia=function(er){var Br=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Io(er),jn==null||jn(er),Br&&Co(er)},ma=function(er,Br){or(er),Br&&ia(Br),Co(Br,er)},To=function(er){if(Rr(er),ia(er),Ki!==kn){var Br=["decade","year"],mr=[].concat(Br,["month"]),hi={quarter:[].concat(Br,["quarter"]),week:[].concat((0,_e.Z)(mr),["week"]),date:[].concat((0,_e.Z)(mr),["date"])},Yo=hi[kn]||mr,St=Yo.indexOf(Ki),wn=Yo[St+1];wn&&ma(wn,er)}},Da=De.useMemo(function(){var Sr,er;if(Array.isArray(Ai)){var Br=(0,it.Z)(Ai,2);Sr=Br[0],er=Br[1]}else Sr=Ai;return!Sr&&!er?null:(Sr=Sr||er,er=er||Sr,Et.isAfter(Sr,er)?[er,Sr]:[Sr,er])},[Ai,Et]),Ur=nt(dr,Ar,ur),ao=gr[Mr]||pi[Mr]||ji,ho=De.useContext(un),bo=De.useMemo(function(){return(0,lt.Z)((0,lt.Z)({},ho),{},{hideHeader:nr})},[ho,nr]),Do="".concat(hr,"-panel"),Ea=Te(be,["showWeek","prevIcon","nextIcon","superPrevIcon","superNextIcon","disabledDate","minDate","maxDate","onHover"]);return De.createElement(un.Provider,{value:bo},De.createElement("div",{ref:$i,tabIndex:Tn,className:Ee()(Do,(0,xt.Z)({},"".concat(Do,"-rtl"),Jt==="rtl"))},De.createElement(ao,(0,ve.Z)({},Ea,{showTime:ki,prefixCls:hr,locale:Vi,generateConfig:Et,onModeChange:ma,pickerValue:Ko,onPickerValueChange:function(er){ia(er,!0)},value:Ao[0],onSelect:To,values:Ao,cellRender:Ur,hoverRangeValue:Da,hoverValue:Ei}))))}var Wi=De.memo(De.forwardRef(tn)),yr=Wi;function Pr(be){var dt=be.picker,Xe=be.multiplePanel,Pt=be.pickerValue,Et=be.onPickerValueChange,Jt=be.needConfirm,$t=be.onSubmit,dn=be.range,Tn=be.hoverValue,zn=De.useContext(ue),fn=zn.prefixCls,ei=zn.generateConfig,vi=De.useCallback(function(fi,Si){return Ui(ei,dt,fi,Si)},[ei,dt]),pt=De.useMemo(function(){return vi(Pt,1)},[Pt,vi]),Kn=function(Si){Et(vi(Si,-1))},Hn={onCellDblClick:function(){Jt&&$t()}},jn=dt==="time",Mn=(0,lt.Z)((0,lt.Z)({},be),{},{hoverValue:null,hoverRangeValue:null,hideHeader:jn});return dn?Mn.hoverRangeValue=Tn:Mn.hoverValue=Tn,Xe?De.createElement("div",{className:"".concat(fn,"-panels")},De.createElement(un.Provider,{value:(0,lt.Z)((0,lt.Z)({},Hn),{},{hideNext:!0})},De.createElement(yr,Mn)),De.createElement(un.Provider,{value:(0,lt.Z)((0,lt.Z)({},Hn),{},{hidePrev:!0})},De.createElement(yr,(0,ve.Z)({},Mn,{pickerValue:pt,onPickerValueChange:Kn})))):De.createElement(un.Provider,{value:(0,lt.Z)({},Hn)},De.createElement(yr,Mn))}function Yn(be){return typeof be=="function"?be():be}function Oi(be){var dt=be.prefixCls,Xe=be.presets,Pt=be.onClick,Et=be.onHover;return Xe.length?De.createElement("div",{className:"".concat(dt,"-presets")},De.createElement("ul",null,Xe.map(function(Jt,$t){var dn=Jt.label,Tn=Jt.value;return De.createElement("li",{key:$t,onClick:function(){Pt(Yn(Tn))},onMouseEnter:function(){Et(Yn(Tn))},onMouseLeave:function(){Et(null)}},dn)}))):null}function Dr(be){var dt=be.panelRender,Xe=be.internalMode,Pt=be.picker,Et=be.showNow,Jt=be.range,$t=be.multiple,dn=be.activeInfo,Tn=dn===void 0?[0,0,0]:dn,zn=be.presets,fn=be.onPresetHover,ei=be.onPresetSubmit,vi=be.onFocus,pt=be.onBlur,Kn=be.onPanelMouseDown,Hn=be.direction,jn=be.value,Mn=be.onSelect,fi=be.isInvalid,Si=be.defaultOpenValue,kn=be.onOk,xi=be.onSubmit,Ei=De.useContext(ue),Ai=Ei.prefixCls,dr="".concat(Ai,"-panel"),Ar=Hn==="rtl",ur=De.useRef(null),ii=De.useRef(null),gr=De.useState(0),nr=(0,it.Z)(gr,2),hr=nr[0],$i=nr[1],wr=De.useState(0),bn=(0,it.Z)(wr,2),Li=bn[0],zi=bn[1],_i=De.useState(0),Gi=(0,it.Z)(_i,2),Vi=Gi[0],di=Gi[1],ki=function(To){To.width&&$i(To.width)},cr=(0,it.Z)(Tn,3),Qn=cr[0],ni=cr[1],Ki=cr[2],or=De.useState(0),Mr=(0,it.Z)(or,2),fo=Mr[0],po=Mr[1];De.useEffect(function(){po(10)},[Qn]),De.useEffect(function(){if(Jt&&ii.current){var ma,To=((ma=ur.current)===null||ma===void 0?void 0:ma.offsetWidth)||0,Da=ii.current.getBoundingClientRect();if(!Da.height||Da.right<0){po(function(bo){return Math.max(0,bo-1)});return}var Ur=(Ar?ni-To:Qn)-Da.left;if(di(Ur),hr&&hr<Ki){var ao=Ar?Da.right-(ni-To+hr):Qn+To-Da.left-hr,ho=Math.max(0,ao);zi(ho)}else zi(0)}},[fo,Ar,hr,Qn,ni,Ki,Jt]);function No(ma){return ma.filter(function(To){return To})}var qr=De.useMemo(function(){return No(Ce(jn))},[jn]),ta=Pt==="time"&&!qr.length,Ao=De.useMemo(function(){return ta?No([Si]):qr},[ta,qr,Si]),ar=ta?Si:qr,Rr=De.useMemo(function(){return Ao.length?Ao.some(function(ma){return fi(ma)}):!0},[Ao,fi]),Lo=function(){ta&&Mn(Si),kn(),xi()},Zo=De.createElement("div",{className:"".concat(Ai,"-panel-layout")},De.createElement(Oi,{prefixCls:Ai,presets:zn,onClick:ei,onHover:fn}),De.createElement("div",null,De.createElement(Pr,(0,ve.Z)({},be,{value:ar})),De.createElement(gi,(0,ve.Z)({},be,{showNow:$t?!1:Et,invalid:Rr,onSubmit:Lo}))));dt&&(Zo=dt(Zo));var Ko="".concat(dr,"-container"),Io="marginLeft",Co="marginRight",ia=De.createElement("div",{onMouseDown:Kn,tabIndex:-1,className:Ee()(Ko,"".concat(Ai,"-").concat(Xe,"-panel-container")),style:(0,xt.Z)((0,xt.Z)({},Ar?Co:Io,Li),Ar?Io:Co,"auto"),onFocus:vi,onBlur:pt},Zo);return Jt&&(ia=De.createElement("div",{onMouseDown:Kn,ref:ii,className:Ee()("".concat(Ai,"-range-wrapper"),"".concat(Ai,"-").concat(Pt,"-range-wrapper"))},De.createElement("div",{ref:ur,className:"".concat(Ai,"-range-arrow"),style:{left:Vi}}),De.createElement(Er.Z,{onResize:ki},ia))),ia}var jr=we(62646);function oo(be,dt){var Xe=be.format,Pt=be.maskFormat,Et=be.generateConfig,Jt=be.locale,$t=be.preserveInvalidOnBlur,dn=be.inputReadOnly,Tn=be.required,zn=be["aria-required"],fn=be.onSubmit,ei=be.onFocus,vi=be.onBlur,pt=be.onInputChange,Kn=be.onInvalid,Hn=be.open,jn=be.onOpenChange,Mn=be.onKeyDown,fi=be.onChange,Si=be.activeHelp,kn=be.name,xi=be.autoComplete,Ei=be.id,Ai=be.value,dr=be.invalid,Ar=be.placeholder,ur=be.disabled,ii=be.activeIndex,gr=be.allHelp,nr=be.picker,hr=function(Vi,di){var ki=Et.locale.parse(Jt.locale,Vi,[di]);return ki&&Et.isValidate(ki)?ki:null},$i=Xe[0],wr=De.useCallback(function(Gi){return _t(Gi,{locale:Jt,format:$i,generateConfig:Et})},[Jt,Et,$i]),bn=De.useMemo(function(){return Ai.map(wr)},[Ai,wr]),Li=De.useMemo(function(){var Gi=nr==="time"?8:10,Vi=typeof $i=="function"?$i(Et.getNow()).length:$i.length;return Math.max(Gi,Vi)+2},[$i,nr,Et]),zi=function(Vi){for(var di=0;di<Xe.length;di+=1){var ki=Xe[di];if(typeof ki=="string"){var cr=hr(Vi,ki);if(cr)return cr}}return!1},_i=function(Vi){function di(Qn){return Vi!==void 0?Qn[Vi]:Qn}var ki=(0,yt.Z)(be,{aria:!0,data:!0}),cr=(0,lt.Z)((0,lt.Z)({},ki),{},{format:Pt,validateFormat:function(ni){return!!zi(ni)},preserveInvalidOnBlur:$t,readOnly:dn,required:Tn,"aria-required":zn,name:kn,autoComplete:xi,size:Li,id:di(Ei),value:di(bn)||"",invalid:di(dr),placeholder:di(Ar),active:ii===Vi,helped:gr||Si&&ii===Vi,disabled:di(ur),onFocus:function(ni){ei(ni,Vi)},onBlur:function(ni){vi(ni,Vi)},onSubmit:fn,onChange:function(ni){pt();var Ki=zi(ni);if(Ki){Kn(!1,Vi),fi(Ki,Vi);return}Kn(!!ni,Vi)},onHelp:function(){jn(!0,{index:Vi})},onKeyDown:function(ni){var Ki=!1;if(Mn==null||Mn(ni,function(){Ki=!0}),!ni.defaultPrevented&&!Ki)switch(ni.key){case"Escape":jn(!1,{index:Vi});break;case"Enter":Hn||jn(!0);break}}},dt==null?void 0:dt({valueTexts:bn}));return Object.keys(cr).forEach(function(Qn){cr[Qn]===void 0&&delete cr[Qn]}),cr};return[_i,wr]}var Kt=["onMouseEnter","onMouseLeave"];function bi(be){return De.useMemo(function(){return Te(be,Kt)},[be])}var tr=["icon","type"],Mi=["onClear"];function kr(be){var dt=be.icon,Xe=be.type,Pt=(0,jr.Z)(be,tr),Et=De.useContext(ue),Jt=Et.prefixCls;return dt?De.createElement("span",(0,ve.Z)({className:"".concat(Jt,"-").concat(Xe)},Pt),dt):null}function rr(be){var dt=be.onClear,Xe=(0,jr.Z)(be,Mi);return De.createElement(kr,(0,ve.Z)({},Xe,{type:"clear",role:"button",onMouseDown:function(Et){Et.preventDefault()},onClick:function(Et){Et.stopPropagation(),dt()}}))}var Lr=we(99153),Tr=we(84851),Zr=["YYYY","MM","DD","HH","mm","ss","SSS"],uo="\u9867",An=function(){function be(dt){(0,Lr.Z)(this,be),(0,xt.Z)(this,"format",void 0),(0,xt.Z)(this,"maskFormat",void 0),(0,xt.Z)(this,"cells",void 0),(0,xt.Z)(this,"maskCells",void 0),this.format=dt;var Xe=Zr.map(function(dn){return"(".concat(dn,")")}).join("|"),Pt=new RegExp(Xe,"g");this.maskFormat=dt.replace(Pt,function(dn){return uo.repeat(dn.length)});var Et=new RegExp("(".concat(Zr.join("|"),")")),Jt=(dt.split(Et)||[]).filter(function(dn){return dn}),$t=0;this.cells=Jt.map(function(dn){var Tn=Zr.includes(dn),zn=$t,fn=$t+dn.length;return $t=fn,{text:dn,mask:Tn,start:zn,end:fn}}),this.maskCells=this.cells.filter(function(dn){return dn.mask})}return(0,Tr.Z)(be,[{key:"getSelection",value:function(Xe){var Pt=this.maskCells[Xe]||{},Et=Pt.start,Jt=Pt.end;return[Et||0,Jt||0]}},{key:"match",value:function(Xe){for(var Pt=0;Pt<this.maskFormat.length;Pt+=1){var Et=this.maskFormat[Pt],Jt=Xe[Pt];if(!Jt||Et!==uo&&Et!==Jt)return!1}return!0}},{key:"size",value:function(){return this.maskCells.length}},{key:"getMaskCellIndex",value:function(Xe){for(var Pt=Number.MAX_SAFE_INTEGER,Et=0,Jt=0;Jt<this.maskCells.length;Jt+=1){var $t=this.maskCells[Jt],dn=$t.start,Tn=$t.end;if(Xe>=dn&&Xe<=Tn)return Jt;var zn=Math.min(Math.abs(Xe-dn),Math.abs(Xe-Tn));zn<Pt&&(Pt=zn,Et=Jt)}return Et}}]),be}();function mo(be){var dt={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 dt[be]}var Fn=["active","showActiveCls","suffixIcon","format","validateFormat","onChange","onInput","helped","onHelp","onSubmit","onKeyDown","preserveInvalidOnBlur","invalid","clearIcon"],ai=De.forwardRef(function(be,dt){var Xe=be.active,Pt=be.showActiveCls,Et=Pt===void 0?!0:Pt,Jt=be.suffixIcon,$t=be.format,dn=be.validateFormat,Tn=be.onChange,zn=be.onInput,fn=be.helped,ei=be.onHelp,vi=be.onSubmit,pt=be.onKeyDown,Kn=be.preserveInvalidOnBlur,Hn=Kn===void 0?!1:Kn,jn=be.invalid,Mn=be.clearIcon,fi=(0,jr.Z)(be,Fn),Si=be.value,kn=be.onFocus,xi=be.onBlur,Ei=be.onMouseUp,Ai=De.useContext(ue),dr=Ai.prefixCls,Ar=Ai.input,ur=Ar===void 0?"input":Ar,ii="".concat(dr,"-input"),gr=De.useState(!1),nr=(0,it.Z)(gr,2),hr=nr[0],$i=nr[1],wr=De.useState(Si),bn=(0,it.Z)(wr,2),Li=bn[0],zi=bn[1],_i=De.useState(""),Gi=(0,it.Z)(_i,2),Vi=Gi[0],di=Gi[1],ki=De.useState(null),cr=(0,it.Z)(ki,2),Qn=cr[0],ni=cr[1],Ki=De.useState(null),or=(0,it.Z)(Ki,2),Mr=or[0],fo=or[1],po=Li||"";De.useEffect(function(){zi(Si)},[Si]);var No=De.useRef(),qr=De.useRef();De.useImperativeHandle(dt,function(){return{nativeElement:No.current,inputElement:qr.current,focus:function(er){qr.current.focus(er)},blur:function(){qr.current.blur()}}});var ta=De.useMemo(function(){return new An($t||"")},[$t]),Ao=De.useMemo(function(){return fn?[0,0]:ta.getSelection(Qn)},[ta,Qn,fn]),ar=(0,it.Z)(Ao,2),Rr=ar[0],Lo=ar[1],Zo=function(er){er&&er!==$t&&er!==Si&&ei()},Ko=(0,rt.zX)(function(Sr){dn(Sr)&&Tn(Sr),zi(Sr),Zo(Sr)}),Io=function(er){if(!$t){var Br=er.target.value;Zo(Br),zi(Br),Tn(Br)}},Co=function(er){var Br=er.clipboardData.getData("text");dn(Br)&&Ko(Br)},ia=De.useRef(!1),ma=function(){ia.current=!0},To=function(er){var Br=er.target,mr=Br.selectionStart,hi=ta.getMaskCellIndex(mr);ni(hi),fo({}),Ei==null||Ei(er),ia.current=!1},Da=function(er){$i(!0),ni(0),di(""),kn(er)},Ur=function(er){xi(er)},ao=function(er){$i(!1),Ur(er)};Di(Xe,function(){!Xe&&!Hn&&zi(Si)});var ho=function(er){er.key==="Enter"&&dn(po)&&vi(),pt==null||pt(er)},bo=function(er){ho(er);var Br=er.key,mr=null,hi=null,Yo=Lo-Rr,St=$t.slice(Rr,Lo),wn=function(ca){ni(function(Ga){var Na=Ga+ca;return Na=Math.max(Na,0),Na=Math.min(Na,ta.size()-1),Na})},ja=function(ca){var Ga=mo(St),Na=(0,it.Z)(Ga,3),Zs=Na[0],aa=Na[1],Wr=Na[2],Va=po.slice(Rr,Lo),$a=Number(Va);if(isNaN($a))return String(Wr||(ca>0?Zs:aa));var sa=$a+ca,vo=aa-Zs+1;return String(Zs+(vo+sa-Zs)%vo)};switch(Br){case"Backspace":case"Delete":mr="",hi=St;break;case"ArrowLeft":mr="",wn(-1);break;case"ArrowRight":mr="",wn(1);break;case"ArrowUp":mr="",hi=ja(1);break;case"ArrowDown":mr="",hi=ja(-1);break;default:isNaN(Number(Br))||(mr=Vi+Br,hi=mr);break}if(mr!==null&&(di(mr),mr.length>=Yo&&(wn(1),di(""))),hi!==null){var za=po.slice(0,Rr)+ye(hi,Yo)+po.slice(Lo);Ko(za.slice(0,$t.length))}fo({})},Do=De.useRef();(0,ze.Z)(function(){if(!(!hr||!$t||ia.current)){if(!ta.match(po)){Ko($t);return}return qr.current.setSelectionRange(Rr,Lo),Do.current=(0,$n.Z)(function(){qr.current.setSelectionRange(Rr,Lo)}),function(){$n.Z.cancel(Do.current)}}},[ta,$t,hr,po,Qn,Rr,Lo,Mr,Ko]);var Ea=$t?{onFocus:Da,onBlur:ao,onKeyDown:bo,onMouseDown:ma,onMouseUp:To,onPaste:Co}:{};return De.createElement("div",{ref:No,className:Ee()(ii,(0,xt.Z)((0,xt.Z)({},"".concat(ii,"-active"),Xe&&Et),"".concat(ii,"-placeholder"),fn))},De.createElement(ur,(0,ve.Z)({ref:qr,"aria-invalid":jn,autoComplete:"off"},fi,{onKeyDown:ho,onBlur:Ur},Ea,{value:po,onChange:Io})),De.createElement(kr,{type:"suffix",icon:Jt}),Mn)}),_r=ai,Hr=["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"],Oo=["index"];function Kr(be,dt){var Xe=be.id,Pt=be.prefix,Et=be.clearIcon,Jt=be.suffixIcon,$t=be.separator,dn=$t===void 0?"~":$t,Tn=be.activeIndex,zn=be.activeHelp,fn=be.allHelp,ei=be.focused,vi=be.onFocus,pt=be.onBlur,Kn=be.onKeyDown,Hn=be.locale,jn=be.generateConfig,Mn=be.placeholder,fi=be.className,Si=be.style,kn=be.onClick,xi=be.onClear,Ei=be.value,Ai=be.onChange,dr=be.onSubmit,Ar=be.onInputChange,ur=be.format,ii=be.maskFormat,gr=be.preserveInvalidOnBlur,nr=be.onInvalid,hr=be.disabled,$i=be.invalid,wr=be.inputReadOnly,bn=be.direction,Li=be.onOpenChange,zi=be.onActiveInfo,_i=be.placement,Gi=be.onMouseDown,Vi=be.required,di=be["aria-required"],ki=be.autoFocus,cr=be.tabIndex,Qn=(0,jr.Z)(be,Hr),ni=bn==="rtl",Ki=De.useContext(ue),or=Ki.prefixCls,Mr=De.useMemo(function(){if(typeof Xe=="string")return[Xe];var Ur=Xe||{};return[Ur.start,Ur.end]},[Xe]),fo=De.useRef(),po=De.useRef(),No=De.useRef(),qr=function(ao){var ho;return(ho=[po,No][ao])===null||ho===void 0?void 0:ho.current};De.useImperativeHandle(dt,function(){return{nativeElement:fo.current,focus:function(ao){if((0,Lt.Z)(ao)==="object"){var ho,bo=ao||{},Do=bo.index,Ea=Do===void 0?0:Do,Sr=(0,jr.Z)(bo,Oo);(ho=qr(Ea))===null||ho===void 0||ho.focus(Sr)}else{var er;(er=qr(ao!=null?ao:0))===null||er===void 0||er.focus()}},blur:function(){var ao,ho;(ao=qr(0))===null||ao===void 0||ao.blur(),(ho=qr(1))===null||ho===void 0||ho.blur()}}});var ta=bi(Qn),Ao=De.useMemo(function(){return Array.isArray(Mn)?Mn:[Mn,Mn]},[Mn]),ar=oo((0,lt.Z)((0,lt.Z)({},be),{},{id:Mr,placeholder:Ao})),Rr=(0,it.Z)(ar,1),Lo=Rr[0],Zo=De.useState({position:"absolute",width:0}),Ko=(0,it.Z)(Zo,2),Io=Ko[0],Co=Ko[1],ia=(0,rt.zX)(function(){var Ur=qr(Tn);if(Ur){var ao=Ur.nativeElement.getBoundingClientRect(),ho=fo.current.getBoundingClientRect(),bo=ao.left-ho.left;Co(function(Do){return(0,lt.Z)((0,lt.Z)({},Do),{},{width:ao.width,left:bo})}),zi([ao.left,ao.right,ho.width])}});De.useEffect(function(){ia()},[Tn]);var ma=Et&&(Ei[0]&&!hr[0]||Ei[1]&&!hr[1]),To=ki&&!hr[0],Da=ki&&!To&&!hr[1];return De.createElement(Er.Z,{onResize:ia},De.createElement("div",(0,ve.Z)({},ta,{className:Ee()(or,"".concat(or,"-range"),(0,xt.Z)((0,xt.Z)((0,xt.Z)((0,xt.Z)({},"".concat(or,"-focused"),ei),"".concat(or,"-disabled"),hr.every(function(Ur){return Ur})),"".concat(or,"-invalid"),$i.some(function(Ur){return Ur})),"".concat(or,"-rtl"),ni),fi),style:Si,ref:fo,onClick:kn,onMouseDown:function(ao){var ho=ao.target;ho!==po.current.inputElement&&ho!==No.current.inputElement&&ao.preventDefault(),Gi==null||Gi(ao)}}),Pt&&De.createElement("div",{className:"".concat(or,"-prefix")},Pt),De.createElement(_r,(0,ve.Z)({ref:po},Lo(0),{autoFocus:To,tabIndex:cr,"date-range":"start"})),De.createElement("div",{className:"".concat(or,"-range-separator")},dn),De.createElement(_r,(0,ve.Z)({ref:No},Lo(1),{autoFocus:Da,tabIndex:cr,"date-range":"end"})),De.createElement("div",{className:"".concat(or,"-active-bar"),style:Io}),De.createElement(kr,{type:"suffix",icon:Jt}),ma&&De.createElement(rr,{icon:Et,onClear:xi})))}var Or=De.forwardRef(Kr),Bo=Or;function qt(be,dt){var Xe=be!=null?be:dt;return Array.isArray(Xe)?Xe:[Xe,Xe]}function vn(be){return be===1?"end":"start"}function Ht(be,dt){var Xe=pn(be,function(){var $r=be.disabled,so=be.allowEmpty,Fo=qt($r,!1),na=qt(so,!1);return{disabled:Fo,allowEmpty:na}}),Pt=(0,it.Z)(Xe,6),Et=Pt[0],Jt=Pt[1],$t=Pt[2],dn=Pt[3],Tn=Pt[4],zn=Pt[5],fn=Et.prefixCls,ei=Et.styles,vi=Et.classNames,pt=Et.defaultValue,Kn=Et.value,Hn=Et.needConfirm,jn=Et.onKeyDown,Mn=Et.disabled,fi=Et.allowEmpty,Si=Et.disabledDate,kn=Et.minDate,xi=Et.maxDate,Ei=Et.defaultOpen,Ai=Et.open,dr=Et.onOpenChange,Ar=Et.locale,ur=Et.generateConfig,ii=Et.picker,gr=Et.showNow,nr=Et.showToday,hr=Et.showTime,$i=Et.mode,wr=Et.onPanelChange,bn=Et.onCalendarChange,Li=Et.onOk,zi=Et.defaultPickerValue,_i=Et.pickerValue,Gi=Et.onPickerValueChange,Vi=Et.inputReadOnly,di=Et.suffixIcon,ki=Et.onFocus,cr=Et.onBlur,Qn=Et.presets,ni=Et.ranges,Ki=Et.components,or=Et.cellRender,Mr=Et.dateRender,fo=Et.monthCellRender,po=Et.onClick,No=Ci(dt),qr=Ln(Ai,Ei,Mn,dr),ta=(0,it.Z)(qr,2),Ao=ta[0],ar=ta[1],Rr=function(so,Fo){(Mn.some(function(na){return!na})||!so)&&ar(so,Fo)},Lo=no(ur,Ar,dn,!0,!1,pt,Kn,bn,Li),Zo=(0,it.Z)(Lo,5),Ko=Zo[0],Io=Zo[1],Co=Zo[2],ia=Zo[3],ma=Zo[4],To=Co(),Da=ui(Mn,fi,Ao),Ur=(0,it.Z)(Da,9),ao=Ur[0],ho=Ur[1],bo=Ur[2],Do=Ur[3],Ea=Ur[4],Sr=Ur[5],er=Ur[6],Br=Ur[7],mr=Ur[8],hi=function(so,Fo){ho(!0),ki==null||ki(so,{range:vn(Fo!=null?Fo:Do)})},Yo=function(so,Fo){ho(!1),cr==null||cr(so,{range:vn(Fo!=null?Fo:Do)})},St=De.useMemo(function(){if(!hr)return null;var $r=hr.disabledTime,so=$r?function(Fo){var na=vn(Do),ns=Oe(To,er,Do);return $r(Fo,na,{from:ns})}:void 0;return(0,lt.Z)((0,lt.Z)({},hr),{},{disabledTime:so})},[hr,Do,To,er]),wn=(0,rt.C8)([ii,ii],{value:$i}),ja=(0,it.Z)(wn,2),za=ja[0],da=ja[1],ca=za[Do]||ii,Ga=ca==="date"&&St?"datetime":ca,Na=Ga===ii&&Ga!=="time",Zs=lo(ii,ca,gr,nr,!0),aa=xo(Et,Ko,Io,Co,ia,Mn,dn,ao,Ao,zn),Wr=(0,it.Z)(aa,2),Va=Wr[0],$a=Wr[1],sa=Bi(To,Mn,er,ur,Ar,Si),vo=ot(To,zn,fi),ga=(0,it.Z)(vo,2),ls=ga[0],oa=ga[1],us=Ir(ur,Ar,To,za,Ao,Do,Jt,Na,zi,_i,St==null?void 0:St.defaultOpenValue,Gi,kn,xi),Ta=(0,it.Z)(us,2),bl=Ta[0],Go=Ta[1],Aa=(0,rt.zX)(function($r,so,Fo){var na=je(za,Do,so);if((na[0]!==za[0]||na[1]!==za[1])&&da(na),wr&&Fo!==!1){var ns=(0,_e.Z)(To);$r&&(ns[Do]=$r),wr(ns,na)}}),Ro=function(so,Fo){return je(To,Fo,so)},qo=function(so,Fo){var na=To;so&&(na=Ro(so,Do)),Br(Do);var ns=Sr(na);ia(na),Va(Do,ns===null),ns===null?Rr(!1,{force:!0}):Fo||No.current.focus({index:ns})},ua=function(so){var Fo,na=so.target.getRootNode();if(!No.current.nativeElement.contains((Fo=na.activeElement)!==null&&Fo!==void 0?Fo:document.activeElement)){var ns=Mn.findIndex(function(hs){return!hs});ns>=0&&No.current.focus({index:ns})}Rr(!0),po==null||po(so)},pa=function(){$a(null),Rr(!1,{force:!0})},Jo=De.useState(null),fl=(0,it.Z)(Jo,2),Yr=fl[0],pu=fl[1],Eo=De.useState(null),Gl=(0,it.Z)(Eo,2),Qs=Gl[0],Dl=Gl[1],mu=De.useMemo(function(){return Qs||To},[To,Qs]);De.useEffect(function(){Ao||Dl(null)},[Ao]);var vu=De.useState([0,0,0]),Ws=(0,it.Z)(vu,2),Vl=Ws[0],Uo=Ws[1],Hs=Jn(Qn,ni),yu=function(so){Dl(so),pu("preset")},gl=function(so){var Fo=$a(so);Fo&&Rr(!1,{force:!0})},Du=function(so){qo(so)},pl=function(so){Dl(so?Ro(so,Do):null),pu("cell")},ko=function(so){Rr(!0),hi(so)},_o=function(){bo("panel")},Ca=function(so){var Fo=je(To,Do,so);ia(Fo),!Hn&&!$t&&Jt===Ga&&qo(so)},es=function(){Rr(!1)},Xa=nt(or,Mr,fo,vn(Do)),kl=To[Do]||null,ml=(0,rt.zX)(function($r){return zn($r,{activeIndex:Do})}),jo=De.useMemo(function(){var $r=(0,yt.Z)(Et,!1),so=(0,Ue.Z)(Et,[].concat((0,_e.Z)(Object.keys($r)),["onChange","onCalendarChange","style","className","onPanelChange","disabledTime"]));return so},[Et]),yo=De.createElement(Dr,(0,ve.Z)({},jo,{showNow:Zs,showTime:St,range:!0,multiplePanel:Na,activeInfo:Vl,disabledDate:sa,onFocus:ko,onBlur:Yo,onPanelMouseDown:_o,picker:ii,mode:ca,internalMode:Ga,onPanelChange:Aa,format:Tn,value:kl,isInvalid:ml,onChange:null,onSelect:Ca,pickerValue:bl,defaultOpenValue:Ce(hr==null?void 0:hr.defaultOpenValue)[Do],onPickerValueChange:Go,hoverValue:mu,onHover:pl,needConfirm:Hn,onSubmit:qo,onOk:ma,presets:Hs,onPresetHover:yu,onPresetSubmit:gl,onNow:Du,cellRender:Xa})),Ya=function(so,Fo){var na=Ro(so,Fo);ia(na)},iu=function(){bo("input")},Dd=function(so,Fo){var na=er.length,ns=er[na-1];if(na&&ns!==Fo&&Hn&&!fi[ns]&&!mr(ns)&&To[ns]){No.current.focus({index:ns});return}bo("input"),Rr(!0,{inherit:!0}),Do!==Fo&&Ao&&!Hn&&$t&&qo(null,!0),Ea(Fo),hi(so,Fo)},dg=function(so,Fo){if(Rr(!1),!Hn&&bo()==="input"){var na=Sr(To);Va(Do,na===null)}Yo(so,Fo)},tf=function(so,Fo){so.key==="Tab"&&qo(null,!0),jn==null||jn(so,Fo)},Za=De.useMemo(function(){return{prefixCls:fn,locale:Ar,generateConfig:ur,button:Ki.button,input:Ki.input}},[fn,Ar,ur,Ki.button,Ki.input]);if((0,ze.Z)(function(){Ao&&Do!==void 0&&Aa(null,ii,!1)},[Ao,Do,ii]),(0,ze.Z)(function(){var $r=bo();!Ao&&$r==="input"&&(Rr(!1),qo(null,!0)),!Ao&&$t&&!Hn&&$r==="panel"&&(Rr(!0),qo())},[Ao]),0)var Xu;return De.createElement(ue.Provider,{value:Za},De.createElement(pe,(0,ve.Z)({},Re(Et),{popupElement:yo,popupStyle:ei.popup,popupClassName:vi.popup,visible:Ao,onClose:es,range:!0}),De.createElement(Bo,(0,ve.Z)({},Et,{ref:No,suffixIcon:di,activeIndex:ao||Ao?Do:null,activeHelp:!!Qs,allHelp:!!Qs&&Yr==="preset",focused:ao,onFocus:Dd,onBlur:dg,onKeyDown:tf,onSubmit:qo,value:mu,maskFormat:Tn,onChange:Ya,onInputChange:iu,format:dn,inputReadOnly:Vi,disabled:Mn,open:Ao,onOpenChange:Rr,onClick:ua,onClear:pa,invalid:ls,onInvalid:oa,onActiveInfo:Uo}))))}var Ze=De.forwardRef(Ht),Xn=Ze,Fi=we(11780);function Qi(be){var dt=be.prefixCls,Xe=be.value,Pt=be.onRemove,Et=be.removeIcon,Jt=Et===void 0?"\xD7":Et,$t=be.formatDate,dn=be.disabled,Tn=be.maxTagCount,zn=be.placeholder,fn="".concat(dt,"-selector"),ei="".concat(dt,"-selection"),vi="".concat(ei,"-overflow");function pt(jn,Mn){return De.createElement("span",{className:Ee()("".concat(ei,"-item")),title:typeof jn=="string"?jn:null},De.createElement("span",{className:"".concat(ei,"-item-content")},jn),!dn&&Mn&&De.createElement("span",{onMouseDown:function(Si){Si.preventDefault()},onClick:Mn,className:"".concat(ei,"-item-remove")},Jt))}function Kn(jn){var Mn=$t(jn),fi=function(kn){kn&&kn.stopPropagation(),Pt(jn)};return pt(Mn,fi)}function Hn(jn){var Mn="+ ".concat(jn.length," ...");return pt(Mn)}return De.createElement("div",{className:fn},De.createElement(Fi.Z,{prefixCls:vi,data:Xe,renderItem:Kn,renderRest:Hn,itemKey:function(Mn){return $t(Mn)},maxCount:Tn}),!Xe.length&&De.createElement("span",{className:"".concat(dt,"-selection-placeholder")},zn))}var Qe=["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 Ut(be,dt){var Xe=be.id,Pt=be.open,Et=be.prefix,Jt=be.clearIcon,$t=be.suffixIcon,dn=be.activeHelp,Tn=be.allHelp,zn=be.focused,fn=be.onFocus,ei=be.onBlur,vi=be.onKeyDown,pt=be.locale,Kn=be.generateConfig,Hn=be.placeholder,jn=be.className,Mn=be.style,fi=be.onClick,Si=be.onClear,kn=be.internalPicker,xi=be.value,Ei=be.onChange,Ai=be.onSubmit,dr=be.onInputChange,Ar=be.multiple,ur=be.maxTagCount,ii=be.format,gr=be.maskFormat,nr=be.preserveInvalidOnBlur,hr=be.onInvalid,$i=be.disabled,wr=be.invalid,bn=be.inputReadOnly,Li=be.direction,zi=be.onOpenChange,_i=be.onMouseDown,Gi=be.required,Vi=be["aria-required"],di=be.autoFocus,ki=be.tabIndex,cr=be.removeIcon,Qn=(0,jr.Z)(be,Qe),ni=Li==="rtl",Ki=De.useContext(ue),or=Ki.prefixCls,Mr=De.useRef(),fo=De.useRef();De.useImperativeHandle(dt,function(){return{nativeElement:Mr.current,focus:function(Io){var Co;(Co=fo.current)===null||Co===void 0||Co.focus(Io)},blur:function(){var Io;(Io=fo.current)===null||Io===void 0||Io.blur()}}});var po=bi(Qn),No=function(Io){Ei([Io])},qr=function(Io){var Co=xi.filter(function(ia){return ia&&!Ne(Kn,pt,ia,Io,kn)});Ei(Co),Pt||Ai()},ta=oo((0,lt.Z)((0,lt.Z)({},be),{},{onChange:No}),function(Ko){var Io=Ko.valueTexts;return{value:Io[0]||"",active:zn}}),Ao=(0,it.Z)(ta,2),ar=Ao[0],Rr=Ao[1],Lo=!!(Jt&&xi.length&&!$i),Zo=Ar?De.createElement(De.Fragment,null,De.createElement(Qi,{prefixCls:or,value:xi,onRemove:qr,formatDate:Rr,maxTagCount:ur,disabled:$i,removeIcon:cr,placeholder:Hn}),De.createElement("input",{className:"".concat(or,"-multiple-input"),value:xi.map(Rr).join(","),ref:fo,readOnly:!0,autoFocus:di,tabIndex:ki}),De.createElement(kr,{type:"suffix",icon:$t}),Lo&&De.createElement(rr,{icon:Jt,onClear:Si})):De.createElement(_r,(0,ve.Z)({ref:fo},ar(),{autoFocus:di,tabIndex:ki,suffixIcon:$t,clearIcon:Lo&&De.createElement(rr,{icon:Jt,onClear:Si}),showActiveCls:!1}));return De.createElement("div",(0,ve.Z)({},po,{className:Ee()(or,(0,xt.Z)((0,xt.Z)((0,xt.Z)((0,xt.Z)((0,xt.Z)({},"".concat(or,"-multiple"),Ar),"".concat(or,"-focused"),zn),"".concat(or,"-disabled"),$i),"".concat(or,"-invalid"),wr),"".concat(or,"-rtl"),ni),jn),style:Mn,ref:Mr,onClick:fi,onMouseDown:function(Io){var Co,ia=Io.target;ia!==((Co=fo.current)===null||Co===void 0?void 0:Co.inputElement)&&Io.preventDefault(),_i==null||_i(Io)}}),Et&&De.createElement("div",{className:"".concat(or,"-prefix")},Et),Zo)}var Ft=De.forwardRef(Ut),ln=Ft;function _n(be,dt){var Xe=pn(be),Pt=(0,it.Z)(Xe,6),Et=Pt[0],Jt=Pt[1],$t=Pt[2],dn=Pt[3],Tn=Pt[4],zn=Pt[5],fn=Et,ei=fn.prefixCls,vi=fn.styles,pt=fn.classNames,Kn=fn.order,Hn=fn.defaultValue,jn=fn.value,Mn=fn.needConfirm,fi=fn.onChange,Si=fn.onKeyDown,kn=fn.disabled,xi=fn.disabledDate,Ei=fn.minDate,Ai=fn.maxDate,dr=fn.defaultOpen,Ar=fn.open,ur=fn.onOpenChange,ii=fn.locale,gr=fn.generateConfig,nr=fn.picker,hr=fn.showNow,$i=fn.showToday,wr=fn.showTime,bn=fn.mode,Li=fn.onPanelChange,zi=fn.onCalendarChange,_i=fn.onOk,Gi=fn.multiple,Vi=fn.defaultPickerValue,di=fn.pickerValue,ki=fn.onPickerValueChange,cr=fn.inputReadOnly,Qn=fn.suffixIcon,ni=fn.removeIcon,Ki=fn.onFocus,or=fn.onBlur,Mr=fn.presets,fo=fn.components,po=fn.cellRender,No=fn.dateRender,qr=fn.monthCellRender,ta=fn.onClick,Ao=Ci(dt);function ar(jo){return jo===null?null:Gi?jo:jo[0]}var Rr=mi(gr,ii,Jt),Lo=Ln(Ar,dr,[kn],ur),Zo=(0,it.Z)(Lo,2),Ko=Zo[0],Io=Zo[1],Co=function(yo,Ya,iu){if(zi){var Dd=(0,lt.Z)({},iu);delete Dd.range,zi(ar(yo),ar(Ya),Dd)}},ia=function(yo){_i==null||_i(ar(yo))},ma=no(gr,ii,dn,!1,Kn,Hn,jn,Co,ia),To=(0,it.Z)(ma,5),Da=To[0],Ur=To[1],ao=To[2],ho=To[3],bo=To[4],Do=ao(),Ea=ui([kn]),Sr=(0,it.Z)(Ea,4),er=Sr[0],Br=Sr[1],mr=Sr[2],hi=Sr[3],Yo=function(yo){Br(!0),Ki==null||Ki(yo,{})},St=function(yo){Br(!1),or==null||or(yo,{})},wn=(0,rt.C8)(nr,{value:bn}),ja=(0,it.Z)(wn,2),za=ja[0],da=ja[1],ca=za==="date"&&wr?"datetime":za,Ga=lo(nr,za,hr,$i),Na=fi&&function(jo,yo){fi(ar(jo),ar(yo))},Zs=xo((0,lt.Z)((0,lt.Z)({},Et),{},{onChange:Na}),Da,Ur,ao,ho,[],dn,er,Ko,zn),aa=(0,it.Z)(Zs,2),Wr=aa[1],Va=ot(Do,zn),$a=(0,it.Z)(Va,2),sa=$a[0],vo=$a[1],ga=De.useMemo(function(){return sa.some(function(jo){return jo})},[sa]),ls=function(yo,Ya){if(ki){var iu=(0,lt.Z)((0,lt.Z)({},Ya),{},{mode:Ya.mode[0]});delete iu.range,ki(yo[0],iu)}},oa=Ir(gr,ii,Do,[za],Ko,hi,Jt,!1,Vi,di,Ce(wr==null?void 0:wr.defaultOpenValue),ls,Ei,Ai),us=(0,it.Z)(oa,2),Ta=us[0],bl=us[1],Go=(0,rt.zX)(function(jo,yo,Ya){if(da(yo),Li&&Ya!==!1){var iu=jo||Do[Do.length-1];Li(iu,yo)}}),Aa=function(){Wr(ao()),Io(!1,{force:!0})},Ro=function(yo){!kn&&!Ao.current.nativeElement.contains(document.activeElement)&&Ao.current.focus(),Io(!0),ta==null||ta(yo)},qo=function(){Wr(null),Io(!1,{force:!0})},ua=De.useState(null),pa=(0,it.Z)(ua,2),Jo=pa[0],fl=pa[1],Yr=De.useState(null),pu=(0,it.Z)(Yr,2),Eo=pu[0],Gl=pu[1],Qs=De.useMemo(function(){var jo=[Eo].concat((0,_e.Z)(Do)).filter(function(yo){return yo});return Gi?jo:jo.slice(0,1)},[Do,Eo,Gi]),Dl=De.useMemo(function(){return!Gi&&Eo?[Eo]:Do.filter(function(jo){return jo})},[Do,Eo,Gi]);De.useEffect(function(){Ko||Gl(null)},[Ko]);var mu=Jn(Mr),vu=function(yo){Gl(yo),fl("preset")},Ws=function(yo){var Ya=Gi?Rr(ao(),yo):[yo],iu=Wr(Ya);iu&&!Gi&&Io(!1,{force:!0})},Vl=function(yo){Ws(yo)},Uo=function(yo){Gl(yo),fl("cell")},Hs=function(yo){Io(!0),Yo(yo)},yu=function(yo){if(mr("panel"),!(Gi&&ca!==nr)){var Ya=Gi?Rr(ao(),yo):[yo];ho(Ya),!Mn&&!$t&&Jt===ca&&Aa()}},gl=function(){Io(!1)},Du=nt(po,No,qr),pl=De.useMemo(function(){var jo=(0,yt.Z)(Et,!1),yo=(0,Ue.Z)(Et,[].concat((0,_e.Z)(Object.keys(jo)),["onChange","onCalendarChange","style","className","onPanelChange"]));return(0,lt.Z)((0,lt.Z)({},yo),{},{multiple:Et.multiple})},[Et]),ko=De.createElement(Dr,(0,ve.Z)({},pl,{showNow:Ga,showTime:wr,disabledDate:xi,onFocus:Hs,onBlur:St,picker:nr,mode:za,internalMode:ca,onPanelChange:Go,format:Tn,value:Do,isInvalid:zn,onChange:null,onSelect:yu,pickerValue:Ta,defaultOpenValue:wr==null?void 0:wr.defaultOpenValue,onPickerValueChange:bl,hoverValue:Qs,onHover:Uo,needConfirm:Mn,onSubmit:Aa,onOk:bo,presets:mu,onPresetHover:vu,onPresetSubmit:Ws,onNow:Vl,cellRender:Du})),_o=function(yo){ho(yo)},Ca=function(){mr("input")},es=function(yo){mr("input"),Io(!0,{inherit:!0}),Yo(yo)},Xa=function(yo){Io(!1),St(yo)},kl=function(yo,Ya){yo.key==="Tab"&&Aa(),Si==null||Si(yo,Ya)},ml=De.useMemo(function(){return{prefixCls:ei,locale:ii,generateConfig:gr,button:fo.button,input:fo.input}},[ei,ii,gr,fo.button,fo.input]);return(0,ze.Z)(function(){Ko&&hi!==void 0&&Go(null,nr,!1)},[Ko,hi,nr]),(0,ze.Z)(function(){var jo=mr();!Ko&&jo==="input"&&(Io(!1),Aa()),!Ko&&$t&&!Mn&&jo==="panel"&&Aa()},[Ko]),De.createElement(ue.Provider,{value:ml},De.createElement(pe,(0,ve.Z)({},Re(Et),{popupElement:ko,popupStyle:vi.popup,popupClassName:pt.popup,visible:Ko,onClose:gl}),De.createElement(ln,(0,ve.Z)({},Et,{ref:Ao,suffixIcon:Qn,removeIcon:ni,activeHelp:!!Eo,allHelp:!!Eo&&Jo==="preset",focused:er,onFocus:es,onBlur:Xa,onKeyDown:kl,onSubmit:Aa,value:Dl,maskFormat:Tn,onChange:_o,onInputChange:Ca,internalPicker:Jt,format:dn,inputReadOnly:cr,disabled:kn,open:Ko,onOpenChange:Io,onClick:Ro,onClear:qo,invalid:ga,onInvalid:function(yo){vo(yo,0)}}))))}var yn=De.forwardRef(_n),cn=yn,En=cn},25930:function(gn,en,we){"use strict";we.d(en,{Cd:function(){return nt}});var ve=we(14809),_e=we(20439),lt=we(62646),it=we(59301),rt=we(92310),ze=we.n(rt),Ue={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},yt=function(){var gt=(0,it.useRef)([]),Dt=(0,it.useRef)(null);return(0,it.useEffect)(function(){var Lt=Date.now(),It=!1;gt.current.forEach(function(Tt){if(Tt){It=!0;var nn=Tt.style;nn.transitionDuration=".3s, .3s, .3s, .06s",Dt.current&&Lt-Dt.current<100&&(nn.transitionDuration="0s, 0s")}}),It&&(Dt.current=Date.now())}),gt.current},tt=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],De=function(gt){var Dt=(0,_e.Z)((0,_e.Z)({},Ue),gt),Lt=Dt.className,It=Dt.percent,Tt=Dt.prefixCls,nn=Dt.strokeColor,at=Dt.strokeLinecap,He=Dt.strokeWidth,Rt=Dt.style,Zt=Dt.trailColor,Yt=Dt.trailWidth,Mt=Dt.transition,zt=(0,lt.Z)(Dt,tt);delete zt.gapPosition;var on=Array.isArray(It)?It:[It],Dn=Array.isArray(nn)?nn:[nn],kt=yt(),vt=He/2,hn=100-He/2,li="M ".concat(at==="round"?vt:0,",").concat(vt,`
L `).concat(at==="round"?hn:100,",").concat(vt),yi="0 0 100 ".concat(He),We=0;return it.createElement("svg",(0,ve.Z)({className:ze()("".concat(Tt,"-line"),Lt),viewBox:yi,preserveAspectRatio:"none",style:Rt},zt),it.createElement("path",{className:"".concat(Tt,"-line-trail"),d:li,strokeLinecap:at,stroke:Zt,strokeWidth:Yt||He,fillOpacity:"0"}),on.map(function(Fe,xe){var Ne=1;switch(at){case"round":Ne=1-He/100;break;case"square":Ne=1-He/2/100;break;default:Ne=1;break}var Ye={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"},ke=Dn[xe]||Dn[Dn.length-1];return We+=Fe,it.createElement("path",{key:xe,className:"".concat(Tt,"-line-path"),d:li,strokeLinecap:at,stroke:ke,strokeWidth:He,fillOpacity:"0",ref:function(_t){kt[xe]=_t},style:Ye})}))},xt=De,Ve=we(93664),ct=we(50298),Ee=we(47273),ne=0,te=(0,Ee.Z)();function ue(){var wt;return te?(wt=ne,ne+=1):wt="TEST_OR_SSR",wt}var se=function(wt){var gt=it.useState(),Dt=(0,ct.Z)(gt,2),Lt=Dt[0],It=Dt[1];return it.useEffect(function(){It("rc_progress_".concat(ue()))},[]),wt||Lt},de=function(gt){var Dt=gt.bg,Lt=gt.children;return it.createElement("div",{style:{width:"100%",height:"100%",background:Dt}},Lt)};function pe(wt,gt){return Object.keys(wt).map(function(Dt){var Lt=parseFloat(Dt),It="".concat(Math.floor(Lt*gt),"%");return"".concat(wt[Dt]," ").concat(It)})}var ye=it.forwardRef(function(wt,gt){var Dt=wt.prefixCls,Lt=wt.color,It=wt.gradientId,Tt=wt.radius,nn=wt.style,at=wt.ptg,He=wt.strokeLinecap,Rt=wt.strokeWidth,Zt=wt.size,Yt=wt.gapDegree,Mt=Lt&&(0,Ve.Z)(Lt)==="object",zt=Mt?"#FFF":void 0,on=Zt/2,Dn=it.createElement("circle",{className:"".concat(Dt,"-circle-path"),r:Tt,cx:on,cy:on,stroke:zt,strokeLinecap:He,strokeWidth:Rt,opacity:at===0?0:1,style:nn,ref:gt});if(!Mt)return Dn;var kt="".concat(It,"-conic"),vt=Yt?"".concat(180+Yt/2,"deg"):"0deg",hn=pe(Lt,(360-Yt)/360),li=pe(Lt,1),yi="conic-gradient(from ".concat(vt,", ").concat(hn.join(", "),")"),We="linear-gradient(to ".concat(Yt?"bottom":"top",", ").concat(li.join(", "),")");return it.createElement(it.Fragment,null,it.createElement("mask",{id:kt},Dn),it.createElement("foreignObject",{x:0,y:0,width:Zt,height:Zt,mask:"url(#".concat(kt,")")},it.createElement(de,{bg:We},it.createElement(de,{bg:yi}))))}),Ce=ye,je=100,Te=function(gt,Dt,Lt,It,Tt,nn,at,He,Rt,Zt){var Yt=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,Mt=Lt/100*360*((360-nn)/360),zt=nn===0?0:{bottom:0,top:180,left:90,right:-90}[at],on=(100-It)/100*Dt;Rt==="round"&&It!==100&&(on+=Zt/2,on>=Dt&&(on=Dt-.01));var Dn=je/2;return{stroke:typeof He=="string"?He:void 0,strokeDasharray:"".concat(Dt,"px ").concat(gt),strokeDashoffset:on+Yt,transform:"rotate(".concat(Tt+Mt+zt,"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(wt){var gt=wt!=null?wt:[];return Array.isArray(gt)?gt:[gt]}var Re=function(gt){var Dt=(0,_e.Z)((0,_e.Z)({},Ue),gt),Lt=Dt.id,It=Dt.prefixCls,Tt=Dt.steps,nn=Dt.strokeWidth,at=Dt.trailWidth,He=Dt.gapDegree,Rt=He===void 0?0:He,Zt=Dt.gapPosition,Yt=Dt.trailColor,Mt=Dt.strokeLinecap,zt=Dt.style,on=Dt.className,Dn=Dt.strokeColor,kt=Dt.percent,vt=(0,lt.Z)(Dt,Ie),hn=je/2,li=se(Lt),yi="".concat(li,"-gradient"),We=hn-nn/2,Fe=Math.PI*2*We,xe=Rt>0?90+Rt/2:-90,Ne=Fe*((360-Rt)/360),Ye=(0,Ve.Z)(Tt)==="object"?Tt:{count:Tt,gap:2},ke=Ye.count,et=Ye.gap,_t=Oe(kt),Bt=Oe(Dn),rn=Bt.find(function(Cn){return Cn&&(0,Ve.Z)(Cn)==="object"}),Ot=rn&&(0,Ve.Z)(rn)==="object",bt=Ot?"butt":Mt,Wt=Te(Fe,Ne,0,100,xe,Rt,Zt,Yt,bt,nn),Xt=yt(),pn=function(){var Ln=0;return _t.map(function(Ci,Jn){var Di=Bt[Jn]||Bt[Bt.length-1],ui=Te(Fe,Ne,Ln,Ci,xe,Rt,Zt,Di,bt,nn);return Ln+=Ci,it.createElement(Ce,{key:Jn,color:Di,ptg:Ci,radius:We,prefixCls:It,gradientId:yi,style:ui,strokeLinecap:bt,strokeWidth:nn,gapDegree:Rt,ref:function(Ui){Xt[Jn]=Ui},size:je})}).reverse()},$n=function(){var Ln=Math.round(ke*(_t[0]/100)),Ci=100/ke,Jn=0;return new Array(ke).fill(null).map(function(Di,ui){var Bi=ui<=Ln-1?Bt[0]:Yt,Ui=Bi&&(0,Ve.Z)(Bi)==="object"?"url(#".concat(yi,")"):void 0,ir=Te(Fe,Ne,Jn,Ci,xe,Rt,Zt,Bi,"butt",nn,et);return Jn+=(Ne-ir.strokeDashoffset+et)*100/Ne,it.createElement("circle",{key:ui,className:"".concat(It,"-circle-path"),r:We,cx:hn,cy:hn,stroke:Ui,strokeWidth:nn,opacity:1,style:ir,ref:function(qi){Xt[ui]=qi}})})};return it.createElement("svg",(0,ve.Z)({className:ze()("".concat(It,"-circle"),on),viewBox:"0 0 ".concat(je," ").concat(je),style:zt,id:Lt,role:"presentation"},vt),!ke&&it.createElement("circle",{className:"".concat(It,"-circle-trail"),r:We,cx:hn,cy:hn,stroke:Yt,strokeLinecap:bt,strokeWidth:at||nn,style:Wt}),ke?$n():pn())},nt=Re,ot={Line:xt,Circle:nt}},738:function(gn,en,we){"use strict";we.d(en,{Z:function(){return pe}});var ve=we(14809),_e=we(4635),lt=we(50298),it=we(62646),rt=we(92310),ze=we.n(rt),Ue=we(18929),yt=we(10228),tt=we(26112),De=we(59301);function xt(ye,Ce){var je=ye.disabled,Te=ye.prefixCls,Ie=ye.character,Oe=ye.characterRender,Re=ye.index,nt=ye.count,ot=ye.value,wt=ye.allowHalf,gt=ye.focused,Dt=ye.onHover,Lt=ye.onClick,It=function(Mt){Dt(Mt,Re)},Tt=function(Mt){Lt(Mt,Re)},nn=function(Mt){Mt.keyCode===yt.Z.ENTER&&Lt(Mt,Re)},at=Re+1,He=new Set([Te]);ot===0&&Re===0&&gt?He.add("".concat(Te,"-focused")):wt&&ot+.5>=at&&ot<at?(He.add("".concat(Te,"-half")),He.add("".concat(Te,"-active")),gt&&He.add("".concat(Te,"-focused"))):(at<=ot?He.add("".concat(Te,"-full")):He.add("".concat(Te,"-zero")),at===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:je?null:Tt,onKeyDown:je?null:nn,onMouseMove:je?null:It,role:"radio","aria-checked":ot>Re?"true":"false","aria-posinset":Re+1,"aria-setsize":nt,tabIndex:je?-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(xt);function ct(){var ye=De.useRef({});function Ce(Te){return ye.current[Te]}function je(Te){return function(Ie){ye.current[Te]=Ie}}return[Ce,je]}function Ee(ye){var Ce=ye.pageXOffset,je="scrollLeft";if(typeof Ce!="number"){var Te=ye.document;Ce=Te.documentElement[je],typeof Ce!="number"&&(Ce=Te.body[je])}return Ce}function ne(ye){var Ce,je,Te=ye.ownerDocument,Ie=Te.body,Oe=Te&&Te.documentElement,Re=ye.getBoundingClientRect();return Ce=Re.left,je=Re.top,Ce-=Oe.clientLeft||Ie.clientLeft||0,je-=Oe.clientTop||Ie.clientTop||0,{left:Ce,top:je}}function te(ye){var Ce=ne(ye),je=ye.ownerDocument,Te=je.defaultView||je.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 je=ye.prefixCls,Te=je===void 0?"rc-rate":je,Ie=ye.className,Oe=ye.defaultValue,Re=ye.value,nt=ye.count,ot=nt===void 0?5:nt,wt=ye.allowHalf,gt=wt===void 0?!1:wt,Dt=ye.allowClear,Lt=Dt===void 0?!0:Dt,It=ye.keyboard,Tt=It===void 0?!0:It,nn=ye.character,at=nn===void 0?"\u2605":nn,He=ye.characterRender,Rt=ye.disabled,Zt=ye.direction,Yt=Zt===void 0?"ltr":Zt,Mt=ye.tabIndex,zt=Mt===void 0?0:Mt,on=ye.autoFocus,Dn=ye.onHoverChange,kt=ye.onChange,vt=ye.onFocus,hn=ye.onBlur,li=ye.onKeyDown,yi=ye.onMouseLeave,We=(0,it.Z)(ye,ue),Fe=ct(),xe=(0,lt.Z)(Fe,2),Ne=xe[0],Ye=xe[1],ke=De.useRef(null),et=function(){if(!Rt){var Er;(Er=ke.current)===null||Er===void 0||Er.focus()}};De.useImperativeHandle(Ce,function(){return{focus:et,blur:function(){if(!Rt){var Er;(Er=ke.current)===null||Er===void 0||Er.blur()}}}});var _t=(0,Ue.Z)(Oe||0,{value:Re}),Bt=(0,lt.Z)(_t,2),rn=Bt[0],Ot=Bt[1],bt=(0,Ue.Z)(null),Wt=(0,lt.Z)(bt,2),Xt=Wt[0],pn=Wt[1],$n=function(Er,io){var Le=Yt==="rtl",Pn=Er+1;if(gt){var Un=Ne(Er),gi=te(Un),mi=Un.clientWidth;(Le&&io-gi>mi/2||!Le&&io-gi<mi/2)&&(Pn-=.5)}return Pn},Cn=function(Er){Ot(Er),kt==null||kt(Er)},Ln=De.useState(!1),Ci=(0,lt.Z)(Ln,2),Jn=Ci[0],Di=Ci[1],ui=function(){Di(!0),vt==null||vt()},Bi=function(){Di(!1),hn==null||hn()},Ui=De.useState(null),ir=(0,lt.Z)(Ui,2),Ir=ir[0],qi=ir[1],ri=function(Er,io){var Le=$n(io,Er.pageX);Le!==Xt&&(qi(Le),pn(null)),Dn==null||Dn(Le)},co=function(Er){Rt||(qi(null),pn(null),Dn==null||Dn(void 0)),Er&&(yi==null||yi(Er))},Qr=function(Er,io){var Le=$n(io,Er.pageX),Pn=!1;Lt&&(Pn=Le===rn),co(),Cn(Pn?0:Le),pn(Pn?Le:null)},to=function(Er){var io=Er.keyCode,Le=Yt==="rtl",Pn=gt?.5:1;Tt&&(io===yt.Z.RIGHT&&rn<ot&&!Le?(Cn(rn+Pn),Er.preventDefault()):io===yt.Z.LEFT&&rn>0&&!Le||io===yt.Z.RIGHT&&rn>0&&Le?(Cn(rn-Pn),Er.preventDefault()):io===yt.Z.LEFT&&rn<ot&&Le&&(Cn(rn+Pn),Er.preventDefault())),li==null||li(Er)};De.useEffect(function(){on&&!Rt&&et()},[]);var no=new Array(ot).fill(0).map(function(lo,Er){return De.createElement(Ve,{ref:Ye(Er),index:Er,count:ot,disabled:Rt,prefixCls:"".concat(Te,"-star"),allowHalf:gt,value:Ir===null?rn:Ir,onClick:Qr,onHover:ri,key:lo||Er,character:at,characterRender:He,focused:Jn})}),xo=ze()(Te,Ie,(0,_e.Z)((0,_e.Z)({},"".concat(Te,"-disabled"),Rt),"".concat(Te,"-rtl"),Yt==="rtl"));return De.createElement("ul",(0,ve.Z)({className:xo,onMouseLeave:co,tabIndex:Rt?-1:zt,onFocus:Rt?null:ui,onBlur:Rt?null:Bi,onKeyDown:Rt?null:to,ref:ke},(0,tt.Z)(We,{aria:!0,data:!0,attr:!0})),no)}var de=De.forwardRef(se),pe=de},6551:function(gn,en,we){"use strict";we.d(en,{ZP:function(){return Ue}});var ve=we(50298),_e=we(59301),lt=we(47273),it=0,rt=(0,lt.Z)();function ze(){var yt;return rt?(yt=it,it+=1):yt="TEST_OR_SSR",yt}function Ue(yt){var tt=_e.useState(),De=(0,ve.Z)(tt,2),xt=De[0],Ve=De[1];return _e.useEffect(function(){Ve("rc_select_".concat(ze()))},[]),yt||xt}},37463:function(gn,en,we){"use strict";we.d(en,{Ac:function(){return Di},Xo:function(){return Bi},Wx:function(){return ir},ZP:function(){return ci},lk:function(){return pe}});var ve=we(14809),_e=we(95190),lt=we(4635),it=we(20439),rt=we(50298),ze=we(62646),Ue=we(93664),yt=we(18929),tt=we(48736),De=we(59301),xt=we(92310),Ve=we.n(xt),ct=we(34280),Ee=we(49658),ne=we(8654),te=function(Nt){var Rn=Nt.className,In=Nt.customizeIcon,Qt=Nt.customizeIconProps,qn=Nt.children,Nn=Nt.onMouseDown,Vn=Nt.onClick,Pi=typeof In=="function"?In(Qt):In;return De.createElement("span",{className:Rn,onMouseDown:function(tn){tn.preventDefault(),Nn==null||Nn(tn)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:Vn,"aria-hidden":!0},Pi!==void 0?Pi:De.createElement("span",{className:Ve()(Rn.split(/\s+/).map(function(pi){return"".concat(pi,"-icon")}))},qn))},ue=te,se=function(Nt,Rn,In,Qt,qn){var Nn=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,Vn=arguments.length>6?arguments[6]:void 0,Pi=arguments.length>7?arguments[7]:void 0,pi=De.useMemo(function(){if((0,Ue.Z)(Qt)==="object")return Qt.clearIcon;if(qn)return qn},[Qt,qn]),tn=De.useMemo(function(){return!!(!Nn&&Qt&&(In.length||Vn)&&!(Pi==="combobox"&&Vn===""))},[Qt,Nn,In.length,Vn,Pi]);return{allowClear:tn,clearIcon:De.createElement(ue,{className:"".concat(Nt,"-clear"),onMouseDown:Rn,customizeIcon:pi},"\xD7")}},de=De.createContext(null);function pe(){return De.useContext(de)}function ye(){var ut=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,Nt=De.useState(!1),Rn=(0,rt.Z)(Nt,2),In=Rn[0],Qt=Rn[1],qn=De.useRef(null),Nn=function(){window.clearTimeout(qn.current)};De.useEffect(function(){return Nn},[]);var Vn=function(pi,tn){Nn(),qn.current=window.setTimeout(function(){Qt(pi),tn&&tn()},ut)};return[In,Vn,Nn]}function Ce(){var ut=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,Nt=De.useRef(null),Rn=De.useRef(null);De.useEffect(function(){return function(){window.clearTimeout(Rn.current)}},[]);function In(Qt){(Qt||Nt.current===null)&&(Nt.current=Qt),window.clearTimeout(Rn.current),Rn.current=window.setTimeout(function(){Nt.current=null},ut)}return[function(){return Nt.current},In]}function je(ut,Nt,Rn,In){var Qt=De.useRef(null);Qt.current={open:Nt,triggerOpen:Rn,customizedTrigger:In},De.useEffect(function(){function qn(Nn){var Vn;if(!((Vn=Qt.current)!==null&&Vn!==void 0&&Vn.customizedTrigger)){var Pi=Nn.target;Pi.shadowRoot&&Nn.composed&&(Pi=Nn.composedPath()[0]||Pi),Qt.current.open&&ut().filter(function(pi){return pi}).every(function(pi){return!pi.contains(Pi)&&pi!==Pi})&&Qt.current.triggerOpen(!1)}}return window.addEventListener("mousedown",qn),function(){return window.removeEventListener("mousedown",qn)}},[])}var Te=we(10228);function Ie(ut){return ut&&![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(ut)}var Oe=we(26112),Re=we(11780);function nt(ut,Nt,Rn){var In=(0,it.Z)((0,it.Z)({},ut),Rn?Nt:{});return Object.keys(Nt).forEach(function(Qt){var qn=Nt[Qt];typeof qn=="function"&&(In[Qt]=function(){for(var Nn,Vn=arguments.length,Pi=new Array(Vn),pi=0;pi<Vn;pi++)Pi[pi]=arguments[pi];return qn.apply(void 0,Pi),(Nn=ut[Qt])===null||Nn===void 0?void 0:Nn.call.apply(Nn,[ut].concat(Pi))})}),In}var ot=nt,wt=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],gt=function(Nt,Rn){var In=Nt.prefixCls,Qt=Nt.id,qn=Nt.inputElement,Nn=Nt.autoFocus,Vn=Nt.autoComplete,Pi=Nt.editable,pi=Nt.activeDescendantId,tn=Nt.value,Wi=Nt.open,yr=Nt.attrs,Pr=(0,ze.Z)(Nt,wt),Yn=qn||De.createElement("input",null),Oi=Yn,Dr=Oi.ref,jr=Oi.props;return(0,tt.Kp)(!("maxLength"in Yn.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),Yn=De.cloneElement(Yn,(0,it.Z)((0,it.Z)((0,it.Z)({type:"search"},ot(Pr,jr,!0)),{},{id:Qt,ref:(0,ne.sQ)(Rn,Dr),autoComplete:Vn||"off",autoFocus:Nn,className:Ve()("".concat(In,"-selection-search-input"),jr==null?void 0:jr.className),role:"combobox","aria-expanded":Wi||!1,"aria-haspopup":"listbox","aria-owns":"".concat(Qt,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(Qt,"_list"),"aria-activedescendant":Wi?pi:void 0},yr),{},{value:Pi?tn:"",readOnly:!Pi,unselectable:Pi?null:"on",style:(0,it.Z)((0,it.Z)({},jr.style),{},{opacity:Pi?null:0})})),Yn},Dt=De.forwardRef(gt),Lt=Dt;function It(ut){return Array.isArray(ut)?ut:ut!==void 0?[ut]:[]}var Tt=typeof window!="undefined"&&window.document&&window.document.documentElement,nn=Tt;function at(ut){return ut!=null}function He(ut){return!ut&&ut!==0}function Rt(ut){return["string","number"].includes((0,Ue.Z)(ut))}function Zt(ut){var Nt=void 0;return ut&&(Rt(ut.title)?Nt=ut.title.toString():Rt(ut.label)&&(Nt=ut.label.toString())),Nt}function Yt(ut,Nt){nn?De.useLayoutEffect(ut,Nt):De.useEffect(ut,Nt)}function Mt(ut){var Nt;return(Nt=ut.key)!==null&&Nt!==void 0?Nt:ut.value}var zt=function(Nt){Nt.preventDefault(),Nt.stopPropagation()},on=function(Nt){var Rn=Nt.id,In=Nt.prefixCls,Qt=Nt.values,qn=Nt.open,Nn=Nt.searchValue,Vn=Nt.autoClearSearchValue,Pi=Nt.inputRef,pi=Nt.placeholder,tn=Nt.disabled,Wi=Nt.mode,yr=Nt.showSearch,Pr=Nt.autoFocus,Yn=Nt.autoComplete,Oi=Nt.activeDescendantId,Dr=Nt.tabIndex,jr=Nt.removeIcon,oo=Nt.maxTagCount,Kt=Nt.maxTagTextLength,bi=Nt.maxTagPlaceholder,tr=bi===void 0?function(_n){return"+ ".concat(_n.length," ...")}:bi,Mi=Nt.tagRender,kr=Nt.onToggleOpen,rr=Nt.onRemove,Lr=Nt.onInputChange,Tr=Nt.onInputPaste,Zr=Nt.onInputKeyDown,uo=Nt.onInputMouseDown,An=Nt.onInputCompositionStart,mo=Nt.onInputCompositionEnd,Fn=Nt.onInputBlur,ai=De.useRef(null),_r=(0,De.useState)(0),Hr=(0,rt.Z)(_r,2),Oo=Hr[0],Kr=Hr[1],Or=(0,De.useState)(!1),Bo=(0,rt.Z)(Or,2),qt=Bo[0],vn=Bo[1],Ht="".concat(In,"-selection"),Ze=qn||Wi==="multiple"&&Vn===!1||Wi==="tags"?Nn:"",Xn=Wi==="tags"||Wi==="multiple"&&Vn===!1||yr&&(qn||qt);Yt(function(){Kr(ai.current.scrollWidth)},[Ze]);var Fi=function(yn,cn,En,be,dt){return De.createElement("span",{title:Zt(yn),className:Ve()("".concat(Ht,"-item"),(0,lt.Z)({},"".concat(Ht,"-item-disabled"),En))},De.createElement("span",{className:"".concat(Ht,"-item-content")},cn),be&&De.createElement(ue,{className:"".concat(Ht,"-item-remove"),onMouseDown:zt,onClick:dt,customizeIcon:jr},"\xD7"))},Qi=function(yn,cn,En,be,dt,Xe){var Pt=function(Jt){zt(Jt),kr(!qn)};return De.createElement("span",{onMouseDown:Pt},Mi({label:cn,value:yn,disabled:En,closable:be,onClose:dt,isMaxTag:!!Xe}))},Qe=function(yn){var cn=yn.disabled,En=yn.label,be=yn.value,dt=!tn&&!cn,Xe=En;if(typeof Kt=="number"&&(typeof En=="string"||typeof En=="number")){var Pt=String(Xe);Pt.length>Kt&&(Xe="".concat(Pt.slice(0,Kt),"..."))}var Et=function($t){$t&&$t.stopPropagation(),rr(yn)};return typeof Mi=="function"?Qi(be,Xe,cn,dt,Et):Fi(yn,Xe,cn,dt,Et)},Ut=function(yn){if(!Qt.length)return null;var cn=typeof tr=="function"?tr(yn):tr;return typeof Mi=="function"?Qi(void 0,cn,!1,!1,void 0,!0):Fi({title:cn},cn,!1)},Ft=De.createElement("div",{className:"".concat(Ht,"-search"),style:{width:Oo},onFocus:function(){vn(!0)},onBlur:function(){vn(!1)}},De.createElement(Lt,{ref:Pi,open:qn,prefixCls:In,id:Rn,inputElement:null,disabled:tn,autoFocus:Pr,autoComplete:Yn,editable:Xn,activeDescendantId:Oi,value:Ze,onKeyDown:Zr,onMouseDown:uo,onChange:Lr,onPaste:Tr,onCompositionStart:An,onCompositionEnd:mo,onBlur:Fn,tabIndex:Dr,attrs:(0,Oe.Z)(Nt,!0)}),De.createElement("span",{ref:ai,className:"".concat(Ht,"-search-mirror"),"aria-hidden":!0},Ze,"\xA0")),ln=De.createElement(Re.Z,{prefixCls:"".concat(Ht,"-overflow"),data:Qt,renderItem:Qe,renderRest:Ut,suffix:Ft,itemKey:Mt,maxCount:oo});return De.createElement("span",{className:"".concat(Ht,"-wrap")},ln,!Qt.length&&!Ze&&De.createElement("span",{className:"".concat(Ht,"-placeholder")},pi))},Dn=on,kt=function(Nt){var Rn=Nt.inputElement,In=Nt.prefixCls,Qt=Nt.id,qn=Nt.inputRef,Nn=Nt.disabled,Vn=Nt.autoFocus,Pi=Nt.autoComplete,pi=Nt.activeDescendantId,tn=Nt.mode,Wi=Nt.open,yr=Nt.values,Pr=Nt.placeholder,Yn=Nt.tabIndex,Oi=Nt.showSearch,Dr=Nt.searchValue,jr=Nt.activeValue,oo=Nt.maxLength,Kt=Nt.onInputKeyDown,bi=Nt.onInputMouseDown,tr=Nt.onInputChange,Mi=Nt.onInputPaste,kr=Nt.onInputCompositionStart,rr=Nt.onInputCompositionEnd,Lr=Nt.onInputBlur,Tr=Nt.title,Zr=De.useState(!1),uo=(0,rt.Z)(Zr,2),An=uo[0],mo=uo[1],Fn=tn==="combobox",ai=Fn||Oi,_r=yr[0],Hr=Dr||"";Fn&&jr&&!An&&(Hr=jr),De.useEffect(function(){Fn&&mo(!1)},[Fn,jr]);var Oo=tn!=="combobox"&&!Wi&&!Oi?!1:!!Hr,Kr=Tr===void 0?Zt(_r):Tr,Or=De.useMemo(function(){return _r?null:De.createElement("span",{className:"".concat(In,"-selection-placeholder"),style:Oo?{visibility:"hidden"}:void 0},Pr)},[_r,Oo,Pr,In]);return De.createElement("span",{className:"".concat(In,"-selection-wrap")},De.createElement("span",{className:"".concat(In,"-selection-search")},De.createElement(Lt,{ref:qn,prefixCls:In,id:Qt,open:Wi,inputElement:Rn,disabled:Nn,autoFocus:Vn,autoComplete:Pi,editable:ai,activeDescendantId:pi,value:Hr,onKeyDown:Kt,onMouseDown:bi,onChange:function(qt){mo(!0),tr(qt)},onPaste:Mi,onCompositionStart:kr,onCompositionEnd:rr,onBlur:Lr,tabIndex:Yn,attrs:(0,Oe.Z)(Nt,!0),maxLength:Fn?oo:void 0})),!Fn&&_r?De.createElement("span",{className:"".concat(In,"-selection-item"),title:Kr,style:Oo?{visibility:"hidden"}:void 0},_r.label):null,Or)},vt=kt,hn=function(Nt,Rn){var In=(0,De.useRef)(null),Qt=(0,De.useRef)(!1),qn=Nt.prefixCls,Nn=Nt.open,Vn=Nt.mode,Pi=Nt.showSearch,pi=Nt.tokenWithEnter,tn=Nt.disabled,Wi=Nt.prefix,yr=Nt.autoClearSearchValue,Pr=Nt.onSearch,Yn=Nt.onSearchSubmit,Oi=Nt.onToggleOpen,Dr=Nt.onInputKeyDown,jr=Nt.onInputBlur,oo=Nt.domRef;De.useImperativeHandle(Rn,function(){return{focus:function(Kr){In.current.focus(Kr)},blur:function(){In.current.blur()}}});var Kt=Ce(0),bi=(0,rt.Z)(Kt,2),tr=bi[0],Mi=bi[1],kr=function(Kr){var Or=Kr.which,Bo=In.current instanceof HTMLTextAreaElement;!Bo&&Nn&&(Or===Te.Z.UP||Or===Te.Z.DOWN)&&Kr.preventDefault(),Dr&&Dr(Kr),Or===Te.Z.ENTER&&Vn==="tags"&&!Qt.current&&!Nn&&(Yn==null||Yn(Kr.target.value)),!(Bo&&!Nn&&~[Te.Z.UP,Te.Z.DOWN,Te.Z.LEFT,Te.Z.RIGHT].indexOf(Or))&&Ie(Or)&&Oi(!0)},rr=function(){Mi(!0)},Lr=(0,De.useRef)(null),Tr=function(Kr){Pr(Kr,!0,Qt.current)!==!1&&Oi(!0)},Zr=function(){Qt.current=!0},uo=function(Kr){Qt.current=!1,Vn!=="combobox"&&Tr(Kr.target.value)},An=function(Kr){var Or=Kr.target.value;if(pi&&Lr.current&&/[\r\n]/.test(Lr.current)){var Bo=Lr.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Or=Or.replace(Bo,Lr.current)}Lr.current=null,Tr(Or)},mo=function(Kr){var Or=Kr.clipboardData,Bo=Or==null?void 0:Or.getData("text");Lr.current=Bo||""},Fn=function(Kr){var Or=Kr.target;if(Or!==In.current){var Bo=document.body.style.msTouchAction!==void 0;Bo?setTimeout(function(){In.current.focus()}):In.current.focus()}},ai=function(Kr){var Or=tr();Kr.target!==In.current&&!Or&&!(Vn==="combobox"&&tn)&&Kr.preventDefault(),(Vn!=="combobox"&&(!Pi||!Or)||!Nn)&&(Nn&&yr!==!1&&Pr("",!0,!1),Oi())},_r={inputRef:In,onInputKeyDown:kr,onInputMouseDown:rr,onInputChange:An,onInputPaste:mo,onInputCompositionStart:Zr,onInputCompositionEnd:uo,onInputBlur:jr},Hr=Vn==="multiple"||Vn==="tags"?De.createElement(Dn,(0,ve.Z)({},Nt,_r)):De.createElement(vt,(0,ve.Z)({},Nt,_r));return De.createElement("div",{ref:oo,className:"".concat(qn,"-selector"),onClick:Fn,onMouseDown:ai},Wi&&De.createElement("div",{className:"".concat(qn,"-prefix")},Wi),Hr)},li=De.forwardRef(hn),yi=li,We=we(65966),Fe=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],xe=function(Nt){var Rn=Nt===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:Rn,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:Rn,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:Rn,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:Rn,adjustY:1},htmlRegion:"scroll"}}},Ne=function(Nt,Rn){var In=Nt.prefixCls,Qt=Nt.disabled,qn=Nt.visible,Nn=Nt.children,Vn=Nt.popupElement,Pi=Nt.animation,pi=Nt.transitionName,tn=Nt.dropdownStyle,Wi=Nt.dropdownClassName,yr=Nt.direction,Pr=yr===void 0?"ltr":yr,Yn=Nt.placement,Oi=Nt.builtinPlacements,Dr=Nt.dropdownMatchSelectWidth,jr=Nt.dropdownRender,oo=Nt.dropdownAlign,Kt=Nt.getPopupContainer,bi=Nt.empty,tr=Nt.getTriggerDOMNode,Mi=Nt.onPopupVisibleChange,kr=Nt.onPopupMouseEnter,rr=(0,ze.Z)(Nt,Fe),Lr="".concat(In,"-dropdown"),Tr=Vn;jr&&(Tr=jr(Vn));var Zr=De.useMemo(function(){return Oi||xe(Dr)},[Oi,Dr]),uo=Pi?"".concat(Lr,"-").concat(Pi):pi,An=typeof Dr=="number",mo=De.useMemo(function(){return An?null:Dr===!1?"minWidth":"width"},[Dr,An]),Fn=tn;An&&(Fn=(0,it.Z)((0,it.Z)({},Fn),{},{width:Dr}));var ai=De.useRef(null);return De.useImperativeHandle(Rn,function(){return{getPopupElement:function(){var Hr;return(Hr=ai.current)===null||Hr===void 0?void 0:Hr.popupElement}}}),De.createElement(We.Z,(0,ve.Z)({},rr,{showAction:Mi?["click"]:[],hideAction:Mi?["click"]:[],popupPlacement:Yn||(Pr==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Zr,prefixCls:Lr,popupTransitionName:uo,popup:De.createElement("div",{onMouseEnter:kr},Tr),ref:ai,stretch:mo,popupAlign:oo,popupVisible:qn,getPopupContainer:Kt,popupClassName:Ve()(Wi,(0,lt.Z)({},"".concat(Lr,"-empty"),bi)),popupStyle:Fn,getTriggerDOMNode:tr,onPopupVisibleChange:Mi}),Nn)},Ye=De.forwardRef(Ne),ke=Ye,et=we(21696);function _t(ut,Nt){var Rn=ut.key,In;return"value"in ut&&(In=ut.value),Rn!=null?Rn:In!==void 0?In:"rc-index-key-".concat(Nt)}function Bt(ut){return typeof ut!="undefined"&&!Number.isNaN(ut)}function rn(ut,Nt){var Rn=ut||{},In=Rn.label,Qt=Rn.value,qn=Rn.options,Nn=Rn.groupLabel,Vn=In||(Nt?"children":"label");return{label:Vn,value:Qt||"value",options:qn||"options",groupLabel:Nn||Vn}}function Ot(ut){var Nt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Rn=Nt.fieldNames,In=Nt.childrenAsData,Qt=[],qn=rn(Rn,!1),Nn=qn.label,Vn=qn.value,Pi=qn.options,pi=qn.groupLabel;function tn(Wi,yr){Array.isArray(Wi)&&Wi.forEach(function(Pr){if(yr||!(Pi in Pr)){var Yn=Pr[Vn];Qt.push({key:_t(Pr,Qt.length),groupOption:yr,data:Pr,label:Pr[Nn],value:Yn})}else{var Oi=Pr[pi];Oi===void 0&&In&&(Oi=Pr.label),Qt.push({key:_t(Pr,Qt.length),group:!0,data:Pr,label:Oi}),tn(Pr[Pi],!0)}})}return tn(ut,!1),Qt}function bt(ut){var Nt=(0,it.Z)({},ut);return"props"in Nt||Object.defineProperty(Nt,"props",{get:function(){return(0,tt.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),Nt}}),Nt}var Wt=function(Nt,Rn,In){if(!Rn||!Rn.length)return null;var Qt=!1,qn=function Vn(Pi,pi){var tn=(0,et.Z)(pi),Wi=tn[0],yr=tn.slice(1);if(!Wi)return[Pi];var Pr=Pi.split(Wi);return Qt=Qt||Pr.length>1,Pr.reduce(function(Yn,Oi){return[].concat((0,_e.Z)(Yn),(0,_e.Z)(Vn(Oi,yr)))},[]).filter(Boolean)},Nn=qn(Nt,Rn);return Qt?typeof In!="undefined"?Nn.slice(0,In):Nn:null},Xt=De.createContext(null),pn=Xt;function $n(ut){var Nt=ut.visible,Rn=ut.values;if(!Nt)return null;var In=50;return De.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(Rn.slice(0,In).map(function(Qt){var qn=Qt.label,Nn=Qt.value;return["number","string"].includes((0,Ue.Z)(qn))?qn:Nn}).join(", ")),Rn.length>In?", ...":null)}var Cn=["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"],Ln=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],Ci=function(Nt){return Nt==="tags"||Nt==="multiple"},Jn=De.forwardRef(function(ut,Nt){var Rn,In=ut.id,Qt=ut.prefixCls,qn=ut.className,Nn=ut.showSearch,Vn=ut.tagRender,Pi=ut.direction,pi=ut.omitDomProps,tn=ut.displayValues,Wi=ut.onDisplayValuesChange,yr=ut.emptyOptions,Pr=ut.notFoundContent,Yn=Pr===void 0?"Not Found":Pr,Oi=ut.onClear,Dr=ut.mode,jr=ut.disabled,oo=ut.loading,Kt=ut.getInputElement,bi=ut.getRawInputElement,tr=ut.open,Mi=ut.defaultOpen,kr=ut.onDropdownVisibleChange,rr=ut.activeValue,Lr=ut.onActiveValueChange,Tr=ut.activeDescendantId,Zr=ut.searchValue,uo=ut.autoClearSearchValue,An=ut.onSearch,mo=ut.onSearchSplit,Fn=ut.tokenSeparators,ai=ut.allowClear,_r=ut.prefix,Hr=ut.suffixIcon,Oo=ut.clearIcon,Kr=ut.OptionList,Or=ut.animation,Bo=ut.transitionName,qt=ut.dropdownStyle,vn=ut.dropdownClassName,Ht=ut.dropdownMatchSelectWidth,Ze=ut.dropdownRender,Xn=ut.dropdownAlign,Fi=ut.placement,Qi=ut.builtinPlacements,Qe=ut.getPopupContainer,Ut=ut.showAction,Ft=Ut===void 0?[]:Ut,ln=ut.onFocus,_n=ut.onBlur,yn=ut.onKeyUp,cn=ut.onKeyDown,En=ut.onMouseDown,be=(0,ze.Z)(ut,Cn),dt=Ci(Dr),Xe=(Nn!==void 0?Nn:dt)||Dr==="combobox",Pt=(0,it.Z)({},be);Ln.forEach(function(er){delete Pt[er]}),pi==null||pi.forEach(function(er){delete Pt[er]});var Et=De.useState(!1),Jt=(0,rt.Z)(Et,2),$t=Jt[0],dn=Jt[1];De.useEffect(function(){dn((0,Ee.Z)())},[]);var Tn=De.useRef(null),zn=De.useRef(null),fn=De.useRef(null),ei=De.useRef(null),vi=De.useRef(null),pt=De.useRef(!1),Kn=ye(),Hn=(0,rt.Z)(Kn,3),jn=Hn[0],Mn=Hn[1],fi=Hn[2];De.useImperativeHandle(Nt,function(){var er,Br;return{focus:(er=ei.current)===null||er===void 0?void 0:er.focus,blur:(Br=ei.current)===null||Br===void 0?void 0:Br.blur,scrollTo:function(hi){var Yo;return(Yo=vi.current)===null||Yo===void 0?void 0:Yo.scrollTo(hi)},nativeElement:Tn.current||zn.current}});var Si=De.useMemo(function(){var er;if(Dr!=="combobox")return Zr;var Br=(er=tn[0])===null||er===void 0?void 0:er.value;return typeof Br=="string"||typeof Br=="number"?String(Br):""},[Zr,Dr,tn]),kn=Dr==="combobox"&&typeof Kt=="function"&&Kt()||null,xi=typeof bi=="function"&&bi(),Ei=(0,ne.x1)(zn,xi==null||(Rn=xi.props)===null||Rn===void 0?void 0:Rn.ref),Ai=De.useState(!1),dr=(0,rt.Z)(Ai,2),Ar=dr[0],ur=dr[1];(0,ct.Z)(function(){ur(!0)},[]);var ii=(0,yt.Z)(!1,{defaultValue:Mi,value:tr}),gr=(0,rt.Z)(ii,2),nr=gr[0],hr=gr[1],$i=Ar?nr:!1,wr=!Yn&&yr;(jr||wr&&$i&&Dr==="combobox")&&($i=!1);var bn=wr?!1:$i,Li=De.useCallback(function(er){var Br=er!==void 0?er:!$i;jr||(hr(Br),$i!==Br&&(kr==null||kr(Br)))},[jr,$i,hr,kr]),zi=De.useMemo(function(){return(Fn||[]).some(function(er){return[`
`,`\r
`].includes(er)})},[Fn]),_i=De.useContext(pn)||{},Gi=_i.maxCount,Vi=_i.rawValues,di=function(Br,mr,hi){if(!(dt&&Bt(Gi)&&(Vi==null?void 0:Vi.size)>=Gi)){var Yo=!0,St=Br;Lr==null||Lr(null);var wn=Wt(Br,Fn,Bt(Gi)?Gi-Vi.size:void 0),ja=hi?null:wn;return Dr!=="combobox"&&ja&&(St="",mo==null||mo(ja),Li(!1),Yo=!1),An&&Si!==St&&An(St,{source:mr?"typing":"effect"}),Yo}},ki=function(Br){!Br||!Br.trim()||An(Br,{source:"submit"})};De.useEffect(function(){!$i&&!dt&&Dr!=="combobox"&&di("",!1,!1)},[$i]),De.useEffect(function(){nr&&jr&&hr(!1),jr&&!pt.current&&Mn(!1)},[jr]);var cr=Ce(),Qn=(0,rt.Z)(cr,2),ni=Qn[0],Ki=Qn[1],or=De.useRef(!1),Mr=function(Br){var mr=ni(),hi=Br.key,Yo=hi==="Enter";if(Yo&&(Dr!=="combobox"&&Br.preventDefault(),$i||Li(!0)),Ki(!!Si),hi==="Backspace"&&!mr&&dt&&!Si&&tn.length){for(var St=(0,_e.Z)(tn),wn=null,ja=St.length-1;ja>=0;ja-=1){var za=St[ja];if(!za.disabled){St.splice(ja,1),wn=za;break}}wn&&Wi(St,{type:"remove",values:[wn]})}for(var da=arguments.length,ca=new Array(da>1?da-1:0),Ga=1;Ga<da;Ga++)ca[Ga-1]=arguments[Ga];if($i&&(!Yo||!or.current)){var Na;Yo&&(or.current=!0),(Na=vi.current)===null||Na===void 0||Na.onKeyDown.apply(Na,[Br].concat(ca))}cn==null||cn.apply(void 0,[Br].concat(ca))},fo=function(Br){for(var mr=arguments.length,hi=new Array(mr>1?mr-1:0),Yo=1;Yo<mr;Yo++)hi[Yo-1]=arguments[Yo];if($i){var St;(St=vi.current)===null||St===void 0||St.onKeyUp.apply(St,[Br].concat(hi))}Br.key==="Enter"&&(or.current=!1),yn==null||yn.apply(void 0,[Br].concat(hi))},po=function(Br){var mr=tn.filter(function(hi){return hi!==Br});Wi(mr,{type:"remove",values:[Br]})},No=function(){or.current=!1},qr=De.useRef(!1),ta=function(){Mn(!0),jr||(ln&&!qr.current&&ln.apply(void 0,arguments),Ft.includes("focus")&&Li(!0)),qr.current=!0},Ao=function(){pt.current=!0,Mn(!1,function(){qr.current=!1,pt.current=!1,Li(!1)}),!jr&&(Si&&(Dr==="tags"?An(Si,{source:"submit"}):Dr==="multiple"&&An("",{source:"blur"})),_n&&_n.apply(void 0,arguments))},ar=[];De.useEffect(function(){return function(){ar.forEach(function(er){return clearTimeout(er)}),ar.splice(0,ar.length)}},[]);var Rr=function(Br){var mr,hi=Br.target,Yo=(mr=fn.current)===null||mr===void 0?void 0:mr.getPopupElement();if(Yo&&Yo.contains(hi)){var St=setTimeout(function(){var da=ar.indexOf(St);if(da!==-1&&ar.splice(da,1),fi(),!$t&&!Yo.contains(document.activeElement)){var ca;(ca=ei.current)===null||ca===void 0||ca.focus()}});ar.push(St)}for(var wn=arguments.length,ja=new Array(wn>1?wn-1:0),za=1;za<wn;za++)ja[za-1]=arguments[za];En==null||En.apply(void 0,[Br].concat(ja))},Lo=De.useState({}),Zo=(0,rt.Z)(Lo,2),Ko=Zo[1];function Io(){Ko({})}var Co;xi&&(Co=function(Br){Li(Br)}),je(function(){var er;return[Tn.current,(er=fn.current)===null||er===void 0?void 0:er.getPopupElement()]},bn,Li,!!xi);var ia=De.useMemo(function(){return(0,it.Z)((0,it.Z)({},ut),{},{notFoundContent:Yn,open:$i,triggerOpen:bn,id:In,showSearch:Xe,multiple:dt,toggleOpen:Li})},[ut,Yn,bn,$i,In,Xe,dt,Li]),ma=!!Hr||oo,To;ma&&(To=De.createElement(ue,{className:Ve()("".concat(Qt,"-arrow"),(0,lt.Z)({},"".concat(Qt,"-arrow-loading"),oo)),customizeIcon:Hr,customizeIconProps:{loading:oo,searchValue:Si,open:$i,focused:jn,showSearch:Xe}}));var Da=function(){var Br;Oi==null||Oi(),(Br=ei.current)===null||Br===void 0||Br.focus(),Wi([],{type:"clear",values:tn}),di("",!1,!1)},Ur=se(Qt,Da,tn,ai,Oo,jr,Si,Dr),ao=Ur.allowClear,ho=Ur.clearIcon,bo=De.createElement(Kr,{ref:vi}),Do=Ve()(Qt,qn,(0,lt.Z)((0,lt.Z)((0,lt.Z)((0,lt.Z)((0,lt.Z)((0,lt.Z)((0,lt.Z)((0,lt.Z)((0,lt.Z)((0,lt.Z)({},"".concat(Qt,"-focused"),jn),"".concat(Qt,"-multiple"),dt),"".concat(Qt,"-single"),!dt),"".concat(Qt,"-allow-clear"),ai),"".concat(Qt,"-show-arrow"),ma),"".concat(Qt,"-disabled"),jr),"".concat(Qt,"-loading"),oo),"".concat(Qt,"-open"),$i),"".concat(Qt,"-customize-input"),kn),"".concat(Qt,"-show-search"),Xe)),Ea=De.createElement(ke,{ref:fn,disabled:jr,prefixCls:Qt,visible:bn,popupElement:bo,animation:Or,transitionName:Bo,dropdownStyle:qt,dropdownClassName:vn,direction:Pi,dropdownMatchSelectWidth:Ht,dropdownRender:Ze,dropdownAlign:Xn,placement:Fi,builtinPlacements:Qi,getPopupContainer:Qe,empty:yr,getTriggerDOMNode:function(Br){return zn.current||Br},onPopupVisibleChange:Co,onPopupMouseEnter:Io},xi?De.cloneElement(xi,{ref:Ei}):De.createElement(yi,(0,ve.Z)({},ut,{domRef:zn,prefixCls:Qt,inputElement:kn,ref:ei,id:In,prefix:_r,showSearch:Xe,autoClearSearchValue:uo,mode:Dr,activeDescendantId:Tr,tagRender:Vn,values:tn,open:$i,onToggleOpen:Li,activeValue:rr,searchValue:Si,onSearch:di,onSearchSubmit:ki,onRemove:po,tokenWithEnter:zi,onInputBlur:No}))),Sr;return xi?Sr=Ea:Sr=De.createElement("div",(0,ve.Z)({className:Do},Pt,{ref:Tn,onMouseDown:Rr,onKeyDown:Mr,onKeyUp:fo,onFocus:ta,onBlur:Ao}),De.createElement($n,{visible:jn&&!$i,values:tn}),Ea,To,ao&&ho),De.createElement(de.Provider,{value:ia},Sr)}),Di=Jn,ui=function(){return null};ui.isSelectOptGroup=!0;var Bi=ui,Ui=function(){return null};Ui.isSelectOption=!0;var ir=Ui,Ir=we(80547),qi=we(2738),ri=we(65283);function co(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var Qr=["disabled","title","children","style","className"];function to(ut){return typeof ut=="string"||typeof ut=="number"}var no=function(Nt,Rn){var In=pe(),Qt=In.prefixCls,qn=In.id,Nn=In.open,Vn=In.multiple,Pi=In.mode,pi=In.searchValue,tn=In.toggleOpen,Wi=In.notFoundContent,yr=In.onPopupScroll,Pr=De.useContext(pn),Yn=Pr.maxCount,Oi=Pr.flattenOptions,Dr=Pr.onActiveValue,jr=Pr.defaultActiveFirstOption,oo=Pr.onSelect,Kt=Pr.menuItemSelectedIcon,bi=Pr.rawValues,tr=Pr.fieldNames,Mi=Pr.virtual,kr=Pr.direction,rr=Pr.listHeight,Lr=Pr.listItemHeight,Tr=Pr.optionRender,Zr="".concat(Qt,"-item"),uo=(0,Ir.Z)(function(){return Oi},[Nn,Oi],function(Ut,Ft){return Ft[0]&&Ut[1]!==Ft[1]}),An=De.useRef(null),mo=De.useMemo(function(){return Vn&&Bt(Yn)&&(bi==null?void 0:bi.size)>=Yn},[Vn,Yn,bi==null?void 0:bi.size]),Fn=function(Ft){Ft.preventDefault()},ai=function(Ft){var ln;(ln=An.current)===null||ln===void 0||ln.scrollTo(typeof Ft=="number"?{index:Ft}:Ft)},_r=De.useCallback(function(Ut){return Pi==="combobox"?!1:bi.has(Ut)},[Pi,(0,_e.Z)(bi).toString(),bi.size]),Hr=function(Ft){for(var ln=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,_n=uo.length,yn=0;yn<_n;yn+=1){var cn=(Ft+yn*ln+_n)%_n,En=uo[cn]||{},be=En.group,dt=En.data;if(!be&&!(dt!=null&&dt.disabled)&&(_r(dt.value)||!mo))return cn}return-1},Oo=De.useState(function(){return Hr(0)}),Kr=(0,rt.Z)(Oo,2),Or=Kr[0],Bo=Kr[1],qt=function(Ft){var ln=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Bo(Ft);var _n={source:ln?"keyboard":"mouse"},yn=uo[Ft];if(!yn){Dr(null,-1,_n);return}Dr(yn.value,Ft,_n)};(0,De.useEffect)(function(){qt(jr!==!1?Hr(0):-1)},[uo.length,pi]);var vn=De.useCallback(function(Ut){return Pi==="combobox"?String(Ut).toLowerCase()===pi.toLowerCase():bi.has(Ut)},[Pi,pi,(0,_e.Z)(bi).toString(),bi.size]);(0,De.useEffect)(function(){var Ut=setTimeout(function(){if(!Vn&&Nn&&bi.size===1){var ln=Array.from(bi)[0],_n=uo.findIndex(function(yn){var cn=yn.data;return pi?String(cn.value).startsWith(pi):cn.value===ln});_n!==-1&&(qt(_n),ai(_n))}});if(Nn){var Ft;(Ft=An.current)===null||Ft===void 0||Ft.scrollTo(void 0)}return function(){return clearTimeout(Ut)}},[Nn,pi]);var Ht=function(Ft){Ft!==void 0&&oo(Ft,{selected:!bi.has(Ft)}),Vn||tn(!1)};if(De.useImperativeHandle(Rn,function(){return{onKeyDown:function(Ft){var ln=Ft.which,_n=Ft.ctrlKey;switch(ln){case Te.Z.N:case Te.Z.P:case Te.Z.UP:case Te.Z.DOWN:{var yn=0;if(ln===Te.Z.UP?yn=-1:ln===Te.Z.DOWN?yn=1:co()&&_n&&(ln===Te.Z.N?yn=1:ln===Te.Z.P&&(yn=-1)),yn!==0){var cn=Hr(Or+yn,yn);ai(cn),qt(cn,!0)}break}case Te.Z.TAB:case Te.Z.ENTER:{var En,be=uo[Or];be&&!(be!=null&&(En=be.data)!==null&&En!==void 0&&En.disabled)&&!mo?Ht(be.value):Ht(void 0),Nn&&Ft.preventDefault();break}case Te.Z.ESC:tn(!1),Nn&&Ft.stopPropagation()}},onKeyUp:function(){},scrollTo:function(Ft){ai(Ft)}}}),uo.length===0)return De.createElement("div",{role:"listbox",id:"".concat(qn,"_list"),className:"".concat(Zr,"-empty"),onMouseDown:Fn},Wi);var Ze=Object.keys(tr).map(function(Ut){return tr[Ut]}),Xn=function(Ft){return Ft.label};function Fi(Ut,Ft){var ln=Ut.group;return{role:ln?"presentation":"option",id:"".concat(qn,"_list_").concat(Ft)}}var Qi=function(Ft){var ln=uo[Ft];if(!ln)return null;var _n=ln.data||{},yn=_n.value,cn=ln.group,En=(0,Oe.Z)(_n,!0),be=Xn(ln);return ln?De.createElement("div",(0,ve.Z)({"aria-label":typeof be=="string"&&!cn?be:null},En,{key:Ft},Fi(ln,Ft),{"aria-selected":vn(yn)}),yn):null},Qe={role:"listbox",id:"".concat(qn,"_list")};return De.createElement(De.Fragment,null,Mi&&De.createElement("div",(0,ve.Z)({},Qe,{style:{height:0,width:0,overflow:"hidden"}}),Qi(Or-1),Qi(Or),Qi(Or+1)),De.createElement(ri.Z,{itemKey:"key",ref:An,data:uo,height:rr,itemHeight:Lr,fullHeight:!1,onMouseDown:Fn,onScroll:yr,virtual:Mi,direction:kr,innerProps:Mi?null:Qe},function(Ut,Ft){var ln=Ut.group,_n=Ut.groupOption,yn=Ut.data,cn=Ut.label,En=Ut.value,be=yn.key;if(ln){var dt,Xe=(dt=yn.title)!==null&&dt!==void 0?dt:to(cn)?cn.toString():void 0;return De.createElement("div",{className:Ve()(Zr,"".concat(Zr,"-group"),yn.className),title:Xe},cn!==void 0?cn:be)}var Pt=yn.disabled,Et=yn.title,Jt=yn.children,$t=yn.style,dn=yn.className,Tn=(0,ze.Z)(yn,Qr),zn=(0,qi.Z)(Tn,Ze),fn=_r(En),ei=Pt||!fn&&mo,vi="".concat(Zr,"-option"),pt=Ve()(Zr,vi,dn,(0,lt.Z)((0,lt.Z)((0,lt.Z)((0,lt.Z)({},"".concat(vi,"-grouped"),_n),"".concat(vi,"-active"),Or===Ft&&!ei),"".concat(vi,"-disabled"),ei),"".concat(vi,"-selected"),fn)),Kn=Xn(Ut),Hn=!Kt||typeof Kt=="function"||fn,jn=typeof Kn=="number"?Kn:Kn||En,Mn=to(jn)?jn.toString():void 0;return Et!==void 0&&(Mn=Et),De.createElement("div",(0,ve.Z)({},(0,Oe.Z)(zn),Mi?{}:Fi(Ut,Ft),{"aria-selected":vn(En),className:pt,title:Mn,onMouseMove:function(){Or===Ft||ei||qt(Ft)},onClick:function(){ei||Ht(En)},style:$t}),De.createElement("div",{className:"".concat(vi,"-content")},typeof Tr=="function"?Tr(Ut,{index:Ft}):jn),De.isValidElement(Kt)||fn,Hn&&De.createElement(ue,{className:"".concat(Zr,"-option-state"),customizeIcon:Kt,customizeIconProps:{value:En,disabled:ei,isSelected:fn}},fn?"\u2713":null))}))},xo=De.forwardRef(no),lo=xo,Er=function(ut,Nt){var Rn=De.useRef({values:new Map,options:new Map}),In=De.useMemo(function(){var qn=Rn.current,Nn=qn.values,Vn=qn.options,Pi=ut.map(function(Wi){if(Wi.label===void 0){var yr;return(0,it.Z)((0,it.Z)({},Wi),{},{label:(yr=Nn.get(Wi.value))===null||yr===void 0?void 0:yr.label})}return Wi}),pi=new Map,tn=new Map;return Pi.forEach(function(Wi){pi.set(Wi.value,Wi),tn.set(Wi.value,Nt.get(Wi.value)||Vn.get(Wi.value))}),Rn.current.values=pi,Rn.current.options=tn,Pi},[ut,Nt]),Qt=De.useCallback(function(qn){return Nt.get(qn)||Rn.current.options.get(qn)},[Nt]);return[In,Qt]};function io(ut,Nt){return It(ut).join("").toUpperCase().includes(Nt)}var Le=function(ut,Nt,Rn,In,Qt){return De.useMemo(function(){if(!Rn||In===!1)return ut;var qn=Nt.options,Nn=Nt.label,Vn=Nt.value,Pi=[],pi=typeof In=="function",tn=Rn.toUpperCase(),Wi=pi?In:function(Pr,Yn){return Qt?io(Yn[Qt],tn):Yn[qn]?io(Yn[Nn!=="children"?Nn:"label"],tn):io(Yn[Vn],tn)},yr=pi?function(Pr){return bt(Pr)}:function(Pr){return Pr};return ut.forEach(function(Pr){if(Pr[qn]){var Yn=Wi(Rn,yr(Pr));if(Yn)Pi.push(Pr);else{var Oi=Pr[qn].filter(function(Dr){return Wi(Rn,yr(Dr))});Oi.length&&Pi.push((0,it.Z)((0,it.Z)({},Pr),{},(0,lt.Z)({},qn,Oi)))}return}Wi(Rn,yr(Pr))&&Pi.push(Pr)}),Pi},[ut,In,Qt,Rn,Nt])},Pn=we(6551),Un=we(11592),gi=["children","value"],mi=["children"];function ti(ut){var Nt=ut,Rn=Nt.key,In=Nt.props,Qt=In.children,qn=In.value,Nn=(0,ze.Z)(In,gi);return(0,it.Z)({key:Rn,value:qn!==void 0?qn:Rn,children:Qt},Nn)}function Yi(ut){var Nt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,Un.Z)(ut).map(function(Rn,In){if(!De.isValidElement(Rn)||!Rn.type)return null;var Qt=Rn,qn=Qt.type.isSelectOptGroup,Nn=Qt.key,Vn=Qt.props,Pi=Vn.children,pi=(0,ze.Z)(Vn,mi);return Nt||!qn?ti(Rn):(0,it.Z)((0,it.Z)({key:"__RC_SELECT_GRP__".concat(Nn===null?In:Nn,"__"),label:Nn},pi),{},{options:Yi(Pi)})}).filter(function(Rn){return Rn})}var pr=function(Nt,Rn,In,Qt,qn){return De.useMemo(function(){var Nn=Nt,Vn=!Nt;Vn&&(Nn=Yi(Rn));var Pi=new Map,pi=new Map,tn=function(Pr,Yn,Oi){Oi&&typeof Oi=="string"&&Pr.set(Yn[Oi],Yn)},Wi=function yr(Pr){for(var Yn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Oi=0;Oi<Pr.length;Oi+=1){var Dr=Pr[Oi];!Dr[In.options]||Yn?(Pi.set(Dr[In.value],Dr),tn(pi,Dr,In.label),tn(pi,Dr,Qt),tn(pi,Dr,qn)):yr(Dr[In.options],!0)}};return Wi(Nn),{options:Nn,valueOptions:Pi,labelOptions:pi}},[Nt,Rn,In,Qt,qn])},un=pr;function an(ut){var Nt=De.useRef();Nt.current=ut;var Rn=De.useCallback(function(){return Nt.current.apply(Nt,arguments)},[]);return Rn}function jt(ut){var Nt=ut.mode,Rn=ut.options,In=ut.children,Qt=ut.backfill,qn=ut.allowClear,Nn=ut.placeholder,Vn=ut.getInputElement,Pi=ut.showSearch,pi=ut.onSearch,tn=ut.defaultOpen,Wi=ut.autoFocus,yr=ut.labelInValue,Pr=ut.value,Yn=ut.inputValue,Oi=ut.optionLabelProp,Dr=isMultiple(Nt),jr=Pi!==void 0?Pi:Dr||Nt==="combobox",oo=Rn||convertChildrenToData(In);if(warning(Nt!=="tags"||oo.every(function(Mi){return!Mi.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),Nt==="tags"||Nt==="combobox"){var Kt=oo.some(function(Mi){return Mi.options?Mi.options.some(function(kr){return typeof("value"in kr?kr.value:kr.key)=="number"}):typeof("value"in Mi?Mi.value:Mi.key)=="number"});warning(!Kt,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(Nt!=="combobox"||!Oi,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(Nt==="combobox"||!Qt,"`backfill` only works with `combobox` mode."),warning(Nt==="combobox"||!Vn,"`getInputElement` only work with `combobox` mode."),noteOnce(Nt!=="combobox"||!Vn||!qn||!Nn,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),pi&&!jr&&Nt!=="combobox"&&Nt!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!tn||Wi,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),Pr!=null){var bi=toArray(Pr);warning(!yr||bi.every(function(Mi){return _typeof(Mi)==="object"&&("key"in Mi||"value"in Mi)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!Dr||Array.isArray(Pr),"`value` should be array when `mode` is `multiple` or `tags`")}if(In){var tr=null;toNodeArray(In).some(function(Mi){if(!React.isValidElement(Mi)||!Mi.type)return!1;var kr=Mi,rr=kr.type;if(rr.isSelectOption)return!1;if(rr.isSelectOptGroup){var Lr=toNodeArray(Mi.props.children).every(function(Tr){return!React.isValidElement(Tr)||!Mi.type||Tr.type.isSelectOption?!0:(tr=Tr.type,!1)});return!Lr}return tr=rr,!0}),tr&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(tr.displayName||tr.name||tr,"`.")),warning(Yn===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function mn(ut,Nt){if(ut){var Rn=function In(Qt){for(var qn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Nn=0;Nn<Qt.length;Nn++){var Vn=Qt[Nn];if(Vn[Nt==null?void 0:Nt.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!qn&&Array.isArray(Vn[Nt==null?void 0:Nt.options])&&In(Vn[Nt==null?void 0:Nt.options],!0))break}};Rn(ut)}}var Zi=null,ji=["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"],lr=["inputValue"];function Zn(ut){return!ut||(0,Ue.Z)(ut)!=="object"}var Ti=De.forwardRef(function(ut,Nt){var Rn=ut.id,In=ut.mode,Qt=ut.prefixCls,qn=Qt===void 0?"rc-select":Qt,Nn=ut.backfill,Vn=ut.fieldNames,Pi=ut.inputValue,pi=ut.searchValue,tn=ut.onSearch,Wi=ut.autoClearSearchValue,yr=Wi===void 0?!0:Wi,Pr=ut.onSelect,Yn=ut.onDeselect,Oi=ut.dropdownMatchSelectWidth,Dr=Oi===void 0?!0:Oi,jr=ut.filterOption,oo=ut.filterSort,Kt=ut.optionFilterProp,bi=ut.optionLabelProp,tr=ut.options,Mi=ut.optionRender,kr=ut.children,rr=ut.defaultActiveFirstOption,Lr=ut.menuItemSelectedIcon,Tr=ut.virtual,Zr=ut.direction,uo=ut.listHeight,An=uo===void 0?200:uo,mo=ut.listItemHeight,Fn=mo===void 0?20:mo,ai=ut.labelRender,_r=ut.value,Hr=ut.defaultValue,Oo=ut.labelInValue,Kr=ut.onChange,Or=ut.maxCount,Bo=(0,ze.Z)(ut,ji),qt=(0,Pn.ZP)(Rn),vn=Ci(In),Ht=!!(!tr&&kr),Ze=De.useMemo(function(){return jr===void 0&&In==="combobox"?!1:jr},[jr,In]),Xn=De.useMemo(function(){return rn(Vn,Ht)},[JSON.stringify(Vn),Ht]),Fi=(0,yt.Z)("",{value:pi!==void 0?pi:Pi,postState:function(zi){return zi||""}}),Qi=(0,rt.Z)(Fi,2),Qe=Qi[0],Ut=Qi[1],Ft=un(tr,kr,Xn,Kt,bi),ln=Ft.valueOptions,_n=Ft.labelOptions,yn=Ft.options,cn=De.useCallback(function(Li){var zi=It(Li);return zi.map(function(_i){var Gi,Vi,di,ki,cr;if(Zn(_i))Gi=_i;else{var Qn;di=_i.key,Vi=_i.label,Gi=(Qn=_i.value)!==null&&Qn!==void 0?Qn:di}var ni=ln.get(Gi);if(ni){var Ki;if(Vi===void 0&&(Vi=ni==null?void 0:ni[bi||Xn.label]),di===void 0&&(di=(Ki=ni==null?void 0:ni.key)!==null&&Ki!==void 0?Ki:Gi),ki=ni==null?void 0:ni.disabled,cr=ni==null?void 0:ni.title,0)var or}return{label:Vi,value:Gi,key:di,disabled:ki,title:cr}})},[Xn,bi,ln]),En=(0,yt.Z)(Hr,{value:_r}),be=(0,rt.Z)(En,2),dt=be[0],Xe=be[1],Pt=De.useMemo(function(){var Li,zi=vn&&dt===null?[]:dt,_i=cn(zi);return In==="combobox"&&He((Li=_i[0])===null||Li===void 0?void 0:Li.value)?[]:_i},[dt,cn,In,vn]),Et=Er(Pt,ln),Jt=(0,rt.Z)(Et,2),$t=Jt[0],dn=Jt[1],Tn=De.useMemo(function(){if(!In&&$t.length===1){var Li=$t[0];if(Li.value===null&&(Li.label===null||Li.label===void 0))return[]}return $t.map(function(zi){var _i;return(0,it.Z)((0,it.Z)({},zi),{},{label:(_i=typeof ai=="function"?ai(zi):zi.label)!==null&&_i!==void 0?_i:zi.value})})},[In,$t,ai]),zn=De.useMemo(function(){return new Set($t.map(function(Li){return Li.value}))},[$t]);De.useEffect(function(){if(In==="combobox"){var Li,zi=(Li=$t[0])===null||Li===void 0?void 0:Li.value;Ut(at(zi)?String(zi):"")}},[$t]);var fn=an(function(Li,zi){var _i=zi!=null?zi:Li;return(0,lt.Z)((0,lt.Z)({},Xn.value,Li),Xn.label,_i)}),ei=De.useMemo(function(){if(In!=="tags")return yn;var Li=(0,_e.Z)(yn),zi=function(Gi){return ln.has(Gi)};return(0,_e.Z)($t).sort(function(_i,Gi){return _i.value<Gi.value?-1:1}).forEach(function(_i){var Gi=_i.value;zi(Gi)||Li.push(fn(Gi,_i.label))}),Li},[fn,yn,ln,$t,In]),vi=Le(ei,Xn,Qe,Ze,Kt),pt=De.useMemo(function(){return In!=="tags"||!Qe||vi.some(function(Li){return Li[Kt||"value"]===Qe})||vi.some(function(Li){return Li[Xn.value]===Qe})?vi:[fn(Qe)].concat((0,_e.Z)(vi))},[fn,Kt,In,vi,Qe,Xn]),Kn=function Li(zi){var _i=(0,_e.Z)(zi).sort(function(Gi,Vi){return oo(Gi,Vi,{searchValue:Qe})});return _i.map(function(Gi){return Array.isArray(Gi.options)?(0,it.Z)((0,it.Z)({},Gi),{},{options:Gi.options.length>0?Li(Gi.options):Gi.options}):Gi})},Hn=De.useMemo(function(){return oo?Kn(pt):pt},[pt,oo,Qe]),jn=De.useMemo(function(){return Ot(Hn,{fieldNames:Xn,childrenAsData:Ht})},[Hn,Xn,Ht]),Mn=function(zi){var _i=cn(zi);if(Xe(_i),Kr&&(_i.length!==$t.length||_i.some(function(di,ki){var cr;return((cr=$t[ki])===null||cr===void 0?void 0:cr.value)!==(di==null?void 0:di.value)}))){var Gi=Oo?_i:_i.map(function(di){return di.value}),Vi=_i.map(function(di){return bt(dn(di.value))});Kr(vn?Gi:Gi[0],vn?Vi:Vi[0])}},fi=De.useState(null),Si=(0,rt.Z)(fi,2),kn=Si[0],xi=Si[1],Ei=De.useState(0),Ai=(0,rt.Z)(Ei,2),dr=Ai[0],Ar=Ai[1],ur=rr!==void 0?rr:In!=="combobox",ii=De.useCallback(function(Li,zi){var _i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Gi=_i.source,Vi=Gi===void 0?"keyboard":Gi;Ar(zi),Nn&&In==="combobox"&&Li!==null&&Vi==="keyboard"&&xi(String(Li))},[Nn,In]),gr=function(zi,_i,Gi){var Vi=function(){var po,No=dn(zi);return[Oo?{label:No==null?void 0:No[Xn.label],value:zi,key:(po=No==null?void 0:No.key)!==null&&po!==void 0?po:zi}:zi,bt(No)]};if(_i&&Pr){var di=Vi(),ki=(0,rt.Z)(di,2),cr=ki[0],Qn=ki[1];Pr(cr,Qn)}else if(!_i&&Yn&&Gi!=="clear"){var ni=Vi(),Ki=(0,rt.Z)(ni,2),or=Ki[0],Mr=Ki[1];Yn(or,Mr)}},nr=an(function(Li,zi){var _i,Gi=vn?zi.selected:!0;Gi?_i=vn?[].concat((0,_e.Z)($t),[Li]):[Li]:_i=$t.filter(function(Vi){return Vi.value!==Li}),Mn(_i),gr(Li,Gi),In==="combobox"?xi(""):(!Ci||yr)&&(Ut(""),xi(""))}),hr=function(zi,_i){Mn(zi);var Gi=_i.type,Vi=_i.values;(Gi==="remove"||Gi==="clear")&&Vi.forEach(function(di){gr(di.value,!1,Gi)})},$i=function(zi,_i){if(Ut(zi),xi(null),_i.source==="submit"){var Gi=(zi||"").trim();if(Gi){var Vi=Array.from(new Set([].concat((0,_e.Z)(zn),[Gi])));Mn(Vi),gr(Gi,!0),Ut("")}return}_i.source!=="blur"&&(In==="combobox"&&Mn(zi),tn==null||tn(zi))},wr=function(zi){var _i=zi;In!=="tags"&&(_i=zi.map(function(Vi){var di=_n.get(Vi);return di==null?void 0:di.value}).filter(function(Vi){return Vi!==void 0}));var Gi=Array.from(new Set([].concat((0,_e.Z)(zn),(0,_e.Z)(_i))));Mn(Gi),Gi.forEach(function(Vi){gr(Vi,!0)})},bn=De.useMemo(function(){var Li=Tr!==!1&&Dr!==!1;return(0,it.Z)((0,it.Z)({},Ft),{},{flattenOptions:jn,onActiveValue:ii,defaultActiveFirstOption:ur,onSelect:nr,menuItemSelectedIcon:Lr,rawValues:zn,fieldNames:Xn,virtual:Li,direction:Zr,listHeight:An,listItemHeight:Fn,childrenAsData:Ht,maxCount:Or,optionRender:Mi})},[Or,Ft,jn,ii,ur,nr,Lr,zn,Xn,Tr,Dr,Zr,An,Fn,Ht,Mi]);return De.createElement(pn.Provider,{value:bn},De.createElement(Di,(0,ve.Z)({},Bo,{id:qt,prefixCls:qn,ref:Nt,omitDomProps:lr,mode:In,displayValues:Tn,onDisplayValuesChange:hr,direction:Zr,searchValue:Qe,onSearch:$i,autoClearSearchValue:yr,onSearchSplit:wr,dropdownMatchSelectWidth:Dr,OptionList:lo,emptyOptions:!jn.length,activeValue:kn,activeDescendantId:"".concat(qt,"_list_").concat(dr)})))}),fr=Ti;fr.Option=ir,fr.OptGroup=Bi;var Vr=fr,ci=Vr},63158:function(gn,en,we){"use strict";var ve=we(14809),_e=we(4635),lt=we(50298),it=we(62646),rt=we(59301),ze=we(92310),Ue=we.n(ze),yt=we(18929),tt=we(10228),De=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],xt=rt.forwardRef(function(Ve,ct){var Ee,ne=Ve.prefixCls,te=ne===void 0?"rc-switch":ne,ue=Ve.className,se=Ve.checked,de=Ve.defaultChecked,pe=Ve.disabled,ye=Ve.loadingIcon,Ce=Ve.checkedChildren,je=Ve.unCheckedChildren,Te=Ve.onClick,Ie=Ve.onChange,Oe=Ve.onKeyDown,Re=(0,it.Z)(Ve,De),nt=(0,yt.Z)(!1,{value:se,defaultValue:de}),ot=(0,lt.Z)(nt,2),wt=ot[0],gt=ot[1];function Dt(nn,at){var He=wt;return pe||(He=nn,gt(He),Ie==null||Ie(He,at)),He}function Lt(nn){nn.which===tt.Z.LEFT?Dt(!1,nn):nn.which===tt.Z.RIGHT&&Dt(!0,nn),Oe==null||Oe(nn)}function It(nn){var at=Dt(!wt,nn);Te==null||Te(at,nn)}var Tt=Ue()(te,ue,(Ee={},(0,_e.Z)(Ee,"".concat(te,"-checked"),wt),(0,_e.Z)(Ee,"".concat(te,"-disabled"),pe),Ee));return rt.createElement("button",(0,ve.Z)({},Re,{type:"button",role:"switch","aria-checked":wt,disabled:pe,className:Tt,ref:ct,onKeyDown:Lt,onClick:It}),ye,rt.createElement("span",{className:"".concat(te,"-inner")},rt.createElement("span",{className:"".concat(te,"-inner-checked")},Ce),rt.createElement("span",{className:"".concat(te,"-inner-unchecked")},je)))});xt.displayName="Switch",en.Z=xt},86351:function(gn,en,we){"use strict";we.d(en,{R:function(){return _e},w:function(){return ve}});var ve={},_e="rc-table-internal-hook"},97347:function(gn,en,we){"use strict";we.d(en,{L:function(){return te},Z:function(){return ye}});var ve=we(50298),_e=we(4635),lt=we(95190),it=we(93664),rt=we(20439),ze=we(62646),Ue=we(11592),yt=we(48736),tt=we(59301),De=we(86351),xt=we(54451);function Ve(Ce){var je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof je=="number"?je:je.endsWith("%")?Ce*parseFloat(je)/100:null}function ct(Ce,je,Te){return tt.useMemo(function(){if(je&&je>0){var Ie=0,Oe=0;Ce.forEach(function(It){var Tt=Ve(je,It.width);Tt?Ie+=Tt:Oe+=1});var Re=Math.max(je,Te),nt=Math.max(Re-Ie,Oe),ot=Oe,wt=nt/Oe,gt=0,Dt=Ce.map(function(It){var Tt=(0,rt.Z)({},It),nn=Ve(je,Tt.width);if(nn)Tt.width=nn;else{var at=Math.floor(wt);Tt.width=ot===1?nt:at,nt-=at,ot-=1}return gt+=Tt.width,Tt});if(gt<Re){var Lt=Re/gt;nt=Re,Dt.forEach(function(It,Tt){var nn=Math.floor(It.width*Lt);It.width=Tt===Dt.length-1?nt:nn,nt-=nn})}return[Dt,Math.max(gt,Re)]}return[Ce,je]},[Ce,je,Te])}var Ee=["children"],ne=["fixed"];function te(Ce){return(0,Ue.Z)(Ce).filter(function(je){return tt.isValidElement(je)}).map(function(je){var Te=je.key,Ie=je.props,Oe=Ie.children,Re=(0,ze.Z)(Ie,Ee),nt=(0,rt.Z)({key:Te},Re);return Oe&&(nt.children=te(Oe)),nt})}function ue(Ce){return Ce.filter(function(je){return je&&(0,it.Z)(je)==="object"&&!je.hidden}).map(function(je){var Te=je.children;return Te&&Te.length>0?(0,rt.Z)((0,rt.Z)({},je),{},{children:ue(Te)}):je})}function se(Ce){var je=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,nt=Re===!0?"left":Re,ot="".concat(je,"-").concat(Oe),wt=Ie.children;return wt&&wt.length>0?[].concat((0,lt.Z)(Te),(0,lt.Z)(se(wt,ot).map(function(gt){return(0,rt.Z)({fixed:nt},gt)}))):[].concat((0,lt.Z)(Te),[(0,rt.Z)((0,rt.Z)({key:ot},Ie),{},{fixed:nt})])},[])}function de(Ce){return Ce.map(function(je){var Te=je.fixed,Ie=(0,ze.Z)(je,ne),Oe=Te;return Te==="left"?Oe="right":Te==="right"&&(Oe="left"),(0,rt.Z)({fixed:Oe},Ie)})}function pe(Ce,je){var Te=Ce.prefixCls,Ie=Ce.columns,Oe=Ce.children,Re=Ce.expandable,nt=Ce.expandedKeys,ot=Ce.columnTitle,wt=Ce.getRowKey,gt=Ce.onTriggerExpand,Dt=Ce.expandIcon,Lt=Ce.rowExpandable,It=Ce.expandIconColumnIndex,Tt=Ce.direction,nn=Ce.expandRowByClick,at=Ce.columnWidth,He=Ce.fixed,Rt=Ce.scrollWidth,Zt=Ce.clientWidth,Yt=tt.useMemo(function(){var yi=Ie||te(Oe)||[];return ue(yi.slice())},[Ie,Oe]),Mt=tt.useMemo(function(){if(Re){var yi=Yt.slice();if(!yi.includes(De.w)){var We=It||0;We>=0&&(We||He==="left"||!He)&&yi.splice(We,0,De.w),He==="right"&&yi.splice(Yt.length,0,De.w)}var Fe=yi.indexOf(De.w);yi=yi.filter(function(ke,et){return ke!==De.w||et===Fe});var xe=Yt[Fe],Ne;He?Ne=He:Ne=xe?xe.fixed:null;var Ye=(0,_e.Z)((0,_e.Z)((0,_e.Z)((0,_e.Z)((0,_e.Z)((0,_e.Z)({},xt.v,{className:"".concat(Te,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",ot),"fixed",Ne),"className","".concat(Te,"-row-expand-icon-cell")),"width",at),"render",function(et,_t,Bt){var rn=wt(_t,Bt),Ot=nt.has(rn),bt=Lt?Lt(_t):!0,Wt=Dt({prefixCls:Te,expanded:Ot,expandable:bt,record:_t,onExpand:gt});return nn?tt.createElement("span",{onClick:function(pn){return pn.stopPropagation()}},Wt):Wt});return yi.map(function(ke){return ke===De.w?Ye:ke})}return Yt.filter(function(ke){return ke!==De.w})},[Re,Yt,wt,nt,Dt,Tt]),zt=tt.useMemo(function(){var yi=Mt;return je&&(yi=je(yi)),yi.length||(yi=[{render:function(){return null}}]),yi},[je,Mt,Tt]),on=tt.useMemo(function(){return Tt==="rtl"?de(se(zt)):se(zt)},[zt,Tt,Rt]),Dn=tt.useMemo(function(){for(var yi=-1,We=on.length-1;We>=0;We-=1){var Fe=on[We].fixed;if(Fe==="left"||Fe===!0){yi=We;break}}if(yi>=0)for(var xe=0;xe<=yi;xe+=1){var Ne=on[xe].fixed;if(Ne!=="left"&&Ne!==!0)return!0}var Ye=on.findIndex(function(_t){var Bt=_t.fixed;return Bt==="right"});if(Ye>=0)for(var ke=Ye;ke<on.length;ke+=1){var et=on[ke].fixed;if(et!=="right")return!0}return!1},[on]),kt=ct(on,Rt,Zt),vt=(0,ve.Z)(kt,2),hn=vt[0],li=vt[1];return[zt,hn,li,Dn]}var ye=pe},4030:function(gn,en,we){"use strict";we.d(en,{w2:function(){return ve.w},vP:function(){return to.v},RQ:function(){return ve.R},ER:function(){return rn},Q$:function(){return jr},TN:function(){return Kr}});var ve=we(86351),_e=we(50298),lt=we(6089),it=we(34280),rt=we(13697),ze=we(59301),Ue=we(4676);function yt(qt){var vn=ze.createContext(void 0),Ht=function(Xn){var Fi=Xn.value,Qi=Xn.children,Qe=ze.useRef(Fi);Qe.current=Fi;var Ut=ze.useState(function(){return{getValue:function(){return Qe.current},listeners:new Set}}),Ft=(0,_e.Z)(Ut,1),ln=Ft[0];return(0,it.Z)(function(){(0,Ue.unstable_batchedUpdates)(function(){ln.listeners.forEach(function(_n){_n(Fi)})})},[Fi]),ze.createElement(vn.Provider,{value:ln},Qi)};return{Context:vn,Provider:Ht,defaultValue:qt}}function tt(qt,vn){var Ht=(0,lt.Z)(typeof vn=="function"?vn:function(_n){if(vn===void 0)return _n;if(!Array.isArray(vn))return _n[vn];var yn={};return vn.forEach(function(cn){yn[cn]=_n[cn]}),yn}),Ze=ze.useContext(qt==null?void 0:qt.Context),Xn=Ze||{},Fi=Xn.listeners,Qi=Xn.getValue,Qe=ze.useRef();Qe.current=Ht(Ze?Qi():qt==null?void 0:qt.defaultValue);var Ut=ze.useState({}),Ft=(0,_e.Z)(Ut,2),ln=Ft[1];return(0,it.Z)(function(){if(!Ze)return;function _n(yn){var cn=Ht(yn);(0,rt.Z)(Qe.current,cn,!0)||ln({})}return Fi.add(_n),function(){Fi.delete(_n)}},[Ze]),Qe.current}var De=we(14809),xt=we(8654);function Ve(){var qt=ze.createContext(null);function vn(){return ze.useContext(qt)}function Ht(Xn,Fi){var Qi=(0,xt.Yr)(Xn),Qe=function(Ft,ln){var _n=Qi?{ref:ln}:{},yn=ze.useRef(0),cn=ze.useRef(Ft),En=vn();return En!==null?ze.createElement(Xn,(0,De.Z)({},Ft,_n)):((!Fi||Fi(cn.current,Ft))&&(yn.current+=1),cn.current=Ft,ze.createElement(qt.Provider,{value:yn.current},ze.createElement(Xn,(0,De.Z)({},Ft,_n))))};return Qi?ze.forwardRef(Qe):Qe}function Ze(Xn,Fi){var Qi=(0,xt.Yr)(Xn),Qe=function(Ft,ln){var _n=Qi?{ref:ln}:{};return vn(),ze.createElement(Xn,(0,De.Z)({},Ft,_n))};return Qi?ze.memo(ze.forwardRef(Qe),Fi):ze.memo(Qe,Fi)}return{makeImmutable:Ht,responseImmutable:Ze,useImmutableMark:vn}}var ct=Ve(),Ee=ct.makeImmutable,ne=ct.responseImmutable,te=ct.useImmutableMark,ue=Ve(),se=ue.makeImmutable,de=ue.responseImmutable,pe=ue.useImmutableMark,ye=yt(),Ce=ye;function je(qt,vn){var Ht=React.useRef(0);Ht.current+=1;var Ze=React.useRef(qt),Xn=[];Object.keys(qt||{}).map(function(Qi){var Qe;(qt==null?void 0:qt[Qi])!==((Qe=Ze.current)===null||Qe===void 0?void 0:Qe[Qi])&&Xn.push(Qi)}),Ze.current=qt;var Fi=React.useRef([]);return Xn.length&&(Fi.current=Xn),React.useDebugValue(Ht.current),React.useDebugValue(Fi.current.join(", ")),vn&&console.log("".concat(vn,":"),Ht.current,Fi.current),Ht.current}var Te=null,Ie=null,Oe=we(93664),Re=we(20439),nt=we(4635),ot=we(92310),wt=we.n(ot),gt=we(80547),Dt=we(97938),Lt=we(48736),It=ze.createContext({renderWithProps:!1}),Tt=It,nn="RC_TABLE_KEY";function at(qt){return qt==null?[]:Array.isArray(qt)?qt:[qt]}function He(qt){var vn=[],Ht={};return qt.forEach(function(Ze){for(var Xn=Ze||{},Fi=Xn.key,Qi=Xn.dataIndex,Qe=Fi||at(Qi).join("-")||nn;Ht[Qe];)Qe="".concat(Qe,"_next");Ht[Qe]=!0,vn.push(Qe)}),vn}function Rt(qt){return qt!=null}function Zt(qt){return typeof qt=="number"&&!Number.isNaN(qt)}function Yt(qt){return qt&&(0,Oe.Z)(qt)==="object"&&!Array.isArray(qt)&&!ze.isValidElement(qt)}function Mt(qt,vn,Ht,Ze,Xn,Fi){var Qi=ze.useContext(Tt),Qe=pe(),Ut=(0,gt.Z)(function(){if(Rt(Ze))return[Ze];var Ft=vn==null||vn===""?[]:Array.isArray(vn)?vn:[vn],ln=(0,Dt.Z)(qt,Ft),_n=ln,yn=void 0;if(Xn){var cn=Xn(ln,qt,Ht);Yt(cn)?(_n=cn.children,yn=cn.props,Qi.renderWithProps=!0):_n=cn}return[_n,yn]},[Qe,qt,Ze,vn,Xn,Ht],function(Ft,ln){if(Fi){var _n=(0,_e.Z)(Ft,2),yn=_n[1],cn=(0,_e.Z)(ln,2),En=cn[1];return Fi(En,yn)}return Qi.renderWithProps?!0:!(0,rt.Z)(Ft,ln,!0)});return Ut}function zt(qt,vn,Ht,Ze){var Xn=qt+vn-1;return qt<=Ze&&Xn>=Ht}function on(qt,vn){return tt(Ce,function(Ht){var Ze=zt(qt,vn||1,Ht.hoverStartRow,Ht.hoverEndRow);return[Ze,Ht.onHover]})}var Dn=we(70425),kt=function(vn){var Ht=vn.ellipsis,Ze=vn.rowType,Xn=vn.children,Fi,Qi=Ht===!0?{showTitle:!0}:Ht;return Qi&&(Qi.showTitle||Ze==="header")&&(typeof Xn=="string"||typeof Xn=="number"?Fi=Xn.toString():ze.isValidElement(Xn)&&typeof Xn.props.children=="string"&&(Fi=Xn.props.children)),Fi};function vt(qt){var vn,Ht,Ze,Xn,Fi,Qi,Qe,Ut,Ft=qt.component,ln=qt.children,_n=qt.ellipsis,yn=qt.scope,cn=qt.prefixCls,En=qt.className,be=qt.align,dt=qt.record,Xe=qt.render,Pt=qt.dataIndex,Et=qt.renderIndex,Jt=qt.shouldCellUpdate,$t=qt.index,dn=qt.rowType,Tn=qt.colSpan,zn=qt.rowSpan,fn=qt.fixLeft,ei=qt.fixRight,vi=qt.firstFixLeft,pt=qt.lastFixLeft,Kn=qt.firstFixRight,Hn=qt.lastFixRight,jn=qt.appendNode,Mn=qt.additionalProps,fi=Mn===void 0?{}:Mn,Si=qt.isSticky,kn="".concat(cn,"-cell"),xi=tt(Ce,["supportSticky","allColumnsFixedLeft","rowHoverable"]),Ei=xi.supportSticky,Ai=xi.allColumnsFixedLeft,dr=xi.rowHoverable,Ar=Mt(dt,Pt,Et,ln,Xe,Jt),ur=(0,_e.Z)(Ar,2),ii=ur[0],gr=ur[1],nr={},hr=typeof fn=="number"&&Ei,$i=typeof ei=="number"&&Ei;hr&&(nr.position="sticky",nr.left=fn),$i&&(nr.position="sticky",nr.right=ei);var wr=(vn=(Ht=(Ze=gr==null?void 0:gr.colSpan)!==null&&Ze!==void 0?Ze:fi.colSpan)!==null&&Ht!==void 0?Ht:Tn)!==null&&vn!==void 0?vn:1,bn=(Xn=(Fi=(Qi=gr==null?void 0:gr.rowSpan)!==null&&Qi!==void 0?Qi:fi.rowSpan)!==null&&Fi!==void 0?Fi:zn)!==null&&Xn!==void 0?Xn:1,Li=on($t,bn),zi=(0,_e.Z)(Li,2),_i=zi[0],Gi=zi[1],Vi=(0,Dn.zX)(function(or){var Mr;dt&&Gi($t,$t+bn-1),fi==null||(Mr=fi.onMouseEnter)===null||Mr===void 0||Mr.call(fi,or)}),di=(0,Dn.zX)(function(or){var Mr;dt&&Gi(-1,-1),fi==null||(Mr=fi.onMouseLeave)===null||Mr===void 0||Mr.call(fi,or)});if(wr===0||bn===0)return null;var ki=(Qe=fi.title)!==null&&Qe!==void 0?Qe:kt({rowType:dn,ellipsis:_n,children:ii}),cr=wt()(kn,En,(Ut={},(0,nt.Z)((0,nt.Z)((0,nt.Z)((0,nt.Z)((0,nt.Z)((0,nt.Z)((0,nt.Z)((0,nt.Z)((0,nt.Z)((0,nt.Z)(Ut,"".concat(kn,"-fix-left"),hr&&Ei),"".concat(kn,"-fix-left-first"),vi&&Ei),"".concat(kn,"-fix-left-last"),pt&&Ei),"".concat(kn,"-fix-left-all"),pt&&Ai&&Ei),"".concat(kn,"-fix-right"),$i&&Ei),"".concat(kn,"-fix-right-first"),Kn&&Ei),"".concat(kn,"-fix-right-last"),Hn&&Ei),"".concat(kn,"-ellipsis"),_n),"".concat(kn,"-with-append"),jn),"".concat(kn,"-fix-sticky"),(hr||$i)&&Si&&Ei),(0,nt.Z)(Ut,"".concat(kn,"-row-hover"),!gr&&_i)),fi.className,gr==null?void 0:gr.className),Qn={};be&&(Qn.textAlign=be);var ni=(0,Re.Z)((0,Re.Z)((0,Re.Z)((0,Re.Z)({},gr==null?void 0:gr.style),nr),Qn),fi.style),Ki=ii;return(0,Oe.Z)(Ki)==="object"&&!Array.isArray(Ki)&&!ze.isValidElement(Ki)&&(Ki=null),_n&&(pt||Kn)&&(Ki=ze.createElement("span",{className:"".concat(kn,"-content")},Ki)),ze.createElement(Ft,(0,De.Z)({},gr,fi,{className:cr,style:ni,title:ki,scope:yn,onMouseEnter:dr?Vi:void 0,onMouseLeave:dr?di:void 0,colSpan:wr!==1?wr:null,rowSpan:bn!==1?bn:null}),jn,Ki)}var hn=ze.memo(vt);function li(qt,vn,Ht,Ze,Xn){var Fi=Ht[qt]||{},Qi=Ht[vn]||{},Qe,Ut;Fi.fixed==="left"?Qe=Ze.left[Xn==="rtl"?vn:qt]:Qi.fixed==="right"&&(Ut=Ze.right[Xn==="rtl"?qt:vn]);var Ft=!1,ln=!1,_n=!1,yn=!1,cn=Ht[vn+1],En=Ht[qt-1],be=cn&&!cn.fixed||En&&!En.fixed||Ht.every(function(Jt){return Jt.fixed==="left"});if(Xn==="rtl"){if(Qe!==void 0){var dt=En&&En.fixed==="left";yn=!dt&&be}else if(Ut!==void 0){var Xe=cn&&cn.fixed==="right";_n=!Xe&&be}}else if(Qe!==void 0){var Pt=cn&&cn.fixed==="left";Ft=!Pt&&be}else if(Ut!==void 0){var Et=En&&En.fixed==="right";ln=!Et&&be}return{fixLeft:Qe,fixRight:Ut,lastFixLeft:Ft,firstFixRight:ln,lastFixRight:_n,firstFixLeft:yn,isSticky:Ze.isSticky}}var yi=ze.createContext({}),We=yi;function Fe(qt){var vn=qt.className,Ht=qt.index,Ze=qt.children,Xn=qt.colSpan,Fi=Xn===void 0?1:Xn,Qi=qt.rowSpan,Qe=qt.align,Ut=tt(Ce,["prefixCls","direction"]),Ft=Ut.prefixCls,ln=Ut.direction,_n=ze.useContext(We),yn=_n.scrollColumnIndex,cn=_n.stickyOffsets,En=_n.flattenColumns,be=Ht+Fi-1,dt=be+1===yn?Fi+1:Fi,Xe=li(Ht,Ht+dt-1,En,cn,ln);return ze.createElement(hn,(0,De.Z)({className:vn,index:Ht,component:"td",prefixCls:Ft,record:null,dataIndex:null,align:Qe,colSpan:dt,rowSpan:Qi,render:function(){return Ze}},Xe))}var xe=we(62646),Ne=["children"];function Ye(qt){var vn=qt.children,Ht=(0,xe.Z)(qt,Ne);return ze.createElement("tr",Ht,vn)}function ke(qt){var vn=qt.children;return vn}ke.Row=Ye,ke.Cell=Fe;var et=ke;function _t(qt){var vn=qt.children,Ht=qt.stickyOffsets,Ze=qt.flattenColumns,Xn=tt(Ce,"prefixCls"),Fi=Ze.length-1,Qi=Ze[Fi],Qe=ze.useMemo(function(){return{stickyOffsets:Ht,flattenColumns:Ze,scrollColumnIndex:Qi!=null&&Qi.scrollbar?Fi:null}},[Qi,Ze,Fi,Ht]);return ze.createElement(We.Provider,{value:Qe},ze.createElement("tfoot",{className:"".concat(Xn,"-summary")},vn))}var Bt=de(_t),rn=et,Ot=we(29301),bt=we(24514),Wt=we(75152),Xt=we(26112);function pn(qt,vn,Ht,Ze,Xn,Fi,Qi){qt.push({record:vn,indent:Ht,index:Qi});var Qe=Fi(vn),Ut=Xn==null?void 0:Xn.has(Qe);if(vn&&Array.isArray(vn[Ze])&&Ut)for(var Ft=0;Ft<vn[Ze].length;Ft+=1)pn(qt,vn[Ze][Ft],Ht+1,Ze,Xn,Fi,Ft)}function $n(qt,vn,Ht,Ze){var Xn=ze.useMemo(function(){if(Ht!=null&&Ht.size){for(var Fi=[],Qi=0;Qi<(qt==null?void 0:qt.length);Qi+=1){var Qe=qt[Qi];pn(Fi,Qe,0,vn,Ht,Ze,Qi)}return Fi}return qt==null?void 0:qt.map(function(Ut,Ft){return{record:Ut,indent:0,index:Ft}})},[qt,vn,Ht,Ze]);return Xn}function Cn(qt,vn,Ht,Ze){var Xn=tt(Ce,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),Fi=Xn.flattenColumns,Qi=Xn.expandableType,Qe=Xn.expandedKeys,Ut=Xn.childrenColumnName,Ft=Xn.onTriggerExpand,ln=Xn.rowExpandable,_n=Xn.onRow,yn=Xn.expandRowByClick,cn=Xn.rowClassName,En=Qi==="nest",be=Qi==="row"&&(!ln||ln(qt)),dt=be||En,Xe=Qe&&Qe.has(vn),Pt=Ut&&qt&&qt[Ut],Et=(0,Dn.zX)(Ft),Jt=_n==null?void 0:_n(qt,Ht),$t=Jt==null?void 0:Jt.onClick,dn=function(ei){yn&&dt&&Ft(qt,ei);for(var vi=arguments.length,pt=new Array(vi>1?vi-1:0),Kn=1;Kn<vi;Kn++)pt[Kn-1]=arguments[Kn];$t==null||$t.apply(void 0,[ei].concat(pt))},Tn;typeof cn=="string"?Tn=cn:typeof cn=="function"&&(Tn=cn(qt,Ht,Ze));var zn=He(Fi);return(0,Re.Z)((0,Re.Z)({},Xn),{},{columnsKey:zn,nestExpandable:En,expanded:Xe,hasNestChildren:Pt,record:qt,onTriggerExpand:Et,rowSupportExpand:be,expandable:dt,rowProps:(0,Re.Z)((0,Re.Z)({},Jt),{},{className:wt()(Tn,Jt==null?void 0:Jt.className),onClick:dn})})}function Ln(qt){var vn=qt.prefixCls,Ht=qt.children,Ze=qt.component,Xn=qt.cellComponent,Fi=qt.className,Qi=qt.expanded,Qe=qt.colSpan,Ut=qt.isEmpty,Ft=tt(Ce,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),ln=Ft.scrollbarSize,_n=Ft.fixHeader,yn=Ft.fixColumn,cn=Ft.componentWidth,En=Ft.horizonScroll,be=Ht;return(Ut?En&&cn:yn)&&(be=ze.createElement("div",{style:{width:cn-(_n&&!Ut?ln:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(vn,"-expanded-row-fixed")},be)),ze.createElement(Ze,{className:Fi,style:{display:Qi?null:"none"}},ze.createElement(hn,{component:Xn,prefixCls:vn,colSpan:Qe},be))}var Ci=Ln;function Jn(qt){var vn=qt.prefixCls,Ht=qt.record,Ze=qt.onExpand,Xn=qt.expanded,Fi=qt.expandable,Qi="".concat(vn,"-row-expand-icon");if(!Fi)return ze.createElement("span",{className:wt()(Qi,"".concat(vn,"-row-spaced"))});var Qe=function(Ft){Ze(Ht,Ft),Ft.stopPropagation()};return ze.createElement("span",{className:wt()(Qi,(0,nt.Z)((0,nt.Z)({},"".concat(vn,"-row-expanded"),Xn),"".concat(vn,"-row-collapsed"),!Xn)),onClick:Qe})}function Di(qt,vn,Ht){var Ze=[];function Xn(Fi){(Fi||[]).forEach(function(Qi,Qe){Ze.push(vn(Qi,Qe)),Xn(Qi[Ht])})}return Xn(qt),Ze}function ui(qt,vn,Ht,Ze){return typeof qt=="string"?qt:typeof qt=="function"?qt(vn,Ht,Ze):""}function Bi(qt,vn,Ht,Ze,Xn){var Fi=qt.record,Qi=qt.prefixCls,Qe=qt.columnsKey,Ut=qt.fixedInfoList,Ft=qt.expandIconColumnIndex,ln=qt.nestExpandable,_n=qt.indentSize,yn=qt.expandIcon,cn=qt.expanded,En=qt.hasNestChildren,be=qt.onTriggerExpand,dt=Qe[Ht],Xe=Ut[Ht],Pt;Ht===(Ft||0)&&ln&&(Pt=ze.createElement(ze.Fragment,null,ze.createElement("span",{style:{paddingLeft:"".concat(_n*Ze,"px")},className:"".concat(Qi,"-row-indent indent-level-").concat(Ze)}),yn({prefixCls:Qi,expanded:cn,expandable:En,record:Fi,onExpand:be})));var Et;return vn.onCell&&(Et=vn.onCell(Fi,Xn)),{key:dt,fixedInfo:Xe,appendCellNode:Pt,additionalCellProps:Et||{}}}function Ui(qt){var vn=qt.className,Ht=qt.style,Ze=qt.record,Xn=qt.index,Fi=qt.renderIndex,Qi=qt.rowKey,Qe=qt.indent,Ut=Qe===void 0?0:Qe,Ft=qt.rowComponent,ln=qt.cellComponent,_n=qt.scopeCellComponent,yn=Cn(Ze,Qi,Xn,Ut),cn=yn.prefixCls,En=yn.flattenColumns,be=yn.expandedRowClassName,dt=yn.expandedRowRender,Xe=yn.rowProps,Pt=yn.expanded,Et=yn.rowSupportExpand,Jt=ze.useRef(!1);Jt.current||(Jt.current=Pt);var $t=ui(be,Ze,Xn,Ut),dn=ze.createElement(Ft,(0,De.Z)({},Xe,{"data-row-key":Qi,className:wt()(vn,"".concat(cn,"-row"),"".concat(cn,"-row-level-").concat(Ut),Xe==null?void 0:Xe.className,(0,nt.Z)({},$t,Ut>=1)),style:(0,Re.Z)((0,Re.Z)({},Ht),Xe==null?void 0:Xe.style)}),En.map(function(fn,ei){var vi=fn.render,pt=fn.dataIndex,Kn=fn.className,Hn=Bi(yn,fn,ei,Ut,Xn),jn=Hn.key,Mn=Hn.fixedInfo,fi=Hn.appendCellNode,Si=Hn.additionalCellProps;return ze.createElement(hn,(0,De.Z)({className:Kn,ellipsis:fn.ellipsis,align:fn.align,scope:fn.rowScope,component:fn.rowScope?_n:ln,prefixCls:cn,key:jn,record:Ze,index:Xn,renderIndex:Fi,dataIndex:pt,render:vi,shouldCellUpdate:fn.shouldCellUpdate},Mn,{appendNode:fi,additionalProps:Si}))})),Tn;if(Et&&(Jt.current||Pt)){var zn=dt(Ze,Xn,Ut+1,Pt);Tn=ze.createElement(Ci,{expanded:Pt,className:wt()("".concat(cn,"-expanded-row"),"".concat(cn,"-expanded-row-level-").concat(Ut+1),$t),prefixCls:cn,component:Ft,cellComponent:ln,colSpan:En.length,isEmpty:!1},zn)}return ze.createElement(ze.Fragment,null,dn,Tn)}var ir=de(Ui);function Ir(qt){var vn=qt.columnKey,Ht=qt.onColumnResize,Ze=ze.useRef();return(0,it.Z)(function(){Ze.current&&Ht(vn,Ze.current.offsetWidth)},[]),ze.createElement(Ot.Z,{data:vn},ze.createElement("td",{ref:Ze,style:{padding:0,border:0,height:0}},ze.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}var qi=we(29194);function ri(qt){var vn=qt.prefixCls,Ht=qt.columnsKey,Ze=qt.onColumnResize,Xn=ze.useRef(null);return ze.createElement("tr",{"aria-hidden":"true",className:"".concat(vn,"-measure-row"),style:{height:0,fontSize:0},ref:Xn},ze.createElement(Ot.Z.Collection,{onBatchResize:function(Qi){(0,qi.Z)(Xn.current)&&Qi.forEach(function(Qe){var Ut=Qe.data,Ft=Qe.size;Ze(Ut,Ft.offsetWidth)})}},Ht.map(function(Fi){return ze.createElement(Ir,{key:Fi,columnKey:Fi,onColumnResize:Ze})})))}function co(qt){var vn=qt.data,Ht=qt.measureColumnWidth,Ze=tt(Ce,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),Xn=Ze.prefixCls,Fi=Ze.getComponent,Qi=Ze.onColumnResize,Qe=Ze.flattenColumns,Ut=Ze.getRowKey,Ft=Ze.expandedKeys,ln=Ze.childrenColumnName,_n=Ze.emptyNode,yn=$n(vn,ln,Ft,Ut),cn=ze.useRef({renderWithProps:!1}),En=Fi(["body","wrapper"],"tbody"),be=Fi(["body","row"],"tr"),dt=Fi(["body","cell"],"td"),Xe=Fi(["body","cell"],"th"),Pt;vn.length?Pt=yn.map(function(Jt,$t){var dn=Jt.record,Tn=Jt.indent,zn=Jt.index,fn=Ut(dn,$t);return ze.createElement(ir,{key:fn,rowKey:fn,record:dn,index:$t,renderIndex:zn,rowComponent:be,cellComponent:dt,scopeCellComponent:Xe,indent:Tn})}):Pt=ze.createElement(Ci,{expanded:!0,className:"".concat(Xn,"-placeholder"),prefixCls:Xn,component:be,cellComponent:dt,colSpan:Qe.length,isEmpty:!0},_n);var Et=He(Qe);return ze.createElement(Tt.Provider,{value:cn.current},ze.createElement(En,{className:"".concat(Xn,"-tbody")},Ht&&ze.createElement(ri,{prefixCls:Xn,columnsKey:Et,onColumnResize:Qi}),Pt))}var Qr=de(co),to=we(54451),no=["columnType"];function xo(qt){for(var vn=qt.colWidths,Ht=qt.columns,Ze=qt.columCount,Xn=tt(Ce,["tableLayout"]),Fi=Xn.tableLayout,Qi=[],Qe=Ze||Ht.length,Ut=!1,Ft=Qe-1;Ft>=0;Ft-=1){var ln=vn[Ft],_n=Ht&&Ht[Ft],yn=void 0,cn=void 0;if(_n&&(yn=_n[to.v],Fi==="auto"&&(cn=_n.minWidth)),ln||cn||yn||Ut){var En=yn||{},be=En.columnType,dt=(0,xe.Z)(En,no);Qi.unshift(ze.createElement("col",(0,De.Z)({key:Ft,style:{width:ln,minWidth:cn}},dt))),Ut=!0}}return ze.createElement("colgroup",null,Qi)}var lo=xo,Er=we(95190),io=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function Le(qt,vn){return(0,ze.useMemo)(function(){for(var Ht=[],Ze=0;Ze<vn;Ze+=1){var Xn=qt[Ze];if(Xn!==void 0)Ht[Ze]=Xn;else return null}return Ht},[qt.join("_"),vn])}var Pn=ze.forwardRef(function(qt,vn){var Ht=qt.className,Ze=qt.noData,Xn=qt.columns,Fi=qt.flattenColumns,Qi=qt.colWidths,Qe=qt.columCount,Ut=qt.stickyOffsets,Ft=qt.direction,ln=qt.fixHeader,_n=qt.stickyTopOffset,yn=qt.stickyBottomOffset,cn=qt.stickyClassName,En=qt.onScroll,be=qt.maxContentScroll,dt=qt.children,Xe=(0,xe.Z)(qt,io),Pt=tt(Ce,["prefixCls","scrollbarSize","isSticky","getComponent"]),Et=Pt.prefixCls,Jt=Pt.scrollbarSize,$t=Pt.isSticky,dn=Pt.getComponent,Tn=dn(["header","table"],"table"),zn=$t&&!ln?0:Jt,fn=ze.useRef(null),ei=ze.useCallback(function(Si){(0,xt.mH)(vn,Si),(0,xt.mH)(fn,Si)},[]);ze.useEffect(function(){var Si;function kn(xi){var Ei=xi,Ai=Ei.currentTarget,dr=Ei.deltaX;dr&&(En({currentTarget:Ai,scrollLeft:Ai.scrollLeft+dr}),xi.preventDefault())}return(Si=fn.current)===null||Si===void 0||Si.addEventListener("wheel",kn,{passive:!1}),function(){var xi;(xi=fn.current)===null||xi===void 0||xi.removeEventListener("wheel",kn)}},[]);var vi=ze.useMemo(function(){return Fi.every(function(Si){return Si.width})},[Fi]),pt=Fi[Fi.length-1],Kn={fixed:pt?pt.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(Et,"-cell-scrollbar")}}},Hn=(0,ze.useMemo)(function(){return zn?[].concat((0,Er.Z)(Xn),[Kn]):Xn},[zn,Xn]),jn=(0,ze.useMemo)(function(){return zn?[].concat((0,Er.Z)(Fi),[Kn]):Fi},[zn,Fi]),Mn=(0,ze.useMemo)(function(){var Si=Ut.right,kn=Ut.left;return(0,Re.Z)((0,Re.Z)({},Ut),{},{left:Ft==="rtl"?[].concat((0,Er.Z)(kn.map(function(xi){return xi+zn})),[0]):kn,right:Ft==="rtl"?Si:[].concat((0,Er.Z)(Si.map(function(xi){return xi+zn})),[0]),isSticky:$t})},[zn,Ut,$t]),fi=Le(Qi,Qe);return ze.createElement("div",{style:(0,Re.Z)({overflow:"hidden"},$t?{top:_n,bottom:yn}:{}),ref:ei,className:wt()(Ht,(0,nt.Z)({},cn,!!cn))},ze.createElement(Tn,{style:{tableLayout:"fixed",visibility:Ze||fi?null:"hidden"}},(!Ze||!be||vi)&&ze.createElement(lo,{colWidths:fi?[].concat((0,Er.Z)(fi),[zn]):[],columCount:Qe+1,columns:jn}),dt((0,Re.Z)((0,Re.Z)({},Xe),{},{stickyOffsets:Mn,columns:Hn,flattenColumns:jn}))))}),Un=ze.memo(Pn),gi=function(vn){var Ht=vn.cells,Ze=vn.stickyOffsets,Xn=vn.flattenColumns,Fi=vn.rowComponent,Qi=vn.cellComponent,Qe=vn.onHeaderRow,Ut=vn.index,Ft=tt(Ce,["prefixCls","direction"]),ln=Ft.prefixCls,_n=Ft.direction,yn;Qe&&(yn=Qe(Ht.map(function(En){return En.column}),Ut));var cn=He(Ht.map(function(En){return En.column}));return ze.createElement(Fi,yn,Ht.map(function(En,be){var dt=En.column,Xe=li(En.colStart,En.colEnd,Xn,Ze,_n),Pt;return dt&&dt.onHeaderCell&&(Pt=En.column.onHeaderCell(dt)),ze.createElement(hn,(0,De.Z)({},En,{scope:dt.title?En.colSpan>1?"colgroup":"col":null,ellipsis:dt.ellipsis,align:dt.align,component:Qi,prefixCls:ln,key:cn[be]},Xe,{additionalProps:Pt,rowType:"header"}))}))},mi=gi;function ti(qt){var vn=[];function Ht(Qi,Qe){var Ut=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;vn[Ut]=vn[Ut]||[];var Ft=Qe,ln=Qi.filter(Boolean).map(function(_n){var yn={key:_n.key,className:_n.className||"",children:_n.title,column:_n,colStart:Ft},cn=1,En=_n.children;return En&&En.length>0&&(cn=Ht(En,Ft,Ut+1).reduce(function(be,dt){return be+dt},0),yn.hasSubColumns=!0),"colSpan"in _n&&(cn=_n.colSpan),"rowSpan"in _n&&(yn.rowSpan=_n.rowSpan),yn.colSpan=cn,yn.colEnd=yn.colStart+cn-1,vn[Ut].push(yn),Ft+=cn,cn});return ln}Ht(qt,0);for(var Ze=vn.length,Xn=function(Qe){vn[Qe].forEach(function(Ut){!("rowSpan"in Ut)&&!Ut.hasSubColumns&&(Ut.rowSpan=Ze-Qe)})},Fi=0;Fi<Ze;Fi+=1)Xn(Fi);return vn}var Yi=function(vn){var Ht=vn.stickyOffsets,Ze=vn.columns,Xn=vn.flattenColumns,Fi=vn.onHeaderRow,Qi=tt(Ce,["prefixCls","getComponent"]),Qe=Qi.prefixCls,Ut=Qi.getComponent,Ft=ze.useMemo(function(){return ti(Ze)},[Ze]),ln=Ut(["header","wrapper"],"thead"),_n=Ut(["header","row"],"tr"),yn=Ut(["header","cell"],"th");return ze.createElement(ln,{className:"".concat(Qe,"-thead")},Ft.map(function(cn,En){var be=ze.createElement(mi,{key:En,flattenColumns:Xn,cells:cn,stickyOffsets:Ht,rowComponent:_n,cellComponent:yn,onHeaderRow:Fi,index:En});return be}))},pr=de(Yi),un=we(97347);function an(qt,vn,Ht){var Ze=(0,to.g)(qt),Xn=Ze.expandIcon,Fi=Ze.expandedRowKeys,Qi=Ze.defaultExpandedRowKeys,Qe=Ze.defaultExpandAllRows,Ut=Ze.expandedRowRender,Ft=Ze.onExpand,ln=Ze.onExpandedRowsChange,_n=Ze.childrenColumnName,yn=Xn||Jn,cn=_n||"children",En=ze.useMemo(function(){return Ut?"row":qt.expandable&&qt.internalHooks===ve.R&&qt.expandable.__PARENT_RENDER_ICON__||vn.some(function($t){return $t&&(0,Oe.Z)($t)==="object"&&$t[cn]})?"nest":!1},[!!Ut,vn]),be=ze.useState(function(){return Qi||(Qe?Di(vn,Ht,cn):[])}),dt=(0,_e.Z)(be,2),Xe=dt[0],Pt=dt[1],Et=ze.useMemo(function(){return new Set(Fi||Xe||[])},[Fi,Xe]),Jt=ze.useCallback(function($t){var dn=Ht($t,vn.indexOf($t)),Tn,zn=Et.has(dn);zn?(Et.delete(dn),Tn=(0,Er.Z)(Et)):Tn=[].concat((0,Er.Z)(Et),[dn]),Pt(Tn),Ft&&Ft(!zn,$t),ln&&ln(Tn)},[Ht,Et,vn,Ft,ln]);return[Ze,En,Et,yn,cn,Jt]}function jt(qt,vn,Ht){var Ze=qt.map(function(Xn,Fi){return li(Fi,Fi,qt,vn,Ht)});return(0,gt.Z)(function(){return Ze},[Ze],function(Xn,Fi){return!(0,rt.Z)(Xn,Fi)})}function mn(qt){var vn=(0,ze.useRef)(qt),Ht=(0,ze.useState)({}),Ze=(0,_e.Z)(Ht,2),Xn=Ze[1],Fi=(0,ze.useRef)(null),Qi=(0,ze.useRef)([]);function Qe(Ut){Qi.current.push(Ut);var Ft=Promise.resolve();Fi.current=Ft,Ft.then(function(){if(Fi.current===Ft){var ln=Qi.current,_n=vn.current;Qi.current=[],ln.forEach(function(yn){vn.current=yn(vn.current)}),Fi.current=null,_n!==vn.current&&Xn({})}})}return(0,ze.useEffect)(function(){return function(){Fi.current=null}},[]),[vn.current,Qe]}function Zi(qt){var vn=(0,ze.useRef)(qt||null),Ht=(0,ze.useRef)();function Ze(){window.clearTimeout(Ht.current)}function Xn(Qi){vn.current=Qi,Ze(),Ht.current=window.setTimeout(function(){vn.current=null,Ht.current=void 0},100)}function Fi(){return vn.current}return(0,ze.useEffect)(function(){return Ze},[]),[Xn,Fi]}function ji(){var qt=ze.useState(-1),vn=(0,_e.Z)(qt,2),Ht=vn[0],Ze=vn[1],Xn=ze.useState(-1),Fi=(0,_e.Z)(Xn,2),Qi=Fi[0],Qe=Fi[1],Ut=ze.useCallback(function(Ft,ln){Ze(Ft),Qe(ln)},[]);return[Ht,Qi,Ut]}var lr=we(47273),Zn=(0,lr.Z)()?window:null;function Ti(qt,vn){var Ht=(0,Oe.Z)(qt)==="object"?qt:{},Ze=Ht.offsetHeader,Xn=Ze===void 0?0:Ze,Fi=Ht.offsetSummary,Qi=Fi===void 0?0:Fi,Qe=Ht.offsetScroll,Ut=Qe===void 0?0:Qe,Ft=Ht.getContainer,ln=Ft===void 0?function(){return Zn}:Ft,_n=ln()||Zn,yn=!!qt;return ze.useMemo(function(){return{isSticky:yn,stickyClassName:yn?"".concat(vn,"-sticky-holder"):"",offsetHeader:Xn,offsetSummary:Qi,offsetScroll:Ut,container:_n}},[yn,Ut,Xn,Qi,vn,_n])}function fr(qt,vn,Ht){var Ze=(0,ze.useMemo)(function(){var Xn=vn.length,Fi=function(Ft,ln,_n){for(var yn=[],cn=0,En=Ft;En!==ln;En+=_n)yn.push(cn),vn[En].fixed&&(cn+=qt[En]||0);return yn},Qi=Fi(0,Xn,1),Qe=Fi(Xn-1,-1,-1).reverse();return Ht==="rtl"?{left:Qe,right:Qi}:{left:Qi,right:Qe}},[qt,vn,Ht]);return Ze}var Vr=fr;function ci(qt){var vn=qt.className,Ht=qt.children;return ze.createElement("div",{className:vn},Ht)}var ut=ci,Nt=we(8224),Rn=we(16089),In=we(76846);function Qt(qt){var vn=(0,In.bn)(qt),Ht=vn.getBoundingClientRect(),Ze=document.documentElement;return{left:Ht.left+(window.pageXOffset||Ze.scrollLeft)-(Ze.clientLeft||document.body.clientLeft||0),top:Ht.top+(window.pageYOffset||Ze.scrollTop)-(Ze.clientTop||document.body.clientTop||0)}}var qn=function(vn,Ht){var Ze,Xn,Fi=vn.scrollBodyRef,Qi=vn.onScroll,Qe=vn.offsetScroll,Ut=vn.container,Ft=vn.direction,ln=tt(Ce,"prefixCls"),_n=((Ze=Fi.current)===null||Ze===void 0?void 0:Ze.scrollWidth)||0,yn=((Xn=Fi.current)===null||Xn===void 0?void 0:Xn.clientWidth)||0,cn=_n&&yn*(yn/_n),En=ze.useRef(),be=mn({scrollLeft:0,isHiddenScrollBar:!0}),dt=(0,_e.Z)(be,2),Xe=dt[0],Pt=dt[1],Et=ze.useRef({delta:0,x:0}),Jt=ze.useState(!1),$t=(0,_e.Z)(Jt,2),dn=$t[0],Tn=$t[1],zn=ze.useRef(null);ze.useEffect(function(){return function(){Rn.Z.cancel(zn.current)}},[]);var fn=function(){Tn(!1)},ei=function(jn){jn.persist(),Et.current.delta=jn.pageX-Xe.scrollLeft,Et.current.x=0,Tn(!0),jn.preventDefault()},vi=function(jn){var Mn,fi=jn||((Mn=window)===null||Mn===void 0?void 0:Mn.event),Si=fi.buttons;if(!dn||Si===0){dn&&Tn(!1);return}var kn=Et.current.x+jn.pageX-Et.current.x-Et.current.delta,xi=Ft==="rtl";kn=Math.max(xi?cn-yn:0,Math.min(xi?0:yn-cn,kn));var Ei=!xi||Math.abs(kn)+Math.abs(cn)<yn;Ei&&(Qi({scrollLeft:kn/yn*(_n+2)}),Et.current.x=jn.pageX)},pt=function(){Rn.Z.cancel(zn.current),zn.current=(0,Rn.Z)(function(){if(Fi.current){var jn=Qt(Fi.current).top,Mn=jn+Fi.current.offsetHeight,fi=Ut===window?document.documentElement.scrollTop+window.innerHeight:Qt(Ut).top+Ut.clientHeight;Mn-(0,Wt.Z)()<=fi||jn>=fi-Qe?Pt(function(Si){return(0,Re.Z)((0,Re.Z)({},Si),{},{isHiddenScrollBar:!0})}):Pt(function(Si){return(0,Re.Z)((0,Re.Z)({},Si),{},{isHiddenScrollBar:!1})})}})},Kn=function(jn){Pt(function(Mn){return(0,Re.Z)((0,Re.Z)({},Mn),{},{scrollLeft:jn/_n*yn||0})})};return ze.useImperativeHandle(Ht,function(){return{setScrollLeft:Kn,checkScrollBarVisible:pt}}),ze.useEffect(function(){var Hn=(0,Nt.Z)(document.body,"mouseup",fn,!1),jn=(0,Nt.Z)(document.body,"mousemove",vi,!1);return pt(),function(){Hn.remove(),jn.remove()}},[cn,dn]),ze.useEffect(function(){if(Fi.current){for(var Hn=[],jn=(0,In.bn)(Fi.current);jn;)Hn.push(jn),jn=jn.parentElement;return Hn.forEach(function(Mn){return Mn.addEventListener("scroll",pt,!1)}),window.addEventListener("resize",pt,!1),window.addEventListener("scroll",pt,!1),Ut.addEventListener("scroll",pt,!1),function(){Hn.forEach(function(Mn){return Mn.removeEventListener("scroll",pt)}),window.removeEventListener("resize",pt),window.removeEventListener("scroll",pt),Ut.removeEventListener("scroll",pt)}}},[Ut]),ze.useEffect(function(){Xe.isHiddenScrollBar||Pt(function(Hn){var jn=Fi.current;return jn?(0,Re.Z)((0,Re.Z)({},Hn),{},{scrollLeft:jn.scrollLeft/jn.scrollWidth*jn.clientWidth}):Hn})},[Xe.isHiddenScrollBar]),_n<=yn||!cn||Xe.isHiddenScrollBar?null:ze.createElement("div",{style:{height:(0,Wt.Z)(),width:yn,bottom:Qe},className:"".concat(ln,"-sticky-scroll")},ze.createElement("div",{onMouseDown:ei,ref:En,className:wt()("".concat(ln,"-sticky-scroll-bar"),(0,nt.Z)({},"".concat(ln,"-sticky-scroll-bar-active"),dn)),style:{width:"".concat(cn,"px"),transform:"translate3d(".concat(Xe.scrollLeft,"px, 0, 0)")}}))},Nn=ze.forwardRef(qn);function Vn(qt){return null}var Pi=Vn;function pi(qt){return null}var tn=pi,Wi="rc-table",yr=[],Pr={};function Yn(){return"No Data"}function Oi(qt,vn){var Ht=(0,Re.Z)({rowKey:"key",prefixCls:Wi,emptyText:Yn},qt),Ze=Ht.prefixCls,Xn=Ht.className,Fi=Ht.rowClassName,Qi=Ht.style,Qe=Ht.data,Ut=Ht.rowKey,Ft=Ht.scroll,ln=Ht.tableLayout,_n=Ht.direction,yn=Ht.title,cn=Ht.footer,En=Ht.summary,be=Ht.caption,dt=Ht.id,Xe=Ht.showHeader,Pt=Ht.components,Et=Ht.emptyText,Jt=Ht.onRow,$t=Ht.onHeaderRow,dn=Ht.onScroll,Tn=Ht.internalHooks,zn=Ht.transformColumns,fn=Ht.internalRefs,ei=Ht.tailor,vi=Ht.getContainerWidth,pt=Ht.sticky,Kn=Ht.rowHoverable,Hn=Kn===void 0?!0:Kn,jn=Qe||yr,Mn=!!jn.length,fi=Tn===ve.R,Si=ze.useCallback(function(ko,_o){return(0,Dt.Z)(Pt,ko)||_o},[Pt]),kn=ze.useMemo(function(){return typeof Ut=="function"?Ut:function(ko){var _o=ko&&ko[Ut];return _o}},[Ut]),xi=Si(["body"]),Ei=ji(),Ai=(0,_e.Z)(Ei,3),dr=Ai[0],Ar=Ai[1],ur=Ai[2],ii=an(Ht,jn,kn),gr=(0,_e.Z)(ii,6),nr=gr[0],hr=gr[1],$i=gr[2],wr=gr[3],bn=gr[4],Li=gr[5],zi=Ft==null?void 0:Ft.x,_i=ze.useState(0),Gi=(0,_e.Z)(_i,2),Vi=Gi[0],di=Gi[1],ki=(0,un.Z)((0,Re.Z)((0,Re.Z)((0,Re.Z)({},Ht),nr),{},{expandable:!!nr.expandedRowRender,columnTitle:nr.columnTitle,expandedKeys:$i,getRowKey:kn,onTriggerExpand:Li,expandIcon:wr,expandIconColumnIndex:nr.expandIconColumnIndex,direction:_n,scrollWidth:fi&&ei&&typeof zi=="number"?zi:null,clientWidth:Vi}),fi?zn:null),cr=(0,_e.Z)(ki,4),Qn=cr[0],ni=cr[1],Ki=cr[2],or=cr[3],Mr=Ki!=null?Ki:zi,fo=ze.useMemo(function(){return{columns:Qn,flattenColumns:ni}},[Qn,ni]),po=ze.useRef(),No=ze.useRef(),qr=ze.useRef(),ta=ze.useRef();ze.useImperativeHandle(vn,function(){return{nativeElement:po.current,scrollTo:function(_o){var Ca;if(qr.current instanceof HTMLElement){var es=_o.index,Xa=_o.top,kl=_o.key;if(Zt(Xa)){var ml;(ml=qr.current)===null||ml===void 0||ml.scrollTo({top:Xa})}else{var jo,yo=kl!=null?kl:kn(jn[es]);(jo=qr.current.querySelector('[data-row-key="'.concat(yo,'"]')))===null||jo===void 0||jo.scrollIntoView()}}else(Ca=qr.current)!==null&&Ca!==void 0&&Ca.scrollTo&&qr.current.scrollTo(_o)}}});var Ao=ze.useRef(),ar=ze.useState(!1),Rr=(0,_e.Z)(ar,2),Lo=Rr[0],Zo=Rr[1],Ko=ze.useState(!1),Io=(0,_e.Z)(Ko,2),Co=Io[0],ia=Io[1],ma=ze.useState(new Map),To=(0,_e.Z)(ma,2),Da=To[0],Ur=To[1],ao=He(ni),ho=ao.map(function(ko){return Da.get(ko)}),bo=ze.useMemo(function(){return ho},[ho.join("_")]),Do=Vr(bo,ni,_n),Ea=Ft&&Rt(Ft.y),Sr=Ft&&Rt(Mr)||!!nr.fixed,er=Sr&&ni.some(function(ko){var _o=ko.fixed;return _o}),Br=ze.useRef(),mr=Ti(pt,Ze),hi=mr.isSticky,Yo=mr.offsetHeader,St=mr.offsetSummary,wn=mr.offsetScroll,ja=mr.stickyClassName,za=mr.container,da=ze.useMemo(function(){return En==null?void 0:En(jn)},[En,jn]),ca=(Ea||hi)&&ze.isValidElement(da)&&da.type===et&&da.props.fixed,Ga,Na,Zs;Ea&&(Na={overflowY:Mn?"scroll":"auto",maxHeight:Ft.y}),Sr&&(Ga={overflowX:"auto"},Ea||(Na={overflowY:"hidden"}),Zs={width:Mr===!0?"auto":Mr,minWidth:"100%"});var aa=ze.useCallback(function(ko,_o){Ur(function(Ca){if(Ca.get(ko)!==_o){var es=new Map(Ca);return es.set(ko,_o),es}return Ca})},[]),Wr=Zi(null),Va=(0,_e.Z)(Wr,2),$a=Va[0],sa=Va[1];function vo(ko,_o){_o&&(typeof _o=="function"?_o(ko):_o.scrollLeft!==ko&&(_o.scrollLeft=ko,_o.scrollLeft!==ko&&setTimeout(function(){_o.scrollLeft=ko},0)))}var ga=(0,lt.Z)(function(ko){var _o=ko.currentTarget,Ca=ko.scrollLeft,es=_n==="rtl",Xa=typeof Ca=="number"?Ca:_o.scrollLeft,kl=_o||Pr;if(!sa()||sa()===kl){var ml;$a(kl),vo(Xa,No.current),vo(Xa,qr.current),vo(Xa,Ao.current),vo(Xa,(ml=Br.current)===null||ml===void 0?void 0:ml.setScrollLeft)}var jo=_o||No.current;if(jo){var yo=fi&&ei&&typeof Mr=="number"?Mr:jo.scrollWidth,Ya=jo.clientWidth;if(yo===Ya){Zo(!1),ia(!1);return}es?(Zo(-Xa<yo-Ya),ia(-Xa>0)):(Zo(Xa>0),ia(Xa<yo-Ya))}}),ls=(0,lt.Z)(function(ko){ga(ko),dn==null||dn(ko)}),oa=function(){if(Sr&&qr.current){var _o;ga({currentTarget:(0,In.bn)(qr.current),scrollLeft:(_o=qr.current)===null||_o===void 0?void 0:_o.scrollLeft})}else Zo(!1),ia(!1)},us=function(_o){var Ca,es=_o.width;(Ca=Br.current)===null||Ca===void 0||Ca.checkScrollBarVisible();var Xa=po.current?po.current.offsetWidth:es;fi&&vi&&po.current&&(Xa=vi(po.current,Xa)||Xa),Xa!==Vi&&(oa(),di(Xa))},Ta=ze.useRef(!1);ze.useEffect(function(){Ta.current&&oa()},[Sr,Qe,Qn.length]),ze.useEffect(function(){Ta.current=!0},[]);var bl=ze.useState(0),Go=(0,_e.Z)(bl,2),Aa=Go[0],Ro=Go[1],qo=ze.useState(!0),ua=(0,_e.Z)(qo,2),pa=ua[0],Jo=ua[1];(0,it.Z)(function(){(!ei||!fi)&&(qr.current instanceof Element?Ro((0,Wt.o)(qr.current).width):Ro((0,Wt.o)(ta.current).width)),Jo((0,bt.G)("position","sticky"))},[]),ze.useEffect(function(){fi&&fn&&(fn.body.current=qr.current)});var fl=ze.useCallback(function(ko){return ze.createElement(ze.Fragment,null,ze.createElement(pr,ko),ca==="top"&&ze.createElement(Bt,ko,da))},[ca,da]),Yr=ze.useCallback(function(ko){return ze.createElement(Bt,ko,da)},[da]),pu=Si(["table"],"table"),Eo=ze.useMemo(function(){return ln||(er?Mr==="max-content"?"auto":"fixed":Ea||hi||ni.some(function(ko){var _o=ko.ellipsis;return _o})?"fixed":"auto")},[Ea,er,ni,ln,hi]),Gl,Qs={colWidths:bo,columCount:ni.length,stickyOffsets:Do,onHeaderRow:$t,fixHeader:Ea,scroll:Ft},Dl=ze.useMemo(function(){return Mn?null:typeof Et=="function"?Et():Et},[Mn,Et]),mu=ze.createElement(Qr,{data:jn,measureColumnWidth:Ea||Sr||hi}),vu=ze.createElement(lo,{colWidths:ni.map(function(ko){var _o=ko.width;return _o}),columns:ni}),Ws=be!=null?ze.createElement("caption",{className:"".concat(Ze,"-caption")},be):void 0,Vl=(0,Xt.Z)(Ht,{data:!0}),Uo=(0,Xt.Z)(Ht,{aria:!0});if(Ea||hi){var Hs;typeof xi=="function"?(Hs=xi(jn,{scrollbarSize:Aa,ref:qr,onScroll:ga}),Qs.colWidths=ni.map(function(ko,_o){var Ca=ko.width,es=_o===ni.length-1?Ca-Aa:Ca;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:qr,className:wt()("".concat(Ze,"-body"))},ze.createElement(pu,(0,De.Z)({style:(0,Re.Z)((0,Re.Z)({},Zs),{},{tableLayout:Eo})},Uo),Ws,vu,mu,!ca&&da&&ze.createElement(Bt,{stickyOffsets:Do,flattenColumns:ni},da)));var yu=(0,Re.Z)((0,Re.Z)((0,Re.Z)({noData:!jn.length,maxContentScroll:Sr&&Mr==="max-content"},Qs),fo),{},{direction:_n,stickyClassName:ja,onScroll:ga});Gl=ze.createElement(ze.Fragment,null,Xe!==!1&&ze.createElement(Un,(0,De.Z)({},yu,{stickyTopOffset:Yo,className:"".concat(Ze,"-header"),ref:No}),fl),Hs,ca&&ca!=="top"&&ze.createElement(Un,(0,De.Z)({},yu,{stickyBottomOffset:St,className:"".concat(Ze,"-summary"),ref:Ao}),Yr),hi&&qr.current&&qr.current instanceof Element&&ze.createElement(Nn,{ref:Br,offsetScroll:wn,scrollBodyRef:qr,onScroll:ga,container:za,direction:_n}))}else Gl=ze.createElement("div",{style:(0,Re.Z)((0,Re.Z)({},Ga),Na),className:wt()("".concat(Ze,"-content")),onScroll:ga,ref:qr},ze.createElement(pu,(0,De.Z)({style:(0,Re.Z)((0,Re.Z)({},Zs),{},{tableLayout:Eo})},Uo),Ws,vu,Xe!==!1&&ze.createElement(pr,(0,De.Z)({},Qs,fo)),mu,da&&ze.createElement(Bt,{stickyOffsets:Do,flattenColumns:ni},da)));var gl=ze.createElement("div",(0,De.Z)({className:wt()(Ze,Xn,(0,nt.Z)((0,nt.Z)((0,nt.Z)((0,nt.Z)((0,nt.Z)((0,nt.Z)((0,nt.Z)((0,nt.Z)((0,nt.Z)((0,nt.Z)({},"".concat(Ze,"-rtl"),_n==="rtl"),"".concat(Ze,"-ping-left"),Lo),"".concat(Ze,"-ping-right"),Co),"".concat(Ze,"-layout-fixed"),ln==="fixed"),"".concat(Ze,"-fixed-header"),Ea),"".concat(Ze,"-fixed-column"),er),"".concat(Ze,"-fixed-column-gapped"),er&&or),"".concat(Ze,"-scroll-horizontal"),Sr),"".concat(Ze,"-has-fix-left"),ni[0]&&ni[0].fixed),"".concat(Ze,"-has-fix-right"),ni[ni.length-1]&&ni[ni.length-1].fixed==="right")),style:Qi,id:dt,ref:po},Vl),yn&&ze.createElement(ut,{className:"".concat(Ze,"-title")},yn(jn)),ze.createElement("div",{ref:ta,className:"".concat(Ze,"-container")},Gl),cn&&ze.createElement(ut,{className:"".concat(Ze,"-footer")},cn(jn)));Sr&&(gl=ze.createElement(Ot.Z,{onResize:us},gl));var Du=jt(ni,Do,_n),pl=ze.useMemo(function(){return{scrollX:Mr,prefixCls:Ze,getComponent:Si,scrollbarSize:Aa,direction:_n,fixedInfoList:Du,isSticky:hi,supportSticky:pa,componentWidth:Vi,fixHeader:Ea,fixColumn:er,horizonScroll:Sr,tableLayout:Eo,rowClassName:Fi,expandedRowClassName:nr.expandedRowClassName,expandIcon:wr,expandableType:hr,expandRowByClick:nr.expandRowByClick,expandedRowRender:nr.expandedRowRender,onTriggerExpand:Li,expandIconColumnIndex:nr.expandIconColumnIndex,indentSize:nr.indentSize,allColumnsFixedLeft:ni.every(function(ko){return ko.fixed==="left"}),emptyNode:Dl,columns:Qn,flattenColumns:ni,onColumnResize:aa,hoverStartRow:dr,hoverEndRow:Ar,onHover:ur,rowExpandable:nr.rowExpandable,onRow:Jt,getRowKey:kn,expandedKeys:$i,childrenColumnName:bn,rowHoverable:Hn}},[Mr,Ze,Si,Aa,_n,Du,hi,pa,Vi,Ea,er,Sr,Eo,Fi,nr.expandedRowClassName,wr,hr,nr.expandRowByClick,nr.expandedRowRender,Li,nr.expandIconColumnIndex,nr.indentSize,Dl,Qn,ni,aa,dr,Ar,ur,nr.rowExpandable,Jt,kn,$i,bn,Hn]);return ze.createElement(Ce.Provider,{value:pl},gl)}var Dr=ze.forwardRef(Oi);function jr(qt){return se(Dr,qt)}var oo=jr();oo.EXPAND_COLUMN=ve.w,oo.INTERNAL_HOOKS=ve.R,oo.Column=Pi,oo.ColumnGroup=tn,oo.Summary=rn;var Kt=oo,bi=we(65283),tr=yt(null),Mi=yt(null);function kr(qt,vn,Ht){var Ze=vn||1;return Ht[qt+Ze]-(Ht[qt]||0)}function rr(qt){var vn=qt.rowInfo,Ht=qt.column,Ze=qt.colIndex,Xn=qt.indent,Fi=qt.index,Qi=qt.component,Qe=qt.renderIndex,Ut=qt.record,Ft=qt.style,ln=qt.className,_n=qt.inverse,yn=qt.getHeight,cn=Ht.render,En=Ht.dataIndex,be=Ht.className,dt=Ht.width,Xe=tt(Mi,["columnsOffset"]),Pt=Xe.columnsOffset,Et=Bi(vn,Ht,Ze,Xn,Fi),Jt=Et.key,$t=Et.fixedInfo,dn=Et.appendCellNode,Tn=Et.additionalCellProps,zn=Tn.style,fn=Tn.colSpan,ei=fn===void 0?1:fn,vi=Tn.rowSpan,pt=vi===void 0?1:vi,Kn=Ze-1,Hn=kr(Kn,ei,Pt),jn=ei>1?dt-Hn:0,Mn=(0,Re.Z)((0,Re.Z)((0,Re.Z)({},zn),Ft),{},{flex:"0 0 ".concat(Hn,"px"),width:"".concat(Hn,"px"),marginRight:jn,pointerEvents:"auto"}),fi=ze.useMemo(function(){return _n?pt<=1:ei===0||pt===0||pt>1},[pt,ei,_n]);fi?Mn.visibility="hidden":_n&&(Mn.height=yn==null?void 0:yn(pt));var Si=fi?function(){return null}:cn,kn={};return(pt===0||ei===0)&&(kn.rowSpan=1,kn.colSpan=1),ze.createElement(hn,(0,De.Z)({className:wt()(be,ln),ellipsis:Ht.ellipsis,align:Ht.align,scope:Ht.rowScope,component:Qi,prefixCls:vn.prefixCls,key:Jt,record:Ut,index:Fi,renderIndex:Qe,dataIndex:En,render:Si,shouldCellUpdate:Ht.shouldCellUpdate},$t,{appendNode:dn,additionalProps:(0,Re.Z)((0,Re.Z)({},Tn),{},{style:Mn},kn)}))}var Lr=rr,Tr=["data","index","className","rowKey","style","extra","getHeight"],Zr=ze.forwardRef(function(qt,vn){var Ht=qt.data,Ze=qt.index,Xn=qt.className,Fi=qt.rowKey,Qi=qt.style,Qe=qt.extra,Ut=qt.getHeight,Ft=(0,xe.Z)(qt,Tr),ln=Ht.record,_n=Ht.indent,yn=Ht.index,cn=tt(Ce,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),En=cn.scrollX,be=cn.flattenColumns,dt=cn.prefixCls,Xe=cn.fixColumn,Pt=cn.componentWidth,Et=tt(tr,["getComponent"]),Jt=Et.getComponent,$t=Cn(ln,Fi,Ze,_n),dn=Jt(["body","row"],"div"),Tn=Jt(["body","cell"],"div"),zn=$t.rowSupportExpand,fn=$t.expanded,ei=$t.rowProps,vi=$t.expandedRowRender,pt=$t.expandedRowClassName,Kn;if(zn&&fn){var Hn=vi(ln,Ze,_n+1,fn),jn=ui(pt,ln,Ze,_n),Mn={};Xe&&(Mn={style:(0,nt.Z)({},"--virtual-width","".concat(Pt,"px"))});var fi="".concat(dt,"-expanded-row-cell");Kn=ze.createElement(dn,{className:wt()("".concat(dt,"-expanded-row"),"".concat(dt,"-expanded-row-level-").concat(_n+1),jn)},ze.createElement(hn,{component:Tn,prefixCls:dt,className:wt()(fi,(0,nt.Z)({},"".concat(fi,"-fixed"),Xe)),additionalProps:Mn},Hn))}var Si=(0,Re.Z)((0,Re.Z)({},Qi),{},{width:En});Qe&&(Si.position="absolute",Si.pointerEvents="none");var kn=ze.createElement(dn,(0,De.Z)({},ei,Ft,{"data-row-key":Fi,ref:zn?null:vn,className:wt()(Xn,"".concat(dt,"-row"),ei==null?void 0:ei.className,(0,nt.Z)({},"".concat(dt,"-row-extra"),Qe)),style:(0,Re.Z)((0,Re.Z)({},Si),ei==null?void 0:ei.style)}),be.map(function(xi,Ei){return ze.createElement(Lr,{key:Ei,component:Tn,rowInfo:$t,column:xi,colIndex:Ei,indent:_n,index:Ze,renderIndex:yn,record:ln,inverse:Qe,getHeight:Ut})}));return zn?ze.createElement("div",{ref:vn},kn,Kn):kn}),uo=de(Zr),An=uo,mo=ze.forwardRef(function(qt,vn){var Ht=qt.data,Ze=qt.onScroll,Xn=tt(Ce,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),Fi=Xn.flattenColumns,Qi=Xn.onColumnResize,Qe=Xn.getRowKey,Ut=Xn.expandedKeys,Ft=Xn.prefixCls,ln=Xn.childrenColumnName,_n=Xn.scrollX,yn=Xn.direction,cn=tt(tr),En=cn.sticky,be=cn.scrollY,dt=cn.listItemHeight,Xe=cn.getComponent,Pt=cn.onScroll,Et=ze.useRef(),Jt=$n(Ht,ln,Ut,Qe),$t=ze.useMemo(function(){var Kn=0;return Fi.map(function(Hn){var jn=Hn.width,Mn=Hn.key;return Kn+=jn,[Mn,jn,Kn]})},[Fi]),dn=ze.useMemo(function(){return $t.map(function(Kn){return Kn[2]})},[$t]);ze.useEffect(function(){$t.forEach(function(Kn){var Hn=(0,_e.Z)(Kn,2),jn=Hn[0],Mn=Hn[1];Qi(jn,Mn)})},[$t]),ze.useImperativeHandle(vn,function(){var Kn,Hn={scrollTo:function(Mn){var fi;(fi=Et.current)===null||fi===void 0||fi.scrollTo(Mn)},nativeElement:(Kn=Et.current)===null||Kn===void 0?void 0:Kn.nativeElement};return Object.defineProperty(Hn,"scrollLeft",{get:function(){var Mn;return((Mn=Et.current)===null||Mn===void 0?void 0:Mn.getScrollInfo().x)||0},set:function(Mn){var fi;(fi=Et.current)===null||fi===void 0||fi.scrollTo({left:Mn})}}),Hn});var Tn=function(Hn,jn){var Mn,fi=(Mn=Jt[jn])===null||Mn===void 0?void 0:Mn.record,Si=Hn.onCell;if(Si){var kn,xi=Si(fi,jn);return(kn=xi==null?void 0:xi.rowSpan)!==null&&kn!==void 0?kn:1}return 1},zn=function(Hn){var jn=Hn.start,Mn=Hn.end,fi=Hn.getSize,Si=Hn.offsetY;if(Mn<0)return null;for(var kn=Fi.filter(function(wr){return Tn(wr,jn)===0}),xi=jn,Ei=function(bn){if(kn=kn.filter(function(Li){return Tn(Li,bn)===0}),!kn.length)return xi=bn,1},Ai=jn;Ai>=0&&!Ei(Ai);Ai-=1);for(var dr=Fi.filter(function(wr){return Tn(wr,Mn)!==1}),Ar=Mn,ur=function(bn){if(dr=dr.filter(function(Li){return Tn(Li,bn)!==1}),!dr.length)return Ar=Math.max(bn-1,Mn),1},ii=Mn;ii<Jt.length&&!ur(ii);ii+=1);for(var gr=[],nr=function(bn){var Li=Jt[bn];if(!Li)return 1;Fi.some(function(zi){return Tn(zi,bn)>1})&&gr.push(bn)},hr=xi;hr<=Ar;hr+=1)nr(hr);var $i=gr.map(function(wr){var bn=Jt[wr],Li=Qe(bn.record,wr),zi=function(Vi){var di=wr+Vi-1,ki=Qe(Jt[di].record,di),cr=fi(Li,ki);return cr.bottom-cr.top},_i=fi(Li);return ze.createElement(An,{key:wr,data:bn,rowKey:Li,index:wr,style:{top:-Si+_i.top},extra:!0,getHeight:zi})});return $i},fn=ze.useMemo(function(){return{columnsOffset:dn}},[dn]),ei="".concat(Ft,"-tbody"),vi=Xe(["body","wrapper"]),pt={};return En&&(pt.position="sticky",pt.bottom=0,(0,Oe.Z)(En)==="object"&&En.offsetScroll&&(pt.bottom=En.offsetScroll)),ze.createElement(Mi.Provider,{value:fn},ze.createElement(bi.Z,{fullHeight:!1,ref:Et,prefixCls:"".concat(ei,"-virtual"),styles:{horizontalScrollBar:pt},className:ei,height:be,itemHeight:dt||24,data:Jt,itemKey:function(Hn){return Qe(Hn.record)},component:vi,scrollWidth:_n,direction:yn,onVirtualScroll:function(Hn){var jn,Mn=Hn.x;Ze({currentTarget:(jn=Et.current)===null||jn===void 0?void 0:jn.nativeElement,scrollLeft:Mn})},onScroll:Pt,extraRender:zn},function(Kn,Hn,jn){var Mn=Qe(Kn.record,Hn);return ze.createElement(An,{data:Kn,rowKey:Mn,index:Hn,style:jn.style})}))}),Fn=de(mo),ai=Fn,_r=function(vn,Ht){var Ze=Ht.ref,Xn=Ht.onScroll;return ze.createElement(ai,{ref:Ze,data:vn,onScroll:Xn})};function Hr(qt,vn){var Ht=qt.data,Ze=qt.columns,Xn=qt.scroll,Fi=qt.sticky,Qi=qt.prefixCls,Qe=Qi===void 0?Wi:Qi,Ut=qt.className,Ft=qt.listItemHeight,ln=qt.components,_n=qt.onScroll,yn=Xn||{},cn=yn.x,En=yn.y;typeof cn!="number"&&(cn=1),typeof En!="number"&&(En=500);var be=(0,Dn.zX)(function(Pt,Et){return(0,Dt.Z)(ln,Pt)||Et}),dt=(0,Dn.zX)(_n),Xe=ze.useMemo(function(){return{sticky:Fi,scrollY:En,listItemHeight:Ft,getComponent:be,onScroll:dt}},[Fi,En,Ft,be,dt]);return ze.createElement(tr.Provider,{value:Xe},ze.createElement(Kt,(0,De.Z)({},qt,{className:wt()(Ut,"".concat(Qe,"-virtual")),scroll:(0,Re.Z)((0,Re.Z)({},Xn),{},{x:cn}),components:(0,Re.Z)((0,Re.Z)({},ln),{},{body:Ht!=null&&Ht.length?_r:void 0}),columns:Ze,internalHooks:ve.R,tailor:!0,ref:vn})))}var Oo=ze.forwardRef(Hr);function Kr(qt){return se(Oo,qt)}var Or=Kr(),Bo=null},54451:function(gn,en,we){"use strict";we.d(en,{g:function(){return ze},v:function(){return rt}});var ve=we(20439),_e=we(62646),lt=we(48736),it=["expandable"],rt="RC_TABLE_INTERNAL_COL_DEFINE";function ze(Ue){var yt=Ue.expandable,tt=(0,_e.Z)(Ue,it),De;return"expandable"in Ue?De=(0,ve.Z)((0,ve.Z)({},tt),yt):De=tt,De.showExpandColumn===!1&&(De.expandIconColumnIndex=-1),De}},22711:function(gn,en,we){"use strict";we.r(en),we.d(en,{ResizableTextArea:function(){return ot},default:function(){return Lt}});var ve=we(14809),_e=we(4635),lt=we(20439),it=we(95190),rt=we(50298),ze=we(62646),Ue=we(92310),yt=we.n(Ue),tt=we(36901),De=we(66003),xt=we(30292),Ve=we(18929),ct=we(59301),Ee=we(93664),ne=we(29301),te=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(It){var Tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,nn=It.getAttribute("id")||It.getAttribute("data-reactid")||It.getAttribute("name");if(Tt&&pe[nn])return pe[nn];var at=window.getComputedStyle(It),He=at.getPropertyValue("box-sizing")||at.getPropertyValue("-moz-box-sizing")||at.getPropertyValue("-webkit-box-sizing"),Rt=parseFloat(at.getPropertyValue("padding-bottom"))+parseFloat(at.getPropertyValue("padding-top")),Zt=parseFloat(at.getPropertyValue("border-bottom-width"))+parseFloat(at.getPropertyValue("border-top-width")),Yt=de.map(function(zt){return"".concat(zt,":").concat(at.getPropertyValue(zt))}).join(";"),Mt={sizingStyle:Yt,paddingSize:Rt,borderSize:Zt,boxSizing:He};return Tt&&nn&&(pe[nn]=Mt),Mt}function je(It){var Tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,nn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,at=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)),It.getAttribute("wrap")?ye.setAttribute("wrap",It.getAttribute("wrap")):ye.removeAttribute("wrap");var He=Ce(It,Tt),Rt=He.paddingSize,Zt=He.borderSize,Yt=He.boxSizing,Mt=He.sizingStyle;ye.setAttribute("style","".concat(Mt,";").concat(se)),ye.value=It.value||It.placeholder||"";var zt=void 0,on=void 0,Dn,kt=ye.scrollHeight;if(Yt==="border-box"?kt+=Zt:Yt==="content-box"&&(kt-=Rt),nn!==null||at!==null){ye.value=" ";var vt=ye.scrollHeight-Rt;nn!==null&&(zt=vt*nn,Yt==="border-box"&&(zt=zt+Rt+Zt),kt=Math.max(zt,kt)),at!==null&&(on=vt*at,Yt==="border-box"&&(on=on+Rt+Zt),Dn=kt>on?"":"hidden",kt=Math.min(on,kt))}var hn={height:kt,overflowY:Dn,resize:"none"};return zt&&(hn.minHeight=zt),on&&(hn.maxHeight=on),hn}var Te=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Ie=0,Oe=1,Re=2,nt=ct.forwardRef(function(It,Tt){var nn=It,at=nn.prefixCls,He=nn.defaultValue,Rt=nn.value,Zt=nn.autoSize,Yt=nn.onResize,Mt=nn.className,zt=nn.style,on=nn.disabled,Dn=nn.onChange,kt=nn.onInternalAutoSize,vt=(0,ze.Z)(nn,Te),hn=(0,Ve.Z)(He,{value:Rt,postState:function(ir){return ir!=null?ir:""}}),li=(0,rt.Z)(hn,2),yi=li[0],We=li[1],Fe=function(ir){We(ir.target.value),Dn==null||Dn(ir)},xe=ct.useRef();ct.useImperativeHandle(Tt,function(){return{textArea:xe.current}});var Ne=ct.useMemo(function(){return Zt&&(0,Ee.Z)(Zt)==="object"?[Zt.minRows,Zt.maxRows]:[]},[Zt]),Ye=(0,rt.Z)(Ne,2),ke=Ye[0],et=Ye[1],_t=!!Zt,Bt=function(){try{if(document.activeElement===xe.current){var ir=xe.current,Ir=ir.selectionStart,qi=ir.selectionEnd,ri=ir.scrollTop;xe.current.setSelectionRange(Ir,qi),xe.current.scrollTop=ri}}catch(co){}},rn=ct.useState(Re),Ot=(0,rt.Z)(rn,2),bt=Ot[0],Wt=Ot[1],Xt=ct.useState(),pn=(0,rt.Z)(Xt,2),$n=pn[0],Cn=pn[1],Ln=function(){Wt(Ie)};(0,te.Z)(function(){_t&&Ln()},[Rt,ke,et,_t]),(0,te.Z)(function(){if(bt===Ie)Wt(Oe);else if(bt===Oe){var Ui=je(xe.current,!1,ke,et);Wt(Re),Cn(Ui)}else Bt()},[bt]);var Ci=ct.useRef(),Jn=function(){ue.Z.cancel(Ci.current)},Di=function(ir){bt===Re&&(Yt==null||Yt(ir),Zt&&(Jn(),Ci.current=(0,ue.Z)(function(){Ln()})))};ct.useEffect(function(){return Jn},[]);var ui=_t?$n:null,Bi=(0,lt.Z)((0,lt.Z)({},zt),ui);return(bt===Ie||bt===Oe)&&(Bi.overflowY="hidden",Bi.overflowX="hidden"),ct.createElement(ne.Z,{onResize:Di,disabled:!(Zt||Yt)},ct.createElement("textarea",(0,ve.Z)({},vt,{ref:xe,style:Bi,className:yt()(at,Mt,(0,_e.Z)({},"".concat(at,"-disabled"),on)),disabled:on,value:yi,onChange:Fe})))}),ot=nt,wt=["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=ct.forwardRef(function(It,Tt){var nn,at=It.defaultValue,He=It.value,Rt=It.onFocus,Zt=It.onBlur,Yt=It.onChange,Mt=It.allowClear,zt=It.maxLength,on=It.onCompositionStart,Dn=It.onCompositionEnd,kt=It.suffix,vt=It.prefixCls,hn=vt===void 0?"rc-textarea":vt,li=It.showCount,yi=It.count,We=It.className,Fe=It.style,xe=It.disabled,Ne=It.hidden,Ye=It.classNames,ke=It.styles,et=It.onResize,_t=It.onClear,Bt=It.onPressEnter,rn=It.readOnly,Ot=It.autoSize,bt=It.onKeyDown,Wt=(0,ze.Z)(It,wt),Xt=(0,Ve.Z)(at,{value:He,defaultValue:at}),pn=(0,rt.Z)(Xt,2),$n=pn[0],Cn=pn[1],Ln=$n==null?"":String($n),Ci=ct.useState(!1),Jn=(0,rt.Z)(Ci,2),Di=Jn[0],ui=Jn[1],Bi=ct.useRef(!1),Ui=ct.useState(null),ir=(0,rt.Z)(Ui,2),Ir=ir[0],qi=ir[1],ri=(0,ct.useRef)(null),co=(0,ct.useRef)(null),Qr=function(){var fr;return(fr=co.current)===null||fr===void 0?void 0:fr.textArea},to=function(){Qr().focus()};(0,ct.useImperativeHandle)(Tt,function(){var Ti;return{resizableTextArea:co.current,focus:to,blur:function(){Qr().blur()},nativeElement:((Ti=ri.current)===null||Ti===void 0?void 0:Ti.nativeElement)||Qr()}}),(0,ct.useEffect)(function(){ui(function(Ti){return!xe&&Ti})},[xe]);var no=ct.useState(null),xo=(0,rt.Z)(no,2),lo=xo[0],Er=xo[1];ct.useEffect(function(){if(lo){var Ti;(Ti=Qr()).setSelectionRange.apply(Ti,(0,it.Z)(lo))}},[lo]);var io=(0,De.Z)(yi,li),Le=(nn=io.max)!==null&&nn!==void 0?nn:zt,Pn=Number(Le)>0,Un=io.strategy(Ln),gi=!!Le&&Un>Le,mi=function(fr,Vr){var ci=Vr;!Bi.current&&io.exceedFormatter&&io.max&&io.strategy(Vr)>io.max&&(ci=io.exceedFormatter(Vr,{max:io.max}),Vr!==ci&&Er([Qr().selectionStart||0,Qr().selectionEnd||0])),Cn(ci),(0,xt.rJ)(fr.currentTarget,fr,Yt,ci)},ti=function(fr){Bi.current=!0,on==null||on(fr)},Yi=function(fr){Bi.current=!1,mi(fr,fr.currentTarget.value),Dn==null||Dn(fr)},pr=function(fr){mi(fr,fr.target.value)},un=function(fr){fr.key==="Enter"&&Bt&&Bt(fr),bt==null||bt(fr)},an=function(fr){ui(!0),Rt==null||Rt(fr)},jt=function(fr){ui(!1),Zt==null||Zt(fr)},mn=function(fr){Cn(""),to(),(0,xt.rJ)(Qr(),fr,Yt)},Zi=kt,ji;io.show&&(io.showFormatter?ji=io.showFormatter({value:Ln,count:Un,maxLength:Le}):ji="".concat(Un).concat(Pn?" / ".concat(Le):""),Zi=ct.createElement(ct.Fragment,null,Zi,ct.createElement("span",{className:yt()("".concat(hn,"-data-count"),Ye==null?void 0:Ye.count),style:ke==null?void 0:ke.count},ji)));var lr=function(fr){var Vr;et==null||et(fr),(Vr=Qr())!==null&&Vr!==void 0&&Vr.style.height&&qi(!0)},Zn=!Ot&&!li&&!Mt;return ct.createElement(tt.BaseInput,{ref:ri,value:Ln,allowClear:Mt,handleReset:mn,suffix:Zi,prefixCls:hn,classNames:(0,lt.Z)((0,lt.Z)({},Ye),{},{affixWrapper:yt()(Ye==null?void 0:Ye.affixWrapper,(0,_e.Z)((0,_e.Z)({},"".concat(hn,"-show-count"),li),"".concat(hn,"-textarea-allow-clear"),Mt))}),disabled:xe,focused:Di,className:yt()(We,gi&&"".concat(hn,"-out-of-range")),style:(0,lt.Z)((0,lt.Z)({},Fe),Ir&&!Zn?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof ji=="string"?ji:void 0}},hidden:Ne,readOnly:rn,onClear:_t},ct.createElement(ot,(0,ve.Z)({},Wt,{autoSize:Ot,maxLength:zt,onKeyDown:un,onChange:pr,onFocus:an,onBlur:jt,onCompositionStart:ti,onCompositionEnd:Yi,className:yt()(Ye==null?void 0:Ye.textarea),style:(0,lt.Z)((0,lt.Z)({},ke==null?void 0:ke.textarea),{},{resize:Fe==null?void 0:Fe.resize}),disabled:xe,prefixCls:hn,onResize:lr,ref:co,readOnly:rn})))}),Dt=gt,Lt=Dt},639:function(gn,en,we){"use strict";we.d(en,{Z:function(){return pe}});var ve=we(14809),_e=we(4635),lt=we(20439),it=we(50298),rt=we(62646),ze=we(59301),Ue=we(92310),yt=we.n(Ue),tt=we(26112),De=we(30699),xt=function(Ce){for(var je=Ce.prefixCls,Te=Ce.level,Ie=Ce.isStart,Oe=Ce.isEnd,Re="".concat(je,"-indent-unit"),nt=[],ot=0;ot<Te;ot+=1)nt.push(ze.createElement("span",{key:ot,className:yt()(Re,(0,_e.Z)((0,_e.Z)({},"".concat(Re,"-start"),Ie[ot]),"".concat(Re,"-end"),Oe[ot]))}));return ze.createElement("span",{"aria-hidden":"true",className:"".concat(je,"-indent")},nt)},Ve=ze.memo(xt),ct=we(65065),Ee=we(34061),ne=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],te="open",ue="close",se="---",de=function(Ce){var je,Te,Ie,Oe=Ce.eventKey,Re=Ce.className,nt=Ce.style,ot=Ce.dragOver,wt=Ce.dragOverGapTop,gt=Ce.dragOverGapBottom,Dt=Ce.isLeaf,Lt=Ce.isStart,It=Ce.isEnd,Tt=Ce.expanded,nn=Ce.selected,at=Ce.checked,He=Ce.halfChecked,Rt=Ce.loading,Zt=Ce.domRef,Yt=Ce.active,Mt=Ce.data,zt=Ce.onMouseMove,on=Ce.selectable,Dn=(0,rt.Z)(Ce,ne),kt=ze.useContext(De.k),vt=ze.useContext(De.y),hn=ze.useRef(null),li=ze.useState(!1),yi=(0,it.Z)(li,2),We=yi[0],Fe=yi[1],xe=!!(kt.disabled||Ce.disabled||(je=vt.nodeDisabled)!==null&&je!==void 0&&je.call(vt,Mt)),Ne=ze.useMemo(function(){return!kt.checkable||Ce.checkable===!1?!1:kt.checkable},[kt.checkable,Ce.checkable]),Ye=function(Un){xe||kt.onNodeSelect(Un,(0,Ee.F)(Ce))},ke=function(Un){xe||!Ne||Ce.disableCheckbox||kt.onNodeCheck(Un,(0,Ee.F)(Ce),!at)},et=ze.useMemo(function(){return typeof on=="boolean"?on:kt.selectable},[on,kt.selectable]),_t=function(Un){kt.onNodeClick(Un,(0,Ee.F)(Ce)),et?Ye(Un):ke(Un)},Bt=function(Un){kt.onNodeDoubleClick(Un,(0,Ee.F)(Ce))},rn=function(Un){kt.onNodeMouseEnter(Un,(0,Ee.F)(Ce))},Ot=function(Un){kt.onNodeMouseLeave(Un,(0,Ee.F)(Ce))},bt=function(Un){kt.onNodeContextMenu(Un,(0,Ee.F)(Ce))},Wt=ze.useMemo(function(){return!!(kt.draggable&&(!kt.draggable.nodeDraggable||kt.draggable.nodeDraggable(Mt)))},[kt.draggable,Mt]),Xt=function(Un){Un.stopPropagation(),Fe(!0),kt.onNodeDragStart(Un,Ce);try{Un.dataTransfer.setData("text/plain","")}catch(gi){}},pn=function(Un){Un.preventDefault(),Un.stopPropagation(),kt.onNodeDragEnter(Un,Ce)},$n=function(Un){Un.preventDefault(),Un.stopPropagation(),kt.onNodeDragOver(Un,Ce)},Cn=function(Un){Un.stopPropagation(),kt.onNodeDragLeave(Un,Ce)},Ln=function(Un){Un.stopPropagation(),Fe(!1),kt.onNodeDragEnd(Un,Ce)},Ci=function(Un){Un.preventDefault(),Un.stopPropagation(),Fe(!1),kt.onNodeDrop(Un,Ce)},Jn=function(Un){Rt||kt.onNodeExpand(Un,(0,Ee.F)(Ce))},Di=ze.useMemo(function(){var Pn=(0,ct.Z)(kt.keyEntities,Oe)||{},Un=Pn.children;return!!(Un||[]).length},[kt.keyEntities,Oe]),ui=ze.useMemo(function(){return Dt===!1?!1:Dt||!kt.loadData&&!Di||kt.loadData&&Ce.loaded&&!Di},[Dt,kt.loadData,Di,Ce.loaded]);ze.useEffect(function(){Rt||typeof kt.loadData=="function"&&Tt&&!ui&&!Ce.loaded&&kt.onNodeLoad((0,Ee.F)(Ce))},[Rt,kt.loadData,kt.onNodeLoad,Tt,ui,Ce]);var Bi=ze.useMemo(function(){var Pn;return(Pn=kt.draggable)!==null&&Pn!==void 0&&Pn.icon?ze.createElement("span",{className:"".concat(kt.prefixCls,"-draggable-icon")},kt.draggable.icon):null},[kt.draggable]),Ui=function(Un){var gi=Ce.switcherIcon||kt.switcherIcon;return typeof gi=="function"?gi((0,lt.Z)((0,lt.Z)({},Ce),{},{isLeaf:Un})):gi},ir=function(){if(ui){var Un=Ui(!0);return Un!==!1?ze.createElement("span",{className:yt()("".concat(kt.prefixCls,"-switcher"),"".concat(kt.prefixCls,"-switcher-noop"))},Un):null}var gi=Ui(!1);return gi!==!1?ze.createElement("span",{onClick:Jn,className:yt()("".concat(kt.prefixCls,"-switcher"),"".concat(kt.prefixCls,"-switcher_").concat(Tt?te:ue))},gi):null},Ir=ze.useMemo(function(){if(!Ne)return null;var Pn=typeof Ne!="boolean"?Ne:null;return ze.createElement("span",{className:yt()("".concat(kt.prefixCls,"-checkbox"),(0,_e.Z)((0,_e.Z)((0,_e.Z)({},"".concat(kt.prefixCls,"-checkbox-checked"),at),"".concat(kt.prefixCls,"-checkbox-indeterminate"),!at&&He),"".concat(kt.prefixCls,"-checkbox-disabled"),xe||Ce.disableCheckbox)),onClick:ke,role:"checkbox","aria-checked":He?"mixed":at,"aria-disabled":xe||Ce.disableCheckbox,"aria-label":"Select ".concat(typeof Ce.title=="string"?Ce.title:"tree node")},Pn)},[Ne,at,He,xe,Ce.disableCheckbox,Ce.title]),qi=ze.useMemo(function(){return ui?null:Tt?te:ue},[ui,Tt]),ri=ze.useMemo(function(){return ze.createElement("span",{className:yt()("".concat(kt.prefixCls,"-iconEle"),"".concat(kt.prefixCls,"-icon__").concat(qi||"docu"),(0,_e.Z)({},"".concat(kt.prefixCls,"-icon_loading"),Rt))})},[kt.prefixCls,qi,Rt]),co=ze.useMemo(function(){var Pn=!!kt.draggable,Un=!Ce.disabled&&Pn&&kt.dragOverNodeKey===Oe;return Un?kt.dropIndicatorRender({dropPosition:kt.dropPosition,dropLevelOffset:kt.dropLevelOffset,indent:kt.indent,prefixCls:kt.prefixCls,direction:kt.direction}):null},[kt.dropPosition,kt.dropLevelOffset,kt.indent,kt.prefixCls,kt.direction,kt.draggable,kt.dragOverNodeKey,kt.dropIndicatorRender]),Qr=ze.useMemo(function(){var Pn=Ce.title,Un=Pn===void 0?se:Pn,gi="".concat(kt.prefixCls,"-node-content-wrapper"),mi;if(kt.showIcon){var ti=Ce.icon||kt.icon;mi=ti?ze.createElement("span",{className:yt()("".concat(kt.prefixCls,"-iconEle"),"".concat(kt.prefixCls,"-icon__customize"))},typeof ti=="function"?ti(Ce):ti):ri}else kt.loadData&&Rt&&(mi=ri);var Yi;return typeof Un=="function"?Yi=Un(Mt):kt.titleRender?Yi=kt.titleRender(Mt):Yi=Un,ze.createElement("span",{ref:hn,title:typeof Un=="string"?Un:"",className:yt()(gi,"".concat(gi,"-").concat(qi||"normal"),(0,_e.Z)({},"".concat(kt.prefixCls,"-node-selected"),!xe&&(nn||We))),onMouseEnter:rn,onMouseLeave:Ot,onContextMenu:bt,onClick:_t,onDoubleClick:Bt},mi,ze.createElement("span",{className:"".concat(kt.prefixCls,"-title")},Yi),co)},[kt.prefixCls,kt.showIcon,Ce,kt.icon,ri,kt.titleRender,Mt,qi,rn,Ot,bt,_t,Bt]),to=(0,tt.Z)(Dn,{aria:!0,data:!0}),no=(0,ct.Z)(kt.keyEntities,Oe)||{},xo=no.level,lo=It[It.length-1],Er=!xe&&Wt,io=kt.draggingNodeKey===Oe,Le=on!==void 0?{"aria-selected":!!on}:void 0;return ze.createElement("div",(0,ve.Z)({ref:Zt,role:"treeitem","aria-expanded":Dt?void 0:Tt,className:yt()(Re,"".concat(kt.prefixCls,"-treenode"),(Ie={},(0,_e.Z)((0,_e.Z)((0,_e.Z)((0,_e.Z)((0,_e.Z)((0,_e.Z)((0,_e.Z)((0,_e.Z)((0,_e.Z)((0,_e.Z)(Ie,"".concat(kt.prefixCls,"-treenode-disabled"),xe),"".concat(kt.prefixCls,"-treenode-switcher-").concat(Tt?"open":"close"),!Dt),"".concat(kt.prefixCls,"-treenode-checkbox-checked"),at),"".concat(kt.prefixCls,"-treenode-checkbox-indeterminate"),He),"".concat(kt.prefixCls,"-treenode-selected"),nn),"".concat(kt.prefixCls,"-treenode-loading"),Rt),"".concat(kt.prefixCls,"-treenode-active"),Yt),"".concat(kt.prefixCls,"-treenode-leaf-last"),lo),"".concat(kt.prefixCls,"-treenode-draggable"),Wt),"dragging",io),(0,_e.Z)((0,_e.Z)((0,_e.Z)((0,_e.Z)((0,_e.Z)((0,_e.Z)((0,_e.Z)(Ie,"drop-target",kt.dropTargetKey===Oe),"drop-container",kt.dropContainerKey===Oe),"drag-over",!xe&&ot),"drag-over-gap-top",!xe&&wt),"drag-over-gap-bottom",!xe&&gt),"filter-node",(Te=kt.filterTreeNode)===null||Te===void 0?void 0:Te.call(kt,(0,Ee.F)(Ce))),"".concat(kt.prefixCls,"-treenode-leaf"),ui))),style:nt,draggable:Er,onDragStart:Er?Xt:void 0,onDragEnter:Wt?pn:void 0,onDragOver:Wt?$n:void 0,onDragLeave:Wt?Cn:void 0,onDrop:Wt?Ci:void 0,onDragEnd:Wt?Ln:void 0,onMouseMove:zt},Le,to),ze.createElement(Ve,{prefixCls:kt.prefixCls,level:xo,isStart:Lt,isEnd:It}),Bi,ir(),Ir,Qr)};de.isTreeNode=1;var pe=de},30699:function(gn,en,we){"use strict";we.d(en,{k:function(){return _e},y:function(){return lt}});var ve=we(59301),_e=ve.createContext(null),lt=ve.createContext({})},29530:function(gn,en,we){"use strict";we.d(en,{OF:function(){return Oe.Z},y6:function(){return ue.y},ZP:function(){return xe}});var ve=we(14809),_e=we(93664),lt=we(20439),it=we(95190),rt=we(99153),ze=we(84851),Ue=we(13028),yt=we(19257),tt=we(93046),De=we(4635),xt=we(92310),Ve=we.n(xt),ct=we(10228),Ee=we(26112),ne=we(48736),te=we(59301),ue=we(30699),se=function(Ye){var ke=Ye.dropPosition,et=Ye.dropLevelOffset,_t=Ye.indent,Bt={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(ke){case-1:Bt.top=0,Bt.left=-et*_t;break;case 1:Bt.bottom=0,Bt.left=-et*_t;break;case 0:Bt.bottom=0,Bt.left=_t;break}return te.createElement("div",{style:Bt})},de=se;function pe(Ne){if(Ne==null)throw new TypeError("Cannot destructure "+Ne)}var ye=we(50298),Ce=we(62646),je=we(34280),Te=we(65283),Ie=we(77900),Oe=we(639);function Re(Ne,Ye){var ke=te.useState(!1),et=(0,ye.Z)(ke,2),_t=et[0],Bt=et[1];(0,je.Z)(function(){if(_t)return Ne(),function(){Ye()}},[_t]),(0,je.Z)(function(){return Bt(!0),function(){Bt(!1)}},[])}var nt=Re,ot=we(34061),wt=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],gt=te.forwardRef(function(Ne,Ye){var ke=Ne.className,et=Ne.style,_t=Ne.motion,Bt=Ne.motionNodes,rn=Ne.motionType,Ot=Ne.onMotionStart,bt=Ne.onMotionEnd,Wt=Ne.active,Xt=Ne.treeNodeRequiredProps,pn=(0,Ce.Z)(Ne,wt),$n=te.useState(!0),Cn=(0,ye.Z)($n,2),Ln=Cn[0],Ci=Cn[1],Jn=te.useContext(ue.k),Di=Jn.prefixCls,ui=Bt&&rn!=="hide";(0,je.Z)(function(){Bt&&ui!==Ln&&Ci(ui)},[Bt]);var Bi=function(){Bt&&Ot()},Ui=te.useRef(!1),ir=function(){Bt&&!Ui.current&&(Ui.current=!0,bt())};nt(Bi,ir);var Ir=function(ri){ui===ri&&ir()};return Bt?te.createElement(Ie.default,(0,ve.Z)({ref:Ye,visible:Ln},_t,{motionAppear:rn==="show",onVisibleChanged:Ir}),function(qi,ri){var co=qi.className,Qr=qi.style;return te.createElement("div",{ref:ri,className:Ve()("".concat(Di,"-treenode-motion"),co),style:Qr},Bt.map(function(to){var no=Object.assign({},(pe(to.data),to.data)),xo=to.title,lo=to.key,Er=to.isStart,io=to.isEnd;delete no.children;var Le=(0,ot.H8)(lo,Xt);return te.createElement(Oe.Z,(0,ve.Z)({},no,Le,{title:xo,active:Wt,data:to.data,key:lo,isStart:Er,isEnd:io}))}))}):te.createElement(Oe.Z,(0,ve.Z)({domRef:Ye,className:ke,style:et},pn,{active:Wt}))}),Dt=gt;function Lt(){var Ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],ke=Ne.length,et=Ye.length;if(Math.abs(ke-et)!==1)return{add:!1,key:null};function _t(Bt,rn){var Ot=new Map;Bt.forEach(function(Wt){Ot.set(Wt,!0)});var bt=rn.filter(function(Wt){return!Ot.has(Wt)});return bt.length===1?bt[0]:null}return ke<et?{add:!0,key:_t(Ne,Ye)}:{add:!1,key:_t(Ye,Ne)}}function It(Ne,Ye,ke){var et=Ne.findIndex(function(Ot){return Ot.key===ke}),_t=Ne[et+1],Bt=Ye.findIndex(function(Ot){return Ot.key===ke});if(_t){var rn=Ye.findIndex(function(Ot){return Ot.key===_t.key});return Ye.slice(Bt+1,rn)}return Ye.slice(Bt+1)}var Tt=["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"],nn={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},at=function(){},He="RC_TREE_MOTION_".concat(Math.random()),Rt={key:He},Zt={key:He,level:0,index:0,pos:"0",node:Rt,nodes:[Rt]},Yt={parent:null,children:[],pos:Zt.pos,data:Rt,title:null,key:He,isStart:[],isEnd:[]};function Mt(Ne,Ye,ke,et){return Ye===!1||!ke?Ne:Ne.slice(0,Math.ceil(ke/et)+1)}function zt(Ne){var Ye=Ne.key,ke=Ne.pos;return(0,ot.km)(Ye,ke)}function on(Ne){for(var Ye=String(Ne.data.key),ke=Ne;ke.parent;)ke=ke.parent,Ye="".concat(ke.data.key," > ").concat(Ye);return Ye}var Dn=te.forwardRef(function(Ne,Ye){var ke=Ne.prefixCls,et=Ne.data,_t=Ne.selectable,Bt=Ne.checkable,rn=Ne.expandedKeys,Ot=Ne.selectedKeys,bt=Ne.checkedKeys,Wt=Ne.loadedKeys,Xt=Ne.loadingKeys,pn=Ne.halfCheckedKeys,$n=Ne.keyEntities,Cn=Ne.disabled,Ln=Ne.dragging,Ci=Ne.dragOverNodeKey,Jn=Ne.dropPosition,Di=Ne.motion,ui=Ne.height,Bi=Ne.itemHeight,Ui=Ne.virtual,ir=Ne.scrollWidth,Ir=Ne.focusable,qi=Ne.activeItem,ri=Ne.focused,co=Ne.tabIndex,Qr=Ne.onKeyDown,to=Ne.onFocus,no=Ne.onBlur,xo=Ne.onActiveChange,lo=Ne.onListChangeStart,Er=Ne.onListChangeEnd,io=(0,Ce.Z)(Ne,Tt),Le=te.useRef(null),Pn=te.useRef(null);te.useImperativeHandle(Ye,function(){return{scrollTo:function(Vn){Le.current.scrollTo(Vn)},getIndentWidth:function(){return Pn.current.offsetWidth}}});var Un=te.useState(rn),gi=(0,ye.Z)(Un,2),mi=gi[0],ti=gi[1],Yi=te.useState(et),pr=(0,ye.Z)(Yi,2),un=pr[0],an=pr[1],jt=te.useState(et),mn=(0,ye.Z)(jt,2),Zi=mn[0],ji=mn[1],lr=te.useState([]),Zn=(0,ye.Z)(lr,2),Ti=Zn[0],fr=Zn[1],Vr=te.useState(null),ci=(0,ye.Z)(Vr,2),ut=ci[0],Nt=ci[1],Rn=te.useRef(et);Rn.current=et;function In(){var Nn=Rn.current;an(Nn),ji(Nn),fr([]),Nt(null),Er()}(0,je.Z)(function(){ti(rn);var Nn=Lt(mi,rn);if(Nn.key!==null)if(Nn.add){var Vn=un.findIndex(function(Pr){var Yn=Pr.key;return Yn===Nn.key}),Pi=Mt(It(un,et,Nn.key),Ui,ui,Bi),pi=un.slice();pi.splice(Vn+1,0,Yt),ji(pi),fr(Pi),Nt("show")}else{var tn=et.findIndex(function(Pr){var Yn=Pr.key;return Yn===Nn.key}),Wi=Mt(It(et,un,Nn.key),Ui,ui,Bi),yr=et.slice();yr.splice(tn+1,0,Yt),ji(yr),fr(Wi),Nt("hide")}else un!==et&&(an(et),ji(et))},[rn,et]),te.useEffect(function(){Ln||In()},[Ln]);var Qt=Di?Zi:et,qn={expandedKeys:rn,selectedKeys:Ot,loadedKeys:Wt,loadingKeys:Xt,checkedKeys:bt,halfCheckedKeys:pn,dragOverNodeKey:Ci,dropPosition:Jn,keyEntities:$n};return te.createElement(te.Fragment,null,ri&&qi&&te.createElement("span",{style:nn,"aria-live":"assertive"},on(qi)),te.createElement("div",null,te.createElement("input",{style:nn,disabled:Ir===!1||Cn,tabIndex:Ir!==!1?co:null,onKeyDown:Qr,onFocus:to,onBlur:no,value:"",onChange:at,"aria-label":"for screen reader"})),te.createElement("div",{className:"".concat(ke,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},te.createElement("div",{className:"".concat(ke,"-indent")},te.createElement("div",{ref:Pn,className:"".concat(ke,"-indent-unit")}))),te.createElement(Te.Z,(0,ve.Z)({},io,{data:Qt,itemKey:zt,height:ui,fullHeight:!1,virtual:Ui,itemHeight:Bi,scrollWidth:ir,prefixCls:"".concat(ke,"-list"),ref:Le,role:"tree",onVisibleChange:function(Vn){Vn.every(function(Pi){return zt(Pi)!==He})&&In()}}),function(Nn){var Vn=Nn.pos,Pi=Object.assign({},(pe(Nn.data),Nn.data)),pi=Nn.title,tn=Nn.key,Wi=Nn.isStart,yr=Nn.isEnd,Pr=(0,ot.km)(tn,Vn);delete Pi.key,delete Pi.children;var Yn=(0,ot.H8)(Pr,qn);return te.createElement(Dt,(0,ve.Z)({},Pi,Yn,{title:pi,active:!!qi&&tn===qi.key,pos:Vn,data:Nn.data,isStart:Wi,isEnd:yr,motion:Di,motionNodes:tn===He?Ti:null,motionType:ut,onMotionStart:lo,onMotionEnd:In,treeNodeRequiredProps:qn,onMouseMove:function(){xo(null)}}))}))}),kt=Dn,vt=we(82661),hn=we(34643),li=we(65065),yi=10,We=function(Ne){(0,yt.Z)(ke,Ne);var Ye=(0,tt.Z)(ke);function ke(){var et;(0,rt.Z)(this,ke);for(var _t=arguments.length,Bt=new Array(_t),rn=0;rn<_t;rn++)Bt[rn]=arguments[rn];return et=Ye.call.apply(Ye,[this].concat(Bt)),(0,De.Z)((0,Ue.Z)(et),"destroyed",!1),(0,De.Z)((0,Ue.Z)(et),"delayedDragEnterLogic",void 0),(0,De.Z)((0,Ue.Z)(et),"loadingRetryTimes",{}),(0,De.Z)((0,Ue.Z)(et),"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)(et),"dragStartMousePosition",null),(0,De.Z)((0,Ue.Z)(et),"dragNodeProps",null),(0,De.Z)((0,Ue.Z)(et),"currentMouseOverDroppableNodeKey",null),(0,De.Z)((0,Ue.Z)(et),"listRef",te.createRef()),(0,De.Z)((0,Ue.Z)(et),"onNodeDragStart",function(Ot,bt){var Wt=et.state,Xt=Wt.expandedKeys,pn=Wt.keyEntities,$n=et.props.onDragStart,Cn=bt.eventKey;et.dragNodeProps=bt,et.dragStartMousePosition={x:Ot.clientX,y:Ot.clientY};var Ln=(0,vt._5)(Xt,Cn);et.setState({draggingNodeKey:Cn,dragChildrenKeys:(0,vt.wA)(Cn,pn),indent:et.listRef.current.getIndentWidth()}),et.setExpandedKeys(Ln),window.addEventListener("dragend",et.onWindowDragEnd),$n==null||$n({event:Ot,node:(0,ot.F)(bt)})}),(0,De.Z)((0,Ue.Z)(et),"onNodeDragEnter",function(Ot,bt){var Wt=et.state,Xt=Wt.expandedKeys,pn=Wt.keyEntities,$n=Wt.dragChildrenKeys,Cn=Wt.flattenNodes,Ln=Wt.indent,Ci=et.props,Jn=Ci.onDragEnter,Di=Ci.onExpand,ui=Ci.allowDrop,Bi=Ci.direction,Ui=bt.pos,ir=bt.eventKey;if(et.currentMouseOverDroppableNodeKey!==ir&&(et.currentMouseOverDroppableNodeKey=ir),!et.dragNodeProps){et.resetDragState();return}var Ir=(0,vt.OM)(Ot,et.dragNodeProps,bt,Ln,et.dragStartMousePosition,ui,Cn,pn,Xt,Bi),qi=Ir.dropPosition,ri=Ir.dropLevelOffset,co=Ir.dropTargetKey,Qr=Ir.dropContainerKey,to=Ir.dropTargetPos,no=Ir.dropAllowed,xo=Ir.dragOverNodeKey;if($n.includes(co)||!no){et.resetDragState();return}if(et.delayedDragEnterLogic||(et.delayedDragEnterLogic={}),Object.keys(et.delayedDragEnterLogic).forEach(function(lo){clearTimeout(et.delayedDragEnterLogic[lo])}),et.dragNodeProps.eventKey!==bt.eventKey&&(Ot.persist(),et.delayedDragEnterLogic[Ui]=window.setTimeout(function(){if(et.state.draggingNodeKey!==null){var lo=(0,it.Z)(Xt),Er=(0,li.Z)(pn,bt.eventKey);Er&&(Er.children||[]).length&&(lo=(0,vt.L0)(Xt,bt.eventKey)),et.props.hasOwnProperty("expandedKeys")||et.setExpandedKeys(lo),Di==null||Di(lo,{node:(0,ot.F)(bt),expanded:!0,nativeEvent:Ot.nativeEvent})}},800)),et.dragNodeProps.eventKey===co&&ri===0){et.resetDragState();return}et.setState({dragOverNodeKey:xo,dropPosition:qi,dropLevelOffset:ri,dropTargetKey:co,dropContainerKey:Qr,dropTargetPos:to,dropAllowed:no}),Jn==null||Jn({event:Ot,node:(0,ot.F)(bt),expandedKeys:Xt})}),(0,De.Z)((0,Ue.Z)(et),"onNodeDragOver",function(Ot,bt){var Wt=et.state,Xt=Wt.dragChildrenKeys,pn=Wt.flattenNodes,$n=Wt.keyEntities,Cn=Wt.expandedKeys,Ln=Wt.indent,Ci=et.props,Jn=Ci.onDragOver,Di=Ci.allowDrop,ui=Ci.direction;if(et.dragNodeProps){var Bi=(0,vt.OM)(Ot,et.dragNodeProps,bt,Ln,et.dragStartMousePosition,Di,pn,$n,Cn,ui),Ui=Bi.dropPosition,ir=Bi.dropLevelOffset,Ir=Bi.dropTargetKey,qi=Bi.dropContainerKey,ri=Bi.dropTargetPos,co=Bi.dropAllowed,Qr=Bi.dragOverNodeKey;Xt.includes(Ir)||!co||(et.dragNodeProps.eventKey===Ir&&ir===0?et.state.dropPosition===null&&et.state.dropLevelOffset===null&&et.state.dropTargetKey===null&&et.state.dropContainerKey===null&&et.state.dropTargetPos===null&&et.state.dropAllowed===!1&&et.state.dragOverNodeKey===null||et.resetDragState():Ui===et.state.dropPosition&&ir===et.state.dropLevelOffset&&Ir===et.state.dropTargetKey&&qi===et.state.dropContainerKey&&ri===et.state.dropTargetPos&&co===et.state.dropAllowed&&Qr===et.state.dragOverNodeKey||et.setState({dropPosition:Ui,dropLevelOffset:ir,dropTargetKey:Ir,dropContainerKey:qi,dropTargetPos:ri,dropAllowed:co,dragOverNodeKey:Qr}),Jn==null||Jn({event:Ot,node:(0,ot.F)(bt)}))}}),(0,De.Z)((0,Ue.Z)(et),"onNodeDragLeave",function(Ot,bt){et.currentMouseOverDroppableNodeKey===bt.eventKey&&!Ot.currentTarget.contains(Ot.relatedTarget)&&(et.resetDragState(),et.currentMouseOverDroppableNodeKey=null);var Wt=et.props.onDragLeave;Wt==null||Wt({event:Ot,node:(0,ot.F)(bt)})}),(0,De.Z)((0,Ue.Z)(et),"onWindowDragEnd",function(Ot){et.onNodeDragEnd(Ot,null,!0),window.removeEventListener("dragend",et.onWindowDragEnd)}),(0,De.Z)((0,Ue.Z)(et),"onNodeDragEnd",function(Ot,bt){var Wt=et.props.onDragEnd;et.setState({dragOverNodeKey:null}),et.cleanDragState(),Wt==null||Wt({event:Ot,node:(0,ot.F)(bt)}),et.dragNodeProps=null,window.removeEventListener("dragend",et.onWindowDragEnd)}),(0,De.Z)((0,Ue.Z)(et),"onNodeDrop",function(Ot,bt){var Wt,Xt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,pn=et.state,$n=pn.dragChildrenKeys,Cn=pn.dropPosition,Ln=pn.dropTargetKey,Ci=pn.dropTargetPos,Jn=pn.dropAllowed;if(Jn){var Di=et.props.onDrop;if(et.setState({dragOverNodeKey:null}),et.cleanDragState(),Ln!==null){var ui=(0,lt.Z)((0,lt.Z)({},(0,ot.H8)(Ln,et.getTreeNodeRequiredProps())),{},{active:((Wt=et.getActiveItem())===null||Wt===void 0?void 0:Wt.key)===Ln,data:(0,li.Z)(et.state.keyEntities,Ln).node}),Bi=$n.includes(Ln);(0,ne.ZP)(!Bi,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var Ui=(0,vt.yx)(Ci),ir={event:Ot,node:(0,ot.F)(ui),dragNode:et.dragNodeProps?(0,ot.F)(et.dragNodeProps):null,dragNodesKeys:[et.dragNodeProps.eventKey].concat($n),dropToGap:Cn!==0,dropPosition:Cn+Number(Ui[Ui.length-1])};Xt||Di==null||Di(ir),et.dragNodeProps=null}}}),(0,De.Z)((0,Ue.Z)(et),"cleanDragState",function(){var Ot=et.state.draggingNodeKey;Ot!==null&&et.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),et.dragStartMousePosition=null,et.currentMouseOverDroppableNodeKey=null}),(0,De.Z)((0,Ue.Z)(et),"triggerExpandActionExpand",function(Ot,bt){var Wt=et.state,Xt=Wt.expandedKeys,pn=Wt.flattenNodes,$n=bt.expanded,Cn=bt.key,Ln=bt.isLeaf;if(!(Ln||Ot.shiftKey||Ot.metaKey||Ot.ctrlKey)){var Ci=pn.filter(function(Di){return Di.key===Cn})[0],Jn=(0,ot.F)((0,lt.Z)((0,lt.Z)({},(0,ot.H8)(Cn,et.getTreeNodeRequiredProps())),{},{data:Ci.data}));et.setExpandedKeys($n?(0,vt._5)(Xt,Cn):(0,vt.L0)(Xt,Cn)),et.onNodeExpand(Ot,Jn)}}),(0,De.Z)((0,Ue.Z)(et),"onNodeClick",function(Ot,bt){var Wt=et.props,Xt=Wt.onClick,pn=Wt.expandAction;pn==="click"&&et.triggerExpandActionExpand(Ot,bt),Xt==null||Xt(Ot,bt)}),(0,De.Z)((0,Ue.Z)(et),"onNodeDoubleClick",function(Ot,bt){var Wt=et.props,Xt=Wt.onDoubleClick,pn=Wt.expandAction;pn==="doubleClick"&&et.triggerExpandActionExpand(Ot,bt),Xt==null||Xt(Ot,bt)}),(0,De.Z)((0,Ue.Z)(et),"onNodeSelect",function(Ot,bt){var Wt=et.state.selectedKeys,Xt=et.state,pn=Xt.keyEntities,$n=Xt.fieldNames,Cn=et.props,Ln=Cn.onSelect,Ci=Cn.multiple,Jn=bt.selected,Di=bt[$n.key],ui=!Jn;ui?Ci?Wt=(0,vt.L0)(Wt,Di):Wt=[Di]:Wt=(0,vt._5)(Wt,Di);var Bi=Wt.map(function(Ui){var ir=(0,li.Z)(pn,Ui);return ir?ir.node:null}).filter(Boolean);et.setUncontrolledState({selectedKeys:Wt}),Ln==null||Ln(Wt,{event:"select",selected:ui,node:bt,selectedNodes:Bi,nativeEvent:Ot.nativeEvent})}),(0,De.Z)((0,Ue.Z)(et),"onNodeCheck",function(Ot,bt,Wt){var Xt=et.state,pn=Xt.keyEntities,$n=Xt.checkedKeys,Cn=Xt.halfCheckedKeys,Ln=et.props,Ci=Ln.checkStrictly,Jn=Ln.onCheck,Di=bt.key,ui,Bi={event:"check",node:bt,checked:Wt,nativeEvent:Ot.nativeEvent};if(Ci){var Ui=Wt?(0,vt.L0)($n,Di):(0,vt._5)($n,Di),ir=(0,vt._5)(Cn,Di);ui={checked:Ui,halfChecked:ir},Bi.checkedNodes=Ui.map(function(to){return(0,li.Z)(pn,to)}).filter(Boolean).map(function(to){return to.node}),et.setUncontrolledState({checkedKeys:Ui})}else{var Ir=(0,hn.S)([].concat((0,it.Z)($n),[Di]),!0,pn),qi=Ir.checkedKeys,ri=Ir.halfCheckedKeys;if(!Wt){var co=new Set(qi);co.delete(Di);var Qr=(0,hn.S)(Array.from(co),{checked:!1,halfCheckedKeys:ri},pn);qi=Qr.checkedKeys,ri=Qr.halfCheckedKeys}ui=qi,Bi.checkedNodes=[],Bi.checkedNodesPositions=[],Bi.halfCheckedKeys=ri,qi.forEach(function(to){var no=(0,li.Z)(pn,to);if(no){var xo=no.node,lo=no.pos;Bi.checkedNodes.push(xo),Bi.checkedNodesPositions.push({node:xo,pos:lo})}}),et.setUncontrolledState({checkedKeys:qi},!1,{halfCheckedKeys:ri})}Jn==null||Jn(ui,Bi)}),(0,De.Z)((0,Ue.Z)(et),"onNodeLoad",function(Ot){var bt,Wt=Ot.key,Xt=et.state.keyEntities,pn=(0,li.Z)(Xt,Wt);if(!(pn!=null&&(bt=pn.children)!==null&&bt!==void 0&&bt.length)){var $n=new Promise(function(Cn,Ln){et.setState(function(Ci){var Jn=Ci.loadedKeys,Di=Jn===void 0?[]:Jn,ui=Ci.loadingKeys,Bi=ui===void 0?[]:ui,Ui=et.props,ir=Ui.loadData,Ir=Ui.onLoad;if(!ir||Di.includes(Wt)||Bi.includes(Wt))return null;var qi=ir(Ot);return qi.then(function(){var ri=et.state.loadedKeys,co=(0,vt.L0)(ri,Wt);Ir==null||Ir(co,{event:"load",node:Ot}),et.setUncontrolledState({loadedKeys:co}),et.setState(function(Qr){return{loadingKeys:(0,vt._5)(Qr.loadingKeys,Wt)}}),Cn()}).catch(function(ri){if(et.setState(function(Qr){return{loadingKeys:(0,vt._5)(Qr.loadingKeys,Wt)}}),et.loadingRetryTimes[Wt]=(et.loadingRetryTimes[Wt]||0)+1,et.loadingRetryTimes[Wt]>=yi){var co=et.state.loadedKeys;(0,ne.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),et.setUncontrolledState({loadedKeys:(0,vt.L0)(co,Wt)}),Cn()}Ln(ri)}),{loadingKeys:(0,vt.L0)(Bi,Wt)}})});return $n.catch(function(){}),$n}}),(0,De.Z)((0,Ue.Z)(et),"onNodeMouseEnter",function(Ot,bt){var Wt=et.props.onMouseEnter;Wt==null||Wt({event:Ot,node:bt})}),(0,De.Z)((0,Ue.Z)(et),"onNodeMouseLeave",function(Ot,bt){var Wt=et.props.onMouseLeave;Wt==null||Wt({event:Ot,node:bt})}),(0,De.Z)((0,Ue.Z)(et),"onNodeContextMenu",function(Ot,bt){var Wt=et.props.onRightClick;Wt&&(Ot.preventDefault(),Wt({event:Ot,node:bt}))}),(0,De.Z)((0,Ue.Z)(et),"onFocus",function(){var Ot=et.props.onFocus;et.setState({focused:!0});for(var bt=arguments.length,Wt=new Array(bt),Xt=0;Xt<bt;Xt++)Wt[Xt]=arguments[Xt];Ot==null||Ot.apply(void 0,Wt)}),(0,De.Z)((0,Ue.Z)(et),"onBlur",function(){var Ot=et.props.onBlur;et.setState({focused:!1}),et.onActiveChange(null);for(var bt=arguments.length,Wt=new Array(bt),Xt=0;Xt<bt;Xt++)Wt[Xt]=arguments[Xt];Ot==null||Ot.apply(void 0,Wt)}),(0,De.Z)((0,Ue.Z)(et),"getTreeNodeRequiredProps",function(){var Ot=et.state,bt=Ot.expandedKeys,Wt=Ot.selectedKeys,Xt=Ot.loadedKeys,pn=Ot.loadingKeys,$n=Ot.checkedKeys,Cn=Ot.halfCheckedKeys,Ln=Ot.dragOverNodeKey,Ci=Ot.dropPosition,Jn=Ot.keyEntities;return{expandedKeys:bt||[],selectedKeys:Wt||[],loadedKeys:Xt||[],loadingKeys:pn||[],checkedKeys:$n||[],halfCheckedKeys:Cn||[],dragOverNodeKey:Ln,dropPosition:Ci,keyEntities:Jn}}),(0,De.Z)((0,Ue.Z)(et),"setExpandedKeys",function(Ot){var bt=et.state,Wt=bt.treeData,Xt=bt.fieldNames,pn=(0,ot.oH)(Wt,Ot,Xt);et.setUncontrolledState({expandedKeys:Ot,flattenNodes:pn},!0)}),(0,De.Z)((0,Ue.Z)(et),"onNodeExpand",function(Ot,bt){var Wt=et.state.expandedKeys,Xt=et.state,pn=Xt.listChanging,$n=Xt.fieldNames,Cn=et.props,Ln=Cn.onExpand,Ci=Cn.loadData,Jn=bt.expanded,Di=bt[$n.key];if(!pn){var ui=Wt.includes(Di),Bi=!Jn;if((0,ne.ZP)(Jn&&ui||!Jn&&!ui,"Expand state not sync with index check"),Wt=Bi?(0,vt.L0)(Wt,Di):(0,vt._5)(Wt,Di),et.setExpandedKeys(Wt),Ln==null||Ln(Wt,{node:bt,expanded:Bi,nativeEvent:Ot.nativeEvent}),Bi&&Ci){var Ui=et.onNodeLoad(bt);Ui&&Ui.then(function(){var ir=(0,ot.oH)(et.state.treeData,Wt,$n);et.setUncontrolledState({flattenNodes:ir})}).catch(function(){var ir=et.state.expandedKeys,Ir=(0,vt._5)(ir,Di);et.setExpandedKeys(Ir)})}}}),(0,De.Z)((0,Ue.Z)(et),"onListChangeStart",function(){et.setUncontrolledState({listChanging:!0})}),(0,De.Z)((0,Ue.Z)(et),"onListChangeEnd",function(){setTimeout(function(){et.setUncontrolledState({listChanging:!1})})}),(0,De.Z)((0,Ue.Z)(et),"onActiveChange",function(Ot){var bt=et.state.activeKey,Wt=et.props,Xt=Wt.onActiveChange,pn=Wt.itemScrollOffset,$n=pn===void 0?0:pn;bt!==Ot&&(et.setState({activeKey:Ot}),Ot!==null&&et.scrollTo({key:Ot,offset:$n}),Xt==null||Xt(Ot))}),(0,De.Z)((0,Ue.Z)(et),"getActiveItem",function(){var Ot=et.state,bt=Ot.activeKey,Wt=Ot.flattenNodes;return bt===null?null:Wt.find(function(Xt){var pn=Xt.key;return pn===bt})||null}),(0,De.Z)((0,Ue.Z)(et),"offsetActiveKey",function(Ot){var bt=et.state,Wt=bt.flattenNodes,Xt=bt.activeKey,pn=Wt.findIndex(function(Ln){var Ci=Ln.key;return Ci===Xt});pn===-1&&Ot<0&&(pn=Wt.length),pn=(pn+Ot+Wt.length)%Wt.length;var $n=Wt[pn];if($n){var Cn=$n.key;et.onActiveChange(Cn)}else et.onActiveChange(null)}),(0,De.Z)((0,Ue.Z)(et),"onKeyDown",function(Ot){var bt=et.state,Wt=bt.activeKey,Xt=bt.expandedKeys,pn=bt.checkedKeys,$n=bt.fieldNames,Cn=et.props,Ln=Cn.onKeyDown,Ci=Cn.checkable,Jn=Cn.selectable;switch(Ot.which){case ct.Z.UP:{et.offsetActiveKey(-1),Ot.preventDefault();break}case ct.Z.DOWN:{et.offsetActiveKey(1),Ot.preventDefault();break}}var Di=et.getActiveItem();if(Di&&Di.data){var ui=et.getTreeNodeRequiredProps(),Bi=Di.data.isLeaf===!1||!!(Di.data[$n.children]||[]).length,Ui=(0,ot.F)((0,lt.Z)((0,lt.Z)({},(0,ot.H8)(Wt,ui)),{},{data:Di.data,active:!0}));switch(Ot.which){case ct.Z.LEFT:{Bi&&Xt.includes(Wt)?et.onNodeExpand({},Ui):Di.parent&&et.onActiveChange(Di.parent.key),Ot.preventDefault();break}case ct.Z.RIGHT:{Bi&&!Xt.includes(Wt)?et.onNodeExpand({},Ui):Di.children&&Di.children.length&&et.onActiveChange(Di.children[0].key),Ot.preventDefault();break}case ct.Z.ENTER:case ct.Z.SPACE:{Ci&&!Ui.disabled&&Ui.checkable!==!1&&!Ui.disableCheckbox?et.onNodeCheck({},Ui,!pn.includes(Wt)):!Ci&&Jn&&!Ui.disabled&&Ui.selectable!==!1&&et.onNodeSelect({},Ui);break}}}Ln==null||Ln(Ot)}),(0,De.Z)((0,Ue.Z)(et),"setUncontrolledState",function(Ot){var bt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Wt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!et.destroyed){var Xt=!1,pn=!0,$n={};Object.keys(Ot).forEach(function(Cn){if(et.props.hasOwnProperty(Cn)){pn=!1;return}Xt=!0,$n[Cn]=Ot[Cn]}),Xt&&(!bt||pn)&&et.setState((0,lt.Z)((0,lt.Z)({},$n),Wt))}}),(0,De.Z)((0,Ue.Z)(et),"scrollTo",function(Ot){et.listRef.current.scrollTo(Ot)}),et}return(0,ze.Z)(ke,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var _t=this.props,Bt=_t.activeKey,rn=_t.itemScrollOffset,Ot=rn===void 0?0:rn;Bt!==void 0&&Bt!==this.state.activeKey&&(this.setState({activeKey:Bt}),Bt!==null&&this.scrollTo({key:Bt,offset:Ot}))}},{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 _t=this.state,Bt=_t.focused,rn=_t.flattenNodes,Ot=_t.keyEntities,bt=_t.draggingNodeKey,Wt=_t.activeKey,Xt=_t.dropLevelOffset,pn=_t.dropContainerKey,$n=_t.dropTargetKey,Cn=_t.dropPosition,Ln=_t.dragOverNodeKey,Ci=_t.indent,Jn=this.props,Di=Jn.prefixCls,ui=Jn.className,Bi=Jn.style,Ui=Jn.showLine,ir=Jn.focusable,Ir=Jn.tabIndex,qi=Ir===void 0?0:Ir,ri=Jn.selectable,co=Jn.showIcon,Qr=Jn.icon,to=Jn.switcherIcon,no=Jn.draggable,xo=Jn.checkable,lo=Jn.checkStrictly,Er=Jn.disabled,io=Jn.motion,Le=Jn.loadData,Pn=Jn.filterTreeNode,Un=Jn.height,gi=Jn.itemHeight,mi=Jn.scrollWidth,ti=Jn.virtual,Yi=Jn.titleRender,pr=Jn.dropIndicatorRender,un=Jn.onContextMenu,an=Jn.onScroll,jt=Jn.direction,mn=Jn.rootClassName,Zi=Jn.rootStyle,ji=(0,Ee.Z)(this.props,{aria:!0,data:!0}),lr;no&&((0,_e.Z)(no)==="object"?lr=no:typeof no=="function"?lr={nodeDraggable:no}:lr={});var Zn={prefixCls:Di,selectable:ri,showIcon:co,icon:Qr,switcherIcon:to,draggable:lr,draggingNodeKey:bt,checkable:xo,checkStrictly:lo,disabled:Er,keyEntities:Ot,dropLevelOffset:Xt,dropContainerKey:pn,dropTargetKey:$n,dropPosition:Cn,dragOverNodeKey:Ln,indent:Ci,direction:jt,dropIndicatorRender:pr,loadData:Le,filterTreeNode:Pn,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 te.createElement(ue.k.Provider,{value:Zn},te.createElement("div",{className:Ve()(Di,ui,mn,(0,De.Z)((0,De.Z)((0,De.Z)({},"".concat(Di,"-show-line"),Ui),"".concat(Di,"-focused"),Bt),"".concat(Di,"-active-focused"),Wt!==null)),style:Zi},te.createElement(kt,(0,ve.Z)({ref:this.listRef,prefixCls:Di,style:Bi,data:rn,disabled:Er,selectable:ri,checkable:!!xo,motion:io,dragging:bt!==null,height:Un,itemHeight:gi,virtual:ti,focusable:ir,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:un,onScroll:an,scrollWidth:mi},this.getTreeNodeRequiredProps(),ji))))}}],[{key:"getDerivedStateFromProps",value:function(_t,Bt){var rn=Bt.prevProps,Ot={prevProps:_t};function bt(qi){return!rn&&_t.hasOwnProperty(qi)||rn&&rn[qi]!==_t[qi]}var Wt,Xt=Bt.fieldNames;if(bt("fieldNames")&&(Xt=(0,ot.w$)(_t.fieldNames),Ot.fieldNames=Xt),bt("treeData")?Wt=_t.treeData:bt("children")&&((0,ne.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),Wt=(0,ot.zn)(_t.children)),Wt){Ot.treeData=Wt;var pn=(0,ot.I8)(Wt,{fieldNames:Xt});Ot.keyEntities=(0,lt.Z)((0,De.Z)({},He,Zt),pn.keyEntities)}var $n=Ot.keyEntities||Bt.keyEntities;if(bt("expandedKeys")||rn&&bt("autoExpandParent"))Ot.expandedKeys=_t.autoExpandParent||!rn&&_t.defaultExpandParent?(0,vt.r7)(_t.expandedKeys,$n):_t.expandedKeys;else if(!rn&&_t.defaultExpandAll){var Cn=(0,lt.Z)({},$n);delete Cn[He];var Ln=[];Object.keys(Cn).forEach(function(qi){var ri=Cn[qi];ri.children&&ri.children.length&&Ln.push(ri.key)}),Ot.expandedKeys=Ln}else!rn&&_t.defaultExpandedKeys&&(Ot.expandedKeys=_t.autoExpandParent||_t.defaultExpandParent?(0,vt.r7)(_t.defaultExpandedKeys,$n):_t.defaultExpandedKeys);if(Ot.expandedKeys||delete Ot.expandedKeys,Wt||Ot.expandedKeys){var Ci=(0,ot.oH)(Wt||Bt.treeData,Ot.expandedKeys||Bt.expandedKeys,Xt);Ot.flattenNodes=Ci}if(_t.selectable&&(bt("selectedKeys")?Ot.selectedKeys=(0,vt.BT)(_t.selectedKeys,_t):!rn&&_t.defaultSelectedKeys&&(Ot.selectedKeys=(0,vt.BT)(_t.defaultSelectedKeys,_t))),_t.checkable){var Jn;if(bt("checkedKeys")?Jn=(0,vt.E6)(_t.checkedKeys)||{}:!rn&&_t.defaultCheckedKeys?Jn=(0,vt.E6)(_t.defaultCheckedKeys)||{}:Wt&&(Jn=(0,vt.E6)(_t.checkedKeys)||{checkedKeys:Bt.checkedKeys,halfCheckedKeys:Bt.halfCheckedKeys}),Jn){var Di=Jn,ui=Di.checkedKeys,Bi=ui===void 0?[]:ui,Ui=Di.halfCheckedKeys,ir=Ui===void 0?[]:Ui;if(!_t.checkStrictly){var Ir=(0,hn.S)(Bi,!0,$n);Bi=Ir.checkedKeys,ir=Ir.halfCheckedKeys}Ot.checkedKeys=Bi,Ot.halfCheckedKeys=ir}}return bt("loadedKeys")&&(Ot.loadedKeys=_t.loadedKeys),Ot}}]),ke}(te.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(gn,en,we){"use strict";we.d(en,{BT:function(){return te},E6:function(){return de},L0:function(){return De},OM:function(){return ne},_5:function(){return tt},r7:function(){return pe},wA:function(){return Ve},yx:function(){return xt}});var ve=we(95190),_e=we(93664),lt=we(48736),it=we(59301),rt=we(639),ze=we(65065),Ue=we(34061),yt=null;function tt(ye,Ce){if(!ye)return[];var je=ye.slice(),Te=je.indexOf(Ce);return Te>=0&&je.splice(Te,1),je}function De(ye,Ce){var je=(ye||[]).slice();return je.indexOf(Ce)===-1&&je.push(Ce),je}function xt(ye){return ye.split("-")}function Ve(ye,Ce){var je=[],Te=(0,ze.Z)(Ce,ye);function Ie(){var Oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];Oe.forEach(function(Re){var nt=Re.key,ot=Re.children;je.push(nt),Ie(ot)})}return Ie(Te.children),je}function ct(ye){if(ye.parent){var Ce=xt(ye.pos);return Number(Ce[Ce.length-1])===ye.parent.children.length-1}return!1}function Ee(ye){var Ce=xt(ye.pos);return Number(Ce[Ce.length-1])===0}function ne(ye,Ce,je,Te,Ie,Oe,Re,nt,ot,wt){var gt,Dt=ye.clientX,Lt=ye.clientY,It=ye.target.getBoundingClientRect(),Tt=It.top,nn=It.height,at=(wt==="rtl"?-1:1)*(((Ie==null?void 0:Ie.x)||0)-Dt),He=(at-12)/Te,Rt=ot.filter(function(xe){var Ne;return(Ne=nt[xe])===null||Ne===void 0||(Ne=Ne.children)===null||Ne===void 0?void 0:Ne.length}),Zt=(0,ze.Z)(nt,je.eventKey);if(Lt<Tt+nn/2){var Yt=Re.findIndex(function(xe){return xe.key===Zt.key}),Mt=Yt<=0?0:Yt-1,zt=Re[Mt].key;Zt=(0,ze.Z)(nt,zt)}var on=Zt.key,Dn=Zt,kt=Zt.key,vt=0,hn=0;if(!Rt.includes(on))for(var li=0;li<He&&ct(Zt);li+=1)Zt=Zt.parent,hn+=1;var yi=Ce.data,We=Zt.node,Fe=!0;return Ee(Zt)&&Zt.level===0&&Lt<Tt+nn/2&&Oe({dragNode:yi,dropNode:We,dropPosition:-1})&&Zt.key===je.eventKey?vt=-1:(Dn.children||[]).length&&Rt.includes(kt)?Oe({dragNode:yi,dropNode:We,dropPosition:0})?vt=0:Fe=!1:hn===0?He>-1.5?Oe({dragNode:yi,dropNode:We,dropPosition:1})?vt=1:Fe=!1:Oe({dragNode:yi,dropNode:We,dropPosition:0})?vt=0:Oe({dragNode:yi,dropNode:We,dropPosition:1})?vt=1:Fe=!1:Oe({dragNode:yi,dropNode:We,dropPosition:1})?vt=1:Fe=!1,{dropPosition:vt,dropLevelOffset:hn,dropTargetKey:Zt.key,dropTargetPos:Zt.pos,dragOverNodeKey:kt,dropContainerKey:vt===0?null:((gt=Zt.parent)===null||gt===void 0?void 0:gt.key)||null,dropAllowed:Fe}}function te(ye,Ce){if(ye){var je=Ce.multiple;return je?ye.slice():ye.length?[ye[0]]:ye}}var ue=function(Ce){return Ce};function se(ye,Ce){if(!ye)return[];var je=Ce||{},Te=je.processProps,Ie=Te===void 0?ue:Te,Oe=Array.isArray(ye)?ye:[ye];return Oe.map(function(Re){var nt=Re.children,ot=_objectWithoutProperties(Re,yt),wt=se(nt,Ce);return React.createElement(TreeNode,_extends({key:ot.key},Ie(ot)),wt)})}function de(ye){if(!ye)return null;var Ce;if(Array.isArray(ye))Ce={checkedKeys:ye,halfCheckedKeys:void 0};else if((0,_e.Z)(ye)==="object")Ce={checkedKeys:ye.checked||void 0,halfCheckedKeys:ye.halfChecked||void 0};else return(0,lt.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return Ce}function pe(ye,Ce){var je=new Set;function Te(Ie){if(!je.has(Ie)){var Oe=(0,ze.Z)(Ce,Ie);if(Oe){je.add(Ie);var Re=Oe.parent,nt=Oe.node;nt.disabled||Re&&Te(Re.key)}}}return(ye||[]).forEach(function(Ie){Te(Ie)}),(0,ve.Z)(je)}},34643:function(gn,en,we){"use strict";we.d(en,{S:function(){return Ue}});var ve=we(48736),_e=we(65065);function lt(yt,tt){var De=new Set;return yt.forEach(function(xt){tt.has(xt)||De.add(xt)}),De}function it(yt){var tt=yt||{},De=tt.disabled,xt=tt.disableCheckbox,Ve=tt.checkable;return!!(De||xt)||Ve===!1}function rt(yt,tt,De,xt){for(var Ve=new Set(yt),ct=new Set,Ee=0;Ee<=De;Ee+=1){var ne=tt.get(Ee)||new Set;ne.forEach(function(de){var pe=de.key,ye=de.node,Ce=de.children,je=Ce===void 0?[]:Ce;Ve.has(pe)&&!xt(ye)&&je.filter(function(Te){return!xt(Te.node)}).forEach(function(Te){Ve.add(Te.key)})})}for(var te=new Set,ue=De;ue>=0;ue-=1){var se=tt.get(ue)||new Set;se.forEach(function(de){var pe=de.parent,ye=de.node;if(!(xt(ye)||!de.parent||te.has(de.parent.key))){if(xt(de.parent.node)){te.add(pe.key);return}var Ce=!0,je=!1;(pe.children||[]).filter(function(Te){return!xt(Te.node)}).forEach(function(Te){var Ie=Te.key,Oe=Ve.has(Ie);Ce&&!Oe&&(Ce=!1),!je&&(Oe||ct.has(Ie))&&(je=!0)}),Ce&&Ve.add(pe.key),je&&ct.add(pe.key),te.add(pe.key)}})}return{checkedKeys:Array.from(Ve),halfCheckedKeys:Array.from(lt(ct,Ve))}}function ze(yt,tt,De,xt,Ve){for(var ct=new Set(yt),Ee=new Set(tt),ne=0;ne<=xt;ne+=1){var te=De.get(ne)||new Set;te.forEach(function(pe){var ye=pe.key,Ce=pe.node,je=pe.children,Te=je===void 0?[]:je;!ct.has(ye)&&!Ee.has(ye)&&!Ve(Ce)&&Te.filter(function(Ie){return!Ve(Ie.node)}).forEach(function(Ie){ct.delete(Ie.key)})})}Ee=new Set;for(var ue=new Set,se=xt;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 je=!0,Te=!1;(ye.children||[]).filter(function(Ie){return!Ve(Ie.node)}).forEach(function(Ie){var Oe=Ie.key,Re=ct.has(Oe);je&&!Re&&(je=!1),!Te&&(Re||Ee.has(Oe))&&(Te=!0)}),je||ct.delete(ye.key),Te&&Ee.add(ye.key),ue.add(ye.key)}})}return{checkedKeys:Array.from(ct),halfCheckedKeys:Array.from(lt(Ee,ct))}}function Ue(yt,tt,De,xt){var Ve=[],ct;xt?ct=xt:ct=it;var Ee=new Set(yt.filter(function(se){var de=!!(0,_e.Z)(De,se);return de||Ve.push(se),de})),ne=new Map,te=0;Object.keys(De).forEach(function(se){var de=De[se],pe=de.level,ye=ne.get(pe);ye||(ye=new Set,ne.set(pe,ye)),ye.add(de),te=Math.max(te,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 tt===!0?ue=rt(Ee,ne,te,ct):ue=ze(Ee,tt.halfCheckedKeys,ne,te,ct),ue}},65065:function(gn,en,we){"use strict";we.d(en,{Z:function(){return ve}});function ve(_e,lt){return _e[lt]}},34061:function(gn,en,we){"use strict";we.d(en,{F:function(){return pe},H8:function(){return de},I8:function(){return se},km:function(){return Ve},oH:function(){return te},w$:function(){return ct},zn:function(){return ne}});var ve=we(93664),_e=we(95190),lt=we(20439),it=we(62646),rt=we(11592),ze=we(2738),Ue=we(48736),yt=we(65065),tt=["children"];function De(ye,Ce){return"".concat(ye,"-").concat(Ce)}function xt(ye){return ye&&ye.type&&ye.type.isTreeNode}function Ve(ye,Ce){return ye!=null?ye:Ce}function ct(ye){var Ce=ye||{},je=Ce.title,Te=Ce._title,Ie=Ce.key,Oe=Ce.children,Re=je||"title";return{title:Re,_title:Te||[Re],key:Ie||"key",children:Oe||"children"}}function Ee(ye,Ce){var je=new Map;function Te(Ie){var Oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(Ie||[]).forEach(function(Re){var nt=Re[Ce.key],ot=Re[Ce.children];warning(nt!=null,"Tree node must have a certain key: [".concat(Oe).concat(nt,"]"));var wt=String(nt);warning(!je.has(wt)||nt===null||nt===void 0,"Same 'key' exist in the Tree: ".concat(wt)),je.set(wt,!0),Te(ot,"".concat(Oe).concat(wt," > "))})}Te(ye)}function ne(ye){function Ce(je){var Te=(0,rt.Z)(je);return Te.map(function(Ie){if(!xt(Ie))return(0,Ue.ZP)(!Ie,"Tree/TreeNode can only accept TreeNode as children."),null;var Oe=Ie.key,Re=Ie.props,nt=Re.children,ot=(0,it.Z)(Re,tt),wt=(0,lt.Z)({key:Oe},ot),gt=Ce(nt);return gt.length&&(wt.children=gt),wt}).filter(function(Ie){return Ie})}return Ce(ye)}function te(ye,Ce,je){var Te=ct(je),Ie=Te._title,Oe=Te.key,Re=Te.children,nt=new Set(Ce===!0?[]:Ce),ot=[];function wt(gt){var Dt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return gt.map(function(Lt,It){for(var Tt=De(Dt?Dt.pos:"0",It),nn=Ve(Lt[Oe],Tt),at,He=0;He<Ie.length;He+=1){var Rt=Ie[He];if(Lt[Rt]!==void 0){at=Lt[Rt];break}}var Zt=Object.assign((0,ze.Z)(Lt,[].concat((0,_e.Z)(Ie),[Oe,Re])),{title:at,key:nn,parent:Dt,pos:Tt,children:null,data:Lt,isStart:[].concat((0,_e.Z)(Dt?Dt.isStart:[]),[It===0]),isEnd:[].concat((0,_e.Z)(Dt?Dt.isEnd:[]),[It===gt.length-1])});return ot.push(Zt),Ce===!0||nt.has(nn)?Zt.children=wt(Lt[Re]||[],Zt):Zt.children=[],Zt})}return wt(ye),ot}function ue(ye,Ce,je){var Te={};(0,ve.Z)(je)==="object"?Te=je:Te={externalGetKey:je},Te=Te||{};var Ie=Te,Oe=Ie.childrenPropName,Re=Ie.externalGetKey,nt=Ie.fieldNames,ot=ct(nt),wt=ot.key,gt=ot.children,Dt=Oe||gt,Lt;Re?typeof Re=="string"?Lt=function(nn){return nn[Re]}:typeof Re=="function"&&(Lt=function(nn){return Re(nn)}):Lt=function(nn,at){return Ve(nn[wt],at)};function It(Tt,nn,at,He){var Rt=Tt?Tt[Dt]:ye,Zt=Tt?De(at.pos,nn):"0",Yt=Tt?[].concat((0,_e.Z)(He),[Tt]):[];if(Tt){var Mt=Lt(Tt,Zt),zt={node:Tt,index:nn,pos:Zt,key:Mt,parentPos:at.node?at.pos:null,level:at.level+1,nodes:Yt};Ce(zt)}Rt&&Rt.forEach(function(on,Dn){It(on,Dn,{node:Tt,pos:Zt,level:at?at.level+1:-1},Yt)})}It(null)}function se(ye){var Ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},je=Ce.initWrapper,Te=Ce.processEntity,Ie=Ce.onProcessFinished,Oe=Ce.externalGetKey,Re=Ce.childrenPropName,nt=Ce.fieldNames,ot=arguments.length>2?arguments[2]:void 0,wt=Oe||ot,gt={},Dt={},Lt={posEntities:gt,keyEntities:Dt};return je&&(Lt=je(Lt)||Lt),ue(ye,function(It){var Tt=It.node,nn=It.index,at=It.pos,He=It.key,Rt=It.parentPos,Zt=It.level,Yt=It.nodes,Mt={node:Tt,nodes:Yt,index:nn,key:He,pos:at,level:Zt},zt=Ve(He,at);gt[at]=Mt,Dt[zt]=Mt,Mt.parent=gt[Rt],Mt.parent&&(Mt.parent.children=Mt.parent.children||[],Mt.parent.children.push(Mt)),Te&&Te(Mt,Lt)},{externalGetKey:wt,childrenPropName:Re,fieldNames:nt}),Ie&&Ie(Lt),Lt}function de(ye,Ce){var je=Ce.expandedKeys,Te=Ce.selectedKeys,Ie=Ce.loadedKeys,Oe=Ce.loadingKeys,Re=Ce.checkedKeys,nt=Ce.halfCheckedKeys,ot=Ce.dragOverNodeKey,wt=Ce.dropPosition,gt=Ce.keyEntities,Dt=(0,yt.Z)(gt,ye),Lt={eventKey:ye,expanded:je.indexOf(ye)!==-1,selected:Te.indexOf(ye)!==-1,loaded:Ie.indexOf(ye)!==-1,loading:Oe.indexOf(ye)!==-1,checked:Re.indexOf(ye)!==-1,halfChecked:nt.indexOf(ye)!==-1,pos:String(Dt?Dt.pos:""),dragOver:ot===ye&&wt===0,dragOverGapTop:ot===ye&&wt===-1,dragOverGapBottom:ot===ye&&wt===1};return Lt}function pe(ye){var Ce=ye.data,je=ye.expanded,Te=ye.selected,Ie=ye.checked,Oe=ye.loaded,Re=ye.loading,nt=ye.halfChecked,ot=ye.dragOver,wt=ye.dragOverGapTop,gt=ye.dragOverGapBottom,Dt=ye.pos,Lt=ye.active,It=ye.eventKey,Tt=(0,lt.Z)((0,lt.Z)({},Ce),{},{expanded:je,selected:Te,checked:Ie,loaded:Oe,loading:Re,halfChecked:nt,dragOver:ot,dragOverGapTop:wt,dragOverGapBottom:gt,pos:Dt,active:Lt,key:It});return"props"in Tt||Object.defineProperty(Tt,"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}}),Tt}},90472:function(gn,en,we){"use strict";we.d(en,{Z:function(){return It}});var ve=we(14809),_e=we(99153),lt=we(84851),it=we(13028),rt=we(19257),ze=we(93046),Ue=we(4635),yt=we(59301),tt=we(20439),De=we(62646),xt=we(93664),Ve=we(70539),ct=we(95764),Ee=we(95190),ne=we(92310),te=we.n(ne),ue=we(26112),se=we(48736),de=function(Tt,nn){if(Tt&&nn){var at=Array.isArray(nn)?nn:nn.split(","),He=Tt.name||"",Rt=Tt.type||"",Zt=Rt.replace(/\/.*$/,"");return at.some(function(Yt){var Mt=Yt.trim();if(/^\*(\/\*)?$/.test(Yt))return!0;if(Mt.charAt(0)==="."){var zt=He.toLowerCase(),on=Mt.toLowerCase(),Dn=[on];return(on===".jpg"||on===".jpeg")&&(Dn=[".jpg",".jpeg"]),Dn.some(function(kt){return zt.endsWith(kt)})}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(Tt,nn){var at="cannot ".concat(Tt.method," ").concat(Tt.action," ").concat(nn.status,"'"),He=new Error(at);return He.status=nn.status,He.method=Tt.method,He.url=Tt.action,He}function ye(Tt){var nn=Tt.responseText||Tt.response;if(!nn)return nn;try{return JSON.parse(nn)}catch(at){return nn}}function Ce(Tt){var nn=new XMLHttpRequest;Tt.onProgress&&nn.upload&&(nn.upload.onprogress=function(Zt){Zt.total>0&&(Zt.percent=Zt.loaded/Zt.total*100),Tt.onProgress(Zt)});var at=new FormData;Tt.data&&Object.keys(Tt.data).forEach(function(Rt){var Zt=Tt.data[Rt];if(Array.isArray(Zt)){Zt.forEach(function(Yt){at.append("".concat(Rt,"[]"),Yt)});return}at.append(Rt,Zt)}),Tt.file instanceof Blob?at.append(Tt.filename,Tt.file,Tt.file.name):at.append(Tt.filename,Tt.file),nn.onerror=function(Zt){Tt.onError(Zt)},nn.onload=function(){return nn.status<200||nn.status>=300?Tt.onError(pe(Tt,nn),ye(nn)):Tt.onSuccess(ye(nn),nn)},nn.open(Tt.method,Tt.action,!0),Tt.withCredentials&&"withCredentials"in nn&&(nn.withCredentials=!0);var He=Tt.headers||{};return He["X-Requested-With"]!==null&&nn.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(He).forEach(function(Rt){He[Rt]!==null&&nn.setRequestHeader(Rt,He[Rt])}),nn.send(at),{abort:function(){nn.abort()}}}var je=function(){var Tt=(0,ct.Z)((0,Ve.Z)().mark(function nn(at,He){var Rt,Zt,Yt,Mt,zt,on,Dn,kt;return(0,Ve.Z)().wrap(function(hn){for(;;)switch(hn.prev=hn.next){case 0:on=function(){return on=(0,ct.Z)((0,Ve.Z)().mark(function yi(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(Ye){He(Ye)?(We.fullPath&&!Ye.webkitRelativePath&&(Object.defineProperties(Ye,{webkitRelativePath:{writable:!0}}),Ye.webkitRelativePath=We.fullPath.replace(/^\//,""),Object.defineProperties(Ye,{webkitRelativePath:{writable:!1}})),Ne(Ye)):Ne(null)})}));case 1:case"end":return xe.stop()}},yi)})),on.apply(this,arguments)},zt=function(yi){return on.apply(this,arguments)},Mt=function(){return Mt=(0,ct.Z)((0,Ve.Z)().mark(function yi(We){var Fe,xe,Ne,Ye,ke;return(0,Ve.Z)().wrap(function(_t){for(;;)switch(_t.prev=_t.next){case 0:Fe=We.createReader(),xe=[];case 2:return _t.next=5,new Promise(function(Bt){Fe.readEntries(Bt,function(){return Bt([])})});case 5:if(Ne=_t.sent,Ye=Ne.length,Ye){_t.next=9;break}return _t.abrupt("break",12);case 9:for(ke=0;ke<Ye;ke++)xe.push(Ne[ke]);_t.next=2;break;case 12:return _t.abrupt("return",xe);case 13:case"end":return _t.stop()}},yi)})),Mt.apply(this,arguments)},Yt=function(yi){return Mt.apply(this,arguments)},Rt=[],Zt=[],at.forEach(function(li){return Zt.push(li.webkitGetAsEntry())}),Dn=function(){var li=(0,ct.Z)((0,Ve.Z)().mark(function yi(We,Fe){var xe,Ne;return(0,Ve.Z)().wrap(function(ke){for(;;)switch(ke.prev=ke.next){case 0:if(We){ke.next=2;break}return ke.abrupt("return");case 2:if(We.path=Fe||"",!We.isFile){ke.next=10;break}return ke.next=6,zt(We);case 6:xe=ke.sent,xe&&Rt.push(xe),ke.next=15;break;case 10:if(!We.isDirectory){ke.next=15;break}return ke.next=13,Yt(We);case 13:Ne=ke.sent,Zt.push.apply(Zt,(0,Ee.Z)(Ne));case 15:case"end":return ke.stop()}},yi)}));return function(We,Fe){return li.apply(this,arguments)}}(),kt=0;case 9:if(!(kt<Zt.length)){hn.next=15;break}return hn.next=12,Dn(Zt[kt]);case 12:kt++,hn.next=9;break;case 15:return hn.abrupt("return",Rt);case 16:case"end":return hn.stop()}},nn)}));return function(at,He){return Tt.apply(this,arguments)}}(),Te=je,Ie=+new Date,Oe=0;function Re(){return"rc-upload-".concat(Ie,"-").concat(++Oe)}var nt=["component","prefixCls","className","classNames","disabled","id","name","style","styles","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave","hasControlInside"],ot=function(Tt){(0,rt.Z)(at,Tt);var nn=(0,ze.Z)(at);function at(){var He;(0,_e.Z)(this,at);for(var Rt=arguments.length,Zt=new Array(Rt),Yt=0;Yt<Rt;Yt++)Zt[Yt]=arguments[Yt];return He=nn.call.apply(nn,[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 zt=He.props,on=zt.accept,Dn=zt.directory,kt=Mt.target.files,vt=(0,Ee.Z)(kt).filter(function(hn){return!Dn||de(hn,on)});He.uploadFiles(vt),He.reset()}),(0,Ue.Z)((0,it.Z)(He),"onClick",function(Mt){var zt=He.fileInput;if(zt){var on=Mt.target,Dn=He.props.onClick;if(on&&on.tagName==="BUTTON"){var kt=zt.parentNode;kt.focus(),on.blur()}zt.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,ct.Z)((0,Ve.Z)().mark(function zt(on){var Dn,kt,vt;return(0,Ve.Z)().wrap(function(li){for(;;)switch(li.prev=li.next){case 0:if(Dn=He.props.multiple,on.preventDefault(),on.type!=="dragover"){li.next=4;break}return li.abrupt("return");case 4:if(!He.props.directory){li.next=11;break}return li.next=7,Te(Array.prototype.slice.call(on.dataTransfer.items),function(yi){return de(yi,He.props.accept)});case 7:kt=li.sent,He.uploadFiles(kt),li.next=14;break;case 11:vt=(0,Ee.Z)(on.dataTransfer.files).filter(function(yi){return de(yi,He.props.accept)}),Dn===!1&&(vt=vt.slice(0,1)),He.uploadFiles(vt);case 14:case"end":return li.stop()}},zt)}));return function(zt){return Mt.apply(this,arguments)}}()),(0,Ue.Z)((0,it.Z)(He),"uploadFiles",function(Mt){var zt=(0,Ee.Z)(Mt),on=zt.map(function(Dn){return Dn.uid=Re(),He.processFile(Dn,zt)});Promise.all(on).then(function(Dn){var kt=He.props.onBatchStart;kt==null||kt(Dn.map(function(vt){var hn=vt.origin,li=vt.parsedFile;return{file:hn,parsedFile:li}})),Dn.filter(function(vt){return vt.parsedFile!==null}).forEach(function(vt){He.post(vt)})})}),(0,Ue.Z)((0,it.Z)(He),"processFile",function(){var Mt=(0,ct.Z)((0,Ve.Z)().mark(function zt(on,Dn){var kt,vt,hn,li,yi,We,Fe,xe,Ne;return(0,Ve.Z)().wrap(function(ke){for(;;)switch(ke.prev=ke.next){case 0:if(kt=He.props.beforeUpload,vt=on,!kt){ke.next=14;break}return ke.prev=3,ke.next=6,kt(on,Dn);case 6:vt=ke.sent,ke.next=12;break;case 9:ke.prev=9,ke.t0=ke.catch(3),vt=!1;case 12:if(vt!==!1){ke.next=14;break}return ke.abrupt("return",{origin:on,parsedFile:null,action:null,data:null});case 14:if(hn=He.props.action,typeof hn!="function"){ke.next=21;break}return ke.next=18,hn(on);case 18:li=ke.sent,ke.next=22;break;case 21:li=hn;case 22:if(yi=He.props.data,typeof yi!="function"){ke.next=29;break}return ke.next=26,yi(on);case 26:We=ke.sent,ke.next=30;break;case 29:We=yi;case 30:return Fe=((0,xt.Z)(vt)==="object"||typeof vt=="string")&&vt?vt:on,Fe instanceof File?xe=Fe:xe=new File([Fe],on.name,{type:on.type}),Ne=xe,Ne.uid=on.uid,ke.abrupt("return",{origin:on,data:We,parsedFile:Ne,action:li});case 35:case"end":return ke.stop()}},zt,null,[[3,9]])}));return function(zt,on){return Mt.apply(this,arguments)}}()),(0,Ue.Z)((0,it.Z)(He),"saveFileInput",function(Mt){He.fileInput=Mt}),He}return(0,lt.Z)(at,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(Rt){var Zt=this,Yt=Rt.data,Mt=Rt.origin,zt=Rt.action,on=Rt.parsedFile;if(this._isMounted){var Dn=this.props,kt=Dn.onStart,vt=Dn.customRequest,hn=Dn.name,li=Dn.headers,yi=Dn.withCredentials,We=Dn.method,Fe=Mt.uid,xe=vt||Ce,Ne={action:zt,filename:hn,data:Yt,file:on,headers:li,withCredentials:yi,method:We||"post",onProgress:function(ke){var et=Zt.props.onProgress;et==null||et(ke,on)},onSuccess:function(ke,et){var _t=Zt.props.onSuccess;_t==null||_t(ke,on,et),delete Zt.reqs[Fe]},onError:function(ke,et){var _t=Zt.props.onError;_t==null||_t(ke,et,on),delete Zt.reqs[Fe]}};kt(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 Yt=Rt.uid?Rt.uid:Rt;Zt[Yt]&&Zt[Yt].abort&&Zt[Yt].abort(),delete Zt[Yt]}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,Yt=Rt.prefixCls,Mt=Rt.className,zt=Rt.classNames,on=zt===void 0?{}:zt,Dn=Rt.disabled,kt=Rt.id,vt=Rt.name,hn=Rt.style,li=Rt.styles,yi=li===void 0?{}:li,We=Rt.multiple,Fe=Rt.accept,xe=Rt.capture,Ne=Rt.children,Ye=Rt.directory,ke=Rt.openFileDialogOnClick,et=Rt.onMouseEnter,_t=Rt.onMouseLeave,Bt=Rt.hasControlInside,rn=(0,De.Z)(Rt,nt),Ot=te()((0,Ue.Z)((0,Ue.Z)((0,Ue.Z)({},Yt,!0),"".concat(Yt,"-disabled"),Dn),Mt,Mt)),bt=Ye?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},Wt=Dn?{}:{onClick:ke?this.onClick:function(){},onKeyDown:ke?this.onKeyDown:function(){},onMouseEnter:et,onMouseLeave:_t,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:Bt?void 0:"0"};return yt.createElement(Zt,(0,ve.Z)({},Wt,{className:Ot,role:Bt?void 0:"button",style:hn}),yt.createElement("input",(0,ve.Z)({},(0,ue.Z)(rn,{aria:!0,data:!0}),{id:kt,name:vt,disabled:Dn,type:"file",ref:this.saveFileInput,onClick:function(pn){return pn.stopPropagation()},key:this.state.uid,style:(0,tt.Z)({display:"none"},yi.input),className:on.input,accept:Fe},bt,{multiple:We,onChange:this.onChange},xe!=null?{capture:xe}:{})),Ne)}}]),at}(yt.Component),wt=ot;function gt(){}var Dt=function(Tt){(0,rt.Z)(at,Tt);var nn=(0,ze.Z)(at);function at(){var He;(0,_e.Z)(this,at);for(var Rt=arguments.length,Zt=new Array(Rt),Yt=0;Yt<Rt;Yt++)Zt[Yt]=arguments[Yt];return He=nn.call.apply(nn,[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,lt.Z)(at,[{key:"abort",value:function(Rt){this.uploader.abort(Rt)}},{key:"render",value:function(){return yt.createElement(wt,(0,ve.Z)({},this.props,{ref:this.saveUploader}))}}]),at}(yt.Component);(0,Ue.Z)(Dt,"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=Dt,It=Lt},8224:function(gn,en,we){"use strict";we.d(en,{Z:function(){return _e}});var ve=we(4676);function _e(lt,it,rt,ze){var Ue=ve.unstable_batchedUpdates?function(tt){ve.unstable_batchedUpdates(rt,tt)}:rt;return lt!=null&&lt.addEventListener&&lt.addEventListener(it,Ue,ze),{remove:function(){lt!=null&&lt.removeEventListener&&lt.removeEventListener(it,Ue,ze)}}}},24514:function(gn,en,we){"use strict";we.d(en,{G:function(){return it}});var ve=we(47273),_e=function(ze){if((0,ve.Z)()&&window.document.documentElement){var Ue=Array.isArray(ze)?ze:[ze],yt=window.document.documentElement;return Ue.some(function(tt){return tt in yt.style})}return!1},lt=function(ze,Ue){if(!_e(ze))return!1;var yt=document.createElement("div"),tt=yt.style[ze];return yt.style[ze]=Ue,yt.style[ze]!==tt};function it(rt,ze){return!Array.isArray(rt)&&ze!==void 0?lt(rt,ze):_e(rt)}},65283:function(gn,en,we){"use strict";we.d(en,{Z:function(){return yi}});var ve=we(14809),_e=we(93664),lt=we(20439),it=we(4635),rt=we(50298),ze=we(62646),Ue=we(92310),yt=we.n(Ue),tt=we(29301),De=we(70425),xt=we(34280),Ve=we(59301),ct=we(4676),Ee=Ve.forwardRef(function(We,Fe){var xe=We.height,Ne=We.offsetY,Ye=We.offsetX,ke=We.children,et=We.prefixCls,_t=We.onInnerResize,Bt=We.innerProps,rn=We.rtl,Ot=We.extra,bt={},Wt={display:"flex",flexDirection:"column"};return Ne!==void 0&&(bt={height:xe,position:"relative",overflow:"hidden"},Wt=(0,lt.Z)((0,lt.Z)({},Wt),{},(0,it.Z)((0,it.Z)((0,it.Z)((0,it.Z)((0,it.Z)({transform:"translateY(".concat(Ne,"px)")},rn?"marginRight":"marginLeft",-Ye),"position","absolute"),"left",0),"right",0),"top",0))),Ve.createElement("div",{style:bt},Ve.createElement(tt.Z,{onResize:function(pn){var $n=pn.offsetHeight;$n&&_t&&_t()}},Ve.createElement("div",(0,ve.Z)({style:Wt,className:yt()((0,it.Z)({},"".concat(et,"-holder-inner"),et)),ref:Fe},Bt),ke,Ot)))});Ee.displayName="Filler";var ne=Ee;function te(We){var Fe=We.children,xe=We.setRef,Ne=Ve.useCallback(function(Ye){xe(Ye)},[]);return Ve.cloneElement(Fe,{ref:Ne})}function ue(We,Fe,xe,Ne,Ye,ke,et,_t){var Bt=_t.getKey;return We.slice(Fe,xe+1).map(function(rn,Ot){var bt=Fe+Ot,Wt=et(rn,bt,{style:{width:Ne},offsetX:Ye}),Xt=Bt(rn);return Ve.createElement(te,{key:Xt,setRef:function($n){return ke(rn,$n)}},Wt)})}function se(We,Fe,xe,Ne){var Ye=xe-We,ke=Fe-xe,et=Math.min(Ye,ke)*2;if(Ne<=et){var _t=Math.floor(Ne/2);return Ne%2?xe+_t+1:xe-_t}return Ye>ke?xe-(Ne-ke):xe+(Ne-Ye)}function de(We,Fe,xe){var Ne=We.length,Ye=Fe.length,ke,et;if(Ne===0&&Ye===0)return null;Ne<Ye?(ke=We,et=Fe):(ke=Fe,et=We);var _t={__EMPTY_ITEM__:!0};function Bt(pn){return pn!==void 0?xe(pn):_t}for(var rn=null,Ot=Math.abs(Ne-Ye)!==1,bt=0;bt<et.length;bt+=1){var Wt=Bt(ke[bt]),Xt=Bt(et[bt]);if(Wt!==Xt){rn=bt,Ot=Ot||Wt!==Bt(et[bt+1]);break}}return rn===null?null:{index:rn,multiple:Ot}}function pe(We,Fe,xe){var Ne=Ve.useState(We),Ye=(0,rt.Z)(Ne,2),ke=Ye[0],et=Ye[1],_t=Ve.useState(null),Bt=(0,rt.Z)(_t,2),rn=Bt[0],Ot=Bt[1];return Ve.useEffect(function(){var bt=de(ke||[],We||[],Fe);(bt==null?void 0:bt.index)!==void 0&&(xe==null||xe(bt.index),Ot(We[bt.index])),et(We)},[We]),[rn]}var ye=we(16089),Ce=(typeof navigator=="undefined"?"undefined":(0,_e.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),je=Ce,Te=function(We,Fe,xe,Ne){var Ye=(0,Ve.useRef)(!1),ke=(0,Ve.useRef)(null);function et(){clearTimeout(ke.current),Ye.current=!0,ke.current=setTimeout(function(){Ye.current=!1},50)}var _t=(0,Ve.useRef)({top:We,bottom:Fe,left:xe,right:Ne});return _t.current.top=We,_t.current.bottom=Fe,_t.current.left=xe,_t.current.right=Ne,function(Bt,rn){var Ot=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,bt=Bt?rn<0&&_t.current.left||rn>0&&_t.current.right:rn<0&&_t.current.top||rn>0&&_t.current.bottom;return Ot&&bt?(clearTimeout(ke.current),Ye.current=!1):(!bt||Ye.current)&&et(),!Ye.current&&bt}};function Ie(We,Fe,xe,Ne,Ye,ke,et){var _t=(0,Ve.useRef)(0),Bt=(0,Ve.useRef)(null),rn=(0,Ve.useRef)(null),Ot=(0,Ve.useRef)(!1),bt=Te(Fe,xe,Ne,Ye);function Wt(Ci,Jn){if(ye.Z.cancel(Bt.current),!bt(!1,Jn)){var Di=Ci;if(!Di._virtualHandled)Di._virtualHandled=!0;else return;_t.current+=Jn,rn.current=Jn,je||Di.preventDefault(),Bt.current=(0,ye.Z)(function(){var ui=Ot.current?10:1;et(_t.current*ui,!1),_t.current=0})}}function Xt(Ci,Jn){et(Jn,!0),je||Ci.preventDefault()}var pn=(0,Ve.useRef)(null),$n=(0,Ve.useRef)(null);function Cn(Ci){if(We){ye.Z.cancel($n.current),$n.current=(0,ye.Z)(function(){pn.current=null},2);var Jn=Ci.deltaX,Di=Ci.deltaY,ui=Ci.shiftKey,Bi=Jn,Ui=Di;(pn.current==="sx"||!pn.current&&ui&&Di&&!Jn)&&(Bi=Di,Ui=0,pn.current="sx");var ir=Math.abs(Bi),Ir=Math.abs(Ui);pn.current===null&&(pn.current=ke&&ir>Ir?"x":"y"),pn.current==="y"?Wt(Ci,Ui):Xt(Ci,Bi)}}function Ln(Ci){We&&(Ot.current=Ci.detail===rn.current)}return[Cn,Ln]}function Oe(We,Fe,xe,Ne){var Ye=Ve.useMemo(function(){return[new Map,[]]},[We,xe.id,Ne]),ke=(0,rt.Z)(Ye,2),et=ke[0],_t=ke[1],Bt=function(Ot){var bt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ot,Wt=et.get(Ot),Xt=et.get(bt);if(Wt===void 0||Xt===void 0)for(var pn=We.length,$n=_t.length;$n<pn;$n+=1){var Cn,Ln=We[$n],Ci=Fe(Ln);et.set(Ci,$n);var Jn=(Cn=xe.get(Ci))!==null&&Cn!==void 0?Cn:Ne;if(_t[$n]=(_t[$n-1]||0)+Jn,Ci===Ot&&(Wt=$n),Ci===bt&&(Xt=$n),Wt!==void 0&&Xt!==void 0)break}return{top:_t[Wt-1]||0,bottom:_t[Xt]}};return Bt}var Re=we(99153),nt=we(84851),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,nt.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}(),wt=ot;function gt(We){var Fe=parseFloat(We);return isNaN(Fe)?0:Fe}function Dt(We,Fe,xe){var Ne=Ve.useState(0),Ye=(0,rt.Z)(Ne,2),ke=Ye[0],et=Ye[1],_t=(0,Ve.useRef)(new Map),Bt=(0,Ve.useRef)(new wt),rn=(0,Ve.useRef)(0);function Ot(){rn.current+=1}function bt(){var Xt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Ot();var pn=function(){var Ln=!1;_t.current.forEach(function(Ci,Jn){if(Ci&&Ci.offsetParent){var Di=Ci.offsetHeight,ui=getComputedStyle(Ci),Bi=ui.marginTop,Ui=ui.marginBottom,ir=gt(Bi),Ir=gt(Ui),qi=Di+ir+Ir;Bt.current.get(Jn)!==qi&&(Bt.current.set(Jn,qi),Ln=!0)}}),Ln&&et(function(Ci){return Ci+1})};if(Xt)pn();else{rn.current+=1;var $n=rn.current;Promise.resolve().then(function(){$n===rn.current&&pn()})}}function Wt(Xt,pn){var $n=We(Xt),Cn=_t.current.get($n);pn?(_t.current.set($n,pn),bt()):_t.current.delete($n),!Cn!=!pn&&(pn?Fe==null||Fe(Xt):xe==null||xe(Xt))}return(0,Ve.useEffect)(function(){return Ot},[]),[Wt,bt,Bt.current,ke]}var Lt=14/15;function It(We,Fe,xe){var Ne=(0,Ve.useRef)(!1),Ye=(0,Ve.useRef)(0),ke=(0,Ve.useRef)(0),et=(0,Ve.useRef)(null),_t=(0,Ve.useRef)(null),Bt,rn=function(Xt){if(Ne.current){var pn=Math.ceil(Xt.touches[0].pageX),$n=Math.ceil(Xt.touches[0].pageY),Cn=Ye.current-pn,Ln=ke.current-$n,Ci=Math.abs(Cn)>Math.abs(Ln);Ci?Ye.current=pn:ke.current=$n;var Jn=xe(Ci,Ci?Cn:Ln,!1,Xt);Jn&&Xt.preventDefault(),clearInterval(_t.current),Jn&&(_t.current=setInterval(function(){Ci?Cn*=Lt:Ln*=Lt;var Di=Math.floor(Ci?Cn:Ln);(!xe(Ci,Di,!0)||Math.abs(Di)<=.1)&&clearInterval(_t.current)},16))}},Ot=function(){Ne.current=!1,Bt()},bt=function(Xt){Bt(),Xt.touches.length===1&&!Ne.current&&(Ne.current=!0,Ye.current=Math.ceil(Xt.touches[0].pageX),ke.current=Math.ceil(Xt.touches[0].pageY),et.current=Xt.target,et.current.addEventListener("touchmove",rn,{passive:!1}),et.current.addEventListener("touchend",Ot,{passive:!0}))};Bt=function(){et.current&&(et.current.removeEventListener("touchmove",rn),et.current.removeEventListener("touchend",Ot))},(0,xt.Z)(function(){return We&&Fe.current.addEventListener("touchstart",bt,{passive:!0}),function(){var Wt;(Wt=Fe.current)===null||Wt===void 0||Wt.removeEventListener("touchstart",bt),Bt(),clearInterval(_t.current)}},[We])}function Tt(We){return Math.floor(Math.pow(We,.5))}function nn(We,Fe){var xe="touches"in We?We.touches[0]:We;return xe[Fe?"pageX":"pageY"]-window[Fe?"scrollX":"scrollY"]}function at(We,Fe,xe){Ve.useEffect(function(){var Ne=Fe.current;if(We&&Ne){var Ye=!1,ke,et,_t=function(){ye.Z.cancel(ke)},Bt=function Wt(){_t(),ke=(0,ye.Z)(function(){xe(et),Wt()})},rn=function(Xt){if(!(Xt.target.draggable||Xt.button!==0)){var pn=Xt;pn._virtualHandled||(pn._virtualHandled=!0,Ye=!0)}},Ot=function(){Ye=!1,_t()},bt=function(Xt){if(Ye){var pn=nn(Xt,!1),$n=Ne.getBoundingClientRect(),Cn=$n.top,Ln=$n.bottom;if(pn<=Cn){var Ci=Cn-pn;et=-Tt(Ci),Bt()}else if(pn>=Ln){var Jn=pn-Ln;et=Tt(Jn),Bt()}else _t()}};return Ne.addEventListener("mousedown",rn),Ne.ownerDocument.addEventListener("mouseup",Ot),Ne.ownerDocument.addEventListener("mousemove",bt),function(){Ne.removeEventListener("mousedown",rn),Ne.ownerDocument.removeEventListener("mouseup",Ot),Ne.ownerDocument.removeEventListener("mousemove",bt),_t()}}},[We])}var He=10;function Rt(We,Fe,xe,Ne,Ye,ke,et,_t){var Bt=Ve.useRef(),rn=Ve.useState(null),Ot=(0,rt.Z)(rn,2),bt=Ot[0],Wt=Ot[1];return(0,xt.Z)(function(){if(bt&&bt.times<He){if(!We.current){Wt(function(io){return(0,lt.Z)({},io)});return}ke();var Xt=bt.targetAlign,pn=bt.originAlign,$n=bt.index,Cn=bt.offset,Ln=We.current.clientHeight,Ci=!1,Jn=Xt,Di=null;if(Ln){for(var ui=Xt||pn,Bi=0,Ui=0,ir=0,Ir=Math.min(Fe.length-1,$n),qi=0;qi<=Ir;qi+=1){var ri=Ye(Fe[qi]);Ui=Bi;var co=xe.get(ri);ir=Ui+(co===void 0?Ne:co),Bi=ir}for(var Qr=ui==="top"?Cn:Ln-Cn,to=Ir;to>=0;to-=1){var no=Ye(Fe[to]),xo=xe.get(no);if(xo===void 0){Ci=!0;break}if(Qr-=xo,Qr<=0)break}switch(ui){case"top":Di=Ui-Cn;break;case"bottom":Di=ir-Ln+Cn;break;default:{var lo=We.current.scrollTop,Er=lo+Ln;Ui<lo?Jn="top":ir>Er&&(Jn="bottom")}}Di!==null&&et(Di),Di!==bt.lastTop&&(Ci=!0)}Ci&&Wt((0,lt.Z)((0,lt.Z)({},bt),{},{times:bt.times+1,targetAlign:Jn,lastTop:Di}))}},[bt,We.current]),function(Xt){if(Xt==null){_t();return}if(ye.Z.cancel(Bt.current),typeof Xt=="number")et(Xt);else if(Xt&&(0,_e.Z)(Xt)==="object"){var pn,$n=Xt.align;"index"in Xt?pn=Xt.index:pn=Fe.findIndex(function(Ci){return Ye(Ci)===Xt.key});var Cn=Xt.offset,Ln=Cn===void 0?0:Cn;Wt({times:0,index:pn,offset:Ln,originAlign:$n})}}}var Zt=Ve.forwardRef(function(We,Fe){var xe=We.prefixCls,Ne=We.rtl,Ye=We.scrollOffset,ke=We.scrollRange,et=We.onStartMove,_t=We.onStopMove,Bt=We.onScroll,rn=We.horizontal,Ot=We.spinSize,bt=We.containerSize,Wt=We.style,Xt=We.thumbStyle,pn=We.showScrollBar,$n=Ve.useState(!1),Cn=(0,rt.Z)($n,2),Ln=Cn[0],Ci=Cn[1],Jn=Ve.useState(null),Di=(0,rt.Z)(Jn,2),ui=Di[0],Bi=Di[1],Ui=Ve.useState(null),ir=(0,rt.Z)(Ui,2),Ir=ir[0],qi=ir[1],ri=!Ne,co=Ve.useRef(),Qr=Ve.useRef(),to=Ve.useState(pn),no=(0,rt.Z)(to,2),xo=no[0],lo=no[1],Er=Ve.useRef(),io=function(){pn===!0||pn===!1||(clearTimeout(Er.current),lo(!0),Er.current=setTimeout(function(){lo(!1)},3e3))},Le=ke-bt||0,Pn=bt-Ot||0,Un=Ve.useMemo(function(){if(Ye===0||Le===0)return 0;var mn=Ye/Le;return mn*Pn},[Ye,Le,Pn]),gi=function(Zi){Zi.stopPropagation(),Zi.preventDefault()},mi=Ve.useRef({top:Un,dragging:Ln,pageY:ui,startTop:Ir});mi.current={top:Un,dragging:Ln,pageY:ui,startTop:Ir};var ti=function(Zi){Ci(!0),Bi(nn(Zi,rn)),qi(mi.current.top),et(),Zi.stopPropagation(),Zi.preventDefault()};Ve.useEffect(function(){var mn=function(Zn){Zn.preventDefault()},Zi=co.current,ji=Qr.current;return Zi.addEventListener("touchstart",mn,{passive:!1}),ji.addEventListener("touchstart",ti,{passive:!1}),function(){Zi.removeEventListener("touchstart",mn),ji.removeEventListener("touchstart",ti)}},[]);var Yi=Ve.useRef();Yi.current=Le;var pr=Ve.useRef();pr.current=Pn,Ve.useEffect(function(){if(Ln){var mn,Zi=function(Zn){var Ti=mi.current,fr=Ti.dragging,Vr=Ti.pageY,ci=Ti.startTop;ye.Z.cancel(mn);var ut=co.current.getBoundingClientRect(),Nt=bt/(rn?ut.width:ut.height);if(fr){var Rn=(nn(Zn,rn)-Vr)*Nt,In=ci;!ri&&rn?In-=Rn:In+=Rn;var Qt=Yi.current,qn=pr.current,Nn=qn?In/qn:0,Vn=Math.ceil(Nn*Qt);Vn=Math.max(Vn,0),Vn=Math.min(Vn,Qt),mn=(0,ye.Z)(function(){Bt(Vn,rn)})}},ji=function(){Ci(!1),_t()};return window.addEventListener("mousemove",Zi,{passive:!0}),window.addEventListener("touchmove",Zi,{passive:!0}),window.addEventListener("mouseup",ji,{passive:!0}),window.addEventListener("touchend",ji,{passive:!0}),function(){window.removeEventListener("mousemove",Zi),window.removeEventListener("touchmove",Zi),window.removeEventListener("mouseup",ji),window.removeEventListener("touchend",ji),ye.Z.cancel(mn)}}},[Ln]),Ve.useEffect(function(){return io(),function(){clearTimeout(Er.current)}},[Ye]),Ve.useImperativeHandle(Fe,function(){return{delayHidden:io}});var un="".concat(xe,"-scrollbar"),an={position:"absolute",visibility:xo?null:"hidden"},jt={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return rn?(an.height=8,an.left=0,an.right=0,an.bottom=0,jt.height="100%",jt.width=Ot,ri?jt.left=Un:jt.right=Un):(an.width=8,an.top=0,an.bottom=0,ri?an.right=0:an.left=0,jt.width="100%",jt.height=Ot,jt.top=Un),Ve.createElement("div",{ref:co,className:yt()(un,(0,it.Z)((0,it.Z)((0,it.Z)({},"".concat(un,"-horizontal"),rn),"".concat(un,"-vertical"),!rn),"".concat(un,"-visible"),xo)),style:(0,lt.Z)((0,lt.Z)({},an),Wt),onMouseDown:gi,onMouseMove:io},Ve.createElement("div",{ref:Qr,className:yt()("".concat(un,"-thumb"),(0,it.Z)({},"".concat(un,"-thumb-moving"),Ln)),style:(0,lt.Z)((0,lt.Z)({},jt),Xt),onMouseDown:ti}))}),Yt=Zt,Mt=20;function zt(){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 on=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],Dn=[],kt={overflowY:"auto",overflowAnchor:"none"};function vt(We,Fe){var xe=We.prefixCls,Ne=xe===void 0?"rc-virtual-list":xe,Ye=We.className,ke=We.height,et=We.itemHeight,_t=We.fullHeight,Bt=_t===void 0?!0:_t,rn=We.style,Ot=We.data,bt=We.children,Wt=We.itemKey,Xt=We.virtual,pn=We.direction,$n=We.scrollWidth,Cn=We.component,Ln=Cn===void 0?"div":Cn,Ci=We.onScroll,Jn=We.onVirtualScroll,Di=We.onVisibleChange,ui=We.innerProps,Bi=We.extraRender,Ui=We.styles,ir=We.showScrollBar,Ir=ir===void 0?"optional":ir,qi=(0,ze.Z)(We,on),ri=Ve.useCallback(function(Ft){return typeof Wt=="function"?Wt(Ft):Ft==null?void 0:Ft[Wt]},[Wt]),co=Dt(ri,null,null),Qr=(0,rt.Z)(co,4),to=Qr[0],no=Qr[1],xo=Qr[2],lo=Qr[3],Er=!!(Xt!==!1&&ke&&et),io=Ve.useMemo(function(){return Object.values(xo.maps).reduce(function(Ft,ln){return Ft+ln},0)},[xo.id,xo.maps]),Le=Er&&Ot&&(Math.max(et*Ot.length,io)>ke||!!$n),Pn=pn==="rtl",Un=yt()(Ne,(0,it.Z)({},"".concat(Ne,"-rtl"),Pn),Ye),gi=Ot||Dn,mi=(0,Ve.useRef)(),ti=(0,Ve.useRef)(),Yi=(0,Ve.useRef)(),pr=(0,Ve.useState)(0),un=(0,rt.Z)(pr,2),an=un[0],jt=un[1],mn=(0,Ve.useState)(0),Zi=(0,rt.Z)(mn,2),ji=Zi[0],lr=Zi[1],Zn=(0,Ve.useState)(!1),Ti=(0,rt.Z)(Zn,2),fr=Ti[0],Vr=Ti[1],ci=function(){Vr(!0)},ut=function(){Vr(!1)},Nt={getKey:ri};function Rn(Ft){jt(function(ln){var _n;typeof Ft=="function"?_n=Ft(ln):_n=Ft;var yn=rr(_n);return mi.current.scrollTop=yn,yn})}var In=(0,Ve.useRef)({start:0,end:gi.length}),Qt=(0,Ve.useRef)(),qn=pe(gi,ri),Nn=(0,rt.Z)(qn,1),Vn=Nn[0];Qt.current=Vn;var Pi=Ve.useMemo(function(){if(!Er)return{scrollHeight:void 0,start:0,end:gi.length-1,offset:void 0};if(!Le){var Ft;return{scrollHeight:((Ft=ti.current)===null||Ft===void 0?void 0:Ft.offsetHeight)||0,start:0,end:gi.length-1,offset:void 0}}for(var ln=0,_n,yn,cn,En=gi.length,be=0;be<En;be+=1){var dt=gi[be],Xe=ri(dt),Pt=xo.get(Xe),Et=ln+(Pt===void 0?et:Pt);Et>=an&&_n===void 0&&(_n=be,yn=ln),Et>an+ke&&cn===void 0&&(cn=be),ln=Et}return _n===void 0&&(_n=0,yn=0,cn=Math.ceil(ke/et)),cn===void 0&&(cn=gi.length-1),cn=Math.min(cn+1,gi.length-1),{scrollHeight:ln,start:_n,end:cn,offset:yn}},[Le,Er,an,gi,lo,ke]),pi=Pi.scrollHeight,tn=Pi.start,Wi=Pi.end,yr=Pi.offset;In.current.start=tn,In.current.end=Wi,Ve.useLayoutEffect(function(){var Ft=xo.getRecord();if(Ft.size===1){var ln=Array.from(Ft.keys())[0],_n=Ft.get(ln),yn=gi[tn];if(yn&&_n===void 0){var cn=ri(yn);if(cn===ln){var En=xo.get(ln),be=En-et;Rn(function(dt){return dt+be})}}}xo.resetRecord()},[pi]);var Pr=Ve.useState({width:0,height:ke}),Yn=(0,rt.Z)(Pr,2),Oi=Yn[0],Dr=Yn[1],jr=function(ln){Dr({width:ln.offsetWidth,height:ln.offsetHeight})},oo=(0,Ve.useRef)(),Kt=(0,Ve.useRef)(),bi=Ve.useMemo(function(){return zt(Oi.width,$n)},[Oi.width,$n]),tr=Ve.useMemo(function(){return zt(Oi.height,pi)},[Oi.height,pi]),Mi=pi-ke,kr=(0,Ve.useRef)(Mi);kr.current=Mi;function rr(Ft){var ln=Ft;return Number.isNaN(kr.current)||(ln=Math.min(ln,kr.current)),ln=Math.max(ln,0),ln}var Lr=an<=0,Tr=an>=Mi,Zr=ji<=0,uo=ji>=$n,An=Te(Lr,Tr,Zr,uo),mo=function(){return{x:Pn?-ji:ji,y:an}},Fn=(0,Ve.useRef)(mo()),ai=(0,De.zX)(function(Ft){if(Jn){var ln=(0,lt.Z)((0,lt.Z)({},mo()),Ft);(Fn.current.x!==ln.x||Fn.current.y!==ln.y)&&(Jn(ln),Fn.current=ln)}});function _r(Ft,ln){var _n=Ft;ln?((0,ct.flushSync)(function(){lr(_n)}),ai()):Rn(_n)}function Hr(Ft){var ln=Ft.currentTarget.scrollTop;ln!==an&&Rn(ln),Ci==null||Ci(Ft),ai()}var Oo=function(ln){var _n=ln,yn=$n?$n-Oi.width:0;return _n=Math.max(_n,0),_n=Math.min(_n,yn),_n},Kr=(0,De.zX)(function(Ft,ln){ln?((0,ct.flushSync)(function(){lr(function(_n){var yn=_n+(Pn?-Ft:Ft);return Oo(yn)})}),ai()):Rn(function(_n){var yn=_n+Ft;return yn})}),Or=Ie(Er,Lr,Tr,Zr,uo,!!$n,Kr),Bo=(0,rt.Z)(Or,2),qt=Bo[0],vn=Bo[1];It(Er,mi,function(Ft,ln,_n,yn){var cn=yn;return An(Ft,ln,_n)?!1:!cn||!cn._virtualHandled?(cn&&(cn._virtualHandled=!0),qt({preventDefault:function(){},deltaX:Ft?ln:0,deltaY:Ft?0:ln}),!0):!1}),at(Le,mi,function(Ft){Rn(function(ln){return ln+Ft})}),(0,xt.Z)(function(){function Ft(_n){var yn=Lr&&_n.detail<0,cn=Tr&&_n.detail>0;Er&&!yn&&!cn&&_n.preventDefault()}var ln=mi.current;return ln.addEventListener("wheel",qt,{passive:!1}),ln.addEventListener("DOMMouseScroll",vn,{passive:!0}),ln.addEventListener("MozMousePixelScroll",Ft,{passive:!1}),function(){ln.removeEventListener("wheel",qt),ln.removeEventListener("DOMMouseScroll",vn),ln.removeEventListener("MozMousePixelScroll",Ft)}},[Er,Lr,Tr]),(0,xt.Z)(function(){if($n){var Ft=Oo(ji);lr(Ft),ai({x:Ft})}},[Oi.width,$n]);var Ht=function(){var ln,_n;(ln=oo.current)===null||ln===void 0||ln.delayHidden(),(_n=Kt.current)===null||_n===void 0||_n.delayHidden()},Ze=Rt(mi,gi,xo,et,ri,function(){return no(!0)},Rn,Ht);Ve.useImperativeHandle(Fe,function(){return{nativeElement:Yi.current,getScrollInfo:mo,scrollTo:function(ln){function _n(yn){return yn&&(0,_e.Z)(yn)==="object"&&("left"in yn||"top"in yn)}_n(ln)?(ln.left!==void 0&&lr(Oo(ln.left)),Ze(ln.top)):Ze(ln)}}}),(0,xt.Z)(function(){if(Di){var Ft=gi.slice(tn,Wi+1);Di(Ft,gi)}},[tn,Wi,gi]);var Xn=Oe(gi,ri,xo,et),Fi=Bi==null?void 0:Bi({start:tn,end:Wi,virtual:Le,offsetX:ji,offsetY:yr,rtl:Pn,getSize:Xn}),Qi=ue(gi,tn,Wi,$n,ji,to,bt,Nt),Qe=null;ke&&(Qe=(0,lt.Z)((0,it.Z)({},Bt?"height":"maxHeight",ke),kt),Er&&(Qe.overflowY="hidden",$n&&(Qe.overflowX="hidden"),fr&&(Qe.pointerEvents="none")));var Ut={};return Pn&&(Ut.dir="rtl"),Ve.createElement("div",(0,ve.Z)({ref:Yi,style:(0,lt.Z)((0,lt.Z)({},rn),{},{position:"relative"}),className:Un},Ut,qi),Ve.createElement(tt.Z,{onResize:jr},Ve.createElement(Ln,{className:"".concat(Ne,"-holder"),style:Qe,ref:mi,onScroll:Hr,onMouseEnter:Ht},Ve.createElement(ne,{prefixCls:Ne,height:pi,offsetX:ji,offsetY:yr,scrollWidth:$n,onInnerResize:no,ref:ti,innerProps:ui,rtl:Pn,extra:Fi},Qi))),Le&&pi>ke&&Ve.createElement(Yt,{ref:oo,prefixCls:Ne,scrollOffset:an,scrollRange:pi,rtl:Pn,onScroll:_r,onStartMove:ci,onStopMove:ut,spinSize:tr,containerSize:Oi.height,style:Ui==null?void 0:Ui.verticalScrollBar,thumbStyle:Ui==null?void 0:Ui.verticalScrollBarThumb,showScrollBar:Ir}),Le&&$n>Oi.width&&Ve.createElement(Yt,{ref:Kt,prefixCls:Ne,scrollOffset:ji,scrollRange:$n,rtl:Pn,onScroll:_r,onStartMove:ci,onStopMove:ut,spinSize:bi,containerSize:Oi.width,horizontal:!0,style:Ui==null?void 0:Ui.horizontalScrollBar,thumbStyle:Ui==null?void 0:Ui.horizontalScrollBarThumb,showScrollBar:Ir}))}var hn=Ve.forwardRef(vt);hn.displayName="List";var li=hn,yi=li},2637:function(gn,en,we){"use strict";Object.defineProperty(en,"__esModule",{value:!0}),Object.defineProperty(en,"DraggableCore",{enumerable:!0,get:function(){return yt.default}}),en.default=void 0;var ve=Ve(we(59301)),_e=De(we(12708)),lt=De(we(4676)),it=De(we(57780)),rt=we(13957),ze=we(60976),Ue=we(36641),yt=De(we(80486)),tt=De(we(94187));function De(se){return se&&se.__esModule?se:{default:se}}function xt(se){if(typeof WeakMap!="function")return null;var de=new WeakMap,pe=new WeakMap;return(xt=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=xt(de);if(pe&&pe.has(se))return pe.get(se);var ye={},Ce=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var je in se)if(je!=="default"&&Object.prototype.hasOwnProperty.call(se,je)){var Te=Ce?Object.getOwnPropertyDescriptor(se,je):null;Te&&(Te.get||Te.set)?Object.defineProperty(ye,je,Te):ye[je]=se[je]}return ye.default=se,pe&&pe.set(se,ye),ye}function ct(){return ct=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},ct.apply(this,arguments)}function Ee(se,de,pe){return de=ne(de),de in se?Object.defineProperty(se,de,{value:pe,enumerable:!0,configurable:!0,writable:!0}):se[de]=pe,se}function ne(se){var de=te(se,"string");return typeof de=="symbol"?de:String(de)}function te(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,tt.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,tt.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,tt.default)("Draggable: onDrag: %j",ye);const Ce=(0,ze.createDraggableData)(this,ye),je={x:Ce.x,y:Ce.y,slackX:0,slackY:0};if(this.props.bounds){const{x:Ie,y:Oe}=je;je.x+=this.state.slackX,je.y+=this.state.slackY;const[Re,nt]=(0,ze.getBoundPosition)(this,je.x,je.y);je.x=Re,je.y=nt,je.slackX=this.state.slackX+(Ie-je.x),je.slackY=this.state.slackY+(Oe-je.y),Ce.x=je.x,Ce.y=je.y,Ce.deltaX=je.x-this.state.x,Ce.deltaY=je.y-this.state.y}if(this.props.onDrag(pe,Ce)===!1)return!1;this.setState(je)}),Ee(this,"onDragStop",(pe,ye)=>{if(!this.state.dragging||this.props.onStop(pe,(0,ze.createDraggableData)(this,ye))===!1)return!1;(0,tt.default)("Draggable: onDragStop: %j",ye);const je={dragging:!1,slackX:0,slackY:0};if(!!this.props.position){const{x:Ie,y:Oe}=this.props.position;je.x=Ie,je.y=Oe}this.setState(je)}),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:lt.default.findDOMNode(this)}render(){const at=this.props,{axis:de,bounds:pe,children:ye,defaultPosition:Ce,defaultClassName:je,defaultClassNameDragging:Te,defaultClassNameDragged:Ie,position:Oe,positionOffset:Re,scale:nt}=at,ot=Px(at,["axis","bounds","children","defaultPosition","defaultClassName","defaultClassNameDragging","defaultClassNameDragged","position","positionOffset","scale"]);let wt={},gt=null;const Lt=!!!Oe||this.state.dragging,It=Oe||Ce,Tt={x:(0,ze.canDragX)(this)&&Lt?this.state.x:It.x,y:(0,ze.canDragY)(this)&&Lt?this.state.y:It.y};this.state.isElementSVG?gt=(0,rt.createSVGTransform)(Tt,Re):wt=(0,rt.createCSSTransform)(Tt,Re);const nn=(0,it.default)(ye.props.className||"",je,{[Te]:this.state.dragging,[Ie]:this.state.dragged});return ve.createElement(yt.default,ct({},ot,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),ve.cloneElement(ve.Children.only(ye),{className:nn,style:bd(bd({},ye.props.style),wt),transform:gt}))}}en.default=ue,Ee(ue,"displayName","Draggable"),Ee(ue,"propTypes",Xy(bd({},yt.default.propTypes),{axis:_e.default.oneOf(["both","x","y","none"]),bounds:_e.default.oneOfType([_e.default.shape({left:_e.default.number,right:_e.default.number,top:_e.default.number,bottom:_e.default.number}),_e.default.string,_e.default.oneOf([!1])]),defaultClassName:_e.default.string,defaultClassNameDragging:_e.default.string,defaultClassNameDragged:_e.default.string,defaultPosition:_e.default.shape({x:_e.default.number,y:_e.default.number}),positionOffset:_e.default.shape({x:_e.default.oneOfType([_e.default.number,_e.default.string]),y:_e.default.oneOfType([_e.default.number,_e.default.string])}),position:_e.default.shape({x:_e.default.number,y:_e.default.number}),className:Ue.dontSetMe,style:Ue.dontSetMe,transform:Ue.dontSetMe})),Ee(ue,"defaultProps",Xy(bd({},yt.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(gn,en,we){"use strict";Object.defineProperty(en,"__esModule",{value:!0}),en.default=void 0;var ve=De(we(59301)),_e=yt(we(12708)),lt=yt(we(4676)),it=we(13957),rt=we(60976),ze=we(36641),Ue=yt(we(94187));function yt(ue){return ue&&ue.__esModule?ue:{default:ue}}function tt(ue){if(typeof WeakMap!="function")return null;var se=new WeakMap,de=new WeakMap;return(tt=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=tt(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 je=ye?Object.getOwnPropertyDescriptor(ue,Ce):null;je&&(je.get||je.set)?Object.defineProperty(pe,Ce,je):pe[Ce]=ue[Ce]}return pe.default=ue,de&&de.set(ue,pe),pe}function xt(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=ct(ue,"string");return typeof se=="symbol"?se:String(se)}function ct(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 ne=Ee.mouse;class te extends ve.Component{constructor(){super(...arguments),xt(this,"dragging",!1),xt(this,"lastX",NaN),xt(this,"lastY",NaN),xt(this,"touchIdentifier",null),xt(this,"mounted",!1),xt(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,rt.getControlPosition)(se,ye,this);if(Ce==null)return;const{x:je,y:Te}=Ce,Ie=(0,rt.createCoreData)(this,je,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=je,this.lastY=Te,(0,it.addEvent)(pe,ne.move,this.handleDrag),(0,it.addEvent)(pe,ne.stop,this.handleDragStop))}),xt(this,"handleDrag",se=>{const de=(0,rt.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,rt.snapToGrid)(this.props.grid,Te,Ie),!Te&&!Ie)return;pe=this.lastX+Te,ye=this.lastY+Ie}const Ce=(0,rt.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}),xt(this,"handleDragStop",se=>{if(!this.dragging)return;const de=(0,rt.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,rt.snapToGrid)(this.props.grid,Ie,Oe),pe=this.lastX+Ie,ye=this.lastY+Oe}const Ce=(0,rt.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,ne.move,this.handleDrag),(0,it.removeEvent)(Te.ownerDocument,ne.stop,this.handleDragStop))}),xt(this,"onMouseDown",se=>(ne=Ee.mouse,this.handleDragStart(se))),xt(this,"onMouseUp",se=>(ne=Ee.mouse,this.handleDragStop(se))),xt(this,"onTouchStart",se=>(ne=Ee.touch,this.handleDragStart(se))),xt(this,"onTouchEnd",se=>(ne=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:lt.default.findDOMNode(this)}render(){return ve.cloneElement(ve.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}}en.default=te,xt(te,"displayName","DraggableCore"),xt(te,"propTypes",{allowAnyClick:_e.default.bool,children:_e.default.node.isRequired,disabled:_e.default.bool,enableUserSelectHack:_e.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:_e.default.arrayOf(_e.default.number),handle:_e.default.string,cancel:_e.default.string,nodeRef:_e.default.object,onStart:_e.default.func,onDrag:_e.default.func,onStop:_e.default.func,onMouseDown:_e.default.func,scale:_e.default.number,className:ze.dontSetMe,style:ze.dontSetMe,transform:ze.dontSetMe}),xt(te,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1})},12911:function(gn,en,we){"use strict";const{default:ve,DraggableCore:_e}=we(2637);gn.exports=ve,gn.exports.default=ve,gn.exports.DraggableCore=_e},13957:function(gn,en,we){"use strict";Object.defineProperty(en,"__esModule",{value:!0}),en.addClassName=Ce,en.addEvent=yt,en.addUserSelectStyles=pe,en.createCSSTransform=ne,en.createSVGTransform=te,en.getTouch=se,en.getTouchIdentifier=de,en.getTranslation=ue,en.innerHeight=Ve,en.innerWidth=ct,en.matchesSelector=ze,en.matchesSelectorAndParentsTo=Ue,en.offsetXYFromParent=Ee,en.outerHeight=De,en.outerWidth=xt,en.removeClassName=je,en.removeEvent=tt,en.removeUserSelectStyles=ye;var ve=we(36641),_e=it(we(32092));function lt(Te){if(typeof WeakMap!="function")return null;var Ie=new WeakMap,Oe=new WeakMap;return(lt=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=lt(Ie);if(Oe&&Oe.has(Te))return Oe.get(Te);var Re={},nt=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var ot in Te)if(ot!=="default"&&Object.prototype.hasOwnProperty.call(Te,ot)){var wt=nt?Object.getOwnPropertyDescriptor(Te,ot):null;wt&&(wt.get||wt.set)?Object.defineProperty(Re,ot,wt):Re[ot]=Te[ot]}return Re.default=Te,Oe&&Oe.set(Te,Re),Re}let rt="";function ze(Te,Ie){return rt||(rt=(0,ve.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(Oe){return(0,ve.isFunction)(Te[Oe])})),(0,ve.isFunction)(Te[rt])?Te[rt](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 yt(Te,Ie,Oe,Re){if(!Te)return;const nt=bd({capture:!0},Re);Te.addEventListener?Te.addEventListener(Ie,Oe,nt):Te.attachEvent?Te.attachEvent("on"+Ie,Oe):Te["on"+Ie]=Oe}function tt(Te,Ie,Oe,Re){if(!Te)return;const nt=bd({capture:!0},Re);Te.removeEventListener?Te.removeEventListener(Ie,Oe,nt):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 xt(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 ct(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 nt=Ie===Ie.ownerDocument.body?{left:0,top:0}:Ie.getBoundingClientRect(),ot=(Te.clientX+Ie.scrollLeft-nt.left)/Oe,wt=(Te.clientY+Ie.scrollTop-nt.top)/Oe;return{x:ot,y:wt}}function ne(Te,Ie){const Oe=ue(Te,Ie,"px");return{[(0,_e.browserPrefixToKey)("transform",_e.default)]:Oe}}function te(Te,Ie){return ue(Te,Ie,"")}function ue(Te,Ie,Oe){let{x:Re,y:nt}=Te,ot="translate(".concat(Re).concat(Oe,",").concat(nt).concat(Oe,")");if(Ie){const wt="".concat(typeof Ie.x=="string"?Ie.x:Ie.x+Oe),gt="".concat(typeof Ie.y=="string"?Ie.y:Ie.y+Oe);ot="translate(".concat(wt,", ").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&&je(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 je(Te,Ie){Te.classList?Te.classList.remove(Ie):Te.className=Te.className.replace(new RegExp("(?:^|\\s)".concat(Ie,"(?!\\S)"),"g"),"")}},32092:function(gn,en){"use strict";Object.defineProperty(en,"__esModule",{value:!0}),en.browserPrefixToKey=_e,en.browserPrefixToStyle=lt,en.default=void 0,en.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 yt=(ze=window.document)===null||ze===void 0||(ze=ze.documentElement)===null||ze===void 0?void 0:ze.style;if(!yt||Ue in yt)return"";for(let tt=0;tt<we.length;tt++)if(_e(Ue,we[tt])in yt)return we[tt];return""}function _e(ze,Ue){return Ue?"".concat(Ue).concat(it(ze)):ze}function lt(ze,Ue){return Ue?"-".concat(Ue.toLowerCase(),"-").concat(ze):ze}function it(ze){let Ue="",yt=!0;for(let tt=0;tt<ze.length;tt++)yt?(Ue+=ze[tt].toUpperCase(),yt=!1):ze[tt]==="-"?yt=!0:Ue+=ze[tt];return Ue}var rt=en.default=ve()},94187:function(gn,en){"use strict";Object.defineProperty(en,"__esModule",{value:!0}),en.default=we;function we(){}},60976:function(gn,en,we){"use strict";Object.defineProperty(en,"__esModule",{value:!0}),en.canDragX=rt,en.canDragY=ze,en.createCoreData=yt,en.createDraggableData=tt,en.getBoundPosition=lt,en.getControlPosition=Ue,en.snapToGrid=it;var ve=we(36641),_e=we(13957);function lt(Ve,ct,Ee){if(!Ve.props.bounds)return[ct,Ee];let{bounds:ne}=Ve.props;ne=typeof ne=="string"?ne:De(ne);const te=xt(Ve);if(typeof ne=="string"){const{ownerDocument:ue}=te,se=ue.defaultView;let de;if(ne==="parent"?de=te.parentNode:de=ue.querySelector(ne),!(de instanceof se.HTMLElement))throw new Error('Bounds selector "'+ne+'" could not find an element.');const pe=de,ye=se.getComputedStyle(te),Ce=se.getComputedStyle(pe);ne={left:-te.offsetLeft+(0,ve.int)(Ce.paddingLeft)+(0,ve.int)(ye.marginLeft),top:-te.offsetTop+(0,ve.int)(Ce.paddingTop)+(0,ve.int)(ye.marginTop),right:(0,_e.innerWidth)(pe)-(0,_e.outerWidth)(te)-te.offsetLeft+(0,ve.int)(Ce.paddingRight)-(0,ve.int)(ye.marginRight),bottom:(0,_e.innerHeight)(pe)-(0,_e.outerHeight)(te)-te.offsetTop+(0,ve.int)(Ce.paddingBottom)-(0,ve.int)(ye.marginBottom)}}return(0,ve.isNum)(ne.right)&&(ct=Math.min(ct,ne.right)),(0,ve.isNum)(ne.bottom)&&(Ee=Math.min(Ee,ne.bottom)),(0,ve.isNum)(ne.left)&&(ct=Math.max(ct,ne.left)),(0,ve.isNum)(ne.top)&&(Ee=Math.max(Ee,ne.top)),[ct,Ee]}function it(Ve,ct,Ee){const ne=Math.round(ct/Ve[0])*Ve[0],te=Math.round(Ee/Ve[1])*Ve[1];return[ne,te]}function rt(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,ct,Ee){const ne=typeof ct=="number"?(0,_e.getTouch)(Ve,ct):null;if(typeof ct=="number"&&!ne)return null;const te=xt(Ee),ue=Ee.props.offsetParent||te.offsetParent||te.ownerDocument.body;return(0,_e.offsetXYFromParent)(ne||Ve,ue,Ee.props.scale)}function yt(Ve,ct,Ee){const ne=!(0,ve.isNum)(Ve.lastX),te=xt(Ve);return ne?{node:te,deltaX:0,deltaY:0,lastX:ct,lastY:Ee,x:ct,y:Ee}:{node:te,deltaX:ct-Ve.lastX,deltaY:Ee-Ve.lastY,lastX:Ve.lastX,lastY:Ve.lastY,x:ct,y:Ee}}function tt(Ve,ct){const Ee=Ve.props.scale;return{node:ct.node,x:Ve.state.x+ct.deltaX/Ee,y:Ve.state.y+ct.deltaY/Ee,deltaX:ct.deltaX/Ee,deltaY:ct.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 xt(Ve){const ct=Ve.findDOMNode();if(!ct)throw new Error("<DraggableCore>: Unmounted during event!");return ct}},36641:function(gn,en){"use strict";Object.defineProperty(en,"__esModule",{value:!0}),en.dontSetMe=it,en.findInArray=we,en.int=lt,en.isFunction=ve,en.isNum=_e;function we(rt,ze){for(let Ue=0,yt=rt.length;Ue<yt;Ue++)if(ze.apply(ze,[rt[Ue],Ue,rt]))return rt[Ue]}function ve(rt){return typeof rt=="function"||Object.prototype.toString.call(rt)==="[object Function]"}function _e(rt){return typeof rt=="number"&&!isNaN(rt)}function lt(rt){return parseInt(rt,10)}function it(rt,ze,Ue){if(rt[ze])return new Error("Invalid prop ".concat(ze," passed to ").concat(Ue," - do not set this, set it on the child."))}},51581:function(gn,en,we){"use strict";Object.defineProperty(en,"__esModule",{value:!0});var ve=function(){function Ve(ct,Ee){for(var ne=0;ne<Ee.length;ne++){var te=Ee[ne];te.enumerable=te.enumerable||!1,te.configurable=!0,"value"in te&&(te.writable=!0),Object.defineProperty(ct,te.key,te)}}return function(ct,Ee,ne){return Ee&&Ve(ct.prototype,Ee),ne&&Ve(ct,ne),ct}}(),_e=we(59301),lt=ze(_e),it=we(12708),rt=ze(it);function ze(Ve){return Ve&&Ve.__esModule?Ve:{default:Ve}}function Ue(Ve,ct){var Ee={};for(var ne in Ve)ct.indexOf(ne)>=0||Object.prototype.hasOwnProperty.call(Ve,ne)&&(Ee[ne]=Ve[ne]);return Ee}function yt(Ve,ct){if(!(Ve instanceof ct))throw new TypeError("Cannot call a class as a function")}function tt(Ve,ct){if(!Ve)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ct&&(typeof ct=="object"||typeof ct=="function")?ct:Ve}function De(Ve,ct){if(typeof ct!="function"&&ct!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ct);Ve.prototype=Object.create(ct&&ct.prototype,{constructor:{value:Ve,enumerable:!1,writable:!0,configurable:!0}}),ct&&(Object.setPrototypeOf?Object.setPrototypeOf(Ve,ct):Ve.__proto__=ct)}var xt=function(Ve){De(ct,Ve);function ct(Ee){yt(this,ct);var ne=tt(this,(ct.__proto__||Object.getPrototypeOf(ct)).call(this,Ee));return ne.scrollListener=ne.scrollListener.bind(ne),ne.eventListenerOptions=ne.eventListenerOptions.bind(ne),ne.mousewheelListener=ne.mousewheelListener.bind(ne),ne}return ve(ct,[{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 ne=this.getParentElement(this.scrollComponent);ne.scrollTop=ne.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}},{key:"componentWillUnmount",value:function(){this.detachScrollListener(),this.detachMousewheelListener()}},{key:"isPassiveSupported",value:function(){var ne=!1,te={get passive(){ne=!0}};try{document.addEventListener("test",null,te),document.removeEventListener("test",null,te)}catch(ue){}return ne}},{key:"eventListenerOptions",value:function(){var ne=this.props.useCapture;return this.isPassiveSupported()&&(ne={useCapture:this.props.useCapture,passive:!0}),ne}},{key:"setDefaultLoader",value:function(ne){this.defaultLoader=ne}},{key:"detachMousewheelListener",value:function(){var ne=window;this.props.useWindow===!1&&(ne=this.scrollComponent.parentNode),ne.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}},{key:"detachScrollListener",value:function(){var ne=window;this.props.useWindow===!1&&(ne=this.getParentElement(this.scrollComponent)),ne.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),ne.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}},{key:"getParentElement",value:function(ne){var te=this.props.getScrollParent&&this.props.getScrollParent();return te!=null?te:ne&&ne.parentNode}},{key:"filterProps",value:function(ne){return ne}},{key:"attachScrollListener",value:function(){var ne=this.getParentElement(this.scrollComponent);if(!(!this.props.hasMore||!ne)){var te=window;this.props.useWindow===!1&&(te=ne),te.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),te.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),te.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}}},{key:"mousewheelListener",value:function(ne){ne.deltaY===1&&!this.isPassiveSupported()&&ne.preventDefault()}},{key:"scrollListener",value:function(){var ne=this.scrollComponent,te=window,ue=this.getParentElement(ne),se=void 0;if(this.props.useWindow){var de=document.documentElement||document.body.parentNode||document.body,pe=te.pageYOffset!==void 0?te.pageYOffset:de.scrollTop;this.props.isReverse?se=pe:se=this.calculateOffset(ne,pe)}else this.props.isReverse?se=ue.scrollTop:se=ne.scrollHeight-ue.scrollTop-ue.clientHeight;se<Number(this.props.threshold)&&ne&&ne.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(ne,te){return ne?this.calculateTopPosition(ne)+(ne.offsetHeight-te-window.innerHeight):0}},{key:"calculateTopPosition",value:function(ne){return ne?ne.offsetTop+this.calculateTopPosition(ne.offsetParent):0}},{key:"render",value:function(){var ne=this,te=this.filterProps(this.props),ue=te.children,se=te.element,de=te.hasMore,pe=te.initialLoad,ye=te.isReverse,Ce=te.loader,je=te.loadMore,Te=te.pageStart,Ie=te.ref,Oe=te.threshold,Re=te.useCapture,nt=te.useWindow,ot=te.getScrollParent,wt=Ue(te,["children","element","hasMore","initialLoad","isReverse","loader","loadMore","pageStart","ref","threshold","useCapture","useWindow","getScrollParent"]);wt.ref=function(Dt){ne.scrollComponent=Dt,Ie&&Ie(Dt)};var gt=[ue];return de&&(Ce?ye?gt.unshift(Ce):gt.push(Ce):this.defaultLoader&&(ye?gt.unshift(this.defaultLoader):gt.push(this.defaultLoader))),lt.default.createElement(se,wt,gt)}}]),ct}(_e.Component);xt.propTypes={children:rt.default.node.isRequired,element:rt.default.node,hasMore:rt.default.bool,initialLoad:rt.default.bool,isReverse:rt.default.bool,loader:rt.default.node,loadMore:rt.default.func.isRequired,pageStart:rt.default.number,ref:rt.default.func,getScrollParent:rt.default.func,threshold:rt.default.number,useCapture:rt.default.bool,useWindow:rt.default.bool},xt.defaultProps={element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null},en.default=xt,gn.exports=en.default},26724:function(gn,en,we){gn.exports=we(51581)},80010:function(gn,en,we){"use strict";en.__esModule=!0,en.default=void 0;var ve=rt(we(59301)),_e=we(12911),lt=we(73638),it=we(6217);function rt(Ee){return Ee&&Ee.__esModule?Ee:{default:Ee}}function ze(){return ze=Object.assign||function(Ee){for(var ne=1;ne<arguments.length;ne++){var te=arguments[ne];for(var ue in te)Object.prototype.hasOwnProperty.call(te,ue)&&(Ee[ue]=te[ue])}return Ee},ze.apply(this,arguments)}function Ue(Ee,ne){var te=Object.keys(Ee);if(Object.getOwnPropertySymbols){var ue=Object.getOwnPropertySymbols(Ee);ne&&(ue=ue.filter(function(se){return Object.getOwnPropertyDescriptor(Ee,se).enumerable})),te.push.apply(te,ue)}return te}function yt(Ee){for(var ne=1;ne<arguments.length;ne++){var te=arguments[ne]!=null?arguments[ne]:{};ne%2?Ue(Object(te),!0).forEach(function(ue){Ve(Ee,ue,te[ue])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Ee,Object.getOwnPropertyDescriptors(te)):Ue(Object(te)).forEach(function(ue){Object.defineProperty(Ee,ue,Object.getOwnPropertyDescriptor(te,ue))})}return Ee}function tt(Ee,ne){if(Ee==null)return{};var te={},ue=Object.keys(Ee),se,de;for(de=0;de<ue.length;de++)se=ue[de],!(ne.indexOf(se)>=0)&&(te[se]=Ee[se]);return te}function De(Ee){if(Ee===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Ee}function xt(Ee,ne){Ee.prototype=Object.create(ne.prototype),Ee.prototype.constructor=Ee,Ee.__proto__=ne}function Ve(Ee,ne,te){return ne in Ee?Object.defineProperty(Ee,ne,{value:te,enumerable:!0,configurable:!0,writable:!0}):Ee[ne]=te,Ee}var ct=function(Ee){xt(ne,Ee);function ne(){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 te=ne.prototype;return te.componentWillUnmount=function(){this.resetData()},te.lockAspectRatio=function(se,de,pe){return de=se/pe,se=de*pe,[se,de]},te.resetData=function(){this.lastHandleRect=this.slack=null},te.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 je=de===this.props.height;if(je){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,nt=this.slack||[0,0],ot=nt[0],wt=nt[1];return se+=ot,de+=wt,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),wt+(Re-de)],[se,de]},te.resizeHandler=function(se,de){var pe=this;return function(ye,Ce){var je=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 nt=de[0],ot=de[de.length-1],wt=je.getBoundingClientRect();if(pe.lastHandleRect!=null){if(ot==="w"){var gt=wt.left-pe.lastHandleRect.left;Te+=gt}if(nt==="n"){var Dt=wt.top-pe.lastHandleRect.top;Ie+=Dt}}pe.lastHandleRect=wt,ot==="w"&&(Te=-Te),nt==="n"&&(Ie=-Ie);var Lt=pe.props.width+(Oe?Te/pe.props.transformScale:0),It=pe.props.height+(Re?Ie/pe.props.transformScale:0),Tt=pe.runConstraints(Lt,It);Lt=Tt[0],It=Tt[1];var nn=Lt!==pe.props.width||It!==pe.props.height,at=typeof pe.props[se]=="function"?pe.props[se]:null,He=se==="onResize"&&!nn;at&&!He&&(typeof ye.persist=="function"&&ye.persist(),at(ye,{node:je,size:{width:Lt,height:It},handle:de})),se==="onResizeStop"&&pe.resetData()}}},te.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})},te.render=function(){var se=this,de=this.props,pe=de.children,ye=de.className,Ce=de.draggableOpts,je=de.width,Te=de.height,Ie=de.handle,Oe=de.handleSize,Re=de.lockAspectRatio,nt=de.axis,ot=de.minConstraints,wt=de.maxConstraints,gt=de.onResize,Dt=de.onResizeStop,Lt=de.onResizeStart,It=de.resizeHandles,Tt=de.transformScale,nn=tt(de,["children","className","draggableOpts","width","height","handle","handleSize","lockAspectRatio","axis","minConstraints","maxConstraints","onResize","onResizeStop","onResizeStart","resizeHandles","transformScale"]);return(0,lt.cloneElement)(pe,yt(yt({},nn),{},{className:(ye?ye+" ":"")+"react-resizable",children:[].concat(pe.props.children,It.map(function(at){return ve.default.createElement(_e.DraggableCore,ze({},Ce,{key:"resizableHandle-"+at,onStop:se.resizeHandler("onResizeStop",at),onStart:se.resizeHandler("onResizeStart",at),onDrag:se.resizeHandler("onResize",at)}),se.renderResizeHandle(at))}))}))},ne}(ve.default.Component);en.default=ct,Ve(ct,"propTypes",it.resizableProps),Ve(ct,"defaultProps",{handleSize:[20,20],lockAspectRatio:!1,axis:"both",minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:["se"],transformScale:1})},60842:function(gn,en,we){"use strict";var ve;ve=!0,en.default=void 0;var _e=yt(we(59301)),lt=ze(we(12708)),it=ze(we(80010)),rt=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 yt(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 tt(){return tt=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},tt.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 xt(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){ne(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 ct(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 ne(ue,se,de){return se in ue?Object.defineProperty(ue,se,{value:de,enumerable:!0,configurable:!0,writable:!0}):ue[se]=de,ue}var te=function(ue){Ee(se,ue);function se(){for(var pe,ye=arguments.length,Ce=new Array(ye),je=0;je<ye;je++)Ce[je]=arguments[je];return pe=ue.call.apply(ue,[this].concat(Ce))||this,ne(ct(pe),"state",{width:pe.props.width,height:pe.props.height,propsWidth:pe.props.width,propsHeight:pe.props.height}),ne(ct(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,je=ye.handleSize,Te=ye.onResize,Ie=ye.onResizeStart,Oe=ye.onResizeStop,Re=ye.draggableOpts,nt=ye.minConstraints,ot=ye.maxConstraints,wt=ye.lockAspectRatio,gt=ye.axis,Dt=ye.width,Lt=ye.height,It=ye.resizeHandles,Tt=ye.style,nn=ye.transformScale,at=Ve(ye,["handle","handleSize","onResize","onResizeStart","onResizeStop","draggableOpts","minConstraints","maxConstraints","lockAspectRatio","axis","width","height","resizeHandles","style","transformScale"]);return _e.createElement(it.default,{axis:gt,draggableOpts:Re,handle:Ce,handleSize:je,height:this.state.height,lockAspectRatio:wt,maxConstraints:ot,minConstraints:nt,onResizeStart:Ie,onResize:this.onResize,onResizeStop:Oe,resizeHandles:It,transformScale:nn,width:this.state.width},_e.createElement("div",tt({},at,{style:xt(xt({},Tt),{},{width:this.state.width+"px",height:this.state.height+"px"})})))},se}(_e.Component);en.default=te,ne(te,"propTypes",xt(xt({},rt.resizableProps),{},{children:lt.default.element}))},6217:function(gn,en,we){"use strict";en.__esModule=!0,en.resizableProps=void 0;var ve=lt(we(12708)),_e=we(12911);function lt(rt){return rt&&rt.__esModule?rt:{default:rt}}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};en.resizableProps=it},73638:function(gn,en,we){"use strict";en.__esModule=!0,en.cloneElement=ze;var ve=_e(we(59301));function _e(Ue){return Ue&&Ue.__esModule?Ue:{default:Ue}}function lt(Ue,yt){var tt=Object.keys(Ue);if(Object.getOwnPropertySymbols){var De=Object.getOwnPropertySymbols(Ue);yt&&(De=De.filter(function(xt){return Object.getOwnPropertyDescriptor(Ue,xt).enumerable})),tt.push.apply(tt,De)}return tt}function it(Ue){for(var yt=1;yt<arguments.length;yt++){var tt=arguments[yt]!=null?arguments[yt]:{};yt%2?lt(Object(tt),!0).forEach(function(De){rt(Ue,De,tt[De])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Ue,Object.getOwnPropertyDescriptors(tt)):lt(Object(tt)).forEach(function(De){Object.defineProperty(Ue,De,Object.getOwnPropertyDescriptor(tt,De))})}return Ue}function rt(Ue,yt,tt){return yt in Ue?Object.defineProperty(Ue,yt,{value:tt,enumerable:!0,configurable:!0,writable:!0}):Ue[yt]=tt,Ue}function ze(Ue,yt){return yt.style&&Ue.props.style&&(yt.style=it(it({},Ue.props.style),yt.style)),yt.className&&Ue.props.className&&(yt.className=Ue.props.className+" "+yt.className),ve.default.cloneElement(Ue,yt)}},9221:function(gn,en,we){"use strict";gn.exports=function(){throw new Error("Don't instantiate Resizable directly! Use require('react-resizable').Resizable")},gn.exports.Resizable=we(80010).default,gn.exports.ResizableBox=we(60842).default},25510:function(gn){"use strict";gn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAiwAAAIsCAYAAADRd/LpAAAgAElEQVR4Xuyda5BtVXXvV3efc+CAYBQRjaJBeWjiVVKVB0mMUV6GKv0cvVVG/XTrViUlSd0bqUoQg4KapKJW8j3mWinNx1SRSgkciKARYiqi1ycvFZSggHgFDofz6L71m3v/9xk9eq695ty91t67u8eimu6z91zzMcaYY/znGGPOudLEExQICgQFggJBgaBAUGDJKbBC/26+98jGkvczuhcUCAoEBYICQYGgwB6lwJUXnroSgGWPMj+GHRQICgQFggJBgZ1CgS2A5YoLTtkpfY9+BgWCAkGBoEBQICiwyylwy33PpREGYNnljI7hBQWCAkGBoEBQYCdTIADLTuZe9D0oEBQICgQFggJ7hAIBWPYIo2OYQYGgQFAgKBAU2MkUCMCyk7kXfQ8KBAWCAkGBoMAeoUAAlj3C6BhmUCAoEBQICgQFdjIFArDsZO5F34MCQYGgQFAgKLBHKBCAZY8wOoYZFAgKBAWCAkGBnUyBACw7mXvR96BAUCAoEBQICuwRCgRg2SOMjmEGBYICQYGgQFBgJ1MgAMtO5l70PSgQFAgKBAWCAnuEAgFY9gijY5hBgaBAUCAoEBTYyRQIwLKTuRd9DwoEBYICQYGgwB6hQACWPcLoGGZQICgQFAgKBAV2MgUCsOxk7kXfgwJBgaBAUCAosEcoEIBljzA6hhkUCAoEBYICQYGdTIEALDuZe9H3oEBQICgQFAgK7BEKBGDZI4yOYQYFggJBgaBAUGAnUyAAy07mXvQ9KBAUCAoEBYICe4QCAVj2CKNjmEGBoEBQICgQFNjJFAjAspO5F30PCgQFggJBgaDAHqFAAJY9wugYZlAgKBAUCAoEBXYyBQKw7GTuRd+DAkGBoEBQICiwRygQgGWPMDqGGRQICgQFggJBgZ1MgQAsO5l70fegQFAgKBAUCArsEQoEYNkjjI5hBgWCAkGBoEBQYCdTIADLTuZe9D0oEBQICgQFggJ7hAIBWPYIo2OYQYGgQFAgKBAU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xvvzj3ZPvhKT+y+/5yv7340qthN82c2XNtypQlgmVz3333s8023sQmLDJ6vqWC+vtTwPThIawrI4m7mWcjidEJATEAlTEhcV24yBsT0MbscAbSAw89YHt9aC+774H77JBDDw2ZgjdYfwObM3den0to1CgbiYUIT1Kf4aTPUjTidZsza7aNCX6qPuCFKWXeq6/ZSE6dDtmC2SreF4ATvHHBtTQ/cGb+VmwF6DRZWIhh8S4hv02WMcPyx0o+9eoWYPHvZ14Qk0dekbqLBZqP/ZgyZYrdcccdwWKUeg01YEGO01dZvflbC0pZl3MColP7rXIFsORSzKwAlgqaEXDLqsgrvthtkkrqqq1mPLvSSiv1r2BS6+o2YEltRyfKdRuwpLSx5wHL/Lwol112qZ155pn23f/9no0ZOzakrw8wJYCJ123U6FE2b+48W3yxxe3444+xf/rHXWxsiGWZf7AzlobZs23mK6/ajHvvs03evolNHD/Rfnveb22rrbYMW4+DFXN4rTMAACAASURBVGqRMcGFQsI3EA8Wjr4wWdwrCPYxfUBontkzTz9rl156mf3Xf33K/vbc88GSM/ktb7GJEybZE089Hd6FW2qddabZGWf8ypYKro++bcGLLDLGZs0iXgaghWtrtM187dWgvIlF6XvfPBs1t89yFLqLJYQAyZFgmNfswYcetD332sse+uv9dsghX7OtttzK1pu23vw525fuf97IEfbqrFk2iXqJlyH/zJxZ4cykMLfDP9xf7Djq6zvXmDEjbebM2TZuHGCvT6nR6b44tL48LKOw/pjZtddea8suu2z/2WM+WPXFF18Mhx/GpzV73sxdEAwWYFlllVVq5VPV7iCse7kW06EGLCkyoptlCmDJp24BLAWw5HNNB54ogKUvrqQuNX/YWcaJxrPn2LXXXWfnn3+eff3rX7fttt/e9tvv87baqqv1xUVguZvdl+skxOssvphNmjzBxuDSCAnPXrfnnn7K3jJpsr3y6hy7a8a9tunmW9gKKyxjp/7057bp299u80ZgPRltr816tS/ny2h2/mDkeD18wm6ZsG15bPg/773lllts///+b7vx8sttvfXXt403fpv956c/bRMnLWq33HyLnX7GGXb2OecEgLX/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eprrrannn/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/bN446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TVNaECNgBIyAETAC9SJgwlJv21oyI2AEjIARMALVIGDCUk1TWhAjYASMgBEwAvUiYMJSb9taMiNgBIyAETAC1SBgwlJNU1oQI2AEjIARMAL1ImDCUm/bWjIjYASMgBEwAtUgYMJSTVNaECNgBIyAETAC9SJgwlJv21oyI2AEjIARMALVIGDCUk1TWhAjYASMgBEwAvUiYMJSb9taMiNgBIyAETAC1SBgwlJNU1oQI2AEjIARMAL1ImDCUm/bWjIjYASMgBEwAtUgYMJSTVNaECNgBIyAETAC9SJgwlJv21oyI2AEjIARMALVIGDCUk1TWhAjYASMgBEwAvUiYMJSb9taMiNgBIyAETAC1SBgwlJNU1oQI2AEjIARMAL1ImDCUm/bWjIjYASMgBEwAtUgYMJSTVNaECNgBIyAETAC9SLQSFjqFdmSGQEjYASMgBEwAqsVge1b1x12GCr/8p6D/12tQrjeRsAIGAEjYASMQN0ITAhL3WJaOiNgBIyAETACRmC1I/C/+Ryxj68oilIAAAAASUVORK5CYII="},32637:function(gn,en,we){"use strict";gn.exports=we.p+"static/AssistantCode3.a8740efb.jpeg"},93314:function(gn){"use strict";gn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAACaCAYAAADl9acYAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQd4U1Ubfs/NaJtO9kzLahFQEJkiUBBFUFFkCCjiAAVFERT5FREQQQXBBcpysWRP2RtkKRsEOphNodCZdDfjnv85CU2TZt2bhABNDw9PmtzvrO+c957xLQIP0pkz1yrQIEmwwcDzHhTj91klEo7jpcG5zetWUJdmRjmPvTM9GI9JgSGvadOoLE9KJJ5kPp2YXLtZdO1kT8ooz2vigCNelvPYezPEG7z0CDAn4pJqPvJA5A3vdcl/S3LEy3Iee29OeIOX5YDx3nh4VFI5YDxin6DM5YARxKb7g6gcMHd+nMoBc+d57LKGhCQ1ZURBCoVL2nKCO8sBZWW50x1TOWDuLP8FlV4OGEFs8glROWB8wmbPKikHjGf882bucsB4k5t3qKxywNwhxrpRbJ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UTWjJhJqi14JKnKCKEFoKgEITLlxDk63laICXIh4Hme0Nw6d3RvzOl/R8AdGoXzom1qQAAAABJRU5ErkJggg=="},96622:function(gn){"use strict";gn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAUCAYAAACeXl35AAAAAXNSR0IArs4c6QAAAI5JREFUSEtjZKASMI65Jnl2idZzQsYxElJArLxR/CVjxr8szwhZSlULQY4jZCnVLSRkKU0sxGcpzSzEZSkjKLKJTRjkqEOPU5pbiO5TuliIbCndLIRZOnwthCUeuvgQOaXS3EKMbEFO3sKmB1t+xlau0qykwVWI08RCfDUG1S2ka/VEyDJw5qdWoiG2iQEA4ntvEVdpqFkAAAAASUVORK5CYII="},12971:function(gn){"use strict";gn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAcCAYAAAAJKR1YAAAAAXNSR0IArs4c6QAAB8tJREFUWEetlwtwFdUZx3/n7O7de5MLgYQkPIoYw0sBJQ0VKAEdW0YeAq1ShtZaeZaHVXFspRUqSZ1UpePoKIjQBlAErYpMjR2EgsVGGSgUqoCiLdQiBHklkJv72tepuzfBiEEKw5nZuXt3v/ud3/mf7/vOdwWXMKo/Uh3qGlmoBAM8BymafZy9+cJp8EiAkGDoNIYEi8b3Ey+cb9pWXFyYcOUO9wkjW85JJc5j6wO08kpqoFzSkRAlE/uJD1v79SUBVW3z/iJC4ru2BUqBasVzszItxfOlNEIgPMbcWSreuHQgVS5hwefaVwQ+Fr/70JvCEMN9oD75itywCqCkDroQeJ5v9QWmlIJDZ+BwgyCUAbpl0gDx54sGKl1am/V+ulOl7VGGq5piRaiCED1MSVtPKTpkQUjLuO66TfHDkWm6XAO6IhNcwoeEQ406h+MGZghw3DFTBuoXr1C7p53vNXjaOs86Zy0u4KvgT9gshIK8xYr2lsNNlS5FvQyEqwIoTYAZ0ghpAt0Az3XHTrter/5ahdS/JueLHitOfMnoCTUFjyrOBWrNk1LkVimiByTRYpdxldDxCs3fHnQJoila/S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RBRzyuRo2tRE52nlB5NeOOObkDzCzPhmY5j2OVqo5FTvpevk3v+nNcnStciqioqKiqi87CieF7hkarXNVUVFTp16flP8AUX7oqfRU+qc4DIwzGkG5HNciKiovX7/hf8VPsqL0VFRUVEVOYc6+c+OOOOOOOOOOOOOOOOOOOOOOOObjjzFTMhhY573uRqI1FXrtevk7r+mtanaucqoiIiqqoic7BCeZ7RjarnOVERETr06/lf8AET7qq/RE+q84EIwLHEI5GtaiqqqvT7fhP9VfsiJ1VVVERFVef//Z"},69429:function(gn,en,we){"use strict";gn.exports=we.p+"static/lock.1b5026ee.png"},16722:function(gn,en,we){"use strict";we.d(en,{Z:function(){return yt}});const ve=tt=>typeof tt=="object"&&tt!=null&&tt.nodeType===1,_e=(tt,De)=>(!De||tt!=="hidden")&&tt!=="visible"&&tt!=="clip",lt=(tt,De)=>{if(tt.clientHeight<tt.scrollHeight||tt.clientWidth<tt.scrollWidth){const xt=getComputedStyle(tt,null);return _e(xt.overflowY,De)||_e(xt.overflowX,De)||(Ve=>{const ct=(Ee=>{if(!Ee.ownerDocument||!Ee.ownerDocument.defaultView)return null;try{return Ee.ownerDocument.defaultView.frameElement}catch(ne){return null}})(Ve);return!!ct&&(ct.clientHeight<Ve.scrollHeight||ct.clientWidth<Ve.scrollWidth)})(tt)}return!1},it=(tt,De,xt,Ve,ct,Ee,ne,te)=>Ee<tt&&ne>De||Ee>tt&&ne<De?0:Ee<=tt&&te<=xt||ne>=De&&te>=xt?Ee-tt-Ve:ne>De&&te<xt||Ee<tt&&te>xt?ne-De+ct:0,rt=tt=>{const De=tt.parentElement;return De==null?tt.getRootNode().host||null:De},ze=(tt,De)=>{var xt,Ve,ct,Ee;if(typeof document=="undefined")return[];const{scrollMode:ne,block:te,inline:ue,boundary:se,skipOverflowHiddenElements:de}=De,pe=typeof se=="function"?se:Yt=>Yt!==se;if(!ve(tt))throw new TypeError("Invalid target");const ye=document.scrollingElement||document.documentElement,Ce=[];let je=tt;for(;ve(je)&&pe(je);){if(je=rt(je),je===ye){Ce.push(je);break}je!=null&&je===document.body&&lt(je)&&!lt(document.documentElement)||je!=null&&lt(je,de)&&Ce.push(je)}const Te=(Ve=(xt=window.visualViewport)==null?void 0:xt.width)!=null?Ve:innerWidth,Ie=(Ee=(ct=window.visualViewport)==null?void 0:ct.height)!=null?Ee:innerHeight,{scrollX:Oe,scrollY:Re}=window,{height:nt,width:ot,top:wt,right:gt,bottom:Dt,left:Lt}=tt.getBoundingClientRect(),{top:It,right:Tt,bottom:nn,left:at}=(Yt=>{const Mt=window.getComputedStyle(Yt);return{top:parseFloat(Mt.scrollMarginTop)||0,right:parseFloat(Mt.scrollMarginRight)||0,bottom:parseFloat(Mt.scrollMarginBottom)||0,left:parseFloat(Mt.scrollMarginLeft)||0}})(tt);let He=te==="start"||te==="nearest"?wt-It:te==="end"?Dt+nn:wt+nt/2-It+nn,Rt=ue==="center"?Lt+ot/2-at+Tt:ue==="end"?gt+Tt:Lt-at;const Zt=[];for(let Yt=0;Yt<Ce.length;Yt++){const Mt=Ce[Yt],{height:zt,width:on,top:Dn,right:kt,bottom:vt,left:hn}=Mt.getBoundingClientRect();if(ne==="if-needed"&&wt>=0&&Lt>=0&&Dt<=Ie&&gt<=Te&&(Mt===ye&&!lt(Mt)||wt>=Dn&&Dt<=vt&&Lt>=hn&&gt<=kt))return Zt;const li=getComputedStyle(Mt),yi=parseInt(li.borderLeftWidth,10),We=parseInt(li.borderTopWidth,10),Fe=parseInt(li.borderRightWidth,10),xe=parseInt(li.borderBottomWidth,10);let Ne=0,Ye=0;const ke="offsetWidth"in Mt?Mt.offsetWidth-Mt.clientWidth-yi-Fe:0,et="offsetHeight"in Mt?Mt.offsetHeight-Mt.clientHeight-We-xe:0,_t="offsetWidth"in Mt?Mt.offsetWidth===0?0:on/Mt.offsetWidth:0,Bt="offsetHeight"in Mt?Mt.offsetHeight===0?0:zt/Mt.offsetHeight:0;if(ye===Mt)Ne=te==="start"?He:te==="end"?He-Ie:te==="nearest"?it(Re,Re+Ie,Ie,We,xe,Re+He,Re+He+nt,nt):He-Ie/2,Ye=ue==="start"?Rt:ue==="center"?Rt-Te/2:ue==="end"?Rt-Te:it(Oe,Oe+Te,Te,yi,Fe,Oe+Rt,Oe+Rt+ot,ot),Ne=Math.max(0,Ne+Re),Ye=Math.max(0,Ye+Oe);else{Ne=te==="start"?He-Dn-We:te==="end"?He-vt+xe+et:te==="nearest"?it(Dn,vt,zt,We,xe+et,He,He+nt,nt):He-(Dn+zt/2)+et/2,Ye=ue==="start"?Rt-hn-yi:ue==="center"?Rt-(hn+on/2)+ke/2:ue==="end"?Rt-kt+Fe+ke:it(hn,kt,on,yi,Fe+ke,Rt,Rt+ot,ot);const{scrollLeft:rn,scrollTop:Ot}=Mt;Ne=Bt===0?0:Math.max(0,Math.min(Ot+Ne/Bt,Mt.scrollHeight-zt/Bt+et)),Ye=_t===0?0:Math.max(0,Math.min(rn+Ye/_t,Mt.scrollWidth-on/_t+ke)),He+=Ot-Ne,Rt+=rn-Ye}Zt.push({el:Mt,top:Ne,left:Ye})}return Zt},Ue=tt=>tt===!1?{block:"end",inline:"nearest"}:(De=>De===Object(De)&&Object.keys(De).length!==0)(tt)?tt:{block:"start",inline:"nearest"};function yt(tt,De){if(!tt.isConnected||!(ct=>{let Ee=ct;for(;Ee&&Ee.parentNode;){if(Ee.parentNode===document)return!0;Ee=Ee.parentNode instanceof ShadowRoot?Ee.parentNode.host:Ee.parentNode}return!1})(tt))return;const xt=(ct=>{const Ee=window.getComputedStyle(ct);return{top:parseFloat(Ee.scrollMarginTop)||0,right:parseFloat(Ee.scrollMarginRight)||0,bottom:parseFloat(Ee.scrollMarginBottom)||0,left:parseFloat(Ee.scrollMarginLeft)||0}})(tt);if((ct=>typeof ct=="object"&&typeof ct.behavior=="function")(De))return De.behavior(ze(tt,De));const Ve=typeof De=="boolean"||De==null?void 0:De.behavior;for(const{el:ct,top:Ee,left:ne}of ze(tt,Ue(De))){const te=Ee-xt.top+xt.bottom,ue=ne-xt.left+xt.right;ct.scroll({top:te,left:ue,behavior:Ve})}}}}]);
}());